@wix/auto_sdk_ecom_catalog 1.0.10 → 1.0.12
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/build/cjs/index.d.ts +2 -0
- package/build/cjs/index.js +19 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +29 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/src/interfaces-ecommerce-v1-catalog-provider.context.d.ts +5 -0
- package/build/cjs/src/interfaces-ecommerce-v1-catalog-provider.context.js +9 -0
- package/build/cjs/src/interfaces-ecommerce-v1-catalog-provider.context.js.map +1 -0
- package/build/cjs/src/interfaces-ecommerce-v1-catalog-provider.public.d.ts +33 -0
- package/build/cjs/src/interfaces-ecommerce-v1-catalog-provider.public.js +49 -0
- package/build/cjs/src/interfaces-ecommerce-v1-catalog-provider.public.js.map +1 -0
- package/build/{index.d.mts → cjs/src/service-plugins-types.d.ts} +56 -95
- package/build/cjs/src/service-plugins-types.js +77 -0
- package/build/cjs/src/service-plugins-types.js.map +1 -0
- package/build/es/index.d.ts +2 -0
- package/build/es/index.js +3 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +29 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/src/interfaces-ecommerce-v1-catalog-provider.context.d.ts +5 -0
- package/build/es/src/interfaces-ecommerce-v1-catalog-provider.context.js +6 -0
- package/build/es/src/interfaces-ecommerce-v1-catalog-provider.context.js.map +1 -0
- package/build/es/src/interfaces-ecommerce-v1-catalog-provider.public.d.ts +33 -0
- package/build/es/src/interfaces-ecommerce-v1-catalog-provider.public.js +46 -0
- package/build/es/src/interfaces-ecommerce-v1-catalog-provider.public.js.map +1 -0
- package/build/{index.d.ts → es/src/service-plugins-types.d.ts} +56 -95
- package/build/es/src/service-plugins-types.js +74 -0
- package/build/es/src/service-plugins-types.js.map +1 -0
- package/build/internal/cjs/index.d.ts +2 -0
- package/build/internal/cjs/index.js +19 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +29 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/src/interfaces-ecommerce-v1-catalog-provider.context.d.ts +5 -0
- package/build/internal/cjs/src/interfaces-ecommerce-v1-catalog-provider.context.js +9 -0
- package/build/internal/cjs/src/interfaces-ecommerce-v1-catalog-provider.context.js.map +1 -0
- package/build/internal/cjs/src/interfaces-ecommerce-v1-catalog-provider.public.d.ts +33 -0
- package/build/internal/cjs/src/interfaces-ecommerce-v1-catalog-provider.public.js +49 -0
- package/build/internal/cjs/src/interfaces-ecommerce-v1-catalog-provider.public.js.map +1 -0
- package/build/internal/{index.d.mts → cjs/src/service-plugins-types.d.ts} +56 -95
- package/build/internal/cjs/src/service-plugins-types.js +77 -0
- package/build/internal/cjs/src/service-plugins-types.js.map +1 -0
- package/build/internal/es/index.d.ts +2 -0
- package/build/internal/es/index.js +3 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +29 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/src/interfaces-ecommerce-v1-catalog-provider.context.d.ts +5 -0
- package/build/internal/es/src/interfaces-ecommerce-v1-catalog-provider.context.js +6 -0
- package/build/internal/es/src/interfaces-ecommerce-v1-catalog-provider.context.js.map +1 -0
- package/build/internal/es/src/interfaces-ecommerce-v1-catalog-provider.public.d.ts +33 -0
- package/build/internal/es/src/interfaces-ecommerce-v1-catalog-provider.public.js +46 -0
- package/build/internal/es/src/interfaces-ecommerce-v1-catalog-provider.public.js.map +1 -0
- package/build/internal/{index.d.ts → es/src/service-plugins-types.d.ts} +56 -95
- package/build/internal/es/src/service-plugins-types.js +74 -0
- package/build/internal/es/src/service-plugins-types.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -161
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -128
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -161
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -128
- package/build/internal/index.mjs.map +0 -1
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { ServicePluginDefinition } from '@wix/sdk-types';
|
|
3
|
-
|
|
4
|
-
interface GetCatalogItemsRequest {
|
|
1
|
+
export interface GetCatalogItemsRequest {
|
|
5
2
|
/**
|
|
6
3
|
* Catalog reference details for the items to retrieve, including quantity of each item.
|
|
7
4
|
* @minSize 1
|
|
@@ -22,14 +19,14 @@ interface GetCatalogItemsRequest {
|
|
|
22
19
|
*/
|
|
23
20
|
currency?: string;
|
|
24
21
|
}
|
|
25
|
-
interface CatalogReferenceAndQuantity {
|
|
22
|
+
export interface CatalogReferenceAndQuantity {
|
|
26
23
|
/** Catalog and item reference info. Holds IDs for the item and the catalog it belongs to, as well as further optional details. This is identical in the request and response. */
|
|
27
24
|
catalogReference?: CatalogReference;
|
|
28
25
|
/** Item quantity. */
|
|
29
26
|
quantity?: number;
|
|
30
27
|
}
|
|
31
28
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
32
|
-
interface CatalogReference {
|
|
29
|
+
export interface CatalogReference {
|
|
33
30
|
/**
|
|
34
31
|
* ID of the item within the catalog it belongs to.
|
|
35
32
|
* @minLength 1
|
|
@@ -55,7 +52,7 @@ interface CatalogReference {
|
|
|
55
52
|
*/
|
|
56
53
|
options?: Record<string, any> | null;
|
|
57
54
|
}
|
|
58
|
-
declare enum WeightUnit {
|
|
55
|
+
export declare enum WeightUnit {
|
|
59
56
|
/** Weight unit can't be classified due to an error. */
|
|
60
57
|
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
61
58
|
/** Kilograms. */
|
|
@@ -64,7 +61,7 @@ declare enum WeightUnit {
|
|
|
64
61
|
LB = "LB"
|
|
65
62
|
}
|
|
66
63
|
/** Buyer Info */
|
|
67
|
-
interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
64
|
+
export interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
68
65
|
/**
|
|
69
66
|
* Visitor ID - if the buyer is **not** a site member.
|
|
70
67
|
* @format GUID
|
|
@@ -95,7 +92,7 @@ interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
|
95
92
|
email?: string | null;
|
|
96
93
|
}
|
|
97
94
|
/** @oneof */
|
|
98
|
-
interface BuyerInfoIdOneOf {
|
|
95
|
+
export interface BuyerInfoIdOneOf {
|
|
99
96
|
/**
|
|
100
97
|
* Visitor ID - if the buyer is **not** a site member.
|
|
101
98
|
* @format GUID
|
|
@@ -115,20 +112,20 @@ interface BuyerInfoIdOneOf {
|
|
|
115
112
|
*/
|
|
116
113
|
userId?: string;
|
|
117
114
|
}
|
|
118
|
-
interface GetCatalogItemsResponse {
|
|
115
|
+
export interface GetCatalogItemsResponse {
|
|
119
116
|
/**
|
|
120
117
|
* Details for each item, including catalog reference details and item data. Any items that don't exist in the catalog are excluded.
|
|
121
118
|
* If none of the requested items exist in the catalog, this array must be empty.
|
|
122
119
|
*/
|
|
123
120
|
catalogItems?: Item[];
|
|
124
121
|
}
|
|
125
|
-
interface Item {
|
|
122
|
+
export interface Item {
|
|
126
123
|
/** Catalog and item reference info. Holds IDs for the item and the catalog it belongs to, as well as further optional details. This is identical in the request and response. */
|
|
127
124
|
catalogReference?: CatalogReference;
|
|
128
125
|
/** Item data. Contains full details about the item. */
|
|
129
126
|
data?: ItemData;
|
|
130
127
|
}
|
|
131
|
-
interface ItemData {
|
|
128
|
+
export interface ItemData {
|
|
132
129
|
/** __Required.__ Item name. */
|
|
133
130
|
productName?: ProductName;
|
|
134
131
|
/**
|
|
@@ -224,7 +221,7 @@ interface ItemData {
|
|
|
224
221
|
*/
|
|
225
222
|
savePaymentMethod?: boolean;
|
|
226
223
|
}
|
|
227
|
-
interface ProductName {
|
|
224
|
+
export interface ProductName {
|
|
228
225
|
/**
|
|
229
226
|
* __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
230
227
|
*
|
|
@@ -245,27 +242,27 @@ interface ProductName {
|
|
|
245
242
|
*/
|
|
246
243
|
translated?: string | null;
|
|
247
244
|
}
|
|
248
|
-
interface ItemType extends ItemTypeItemTypeDataOneOf {
|
|
245
|
+
export interface ItemType extends ItemTypeItemTypeDataOneOf {
|
|
249
246
|
/** Preset item type. */
|
|
250
247
|
preset?: ItemTypeItemType;
|
|
251
248
|
/** Custom item type. When none of the preset types are suitable, specifies the custom type. */
|
|
252
249
|
custom?: string;
|
|
253
250
|
}
|
|
254
251
|
/** @oneof */
|
|
255
|
-
interface ItemTypeItemTypeDataOneOf {
|
|
252
|
+
export interface ItemTypeItemTypeDataOneOf {
|
|
256
253
|
/** Preset item type. */
|
|
257
254
|
preset?: ItemTypeItemType;
|
|
258
255
|
/** Custom item type. When none of the preset types are suitable, specifies the custom type. */
|
|
259
256
|
custom?: string;
|
|
260
257
|
}
|
|
261
|
-
declare enum ItemTypeItemType {
|
|
258
|
+
export declare enum ItemTypeItemType {
|
|
262
259
|
UNRECOGNISED = "UNRECOGNISED",
|
|
263
260
|
PHYSICAL = "PHYSICAL",
|
|
264
261
|
DIGITAL = "DIGITAL",
|
|
265
262
|
GIFT_CARD = "GIFT_CARD",
|
|
266
263
|
SERVICE = "SERVICE"
|
|
267
264
|
}
|
|
268
|
-
interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
|
|
265
|
+
export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
|
|
269
266
|
/** Description line plain text value. */
|
|
270
267
|
plainText?: PlainTextValue;
|
|
271
268
|
/** Description line color value. */
|
|
@@ -274,16 +271,16 @@ interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDesc
|
|
|
274
271
|
name?: DescriptionLineName;
|
|
275
272
|
}
|
|
276
273
|
/** @oneof */
|
|
277
|
-
interface DescriptionLineValueOneOf {
|
|
274
|
+
export interface DescriptionLineValueOneOf {
|
|
278
275
|
/** Description line plain text value. */
|
|
279
276
|
plainText?: PlainTextValue;
|
|
280
277
|
/** Description line color value. */
|
|
281
278
|
colorInfo?: Color;
|
|
282
279
|
}
|
|
283
280
|
/** @oneof */
|
|
284
|
-
interface DescriptionLineDescriptionLineValueOneOf {
|
|
281
|
+
export interface DescriptionLineDescriptionLineValueOneOf {
|
|
285
282
|
}
|
|
286
|
-
interface DescriptionLineName {
|
|
283
|
+
export interface DescriptionLineName {
|
|
287
284
|
/**
|
|
288
285
|
* Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
289
286
|
* @maxLength 100
|
|
@@ -297,7 +294,7 @@ interface DescriptionLineName {
|
|
|
297
294
|
*/
|
|
298
295
|
translated?: string | null;
|
|
299
296
|
}
|
|
300
|
-
interface PlainTextValue {
|
|
297
|
+
export interface PlainTextValue {
|
|
301
298
|
/**
|
|
302
299
|
* Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
303
300
|
* @maxLength 600
|
|
@@ -311,7 +308,7 @@ interface PlainTextValue {
|
|
|
311
308
|
*/
|
|
312
309
|
translated?: string | null;
|
|
313
310
|
}
|
|
314
|
-
interface Color {
|
|
311
|
+
export interface Color {
|
|
315
312
|
/**
|
|
316
313
|
* Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
317
314
|
* @maxLength 500
|
|
@@ -327,7 +324,7 @@ interface Color {
|
|
|
327
324
|
/** HEX or RGB color code for display. */
|
|
328
325
|
code?: string | null;
|
|
329
326
|
}
|
|
330
|
-
declare enum DescriptionLineType {
|
|
327
|
+
export declare enum DescriptionLineType {
|
|
331
328
|
/** Unrecognized type. */
|
|
332
329
|
UNRECOGNISED = "UNRECOGNISED",
|
|
333
330
|
/** Plain text type. */
|
|
@@ -335,7 +332,7 @@ declare enum DescriptionLineType {
|
|
|
335
332
|
/** Color type. */
|
|
336
333
|
COLOR = "COLOR"
|
|
337
334
|
}
|
|
338
|
-
interface PhysicalProperties {
|
|
335
|
+
export interface PhysicalProperties {
|
|
339
336
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
340
337
|
weight?: number | null;
|
|
341
338
|
/**
|
|
@@ -346,19 +343,19 @@ interface PhysicalProperties {
|
|
|
346
343
|
/** Whether this line item is shippable. */
|
|
347
344
|
shippable?: boolean;
|
|
348
345
|
}
|
|
349
|
-
interface Scope {
|
|
346
|
+
export interface Scope {
|
|
350
347
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
351
348
|
namespace?: string;
|
|
352
349
|
/** Coupon scope's applied group (e.g., event or ticket in Wix Events) */
|
|
353
350
|
group?: Group;
|
|
354
351
|
}
|
|
355
|
-
interface Group {
|
|
352
|
+
export interface Group {
|
|
356
353
|
/** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
357
354
|
name?: string;
|
|
358
355
|
/** Item ID (when the coupon scope is limited to just one item). */
|
|
359
356
|
entityId?: string | null;
|
|
360
357
|
}
|
|
361
|
-
interface SubscriptionOptionInfo {
|
|
358
|
+
export interface SubscriptionOptionInfo {
|
|
362
359
|
/** Subscription option settings. */
|
|
363
360
|
subscriptionSettings?: SubscriptionSettings;
|
|
364
361
|
/** Subscription option title. */
|
|
@@ -366,7 +363,7 @@ interface SubscriptionOptionInfo {
|
|
|
366
363
|
/** Subscription option description. */
|
|
367
364
|
description?: Description;
|
|
368
365
|
}
|
|
369
|
-
interface SubscriptionSettings {
|
|
366
|
+
export interface SubscriptionSettings {
|
|
370
367
|
/** Frequency of recurring payment. */
|
|
371
368
|
frequency?: SubscriptionFrequency;
|
|
372
369
|
/**
|
|
@@ -387,14 +384,14 @@ interface SubscriptionSettings {
|
|
|
387
384
|
billingCycles?: number | null;
|
|
388
385
|
}
|
|
389
386
|
/** Frequency unit of recurring payment */
|
|
390
|
-
declare enum SubscriptionFrequency {
|
|
387
|
+
export declare enum SubscriptionFrequency {
|
|
391
388
|
UNDEFINED = "UNDEFINED",
|
|
392
389
|
DAY = "DAY",
|
|
393
390
|
WEEK = "WEEK",
|
|
394
391
|
MONTH = "MONTH",
|
|
395
392
|
YEAR = "YEAR"
|
|
396
393
|
}
|
|
397
|
-
interface FreeTrialPeriod {
|
|
394
|
+
export interface FreeTrialPeriod {
|
|
398
395
|
/** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
|
|
399
396
|
frequency?: SubscriptionFrequency;
|
|
400
397
|
/**
|
|
@@ -404,7 +401,7 @@ interface FreeTrialPeriod {
|
|
|
404
401
|
*/
|
|
405
402
|
interval?: number;
|
|
406
403
|
}
|
|
407
|
-
interface Title {
|
|
404
|
+
export interface Title {
|
|
408
405
|
/**
|
|
409
406
|
* Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
410
407
|
* @minLength 1
|
|
@@ -420,7 +417,7 @@ interface Title {
|
|
|
420
417
|
*/
|
|
421
418
|
translated?: string | null;
|
|
422
419
|
}
|
|
423
|
-
interface Description {
|
|
420
|
+
export interface Description {
|
|
424
421
|
/**
|
|
425
422
|
* Subscription option description.
|
|
426
423
|
* @maxLength 500
|
|
@@ -432,7 +429,7 @@ interface Description {
|
|
|
432
429
|
*/
|
|
433
430
|
translated?: string | null;
|
|
434
431
|
}
|
|
435
|
-
interface SecuredMedia {
|
|
432
|
+
export interface SecuredMedia {
|
|
436
433
|
/**
|
|
437
434
|
* Media ID in Wix Media Manager.
|
|
438
435
|
* @minLength 1
|
|
@@ -448,7 +445,7 @@ interface SecuredMedia {
|
|
|
448
445
|
/** File type. */
|
|
449
446
|
fileType?: FileType;
|
|
450
447
|
}
|
|
451
|
-
declare enum FileType {
|
|
448
|
+
export declare enum FileType {
|
|
452
449
|
UNSPECIFIED = "UNSPECIFIED",
|
|
453
450
|
SECURE_PICTURE = "SECURE_PICTURE",
|
|
454
451
|
SECURE_VIDEO = "SECURE_VIDEO",
|
|
@@ -457,7 +454,7 @@ declare enum FileType {
|
|
|
457
454
|
SECURE_ARCHIVE = "SECURE_ARCHIVE"
|
|
458
455
|
}
|
|
459
456
|
/** Type of selected payment option for catalog item */
|
|
460
|
-
declare enum PaymentOptionType {
|
|
457
|
+
export declare enum PaymentOptionType {
|
|
461
458
|
/** The entire payment for this item happens as part of the checkout. */
|
|
462
459
|
FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
|
|
463
460
|
/** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
|
|
@@ -469,7 +466,7 @@ declare enum PaymentOptionType {
|
|
|
469
466
|
/** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
|
|
470
467
|
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
|
|
471
468
|
}
|
|
472
|
-
interface ServiceProperties {
|
|
469
|
+
export interface ServiceProperties {
|
|
473
470
|
/**
|
|
474
471
|
* Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
475
472
|
* For example, the start time of a class.
|
|
@@ -482,7 +479,7 @@ interface ServiceProperties {
|
|
|
482
479
|
*/
|
|
483
480
|
numberOfParticipants?: number | null;
|
|
484
481
|
}
|
|
485
|
-
interface PriceDescription {
|
|
482
|
+
export interface PriceDescription {
|
|
486
483
|
/**
|
|
487
484
|
* __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
488
485
|
* @minLength 1
|
|
@@ -498,22 +495,22 @@ interface PriceDescription {
|
|
|
498
495
|
*/
|
|
499
496
|
translated?: string | null;
|
|
500
497
|
}
|
|
501
|
-
interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
|
|
498
|
+
export interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
|
|
502
499
|
/** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
|
|
503
500
|
addressType?: TaxableAddressType;
|
|
504
501
|
}
|
|
505
502
|
/** @oneof */
|
|
506
|
-
interface TaxableAddressTaxableAddressDataOneOf {
|
|
503
|
+
export interface TaxableAddressTaxableAddressDataOneOf {
|
|
507
504
|
/** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
|
|
508
505
|
addressType?: TaxableAddressType;
|
|
509
506
|
}
|
|
510
|
-
declare enum TaxableAddressType {
|
|
507
|
+
export declare enum TaxableAddressType {
|
|
511
508
|
UNKNOWN_TAXABLE_ADDRESS = "UNKNOWN_TAXABLE_ADDRESS",
|
|
512
509
|
BUSINESS = "BUSINESS",
|
|
513
510
|
BILLING = "BILLING",
|
|
514
511
|
SHIPPING = "SHIPPING"
|
|
515
512
|
}
|
|
516
|
-
interface Policy {
|
|
513
|
+
export interface Policy {
|
|
517
514
|
/**
|
|
518
515
|
* Policy title - should be translated
|
|
519
516
|
* @minLength 1
|
|
@@ -527,7 +524,7 @@ interface Policy {
|
|
|
527
524
|
*/
|
|
528
525
|
content?: string;
|
|
529
526
|
}
|
|
530
|
-
interface AdditionalFee {
|
|
527
|
+
export interface AdditionalFee {
|
|
531
528
|
/**
|
|
532
529
|
* Additional fee's unique code or ID.
|
|
533
530
|
* @minLength 1
|
|
@@ -555,7 +552,7 @@ interface AdditionalFee {
|
|
|
555
552
|
taxDetails?: TaxDetails;
|
|
556
553
|
}
|
|
557
554
|
/** Tax details. */
|
|
558
|
-
interface TaxDetails {
|
|
555
|
+
export interface TaxDetails {
|
|
559
556
|
/** Whether additional fee is taxable. */
|
|
560
557
|
taxable?: boolean;
|
|
561
558
|
/**
|
|
@@ -564,7 +561,7 @@ interface TaxDetails {
|
|
|
564
561
|
*/
|
|
565
562
|
taxGroupId?: string | null;
|
|
566
563
|
}
|
|
567
|
-
interface ModifierGroup {
|
|
564
|
+
export interface ModifierGroup {
|
|
568
565
|
/**
|
|
569
566
|
* Modifier group id.
|
|
570
567
|
* @minLength 1
|
|
@@ -580,7 +577,7 @@ interface ModifierGroup {
|
|
|
580
577
|
*/
|
|
581
578
|
modifiers?: ItemModifier[];
|
|
582
579
|
}
|
|
583
|
-
interface TranslatableString {
|
|
580
|
+
export interface TranslatableString {
|
|
584
581
|
/**
|
|
585
582
|
* __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
586
583
|
*
|
|
@@ -601,7 +598,7 @@ interface TranslatableString {
|
|
|
601
598
|
*/
|
|
602
599
|
translated?: string | null;
|
|
603
600
|
}
|
|
604
|
-
interface ItemModifier {
|
|
601
|
+
export interface ItemModifier {
|
|
605
602
|
/**
|
|
606
603
|
* Modifier ID.
|
|
607
604
|
* @minLength 1
|
|
@@ -624,7 +621,7 @@ interface ItemModifier {
|
|
|
624
621
|
*/
|
|
625
622
|
price?: string | null;
|
|
626
623
|
}
|
|
627
|
-
interface QueryCatalogItemsRequest {
|
|
624
|
+
export interface QueryCatalogItemsRequest {
|
|
628
625
|
/**
|
|
629
626
|
* A list of itemIDs to filter by. If exists, the result will only include the items with the IDs passed.
|
|
630
627
|
* @minLength 1
|
|
@@ -646,19 +643,19 @@ interface QueryCatalogItemsRequest {
|
|
|
646
643
|
*/
|
|
647
644
|
lastNumericId?: string | null;
|
|
648
645
|
}
|
|
649
|
-
interface Paging {
|
|
646
|
+
export interface Paging {
|
|
650
647
|
/** Number of items to load. */
|
|
651
648
|
limit?: number | null;
|
|
652
649
|
/** Number of items to skip in the current sort order. */
|
|
653
650
|
offset?: number | null;
|
|
654
651
|
}
|
|
655
|
-
interface QueryCatalogItemsResponse {
|
|
652
|
+
export interface QueryCatalogItemsResponse {
|
|
656
653
|
/** Catalog info and item data. */
|
|
657
654
|
catalogItems?: BasicItem[];
|
|
658
655
|
/** Paging metadata. */
|
|
659
656
|
metadata?: PagingMetadata;
|
|
660
657
|
}
|
|
661
|
-
interface BasicItem {
|
|
658
|
+
export interface BasicItem {
|
|
662
659
|
/**
|
|
663
660
|
* The ID of the item.
|
|
664
661
|
* @minLength 1
|
|
@@ -679,13 +676,13 @@ interface BasicItem {
|
|
|
679
676
|
*/
|
|
680
677
|
numericId?: string | null;
|
|
681
678
|
}
|
|
682
|
-
interface NumericPropertyRange {
|
|
679
|
+
export interface NumericPropertyRange {
|
|
683
680
|
/** Minimum value. */
|
|
684
681
|
minValue?: number;
|
|
685
682
|
/** Maximum value. */
|
|
686
683
|
maxValue?: number;
|
|
687
684
|
}
|
|
688
|
-
interface PagingMetadata {
|
|
685
|
+
export interface PagingMetadata {
|
|
689
686
|
/** Number of items returned in the response. */
|
|
690
687
|
count?: number | null;
|
|
691
688
|
/** Offset that was requested. */
|
|
@@ -695,7 +692,7 @@ interface PagingMetadata {
|
|
|
695
692
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
696
693
|
tooManyToCount?: boolean | null;
|
|
697
694
|
}
|
|
698
|
-
interface CatalogSPIConfig {
|
|
695
|
+
export interface CatalogSPIConfig {
|
|
699
696
|
/** Base URI which Wix eCommerce will call to access Catalog service plugin endpoints. For example, to call the Get Catalog Items endpoint at `https://my-external-catalog.com/get-catalog-items`, the base URI you provide here is `https://my-external-catalog.com`. */
|
|
700
697
|
deploymentUri?: string;
|
|
701
698
|
/** Configuration details for discounts applied to all items in the catalog. */
|
|
@@ -704,7 +701,7 @@ interface CatalogSPIConfig {
|
|
|
704
701
|
specificItemsDiscount?: SpecificItemsDiscountConfig;
|
|
705
702
|
}
|
|
706
703
|
/** Configuration for all items discount functionality in the catalog. */
|
|
707
|
-
interface AllItemsDiscountConfig {
|
|
704
|
+
export interface AllItemsDiscountConfig {
|
|
708
705
|
/**
|
|
709
706
|
* Whether the discount is enabled.
|
|
710
707
|
*
|
|
@@ -720,7 +717,7 @@ interface AllItemsDiscountConfig {
|
|
|
720
717
|
name?: string | null;
|
|
721
718
|
}
|
|
722
719
|
/** Configuration for discount functionality in the catalog. */
|
|
723
|
-
interface SpecificItemsDiscountConfig {
|
|
720
|
+
export interface SpecificItemsDiscountConfig {
|
|
724
721
|
/**
|
|
725
722
|
* Whether the discount is enabled.
|
|
726
723
|
*
|
|
@@ -747,7 +744,7 @@ interface SpecificItemsDiscountConfig {
|
|
|
747
744
|
* }
|
|
748
745
|
* ```
|
|
749
746
|
*/
|
|
750
|
-
interface Context {
|
|
747
|
+
export interface Context {
|
|
751
748
|
/** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
|
|
752
749
|
requestId?: string | null;
|
|
753
750
|
/**
|
|
@@ -765,14 +762,14 @@ interface Context {
|
|
|
765
762
|
*/
|
|
766
763
|
instanceId?: string | null;
|
|
767
764
|
}
|
|
768
|
-
declare enum IdentityType {
|
|
765
|
+
export declare enum IdentityType {
|
|
769
766
|
UNKNOWN = "UNKNOWN",
|
|
770
767
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
771
768
|
MEMBER = "MEMBER",
|
|
772
769
|
WIX_USER = "WIX_USER",
|
|
773
770
|
APP = "APP"
|
|
774
771
|
}
|
|
775
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
772
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
776
773
|
/**
|
|
777
774
|
* ID of a site visitor that has not logged in to the site.
|
|
778
775
|
* @format GUID
|
|
@@ -797,7 +794,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
797
794
|
identityType?: IdentityType;
|
|
798
795
|
}
|
|
799
796
|
/** @oneof */
|
|
800
|
-
interface IdentificationDataIdOneOf {
|
|
797
|
+
export interface IdentificationDataIdOneOf {
|
|
801
798
|
/**
|
|
802
799
|
* ID of a site visitor that has not logged in to the site.
|
|
803
800
|
* @format GUID
|
|
@@ -819,39 +816,3 @@ interface IdentificationDataIdOneOf {
|
|
|
819
816
|
*/
|
|
820
817
|
appId?: string;
|
|
821
818
|
}
|
|
822
|
-
|
|
823
|
-
interface GetCatalogItemsEnvelope {
|
|
824
|
-
request: GetCatalogItemsRequest;
|
|
825
|
-
metadata: Context;
|
|
826
|
-
}
|
|
827
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
828
|
-
/**
|
|
829
|
-
*
|
|
830
|
-
* Retrieves data for specified items in a specified catalog.
|
|
831
|
-
*
|
|
832
|
-
* Wix calls this method whenever a cart or checkout is updated, and when an item is added to an order.
|
|
833
|
-
*
|
|
834
|
-
* The method receives a `catalogReferences` array. Each catalog reference in the array contains:
|
|
835
|
-
* + The ID of the item whose latest information Wix needs to retrieve.
|
|
836
|
-
* + The ID of the app providing the catalog containing the item.
|
|
837
|
-
* + Optional details about preferences or customization of the item.
|
|
838
|
-
*
|
|
839
|
-
* The method also receives preferences for the currency and weight unit to be used in the response.
|
|
840
|
-
*
|
|
841
|
-
* Your external catalog can store and organize item details in any way you prefer.
|
|
842
|
-
* When implementing the Catalog service plugin, learn how to handle item variants ([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/catalog-service-plugin/handle-item-variants) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/service-plugins/catalog/handle-item-variants)) in a way that meets your needs.
|
|
843
|
-
*
|
|
844
|
-
* The method's response must contain a `catalogItems` array. Each item in the array must contain:
|
|
845
|
-
* + A `catalogReference` object. This must be identical to the `catalogReference` object received in the request.
|
|
846
|
-
* + A `data` object with full details about the item.
|
|
847
|
-
*
|
|
848
|
-
* > **Notes:**
|
|
849
|
-
* > + If an item doesn't exist in the catalog, the response must exclude it from the `catalogItems` array in the response.
|
|
850
|
-
* > + When none of the items requested exist in the catalog, `catalogItems` must contain an empty array.
|
|
851
|
-
* > + Wix calls the method every time a cart or checkout is updated. If the response doesn't include an item that was already in the cart or checkout, Wix removes the item from the cart or checkout. */
|
|
852
|
-
getCatalogItems(payload: GetCatalogItemsEnvelope): GetCatalogItemsResponse | Promise<GetCatalogItemsResponse>;
|
|
853
|
-
}>;
|
|
854
|
-
|
|
855
|
-
declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
|
|
856
|
-
|
|
857
|
-
export { type AdditionalFee, type AllItemsDiscountConfig, type BasicItem, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type CatalogReferenceAndQuantity, type CatalogSPIConfig, type Color, type Context, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineValueOneOf, FileType, type FreeTrialPeriod, type GetCatalogItemsRequest, type GetCatalogItemsResponse, type Group, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type Item, type ItemData, type ItemModifier, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ModifierGroup, type NumericPropertyRange, type Paging, type PagingMetadata, PaymentOptionType, type PhysicalProperties, type PlainTextValue, type Policy, type PriceDescription, type ProductName, type QueryCatalogItemsRequest, type QueryCatalogItemsResponse, type Scope, type SecuredMedia, type ServiceProperties, type SpecificItemsDiscountConfig, SubscriptionFrequency, type SubscriptionOptionInfo, type SubscriptionSettings, type TaxDetails, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type Title, type TranslatableString, WeightUnit, provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityType = exports.TaxableAddressType = exports.PaymentOptionType = exports.FileType = exports.SubscriptionFrequency = exports.DescriptionLineType = exports.ItemTypeItemType = exports.WeightUnit = void 0;
|
|
4
|
+
var WeightUnit;
|
|
5
|
+
(function (WeightUnit) {
|
|
6
|
+
/** Weight unit can't be classified due to an error. */
|
|
7
|
+
WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
8
|
+
/** Kilograms. */
|
|
9
|
+
WeightUnit["KG"] = "KG";
|
|
10
|
+
/** Pounds. */
|
|
11
|
+
WeightUnit["LB"] = "LB";
|
|
12
|
+
})(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
|
|
13
|
+
var ItemTypeItemType;
|
|
14
|
+
(function (ItemTypeItemType) {
|
|
15
|
+
ItemTypeItemType["UNRECOGNISED"] = "UNRECOGNISED";
|
|
16
|
+
ItemTypeItemType["PHYSICAL"] = "PHYSICAL";
|
|
17
|
+
ItemTypeItemType["DIGITAL"] = "DIGITAL";
|
|
18
|
+
ItemTypeItemType["GIFT_CARD"] = "GIFT_CARD";
|
|
19
|
+
ItemTypeItemType["SERVICE"] = "SERVICE";
|
|
20
|
+
})(ItemTypeItemType || (exports.ItemTypeItemType = ItemTypeItemType = {}));
|
|
21
|
+
var DescriptionLineType;
|
|
22
|
+
(function (DescriptionLineType) {
|
|
23
|
+
/** Unrecognized type. */
|
|
24
|
+
DescriptionLineType["UNRECOGNISED"] = "UNRECOGNISED";
|
|
25
|
+
/** Plain text type. */
|
|
26
|
+
DescriptionLineType["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
27
|
+
/** Color type. */
|
|
28
|
+
DescriptionLineType["COLOR"] = "COLOR";
|
|
29
|
+
})(DescriptionLineType || (exports.DescriptionLineType = DescriptionLineType = {}));
|
|
30
|
+
/** Frequency unit of recurring payment */
|
|
31
|
+
var SubscriptionFrequency;
|
|
32
|
+
(function (SubscriptionFrequency) {
|
|
33
|
+
SubscriptionFrequency["UNDEFINED"] = "UNDEFINED";
|
|
34
|
+
SubscriptionFrequency["DAY"] = "DAY";
|
|
35
|
+
SubscriptionFrequency["WEEK"] = "WEEK";
|
|
36
|
+
SubscriptionFrequency["MONTH"] = "MONTH";
|
|
37
|
+
SubscriptionFrequency["YEAR"] = "YEAR";
|
|
38
|
+
})(SubscriptionFrequency || (exports.SubscriptionFrequency = SubscriptionFrequency = {}));
|
|
39
|
+
var FileType;
|
|
40
|
+
(function (FileType) {
|
|
41
|
+
FileType["UNSPECIFIED"] = "UNSPECIFIED";
|
|
42
|
+
FileType["SECURE_PICTURE"] = "SECURE_PICTURE";
|
|
43
|
+
FileType["SECURE_VIDEO"] = "SECURE_VIDEO";
|
|
44
|
+
FileType["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
|
|
45
|
+
FileType["SECURE_MUSIC"] = "SECURE_MUSIC";
|
|
46
|
+
FileType["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
|
|
47
|
+
})(FileType || (exports.FileType = FileType = {}));
|
|
48
|
+
/** Type of selected payment option for catalog item */
|
|
49
|
+
var PaymentOptionType;
|
|
50
|
+
(function (PaymentOptionType) {
|
|
51
|
+
/** The entire payment for this item happens as part of the checkout. */
|
|
52
|
+
PaymentOptionType["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
|
|
53
|
+
/** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
|
|
54
|
+
PaymentOptionType["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
55
|
+
/** Payment for this item is done by charging a membership. When selected, `price` is `0`. */
|
|
56
|
+
PaymentOptionType["MEMBERSHIP"] = "MEMBERSHIP";
|
|
57
|
+
/** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */
|
|
58
|
+
PaymentOptionType["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
|
|
59
|
+
/** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
|
|
60
|
+
PaymentOptionType["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
61
|
+
})(PaymentOptionType || (exports.PaymentOptionType = PaymentOptionType = {}));
|
|
62
|
+
var TaxableAddressType;
|
|
63
|
+
(function (TaxableAddressType) {
|
|
64
|
+
TaxableAddressType["UNKNOWN_TAXABLE_ADDRESS"] = "UNKNOWN_TAXABLE_ADDRESS";
|
|
65
|
+
TaxableAddressType["BUSINESS"] = "BUSINESS";
|
|
66
|
+
TaxableAddressType["BILLING"] = "BILLING";
|
|
67
|
+
TaxableAddressType["SHIPPING"] = "SHIPPING";
|
|
68
|
+
})(TaxableAddressType || (exports.TaxableAddressType = TaxableAddressType = {}));
|
|
69
|
+
var IdentityType;
|
|
70
|
+
(function (IdentityType) {
|
|
71
|
+
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
72
|
+
IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
73
|
+
IdentityType["MEMBER"] = "MEMBER";
|
|
74
|
+
IdentityType["WIX_USER"] = "WIX_USER";
|
|
75
|
+
IdentityType["APP"] = "APP";
|
|
76
|
+
})(IdentityType || (exports.IdentityType = IdentityType = {}));
|
|
77
|
+
//# sourceMappingURL=service-plugins-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings":";;;AAyDA,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,uDAAuD;IACvD,iEAAmD,CAAA;IACnD,iBAAiB;IACjB,uBAAS,CAAA;IACT,cAAc;IACd,uBAAS,CAAA;AACX,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AA6MD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAuED,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,yBAAyB;IACzB,oDAA6B,CAAA;IAC7B,uBAAuB;IACvB,gDAAyB,CAAA;IACzB,kBAAkB;IAClB,sCAAe,CAAA;AACjB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AA0DD,0CAA0C;AAC1C,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AA4DD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,6CAAiC,CAAA;IACjC,yCAA6B,CAAA;IAC7B,+CAAmC,CAAA;IACnC,yCAA6B,CAAA;IAC7B,6CAAiC,CAAA;AACnC,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAED,uDAAuD;AACvD,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,gEAA2C,CAAA;IAC3C,sIAAsI;IACtI,kEAA6C,CAAA;IAC7C,6FAA6F;IAC7F,8CAAyB,CAAA;IACzB,4IAA4I;IAC5I,sDAAiC,CAAA;IACjC,uKAAuK;IACvK,8DAAyC,CAAA;AAC3C,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B;AA4CD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yEAAmD,CAAA;IACnD,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AA8QD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2DAA2D,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GetCatalogItemsResponse } from './src/service-plugins-types.js';
|
|
2
|
+
import { GetCatalogItemsEnvelope } from './src/interfaces-ecommerce-v1-catalog-provider.public.js';
|
|
3
|
+
export * from './src/service-plugins-types';
|
|
4
|
+
export { GetCatalogItemsEnvelope };
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves data for specified items in a specified catalog.
|
|
7
|
+
*
|
|
8
|
+
* Wix calls this method whenever a cart or checkout is updated, and when an item is added to an order.
|
|
9
|
+
*
|
|
10
|
+
* The method receives a `catalogReferences` array. Each catalog reference in the array contains:
|
|
11
|
+
* + The ID of the item whose latest information Wix needs to retrieve.
|
|
12
|
+
* + The ID of the app providing the catalog containing the item.
|
|
13
|
+
* + Optional details about preferences or customization of the item.
|
|
14
|
+
*
|
|
15
|
+
* The method also receives preferences for the currency and weight unit to be used in the response.
|
|
16
|
+
*
|
|
17
|
+
* Your external catalog can store and organize item details in any way you prefer.
|
|
18
|
+
* When implementing the Catalog service plugin, learn how to handle item variants ([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/catalog-service-plugin/handle-item-variants) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/service-plugins/catalog/handle-item-variants)) in a way that meets your needs.
|
|
19
|
+
*
|
|
20
|
+
* The method's response must contain a `catalogItems` array. Each item in the array must contain:
|
|
21
|
+
* + A `catalogReference` object. This must be identical to the `catalogReference` object received in the request.
|
|
22
|
+
* + A `data` object with full details about the item.
|
|
23
|
+
*
|
|
24
|
+
* > **Notes:**
|
|
25
|
+
* > + If an item doesn't exist in the catalog, the response must exclude it from the `catalogItems` array in the response.
|
|
26
|
+
* > + When none of the items requested exist in the catalog, `catalogItems` must contain an empty array.
|
|
27
|
+
* > + Wix calls the method every time a cart or checkout is updated. If the response doesn't include an item that was already in the cart or checkout, Wix removes the item from the cart or checkout.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getCatalogItems(payload: GetCatalogItemsEnvelope): GetCatalogItemsResponse | Promise<GetCatalogItemsResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAGA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './interfaces-ecommerce-v1-catalog-provider.public.js';
|
|
2
|
+
import { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';
|
|
3
|
+
import { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-catalog-provider.public.js';
|
|
4
|
+
export { publicProvideHandlers };
|
|
5
|
+
export declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './interfaces-ecommerce-v1-catalog-provider.public.js';
|
|
2
|
+
import { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';
|
|
3
|
+
import { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-catalog-provider.public.js';
|
|
4
|
+
export { publicProvideHandlers };
|
|
5
|
+
export const provideHandlers = createServicePluginModule(publicProvideHandlers);
|
|
6
|
+
//# sourceMappingURL=interfaces-ecommerce-v1-catalog-provider.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces-ecommerce-v1-catalog-provider.context.js","sourceRoot":"","sources":["../../../src/interfaces-ecommerce-v1-catalog-provider.context.ts"],"names":[],"mappings":"AAAA,OAAO,sDAAsD,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAEhH,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,CAAC,MAAM,eAAe,GAExB,yBAAyB,CAAC,qBAAqB,CAAC,CAAC"}
|