@rebuy/rebuy 2.4.0 → 2.5.0-rc.1
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.js +36 -20
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +36 -20
- package/dist/index.mjs.map +2 -2
- package/dist/schema/shopConfig.d.ts +36 -20
- package/dist/schema/shopConfig.d.ts.map +1 -1
- package/dist/schema/userConfig.d.ts +37 -21
- package/dist/schema/userConfig.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
/** @see {@link https://bitbucket.org/rebuyengine/rebuyengine.com/src/main/application/libraries/Cache/ShopConfigCache.php#lines-143} */
|
|
3
3
|
export declare const ShopConfig: z.ZodObject<{
|
|
4
|
-
activeExperiments: z.
|
|
4
|
+
activeExperiments: z.ZodArray<z.ZodObject<{
|
|
5
5
|
data: z.ZodArray<z.ZodObject<{
|
|
6
6
|
aliasName: z.ZodString;
|
|
7
7
|
cssInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
elementId: z.
|
|
9
|
-
id: z.
|
|
8
|
+
elementId: z.ZodCoercedNumber<unknown>;
|
|
9
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
10
10
|
javascriptInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
traffic: z.
|
|
12
|
-
}, z.core.$
|
|
13
|
-
id: z.
|
|
11
|
+
traffic: z.ZodCoercedNumber<unknown>;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
pageTarget: z.ZodNullable<z.ZodString>;
|
|
16
|
-
|
|
16
|
+
pageTargetUrl: z.ZodNullable<z.ZodString>;
|
|
17
|
+
placeholderId: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
17
18
|
type: z.ZodString;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
activePackages: z.
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
activePackages: z.ZodArray<z.ZodObject<{
|
|
20
21
|
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
21
22
|
id: z.ZodNumber;
|
|
22
23
|
installedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -27,30 +28,45 @@ export declare const ShopConfig: z.ZodObject<{
|
|
|
27
28
|
shortName: z.ZodString;
|
|
28
29
|
trialDays: z.ZodNumber;
|
|
29
30
|
uninstalledAt: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$strict>>;
|
|
31
32
|
apiKey: z.ZodString;
|
|
32
|
-
billingVersion: z.
|
|
33
|
-
cacheKey: z.
|
|
34
|
-
carousel: z.
|
|
33
|
+
billingVersion: z.ZodString;
|
|
34
|
+
cacheKey: z.ZodCoercedNumber<unknown>;
|
|
35
|
+
carousel: z.ZodEnum<{
|
|
36
|
+
flickity: "flickity";
|
|
37
|
+
splide: "splide";
|
|
38
|
+
}>;
|
|
35
39
|
currency: z.ZodString;
|
|
36
40
|
currencySymbol: z.ZodString;
|
|
37
41
|
domain: z.ZodString;
|
|
38
42
|
enabledJquery: z.ZodBoolean;
|
|
39
43
|
enabledPresentmentCurrencies: z.ZodArray<z.ZodString>;
|
|
40
|
-
hasSmartCollectionsEnabled: z.
|
|
44
|
+
hasSmartCollectionsEnabled: z.ZodBoolean;
|
|
41
45
|
hasSmartSearchEnabled: z.ZodBoolean;
|
|
42
|
-
id: z.
|
|
43
|
-
integrations: z.ZodRecord<z.
|
|
46
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
47
|
+
integrations: z.ZodRecord<z.ZodEnum<{
|
|
48
|
+
attentive: "attentive";
|
|
49
|
+
judgeme: "judgeme";
|
|
50
|
+
junip: "junip";
|
|
51
|
+
klaviyo: "klaviyo";
|
|
52
|
+
loox: "loox";
|
|
53
|
+
okendo: "okendo";
|
|
54
|
+
opinew: "opinew";
|
|
55
|
+
recharge: "recharge";
|
|
56
|
+
reviewsio: "reviewsio";
|
|
57
|
+
stamped: "stamped";
|
|
58
|
+
yotpo: "yotpo";
|
|
59
|
+
}>, z.ZodBoolean>;
|
|
44
60
|
markets: z.ZodObject<{
|
|
45
61
|
enabled: z.ZodBoolean;
|
|
46
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strict>;
|
|
47
63
|
moneyFormat: z.ZodString;
|
|
48
64
|
myshopifyDomain: z.ZodString;
|
|
49
65
|
primaryLocale: z.ZodString;
|
|
50
|
-
productGroupsEnabled: z.ZodEnum<{
|
|
66
|
+
productGroupsEnabled: z.ZodPipe<z.ZodEnum<{
|
|
51
67
|
no: "no";
|
|
52
68
|
yes: "yes";
|
|
53
|
-
}
|
|
69
|
+
}>, z.ZodTransform<boolean, "no" | "yes">>;
|
|
54
70
|
rechargeCustomDomain: z.ZodNullable<z.ZodString>;
|
|
55
71
|
sellingPlansEnabled: z.ZodBoolean;
|
|
56
72
|
shopId: z.ZodNumber;
|
|
@@ -58,6 +74,6 @@ export declare const ShopConfig: z.ZodObject<{
|
|
|
58
74
|
shopName: z.ZodString;
|
|
59
75
|
storefrontAccessToken: z.ZodNullable<z.ZodString>;
|
|
60
76
|
useRebuyIcons: z.ZodBoolean;
|
|
61
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$strict>;
|
|
62
78
|
export type ShopConfig = z.infer<typeof ShopConfig>;
|
|
63
79
|
//# sourceMappingURL=shopConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shopConfig.d.ts","sourceRoot":"","sources":["../../src/schema/shopConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,wIAAwI;AACxI,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"shopConfig.d.ts","sourceRoot":"","sources":["../../src/schema/shopConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,wIAAwI;AACxI,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6ErB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const UserConfig: z.ZodObject<{
|
|
3
3
|
shop: z.ZodObject<{
|
|
4
|
-
activeExperiments: z.
|
|
4
|
+
activeExperiments: z.ZodArray<z.ZodObject<{
|
|
5
5
|
data: z.ZodArray<z.ZodObject<{
|
|
6
6
|
aliasName: z.ZodString;
|
|
7
7
|
cssInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
elementId: z.
|
|
9
|
-
id: z.
|
|
8
|
+
elementId: z.ZodCoercedNumber<unknown>;
|
|
9
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
10
10
|
javascriptInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
traffic: z.
|
|
12
|
-
}, z.core.$
|
|
13
|
-
id: z.
|
|
11
|
+
traffic: z.ZodCoercedNumber<unknown>;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
pageTarget: z.ZodNullable<z.ZodString>;
|
|
16
|
-
|
|
16
|
+
pageTargetUrl: z.ZodNullable<z.ZodString>;
|
|
17
|
+
placeholderId: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
17
18
|
type: z.ZodString;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
activePackages: z.
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
activePackages: z.ZodArray<z.ZodObject<{
|
|
20
21
|
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
21
22
|
id: z.ZodNumber;
|
|
22
23
|
installedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -27,30 +28,45 @@ export declare const UserConfig: z.ZodObject<{
|
|
|
27
28
|
shortName: z.ZodString;
|
|
28
29
|
trialDays: z.ZodNumber;
|
|
29
30
|
uninstalledAt: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$strict>>;
|
|
31
32
|
apiKey: z.ZodString;
|
|
32
|
-
billingVersion: z.
|
|
33
|
-
cacheKey: z.
|
|
34
|
-
carousel: z.
|
|
33
|
+
billingVersion: z.ZodString;
|
|
34
|
+
cacheKey: z.ZodCoercedNumber<unknown>;
|
|
35
|
+
carousel: z.ZodEnum<{
|
|
36
|
+
flickity: "flickity";
|
|
37
|
+
splide: "splide";
|
|
38
|
+
}>;
|
|
35
39
|
currency: z.ZodString;
|
|
36
40
|
currencySymbol: z.ZodString;
|
|
37
41
|
domain: z.ZodString;
|
|
38
42
|
enabledJquery: z.ZodBoolean;
|
|
39
43
|
enabledPresentmentCurrencies: z.ZodArray<z.ZodString>;
|
|
40
|
-
hasSmartCollectionsEnabled: z.
|
|
44
|
+
hasSmartCollectionsEnabled: z.ZodBoolean;
|
|
41
45
|
hasSmartSearchEnabled: z.ZodBoolean;
|
|
42
|
-
id: z.
|
|
43
|
-
integrations: z.ZodRecord<z.
|
|
46
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
47
|
+
integrations: z.ZodRecord<z.ZodEnum<{
|
|
48
|
+
attentive: "attentive";
|
|
49
|
+
judgeme: "judgeme";
|
|
50
|
+
junip: "junip";
|
|
51
|
+
klaviyo: "klaviyo";
|
|
52
|
+
loox: "loox";
|
|
53
|
+
okendo: "okendo";
|
|
54
|
+
opinew: "opinew";
|
|
55
|
+
recharge: "recharge";
|
|
56
|
+
reviewsio: "reviewsio";
|
|
57
|
+
stamped: "stamped";
|
|
58
|
+
yotpo: "yotpo";
|
|
59
|
+
}>, z.ZodBoolean>;
|
|
44
60
|
markets: z.ZodObject<{
|
|
45
61
|
enabled: z.ZodBoolean;
|
|
46
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strict>;
|
|
47
63
|
moneyFormat: z.ZodString;
|
|
48
64
|
myshopifyDomain: z.ZodString;
|
|
49
65
|
primaryLocale: z.ZodString;
|
|
50
|
-
productGroupsEnabled: z.ZodEnum<{
|
|
66
|
+
productGroupsEnabled: z.ZodPipe<z.ZodEnum<{
|
|
51
67
|
no: "no";
|
|
52
68
|
yes: "yes";
|
|
53
|
-
}
|
|
69
|
+
}>, z.ZodTransform<boolean, "no" | "yes">>;
|
|
54
70
|
rechargeCustomDomain: z.ZodNullable<z.ZodString>;
|
|
55
71
|
sellingPlansEnabled: z.ZodBoolean;
|
|
56
72
|
shopId: z.ZodNumber;
|
|
@@ -58,9 +74,9 @@ export declare const UserConfig: z.ZodObject<{
|
|
|
58
74
|
shopName: z.ZodString;
|
|
59
75
|
storefrontAccessToken: z.ZodNullable<z.ZodString>;
|
|
60
76
|
useRebuyIcons: z.ZodBoolean;
|
|
61
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$strict>;
|
|
62
78
|
smartCart: z.ZodUnknown;
|
|
63
79
|
smartFlows: z.ZodArray<z.ZodUnknown>;
|
|
64
|
-
}, z.core.$
|
|
80
|
+
}, z.core.$strict>;
|
|
65
81
|
export type UserConfig = z.infer<typeof UserConfig>;
|
|
66
82
|
//# sourceMappingURL=userConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userConfig.d.ts","sourceRoot":"","sources":["../../src/schema/userConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"userConfig.d.ts","sourceRoot":"","sources":["../../src/schema/userConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|