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/src/sdk/pos.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { posCreatePosCart } from "../funcs/posCreatePosCart.js";
|
|
6
|
-
import { posLoginPosDeviceWithEmail } from "../funcs/posLoginPosDeviceWithEmail.js";
|
|
7
|
-
import { posLoginPosDeviceWithPhone } from "../funcs/posLoginPosDeviceWithPhone.js";
|
|
8
|
-
import { posLoginPosDeviceWithWhatsapp } from "../funcs/posLoginPosDeviceWithWhatsapp.js";
|
|
9
|
-
import { posPairPosDevice } from "../funcs/posPairPosDevice.js";
|
|
10
|
-
import { posRefreshPosAccessToken } from "../funcs/posRefreshPosAccessToken.js";
|
|
11
|
-
import { posUpdatePosCart } from "../funcs/posUpdatePosCart.js";
|
|
12
|
-
import { posVerifyPosLoginOtp } from "../funcs/posVerifyPosLoginOtp.js";
|
|
13
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
14
|
-
import * as operations from "../models/operations/index.js";
|
|
15
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
16
|
-
|
|
17
|
-
export class Pos extends ClientSDK {
|
|
18
|
-
/**
|
|
19
|
-
* Pair POS device
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Pair POS device
|
|
23
|
-
*/
|
|
24
|
-
async pairPosDevice(
|
|
25
|
-
security: operations.PairPosDeviceSecurity,
|
|
26
|
-
request?: operations.PairPosDeviceRequestBody | undefined,
|
|
27
|
-
options?: RequestOptions,
|
|
28
|
-
): Promise<operations.PairPosDeviceResponseBody> {
|
|
29
|
-
return unwrapAsync(posPairPosDevice(
|
|
30
|
-
this,
|
|
31
|
-
security,
|
|
32
|
-
request,
|
|
33
|
-
options,
|
|
34
|
-
));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Login with phone
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Login to POS device using phone.
|
|
42
|
-
*/
|
|
43
|
-
async loginPosDeviceWithPhone(
|
|
44
|
-
security: operations.LoginPosDeviceWithPhoneSecurity,
|
|
45
|
-
request?: operations.LoginPosDeviceWithPhoneRequestBody | undefined,
|
|
46
|
-
options?: RequestOptions,
|
|
47
|
-
): Promise<operations.LoginPosDeviceWithPhoneResponseBody> {
|
|
48
|
-
return unwrapAsync(posLoginPosDeviceWithPhone(
|
|
49
|
-
this,
|
|
50
|
-
security,
|
|
51
|
-
request,
|
|
52
|
-
options,
|
|
53
|
-
));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Login with whatsapp
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
* Login to POS device using whatsapp.
|
|
61
|
-
*/
|
|
62
|
-
async loginPosDeviceWithWhatsapp(
|
|
63
|
-
security: operations.LoginPosDeviceWithWhatsappSecurity,
|
|
64
|
-
request?: operations.LoginPosDeviceWithWhatsappRequestBody | undefined,
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): Promise<operations.LoginPosDeviceWithWhatsappResponseBody> {
|
|
67
|
-
return unwrapAsync(posLoginPosDeviceWithWhatsapp(
|
|
68
|
-
this,
|
|
69
|
-
security,
|
|
70
|
-
request,
|
|
71
|
-
options,
|
|
72
|
-
));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Login with email
|
|
77
|
-
*
|
|
78
|
-
* @remarks
|
|
79
|
-
* Login to POS device using email.
|
|
80
|
-
*/
|
|
81
|
-
async loginPosDeviceWithEmail(
|
|
82
|
-
security: operations.LoginPosDeviceWithEmailSecurity,
|
|
83
|
-
request?: operations.LoginPosDeviceWithEmailRequestBody | undefined,
|
|
84
|
-
options?: RequestOptions,
|
|
85
|
-
): Promise<operations.LoginPosDeviceWithEmailResponseBody> {
|
|
86
|
-
return unwrapAsync(posLoginPosDeviceWithEmail(
|
|
87
|
-
this,
|
|
88
|
-
security,
|
|
89
|
-
request,
|
|
90
|
-
options,
|
|
91
|
-
));
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Verify OTP
|
|
96
|
-
*
|
|
97
|
-
* @remarks
|
|
98
|
-
* Verify POS login otp.
|
|
99
|
-
*/
|
|
100
|
-
async verifyPosLoginOtp(
|
|
101
|
-
security: operations.VerifyPosLoginOtpSecurity,
|
|
102
|
-
request?: operations.VerifyPosLoginOtpRequestBody | undefined,
|
|
103
|
-
options?: RequestOptions,
|
|
104
|
-
): Promise<operations.VerifyPosLoginOtpResponseBody> {
|
|
105
|
-
return unwrapAsync(posVerifyPosLoginOtp(
|
|
106
|
-
this,
|
|
107
|
-
security,
|
|
108
|
-
request,
|
|
109
|
-
options,
|
|
110
|
-
));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Refresh POS access token
|
|
115
|
-
*
|
|
116
|
-
* @remarks
|
|
117
|
-
* Refresh POS access token
|
|
118
|
-
*/
|
|
119
|
-
async refreshPosAccessToken(
|
|
120
|
-
request?: operations.RefreshPosAccessTokenRequestBody | undefined,
|
|
121
|
-
options?: RequestOptions,
|
|
122
|
-
): Promise<operations.RefreshPosAccessTokenResponseBody> {
|
|
123
|
-
return unwrapAsync(posRefreshPosAccessToken(
|
|
124
|
-
this,
|
|
125
|
-
request,
|
|
126
|
-
options,
|
|
127
|
-
));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Create cart
|
|
132
|
-
*
|
|
133
|
-
* @remarks
|
|
134
|
-
* Create cart from POS device
|
|
135
|
-
*/
|
|
136
|
-
async createPosCart(
|
|
137
|
-
request?: operations.CreatePosCartRequestBody | undefined,
|
|
138
|
-
options?: RequestOptions,
|
|
139
|
-
): Promise<operations.CreatePosCartResponseBody> {
|
|
140
|
-
return unwrapAsync(posCreatePosCart(
|
|
141
|
-
this,
|
|
142
|
-
request,
|
|
143
|
-
options,
|
|
144
|
-
));
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Add/update/delete cart item
|
|
149
|
-
*
|
|
150
|
-
* @remarks
|
|
151
|
-
* Add/update item to cart. To delete item from cart, pass quantity = 0
|
|
152
|
-
*/
|
|
153
|
-
async updatePosCart(
|
|
154
|
-
request: operations.UpdatePosCartRequest,
|
|
155
|
-
options?: RequestOptions,
|
|
156
|
-
): Promise<operations.UpdatePosCartResponseBody> {
|
|
157
|
-
return unwrapAsync(posUpdatePosCart(
|
|
158
|
-
this,
|
|
159
|
-
request,
|
|
160
|
-
options,
|
|
161
|
-
));
|
|
162
|
-
}
|
|
163
|
-
}
|