@things-factory/warehouse-base 7.0.1-alpha.77 → 7.0.1-alpha.78
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/inventory-item/inventory-item.js +1 -1
- package/dist-server/service/inventory-item/inventory-item.js.map +1 -1
- package/dist-server/service/inventory-item-change/inventory-item-change.js +1 -1
- package/dist-server/service/inventory-item-change/inventory-item-change.js.map +1 -1
- package/dist-server/service/inventory-product/inventory-product.js +1 -1
- package/dist-server/service/inventory-product/inventory-product.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/server/service/inventory-item/inventory-item.ts +1 -1
- package/server/service/inventory-item-change/inventory-item-change.ts +1 -1
- package/server/service/inventory-product/inventory-product.ts +1 -1
|
@@ -18,7 +18,7 @@ tslib_1.__decorate([
|
|
|
18
18
|
], InventoryItem.prototype, "id", void 0);
|
|
19
19
|
tslib_1.__decorate([
|
|
20
20
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
21
|
-
(0, type_graphql_1.Field)(
|
|
21
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
22
22
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
23
23
|
], InventoryItem.prototype, "domain", void 0);
|
|
24
24
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-item.js","sourceRoot":"","sources":["../../../server/service/inventory-item/inventory-item.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,+DAAsD;AACtD,iDAA8C;AAE9C,sDAAkD;AAO3C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAiFzB,CAAA;AAhFC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yCACC;AAEnB;IAAC,IAAA,m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CAAC,aAAa,CAAC,OAAO,CAAC;;gDAClD;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,gBAAI;8CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDAClD;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACF;AAhFb,aAAa;IALzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE;QAC1G,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;GAC3C,aAAa,CAiFzB;AAjFY,sCAAa","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Product } from '@things-factory/product-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { Inventory } from '../inventory/inventory'\n\n@Entity()\n@Index('ix_inventory_item_0', (inventoryItem: InventoryItem) => [inventoryItem.domain, inventoryItem.name], {\n unique: true\n})\n@ObjectType({ description: 'Entity for InventoryItem' })\nexport class InventoryItem {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((inventoryItem: InventoryItem) => inventoryItem.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n serialNumber?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n status?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n source?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n inboundOrderId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n outboundOrderId: string\n\n @ManyToOne(type => Product)\n @Field(type => Product, { nullable: true })\n product?: Product\n\n @RelationId((inventoryItem: InventoryItem) => inventoryItem.product)\n productId?: string\n\n @ManyToOne(type => Inventory)\n @Field(type => Inventory)\n inventory?: Inventory\n\n @RelationId((inventoryItem: InventoryItem) => inventoryItem.inventory)\n inventoryId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((inventoryItem: InventoryItem) => inventoryItem.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((inventoryItem: InventoryItem) => inventoryItem.updater)\n updaterId?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field({ nullable: true })\n transactionType?: string\n}\n"]}
|
|
@@ -18,7 +18,7 @@ tslib_1.__decorate([
|
|
|
18
18
|
], InventoryItemChange.prototype, "id", void 0);
|
|
19
19
|
tslib_1.__decorate([
|
|
20
20
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
21
|
-
(0, type_graphql_1.Field)(
|
|
21
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
22
22
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
23
23
|
], InventoryItemChange.prototype, "domain", void 0);
|
|
24
24
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-item-change.js","sourceRoot":"","sources":["../../../server/service/inventory-item-change/inventory-item-change.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,2EAAsE;AACtE,qEAAgE;AAChE,sDAAkD;AAS3C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAiE/B,CAAA;AAhEC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;+CACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"inventory-item-change.js","sourceRoot":"","sources":["../../../server/service/inventory-item-change/inventory-item-change.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,2EAAsE;AACtE,qEAAgE;AAChE,sDAAkD;AAS3C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAiE/B,CAAA;AAhEC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;+CACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCACb,cAAM;mDAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,mBAAwC,EAAE,EAAE,CAAC,mBAAmB,CAAC,MAAM,CAAC;;qDACpE;AAEjB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpD,I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E,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;sDAAA;AAEhB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,gBAAI;oDAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,mBAAwC,EAAE,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC;;sDACpE;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,gBAAI;oDAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,mBAAwC,EAAE,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC;;sDACpE;AAhEP,mBAAmB;IAP/B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,4BAA4B,EAC5B,CAAC,mBAAwC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,mBAAmB,CAAC,IAAI,CAAC,EACpG,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;GACjD,mBAAmB,CAiE/B;AAjEY,kDAAmB","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { InventoryChange } from '../inventory-change/inventory-change'\nimport { InventoryItem } from '../inventory-item/inventory-item'\nimport { Inventory } from '../inventory/inventory'\n\n@Entity()\n@Index(\n 'ix_inventory_item_change_0',\n (inventoryItemChange: InventoryItemChange) => [inventoryItemChange.domain, inventoryItemChange.name],\n { unique: true }\n)\n@ObjectType({ description: 'Entity for InventoryItemChange' })\nexport class InventoryItemChange {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((inventoryItemChange: InventoryItemChange) => inventoryItemChange.domain)\n domainId?: string\n\n @ManyToOne(type => InventoryItem, { nullable: true })\n @Field(type => InventoryItem, { nullable: true })\n inventoryItem: InventoryItem\n\n @ManyToOne(type => Inventory, { nullable: true })\n @Field(type => Inventory, { nullable: true })\n inventory: Inventory\n\n @ManyToOne(type => InventoryChange, { nullable: true })\n @Field(type => InventoryChange, { nullable: true })\n inventoryChange: InventoryChange\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n serialNumber?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n type?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n status?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((inventoryItemChange: InventoryItemChange) => inventoryItemChange.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((inventoryItemChange: InventoryItemChange) => inventoryItemChange.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -17,7 +17,7 @@ tslib_1.__decorate([
|
|
|
17
17
|
], InventoryProduct.prototype, "id", void 0);
|
|
18
18
|
tslib_1.__decorate([
|
|
19
19
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
20
|
-
(0, type_graphql_1.Field)(
|
|
20
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
21
21
|
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
22
22
|
], InventoryProduct.prototype, "domain", void 0);
|
|
23
23
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-product.js","sourceRoot":"","sources":["../../../server/service/inventory-product/inventory-product.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,+DAAsD;AACtD,iDAA8C;AASvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAgE5B,CAAA;AA/DC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;4CACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"inventory-product.js","sourceRoot":"","sources":["../../../server/service/inventory-product/inventory-product.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,+DAAsD;AACtD,iDAA8C;AASvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAgE5B,CAAA;AA/DC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;4CACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCACb,cAAM;gDAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,gBAAkC,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC;;kDAC3D;AAEjB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;8CACI;AA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gBAAI;iDAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,gBAAkC,EAAE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;;mDAC3D;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,gBAAI;iDAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,gBAAkC,EAAE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;;mDAC3D;AA/DP,gBAAgB;IAP5B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,wBAAwB,EACxB,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC,EACxF,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;GAC9C,gBAAgB,CAgE5B;AAhEY,4CAAgB","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Product } from '@things-factory/product-base'\nimport { Domain } from '@things-factory/shell'\n\n@Entity()\n@Index(\n 'ix_inventory_product_0',\n (inventoryProduct: InventoryProduct) => [inventoryProduct.domain, inventoryProduct.name],\n { unique: true }\n)\n@ObjectType({ description: 'Entity for InventoryProduct' })\nexport class InventoryProduct {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((inventoryProduct: InventoryProduct) => inventoryProduct.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n serialNumber?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n status?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n arrivalNoticeId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n releaseGoodId: string\n\n @ManyToOne(type => Product)\n @Field({ nullable: true })\n product?: Product\n\n @RelationId((inventoryProduct: InventoryProduct) => inventoryProduct.product)\n productId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((inventoryProduct: InventoryProduct) => inventoryProduct.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((inventoryProduct: InventoryProduct) => inventoryProduct.updater)\n updaterId?: string\n}\n"]}
|