@purpleschool/multisite 0.0.32 → 0.0.33
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/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +5 -5
- package/build/commands/user-to-product/update-user-to-product.command.d.ts +5 -5
- package/build/models/user-to-product.schema.d.ts +3 -3
- package/build/models/user-to-product.schema.js +1 -1
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +5 -5
- package/build/queries/subscription/get-subscriptions-summary.command.js +1 -1
- package/build/queries/user/get-my-products.command.d.ts +5 -5
- package/build/queries/user/get-my-products.command.js +1 -1
- package/models/user-to-product.schema.ts +1 -1
- package/package.json +1 -1
- package/queries/subscription/get-subscriptions-summary.command.ts +1 -1
- package/queries/user/get-my-products.command.ts +1 -1
|
@@ -18,7 +18,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
18
18
|
initTokenBalance: z.ZodNumber;
|
|
19
19
|
tokenBalance: z.ZodNumber;
|
|
20
20
|
status: z.ZodNativeEnum<typeof import("../..").USER_TO_PRODUCT_STATUS>;
|
|
21
|
-
expiresAt: z.ZodNullable<z.ZodDate
|
|
21
|
+
expiresAt: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
22
22
|
createdAt: z.ZodDate;
|
|
23
23
|
updatedAt: z.ZodDate;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -30,7 +30,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
30
30
|
initTokenBalance: number;
|
|
31
31
|
tokenBalance: number;
|
|
32
32
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
33
|
-
expiresAt: Date | null;
|
|
33
|
+
expiresAt: string | Date | null;
|
|
34
34
|
createdAt: Date;
|
|
35
35
|
updatedAt: Date;
|
|
36
36
|
}, {
|
|
@@ -42,7 +42,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
42
42
|
initTokenBalance: number;
|
|
43
43
|
tokenBalance: number;
|
|
44
44
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
45
|
-
expiresAt: Date | null;
|
|
45
|
+
expiresAt: string | Date | null;
|
|
46
46
|
createdAt: Date;
|
|
47
47
|
updatedAt: Date;
|
|
48
48
|
}>;
|
|
@@ -56,7 +56,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
56
56
|
initTokenBalance: number;
|
|
57
57
|
tokenBalance: number;
|
|
58
58
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
59
|
-
expiresAt: Date | null;
|
|
59
|
+
expiresAt: string | Date | null;
|
|
60
60
|
createdAt: Date;
|
|
61
61
|
updatedAt: Date;
|
|
62
62
|
};
|
|
@@ -70,7 +70,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
70
70
|
initTokenBalance: number;
|
|
71
71
|
tokenBalance: number;
|
|
72
72
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
73
|
-
expiresAt: Date | null;
|
|
73
|
+
expiresAt: string | Date | null;
|
|
74
74
|
createdAt: Date;
|
|
75
75
|
updatedAt: Date;
|
|
76
76
|
};
|
|
@@ -36,7 +36,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
36
36
|
initTokenBalance: z.ZodNumber;
|
|
37
37
|
tokenBalance: z.ZodNumber;
|
|
38
38
|
status: z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>;
|
|
39
|
-
expiresAt: z.ZodNullable<z.ZodDate
|
|
39
|
+
expiresAt: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
40
40
|
createdAt: z.ZodDate;
|
|
41
41
|
updatedAt: z.ZodDate;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -48,7 +48,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
48
48
|
initTokenBalance: number;
|
|
49
49
|
tokenBalance: number;
|
|
50
50
|
status: USER_TO_PRODUCT_STATUS;
|
|
51
|
-
expiresAt: Date | null;
|
|
51
|
+
expiresAt: string | Date | null;
|
|
52
52
|
createdAt: Date;
|
|
53
53
|
updatedAt: Date;
|
|
54
54
|
}, {
|
|
@@ -60,7 +60,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
60
60
|
initTokenBalance: number;
|
|
61
61
|
tokenBalance: number;
|
|
62
62
|
status: USER_TO_PRODUCT_STATUS;
|
|
63
|
-
expiresAt: Date | null;
|
|
63
|
+
expiresAt: string | Date | null;
|
|
64
64
|
createdAt: Date;
|
|
65
65
|
updatedAt: Date;
|
|
66
66
|
}>;
|
|
@@ -74,7 +74,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
74
74
|
initTokenBalance: number;
|
|
75
75
|
tokenBalance: number;
|
|
76
76
|
status: USER_TO_PRODUCT_STATUS;
|
|
77
|
-
expiresAt: Date | null;
|
|
77
|
+
expiresAt: string | Date | null;
|
|
78
78
|
createdAt: Date;
|
|
79
79
|
updatedAt: Date;
|
|
80
80
|
};
|
|
@@ -88,7 +88,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
88
88
|
initTokenBalance: number;
|
|
89
89
|
tokenBalance: number;
|
|
90
90
|
status: USER_TO_PRODUCT_STATUS;
|
|
91
|
-
expiresAt: Date | null;
|
|
91
|
+
expiresAt: string | Date | null;
|
|
92
92
|
createdAt: Date;
|
|
93
93
|
updatedAt: Date;
|
|
94
94
|
};
|
|
@@ -9,7 +9,7 @@ export declare const UserToProductSchema: z.ZodObject<{
|
|
|
9
9
|
initTokenBalance: z.ZodNumber;
|
|
10
10
|
tokenBalance: z.ZodNumber;
|
|
11
11
|
status: z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>;
|
|
12
|
-
expiresAt: z.ZodNullable<z.ZodDate
|
|
12
|
+
expiresAt: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
13
13
|
createdAt: z.ZodDate;
|
|
14
14
|
updatedAt: z.ZodDate;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -21,7 +21,7 @@ export declare const UserToProductSchema: z.ZodObject<{
|
|
|
21
21
|
initTokenBalance: number;
|
|
22
22
|
tokenBalance: number;
|
|
23
23
|
status: USER_TO_PRODUCT_STATUS;
|
|
24
|
-
expiresAt: Date | null;
|
|
24
|
+
expiresAt: string | Date | null;
|
|
25
25
|
createdAt: Date;
|
|
26
26
|
updatedAt: Date;
|
|
27
27
|
}, {
|
|
@@ -33,7 +33,7 @@ export declare const UserToProductSchema: z.ZodObject<{
|
|
|
33
33
|
initTokenBalance: number;
|
|
34
34
|
tokenBalance: number;
|
|
35
35
|
status: USER_TO_PRODUCT_STATUS;
|
|
36
|
-
expiresAt: Date | null;
|
|
36
|
+
expiresAt: string | Date | null;
|
|
37
37
|
createdAt: Date;
|
|
38
38
|
updatedAt: Date;
|
|
39
39
|
}>;
|
|
@@ -12,7 +12,7 @@ exports.UserToProductSchema = zod_1.z.object({
|
|
|
12
12
|
initTokenBalance: zod_1.z.number().int().min(0),
|
|
13
13
|
tokenBalance: zod_1.z.number().int().min(0),
|
|
14
14
|
status: zod_1.z.nativeEnum(constants_1.USER_TO_PRODUCT_STATUS),
|
|
15
|
-
expiresAt: zod_1.z.date().nullable(),
|
|
15
|
+
expiresAt: zod_1.z.date().or(zod_1.z.string().datetime()).nullable(),
|
|
16
16
|
createdAt: zod_1.z.date(),
|
|
17
17
|
updatedAt: zod_1.z.date(),
|
|
18
18
|
});
|
|
@@ -116,7 +116,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
116
116
|
initTokenBalance: z.ZodNumber;
|
|
117
117
|
tokenBalance: z.ZodNumber;
|
|
118
118
|
status: z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>;
|
|
119
|
-
expiresAt: z.ZodNullable<z.ZodDate
|
|
119
|
+
expiresAt: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
120
120
|
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
121
121
|
product: z.ZodObject<{
|
|
122
122
|
uuid: z.ZodString;
|
|
@@ -163,7 +163,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
163
163
|
initTokenBalance: number;
|
|
164
164
|
tokenBalance: number;
|
|
165
165
|
status: USER_TO_PRODUCT_STATUS;
|
|
166
|
-
expiresAt: Date | null;
|
|
166
|
+
expiresAt: string | Date | null;
|
|
167
167
|
createdAt: string | Date;
|
|
168
168
|
product: {
|
|
169
169
|
uuid: string;
|
|
@@ -182,7 +182,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
182
182
|
initTokenBalance: number;
|
|
183
183
|
tokenBalance: number;
|
|
184
184
|
status: USER_TO_PRODUCT_STATUS;
|
|
185
|
-
expiresAt: Date | null;
|
|
185
|
+
expiresAt: string | Date | null;
|
|
186
186
|
createdAt: string | Date;
|
|
187
187
|
product: {
|
|
188
188
|
uuid: string;
|
|
@@ -238,7 +238,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
238
238
|
initTokenBalance: number;
|
|
239
239
|
tokenBalance: number;
|
|
240
240
|
status: USER_TO_PRODUCT_STATUS;
|
|
241
|
-
expiresAt: Date | null;
|
|
241
|
+
expiresAt: string | Date | null;
|
|
242
242
|
createdAt: string | Date;
|
|
243
243
|
product: {
|
|
244
244
|
uuid: string;
|
|
@@ -288,7 +288,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
288
288
|
initTokenBalance: number;
|
|
289
289
|
tokenBalance: number;
|
|
290
290
|
status: USER_TO_PRODUCT_STATUS;
|
|
291
|
-
expiresAt: Date | null;
|
|
291
|
+
expiresAt: string | Date | null;
|
|
292
292
|
createdAt: string | Date;
|
|
293
293
|
product: {
|
|
294
294
|
uuid: string;
|
|
@@ -23,7 +23,7 @@ const UserToProductSummarySchema = zod_1.z.object({
|
|
|
23
23
|
initTokenBalance: zod_1.z.number().int(),
|
|
24
24
|
tokenBalance: zod_1.z.number().int(),
|
|
25
25
|
status: zod_1.z.nativeEnum(constants_1.USER_TO_PRODUCT_STATUS),
|
|
26
|
-
expiresAt: zod_1.z.date().nullable(),
|
|
26
|
+
expiresAt: zod_1.z.date().or(zod_1.z.string().datetime()).nullable(),
|
|
27
27
|
createdAt: zod_1.z.date().or(zod_1.z.string().datetime()),
|
|
28
28
|
product: models_1.ProductSchema,
|
|
29
29
|
});
|
|
@@ -7,7 +7,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
7
7
|
initTokenBalance: z.ZodNumber;
|
|
8
8
|
tokenBalance: z.ZodNumber;
|
|
9
9
|
status: z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>;
|
|
10
|
-
expiresAt: z.ZodNullable<z.ZodDate
|
|
10
|
+
expiresAt: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
11
11
|
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
12
12
|
product: z.ZodObject<{
|
|
13
13
|
uuid: z.ZodString;
|
|
@@ -54,7 +54,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
54
54
|
initTokenBalance: number;
|
|
55
55
|
tokenBalance: number;
|
|
56
56
|
status: USER_TO_PRODUCT_STATUS;
|
|
57
|
-
expiresAt: Date | null;
|
|
57
|
+
expiresAt: string | Date | null;
|
|
58
58
|
createdAt: string | Date;
|
|
59
59
|
product: {
|
|
60
60
|
uuid: string;
|
|
@@ -73,7 +73,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
73
73
|
initTokenBalance: number;
|
|
74
74
|
tokenBalance: number;
|
|
75
75
|
status: USER_TO_PRODUCT_STATUS;
|
|
76
|
-
expiresAt: Date | null;
|
|
76
|
+
expiresAt: string | Date | null;
|
|
77
77
|
createdAt: string | Date;
|
|
78
78
|
product: {
|
|
79
79
|
uuid: string;
|
|
@@ -94,7 +94,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
94
94
|
initTokenBalance: number;
|
|
95
95
|
tokenBalance: number;
|
|
96
96
|
status: USER_TO_PRODUCT_STATUS;
|
|
97
|
-
expiresAt: Date | null;
|
|
97
|
+
expiresAt: string | Date | null;
|
|
98
98
|
createdAt: string | Date;
|
|
99
99
|
product: {
|
|
100
100
|
uuid: string;
|
|
@@ -115,7 +115,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
115
115
|
initTokenBalance: number;
|
|
116
116
|
tokenBalance: number;
|
|
117
117
|
status: USER_TO_PRODUCT_STATUS;
|
|
118
|
-
expiresAt: Date | null;
|
|
118
|
+
expiresAt: string | Date | null;
|
|
119
119
|
createdAt: string | Date;
|
|
120
120
|
product: {
|
|
121
121
|
uuid: string;
|
|
@@ -12,7 +12,7 @@ var GetMyProductsCommand;
|
|
|
12
12
|
initTokenBalance: zod_1.z.number().int(),
|
|
13
13
|
tokenBalance: zod_1.z.number().int(),
|
|
14
14
|
status: zod_1.z.nativeEnum(constants_1.USER_TO_PRODUCT_STATUS),
|
|
15
|
-
expiresAt: zod_1.z.date().nullable(),
|
|
15
|
+
expiresAt: zod_1.z.date().or(zod_1.z.string().datetime()).nullable(),
|
|
16
16
|
createdAt: zod_1.z.date().or(zod_1.z.string().datetime()),
|
|
17
17
|
product: models_1.ProductSchema,
|
|
18
18
|
})),
|
|
@@ -10,7 +10,7 @@ export const UserToProductSchema = z.object({
|
|
|
10
10
|
initTokenBalance: z.number().int().min(0),
|
|
11
11
|
tokenBalance: z.number().int().min(0),
|
|
12
12
|
status: z.nativeEnum(USER_TO_PRODUCT_STATUS),
|
|
13
|
-
expiresAt: z.date().nullable(),
|
|
13
|
+
expiresAt: z.date().or(z.string().datetime()).nullable(),
|
|
14
14
|
createdAt: z.date(),
|
|
15
15
|
updatedAt: z.date(),
|
|
16
16
|
});
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ const UserToProductSummarySchema = z.object({
|
|
|
23
23
|
initTokenBalance: z.number().int(),
|
|
24
24
|
tokenBalance: z.number().int(),
|
|
25
25
|
status: z.nativeEnum(USER_TO_PRODUCT_STATUS),
|
|
26
|
-
expiresAt: z.date().nullable(),
|
|
26
|
+
expiresAt: z.date().or(z.string().datetime()).nullable(),
|
|
27
27
|
createdAt: z.date().or(z.string().datetime()),
|
|
28
28
|
product: ProductSchema,
|
|
29
29
|
});
|
|
@@ -10,7 +10,7 @@ export namespace GetMyProductsCommand {
|
|
|
10
10
|
initTokenBalance: z.number().int(),
|
|
11
11
|
tokenBalance: z.number().int(),
|
|
12
12
|
status: z.nativeEnum(USER_TO_PRODUCT_STATUS),
|
|
13
|
-
expiresAt: z.date().nullable(),
|
|
13
|
+
expiresAt: z.date().or(z.string().datetime()).nullable(),
|
|
14
14
|
createdAt: z.date().or(z.string().datetime()),
|
|
15
15
|
product: ProductSchema,
|
|
16
16
|
}),
|