ce-storefront 0.15.7 → 0.15.8
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/README.md +2 -21
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/index.d.ts +0 -2
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +0 -2
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/operations/index.d.ts +0 -8
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +0 -8
- package/esm/models/operations/index.js.map +1 -1
- package/esm/sdk/sdk.d.ts +0 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -2
- package/src/models/operations/index.ts +0 -8
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/pos/README.md +0 -610
- package/esm/funcs/posCreatePosCart.d.ts +0 -17
- package/esm/funcs/posCreatePosCart.d.ts.map +0 -1
- package/esm/funcs/posCreatePosCart.js +0 -80
- package/esm/funcs/posCreatePosCart.js.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithEmail.d.ts +0 -17
- package/esm/funcs/posLoginPosDeviceWithEmail.d.ts.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithEmail.js +0 -85
- package/esm/funcs/posLoginPosDeviceWithEmail.js.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithPhone.d.ts +0 -17
- package/esm/funcs/posLoginPosDeviceWithPhone.d.ts.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithPhone.js +0 -85
- package/esm/funcs/posLoginPosDeviceWithPhone.js.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts +0 -17
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.js +0 -85
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.js.map +0 -1
- package/esm/funcs/posPairPosDevice.d.ts +0 -17
- package/esm/funcs/posPairPosDevice.d.ts.map +0 -1
- package/esm/funcs/posPairPosDevice.js +0 -84
- package/esm/funcs/posPairPosDevice.js.map +0 -1
- package/esm/funcs/posRefreshPosAccessToken.d.ts +0 -17
- package/esm/funcs/posRefreshPosAccessToken.d.ts.map +0 -1
- package/esm/funcs/posRefreshPosAccessToken.js +0 -81
- package/esm/funcs/posRefreshPosAccessToken.js.map +0 -1
- package/esm/funcs/posUpdatePosCart.d.ts +0 -17
- package/esm/funcs/posUpdatePosCart.d.ts.map +0 -1
- package/esm/funcs/posUpdatePosCart.js +0 -84
- package/esm/funcs/posUpdatePosCart.js.map +0 -1
- package/esm/funcs/posVerifyPosLoginOtp.d.ts +0 -17
- package/esm/funcs/posVerifyPosLoginOtp.d.ts.map +0 -1
- package/esm/funcs/posVerifyPosLoginOtp.js +0 -84
- package/esm/funcs/posVerifyPosLoginOtp.js.map +0 -1
- package/esm/models/components/posdevice.d.ts +0 -71
- package/esm/models/components/posdevice.d.ts.map +0 -1
- package/esm/models/components/posdevice.js +0 -85
- package/esm/models/components/posdevice.js.map +0 -1
- package/esm/models/components/posuser.d.ts +0 -124
- package/esm/models/components/posuser.d.ts.map +0 -1
- package/esm/models/components/posuser.js +0 -139
- package/esm/models/components/posuser.js.map +0 -1
- package/esm/models/operations/createposcart.d.ts +0 -90
- package/esm/models/operations/createposcart.d.ts.map +0 -1
- package/esm/models/operations/createposcart.js +0 -86
- package/esm/models/operations/createposcart.js.map +0 -1
- package/esm/models/operations/loginposdevicewithemail.d.ts +0 -138
- package/esm/models/operations/loginposdevicewithemail.d.ts.map +0 -1
- package/esm/models/operations/loginposdevicewithemail.js +0 -159
- package/esm/models/operations/loginposdevicewithemail.js.map +0 -1
- package/esm/models/operations/loginposdevicewithphone.d.ts +0 -146
- package/esm/models/operations/loginposdevicewithphone.d.ts.map +0 -1
- package/esm/models/operations/loginposdevicewithphone.js +0 -163
- package/esm/models/operations/loginposdevicewithphone.js.map +0 -1
- package/esm/models/operations/loginposdevicewithwhatsapp.d.ts +0 -146
- package/esm/models/operations/loginposdevicewithwhatsapp.d.ts.map +0 -1
- package/esm/models/operations/loginposdevicewithwhatsapp.js +0 -163
- package/esm/models/operations/loginposdevicewithwhatsapp.js.map +0 -1
- package/esm/models/operations/pairposdevice.d.ts +0 -112
- package/esm/models/operations/pairposdevice.d.ts.map +0 -1
- package/esm/models/operations/pairposdevice.js +0 -128
- package/esm/models/operations/pairposdevice.js.map +0 -1
- package/esm/models/operations/refreshposaccesstoken.d.ts +0 -88
- package/esm/models/operations/refreshposaccesstoken.d.ts.map +0 -1
- package/esm/models/operations/refreshposaccesstoken.js +0 -106
- package/esm/models/operations/refreshposaccesstoken.js.map +0 -1
- package/esm/models/operations/updateposcart.d.ts +0 -120
- package/esm/models/operations/updateposcart.d.ts.map +0 -1
- package/esm/models/operations/updateposcart.js +0 -122
- package/esm/models/operations/updateposcart.js.map +0 -1
- package/esm/models/operations/verifyposloginotp.d.ts +0 -158
- package/esm/models/operations/verifyposloginotp.d.ts.map +0 -1
- package/esm/models/operations/verifyposloginotp.js +0 -169
- package/esm/models/operations/verifyposloginotp.js.map +0 -1
- package/esm/sdk/pos.d.ts +0 -61
- package/esm/sdk/pos.d.ts.map +0 -1
- package/esm/sdk/pos.js +0 -88
- package/esm/sdk/pos.js.map +0 -1
- package/src/funcs/posCreatePosCart.ts +0 -165
- package/src/funcs/posLoginPosDeviceWithEmail.ts +0 -173
- package/src/funcs/posLoginPosDeviceWithPhone.ts +0 -173
- package/src/funcs/posLoginPosDeviceWithWhatsapp.ts +0 -176
- package/src/funcs/posPairPosDevice.ts +0 -174
- package/src/funcs/posRefreshPosAccessToken.ts +0 -164
- package/src/funcs/posUpdatePosCart.ts +0 -167
- package/src/funcs/posVerifyPosLoginOtp.ts +0 -174
- package/src/models/components/posdevice.ts +0 -141
- package/src/models/components/posuser.ts +0 -263
- package/src/models/operations/createposcart.ts +0 -197
- package/src/models/operations/loginposdevicewithemail.ts +0 -328
- package/src/models/operations/loginposdevicewithphone.ts +0 -340
- package/src/models/operations/loginposdevicewithwhatsapp.ts +0 -347
- package/src/models/operations/pairposdevice.ts +0 -269
- package/src/models/operations/refreshposaccesstoken.ts +0 -223
- package/src/models/operations/updateposcart.ts +0 -271
- package/src/models/operations/verifyposloginotp.ts +0 -345
- package/src/sdk/pos.ts +0 -163
package/esm/sdk/pos.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Pos extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Pair POS device
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Pair POS device
|
|
9
|
-
*/
|
|
10
|
-
pairPosDevice(security: operations.PairPosDeviceSecurity, request?: operations.PairPosDeviceRequestBody | undefined, options?: RequestOptions): Promise<operations.PairPosDeviceResponseBody>;
|
|
11
|
-
/**
|
|
12
|
-
* Login with phone
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Login to POS device using phone.
|
|
16
|
-
*/
|
|
17
|
-
loginPosDeviceWithPhone(security: operations.LoginPosDeviceWithPhoneSecurity, request?: operations.LoginPosDeviceWithPhoneRequestBody | undefined, options?: RequestOptions): Promise<operations.LoginPosDeviceWithPhoneResponseBody>;
|
|
18
|
-
/**
|
|
19
|
-
* Login with whatsapp
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Login to POS device using whatsapp.
|
|
23
|
-
*/
|
|
24
|
-
loginPosDeviceWithWhatsapp(security: operations.LoginPosDeviceWithWhatsappSecurity, request?: operations.LoginPosDeviceWithWhatsappRequestBody | undefined, options?: RequestOptions): Promise<operations.LoginPosDeviceWithWhatsappResponseBody>;
|
|
25
|
-
/**
|
|
26
|
-
* Login with email
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* Login to POS device using email.
|
|
30
|
-
*/
|
|
31
|
-
loginPosDeviceWithEmail(security: operations.LoginPosDeviceWithEmailSecurity, request?: operations.LoginPosDeviceWithEmailRequestBody | undefined, options?: RequestOptions): Promise<operations.LoginPosDeviceWithEmailResponseBody>;
|
|
32
|
-
/**
|
|
33
|
-
* Verify OTP
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Verify POS login otp.
|
|
37
|
-
*/
|
|
38
|
-
verifyPosLoginOtp(security: operations.VerifyPosLoginOtpSecurity, request?: operations.VerifyPosLoginOtpRequestBody | undefined, options?: RequestOptions): Promise<operations.VerifyPosLoginOtpResponseBody>;
|
|
39
|
-
/**
|
|
40
|
-
* Refresh POS access token
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
* Refresh POS access token
|
|
44
|
-
*/
|
|
45
|
-
refreshPosAccessToken(request?: operations.RefreshPosAccessTokenRequestBody | undefined, options?: RequestOptions): Promise<operations.RefreshPosAccessTokenResponseBody>;
|
|
46
|
-
/**
|
|
47
|
-
* Create cart
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* Create cart from POS device
|
|
51
|
-
*/
|
|
52
|
-
createPosCart(request?: operations.CreatePosCartRequestBody | undefined, options?: RequestOptions): Promise<operations.CreatePosCartResponseBody>;
|
|
53
|
-
/**
|
|
54
|
-
* Add/update/delete cart item
|
|
55
|
-
*
|
|
56
|
-
* @remarks
|
|
57
|
-
* Add/update item to cart. To delete item from cart, pass quantity = 0
|
|
58
|
-
*/
|
|
59
|
-
updatePosCart(request: operations.UpdatePosCartRequest, options?: RequestOptions): Promise<operations.UpdatePosCartResponseBody>;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=pos.d.ts.map
|
package/esm/sdk/pos.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pos.d.ts","sourceRoot":"","sources":["../../src/sdk/pos.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,GAAI,SAAQ,SAAS;IAChC;;;;;OAKG;IACG,aAAa,CACjB,QAAQ,EAAE,UAAU,CAAC,qBAAqB,EAC1C,OAAO,CAAC,EAAE,UAAU,CAAC,wBAAwB,GAAG,SAAS,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAShD;;;;;OAKG;IACG,uBAAuB,CAC3B,QAAQ,EAAE,UAAU,CAAC,+BAA+B,EACpD,OAAO,CAAC,EAAE,UAAU,CAAC,kCAAkC,GAAG,SAAS,EACnE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAS1D;;;;;OAKG;IACG,0BAA0B,CAC9B,QAAQ,EAAE,UAAU,CAAC,kCAAkC,EACvD,OAAO,CAAC,EAAE,UAAU,CAAC,qCAAqC,GAAG,SAAS,EACtE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;IAS7D;;;;;OAKG;IACG,uBAAuB,CAC3B,QAAQ,EAAE,UAAU,CAAC,+BAA+B,EACpD,OAAO,CAAC,EAAE,UAAU,CAAC,kCAAkC,GAAG,SAAS,EACnE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAS1D;;;;;OAKG;IACG,iBAAiB,CACrB,QAAQ,EAAE,UAAU,CAAC,yBAAyB,EAC9C,OAAO,CAAC,EAAE,UAAU,CAAC,4BAA4B,GAAG,SAAS,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IASpD;;;;;OAKG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,UAAU,CAAC,gCAAgC,GAAG,SAAS,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAQxD;;;;;OAKG;IACG,aAAa,CACjB,OAAO,CAAC,EAAE,UAAU,CAAC,wBAAwB,GAAG,SAAS,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAOjD"}
|
package/esm/sdk/pos.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { posCreatePosCart } from "../funcs/posCreatePosCart.js";
|
|
5
|
-
import { posLoginPosDeviceWithEmail } from "../funcs/posLoginPosDeviceWithEmail.js";
|
|
6
|
-
import { posLoginPosDeviceWithPhone } from "../funcs/posLoginPosDeviceWithPhone.js";
|
|
7
|
-
import { posLoginPosDeviceWithWhatsapp } from "../funcs/posLoginPosDeviceWithWhatsapp.js";
|
|
8
|
-
import { posPairPosDevice } from "../funcs/posPairPosDevice.js";
|
|
9
|
-
import { posRefreshPosAccessToken } from "../funcs/posRefreshPosAccessToken.js";
|
|
10
|
-
import { posUpdatePosCart } from "../funcs/posUpdatePosCart.js";
|
|
11
|
-
import { posVerifyPosLoginOtp } from "../funcs/posVerifyPosLoginOtp.js";
|
|
12
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
13
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
-
export class Pos extends ClientSDK {
|
|
15
|
-
/**
|
|
16
|
-
* Pair POS device
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* Pair POS device
|
|
20
|
-
*/
|
|
21
|
-
async pairPosDevice(security, request, options) {
|
|
22
|
-
return unwrapAsync(posPairPosDevice(this, security, request, options));
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Login with phone
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* Login to POS device using phone.
|
|
29
|
-
*/
|
|
30
|
-
async loginPosDeviceWithPhone(security, request, options) {
|
|
31
|
-
return unwrapAsync(posLoginPosDeviceWithPhone(this, security, request, options));
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Login with whatsapp
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* Login to POS device using whatsapp.
|
|
38
|
-
*/
|
|
39
|
-
async loginPosDeviceWithWhatsapp(security, request, options) {
|
|
40
|
-
return unwrapAsync(posLoginPosDeviceWithWhatsapp(this, security, request, options));
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Login with email
|
|
44
|
-
*
|
|
45
|
-
* @remarks
|
|
46
|
-
* Login to POS device using email.
|
|
47
|
-
*/
|
|
48
|
-
async loginPosDeviceWithEmail(security, request, options) {
|
|
49
|
-
return unwrapAsync(posLoginPosDeviceWithEmail(this, security, request, options));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Verify OTP
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* Verify POS login otp.
|
|
56
|
-
*/
|
|
57
|
-
async verifyPosLoginOtp(security, request, options) {
|
|
58
|
-
return unwrapAsync(posVerifyPosLoginOtp(this, security, request, options));
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Refresh POS access token
|
|
62
|
-
*
|
|
63
|
-
* @remarks
|
|
64
|
-
* Refresh POS access token
|
|
65
|
-
*/
|
|
66
|
-
async refreshPosAccessToken(request, options) {
|
|
67
|
-
return unwrapAsync(posRefreshPosAccessToken(this, request, options));
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Create cart
|
|
71
|
-
*
|
|
72
|
-
* @remarks
|
|
73
|
-
* Create cart from POS device
|
|
74
|
-
*/
|
|
75
|
-
async createPosCart(request, options) {
|
|
76
|
-
return unwrapAsync(posCreatePosCart(this, request, options));
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Add/update/delete cart item
|
|
80
|
-
*
|
|
81
|
-
* @remarks
|
|
82
|
-
* Add/update item to cart. To delete item from cart, pass quantity = 0
|
|
83
|
-
*/
|
|
84
|
-
async updatePosCart(request, options) {
|
|
85
|
-
return unwrapAsync(posUpdatePosCart(this, request, options));
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=pos.js.map
|
package/esm/sdk/pos.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pos.js","sourceRoot":"","sources":["../../src/sdk/pos.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,GAAI,SAAQ,SAAS;IAChC;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,QAA0C,EAC1C,OAAyD,EACzD,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,QAAoD,EACpD,OAAmE,EACnE,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9B,QAAuD,EACvD,OAAsE,EACtE,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,QAAoD,EACpD,OAAmE,EACnE,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,QAA8C,EAC9C,OAA6D,EAC7D,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAiE,EACjE,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAyD,EACzD,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
-
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import { CeStorefrontError } from "../models/errors/cestorefronterror.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
-
import { Result } from "../types/fp.js";
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Create cart
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* Create cart from POS device
|
|
32
|
-
*/
|
|
33
|
-
export function posCreatePosCart(
|
|
34
|
-
client: CeStorefrontCore,
|
|
35
|
-
request?: operations.CreatePosCartRequestBody | undefined,
|
|
36
|
-
options?: RequestOptions,
|
|
37
|
-
): APIPromise<
|
|
38
|
-
Result<
|
|
39
|
-
operations.CreatePosCartResponseBody,
|
|
40
|
-
| CeStorefrontError
|
|
41
|
-
| ResponseValidationError
|
|
42
|
-
| ConnectionError
|
|
43
|
-
| RequestAbortedError
|
|
44
|
-
| RequestTimeoutError
|
|
45
|
-
| InvalidRequestError
|
|
46
|
-
| UnexpectedClientError
|
|
47
|
-
| SDKValidationError
|
|
48
|
-
>
|
|
49
|
-
> {
|
|
50
|
-
return new APIPromise($do(
|
|
51
|
-
client,
|
|
52
|
-
request,
|
|
53
|
-
options,
|
|
54
|
-
));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
async function $do(
|
|
58
|
-
client: CeStorefrontCore,
|
|
59
|
-
request?: operations.CreatePosCartRequestBody | undefined,
|
|
60
|
-
options?: RequestOptions,
|
|
61
|
-
): Promise<
|
|
62
|
-
[
|
|
63
|
-
Result<
|
|
64
|
-
operations.CreatePosCartResponseBody,
|
|
65
|
-
| CeStorefrontError
|
|
66
|
-
| ResponseValidationError
|
|
67
|
-
| ConnectionError
|
|
68
|
-
| RequestAbortedError
|
|
69
|
-
| RequestTimeoutError
|
|
70
|
-
| InvalidRequestError
|
|
71
|
-
| UnexpectedClientError
|
|
72
|
-
| SDKValidationError
|
|
73
|
-
>,
|
|
74
|
-
APICall,
|
|
75
|
-
]
|
|
76
|
-
> {
|
|
77
|
-
const parsed = safeParse(
|
|
78
|
-
request,
|
|
79
|
-
(value) =>
|
|
80
|
-
operations.CreatePosCartRequestBody$outboundSchema.optional().parse(
|
|
81
|
-
value,
|
|
82
|
-
),
|
|
83
|
-
"Input validation failed",
|
|
84
|
-
);
|
|
85
|
-
if (!parsed.ok) {
|
|
86
|
-
return [parsed, { status: "invalid" }];
|
|
87
|
-
}
|
|
88
|
-
const payload = parsed.value;
|
|
89
|
-
const body = payload === undefined
|
|
90
|
-
? null
|
|
91
|
-
: encodeJSON("body", payload, { explode: true });
|
|
92
|
-
|
|
93
|
-
const path = pathToFunc("/pos/carts")();
|
|
94
|
-
|
|
95
|
-
const headers = new Headers(compactMap({
|
|
96
|
-
"Content-Type": "application/json",
|
|
97
|
-
Accept: "application/json",
|
|
98
|
-
}));
|
|
99
|
-
|
|
100
|
-
const secConfig = await extractSecurity(client._options.authorization);
|
|
101
|
-
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
102
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
-
|
|
104
|
-
const context = {
|
|
105
|
-
options: client._options,
|
|
106
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
|
-
operationID: "create-pos-cart",
|
|
108
|
-
oAuth2Scopes: [],
|
|
109
|
-
|
|
110
|
-
resolvedSecurity: requestSecurity,
|
|
111
|
-
|
|
112
|
-
securitySource: client._options.authorization,
|
|
113
|
-
retryConfig: options?.retries
|
|
114
|
-
|| client._options.retryConfig
|
|
115
|
-
|| { strategy: "none" },
|
|
116
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
const requestRes = client._createRequest(context, {
|
|
120
|
-
security: requestSecurity,
|
|
121
|
-
method: "POST",
|
|
122
|
-
baseURL: options?.serverURL,
|
|
123
|
-
path: path,
|
|
124
|
-
headers: headers,
|
|
125
|
-
body: body,
|
|
126
|
-
userAgent: client._options.userAgent,
|
|
127
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
|
-
}, options);
|
|
129
|
-
if (!requestRes.ok) {
|
|
130
|
-
return [requestRes, { status: "invalid" }];
|
|
131
|
-
}
|
|
132
|
-
const req = requestRes.value;
|
|
133
|
-
|
|
134
|
-
const doResult = await client._do(req, {
|
|
135
|
-
context,
|
|
136
|
-
errorCodes: ["4XX", "5XX"],
|
|
137
|
-
retryConfig: context.retryConfig,
|
|
138
|
-
retryCodes: context.retryCodes,
|
|
139
|
-
});
|
|
140
|
-
if (!doResult.ok) {
|
|
141
|
-
return [doResult, { status: "request-error", request: req }];
|
|
142
|
-
}
|
|
143
|
-
const response = doResult.value;
|
|
144
|
-
|
|
145
|
-
const [result] = await M.match<
|
|
146
|
-
operations.CreatePosCartResponseBody,
|
|
147
|
-
| CeStorefrontError
|
|
148
|
-
| ResponseValidationError
|
|
149
|
-
| ConnectionError
|
|
150
|
-
| RequestAbortedError
|
|
151
|
-
| RequestTimeoutError
|
|
152
|
-
| InvalidRequestError
|
|
153
|
-
| UnexpectedClientError
|
|
154
|
-
| SDKValidationError
|
|
155
|
-
>(
|
|
156
|
-
M.json(200, operations.CreatePosCartResponseBody$inboundSchema),
|
|
157
|
-
M.fail("4XX"),
|
|
158
|
-
M.fail("5XX"),
|
|
159
|
-
)(response, req);
|
|
160
|
-
if (!result.ok) {
|
|
161
|
-
return [result, { status: "complete", request: req, response }];
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
return [result, { status: "complete", request: req, response }];
|
|
165
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import { resolveSecurity } from "../lib/security.js";
|
|
12
|
-
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import { CeStorefrontError } from "../models/errors/cestorefronterror.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
-
import { Result } from "../types/fp.js";
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Login with email
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* Login to POS device using email.
|
|
32
|
-
*/
|
|
33
|
-
export function posLoginPosDeviceWithEmail(
|
|
34
|
-
client: CeStorefrontCore,
|
|
35
|
-
security: operations.LoginPosDeviceWithEmailSecurity,
|
|
36
|
-
request?: operations.LoginPosDeviceWithEmailRequestBody | undefined,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<
|
|
39
|
-
Result<
|
|
40
|
-
operations.LoginPosDeviceWithEmailResponseBody,
|
|
41
|
-
| CeStorefrontError
|
|
42
|
-
| ResponseValidationError
|
|
43
|
-
| ConnectionError
|
|
44
|
-
| RequestAbortedError
|
|
45
|
-
| RequestTimeoutError
|
|
46
|
-
| InvalidRequestError
|
|
47
|
-
| UnexpectedClientError
|
|
48
|
-
| SDKValidationError
|
|
49
|
-
>
|
|
50
|
-
> {
|
|
51
|
-
return new APIPromise($do(
|
|
52
|
-
client,
|
|
53
|
-
security,
|
|
54
|
-
request,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function $do(
|
|
60
|
-
client: CeStorefrontCore,
|
|
61
|
-
security: operations.LoginPosDeviceWithEmailSecurity,
|
|
62
|
-
request?: operations.LoginPosDeviceWithEmailRequestBody | undefined,
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): Promise<
|
|
65
|
-
[
|
|
66
|
-
Result<
|
|
67
|
-
operations.LoginPosDeviceWithEmailResponseBody,
|
|
68
|
-
| CeStorefrontError
|
|
69
|
-
| ResponseValidationError
|
|
70
|
-
| ConnectionError
|
|
71
|
-
| RequestAbortedError
|
|
72
|
-
| RequestTimeoutError
|
|
73
|
-
| InvalidRequestError
|
|
74
|
-
| UnexpectedClientError
|
|
75
|
-
| SDKValidationError
|
|
76
|
-
>,
|
|
77
|
-
APICall,
|
|
78
|
-
]
|
|
79
|
-
> {
|
|
80
|
-
const parsed = safeParse(
|
|
81
|
-
request,
|
|
82
|
-
(value) =>
|
|
83
|
-
operations.LoginPosDeviceWithEmailRequestBody$outboundSchema.optional()
|
|
84
|
-
.parse(value),
|
|
85
|
-
"Input validation failed",
|
|
86
|
-
);
|
|
87
|
-
if (!parsed.ok) {
|
|
88
|
-
return [parsed, { status: "invalid" }];
|
|
89
|
-
}
|
|
90
|
-
const payload = parsed.value;
|
|
91
|
-
const body = payload === undefined
|
|
92
|
-
? null
|
|
93
|
-
: encodeJSON("body", payload, { explode: true });
|
|
94
|
-
|
|
95
|
-
const path = pathToFunc("/pos/auth/login/email")();
|
|
96
|
-
|
|
97
|
-
const headers = new Headers(compactMap({
|
|
98
|
-
"Content-Type": "application/json",
|
|
99
|
-
Accept: "application/json",
|
|
100
|
-
}));
|
|
101
|
-
|
|
102
|
-
const requestSecurity = resolveSecurity(
|
|
103
|
-
[
|
|
104
|
-
{
|
|
105
|
-
fieldName: "X-Api-Key",
|
|
106
|
-
type: "apiKey:header",
|
|
107
|
-
value: security?.xApiKey,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
const context = {
|
|
113
|
-
options: client._options,
|
|
114
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
-
operationID: "login-pos-device-with-email",
|
|
116
|
-
oAuth2Scopes: null,
|
|
117
|
-
|
|
118
|
-
resolvedSecurity: requestSecurity,
|
|
119
|
-
|
|
120
|
-
securitySource: security,
|
|
121
|
-
retryConfig: options?.retries
|
|
122
|
-
|| client._options.retryConfig
|
|
123
|
-
|| { strategy: "none" },
|
|
124
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const requestRes = client._createRequest(context, {
|
|
128
|
-
security: requestSecurity,
|
|
129
|
-
method: "POST",
|
|
130
|
-
baseURL: options?.serverURL,
|
|
131
|
-
path: path,
|
|
132
|
-
headers: headers,
|
|
133
|
-
body: body,
|
|
134
|
-
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
|
-
}, options);
|
|
137
|
-
if (!requestRes.ok) {
|
|
138
|
-
return [requestRes, { status: "invalid" }];
|
|
139
|
-
}
|
|
140
|
-
const req = requestRes.value;
|
|
141
|
-
|
|
142
|
-
const doResult = await client._do(req, {
|
|
143
|
-
context,
|
|
144
|
-
errorCodes: ["4XX", "5XX"],
|
|
145
|
-
retryConfig: context.retryConfig,
|
|
146
|
-
retryCodes: context.retryCodes,
|
|
147
|
-
});
|
|
148
|
-
if (!doResult.ok) {
|
|
149
|
-
return [doResult, { status: "request-error", request: req }];
|
|
150
|
-
}
|
|
151
|
-
const response = doResult.value;
|
|
152
|
-
|
|
153
|
-
const [result] = await M.match<
|
|
154
|
-
operations.LoginPosDeviceWithEmailResponseBody,
|
|
155
|
-
| CeStorefrontError
|
|
156
|
-
| ResponseValidationError
|
|
157
|
-
| ConnectionError
|
|
158
|
-
| RequestAbortedError
|
|
159
|
-
| RequestTimeoutError
|
|
160
|
-
| InvalidRequestError
|
|
161
|
-
| UnexpectedClientError
|
|
162
|
-
| SDKValidationError
|
|
163
|
-
>(
|
|
164
|
-
M.json(200, operations.LoginPosDeviceWithEmailResponseBody$inboundSchema),
|
|
165
|
-
M.fail("4XX"),
|
|
166
|
-
M.fail("5XX"),
|
|
167
|
-
)(response, req);
|
|
168
|
-
if (!result.ok) {
|
|
169
|
-
return [result, { status: "complete", request: req, response }];
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return [result, { status: "complete", request: req, response }];
|
|
173
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import { resolveSecurity } from "../lib/security.js";
|
|
12
|
-
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import { CeStorefrontError } from "../models/errors/cestorefronterror.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
-
import { Result } from "../types/fp.js";
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Login with phone
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* Login to POS device using phone.
|
|
32
|
-
*/
|
|
33
|
-
export function posLoginPosDeviceWithPhone(
|
|
34
|
-
client: CeStorefrontCore,
|
|
35
|
-
security: operations.LoginPosDeviceWithPhoneSecurity,
|
|
36
|
-
request?: operations.LoginPosDeviceWithPhoneRequestBody | undefined,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<
|
|
39
|
-
Result<
|
|
40
|
-
operations.LoginPosDeviceWithPhoneResponseBody,
|
|
41
|
-
| CeStorefrontError
|
|
42
|
-
| ResponseValidationError
|
|
43
|
-
| ConnectionError
|
|
44
|
-
| RequestAbortedError
|
|
45
|
-
| RequestTimeoutError
|
|
46
|
-
| InvalidRequestError
|
|
47
|
-
| UnexpectedClientError
|
|
48
|
-
| SDKValidationError
|
|
49
|
-
>
|
|
50
|
-
> {
|
|
51
|
-
return new APIPromise($do(
|
|
52
|
-
client,
|
|
53
|
-
security,
|
|
54
|
-
request,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function $do(
|
|
60
|
-
client: CeStorefrontCore,
|
|
61
|
-
security: operations.LoginPosDeviceWithPhoneSecurity,
|
|
62
|
-
request?: operations.LoginPosDeviceWithPhoneRequestBody | undefined,
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): Promise<
|
|
65
|
-
[
|
|
66
|
-
Result<
|
|
67
|
-
operations.LoginPosDeviceWithPhoneResponseBody,
|
|
68
|
-
| CeStorefrontError
|
|
69
|
-
| ResponseValidationError
|
|
70
|
-
| ConnectionError
|
|
71
|
-
| RequestAbortedError
|
|
72
|
-
| RequestTimeoutError
|
|
73
|
-
| InvalidRequestError
|
|
74
|
-
| UnexpectedClientError
|
|
75
|
-
| SDKValidationError
|
|
76
|
-
>,
|
|
77
|
-
APICall,
|
|
78
|
-
]
|
|
79
|
-
> {
|
|
80
|
-
const parsed = safeParse(
|
|
81
|
-
request,
|
|
82
|
-
(value) =>
|
|
83
|
-
operations.LoginPosDeviceWithPhoneRequestBody$outboundSchema.optional()
|
|
84
|
-
.parse(value),
|
|
85
|
-
"Input validation failed",
|
|
86
|
-
);
|
|
87
|
-
if (!parsed.ok) {
|
|
88
|
-
return [parsed, { status: "invalid" }];
|
|
89
|
-
}
|
|
90
|
-
const payload = parsed.value;
|
|
91
|
-
const body = payload === undefined
|
|
92
|
-
? null
|
|
93
|
-
: encodeJSON("body", payload, { explode: true });
|
|
94
|
-
|
|
95
|
-
const path = pathToFunc("/pos/auth/login/phone")();
|
|
96
|
-
|
|
97
|
-
const headers = new Headers(compactMap({
|
|
98
|
-
"Content-Type": "application/json",
|
|
99
|
-
Accept: "application/json",
|
|
100
|
-
}));
|
|
101
|
-
|
|
102
|
-
const requestSecurity = resolveSecurity(
|
|
103
|
-
[
|
|
104
|
-
{
|
|
105
|
-
fieldName: "X-Api-Key",
|
|
106
|
-
type: "apiKey:header",
|
|
107
|
-
value: security?.xApiKey,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
const context = {
|
|
113
|
-
options: client._options,
|
|
114
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
-
operationID: "login-pos-device-with-phone",
|
|
116
|
-
oAuth2Scopes: null,
|
|
117
|
-
|
|
118
|
-
resolvedSecurity: requestSecurity,
|
|
119
|
-
|
|
120
|
-
securitySource: security,
|
|
121
|
-
retryConfig: options?.retries
|
|
122
|
-
|| client._options.retryConfig
|
|
123
|
-
|| { strategy: "none" },
|
|
124
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const requestRes = client._createRequest(context, {
|
|
128
|
-
security: requestSecurity,
|
|
129
|
-
method: "POST",
|
|
130
|
-
baseURL: options?.serverURL,
|
|
131
|
-
path: path,
|
|
132
|
-
headers: headers,
|
|
133
|
-
body: body,
|
|
134
|
-
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
|
-
}, options);
|
|
137
|
-
if (!requestRes.ok) {
|
|
138
|
-
return [requestRes, { status: "invalid" }];
|
|
139
|
-
}
|
|
140
|
-
const req = requestRes.value;
|
|
141
|
-
|
|
142
|
-
const doResult = await client._do(req, {
|
|
143
|
-
context,
|
|
144
|
-
errorCodes: ["4XX", "5XX"],
|
|
145
|
-
retryConfig: context.retryConfig,
|
|
146
|
-
retryCodes: context.retryCodes,
|
|
147
|
-
});
|
|
148
|
-
if (!doResult.ok) {
|
|
149
|
-
return [doResult, { status: "request-error", request: req }];
|
|
150
|
-
}
|
|
151
|
-
const response = doResult.value;
|
|
152
|
-
|
|
153
|
-
const [result] = await M.match<
|
|
154
|
-
operations.LoginPosDeviceWithPhoneResponseBody,
|
|
155
|
-
| CeStorefrontError
|
|
156
|
-
| ResponseValidationError
|
|
157
|
-
| ConnectionError
|
|
158
|
-
| RequestAbortedError
|
|
159
|
-
| RequestTimeoutError
|
|
160
|
-
| InvalidRequestError
|
|
161
|
-
| UnexpectedClientError
|
|
162
|
-
| SDKValidationError
|
|
163
|
-
>(
|
|
164
|
-
M.json(200, operations.LoginPosDeviceWithPhoneResponseBody$inboundSchema),
|
|
165
|
-
M.fail("4XX"),
|
|
166
|
-
M.fail("5XX"),
|
|
167
|
-
)(response, req);
|
|
168
|
-
if (!result.ok) {
|
|
169
|
-
return [result, { status: "complete", request: req, response }];
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return [result, { status: "complete", request: req, response }];
|
|
173
|
-
}
|