@gigapay-dev/contracts 1.4.5 → 1.4.7
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/promocodes/create.js +1 -0
- package/build/commands/promocodes/enums.js +1 -1
- package/build/commands/promocodes/read.js +1 -0
- package/build/commands/promocodes/update.js +1 -0
- package/commands/promocodes/create.ts +1 -0
- package/commands/promocodes/enums.ts +1 -1
- package/commands/promocodes/read.ts +1 -0
- package/commands/promocodes/update.ts +1 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ exports.PromoCodeCreateSchema = zod_1.z.object({
|
|
|
9
9
|
expiredAt: zod_1.z.coerce.date().nullable().optional(),
|
|
10
10
|
startedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
11
11
|
createdAt: zod_1.z.coerce.date().nullable().optional(),
|
|
12
|
+
deletedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
12
13
|
updatedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
13
14
|
activationLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
14
15
|
activationPerUserLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.PromoCodeStatus = exports.PromoCodeType = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.PromoCodeType = zod_1.default.enum(["USER", "AD", "SYSTEM"]);
|
|
9
|
-
exports.PromoCodeStatus = zod_1.default.enum(["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED"]);
|
|
9
|
+
exports.PromoCodeStatus = zod_1.default.enum(["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]);
|
|
@@ -14,6 +14,7 @@ exports.PromoCodeReadResponseSchema = zod_1.default.object({
|
|
|
14
14
|
startedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
15
15
|
expiredAt: zod_1.default.coerce.date().nullable().optional(),
|
|
16
16
|
createdAt: zod_1.default.coerce.date().nullable().optional(),
|
|
17
|
+
deletedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
17
18
|
updatedAt: zod_1.default.coerce.date().nullable().optional(),
|
|
18
19
|
activationLimit: zod_1.default.coerce.number().positive().nullable().optional(),
|
|
19
20
|
activationPerUserLimit: zod_1.default.coerce.number().positive().nullable().optional(),
|
|
@@ -10,6 +10,7 @@ exports.PromoCodeUpdateSchema = zod_1.z.object({
|
|
|
10
10
|
expiredAt: zod_1.z.coerce.date().nullable().optional(),
|
|
11
11
|
activationLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
12
12
|
activationPerUserLimit: zod_1.z.coerce.number().positive().nullable().optional(),
|
|
13
|
+
deletedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
13
14
|
type: enums_1.PromoCodeType.optional(),
|
|
14
15
|
status: enums_1.PromoCodeStatus.optional(),
|
|
15
16
|
});
|
|
@@ -7,6 +7,7 @@ export const PromoCodeCreateSchema = z.object({
|
|
|
7
7
|
expiredAt: z.coerce.date().nullable().optional(),
|
|
8
8
|
startedAt: z.coerce.date().nullable().optional(),
|
|
9
9
|
createdAt: z.coerce.date().nullable().optional(),
|
|
10
|
+
deletedAt: z.coerce.date().nullable().optional(),
|
|
10
11
|
updatedAt: z.coerce.date().nullable().optional(),
|
|
11
12
|
activationLimit: z.coerce.number().positive().nullable().optional(),
|
|
12
13
|
activationPerUserLimit: z.coerce.number().positive().nullable().optional(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
|
|
3
3
|
export const PromoCodeType = z.enum(["USER", "AD", "SYSTEM"]);
|
|
4
|
-
export const PromoCodeStatus = z.enum(["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED"]);
|
|
4
|
+
export const PromoCodeStatus = z.enum(["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]);
|
|
5
5
|
|
|
6
6
|
export type PromoCodeType = z.infer<typeof PromoCodeType>;
|
|
7
7
|
export type PromoCodeStatus = z.infer<typeof PromoCodeStatus>;
|
|
@@ -9,6 +9,7 @@ export const PromoCodeReadResponseSchema = z.object({
|
|
|
9
9
|
startedAt: z.coerce.date().nullable().optional(),
|
|
10
10
|
expiredAt: z.coerce.date().nullable().optional(),
|
|
11
11
|
createdAt: z.coerce.date().nullable().optional(),
|
|
12
|
+
deletedAt: z.coerce.date().nullable().optional(),
|
|
12
13
|
updatedAt: z.coerce.date().nullable().optional(),
|
|
13
14
|
activationLimit: z.coerce.number().positive().nullable().optional(),
|
|
14
15
|
activationPerUserLimit: z.coerce.number().positive().nullable().optional(),
|
|
@@ -8,6 +8,7 @@ export const PromoCodeUpdateSchema = z.object({
|
|
|
8
8
|
expiredAt: z.coerce.date().nullable().optional(),
|
|
9
9
|
activationLimit: z.coerce.number().positive().nullable().optional(),
|
|
10
10
|
activationPerUserLimit: z.coerce.number().positive().nullable().optional(),
|
|
11
|
+
deletedAt: z.coerce.date().nullable().optional(),
|
|
11
12
|
type: PromoCodeType.optional(),
|
|
12
13
|
status: PromoCodeStatus.optional(),
|
|
13
14
|
})
|