@mojaloop/api-snippets 17.5.1 → 17.6.0-snapshot.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "17.5.1",
3
+ "version": "17.6.0-snapshot.0",
4
4
  "description": "Mojaloop API specification reusable snippets",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -76,7 +76,7 @@
76
76
  "license": "Apache-2.0",
77
77
  "dependencies": {
78
78
  "@apidevtools/json-schema-ref-parser": "^9.1.2",
79
- "@redocly/openapi-core": "^1.5.0",
79
+ "@redocly/openapi-core": "^1.14.0",
80
80
  "commander": "^12.1.0",
81
81
  "jest-ts-auto-mock": "^2.1.0",
82
82
  "js-yaml": "^4.1.0",
@@ -93,7 +93,7 @@
93
93
  "@commitlint/cli": "^19.3.0",
94
94
  "@commitlint/config-conventional": "^19.2.2",
95
95
  "@redocly/openapi-cli": "^1.0.0-beta.94",
96
- "@redocly/cli": "^1.5.0",
96
+ "@redocly/cli": "^1.14.0",
97
97
  "@types/jest": "^29.5.12",
98
98
  "@types/js-yaml": "^4.0.9",
99
99
  "@typescript-eslint/eslint-plugin": "^7.11.0",
@@ -114,6 +114,7 @@
114
114
  "husky": "9.0.11",
115
115
  "jest": "^29.7.0",
116
116
  "jest-junit": "^16.0.0",
117
+ "json-schema-to-ts": "^3.1.0",
117
118
  "lint-staged": "^15.2.5",
118
119
  "npm-check-updates": "^16.14.20",
119
120
  "prettier": "^3.3.0",
package/sdk-bulk.yaml CHANGED
@@ -953,7 +953,7 @@ components:
953
953
  title: CorrelationId
954
954
  type: string
955
955
  pattern: >-
956
- ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
956
+ ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
957
957
  description: >-
958
958
  Identifier that correlates all messages of the same sequence. The API
959
959
  data type UUID (Universally Unique Identifier) is a JSON String in
@@ -612,7 +612,7 @@ components:
612
612
  type: string
613
613
  bulkQuoteId:
614
614
  description: A Mojaloop API bulk quote identifier (UUID).
615
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
615
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
616
616
  type: string
617
617
  bulkQuoteRequest:
618
618
  description: A request for a bulk quote.
@@ -658,7 +658,7 @@ components:
658
658
  type: object
659
659
  bulkTransferId:
660
660
  description: A Mojaloop API transfer identifier (UUID).
661
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
661
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
662
662
  type: string
663
663
  bulkTransferRequest:
664
664
  properties:
@@ -1112,7 +1112,7 @@ components:
1112
1112
  type: string
1113
1113
  quoteId:
1114
1114
  description: A Mojaloop API quote identifier (UUID).
1115
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1115
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1116
1116
  type: string
1117
1117
  quoteRequest:
1118
1118
  description: A request for a quote for transfer from the DFSP backend.
@@ -1217,7 +1217,7 @@ components:
1217
1217
  type: string
1218
1218
  transactionId:
1219
1219
  description: ID of the transaction, the ID is decided by the Payer FSP during the creation of the quote.
1220
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1220
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1221
1221
  type: string
1222
1222
  transactionRequest:
1223
1223
  description: A request for a pull based transfer.
@@ -1263,7 +1263,7 @@ components:
1263
1263
  type: object
1264
1264
  transactionRequestId:
1265
1265
  description: A Mojaloop API transaction request identifier (UUID).
1266
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1266
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1267
1267
  type: string
1268
1268
  transactionRequestResponse:
1269
1269
  description: A response to a request for a quote.
@@ -1357,7 +1357,7 @@ components:
1357
1357
  type: object
1358
1358
  transferId:
1359
1359
  description: A Mojaloop API transfer identifier (UUID).
1360
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1360
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1361
1361
  type: string
1362
1362
  transferParty:
1363
1363
  properties:
@@ -1,6 +1,6 @@
1
1
  title: CorrelationId
2
2
  type: string
3
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
3
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
4
4
  description: >-
5
5
  Identifier that correlates all messages of the same sequence. The API data
6
6
  type UUID (Universally Unique Identifier) is a JSON String in canonical
@@ -604,7 +604,7 @@ components:
604
604
  type: string
605
605
  bulkQuoteId:
606
606
  description: A Mojaloop API bulk quote identifier (UUID).
607
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
607
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
608
608
  type: string
609
609
  bulkQuoteRequest:
610
610
  description: A request for a bulk quote.
@@ -650,7 +650,7 @@ components:
650
650
  type: object
651
651
  bulkTransferId:
652
652
  description: A Mojaloop API transfer identifier (UUID).
653
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
653
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
654
654
  type: string
655
655
  bulkTransferRequest:
656
656
  properties:
@@ -1093,7 +1093,7 @@ components:
1093
1093
  type: string
1094
1094
  quoteId:
1095
1095
  description: A Mojaloop API quote identifier (UUID).
1096
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1096
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1097
1097
  type: string
1098
1098
  quoteRequest:
1099
1099
  description: A request for a quote for transfer from the DFSP backend.
@@ -1213,7 +1213,7 @@ components:
1213
1213
  type: string
1214
1214
  transactionId:
1215
1215
  description: ID of the transaction, the ID is decided by the Payer FSP during the creation of the quote.
1216
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1216
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1217
1217
  type: string
1218
1218
  transactionRequest:
1219
1219
  description: A request for a pull based transfer.
@@ -1259,7 +1259,7 @@ components:
1259
1259
  type: object
1260
1260
  transactionRequestId:
1261
1261
  description: A Mojaloop API transaction request identifier (UUID).
1262
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1262
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1263
1263
  type: string
1264
1264
  transactionRequestResponse:
1265
1265
  description: A response to a request for a quote.
@@ -1353,7 +1353,7 @@ components:
1353
1353
  type: object
1354
1354
  transferId:
1355
1355
  description: A Mojaloop API transfer identifier (UUID).
1356
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1356
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
1357
1357
  type: string
1358
1358
  transferParty:
1359
1359
  properties:
@@ -1,6 +1,6 @@
1
1
  title: CorrelationId
2
2
  type: string
3
- pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
3
+ pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
4
4
  description: >-
5
5
  Identifier that correlates all messages of the same sequence. The API data
6
6
  type UUID (Universally Unique Identifier) is a JSON String in canonical