@things-factory/warehouse-base 8.0.94 → 8.0.99
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-server/service/warehouse/warehouse-types.d.ts +2 -0
- package/dist-server/service/warehouse/warehouse-types.js +8 -0
- package/dist-server/service/warehouse/warehouse-types.js.map +1 -1
- package/dist-server/service/warehouse/warehouse.d.ts +1 -0
- package/dist-server/service/warehouse/warehouse.js +5 -0
- package/dist-server/service/warehouse/warehouse.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/dist-server/utils/inventory-util.js +4 -0
- package/dist-server/utils/inventory-util.js.map +1 -1
- package/package.json +8 -8
|
@@ -5,6 +5,7 @@ export declare class NewWarehouse {
|
|
|
5
5
|
name: string;
|
|
6
6
|
locations?: ObjectRef[];
|
|
7
7
|
description?: string;
|
|
8
|
+
isCkWarehouse?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare class WarehouseList {
|
|
10
11
|
items?: Warehouse[];
|
|
@@ -16,5 +17,6 @@ export declare class WarehousePatch {
|
|
|
16
17
|
type?: string;
|
|
17
18
|
locations?: ObjectRef[];
|
|
18
19
|
description?: string;
|
|
20
|
+
isCkWarehouse?: boolean;
|
|
19
21
|
cuFlag?: string;
|
|
20
22
|
}
|
|
@@ -24,6 +24,10 @@ tslib_1.__decorate([
|
|
|
24
24
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
25
25
|
tslib_1.__metadata("design:type", String)
|
|
26
26
|
], NewWarehouse.prototype, "description", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
30
|
+
], NewWarehouse.prototype, "isCkWarehouse", void 0);
|
|
27
31
|
exports.NewWarehouse = NewWarehouse = tslib_1.__decorate([
|
|
28
32
|
(0, type_graphql_1.InputType)()
|
|
29
33
|
], NewWarehouse);
|
|
@@ -64,6 +68,10 @@ tslib_1.__decorate([
|
|
|
64
68
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
69
|
tslib_1.__metadata("design:type", String)
|
|
66
70
|
], WarehousePatch.prototype, "description", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
74
|
+
], WarehousePatch.prototype, "isCkWarehouse", void 0);
|
|
67
75
|
tslib_1.__decorate([
|
|
68
76
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
77
|
tslib_1.__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse-types.js","sourceRoot":"","sources":["../../../server/service/warehouse/warehouse-types.ts"],"names":[],"mappings":";;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,2CAAuC;AAGhC,IAAM,YAAY,GAAlB,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"warehouse-types.js","sourceRoot":"","sources":["../../../server/service/warehouse/warehouse-types.ts"],"names":[],"mappings":";;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,2CAAuC;AAGhC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAgBxB,CAAA;AAhBY,oCAAY;AAEvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACf;AAGX;IADC,IAAA,oBAAK,GAAE;;0CACI;AAGZ;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iBAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACxB;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAIpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACH;uBAfZ,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CAgBxB;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AANY,sCAAa;AAExB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC5B;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACzB;wBALH,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB;AAGM,IAAM,cAAc,GAApB,MAAM,cAAc;CAsB1B,CAAA;AAtBY,wCAAc;AAEzB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACf;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACb;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iBAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACxB;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACN;AAIpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACH;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACX;yBArBJ,cAAc;IAD1B,IAAA,wBAAS,GAAE;GACC,cAAc,CAsB1B","sourcesContent":["import { Field, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { Warehouse } from './warehouse'\n\n@InputType()\nexport class NewWarehouse {\n @Field({ nullable: true })\n id?: string\n\n @Field()\n name: string\n\n @Field(type => [ObjectRef], { nullable: true })\n locations?: ObjectRef[]\n\n @Field({ nullable: true })\n description?: string\n\n // CK창고 여부(2F)\n @Field({ nullable: true })\n isCkWarehouse?: boolean\n}\n\n@ObjectType()\nexport class WarehouseList {\n @Field(type => [Warehouse], { nullable: true })\n items?: Warehouse[]\n\n @Field(type => Int, { nullable: true })\n total?: number\n}\n\n@InputType()\nexport class WarehousePatch {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field(type => [ObjectRef], { nullable: true })\n locations?: ObjectRef[]\n\n @Field({ nullable: true })\n description?: string\n\n // CK창고 여부(2F)\n @Field({ nullable: true })\n isCkWarehouse?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n"]}
|
|
@@ -63,6 +63,11 @@ tslib_1.__decorate([
|
|
|
63
63
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
64
64
|
tslib_1.__metadata("design:type", String)
|
|
65
65
|
], Warehouse.prototype, "description", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ nullable: true, default: false, comment: 'CK창고 여부(2F)' }),
|
|
68
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
70
|
+
], Warehouse.prototype, "isCkWarehouse", void 0);
|
|
66
71
|
tslib_1.__decorate([
|
|
67
72
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
68
73
|
nullable: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehouse.js","sourceRoot":"","sources":["../../../server/service/warehouse/warehouse.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAUgB;AAEhB,yDAAgD;AAChD,uDAAmD;AACnD,iDAA8C;AAE9C,mDAA+C;AAMxC,IAAM,SAAS,GAAf,MAAM,SAAS;
|
|
1
|
+
{"version":3,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E,IAAI,EAAE,CAAC;sCACf,IAAI;4CAAA;AAIf;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACf,IAAI;4CAAA;oBA/DJ,SAAS;IAJrB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvG,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACrG,IAAA,yBAAU,GAAE;;GACA,SAAS,CA4ErB","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Bizplace } from '@things-factory/biz-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { Location } from '../location/location'\n\n@Entity()\n@Index('ix_warehouse_0', (warehouse: Warehouse) => [warehouse.domain, warehouse.name], { unique: true })\n@Index('ix_warehouse_1', (warehouse: Warehouse) => [warehouse.domain, warehouse.id], { unique: true })\n@ObjectType()\nexport class Warehouse {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain: Domain\n\n @RelationId((warehouse: Warehouse) => warehouse.domain)\n domainId: string\n\n @ManyToOne(type => Bizplace)\n @Field()\n bizplace: Bizplace\n\n @Column()\n @Field()\n name: string\n\n @OneToMany(type => Location, location => location.warehouse)\n @Field(type => [Location])\n locations: Location[]\n\n @Column()\n @Field()\n type: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description: string\n\n // CK창고 여부(승화 2층) - CK재고 재고조사 대상 및 기준창고 변경 후보 리스트\n @Column({ nullable: true, default: false, comment: 'CK창고 여부(2F)' })\n @Field({ nullable: true })\n isCkWarehouse?: boolean\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((warehouse: Warehouse) => warehouse.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((warehouse: Warehouse) => warehouse.updater)\n updaterId: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n constructor(obj?) {\n if (obj) {\n this.id = obj.warehouse_id\n this.name = obj.warehouse_name\n this.locations = obj.warehouse_locations\n this.type = obj.warehouse_type\n this.description = obj.warehouse_description\n this.createdAt = obj.warehouse_created_at\n this.updatedAt = obj.warehouse_updated_at\n }\n }\n}\n"]}
|