@remnawave/subscription-page-types 0.1.0 → 0.1.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/build/backend/constants/button-types.constant.d.ts +7 -0
- package/build/backend/constants/button-types.constant.d.ts.map +1 -0
- package/build/backend/constants/button-types.constant.js +8 -0
- package/build/backend/constants/index.d.ts +3 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +3 -0
- package/build/backend/constants/installation-guide-blocks.constant.d.ts +9 -0
- package/build/backend/constants/installation-guide-blocks.constant.d.ts.map +1 -0
- package/build/backend/constants/installation-guide-blocks.constant.js +10 -0
- package/build/backend/constants/subscription-info-blocks.constant.d.ts +9 -0
- package/build/backend/constants/subscription-info-blocks.constant.d.ts.map +1 -0
- package/build/backend/constants/subscription-info-blocks.constant.js +10 -0
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts +56 -21
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.js +5 -3
- package/build/frontend/constants/button-types.constant.js +8 -0
- package/build/frontend/constants/index.js +3 -0
- package/build/frontend/constants/installation-guide-blocks.constant.js +10 -0
- package/build/frontend/constants/subscription-info-blocks.constant.js +10 -0
- package/build/frontend/models/subscription-page-config/subscription-page-config.schema.js +5 -3
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const BUTTON_TYPES: {
|
|
2
|
+
readonly EXTERNAL: "external";
|
|
3
|
+
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
4
|
+
};
|
|
5
|
+
export type TButtonType = (typeof BUTTON_TYPES)[keyof typeof BUTTON_TYPES];
|
|
6
|
+
export declare const BUTTON_TYPES_VALUES: ("external" | "subscriptionLink")[];
|
|
7
|
+
//# sourceMappingURL=button-types.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-types.constant.d.ts","sourceRoot":"","sources":["../../../constants/button-types.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E,eAAO,MAAM,mBAAmB,qCAA8B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BUTTON_TYPES_VALUES = exports.BUTTON_TYPES = void 0;
|
|
4
|
+
exports.BUTTON_TYPES = {
|
|
5
|
+
EXTERNAL: 'external',
|
|
6
|
+
SUBSCRIPTION_LINK: 'subscriptionLink',
|
|
7
|
+
};
|
|
8
|
+
exports.BUTTON_TYPES_VALUES = Object.values(exports.BUTTON_TYPES);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from './app-config.constant';
|
|
2
|
+
export * from './button-types.constant';
|
|
3
|
+
export * from './installation-guide-blocks.constant';
|
|
4
|
+
export * from './subscription-info-blocks.constant';
|
|
2
5
|
export * from './subscription-page-config';
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC"}
|
|
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./app-config.constant"), exports);
|
|
18
|
+
__exportStar(require("./button-types.constant"), exports);
|
|
19
|
+
__exportStar(require("./installation-guide-blocks.constant"), exports);
|
|
20
|
+
__exportStar(require("./subscription-info-blocks.constant"), exports);
|
|
18
21
|
__exportStar(require("./subscription-page-config"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const INSTALLATION_GUIDE_BLOCKS_VARIANTS: {
|
|
2
|
+
readonly CARDS: "cards";
|
|
3
|
+
readonly ACCORDION: "accordion";
|
|
4
|
+
readonly MINIMAL: "minimal";
|
|
5
|
+
readonly TIMELINE: "timeline";
|
|
6
|
+
};
|
|
7
|
+
export type TInstallationGuideBlockVariant = (typeof INSTALLATION_GUIDE_BLOCKS_VARIANTS)[keyof typeof INSTALLATION_GUIDE_BLOCKS_VARIANTS];
|
|
8
|
+
export declare const INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES: ("cards" | "accordion" | "minimal" | "timeline")[];
|
|
9
|
+
//# sourceMappingURL=installation-guide-blocks.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installation-guide-blocks.constant.d.ts","sourceRoot":"","sources":["../../../constants/installation-guide-blocks.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;CAKrC,CAAC;AAEX,MAAM,MAAM,8BAA8B,GACtC,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAEjG,eAAO,MAAM,yCAAyC,oDAErD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS = void 0;
|
|
4
|
+
exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS = {
|
|
5
|
+
CARDS: 'cards',
|
|
6
|
+
ACCORDION: 'accordion',
|
|
7
|
+
MINIMAL: 'minimal',
|
|
8
|
+
TIMELINE: 'timeline',
|
|
9
|
+
};
|
|
10
|
+
exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = Object.values(exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SUBSCRIPTION_INFO_BLOCK_VARIANTS: {
|
|
2
|
+
readonly COLLAPSED: "collapsed";
|
|
3
|
+
readonly EXPANDED: "expanded";
|
|
4
|
+
readonly CARDS: "cards";
|
|
5
|
+
readonly HIDDEN: "hidden";
|
|
6
|
+
};
|
|
7
|
+
export type TSubscriptionInfoBlockVariant = (typeof SUBSCRIPTION_INFO_BLOCK_VARIANTS)[keyof typeof SUBSCRIPTION_INFO_BLOCK_VARIANTS];
|
|
8
|
+
export declare const SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES: ("cards" | "collapsed" | "expanded" | "hidden")[];
|
|
9
|
+
//# sourceMappingURL=subscription-info-blocks.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-info-blocks.constant.d.ts","sourceRoot":"","sources":["../../../constants/subscription-info-blocks.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;CAKnC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GACrC,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAE7F,eAAO,MAAM,uCAAuC,mDAEnD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS = void 0;
|
|
4
|
+
exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS = {
|
|
5
|
+
COLLAPSED: 'collapsed',
|
|
6
|
+
EXPANDED: 'expanded',
|
|
7
|
+
CARDS: 'cards',
|
|
8
|
+
HIDDEN: 'hidden',
|
|
9
|
+
};
|
|
10
|
+
exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = Object.values(exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS);
|
|
@@ -21,7 +21,10 @@ export declare const LocalizedTextSchema: z.ZodObject<{
|
|
|
21
21
|
declare const SvgLibrarySchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
22
22
|
declare const ButtonSchema: z.ZodObject<{
|
|
23
23
|
link: z.ZodString;
|
|
24
|
-
type: z.
|
|
24
|
+
type: z.ZodNativeEnum<{
|
|
25
|
+
readonly EXTERNAL: "external";
|
|
26
|
+
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
27
|
+
}>;
|
|
25
28
|
text: z.ZodObject<{
|
|
26
29
|
en: z.ZodString;
|
|
27
30
|
ru: z.ZodOptional<z.ZodString>;
|
|
@@ -108,7 +111,10 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
108
111
|
}>;
|
|
109
112
|
buttons: z.ZodArray<z.ZodObject<{
|
|
110
113
|
link: z.ZodString;
|
|
111
|
-
type: z.
|
|
114
|
+
type: z.ZodNativeEnum<{
|
|
115
|
+
readonly EXTERNAL: "external";
|
|
116
|
+
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
117
|
+
}>;
|
|
112
118
|
text: z.ZodObject<{
|
|
113
119
|
en: z.ZodString;
|
|
114
120
|
ru: z.ZodOptional<z.ZodString>;
|
|
@@ -257,7 +263,10 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
257
263
|
}>;
|
|
258
264
|
buttons: z.ZodArray<z.ZodObject<{
|
|
259
265
|
link: z.ZodString;
|
|
260
|
-
type: z.
|
|
266
|
+
type: z.ZodNativeEnum<{
|
|
267
|
+
readonly EXTERNAL: "external";
|
|
268
|
+
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
269
|
+
}>;
|
|
261
270
|
text: z.ZodObject<{
|
|
262
271
|
en: z.ZodString;
|
|
263
272
|
ru: z.ZodOptional<z.ZodString>;
|
|
@@ -494,7 +503,10 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
494
503
|
}>;
|
|
495
504
|
buttons: z.ZodArray<z.ZodObject<{
|
|
496
505
|
link: z.ZodString;
|
|
497
|
-
type: z.
|
|
506
|
+
type: z.ZodNativeEnum<{
|
|
507
|
+
readonly EXTERNAL: "external";
|
|
508
|
+
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
509
|
+
}>;
|
|
498
510
|
text: z.ZodObject<{
|
|
499
511
|
en: z.ZodString;
|
|
500
512
|
ru: z.ZodOptional<z.ZodString>;
|
|
@@ -766,14 +778,24 @@ declare const BrandingSettingsSchema: z.ZodObject<{
|
|
|
766
778
|
}>;
|
|
767
779
|
declare const UiConfigSchema: z.ZodObject<{
|
|
768
780
|
subscriptionInfo: z.ZodObject<{
|
|
769
|
-
block: z.
|
|
781
|
+
block: z.ZodNativeEnum<{
|
|
782
|
+
readonly COLLAPSED: "collapsed";
|
|
783
|
+
readonly EXPANDED: "expanded";
|
|
784
|
+
readonly CARDS: "cards";
|
|
785
|
+
readonly HIDDEN: "hidden";
|
|
786
|
+
}>;
|
|
770
787
|
}, "strip", z.ZodTypeAny, {
|
|
771
|
-
block: "
|
|
788
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
772
789
|
}, {
|
|
773
|
-
block: "
|
|
790
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
774
791
|
}>;
|
|
775
792
|
installationGuides: z.ZodObject<{
|
|
776
|
-
block: z.ZodDefault<z.
|
|
793
|
+
block: z.ZodDefault<z.ZodNativeEnum<{
|
|
794
|
+
readonly CARDS: "cards";
|
|
795
|
+
readonly ACCORDION: "accordion";
|
|
796
|
+
readonly MINIMAL: "minimal";
|
|
797
|
+
readonly TIMELINE: "timeline";
|
|
798
|
+
}>>;
|
|
777
799
|
headerText: z.ZodObject<{
|
|
778
800
|
en: z.ZodString;
|
|
779
801
|
ru: z.ZodOptional<z.ZodString>;
|
|
@@ -851,7 +873,7 @@ declare const UiConfigSchema: z.ZodObject<{
|
|
|
851
873
|
}>;
|
|
852
874
|
}, "strip", z.ZodTypeAny, {
|
|
853
875
|
subscriptionInfo: {
|
|
854
|
-
block: "
|
|
876
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
855
877
|
};
|
|
856
878
|
installationGuides: {
|
|
857
879
|
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
@@ -874,7 +896,7 @@ declare const UiConfigSchema: z.ZodObject<{
|
|
|
874
896
|
};
|
|
875
897
|
}, {
|
|
876
898
|
subscriptionInfo: {
|
|
877
|
-
block: "
|
|
899
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
878
900
|
};
|
|
879
901
|
installationGuides: {
|
|
880
902
|
headerText: {
|
|
@@ -916,14 +938,24 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
916
938
|
}>;
|
|
917
939
|
uiConfig: z.ZodObject<{
|
|
918
940
|
subscriptionInfo: z.ZodObject<{
|
|
919
|
-
block: z.
|
|
941
|
+
block: z.ZodNativeEnum<{
|
|
942
|
+
readonly COLLAPSED: "collapsed";
|
|
943
|
+
readonly EXPANDED: "expanded";
|
|
944
|
+
readonly CARDS: "cards";
|
|
945
|
+
readonly HIDDEN: "hidden";
|
|
946
|
+
}>;
|
|
920
947
|
}, "strip", z.ZodTypeAny, {
|
|
921
|
-
block: "
|
|
948
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
922
949
|
}, {
|
|
923
|
-
block: "
|
|
950
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
924
951
|
}>;
|
|
925
952
|
installationGuides: z.ZodObject<{
|
|
926
|
-
block: z.ZodDefault<z.
|
|
953
|
+
block: z.ZodDefault<z.ZodNativeEnum<{
|
|
954
|
+
readonly CARDS: "cards";
|
|
955
|
+
readonly ACCORDION: "accordion";
|
|
956
|
+
readonly MINIMAL: "minimal";
|
|
957
|
+
readonly TIMELINE: "timeline";
|
|
958
|
+
}>>;
|
|
927
959
|
headerText: z.ZodObject<{
|
|
928
960
|
en: z.ZodString;
|
|
929
961
|
ru: z.ZodOptional<z.ZodString>;
|
|
@@ -1001,7 +1033,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1001
1033
|
}>;
|
|
1002
1034
|
}, "strip", z.ZodTypeAny, {
|
|
1003
1035
|
subscriptionInfo: {
|
|
1004
|
-
block: "
|
|
1036
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
1005
1037
|
};
|
|
1006
1038
|
installationGuides: {
|
|
1007
1039
|
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
@@ -1024,7 +1056,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1024
1056
|
};
|
|
1025
1057
|
}, {
|
|
1026
1058
|
subscriptionInfo: {
|
|
1027
|
-
block: "
|
|
1059
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
1028
1060
|
};
|
|
1029
1061
|
installationGuides: {
|
|
1030
1062
|
headerText: {
|
|
@@ -1122,7 +1154,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1122
1154
|
}>;
|
|
1123
1155
|
buttons: z.ZodArray<z.ZodObject<{
|
|
1124
1156
|
link: z.ZodString;
|
|
1125
|
-
type: z.
|
|
1157
|
+
type: z.ZodNativeEnum<{
|
|
1158
|
+
readonly EXTERNAL: "external";
|
|
1159
|
+
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
1160
|
+
}>;
|
|
1126
1161
|
text: z.ZodObject<{
|
|
1127
1162
|
en: z.ZodString;
|
|
1128
1163
|
ru: z.ZodOptional<z.ZodString>;
|
|
@@ -1433,7 +1468,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1433
1468
|
};
|
|
1434
1469
|
uiConfig: {
|
|
1435
1470
|
subscriptionInfo: {
|
|
1436
|
-
block: "
|
|
1471
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
1437
1472
|
};
|
|
1438
1473
|
installationGuides: {
|
|
1439
1474
|
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
@@ -1510,7 +1545,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1510
1545
|
};
|
|
1511
1546
|
uiConfig: {
|
|
1512
1547
|
subscriptionInfo: {
|
|
1513
|
-
block: "
|
|
1548
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
1514
1549
|
};
|
|
1515
1550
|
installationGuides: {
|
|
1516
1551
|
headerText: {
|
|
@@ -1587,7 +1622,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1587
1622
|
};
|
|
1588
1623
|
uiConfig: {
|
|
1589
1624
|
subscriptionInfo: {
|
|
1590
|
-
block: "
|
|
1625
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
1591
1626
|
};
|
|
1592
1627
|
installationGuides: {
|
|
1593
1628
|
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
@@ -1664,7 +1699,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1664
1699
|
};
|
|
1665
1700
|
uiConfig: {
|
|
1666
1701
|
subscriptionInfo: {
|
|
1667
|
-
block: "
|
|
1702
|
+
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
1668
1703
|
};
|
|
1669
1704
|
installationGuides: {
|
|
1670
1705
|
headerText: {
|
package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-page-config.schema.d.ts","sourceRoot":"","sources":["../../../../models/subscription-page-config/subscription-page-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription-page-config.schema.d.ts","sourceRoot":"","sources":["../../../../models/subscription-page-config/subscription-page-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,QAAA,MAAM,gBAAgB,uCAGrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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od_1.z.string().regex(/^[A-Za-z]+$/, { message: 'Only latin characters, no spaces allowed' }), zod_1.z.string());
|
|
15
15
|
const ButtonSchema = zod_1.z.object({
|
|
16
16
|
link: zod_1.z.string(),
|
|
17
|
-
type: zod_1.z.
|
|
17
|
+
type: zod_1.z.nativeEnum(constants_1.BUTTON_TYPES),
|
|
18
18
|
text: exports.LocalizedTextSchema,
|
|
19
19
|
svgIconKey: zod_1.z.string(),
|
|
20
20
|
});
|
|
@@ -61,10 +61,12 @@ const BrandingSettingsSchema = zod_1.z.object({
|
|
|
61
61
|
});
|
|
62
62
|
const UiConfigSchema = zod_1.z.object({
|
|
63
63
|
subscriptionInfo: zod_1.z.object({
|
|
64
|
-
block: zod_1.z.
|
|
64
|
+
block: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
|
|
65
65
|
}),
|
|
66
66
|
installationGuides: zod_1.z.object({
|
|
67
|
-
block: zod_1.z
|
|
67
|
+
block: zod_1.z
|
|
68
|
+
.nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS)
|
|
69
|
+
.default(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS.CARDS),
|
|
68
70
|
headerText: exports.LocalizedTextSchema,
|
|
69
71
|
}),
|
|
70
72
|
connectionKeys: zod_1.z.object({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BUTTON_TYPES_VALUES = exports.BUTTON_TYPES = void 0;
|
|
4
|
+
exports.BUTTON_TYPES = {
|
|
5
|
+
EXTERNAL: 'external',
|
|
6
|
+
SUBSCRIPTION_LINK: 'subscriptionLink',
|
|
7
|
+
};
|
|
8
|
+
exports.BUTTON_TYPES_VALUES = Object.values(exports.BUTTON_TYPES);
|
|
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./app-config.constant"), exports);
|
|
18
|
+
__exportStar(require("./button-types.constant"), exports);
|
|
19
|
+
__exportStar(require("./installation-guide-blocks.constant"), exports);
|
|
20
|
+
__exportStar(require("./subscription-info-blocks.constant"), exports);
|
|
18
21
|
__exportStar(require("./subscription-page-config"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS = void 0;
|
|
4
|
+
exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS = {
|
|
5
|
+
CARDS: 'cards',
|
|
6
|
+
ACCORDION: 'accordion',
|
|
7
|
+
MINIMAL: 'minimal',
|
|
8
|
+
TIMELINE: 'timeline',
|
|
9
|
+
};
|
|
10
|
+
exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = Object.values(exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS = void 0;
|
|
4
|
+
exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS = {
|
|
5
|
+
COLLAPSED: 'collapsed',
|
|
6
|
+
EXPANDED: 'expanded',
|
|
7
|
+
CARDS: 'cards',
|
|
8
|
+
HIDDEN: 'hidden',
|
|
9
|
+
};
|
|
10
|
+
exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = Object.values(exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS);
|
|
@@ -14,7 +14,7 @@ exports.LocalizedTextSchema = zod_1.z.object({
|
|
|
14
14
|
const SvgLibrarySchema = zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z]+$/, { message: 'Only latin characters, no spaces allowed' }), zod_1.z.string());
|
|
15
15
|
const ButtonSchema = zod_1.z.object({
|
|
16
16
|
link: zod_1.z.string(),
|
|
17
|
-
type: zod_1.z.
|
|
17
|
+
type: zod_1.z.nativeEnum(constants_1.BUTTON_TYPES),
|
|
18
18
|
text: exports.LocalizedTextSchema,
|
|
19
19
|
svgIconKey: zod_1.z.string(),
|
|
20
20
|
});
|
|
@@ -61,10 +61,12 @@ const BrandingSettingsSchema = zod_1.z.object({
|
|
|
61
61
|
});
|
|
62
62
|
const UiConfigSchema = zod_1.z.object({
|
|
63
63
|
subscriptionInfo: zod_1.z.object({
|
|
64
|
-
block: zod_1.z.
|
|
64
|
+
block: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
|
|
65
65
|
}),
|
|
66
66
|
installationGuides: zod_1.z.object({
|
|
67
|
-
block: zod_1.z
|
|
67
|
+
block: zod_1.z
|
|
68
|
+
.nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS)
|
|
69
|
+
.default(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS.CARDS),
|
|
68
70
|
headerText: exports.LocalizedTextSchema,
|
|
69
71
|
}),
|
|
70
72
|
connectionKeys: zod_1.z.object({
|