@oneclick.dev/cms-core-modules 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.cjs.js +12 -12
  2. package/dist/index.mjs +14114 -9423
  3. package/dist/src/index.d.ts +2 -0
  4. package/dist/src/product-collections/components/detail/Inventory.vue.d.ts +2 -0
  5. package/dist/src/product-collections/components/detail/Main.vue.d.ts +2 -0
  6. package/dist/src/product-collections/components/detail/Price.vue.d.ts +2 -0
  7. package/dist/src/product-collections/components/detail/SEO.vue.d.ts +2 -0
  8. package/dist/src/product-collections/components/detail/Shipping.vue.d.ts +2 -0
  9. package/dist/src/product-collections/components/detail/Status.vue.d.ts +2 -0
  10. package/dist/src/product-collections/components/detail/price/UnitPriceDialog.vue.d.ts +17 -0
  11. package/dist/src/product-collections/components/detail/variants/Option.vue.d.ts +33 -0
  12. package/dist/src/product-collections/components/detail/variants/VariantList.vue.d.ts +38 -0
  13. package/dist/src/product-collections/composables/useTable.d.ts +3 -0
  14. package/dist/src/product-collections/config.d.ts +24 -0
  15. package/dist/src/product-collections/index.d.ts +63 -0
  16. package/dist/src/product-collections/index.vue.d.ts +22 -0
  17. package/dist/src/product-collections/metadata.d.ts +2 -0
  18. package/dist/src/product-collections/pages/Detail.vue.d.ts +14 -0
  19. package/dist/src/product-collections/pages/Overview.vue.d.ts +16 -0
  20. package/dist/src/product-collections/permissions.d.ts +5 -0
  21. package/dist/src/product-collections/routes.d.ts +15 -0
  22. package/dist/src/product-collections/stores/useTableStore.d.ts +5 -0
  23. package/dist/src/product-collections/tools.d.ts +25 -0
  24. package/dist/src/product-collections/types.d.ts +20 -0
  25. package/dist/src/products/components/detail/variants/Option.vue.d.ts +3 -0
  26. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +13 -1
  27. package/dist/src/products/config.d.ts +5 -35
  28. package/dist/src/products/index.d.ts +5 -35
  29. package/dist/src/products/types.d.ts +48 -41
  30. package/dist/src/promo-codes/components/create/DateRange.vue.d.ts +2 -0
  31. package/dist/src/promo-codes/components/create/MultiCodes.vue.d.ts +2 -0
  32. package/dist/src/promo-codes/components/create/Note.vue.d.ts +2 -0
  33. package/dist/src/promo-codes/components/create/SingleCode.vue.d.ts +2 -0
  34. package/dist/src/promo-codes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
  35. package/dist/src/promo-codes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
  36. package/dist/src/promo-codes/components/create/TypeAndValue/index.vue.d.ts +2 -0
  37. package/dist/src/promo-codes/config.d.ts +14 -0
  38. package/dist/src/promo-codes/index.d.ts +53 -0
  39. package/dist/src/promo-codes/index.vue.d.ts +22 -0
  40. package/dist/src/promo-codes/metadata.d.ts +2 -0
  41. package/dist/src/promo-codes/pages/Create.vue.d.ts +16 -0
  42. package/dist/src/promo-codes/pages/Detail.vue.d.ts +14 -0
  43. package/dist/src/promo-codes/pages/Find.vue.d.ts +16 -0
  44. package/dist/src/promo-codes/permissions.d.ts +5 -0
  45. package/dist/src/promo-codes/routes.d.ts +15 -0
  46. package/dist/src/promo-codes/stores/useTableStore.d.ts +5 -0
  47. package/dist/src/promo-codes/tools.d.ts +25 -0
  48. package/dist/src/promo-codes/types.d.ts +42 -0
  49. package/package.json +3 -2
@@ -1,3 +1,5 @@
1
1
  export { table } from './table';
2
2
  export { products } from './products';
3
3
  export { custom } from './custom';
4
+ export { promoCodes } from './promo-codes';
5
+ export { productCollections } from './product-collections';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,33 @@
1
+ interface OptionValue {
2
+ id: string;
3
+ value: string;
4
+ touched?: boolean;
5
+ }
6
+ interface Option {
7
+ id: string;
8
+ name: string;
9
+ values: OptionValue[];
10
+ nameError?: string;
11
+ }
12
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ option: {
14
+ type: () => Option;
15
+ required: true;
16
+ };
17
+ }>, {
18
+ minified: import('vue').Ref<boolean, boolean>;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "update:option": (...args: any[]) => void;
21
+ remove: (...args: any[]) => void;
22
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ option: {
24
+ type: () => Option;
25
+ required: true;
26
+ };
27
+ }>> & Readonly<{
28
+ "onUpdate:option"?: ((...args: any[]) => any) | undefined;
29
+ onRemove?: ((...args: any[]) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
31
+ valueListRef: HTMLDivElement;
32
+ }, any>;
33
+ export default _default;
@@ -0,0 +1,38 @@
1
+ declare function refreshVariants(): void;
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ options: {
4
+ type: ObjectConstructor;
5
+ required: true;
6
+ };
7
+ modelValue: {
8
+ type: ArrayConstructor;
9
+ required: true;
10
+ };
11
+ hide: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ }>, {
16
+ setVariantMap: (variants: any[]) => void;
17
+ refreshVariants: typeof refreshVariants;
18
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ "update:modelValue": (...args: any[]) => void;
20
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ options: {
22
+ type: ObjectConstructor;
23
+ required: true;
24
+ };
25
+ modelValue: {
26
+ type: ArrayConstructor;
27
+ required: true;
28
+ };
29
+ hide: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ }>> & Readonly<{
34
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ hide: boolean;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare function useTable(): {
2
+ data: import('vue').Ref<never[], never[]>;
3
+ };
@@ -0,0 +1,24 @@
1
+ import { ResolvedConfig } from '../types';
2
+ export declare const config: {
3
+ readonly project: {
4
+ readonly label: "Project";
5
+ readonly type: "resource";
6
+ readonly accept: ["FIREBASE"];
7
+ };
8
+ readonly collectionsCollection: {
9
+ readonly label: "Collections Collection";
10
+ readonly type: "input";
11
+ readonly default: "public/e-commerce:collections";
12
+ };
13
+ readonly allowedMediaSources: {
14
+ readonly label: "Allowed Media Sources";
15
+ readonly type: "mediaSource";
16
+ readonly multiple: true;
17
+ };
18
+ readonly defaultUploadMediaSource: {
19
+ readonly label: "Default Upload Media Source";
20
+ readonly type: "mediaSource";
21
+ readonly multiple: false;
22
+ };
23
+ };
24
+ export type ConfigValues = ResolvedConfig<typeof config>;
@@ -0,0 +1,63 @@
1
+ export declare const productCollections: {
2
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ config: {
4
+ type: ObjectConstructor;
5
+ required: true;
6
+ };
7
+ routes: {
8
+ type: import('vue').PropType<ModuleRoute[]>;
9
+ required: true;
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ config: {
13
+ type: ObjectConstructor;
14
+ required: true;
15
+ };
16
+ routes: {
17
+ type: import('vue').PropType<ModuleRoute[]>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
21
+ metadata: ModuleMetadata;
22
+ config: {
23
+ readonly project: {
24
+ readonly label: "Project";
25
+ readonly type: "resource";
26
+ readonly accept: ["FIREBASE"];
27
+ };
28
+ readonly collectionsCollection: {
29
+ readonly label: "Collections Collection";
30
+ readonly type: "input";
31
+ readonly default: "public/e-commerce:collections";
32
+ };
33
+ readonly allowedMediaSources: {
34
+ readonly label: "Allowed Media Sources";
35
+ readonly type: "mediaSource";
36
+ readonly multiple: true;
37
+ };
38
+ readonly defaultUploadMediaSource: {
39
+ readonly label: "Default Upload Media Source";
40
+ readonly type: "mediaSource";
41
+ readonly multiple: false;
42
+ };
43
+ };
44
+ routes: {
45
+ path: string;
46
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
47
+ config: {
48
+ type: import('vue').PropType<import('./config').ConfigValues>;
49
+ required: true;
50
+ };
51
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
52
+ config: {
53
+ type: import('vue').PropType<import('./config').ConfigValues>;
54
+ required: true;
55
+ };
56
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
57
+ }[];
58
+ permissions: {
59
+ key: string;
60
+ name: string;
61
+ description: string;
62
+ }[];
63
+ };
@@ -0,0 +1,22 @@
1
+ import { PropType } from 'vue';
2
+ import { ModuleRoute } from '~/types';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ config: {
5
+ type: ObjectConstructor;
6
+ required: true;
7
+ };
8
+ routes: {
9
+ type: PropType<ModuleRoute[]>;
10
+ required: true;
11
+ };
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ config: {
14
+ type: ObjectConstructor;
15
+ required: true;
16
+ };
17
+ routes: {
18
+ type: PropType<ModuleRoute[]>;
19
+ required: true;
20
+ };
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
22
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { ModuleMetadata } from '~/types';
2
+ export declare const metadata: ModuleMetadata;
@@ -0,0 +1,14 @@
1
+ import { ConfigValues } from '../config';
2
+ import { PropType } from 'vue';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ config: {
5
+ type: PropType<ConfigValues>;
6
+ required: true;
7
+ };
8
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ config: {
10
+ type: PropType<ConfigValues>;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { PropType } from 'vue';
2
+ import { ConfigValues } from '../config';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ config: {
5
+ type: PropType<ConfigValues>;
6
+ required: true;
7
+ };
8
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ config: {
10
+ type: PropType<ConfigValues>;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
14
+ container: HTMLDivElement;
15
+ }, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const permissions: {
2
+ key: string;
3
+ name: string;
4
+ description: string;
5
+ }[];
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ path: string;
3
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ config: {
5
+ type: import('vue').PropType<import('./config').ConfigValues>;
6
+ required: true;
7
+ };
8
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ config: {
10
+ type: import('vue').PropType<import('./config').ConfigValues>;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
14
+ }[];
15
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const useTableStore: import('pinia').StoreDefinition<"table", {
2
+ data: never[];
3
+ }, {}, {
4
+ fetchData(): Promise<void>;
5
+ }>;
@@ -0,0 +1,25 @@
1
+ export declare const tools: {
2
+ getData: {
3
+ description: string;
4
+ params: {
5
+ size: {
6
+ type: string;
7
+ default: number;
8
+ };
9
+ };
10
+ returns: {
11
+ type: string;
12
+ };
13
+ };
14
+ filterTable: {
15
+ description: string;
16
+ params: {
17
+ filter: {
18
+ type: string;
19
+ };
20
+ };
21
+ returns: {
22
+ type: string;
23
+ };
24
+ };
25
+ };
@@ -0,0 +1,20 @@
1
+ export interface Collection {
2
+ id?: string;
3
+ slug: string;
4
+ type: CollectionType;
5
+ title: string;
6
+ description?: string;
7
+ conditions?: CollectionCondition[];
8
+ status: CollectionStatus;
9
+ seo?: {
10
+ title?: string;
11
+ description?: string;
12
+ };
13
+ }
14
+ export type CollectionType = 'manual' | 'auto';
15
+ export type CollectionStatus = 'draft' | 'published';
16
+ export interface CollectionCondition {
17
+ field: string;
18
+ operator: '==' | '!=' | '<' | '>' | '<=' | '>=' | 'in' | 'not-in' | 'array-contains' | 'array-contains-any';
19
+ value: any;
20
+ }
@@ -1,6 +1,7 @@
1
1
  interface OptionValue {
2
2
  id: string;
3
3
  value: string;
4
+ touched?: boolean;
4
5
  }
5
6
  interface Option {
6
7
  id: string;
@@ -17,6 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
18
  minified: import('vue').Ref<boolean, boolean>;
18
19
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
20
  "update:option": (...args: any[]) => void;
21
+ remove: (...args: any[]) => void;
20
22
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
23
  option: {
22
24
  type: () => Option;
@@ -24,6 +26,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
26
  };
25
27
  }>> & Readonly<{
26
28
  "onUpdate:option"?: ((...args: any[]) => any) | undefined;
29
+ onRemove?: ((...args: any[]) => any) | undefined;
27
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
28
31
  valueListRef: HTMLDivElement;
29
32
  }, any>;
@@ -1,3 +1,4 @@
1
+ declare function refreshVariants(): void;
1
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
3
  options: {
3
4
  type: ObjectConstructor;
@@ -7,8 +8,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
7
8
  type: ArrayConstructor;
8
9
  required: true;
9
10
  };
11
+ hide: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
10
15
  }>, {
11
16
  setVariantMap: (variants: any[]) => void;
17
+ refreshVariants: typeof refreshVariants;
12
18
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
19
  "update:modelValue": (...args: any[]) => void;
14
20
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -20,7 +26,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
26
  type: ArrayConstructor;
21
27
  required: true;
22
28
  };
29
+ hide: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
23
33
  }>> & Readonly<{
24
34
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
25
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
35
+ }>, {
36
+ hide: boolean;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
38
  export default _default;
@@ -10,6 +10,11 @@ export declare const config: {
10
10
  readonly type: "input";
11
11
  readonly default: "products";
12
12
  };
13
+ readonly collectionsCollection: {
14
+ readonly label: "Collections Collection";
15
+ readonly type: "input";
16
+ readonly default: "public/e-commerce:collections";
17
+ };
13
18
  readonly allowedMediaSources: {
14
19
  readonly label: "Allowed Media Sources";
15
20
  readonly type: "mediaSource";
@@ -20,40 +25,5 @@ export declare const config: {
20
25
  readonly type: "mediaSource";
21
26
  readonly multiple: false;
22
27
  };
23
- readonly viewable: {
24
- readonly label: "Viewable";
25
- readonly type: "checkbox";
26
- readonly default: true;
27
- };
28
- readonly editable: {
29
- readonly label: "Editable";
30
- readonly type: "checkbox";
31
- readonly default: true;
32
- };
33
- readonly deletable: {
34
- readonly label: "Deletable";
35
- readonly type: "checkbox";
36
- readonly default: true;
37
- };
38
- readonly addable: {
39
- readonly label: "Addable";
40
- readonly type: "checkbox";
41
- readonly default: true;
42
- };
43
- readonly searchable: {
44
- readonly label: "Searchable";
45
- readonly type: "checkbox";
46
- readonly default: true;
47
- };
48
- readonly downloadable: {
49
- readonly label: "Downloadable";
50
- readonly type: "checkbox";
51
- readonly default: true;
52
- };
53
- readonly allowBulkActions: {
54
- readonly label: "Allow Bulk Actions";
55
- readonly type: "checkbox";
56
- readonly default: false;
57
- };
58
28
  };
59
29
  export type ConfigValues = ResolvedConfig<typeof config>;
@@ -30,6 +30,11 @@ export declare const products: {
30
30
  readonly type: "input";
31
31
  readonly default: "products";
32
32
  };
33
+ readonly collectionsCollection: {
34
+ readonly label: "Collections Collection";
35
+ readonly type: "input";
36
+ readonly default: "public/e-commerce:collections";
37
+ };
33
38
  readonly allowedMediaSources: {
34
39
  readonly label: "Allowed Media Sources";
35
40
  readonly type: "mediaSource";
@@ -40,41 +45,6 @@ export declare const products: {
40
45
  readonly type: "mediaSource";
41
46
  readonly multiple: false;
42
47
  };
43
- readonly viewable: {
44
- readonly label: "Viewable";
45
- readonly type: "checkbox";
46
- readonly default: true;
47
- };
48
- readonly editable: {
49
- readonly label: "Editable";
50
- readonly type: "checkbox";
51
- readonly default: true;
52
- };
53
- readonly deletable: {
54
- readonly label: "Deletable";
55
- readonly type: "checkbox";
56
- readonly default: true;
57
- };
58
- readonly addable: {
59
- readonly label: "Addable";
60
- readonly type: "checkbox";
61
- readonly default: true;
62
- };
63
- readonly searchable: {
64
- readonly label: "Searchable";
65
- readonly type: "checkbox";
66
- readonly default: true;
67
- };
68
- readonly downloadable: {
69
- readonly label: "Downloadable";
70
- readonly type: "checkbox";
71
- readonly default: true;
72
- };
73
- readonly allowBulkActions: {
74
- readonly label: "Allow Bulk Actions";
75
- readonly type: "checkbox";
76
- readonly default: false;
77
- };
78
48
  };
79
49
  routes: {
80
50
  path: string;
@@ -1,64 +1,71 @@
1
1
  export interface Product {
2
2
  id: string;
3
- handle: string;
3
+ slug: string;
4
4
  title: string;
5
5
  description: string;
6
- createdAt: Date;
7
- updatedAt: Date;
8
- status: 'draft' | 'published' | 'archived';
9
- available: boolean;
10
- tags: string[];
11
- collections: string[];
12
- vendor: string;
13
- inventory: number;
14
- isBackorderAllowed: boolean;
15
- isSingleVariant: boolean;
16
- options: ProductOption[];
17
- variants: ProductVariant[];
18
- variantsTotal: number;
19
- isDigitalProduct: boolean;
20
- fulfillmentMethod: 'pickup' | 'delivery' | 'both';
21
- isGiftCard: boolean;
6
+ seo?: {
7
+ title?: string;
8
+ description?: string;
9
+ };
22
10
  price: number;
11
+ compareAtPrice?: number;
12
+ costPerItem?: number;
13
+ currency: string;
14
+ isTaxable?: boolean;
15
+ taxRate?: number;
23
16
  maxPrice: number;
24
17
  minPrice: number;
25
- compareAtPrice: number;
26
- maxCompareAtPrice: number;
27
- minCompareAtPrice: number;
18
+ maxCompareAtPrice?: number;
19
+ minCompareAtPrice?: number;
28
20
  hasPriceVariation: boolean;
29
- mediaUrls: string[];
30
- featuredMediaUrl?: string;
31
- seo: ProductSeo;
32
- url: string;
33
- isTrackingInventory: boolean;
34
- isTaxable: boolean;
35
- taxRate: number;
36
- costPerItem: number;
21
+ available: boolean;
22
+ canPickup: boolean;
23
+ canDeliver: boolean;
24
+ type: ProductType;
25
+ status: ProductStatus;
26
+ stock: number;
27
+ trackInventory: boolean;
28
+ allowBackorder: boolean;
29
+ vendor?: string;
30
+ isSingleVariant: boolean;
31
+ variantsTotal: number;
32
+ options?: ProductOption[];
33
+ variants?: ProductVariant[];
34
+ media: string[];
35
+ featuredMedia?: string;
36
+ sku?: string;
37
+ mpn?: string;
38
+ gtin?: string;
39
+ brand?: string;
40
+ tags: string[];
41
+ collections: string[];
42
+ createdAt: Date;
43
+ updatedAt: Date;
44
+ extraFields?: Record<string, any>;
37
45
  }
46
+ export type ProductStatus = 'published' | 'draft' | 'archived';
47
+ export type ProductType = 'physical' | 'digital' | 'gift_card';
38
48
  export interface ProductOption {
39
49
  id: string;
40
- productId: string;
41
50
  name: string;
42
51
  values: ProductOptionValue[];
43
52
  }
44
53
  export interface ProductOptionValue {
45
54
  id: string;
46
- optionId: string;
47
55
  value: string;
48
56
  }
49
57
  export interface ProductVariant {
50
- id: string;
51
- productId: string;
52
- sku?: string;
53
- barcode?: string;
54
- disabled?: boolean;
55
58
  price: number;
56
- compareAtPrice?: number;
57
- inventory: number;
58
- optionValues: ProductOptionValue[];
59
+ stock: number;
60
+ name: string;
59
61
  image?: string;
62
+ disabled?: boolean;
63
+ combinedOptions: string;
64
+ options: ProductOptionValue[];
60
65
  }
61
- export interface ProductSeo {
62
- title: string;
63
- description: string;
66
+ export interface ProductVariantOption {
67
+ optionId: string;
68
+ option: string;
69
+ valueId: string;
70
+ value: string;
64
71
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;