synunu-libs 1.0.22 → 1.0.23

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.
@@ -1,18 +1,22 @@
1
- import { TranslationInput } from "./translation.input";
2
- import { UserType } from "../enum";
3
1
  import { DateRangeInput } from "./date-range.input";
2
+ import { CreateVariantInput } from "./variant.dto";
3
+ export declare class ProductOptionInput {
4
+ name: string;
5
+ values: string[];
6
+ }
4
7
  export declare class CreateProductInput {
5
- key: string;
6
- label: TranslationInput;
7
- icon?: string;
8
- rootPath?: string;
9
- path?: TranslationInput;
10
- userType?: UserType;
11
- order?: number;
12
- visible?: boolean;
13
- permissions?: string[];
14
- parent?: string | null;
15
- isActive?: boolean;
8
+ name: string;
9
+ alias?: string;
10
+ meta_title?: string;
11
+ meta_description?: string;
12
+ published_on?: Date;
13
+ template_layout?: string;
14
+ content?: string;
15
+ tags?: string[];
16
+ images?: string[];
17
+ variants: CreateVariantInput[];
18
+ options: ProductOptionInput[];
19
+ default_variant_unit?: string;
16
20
  }
17
21
  export declare class ProductFilterInput {
18
22
  createdAt?: DateRangeInput;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,kBAAkB;IAE/B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO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__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UpdateProductInput = exports.ProductFilterInput = exports.CreateProductInput = void 0;
12
+ exports.UpdateProductInput = exports.ProductFilterInput = exports.CreateProductInput = exports.ProductOptionInput = void 0;
13
13
  const graphql_1 = require("@nestjs/graphql");
14
- const translation_input_1 = require("./translation.input");
15
- const enum_1 = require("../enum");
16
14
  const date_range_input_1 = require("./date-range.input");
15
+ const variant_dto_1 = require("./variant.dto");
16
+ let ProductOptionInput = class ProductOptionInput {
17
+ };
18
+ exports.ProductOptionInput = ProductOptionInput;
19
+ __decorate([
20
+ (0, graphql_1.Field)(),
21
+ __metadata("design:type", String)
22
+ ], ProductOptionInput.prototype, "name", void 0);
23
+ __decorate([
24
+ (0, graphql_1.Field)(() => [String]),
25
+ __metadata("design:type", Array)
26
+ ], ProductOptionInput.prototype, "values", void 0);
27
+ exports.ProductOptionInput = ProductOptionInput = __decorate([
28
+ (0, graphql_1.InputType)()
29
+ ], ProductOptionInput);
17
30
  let CreateProductInput = class CreateProductInput {
18
31
  };
19
32
  exports.CreateProductInput = CreateProductInput;
20
33
  __decorate([
21
34
  (0, graphql_1.Field)(),
22
35
  __metadata("design:type", String)
23
- ], CreateProductInput.prototype, "key", void 0);
36
+ ], CreateProductInput.prototype, "name", void 0);
24
37
  __decorate([
25
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput),
26
- __metadata("design:type", translation_input_1.TranslationInput)
27
- ], CreateProductInput.prototype, "label", void 0);
38
+ (0, graphql_1.Field)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], CreateProductInput.prototype, "alias", void 0);
28
41
  __decorate([
29
42
  (0, graphql_1.Field)({ nullable: true }),
30
43
  __metadata("design:type", String)
31
- ], CreateProductInput.prototype, "icon", void 0);
44
+ ], CreateProductInput.prototype, "meta_title", void 0);
32
45
  __decorate([
33
46
  (0, graphql_1.Field)({ nullable: true }),
34
47
  __metadata("design:type", String)
35
- ], CreateProductInput.prototype, "rootPath", void 0);
48
+ ], CreateProductInput.prototype, "meta_description", void 0);
36
49
  __decorate([
37
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
38
- __metadata("design:type", translation_input_1.TranslationInput)
39
- ], CreateProductInput.prototype, "path", void 0);
50
+ (0, graphql_1.Field)({ nullable: true }),
51
+ __metadata("design:type", Date)
52
+ ], CreateProductInput.prototype, "published_on", void 0);
40
53
  __decorate([
41
- (0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
54
+ (0, graphql_1.Field)({ nullable: true }),
42
55
  __metadata("design:type", String)
43
- ], CreateProductInput.prototype, "userType", void 0);
56
+ ], CreateProductInput.prototype, "template_layout", void 0);
44
57
  __decorate([
45
- (0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
46
- __metadata("design:type", Number)
47
- ], CreateProductInput.prototype, "order", void 0);
58
+ (0, graphql_1.Field)({ nullable: true }),
59
+ __metadata("design:type", String)
60
+ ], CreateProductInput.prototype, "content", void 0);
48
61
  __decorate([
49
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
50
- __metadata("design:type", Boolean)
51
- ], CreateProductInput.prototype, "visible", void 0);
62
+ (0, graphql_1.Field)(() => [String], { nullable: "itemsAndList" }),
63
+ __metadata("design:type", Array)
64
+ ], CreateProductInput.prototype, "tags", void 0);
52
65
  __decorate([
53
- (0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
66
+ (0, graphql_1.Field)(() => [String], { nullable: "itemsAndList" }),
54
67
  __metadata("design:type", Array)
55
- ], CreateProductInput.prototype, "permissions", void 0);
68
+ ], CreateProductInput.prototype, "images", void 0);
56
69
  __decorate([
57
- (0, graphql_1.Field)(() => String, { nullable: true }),
58
- __metadata("design:type", Object)
59
- ], CreateProductInput.prototype, "parent", void 0);
70
+ (0, graphql_1.Field)(() => [variant_dto_1.CreateVariantInput]),
71
+ __metadata("design:type", Array)
72
+ ], CreateProductInput.prototype, "variants", void 0);
60
73
  __decorate([
61
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
62
- __metadata("design:type", Boolean)
63
- ], CreateProductInput.prototype, "isActive", void 0);
74
+ (0, graphql_1.Field)(() => [ProductOptionInput]),
75
+ __metadata("design:type", Array)
76
+ ], CreateProductInput.prototype, "options", void 0);
77
+ __decorate([
78
+ (0, graphql_1.Field)({ nullable: true }),
79
+ __metadata("design:type", String)
80
+ ], CreateProductInput.prototype, "default_variant_unit", void 0);
64
81
  exports.CreateProductInput = CreateProductInput = __decorate([
65
82
  (0, graphql_1.InputType)()
66
83
  ], CreateProductInput);
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../src/dto/product.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAiC9B,CAAA;AAjCY,gDAAkB;AAE/B;IADC,IAAA,eAAK,GAAE;;+CACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;iDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,oCAAgB;gDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,eAAQ,CAAC,KAAK,EAAE,CAAC;;oDACpD;AA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IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACI;6BAnCnB,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAoC9B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAG9B,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;qDAAC;6BAFhB,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAG9B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,IAAA,qBAAW,EAAC,kBAAkB,CAAC;CAGtE,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACR;6BAFD,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAG9B"}
@@ -1,18 +1,31 @@
1
- import { TranslationInput } from "./translation.input";
2
- import { UserType } from "../enum";
3
1
  import { DateRangeInput } from "./date-range.input";
2
+ export declare class InventoryQuantityInput {
3
+ location_id: number;
4
+ on_hand: number;
5
+ available: number;
6
+ }
4
7
  export declare class CreateVariantInput {
5
- key: string;
6
- label: TranslationInput;
7
- icon?: string;
8
- rootPath?: string;
9
- path?: TranslationInput;
10
- userType?: UserType;
11
- order?: number;
12
- visible?: boolean;
13
- permissions?: string[];
14
- parent?: string | null;
15
- isActive?: boolean;
8
+ barcode?: string;
9
+ sku: string;
10
+ price: number;
11
+ compare_at_price?: number;
12
+ option1?: string;
13
+ option2?: string;
14
+ option3?: string;
15
+ taxable: boolean;
16
+ inventory_management?: string;
17
+ inventory_policy?: string;
18
+ lot_management?: boolean;
19
+ alert_before_expired_in_day?: number;
20
+ requires_shipping?: boolean;
21
+ weight_unit?: string;
22
+ weight?: number;
23
+ unit?: string;
24
+ inventory_quantities: InventoryQuantityInput[];
25
+ cost_price?: number;
26
+ local_status?: string;
27
+ type?: string;
28
+ uuid: string;
16
29
  }
17
30
  export declare class VariantFilterInput {
18
31
  createdAt?: DateRangeInput;
@@ -1 +1 @@
1
- {"version":3,"file":"variant.dto.d.ts","sourceRoot":"","sources":["../../src/dto/variant.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,kBAAkB;IAE/B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,kBAAkB;IAE/B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,kBAAmB,SAAQ,uBAA+B;IAEvE,GAAG,EAAE,MAAM,CAAC;CACX"}
1
+ {"version":3,"file":"variant.dto.d.ts","sourceRoot":"","sources":["../../src/dto/variant.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,sBAAsB;IAEjC,WAAW,EAAE,MAAM,CAAC;IAGpB,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBACa,kBAAkB;IAE7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;IAGd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,OAAO,CAAC;IAGjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAGrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAG5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,oBAAoB,EAAE,sBAAsB,EAAE,CAAC;IAG/C,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBACa,kBAAkB;IAE7B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,kBAAmB,SAAQ,uBAA+B;IAErE,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -9,58 +9,114 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UpdateVariantInput = exports.VariantFilterInput = exports.CreateVariantInput = void 0;
12
+ exports.UpdateVariantInput = exports.VariantFilterInput = exports.CreateVariantInput = exports.InventoryQuantityInput = void 0;
13
13
  const graphql_1 = require("@nestjs/graphql");
14
- const translation_input_1 = require("./translation.input");
15
- const enum_1 = require("../enum");
16
14
  const date_range_input_1 = require("./date-range.input");
15
+ let InventoryQuantityInput = class InventoryQuantityInput {
16
+ };
17
+ exports.InventoryQuantityInput = InventoryQuantityInput;
18
+ __decorate([
19
+ (0, graphql_1.Field)(() => graphql_1.Float),
20
+ __metadata("design:type", Number)
21
+ ], InventoryQuantityInput.prototype, "location_id", void 0);
22
+ __decorate([
23
+ (0, graphql_1.Field)(() => graphql_1.Float),
24
+ __metadata("design:type", Number)
25
+ ], InventoryQuantityInput.prototype, "on_hand", void 0);
26
+ __decorate([
27
+ (0, graphql_1.Field)(() => graphql_1.Float),
28
+ __metadata("design:type", Number)
29
+ ], InventoryQuantityInput.prototype, "available", void 0);
30
+ exports.InventoryQuantityInput = InventoryQuantityInput = __decorate([
31
+ (0, graphql_1.InputType)()
32
+ ], InventoryQuantityInput);
17
33
  let CreateVariantInput = class CreateVariantInput {
18
34
  };
19
35
  exports.CreateVariantInput = CreateVariantInput;
36
+ __decorate([
37
+ (0, graphql_1.Field)({ nullable: true }),
38
+ __metadata("design:type", String)
39
+ ], CreateVariantInput.prototype, "barcode", void 0);
20
40
  __decorate([
21
41
  (0, graphql_1.Field)(),
22
42
  __metadata("design:type", String)
23
- ], CreateVariantInput.prototype, "key", void 0);
43
+ ], CreateVariantInput.prototype, "sku", void 0);
24
44
  __decorate([
25
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput),
26
- __metadata("design:type", translation_input_1.TranslationInput)
27
- ], CreateVariantInput.prototype, "label", void 0);
45
+ (0, graphql_1.Field)(() => graphql_1.Float),
46
+ __metadata("design:type", Number)
47
+ ], CreateVariantInput.prototype, "price", void 0);
48
+ __decorate([
49
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
50
+ __metadata("design:type", Number)
51
+ ], CreateVariantInput.prototype, "compare_at_price", void 0);
28
52
  __decorate([
29
53
  (0, graphql_1.Field)({ nullable: true }),
30
54
  __metadata("design:type", String)
31
- ], CreateVariantInput.prototype, "icon", void 0);
55
+ ], CreateVariantInput.prototype, "option1", void 0);
32
56
  __decorate([
33
57
  (0, graphql_1.Field)({ nullable: true }),
34
58
  __metadata("design:type", String)
35
- ], CreateVariantInput.prototype, "rootPath", void 0);
59
+ ], CreateVariantInput.prototype, "option2", void 0);
36
60
  __decorate([
37
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
38
- __metadata("design:type", translation_input_1.TranslationInput)
39
- ], CreateVariantInput.prototype, "path", void 0);
61
+ (0, graphql_1.Field)({ nullable: true }),
62
+ __metadata("design:type", String)
63
+ ], CreateVariantInput.prototype, "option3", void 0);
40
64
  __decorate([
41
- (0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
65
+ (0, graphql_1.Field)(),
66
+ __metadata("design:type", Boolean)
67
+ ], CreateVariantInput.prototype, "taxable", void 0);
68
+ __decorate([
69
+ (0, graphql_1.Field)({ nullable: true }),
70
+ __metadata("design:type", String)
71
+ ], CreateVariantInput.prototype, "inventory_management", void 0);
72
+ __decorate([
73
+ (0, graphql_1.Field)({ nullable: true }),
42
74
  __metadata("design:type", String)
43
- ], CreateVariantInput.prototype, "userType", void 0);
75
+ ], CreateVariantInput.prototype, "inventory_policy", void 0);
44
76
  __decorate([
45
- (0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
77
+ (0, graphql_1.Field)({ nullable: true }),
78
+ __metadata("design:type", Boolean)
79
+ ], CreateVariantInput.prototype, "lot_management", void 0);
80
+ __decorate([
81
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
46
82
  __metadata("design:type", Number)
47
- ], CreateVariantInput.prototype, "order", void 0);
83
+ ], CreateVariantInput.prototype, "alert_before_expired_in_day", void 0);
48
84
  __decorate([
49
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
85
+ (0, graphql_1.Field)({ nullable: true }),
50
86
  __metadata("design:type", Boolean)
51
- ], CreateVariantInput.prototype, "visible", void 0);
87
+ ], CreateVariantInput.prototype, "requires_shipping", void 0);
88
+ __decorate([
89
+ (0, graphql_1.Field)({ nullable: true }),
90
+ __metadata("design:type", String)
91
+ ], CreateVariantInput.prototype, "weight_unit", void 0);
92
+ __decorate([
93
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
94
+ __metadata("design:type", Number)
95
+ ], CreateVariantInput.prototype, "weight", void 0);
96
+ __decorate([
97
+ (0, graphql_1.Field)({ nullable: true }),
98
+ __metadata("design:type", String)
99
+ ], CreateVariantInput.prototype, "unit", void 0);
52
100
  __decorate([
53
- (0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
101
+ (0, graphql_1.Field)(() => [InventoryQuantityInput]),
54
102
  __metadata("design:type", Array)
55
- ], CreateVariantInput.prototype, "permissions", void 0);
103
+ ], CreateVariantInput.prototype, "inventory_quantities", void 0);
56
104
  __decorate([
57
- (0, graphql_1.Field)(() => String, { nullable: true }),
58
- __metadata("design:type", Object)
59
- ], CreateVariantInput.prototype, "parent", void 0);
105
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
106
+ __metadata("design:type", Number)
107
+ ], CreateVariantInput.prototype, "cost_price", void 0);
60
108
  __decorate([
61
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
62
- __metadata("design:type", Boolean)
63
- ], CreateVariantInput.prototype, "isActive", void 0);
109
+ (0, graphql_1.Field)({ nullable: true }),
110
+ __metadata("design:type", String)
111
+ ], CreateVariantInput.prototype, "local_status", void 0);
112
+ __decorate([
113
+ (0, graphql_1.Field)({ nullable: true }),
114
+ __metadata("design:type", String)
115
+ ], CreateVariantInput.prototype, "type", void 0);
116
+ __decorate([
117
+ (0, graphql_1.Field)(),
118
+ __metadata("design:type", String)
119
+ ], CreateVariantInput.prototype, "uuid", void 0);
64
120
  exports.CreateVariantInput = CreateVariantInput = __decorate([
65
121
  (0, graphql_1.InputType)()
66
122
  ], CreateVariantInput);
@@ -1 +1 @@
1
- {"version":3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AAG,EAAE,CAAC,eAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACnB;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACJ;AAGtB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACZ;AAGd;IADC,IAAA,eAAK,GAAE;;gDACK;6BA9DF,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CA+D9B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAG9B,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;qDAAC;6BAFhB,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAG9B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,IAAA,qBAAW,EAAC,kBAAkB,CAAC;CAGtE,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACR;6BAFD,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAG9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synunu-libs",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Shared DTOs, constants, and utilities for Synunu microservices",