@remnawave/subscription-page-types 0.0.3 → 0.0.5
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/models/subscription-page-config/subscription-page-config.schema.d.ts +42 -42
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.js +1 -1
- package/build/backend/models/subscription-page-config/subscription-page-config.validator.js +2 -2
- package/build/frontend/models/subscription-page-config/subscription-page-config.schema.js +1 -1
- package/build/frontend/models/subscription-page-config/subscription-page-config.validator.js +2 -2
- package/package.json +1 -1
|
@@ -44,6 +44,7 @@ declare const ButtonSchema: z.ZodObject<{
|
|
|
44
44
|
svgIconKey: z.ZodString;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
type: "external" | "subscriptionLink";
|
|
47
|
+
svgIconKey: string;
|
|
47
48
|
link: string;
|
|
48
49
|
text: {
|
|
49
50
|
en: string;
|
|
@@ -52,9 +53,9 @@ declare const ButtonSchema: z.ZodObject<{
|
|
|
52
53
|
fa?: string | undefined;
|
|
53
54
|
fr?: string | undefined;
|
|
54
55
|
};
|
|
55
|
-
svgIconKey: string;
|
|
56
56
|
}, {
|
|
57
57
|
type: "external" | "subscriptionLink";
|
|
58
|
+
svgIconKey: string;
|
|
58
59
|
link: string;
|
|
59
60
|
text: {
|
|
60
61
|
en: string;
|
|
@@ -63,7 +64,6 @@ declare const ButtonSchema: z.ZodObject<{
|
|
|
63
64
|
fa?: string | undefined;
|
|
64
65
|
fr?: string | undefined;
|
|
65
66
|
};
|
|
66
|
-
svgIconKey: string;
|
|
67
67
|
}>;
|
|
68
68
|
declare const BlockSchema: z.ZodObject<{
|
|
69
69
|
svgIconKey: z.ZodString;
|
|
@@ -131,6 +131,7 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
131
131
|
svgIconKey: z.ZodString;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
133
|
type: "external" | "subscriptionLink";
|
|
134
|
+
svgIconKey: string;
|
|
134
135
|
link: string;
|
|
135
136
|
text: {
|
|
136
137
|
en: string;
|
|
@@ -139,9 +140,9 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
139
140
|
fa?: string | undefined;
|
|
140
141
|
fr?: string | undefined;
|
|
141
142
|
};
|
|
142
|
-
svgIconKey: string;
|
|
143
143
|
}, {
|
|
144
144
|
type: "external" | "subscriptionLink";
|
|
145
|
+
svgIconKey: string;
|
|
145
146
|
link: string;
|
|
146
147
|
text: {
|
|
147
148
|
en: string;
|
|
@@ -150,7 +151,6 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
150
151
|
fa?: string | undefined;
|
|
151
152
|
fr?: string | undefined;
|
|
152
153
|
};
|
|
153
|
-
svgIconKey: string;
|
|
154
154
|
}>, "many">;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
156
|
svgIconKey: string;
|
|
@@ -171,6 +171,7 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
171
171
|
};
|
|
172
172
|
buttons: {
|
|
173
173
|
type: "external" | "subscriptionLink";
|
|
174
|
+
svgIconKey: string;
|
|
174
175
|
link: string;
|
|
175
176
|
text: {
|
|
176
177
|
en: string;
|
|
@@ -179,7 +180,6 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
179
180
|
fa?: string | undefined;
|
|
180
181
|
fr?: string | undefined;
|
|
181
182
|
};
|
|
182
|
-
svgIconKey: string;
|
|
183
183
|
}[];
|
|
184
184
|
}, {
|
|
185
185
|
svgIconKey: string;
|
|
@@ -200,6 +200,7 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
200
200
|
};
|
|
201
201
|
buttons: {
|
|
202
202
|
type: "external" | "subscriptionLink";
|
|
203
|
+
svgIconKey: string;
|
|
203
204
|
link: string;
|
|
204
205
|
text: {
|
|
205
206
|
en: string;
|
|
@@ -208,7 +209,6 @@ declare const BlockSchema: z.ZodObject<{
|
|
|
208
209
|
fa?: string | undefined;
|
|
209
210
|
fr?: string | undefined;
|
|
210
211
|
};
|
|
211
|
-
svgIconKey: string;
|
|
212
212
|
}[];
|
|
213
213
|
}>;
|
|
214
214
|
declare const PlatformAppSchema: z.ZodObject<{
|
|
@@ -280,6 +280,7 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
280
280
|
svgIconKey: z.ZodString;
|
|
281
281
|
}, "strip", z.ZodTypeAny, {
|
|
282
282
|
type: "external" | "subscriptionLink";
|
|
283
|
+
svgIconKey: string;
|
|
283
284
|
link: string;
|
|
284
285
|
text: {
|
|
285
286
|
en: string;
|
|
@@ -288,9 +289,9 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
288
289
|
fa?: string | undefined;
|
|
289
290
|
fr?: string | undefined;
|
|
290
291
|
};
|
|
291
|
-
svgIconKey: string;
|
|
292
292
|
}, {
|
|
293
293
|
type: "external" | "subscriptionLink";
|
|
294
|
+
svgIconKey: string;
|
|
294
295
|
link: string;
|
|
295
296
|
text: {
|
|
296
297
|
en: string;
|
|
@@ -299,7 +300,6 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
299
300
|
fa?: string | undefined;
|
|
300
301
|
fr?: string | undefined;
|
|
301
302
|
};
|
|
302
|
-
svgIconKey: string;
|
|
303
303
|
}>, "many">;
|
|
304
304
|
}, "strip", z.ZodTypeAny, {
|
|
305
305
|
svgIconKey: string;
|
|
@@ -320,6 +320,7 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
320
320
|
};
|
|
321
321
|
buttons: {
|
|
322
322
|
type: "external" | "subscriptionLink";
|
|
323
|
+
svgIconKey: string;
|
|
323
324
|
link: string;
|
|
324
325
|
text: {
|
|
325
326
|
en: string;
|
|
@@ -328,7 +329,6 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
328
329
|
fa?: string | undefined;
|
|
329
330
|
fr?: string | undefined;
|
|
330
331
|
};
|
|
331
|
-
svgIconKey: string;
|
|
332
332
|
}[];
|
|
333
333
|
}, {
|
|
334
334
|
svgIconKey: string;
|
|
@@ -349,6 +349,7 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
349
349
|
};
|
|
350
350
|
buttons: {
|
|
351
351
|
type: "external" | "subscriptionLink";
|
|
352
|
+
svgIconKey: string;
|
|
352
353
|
link: string;
|
|
353
354
|
text: {
|
|
354
355
|
en: string;
|
|
@@ -357,7 +358,6 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
357
358
|
fa?: string | undefined;
|
|
358
359
|
fr?: string | undefined;
|
|
359
360
|
};
|
|
360
|
-
svgIconKey: string;
|
|
361
361
|
}[];
|
|
362
362
|
}>, "many">;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -382,6 +382,7 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
382
382
|
};
|
|
383
383
|
buttons: {
|
|
384
384
|
type: "external" | "subscriptionLink";
|
|
385
|
+
svgIconKey: string;
|
|
385
386
|
link: string;
|
|
386
387
|
text: {
|
|
387
388
|
en: string;
|
|
@@ -390,7 +391,6 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
390
391
|
fa?: string | undefined;
|
|
391
392
|
fr?: string | undefined;
|
|
392
393
|
};
|
|
393
|
-
svgIconKey: string;
|
|
394
394
|
}[];
|
|
395
395
|
}[];
|
|
396
396
|
}, {
|
|
@@ -415,6 +415,7 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
415
415
|
};
|
|
416
416
|
buttons: {
|
|
417
417
|
type: "external" | "subscriptionLink";
|
|
418
|
+
svgIconKey: string;
|
|
418
419
|
link: string;
|
|
419
420
|
text: {
|
|
420
421
|
en: string;
|
|
@@ -423,7 +424,6 @@ declare const PlatformAppSchema: z.ZodObject<{
|
|
|
423
424
|
fa?: string | undefined;
|
|
424
425
|
fr?: string | undefined;
|
|
425
426
|
};
|
|
426
|
-
svgIconKey: string;
|
|
427
427
|
}[];
|
|
428
428
|
}[];
|
|
429
429
|
}>;
|
|
@@ -447,7 +447,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
447
447
|
fa?: string | undefined;
|
|
448
448
|
fr?: string | undefined;
|
|
449
449
|
}>;
|
|
450
|
-
|
|
450
|
+
svgIconKey: z.ZodString;
|
|
451
451
|
apps: z.ZodArray<z.ZodObject<{
|
|
452
452
|
name: z.ZodString;
|
|
453
453
|
featured: z.ZodBoolean;
|
|
@@ -517,6 +517,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
517
517
|
svgIconKey: z.ZodString;
|
|
518
518
|
}, "strip", z.ZodTypeAny, {
|
|
519
519
|
type: "external" | "subscriptionLink";
|
|
520
|
+
svgIconKey: string;
|
|
520
521
|
link: string;
|
|
521
522
|
text: {
|
|
522
523
|
en: string;
|
|
@@ -525,9 +526,9 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
525
526
|
fa?: string | undefined;
|
|
526
527
|
fr?: string | undefined;
|
|
527
528
|
};
|
|
528
|
-
svgIconKey: string;
|
|
529
529
|
}, {
|
|
530
530
|
type: "external" | "subscriptionLink";
|
|
531
|
+
svgIconKey: string;
|
|
531
532
|
link: string;
|
|
532
533
|
text: {
|
|
533
534
|
en: string;
|
|
@@ -536,7 +537,6 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
536
537
|
fa?: string | undefined;
|
|
537
538
|
fr?: string | undefined;
|
|
538
539
|
};
|
|
539
|
-
svgIconKey: string;
|
|
540
540
|
}>, "many">;
|
|
541
541
|
}, "strip", z.ZodTypeAny, {
|
|
542
542
|
svgIconKey: string;
|
|
@@ -557,6 +557,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
557
557
|
};
|
|
558
558
|
buttons: {
|
|
559
559
|
type: "external" | "subscriptionLink";
|
|
560
|
+
svgIconKey: string;
|
|
560
561
|
link: string;
|
|
561
562
|
text: {
|
|
562
563
|
en: string;
|
|
@@ -565,7 +566,6 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
565
566
|
fa?: string | undefined;
|
|
566
567
|
fr?: string | undefined;
|
|
567
568
|
};
|
|
568
|
-
svgIconKey: string;
|
|
569
569
|
}[];
|
|
570
570
|
}, {
|
|
571
571
|
svgIconKey: string;
|
|
@@ -586,6 +586,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
586
586
|
};
|
|
587
587
|
buttons: {
|
|
588
588
|
type: "external" | "subscriptionLink";
|
|
589
|
+
svgIconKey: string;
|
|
589
590
|
link: string;
|
|
590
591
|
text: {
|
|
591
592
|
en: string;
|
|
@@ -594,7 +595,6 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
594
595
|
fa?: string | undefined;
|
|
595
596
|
fr?: string | undefined;
|
|
596
597
|
};
|
|
597
|
-
svgIconKey: string;
|
|
598
598
|
}[];
|
|
599
599
|
}>, "many">;
|
|
600
600
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -619,6 +619,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
619
619
|
};
|
|
620
620
|
buttons: {
|
|
621
621
|
type: "external" | "subscriptionLink";
|
|
622
|
+
svgIconKey: string;
|
|
622
623
|
link: string;
|
|
623
624
|
text: {
|
|
624
625
|
en: string;
|
|
@@ -627,7 +628,6 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
627
628
|
fa?: string | undefined;
|
|
628
629
|
fr?: string | undefined;
|
|
629
630
|
};
|
|
630
|
-
svgIconKey: string;
|
|
631
631
|
}[];
|
|
632
632
|
}[];
|
|
633
633
|
}, {
|
|
@@ -652,6 +652,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
652
652
|
};
|
|
653
653
|
buttons: {
|
|
654
654
|
type: "external" | "subscriptionLink";
|
|
655
|
+
svgIconKey: string;
|
|
655
656
|
link: string;
|
|
656
657
|
text: {
|
|
657
658
|
en: string;
|
|
@@ -660,12 +661,11 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
660
661
|
fa?: string | undefined;
|
|
661
662
|
fr?: string | undefined;
|
|
662
663
|
};
|
|
663
|
-
svgIconKey: string;
|
|
664
664
|
}[];
|
|
665
665
|
}[];
|
|
666
666
|
}>, "many">;
|
|
667
667
|
}, "strip", z.ZodTypeAny, {
|
|
668
|
-
|
|
668
|
+
svgIconKey: string;
|
|
669
669
|
displayName: {
|
|
670
670
|
en: string;
|
|
671
671
|
ru?: string | undefined;
|
|
@@ -695,6 +695,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
695
695
|
};
|
|
696
696
|
buttons: {
|
|
697
697
|
type: "external" | "subscriptionLink";
|
|
698
|
+
svgIconKey: string;
|
|
698
699
|
link: string;
|
|
699
700
|
text: {
|
|
700
701
|
en: string;
|
|
@@ -703,12 +704,11 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
703
704
|
fa?: string | undefined;
|
|
704
705
|
fr?: string | undefined;
|
|
705
706
|
};
|
|
706
|
-
svgIconKey: string;
|
|
707
707
|
}[];
|
|
708
708
|
}[];
|
|
709
709
|
}[];
|
|
710
710
|
}, {
|
|
711
|
-
|
|
711
|
+
svgIconKey: string;
|
|
712
712
|
displayName: {
|
|
713
713
|
en: string;
|
|
714
714
|
ru?: string | undefined;
|
|
@@ -738,6 +738,7 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
738
738
|
};
|
|
739
739
|
buttons: {
|
|
740
740
|
type: "external" | "subscriptionLink";
|
|
741
|
+
svgIconKey: string;
|
|
741
742
|
link: string;
|
|
742
743
|
text: {
|
|
743
744
|
en: string;
|
|
@@ -746,7 +747,6 @@ declare const PlatformSchema: z.ZodObject<{
|
|
|
746
747
|
fa?: string | undefined;
|
|
747
748
|
fr?: string | undefined;
|
|
748
749
|
};
|
|
749
|
-
svgIconKey: string;
|
|
750
750
|
}[];
|
|
751
751
|
}[];
|
|
752
752
|
}[];
|
|
@@ -1065,7 +1065,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1065
1065
|
fa?: string | undefined;
|
|
1066
1066
|
fr?: string | undefined;
|
|
1067
1067
|
}>;
|
|
1068
|
-
|
|
1068
|
+
svgIconKey: z.ZodString;
|
|
1069
1069
|
apps: z.ZodArray<z.ZodObject<{
|
|
1070
1070
|
name: z.ZodString;
|
|
1071
1071
|
featured: z.ZodBoolean;
|
|
@@ -1135,6 +1135,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1135
1135
|
svgIconKey: z.ZodString;
|
|
1136
1136
|
}, "strip", z.ZodTypeAny, {
|
|
1137
1137
|
type: "external" | "subscriptionLink";
|
|
1138
|
+
svgIconKey: string;
|
|
1138
1139
|
link: string;
|
|
1139
1140
|
text: {
|
|
1140
1141
|
en: string;
|
|
@@ -1143,9 +1144,9 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1143
1144
|
fa?: string | undefined;
|
|
1144
1145
|
fr?: string | undefined;
|
|
1145
1146
|
};
|
|
1146
|
-
svgIconKey: string;
|
|
1147
1147
|
}, {
|
|
1148
1148
|
type: "external" | "subscriptionLink";
|
|
1149
|
+
svgIconKey: string;
|
|
1149
1150
|
link: string;
|
|
1150
1151
|
text: {
|
|
1151
1152
|
en: string;
|
|
@@ -1154,7 +1155,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1154
1155
|
fa?: string | undefined;
|
|
1155
1156
|
fr?: string | undefined;
|
|
1156
1157
|
};
|
|
1157
|
-
svgIconKey: string;
|
|
1158
1158
|
}>, "many">;
|
|
1159
1159
|
}, "strip", z.ZodTypeAny, {
|
|
1160
1160
|
svgIconKey: string;
|
|
@@ -1175,6 +1175,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1175
1175
|
};
|
|
1176
1176
|
buttons: {
|
|
1177
1177
|
type: "external" | "subscriptionLink";
|
|
1178
|
+
svgIconKey: string;
|
|
1178
1179
|
link: string;
|
|
1179
1180
|
text: {
|
|
1180
1181
|
en: string;
|
|
@@ -1183,7 +1184,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1183
1184
|
fa?: string | undefined;
|
|
1184
1185
|
fr?: string | undefined;
|
|
1185
1186
|
};
|
|
1186
|
-
svgIconKey: string;
|
|
1187
1187
|
}[];
|
|
1188
1188
|
}, {
|
|
1189
1189
|
svgIconKey: string;
|
|
@@ -1204,6 +1204,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1204
1204
|
};
|
|
1205
1205
|
buttons: {
|
|
1206
1206
|
type: "external" | "subscriptionLink";
|
|
1207
|
+
svgIconKey: string;
|
|
1207
1208
|
link: string;
|
|
1208
1209
|
text: {
|
|
1209
1210
|
en: string;
|
|
@@ -1212,7 +1213,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1212
1213
|
fa?: string | undefined;
|
|
1213
1214
|
fr?: string | undefined;
|
|
1214
1215
|
};
|
|
1215
|
-
svgIconKey: string;
|
|
1216
1216
|
}[];
|
|
1217
1217
|
}>, "many">;
|
|
1218
1218
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1237,6 +1237,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1237
1237
|
};
|
|
1238
1238
|
buttons: {
|
|
1239
1239
|
type: "external" | "subscriptionLink";
|
|
1240
|
+
svgIconKey: string;
|
|
1240
1241
|
link: string;
|
|
1241
1242
|
text: {
|
|
1242
1243
|
en: string;
|
|
@@ -1245,7 +1246,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1245
1246
|
fa?: string | undefined;
|
|
1246
1247
|
fr?: string | undefined;
|
|
1247
1248
|
};
|
|
1248
|
-
svgIconKey: string;
|
|
1249
1249
|
}[];
|
|
1250
1250
|
}[];
|
|
1251
1251
|
}, {
|
|
@@ -1270,6 +1270,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1270
1270
|
};
|
|
1271
1271
|
buttons: {
|
|
1272
1272
|
type: "external" | "subscriptionLink";
|
|
1273
|
+
svgIconKey: string;
|
|
1273
1274
|
link: string;
|
|
1274
1275
|
text: {
|
|
1275
1276
|
en: string;
|
|
@@ -1278,12 +1279,11 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1278
1279
|
fa?: string | undefined;
|
|
1279
1280
|
fr?: string | undefined;
|
|
1280
1281
|
};
|
|
1281
|
-
svgIconKey: string;
|
|
1282
1282
|
}[];
|
|
1283
1283
|
}[];
|
|
1284
1284
|
}>, "many">;
|
|
1285
1285
|
}, "strip", z.ZodTypeAny, {
|
|
1286
|
-
|
|
1286
|
+
svgIconKey: string;
|
|
1287
1287
|
displayName: {
|
|
1288
1288
|
en: string;
|
|
1289
1289
|
ru?: string | undefined;
|
|
@@ -1313,6 +1313,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1313
1313
|
};
|
|
1314
1314
|
buttons: {
|
|
1315
1315
|
type: "external" | "subscriptionLink";
|
|
1316
|
+
svgIconKey: string;
|
|
1316
1317
|
link: string;
|
|
1317
1318
|
text: {
|
|
1318
1319
|
en: string;
|
|
@@ -1321,12 +1322,11 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1321
1322
|
fa?: string | undefined;
|
|
1322
1323
|
fr?: string | undefined;
|
|
1323
1324
|
};
|
|
1324
|
-
svgIconKey: string;
|
|
1325
1325
|
}[];
|
|
1326
1326
|
}[];
|
|
1327
1327
|
}[];
|
|
1328
1328
|
}, {
|
|
1329
|
-
|
|
1329
|
+
svgIconKey: string;
|
|
1330
1330
|
displayName: {
|
|
1331
1331
|
en: string;
|
|
1332
1332
|
ru?: string | undefined;
|
|
@@ -1356,6 +1356,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1356
1356
|
};
|
|
1357
1357
|
buttons: {
|
|
1358
1358
|
type: "external" | "subscriptionLink";
|
|
1359
|
+
svgIconKey: string;
|
|
1359
1360
|
link: string;
|
|
1360
1361
|
text: {
|
|
1361
1362
|
en: string;
|
|
@@ -1364,14 +1365,13 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1364
1365
|
fa?: string | undefined;
|
|
1365
1366
|
fr?: string | undefined;
|
|
1366
1367
|
};
|
|
1367
|
-
svgIconKey: string;
|
|
1368
1368
|
}[];
|
|
1369
1369
|
}[];
|
|
1370
1370
|
}[];
|
|
1371
1371
|
}>>;
|
|
1372
1372
|
}, "strip", z.ZodTypeAny, {
|
|
1373
1373
|
platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
|
|
1374
|
-
|
|
1374
|
+
svgIconKey: string;
|
|
1375
1375
|
displayName: {
|
|
1376
1376
|
en: string;
|
|
1377
1377
|
ru?: string | undefined;
|
|
@@ -1401,6 +1401,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1401
1401
|
};
|
|
1402
1402
|
buttons: {
|
|
1403
1403
|
type: "external" | "subscriptionLink";
|
|
1404
|
+
svgIconKey: string;
|
|
1404
1405
|
link: string;
|
|
1405
1406
|
text: {
|
|
1406
1407
|
en: string;
|
|
@@ -1409,7 +1410,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1409
1410
|
fa?: string | undefined;
|
|
1410
1411
|
fr?: string | undefined;
|
|
1411
1412
|
};
|
|
1412
|
-
svgIconKey: string;
|
|
1413
1413
|
}[];
|
|
1414
1414
|
}[];
|
|
1415
1415
|
}[];
|
|
@@ -1447,7 +1447,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1447
1447
|
svgLibrary: Record<string, string>;
|
|
1448
1448
|
}, {
|
|
1449
1449
|
platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
|
|
1450
|
-
|
|
1450
|
+
svgIconKey: string;
|
|
1451
1451
|
displayName: {
|
|
1452
1452
|
en: string;
|
|
1453
1453
|
ru?: string | undefined;
|
|
@@ -1477,6 +1477,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1477
1477
|
};
|
|
1478
1478
|
buttons: {
|
|
1479
1479
|
type: "external" | "subscriptionLink";
|
|
1480
|
+
svgIconKey: string;
|
|
1480
1481
|
link: string;
|
|
1481
1482
|
text: {
|
|
1482
1483
|
en: string;
|
|
@@ -1485,7 +1486,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1485
1486
|
fa?: string | undefined;
|
|
1486
1487
|
fr?: string | undefined;
|
|
1487
1488
|
};
|
|
1488
|
-
svgIconKey: string;
|
|
1489
1489
|
}[];
|
|
1490
1490
|
}[];
|
|
1491
1491
|
}[];
|
|
@@ -1523,7 +1523,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1523
1523
|
svgLibrary: Record<string, string>;
|
|
1524
1524
|
}>, {
|
|
1525
1525
|
platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
|
|
1526
|
-
|
|
1526
|
+
svgIconKey: string;
|
|
1527
1527
|
displayName: {
|
|
1528
1528
|
en: string;
|
|
1529
1529
|
ru?: string | undefined;
|
|
@@ -1553,6 +1553,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1553
1553
|
};
|
|
1554
1554
|
buttons: {
|
|
1555
1555
|
type: "external" | "subscriptionLink";
|
|
1556
|
+
svgIconKey: string;
|
|
1556
1557
|
link: string;
|
|
1557
1558
|
text: {
|
|
1558
1559
|
en: string;
|
|
@@ -1561,7 +1562,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1561
1562
|
fa?: string | undefined;
|
|
1562
1563
|
fr?: string | undefined;
|
|
1563
1564
|
};
|
|
1564
|
-
svgIconKey: string;
|
|
1565
1565
|
}[];
|
|
1566
1566
|
}[];
|
|
1567
1567
|
}[];
|
|
@@ -1599,7 +1599,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1599
1599
|
svgLibrary: Record<string, string>;
|
|
1600
1600
|
}, {
|
|
1601
1601
|
platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
|
|
1602
|
-
|
|
1602
|
+
svgIconKey: string;
|
|
1603
1603
|
displayName: {
|
|
1604
1604
|
en: string;
|
|
1605
1605
|
ru?: string | undefined;
|
|
@@ -1629,6 +1629,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1629
1629
|
};
|
|
1630
1630
|
buttons: {
|
|
1631
1631
|
type: "external" | "subscriptionLink";
|
|
1632
|
+
svgIconKey: string;
|
|
1632
1633
|
link: string;
|
|
1633
1634
|
text: {
|
|
1634
1635
|
en: string;
|
|
@@ -1637,7 +1638,6 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1637
1638
|
fa?: string | undefined;
|
|
1638
1639
|
fr?: string | undefined;
|
|
1639
1640
|
};
|
|
1640
|
-
svgIconKey: string;
|
|
1641
1641
|
}[];
|
|
1642
1642
|
}[];
|
|
1643
1643
|
}[];
|
|
@@ -51,7 +51,7 @@ const PlatformAppSchema = zod_1.z.object({
|
|
|
51
51
|
});
|
|
52
52
|
const PlatformSchema = zod_1.z.object({
|
|
53
53
|
displayName: exports.LocalizedTextSchema,
|
|
54
|
-
|
|
54
|
+
svgIconKey: zod_1.z.string(),
|
|
55
55
|
apps: zod_1.z.array(PlatformAppSchema),
|
|
56
56
|
});
|
|
57
57
|
const BrandingSettingsSchema = zod_1.z.object({
|
|
@@ -36,11 +36,11 @@ const validateSvgReferences = (data, ctx) => {
|
|
|
36
36
|
if (obj === null || typeof obj !== 'object')
|
|
37
37
|
return;
|
|
38
38
|
for (const [key, value] of Object.entries(obj)) {
|
|
39
|
-
if (key === '
|
|
39
|
+
if (key === 'svgIconKey' && typeof value === 'string') {
|
|
40
40
|
if (!validKeys.has(value)) {
|
|
41
41
|
ctx.addIssue({
|
|
42
42
|
code: zod_1.z.ZodIssueCode.custom,
|
|
43
|
-
message: `Unknown
|
|
43
|
+
message: `Unknown svgIconKey '${value}' at ${path}.${key}. Available: ${[...validKeys].join(', ')}`,
|
|
44
44
|
path: [path, key],
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -51,7 +51,7 @@ const PlatformAppSchema = zod_1.z.object({
|
|
|
51
51
|
});
|
|
52
52
|
const PlatformSchema = zod_1.z.object({
|
|
53
53
|
displayName: exports.LocalizedTextSchema,
|
|
54
|
-
|
|
54
|
+
svgIconKey: zod_1.z.string(),
|
|
55
55
|
apps: zod_1.z.array(PlatformAppSchema),
|
|
56
56
|
});
|
|
57
57
|
const BrandingSettingsSchema = zod_1.z.object({
|
package/build/frontend/models/subscription-page-config/subscription-page-config.validator.js
CHANGED
|
@@ -36,11 +36,11 @@ const validateSvgReferences = (data, ctx) => {
|
|
|
36
36
|
if (obj === null || typeof obj !== 'object')
|
|
37
37
|
return;
|
|
38
38
|
for (const [key, value] of Object.entries(obj)) {
|
|
39
|
-
if (key === '
|
|
39
|
+
if (key === 'svgIconKey' && typeof value === 'string') {
|
|
40
40
|
if (!validKeys.has(value)) {
|
|
41
41
|
ctx.addIssue({
|
|
42
42
|
code: zod_1.z.ZodIssueCode.custom,
|
|
43
|
-
message: `Unknown
|
|
43
|
+
message: `Unknown svgIconKey '${value}' at ${path}.${key}. Available: ${[...validKeys].join(', ')}`,
|
|
44
44
|
path: [path, key],
|
|
45
45
|
});
|
|
46
46
|
}
|