synunu-libs 1.0.44 → 1.0.46
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/vendor.dto.d.ts +11 -0
- package/dist/dto/vendor.dto.d.ts.map +1 -1
- package/dist/dto/vendor.dto.js +30 -1
- package/dist/dto/vendor.dto.js.map +1 -1
- package/dist/enum/sort-order.enum.d.ts +4 -0
- package/dist/enum/sort-order.enum.d.ts.map +1 -1
- package/dist/enum/sort-order.enum.js +10 -1
- package/dist/enum/sort-order.enum.js.map +1 -1
- package/package.json +1 -1
package/dist/dto/vendor.dto.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
+
import { ESortDirection } from "../enum";
|
|
1
2
|
import { DateRangeInput } from "./date-range.input";
|
|
3
|
+
export declare enum EVendorSortField {
|
|
4
|
+
NAME = "name",
|
|
5
|
+
CREATED_AT = "createdAt",
|
|
6
|
+
UPDATED_AT = "updatedAt"
|
|
7
|
+
}
|
|
8
|
+
export declare class OrderByInput {
|
|
9
|
+
field: EVendorSortField;
|
|
10
|
+
direction: ESortDirection;
|
|
11
|
+
}
|
|
2
12
|
export declare class CreateVendorInput {
|
|
3
13
|
name: string;
|
|
4
14
|
description?: string;
|
|
5
15
|
}
|
|
6
16
|
export declare class VendorFilterInput {
|
|
7
17
|
name?: string;
|
|
18
|
+
orderBy?: OrderByInput;
|
|
8
19
|
createdAt?: DateRangeInput;
|
|
9
20
|
updatedAt?: DateRangeInput;
|
|
10
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendor.dto.d.ts","sourceRoot":"","sources":["../../src/dto/vendor.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"vendor.dto.d.ts","sourceRoot":"","sources":["../../src/dto/vendor.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,UAAU,cAAc;CACzB;AAMD,qBACa,YAAY;IAEvB,KAAK,EAAE,gBAAgB,CAAC;IAGxB,SAAS,EAAE,cAAc,CAAC;CAC3B;AAED,qBACa,iBAAiB;IAE5B,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBACa,iBAAiB;IAE5B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,OAAO,CAAC,EAAE,YAAY,CAAC;IAGvB,SAAS,CAAC,EAAE,cAAc,CAAC;IAG3B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,iBAAkB,SAAQ,sBAA8B;IAEnE,GAAG,EAAE,MAAM,CAAC;CACb"}
|
package/dist/dto/vendor.dto.js
CHANGED
|
@@ -9,9 +9,34 @@ 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.UpdateVendorInput = exports.VendorFilterInput = exports.CreateVendorInput = void 0;
|
|
12
|
+
exports.UpdateVendorInput = exports.VendorFilterInput = exports.CreateVendorInput = exports.OrderByInput = exports.EVendorSortField = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const enum_1 = require("../enum");
|
|
14
15
|
const date_range_input_1 = require("./date-range.input");
|
|
16
|
+
const graphql_2 = require("@nestjs/graphql");
|
|
17
|
+
var EVendorSortField;
|
|
18
|
+
(function (EVendorSortField) {
|
|
19
|
+
EVendorSortField["NAME"] = "name";
|
|
20
|
+
EVendorSortField["CREATED_AT"] = "createdAt";
|
|
21
|
+
EVendorSortField["UPDATED_AT"] = "updatedAt";
|
|
22
|
+
})(EVendorSortField || (exports.EVendorSortField = EVendorSortField = {}));
|
|
23
|
+
(0, graphql_2.registerEnumType)(EVendorSortField, {
|
|
24
|
+
name: "EVendorSortField",
|
|
25
|
+
});
|
|
26
|
+
let OrderByInput = class OrderByInput {
|
|
27
|
+
};
|
|
28
|
+
exports.OrderByInput = OrderByInput;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, graphql_1.Field)(() => EVendorSortField),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], OrderByInput.prototype, "field", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, graphql_1.Field)(() => enum_1.ESortDirection),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], OrderByInput.prototype, "direction", void 0);
|
|
37
|
+
exports.OrderByInput = OrderByInput = __decorate([
|
|
38
|
+
(0, graphql_1.InputType)()
|
|
39
|
+
], OrderByInput);
|
|
15
40
|
let CreateVendorInput = class CreateVendorInput {
|
|
16
41
|
};
|
|
17
42
|
exports.CreateVendorInput = CreateVendorInput;
|
|
@@ -33,6 +58,10 @@ __decorate([
|
|
|
33
58
|
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
34
59
|
__metadata("design:type", String)
|
|
35
60
|
], VendorFilterInput.prototype, "name", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, graphql_1.Field)(() => OrderByInput, { nullable: true }),
|
|
63
|
+
__metadata("design:type", OrderByInput)
|
|
64
|
+
], VendorFilterInput.prototype, "orderBy", void 0);
|
|
36
65
|
__decorate([
|
|
37
66
|
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
38
67
|
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendor.dto.js","sourceRoot":"","sources":["../../src/dto/vendor.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,yDAAoD;
|
|
1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;kDAAC;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;oDAAC;AAG3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;oDAAC;4BAXhB,iBAAiB;IAD7B,IAAA,mBAAS,GAAE;GACC,iBAAiB,CAY7B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,qBAAW,EAAC,iBAAiB,CAAC;CAGpE,CAAA;AAHY,8CAAiB;AAE5B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACR;4BAFD,iBAAiB;IAD7B,IAAA,mBAAS,GAAE;GACC,iBAAiB,CAG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-order.enum.d.ts","sourceRoot":"","sources":["../../src/enum/sort-order.enum.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;CAC5B"}
|
|
1
|
+
{"version":3,"file":"sort-order.enum.d.ts","sourceRoot":"","sources":["../../src/enum/sort-order.enum.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;CAC5B;AAED,oBAAY,cAAc;IACxB,GAAG,IAAI;IACP,IAAI,KAAK;CACV"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ESortOrder = void 0;
|
|
3
|
+
exports.ESortDirection = exports.ESortOrder = void 0;
|
|
4
4
|
const graphql_1 = require("@nestjs/graphql");
|
|
5
5
|
var ESortOrder;
|
|
6
6
|
(function (ESortOrder) {
|
|
@@ -12,9 +12,18 @@ var ESortOrder;
|
|
|
12
12
|
ESortOrder["CREATED_DESC"] = "CREATED_DESC";
|
|
13
13
|
ESortOrder["CREATED_ASC"] = "CREATED_ASC";
|
|
14
14
|
})(ESortOrder || (exports.ESortOrder = ESortOrder = {}));
|
|
15
|
+
var ESortDirection;
|
|
16
|
+
(function (ESortDirection) {
|
|
17
|
+
ESortDirection[ESortDirection["ASC"] = 1] = "ASC";
|
|
18
|
+
ESortDirection[ESortDirection["DESC"] = -1] = "DESC";
|
|
19
|
+
})(ESortDirection || (exports.ESortDirection = ESortDirection = {}));
|
|
15
20
|
// Nếu dùng GraphQL
|
|
16
21
|
(0, graphql_1.registerEnumType)(ESortOrder, {
|
|
17
22
|
name: "ESortOrder",
|
|
18
23
|
description: "Các kiểu sắp xếp cho collection hoặc sản phẩm",
|
|
19
24
|
});
|
|
25
|
+
(0, graphql_1.registerEnumType)(ESortDirection, {
|
|
26
|
+
name: "ESortDirection",
|
|
27
|
+
description: "Các kiểu sắp xếp cho collection hoặc sản phẩm",
|
|
28
|
+
});
|
|
20
29
|
//# sourceMappingURL=sort-order.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-order.enum.js","sourceRoot":"","sources":["../../src/enum/sort-order.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAEnD,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"}
|
|
1
|
+
{"version":3,"file":"sort-order.enum.js","sourceRoot":"","sources":["../../src/enum/sort-order.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAEnD,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,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iDAAO,CAAA;IACP,oDAAS,CAAA;AACX,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,mBAAmB;AACnB,IAAA,0BAAgB,EAAC,UAAU,EAAE;IAC3B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,+CAA+C;CAC7D,CAAC,CAAC;AAEH,IAAA,0BAAgB,EAAC,cAAc,EAAE;IAC/B,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,+CAA+C;CAC7D,CAAC,CAAC"}
|