@floristcloud/api-lib 1.0.67 → 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.
@@ -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(),
@@ -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',
@@ -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 = {}));
@@ -44,5 +44,6 @@ exports.DeliveryRouteWithOrdersSchema = exports.DeliveryRouteSchema.extend({
44
44
  deliveryAddress: zod_1.z.string().nullable(),
45
45
  deliveryComment: zod_1.z.string().nullable(),
46
46
  consignmentDates: zod_1.z.array(zod_1.z.coerce.date()),
47
+ responsibleUserName: zod_1.z.string().nullable(),
47
48
  })),
48
49
  });
@@ -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({
@@ -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';
@@ -0,0 +1,4 @@
1
+ export enum PreOrderCollectionTypeEnum {
2
+ REGULAR = 'REGULAR',
3
+ STANDING_ORDER_CATALOG = 'STANDING_ORDER_CATALOG',
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -46,6 +46,7 @@ export const DeliveryRouteWithOrdersSchema = DeliveryRouteSchema.extend({
46
46
  deliveryAddress: z.string().nullable(),
47
47
  deliveryComment: z.string().nullable(),
48
48
  consignmentDates: z.array(z.coerce.date()),
49
+ responsibleUserName: z.string().nullable(),
49
50
  }),
50
51
  ),
51
52
  });
@@ -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