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.
Files changed (118) hide show
  1. package/README.md +2 -21
  2. package/esm/lib/config.d.ts +2 -2
  3. package/esm/lib/config.js +2 -2
  4. package/esm/models/components/index.d.ts +0 -2
  5. package/esm/models/components/index.d.ts.map +1 -1
  6. package/esm/models/components/index.js +0 -2
  7. package/esm/models/components/index.js.map +1 -1
  8. package/esm/models/operations/index.d.ts +0 -8
  9. package/esm/models/operations/index.d.ts.map +1 -1
  10. package/esm/models/operations/index.js +0 -8
  11. package/esm/models/operations/index.js.map +1 -1
  12. package/esm/sdk/sdk.d.ts +0 -3
  13. package/esm/sdk/sdk.d.ts.map +1 -1
  14. package/esm/sdk/sdk.js +0 -4
  15. package/esm/sdk/sdk.js.map +1 -1
  16. package/examples/package-lock.json +1 -1
  17. package/jsr.json +1 -1
  18. package/package.json +1 -1
  19. package/src/lib/config.ts +2 -2
  20. package/src/models/components/index.ts +0 -2
  21. package/src/models/operations/index.ts +0 -8
  22. package/src/sdk/sdk.ts +0 -6
  23. package/docs/sdks/pos/README.md +0 -610
  24. package/esm/funcs/posCreatePosCart.d.ts +0 -17
  25. package/esm/funcs/posCreatePosCart.d.ts.map +0 -1
  26. package/esm/funcs/posCreatePosCart.js +0 -80
  27. package/esm/funcs/posCreatePosCart.js.map +0 -1
  28. package/esm/funcs/posLoginPosDeviceWithEmail.d.ts +0 -17
  29. package/esm/funcs/posLoginPosDeviceWithEmail.d.ts.map +0 -1
  30. package/esm/funcs/posLoginPosDeviceWithEmail.js +0 -85
  31. package/esm/funcs/posLoginPosDeviceWithEmail.js.map +0 -1
  32. package/esm/funcs/posLoginPosDeviceWithPhone.d.ts +0 -17
  33. package/esm/funcs/posLoginPosDeviceWithPhone.d.ts.map +0 -1
  34. package/esm/funcs/posLoginPosDeviceWithPhone.js +0 -85
  35. package/esm/funcs/posLoginPosDeviceWithPhone.js.map +0 -1
  36. package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts +0 -17
  37. package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts.map +0 -1
  38. package/esm/funcs/posLoginPosDeviceWithWhatsapp.js +0 -85
  39. package/esm/funcs/posLoginPosDeviceWithWhatsapp.js.map +0 -1
  40. package/esm/funcs/posPairPosDevice.d.ts +0 -17
  41. package/esm/funcs/posPairPosDevice.d.ts.map +0 -1
  42. package/esm/funcs/posPairPosDevice.js +0 -84
  43. package/esm/funcs/posPairPosDevice.js.map +0 -1
  44. package/esm/funcs/posRefreshPosAccessToken.d.ts +0 -17
  45. package/esm/funcs/posRefreshPosAccessToken.d.ts.map +0 -1
  46. package/esm/funcs/posRefreshPosAccessToken.js +0 -81
  47. package/esm/funcs/posRefreshPosAccessToken.js.map +0 -1
  48. package/esm/funcs/posUpdatePosCart.d.ts +0 -17
  49. package/esm/funcs/posUpdatePosCart.d.ts.map +0 -1
  50. package/esm/funcs/posUpdatePosCart.js +0 -84
  51. package/esm/funcs/posUpdatePosCart.js.map +0 -1
  52. package/esm/funcs/posVerifyPosLoginOtp.d.ts +0 -17
  53. package/esm/funcs/posVerifyPosLoginOtp.d.ts.map +0 -1
  54. package/esm/funcs/posVerifyPosLoginOtp.js +0 -84
  55. package/esm/funcs/posVerifyPosLoginOtp.js.map +0 -1
  56. package/esm/models/components/posdevice.d.ts +0 -71
  57. package/esm/models/components/posdevice.d.ts.map +0 -1
  58. package/esm/models/components/posdevice.js +0 -85
  59. package/esm/models/components/posdevice.js.map +0 -1
  60. package/esm/models/components/posuser.d.ts +0 -124
  61. package/esm/models/components/posuser.d.ts.map +0 -1
  62. package/esm/models/components/posuser.js +0 -139
  63. package/esm/models/components/posuser.js.map +0 -1
  64. package/esm/models/operations/createposcart.d.ts +0 -90
  65. package/esm/models/operations/createposcart.d.ts.map +0 -1
  66. package/esm/models/operations/createposcart.js +0 -86
  67. package/esm/models/operations/createposcart.js.map +0 -1
  68. package/esm/models/operations/loginposdevicewithemail.d.ts +0 -138
  69. package/esm/models/operations/loginposdevicewithemail.d.ts.map +0 -1
  70. package/esm/models/operations/loginposdevicewithemail.js +0 -159
  71. package/esm/models/operations/loginposdevicewithemail.js.map +0 -1
  72. package/esm/models/operations/loginposdevicewithphone.d.ts +0 -146
  73. package/esm/models/operations/loginposdevicewithphone.d.ts.map +0 -1
  74. package/esm/models/operations/loginposdevicewithphone.js +0 -163
  75. package/esm/models/operations/loginposdevicewithphone.js.map +0 -1
  76. package/esm/models/operations/loginposdevicewithwhatsapp.d.ts +0 -146
  77. package/esm/models/operations/loginposdevicewithwhatsapp.d.ts.map +0 -1
  78. package/esm/models/operations/loginposdevicewithwhatsapp.js +0 -163
  79. package/esm/models/operations/loginposdevicewithwhatsapp.js.map +0 -1
  80. package/esm/models/operations/pairposdevice.d.ts +0 -112
  81. package/esm/models/operations/pairposdevice.d.ts.map +0 -1
  82. package/esm/models/operations/pairposdevice.js +0 -128
  83. package/esm/models/operations/pairposdevice.js.map +0 -1
  84. package/esm/models/operations/refreshposaccesstoken.d.ts +0 -88
  85. package/esm/models/operations/refreshposaccesstoken.d.ts.map +0 -1
  86. package/esm/models/operations/refreshposaccesstoken.js +0 -106
  87. package/esm/models/operations/refreshposaccesstoken.js.map +0 -1
  88. package/esm/models/operations/updateposcart.d.ts +0 -120
  89. package/esm/models/operations/updateposcart.d.ts.map +0 -1
  90. package/esm/models/operations/updateposcart.js +0 -122
  91. package/esm/models/operations/updateposcart.js.map +0 -1
  92. package/esm/models/operations/verifyposloginotp.d.ts +0 -158
  93. package/esm/models/operations/verifyposloginotp.d.ts.map +0 -1
  94. package/esm/models/operations/verifyposloginotp.js +0 -169
  95. package/esm/models/operations/verifyposloginotp.js.map +0 -1
  96. package/esm/sdk/pos.d.ts +0 -61
  97. package/esm/sdk/pos.d.ts.map +0 -1
  98. package/esm/sdk/pos.js +0 -88
  99. package/esm/sdk/pos.js.map +0 -1
  100. package/src/funcs/posCreatePosCart.ts +0 -165
  101. package/src/funcs/posLoginPosDeviceWithEmail.ts +0 -173
  102. package/src/funcs/posLoginPosDeviceWithPhone.ts +0 -173
  103. package/src/funcs/posLoginPosDeviceWithWhatsapp.ts +0 -176
  104. package/src/funcs/posPairPosDevice.ts +0 -174
  105. package/src/funcs/posRefreshPosAccessToken.ts +0 -164
  106. package/src/funcs/posUpdatePosCart.ts +0 -167
  107. package/src/funcs/posVerifyPosLoginOtp.ts +0 -174
  108. package/src/models/components/posdevice.ts +0 -141
  109. package/src/models/components/posuser.ts +0 -263
  110. package/src/models/operations/createposcart.ts +0 -197
  111. package/src/models/operations/loginposdevicewithemail.ts +0 -328
  112. package/src/models/operations/loginposdevicewithphone.ts +0 -340
  113. package/src/models/operations/loginposdevicewithwhatsapp.ts +0 -347
  114. package/src/models/operations/pairposdevice.ts +0 -269
  115. package/src/models/operations/refreshposaccesstoken.ts +0 -223
  116. package/src/models/operations/updateposcart.ts +0 -271
  117. package/src/models/operations/verifyposloginotp.ts +0 -345
  118. 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
- }