@matech/thebigpos-sdk 3.25.0-dev-7825 → 3.25.0-dev-7840
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/dist/index.cjs +4 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matech/thebigpos-sdk",
|
|
3
|
-
"version": "3.25.0-dev-
|
|
3
|
+
"version": "3.25.0-dev-7840",
|
|
4
4
|
"description": "The Big POS Typescript SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"brace-expansion": "^5.0.12",
|
|
51
51
|
"follow-redirects": "^1.16.1"
|
|
52
52
|
},
|
|
53
|
-
"swaggerSha256": "
|
|
53
|
+
"swaggerSha256": "be22e33d1815f357b2caf149e18bcf00b399d765a0dfdbd630774ba0c232a7e7"
|
|
54
54
|
}
|
package/src/index.ts
CHANGED
|
@@ -12176,9 +12176,14 @@ export class Api<
|
|
|
12176
12176
|
* @secure
|
|
12177
12177
|
* @response `200` `UserDeactivated` OK
|
|
12178
12178
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12179
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
12180
|
+
* @response `503` `void` Service Unavailable
|
|
12179
12181
|
*/
|
|
12180
12182
|
getToken: (data: TokenRequest, params: RequestParams = {}) =>
|
|
12181
|
-
this.request<
|
|
12183
|
+
this.request<
|
|
12184
|
+
UserDeactivated,
|
|
12185
|
+
UnprocessableEntity | ProblemDetails | void
|
|
12186
|
+
>({
|
|
12182
12187
|
path: `/api/token`,
|
|
12183
12188
|
method: "POST",
|
|
12184
12189
|
body: data,
|
|
@@ -12197,13 +12202,15 @@ export class Api<
|
|
|
12197
12202
|
* @request POST:/api/token/code
|
|
12198
12203
|
* @secure
|
|
12199
12204
|
* @response `200` `UserDeactivated` OK
|
|
12205
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
12200
12206
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12207
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
12201
12208
|
*/
|
|
12202
12209
|
getTokenFromChallengeCode: (
|
|
12203
12210
|
data: TokenChallengeRequest,
|
|
12204
12211
|
params: RequestParams = {},
|
|
12205
12212
|
) =>
|
|
12206
|
-
this.request<UserDeactivated, UnprocessableEntity>({
|
|
12213
|
+
this.request<UserDeactivated, ProblemDetails | UnprocessableEntity>({
|
|
12207
12214
|
path: `/api/token/code`,
|
|
12208
12215
|
method: "POST",
|
|
12209
12216
|
body: data,
|