@cimplify/sdk 0.17.0 → 0.18.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-GFKBH7R2.mjs → chunk-2JI47EYJ.mjs} +34 -7
- package/dist/{chunk-REPTMTQ4.js → chunk-DYKFSV77.js} +53 -26
- package/dist/{chunk-OVM5YWM5.mjs → chunk-FTL2SXCG.mjs} +5 -5
- package/dist/{chunk-G6KNFYJD.mjs → chunk-KTTQC5HG.mjs} +2 -2
- package/dist/{chunk-OITG2SEN.js → chunk-MJECWMOY.js} +35 -35
- package/dist/{chunk-J65U5SED.js → chunk-RYQ5IPWX.js} +5 -5
- package/dist/{client-BaolRdB4.d.mts → client-B1UtuyOg.d.ts} +21 -12
- package/dist/{client-C59R79gx.d.ts → client-BFFfuzJr.d.mts} +21 -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-D9FTaOse.d.mts} +66 -1
- package/dist/{payment-C6ULw3K-.d.ts → payment-D9FTaOse.d.ts} +66 -1
- package/dist/{price-CbR6DCt0.d.mts → price-9JsPuknm.d.mts} +1 -1
- package/dist/{price-Bd6JBV8W.d.ts → price-BD1iioLh.d.ts} +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 chunkMJECWMOY_js = require('./chunk-MJECWMOY.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 chunkDYKFSV77_js = require('./chunk-DYKFSV77.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 chunkMJECWMOY_js.ActivityService; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkMJECWMOY_js.CimplifyClient; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkMJECWMOY_js.createCimplifyClient; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkMJECWMOY_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 chunkDYKFSV77_js.AUTHORIZATION_TYPE; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkDYKFSV77_js.AUTH_MUTATION; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "AuthService", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkDYKFSV77_js.AuthService; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "BusinessService", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkDYKFSV77_js.BusinessService; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkDYKFSV77_js.CHECKOUT_MODE; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkDYKFSV77_js.CHECKOUT_MUTATION; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkDYKFSV77_js.CHECKOUT_STEP; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkDYKFSV77_js.CONTACT_TYPE; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "CartOperations", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkDYKFSV77_js.CartOperations; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkDYKFSV77_js.CatalogueQueries; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkDYKFSV77_js.CheckoutService; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "CheckoutService", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkDYKFSV77_js.CheckoutService; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkDYKFSV77_js.CimplifyElement; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkDYKFSV77_js.CimplifyElements; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkDYKFSV77_js.DEFAULT_COUNTRY; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkDYKFSV77_js.DEFAULT_CURRENCY; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkDYKFSV77_js.DEVICE_TYPE; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkDYKFSV77_js.ELEMENT_TYPES; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkDYKFSV77_js.EVENT_TYPES; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "FxService", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkDYKFSV77_js.FxService; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "InventoryService", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkDYKFSV77_js.InventoryService; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkDYKFSV77_js.LINK_MUTATION; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkDYKFSV77_js.LINK_QUERY; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "LinkService", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkDYKFSV77_js.LinkService; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "LiteService", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkDYKFSV77_js.LiteService; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkDYKFSV77_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 chunkDYKFSV77_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 chunkDYKFSV77_js.ORDER_MUTATION; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkDYKFSV77_js.ORDER_TYPE; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "OrderQueries", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkDYKFSV77_js.OrderQueries; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkDYKFSV77_js.PAYMENT_METHOD; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkDYKFSV77_js.PAYMENT_MUTATION; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkDYKFSV77_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 chunkDYKFSV77_js.PICKUP_TIME_TYPE; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "SchedulingService", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkDYKFSV77_js.SchedulingService; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "combine", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkDYKFSV77_js.combine; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "combineObject", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkDYKFSV77_js.combineObject; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "createElements", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkDYKFSV77_js.createElements; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "err", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkDYKFSV77_js.err; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "flatMap", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkDYKFSV77_js.flatMap; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "fromPromise", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkDYKFSV77_js.fromPromise; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkDYKFSV77_js.generateIdempotencyKey; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "getOrElse", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkDYKFSV77_js.getOrElse; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "isErr", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkDYKFSV77_js.isErr; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "isOk", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkDYKFSV77_js.isOk; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "mapError", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkDYKFSV77_js.mapError; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "mapResult", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkDYKFSV77_js.mapResult; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "ok", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkDYKFSV77_js.ok; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "toNullable", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkDYKFSV77_js.toNullable; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "tryCatch", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkDYKFSV77_js.tryCatch; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "unwrap", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkDYKFSV77_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-KTTQC5HG.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-2JI47EYJ.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,69 @@ 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
|
+
}
|
|
95
158
|
interface Product {
|
|
96
159
|
id: string;
|
|
97
160
|
business_id: string;
|
|
@@ -186,6 +249,8 @@ interface Product {
|
|
|
186
249
|
components?: BundleComponentView[];
|
|
187
250
|
composite_id?: string;
|
|
188
251
|
groups?: CompositeGroupView[];
|
|
252
|
+
custom_attributes?: CustomAttributeValue[];
|
|
253
|
+
properties?: ProductProperty[];
|
|
189
254
|
}
|
|
190
255
|
interface ProductWithDetails extends Product {
|
|
191
256
|
category?: Category;
|
|
@@ -1240,4 +1305,4 @@ interface SubmitAuthorizationInput {
|
|
|
1240
1305
|
value: string;
|
|
1241
1306
|
}
|
|
1242
1307
|
|
|
1243
|
-
export { type
|
|
1308
|
+
export { type Collection 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 VariantAxisValue as K, type ProductVariantValue as L, type Money as M, type VariantLocationAvailability as N, type VariantAxisSelection as O, type PaginationParams as P, type AddOn as Q, type AddOnWithOptions as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddOnOption as U, type VariantStrategy as V, type AddOnOptionPrice as W, type ProductAddOn as X, type Category as Y, ZERO as Z, type CategorySummary as _, moneyFromNumber as a, type LineConfiguration as a$, type CollectionSummary as a0, type CollectionProduct as a1, type BundlePriceType as a2, type Bundle as a3, type BundleSummary as a4, type BundleProduct as a5, type BundleWithDetails as a6, type BundleComponentData as a7, type BundleComponentInfo as a8, type BundleComponentView as a9, type ProductDealInfo as aA, type DiscountValidation as aB, type Tag as aC, type TagsResponse as aD, type CartStatus as aE, type CartChannel as aF, type PriceSource as aG, type AdjustmentType as aH, type PriceAdjustment as aI, type TaxPathComponent as aJ, type PricePathTaxInfo as aK, type PriceDecisionPath as aL, type ChosenPrice as aM, type BenefitType as aN, type AppliedDiscount as aO, type DiscountBreakdown as aP, type DiscountDetails as aQ, type SelectedAddOnOption as aR, type AddOnDetails as aS, type CartAddOn as aT, type VariantDetails as aU, type BundleSelectionInput as aV, type BundleStoredSelection as aW, type BundleSelectionData as aX, type CompositeStoredSelection as aY, type CompositePriceBreakdown as aZ, type CompositeSelectionData as a_, type BundleComponentVariantView as aa, type VariantAxisView as ab, type VariantAxisValueView as ac, type CompositePricingMode as ad, type GroupPricingBehavior as ae, type ComponentSourceType as af, type Composite as ag, type CompositeWithDetails as ah, type ComponentGroup as ai, type ComponentGroupWithComponents as aj, type CompositeGroupView as ak, type CompositeComponentView as al, type CompositeComponent as am, type ComponentSelectionInput as an, type CompositePriceResult as ao, type ComponentPriceBreakdown as ap, type PriceEntryType as aq, type Price as ar, type LocationProductPrice as as, type ProductAvailability as at, type ProductTimeProfile as au, type ProductTaxonomy as av, type TaxonomyWithChildren as aw, type ProductAvailabilityNow as ax, type DealBenefitType as ay, type Deal as az, type Pagination as b, type Cart as b0, type CartItem as b1, type CartTotals as b2, type DisplayCart as b3, type DisplayCartItem as b4, type DisplayAddOn as b5, type DisplayAddOnOption as b6, type UICartBusiness as b7, type UICartLocation as b8, type UICartCustomer as b9, type UICartPricing as ba, type AddOnOptionDetails as bb, type AddOnGroupDetails as bc, type VariantDetailsDTO as bd, type CartItemDetails as be, type UICart as bf, type UICartResponse as bg, type AddToCartInput as bh, type UpdateCartItemInput as bi, type CartSummary as bj, type PaymentStatus as bk, type PaymentProvider as bl, type PaymentMethodType as bm, type AddressAuthorizationData as bn, type AuthorizationType as bo, type PaymentProcessingState as bp, type PaymentMethod as bq, type Payment as br, type InitializePaymentResult as bs, type PaymentResponse as bt, type PaymentStatusResponse as bu, type PaymentErrorDetails as bv, type SubmitAuthorizationInput as bw, 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 };
|