@mojaloop/api-snippets 17.2.0-snapshot.2 → 17.2.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/CHANGELOG.md +7 -0
- package/docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml +105 -2
- 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 +57 -2
- 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 +4 -0
- 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/package.json +9 -9
- 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
@@ -111,6 +111,10 @@ var Schemas;
|
|
111
111
|
Schemas.transferResponse = json_schemas_json_1.default.transferResponse;
|
112
112
|
Schemas.errorTransferResponse = json_schemas_json_1.default.errorTransferResponse;
|
113
113
|
Schemas.requestToPayTransferRequest = json_schemas_json_1.default.requestToPayTransferRequest;
|
114
|
+
Schemas.AuthenticationValue = json_schemas_json_1.default.AuthenticationValue;
|
115
|
+
Schemas.AuthenticationInfo = json_schemas_json_1.default.AuthenticationInfo;
|
116
|
+
Schemas.AuthorizationResponseType = json_schemas_json_1.default.AuthorizationResponseType;
|
117
|
+
Schemas.AuthorizationIDPutResponse = json_schemas_json_1.default.AuthorizationIDPutResponse;
|
114
118
|
Schemas.requestToPayTransferResponse = json_schemas_json_1.default.requestToPayTransferResponse;
|
115
119
|
Schemas.transferContinuationAcceptOTP = json_schemas_json_1.default.transferContinuationAcceptOTP;
|
116
120
|
Schemas.TransfersPostRequest = json_schemas_json_1.default.TransfersPostRequest;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/sdk-scheme-adapter/v2_0_0/outbound/schemas.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;AAEpD,kEAAkE;AAElE,oFAA6C;AAE7C,IAAiB,OAAO,
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/sdk-scheme-adapter/v2_0_0/outbound/schemas.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;AAEpD,kEAAkE;AAElE,oFAA6C;AAE7C,IAAiB,OAAO,CAqHvB;AArHD,WAAiB,OAAO;IACT,mBAAW,GAAG,2BAAW,CAAC,WAAW,CAAA;IACrC,uBAAe,GAAG,2BAAW,CAAC,eAAe,CAAA;IAC7C,wBAAgB,GAAG,2BAAW,CAAC,gBAAgB,CAAA;IAC/C,gBAAQ,GAAG,2BAAW,CAAC,QAAQ,CAAA;IAC/B,uBAAe,GAAG,2BAAW,CAAC,eAAe,CAAA;IAC7C,qBAAa,GAAG,2BAAW,CAAC,aAAa,CAAA;IACzC,qBAAa,GAAG,2BAAW,CAAC,aAAa,CAAA;IACzC,6BAAqB,GAAG,2BAAW,CAAC,qBAAqB,CAAA;IACzD,6BAAqB,GAAG,2BAAW,CAAC,qBAAqB,CAAA;IACzD,iBAAS,GAAG,2BAAW,CAAC,SAAS,CAAA;IACjC,wBAAgB,GAAG,2BAAW,CAAC,gBAAgB,CAAA;IAC/C,oBAAY,GAAG,2BAAW,CAAC,YAAY,CAAA;IACvC,sBAAc,GAAG,2BAAW,CAAC,cAAc,CAAA;IAC3C,iBAAS,GAAG,2BAAW,CAAC,SAAS,CAAA;IACjC,qBAAa,GAAG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as']['transferResponse'];
|
106
106
|
type errorTransferResponse = components['schemas']['errorTransferResponse'];
|
107
107
|
type requestToPayTransferRequest = components['schemas']['requestToPayTransferRequest'];
|
108
|
+
type AuthenticationValue = components['schemas']['AuthenticationValue'];
|
109
|
+
type AuthenticationInfo = components['schemas']['AuthenticationInfo'];
|
110
|
+
type AuthorizationResponseType = components['schemas']['AuthorizationResponseType'];
|
111
|
+
type AuthorizationIDPutResponse = components['schemas']['AuthorizationIDPutResponse'];
|
108
112
|
type requestToPayTransferResponse = components['schemas']['requestToPayTransferResponse'];
|
109
113
|
type transferContinuationAcceptOTP = components['schemas']['transferContinuationAcceptOTP'];
|
110
114
|
type TransfersPostRequest = components['schemas']['TransfersPostRequest'];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mojaloop/api-snippets",
|
3
|
-
"version": "17.2.0
|
3
|
+
"version": "17.2.0",
|
4
4
|
"description": "Mojaloop API specification reusable snippets",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -82,16 +82,16 @@
|
|
82
82
|
"@types/responselike": "^1.0.0"
|
83
83
|
},
|
84
84
|
"devDependencies": {
|
85
|
-
"@commitlint/cli": "^17.6.
|
86
|
-
"@commitlint/config-conventional": "^17.6.
|
85
|
+
"@commitlint/cli": "^17.6.5",
|
86
|
+
"@commitlint/config-conventional": "^17.6.5",
|
87
87
|
"@redocly/openapi-cli": "^1.0.0-beta.94",
|
88
|
-
"@types/jest": "^29.5.
|
89
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
90
|
-
"@typescript-eslint/parser": "^5.59.
|
88
|
+
"@types/jest": "^29.5.2",
|
89
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
90
|
+
"@typescript-eslint/parser": "^5.59.8",
|
91
91
|
"diff": "^5.1.0",
|
92
|
-
"eslint": "^8.
|
92
|
+
"eslint": "^8.42.0",
|
93
93
|
"eslint-config-prettier": "^8.8.0",
|
94
|
-
"eslint-config-standard": "^17.
|
94
|
+
"eslint-config-standard": "^17.1.0",
|
95
95
|
"eslint-import-resolver-typescript": "^3.5.5",
|
96
96
|
"eslint-plugin-cucumber": "^2.0.0",
|
97
97
|
"eslint-plugin-import": "^2.27.5",
|
@@ -110,7 +110,7 @@
|
|
110
110
|
"swagger-cli": "^4.0.4",
|
111
111
|
"ts-jest": "^29.1.0",
|
112
112
|
"ts-node": "^10.9.1",
|
113
|
-
"tslib": "^2.5.
|
113
|
+
"tslib": "^2.5.3",
|
114
114
|
"typescript": "^4.9.4"
|
115
115
|
},
|
116
116
|
"publishConfig": {
|
@@ -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.
|