Skip to content

Commit

Permalink
Merge branch 'master' into CIRCSTORE-453
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkurash authored Oct 12, 2023
2 parents d20228b + 2884a2e commit 88fbbc2
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 2 deletions.
2 changes: 1 addition & 1 deletion descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
},
{
"id": "scheduled-notice-storage",
"version": "0.5",
"version": "0.6",
"handlers": [
{
"methods": ["GET"],
Expand Down
1 change: 1 addition & 0 deletions ramls/anonymize-storage-loans-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
}
},
"notAnonymizedLoans": {
"description": "Not anonymized loan IDs",
"type": "array",
"items": {
"description": "Collection of loans",
Expand Down
5 changes: 5 additions & 0 deletions ramls/cancellation-reason.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Request cancellation reason",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "Reason name",
"type": "string"
},
"description" : {
"description": "Internal reason description",
"type": "string"
},
"publicDescription": {
"description": "Public reason description",
"type": "string"
},
"requiresAdditionalInformation": {
"description": "Flag that indicates whether reason requires additional information",
"type": "boolean"
},
"source": {
Expand Down
3 changes: 3 additions & 0 deletions ramls/fixed-due-date-schedule.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"name": {
"description": "Schedule name",
"type": "string"
},
"description": {
"description": "Schedule description",
"type": "string"
},
"schedules": {
"id": "schedules",
"description": "List date ranges with a due date for each",
"type": "array",
"items": {
"type": "object",
Expand Down
9 changes: 9 additions & 0 deletions ramls/kv-configuration.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,42 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Configuration entry",
"properties": {
"id": {
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
},
"module": {
"description": "Name of a FOLIO module",
"type": "string"
},
"configName": {
"description": "Configuration name",
"type": "string"
},
"code": {
"description": "Configuration code",
"type": "string"
},
"description": {
"description": "Configuration description",
"type": "string"
},
"default": {
"description": "Flag that indicates whether this is the default configuration",
"type": "boolean"
},
"enabled": {
"description": "Flag that indicates whether this configuration is enabled",
"type": "boolean"
},
"value": {
"description": "Configuration value",
"type": "string"
},
"userId": {
"description": "User ID",
"type": "string"
},
"metadata": {
Expand Down
2 changes: 2 additions & 0 deletions ramls/kv-configurations.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Collection of configuration entries",
"properties": {
"configs": {
"id": "configurationData",
"description": "An array of configuration entries",
"type": "array",
"items": {
"type": "object",
Expand Down
7 changes: 7 additions & 0 deletions ramls/loan-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"type": "string"
},
"loanable": {
"description": "Flag that indicates whether this policy allows loans",
"type": "boolean"
},
"loansPolicy": {
"type": "object",
"description": "Settings for loans",
"additionalProperties": false,
"properties": {
"profileId": {
Expand Down Expand Up @@ -62,6 +64,7 @@
},
"renewalsPolicy": {
"type": "object",
"description": "Settings for renewals",
"properties": {
"unlimited": {
"type": "boolean",
Expand Down Expand Up @@ -92,10 +95,12 @@
},
"requestManagement": {
"type": "object",
"description": "Settings for various request types",
"additionalProperties": false,
"properties": {
"recalls": {
"type": "object",
"description": "Settings for recall requests",
"additionalProperties": false,
"properties": {
"alternateGracePeriod": {
Expand Down Expand Up @@ -127,6 +132,7 @@
},
"holds": {
"type": "object",
"description": "Settings for hold requests",
"additionalProperties": false,
"properties": {
"alternateCheckoutLoanPeriod": {
Expand All @@ -147,6 +153,7 @@
},
"pages": {
"type": "object",
"description": "Settings for page requests",
"additionalProperties": false,
"properties": {
"alternateCheckoutLoanPeriod": {
Expand Down
9 changes: 9 additions & 0 deletions ramls/patron-notice-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
Expand All @@ -93,10 +94,12 @@
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$ref": "interval.json"
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$ref": "interval.json"
}
},
Expand Down Expand Up @@ -154,6 +157,7 @@
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
Expand All @@ -177,10 +181,12 @@
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$ref": "interval.json"
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$ref": "interval.json"
}
},
Expand Down Expand Up @@ -238,6 +244,7 @@
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
Expand All @@ -264,10 +271,12 @@
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$ref": "interval.json"
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$ref": "interval.json"
}
},
Expand Down
1 change: 1 addition & 0 deletions ramls/period.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Time interval defined by its duration",
"properties": {
"duration": {
"type": "integer",
Expand Down
2 changes: 1 addition & 1 deletion ramls/scheduled-notice-storage.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#%RAML 1.0
title: Scheduled Notice Storage
version: v0.5
version: v0.6
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130

Expand Down
3 changes: 3 additions & 0 deletions ramls/scheduled-notice.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Scheduled patron notice",
"properties": {
"id": {
"type": "string",
Expand Down Expand Up @@ -46,6 +47,7 @@
"Due date",
"Overdue fine returned",
"Overdue fine renewed",
"Due date - with reminder fee",
"Aged to lost",
"Aged to lost - fine charged",
"Aged to lost & item returned - fine adjusted",
Expand All @@ -55,6 +57,7 @@
},
"noticeConfig": {
"type": "object",
"description": "Scheduled notice configuration",
"properties": {
"timing": {
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions ramls/staff-slip.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Staff slip",
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "Staff slip name",
"type": "string"
},
"description": {
"description": "Staff slip description",
"type": "string"
},
"active": {
"description": "Flag that indicates whether staff slip is active",
"type": "boolean"
},
"template": {
"description": "Staff slip template",
"type": "string"
},
"metadata": {
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/templates/db_scripts/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@
"caseSensitive": false,
"removeAccents": false,
"sqlExpression": "(jsonb->'agedToLostDelayedBilling'->>'dateLostItemShouldBeBilled')"
},
{
"fieldName": "action",
"tOps": "ADD",
"caseSensitive": false,
"removeAccents": true
}
],
"fullTextIndex": [
Expand Down

0 comments on commit 88fbbc2

Please sign in to comment.