@remnawave/subscription-page-types 0.2.2 → 0.2.4

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 (58) 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 +5 -6
  8. package/build/backend/constants/language-codes.constant.d.ts.map +1 -1
  9. package/build/backend/constants/language-codes.constant.js +1 -1
  10. package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.d.ts → platform-types.constant.d.ts} +3 -1
  11. package/build/backend/constants/platform-types.constant.d.ts.map +1 -0
  12. package/build/backend/constants/template-keys.constant.d.ts +3 -0
  13. package/build/backend/constants/template-keys.constant.d.ts.map +1 -0
  14. package/build/backend/constants/ui-blocks-variants.constant.d.ts +19 -0
  15. package/build/backend/constants/ui-blocks-variants.constant.d.ts.map +1 -0
  16. package/build/backend/constants/ui-blocks-variants.constant.js +25 -0
  17. package/build/backend/models/index.d.ts +2 -1
  18. package/build/backend/models/index.d.ts.map +1 -1
  19. package/build/backend/models/index.js +2 -1
  20. package/build/backend/models/{subscription-page-config/subscription-page-config.schema.d.ts → subscription-page-config.schema.d.ts} +70 -162
  21. package/build/backend/models/subscription-page-config.schema.d.ts.map +1 -0
  22. package/build/backend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
  23. package/build/backend/models/{subscription-page-config/subscription-page-config.validator.d.ts → subscription-page-config.validator.d.ts} +1 -1
  24. package/build/backend/models/subscription-page-config.validator.d.ts.map +1 -0
  25. package/build/backend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
  26. package/build/frontend/constants/base-translations.constant.js +25 -0
  27. package/build/frontend/constants/index.js +4 -3
  28. package/build/frontend/constants/language-codes.constant.js +1 -1
  29. package/build/frontend/constants/ui-blocks-variants.constant.js +25 -0
  30. package/build/frontend/models/index.js +2 -1
  31. package/build/frontend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
  32. package/build/frontend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
  33. package/package.json +1 -1
  34. package/build/backend/constants/installation-guide-blocks.constant.d.ts +0 -10
  35. package/build/backend/constants/installation-guide-blocks.constant.d.ts.map +0 -1
  36. package/build/backend/constants/installation-guide-blocks.constant.js +0 -14
  37. package/build/backend/constants/subscription-info-blocks.constant.d.ts +0 -10
  38. package/build/backend/constants/subscription-info-blocks.constant.d.ts.map +0 -1
  39. package/build/backend/constants/subscription-info-blocks.constant.js +0 -14
  40. package/build/backend/constants/subscription-page-config/index.d.ts +0 -3
  41. package/build/backend/constants/subscription-page-config/index.d.ts.map +0 -1
  42. package/build/backend/constants/subscription-page-config/index.js +0 -18
  43. package/build/backend/constants/subscription-page-config/subscription-page-config.contants.d.ts.map +0 -1
  44. package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts +0 -3
  45. package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts.map +0 -1
  46. package/build/backend/models/subscription-page-config/index.d.ts +0 -2
  47. package/build/backend/models/subscription-page-config/index.d.ts.map +0 -1
  48. package/build/backend/models/subscription-page-config/index.js +0 -17
  49. package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map +0 -1
  50. package/build/backend/models/subscription-page-config/subscription-page-config.validator.d.ts.map +0 -1
  51. package/build/frontend/constants/installation-guide-blocks.constant.js +0 -14
  52. package/build/frontend/constants/subscription-info-blocks.constant.js +0 -14
  53. package/build/frontend/constants/subscription-page-config/index.js +0 -18
  54. package/build/frontend/models/subscription-page-config/index.js +0 -17
  55. /package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
  56. /package/build/backend/constants/{subscription-page-config/subscription-page-template-keys.contant.js → template-keys.constant.js} +0 -0
  57. /package/build/frontend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
  58. /package/build/frontend/constants/{subscription-page-config/subscription-page-template-keys.contant.js → template-keys.constant.js} +0 -0
@@ -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);
@@ -6,9 +6,9 @@ const LANGUAGES_LIST = {
6
6
  ru: { name: 'Russian', nativeName: 'Русский', emoji: '🇷🇺' },
7
7
  zh: { name: 'Chinese', nativeName: '中文', emoji: '🇨🇳' },
8
8
  fr: { name: 'French', nativeName: 'Français', emoji: '🇫🇷' },
9
+ fa: { name: 'Persian', nativeName: 'فارسی', emoji: '🇮🇷' },
9
10
  uz: { name: 'Uzbek', nativeName: 'Ўзбек', emoji: '🇺🇿' },
10
11
  de: { name: 'German', nativeName: 'Deutsch', emoji: '🇩🇪' },
11
- fa: { name: 'Persian', nativeName: 'فارسی', emoji: '🇮🇷' },
12
12
  hi: { name: 'Hindi', nativeName: 'हिन्दी', emoji: '🇮🇳' },
13
13
  tr: { name: 'Turkish', nativeName: 'Türkçe', emoji: '🇹🇷' },
14
14
  az: { name: 'Azerbaijani', nativeName: 'azərbaycan dili', emoji: '🇦🇿' },
@@ -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.4",
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":"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"}
@@ -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);