@gigapay-dev/contracts 1.2.3 → 1.2.5
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/orders/read.js +1 -0
- package/build/commands/promocodes/create.js +3 -0
- package/build/commands/promocodes/read.js +3 -0
- package/build/commands/promocodes/update.js +1 -0
- package/commands/promocodes/create.ts +3 -0
- package/commands/promocodes/read.ts +3 -0
- package/commands/promocodes/update.ts +1 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ exports.OrderReadResponseSchema = zod_1.z.object({
|
|
|
6
6
|
id: zod_1.z.coerce.number().positive(),
|
|
7
7
|
userId: zod_1.z.coerce.number().positive().optional(),
|
|
8
8
|
promocodeId: zod_1.z.coerce.number().positive().optional(),
|
|
9
|
+
email: zod_1.z.string(),
|
|
9
10
|
status: zod_1.z.string(),
|
|
10
11
|
steamUsername: zod_1.z.string(),
|
|
11
12
|
paymentId: zod_1.z.coerce.number().positive(),
|
|
@@ -7,6 +7,9 @@ exports.PromoCodeCreateSchema = zod_1.z.object({
|
|
|
7
7
|
value: zod_1.z.string(),
|
|
8
8
|
discountValue: zod_1.z.string(),
|
|
9
9
|
expiredAt: zod_1.z.coerce.date().nullable().optional(),
|
|
10
|
+
startedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
11
|
+
createdAt: zod_1.z.coerce.date().nullable().optional(),
|
|
12
|
+
updatedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
10
13
|
activationLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
11
14
|
activationPerUserLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
12
15
|
type: enums_1.PromoCodeType,
|
|
@@ -10,7 +10,10 @@ exports.PromoCodeReadResponseSchema = zod_1.default.object({
|
|
|
10
10
|
id: zod_1.default.coerce.number().positive(),
|
|
11
11
|
value: zod_1.default.string(),
|
|
12
12
|
discountValue: zod_1.default.string(),
|
|
13
|
+
startedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
13
14
|
expiredAt: zod_1.default.coerce.date().nullable().optional(),
|
|
15
|
+
createdAt: zod_1.default.coerce.date().nullable().optional(),
|
|
16
|
+
updatedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
14
17
|
activationLimit: zod_1.default.coerce.number().positive().nullable().optional(),
|
|
15
18
|
activationPerUserLimit: zod_1.default.coerce.number().positive().nullable().optional(),
|
|
16
19
|
type: enums_1.PromoCodeType,
|
|
@@ -6,6 +6,7 @@ const enums_1 = require("./enums");
|
|
|
6
6
|
exports.PromoCodeUpdateSchema = zod_1.z.object({
|
|
7
7
|
value: zod_1.z.string().optional(),
|
|
8
8
|
discountValue: zod_1.z.string().optional(),
|
|
9
|
+
startedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
9
10
|
expiredAt: zod_1.z.coerce.date().nullable().optional(),
|
|
10
11
|
activationLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
11
12
|
activationPerUserLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
@@ -5,6 +5,9 @@ export const PromoCodeCreateSchema = z.object({
|
|
|
5
5
|
value: z.string(),
|
|
6
6
|
discountValue: z.string(),
|
|
7
7
|
expiredAt: z.coerce.date().nullable().optional(),
|
|
8
|
+
startedAt: z.coerce.date().nullable().optional(),
|
|
9
|
+
createdAt: z.coerce.date().nullable().optional(),
|
|
10
|
+
updatedAt: z.coerce.date().nullable().optional(),
|
|
8
11
|
activationLimit: z.coerce.number().positive().nullable().optional(),
|
|
9
12
|
activationPerUserLimit: z.coerce.number().positive().nullable().optional(),
|
|
10
13
|
type: PromoCodeType,
|
|
@@ -5,7 +5,10 @@ export const PromoCodeReadResponseSchema = z.object({
|
|
|
5
5
|
id: z.coerce.number().positive(),
|
|
6
6
|
value: z.string(),
|
|
7
7
|
discountValue: z.string(),
|
|
8
|
+
startedAt: z.coerce.date().nullable().optional(),
|
|
8
9
|
expiredAt: z.coerce.date().nullable().optional(),
|
|
10
|
+
createdAt: z.coerce.date().nullable().optional(),
|
|
11
|
+
updatedAt: z.coerce.date().nullable().optional(),
|
|
9
12
|
activationLimit: z.coerce.number().positive().nullable().optional(),
|
|
10
13
|
activationPerUserLimit: z.coerce.number().positive().nullable().optional(),
|
|
11
14
|
type: PromoCodeType,
|
|
@@ -4,6 +4,7 @@ import { PromoCodeStatus, PromoCodeType } from "./enums";
|
|
|
4
4
|
export const PromoCodeUpdateSchema = z.object({
|
|
5
5
|
value: z.string().optional(),
|
|
6
6
|
discountValue: z.string().optional(),
|
|
7
|
+
startedAt: z.coerce.date().nullable().optional(),
|
|
7
8
|
expiredAt: z.coerce.date().nullable().optional(),
|
|
8
9
|
activationLimit: z.coerce.number().positive().nullable().optional(),
|
|
9
10
|
activationPerUserLimit: z.coerce.number().positive().nullable().optional(),
|