@remnawave/subscription-page-types 0.2.1 → 0.2.3

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.
Files changed (54) hide show
  1. package/build/backend/constants/base-translations.constant.d.ts +4 -0
  2. package/build/backend/constants/base-translations.constant.d.ts.map +1 -0
  3. package/build/backend/constants/base-translations.constant.js +25 -0
  4. package/build/backend/constants/index.d.ts +4 -3
  5. package/build/backend/constants/index.d.ts.map +1 -1
  6. package/build/backend/constants/index.js +4 -3
  7. package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.d.ts → platform-types.constant.d.ts} +3 -1
  8. package/build/backend/constants/platform-types.constant.d.ts.map +1 -0
  9. package/build/backend/constants/template-keys.constant.d.ts +3 -0
  10. package/build/backend/constants/template-keys.constant.d.ts.map +1 -0
  11. package/build/backend/constants/ui-blocks-variants.constant.d.ts +19 -0
  12. package/build/backend/constants/ui-blocks-variants.constant.d.ts.map +1 -0
  13. package/build/backend/constants/ui-blocks-variants.constant.js +25 -0
  14. package/build/backend/models/index.d.ts +2 -1
  15. package/build/backend/models/index.d.ts.map +1 -1
  16. package/build/backend/models/index.js +2 -1
  17. package/build/backend/models/{subscription-page-config/subscription-page-config.schema.d.ts → subscription-page-config.schema.d.ts} +65 -155
  18. package/build/backend/models/subscription-page-config.schema.d.ts.map +1 -0
  19. package/build/backend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
  20. package/build/backend/models/{subscription-page-config/subscription-page-config.validator.d.ts → subscription-page-config.validator.d.ts} +1 -1
  21. package/build/backend/models/subscription-page-config.validator.d.ts.map +1 -0
  22. package/build/backend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
  23. package/build/frontend/constants/base-translations.constant.js +25 -0
  24. package/build/frontend/constants/index.js +4 -3
  25. package/build/frontend/constants/ui-blocks-variants.constant.js +25 -0
  26. package/build/frontend/models/index.js +2 -1
  27. package/build/frontend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
  28. package/build/frontend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
  29. package/package.json +1 -1
  30. package/build/backend/constants/installation-guide-blocks.constant.d.ts +0 -10
  31. package/build/backend/constants/installation-guide-blocks.constant.d.ts.map +0 -1
  32. package/build/backend/constants/installation-guide-blocks.constant.js +0 -14
  33. package/build/backend/constants/subscription-info-blocks.constant.d.ts +0 -10
  34. package/build/backend/constants/subscription-info-blocks.constant.d.ts.map +0 -1
  35. package/build/backend/constants/subscription-info-blocks.constant.js +0 -14
  36. package/build/backend/constants/subscription-page-config/index.d.ts +0 -3
  37. package/build/backend/constants/subscription-page-config/index.d.ts.map +0 -1
  38. package/build/backend/constants/subscription-page-config/index.js +0 -18
  39. package/build/backend/constants/subscription-page-config/subscription-page-config.contants.d.ts.map +0 -1
  40. package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts +0 -3
  41. package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts.map +0 -1
  42. package/build/backend/models/subscription-page-config/index.d.ts +0 -2
  43. package/build/backend/models/subscription-page-config/index.d.ts.map +0 -1
  44. package/build/backend/models/subscription-page-config/index.js +0 -17
  45. package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map +0 -1
  46. package/build/backend/models/subscription-page-config/subscription-page-config.validator.d.ts.map +0 -1
  47. package/build/frontend/constants/installation-guide-blocks.constant.js +0 -14
  48. package/build/frontend/constants/subscription-info-blocks.constant.js +0 -14
  49. package/build/frontend/constants/subscription-page-config/index.js +0 -18
  50. package/build/frontend/models/subscription-page-config/index.js +0 -17
  51. /package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
  52. /package/build/backend/constants/{subscription-page-config/subscription-page-template-keys.contant.js → template-keys.constant.js} +0 -0
  53. /package/build/frontend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
  54. /package/build/frontend/constants/{subscription-page-config/subscription-page-template-keys.contant.js → template-keys.constant.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import { TSubscriptionPageBaseTranslationKeys } from '../models';
2
+ export declare const BASE_TRANSLATION_LABELS: Record<TSubscriptionPageBaseTranslationKeys, string>;
3
+ export declare const BASE_TRANSLATION_KEYS: TSubscriptionPageBaseTranslationKeys[];
4
+ //# sourceMappingURL=base-translations.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-translations.constant.d.ts","sourceRoot":"","sources":["../../../constants/base-translations.constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AAEjE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,oCAAoC,EAAE,MAAM,CAoBxF,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,oCAAoC,EAE7B,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BASE_TRANSLATION_KEYS = exports.BASE_TRANSLATION_LABELS = void 0;
4
+ exports.BASE_TRANSLATION_LABELS = {
5
+ installationGuideHeader: 'Installation Guide Header',
6
+ connectionKeysHeader: 'Connection Keys Header',
7
+ linkCopied: 'Link Copied',
8
+ linkCopiedToClipboard: 'Link Copied to Clipboard',
9
+ getLink: 'Get Link',
10
+ scanQrCode: 'Scan QR Code',
11
+ scanQrCodeDescription: 'Scan QR Code Description',
12
+ copyLink: 'Copy Link',
13
+ name: 'Name',
14
+ status: 'Status',
15
+ active: 'Active',
16
+ inactive: 'Inactive',
17
+ expires: 'Expires',
18
+ bandwidth: 'Bandwidth',
19
+ scanToImport: 'Scan to Import',
20
+ expiresIn: 'Expires In',
21
+ expired: 'Expired',
22
+ unknown: 'Unknown',
23
+ indefinitely: 'Indefinitely',
24
+ };
25
+ exports.BASE_TRANSLATION_KEYS = Object.keys(exports.BASE_TRANSLATION_LABELS);
@@ -1,7 +1,8 @@
1
1
  export * from './app-config.constant';
2
+ export * from './base-translations.constant';
2
3
  export * from './button-types.constant';
3
- export * from './installation-guide-blocks.constant';
4
4
  export * from './language-codes.constant';
5
- export * from './subscription-info-blocks.constant';
6
- export * from './subscription-page-config';
5
+ export * from './platform-types.constant';
6
+ export * from './template-keys.constant';
7
+ export * from './ui-blocks-variants.constant';
7
8
  //# 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,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC"}
@@ -15,8 +15,9 @@ 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("./base-translations.constant"), exports);
18
19
  __exportStar(require("./button-types.constant"), exports);
19
- __exportStar(require("./installation-guide-blocks.constant"), exports);
20
20
  __exportStar(require("./language-codes.constant"), exports);
21
- __exportStar(require("./subscription-info-blocks.constant"), exports);
22
- __exportStar(require("./subscription-page-config"), exports);
21
+ __exportStar(require("./platform-types.constant"), exports);
22
+ __exportStar(require("./template-keys.constant"), exports);
23
+ __exportStar(require("./ui-blocks-variants.constant"), exports);
@@ -1,6 +1,7 @@
1
1
  export declare const SUBSCRIPTION_PAGE_CONFIG_VERSION: {
2
2
  readonly 1: "1";
3
3
  };
4
+ export type TSubscriptionPageConfigVersion = (typeof SUBSCRIPTION_PAGE_CONFIG_VERSION)[keyof typeof SUBSCRIPTION_PAGE_CONFIG_VERSION];
4
5
  export declare const SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES: {
5
6
  readonly IOS: "ios";
6
7
  readonly ANDROID: "android";
@@ -10,4 +11,5 @@ export declare const SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES: {
10
11
  readonly ANDROID_TV: "androidTV";
11
12
  readonly APPLE_TV: "appleTV";
12
13
  };
13
- //# sourceMappingURL=subscription-page-config.contants.d.ts.map
14
+ export type TSubscriptionPageConfigPlatformType = (typeof SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES)[keyof typeof SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES];
15
+ //# sourceMappingURL=platform-types.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-types.constant.d.ts","sourceRoot":"","sources":["../../../constants/platform-types.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;CAEnC,CAAC;AAEX,MAAM,MAAM,8BAA8B,GACtC,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAE7F,eAAO,MAAM,uCAAuC;;;;;;;;CAQ1C,CAAC;AAEX,MAAM,MAAM,mCAAmC,GAC3C,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const SUBSCRIPTION_PAGE_TEMPLATE_KEYS: readonly ["USERNAME", "SUBSCRIPTION_LINK"];
2
+ export type TSubscriptionPageTemplateKey = (typeof SUBSCRIPTION_PAGE_TEMPLATE_KEYS)[number];
3
+ //# sourceMappingURL=template-keys.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-keys.constant.d.ts","sourceRoot":"","sources":["../../../constants/template-keys.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,4CAA6C,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,19 @@
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 declare const INSTALLATION_GUIDE_BLOCKS_VARIANTS: {
8
+ readonly CARDS: "cards";
9
+ readonly ACCORDION: "accordion";
10
+ readonly MINIMAL: "minimal";
11
+ readonly TIMELINE: "timeline";
12
+ };
13
+ export type TSubscriptionInfoBlockVariant = (typeof SUBSCRIPTION_INFO_BLOCK_VARIANTS)[keyof typeof SUBSCRIPTION_INFO_BLOCK_VARIANTS];
14
+ export declare const SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES: ("collapsed" | "expanded" | "cards" | "hidden")[];
15
+ export type TInstallationGuideBlockVariant = (typeof INSTALLATION_GUIDE_BLOCKS_VARIANTS)[keyof typeof INSTALLATION_GUIDE_BLOCKS_VARIANTS];
16
+ export declare const INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES: ("cards" | "accordion" | "minimal" | "timeline")[];
17
+ export declare const isInstallationGuideBlockVariant: (value: string) => value is TInstallationGuideBlockVariant;
18
+ export declare const isSubscriptionInfoBlockVariant: (value: string) => value is TSubscriptionInfoBlockVariant;
19
+ //# sourceMappingURL=ui-blocks-variants.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-blocks-variants.constant.d.ts","sourceRoot":"","sources":["../../../constants/ui-blocks-variants.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;CAKnC,CAAC;AAEX,eAAO,MAAM,kCAAkC;;;;;CAKrC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GACrC,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAE7F,eAAO,MAAM,uCAAuC,mDAEnD,CAAC;AAEF,MAAM,MAAM,8BAA8B,GACtC,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAEjG,eAAO,MAAM,yCAAyC,oDAErD,CAAC;AAEF,eAAO,MAAM,+BAA+B,GACxC,OAAO,MAAM,KACd,KAAK,IAAI,8BAIX,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACvC,OAAO,MAAM,KACd,KAAK,IAAI,6BAEX,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSubscriptionInfoBlockVariant = exports.isInstallationGuideBlockVariant = exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS = 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.INSTALLATION_GUIDE_BLOCKS_VARIANTS = {
11
+ CARDS: 'cards',
12
+ ACCORDION: 'accordion',
13
+ MINIMAL: 'minimal',
14
+ TIMELINE: 'timeline',
15
+ };
16
+ exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = Object.values(exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS);
17
+ exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = Object.values(exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS);
18
+ const isInstallationGuideBlockVariant = (value) => {
19
+ return exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES.includes(value);
20
+ };
21
+ exports.isInstallationGuideBlockVariant = isInstallationGuideBlockVariant;
22
+ const isSubscriptionInfoBlockVariant = (value) => {
23
+ return exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES.includes(value);
24
+ };
25
+ exports.isSubscriptionInfoBlockVariant = isSubscriptionInfoBlockVariant;
@@ -1,2 +1,3 @@
1
- export * from './subscription-page-config';
1
+ export * from './subscription-page-config.schema';
2
+ export * from './subscription-page-config.validator';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC"}
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-page-config"), exports);
17
+ __exportStar(require("./subscription-page-config.schema"), exports);
18
+ __exportStar(require("./subscription-page-config.validator"), exports);
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const LocalizedTextSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
2
+ declare const LocalizedTextSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
3
3
  declare const SvgLibrarySchema: z.ZodRecord<z.ZodString, z.ZodString>;
4
4
  declare const ButtonSchema: z.ZodObject<{
5
5
  link: z.ZodString;
@@ -293,64 +293,28 @@ declare const BrandingSettingsSchema: z.ZodObject<{
293
293
  supportUrl: string;
294
294
  }>;
295
295
  declare const UiConfigSchema: z.ZodObject<{
296
- subscriptionInfo: z.ZodObject<{
297
- block: z.ZodNativeEnum<{
298
- readonly COLLAPSED: "collapsed";
299
- readonly EXPANDED: "expanded";
300
- readonly CARDS: "cards";
301
- readonly HIDDEN: "hidden";
302
- }>;
303
- }, "strip", z.ZodTypeAny, {
304
- block: "cards" | "collapsed" | "expanded" | "hidden";
305
- }, {
306
- block: "cards" | "collapsed" | "expanded" | "hidden";
296
+ subscriptionInfoBlockType: z.ZodNativeEnum<{
297
+ readonly COLLAPSED: "collapsed";
298
+ readonly EXPANDED: "expanded";
299
+ readonly CARDS: "cards";
300
+ readonly HIDDEN: "hidden";
307
301
  }>;
308
- installationGuides: z.ZodObject<{
309
- block: z.ZodDefault<z.ZodNativeEnum<{
310
- readonly CARDS: "cards";
311
- readonly ACCORDION: "accordion";
312
- readonly MINIMAL: "minimal";
313
- readonly TIMELINE: "timeline";
314
- }>>;
315
- headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
316
- }, "strip", z.ZodTypeAny, {
317
- block: "cards" | "accordion" | "minimal" | "timeline";
318
- headerText: Record<string, string>;
319
- }, {
320
- headerText: Record<string, string>;
321
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
322
- }>;
323
- connectionKeys: z.ZodObject<{
324
- headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
325
- }, "strip", z.ZodTypeAny, {
326
- headerText: Record<string, string>;
327
- }, {
328
- headerText: Record<string, string>;
302
+ installationGuidesBlockType: z.ZodNativeEnum<{
303
+ readonly CARDS: "cards";
304
+ readonly ACCORDION: "accordion";
305
+ readonly MINIMAL: "minimal";
306
+ readonly TIMELINE: "timeline";
329
307
  }>;
330
308
  }, "strip", z.ZodTypeAny, {
331
- subscriptionInfo: {
332
- block: "cards" | "collapsed" | "expanded" | "hidden";
333
- };
334
- installationGuides: {
335
- block: "cards" | "accordion" | "minimal" | "timeline";
336
- headerText: Record<string, string>;
337
- };
338
- connectionKeys: {
339
- headerText: Record<string, string>;
340
- };
309
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
310
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
341
311
  }, {
342
- subscriptionInfo: {
343
- block: "cards" | "collapsed" | "expanded" | "hidden";
344
- };
345
- installationGuides: {
346
- headerText: Record<string, string>;
347
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
348
- };
349
- connectionKeys: {
350
- headerText: Record<string, string>;
351
- };
312
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
313
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
352
314
  }>;
353
315
  declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
316
+ installationGuideHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
317
+ connectionKeysHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
354
318
  linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
355
319
  linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
356
320
  getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
@@ -372,6 +336,8 @@ declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
372
336
  unknown: Record<string, string>;
373
337
  status: Record<string, string>;
374
338
  name: Record<string, string>;
339
+ installationGuideHeader: Record<string, string>;
340
+ connectionKeysHeader: Record<string, string>;
375
341
  linkCopied: Record<string, string>;
376
342
  linkCopiedToClipboard: Record<string, string>;
377
343
  getLink: Record<string, string>;
@@ -390,6 +356,8 @@ declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
390
356
  unknown: Record<string, string>;
391
357
  status: Record<string, string>;
392
358
  name: Record<string, string>;
359
+ installationGuideHeader: Record<string, string>;
360
+ connectionKeysHeader: Record<string, string>;
393
361
  linkCopied: Record<string, string>;
394
362
  linkCopiedToClipboard: Record<string, string>;
395
363
  getLink: Record<string, string>;
@@ -424,64 +392,28 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
424
392
  supportUrl: string;
425
393
  }>;
426
394
  uiConfig: z.ZodObject<{
427
- subscriptionInfo: z.ZodObject<{
428
- block: z.ZodNativeEnum<{
429
- readonly COLLAPSED: "collapsed";
430
- readonly EXPANDED: "expanded";
431
- readonly CARDS: "cards";
432
- readonly HIDDEN: "hidden";
433
- }>;
434
- }, "strip", z.ZodTypeAny, {
435
- block: "cards" | "collapsed" | "expanded" | "hidden";
436
- }, {
437
- block: "cards" | "collapsed" | "expanded" | "hidden";
438
- }>;
439
- installationGuides: z.ZodObject<{
440
- block: z.ZodDefault<z.ZodNativeEnum<{
441
- readonly CARDS: "cards";
442
- readonly ACCORDION: "accordion";
443
- readonly MINIMAL: "minimal";
444
- readonly TIMELINE: "timeline";
445
- }>>;
446
- headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
447
- }, "strip", z.ZodTypeAny, {
448
- block: "cards" | "accordion" | "minimal" | "timeline";
449
- headerText: Record<string, string>;
450
- }, {
451
- headerText: Record<string, string>;
452
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
395
+ subscriptionInfoBlockType: z.ZodNativeEnum<{
396
+ readonly COLLAPSED: "collapsed";
397
+ readonly EXPANDED: "expanded";
398
+ readonly CARDS: "cards";
399
+ readonly HIDDEN: "hidden";
453
400
  }>;
454
- connectionKeys: z.ZodObject<{
455
- headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
456
- }, "strip", z.ZodTypeAny, {
457
- headerText: Record<string, string>;
458
- }, {
459
- headerText: Record<string, string>;
401
+ installationGuidesBlockType: z.ZodNativeEnum<{
402
+ readonly CARDS: "cards";
403
+ readonly ACCORDION: "accordion";
404
+ readonly MINIMAL: "minimal";
405
+ readonly TIMELINE: "timeline";
460
406
  }>;
461
407
  }, "strip", z.ZodTypeAny, {
462
- subscriptionInfo: {
463
- block: "cards" | "collapsed" | "expanded" | "hidden";
464
- };
465
- installationGuides: {
466
- block: "cards" | "accordion" | "minimal" | "timeline";
467
- headerText: Record<string, string>;
468
- };
469
- connectionKeys: {
470
- headerText: Record<string, string>;
471
- };
408
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
409
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
472
410
  }, {
473
- subscriptionInfo: {
474
- block: "cards" | "collapsed" | "expanded" | "hidden";
475
- };
476
- installationGuides: {
477
- headerText: Record<string, string>;
478
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
479
- };
480
- connectionKeys: {
481
- headerText: Record<string, string>;
482
- };
411
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
412
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
483
413
  }>;
484
414
  baseTranslations: z.ZodObject<{
415
+ installationGuideHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
416
+ connectionKeysHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
485
417
  linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
486
418
  linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
487
419
  getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
@@ -503,6 +435,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
503
435
  unknown: Record<string, string>;
504
436
  status: Record<string, string>;
505
437
  name: Record<string, string>;
438
+ installationGuideHeader: Record<string, string>;
439
+ connectionKeysHeader: Record<string, string>;
506
440
  linkCopied: Record<string, string>;
507
441
  linkCopiedToClipboard: Record<string, string>;
508
442
  getLink: Record<string, string>;
@@ -521,6 +455,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
521
455
  unknown: Record<string, string>;
522
456
  status: Record<string, string>;
523
457
  name: Record<string, string>;
458
+ installationGuideHeader: Record<string, string>;
459
+ connectionKeysHeader: Record<string, string>;
524
460
  linkCopied: Record<string, string>;
525
461
  linkCopiedToClipboard: Record<string, string>;
526
462
  getLink: Record<string, string>;
@@ -695,22 +631,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
695
631
  svgIconKey?: string | undefined;
696
632
  }[];
697
633
  }>>;
698
- uiConfig: {
699
- subscriptionInfo: {
700
- block: "cards" | "collapsed" | "expanded" | "hidden";
701
- };
702
- installationGuides: {
703
- block: "cards" | "accordion" | "minimal" | "timeline";
704
- headerText: Record<string, string>;
705
- };
706
- connectionKeys: {
707
- headerText: Record<string, string>;
708
- };
709
- };
710
634
  baseTranslations: {
711
635
  unknown: Record<string, string>;
712
636
  status: Record<string, string>;
713
637
  name: Record<string, string>;
638
+ installationGuideHeader: Record<string, string>;
639
+ connectionKeysHeader: Record<string, string>;
714
640
  linkCopied: Record<string, string>;
715
641
  linkCopiedToClipboard: Record<string, string>;
716
642
  getLink: Record<string, string>;
@@ -733,6 +659,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
733
659
  logoUrl: string;
734
660
  supportUrl: string;
735
661
  };
662
+ uiConfig: {
663
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
664
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
665
+ };
736
666
  svgLibrary: Record<string, string>;
737
667
  }, {
738
668
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -756,22 +686,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
756
686
  svgIconKey?: string | undefined;
757
687
  }[];
758
688
  }>>;
759
- uiConfig: {
760
- subscriptionInfo: {
761
- block: "cards" | "collapsed" | "expanded" | "hidden";
762
- };
763
- installationGuides: {
764
- headerText: Record<string, string>;
765
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
766
- };
767
- connectionKeys: {
768
- headerText: Record<string, string>;
769
- };
770
- };
771
689
  baseTranslations: {
772
690
  unknown: Record<string, string>;
773
691
  status: Record<string, string>;
774
692
  name: Record<string, string>;
693
+ installationGuideHeader: Record<string, string>;
694
+ connectionKeysHeader: Record<string, string>;
775
695
  linkCopied: Record<string, string>;
776
696
  linkCopiedToClipboard: Record<string, string>;
777
697
  getLink: Record<string, string>;
@@ -794,6 +714,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
794
714
  logoUrl: string;
795
715
  supportUrl: string;
796
716
  };
717
+ uiConfig: {
718
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
719
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
720
+ };
797
721
  svgLibrary: Record<string, string>;
798
722
  }>, {
799
723
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -817,22 +741,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
817
741
  svgIconKey?: string | undefined;
818
742
  }[];
819
743
  }>>;
820
- uiConfig: {
821
- subscriptionInfo: {
822
- block: "cards" | "collapsed" | "expanded" | "hidden";
823
- };
824
- installationGuides: {
825
- block: "cards" | "accordion" | "minimal" | "timeline";
826
- headerText: Record<string, string>;
827
- };
828
- connectionKeys: {
829
- headerText: Record<string, string>;
830
- };
831
- };
832
744
  baseTranslations: {
833
745
  unknown: Record<string, string>;
834
746
  status: Record<string, string>;
835
747
  name: Record<string, string>;
748
+ installationGuideHeader: Record<string, string>;
749
+ connectionKeysHeader: Record<string, string>;
836
750
  linkCopied: Record<string, string>;
837
751
  linkCopiedToClipboard: Record<string, string>;
838
752
  getLink: Record<string, string>;
@@ -855,6 +769,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
855
769
  logoUrl: string;
856
770
  supportUrl: string;
857
771
  };
772
+ uiConfig: {
773
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
774
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
775
+ };
858
776
  svgLibrary: Record<string, string>;
859
777
  }, {
860
778
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -878,22 +796,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
878
796
  svgIconKey?: string | undefined;
879
797
  }[];
880
798
  }>>;
881
- uiConfig: {
882
- subscriptionInfo: {
883
- block: "cards" | "collapsed" | "expanded" | "hidden";
884
- };
885
- installationGuides: {
886
- headerText: Record<string, string>;
887
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
888
- };
889
- connectionKeys: {
890
- headerText: Record<string, string>;
891
- };
892
- };
893
799
  baseTranslations: {
894
800
  unknown: Record<string, string>;
895
801
  status: Record<string, string>;
896
802
  name: Record<string, string>;
803
+ installationGuideHeader: Record<string, string>;
804
+ connectionKeysHeader: Record<string, string>;
897
805
  linkCopied: Record<string, string>;
898
806
  linkCopiedToClipboard: Record<string, string>;
899
807
  getLink: Record<string, string>;
@@ -916,6 +824,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
916
824
  logoUrl: string;
917
825
  supportUrl: string;
918
826
  };
827
+ uiConfig: {
828
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
829
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
830
+ };
919
831
  svgLibrary: Record<string, string>;
920
832
  }>;
921
833
  export type TSubscriptionPageSvgLibrary = z.infer<typeof SvgLibrarySchema>;
@@ -930,7 +842,5 @@ export type TSubscriptionPageLocalizedText = z.infer<typeof LocalizedTextSchema>
930
842
  export type TSubscriptionPageUiConfig = z.infer<typeof UiConfigSchema>;
931
843
  export type TSubscriptionPageTranslateKeys = z.infer<typeof SubscriptionPageTranslateKeysSchema>;
932
844
  export type TSubscriptionPageBaseTranslationKeys = keyof TSubscriptionPageTranslateKeys;
933
- export declare const BASE_TRANSLATION_LABELS: Record<TSubscriptionPageBaseTranslationKeys, string>;
934
- export declare const BASE_TRANSLATION_KEYS: TSubscriptionPageBaseTranslationKeys[];
935
845
  export {};
936
846
  //# sourceMappingURL=subscription-page-config.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-page-config.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-page-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,QAAA,MAAM,mBAAmB,qGAInB,CAAC;AAEP,QAAA,MAAM,gBAAgB,uCAGrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAKhB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;EAGlB,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAatC,CAAC;AAEP,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACzF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7E,MAAM,MAAM,4BAA4B,GAAG,MAAM,0BAA0B,CAAC,WAAW,CAAC,CAAC;AACzF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACjG,MAAM,MAAM,oCAAoC,GAAG,MAAM,8BAA8B,CAAC"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BASE_TRANSLATION_KEYS = exports.BASE_TRANSLATION_LABELS = exports.SubscriptionPageRawConfigSchema = exports.LocalizedTextSchema = void 0;
3
+ exports.SubscriptionPageRawConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const constants_1 = require("../../constants");
5
+ const constants_1 = require("../constants");
6
6
  const subscription_page_config_validator_1 = require("./subscription-page-config.validator");
7
- exports.LocalizedTextSchema = zod_1.z
7
+ const LocalizedTextSchema = zod_1.z
8
8
  .record(zod_1.z.string().regex(/^[a-z]{2}$/, 'Language code must be 2 lowercase letters'), zod_1.z.string())
9
9
  .refine((obj) => Object.keys(obj).length > 0, {
10
10
  message: 'At least one language must be specified',
@@ -13,7 +13,7 @@ const SvgLibrarySchema = zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z]+$/, {
13
13
  const ButtonSchema = zod_1.z.object({
14
14
  link: zod_1.z.string(),
15
15
  type: zod_1.z.nativeEnum(constants_1.BUTTON_TYPES),
16
- text: exports.LocalizedTextSchema,
16
+ text: LocalizedTextSchema,
17
17
  svgIconKey: zod_1.z.string(),
18
18
  });
19
19
  const BlockSchema = zod_1.z.object({
@@ -38,8 +38,8 @@ const BlockSchema = zod_1.z.object({
38
38
  ].includes(value) || /^#[0-9a-fA-F]{3,8}$/.test(value), {
39
39
  message: 'svgIconColor must be one of the predefined colors or a hex color beginning with #',
40
40
  }),
41
- title: exports.LocalizedTextSchema,
42
- description: exports.LocalizedTextSchema,
41
+ title: LocalizedTextSchema,
42
+ description: LocalizedTextSchema,
43
43
  buttons: zod_1.z.array(ButtonSchema),
44
44
  });
45
45
  const PlatformAppSchema = zod_1.z.object({
@@ -49,7 +49,7 @@ const PlatformAppSchema = zod_1.z.object({
49
49
  blocks: zod_1.z.array(BlockSchema),
50
50
  });
51
51
  const PlatformSchema = zod_1.z.object({
52
- displayName: exports.LocalizedTextSchema,
52
+ displayName: LocalizedTextSchema,
53
53
  svgIconKey: zod_1.z.string(),
54
54
  apps: zod_1.z.array(PlatformAppSchema),
55
55
  });
@@ -59,37 +59,29 @@ const BrandingSettingsSchema = zod_1.z.object({
59
59
  supportUrl: zod_1.z.string().url(),
60
60
  });
61
61
  const UiConfigSchema = zod_1.z.object({
62
- subscriptionInfo: zod_1.z.object({
63
- block: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
64
- }),
65
- installationGuides: zod_1.z.object({
66
- block: zod_1.z
67
- .nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS)
68
- .default(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS.CARDS),
69
- headerText: exports.LocalizedTextSchema,
70
- }),
71
- connectionKeys: zod_1.z.object({
72
- headerText: exports.LocalizedTextSchema,
73
- }),
62
+ subscriptionInfoBlockType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
63
+ installationGuidesBlockType: zod_1.z.nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS),
74
64
  });
75
65
  const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
76
- linkCopied: exports.LocalizedTextSchema,
77
- linkCopiedToClipboard: exports.LocalizedTextSchema,
78
- getLink: exports.LocalizedTextSchema,
79
- scanQrCode: exports.LocalizedTextSchema,
80
- scanQrCodeDescription: exports.LocalizedTextSchema,
81
- copyLink: exports.LocalizedTextSchema,
82
- name: exports.LocalizedTextSchema,
83
- status: exports.LocalizedTextSchema,
84
- active: exports.LocalizedTextSchema,
85
- inactive: exports.LocalizedTextSchema,
86
- expires: exports.LocalizedTextSchema,
87
- bandwidth: exports.LocalizedTextSchema,
88
- scanToImport: exports.LocalizedTextSchema,
89
- expiresIn: exports.LocalizedTextSchema,
90
- expired: exports.LocalizedTextSchema,
91
- unknown: exports.LocalizedTextSchema,
92
- indefinitely: exports.LocalizedTextSchema,
66
+ installationGuideHeader: LocalizedTextSchema,
67
+ connectionKeysHeader: LocalizedTextSchema,
68
+ linkCopied: LocalizedTextSchema,
69
+ linkCopiedToClipboard: LocalizedTextSchema,
70
+ getLink: LocalizedTextSchema,
71
+ scanQrCode: LocalizedTextSchema,
72
+ scanQrCodeDescription: LocalizedTextSchema,
73
+ copyLink: LocalizedTextSchema,
74
+ name: LocalizedTextSchema,
75
+ status: LocalizedTextSchema,
76
+ active: LocalizedTextSchema,
77
+ inactive: LocalizedTextSchema,
78
+ expires: LocalizedTextSchema,
79
+ bandwidth: LocalizedTextSchema,
80
+ scanToImport: LocalizedTextSchema,
81
+ expiresIn: LocalizedTextSchema,
82
+ expired: LocalizedTextSchema,
83
+ unknown: LocalizedTextSchema,
84
+ indefinitely: LocalizedTextSchema,
93
85
  });
94
86
  exports.SubscriptionPageRawConfigSchema = zod_1.z
95
87
  .object({
@@ -105,23 +97,3 @@ exports.SubscriptionPageRawConfigSchema = zod_1.z
105
97
  (0, subscription_page_config_validator_1.validateLocalizedTexts)(data, data.locales, ctx);
106
98
  (0, subscription_page_config_validator_1.validateSvgReferences)(data, ctx);
107
99
  });
108
- exports.BASE_TRANSLATION_LABELS = {
109
- linkCopied: 'Link Copied',
110
- linkCopiedToClipboard: 'Link Copied to Clipboard',
111
- getLink: 'Get Link',
112
- scanQrCode: 'Scan QR Code',
113
- scanQrCodeDescription: 'Scan QR Code Description',
114
- copyLink: 'Copy Link',
115
- name: 'Name',
116
- status: 'Status',
117
- active: 'Active',
118
- inactive: 'Inactive',
119
- expires: 'Expires',
120
- bandwidth: 'Bandwidth',
121
- scanToImport: 'Scan to Import',
122
- expiresIn: 'Expires In',
123
- expired: 'Expired',
124
- unknown: 'Unknown',
125
- indefinitely: 'Indefinitely',
126
- };
127
- exports.BASE_TRANSLATION_KEYS = Object.keys(exports.BASE_TRANSLATION_LABELS);
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { TSubscriptionPageLanguageCode } from '../../constants';
2
+ import { TSubscriptionPageLanguageCode } from '../constants';
3
3
  export declare const validateLocalizedTexts: (data: {
4
4
  locales: TSubscriptionPageLanguageCode[];
5
5
  platforms: Record<string, unknown>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-page-config.validator.d.ts","sourceRoot":"","sources":["../../../models/subscription-page-config.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAkB,MAAM,cAAc,CAAC;AAc7E,eAAO,MAAM,sBAAsB,GAC/B,MAAM;IACF,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC7B,EACD,iBAAiB,6BAA6B,EAAE,EAChD,KAAK,CAAC,CAAC,aAAa,KACrB,IAkCF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAC9B,MAAM;IAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,EAChF,KAAK,CAAC,CAAC,aAAa,KACrB,IAwBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EACjC,KAAK,CAAC,EACN,eAAe,6BAA6B,EAAE,KAC/C,CA2BF,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cleanLocalizedTexts = exports.validateSvgReferences = exports.validateLocalizedTexts = void 0;
4
4
  const zod_1 = require("zod");
5
- const constants_1 = require("../../constants");
5
+ const constants_1 = require("../constants");
6
6
  const isLocalizedText = (obj) => {
7
7
  if (obj === null || typeof obj !== 'object' || Array.isArray(obj))
8
8
  return false;
@@ -43,7 +43,6 @@ const validateLocalizedTexts = (data, requiredLocales, ctx) => {
43
43
  }
44
44
  };
45
45
  checkLocalizedText(data.platforms, 'platforms');
46
- checkLocalizedText(data.uiConfig, 'uiConfig');
47
46
  checkLocalizedText(data.baseTranslations, 'baseTranslations');
48
47
  };
49
48
  exports.validateLocalizedTexts = validateLocalizedTexts;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BASE_TRANSLATION_KEYS = exports.BASE_TRANSLATION_LABELS = void 0;
4
+ exports.BASE_TRANSLATION_LABELS = {
5
+ installationGuideHeader: 'Installation Guide Header',
6
+ connectionKeysHeader: 'Connection Keys Header',
7
+ linkCopied: 'Link Copied',
8
+ linkCopiedToClipboard: 'Link Copied to Clipboard',
9
+ getLink: 'Get Link',
10
+ scanQrCode: 'Scan QR Code',
11
+ scanQrCodeDescription: 'Scan QR Code Description',
12
+ copyLink: 'Copy Link',
13
+ name: 'Name',
14
+ status: 'Status',
15
+ active: 'Active',
16
+ inactive: 'Inactive',
17
+ expires: 'Expires',
18
+ bandwidth: 'Bandwidth',
19
+ scanToImport: 'Scan to Import',
20
+ expiresIn: 'Expires In',
21
+ expired: 'Expired',
22
+ unknown: 'Unknown',
23
+ indefinitely: 'Indefinitely',
24
+ };
25
+ exports.BASE_TRANSLATION_KEYS = Object.keys(exports.BASE_TRANSLATION_LABELS);
@@ -15,8 +15,9 @@ 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("./base-translations.constant"), exports);
18
19
  __exportStar(require("./button-types.constant"), exports);
19
- __exportStar(require("./installation-guide-blocks.constant"), exports);
20
20
  __exportStar(require("./language-codes.constant"), exports);
21
- __exportStar(require("./subscription-info-blocks.constant"), exports);
22
- __exportStar(require("./subscription-page-config"), exports);
21
+ __exportStar(require("./platform-types.constant"), exports);
22
+ __exportStar(require("./template-keys.constant"), exports);
23
+ __exportStar(require("./ui-blocks-variants.constant"), exports);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSubscriptionInfoBlockVariant = exports.isInstallationGuideBlockVariant = exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS = 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.INSTALLATION_GUIDE_BLOCKS_VARIANTS = {
11
+ CARDS: 'cards',
12
+ ACCORDION: 'accordion',
13
+ MINIMAL: 'minimal',
14
+ TIMELINE: 'timeline',
15
+ };
16
+ exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES = Object.values(exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS);
17
+ exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES = Object.values(exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS);
18
+ const isInstallationGuideBlockVariant = (value) => {
19
+ return exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES.includes(value);
20
+ };
21
+ exports.isInstallationGuideBlockVariant = isInstallationGuideBlockVariant;
22
+ const isSubscriptionInfoBlockVariant = (value) => {
23
+ return exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES.includes(value);
24
+ };
25
+ exports.isSubscriptionInfoBlockVariant = isSubscriptionInfoBlockVariant;
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-page-config"), exports);
17
+ __exportStar(require("./subscription-page-config.schema"), exports);
18
+ __exportStar(require("./subscription-page-config.validator"), exports);
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BASE_TRANSLATION_KEYS = exports.BASE_TRANSLATION_LABELS = exports.SubscriptionPageRawConfigSchema = exports.LocalizedTextSchema = void 0;
3
+ exports.SubscriptionPageRawConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const constants_1 = require("../../constants");
5
+ const constants_1 = require("../constants");
6
6
  const subscription_page_config_validator_1 = require("./subscription-page-config.validator");
7
- exports.LocalizedTextSchema = zod_1.z
7
+ const LocalizedTextSchema = zod_1.z
8
8
  .record(zod_1.z.string().regex(/^[a-z]{2}$/, 'Language code must be 2 lowercase letters'), zod_1.z.string())
9
9
  .refine((obj) => Object.keys(obj).length > 0, {
10
10
  message: 'At least one language must be specified',
@@ -13,7 +13,7 @@ const SvgLibrarySchema = zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z]+$/, {
13
13
  const ButtonSchema = zod_1.z.object({
14
14
  link: zod_1.z.string(),
15
15
  type: zod_1.z.nativeEnum(constants_1.BUTTON_TYPES),
16
- text: exports.LocalizedTextSchema,
16
+ text: LocalizedTextSchema,
17
17
  svgIconKey: zod_1.z.string(),
18
18
  });
19
19
  const BlockSchema = zod_1.z.object({
@@ -38,8 +38,8 @@ const BlockSchema = zod_1.z.object({
38
38
  ].includes(value) || /^#[0-9a-fA-F]{3,8}$/.test(value), {
39
39
  message: 'svgIconColor must be one of the predefined colors or a hex color beginning with #',
40
40
  }),
41
- title: exports.LocalizedTextSchema,
42
- description: exports.LocalizedTextSchema,
41
+ title: LocalizedTextSchema,
42
+ description: LocalizedTextSchema,
43
43
  buttons: zod_1.z.array(ButtonSchema),
44
44
  });
45
45
  const PlatformAppSchema = zod_1.z.object({
@@ -49,7 +49,7 @@ const PlatformAppSchema = zod_1.z.object({
49
49
  blocks: zod_1.z.array(BlockSchema),
50
50
  });
51
51
  const PlatformSchema = zod_1.z.object({
52
- displayName: exports.LocalizedTextSchema,
52
+ displayName: LocalizedTextSchema,
53
53
  svgIconKey: zod_1.z.string(),
54
54
  apps: zod_1.z.array(PlatformAppSchema),
55
55
  });
@@ -59,37 +59,29 @@ const BrandingSettingsSchema = zod_1.z.object({
59
59
  supportUrl: zod_1.z.string().url(),
60
60
  });
61
61
  const UiConfigSchema = zod_1.z.object({
62
- subscriptionInfo: zod_1.z.object({
63
- block: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
64
- }),
65
- installationGuides: zod_1.z.object({
66
- block: zod_1.z
67
- .nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS)
68
- .default(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS.CARDS),
69
- headerText: exports.LocalizedTextSchema,
70
- }),
71
- connectionKeys: zod_1.z.object({
72
- headerText: exports.LocalizedTextSchema,
73
- }),
62
+ subscriptionInfoBlockType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
63
+ installationGuidesBlockType: zod_1.z.nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS),
74
64
  });
75
65
  const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
76
- linkCopied: exports.LocalizedTextSchema,
77
- linkCopiedToClipboard: exports.LocalizedTextSchema,
78
- getLink: exports.LocalizedTextSchema,
79
- scanQrCode: exports.LocalizedTextSchema,
80
- scanQrCodeDescription: exports.LocalizedTextSchema,
81
- copyLink: exports.LocalizedTextSchema,
82
- name: exports.LocalizedTextSchema,
83
- status: exports.LocalizedTextSchema,
84
- active: exports.LocalizedTextSchema,
85
- inactive: exports.LocalizedTextSchema,
86
- expires: exports.LocalizedTextSchema,
87
- bandwidth: exports.LocalizedTextSchema,
88
- scanToImport: exports.LocalizedTextSchema,
89
- expiresIn: exports.LocalizedTextSchema,
90
- expired: exports.LocalizedTextSchema,
91
- unknown: exports.LocalizedTextSchema,
92
- indefinitely: exports.LocalizedTextSchema,
66
+ installationGuideHeader: LocalizedTextSchema,
67
+ connectionKeysHeader: LocalizedTextSchema,
68
+ linkCopied: LocalizedTextSchema,
69
+ linkCopiedToClipboard: LocalizedTextSchema,
70
+ getLink: LocalizedTextSchema,
71
+ scanQrCode: LocalizedTextSchema,
72
+ scanQrCodeDescription: LocalizedTextSchema,
73
+ copyLink: LocalizedTextSchema,
74
+ name: LocalizedTextSchema,
75
+ status: LocalizedTextSchema,
76
+ active: LocalizedTextSchema,
77
+ inactive: LocalizedTextSchema,
78
+ expires: LocalizedTextSchema,
79
+ bandwidth: LocalizedTextSchema,
80
+ scanToImport: LocalizedTextSchema,
81
+ expiresIn: LocalizedTextSchema,
82
+ expired: LocalizedTextSchema,
83
+ unknown: LocalizedTextSchema,
84
+ indefinitely: LocalizedTextSchema,
93
85
  });
94
86
  exports.SubscriptionPageRawConfigSchema = zod_1.z
95
87
  .object({
@@ -105,23 +97,3 @@ exports.SubscriptionPageRawConfigSchema = zod_1.z
105
97
  (0, subscription_page_config_validator_1.validateLocalizedTexts)(data, data.locales, ctx);
106
98
  (0, subscription_page_config_validator_1.validateSvgReferences)(data, ctx);
107
99
  });
108
- exports.BASE_TRANSLATION_LABELS = {
109
- linkCopied: 'Link Copied',
110
- linkCopiedToClipboard: 'Link Copied to Clipboard',
111
- getLink: 'Get Link',
112
- scanQrCode: 'Scan QR Code',
113
- scanQrCodeDescription: 'Scan QR Code Description',
114
- copyLink: 'Copy Link',
115
- name: 'Name',
116
- status: 'Status',
117
- active: 'Active',
118
- inactive: 'Inactive',
119
- expires: 'Expires',
120
- bandwidth: 'Bandwidth',
121
- scanToImport: 'Scan to Import',
122
- expiresIn: 'Expires In',
123
- expired: 'Expired',
124
- unknown: 'Unknown',
125
- indefinitely: 'Indefinitely',
126
- };
127
- exports.BASE_TRANSLATION_KEYS = Object.keys(exports.BASE_TRANSLATION_LABELS);
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cleanLocalizedTexts = exports.validateSvgReferences = exports.validateLocalizedTexts = void 0;
4
4
  const zod_1 = require("zod");
5
- const constants_1 = require("../../constants");
5
+ const constants_1 = require("../constants");
6
6
  const isLocalizedText = (obj) => {
7
7
  if (obj === null || typeof obj !== 'object' || Array.isArray(obj))
8
8
  return false;
@@ -43,7 +43,6 @@ const validateLocalizedTexts = (data, requiredLocales, ctx) => {
43
43
  }
44
44
  };
45
45
  checkLocalizedText(data.platforms, 'platforms');
46
- checkLocalizedText(data.uiConfig, 'uiConfig');
47
46
  checkLocalizedText(data.baseTranslations, 'baseTranslations');
48
47
  };
49
48
  exports.validateLocalizedTexts = validateLocalizedTexts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/subscription-page-types",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A types library for Remnawave Subscription Page.",
@@ -1,10 +0,0 @@
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
- export declare const isInstallationGuideBlockVariant: (value: string) => value is TInstallationGuideBlockVariant;
10
- //# sourceMappingURL=installation-guide-blocks.constant.d.ts.map
@@ -1 +0,0 @@
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;AAEF,eAAO,MAAM,+BAA+B,GACxC,OAAO,MAAM,KACd,KAAK,IAAI,8BAIX,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInstallationGuideBlockVariant = 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);
11
- const isInstallationGuideBlockVariant = (value) => {
12
- return exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES.includes(value);
13
- };
14
- exports.isInstallationGuideBlockVariant = isInstallationGuideBlockVariant;
@@ -1,10 +0,0 @@
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
- export declare const isSubscriptionInfoBlockVariant: (value: string) => value is TSubscriptionInfoBlockVariant;
10
- //# sourceMappingURL=subscription-info-blocks.constant.d.ts.map
@@ -1 +0,0 @@
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;AAEF,eAAO,MAAM,8BAA8B,GACvC,OAAO,MAAM,KACd,KAAK,IAAI,6BAEX,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSubscriptionInfoBlockVariant = 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);
11
- const isSubscriptionInfoBlockVariant = (value) => {
12
- return exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES.includes(value);
13
- };
14
- exports.isSubscriptionInfoBlockVariant = isSubscriptionInfoBlockVariant;
@@ -1,3 +0,0 @@
1
- export * from './subscription-page-config.contants';
2
- export * from './subscription-page-template-keys.contant';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-page-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-page-config.contants"), exports);
18
- __exportStar(require("./subscription-page-template-keys.contant"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription-page-config.contants.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-page-config/subscription-page-config.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;CAEnC,CAAC;AAEX,eAAO,MAAM,uCAAuC;;;;;;;;CAQ1C,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const SUBSCRIPTION_PAGE_TEMPLATE_KEYS: readonly ["USERNAME", "SUBSCRIPTION_LINK"];
2
- export type SubscriptionPageTemplateKeys = (typeof SUBSCRIPTION_PAGE_TEMPLATE_KEYS)[number];
3
- //# sourceMappingURL=subscription-page-template-keys.contant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription-page-template-keys.contant.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-page-config/subscription-page-template-keys.contant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,4CAA6C,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './subscription-page-config.schema';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/subscription-page-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-page-config.schema"), exports);
@@ -1 +0,0 @@
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,qGAI1B,CAAC;AAEP,QAAA,MAAM,gBAAgB,uCAGrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAKhB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAalB,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAatC,CAAC;AAEP,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACzF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7E,MAAM,MAAM,4BAA4B,GAAG,MAAM,0BAA0B,CAAC,WAAW,CAAC,CAAC;AACzF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACjG,MAAM,MAAM,oCAAoC,GAAG,MAAM,8BAA8B,CAAC;AAExF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,oCAAoC,EAAE,MAAM,CAkBxF,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,oCAAoC,EAE7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription-page-config.validator.d.ts","sourceRoot":"","sources":["../../../../models/subscription-page-config/subscription-page-config.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAkB,MAAM,iBAAiB,CAAC;AAchF,eAAO,MAAM,sBAAsB,GAC/B,MAAM;IACF,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC7B,EACD,iBAAiB,6BAA6B,EAAE,EAChD,KAAK,CAAC,CAAC,aAAa,KACrB,IAmCF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAC9B,MAAM;IAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,EAChF,KAAK,CAAC,CAAC,aAAa,KACrB,IAwBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EACjC,KAAK,CAAC,EACN,eAAe,6BAA6B,EAAE,KAC/C,CA2BF,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInstallationGuideBlockVariant = 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);
11
- const isInstallationGuideBlockVariant = (value) => {
12
- return exports.INSTALLATION_GUIDE_BLOCKS_VARIANTS_VALUES.includes(value);
13
- };
14
- exports.isInstallationGuideBlockVariant = isInstallationGuideBlockVariant;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSubscriptionInfoBlockVariant = 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);
11
- const isSubscriptionInfoBlockVariant = (value) => {
12
- return exports.SUBSCRIPTION_INFO_BLOCK_VARIANTS_VALUES.includes(value);
13
- };
14
- exports.isSubscriptionInfoBlockVariant = isSubscriptionInfoBlockVariant;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-page-config.contants"), exports);
18
- __exportStar(require("./subscription-page-template-keys.contant"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-page-config.schema"), exports);