@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.
- package/build/commands/consignment-import-schema/get-consignment-import-schema-template-file.query.js +8 -0
- package/build/commands/consignment-import-schema/index.js +1 -0
- package/build/constant/error.js +5 -0
- package/build/schemas/consignment-import-schema/get-consignment-import-schema-template-file.schema.js +9 -0
- package/build/schemas/consignment-import-schema/index.js +1 -0
- package/commands/consignment-import-schema/get-consignment-import-schema-template-file.query.ts +7 -0
- package/commands/consignment-import-schema/index.ts +1 -0
- package/constant/error.ts +5 -0
- package/package.json +1 -1
- package/schemas/consignment-import-schema/get-consignment-import-schema-template-file.schema.ts +7 -0
- package/schemas/consignment-import-schema/index.ts +1 -0
|
@@ -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);
|
package/build/constant/error.js
CHANGED
|
@@ -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);
|
package/commands/consignment-import-schema/get-consignment-import-schema-template-file.query.ts
ADDED
|
@@ -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
|
+
}
|
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