@purpleschool/multisite 0.0.31 → 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 -0
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts.map +1 -1
- package/build/commands/user-to-product/update-user-to-product.command.d.ts +5 -0
- package/build/commands/user-to-product/update-user-to-product.command.d.ts.map +1 -1
- package/build/constants/user-to-product/enums/user-to-product-status.enum.d.ts +2 -1
- package/build/constants/user-to-product/enums/user-to-product-status.enum.d.ts.map +1 -1
- package/build/constants/user-to-product/enums/user-to-product-status.enum.js +1 -0
- package/build/models/user-to-product.schema.d.ts +3 -0
- package/build/models/user-to-product.schema.d.ts.map +1 -1
- package/build/models/user-to-product.schema.js +1 -0
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +5 -0
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts.map +1 -1
- package/build/queries/subscription/get-subscriptions-summary.command.js +1 -0
- package/build/queries/user/get-my-products.command.d.ts +5 -0
- package/build/queries/user/get-my-products.command.d.ts.map +1 -1
- package/build/queries/user/get-my-products.command.js +1 -0
- package/constants/user-to-product/enums/user-to-product-status.enum.ts +1 -0
- package/models/user-to-product.schema.ts +1 -0
- package/package.json +1 -1
- package/queries/subscription/get-subscriptions-summary.command.ts +1 -0
- package/queries/user/get-my-products.command.ts +1 -0
|
@@ -18,6 +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.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
21
22
|
createdAt: z.ZodDate;
|
|
22
23
|
updatedAt: z.ZodDate;
|
|
23
24
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29,6 +30,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
29
30
|
initTokenBalance: number;
|
|
30
31
|
tokenBalance: number;
|
|
31
32
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
33
|
+
expiresAt: string | Date | null;
|
|
32
34
|
createdAt: Date;
|
|
33
35
|
updatedAt: Date;
|
|
34
36
|
}, {
|
|
@@ -40,6 +42,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
40
42
|
initTokenBalance: number;
|
|
41
43
|
tokenBalance: number;
|
|
42
44
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
45
|
+
expiresAt: string | Date | null;
|
|
43
46
|
createdAt: Date;
|
|
44
47
|
updatedAt: Date;
|
|
45
48
|
}>;
|
|
@@ -53,6 +56,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
53
56
|
initTokenBalance: number;
|
|
54
57
|
tokenBalance: number;
|
|
55
58
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
59
|
+
expiresAt: string | Date | null;
|
|
56
60
|
createdAt: Date;
|
|
57
61
|
updatedAt: Date;
|
|
58
62
|
};
|
|
@@ -66,6 +70,7 @@ export declare namespace GetUserToProductByUuidCommand {
|
|
|
66
70
|
initTokenBalance: number;
|
|
67
71
|
tokenBalance: number;
|
|
68
72
|
status: import("../..").USER_TO_PRODUCT_STATUS;
|
|
73
|
+
expiresAt: string | Date | null;
|
|
69
74
|
createdAt: Date;
|
|
70
75
|
updatedAt: Date;
|
|
71
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-to-product-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/get-user-to-product-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-to-product-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/get-user-to-product-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -36,6 +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.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
39
40
|
createdAt: z.ZodDate;
|
|
40
41
|
updatedAt: z.ZodDate;
|
|
41
42
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -47,6 +48,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
47
48
|
initTokenBalance: number;
|
|
48
49
|
tokenBalance: number;
|
|
49
50
|
status: USER_TO_PRODUCT_STATUS;
|
|
51
|
+
expiresAt: string | Date | null;
|
|
50
52
|
createdAt: Date;
|
|
51
53
|
updatedAt: Date;
|
|
52
54
|
}, {
|
|
@@ -58,6 +60,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
58
60
|
initTokenBalance: number;
|
|
59
61
|
tokenBalance: number;
|
|
60
62
|
status: USER_TO_PRODUCT_STATUS;
|
|
63
|
+
expiresAt: string | Date | null;
|
|
61
64
|
createdAt: Date;
|
|
62
65
|
updatedAt: Date;
|
|
63
66
|
}>;
|
|
@@ -71,6 +74,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
71
74
|
initTokenBalance: number;
|
|
72
75
|
tokenBalance: number;
|
|
73
76
|
status: USER_TO_PRODUCT_STATUS;
|
|
77
|
+
expiresAt: string | Date | null;
|
|
74
78
|
createdAt: Date;
|
|
75
79
|
updatedAt: Date;
|
|
76
80
|
};
|
|
@@ -84,6 +88,7 @@ export declare namespace UpdateUserToProductCommand {
|
|
|
84
88
|
initTokenBalance: number;
|
|
85
89
|
tokenBalance: number;
|
|
86
90
|
status: USER_TO_PRODUCT_STATUS;
|
|
91
|
+
expiresAt: string | Date | null;
|
|
87
92
|
createdAt: Date;
|
|
88
93
|
updatedAt: Date;
|
|
89
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-to-product.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/update-user-to-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;;;;MAKxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"update-user-to-product.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/update-user-to-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;;;;MAKxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-to-product-status.enum.d.ts","sourceRoot":"","sources":["../../../../constants/user-to-product/enums/user-to-product-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAC9B,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"user-to-product-status.enum.d.ts","sourceRoot":"","sources":["../../../../constants/user-to-product/enums/user-to-product-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAC9B,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB"}
|
|
@@ -4,4 +4,5 @@ exports.USER_TO_PRODUCT_STATUS = void 0;
|
|
|
4
4
|
var USER_TO_PRODUCT_STATUS;
|
|
5
5
|
(function (USER_TO_PRODUCT_STATUS) {
|
|
6
6
|
USER_TO_PRODUCT_STATUS["ACTIVE"] = "active";
|
|
7
|
+
USER_TO_PRODUCT_STATUS["EXPIRED"] = "expired";
|
|
7
8
|
})(USER_TO_PRODUCT_STATUS || (exports.USER_TO_PRODUCT_STATUS = USER_TO_PRODUCT_STATUS = {}));
|
|
@@ -9,6 +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.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
12
13
|
createdAt: z.ZodDate;
|
|
13
14
|
updatedAt: z.ZodDate;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -20,6 +21,7 @@ export declare const UserToProductSchema: z.ZodObject<{
|
|
|
20
21
|
initTokenBalance: number;
|
|
21
22
|
tokenBalance: number;
|
|
22
23
|
status: USER_TO_PRODUCT_STATUS;
|
|
24
|
+
expiresAt: string | Date | null;
|
|
23
25
|
createdAt: Date;
|
|
24
26
|
updatedAt: Date;
|
|
25
27
|
}, {
|
|
@@ -31,6 +33,7 @@ export declare const UserToProductSchema: z.ZodObject<{
|
|
|
31
33
|
initTokenBalance: number;
|
|
32
34
|
tokenBalance: number;
|
|
33
35
|
status: USER_TO_PRODUCT_STATUS;
|
|
36
|
+
expiresAt: string | Date | null;
|
|
34
37
|
createdAt: Date;
|
|
35
38
|
updatedAt: Date;
|
|
36
39
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-to-product.schema.d.ts","sourceRoot":"","sources":["../../models/user-to-product.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"user-to-product.schema.d.ts","sourceRoot":"","sources":["../../models/user-to-product.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY9B,CAAC"}
|
|
@@ -12,6 +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().or(zod_1.z.string().datetime()).nullable(),
|
|
15
16
|
createdAt: zod_1.z.date(),
|
|
16
17
|
updatedAt: zod_1.z.date(),
|
|
17
18
|
});
|
|
@@ -116,6 +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.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
119
120
|
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
120
121
|
product: z.ZodObject<{
|
|
121
122
|
uuid: z.ZodString;
|
|
@@ -162,6 +163,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
162
163
|
initTokenBalance: number;
|
|
163
164
|
tokenBalance: number;
|
|
164
165
|
status: USER_TO_PRODUCT_STATUS;
|
|
166
|
+
expiresAt: string | Date | null;
|
|
165
167
|
createdAt: string | Date;
|
|
166
168
|
product: {
|
|
167
169
|
uuid: string;
|
|
@@ -180,6 +182,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
180
182
|
initTokenBalance: number;
|
|
181
183
|
tokenBalance: number;
|
|
182
184
|
status: USER_TO_PRODUCT_STATUS;
|
|
185
|
+
expiresAt: string | Date | null;
|
|
183
186
|
createdAt: string | Date;
|
|
184
187
|
product: {
|
|
185
188
|
uuid: string;
|
|
@@ -235,6 +238,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
235
238
|
initTokenBalance: number;
|
|
236
239
|
tokenBalance: number;
|
|
237
240
|
status: USER_TO_PRODUCT_STATUS;
|
|
241
|
+
expiresAt: string | Date | null;
|
|
238
242
|
createdAt: string | Date;
|
|
239
243
|
product: {
|
|
240
244
|
uuid: string;
|
|
@@ -284,6 +288,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
284
288
|
initTokenBalance: number;
|
|
285
289
|
tokenBalance: number;
|
|
286
290
|
status: USER_TO_PRODUCT_STATUS;
|
|
291
|
+
expiresAt: string | Date | null;
|
|
287
292
|
createdAt: string | Date;
|
|
288
293
|
product: {
|
|
289
294
|
uuid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscriptions-summary.command.d.ts","sourceRoot":"","sources":["../../../queries/subscription/get-subscriptions-summary.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-subscriptions-summary.command.d.ts","sourceRoot":"","sources":["../../../queries/subscription/get-subscriptions-summary.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AA4BtF,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -23,6 +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().or(zod_1.z.string().datetime()).nullable(),
|
|
26
27
|
createdAt: zod_1.z.date().or(zod_1.z.string().datetime()),
|
|
27
28
|
product: models_1.ProductSchema,
|
|
28
29
|
});
|
|
@@ -7,6 +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.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
10
11
|
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
11
12
|
product: z.ZodObject<{
|
|
12
13
|
uuid: z.ZodString;
|
|
@@ -53,6 +54,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
53
54
|
initTokenBalance: number;
|
|
54
55
|
tokenBalance: number;
|
|
55
56
|
status: USER_TO_PRODUCT_STATUS;
|
|
57
|
+
expiresAt: string | Date | null;
|
|
56
58
|
createdAt: string | Date;
|
|
57
59
|
product: {
|
|
58
60
|
uuid: string;
|
|
@@ -71,6 +73,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
71
73
|
initTokenBalance: number;
|
|
72
74
|
tokenBalance: number;
|
|
73
75
|
status: USER_TO_PRODUCT_STATUS;
|
|
76
|
+
expiresAt: string | Date | null;
|
|
74
77
|
createdAt: string | Date;
|
|
75
78
|
product: {
|
|
76
79
|
uuid: string;
|
|
@@ -91,6 +94,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
91
94
|
initTokenBalance: number;
|
|
92
95
|
tokenBalance: number;
|
|
93
96
|
status: USER_TO_PRODUCT_STATUS;
|
|
97
|
+
expiresAt: string | Date | null;
|
|
94
98
|
createdAt: string | Date;
|
|
95
99
|
product: {
|
|
96
100
|
uuid: string;
|
|
@@ -111,6 +115,7 @@ export declare namespace GetMyProductsCommand {
|
|
|
111
115
|
initTokenBalance: number;
|
|
112
116
|
tokenBalance: number;
|
|
113
117
|
status: USER_TO_PRODUCT_STATUS;
|
|
118
|
+
expiresAt: string | Date | null;
|
|
114
119
|
createdAt: string | Date;
|
|
115
120
|
product: {
|
|
116
121
|
uuid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-my-products.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-my-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-my-products.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-my-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -12,6 +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().or(zod_1.z.string().datetime()).nullable(),
|
|
15
16
|
createdAt: zod_1.z.date().or(zod_1.z.string().datetime()),
|
|
16
17
|
product: models_1.ProductSchema,
|
|
17
18
|
})),
|
|
@@ -10,6 +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().or(z.string().datetime()).nullable(),
|
|
13
14
|
createdAt: z.date(),
|
|
14
15
|
updatedAt: z.date(),
|
|
15
16
|
});
|
package/package.json
CHANGED
|
@@ -23,6 +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().or(z.string().datetime()).nullable(),
|
|
26
27
|
createdAt: z.date().or(z.string().datetime()),
|
|
27
28
|
product: ProductSchema,
|
|
28
29
|
});
|
|
@@ -10,6 +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().or(z.string().datetime()).nullable(),
|
|
13
14
|
createdAt: z.date().or(z.string().datetime()),
|
|
14
15
|
product: ProductSchema,
|
|
15
16
|
}),
|