@floristcloud/api-lib 1.2.83 → 1.2.84

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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConsignmentImportSchemaTemplateFileContractQuery = void 0;
4
+ const consignment_import_schema_1 = require("../../schemas/consignment-import-schema");
5
+ var GetConsignmentImportSchemaTemplateFileContractQuery;
6
+ (function (GetConsignmentImportSchemaTemplateFileContractQuery) {
7
+ GetConsignmentImportSchemaTemplateFileContractQuery.ResponseSchema = consignment_import_schema_1.GetConsignmentImportSchemaTemplateFileResponseSchema;
8
+ })(GetConsignmentImportSchemaTemplateFileContractQuery || (exports.GetConsignmentImportSchemaTemplateFileContractQuery = GetConsignmentImportSchemaTemplateFileContractQuery = {}));
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-consignment-import-scheme.command"), exports);
18
18
  __exportStar(require("./update-consignment-import-schema.command"), exports);
19
19
  __exportStar(require("./get-consignment-import-schema-template.query"), exports);
20
+ __exportStar(require("./get-consignment-import-schema-template-file.query"), exports);
@@ -270,6 +270,11 @@ exports.ERRORS = {
270
270
  message: 'Default consignment import scheme cannot be deleted',
271
271
  httpCode: 400,
272
272
  },
273
+ CONSIGNMENT_IMPORT_SCHEME_TEMPLATE_FILE_FAILED: {
274
+ code: 'CS008',
275
+ message: 'Failed to build consignment import scheme template file',
276
+ httpCode: 500,
277
+ },
273
278
  // CONSIGNMENT-IMPORT-SCHEMA-RELATION
274
279
  CONSIGNMENT_IMPORT_SCHEMA_RELATION_NOT_CREATED: {
275
280
  code: 'CSR001',
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConsignmentImportSchemaTemplateFileResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.GetConsignmentImportSchemaTemplateFileResponseSchema = zod_1.z.object({
6
+ data: zod_1.z.object({
7
+ url: zod_1.z.string().url(),
8
+ }),
9
+ });
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./consignment-import-schema.scheme"), exports);
18
+ __exportStar(require("./get-consignment-import-schema-template-file.schema"), exports);
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { GetConsignmentImportSchemaTemplateFileResponseSchema } from '../../schemas/consignment-import-schema';
3
+
4
+ export namespace GetConsignmentImportSchemaTemplateFileContractQuery {
5
+ export const ResponseSchema = GetConsignmentImportSchemaTemplateFileResponseSchema;
6
+ export type Response = z.infer<typeof ResponseSchema>;
7
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './create-consignment-import-scheme.command';
2
2
  export * from './update-consignment-import-schema.command';
3
3
  export * from './get-consignment-import-schema-template.query';
4
+ export * from './get-consignment-import-schema-template-file.query';
package/constant/error.ts CHANGED
@@ -280,6 +280,11 @@ export const ERRORS = {
280
280
  message: 'Default consignment import scheme cannot be deleted',
281
281
  httpCode: 400,
282
282
  },
283
+ CONSIGNMENT_IMPORT_SCHEME_TEMPLATE_FILE_FAILED: {
284
+ code: 'CS008',
285
+ message: 'Failed to build consignment import scheme template file',
286
+ httpCode: 500,
287
+ },
283
288
 
284
289
  // CONSIGNMENT-IMPORT-SCHEMA-RELATION
285
290
  CONSIGNMENT_IMPORT_SCHEMA_RELATION_NOT_CREATED: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.2.83",
3
+ "version": "1.2.84",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+
3
+ export const GetConsignmentImportSchemaTemplateFileResponseSchema = z.object({
4
+ data: z.object({
5
+ url: z.string().url(),
6
+ }),
7
+ });
@@ -1 +1,2 @@
1
1
  export * from './consignment-import-schema.scheme';
2
+ export * from './get-consignment-import-schema-template-file.schema';