synunu-libs 1.0.25 → 1.0.26
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-image.dto.d.ts +13 -13
- package/dist/dto/product-image.dto.d.ts.map +1 -1
- package/dist/dto/product-image.dto.js +35 -28
- package/dist/dto/product-image.dto.js.map +1 -1
- package/dist/dto/product.dto.d.ts +2 -1
- package/dist/dto/product.dto.d.ts.map +1 -1
- package/dist/dto/product.dto.js +2 -1
- package/dist/dto/product.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { TranslationInput } from "./translation.input";
|
|
2
|
-
import { UserType } from "../enum";
|
|
3
1
|
import { DateRangeInput } from "./date-range.input";
|
|
4
2
|
export declare class CreateProductImageInput {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
productId?: string;
|
|
4
|
+
position?: number;
|
|
5
|
+
variantIds?: string[];
|
|
6
|
+
src: string;
|
|
7
|
+
thumbnailSrc?: string;
|
|
8
|
+
derived?: any;
|
|
9
|
+
alt?: string;
|
|
10
|
+
filename: string;
|
|
11
|
+
savedFilename: string;
|
|
12
|
+
size: number;
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
mimeType: string;
|
|
16
16
|
}
|
|
17
17
|
export declare class ProductImageFilterInput {
|
|
18
18
|
createdAt?: DateRangeInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-image.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product-image.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-image.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product-image.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,uBAAuB;IAGlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAGtB,GAAG,EAAE,MAAM,CAAC;IAGZ,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,OAAO,CAAC,EAAE,GAAG,CAAC;IAGd,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBACa,uBAAuB;IAElC,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,uBAAwB,SAAQ,4BAE5C;IAEC,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -11,56 +11,63 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateProductImageInput = exports.ProductImageFilterInput = exports.CreateProductImageInput = 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");
|
|
17
15
|
let CreateProductImageInput = class CreateProductImageInput {
|
|
18
16
|
};
|
|
19
17
|
exports.CreateProductImageInput = CreateProductImageInput;
|
|
20
18
|
__decorate([
|
|
21
19
|
(0, graphql_1.Field)(),
|
|
20
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
22
21
|
__metadata("design:type", String)
|
|
23
|
-
], CreateProductImageInput.prototype, "
|
|
22
|
+
], CreateProductImageInput.prototype, "productId", void 0);
|
|
24
23
|
__decorate([
|
|
25
|
-
(0, graphql_1.Field)(
|
|
26
|
-
__metadata("design:type",
|
|
27
|
-
], CreateProductImageInput.prototype, "
|
|
24
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], CreateProductImageInput.prototype, "position", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, graphql_1.Field)(() => [String], { nullable: true }),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], CreateProductImageInput.prototype, "variantIds", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, graphql_1.Field)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateProductImageInput.prototype, "src", void 0);
|
|
28
35
|
__decorate([
|
|
29
36
|
(0, graphql_1.Field)({ nullable: true }),
|
|
30
37
|
__metadata("design:type", String)
|
|
31
|
-
], CreateProductImageInput.prototype, "
|
|
38
|
+
], CreateProductImageInput.prototype, "thumbnailSrc", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], CreateProductImageInput.prototype, "derived", void 0);
|
|
32
43
|
__decorate([
|
|
33
44
|
(0, graphql_1.Field)({ nullable: true }),
|
|
34
45
|
__metadata("design:type", String)
|
|
35
|
-
], CreateProductImageInput.prototype, "
|
|
46
|
+
], CreateProductImageInput.prototype, "alt", void 0);
|
|
36
47
|
__decorate([
|
|
37
|
-
(0, graphql_1.Field)(
|
|
38
|
-
__metadata("design:type",
|
|
39
|
-
], CreateProductImageInput.prototype, "
|
|
48
|
+
(0, graphql_1.Field)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], CreateProductImageInput.prototype, "filename", void 0);
|
|
40
51
|
__decorate([
|
|
41
|
-
(0, graphql_1.Field)(
|
|
52
|
+
(0, graphql_1.Field)(),
|
|
42
53
|
__metadata("design:type", String)
|
|
43
|
-
], CreateProductImageInput.prototype, "
|
|
54
|
+
], CreateProductImageInput.prototype, "savedFilename", void 0);
|
|
44
55
|
__decorate([
|
|
45
|
-
(0, graphql_1.Field)(
|
|
56
|
+
(0, graphql_1.Field)(),
|
|
46
57
|
__metadata("design:type", Number)
|
|
47
|
-
], CreateProductImageInput.prototype, "
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
50
|
-
__metadata("design:type", Boolean)
|
|
51
|
-
], CreateProductImageInput.prototype, "visible", void 0);
|
|
58
|
+
], CreateProductImageInput.prototype, "size", void 0);
|
|
52
59
|
__decorate([
|
|
53
|
-
(0, graphql_1.Field)(
|
|
54
|
-
__metadata("design:type",
|
|
55
|
-
], CreateProductImageInput.prototype, "
|
|
60
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], CreateProductImageInput.prototype, "width", void 0);
|
|
56
63
|
__decorate([
|
|
57
|
-
(0, graphql_1.Field)(
|
|
58
|
-
__metadata("design:type",
|
|
59
|
-
], CreateProductImageInput.prototype, "
|
|
64
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], CreateProductImageInput.prototype, "height", void 0);
|
|
60
67
|
__decorate([
|
|
61
|
-
(0, graphql_1.Field)(
|
|
62
|
-
__metadata("design:type",
|
|
63
|
-
], CreateProductImageInput.prototype, "
|
|
68
|
+
(0, graphql_1.Field)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CreateProductImageInput.prototype, "mimeType", void 0);
|
|
64
71
|
exports.CreateProductImageInput = CreateProductImageInput = __decorate([
|
|
65
72
|
(0, graphql_1.InputType)()
|
|
66
73
|
], CreateProductImageInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-image.dto.js","sourceRoot":"","sources":["../../src/dto/product-image.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;
|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AAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;0DAAC;kCAFhB,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAGnC;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,IAAA,qBAAW,EACtD,uBAAuB,CACxB;CAGA,CAAA;AALY,0DAAuB;AAIlC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACR;kCAJD,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAKnC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DateRangeInput } from "./date-range.input";
|
|
2
2
|
import { CreateVariantInput } from "./variant.dto";
|
|
3
|
+
import { CreateProductImageInput } from "./product-image.dto";
|
|
3
4
|
export declare class ProductOptionInput {
|
|
4
5
|
name: string;
|
|
5
6
|
values: string[];
|
|
@@ -15,7 +16,7 @@ export declare class CreateProductInput {
|
|
|
15
16
|
templateLayout?: string;
|
|
16
17
|
content?: string;
|
|
17
18
|
tags?: string[];
|
|
18
|
-
images?:
|
|
19
|
+
images?: CreateProductImageInput[];
|
|
19
20
|
variants: CreateVariantInput[];
|
|
20
21
|
options: ProductOptionInput[];
|
|
21
22
|
defaultVariantUnit?: string;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,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,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,WAAW,CAAC,EAAE,IAAI,CAAC;IAGnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhB,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAGnC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAG/B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAG9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;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
|
@@ -13,6 +13,7 @@ exports.UpdateProductInput = exports.ProductFilterInput = exports.CreateProductI
|
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const date_range_input_1 = require("./date-range.input");
|
|
15
15
|
const variant_dto_1 = require("./variant.dto");
|
|
16
|
+
const product_image_dto_1 = require("./product-image.dto");
|
|
16
17
|
let ProductOptionInput = class ProductOptionInput {
|
|
17
18
|
};
|
|
18
19
|
exports.ProductOptionInput = ProductOptionInput;
|
|
@@ -71,7 +72,7 @@ __decorate([
|
|
|
71
72
|
__metadata("design:type", Array)
|
|
72
73
|
], CreateProductInput.prototype, "tags", void 0);
|
|
73
74
|
__decorate([
|
|
74
|
-
(0, graphql_1.Field)(() => [
|
|
75
|
+
(0, graphql_1.Field)(() => [product_image_dto_1.CreateProductImageInput], { nullable: true }),
|
|
75
76
|
__metadata("design:type", Array)
|
|
76
77
|
], CreateProductInput.prototype, "images", void 0);
|
|
77
78
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../src/dto/product.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAGhE,yDAAoD;AACpD,+CAAmD;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../src/dto/product.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAGhE,yDAAoD;AACpD,+CAAmD;AACnD,2DAA8D;AAGvD,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;CA0C9B,CAAA;AA1CY,gDAAkB;AAE7B;IADC,IAAA,eAAK,GAAE;;gDACK;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACV;AAGhB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACL;AAGrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACP;AAGnB;I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