@floristcloud/api-lib 1.0.56 → 1.0.57

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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExportPreOrderContractCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const ExportPreOrderResponseSchema = zod_1.z.object({
6
+ message: zod_1.z.string().optional(),
7
+ data: zod_1.z.string(),
8
+ });
9
+ var ExportPreOrderContractCommand;
10
+ (function (ExportPreOrderContractCommand) {
11
+ ExportPreOrderContractCommand.ResponseSchema = ExportPreOrderResponseSchema;
12
+ })(ExportPreOrderContractCommand || (exports.ExportPreOrderContractCommand = ExportPreOrderContractCommand = {}));
@@ -26,3 +26,4 @@ __exportStar(require("./get-pre-order-by-pre-order-collection-uuid.command"), ex
26
26
  __exportStar(require("./create-order-from-pre-order.command"), exports);
27
27
  __exportStar(require("./import-standing-order.command"), exports);
28
28
  __exportStar(require("./get-standing-order-import-template.command"), exports);
29
+ __exportStar(require("./export-pre-order.command"), exports);
@@ -569,6 +569,7 @@ exports.ERRORS = {
569
569
  PRE_ORDER_FETCH_FAILED: { code: 'PO006', message: 'Error when retrieving a list of pre orders', httpCode: 500 },
570
570
  PRE_ORDER_ALREADY_EXIST: { code: 'PO007', message: 'Pre order with this name already exist', httpCode: 409 },
571
571
  PRE_ORDER_INVALID_STATUS: { code: 'PO008', message: 'Invalid pre order status', httpCode: 400 },
572
+ PRE_ORDER_EXPORT_FAILED: { code: 'PO005', message: 'Failed to export pre order', httpCode: 500 },
572
573
  PRE_ORDER_FROM_STANDING_ORDER_FAILED: {
573
574
  code: 'PO009',
574
575
  message: 'Failed to create pre order from standing order',
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+
3
+ const ExportPreOrderResponseSchema = z.object({
4
+ message: z.string().optional(),
5
+ data: z.string(),
6
+ });
7
+
8
+ export namespace ExportPreOrderContractCommand {
9
+ export const ResponseSchema = ExportPreOrderResponseSchema;
10
+ export type Response = z.infer<typeof ResponseSchema>;
11
+ }
@@ -10,3 +10,4 @@ export * from './get-pre-order-by-pre-order-collection-uuid.command';
10
10
  export * from './create-order-from-pre-order.command';
11
11
  export * from './import-standing-order.command';
12
12
  export * from './get-standing-order-import-template.command';
13
+ export * from './export-pre-order.command';
package/constant/error.ts CHANGED
@@ -601,6 +601,7 @@ export const ERRORS = {
601
601
  PRE_ORDER_FETCH_FAILED: { code: 'PO006', message: 'Error when retrieving a list of pre orders', httpCode: 500 },
602
602
  PRE_ORDER_ALREADY_EXIST: { code: 'PO007', message: 'Pre order with this name already exist', httpCode: 409 },
603
603
  PRE_ORDER_INVALID_STATUS: { code: 'PO008', message: 'Invalid pre order status', httpCode: 400 },
604
+ PRE_ORDER_EXPORT_FAILED: { code: 'PO005', message: 'Failed to export pre order', httpCode: 500 },
604
605
  PRE_ORDER_FROM_STANDING_ORDER_FAILED: {
605
606
  code: 'PO009',
606
607
  message: 'Failed to create pre order from standing order',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {