@floristcloud/api-lib 1.0.46 → 1.0.48

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,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplyBankPaymentEventContractCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const ApplyBankPaymentEventRequestSchema = zod_1.z.object({
6
+ clientUUID: zod_1.z.uuid().optional().nullable(),
7
+ orderUUID: zod_1.z.uuid().optional().nullable(),
8
+ moneyAccountUUID: zod_1.z.uuid().optional().nullable(),
9
+ });
10
+ const ApplyBankPaymentEventResponseSchema = zod_1.z.object({
11
+ transactionUUID: zod_1.z.uuid().optional().nullable(),
12
+ appliedAt: zod_1.z.date(),
13
+ });
14
+ var ApplyBankPaymentEventContractCommand;
15
+ (function (ApplyBankPaymentEventContractCommand) {
16
+ ApplyBankPaymentEventContractCommand.RequestSchema = ApplyBankPaymentEventRequestSchema;
17
+ ApplyBankPaymentEventContractCommand.ResponseSchema = ApplyBankPaymentEventResponseSchema;
18
+ })(ApplyBankPaymentEventContractCommand || (exports.ApplyBankPaymentEventContractCommand = ApplyBankPaymentEventContractCommand = {}));
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-bank-payment-list.query"), exports);
18
18
  __exportStar(require("./update-bank-payment-status.query"), exports);
19
+ __exportStar(require("./get-bank-payment-match-suggestions.query"), exports);
20
+ __exportStar(require("./apply-bank-payment-event.command"), exports);
@@ -58,5 +58,6 @@ __exportStar(require("./product-configuration/get-product-configuration-list.que
58
58
  __exportStar(require("./product-configuration/create-product-configuration.command"), exports);
59
59
  __exportStar(require("./product-configuration/update-product-configuration.command"), exports);
60
60
  __exportStar(require("./product-configuration/delete-product-configuration.command"), exports);
61
+ __exportStar(require("./product-configuration/find-product-configuration-by-attributes.query"), exports);
61
62
  __exportStar(require("./bank-payment"), exports);
62
63
  __exportStar(require("./integration"), exports);
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindProductConfigurationByAttributesContractQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../../schemas");
6
+ const FindProductConfigurationByAttributesRequestSchema = zod_1.z.object({
7
+ categoryUUID: zod_1.z.uuid(),
8
+ country: zod_1.z.string().optional().nullable(),
9
+ grower: zod_1.z.string().optional().nullable(),
10
+ size: zod_1.z.coerce.number().optional().nullable(),
11
+ });
12
+ const FindProductConfigurationByAttributesDataSchema = zod_1.z.object({
13
+ mainConfiguration: schemas_1.ProductConfigurationSchema.nullable(),
14
+ optionalConfigurations: schemas_1.ProductConfigurationSchema.array(),
15
+ });
16
+ const FindProductConfigurationByAttributesResponseSchema = zod_1.z.object({
17
+ message: zod_1.z.string().optional(),
18
+ data: FindProductConfigurationByAttributesDataSchema,
19
+ });
20
+ var FindProductConfigurationByAttributesContractQuery;
21
+ (function (FindProductConfigurationByAttributesContractQuery) {
22
+ FindProductConfigurationByAttributesContractQuery.RequestSchema = FindProductConfigurationByAttributesRequestSchema;
23
+ FindProductConfigurationByAttributesContractQuery.ResponseSchema = FindProductConfigurationByAttributesResponseSchema;
24
+ })(FindProductConfigurationByAttributesContractQuery || (exports.FindProductConfigurationByAttributesContractQuery = FindProductConfigurationByAttributesContractQuery = {}));
@@ -19,3 +19,4 @@ __exportStar(require("./update-product-configuration.command"), exports);
19
19
  __exportStar(require("./get-product-configuration.query"), exports);
20
20
  __exportStar(require("./get-product-configuration-list.query"), exports);
21
21
  __exportStar(require("./delete-product-configuration.command"), exports);
22
+ __exportStar(require("./find-product-configuration-by-attributes.query"), exports);
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+
3
+ const ApplyBankPaymentEventRequestSchema = z.object({
4
+ clientUUID: z.uuid().optional().nullable(),
5
+ orderUUID: z.uuid().optional().nullable(),
6
+ moneyAccountUUID: z.uuid().optional().nullable(),
7
+ });
8
+
9
+ const ApplyBankPaymentEventResponseSchema = z.object({
10
+ transactionUUID: z.uuid().optional().nullable(),
11
+ appliedAt: z.date(),
12
+ });
13
+
14
+ export namespace ApplyBankPaymentEventContractCommand {
15
+ export const RequestSchema = ApplyBankPaymentEventRequestSchema;
16
+ export type Request = z.infer<typeof RequestSchema>;
17
+
18
+ export const ResponseSchema = ApplyBankPaymentEventResponseSchema;
19
+ export type Response = z.infer<typeof ResponseSchema>;
20
+ }
@@ -1,2 +1,4 @@
1
1
  export * from './get-bank-payment-list.query';
2
2
  export * from './update-bank-payment-status.query';
3
+ export * from './get-bank-payment-match-suggestions.query';
4
+ export * from './apply-bank-payment-event.command';
package/commands/index.ts CHANGED
@@ -42,6 +42,6 @@ export * from './product-configuration/get-product-configuration-list.query';
42
42
  export * from './product-configuration/create-product-configuration.command';
43
43
  export * from './product-configuration/update-product-configuration.command';
44
44
  export * from './product-configuration/delete-product-configuration.command';
45
+ export * from './product-configuration/find-product-configuration-by-attributes.query';
45
46
  export * from './bank-payment';
46
47
  export * from './integration';
47
-
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ import { ProductConfigurationSchema } from '../../schemas';
3
+
4
+ const FindProductConfigurationByAttributesRequestSchema = z.object({
5
+ categoryUUID: z.uuid(),
6
+ country: z.string().optional().nullable(),
7
+ grower: z.string().optional().nullable(),
8
+ size: z.coerce.number().optional().nullable(),
9
+ });
10
+
11
+ const FindProductConfigurationByAttributesDataSchema = z.object({
12
+ mainConfiguration: ProductConfigurationSchema.nullable(),
13
+ optionalConfigurations: ProductConfigurationSchema.array(),
14
+ });
15
+
16
+ const FindProductConfigurationByAttributesResponseSchema = z.object({
17
+ message: z.string().optional(),
18
+ data: FindProductConfigurationByAttributesDataSchema,
19
+ });
20
+
21
+ export namespace FindProductConfigurationByAttributesContractQuery {
22
+ export const RequestSchema = FindProductConfigurationByAttributesRequestSchema;
23
+ export type Request = z.infer<typeof RequestSchema>;
24
+
25
+ export const ResponseSchema = FindProductConfigurationByAttributesResponseSchema;
26
+ export type Response = z.infer<typeof ResponseSchema>;
27
+ }
@@ -3,3 +3,4 @@ export * from './update-product-configuration.command';
3
3
  export * from './get-product-configuration.query';
4
4
  export * from './get-product-configuration-list.query';
5
5
  export * from './delete-product-configuration.command';
6
+ export * from './find-product-configuration-by-attributes.query';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {