@quicktalog/common 1.30.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/pricing.js +60 -6
- package/dist/types/catalogue.d.ts +13 -2
- package/dist/types/general.d.ts +11 -2
- package/package.json +1 -1
|
@@ -18,8 +18,17 @@ export const tiers = [
|
|
|
18
18
|
custom_features: false,
|
|
19
19
|
analytics: "Basic",
|
|
20
20
|
ai_prompts: 0,
|
|
21
|
-
|
|
21
|
+
blocks_per_catalogue: 3,
|
|
22
|
+
blocks: {
|
|
23
|
+
divider: false,
|
|
24
|
+
iframe: false,
|
|
25
|
+
customCode: false,
|
|
26
|
+
},
|
|
22
27
|
items_per_catalogue: 15,
|
|
28
|
+
apperance: {
|
|
29
|
+
standardThemes: true,
|
|
30
|
+
styles: false,
|
|
31
|
+
},
|
|
23
32
|
},
|
|
24
33
|
},
|
|
25
34
|
{
|
|
@@ -37,12 +46,21 @@ export const tiers = [
|
|
|
37
46
|
newsletter: false,
|
|
38
47
|
ocr_ai_import: 0,
|
|
39
48
|
traffic_limit: 2000,
|
|
49
|
+
blocks: {
|
|
50
|
+
divider: true,
|
|
51
|
+
iframe: false,
|
|
52
|
+
customCode: false,
|
|
53
|
+
},
|
|
40
54
|
branding: true,
|
|
41
55
|
custom_features: false,
|
|
42
56
|
analytics: "Basic",
|
|
43
57
|
ai_prompts: 0,
|
|
44
|
-
|
|
58
|
+
blocks_per_catalogue: 6,
|
|
45
59
|
items_per_catalogue: 30,
|
|
60
|
+
apperance: {
|
|
61
|
+
standardThemes: true,
|
|
62
|
+
styles: false,
|
|
63
|
+
},
|
|
46
64
|
},
|
|
47
65
|
},
|
|
48
66
|
{
|
|
@@ -64,8 +82,17 @@ export const tiers = [
|
|
|
64
82
|
custom_features: false,
|
|
65
83
|
analytics: "Basic",
|
|
66
84
|
ai_prompts: 10,
|
|
67
|
-
|
|
85
|
+
blocks: {
|
|
86
|
+
divider: true,
|
|
87
|
+
iframe: true,
|
|
88
|
+
customCode: false,
|
|
89
|
+
},
|
|
90
|
+
blocks_per_catalogue: 15,
|
|
68
91
|
items_per_catalogue: 100,
|
|
92
|
+
apperance: {
|
|
93
|
+
standardThemes: true,
|
|
94
|
+
styles: true,
|
|
95
|
+
},
|
|
69
96
|
},
|
|
70
97
|
},
|
|
71
98
|
{
|
|
@@ -86,9 +113,18 @@ export const tiers = [
|
|
|
86
113
|
branding: true,
|
|
87
114
|
custom_features: false,
|
|
88
115
|
analytics: "Advanced",
|
|
116
|
+
blocks: {
|
|
117
|
+
divider: true,
|
|
118
|
+
iframe: true,
|
|
119
|
+
customCode: true,
|
|
120
|
+
},
|
|
89
121
|
ai_prompts: 25,
|
|
90
|
-
|
|
122
|
+
blocks_per_catalogue: 30,
|
|
91
123
|
items_per_catalogue: 200,
|
|
124
|
+
apperance: {
|
|
125
|
+
standardThemes: true,
|
|
126
|
+
styles: true,
|
|
127
|
+
},
|
|
92
128
|
},
|
|
93
129
|
},
|
|
94
130
|
{
|
|
@@ -109,9 +145,18 @@ export const tiers = [
|
|
|
109
145
|
branding: true,
|
|
110
146
|
custom_features: true,
|
|
111
147
|
analytics: "Advanced",
|
|
148
|
+
blocks: {
|
|
149
|
+
divider: true,
|
|
150
|
+
iframe: true,
|
|
151
|
+
customCode: true,
|
|
152
|
+
},
|
|
112
153
|
ai_prompts: 50,
|
|
113
|
-
|
|
154
|
+
blocks_per_catalogue: 50,
|
|
114
155
|
items_per_catalogue: 300,
|
|
156
|
+
apperance: {
|
|
157
|
+
standardThemes: true,
|
|
158
|
+
styles: true,
|
|
159
|
+
},
|
|
115
160
|
},
|
|
116
161
|
},
|
|
117
162
|
{
|
|
@@ -131,10 +176,19 @@ export const tiers = [
|
|
|
131
176
|
traffic_limit: 4000,
|
|
132
177
|
branding: true,
|
|
133
178
|
custom_features: false,
|
|
179
|
+
blocks: {
|
|
180
|
+
divider: true,
|
|
181
|
+
iframe: true,
|
|
182
|
+
customCode: false,
|
|
183
|
+
},
|
|
134
184
|
analytics: "Basic",
|
|
135
185
|
ai_prompts: 0,
|
|
136
|
-
|
|
186
|
+
blocks_per_catalogue: 20,
|
|
137
187
|
items_per_catalogue: 200,
|
|
188
|
+
apperance: {
|
|
189
|
+
standardThemes: true,
|
|
190
|
+
styles: true,
|
|
191
|
+
},
|
|
138
192
|
},
|
|
139
193
|
},
|
|
140
194
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { schema } from "../drizzle";
|
|
2
1
|
import { type InferSelectModel } from "drizzle-orm";
|
|
2
|
+
import { schema } from "../drizzle";
|
|
3
3
|
import { AnimationLevel, ContentLayout, FontSize, ShadowLevel, Source, Status, ThemeType } from "./enums";
|
|
4
4
|
import { Update } from "./functions";
|
|
5
5
|
type RawCatalogue = InferSelectModel<typeof schema.catalogues>;
|
|
@@ -24,6 +24,17 @@ export type BaseContentBlock = {
|
|
|
24
24
|
id: string;
|
|
25
25
|
order: number;
|
|
26
26
|
};
|
|
27
|
+
export type DividerBlock = BaseContentBlock & {
|
|
28
|
+
type: "divider";
|
|
29
|
+
spacing: number;
|
|
30
|
+
border?: {
|
|
31
|
+
isEnabled: boolean;
|
|
32
|
+
style?: "solid" | "dashed" | "dotted";
|
|
33
|
+
thickness?: number;
|
|
34
|
+
color?: string;
|
|
35
|
+
opacity?: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
27
38
|
export type CategoryBlock = BaseContentBlock & {
|
|
28
39
|
type: "category";
|
|
29
40
|
name: string;
|
|
@@ -50,7 +61,7 @@ export type TextBlock = BaseContentBlock & {
|
|
|
50
61
|
type: "text";
|
|
51
62
|
content: string;
|
|
52
63
|
};
|
|
53
|
-
export type ContentBlock = CategoryBlock | ContainerBlock | IframeBlock | CustomCodeBlock | TextBlock;
|
|
64
|
+
export type ContentBlock = CategoryBlock | ContainerBlock | IframeBlock | CustomCodeBlock | TextBlock | DividerBlock;
|
|
54
65
|
export type ItemDiscount = {
|
|
55
66
|
isOnDiscount: boolean;
|
|
56
67
|
discountPercentage: number;
|
package/dist/types/general.d.ts
CHANGED
|
@@ -27,6 +27,13 @@ export type PricingPlan = {
|
|
|
27
27
|
features: {
|
|
28
28
|
support: string;
|
|
29
29
|
catalogues: number;
|
|
30
|
+
blocks_per_catalogue?: number | "unlimited";
|
|
31
|
+
items_per_catalogue?: number | "unlimited";
|
|
32
|
+
blocks: {
|
|
33
|
+
divider: boolean;
|
|
34
|
+
iframe: boolean;
|
|
35
|
+
customCode: boolean;
|
|
36
|
+
};
|
|
30
37
|
newsletter: boolean;
|
|
31
38
|
custom_features: boolean;
|
|
32
39
|
ocr_ai_import: number;
|
|
@@ -34,8 +41,10 @@ export type PricingPlan = {
|
|
|
34
41
|
branding: boolean;
|
|
35
42
|
analytics: string;
|
|
36
43
|
ai_prompts: number;
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
apperance: {
|
|
45
|
+
standardThemes: boolean;
|
|
46
|
+
styles: boolean;
|
|
47
|
+
};
|
|
39
48
|
};
|
|
40
49
|
billing_period?: "month" | "year";
|
|
41
50
|
};
|