@mojaloop/api-snippets 17.2.0-snapshot.2 → 17.2.3
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/CHANGELOG.md +21 -0
- package/docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml +105 -2
- package/jest.config.js +2 -4
- package/lib/fspiop/v1_0/openapi.d.ts +791 -1490
- package/lib/fspiop/v1_1/openapi.d.ts +811 -1523
- package/lib/sdk-scheme-adapter/v2_0_0/backend/openapi.d.ts +189 -141
- package/lib/sdk-scheme-adapter/v2_0_0/backend/schemas.js +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/backend/schemas.js.map +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/json-schemas.json +1233 -905
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/openapi.d.ts +264 -198
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.d.ts +457 -160
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.js +5 -1
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.js.map +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/types.d.ts +4 -0
- package/lib/thirdparty/openapi.d.ts +655 -1454
- package/package.json +24 -34
- package/sdk-scheme-adapter/v2_0_0/components/schemas/AuthenticationInfo.yaml +11 -0
- package/sdk-scheme-adapter/v2_0_0/components/schemas/AuthenticationValue.yaml +44 -0
- package/sdk-scheme-adapter/v2_0_0/components/schemas/AuthorizationIDPutResponse.yaml +10 -0
- package/sdk-scheme-adapter/v2_0_0/components/schemas/AuthorizationResponseType.yaml +12 -0
- package/sdk-scheme-adapter/v2_0_0/components/schemas/requestToPayTransferResponse.yaml +25 -2
package/package.json
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mojaloop/api-snippets",
|
3
|
-
"version": "17.2.
|
3
|
+
"version": "17.2.3",
|
4
4
|
"description": "Mojaloop API specification reusable snippets",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
7
|
-
"engines": {
|
8
|
-
"node": "=16.x"
|
9
|
-
},
|
10
7
|
"scripts": {
|
11
8
|
"audit:resolve": "SHELL=sh resolve-audit --production",
|
12
9
|
"audit:check": "SHELL=sh check-audit --production",
|
@@ -38,13 +35,6 @@
|
|
38
35
|
"snapshot": "standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'",
|
39
36
|
"test:unit": "jest --testMatch '**/test/dto/*.(test|spec).ts'"
|
40
37
|
},
|
41
|
-
"husky": {
|
42
|
-
"hooks": {
|
43
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
44
|
-
"pre-commit": "lint-staged; npm run test:unit",
|
45
|
-
"post-commit": "git update-index --again"
|
46
|
-
}
|
47
|
-
},
|
48
38
|
"lint-staged": {
|
49
39
|
"*.{js,ts}": "eslint --cache --fix"
|
50
40
|
},
|
@@ -68,50 +58,50 @@
|
|
68
58
|
"license": "Apache-2.0",
|
69
59
|
"dependencies": {
|
70
60
|
"@apidevtools/json-schema-ref-parser": "^9.1.2",
|
71
|
-
"commander": "^
|
61
|
+
"commander": "^11.0.0",
|
72
62
|
"jest-ts-auto-mock": "^2.1.0",
|
73
63
|
"js-yaml": "^4.1.0",
|
74
64
|
"json-refs": "^3.0.15",
|
75
65
|
"openapi-types": "^12.1.3",
|
76
|
-
"openapi-typescript": "^5.
|
77
|
-
"ts-auto-mock": "^3.
|
78
|
-
"ttypescript": "^1.5.15"
|
66
|
+
"openapi-typescript": "^6.5.0",
|
67
|
+
"ts-auto-mock": "^3.7.1"
|
79
68
|
},
|
80
69
|
"overrides": {
|
81
70
|
"@types/cacheable-request": "^6.0.2",
|
82
71
|
"@types/responselike": "^1.0.0"
|
83
72
|
},
|
84
73
|
"devDependencies": {
|
85
|
-
"@commitlint/cli": "^17.
|
86
|
-
"@commitlint/config-conventional": "^17.
|
74
|
+
"@commitlint/cli": "^17.7.1",
|
75
|
+
"@commitlint/config-conventional": "^17.7.0",
|
87
76
|
"@redocly/openapi-cli": "^1.0.0-beta.94",
|
88
|
-
"@types/jest": "^29.5.
|
89
|
-
"@typescript-eslint/eslint-plugin": "^
|
90
|
-
"@typescript-eslint/parser": "^
|
77
|
+
"@types/jest": "^29.5.3",
|
78
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
79
|
+
"@typescript-eslint/parser": "^6.4.0",
|
91
80
|
"diff": "^5.1.0",
|
92
|
-
"eslint": "^8.
|
93
|
-
"eslint-config-prettier": "^
|
94
|
-
"eslint-config-standard": "^17.
|
95
|
-
"eslint-import-resolver-typescript": "^3.
|
81
|
+
"eslint": "^8.47.0",
|
82
|
+
"eslint-config-prettier": "^9.0.0",
|
83
|
+
"eslint-config-standard": "^17.1.0",
|
84
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
96
85
|
"eslint-plugin-cucumber": "^2.0.0",
|
97
|
-
"eslint-plugin-import": "^2.
|
86
|
+
"eslint-plugin-import": "^2.28.0",
|
98
87
|
"eslint-plugin-node": "^11.1.0",
|
99
|
-
"eslint-plugin-prettier": "^
|
88
|
+
"eslint-plugin-prettier": "^5.0.0",
|
100
89
|
"eslint-plugin-promise": "^6.1.1",
|
101
90
|
"eslint-plugin-standard": "^5.0.0",
|
102
|
-
"husky": "
|
103
|
-
"jest": "^29.
|
91
|
+
"husky": "8.0.3",
|
92
|
+
"jest": "^29.6.2",
|
104
93
|
"jest-junit": "^16.0.0",
|
105
|
-
"lint-staged": "^
|
94
|
+
"lint-staged": "^14.0.0",
|
106
95
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
107
|
-
"npm-check-updates": "^16.
|
108
|
-
"prettier": "^
|
96
|
+
"npm-check-updates": "^16.11.2",
|
97
|
+
"prettier": "^3.0.2",
|
109
98
|
"standard-version": "^9.5.0",
|
110
99
|
"swagger-cli": "^4.0.4",
|
111
|
-
"ts-jest": "^29.1.
|
100
|
+
"ts-jest": "^29.1.1",
|
112
101
|
"ts-node": "^10.9.1",
|
113
|
-
"
|
114
|
-
"
|
102
|
+
"ts-patch": "^3.0.2",
|
103
|
+
"tslib": "^2.6.1",
|
104
|
+
"typescript": "^5.1.6"
|
115
105
|
},
|
116
106
|
"publishConfig": {
|
117
107
|
"registry": "https://registry.npmjs.org/"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
title: AuthenticationInfo
|
2
|
+
type: object
|
3
|
+
description: Data model for the complex type AuthenticationInfo.
|
4
|
+
properties:
|
5
|
+
authentication:
|
6
|
+
$ref: ./AuthenticationType.yaml
|
7
|
+
authenticationValue:
|
8
|
+
$ref: ./AuthenticationValue.yaml
|
9
|
+
required:
|
10
|
+
- authentication
|
11
|
+
- authenticationValue
|
@@ -0,0 +1,44 @@
|
|
1
|
+
title: AuthenticationValue
|
2
|
+
anyOf:
|
3
|
+
- title: OtpValue
|
4
|
+
type: string
|
5
|
+
pattern: ^\d{3,10}$
|
6
|
+
description: >-
|
7
|
+
The API data type OtpValue is a JSON String of 3 to 10 characters,
|
8
|
+
consisting of digits only. Negative numbers are not allowed. One or more
|
9
|
+
leading zeros are allowed.
|
10
|
+
- title: QRCODE
|
11
|
+
type: string
|
12
|
+
minLength: 1
|
13
|
+
maxLength: 64
|
14
|
+
description: QR code used as a One Time Password.
|
15
|
+
- title: U2FPinValue
|
16
|
+
type: object
|
17
|
+
description: >
|
18
|
+
U2F challenge-response, where payer FSP verifies if the response
|
19
|
+
provided by end-user device matches the previously registered key.
|
20
|
+
properties:
|
21
|
+
pinValue:
|
22
|
+
type: string
|
23
|
+
pattern: ^\S{1,64}$
|
24
|
+
minLength: 1
|
25
|
+
maxLength: 64
|
26
|
+
description: >
|
27
|
+
U2F challenge-response, where payer FSP verifies if the response
|
28
|
+
provided by end-user device matches the previously registered key.
|
29
|
+
counter:
|
30
|
+
title: Integer
|
31
|
+
type: string
|
32
|
+
pattern: ^[1-9]\d*$
|
33
|
+
description: >-
|
34
|
+
Sequential counter used for cloning detection. Present only for U2F
|
35
|
+
authentication.
|
36
|
+
required:
|
37
|
+
- pinValue
|
38
|
+
- counter
|
39
|
+
pattern: ^\d{3,10}$|^\S{1,64}$
|
40
|
+
description: >-
|
41
|
+
Contains the authentication value. The format depends on the
|
42
|
+
authentication type used in the AuthenticationInfo complex type.
|
43
|
+
|
44
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
title: AuthorizationIDPutResponse
|
2
|
+
type: object
|
3
|
+
description: The object sent in the PUT /authorizations/{ID} callback.
|
4
|
+
properties:
|
5
|
+
authenticationInfo:
|
6
|
+
$ref: ./AuthenticationInfo.yaml
|
7
|
+
responseType:
|
8
|
+
$ref: ./AuthorizationResponseType.yaml
|
9
|
+
required:
|
10
|
+
- responseType
|
@@ -0,0 +1,12 @@
|
|
1
|
+
title: AuthorizationResponseType
|
2
|
+
type: string
|
3
|
+
enum:
|
4
|
+
- ENTERED
|
5
|
+
- REJECTED
|
6
|
+
- RESEND
|
7
|
+
description: |-
|
8
|
+
Below are the allowed values for the enumeration.
|
9
|
+
- ENTERED - Consumer entered the authentication value.
|
10
|
+
- REJECTED - Consumer rejected the transaction.
|
11
|
+
- RESEND - Consumer requested to resend the authentication value.
|
12
|
+
example: ENTERED
|
@@ -36,15 +36,38 @@ properties:
|
|
36
36
|
quoteId:
|
37
37
|
$ref: ./CorrelationId.yaml
|
38
38
|
quoteResponse:
|
39
|
-
|
39
|
+
type: object
|
40
|
+
required:
|
41
|
+
- body
|
42
|
+
properties:
|
43
|
+
body:
|
44
|
+
$ref: ./QuotesIDPutResponse.yaml
|
45
|
+
headers:
|
46
|
+
type: object
|
40
47
|
quoteResponseSource:
|
41
48
|
type: string
|
42
49
|
description: >
|
43
50
|
FSPID of the entity that supplied the quote response. This may not be the
|
44
51
|
same as the FSPID of the entity which owns the end user account in the
|
45
52
|
case of a FOREX transfer. i.e. it may be a FOREX gateway.
|
53
|
+
authorizationResponse:
|
54
|
+
type: object
|
55
|
+
required:
|
56
|
+
- body
|
57
|
+
properties:
|
58
|
+
body:
|
59
|
+
$ref: ./AuthorizationIDPutResponse.yaml
|
60
|
+
headers:
|
61
|
+
type: object
|
46
62
|
fulfil:
|
47
|
-
|
63
|
+
type: object
|
64
|
+
required:
|
65
|
+
- body
|
66
|
+
properties:
|
67
|
+
body:
|
68
|
+
$ref: ./TransfersIDPutResponse.yaml
|
69
|
+
headers:
|
70
|
+
type: object
|
48
71
|
lastError:
|
49
72
|
description: >
|
50
73
|
Object representing the last error to occur during a transfer process.
|