@floristcloud/api-lib 1.0.68 → 1.0.69
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/pre-order-product/create-manually-pre-order-product-for-standing-order.command.js +2 -0
- package/build/constant/error.js +10 -0
- package/build/enum/index.js +1 -0
- package/build/enum/pre-order-collection-type.enum.js +8 -0
- package/build/schemas/pre-order-product/pre-order-product.schema.js +1 -0
- package/commands/pre-order-product/create-manually-pre-order-product-for-standing-order.command.ts +2 -0
- package/constant/error.ts +10 -0
- package/enum/index.ts +1 -0
- package/enum/pre-order-collection-type.enum.ts +4 -0
- package/package.json +1 -1
- package/schemas/pre-order-product/pre-order-product.schema.ts +1 -0
|
@@ -8,6 +8,8 @@ const CreateManuallyPreOrderProductForStandingOrderRequestSchema = schemas_1.Cre
|
|
|
8
8
|
isReplaceable: true,
|
|
9
9
|
isPurchased: true,
|
|
10
10
|
highAttention: true,
|
|
11
|
+
}).extend({
|
|
12
|
+
productImageUUID: zod_1.z.string().uuid().optional(),
|
|
11
13
|
});
|
|
12
14
|
const CreateManuallyPreOrderProductForStandingOrderResponseSchema = zod_1.z.object({
|
|
13
15
|
message: zod_1.z.string().optional(),
|
package/build/constant/error.js
CHANGED
|
@@ -679,6 +679,16 @@ exports.ERRORS = {
|
|
|
679
679
|
message: 'Cannot delete pre-order collection with existing pre-orders',
|
|
680
680
|
httpCode: 400,
|
|
681
681
|
},
|
|
682
|
+
PRE_ORDER_COLLECTION_SYSTEM_CATALOG_CANNOT_BE_DELETED: {
|
|
683
|
+
code: 'POC013',
|
|
684
|
+
message: 'System standing-order catalog cannot be deleted',
|
|
685
|
+
httpCode: 400,
|
|
686
|
+
},
|
|
687
|
+
PRE_ORDER_COLLECTION_SYSTEM_CATALOG_CANNOT_BE_COPIED: {
|
|
688
|
+
code: 'POC014',
|
|
689
|
+
message: 'System standing-order catalog cannot be copied',
|
|
690
|
+
httpCode: 400,
|
|
691
|
+
},
|
|
682
692
|
PRE_ORDER_COLLECTION_IMAGE_MATCHING_FAILED: {
|
|
683
693
|
code: 'POC012',
|
|
684
694
|
message: 'Failed to match images for pre order collection',
|
package/build/enum/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./package-status.enum"), exports);
|
|
|
32
32
|
__exportStar(require("./package-type.enum"), exports);
|
|
33
33
|
__exportStar(require("./product-in-package-status.enum"), exports);
|
|
34
34
|
__exportStar(require("./pre-order-collection-status.enum"), exports);
|
|
35
|
+
__exportStar(require("./pre-order-collection-type.enum"), exports);
|
|
35
36
|
__exportStar(require("./pre-order-status.enum"), exports);
|
|
36
37
|
__exportStar(require("./userRole.enum"), exports);
|
|
37
38
|
__exportStar(require("./parse-status.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreOrderCollectionTypeEnum = void 0;
|
|
4
|
+
var PreOrderCollectionTypeEnum;
|
|
5
|
+
(function (PreOrderCollectionTypeEnum) {
|
|
6
|
+
PreOrderCollectionTypeEnum["REGULAR"] = "REGULAR";
|
|
7
|
+
PreOrderCollectionTypeEnum["STANDING_ORDER_CATALOG"] = "STANDING_ORDER_CATALOG";
|
|
8
|
+
})(PreOrderCollectionTypeEnum || (exports.PreOrderCollectionTypeEnum = PreOrderCollectionTypeEnum = {}));
|
|
@@ -65,6 +65,7 @@ exports.UpdatePreOrderProductSchema = exports.PreOrderProductSchema.omit({
|
|
|
65
65
|
color: zod_1.z.string().nullable().optional(),
|
|
66
66
|
parentPreOrderProductUUID: zod_1.z.string().nullable().optional(),
|
|
67
67
|
matchingConfig: exports.MatchingConfigSchema.optional().nullable(),
|
|
68
|
+
imageUUID: zod_1.z.string().uuid().nullable().optional(),
|
|
68
69
|
})
|
|
69
70
|
.partial();
|
|
70
71
|
exports.CreatePreOrderProductWebshopSchema = exports.PreOrderProductSchema.omit({
|
package/commands/pre-order-product/create-manually-pre-order-product-for-standing-order.command.ts
CHANGED
|
@@ -6,6 +6,8 @@ const CreateManuallyPreOrderProductForStandingOrderRequestSchema = CreatePreOrde
|
|
|
6
6
|
isReplaceable: true,
|
|
7
7
|
isPurchased: true,
|
|
8
8
|
highAttention: true,
|
|
9
|
+
}).extend({
|
|
10
|
+
productImageUUID: z.string().uuid().optional(),
|
|
9
11
|
});
|
|
10
12
|
|
|
11
13
|
const CreateManuallyPreOrderProductForStandingOrderResponseSchema = z.object({
|
package/constant/error.ts
CHANGED
|
@@ -715,6 +715,16 @@ export const ERRORS = {
|
|
|
715
715
|
message: 'Cannot delete pre-order collection with existing pre-orders',
|
|
716
716
|
httpCode: 400,
|
|
717
717
|
},
|
|
718
|
+
PRE_ORDER_COLLECTION_SYSTEM_CATALOG_CANNOT_BE_DELETED: {
|
|
719
|
+
code: 'POC013',
|
|
720
|
+
message: 'System standing-order catalog cannot be deleted',
|
|
721
|
+
httpCode: 400,
|
|
722
|
+
},
|
|
723
|
+
PRE_ORDER_COLLECTION_SYSTEM_CATALOG_CANNOT_BE_COPIED: {
|
|
724
|
+
code: 'POC014',
|
|
725
|
+
message: 'System standing-order catalog cannot be copied',
|
|
726
|
+
httpCode: 400,
|
|
727
|
+
},
|
|
718
728
|
PRE_ORDER_COLLECTION_IMAGE_MATCHING_FAILED: {
|
|
719
729
|
code: 'POC012',
|
|
720
730
|
message: 'Failed to match images for pre order collection',
|
package/enum/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './package-status.enum';
|
|
|
16
16
|
export * from './package-type.enum';
|
|
17
17
|
export * from './product-in-package-status.enum';
|
|
18
18
|
export * from './pre-order-collection-status.enum';
|
|
19
|
+
export * from './pre-order-collection-type.enum';
|
|
19
20
|
export * from './pre-order-status.enum';
|
|
20
21
|
export * from './userRole.enum';
|
|
21
22
|
export * from './parse-status.enum';
|
package/package.json
CHANGED
|
@@ -67,6 +67,7 @@ export const UpdatePreOrderProductSchema = PreOrderProductSchema.omit({
|
|
|
67
67
|
color: z.string().nullable().optional(),
|
|
68
68
|
parentPreOrderProductUUID: z.string().nullable().optional(),
|
|
69
69
|
matchingConfig: MatchingConfigSchema.optional().nullable(),
|
|
70
|
+
imageUUID: z.string().uuid().nullable().optional(),
|
|
70
71
|
})
|
|
71
72
|
.partial();
|
|
72
73
|
|