@cimplify/sdk 0.17.0 → 0.19.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/dist/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +21 -21
- package/dist/advanced.mjs +2 -2
- package/dist/{chunk-REPTMTQ4.js → chunk-6SRY4DPY.js} +65 -26
- package/dist/{chunk-GFKBH7R2.mjs → chunk-7ACYNCNM.mjs} +46 -7
- package/dist/{chunk-G6KNFYJD.mjs → chunk-AFEE43MQ.mjs} +2 -2
- package/dist/{chunk-OITG2SEN.js → chunk-B2RTVYJR.js} +35 -35
- package/dist/{chunk-OVM5YWM5.mjs → chunk-FTL2SXCG.mjs} +5 -5
- package/dist/{chunk-J65U5SED.js → chunk-RYQ5IPWX.js} +5 -5
- package/dist/{client-C59R79gx.d.ts → client-B3payjUV.d.mts} +23 -12
- package/dist/{client-BaolRdB4.d.mts → client-FNZzXO_v.d.ts} +23 -12
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +97 -97
- package/dist/index.mjs +3 -3
- package/dist/{payment-C6ULw3K-.d.mts → payment-CO2tRThu.d.mts} +76 -1
- package/dist/{payment-C6ULw3K-.d.ts → payment-CO2tRThu.d.ts} +76 -1
- package/dist/{price-Bd6JBV8W.d.ts → price-Bp6JlVzW.d.ts} +1 -1
- package/dist/{price-CbR6DCt0.d.mts → price-Dg7MJEsL.d.mts} +1 -1
- package/dist/react.d.mts +34 -7
- package/dist/react.d.ts +34 -7
- package/dist/react.js +228 -78
- package/dist/react.mjs +179 -29
- package/dist/styles.css +1 -1
- package/dist/utils.d.mts +5 -5
- package/dist/utils.d.ts +5 -5
- package/dist/utils.js +28 -28
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/registry/catalogue-page.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB2RTVYJR_js = require('./chunk-B2RTVYJR.js');
|
|
4
4
|
var chunkS6TU55KP_js = require('./chunk-S6TU55KP.js');
|
|
5
5
|
var chunkFLPI2VVJ_js = require('./chunk-FLPI2VVJ.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunk6SRY4DPY_js = require('./chunk-6SRY4DPY.js');
|
|
7
|
+
var chunkRYQ5IPWX_js = require('./chunk-RYQ5IPWX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ActivityService", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkB2RTVYJR_js.ActivityService; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkB2RTVYJR_js.CimplifyClient; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkB2RTVYJR_js.createCimplifyClient; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkB2RTVYJR_js.getVariantDisplayName; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
28
28
|
enumerable: true,
|
|
@@ -46,361 +46,361 @@ Object.defineProperty(exports, "query", {
|
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk6SRY4DPY_js.AUTHORIZATION_TYPE; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk6SRY4DPY_js.AUTH_MUTATION; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "AuthService", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk6SRY4DPY_js.AuthService; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "BusinessService", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk6SRY4DPY_js.BusinessService; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk6SRY4DPY_js.CHECKOUT_MODE; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk6SRY4DPY_js.CHECKOUT_MUTATION; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk6SRY4DPY_js.CHECKOUT_STEP; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk6SRY4DPY_js.CONTACT_TYPE; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "CartOperations", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk6SRY4DPY_js.CartOperations; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk6SRY4DPY_js.CatalogueQueries; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk6SRY4DPY_js.CheckoutService; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "CheckoutService", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk6SRY4DPY_js.CheckoutService; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk6SRY4DPY_js.CimplifyElement; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk6SRY4DPY_js.CimplifyElements; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk6SRY4DPY_js.DEFAULT_COUNTRY; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk6SRY4DPY_js.DEFAULT_CURRENCY; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk6SRY4DPY_js.DEVICE_TYPE; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk6SRY4DPY_js.ELEMENT_TYPES; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk6SRY4DPY_js.EVENT_TYPES; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "FxService", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk6SRY4DPY_js.FxService; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "InventoryService", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk6SRY4DPY_js.InventoryService; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk6SRY4DPY_js.LINK_MUTATION; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk6SRY4DPY_js.LINK_QUERY; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "LinkService", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk6SRY4DPY_js.LinkService; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "LiteService", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk6SRY4DPY_js.LiteService; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk6SRY4DPY_js.MESSAGE_TYPES; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk6SRY4DPY_js.MOBILE_MONEY_PROVIDER; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk6SRY4DPY_js.ORDER_MUTATION; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk6SRY4DPY_js.ORDER_TYPE; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "OrderQueries", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk6SRY4DPY_js.OrderQueries; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk6SRY4DPY_js.PAYMENT_METHOD; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk6SRY4DPY_js.PAYMENT_MUTATION; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk6SRY4DPY_js.PAYMENT_STATE; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk6SRY4DPY_js.PICKUP_TIME_TYPE; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "SchedulingService", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunk6SRY4DPY_js.SchedulingService; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "combine", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunk6SRY4DPY_js.combine; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "combineObject", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunk6SRY4DPY_js.combineObject; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "createElements", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk6SRY4DPY_js.createElements; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "err", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunk6SRY4DPY_js.err; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "flatMap", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunk6SRY4DPY_js.flatMap; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "fromPromise", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunk6SRY4DPY_js.fromPromise; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunk6SRY4DPY_js.generateIdempotencyKey; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "getOrElse", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunk6SRY4DPY_js.getOrElse; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "isErr", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunk6SRY4DPY_js.isErr; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "isOk", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunk6SRY4DPY_js.isOk; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "mapError", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunk6SRY4DPY_js.mapError; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "mapResult", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunk6SRY4DPY_js.mapResult; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "ok", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunk6SRY4DPY_js.ok; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "toNullable", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunk6SRY4DPY_js.toNullable; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "tryCatch", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunk6SRY4DPY_js.tryCatch; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "unwrap", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk6SRY4DPY_js.unwrap; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkRYQ5IPWX_js.CURRENCY_SYMBOLS; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "CimplifyError", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkRYQ5IPWX_js.CimplifyError; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "ERROR_HINTS", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkRYQ5IPWX_js.ERROR_HINTS; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "ErrorCode", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkRYQ5IPWX_js.ErrorCode; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkRYQ5IPWX_js.MOBILE_MONEY_PROVIDERS; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "ZERO", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkRYQ5IPWX_js.ZERO; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "categorizePaymentError", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkRYQ5IPWX_js.categorizePaymentError; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "currencyCode", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkRYQ5IPWX_js.currencyCode; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkRYQ5IPWX_js.detectMobileMoneyProvider; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "enrichError", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkRYQ5IPWX_js.enrichError; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "formatMoney", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkRYQ5IPWX_js.formatMoney; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkRYQ5IPWX_js.formatNumberCompact; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "formatPrice", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkRYQ5IPWX_js.formatPrice; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkRYQ5IPWX_js.formatPriceAdjustment; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkRYQ5IPWX_js.formatPriceCompact; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkRYQ5IPWX_js.formatPriceWithTax; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkRYQ5IPWX_js.formatProductPrice; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "getBasePrice", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkRYQ5IPWX_js.getBasePrice; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkRYQ5IPWX_js.getCurrencySymbol; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkRYQ5IPWX_js.getDiscountPercentage; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkRYQ5IPWX_js.getDisplayPrice; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "getErrorHint", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkRYQ5IPWX_js.getErrorHint; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkRYQ5IPWX_js.getMarkupPercentage; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkRYQ5IPWX_js.getProductCurrency; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkRYQ5IPWX_js.getTaxAmount; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkRYQ5IPWX_js.hasTaxInfo; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "isCimplifyError", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkRYQ5IPWX_js.isCimplifyError; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "isOnSale", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkRYQ5IPWX_js.isOnSale; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkRYQ5IPWX_js.isPaymentStatusFailure; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
368
368
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkRYQ5IPWX_js.isPaymentStatusRequiresAction; }
|
|
370
370
|
});
|
|
371
371
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
372
372
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkRYQ5IPWX_js.isPaymentStatusSuccess; }
|
|
374
374
|
});
|
|
375
375
|
Object.defineProperty(exports, "isRetryableError", {
|
|
376
376
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkRYQ5IPWX_js.isRetryableError; }
|
|
378
378
|
});
|
|
379
379
|
Object.defineProperty(exports, "isSupportedCurrency", {
|
|
380
380
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunkRYQ5IPWX_js.isSupportedCurrency; }
|
|
382
382
|
});
|
|
383
383
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
384
384
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunkRYQ5IPWX_js.isTaxInclusive; }
|
|
386
386
|
});
|
|
387
387
|
Object.defineProperty(exports, "money", {
|
|
388
388
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkRYQ5IPWX_js.money; }
|
|
390
390
|
});
|
|
391
391
|
Object.defineProperty(exports, "moneyFromNumber", {
|
|
392
392
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkRYQ5IPWX_js.moneyFromNumber; }
|
|
394
394
|
});
|
|
395
395
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
396
396
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkRYQ5IPWX_js.normalizePaymentResponse; }
|
|
398
398
|
});
|
|
399
399
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
400
400
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunkRYQ5IPWX_js.normalizeStatusResponse; }
|
|
402
402
|
});
|
|
403
403
|
Object.defineProperty(exports, "parsePrice", {
|
|
404
404
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
405
|
+
get: function () { return chunkRYQ5IPWX_js.parsePrice; }
|
|
406
406
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ActivityService, CimplifyClient, createCimplifyClient, getVariantDisplayName } from './chunk-
|
|
1
|
+
export { ActivityService, CimplifyClient, createCimplifyClient, getVariantDisplayName } from './chunk-AFEE43MQ.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-WDIMISRC.mjs';
|
|
3
3
|
export { QueryBuilder, query } from './chunk-LM3CJ4L7.mjs';
|
|
4
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-
|
|
5
|
-
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-
|
|
4
|
+
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-7ACYNCNM.mjs';
|
|
5
|
+
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-FTL2SXCG.mjs';
|
|
@@ -92,6 +92,79 @@ type VariantStrategy = "fetch_all" | "use_axes";
|
|
|
92
92
|
type DigitalProductType = "download" | "license" | "event_ticket" | "access_pass" | "gift_code";
|
|
93
93
|
type DepositType = "none" | "fixed" | "percentage";
|
|
94
94
|
type SalesChannel = "pos" | "online" | "marketplace" | "partners";
|
|
95
|
+
type AttributeType = "text" | "textarea" | "number" | "currency" | "boolean" | "single_select" | "multi_select" | "radio" | "date" | "url" | "color" | "image" | "file";
|
|
96
|
+
type AttributeAppliesTo = "product" | "variant" | "both";
|
|
97
|
+
interface CustomAttributeDefinition {
|
|
98
|
+
id: string;
|
|
99
|
+
business_id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
slug: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
attribute_type: AttributeType;
|
|
104
|
+
options?: string[];
|
|
105
|
+
unit?: string;
|
|
106
|
+
is_required: boolean;
|
|
107
|
+
is_filterable: boolean;
|
|
108
|
+
is_visible: boolean;
|
|
109
|
+
display_order: number;
|
|
110
|
+
group_name?: string;
|
|
111
|
+
applies_to: AttributeAppliesTo;
|
|
112
|
+
created_at: string;
|
|
113
|
+
updated_at: string;
|
|
114
|
+
}
|
|
115
|
+
interface CustomAttributeValue {
|
|
116
|
+
definition_id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
slug: string;
|
|
119
|
+
attribute_type: AttributeType;
|
|
120
|
+
group_name?: string;
|
|
121
|
+
unit?: string;
|
|
122
|
+
value: string | number | boolean | string[] | null;
|
|
123
|
+
is_filterable: boolean;
|
|
124
|
+
}
|
|
125
|
+
type PropertySource = "attribute" | "variant";
|
|
126
|
+
interface ProductProperty {
|
|
127
|
+
name: string;
|
|
128
|
+
slug: string;
|
|
129
|
+
source: PropertySource;
|
|
130
|
+
value_type: string;
|
|
131
|
+
values: (string | number | boolean | null)[];
|
|
132
|
+
group_name?: string;
|
|
133
|
+
unit?: string;
|
|
134
|
+
is_filterable: boolean;
|
|
135
|
+
}
|
|
136
|
+
interface PropertyFacet {
|
|
137
|
+
name: string;
|
|
138
|
+
slug: string;
|
|
139
|
+
source: string;
|
|
140
|
+
values: FacetValue[];
|
|
141
|
+
}
|
|
142
|
+
interface FacetValue {
|
|
143
|
+
value: string;
|
|
144
|
+
count: number;
|
|
145
|
+
}
|
|
146
|
+
interface TaxonomyAttributeTemplate {
|
|
147
|
+
id: string;
|
|
148
|
+
taxonomy_id: string;
|
|
149
|
+
name: string;
|
|
150
|
+
slug: string;
|
|
151
|
+
attribute_type: "boolean" | "single_select";
|
|
152
|
+
options?: string[];
|
|
153
|
+
is_required: boolean;
|
|
154
|
+
display_order: number;
|
|
155
|
+
gpc_attribute_code?: number;
|
|
156
|
+
created_at: string;
|
|
157
|
+
}
|
|
158
|
+
interface KnowledgeArticle {
|
|
159
|
+
id: string;
|
|
160
|
+
title: string;
|
|
161
|
+
slug: string;
|
|
162
|
+
content: string;
|
|
163
|
+
category?: string;
|
|
164
|
+
tags: string[];
|
|
165
|
+
created_at: string;
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
95
168
|
interface Product {
|
|
96
169
|
id: string;
|
|
97
170
|
business_id: string;
|
|
@@ -186,6 +259,8 @@ interface Product {
|
|
|
186
259
|
components?: BundleComponentView[];
|
|
187
260
|
composite_id?: string;
|
|
188
261
|
groups?: CompositeGroupView[];
|
|
262
|
+
custom_attributes?: CustomAttributeValue[];
|
|
263
|
+
properties?: ProductProperty[];
|
|
189
264
|
}
|
|
190
265
|
interface ProductWithDetails extends Product {
|
|
191
266
|
category?: Category;
|
|
@@ -1240,4 +1315,4 @@ interface SubmitAuthorizationInput {
|
|
|
1240
1315
|
value: string;
|
|
1241
1316
|
}
|
|
1242
1317
|
|
|
1243
|
-
export { type
|
|
1318
|
+
export { type CategorySummary as $, type ApiError as A, type ProductVariant as B, type CurrencyCode as C, type DisplayMode as D, ErrorCode as E, type FacetValue as F, type VariantDisplayAttribute as G, type VariantAxis as H, type InventoryType as I, type VariantAxisWithValues as J, type KnowledgeArticle as K, type VariantAxisValue as L, type Money as M, type ProductVariantValue as N, type VariantLocationAvailability as O, type PaginationParams as P, type VariantAxisSelection as Q, type AddOn as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddOnWithOptions as U, type VariantStrategy as V, type AddOnOption as W, type AddOnOptionPrice as X, type ProductAddOn as Y, ZERO as Z, type Category as _, moneyFromNumber as a, type CompositeSelectionData as a$, type Collection as a0, type CollectionSummary as a1, type CollectionProduct as a2, type BundlePriceType as a3, type Bundle as a4, type BundleSummary as a5, type BundleProduct as a6, type BundleWithDetails as a7, type BundleComponentData as a8, type BundleComponentInfo as a9, type Deal as aA, type ProductDealInfo as aB, type DiscountValidation as aC, type Tag as aD, type TagsResponse as aE, type CartStatus as aF, type CartChannel as aG, type PriceSource as aH, type AdjustmentType as aI, type PriceAdjustment as aJ, type TaxPathComponent as aK, type PricePathTaxInfo as aL, type PriceDecisionPath as aM, type ChosenPrice as aN, type BenefitType as aO, type AppliedDiscount as aP, type DiscountBreakdown as aQ, type DiscountDetails as aR, type SelectedAddOnOption as aS, type AddOnDetails as aT, type CartAddOn as aU, type VariantDetails as aV, type BundleSelectionInput as aW, type BundleStoredSelection as aX, type BundleSelectionData as aY, type CompositeStoredSelection as aZ, type CompositePriceBreakdown as a_, type BundleComponentView as aa, type BundleComponentVariantView as ab, type VariantAxisView as ac, type VariantAxisValueView as ad, type CompositePricingMode as ae, type GroupPricingBehavior as af, type ComponentSourceType as ag, type Composite as ah, type CompositeWithDetails as ai, type ComponentGroup as aj, type ComponentGroupWithComponents as ak, type CompositeGroupView as al, type CompositeComponentView as am, type CompositeComponent as an, type ComponentSelectionInput as ao, type CompositePriceResult as ap, type ComponentPriceBreakdown as aq, type PriceEntryType as ar, type Price as as, type LocationProductPrice as at, type ProductAvailability as au, type ProductTimeProfile as av, type ProductTaxonomy as aw, type TaxonomyWithChildren as ax, type ProductAvailabilityNow as ay, type DealBenefitType as az, type Pagination as b, type LineConfiguration as b0, type Cart as b1, type CartItem as b2, type CartTotals as b3, type DisplayCart as b4, type DisplayCartItem as b5, type DisplayAddOn as b6, type DisplayAddOnOption as b7, type UICartBusiness as b8, type UICartLocation as b9, type UICartCustomer as ba, type UICartPricing as bb, type AddOnOptionDetails as bc, type AddOnGroupDetails as bd, type VariantDetailsDTO as be, type CartItemDetails as bf, type UICart as bg, type UICartResponse as bh, type AddToCartInput as bi, type UpdateCartItemInput as bj, type CartSummary as bk, type PaymentStatus as bl, type PaymentProvider as bm, type PaymentMethodType as bn, type AddressAuthorizationData as bo, type AuthorizationType as bp, type PaymentProcessingState as bq, type PaymentMethod as br, type Payment as bs, type InitializePaymentResult as bt, type PaymentResponse as bu, type PaymentStatusResponse as bv, type PaymentErrorDetails as bw, type SubmitAuthorizationInput as bx, currencyCode as c, type ErrorCodeType as d, type ErrorHint as e, ERROR_HINTS as f, CimplifyError as g, isCimplifyError as h, isSupportedCurrency as i, getErrorHint as j, enrichError as k, isRetryableError as l, money as m, type ProductType as n, type ProductRenderHint as o, type DigitalProductType as p, type DepositType as q, type AttributeType as r, type AttributeAppliesTo as s, type CustomAttributeDefinition as t, type CustomAttributeValue as u, type PropertySource as v, type ProductProperty as w, type PropertyFacet as x, type Product as y, type ProductWithDetails as z };
|