@remnawave/subscription-page-types 0.2.2 → 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 (56) 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/language-codes.constant.d.ts +0 -1
  8. package/build/backend/constants/language-codes.constant.d.ts.map +1 -1
  9. package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.d.ts → platform-types.constant.d.ts} +3 -1
  10. package/build/backend/constants/platform-types.constant.d.ts.map +1 -0
  11. package/build/backend/constants/template-keys.constant.d.ts +3 -0
  12. package/build/backend/constants/template-keys.constant.d.ts.map +1 -0
  13. package/build/backend/constants/ui-blocks-variants.constant.d.ts +19 -0
  14. package/build/backend/constants/ui-blocks-variants.constant.d.ts.map +1 -0
  15. package/build/backend/constants/ui-blocks-variants.constant.js +25 -0
  16. package/build/backend/models/index.d.ts +2 -1
  17. package/build/backend/models/index.d.ts.map +1 -1
  18. package/build/backend/models/index.js +2 -1
  19. package/build/backend/models/{subscription-page-config/subscription-page-config.schema.d.ts → subscription-page-config.schema.d.ts} +65 -157
  20. package/build/backend/models/subscription-page-config.schema.d.ts.map +1 -0
  21. package/build/backend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
  22. package/build/backend/models/{subscription-page-config/subscription-page-config.validator.d.ts → subscription-page-config.validator.d.ts} +1 -1
  23. package/build/backend/models/subscription-page-config.validator.d.ts.map +1 -0
  24. package/build/backend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
  25. package/build/frontend/constants/base-translations.constant.js +25 -0
  26. package/build/frontend/constants/index.js +4 -3
  27. package/build/frontend/constants/ui-blocks-variants.constant.js +25 -0
  28. package/build/frontend/models/index.js +2 -1
  29. package/build/frontend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
  30. package/build/frontend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
  31. package/package.json +1 -1
  32. package/build/backend/constants/installation-guide-blocks.constant.d.ts +0 -10
  33. package/build/backend/constants/installation-guide-blocks.constant.d.ts.map +0 -1
  34. package/build/backend/constants/installation-guide-blocks.constant.js +0 -14
  35. package/build/backend/constants/subscription-info-blocks.constant.d.ts +0 -10
  36. package/build/backend/constants/subscription-info-blocks.constant.d.ts.map +0 -1
  37. package/build/backend/constants/subscription-info-blocks.constant.js +0 -14
  38. package/build/backend/constants/subscription-page-config/index.d.ts +0 -3
  39. package/build/backend/constants/subscription-page-config/index.d.ts.map +0 -1
  40. package/build/backend/constants/subscription-page-config/index.js +0 -18
  41. package/build/backend/constants/subscription-page-config/subscription-page-config.contants.d.ts.map +0 -1
  42. package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts +0 -3
  43. package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts.map +0 -1
  44. package/build/backend/models/subscription-page-config/index.d.ts +0 -2
  45. package/build/backend/models/subscription-page-config/index.d.ts.map +0 -1
  46. package/build/backend/models/subscription-page-config/index.js +0 -17
  47. package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map +0 -1
  48. package/build/backend/models/subscription-page-config/subscription-page-config.validator.d.ts.map +0 -1
  49. package/build/frontend/constants/installation-guide-blocks.constant.js +0 -14
  50. package/build/frontend/constants/subscription-info-blocks.constant.js +0 -14
  51. package/build/frontend/constants/subscription-page-config/index.js +0 -18
  52. package/build/frontend/models/subscription-page-config/index.js +0 -17
  53. /package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
  54. /package/build/backend/constants/{subscription-page-config/subscription-page-template-keys.contant.js → template-keys.constant.js} +0 -0
  55. /package/build/frontend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
  56. /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);
@@ -100,7 +100,6 @@ declare const LANGUAGES_LIST: {
100
100
  readonly emoji: "🇹🇭";
101
101
  };
102
102
  };
103
- export type TSubscriptionPageLanguageCodes = (keyof typeof LANGUAGES_LIST)[];
104
103
  export type TSubscriptionPageLanguageCode = keyof typeof LANGUAGES_LIST;
105
104
  export declare const LANGUAGE_CODES: [TSubscriptionPageLanguageCode, ...TSubscriptionPageLanguageCode[]];
106
105
  export interface ILanguageInfo {
@@ -1 +1 @@
1
- {"version":3,"file":"language-codes.constant.d.ts","sourceRoot":"","sources":["../../../constants/language-codes.constant.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBV,CAAC;AAEX,MAAM,MAAM,8BAA8B,GAAG,CAAC,MAAM,OAAO,cAAc,CAAC,EAAE,CAAC;AAC7E,MAAM,MAAM,6BAA6B,GAAG,MAAM,OAAO,cAAc,CAAC;AAExE,eAAO,MAAM,cAAc,EAAkC,CACzD,6BAA6B,EAC7B,GAAG,6BAA6B,EAAE,CACrC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,aAAa,GAAG,IAK9D,CAAC;AAEF;;;;GAIG;AAEH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAK9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,MAKpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,6BAErD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,KAAK,CACtC;IAAE,IAAI,EAAE,6BAA6B,CAAA;CAAE,GAAG,aAAa,CAQ1D,CAAC"}
1
+ {"version":3,"file":"language-codes.constant.d.ts","sourceRoot":"","sources":["../../../constants/language-codes.constant.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBV,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,MAAM,OAAO,cAAc,CAAC;AAExE,eAAO,MAAM,cAAc,EAAkC,CACzD,6BAA6B,EAC7B,GAAG,6BAA6B,EAAE,CACrC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,aAAa,GAAG,IAK9D,CAAC;AAEF;;;;GAIG;AAEH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAK9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,MAKpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,6BAErD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,KAAK,CACtC;IAAE,IAAI,EAAE,6BAA6B,CAAA;CAAE,GAAG,aAAa,CAQ1D,CAAC"}
@@ -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,6 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { TSubscriptionPageLanguageCode } from '../../constants';
3
- 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>>;
4
3
  declare const SvgLibrarySchema: z.ZodRecord<z.ZodString, z.ZodString>;
5
4
  declare const ButtonSchema: z.ZodObject<{
6
5
  link: z.ZodString;
@@ -294,64 +293,28 @@ declare const BrandingSettingsSchema: z.ZodObject<{
294
293
  supportUrl: string;
295
294
  }>;
296
295
  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";
296
+ subscriptionInfoBlockType: z.ZodNativeEnum<{
297
+ readonly COLLAPSED: "collapsed";
298
+ readonly EXPANDED: "expanded";
299
+ readonly CARDS: "cards";
300
+ readonly HIDDEN: "hidden";
308
301
  }>;
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>;
302
+ installationGuidesBlockType: z.ZodNativeEnum<{
303
+ readonly CARDS: "cards";
304
+ readonly ACCORDION: "accordion";
305
+ readonly MINIMAL: "minimal";
306
+ readonly TIMELINE: "timeline";
330
307
  }>;
331
308
  }, "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
- };
309
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
310
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
342
311
  }, {
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
- };
312
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
313
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
353
314
  }>;
354
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>>;
355
318
  linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
356
319
  linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
357
320
  getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
@@ -373,6 +336,8 @@ declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
373
336
  unknown: Record<string, string>;
374
337
  status: Record<string, string>;
375
338
  name: Record<string, string>;
339
+ installationGuideHeader: Record<string, string>;
340
+ connectionKeysHeader: Record<string, string>;
376
341
  linkCopied: Record<string, string>;
377
342
  linkCopiedToClipboard: Record<string, string>;
378
343
  getLink: Record<string, string>;
@@ -391,6 +356,8 @@ declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
391
356
  unknown: Record<string, string>;
392
357
  status: Record<string, string>;
393
358
  name: Record<string, string>;
359
+ installationGuideHeader: Record<string, string>;
360
+ connectionKeysHeader: Record<string, string>;
394
361
  linkCopied: Record<string, string>;
395
362
  linkCopiedToClipboard: Record<string, string>;
396
363
  getLink: Record<string, string>;
@@ -425,64 +392,28 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
425
392
  supportUrl: string;
426
393
  }>;
427
394
  uiConfig: z.ZodObject<{
428
- subscriptionInfo: z.ZodObject<{
429
- block: z.ZodNativeEnum<{
430
- readonly COLLAPSED: "collapsed";
431
- readonly EXPANDED: "expanded";
432
- readonly CARDS: "cards";
433
- readonly HIDDEN: "hidden";
434
- }>;
435
- }, "strip", z.ZodTypeAny, {
436
- block: "cards" | "collapsed" | "expanded" | "hidden";
437
- }, {
438
- block: "cards" | "collapsed" | "expanded" | "hidden";
439
- }>;
440
- installationGuides: z.ZodObject<{
441
- block: z.ZodDefault<z.ZodNativeEnum<{
442
- readonly CARDS: "cards";
443
- readonly ACCORDION: "accordion";
444
- readonly MINIMAL: "minimal";
445
- readonly TIMELINE: "timeline";
446
- }>>;
447
- headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
448
- }, "strip", z.ZodTypeAny, {
449
- block: "cards" | "accordion" | "minimal" | "timeline";
450
- headerText: Record<string, string>;
451
- }, {
452
- headerText: Record<string, string>;
453
- 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";
454
400
  }>;
455
- connectionKeys: z.ZodObject<{
456
- headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
457
- }, "strip", z.ZodTypeAny, {
458
- headerText: Record<string, string>;
459
- }, {
460
- headerText: Record<string, string>;
401
+ installationGuidesBlockType: z.ZodNativeEnum<{
402
+ readonly CARDS: "cards";
403
+ readonly ACCORDION: "accordion";
404
+ readonly MINIMAL: "minimal";
405
+ readonly TIMELINE: "timeline";
461
406
  }>;
462
407
  }, "strip", z.ZodTypeAny, {
463
- subscriptionInfo: {
464
- block: "cards" | "collapsed" | "expanded" | "hidden";
465
- };
466
- installationGuides: {
467
- block: "cards" | "accordion" | "minimal" | "timeline";
468
- headerText: Record<string, string>;
469
- };
470
- connectionKeys: {
471
- headerText: Record<string, string>;
472
- };
408
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
409
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
473
410
  }, {
474
- subscriptionInfo: {
475
- block: "cards" | "collapsed" | "expanded" | "hidden";
476
- };
477
- installationGuides: {
478
- headerText: Record<string, string>;
479
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
480
- };
481
- connectionKeys: {
482
- headerText: Record<string, string>;
483
- };
411
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
412
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
484
413
  }>;
485
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>>;
486
417
  linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
487
418
  linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
488
419
  getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
@@ -504,6 +435,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
504
435
  unknown: Record<string, string>;
505
436
  status: Record<string, string>;
506
437
  name: Record<string, string>;
438
+ installationGuideHeader: Record<string, string>;
439
+ connectionKeysHeader: Record<string, string>;
507
440
  linkCopied: Record<string, string>;
508
441
  linkCopiedToClipboard: Record<string, string>;
509
442
  getLink: Record<string, string>;
@@ -522,6 +455,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
522
455
  unknown: Record<string, string>;
523
456
  status: Record<string, string>;
524
457
  name: Record<string, string>;
458
+ installationGuideHeader: Record<string, string>;
459
+ connectionKeysHeader: Record<string, string>;
525
460
  linkCopied: Record<string, string>;
526
461
  linkCopiedToClipboard: Record<string, string>;
527
462
  getLink: Record<string, string>;
@@ -696,22 +631,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
696
631
  svgIconKey?: string | undefined;
697
632
  }[];
698
633
  }>>;
699
- uiConfig: {
700
- subscriptionInfo: {
701
- block: "cards" | "collapsed" | "expanded" | "hidden";
702
- };
703
- installationGuides: {
704
- block: "cards" | "accordion" | "minimal" | "timeline";
705
- headerText: Record<string, string>;
706
- };
707
- connectionKeys: {
708
- headerText: Record<string, string>;
709
- };
710
- };
711
634
  baseTranslations: {
712
635
  unknown: Record<string, string>;
713
636
  status: Record<string, string>;
714
637
  name: Record<string, string>;
638
+ installationGuideHeader: Record<string, string>;
639
+ connectionKeysHeader: Record<string, string>;
715
640
  linkCopied: Record<string, string>;
716
641
  linkCopiedToClipboard: Record<string, string>;
717
642
  getLink: Record<string, string>;
@@ -734,6 +659,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
734
659
  logoUrl: string;
735
660
  supportUrl: string;
736
661
  };
662
+ uiConfig: {
663
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
664
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
665
+ };
737
666
  svgLibrary: Record<string, string>;
738
667
  }, {
739
668
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -757,22 +686,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
757
686
  svgIconKey?: string | undefined;
758
687
  }[];
759
688
  }>>;
760
- uiConfig: {
761
- subscriptionInfo: {
762
- block: "cards" | "collapsed" | "expanded" | "hidden";
763
- };
764
- installationGuides: {
765
- headerText: Record<string, string>;
766
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
767
- };
768
- connectionKeys: {
769
- headerText: Record<string, string>;
770
- };
771
- };
772
689
  baseTranslations: {
773
690
  unknown: Record<string, string>;
774
691
  status: Record<string, string>;
775
692
  name: Record<string, string>;
693
+ installationGuideHeader: Record<string, string>;
694
+ connectionKeysHeader: Record<string, string>;
776
695
  linkCopied: Record<string, string>;
777
696
  linkCopiedToClipboard: Record<string, string>;
778
697
  getLink: Record<string, string>;
@@ -795,6 +714,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
795
714
  logoUrl: string;
796
715
  supportUrl: string;
797
716
  };
717
+ uiConfig: {
718
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
719
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
720
+ };
798
721
  svgLibrary: Record<string, string>;
799
722
  }>, {
800
723
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -818,22 +741,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
818
741
  svgIconKey?: string | undefined;
819
742
  }[];
820
743
  }>>;
821
- uiConfig: {
822
- subscriptionInfo: {
823
- block: "cards" | "collapsed" | "expanded" | "hidden";
824
- };
825
- installationGuides: {
826
- block: "cards" | "accordion" | "minimal" | "timeline";
827
- headerText: Record<string, string>;
828
- };
829
- connectionKeys: {
830
- headerText: Record<string, string>;
831
- };
832
- };
833
744
  baseTranslations: {
834
745
  unknown: Record<string, string>;
835
746
  status: Record<string, string>;
836
747
  name: Record<string, string>;
748
+ installationGuideHeader: Record<string, string>;
749
+ connectionKeysHeader: Record<string, string>;
837
750
  linkCopied: Record<string, string>;
838
751
  linkCopiedToClipboard: Record<string, string>;
839
752
  getLink: Record<string, string>;
@@ -856,6 +769,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
856
769
  logoUrl: string;
857
770
  supportUrl: string;
858
771
  };
772
+ uiConfig: {
773
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
774
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
775
+ };
859
776
  svgLibrary: Record<string, string>;
860
777
  }, {
861
778
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -879,22 +796,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
879
796
  svgIconKey?: string | undefined;
880
797
  }[];
881
798
  }>>;
882
- uiConfig: {
883
- subscriptionInfo: {
884
- block: "cards" | "collapsed" | "expanded" | "hidden";
885
- };
886
- installationGuides: {
887
- headerText: Record<string, string>;
888
- block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
889
- };
890
- connectionKeys: {
891
- headerText: Record<string, string>;
892
- };
893
- };
894
799
  baseTranslations: {
895
800
  unknown: Record<string, string>;
896
801
  status: Record<string, string>;
897
802
  name: Record<string, string>;
803
+ installationGuideHeader: Record<string, string>;
804
+ connectionKeysHeader: Record<string, string>;
898
805
  linkCopied: Record<string, string>;
899
806
  linkCopiedToClipboard: Record<string, string>;
900
807
  getLink: Record<string, string>;
@@ -917,6 +824,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
917
824
  logoUrl: string;
918
825
  supportUrl: string;
919
826
  };
827
+ uiConfig: {
828
+ subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
829
+ installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
830
+ };
920
831
  svgLibrary: Record<string, string>;
921
832
  }>;
922
833
  export type TSubscriptionPageSvgLibrary = z.infer<typeof SvgLibrarySchema>;
@@ -931,8 +842,5 @@ export type TSubscriptionPageLocalizedText = z.infer<typeof LocalizedTextSchema>
931
842
  export type TSubscriptionPageUiConfig = z.infer<typeof UiConfigSchema>;
932
843
  export type TSubscriptionPageTranslateKeys = z.infer<typeof SubscriptionPageTranslateKeysSchema>;
933
844
  export type TSubscriptionPageBaseTranslationKeys = keyof TSubscriptionPageTranslateKeys;
934
- export type TSubscriptionPageLocales = TSubscriptionPageLanguageCode[];
935
- export declare const BASE_TRANSLATION_LABELS: Record<TSubscriptionPageBaseTranslationKeys, string>;
936
- export declare const BASE_TRANSLATION_KEYS: TSubscriptionPageBaseTranslationKeys[];
937
845
  export {};
938
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.2",
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,OAAO,EAOH,6BAA6B,EAChC,MAAM,iBAAiB,CAAC;AAMzB,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;AACxF,MAAM,MAAM,wBAAwB,GAAG,6BAA6B,EAAE,CAAC;AAEvE,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);