@jay-framework/wix-stores 0.20.0 → 0.21.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/README.md +8 -1
- package/agent-kit/aiditor/add-menu.template.yaml +109 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/category-list.svg +12 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/category-products.svg +15 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/product-page.svg +12 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/product-search.svg +17 -0
- package/agent-kit/aiditor/thumbnails/wix-stores/related-products.svg +15 -0
- package/agent-kit/designer/related-products.md +123 -0
- package/dist/agent-kit/aiditor/add-menu.template.yaml +30 -8
- package/dist/agent-kit/aiditor/thumbnails/wix-stores/related-products.svg +15 -0
- package/dist/index.client.js +130 -14
- package/dist/index.d.ts +36 -10
- package/dist/index.js +394 -137
- package/package.json +17 -20
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,7 @@ import * as _jay_framework_component from '@jay-framework/component';
|
|
|
6
6
|
import * as _jay_framework_runtime from '@jay-framework/runtime';
|
|
7
7
|
import { HTMLElementCollectionProxy, HTMLElementProxy } from '@jay-framework/runtime';
|
|
8
8
|
import { WixClient } from '@wix/sdk';
|
|
9
|
-
import { BuildDescriptors } from '@wix/sdk-types';
|
|
10
|
-
import { productsV3, inventoryItemsV3, customizationsV3 } from '@wix/stores';
|
|
11
|
-
import { categories } from '@wix/categories';
|
|
12
|
-
import { Customization } from '@wix/auto_sdk_stores_customizations-v-3';
|
|
13
9
|
import { Getter } from '@jay-framework/reactive';
|
|
14
|
-
import { OptionChoice } from '@wix/auto_sdk_stores_products-v-3';
|
|
15
10
|
import { PluginSetupContext, PluginSetupResult, PluginReferencesContext, PluginReferencesResult } from '@jay-framework/stack-server-runtime';
|
|
16
11
|
|
|
17
12
|
declare enum OptionRenderType$2 {
|
|
@@ -472,11 +467,42 @@ interface DataExtensionSchema {
|
|
|
472
467
|
revision?: string | null;
|
|
473
468
|
}
|
|
474
469
|
|
|
470
|
+
interface VariantChoice {
|
|
471
|
+
optionChoiceIds: {
|
|
472
|
+
optionId: string;
|
|
473
|
+
choiceId: string;
|
|
474
|
+
};
|
|
475
|
+
optionChoiceNames?: {
|
|
476
|
+
optionName?: string;
|
|
477
|
+
choiceName?: string;
|
|
478
|
+
renderType?: string;
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
interface Customization {
|
|
482
|
+
_id?: string;
|
|
483
|
+
name?: string;
|
|
484
|
+
productId?: string;
|
|
485
|
+
title?: string;
|
|
486
|
+
customizationType?: string;
|
|
487
|
+
customizationRenderType?: string;
|
|
488
|
+
visible?: boolean;
|
|
489
|
+
choicesSettings?: {
|
|
490
|
+
choices?: CustomizationChoice[];
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
interface CustomizationChoice {
|
|
494
|
+
_id?: string;
|
|
495
|
+
name?: string;
|
|
496
|
+
value?: string;
|
|
497
|
+
description?: string;
|
|
498
|
+
colorCode?: string;
|
|
499
|
+
inStock?: boolean;
|
|
500
|
+
surcharge?: number;
|
|
501
|
+
}
|
|
502
|
+
|
|
475
503
|
interface WixStoresService {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
inventory: BuildDescriptors<typeof inventoryItemsV3, {}>;
|
|
479
|
-
customizations: BuildDescriptors<typeof customizationsV3, {}>;
|
|
504
|
+
/** The authenticated Wix client (server-side, API key auth) */
|
|
505
|
+
wixClient: WixClient;
|
|
480
506
|
/** URL templates for building canonical links */
|
|
481
507
|
urls: UrlTemplates;
|
|
482
508
|
/** Slug of the fallback category for pages without category context */
|
|
@@ -846,7 +872,7 @@ interface InteractiveVariant {
|
|
|
846
872
|
sku: string;
|
|
847
873
|
price: string;
|
|
848
874
|
strikethroughPrice: string;
|
|
849
|
-
choices:
|
|
875
|
+
choices: VariantChoice[];
|
|
850
876
|
mediaId?: string;
|
|
851
877
|
inventoryStatus: StockStatus;
|
|
852
878
|
}
|