synunu-libs 1.0.51 → 1.0.52

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,21 +1,12 @@
1
1
  import { DateRangeInput } from "./date-range.input";
2
- import { ESortDirection } from "./../enum";
3
- export declare enum EProductTypeSortField {
4
- NAME = "name",
5
- CREATED_AT = "createdAt",
6
- UPDATED_AT = "updatedAt"
7
- }
8
- export declare class OrderByProductTypeInput {
9
- field: EProductTypeSortField;
10
- direction: ESortDirection;
11
- }
2
+ import { OrderByInput } from "./order-by.input";
12
3
  export declare class CreateProductTypeInput {
13
4
  name: string;
14
5
  description?: string;
15
6
  }
16
7
  export declare class ProductTypeFilterInput {
17
- name?: string;
18
- orderBy?: OrderByProductTypeInput[];
8
+ searchKey?: string;
9
+ orderBy?: OrderByInput[];
19
10
  createdAt?: DateRangeInput;
20
11
  updatedAt?: DateRangeInput;
21
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product-type.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product-type.dto.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,UAAU,cAAc;CACzB;AAMD,qBACa,uBAAuB;IAElC,KAAK,EAAE,qBAAqB,CAAC;IAG7B,SAAS,EAAE,cAAc,CAAC;CAC3B;AAED,qBACa,sBAAsB;IAEjC,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBACa,sBAAsB;IAEjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAGpC,SAAS,CAAC,EAAE,cAAc,CAAC;IAG3B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,sBAAuB,SAAQ,2BAE3C;IAEC,GAAG,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"product-type.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product-type.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBACa,sBAAsB;IAEjC,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBACa,sBAAsB;IAEjC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAGzB,SAAS,CAAC,EAAE,cAAc,CAAC;IAG3B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,sBAAuB,SAAQ,2BAE3C;IAEC,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -9,33 +9,10 @@ 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.UpdateProductTypeInput = exports.ProductTypeFilterInput = exports.CreateProductTypeInput = exports.OrderByProductTypeInput = exports.EProductTypeSortField = void 0;
12
+ exports.UpdateProductTypeInput = exports.ProductTypeFilterInput = exports.CreateProductTypeInput = void 0;
13
13
  const graphql_1 = require("@nestjs/graphql");
14
14
  const date_range_input_1 = require("./date-range.input");
15
- const enum_1 = require("./../enum");
16
- var EProductTypeSortField;
17
- (function (EProductTypeSortField) {
18
- EProductTypeSortField["NAME"] = "name";
19
- EProductTypeSortField["CREATED_AT"] = "createdAt";
20
- EProductTypeSortField["UPDATED_AT"] = "updatedAt";
21
- })(EProductTypeSortField || (exports.EProductTypeSortField = EProductTypeSortField = {}));
22
- (0, graphql_1.registerEnumType)(EProductTypeSortField, {
23
- name: "EProductTypeSortField",
24
- });
25
- let OrderByProductTypeInput = class OrderByProductTypeInput {
26
- };
27
- exports.OrderByProductTypeInput = OrderByProductTypeInput;
28
- __decorate([
29
- (0, graphql_1.Field)(() => EProductTypeSortField),
30
- __metadata("design:type", String)
31
- ], OrderByProductTypeInput.prototype, "field", void 0);
32
- __decorate([
33
- (0, graphql_1.Field)(() => enum_1.ESortDirection),
34
- __metadata("design:type", Number)
35
- ], OrderByProductTypeInput.prototype, "direction", void 0);
36
- exports.OrderByProductTypeInput = OrderByProductTypeInput = __decorate([
37
- (0, graphql_1.InputType)()
38
- ], OrderByProductTypeInput);
15
+ const order_by_input_1 = require("./order-by.input");
39
16
  let CreateProductTypeInput = class CreateProductTypeInput {
40
17
  };
41
18
  exports.CreateProductTypeInput = CreateProductTypeInput;
@@ -56,9 +33,9 @@ exports.ProductTypeFilterInput = ProductTypeFilterInput;
56
33
  __decorate([
57
34
  (0, graphql_1.Field)(() => String, { nullable: true }),
58
35
  __metadata("design:type", String)
59
- ], ProductTypeFilterInput.prototype, "name", void 0);
36
+ ], ProductTypeFilterInput.prototype, "searchKey", void 0);
60
37
  __decorate([
61
- (0, graphql_1.Field)(() => [OrderByProductTypeInput], { nullable: true }),
38
+ (0, graphql_1.Field)(() => [order_by_input_1.OrderByInput], { nullable: true }),
62
39
  __metadata("design:type", Array)
63
40
  ], ProductTypeFilterInput.prototype, "orderBy", void 0);
64
41
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"product-type.dto.js","sourceRoot":"","sources":["../../src/dto/product-type.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAKyB;AACzB,yDAAoD;AACpD,oCAA2C;AAE3C,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,iDAAwB,CAAA;IACxB,iDAAwB,CAAA;AAC1B,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAED,IAAA,0BAAgB,EAAC,qBAAqB,EAAE;IACt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C,sBAAsB,CAYlC;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,IAAA,qBAAW,EACrD,sBAAsB,CACvB;CAGA,CAAA;AALY,wDAAsB;AAIjC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACR;iCAJD,sBAAsB;IADlC,IAAA,mBAAS,GAAE;GACC,sBAAsB,CAKlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synunu-libs",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Shared DTOs, constants, and utilities for Synunu microservices",