@oneclick.dev/cms-core-modules 0.0.38 → 0.0.40
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/index.cjs.js +12 -12
- package/dist/index.mjs +13035 -9695
- package/dist/src/index.d.ts +2 -0
- package/dist/src/product-collections/components/detail/Main.vue.d.ts +2 -0
- package/dist/src/product-collections/components/detail/SEO.vue.d.ts +2 -0
- package/dist/src/product-collections/components/detail/Status.vue.d.ts +2 -0
- package/dist/src/product-collections/components/overview/ListView.vue.d.ts +12 -0
- package/dist/src/product-collections/composables/useTable.d.ts +3 -0
- package/dist/src/product-collections/config.d.ts +24 -0
- package/dist/src/product-collections/index.d.ts +63 -0
- package/dist/src/product-collections/index.vue.d.ts +22 -0
- package/dist/src/product-collections/metadata.d.ts +2 -0
- package/dist/src/product-collections/pages/Detail.vue.d.ts +14 -0
- package/dist/src/product-collections/pages/Overview.vue.d.ts +16 -0
- package/dist/src/product-collections/permissions.d.ts +5 -0
- package/dist/src/product-collections/routes.d.ts +15 -0
- package/dist/src/product-collections/stores/useTableStore.d.ts +5 -0
- package/dist/src/product-collections/tools.d.ts +25 -0
- package/dist/src/product-collections/types.d.ts +21 -0
- package/dist/src/products/components/detail/Collections.vue.d.ts +14 -0
- package/dist/src/products/components/detail/variants/Option.vue.d.ts +3 -0
- package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +13 -1
- package/dist/src/products/config.d.ts +5 -35
- package/dist/src/products/index.d.ts +5 -35
- package/dist/src/products/types.d.ts +48 -41
- package/dist/src/promo-codes/components/create/DateRange.vue.d.ts +2 -0
- package/dist/src/promo-codes/components/create/MultiCodes.vue.d.ts +2 -0
- package/dist/src/promo-codes/components/create/Note.vue.d.ts +2 -0
- package/dist/src/promo-codes/components/create/SingleCode.vue.d.ts +2 -0
- package/dist/src/promo-codes/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +6 -0
- package/dist/src/promo-codes/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +18 -0
- package/dist/src/promo-codes/components/create/TypeAndValue/index.vue.d.ts +2 -0
- package/dist/src/promo-codes/config.d.ts +14 -0
- package/dist/src/promo-codes/index.d.ts +53 -0
- package/dist/src/promo-codes/index.vue.d.ts +22 -0
- package/dist/src/promo-codes/metadata.d.ts +2 -0
- package/dist/src/promo-codes/pages/Create.vue.d.ts +16 -0
- package/dist/src/promo-codes/pages/Detail.vue.d.ts +14 -0
- package/dist/src/promo-codes/pages/Find.vue.d.ts +16 -0
- package/dist/src/promo-codes/permissions.d.ts +5 -0
- package/dist/src/promo-codes/routes.d.ts +15 -0
- package/dist/src/promo-codes/stores/useTableStore.d.ts +5 -0
- package/dist/src/promo-codes/tools.d.ts +25 -0
- package/dist/src/promo-codes/types.d.ts +42 -0
- package/package.json +3 -2
package/dist/src/index.d.ts
CHANGED
|
@@ -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,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
collections: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
collections: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -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,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,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,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,21 @@
|
|
|
1
|
+
export interface Collection {
|
|
2
|
+
id?: string;
|
|
3
|
+
slug: string;
|
|
4
|
+
type: CollectionType;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
thumbnail?: string;
|
|
8
|
+
conditions?: CollectionCondition[];
|
|
9
|
+
status: CollectionStatus;
|
|
10
|
+
seo?: {
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type CollectionType = 'manual' | 'auto';
|
|
16
|
+
export type CollectionStatus = 'draft' | 'published';
|
|
17
|
+
export interface CollectionCondition {
|
|
18
|
+
field: string;
|
|
19
|
+
operator: '==' | '!=' | '<' | '>' | '<=' | '>=' | 'in' | 'not-in' | 'array-contains' | 'array-contains-any';
|
|
20
|
+
value: any;
|
|
21
|
+
}
|
|
@@ -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, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -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
|
-
}>, {
|
|
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
|
-
|
|
3
|
+
slug: string;
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
minCompareAtPrice: number;
|
|
18
|
+
maxCompareAtPrice?: number;
|
|
19
|
+
minCompareAtPrice?: number;
|
|
28
20
|
hasPriceVariation: boolean;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
57
|
-
|
|
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
|
|
62
|
-
|
|
63
|
-
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PromoType } from '../../../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
|
+
open: (type?: PromoType) => void;
|
|
4
|
+
openFromTemplate: (type: string) => void;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PromoType } from '../../../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
3
|
+
typeDetailDialog: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
4
|
+
open: (type?: PromoType) => void;
|
|
5
|
+
openFromTemplate: (type: string) => void;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
14
|
+
open: (type?: PromoType) => void;
|
|
15
|
+
openFromTemplate: (type: string) => void;
|
|
16
|
+
}, {}, {}, {}, {}> | null;
|
|
17
|
+
}, any>;
|
|
18
|
+
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,14 @@
|
|
|
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 promoCodeCollection: {
|
|
9
|
+
readonly label: "Promo Code Collection";
|
|
10
|
+
readonly type: "input";
|
|
11
|
+
readonly default: "promo-codes";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type ConfigValues = ResolvedConfig<typeof config>;
|