@remnawave/subscription-page-types 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/backend/constants/base-translations.constant.d.ts +4 -0
- package/build/backend/constants/base-translations.constant.d.ts.map +1 -0
- package/build/backend/constants/base-translations.constant.js +25 -0
- package/build/backend/constants/index.d.ts +4 -3
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +4 -3
- package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.d.ts → platform-types.constant.d.ts} +3 -1
- package/build/backend/constants/platform-types.constant.d.ts.map +1 -0
- package/build/backend/constants/template-keys.constant.d.ts +3 -0
- package/build/backend/constants/template-keys.constant.d.ts.map +1 -0
- package/build/backend/constants/ui-blocks-variants.constant.d.ts +19 -0
- package/build/backend/constants/ui-blocks-variants.constant.d.ts.map +1 -0
- package/build/backend/constants/ui-blocks-variants.constant.js +25 -0
- package/build/backend/models/index.d.ts +2 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +2 -1
- package/build/backend/models/{subscription-page-config/subscription-page-config.schema.d.ts → subscription-page-config.schema.d.ts} +65 -155
- package/build/backend/models/subscription-page-config.schema.d.ts.map +1 -0
- package/build/backend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
- package/build/backend/models/{subscription-page-config/subscription-page-config.validator.d.ts → subscription-page-config.validator.d.ts} +1 -1
- package/build/backend/models/subscription-page-config.validator.d.ts.map +1 -0
- package/build/backend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
- package/build/frontend/constants/base-translations.constant.js +25 -0
- package/build/frontend/constants/index.js +4 -3
- package/build/frontend/constants/ui-blocks-variants.constant.js +25 -0
- package/build/frontend/models/index.js +2 -1
- package/build/frontend/models/{subscription-page-config/subscription-page-config.schema.js → subscription-page-config.schema.js} +28 -56
- package/build/frontend/models/{subscription-page-config/subscription-page-config.validator.js → subscription-page-config.validator.js} +1 -2
- package/package.json +1 -1
- package/build/backend/constants/installation-guide-blocks.constant.d.ts +0 -10
- package/build/backend/constants/installation-guide-blocks.constant.d.ts.map +0 -1
- package/build/backend/constants/installation-guide-blocks.constant.js +0 -14
- package/build/backend/constants/subscription-info-blocks.constant.d.ts +0 -10
- package/build/backend/constants/subscription-info-blocks.constant.d.ts.map +0 -1
- package/build/backend/constants/subscription-info-blocks.constant.js +0 -14
- package/build/backend/constants/subscription-page-config/index.d.ts +0 -3
- package/build/backend/constants/subscription-page-config/index.d.ts.map +0 -1
- package/build/backend/constants/subscription-page-config/index.js +0 -18
- package/build/backend/constants/subscription-page-config/subscription-page-config.contants.d.ts.map +0 -1
- package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts +0 -3
- package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts.map +0 -1
- package/build/backend/models/subscription-page-config/index.d.ts +0 -2
- package/build/backend/models/subscription-page-config/index.d.ts.map +0 -1
- package/build/backend/models/subscription-page-config/index.js +0 -17
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map +0 -1
- package/build/backend/models/subscription-page-config/subscription-page-config.validator.d.ts.map +0 -1
- package/build/frontend/constants/installation-guide-blocks.constant.js +0 -14
- package/build/frontend/constants/subscription-info-blocks.constant.js +0 -14
- package/build/frontend/constants/subscription-page-config/index.js +0 -18
- package/build/frontend/models/subscription-page-config/index.js +0 -17
- /package/build/backend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
- /package/build/backend/constants/{subscription-page-config/subscription-page-template-keys.contant.js → template-keys.constant.js} +0 -0
- /package/build/frontend/constants/{subscription-page-config/subscription-page-config.contants.js → platform-types.constant.js} +0 -0
- /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 './
|
|
6
|
-
export * from './
|
|
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,
|
|
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("./
|
|
22
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./platform-types.constant"), exports);
|
|
22
|
+
__exportStar(require("./template-keys.constant"), exports);
|
|
23
|
+
__exportStar(require("./ui-blocks-variants.constant"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const SUBSCRIPTION_PAGE_CONFIG_VERSION: {
|
|
2
2
|
readonly 1: "1";
|
|
3
3
|
};
|
|
4
|
+
export type TSubscriptionPageConfigVersion = (typeof SUBSCRIPTION_PAGE_CONFIG_VERSION)[keyof typeof SUBSCRIPTION_PAGE_CONFIG_VERSION];
|
|
4
5
|
export declare const SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES: {
|
|
5
6
|
readonly IOS: "ios";
|
|
6
7
|
readonly ANDROID: "android";
|
|
@@ -10,4 +11,5 @@ export declare const SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES: {
|
|
|
10
11
|
readonly ANDROID_TV: "androidTV";
|
|
11
12
|
readonly APPLE_TV: "appleTV";
|
|
12
13
|
};
|
|
13
|
-
|
|
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 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC"}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./subscription-page-config"), exports);
|
|
17
|
+
__exportStar(require("./subscription-page-config.schema"), exports);
|
|
18
|
+
__exportStar(require("./subscription-page-config.validator"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
declare const LocalizedTextSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
3
3
|
declare const SvgLibrarySchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4
4
|
declare const ButtonSchema: z.ZodObject<{
|
|
5
5
|
link: z.ZodString;
|
|
@@ -293,64 +293,28 @@ declare const BrandingSettingsSchema: z.ZodObject<{
|
|
|
293
293
|
supportUrl: string;
|
|
294
294
|
}>;
|
|
295
295
|
declare const UiConfigSchema: z.ZodObject<{
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
readonly HIDDEN: "hidden";
|
|
302
|
-
}>;
|
|
303
|
-
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
305
|
-
}, {
|
|
306
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
296
|
+
subscriptionInfoBlockType: z.ZodNativeEnum<{
|
|
297
|
+
readonly COLLAPSED: "collapsed";
|
|
298
|
+
readonly EXPANDED: "expanded";
|
|
299
|
+
readonly CARDS: "cards";
|
|
300
|
+
readonly HIDDEN: "hidden";
|
|
307
301
|
}>;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
readonly TIMELINE: "timeline";
|
|
314
|
-
}>>;
|
|
315
|
-
headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
316
|
-
}, "strip", z.ZodTypeAny, {
|
|
317
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
318
|
-
headerText: Record<string, string>;
|
|
319
|
-
}, {
|
|
320
|
-
headerText: Record<string, string>;
|
|
321
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
322
|
-
}>;
|
|
323
|
-
connectionKeys: z.ZodObject<{
|
|
324
|
-
headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
325
|
-
}, "strip", z.ZodTypeAny, {
|
|
326
|
-
headerText: Record<string, string>;
|
|
327
|
-
}, {
|
|
328
|
-
headerText: Record<string, string>;
|
|
302
|
+
installationGuidesBlockType: z.ZodNativeEnum<{
|
|
303
|
+
readonly CARDS: "cards";
|
|
304
|
+
readonly ACCORDION: "accordion";
|
|
305
|
+
readonly MINIMAL: "minimal";
|
|
306
|
+
readonly TIMELINE: "timeline";
|
|
329
307
|
}>;
|
|
330
308
|
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
};
|
|
334
|
-
installationGuides: {
|
|
335
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
336
|
-
headerText: Record<string, string>;
|
|
337
|
-
};
|
|
338
|
-
connectionKeys: {
|
|
339
|
-
headerText: Record<string, string>;
|
|
340
|
-
};
|
|
309
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
310
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
341
311
|
}, {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
};
|
|
345
|
-
installationGuides: {
|
|
346
|
-
headerText: Record<string, string>;
|
|
347
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
348
|
-
};
|
|
349
|
-
connectionKeys: {
|
|
350
|
-
headerText: Record<string, string>;
|
|
351
|
-
};
|
|
312
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
313
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
352
314
|
}>;
|
|
353
315
|
declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
|
|
316
|
+
installationGuideHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
317
|
+
connectionKeysHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
354
318
|
linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
355
319
|
linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
356
320
|
getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
@@ -372,6 +336,8 @@ declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
|
|
|
372
336
|
unknown: Record<string, string>;
|
|
373
337
|
status: Record<string, string>;
|
|
374
338
|
name: Record<string, string>;
|
|
339
|
+
installationGuideHeader: Record<string, string>;
|
|
340
|
+
connectionKeysHeader: Record<string, string>;
|
|
375
341
|
linkCopied: Record<string, string>;
|
|
376
342
|
linkCopiedToClipboard: Record<string, string>;
|
|
377
343
|
getLink: Record<string, string>;
|
|
@@ -390,6 +356,8 @@ declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
|
|
|
390
356
|
unknown: Record<string, string>;
|
|
391
357
|
status: Record<string, string>;
|
|
392
358
|
name: Record<string, string>;
|
|
359
|
+
installationGuideHeader: Record<string, string>;
|
|
360
|
+
connectionKeysHeader: Record<string, string>;
|
|
393
361
|
linkCopied: Record<string, string>;
|
|
394
362
|
linkCopiedToClipboard: Record<string, string>;
|
|
395
363
|
getLink: Record<string, string>;
|
|
@@ -424,64 +392,28 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
424
392
|
supportUrl: string;
|
|
425
393
|
}>;
|
|
426
394
|
uiConfig: z.ZodObject<{
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
readonly HIDDEN: "hidden";
|
|
433
|
-
}>;
|
|
434
|
-
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
436
|
-
}, {
|
|
437
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
438
|
-
}>;
|
|
439
|
-
installationGuides: z.ZodObject<{
|
|
440
|
-
block: z.ZodDefault<z.ZodNativeEnum<{
|
|
441
|
-
readonly CARDS: "cards";
|
|
442
|
-
readonly ACCORDION: "accordion";
|
|
443
|
-
readonly MINIMAL: "minimal";
|
|
444
|
-
readonly TIMELINE: "timeline";
|
|
445
|
-
}>>;
|
|
446
|
-
headerText: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
447
|
-
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
449
|
-
headerText: Record<string, string>;
|
|
450
|
-
}, {
|
|
451
|
-
headerText: Record<string, string>;
|
|
452
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
395
|
+
subscriptionInfoBlockType: z.ZodNativeEnum<{
|
|
396
|
+
readonly COLLAPSED: "collapsed";
|
|
397
|
+
readonly EXPANDED: "expanded";
|
|
398
|
+
readonly CARDS: "cards";
|
|
399
|
+
readonly HIDDEN: "hidden";
|
|
453
400
|
}>;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
headerText: Record<string, string>;
|
|
401
|
+
installationGuidesBlockType: z.ZodNativeEnum<{
|
|
402
|
+
readonly CARDS: "cards";
|
|
403
|
+
readonly ACCORDION: "accordion";
|
|
404
|
+
readonly MINIMAL: "minimal";
|
|
405
|
+
readonly TIMELINE: "timeline";
|
|
460
406
|
}>;
|
|
461
407
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
};
|
|
465
|
-
installationGuides: {
|
|
466
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
467
|
-
headerText: Record<string, string>;
|
|
468
|
-
};
|
|
469
|
-
connectionKeys: {
|
|
470
|
-
headerText: Record<string, string>;
|
|
471
|
-
};
|
|
408
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
409
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
472
410
|
}, {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
};
|
|
476
|
-
installationGuides: {
|
|
477
|
-
headerText: Record<string, string>;
|
|
478
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
479
|
-
};
|
|
480
|
-
connectionKeys: {
|
|
481
|
-
headerText: Record<string, string>;
|
|
482
|
-
};
|
|
411
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
412
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
483
413
|
}>;
|
|
484
414
|
baseTranslations: z.ZodObject<{
|
|
415
|
+
installationGuideHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
416
|
+
connectionKeysHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
485
417
|
linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
486
418
|
linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
487
419
|
getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
@@ -503,6 +435,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
503
435
|
unknown: Record<string, string>;
|
|
504
436
|
status: Record<string, string>;
|
|
505
437
|
name: Record<string, string>;
|
|
438
|
+
installationGuideHeader: Record<string, string>;
|
|
439
|
+
connectionKeysHeader: Record<string, string>;
|
|
506
440
|
linkCopied: Record<string, string>;
|
|
507
441
|
linkCopiedToClipboard: Record<string, string>;
|
|
508
442
|
getLink: Record<string, string>;
|
|
@@ -521,6 +455,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
521
455
|
unknown: Record<string, string>;
|
|
522
456
|
status: Record<string, string>;
|
|
523
457
|
name: Record<string, string>;
|
|
458
|
+
installationGuideHeader: Record<string, string>;
|
|
459
|
+
connectionKeysHeader: Record<string, string>;
|
|
524
460
|
linkCopied: Record<string, string>;
|
|
525
461
|
linkCopiedToClipboard: Record<string, string>;
|
|
526
462
|
getLink: Record<string, string>;
|
|
@@ -695,22 +631,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
695
631
|
svgIconKey?: string | undefined;
|
|
696
632
|
}[];
|
|
697
633
|
}>>;
|
|
698
|
-
uiConfig: {
|
|
699
|
-
subscriptionInfo: {
|
|
700
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
701
|
-
};
|
|
702
|
-
installationGuides: {
|
|
703
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
704
|
-
headerText: Record<string, string>;
|
|
705
|
-
};
|
|
706
|
-
connectionKeys: {
|
|
707
|
-
headerText: Record<string, string>;
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
634
|
baseTranslations: {
|
|
711
635
|
unknown: Record<string, string>;
|
|
712
636
|
status: Record<string, string>;
|
|
713
637
|
name: Record<string, string>;
|
|
638
|
+
installationGuideHeader: Record<string, string>;
|
|
639
|
+
connectionKeysHeader: Record<string, string>;
|
|
714
640
|
linkCopied: Record<string, string>;
|
|
715
641
|
linkCopiedToClipboard: Record<string, string>;
|
|
716
642
|
getLink: Record<string, string>;
|
|
@@ -733,6 +659,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
733
659
|
logoUrl: string;
|
|
734
660
|
supportUrl: string;
|
|
735
661
|
};
|
|
662
|
+
uiConfig: {
|
|
663
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
664
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
665
|
+
};
|
|
736
666
|
svgLibrary: Record<string, string>;
|
|
737
667
|
}, {
|
|
738
668
|
platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
|
|
@@ -756,22 +686,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
756
686
|
svgIconKey?: string | undefined;
|
|
757
687
|
}[];
|
|
758
688
|
}>>;
|
|
759
|
-
uiConfig: {
|
|
760
|
-
subscriptionInfo: {
|
|
761
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
762
|
-
};
|
|
763
|
-
installationGuides: {
|
|
764
|
-
headerText: Record<string, string>;
|
|
765
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
766
|
-
};
|
|
767
|
-
connectionKeys: {
|
|
768
|
-
headerText: Record<string, string>;
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
689
|
baseTranslations: {
|
|
772
690
|
unknown: Record<string, string>;
|
|
773
691
|
status: Record<string, string>;
|
|
774
692
|
name: Record<string, string>;
|
|
693
|
+
installationGuideHeader: Record<string, string>;
|
|
694
|
+
connectionKeysHeader: Record<string, string>;
|
|
775
695
|
linkCopied: Record<string, string>;
|
|
776
696
|
linkCopiedToClipboard: Record<string, string>;
|
|
777
697
|
getLink: Record<string, string>;
|
|
@@ -794,6 +714,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
794
714
|
logoUrl: string;
|
|
795
715
|
supportUrl: string;
|
|
796
716
|
};
|
|
717
|
+
uiConfig: {
|
|
718
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
719
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
720
|
+
};
|
|
797
721
|
svgLibrary: Record<string, string>;
|
|
798
722
|
}>, {
|
|
799
723
|
platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
|
|
@@ -817,22 +741,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
817
741
|
svgIconKey?: string | undefined;
|
|
818
742
|
}[];
|
|
819
743
|
}>>;
|
|
820
|
-
uiConfig: {
|
|
821
|
-
subscriptionInfo: {
|
|
822
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
823
|
-
};
|
|
824
|
-
installationGuides: {
|
|
825
|
-
block: "cards" | "accordion" | "minimal" | "timeline";
|
|
826
|
-
headerText: Record<string, string>;
|
|
827
|
-
};
|
|
828
|
-
connectionKeys: {
|
|
829
|
-
headerText: Record<string, string>;
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
744
|
baseTranslations: {
|
|
833
745
|
unknown: Record<string, string>;
|
|
834
746
|
status: Record<string, string>;
|
|
835
747
|
name: Record<string, string>;
|
|
748
|
+
installationGuideHeader: Record<string, string>;
|
|
749
|
+
connectionKeysHeader: Record<string, string>;
|
|
836
750
|
linkCopied: Record<string, string>;
|
|
837
751
|
linkCopiedToClipboard: Record<string, string>;
|
|
838
752
|
getLink: Record<string, string>;
|
|
@@ -855,6 +769,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
855
769
|
logoUrl: string;
|
|
856
770
|
supportUrl: string;
|
|
857
771
|
};
|
|
772
|
+
uiConfig: {
|
|
773
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
774
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
775
|
+
};
|
|
858
776
|
svgLibrary: Record<string, string>;
|
|
859
777
|
}, {
|
|
860
778
|
platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
|
|
@@ -878,22 +796,12 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
878
796
|
svgIconKey?: string | undefined;
|
|
879
797
|
}[];
|
|
880
798
|
}>>;
|
|
881
|
-
uiConfig: {
|
|
882
|
-
subscriptionInfo: {
|
|
883
|
-
block: "cards" | "collapsed" | "expanded" | "hidden";
|
|
884
|
-
};
|
|
885
|
-
installationGuides: {
|
|
886
|
-
headerText: Record<string, string>;
|
|
887
|
-
block?: "cards" | "accordion" | "minimal" | "timeline" | undefined;
|
|
888
|
-
};
|
|
889
|
-
connectionKeys: {
|
|
890
|
-
headerText: Record<string, string>;
|
|
891
|
-
};
|
|
892
|
-
};
|
|
893
799
|
baseTranslations: {
|
|
894
800
|
unknown: Record<string, string>;
|
|
895
801
|
status: Record<string, string>;
|
|
896
802
|
name: Record<string, string>;
|
|
803
|
+
installationGuideHeader: Record<string, string>;
|
|
804
|
+
connectionKeysHeader: Record<string, string>;
|
|
897
805
|
linkCopied: Record<string, string>;
|
|
898
806
|
linkCopiedToClipboard: Record<string, string>;
|
|
899
807
|
getLink: Record<string, string>;
|
|
@@ -916,6 +824,10 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
916
824
|
logoUrl: string;
|
|
917
825
|
supportUrl: string;
|
|
918
826
|
};
|
|
827
|
+
uiConfig: {
|
|
828
|
+
subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
|
|
829
|
+
installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
|
|
830
|
+
};
|
|
919
831
|
svgLibrary: Record<string, string>;
|
|
920
832
|
}>;
|
|
921
833
|
export type TSubscriptionPageSvgLibrary = z.infer<typeof SvgLibrarySchema>;
|
|
@@ -930,7 +842,5 @@ export type TSubscriptionPageLocalizedText = z.infer<typeof LocalizedTextSchema>
|
|
|
930
842
|
export type TSubscriptionPageUiConfig = z.infer<typeof UiConfigSchema>;
|
|
931
843
|
export type TSubscriptionPageTranslateKeys = z.infer<typeof SubscriptionPageTranslateKeysSchema>;
|
|
932
844
|
export type TSubscriptionPageBaseTranslationKeys = keyof TSubscriptionPageTranslateKeys;
|
|
933
|
-
export declare const BASE_TRANSLATION_LABELS: Record<TSubscriptionPageBaseTranslationKeys, string>;
|
|
934
|
-
export declare const BASE_TRANSLATION_KEYS: TSubscriptionPageBaseTranslationKeys[];
|
|
935
845
|
export {};
|
|
936
846
|
//# sourceMappingURL=subscription-page-config.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-page-config.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-page-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,QAAA,MAAM,mBAAmB,qGAInB,CAAC;AAEP,QAAA,MAAM,gBAAgB,uCAGrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAKhB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;EAGlB,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAatC,CAAC;AAEP,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACzF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7E,MAAM,MAAM,4BAA4B,GAAG,MAAM,0BAA0B,CAAC,WAAW,CAAC,CAAC;AACzF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACjG,MAAM,MAAM,oCAAoC,GAAG,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SubscriptionPageRawConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
6
|
const subscription_page_config_validator_1 = require("./subscription-page-config.validator");
|
|
7
|
-
|
|
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:
|
|
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:
|
|
42
|
-
description:
|
|
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:
|
|
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
|
-
|
|
63
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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 '
|
|
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("
|
|
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("./
|
|
22
|
-
__exportStar(require("./
|
|
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.
|
|
3
|
+
exports.SubscriptionPageRawConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
6
|
const subscription_page_config_validator_1 = require("./subscription-page-config.validator");
|
|
7
|
-
|
|
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:
|
|
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:
|
|
42
|
-
description:
|
|
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:
|
|
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
|
-
|
|
63
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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("
|
|
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,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 +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);
|
package/build/backend/constants/subscription-page-config/subscription-page-config.contants.d.ts.map
DELETED
|
@@ -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 +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 +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);
|
package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-page-config.schema.d.ts","sourceRoot":"","sources":["../../../../models/subscription-page-config/subscription-page-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,mBAAmB,qGAI1B,CAAC;AAEP,QAAA,MAAM,gBAAgB,uCAGrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAKhB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAalB,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAatC,CAAC;AAEP,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACzF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7E,MAAM,MAAM,4BAA4B,GAAG,MAAM,0BAA0B,CAAC,WAAW,CAAC,CAAC;AACzF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACjG,MAAM,MAAM,oCAAoC,GAAG,MAAM,8BAA8B,CAAC;AAExF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,oCAAoC,EAAE,MAAM,CAkBxF,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,oCAAoC,EAE7B,CAAC"}
|
package/build/backend/models/subscription-page-config/subscription-page-config.validator.d.ts.map
DELETED
|
@@ -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);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|