@remnawave/backend-contract 2.3.51 → 2.3.53
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/commands/subscription-page-configs/actions/reorder.command.d.ts +8 -8
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +5 -5
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +1083 -5
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.js +4 -2
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +7 -7
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +9 -8
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.js +4 -2
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/backend/constants/subscription-page-config/index.d.ts +1 -0
- package/build/backend/constants/subscription-page-config/index.d.ts.map +1 -1
- package/build/backend/constants/subscription-page-config/index.js +1 -0
- package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts +3 -0
- package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.d.ts.map +1 -0
- package/build/backend/constants/subscription-page-config/subscription-page-template-keys.contant.js +4 -0
- package/build/backend/models/subscripion-page-config.schema.d.ts +3 -3
- package/build/backend/models/subscripion-page-config.schema.js +1 -1
- package/build/frontend/commands/subscription-page-configs/get-subpage-config.command.js +4 -2
- package/build/frontend/commands/subscription-page-configs/update-subpage-config.command.js +4 -2
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/constants/subscription-page-config/index.js +1 -0
- package/build/frontend/constants/subscription-page-config/subscription-page-template-keys.contant.js +4 -0
- package/build/frontend/models/subscripion-page-config.schema.js +1 -1
- package/package.json +1 -1
package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subpage-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/get-subpage-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,0BAAyC,CAAC;IACnD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-subpage-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/get-subpage-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,0BAAyC,CAAC;IACnD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
-
const api_1 = require("../../api");
|
|
6
5
|
const models_1 = require("../../models");
|
|
6
|
+
const api_1 = require("../../api");
|
|
7
7
|
const constants_1 = require("../../constants");
|
|
8
8
|
var GetSubscriptionPageConfigCommand;
|
|
9
9
|
(function (GetSubscriptionPageConfigCommand) {
|
|
@@ -14,6 +14,8 @@ var GetSubscriptionPageConfigCommand;
|
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetSubscriptionPageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response: models_1.SubscriptionPageConfigSchema
|
|
17
|
+
response: models_1.SubscriptionPageConfigSchema.extend({
|
|
18
|
+
config: models_1.SubscriptionPageRawConfigSchema,
|
|
19
|
+
}),
|
|
18
20
|
});
|
|
19
21
|
})(GetSubscriptionPageConfigCommand || (exports.GetSubscriptionPageConfigCommand = GetSubscriptionPageConfigCommand = {}));
|
|
@@ -10,17 +10,17 @@ export declare namespace GetSubscriptionPageConfigsCommand {
|
|
|
10
10
|
uuid: z.ZodString;
|
|
11
11
|
viewPosition: z.ZodNumber;
|
|
12
12
|
name: z.ZodString;
|
|
13
|
-
|
|
13
|
+
config: z.ZodNullable<z.ZodUnknown>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
uuid: string;
|
|
16
16
|
name: string;
|
|
17
17
|
viewPosition: number;
|
|
18
|
-
|
|
18
|
+
config?: unknown;
|
|
19
19
|
}, {
|
|
20
20
|
uuid: string;
|
|
21
21
|
name: string;
|
|
22
22
|
viewPosition: number;
|
|
23
|
-
|
|
23
|
+
config?: unknown;
|
|
24
24
|
}>, "many">;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
total: number;
|
|
@@ -28,7 +28,7 @@ export declare namespace GetSubscriptionPageConfigsCommand {
|
|
|
28
28
|
uuid: string;
|
|
29
29
|
name: string;
|
|
30
30
|
viewPosition: number;
|
|
31
|
-
|
|
31
|
+
config?: unknown;
|
|
32
32
|
}[];
|
|
33
33
|
}, {
|
|
34
34
|
total: number;
|
|
@@ -36,7 +36,7 @@ export declare namespace GetSubscriptionPageConfigsCommand {
|
|
|
36
36
|
uuid: string;
|
|
37
37
|
name: string;
|
|
38
38
|
viewPosition: number;
|
|
39
|
-
|
|
39
|
+
config?: unknown;
|
|
40
40
|
}[];
|
|
41
41
|
}>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -46,7 +46,7 @@ export declare namespace GetSubscriptionPageConfigsCommand {
|
|
|
46
46
|
uuid: string;
|
|
47
47
|
name: string;
|
|
48
48
|
viewPosition: number;
|
|
49
|
-
|
|
49
|
+
config?: unknown;
|
|
50
50
|
}[];
|
|
51
51
|
};
|
|
52
52
|
}, {
|
|
@@ -56,7 +56,7 @@ export declare namespace GetSubscriptionPageConfigsCommand {
|
|
|
56
56
|
uuid: string;
|
|
57
57
|
name: string;
|
|
58
58
|
viewPosition: number;
|
|
59
|
-
|
|
59
|
+
config?: unknown;
|
|
60
60
|
}[];
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
@@ -6,15 +6,15 @@ export declare namespace UpdateSubscriptionPageConfigCommand {
|
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
uuid: z.ZodString;
|
|
8
8
|
name: z.ZodOptional<z.ZodString>;
|
|
9
|
-
|
|
9
|
+
config: z.ZodOptional<z.ZodUnknown>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
uuid: string;
|
|
12
12
|
name?: string | undefined;
|
|
13
|
-
|
|
13
|
+
config?: unknown;
|
|
14
14
|
}, {
|
|
15
15
|
uuid: string;
|
|
16
16
|
name?: string | undefined;
|
|
17
|
-
|
|
17
|
+
config?: unknown;
|
|
18
18
|
}>;
|
|
19
19
|
type Request = z.infer<typeof RequestSchema>;
|
|
20
20
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -22,31 +22,32 @@ export declare namespace UpdateSubscriptionPageConfigCommand {
|
|
|
22
22
|
uuid: z.ZodString;
|
|
23
23
|
viewPosition: z.ZodNumber;
|
|
24
24
|
name: z.ZodString;
|
|
25
|
-
|
|
25
|
+
} & {
|
|
26
|
+
config: z.ZodUnknown;
|
|
26
27
|
}, "strip", z.ZodTypeAny, {
|
|
27
28
|
uuid: string;
|
|
28
29
|
name: string;
|
|
29
30
|
viewPosition: number;
|
|
30
|
-
|
|
31
|
+
config?: unknown;
|
|
31
32
|
}, {
|
|
32
33
|
uuid: string;
|
|
33
34
|
name: string;
|
|
34
35
|
viewPosition: number;
|
|
35
|
-
|
|
36
|
+
config?: unknown;
|
|
36
37
|
}>;
|
|
37
38
|
}, "strip", z.ZodTypeAny, {
|
|
38
39
|
response: {
|
|
39
40
|
uuid: string;
|
|
40
41
|
name: string;
|
|
41
42
|
viewPosition: number;
|
|
42
|
-
|
|
43
|
+
config?: unknown;
|
|
43
44
|
};
|
|
44
45
|
}, {
|
|
45
46
|
response: {
|
|
46
47
|
uuid: string;
|
|
47
48
|
name: string;
|
|
48
49
|
viewPosition: number;
|
|
49
|
-
|
|
50
|
+
config?: unknown;
|
|
50
51
|
};
|
|
51
52
|
}>;
|
|
52
53
|
type Response = z.infer<typeof ResponseSchema>;
|
package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subpage-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/update-subpage-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,mCAA4C,CAAC;IACtD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAYxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"update-subpage-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/update-subpage-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,mCAA4C,CAAC;IACtD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAYxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -18,9 +18,11 @@ var UpdateSubscriptionPageConfigCommand;
|
|
|
18
18
|
.max(30, 'Name must be less than 30 characters')
|
|
19
19
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces')
|
|
20
20
|
.optional(),
|
|
21
|
-
|
|
21
|
+
config: zod_1.z.optional(zod_1.z.unknown()),
|
|
22
22
|
});
|
|
23
23
|
UpdateSubscriptionPageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
-
response: models_1.SubscriptionPageConfigSchema
|
|
24
|
+
response: models_1.SubscriptionPageConfigSchema.extend({
|
|
25
|
+
config: zod_1.z.unknown(),
|
|
26
|
+
}),
|
|
25
27
|
});
|
|
26
28
|
})(UpdateSubscriptionPageConfigCommand || (exports.UpdateSubscriptionPageConfigCommand = UpdateSubscriptionPageConfigCommand = {}));
|
|
@@ -1109,5 +1109,10 @@ export declare const ERRORS: {
|
|
|
1109
1109
|
readonly message: "Create subscription page config error";
|
|
1110
1110
|
readonly httpCode: 500;
|
|
1111
1111
|
};
|
|
1112
|
+
readonly INVALID_SUBSCRIPTION_PAGE_CONFIG: {
|
|
1113
|
+
readonly code: "A215";
|
|
1114
|
+
readonly message: "Invalid subscription page config";
|
|
1115
|
+
readonly httpCode: 400;
|
|
1116
|
+
};
|
|
1112
1117
|
};
|
|
1113
1118
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsF3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-page-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
|
|
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"}
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./subscription-page-config.contants"), exports);
|
|
18
|
+
__exportStar(require("./subscription-page-template-keys.contant"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -3,16 +3,16 @@ export declare const SubscriptionPageConfigSchema: z.ZodObject<{
|
|
|
3
3
|
uuid: z.ZodString;
|
|
4
4
|
viewPosition: z.ZodNumber;
|
|
5
5
|
name: z.ZodString;
|
|
6
|
-
|
|
6
|
+
config: z.ZodNullable<z.ZodUnknown>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
uuid: string;
|
|
9
9
|
name: string;
|
|
10
10
|
viewPosition: number;
|
|
11
|
-
|
|
11
|
+
config?: unknown;
|
|
12
12
|
}, {
|
|
13
13
|
uuid: string;
|
|
14
14
|
name: string;
|
|
15
15
|
viewPosition: number;
|
|
16
|
-
|
|
16
|
+
config?: unknown;
|
|
17
17
|
}>;
|
|
18
18
|
//# sourceMappingURL=subscripion-page-config.schema.d.ts.map
|
|
@@ -9,5 +9,5 @@ exports.SubscriptionPageConfigSchema = zod_1.default.object({
|
|
|
9
9
|
uuid: zod_1.default.string().uuid(),
|
|
10
10
|
viewPosition: zod_1.default.number().int(),
|
|
11
11
|
name: zod_1.default.string(),
|
|
12
|
-
|
|
12
|
+
config: zod_1.default.nullable(zod_1.default.unknown()),
|
|
13
13
|
});
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetSubscriptionPageConfigCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../api");
|
|
6
5
|
const models_1 = require("../../models");
|
|
6
|
+
const api_1 = require("../../api");
|
|
7
7
|
const constants_1 = require("../../constants");
|
|
8
8
|
var GetSubscriptionPageConfigCommand;
|
|
9
9
|
(function (GetSubscriptionPageConfigCommand) {
|
|
@@ -14,6 +14,8 @@ var GetSubscriptionPageConfigCommand;
|
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetSubscriptionPageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response: models_1.SubscriptionPageConfigSchema
|
|
17
|
+
response: models_1.SubscriptionPageConfigSchema.extend({
|
|
18
|
+
config: models_1.SubscriptionPageRawConfigSchema,
|
|
19
|
+
}),
|
|
18
20
|
});
|
|
19
21
|
})(GetSubscriptionPageConfigCommand || (exports.GetSubscriptionPageConfigCommand = GetSubscriptionPageConfigCommand = {}));
|
|
@@ -18,9 +18,11 @@ var UpdateSubscriptionPageConfigCommand;
|
|
|
18
18
|
.max(30, 'Name must be less than 30 characters')
|
|
19
19
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces')
|
|
20
20
|
.optional(),
|
|
21
|
-
|
|
21
|
+
config: zod_1.z.optional(zod_1.z.unknown()),
|
|
22
22
|
});
|
|
23
23
|
UpdateSubscriptionPageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
-
response: models_1.SubscriptionPageConfigSchema
|
|
24
|
+
response: models_1.SubscriptionPageConfigSchema.extend({
|
|
25
|
+
config: zod_1.z.unknown(),
|
|
26
|
+
}),
|
|
25
27
|
});
|
|
26
28
|
})(UpdateSubscriptionPageConfigCommand || (exports.UpdateSubscriptionPageConfigCommand = UpdateSubscriptionPageConfigCommand = {}));
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./subscription-page-config.contants"), exports);
|
|
18
|
+
__exportStar(require("./subscription-page-template-keys.contant"), exports);
|
|
@@ -9,5 +9,5 @@ exports.SubscriptionPageConfigSchema = zod_1.default.object({
|
|
|
9
9
|
uuid: zod_1.default.string().uuid(),
|
|
10
10
|
viewPosition: zod_1.default.number().int(),
|
|
11
11
|
name: zod_1.default.string(),
|
|
12
|
-
|
|
12
|
+
config: zod_1.default.nullable(zod_1.default.unknown()),
|
|
13
13
|
});
|