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.
- package/dist/dto/product.dto.d.ts +17 -13
- package/dist/dto/product.dto.d.ts.map +1 -1
- package/dist/dto/product.dto.js +45 -28
- package/dist/dto/product.dto.js.map +1 -1
- package/dist/dto/variant.dto.d.ts +26 -13
- package/dist/dto/variant.dto.d.ts.map +1 -1
- package/dist/dto/variant.dto.js +82 -26
- package/dist/dto/variant.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"product.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,qBACa,kBAAkB;IAE7B,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,qBACa,kBAAkB;IAE7B,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAGlB,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAG/B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAG9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qBACa,kBAAkB;IAE7B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,kBAAmB,SAAQ,uBAA+B;IAErE,GAAG,EAAE,MAAM,CAAC;CACb"}
|
package/dist/dto/product.dto.js
CHANGED
|
@@ -9,58 +9,75 @@ 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.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, "
|
|
36
|
+
], CreateProductInput.prototype, "name", void 0);
|
|
24
37
|
__decorate([
|
|
25
|
-
(0, graphql_1.Field)(
|
|
26
|
-
__metadata("design:type",
|
|
27
|
-
], CreateProductInput.prototype, "
|
|
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, "
|
|
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, "
|
|
48
|
+
], CreateProductInput.prototype, "meta_description", void 0);
|
|
36
49
|
__decorate([
|
|
37
|
-
(0, graphql_1.Field)(
|
|
38
|
-
__metadata("design:type",
|
|
39
|
-
], CreateProductInput.prototype, "
|
|
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)(
|
|
54
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
42
55
|
__metadata("design:type", String)
|
|
43
|
-
], CreateProductInput.prototype, "
|
|
56
|
+
], CreateProductInput.prototype, "template_layout", void 0);
|
|
44
57
|
__decorate([
|
|
45
|
-
(0, graphql_1.Field)({ nullable: true
|
|
46
|
-
__metadata("design:type",
|
|
47
|
-
], CreateProductInput.prototype, "
|
|
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)(
|
|
50
|
-
__metadata("design:type",
|
|
51
|
-
], CreateProductInput.prototype, "
|
|
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:
|
|
66
|
+
(0, graphql_1.Field)(() => [String], { nullable: "itemsAndList" }),
|
|
54
67
|
__metadata("design:type", Array)
|
|
55
|
-
], CreateProductInput.prototype, "
|
|
68
|
+
], CreateProductInput.prototype, "images", void 0);
|
|
56
69
|
__decorate([
|
|
57
|
-
(0, graphql_1.Field)(() =>
|
|
58
|
-
__metadata("design:type",
|
|
59
|
-
], CreateProductInput.prototype, "
|
|
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)(
|
|
62
|
-
__metadata("design:type",
|
|
63
|
-
], CreateProductInput.prototype, "
|
|
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;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../src/dto/product.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAGhE,yDAAoD;AACpD,+CAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAM9B,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,eAAK,GAAE;;gDACK;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;kDACL;6BALN,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAM9B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAoC9B,CAAA;AApCY,gDAAkB;AAE7B;IADC,IAAA,eAAK,GAAE;;gDACK;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAA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B,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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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":"
|
|
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"}
|
package/dist/dto/variant.dto.js
CHANGED
|
@@ -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, "
|
|
43
|
+
], CreateVariantInput.prototype, "sku", void 0);
|
|
24
44
|
__decorate([
|
|
25
|
-
(0, graphql_1.Field)(() =>
|
|
26
|
-
__metadata("design:type",
|
|
27
|
-
], CreateVariantInput.prototype, "
|
|
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, "
|
|
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, "
|
|
59
|
+
], CreateVariantInput.prototype, "option2", void 0);
|
|
36
60
|
__decorate([
|
|
37
|
-
(0, graphql_1.Field)(
|
|
38
|
-
__metadata("design:type",
|
|
39
|
-
], CreateVariantInput.prototype, "
|
|
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)(
|
|
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, "
|
|
75
|
+
], CreateVariantInput.prototype, "inventory_policy", void 0);
|
|
44
76
|
__decorate([
|
|
45
|
-
(0, graphql_1.Field)({ nullable: true
|
|
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, "
|
|
83
|
+
], CreateVariantInput.prototype, "alert_before_expired_in_day", void 0);
|
|
48
84
|
__decorate([
|
|
49
|
-
(0, graphql_1.Field)({ nullable: true
|
|
85
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
50
86
|
__metadata("design:type", Boolean)
|
|
51
|
-
], CreateVariantInput.prototype, "
|
|
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)(() => [
|
|
101
|
+
(0, graphql_1.Field)(() => [InventoryQuantityInput]),
|
|
54
102
|
__metadata("design:type", Array)
|
|
55
|
-
], CreateVariantInput.prototype, "
|
|
103
|
+
], CreateVariantInput.prototype, "inventory_quantities", void 0);
|
|
56
104
|
__decorate([
|
|
57
|
-
(0, graphql_1.Field)(() =>
|
|
58
|
-
__metadata("design:type",
|
|
59
|
-
], CreateVariantInput.prototype, "
|
|
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
|
|
62
|
-
__metadata("design:type",
|
|
63
|
-
], CreateVariantInput.prototype, "
|
|
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,"file":"variant.dto.js","sourceRoot":"","sources":["../../src/dto/variant.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"variant.dto.js","sourceRoot":"","sources":["../../src/dto/variant.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuE;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