synunu-libs 1.0.31 → 1.0.32

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.
@@ -8,9 +8,7 @@ export * from "./user.dto";
8
8
  export * from "./product.dto";
9
9
  export * from "./product-image.dto";
10
10
  export * from "./inventory-item.dto";
11
- export * from "./inventory-items.dto";
12
11
  export * from "./inventory-level.dto";
13
- export * from "./inventory-levels.dto";
14
12
  export * from "./inventory-location.dto";
15
13
  export * from "./inventory-storage.dto";
16
14
  export * from "./packsize.dto";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AAGxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AAGxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
package/dist/dto/index.js CHANGED
@@ -25,9 +25,7 @@ __exportStar(require("./user.dto"), exports);
25
25
  __exportStar(require("./product.dto"), exports);
26
26
  __exportStar(require("./product-image.dto"), exports);
27
27
  __exportStar(require("./inventory-item.dto"), exports);
28
- __exportStar(require("./inventory-items.dto"), exports);
29
28
  __exportStar(require("./inventory-level.dto"), exports);
30
- __exportStar(require("./inventory-levels.dto"), exports);
31
29
  __exportStar(require("./inventory-location.dto"), exports);
32
30
  __exportStar(require("./inventory-storage.dto"), exports);
33
31
  __exportStar(require("./packsize.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,2DAAyC;AACzC,0DAAwC;AACxC,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,4CAA0B;AAC1B,+CAA6B;AAC7B,0DAAwC;AAExC,QAAQ;AACR,qDAAmC;AACnC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,4CAA0B;AAC1B,+CAA6B;AAC7B,0DAAwC;AAExC,QAAQ;AACR,qDAAmC;AACnC,sDAAoC"}
@@ -1,18 +1,15 @@
1
- import { TranslationInput } from "./translation.input";
2
- import { UserType } from "../enum";
3
1
  import { DateRangeInput } from "./date-range.input";
4
2
  export declare class CreateInventoryItemInput {
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;
3
+ storeId: string;
4
+ productId: string;
5
+ variantId: string;
6
+ sku?: string;
7
+ barcode?: string;
8
+ tracked: boolean;
9
+ requiresShipping: boolean;
10
+ costPrice: number;
11
+ lotManagement: boolean;
12
+ alertBeforeExpiredInDay?: number | null;
16
13
  }
17
14
  export declare class InventoryItemFilterInput {
18
15
  createdAt?: DateRangeInput;
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-item.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-item.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,E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AG,EAAE,MAAM,CAAC;CACb"}
@@ -11,56 +11,50 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateInventoryItemInput = exports.InventoryItemFilterInput = exports.CreateInventoryItemInput = 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 CreateInventoryItemInput = class CreateInventoryItemInput {
18
16
  };
19
17
  exports.CreateInventoryItemInput = CreateInventoryItemInput;
20
18
  __decorate([
21
- (0, graphql_1.Field)(),
19
+ (0, graphql_1.Field)(() => String),
20
+ __metadata("design:type", String)
21
+ ], CreateInventoryItemInput.prototype, "storeId", void 0);
22
+ __decorate([
23
+ (0, graphql_1.Field)(() => String),
22
24
  __metadata("design:type", String)
23
- ], CreateInventoryItemInput.prototype, "key", void 0);
25
+ ], CreateInventoryItemInput.prototype, "productId", void 0);
24
26
  __decorate([
25
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput),
26
- __metadata("design:type", translation_input_1.TranslationInput)
27
- ], CreateInventoryItemInput.prototype, "label", void 0);
27
+ (0, graphql_1.Field)(() => String),
28
+ __metadata("design:type", String)
29
+ ], CreateInventoryItemInput.prototype, "variantId", void 0);
28
30
  __decorate([
29
31
  (0, graphql_1.Field)({ nullable: true }),
30
32
  __metadata("design:type", String)
31
- ], CreateInventoryItemInput.prototype, "icon", void 0);
33
+ ], CreateInventoryItemInput.prototype, "sku", void 0);
32
34
  __decorate([
33
35
  (0, graphql_1.Field)({ nullable: true }),
34
36
  __metadata("design:type", String)
35
- ], CreateInventoryItemInput.prototype, "rootPath", void 0);
37
+ ], CreateInventoryItemInput.prototype, "barcode", void 0);
36
38
  __decorate([
37
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
38
- __metadata("design:type", translation_input_1.TranslationInput)
39
- ], CreateInventoryItemInput.prototype, "path", void 0);
39
+ (0, graphql_1.Field)(() => Boolean, { defaultValue: true }),
40
+ __metadata("design:type", Boolean)
41
+ ], CreateInventoryItemInput.prototype, "tracked", void 0);
40
42
  __decorate([
41
- (0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
42
- __metadata("design:type", String)
43
- ], CreateInventoryItemInput.prototype, "userType", void 0);
43
+ (0, graphql_1.Field)(() => Boolean, { defaultValue: true }),
44
+ __metadata("design:type", Boolean)
45
+ ], CreateInventoryItemInput.prototype, "requiresShipping", void 0);
44
46
  __decorate([
45
- (0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
47
+ (0, graphql_1.Field)(() => graphql_1.Float, { defaultValue: 0 }),
46
48
  __metadata("design:type", Number)
47
- ], CreateInventoryItemInput.prototype, "order", void 0);
49
+ ], CreateInventoryItemInput.prototype, "costPrice", void 0);
48
50
  __decorate([
49
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
51
+ (0, graphql_1.Field)(() => Boolean, { defaultValue: false }),
50
52
  __metadata("design:type", Boolean)
51
- ], CreateInventoryItemInput.prototype, "visible", void 0);
53
+ ], CreateInventoryItemInput.prototype, "lotManagement", void 0);
52
54
  __decorate([
53
- (0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
54
- __metadata("design:type", Array)
55
- ], CreateInventoryItemInput.prototype, "permissions", void 0);
56
- __decorate([
57
- (0, graphql_1.Field)(() => String, { nullable: true }),
55
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
58
56
  __metadata("design:type", Object)
59
- ], CreateInventoryItemInput.prototype, "parent", void 0);
60
- __decorate([
61
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
62
- __metadata("design:type", Boolean)
63
- ], CreateInventoryItemInput.prototype, "isActive", void 0);
57
+ ], CreateInventoryItemInput.prototype, "alertBeforeExpiredInDay", void 0);
64
58
  exports.CreateInventoryItemInput = CreateInventoryItemInput = __decorate([
65
59
  (0, graphql_1.InputType)()
66
60
  ], CreateInventoryItemInput);
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-item.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-item.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAiCpC,CAAA;AAjCY,4DAAwB;AAErC;IADC,IAAA,eAAK,GAAE;;qDACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;uDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,oCAAgB;sDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,eAAQ,CAAC,KAAK,EAAE,CAAC;;0DACpD;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;uDAC5B;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;yDAC5B;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;;6DACrC;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAA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AC;;yDACT;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;yDAC5B;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;kEACnB;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;2DACtB;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;+DACvB;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yEACC;mCA7B7B,wBAAwB;IADpC,IAAA,mBAAS,GAAE;GACC,wBAAwB,CA8BpC;AAEM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAGpC,CAAA;AAHY,4DAAwB;AAEnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;2DAAC;mCAFhB,wBAAwB;IADpC,IAAA,mBAAS,GAAE;GACC,wBAAwB,CAGpC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,IAAA,qBAAW,EACvD,wBAAwB,CACzB;CAGA,CAAA;AALY,4DAAwB;AAInC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACR;mCAJD,wBAAwB;IADpC,IAAA,mBAAS,GAAE;GACC,wBAAwB,CAKpC"}
@@ -1,18 +1,13 @@
1
- import { TranslationInput } from "./translation.input";
2
- import { UserType } from "../enum";
3
1
  import { DateRangeInput } from "./date-range.input";
4
2
  export declare class CreateInventoryLevelInput {
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;
3
+ variantId: string;
4
+ storeId: string;
5
+ inventoryItemId: string;
6
+ branchId: string;
7
+ onHand: number;
8
+ available: number;
9
+ committed: number;
10
+ incoming: number;
16
11
  }
17
12
  export declare class InventoryLevelFilterInput {
18
13
  createdAt?: DateRangeInput;
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-level.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-level.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,yBAAyB;IAEtC,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,yBAAyB;IAEtC,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,yBAA0B,SAAQ,8BAAsC;IAErF,GAAG,EAAE,MAAM,CAAC;CACX"}
1
+ {"version":3,"file":"inventory-level.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-level.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,yBAAyB;IAEpC,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAGhB,eAAe,EAAE,MAAM,CAAC;IAGxB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBACa,yBAAyB;IAEpC,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,yBAA0B,SAAQ,8BAE9C;IAEC,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -11,56 +11,42 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateInventoryLevelInput = exports.InventoryLevelFilterInput = exports.CreateInventoryLevelInput = 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 CreateInventoryLevelInput = class CreateInventoryLevelInput {
18
16
  };
19
17
  exports.CreateInventoryLevelInput = CreateInventoryLevelInput;
20
18
  __decorate([
21
- (0, graphql_1.Field)(),
19
+ (0, graphql_1.Field)(() => String),
22
20
  __metadata("design:type", String)
23
- ], CreateInventoryLevelInput.prototype, "key", void 0);
24
- __decorate([
25
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput),
26
- __metadata("design:type", translation_input_1.TranslationInput)
27
- ], CreateInventoryLevelInput.prototype, "label", void 0);
21
+ ], CreateInventoryLevelInput.prototype, "variantId", void 0);
28
22
  __decorate([
29
- (0, graphql_1.Field)({ nullable: true }),
23
+ (0, graphql_1.Field)(() => String),
30
24
  __metadata("design:type", String)
31
- ], CreateInventoryLevelInput.prototype, "icon", void 0);
25
+ ], CreateInventoryLevelInput.prototype, "storeId", void 0);
32
26
  __decorate([
33
- (0, graphql_1.Field)({ nullable: true }),
27
+ (0, graphql_1.Field)(() => String),
34
28
  __metadata("design:type", String)
35
- ], CreateInventoryLevelInput.prototype, "rootPath", void 0);
36
- __decorate([
37
- (0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
38
- __metadata("design:type", translation_input_1.TranslationInput)
39
- ], CreateInventoryLevelInput.prototype, "path", void 0);
29
+ ], CreateInventoryLevelInput.prototype, "inventoryItemId", void 0);
40
30
  __decorate([
41
- (0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
31
+ (0, graphql_1.Field)(() => String),
42
32
  __metadata("design:type", String)
43
- ], CreateInventoryLevelInput.prototype, "userType", void 0);
33
+ ], CreateInventoryLevelInput.prototype, "branchId", void 0);
44
34
  __decorate([
45
- (0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
35
+ (0, graphql_1.Field)(() => graphql_1.Float),
46
36
  __metadata("design:type", Number)
47
- ], CreateInventoryLevelInput.prototype, "order", void 0);
48
- __decorate([
49
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
50
- __metadata("design:type", Boolean)
51
- ], CreateInventoryLevelInput.prototype, "visible", void 0);
37
+ ], CreateInventoryLevelInput.prototype, "onHand", void 0);
52
38
  __decorate([
53
- (0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
54
- __metadata("design:type", Array)
55
- ], CreateInventoryLevelInput.prototype, "permissions", void 0);
39
+ (0, graphql_1.Field)(() => graphql_1.Float),
40
+ __metadata("design:type", Number)
41
+ ], CreateInventoryLevelInput.prototype, "available", void 0);
56
42
  __decorate([
57
- (0, graphql_1.Field)(() => String, { nullable: true }),
58
- __metadata("design:type", Object)
59
- ], CreateInventoryLevelInput.prototype, "parent", void 0);
43
+ (0, graphql_1.Field)(() => graphql_1.Float),
44
+ __metadata("design:type", Number)
45
+ ], CreateInventoryLevelInput.prototype, "committed", void 0);
60
46
  __decorate([
61
- (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
62
- __metadata("design:type", Boolean)
63
- ], CreateInventoryLevelInput.prototype, "isActive", void 0);
47
+ (0, graphql_1.Field)(() => graphql_1.Float),
48
+ __metadata("design:type", Number)
49
+ ], CreateInventoryLevelInput.prototype, "incoming", void 0);
64
50
  exports.CreateInventoryLevelInput = CreateInventoryLevelInput = __decorate([
65
51
  (0, graphql_1.InputType)()
66
52
  ], CreateInventoryLevelInput);
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-level.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-level.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAiCrC,CAAA;AAjCY,8DAAyB;AAEtC;IADC,IAAA,eAAK,GAAE;;sDACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;wDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,oCAAgB;uDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,eAAQ,CAAC,KAAK,EAAE,CAAC;;2DACpD;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;wDAC5B;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,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DACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACJ;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kEACI;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACH;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;yDACJ;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;4DACD;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;4DACD;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;2DACF;oCAvBN,yBAAyB;IADrC,IAAA,mBAAS,GAAE;GACC,yBAAyB,CAwBrC;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAGrC,CAAA;AAHY,8DAAyB;AAEpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;4DAAC;oCAFhB,yBAAyB;IADrC,IAAA,mBAAS,GAAE;GACC,yBAAyB,CAGrC;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,IAAA,qBAAW,EACxD,yBAAyB,CAC1B;CAGA,CAAA;AALY,8DAAyB;AAIpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACR;oCAJD,yBAAyB;IADrC,IAAA,mBAAS,GAAE;GACC,yBAAyB,CAKrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synunu-libs",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Shared DTOs, constants, and utilities for Synunu microservices",