@remnawave/backend-contract 2.3.47 → 2.3.48

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.
@@ -66,19 +66,11 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
66
66
  }>;
67
67
  svgIcon: z.ZodString;
68
68
  apps: z.ZodArray<z.ZodObject<{
69
- id: z.ZodString;
70
- appSettings: z.ZodObject<{
71
- name: z.ZodString;
72
- featured: z.ZodBoolean;
73
- }, "strip", z.ZodTypeAny, {
74
- name: string;
75
- featured: boolean;
76
- }, {
77
- name: string;
78
- featured: boolean;
79
- }>;
69
+ name: z.ZodString;
70
+ featured: z.ZodBoolean;
80
71
  blocks: z.ZodArray<z.ZodObject<{
81
72
  svgIcon: z.ZodString;
73
+ svgIconColor: z.ZodEnum<["dark", "gray", "red", "pink", "grape", "violet", "indigo", "blue", "cyan", "green", "lime", "yellow", "orange", "teal"]>;
82
74
  title: z.ZodObject<{
83
75
  en: z.ZodString;
84
76
  ru: z.ZodOptional<z.ZodString>;
@@ -179,6 +171,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
179
171
  fr?: string | undefined;
180
172
  };
181
173
  svgIcon: string;
174
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
182
175
  buttons: {
183
176
  type: "external" | "subscriptionLink";
184
177
  link: string;
@@ -207,6 +200,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
207
200
  fr?: string | undefined;
208
201
  };
209
202
  svgIcon: string;
203
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
210
204
  buttons: {
211
205
  type: "external" | "subscriptionLink";
212
206
  link: string;
@@ -221,11 +215,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
221
215
  }[];
222
216
  }>, "many">;
223
217
  }, "strip", z.ZodTypeAny, {
224
- id: string;
225
- appSettings: {
226
- name: string;
227
- featured: boolean;
228
- };
218
+ name: string;
219
+ featured: boolean;
229
220
  blocks: {
230
221
  title: {
231
222
  en: string;
@@ -242,6 +233,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
242
233
  fr?: string | undefined;
243
234
  };
244
235
  svgIcon: string;
236
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
245
237
  buttons: {
246
238
  type: "external" | "subscriptionLink";
247
239
  link: string;
@@ -256,11 +248,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
256
248
  }[];
257
249
  }[];
258
250
  }, {
259
- id: string;
260
- appSettings: {
261
- name: string;
262
- featured: boolean;
263
- };
251
+ name: string;
252
+ featured: boolean;
264
253
  blocks: {
265
254
  title: {
266
255
  en: string;
@@ -277,6 +266,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
277
266
  fr?: string | undefined;
278
267
  };
279
268
  svgIcon: string;
269
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
280
270
  buttons: {
281
271
  type: "external" | "subscriptionLink";
282
272
  link: string;
@@ -301,11 +291,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
301
291
  fr?: string | undefined;
302
292
  };
303
293
  apps: {
304
- id: string;
305
- appSettings: {
306
- name: string;
307
- featured: boolean;
308
- };
294
+ name: string;
295
+ featured: boolean;
309
296
  blocks: {
310
297
  title: {
311
298
  en: string;
@@ -322,6 +309,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
322
309
  fr?: string | undefined;
323
310
  };
324
311
  svgIcon: string;
312
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
325
313
  buttons: {
326
314
  type: "external" | "subscriptionLink";
327
315
  link: string;
@@ -346,11 +334,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
346
334
  fr?: string | undefined;
347
335
  };
348
336
  apps: {
349
- id: string;
350
- appSettings: {
351
- name: string;
352
- featured: boolean;
353
- };
337
+ name: string;
338
+ featured: boolean;
354
339
  blocks: {
355
340
  title: {
356
341
  en: string;
@@ -367,6 +352,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
367
352
  fr?: string | undefined;
368
353
  };
369
354
  svgIcon: string;
355
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
370
356
  buttons: {
371
357
  type: "external" | "subscriptionLink";
372
358
  link: string;
@@ -400,11 +386,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
400
386
  fr?: string | undefined;
401
387
  };
402
388
  apps: {
403
- id: string;
404
- appSettings: {
405
- name: string;
406
- featured: boolean;
407
- };
389
+ name: string;
390
+ featured: boolean;
408
391
  blocks: {
409
392
  title: {
410
393
  en: string;
@@ -421,6 +404,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
421
404
  fr?: string | undefined;
422
405
  };
423
406
  svgIcon: string;
407
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
424
408
  buttons: {
425
409
  type: "external" | "subscriptionLink";
426
410
  link: string;
@@ -454,11 +438,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
454
438
  fr?: string | undefined;
455
439
  };
456
440
  apps: {
457
- id: string;
458
- appSettings: {
459
- name: string;
460
- featured: boolean;
461
- };
441
+ name: string;
442
+ featured: boolean;
462
443
  blocks: {
463
444
  title: {
464
445
  en: string;
@@ -475,6 +456,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
475
456
  fr?: string | undefined;
476
457
  };
477
458
  svgIcon: string;
459
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
478
460
  buttons: {
479
461
  type: "external" | "subscriptionLink";
480
462
  link: string;
@@ -508,11 +490,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
508
490
  fr?: string | undefined;
509
491
  };
510
492
  apps: {
511
- id: string;
512
- appSettings: {
513
- name: string;
514
- featured: boolean;
515
- };
493
+ name: string;
494
+ featured: boolean;
516
495
  blocks: {
517
496
  title: {
518
497
  en: string;
@@ -529,6 +508,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
529
508
  fr?: string | undefined;
530
509
  };
531
510
  svgIcon: string;
511
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
532
512
  buttons: {
533
513
  type: "external" | "subscriptionLink";
534
514
  link: string;
@@ -562,11 +542,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
562
542
  fr?: string | undefined;
563
543
  };
564
544
  apps: {
565
- id: string;
566
- appSettings: {
567
- name: string;
568
- featured: boolean;
569
- };
545
+ name: string;
546
+ featured: boolean;
570
547
  blocks: {
571
548
  title: {
572
549
  en: string;
@@ -583,6 +560,7 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
583
560
  fr?: string | undefined;
584
561
  };
585
562
  svgIcon: string;
563
+ svgIconColor: "dark" | "gray" | "red" | "pink" | "grape" | "violet" | "indigo" | "blue" | "cyan" | "green" | "lime" | "yellow" | "orange" | "teal";
586
564
  buttons: {
587
565
  type: "external" | "subscriptionLink";
588
566
  link: string;
@@ -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;AASxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAqCH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAStC,CAAC;AAEP,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,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;AASxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAkDH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAStC,CAAC;AAEP,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -19,16 +19,29 @@ const ButtonSchema = zod_1.z.object({
19
19
  });
20
20
  const BlockSchema = zod_1.z.object({
21
21
  svgIcon: zod_1.z.string(),
22
+ svgIconColor: zod_1.z.enum([
23
+ 'dark',
24
+ 'gray',
25
+ 'red',
26
+ 'pink',
27
+ 'grape',
28
+ 'violet',
29
+ 'indigo',
30
+ 'blue',
31
+ 'cyan',
32
+ 'green',
33
+ 'lime',
34
+ 'yellow',
35
+ 'orange',
36
+ 'teal',
37
+ ]),
22
38
  title: exports.LocalizedTextSchema,
23
39
  description: exports.LocalizedTextSchema,
24
40
  buttons: zod_1.z.array(ButtonSchema),
25
41
  });
26
42
  const PlatformAppSchema = zod_1.z.object({
27
- id: zod_1.z.string(),
28
- appSettings: zod_1.z.object({
29
- name: zod_1.z.string(),
30
- featured: zod_1.z.boolean(),
31
- }),
43
+ name: zod_1.z.string(),
44
+ featured: zod_1.z.boolean(),
32
45
  blocks: zod_1.z.array(BlockSchema),
33
46
  });
34
47
  const PlatformSchema = zod_1.z.object({
@@ -19,16 +19,29 @@ const ButtonSchema = zod_1.z.object({
19
19
  });
20
20
  const BlockSchema = zod_1.z.object({
21
21
  svgIcon: zod_1.z.string(),
22
+ svgIconColor: zod_1.z.enum([
23
+ 'dark',
24
+ 'gray',
25
+ 'red',
26
+ 'pink',
27
+ 'grape',
28
+ 'violet',
29
+ 'indigo',
30
+ 'blue',
31
+ 'cyan',
32
+ 'green',
33
+ 'lime',
34
+ 'yellow',
35
+ 'orange',
36
+ 'teal',
37
+ ]),
22
38
  title: exports.LocalizedTextSchema,
23
39
  description: exports.LocalizedTextSchema,
24
40
  buttons: zod_1.z.array(ButtonSchema),
25
41
  });
26
42
  const PlatformAppSchema = zod_1.z.object({
27
- id: zod_1.z.string(),
28
- appSettings: zod_1.z.object({
29
- name: zod_1.z.string(),
30
- featured: zod_1.z.boolean(),
31
- }),
43
+ name: zod_1.z.string(),
44
+ featured: zod_1.z.boolean(),
32
45
  blocks: zod_1.z.array(BlockSchema),
33
46
  });
34
47
  const PlatformSchema = zod_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.3.47",
3
+ "version": "2.3.48",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",