rategame-shared 1.1.421 → 1.1.422
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { advertisementSchema,
|
|
2
|
+
import { advertisementSchema, createAdvertisementInputSchema, updateAdvertisementInputSchema } from "../schemas/advertisement";
|
|
3
3
|
export type Advertisement = z.infer<typeof advertisementSchema>;
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type UpdateAdvertisementScheduleInput = z.infer<typeof updateAdvertisementScheduleInputSchema>;
|
|
4
|
+
export type CreateAdvertisementInput = z.infer<typeof createAdvertisementInputSchema>;
|
|
5
|
+
export type UpdateAdvertisementInput = z.infer<typeof updateAdvertisementInputSchema>;
|
|
@@ -5,10 +5,18 @@ export declare const advertisementSchema: import("zod").ZodObject<{
|
|
|
5
5
|
imageUrl: import("zod").ZodString;
|
|
6
6
|
ctaUrl: import("zod").ZodString;
|
|
7
7
|
ctaLabel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
startsAt: import("zod").ZodNumber;
|
|
9
|
+
endsAt: import("zod").ZodNumber;
|
|
10
|
+
createdAt: import("zod").ZodNumber;
|
|
11
|
+
updatedAt: import("zod").ZodNumber;
|
|
8
12
|
}, "strip", import("zod").ZodTypeAny, {
|
|
9
13
|
id: string;
|
|
10
14
|
title: string;
|
|
11
15
|
description: string;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
updatedAt: number;
|
|
18
|
+
startsAt: number;
|
|
19
|
+
endsAt: number;
|
|
12
20
|
imageUrl: string;
|
|
13
21
|
ctaUrl: string;
|
|
14
22
|
ctaLabel?: string | undefined;
|
|
@@ -16,22 +24,23 @@ export declare const advertisementSchema: import("zod").ZodObject<{
|
|
|
16
24
|
id: string;
|
|
17
25
|
title: string;
|
|
18
26
|
description: string;
|
|
27
|
+
createdAt: number;
|
|
28
|
+
updatedAt: number;
|
|
29
|
+
startsAt: number;
|
|
30
|
+
endsAt: number;
|
|
19
31
|
imageUrl: string;
|
|
20
32
|
ctaUrl: string;
|
|
21
33
|
ctaLabel?: string | undefined;
|
|
22
34
|
}>;
|
|
23
|
-
export declare const
|
|
24
|
-
id: import("zod").ZodString;
|
|
35
|
+
export declare const createAdvertisementInputSchema: import("zod").ZodObject<{
|
|
25
36
|
title: import("zod").ZodString;
|
|
26
37
|
description: import("zod").ZodString;
|
|
27
38
|
imageUrl: import("zod").ZodString;
|
|
28
39
|
ctaUrl: import("zod").ZodString;
|
|
29
40
|
ctaLabel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
-
}, {
|
|
31
41
|
startsAt: import("zod").ZodNumber;
|
|
32
42
|
endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
33
|
-
}
|
|
34
|
-
id: string;
|
|
43
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
35
44
|
title: string;
|
|
36
45
|
description: string;
|
|
37
46
|
startsAt: number;
|
|
@@ -40,7 +49,6 @@ export declare const createAdvertisementScheduleInputSchema: import("zod").ZodOb
|
|
|
40
49
|
endsAt?: number | undefined;
|
|
41
50
|
ctaLabel?: string | undefined;
|
|
42
51
|
}, {
|
|
43
|
-
id: string;
|
|
44
52
|
title: string;
|
|
45
53
|
description: string;
|
|
46
54
|
startsAt: number;
|
|
@@ -49,18 +57,15 @@ export declare const createAdvertisementScheduleInputSchema: import("zod").ZodOb
|
|
|
49
57
|
endsAt?: number | undefined;
|
|
50
58
|
ctaLabel?: string | undefined;
|
|
51
59
|
}>;
|
|
52
|
-
export declare const
|
|
53
|
-
id: import("zod").ZodString;
|
|
60
|
+
export declare const updateAdvertisementInputSchema: import("zod").ZodObject<{
|
|
54
61
|
title: import("zod").ZodString;
|
|
55
62
|
description: import("zod").ZodString;
|
|
56
63
|
imageUrl: import("zod").ZodString;
|
|
57
64
|
ctaUrl: import("zod").ZodString;
|
|
58
65
|
ctaLabel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
-
}, {
|
|
60
66
|
startsAt: import("zod").ZodNumber;
|
|
61
67
|
endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
62
|
-
}
|
|
63
|
-
id: string;
|
|
68
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
64
69
|
title: string;
|
|
65
70
|
description: string;
|
|
66
71
|
startsAt: number;
|
|
@@ -69,7 +74,6 @@ export declare const updateAdvertisementScheduleInputSchema: import("zod").ZodOb
|
|
|
69
74
|
endsAt?: number | undefined;
|
|
70
75
|
ctaLabel?: string | undefined;
|
|
71
76
|
}, {
|
|
72
|
-
id: string;
|
|
73
77
|
title: string;
|
|
74
78
|
description: string;
|
|
75
79
|
startsAt: number;
|
|
@@ -78,41 +82,3 @@ export declare const updateAdvertisementScheduleInputSchema: import("zod").ZodOb
|
|
|
78
82
|
endsAt?: number | undefined;
|
|
79
83
|
ctaLabel?: string | undefined;
|
|
80
84
|
}>;
|
|
81
|
-
export declare const advertisementScheduleSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
82
|
-
id: import("zod").ZodString;
|
|
83
|
-
title: import("zod").ZodString;
|
|
84
|
-
description: import("zod").ZodString;
|
|
85
|
-
imageUrl: import("zod").ZodString;
|
|
86
|
-
ctaUrl: import("zod").ZodString;
|
|
87
|
-
ctaLabel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
-
}, {
|
|
89
|
-
scheduleId: import("zod").ZodString;
|
|
90
|
-
startsAt: import("zod").ZodNumber;
|
|
91
|
-
endsAt: import("zod").ZodNumber;
|
|
92
|
-
createdAt: import("zod").ZodNumber;
|
|
93
|
-
updatedAt: import("zod").ZodNumber;
|
|
94
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
|
95
|
-
id: string;
|
|
96
|
-
title: string;
|
|
97
|
-
description: string;
|
|
98
|
-
createdAt: number;
|
|
99
|
-
updatedAt: number;
|
|
100
|
-
startsAt: number;
|
|
101
|
-
endsAt: number;
|
|
102
|
-
scheduleId: string;
|
|
103
|
-
imageUrl: string;
|
|
104
|
-
ctaUrl: string;
|
|
105
|
-
ctaLabel?: string | undefined;
|
|
106
|
-
}, {
|
|
107
|
-
id: string;
|
|
108
|
-
title: string;
|
|
109
|
-
description: string;
|
|
110
|
-
createdAt: number;
|
|
111
|
-
updatedAt: number;
|
|
112
|
-
startsAt: number;
|
|
113
|
-
endsAt: number;
|
|
114
|
-
scheduleId: string;
|
|
115
|
-
imageUrl: string;
|
|
116
|
-
ctaUrl: string;
|
|
117
|
-
ctaLabel?: string | undefined;
|
|
118
|
-
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.updateAdvertisementInputSchema = exports.createAdvertisementInputSchema = exports.advertisementSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.advertisementSchema = (0, zod_1.object)({
|
|
6
6
|
id: (0, zod_1.string)(),
|
|
@@ -9,16 +9,18 @@ exports.advertisementSchema = (0, zod_1.object)({
|
|
|
9
9
|
imageUrl: (0, zod_1.string)(),
|
|
10
10
|
ctaUrl: (0, zod_1.string)(),
|
|
11
11
|
ctaLabel: (0, zod_1.string)().optional(),
|
|
12
|
-
});
|
|
13
|
-
exports.createAdvertisementScheduleInputSchema = exports.advertisementSchema.extend({
|
|
14
|
-
startsAt: (0, zod_1.number)(),
|
|
15
|
-
endsAt: (0, zod_1.number)().optional(),
|
|
16
|
-
});
|
|
17
|
-
exports.updateAdvertisementScheduleInputSchema = exports.createAdvertisementScheduleInputSchema;
|
|
18
|
-
exports.advertisementScheduleSchema = exports.advertisementSchema.extend({
|
|
19
|
-
scheduleId: (0, zod_1.string)(),
|
|
20
12
|
startsAt: (0, zod_1.number)(),
|
|
21
13
|
endsAt: (0, zod_1.number)(),
|
|
22
14
|
createdAt: (0, zod_1.number)(),
|
|
23
15
|
updatedAt: (0, zod_1.number)(),
|
|
24
16
|
});
|
|
17
|
+
exports.createAdvertisementInputSchema = (0, zod_1.object)({
|
|
18
|
+
title: (0, zod_1.string)(),
|
|
19
|
+
description: (0, zod_1.string)(),
|
|
20
|
+
imageUrl: (0, zod_1.string)(),
|
|
21
|
+
ctaUrl: (0, zod_1.string)(),
|
|
22
|
+
ctaLabel: (0, zod_1.string)().optional(),
|
|
23
|
+
startsAt: (0, zod_1.number)(),
|
|
24
|
+
endsAt: (0, zod_1.number)().optional(),
|
|
25
|
+
});
|
|
26
|
+
exports.updateAdvertisementInputSchema = exports.createAdvertisementInputSchema;
|