@remnawave/subscription-page-types 0.1.5 → 0.1.6
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.
|
@@ -1,411 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { TLanguageCode } from '../../constants';
|
|
3
3
|
export declare const LocalizedTextSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
4
|
-
declare const SvgLibrarySchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5
|
-
declare const ButtonSchema: z.ZodObject<{
|
|
6
|
-
link: z.ZodString;
|
|
7
|
-
type: z.ZodNativeEnum<{
|
|
8
|
-
readonly EXTERNAL: "external";
|
|
9
|
-
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
10
|
-
}>;
|
|
11
|
-
text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
12
|
-
svgIconKey: z.ZodString;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
type: "external" | "subscriptionLink";
|
|
15
|
-
svgIconKey: string;
|
|
16
|
-
link: string;
|
|
17
|
-
text: Record<string, string>;
|
|
18
|
-
}, {
|
|
19
|
-
type: "external" | "subscriptionLink";
|
|
20
|
-
svgIconKey: string;
|
|
21
|
-
link: string;
|
|
22
|
-
text: Record<string, string>;
|
|
23
|
-
}>;
|
|
24
|
-
declare const BlockSchema: z.ZodObject<{
|
|
25
|
-
svgIconKey: z.ZodString;
|
|
26
|
-
svgIconColor: z.ZodEffects<z.ZodString, string, string>;
|
|
27
|
-
title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
28
|
-
description: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
29
|
-
buttons: z.ZodArray<z.ZodObject<{
|
|
30
|
-
link: z.ZodString;
|
|
31
|
-
type: z.ZodNativeEnum<{
|
|
32
|
-
readonly EXTERNAL: "external";
|
|
33
|
-
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
34
|
-
}>;
|
|
35
|
-
text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
36
|
-
svgIconKey: z.ZodString;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
type: "external" | "subscriptionLink";
|
|
39
|
-
svgIconKey: string;
|
|
40
|
-
link: string;
|
|
41
|
-
text: Record<string, string>;
|
|
42
|
-
}, {
|
|
43
|
-
type: "external" | "subscriptionLink";
|
|
44
|
-
svgIconKey: string;
|
|
45
|
-
link: string;
|
|
46
|
-
text: Record<string, string>;
|
|
47
|
-
}>, "many">;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
svgIconKey: string;
|
|
50
|
-
svgIconColor: string;
|
|
51
|
-
title: Record<string, string>;
|
|
52
|
-
description: Record<string, string>;
|
|
53
|
-
buttons: {
|
|
54
|
-
type: "external" | "subscriptionLink";
|
|
55
|
-
svgIconKey: string;
|
|
56
|
-
link: string;
|
|
57
|
-
text: Record<string, string>;
|
|
58
|
-
}[];
|
|
59
|
-
}, {
|
|
60
|
-
svgIconKey: string;
|
|
61
|
-
svgIconColor: string;
|
|
62
|
-
title: Record<string, string>;
|
|
63
|
-
description: Record<string, string>;
|
|
64
|
-
buttons: {
|
|
65
|
-
type: "external" | "subscriptionLink";
|
|
66
|
-
svgIconKey: string;
|
|
67
|
-
link: string;
|
|
68
|
-
text: Record<string, string>;
|
|
69
|
-
}[];
|
|
70
|
-
}>;
|
|
71
|
-
declare const PlatformAppSchema: z.ZodObject<{
|
|
72
|
-
name: z.ZodString;
|
|
73
|
-
svgIconKey: z.ZodOptional<z.ZodString>;
|
|
74
|
-
featured: z.ZodBoolean;
|
|
75
|
-
blocks: z.ZodArray<z.ZodObject<{
|
|
76
|
-
svgIconKey: z.ZodString;
|
|
77
|
-
svgIconColor: z.ZodEffects<z.ZodString, string, string>;
|
|
78
|
-
title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
79
|
-
description: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
80
|
-
buttons: z.ZodArray<z.ZodObject<{
|
|
81
|
-
link: z.ZodString;
|
|
82
|
-
type: z.ZodNativeEnum<{
|
|
83
|
-
readonly EXTERNAL: "external";
|
|
84
|
-
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
85
|
-
}>;
|
|
86
|
-
text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
87
|
-
svgIconKey: z.ZodString;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
type: "external" | "subscriptionLink";
|
|
90
|
-
svgIconKey: string;
|
|
91
|
-
link: string;
|
|
92
|
-
text: Record<string, string>;
|
|
93
|
-
}, {
|
|
94
|
-
type: "external" | "subscriptionLink";
|
|
95
|
-
svgIconKey: string;
|
|
96
|
-
link: string;
|
|
97
|
-
text: Record<string, string>;
|
|
98
|
-
}>, "many">;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
svgIconKey: string;
|
|
101
|
-
svgIconColor: string;
|
|
102
|
-
title: Record<string, string>;
|
|
103
|
-
description: Record<string, string>;
|
|
104
|
-
buttons: {
|
|
105
|
-
type: "external" | "subscriptionLink";
|
|
106
|
-
svgIconKey: string;
|
|
107
|
-
link: string;
|
|
108
|
-
text: Record<string, string>;
|
|
109
|
-
}[];
|
|
110
|
-
}, {
|
|
111
|
-
svgIconKey: string;
|
|
112
|
-
svgIconColor: string;
|
|
113
|
-
title: Record<string, string>;
|
|
114
|
-
description: Record<string, string>;
|
|
115
|
-
buttons: {
|
|
116
|
-
type: "external" | "subscriptionLink";
|
|
117
|
-
svgIconKey: string;
|
|
118
|
-
link: string;
|
|
119
|
-
text: Record<string, string>;
|
|
120
|
-
}[];
|
|
121
|
-
}>, "many">;
|
|
122
|
-
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
name: string;
|
|
124
|
-
featured: boolean;
|
|
125
|
-
blocks: {
|
|
126
|
-
svgIconKey: string;
|
|
127
|
-
svgIconColor: string;
|
|
128
|
-
title: Record<string, string>;
|
|
129
|
-
description: Record<string, string>;
|
|
130
|
-
buttons: {
|
|
131
|
-
type: "external" | "subscriptionLink";
|
|
132
|
-
svgIconKey: string;
|
|
133
|
-
link: string;
|
|
134
|
-
text: Record<string, string>;
|
|
135
|
-
}[];
|
|
136
|
-
}[];
|
|
137
|
-
svgIconKey?: string | undefined;
|
|
138
|
-
}, {
|
|
139
|
-
name: string;
|
|
140
|
-
featured: boolean;
|
|
141
|
-
blocks: {
|
|
142
|
-
svgIconKey: string;
|
|
143
|
-
svgIconColor: string;
|
|
144
|
-
title: Record<string, string>;
|
|
145
|
-
description: Record<string, string>;
|
|
146
|
-
buttons: {
|
|
147
|
-
type: "external" | "subscriptionLink";
|
|
148
|
-
svgIconKey: string;
|
|
149
|
-
link: string;
|
|
150
|
-
text: Record<string, string>;
|
|
151
|
-
}[];
|
|
152
|
-
}[];
|
|
153
|
-
svgIconKey?: string | undefined;
|
|
154
|
-
}>;
|
|
155
|
-
declare const PlatformSchema: z.ZodObject<{
|
|
156
|
-
displayName: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
157
|
-
svgIconKey: z.ZodString;
|
|
158
|
-
apps: z.ZodArray<z.ZodObject<{
|
|
159
|
-
name: z.ZodString;
|
|
160
|
-
svgIconKey: z.ZodOptional<z.ZodString>;
|
|
161
|
-
featured: z.ZodBoolean;
|
|
162
|
-
blocks: z.ZodArray<z.ZodObject<{
|
|
163
|
-
svgIconKey: z.ZodString;
|
|
164
|
-
svgIconColor: z.ZodEffects<z.ZodString, string, string>;
|
|
165
|
-
title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
166
|
-
description: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
167
|
-
buttons: z.ZodArray<z.ZodObject<{
|
|
168
|
-
link: z.ZodString;
|
|
169
|
-
type: z.ZodNativeEnum<{
|
|
170
|
-
readonly EXTERNAL: "external";
|
|
171
|
-
readonly SUBSCRIPTION_LINK: "subscriptionLink";
|
|
172
|
-
}>;
|
|
173
|
-
text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
174
|
-
svgIconKey: z.ZodString;
|
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
type: "external" | "subscriptionLink";
|
|
177
|
-
svgIconKey: string;
|
|
178
|
-
link: string;
|
|
179
|
-
text: Record<string, string>;
|
|
180
|
-
}, {
|
|
181
|
-
type: "external" | "subscriptionLink";
|
|
182
|
-
svgIconKey: string;
|
|
183
|
-
link: string;
|
|
184
|
-
text: Record<string, string>;
|
|
185
|
-
}>, "many">;
|
|
186
|
-
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
svgIconKey: string;
|
|
188
|
-
svgIconColor: string;
|
|
189
|
-
title: Record<string, string>;
|
|
190
|
-
description: Record<string, string>;
|
|
191
|
-
buttons: {
|
|
192
|
-
type: "external" | "subscriptionLink";
|
|
193
|
-
svgIconKey: string;
|
|
194
|
-
link: string;
|
|
195
|
-
text: Record<string, string>;
|
|
196
|
-
}[];
|
|
197
|
-
}, {
|
|
198
|
-
svgIconKey: string;
|
|
199
|
-
svgIconColor: string;
|
|
200
|
-
title: Record<string, string>;
|
|
201
|
-
description: Record<string, string>;
|
|
202
|
-
buttons: {
|
|
203
|
-
type: "external" | "subscriptionLink";
|
|
204
|
-
svgIconKey: string;
|
|
205
|
-
link: string;
|
|
206
|
-
text: Record<string, string>;
|
|
207
|
-
}[];
|
|
208
|
-
}>, "many">;
|
|
209
|
-
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
name: string;
|
|
211
|
-
featured: boolean;
|
|
212
|
-
blocks: {
|
|
213
|
-
svgIconKey: string;
|
|
214
|
-
svgIconColor: string;
|
|
215
|
-
title: Record<string, string>;
|
|
216
|
-
description: Record<string, string>;
|
|
217
|
-
buttons: {
|
|
218
|
-
type: "external" | "subscriptionLink";
|
|
219
|
-
svgIconKey: string;
|
|
220
|
-
link: string;
|
|
221
|
-
text: Record<string, string>;
|
|
222
|
-
}[];
|
|
223
|
-
}[];
|
|
224
|
-
svgIconKey?: string | undefined;
|
|
225
|
-
}, {
|
|
226
|
-
name: string;
|
|
227
|
-
featured: boolean;
|
|
228
|
-
blocks: {
|
|
229
|
-
svgIconKey: string;
|
|
230
|
-
svgIconColor: string;
|
|
231
|
-
title: Record<string, string>;
|
|
232
|
-
description: Record<string, string>;
|
|
233
|
-
buttons: {
|
|
234
|
-
type: "external" | "subscriptionLink";
|
|
235
|
-
svgIconKey: string;
|
|
236
|
-
link: string;
|
|
237
|
-
text: Record<string, string>;
|
|
238
|
-
}[];
|
|
239
|
-
}[];
|
|
240
|
-
svgIconKey?: string | undefined;
|
|
241
|
-
}>, "many">;
|
|
242
|
-
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
svgIconKey: string;
|
|
244
|
-
displayName: Record<string, string>;
|
|
245
|
-
apps: {
|
|
246
|
-
name: string;
|
|
247
|
-
featured: boolean;
|
|
248
|
-
blocks: {
|
|
249
|
-
svgIconKey: string;
|
|
250
|
-
svgIconColor: string;
|
|
251
|
-
title: Record<string, string>;
|
|
252
|
-
description: Record<string, string>;
|
|
253
|
-
buttons: {
|
|
254
|
-
type: "external" | "subscriptionLink";
|
|
255
|
-
svgIconKey: string;
|
|
256
|
-
link: string;
|
|
257
|
-
text: Record<string, string>;
|
|
258
|
-
}[];
|
|
259
|
-
}[];
|
|
260
|
-
svgIconKey?: string | undefined;
|
|
261
|
-
}[];
|
|
262
|
-
}, {
|
|
263
|
-
svgIconKey: string;
|
|
264
|
-
displayName: Record<string, string>;
|
|
265
|
-
apps: {
|
|
266
|
-
name: string;
|
|
267
|
-
featured: boolean;
|
|
268
|
-
blocks: {
|
|
269
|
-
svgIconKey: string;
|
|
270
|
-
svgIconColor: string;
|
|
271
|
-
title: Record<string, string>;
|
|
272
|
-
description: Record<string, string>;
|
|
273
|
-
buttons: {
|
|
274
|
-
type: "external" | "subscriptionLink";
|
|
275
|
-
svgIconKey: string;
|
|
276
|
-
link: string;
|
|
277
|
-
text: Record<string, string>;
|
|
278
|
-
}[];
|
|
279
|
-
}[];
|
|
280
|
-
svgIconKey?: string | undefined;
|
|
281
|
-
}[];
|
|
282
|
-
}>;
|
|
283
|
-
declare const BrandingSettingsSchema: z.ZodObject<{
|
|
284
|
-
title: z.ZodString;
|
|
285
|
-
logoUrl: z.ZodString;
|
|
286
|
-
supportUrl: z.ZodString;
|
|
287
|
-
}, "strip", z.ZodTypeAny, {
|
|
288
|
-
title: string;
|
|
289
|
-
logoUrl: string;
|
|
290
|
-
supportUrl: string;
|
|
291
|
-
}, {
|
|
292
|
-
title: string;
|
|
293
|
-
logoUrl: string;
|
|
294
|
-
supportUrl: string;
|
|
295
|
-
}>;
|
|
296
|
-
declare const UiConfigSchema: z.ZodObject<{
|
|
297
|
-
subscriptionInfo: z.ZodObject<{
|
|
298
|
-
block: z.ZodNativeEnum<{
|
|
299
|
-
readonly COLLAPSED: "collapsed";
|
|
300
|
-
readonly EXPANDED: "expanded";
|
|
301
|
-
readonly CARDS: "cards";
|
|
302
|
-
readonly HIDDEN: "hidden";
|
|
303
|
-
}>;
|
|
304
|
-
}, "strip", z.ZodTypeAny, {
|
|
305
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
306
|
-
}, {
|
|
307
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
308
|
-
}>;
|
|
309
|
-
installationGuides: z.ZodObject<{
|
|
310
|
-
block: z.ZodDefault<z.ZodNativeEnum<{
|
|
311
|
-
readonly CARDS: "cards";
|
|
312
|
-
readonly ACCORDION: "accordion";
|
|
313
|
-
readonly MINIMAL: "minimal";
|
|
314
|
-
readonly TIMELINE: "timeline";
|
|
315
|
-
}>>;
|
|
316
|
-
headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
317
|
-
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
319
|
-
headerText: Record<string, string>;
|
|
320
|
-
}, {
|
|
321
|
-
headerText: Record<string, string>;
|
|
322
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
323
|
-
}>;
|
|
324
|
-
connectionKeys: z.ZodObject<{
|
|
325
|
-
headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
326
|
-
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
headerText: Record<string, string>;
|
|
328
|
-
}, {
|
|
329
|
-
headerText: Record<string, string>;
|
|
330
|
-
}>;
|
|
331
|
-
}, "strip", z.ZodTypeAny, {
|
|
332
|
-
subscriptionInfo: {
|
|
333
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
334
|
-
};
|
|
335
|
-
installationGuides: {
|
|
336
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
337
|
-
headerText: Record<string, string>;
|
|
338
|
-
};
|
|
339
|
-
connectionKeys: {
|
|
340
|
-
headerText: Record<string, string>;
|
|
341
|
-
};
|
|
342
|
-
}, {
|
|
343
|
-
subscriptionInfo: {
|
|
344
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
345
|
-
};
|
|
346
|
-
installationGuides: {
|
|
347
|
-
headerText: Record<string, string>;
|
|
348
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
349
|
-
};
|
|
350
|
-
connectionKeys: {
|
|
351
|
-
headerText: Record<string, string>;
|
|
352
|
-
};
|
|
353
|
-
}>;
|
|
354
|
-
declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
|
|
355
|
-
linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
356
|
-
linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
357
|
-
getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
358
|
-
scanQrCode: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
359
|
-
scanQrCodeDescription: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
360
|
-
copyLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
361
|
-
name: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
362
|
-
status: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
363
|
-
active: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
364
|
-
inactive: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
365
|
-
expires: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
366
|
-
bandwidth: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
367
|
-
scanToImport: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
368
|
-
expiresIn: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
369
|
-
expired: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
370
|
-
unknown: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
371
|
-
indefinitely: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
372
|
-
}, "strip", z.ZodTypeAny, {
|
|
373
|
-
unknown: Record<string, string>;
|
|
374
|
-
status: Record<string, string>;
|
|
375
|
-
name: Record<string, string>;
|
|
376
|
-
linkCopied: Record<string, string>;
|
|
377
|
-
linkCopiedToClipboard: Record<string, string>;
|
|
378
|
-
getLink: Record<string, string>;
|
|
379
|
-
scanQrCode: Record<string, string>;
|
|
380
|
-
scanQrCodeDescription: Record<string, string>;
|
|
381
|
-
copyLink: Record<string, string>;
|
|
382
|
-
active: Record<string, string>;
|
|
383
|
-
inactive: Record<string, string>;
|
|
384
|
-
expires: Record<string, string>;
|
|
385
|
-
bandwidth: Record<string, string>;
|
|
386
|
-
scanToImport: Record<string, string>;
|
|
387
|
-
expiresIn: Record<string, string>;
|
|
388
|
-
expired: Record<string, string>;
|
|
389
|
-
indefinitely: Record<string, string>;
|
|
390
|
-
}, {
|
|
391
|
-
unknown: Record<string, string>;
|
|
392
|
-
status: Record<string, string>;
|
|
393
|
-
name: Record<string, string>;
|
|
394
|
-
linkCopied: Record<string, string>;
|
|
395
|
-
linkCopiedToClipboard: Record<string, string>;
|
|
396
|
-
getLink: Record<string, string>;
|
|
397
|
-
scanQrCode: Record<string, string>;
|
|
398
|
-
scanQrCodeDescription: Record<string, string>;
|
|
399
|
-
copyLink: Record<string, string>;
|
|
400
|
-
active: Record<string, string>;
|
|
401
|
-
inactive: Record<string, string>;
|
|
402
|
-
expires: Record<string, string>;
|
|
403
|
-
bandwidth: Record<string, string>;
|
|
404
|
-
scanToImport: Record<string, string>;
|
|
405
|
-
expiresIn: Record<string, string>;
|
|
406
|
-
expired: Record<string, string>;
|
|
407
|
-
indefinitely: Record<string, string>;
|
|
408
|
-
}>;
|
|
409
4
|
export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
410
5
|
version: z.ZodNativeEnum<{
|
|
411
6
|
readonly 1: "1";
|
|
@@ -919,17 +514,80 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
919
514
|
};
|
|
920
515
|
svgLibrary: Record<string, string>;
|
|
921
516
|
}>;
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
export type
|
|
925
|
-
export type
|
|
926
|
-
export
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
export
|
|
517
|
+
import { TButtonType, TSubscriptionInfoBlockVariant, TInstallationGuideBlockVariant } from '../../constants';
|
|
518
|
+
/** Локализованный текст: ключ = код языка, значение = перевод */
|
|
519
|
+
export type TSubscriptionPageLocalizedText = Partial<Record<TLanguageCode, string>>;
|
|
520
|
+
export type TSubscriptionPageSvgLibrary = Record<string, string>;
|
|
521
|
+
export interface TSubscriptionPageButtonConfig {
|
|
522
|
+
link: string;
|
|
523
|
+
type: TButtonType;
|
|
524
|
+
text: TSubscriptionPageLocalizedText;
|
|
525
|
+
svgIconKey: string;
|
|
526
|
+
}
|
|
527
|
+
export interface TSubscriptionPageBlockConfig {
|
|
528
|
+
svgIconKey: string;
|
|
529
|
+
svgIconColor: string;
|
|
530
|
+
title: TSubscriptionPageLocalizedText;
|
|
531
|
+
description: TSubscriptionPageLocalizedText;
|
|
532
|
+
buttons: TSubscriptionPageButtonConfig[];
|
|
533
|
+
}
|
|
534
|
+
export interface TSubscriptionPageAppConfig {
|
|
535
|
+
name: string;
|
|
536
|
+
svgIconKey?: string;
|
|
537
|
+
featured: boolean;
|
|
538
|
+
blocks: TSubscriptionPageBlockConfig[];
|
|
539
|
+
}
|
|
540
|
+
export interface TSubscriptionPagePlatformSchema {
|
|
541
|
+
displayName: TSubscriptionPageLocalizedText;
|
|
542
|
+
svgIconKey: string;
|
|
543
|
+
apps: TSubscriptionPageAppConfig[];
|
|
544
|
+
}
|
|
545
|
+
export interface TSubscriptionPageBrandingSettings {
|
|
546
|
+
title: string;
|
|
547
|
+
logoUrl: string;
|
|
548
|
+
supportUrl: string;
|
|
549
|
+
}
|
|
550
|
+
export interface TSubscriptionPageUiConfig {
|
|
551
|
+
subscriptionInfo: {
|
|
552
|
+
block: TSubscriptionInfoBlockVariant;
|
|
553
|
+
};
|
|
554
|
+
installationGuides: {
|
|
555
|
+
block: TInstallationGuideBlockVariant;
|
|
556
|
+
headerText: TSubscriptionPageLocalizedText;
|
|
557
|
+
};
|
|
558
|
+
connectionKeys: {
|
|
559
|
+
headerText: TSubscriptionPageLocalizedText;
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
export interface TSubscriptionPageTranslateKeys {
|
|
563
|
+
linkCopied: TSubscriptionPageLocalizedText;
|
|
564
|
+
linkCopiedToClipboard: TSubscriptionPageLocalizedText;
|
|
565
|
+
getLink: TSubscriptionPageLocalizedText;
|
|
566
|
+
scanQrCode: TSubscriptionPageLocalizedText;
|
|
567
|
+
scanQrCodeDescription: TSubscriptionPageLocalizedText;
|
|
568
|
+
copyLink: TSubscriptionPageLocalizedText;
|
|
569
|
+
name: TSubscriptionPageLocalizedText;
|
|
570
|
+
status: TSubscriptionPageLocalizedText;
|
|
571
|
+
active: TSubscriptionPageLocalizedText;
|
|
572
|
+
inactive: TSubscriptionPageLocalizedText;
|
|
573
|
+
expires: TSubscriptionPageLocalizedText;
|
|
574
|
+
bandwidth: TSubscriptionPageLocalizedText;
|
|
575
|
+
scanToImport: TSubscriptionPageLocalizedText;
|
|
576
|
+
expiresIn: TSubscriptionPageLocalizedText;
|
|
577
|
+
expired: TSubscriptionPageLocalizedText;
|
|
578
|
+
unknown: TSubscriptionPageLocalizedText;
|
|
579
|
+
indefinitely: TSubscriptionPageLocalizedText;
|
|
580
|
+
}
|
|
581
|
+
export type TSubscriptionPagePlatformType = 'ios' | 'android' | 'linux' | 'macos' | 'windows' | 'androidTV' | 'appleTV';
|
|
582
|
+
export interface TSubscriptionPageRawConfig {
|
|
583
|
+
version: '1';
|
|
584
|
+
locales: TLanguageCode[];
|
|
585
|
+
brandingSettings: TSubscriptionPageBrandingSettings;
|
|
586
|
+
uiConfig: TSubscriptionPageUiConfig;
|
|
587
|
+
baseTranslations: TSubscriptionPageTranslateKeys;
|
|
588
|
+
svgLibrary: TSubscriptionPageSvgLibrary;
|
|
589
|
+
platforms: Partial<Record<TSubscriptionPagePlatformType, TSubscriptionPagePlatformSchema>>;
|
|
590
|
+
}
|
|
591
|
+
export type TSubscriptionPagePlatformKey = TSubscriptionPagePlatformType;
|
|
933
592
|
export type TSubscriptionPageLocale = TLanguageCode;
|
|
934
|
-
export {};
|
|
935
593
|
//# sourceMappingURL=subscription-page-config.schema.d.ts.map
|
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;AAExB,OAAO,EAMH,aAAa,EAChB,MAAM,iBAAiB,CAAC;AASzB,eAAO,MAAM,mBAAmB,qGAI1B,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,OAAO,EAMH,aAAa,EAChB,MAAM,iBAAiB,CAAC;AASzB,eAAO,MAAM,mBAAmB,qGAI1B,CAAC;AAoGP,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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