@zyacreatives/shared 2.3.0 → 2.3.1
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/dist/constants.d.ts +1 -0
- package/dist/constants.js +7 -1
- package/dist/schemas/product.d.ts +4 -0
- package/package.json +1 -1
- package/src/constants.ts +7 -1
package/dist/constants.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ export declare const JOB_STATUS: {
|
|
|
193
193
|
};
|
|
194
194
|
export declare const PRODUCT_STATUS: {
|
|
195
195
|
readonly ACTIVE: "ACTIVE";
|
|
196
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
196
197
|
readonly DRAFT: "DRAFT";
|
|
197
198
|
readonly ARCHIVED: "ARCHIVED";
|
|
198
199
|
readonly DELETED: "DELETED";
|
package/dist/constants.js
CHANGED
|
@@ -189,7 +189,13 @@ exports.JOB_STATUS = {
|
|
|
189
189
|
ARCHIVED: "ARCHIVED",
|
|
190
190
|
DELETED: "DELETED",
|
|
191
191
|
};
|
|
192
|
-
exports.PRODUCT_STATUS =
|
|
192
|
+
exports.PRODUCT_STATUS = {
|
|
193
|
+
ACTIVE: "ACTIVE",
|
|
194
|
+
UNDER_REVIEW: "UNDER_REVIEW",
|
|
195
|
+
DRAFT: "DRAFT",
|
|
196
|
+
ARCHIVED: "ARCHIVED",
|
|
197
|
+
DELETED: "DELETED",
|
|
198
|
+
};
|
|
193
199
|
exports.MESSAGE_REQUEST_STATUS = {
|
|
194
200
|
PENDING: "PENDING",
|
|
195
201
|
ACCEPTED: "ACCEPTED",
|
|
@@ -40,6 +40,7 @@ export declare const BaseProductSchema: z.ZodObject<{
|
|
|
40
40
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
41
41
|
status: z.ZodDefault<z.ZodEnum<{
|
|
42
42
|
readonly ACTIVE: "ACTIVE";
|
|
43
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
43
44
|
readonly DRAFT: "DRAFT";
|
|
44
45
|
readonly ARCHIVED: "ARCHIVED";
|
|
45
46
|
readonly DELETED: "DELETED";
|
|
@@ -93,6 +94,7 @@ export declare const CreateProductInputSchema: z.ZodObject<{
|
|
|
93
94
|
keyFeatures: z.ZodString;
|
|
94
95
|
status: z.ZodDefault<z.ZodEnum<{
|
|
95
96
|
readonly ACTIVE: "ACTIVE";
|
|
97
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
96
98
|
readonly DRAFT: "DRAFT";
|
|
97
99
|
readonly ARCHIVED: "ARCHIVED";
|
|
98
100
|
readonly DELETED: "DELETED";
|
|
@@ -159,6 +161,7 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
|
|
|
159
161
|
keyFeatures: z.ZodOptional<z.ZodString>;
|
|
160
162
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
161
163
|
readonly ACTIVE: "ACTIVE";
|
|
164
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
162
165
|
readonly DRAFT: "DRAFT";
|
|
163
166
|
readonly ARCHIVED: "ARCHIVED";
|
|
164
167
|
readonly DELETED: "DELETED";
|
|
@@ -228,6 +231,7 @@ export declare const ProductEntitySchema: z.ZodObject<{
|
|
|
228
231
|
keyFeatures: z.ZodString;
|
|
229
232
|
status: z.ZodDefault<z.ZodEnum<{
|
|
230
233
|
readonly ACTIVE: "ACTIVE";
|
|
234
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
231
235
|
readonly DRAFT: "DRAFT";
|
|
232
236
|
readonly ARCHIVED: "ARCHIVED";
|
|
233
237
|
readonly DELETED: "DELETED";
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -217,7 +217,13 @@ export const JOB_STATUS = {
|
|
|
217
217
|
DELETED: "DELETED",
|
|
218
218
|
} as const;
|
|
219
219
|
|
|
220
|
-
export const PRODUCT_STATUS =
|
|
220
|
+
export const PRODUCT_STATUS = {
|
|
221
|
+
ACTIVE: "ACTIVE",
|
|
222
|
+
UNDER_REVIEW: "UNDER_REVIEW",
|
|
223
|
+
DRAFT: "DRAFT",
|
|
224
|
+
ARCHIVED: "ARCHIVED",
|
|
225
|
+
DELETED: "DELETED",
|
|
226
|
+
} as const;
|
|
221
227
|
|
|
222
228
|
export const MESSAGE_REQUEST_STATUS = {
|
|
223
229
|
PENDING: "PENDING",
|