synunu-libs 1.0.35 → 1.0.37

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.
Files changed (43) hide show
  1. package/dist/constants/patterns.constant.d.ts +7 -0
  2. package/dist/constants/patterns.constant.d.ts.map +1 -1
  3. package/dist/constants/patterns.constant.js +1 -0
  4. package/dist/constants/patterns.constant.js.map +1 -1
  5. package/dist/constants/permission.constant.d.ts +6 -1
  6. package/dist/constants/permission.constant.d.ts.map +1 -1
  7. package/dist/constants/permission.constant.js +1 -1
  8. package/dist/constants/permission.constant.js.map +1 -1
  9. package/dist/dto/collection-image.input.d.ts +15 -0
  10. package/dist/dto/collection-image.input.d.ts.map +1 -0
  11. package/dist/dto/collection-image.input.js +68 -0
  12. package/dist/dto/collection-image.input.js.map +1 -0
  13. package/dist/dto/collection-rule.input.d.ts +7 -0
  14. package/dist/dto/collection-rule.input.d.ts.map +1 -0
  15. package/dist/dto/collection-rule.input.js +33 -0
  16. package/dist/dto/collection-rule.input.js.map +1 -0
  17. package/dist/dto/collection.dto.d.ts +30 -0
  18. package/dist/dto/collection.dto.d.ts.map +1 -0
  19. package/dist/dto/collection.dto.js +104 -0
  20. package/dist/dto/collection.dto.js.map +1 -0
  21. package/dist/dto/index.d.ts +1 -0
  22. package/dist/dto/index.d.ts.map +1 -1
  23. package/dist/dto/index.js +1 -0
  24. package/dist/dto/index.js.map +1 -1
  25. package/dist/dto/inventory-adjustment.dto.d.ts +1 -1
  26. package/dist/dto/inventory-adjustment.dto.js +1 -1
  27. package/dist/enum/collection-type.enum.d.ts +5 -0
  28. package/dist/enum/collection-type.enum.d.ts.map +1 -0
  29. package/dist/enum/collection-type.enum.js +14 -0
  30. package/dist/enum/collection-type.enum.js.map +1 -0
  31. package/dist/enum/index.d.ts +3 -0
  32. package/dist/enum/index.d.ts.map +1 -1
  33. package/dist/enum/index.js +3 -0
  34. package/dist/enum/index.js.map +1 -1
  35. package/dist/enum/relation-type.enum.d.ts +10 -0
  36. package/dist/enum/relation-type.enum.d.ts.map +1 -0
  37. package/dist/enum/relation-type.enum.js +19 -0
  38. package/dist/enum/relation-type.enum.js.map +1 -0
  39. package/dist/enum/sort-order.enum.d.ts +10 -0
  40. package/dist/enum/sort-order.enum.d.ts.map +1 -0
  41. package/dist/enum/sort-order.enum.js +21 -0
  42. package/dist/enum/sort-order.enum.js.map +1 -0
  43. package/package.json +1 -1
@@ -198,6 +198,13 @@ export declare const MESSAGE_PATTERNS: {
198
198
  readonly UPDATE: `${string}_update`;
199
199
  readonly DELETE: `${string}_delete`;
200
200
  } & ExtraPatterns<never>;
201
+ readonly COLLECTIONS: {
202
+ readonly FIND_ALL: `${string}_find_all`;
203
+ readonly FIND_BY_ID: `${string}_find_by_id`;
204
+ readonly CREATE: `${string}_create`;
205
+ readonly UPDATE: `${string}_update`;
206
+ readonly DELETE: `${string}_delete`;
207
+ } & ExtraPatterns<never>;
201
208
  };
202
209
  readonly ORDER_SERVICE: {
203
210
  readonly ORDER: {
@@ -1 +1 @@
1
- {"version":3,"file":"patterns.constant.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAkBzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGnB,CAAC"}
1
+ {"version":3,"file":"patterns.constant.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAkBzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGnB,CAAC"}
@@ -73,6 +73,7 @@ exports.MESSAGE_PATTERNS = {
73
73
  PRODUCT_TYPES: crudPatterns("productTypes"),
74
74
  RECEIVE_INVENTORIES: crudPatterns("receiveInventories"),
75
75
  INVENTORY_ADJUSTMENTS: crudPatterns("inventoryAdjustments"),
76
+ COLLECTIONS: crudPatterns("collections"),
76
77
  },
77
78
  ORDER_SERVICE: {
78
79
  ORDER: crudPatterns("order"),
@@ -1 +1 @@
1
- {"version":3,"file":"patterns.constant.js","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,YAAY,CACnB,MAAc,EACd,KAAwB;IAExB,MAAM,IAAI,GAAG;QACX,QAAQ,EAAE,GAAG,MAAM,WAAW;QAC9B,UAAU,EAAE,GAAG,MAAM,aAAa;QAClC,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAC1B,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OAAO,CAAC;QAC5B,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;KAC7B;CACO,CAAC"}
1
+ {"version":3,"file":"patterns.constant.js","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,YAAY,CACnB,MAAc,EACd,KAAwB;IAExB,MAAM,IAAI,GAAG;QACX,QAAQ,EAAE,GAAG,MAAM,WAAW;QAC9B,UAAU,EAAE,GAAG,MAAM,aAAa;QAClC,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAC1B,CAAC;AACrB,CAAC;AAEY,QAAA,gBAAgB,GAAG;IAC9B,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,QAAQ,EAAE,eAAe;YACzB,KAAK,EAAE,YAAY;YACnB,aAAa,EAAE,oBAAoB;YACnC,aAAa,EAAE,oBAAoB;SACpC;QACD,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;YACzB,aAAa,EAAE,oBAAoB;YACnC,gBAAgB,EAAE,uBAAuB;YACzC,eAAe,EAAE,sBAAsB;SACxC,CAAC;QACF,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;YACzB,YAAY,EAAE,mBAAmB;SAClC,CAAC;QACF,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE;YACrC,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,wBAAwB;YACrC,eAAe,EAAE,4BAA4B;YAC7C,eAAe,EAAE,4BAA4B;SAC9C,CAAC;QACF,YAAY,EAAE,YAAY,CAAC,cAAc,EAAE;YACzC,YAAY,EAAE,2BAA2B;YACzC,YAAY,EAAE,2BAA2B;SAC1C,CAAC;QACF,MAAM,EAAE,YAAY,CA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YAAY,CAAC,sBAAsB,CAAC;QAE3D,WAAW,EAAE,YAAY,CAAC,aAAa,CAAC;KAC3C;IAEC,aAAa,EAAE;QACb,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,YAAY,CAAC,aAAa,CAAC;QACxC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC;QAC9B,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC;KACnC;IAED,gBAAgB,EAAE;QAChB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC;QAClC,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;YAC/B,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;KACH;IAED,eAAe,EAAE;QACf,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;YAC/B,WAAW,EAAE,qBAAqB;YAClC,YAAY,EAAE,sBAAsB;SACrC,CAAC;QACF,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;QAC5B,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;KAC7B;CACO,CAAC"}
@@ -48,7 +48,6 @@ export declare const PERMISSIONS: {
48
48
  readonly DELETE: `${string}:delete`;
49
49
  };
50
50
  readonly SUPPLIERS: "suppliers";
51
- readonly COLLECTIONS: "collections";
52
51
  readonly PRODUCTS: {
53
52
  readonly READ: `${string}:read`;
54
53
  readonly CREATE: `${string}:create`;
@@ -151,6 +150,12 @@ export declare const PERMISSIONS: {
151
150
  readonly UPDATE: `${string}:update`;
152
151
  readonly DELETE: `${string}:delete`;
153
152
  };
153
+ readonly COLLECTIONS: {
154
+ readonly READ: `${string}:read`;
155
+ readonly CREATE: `${string}:create`;
156
+ readonly UPDATE: `${string}:update`;
157
+ readonly DELETE: `${string}:delete`;
158
+ };
154
159
  };
155
160
  readonly ORDER_SERVICE: {
156
161
  readonly ORDER: {
@@ -1 +1 @@
1
- {"version":3,"file":"permission.constant.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFd,CAAC"}
1
+ {"version":3,"file":"permission.constant.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFd,CAAC"}
@@ -25,7 +25,6 @@ exports.PERMISSIONS = {
25
25
  PRODUCT_SERVICE: {
26
26
  INVENTORIES: crudPermissions("inventories"),
27
27
  SUPPLIERS: "suppliers",
28
- COLLECTIONS: "collections",
29
28
  PRODUCTS: crudPermissions("products"),
30
29
  VARIANTS: crudPermissions("variants"),
31
30
  PRODUCTIMAGES: crudPermissions("productImages"),
@@ -43,6 +42,7 @@ exports.PERMISSIONS = {
43
42
  PRODUCT_TYPES: crudPermissions("productTypes"),
44
43
  RECEIVE_INVENTORIES: crudPermissions("receiveInventories"),
45
44
  INVENTORY_ADJUSTMENTS: crudPermissions("inventoryAdjustments"),
45
+ COLLECTIONS: crudPermissions("collections"),
46
46
  },
47
47
  ORDER_SERVICE: {
48
48
  ORDER: crudPermissions("order"),
@@ -1 +1 @@
1
- {"version":3,"file":"permission.constant.js","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,eAAe,CACtB,MAAc,EACd,KAA2B;IAE3B,MAAM,IAAI,GAAG;QACX,IAAI,EAAE,GAAG,MAAM,OAAO;QACtB,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAEY,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE;QACL,GAAG,EAAE,SAAS;KACf;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,eAAe,CAAC,aAAa,CAAC;QACrC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC;QAC3C,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC;QAC/C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;IACD,eAAe,EAAE;QACf,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC;QAC3C,SAAS,EAAE,WAAW;QACtB,WAAW,EAAE,aAAa;QAC1B,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;QACrC,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;QACrC,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC;QAC/C,cAAc,EAAE,eAAe,CAAC,eAAe,CAAC;QAChD,gBAAgB,EAAE,eAAe,CAAC,iBAAiB,CAAC;QACpD,iBAAiB,EAAE,eAAe,CAAC,kBAAkB,CAAC;QACtD,YAAY,EAAE,eAAe,CAAC,c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ACpB,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EAAE,mBAAmB;YAC9B,KAAK,EAAE,eAAe;SACvB;KACF;IAED,QAAQ,EAAE;QACR,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,GAAG,EAAE,cAAc;QACnB,eAAe,EAAE,0BAA0B;QAC3C,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,aAAa,EAAE,eAAe;QAC9B,KAAK,EAAE,OAAO;QACd,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;KAC9C;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;CACO,CAAC"}
1
+ {"version":3,"file":"permission.constant.js","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,eAAe,CACtB,MAAc,EACd,KAA2B;IAE3B,MAAM,IAAI,GAAG;QACX,IAAI,EAAE,GAAG,MAAM,OAAO;QACtB,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAEY,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE;QACL,GAAG,EAAE,SAAS;KACf;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,eAAe,CAAC,aAAa,CAAC;QACrC,KAAK,EAAE,eAAe,C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AAe,CAAC,UAAU,CAAC;KACtC;CACO,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare class CollectionImageInput {
2
+ src?: string;
3
+ thumbnailSrc?: string;
4
+ alt?: string;
5
+ extension?: string;
6
+ name?: string;
7
+ contentType?: string;
8
+ mimeType?: string;
9
+ size?: number;
10
+ width?: number;
11
+ height?: number;
12
+ createdAt?: Date;
13
+ updatedAt?: Date;
14
+ }
15
+ //# sourceMappingURL=collection-image.input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-image.input.d.ts","sourceRoot":"","sources":["../../src/dto/collection-image.input.ts"],"names":[],"mappings":"AAEA,qBACa,oBAAoB;IAE/B,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CollectionImageInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ let CollectionImageInput = class CollectionImageInput {
15
+ };
16
+ exports.CollectionImageInput = CollectionImageInput;
17
+ __decorate([
18
+ (0, graphql_1.Field)({ nullable: true }),
19
+ __metadata("design:type", String)
20
+ ], CollectionImageInput.prototype, "src", void 0);
21
+ __decorate([
22
+ (0, graphql_1.Field)({ nullable: true }),
23
+ __metadata("design:type", String)
24
+ ], CollectionImageInput.prototype, "thumbnailSrc", void 0);
25
+ __decorate([
26
+ (0, graphql_1.Field)({ nullable: true }),
27
+ __metadata("design:type", String)
28
+ ], CollectionImageInput.prototype, "alt", void 0);
29
+ __decorate([
30
+ (0, graphql_1.Field)({ nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], CollectionImageInput.prototype, "extension", void 0);
33
+ __decorate([
34
+ (0, graphql_1.Field)({ nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], CollectionImageInput.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, graphql_1.Field)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], CollectionImageInput.prototype, "contentType", void 0);
41
+ __decorate([
42
+ (0, graphql_1.Field)({ nullable: true }),
43
+ __metadata("design:type", String)
44
+ ], CollectionImageInput.prototype, "mimeType", void 0);
45
+ __decorate([
46
+ (0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], CollectionImageInput.prototype, "size", void 0);
49
+ __decorate([
50
+ (0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
51
+ __metadata("design:type", Number)
52
+ ], CollectionImageInput.prototype, "width", void 0);
53
+ __decorate([
54
+ (0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
55
+ __metadata("design:type", Number)
56
+ ], CollectionImageInput.prototype, "height", void 0);
57
+ __decorate([
58
+ (0, graphql_1.Field)({ nullable: true }),
59
+ __metadata("design:type", Date)
60
+ ], CollectionImageInput.prototype, "createdAt", void 0);
61
+ __decorate([
62
+ (0, graphql_1.Field)({ nullable: true }),
63
+ __metadata("design:type", Date)
64
+ ], CollectionImageInput.prototype, "updatedAt", void 0);
65
+ exports.CollectionImageInput = CollectionImageInput = __decorate([
66
+ (0, graphql_1.InputType)()
67
+ ], CollectionImageInput);
68
+ //# sourceMappingURL=collection-image.input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-image.input.js","sourceRoot":"","sources":["../../src/dto/collection-image.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AAGjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAoChC,CAAA;AApCY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACb;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACJ;AAGtB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACb;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAGnB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACL;AAGrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACvB;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACtB;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACrB;AAGhB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACd,IAAI;uDAAC;AAGjB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACd,IAAI;uDAAC;+BAnCN,oBAAoB;IADhC,IAAA,mBAAS,GAAE;GACC,oBAAoB,CAoChC"}
@@ -0,0 +1,7 @@
1
+ import { ERelationType } from "../enum";
2
+ export declare class CollectionRuleInput {
3
+ column?: string;
4
+ relation?: ERelationType;
5
+ condition?: string;
6
+ }
7
+ //# sourceMappingURL=collection-rule.input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-rule.input.d.ts","sourceRoot":"","sources":["../../src/dto/collection-rule.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,qBACa,mBAAmB;IAE9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAGzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CollectionRuleInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const enum_1 = require("../enum");
15
+ let CollectionRuleInput = class CollectionRuleInput {
16
+ };
17
+ exports.CollectionRuleInput = CollectionRuleInput;
18
+ __decorate([
19
+ (0, graphql_1.Field)({ nullable: true }),
20
+ __metadata("design:type", String)
21
+ ], CollectionRuleInput.prototype, "column", void 0);
22
+ __decorate([
23
+ (0, graphql_1.Field)(() => enum_1.ERelationType, { nullable: true }),
24
+ __metadata("design:type", String)
25
+ ], CollectionRuleInput.prototype, "relation", void 0);
26
+ __decorate([
27
+ (0, graphql_1.Field)({ nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], CollectionRuleInput.prototype, "condition", void 0);
30
+ exports.CollectionRuleInput = CollectionRuleInput = __decorate([
31
+ (0, graphql_1.InputType)()
32
+ ], CollectionRuleInput);
33
+ //# sourceMappingURL=collection-rule.input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-rule.input.js","sourceRoot":"","sources":["../../src/dto/collection-rule.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,kCAAwC;AAGjC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAS/B,CAAA;AATY,kDAAmB;AAE9B;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACV;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oBAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACtB;AAGzB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;8BARR,mBAAmB;IAD/B,IAAA,mBAAS,GAAE;GACC,mBAAmB,CAS/B"}
@@ -0,0 +1,30 @@
1
+ import { DateRangeInput } from "./date-range.input";
2
+ import { ECollectionType, ESortOrder } from "../enum";
3
+ import { CollectionImageInput } from "./collection-image.input";
4
+ import { CollectionRuleInput } from "./collection-rule.input";
5
+ export declare class CreateCollectionInput {
6
+ name: string;
7
+ alias: string;
8
+ description?: string;
9
+ publishedOn?: Date;
10
+ metaTitle?: string;
11
+ metaDescription?: string;
12
+ templateLayout?: string;
13
+ sortOrder?: ESortOrder;
14
+ image?: CollectionImageInput;
15
+ rules?: CollectionRuleInput[];
16
+ type?: ECollectionType;
17
+ disjunctive?: boolean;
18
+ }
19
+ export declare class CollectionFilterInput {
20
+ createdAt?: DateRangeInput;
21
+ name?: string;
22
+ alias?: string;
23
+ type?: ECollectionType;
24
+ }
25
+ declare const UpdateCollectionInput_base: import("@nestjs/common").Type<Partial<CreateCollectionInput>>;
26
+ export declare class UpdateCollectionInput extends UpdateCollectionInput_base {
27
+ _id: string;
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=collection.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.dto.d.ts","sourceRoot":"","sources":["../../src/dto/collection.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,qBACa,qBAAqB;IAEhC,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,IAAI,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,SAAS,CAAC,EAAE,UAAU,CAAC;IAGvB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAG7B,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAG9B,IAAI,CAAC,EAAE,eAAe,CAAC;IAGvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBACa,qBAAqB;IAEhC,SAAS,CAAC,EAAE,cAAc,CAAC;IAG3B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;;AAED,qBACa,qBAAsB,SAAQ,0BAAkC;IAE3E,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdateCollectionInput = exports.CollectionFilterInput = exports.CreateCollectionInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const date_range_input_1 = require("./date-range.input");
15
+ const enum_1 = require("../enum");
16
+ const collection_image_input_1 = require("./collection-image.input");
17
+ const collection_rule_input_1 = require("./collection-rule.input");
18
+ let CreateCollectionInput = class CreateCollectionInput {
19
+ };
20
+ exports.CreateCollectionInput = CreateCollectionInput;
21
+ __decorate([
22
+ (0, graphql_1.Field)(),
23
+ __metadata("design:type", String)
24
+ ], CreateCollectionInput.prototype, "name", void 0);
25
+ __decorate([
26
+ (0, graphql_1.Field)(),
27
+ __metadata("design:type", String)
28
+ ], CreateCollectionInput.prototype, "alias", void 0);
29
+ __decorate([
30
+ (0, graphql_1.Field)({ nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], CreateCollectionInput.prototype, "description", void 0);
33
+ __decorate([
34
+ (0, graphql_1.Field)({ nullable: true }),
35
+ __metadata("design:type", Date)
36
+ ], CreateCollectionInput.prototype, "publishedOn", void 0);
37
+ __decorate([
38
+ (0, graphql_1.Field)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], CreateCollectionInput.prototype, "metaTitle", void 0);
41
+ __decorate([
42
+ (0, graphql_1.Field)({ nullable: true }),
43
+ __metadata("design:type", String)
44
+ ], CreateCollectionInput.prototype, "metaDescription", void 0);
45
+ __decorate([
46
+ (0, graphql_1.Field)({ nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], CreateCollectionInput.prototype, "templateLayout", void 0);
49
+ __decorate([
50
+ (0, graphql_1.Field)(() => enum_1.ESortOrder, { nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], CreateCollectionInput.prototype, "sortOrder", void 0);
53
+ __decorate([
54
+ (0, graphql_1.Field)(() => collection_image_input_1.CollectionImageInput, { nullable: true }),
55
+ __metadata("design:type", collection_image_input_1.CollectionImageInput)
56
+ ], CreateCollectionInput.prototype, "image", void 0);
57
+ __decorate([
58
+ (0, graphql_1.Field)(() => [collection_rule_input_1.CollectionRuleInput], { nullable: true }),
59
+ __metadata("design:type", Array)
60
+ ], CreateCollectionInput.prototype, "rules", void 0);
61
+ __decorate([
62
+ (0, graphql_1.Field)(() => enum_1.ECollectionType, { nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], CreateCollectionInput.prototype, "type", void 0);
65
+ __decorate([
66
+ (0, graphql_1.Field)({ nullable: true }),
67
+ __metadata("design:type", Boolean)
68
+ ], CreateCollectionInput.prototype, "disjunctive", void 0);
69
+ exports.CreateCollectionInput = CreateCollectionInput = __decorate([
70
+ (0, graphql_1.InputType)()
71
+ ], CreateCollectionInput);
72
+ let CollectionFilterInput = class CollectionFilterInput {
73
+ };
74
+ exports.CollectionFilterInput = CollectionFilterInput;
75
+ __decorate([
76
+ (0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
77
+ __metadata("design:type", date_range_input_1.DateRangeInput)
78
+ ], CollectionFilterInput.prototype, "createdAt", void 0);
79
+ __decorate([
80
+ (0, graphql_1.Field)({ nullable: true }),
81
+ __metadata("design:type", String)
82
+ ], CollectionFilterInput.prototype, "name", void 0);
83
+ __decorate([
84
+ (0, graphql_1.Field)({ nullable: true }),
85
+ __metadata("design:type", String)
86
+ ], CollectionFilterInput.prototype, "alias", void 0);
87
+ __decorate([
88
+ (0, graphql_1.Field)(() => enum_1.ECollectionType, { nullable: true }),
89
+ __metadata("design:type", String)
90
+ ], CollectionFilterInput.prototype, "type", void 0);
91
+ exports.CollectionFilterInput = CollectionFilterInput = __decorate([
92
+ (0, graphql_1.InputType)()
93
+ ], CollectionFilterInput);
94
+ let UpdateCollectionInput = class UpdateCollectionInput extends (0, graphql_1.PartialType)(CreateCollectionInput) {
95
+ };
96
+ exports.UpdateCollectionInput = UpdateCollectionInput;
97
+ __decorate([
98
+ (0, graphql_1.Field)(() => String),
99
+ __metadata("design:type", String)
100
+ ], UpdateCollectionInput.prototype, "_id", void 0);
101
+ exports.UpdateCollectionInput = UpdateCollectionInput = __decorate([
102
+ (0, graphql_1.InputType)()
103
+ ], UpdateCollectionInput);
104
+ //# sourceMappingURL=collection.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.dto.js","sourceRoot":"","sources":["../../src/dto/collection.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,yDAAoD;AACpD,kCAAsD;AACtD,qEAAgE;AAChE,mEAA8D;AAGvD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAoCjC,CAAA;AApCY,sDAAqB;A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iCAAc;wDAAC;AAG3B;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACX;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sBAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC1B;gCAXZ,qBAAqB;IADjC,IAAA,mBAAS,GAAE;GACC,qBAAqB,CAYjC;AAGM,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,IAAA,qBAAW,EAAC,qBAAqB,CAAC;CAG5E,CAAA;AAHY,sDAAqB;AAEhC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kDACR;gCAFD,qBAAqB;IADjC,IAAA,mBAAS,GAAE;GACC,qBAAqB,CAGjC"}
@@ -19,6 +19,7 @@ export * from "./tag.dto";
19
19
  export * from "./vendor.dto";
20
20
  export * from "./receive-inventory.dto";
21
21
  export * from "./inventory-adjustment.dto";
22
+ export * from "./collection.dto";
22
23
  export * from "./date-range.input";
23
24
  export * from "./translation.input";
24
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AAGjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
package/dist/dto/index.js CHANGED
@@ -36,6 +36,7 @@ __exportStar(require("./tag.dto"), exports);
36
36
  __exportStar(require("./vendor.dto"), exports);
37
37
  __exportStar(require("./receive-inventory.dto"), exports);
38
38
  __exportStar(require("./inventory-adjustment.dto"), exports);
39
+ __exportStar(require("./collection.dto"), exports);
39
40
  // share
40
41
  __exportStar(require("./date-range.input"), exports);
41
42
  __exportStar(require("./translation.input"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,4CAA0B;AAC1B,+CAA6B;AAC7B,0DAAwC;AACxC,6DAA2C;AAE3C,QAAQ;AACR,qDAAmC;AACnC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,4CAA0B;AAC1B,+CAA6B;AAC7B,0DAAwC;AACxC,6DAA2C;AAC3C,mDAAiC;AAEjC,QAAQ;AACR,qDAAmC;AACnC,sDAAoC"}
@@ -13,7 +13,7 @@ export declare class CreateInventoryAdjustmentInput {
13
13
  referenceDocumentType?: string;
14
14
  referenceDocumentName?: string;
15
15
  referenceDocumentUrl?: string;
16
- referenceDocumentId?: number;
16
+ referenceDocumentId?: string;
17
17
  referenceDocumentLineId?: number;
18
18
  actorId?: number;
19
19
  actorName?: string;
@@ -63,7 +63,7 @@ __decorate([
63
63
  ], CreateInventoryAdjustmentInput.prototype, "referenceDocumentUrl", void 0);
64
64
  __decorate([
65
65
  (0, graphql_1.Field)({ nullable: true }),
66
- __metadata("design:type", Number)
66
+ __metadata("design:type", String)
67
67
  ], CreateInventoryAdjustmentInput.prototype, "referenceDocumentId", void 0);
68
68
  __decorate([
69
69
  (0, graphql_1.Field)({ nullable: true }),
@@ -0,0 +1,5 @@
1
+ export declare enum ECollectionType {
2
+ CUSTOM = "CUSTOM",
3
+ SMART = "SMART"
4
+ }
5
+ //# sourceMappingURL=collection-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-type.enum.d.ts","sourceRoot":"","sources":["../../src/enum/collection-type.enum.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECollectionType = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ var ECollectionType;
6
+ (function (ECollectionType) {
7
+ ECollectionType["CUSTOM"] = "CUSTOM";
8
+ ECollectionType["SMART"] = "SMART";
9
+ })(ECollectionType || (exports.ECollectionType = ECollectionType = {}));
10
+ (0, graphql_1.registerEnumType)(ECollectionType, {
11
+ name: "CollectionType",
12
+ description: "Type of the collection: custom or smart",
13
+ });
14
+ //# sourceMappingURL=collection-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-type.enum.js","sourceRoot":"","sources":["../../src/enum/collection-type.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAEnD,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,kCAAe,CAAA;AACjB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAA,0BAAgB,EAAC,eAAe,EAAE;IAChC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,yCAAyC;CACvD,CAAC,CAAC"}
@@ -1,3 +1,6 @@
1
1
  export * from "./account-status.enum";
2
2
  export * from "./use.enum";
3
+ export * from "./relation-type.enum";
4
+ export * from "./sort-order.enum";
5
+ export * from "./collection-type.enum";
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
@@ -16,4 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account-status.enum"), exports);
18
18
  __exportStar(require("./use.enum"), exports);
19
+ __exportStar(require("./relation-type.enum"), exports);
20
+ __exportStar(require("./sort-order.enum"), exports);
21
+ __exportStar(require("./collection-type.enum"), exports);
19
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC"}
@@ -0,0 +1,10 @@
1
+ export declare enum ERelationType {
2
+ EQUALS = "EQUALS",
3
+ STARTS_WITH = "STARTS_WITH",
4
+ ENDS_WITH = "ENDS_WITH",
5
+ CONTAINS = "CONTAINS",
6
+ NOT_CONTAINS = "NOT_CONTAINS",
7
+ GREATER_THAN = "GREATER_THAN",
8
+ LESS_THAN = "LESS_THAN"
9
+ }
10
+ //# sourceMappingURL=relation-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relation-type.enum.d.ts","sourceRoot":"","sources":["../../src/enum/relation-type.enum.ts"],"names":[],"mappings":"AAEA,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;CACxB"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERelationType = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ var ERelationType;
6
+ (function (ERelationType) {
7
+ ERelationType["EQUALS"] = "EQUALS";
8
+ ERelationType["STARTS_WITH"] = "STARTS_WITH";
9
+ ERelationType["ENDS_WITH"] = "ENDS_WITH";
10
+ ERelationType["CONTAINS"] = "CONTAINS";
11
+ ERelationType["NOT_CONTAINS"] = "NOT_CONTAINS";
12
+ ERelationType["GREATER_THAN"] = "GREATER_THAN";
13
+ ERelationType["LESS_THAN"] = "LESS_THAN";
14
+ })(ERelationType || (exports.ERelationType = ERelationType = {}));
15
+ (0, graphql_1.registerEnumType)(ERelationType, {
16
+ name: "ERelationType",
17
+ description: "Các loại điều kiện so sánh cho CollectionRule, dùng để xác định cách so sánh giá trị cột với điều kiện.",
18
+ });
19
+ //# sourceMappingURL=relation-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relation-type.enum.js","sourceRoot":"","sources":["../../src/enum/relation-type.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAEnD,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,4CAA2B,CAAA;IAC3B,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,8CAA6B,CAAA;IAC7B,8CAA6B,CAAA;IAC7B,wCAAuB,CAAA;AACzB,CAAC,EARW,aAAa,6BAAb,aAAa,QAQxB;AAED,IAAA,0BAAgB,EAAC,aAAa,EAAE;IAC9B,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,yGAAyG;CAC5G,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare enum ESortOrder {
2
+ ALPHA_ASC = "ALPHA_ASC",
3
+ MANUAL = "MANUAL",
4
+ ALPHA_DESC = "ALPHA_DESC",
5
+ PRICE_DESC = "PRICE_DESC",
6
+ PRICE_ASC = "PRICE_ASC",
7
+ CREATED_DESC = "CREATED_DESC",
8
+ CREATED_ASC = "CREATED_ASC"
9
+ }
10
+ //# sourceMappingURL=sort-order.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-order.enum.d.ts","sourceRoot":"","sources":["../../src/enum/sort-order.enum.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;CAC5B"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESortOrder = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ // Enum định nghĩa các giá trị hợp lệ cho sortOrder
6
+ var ESortOrder;
7
+ (function (ESortOrder) {
8
+ ESortOrder["ALPHA_ASC"] = "ALPHA_ASC";
9
+ ESortOrder["MANUAL"] = "MANUAL";
10
+ ESortOrder["ALPHA_DESC"] = "ALPHA_DESC";
11
+ ESortOrder["PRICE_DESC"] = "PRICE_DESC";
12
+ ESortOrder["PRICE_ASC"] = "PRICE_ASC";
13
+ ESortOrder["CREATED_DESC"] = "CREATED_DESC";
14
+ ESortOrder["CREATED_ASC"] = "CREATED_ASC";
15
+ })(ESortOrder || (exports.ESortOrder = ESortOrder = {}));
16
+ // Nếu dùng GraphQL
17
+ (0, graphql_1.registerEnumType)(ESortOrder, {
18
+ name: "ESortOrder",
19
+ description: "Các kiểu sắp xếp cho collection hoặc sản phẩm",
20
+ });
21
+ //# sourceMappingURL=sort-order.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-order.enum.js","sourceRoot":"","sources":["../../src/enum/sort-order.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAEnD,mDAAmD;AACnD,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;IACzB,uCAAyB,CAAA;IACzB,qCAAuB,CAAA;IACvB,2CAA6B,CAAA;IAC7B,yCAA2B,CAAA;AAC7B,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAED,mBAAmB;AACnB,IAAA,0BAAgB,EAAC,UAAU,EAAE;IAC3B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,+CAA+C;CAC7D,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synunu-libs",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Shared DTOs, constants, and utilities for Synunu microservices",