@mojaloop/api-snippets 17.7.3 → 17.7.5

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.
Files changed (26) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml +7 -9
  3. package/docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml +216 -9
  4. package/docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml +1 -1
  5. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/{CreditTransferTransaction68_Put_FX_Quotes_ID.yaml → CreditTransferTransaction68_FX_Quotes.yaml} +2 -2
  6. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/FxRequest_FICreditTransferProposal.yaml +1 -1
  7. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/FxResponse_FICreditTransferConfirmation.yaml +2 -2
  8. package/lib/fspiop/v2_0_ISO20022/json-schemas.json +14 -12
  9. package/lib/fspiop/v2_0_ISO20022/openapi.d.ts +6 -6
  10. package/lib/fspiop/v2_0_ISO20022/schemas.d.ts +5 -7
  11. package/lib/fspiop/v2_0_ISO20022/schemas.js +2 -2
  12. package/lib/fspiop/v2_0_ISO20022/schemas.js.map +1 -1
  13. package/lib/fspiop/v2_0_ISO20022/types.d.ts +2 -2
  14. package/lib/sdk-scheme-adapter/v2_1_0/backend/json-schemas.json +12778 -1915
  15. package/lib/sdk-scheme-adapter/v2_1_0/backend/openapi.d.ts +133 -9
  16. package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.d.ts +7721 -4313
  17. package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.js +11 -0
  18. package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.js.map +1 -1
  19. package/lib/sdk-scheme-adapter/v2_1_0/backend/types.d.ts +11 -0
  20. package/lib/sdk-scheme-adapter/v2_1_0/outbound/json-schemas.json +1569 -881
  21. package/lib/sdk-scheme-adapter/v2_1_0/outbound/openapi.d.ts +1 -1
  22. package/lib/sdk-scheme-adapter/v2_1_0/outbound/schemas.d.ts +320 -0
  23. package/package.json +10 -10
  24. package/sdk-scheme-adapter/v2_1_0/backend/openapi.yaml +9 -9
  25. package/sdk-scheme-adapter/v2_1_0/components/schemas/transferResponse.yaml +1 -1
  26. /package/fspiop/v2_0_ISO20022/openapi3/components/schemas/{InstructionForCreditorAgent3_Put_FX_Quotes_ID.yaml → InstructionForCreditorAgent3_FX_Quotes.yaml} +0 -0
@@ -1729,7 +1729,7 @@ export interface components {
1729
1729
  currentState?: components["schemas"]["transferStatus"];
1730
1730
  quoteId?: components["schemas"]["CorrelationId"];
1731
1731
  getPartiesResponse?: {
1732
- body: Record<string, never>;
1732
+ body: components["schemas"]["Party"];
1733
1733
  headers?: Record<string, never>;
1734
1734
  };
1735
1735
  quoteResponse?: {
@@ -10849,7 +10849,167 @@ export declare namespace Schemas {
10849
10849
  required: string[];
10850
10850
  properties: {
10851
10851
  body: {
10852
+ title: string;
10852
10853
  type: string;
10854
+ description: string;
10855
+ properties: {
10856
+ partyIdInfo: {
10857
+ title: string;
10858
+ type: string;
10859
+ description: string;
10860
+ properties: {
10861
+ partyIdType: {
10862
+ title: string;
10863
+ type: string;
10864
+ enum: string[];
10865
+ description: string;
10866
+ };
10867
+ partyIdentifier: {
10868
+ title: string;
10869
+ type: string;
10870
+ minLength: number;
10871
+ maxLength: number;
10872
+ description: string;
10873
+ example: string;
10874
+ };
10875
+ partySubIdOrType: {
10876
+ title: string;
10877
+ type: string;
10878
+ minLength: number;
10879
+ maxLength: number;
10880
+ description: string;
10881
+ };
10882
+ fspId: {
10883
+ title: string;
10884
+ type: string;
10885
+ minLength: number;
10886
+ maxLength: number;
10887
+ description: string;
10888
+ };
10889
+ extensionList: {
10890
+ title: string;
10891
+ type: string;
10892
+ description: string;
10893
+ properties: {
10894
+ extension: {
10895
+ type: string;
10896
+ items: {
10897
+ title: string;
10898
+ type: string;
10899
+ description: string;
10900
+ properties: {
10901
+ key: {
10902
+ title: string;
10903
+ type: string;
10904
+ minLength: number;
10905
+ maxLength: number;
10906
+ description: string;
10907
+ };
10908
+ value: {
10909
+ title: string;
10910
+ type: string;
10911
+ minLength: number;
10912
+ maxLength: number;
10913
+ description: string;
10914
+ };
10915
+ };
10916
+ required: string[];
10917
+ };
10918
+ minItems: number;
10919
+ maxItems: number;
10920
+ description: string;
10921
+ };
10922
+ };
10923
+ required: string[];
10924
+ };
10925
+ };
10926
+ required: string[];
10927
+ };
10928
+ merchantClassificationCode: {
10929
+ title: string;
10930
+ type: string;
10931
+ pattern: string;
10932
+ description: string;
10933
+ };
10934
+ name: {
10935
+ title: string;
10936
+ type: string;
10937
+ minLength: number;
10938
+ maxLength: number;
10939
+ description: string;
10940
+ };
10941
+ personalInfo: {
10942
+ title: string;
10943
+ type: string;
10944
+ description: string;
10945
+ properties: {
10946
+ complexName: {
10947
+ title: string;
10948
+ type: string;
10949
+ description: string;
10950
+ properties: {
10951
+ firstName: {
10952
+ title: string;
10953
+ type: string;
10954
+ minLength: number;
10955
+ maxLength: number;
10956
+ pattern: string;
10957
+ description: string;
10958
+ example: string;
10959
+ };
10960
+ middleName: {
10961
+ title: string;
10962
+ type: string;
10963
+ minLength: number;
10964
+ maxLength: number;
10965
+ pattern: string;
10966
+ description: string;
10967
+ example: string;
10968
+ };
10969
+ lastName: {
10970
+ title: string;
10971
+ type: string;
10972
+ minLength: number;
10973
+ maxLength: number;
10974
+ pattern: string;
10975
+ description: string;
10976
+ example: string;
10977
+ };
10978
+ };
10979
+ };
10980
+ dateOfBirth: {
10981
+ title: string;
10982
+ type: string;
10983
+ pattern: string;
10984
+ description: string;
10985
+ example: string;
10986
+ };
10987
+ kycInformation: {
10988
+ title: string;
10989
+ type: string;
10990
+ minLength: number;
10991
+ maxLength: number;
10992
+ description: string;
10993
+ example: string;
10994
+ };
10995
+ };
10996
+ };
10997
+ supportedCurrencies: {
10998
+ type: string;
10999
+ description: string;
11000
+ items: {
11001
+ title: string;
11002
+ description: string;
11003
+ type: string;
11004
+ minLength: number;
11005
+ maxLength: number;
11006
+ enum: string[];
11007
+ };
11008
+ minItems: number;
11009
+ maxItems: number;
11010
+ };
11011
+ };
11012
+ required: string[];
10853
11013
  };
10854
11014
  headers: {
10855
11015
  type: string;
@@ -11910,7 +12070,167 @@ export declare namespace Schemas {
11910
12070
  required: string[];
11911
12071
  properties: {
11912
12072
  body: {
12073
+ title: string;
11913
12074
  type: string;
12075
+ description: string;
12076
+ properties: {
12077
+ partyIdInfo: {
12078
+ title: string;
12079
+ type: string;
12080
+ description: string;
12081
+ properties: {
12082
+ partyIdType: {
12083
+ title: string;
12084
+ type: string;
12085
+ enum: string[];
12086
+ description: string;
12087
+ };
12088
+ partyIdentifier: {
12089
+ title: string;
12090
+ type: string;
12091
+ minLength: number;
12092
+ maxLength: number;
12093
+ description: string;
12094
+ example: string;
12095
+ };
12096
+ partySubIdOrType: {
12097
+ title: string;
12098
+ type: string;
12099
+ minLength: number;
12100
+ maxLength: number;
12101
+ description: string;
12102
+ };
12103
+ fspId: {
12104
+ title: string;
12105
+ type: string;
12106
+ minLength: number;
12107
+ maxLength: number;
12108
+ description: string;
12109
+ };
12110
+ extensionList: {
12111
+ title: string;
12112
+ type: string;
12113
+ description: string;
12114
+ properties: {
12115
+ extension: {
12116
+ type: string;
12117
+ items: {
12118
+ title: string;
12119
+ type: string;
12120
+ description: string;
12121
+ properties: {
12122
+ key: {
12123
+ title: string;
12124
+ type: string;
12125
+ minLength: number;
12126
+ maxLength: number;
12127
+ description: string;
12128
+ };
12129
+ value: {
12130
+ title: string;
12131
+ type: string;
12132
+ minLength: number;
12133
+ maxLength: number;
12134
+ description: string;
12135
+ };
12136
+ };
12137
+ required: string[];
12138
+ };
12139
+ minItems: number;
12140
+ maxItems: number;
12141
+ description: string;
12142
+ };
12143
+ };
12144
+ required: string[];
12145
+ };
12146
+ };
12147
+ required: string[];
12148
+ };
12149
+ merchantClassificationCode: {
12150
+ title: string;
12151
+ type: string;
12152
+ pattern: string;
12153
+ description: string;
12154
+ };
12155
+ name: {
12156
+ title: string;
12157
+ type: string;
12158
+ minLength: number;
12159
+ maxLength: number;
12160
+ description: string;
12161
+ };
12162
+ personalInfo: {
12163
+ title: string;
12164
+ type: string;
12165
+ description: string;
12166
+ properties: {
12167
+ complexName: {
12168
+ title: string;
12169
+ type: string;
12170
+ description: string;
12171
+ properties: {
12172
+ firstName: {
12173
+ title: string;
12174
+ type: string;
12175
+ minLength: number;
12176
+ maxLength: number;
12177
+ pattern: string;
12178
+ description: string;
12179
+ example: string;
12180
+ };
12181
+ middleName: {
12182
+ title: string;
12183
+ type: string;
12184
+ minLength: number;
12185
+ maxLength: number;
12186
+ pattern: string;
12187
+ description: string;
12188
+ example: string;
12189
+ };
12190
+ lastName: {
12191
+ title: string;
12192
+ type: string;
12193
+ minLength: number;
12194
+ maxLength: number;
12195
+ pattern: string;
12196
+ description: string;
12197
+ example: string;
12198
+ };
12199
+ };
12200
+ };
12201
+ dateOfBirth: {
12202
+ title: string;
12203
+ type: string;
12204
+ pattern: string;
12205
+ description: string;
12206
+ example: string;
12207
+ };
12208
+ kycInformation: {
12209
+ title: string;
12210
+ type: string;
12211
+ minLength: number;
12212
+ maxLength: number;
12213
+ description: string;
12214
+ example: string;
12215
+ };
12216
+ };
12217
+ };
12218
+ supportedCurrencies: {
12219
+ type: string;
12220
+ description: string;
12221
+ items: {
12222
+ title: string;
12223
+ description: string;
12224
+ type: string;
12225
+ minLength: number;
12226
+ maxLength: number;
12227
+ enum: string[];
12228
+ };
12229
+ minItems: number;
12230
+ maxItems: number;
12231
+ };
12232
+ };
12233
+ required: string[];
11914
12234
  };
11915
12235
  headers: {
11916
12236
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "17.7.3",
3
+ "version": "17.7.5",
4
4
  "description": "Mojaloop API specification reusable snippets",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -86,7 +86,7 @@
86
86
  "js-yaml": "^4.1.0",
87
87
  "json-refs": "^3.0.15",
88
88
  "openapi-types": "^12.1.3",
89
- "openapi-typescript": "^7.4.2",
89
+ "openapi-typescript": "^7.4.3",
90
90
  "ts-auto-mock": "^3.7.4"
91
91
  },
92
92
  "overrides": {
@@ -94,14 +94,14 @@
94
94
  "@types/responselike": "^1.0.0"
95
95
  },
96
96
  "devDependencies": {
97
- "@commitlint/cli": "^19.5.0",
98
- "@commitlint/config-conventional": "^19.5.0",
97
+ "@commitlint/cli": "^19.6.0",
98
+ "@commitlint/config-conventional": "^19.6.0",
99
99
  "@redocly/openapi-cli": "^1.0.0-beta.95",
100
100
  "@redocly/cli": "^1.5.0",
101
101
  "@types/jest": "^29.5.14",
102
102
  "@types/js-yaml": "^4.0.9",
103
- "@typescript-eslint/eslint-plugin": "^8.12.2",
104
- "@typescript-eslint/parser": "^8.12.2",
103
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
104
+ "@typescript-eslint/parser": "^8.15.0",
105
105
  "audit-ci": "^7.1.0",
106
106
  "browser-sync": "^3.0.3",
107
107
  "diff": "^7.0.0",
@@ -115,19 +115,19 @@
115
115
  "eslint-plugin-prettier": "^5.2.1",
116
116
  "eslint-plugin-promise": "^6.2.0",
117
117
  "eslint-plugin-standard": "^5.0.0",
118
- "husky": "9.1.6",
118
+ "husky": "9.1.7",
119
119
  "jest": "^29.7.0",
120
120
  "jest-junit": "^16.0.0",
121
121
  "lint-staged": "^15.2.10",
122
- "npm-check-updates": "^17.1.9",
122
+ "npm-check-updates": "^17.1.11",
123
123
  "prettier": "^3.3.3",
124
124
  "standard-version": "^9.5.0",
125
125
  "swagger-cli": "^4.0.4",
126
126
  "ts-jest": "^29.2.5",
127
127
  "ts-node": "^10.9.2",
128
128
  "ts-patch": "^3.2.1",
129
- "tslib": "^2.8.0",
130
- "typescript": "^5.6.3"
129
+ "tslib": "^2.8.1",
130
+ "typescript": "^5.7.2"
131
131
  },
132
132
  "publishConfig": {
133
133
  "registry": "https://registry.npmjs.org/"
@@ -944,7 +944,7 @@ components:
944
944
  fulfil:
945
945
  properties:
946
946
  body:
947
- type: object
947
+ $ref: ../components/schemas/TransfersIDPutResponse.yaml
948
948
  headers:
949
949
  type: object
950
950
  type: object
@@ -955,34 +955,34 @@ components:
955
955
  prepare:
956
956
  properties:
957
957
  body:
958
- type: object
958
+ $ref: '../components/schemas/TransfersPostRequest.yaml'
959
959
  headers:
960
960
  type: object
961
961
  type: object
962
962
  quote:
963
963
  properties:
964
964
  fulfilment:
965
- type: string
965
+ $ref: '../components/schemas/IlpFulfilment.yaml'
966
966
  internalRequest:
967
- type: object
967
+ $ref: '#/components/schemas/quoteRequest'
968
968
  mojaloopResponse:
969
- type: object
969
+ $ref: '../components/schemas/QuotesIDPutResponse.yaml'
970
970
  request:
971
- type: object
971
+ $ref: '../components/schemas/QuotesPostRequest.yaml'
972
972
  response:
973
- type: object
973
+ $ref: '#/components/schemas/quoteResponse'
974
974
  type: object
975
975
  quoteRequest:
976
976
  properties:
977
977
  body:
978
- type: object
978
+ $ref: '../components/schemas/QuotesPostRequest.yaml'
979
979
  headers:
980
980
  type: object
981
981
  type: object
982
982
  quoteResponse:
983
983
  properties:
984
984
  body:
985
- type: object
985
+ $ref: '../components/schemas/QuotesIDPutResponse.yaml'
986
986
  headers:
987
987
  type: object
988
988
  type: object
@@ -41,7 +41,7 @@ properties:
41
41
  - body
42
42
  properties:
43
43
  body:
44
- type: object
44
+ $ref: ./Party.yaml
45
45
  headers:
46
46
  type: object
47
47
  quoteResponse: