@things-factory/organization 6.0.8 → 6.0.15

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.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApprovalLineItemPatch = exports.ApprovalLineItem = exports.ApproverTarget = exports.ObjectRefApprover = exports.ApprovalLineItemType = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const typeorm_1 = require("typeorm");
6
5
  const type_graphql_1 = require("type-graphql");
7
6
  const shell_1 = require("@things-factory/shell");
8
7
  var ApprovalLineItemType;
@@ -62,7 +61,6 @@ tslib_1.__decorate([
62
61
  tslib_1.__metadata("design:type", ApproverTarget)
63
62
  ], ApprovalLineItem.prototype, "approver", void 0);
64
63
  ApprovalLineItem = tslib_1.__decorate([
65
- (0, typeorm_1.Entity)(),
66
64
  (0, type_graphql_1.ObjectType)({ description: 'Entity for approval line item' })
67
65
  ], ApprovalLineItem);
68
66
  exports.ApprovalLineItem = ApprovalLineItem;
@@ -1 +1 @@
1
- {"version":3,"file":"approval-line-item.js","sourceRoot":"","sources":["../../../server/service/approval-line/approval-line-item.ts"],"names":[],"mappings":";;;;AAAA,qCAAgC;AAChC,+CAAiF;AAEjF,iDAAiD;AAEjD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,iDAAyB,CAAA;IACzB,qCAAa,CAAA;AACf,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,IAAA,+BAAgB,EAAC,oBAAoB,EAAE;IACrC,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,0CAA0C;CACxD,CAAC,CAAA;AAGK,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,iBAAS;CAG/C,CAAA;AAFC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACR;AAFP,iBAAiB;I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AAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC1C,iBAAiB;uDAAA;AALjB,qBAAqB;IADjC,IAAA,wBAAS,GAAE;GACC,qBAAqB,CAMjC;AANY,sDAAqB","sourcesContent":["import { Entity } from 'typeorm'\nimport { ObjectType, Field, ID, InputType, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nexport enum ApprovalLineItemType {\n Employee = 'Employee',\n Department = 'Department',\n Role = 'Role'\n}\n\nregisterEnumType(ApprovalLineItemType, {\n name: 'ApprovalLineItemType',\n description: 'type enumeration of a approval line item'\n})\n\n@InputType()\nexport class ObjectRefApprover extends ObjectRef {\n @Field({ nullable: true })\n controlNo?: string\n}\n\n@ObjectType()\nexport class ApproverTarget {\n @Field(() => ID, { description: 'Field id' })\n id?: string\n\n @Field({ nullable: true, description: 'Field name' })\n name?: string\n\n @Field({ nullable: true, description: 'Field description' })\n description?: string\n\n @Field({ nullable: true })\n controlNo?: string\n}\n\n@Entity()\n@ObjectType({ description: 'Entity for approval line item' })\nexport class ApprovalLineItem {\n @Field({ nullable: true })\n type?: ApprovalLineItemType\n\n @Field(type => String, { nullable: true })\n value?: string\n\n @Field(type => ApproverTarget, { nullable: true })\n approver?: ApproverTarget\n}\n\n@InputType()\nexport class ApprovalLineItemPatch {\n @Field({ nullable: true })\n type?: ApprovalLineItemType\n\n @Field(type => ObjectRefApprover, { nullable: true })\n approver?: ObjectRefApprover\n}\n"]}
1
+ {"version":3,"file":"approval-line-item.js","sourceRoot":"","sources":["../../../server/service/approval-line/approval-line-item.ts"],"names":[],"mappings":";;;;AAAA,+CAAiF;AAEjF,iDAAiD;AAEjD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,iDAAyB,CAAA;IACzB,qCAAa,CAAA;AACf,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,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;IAD5B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;GAChD,gBAAgB,CAS5B;AATY,4CAAgB;AAYtB,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAMjC,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACC;AAE3B;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC1C,iBAAiB;uDAAA;AALjB,qBAAqB;IADjC,IAAA,wBAAS,GAAE;GACC,qBAAqB,CAMjC;AANY,sDAAqB","sourcesContent":["import { ObjectType, Field, ID, InputType, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nexport enum ApprovalLineItemType {\n Employee = 'Employee',\n Department = 'Department',\n Role = 'Role'\n}\n\nregisterEnumType(ApprovalLineItemType, {\n name: 'ApprovalLineItemType',\n description: 'type enumeration of a approval line item'\n})\n\n@InputType()\nexport class ObjectRefApprover extends ObjectRef {\n @Field({ nullable: true })\n controlNo?: string\n}\n\n@ObjectType()\nexport class ApproverTarget {\n @Field(() => ID, { description: 'Field id' })\n id?: string\n\n @Field({ nullable: true, description: 'Field name' })\n name?: string\n\n @Field({ nullable: true, description: 'Field description' })\n description?: string\n\n @Field({ nullable: true })\n controlNo?: string\n}\n\n@ObjectType({ description: 'Entity for approval line item' })\nexport class ApprovalLineItem {\n @Field({ nullable: true })\n type?: ApprovalLineItemType\n\n @Field(type => String, { nullable: true })\n value?: string\n\n @Field(type => ApproverTarget, { nullable: true })\n approver?: ApproverTarget\n}\n\n@InputType()\nexport class ApprovalLineItemPatch {\n @Field({ nullable: true })\n type?: ApprovalLineItemType\n\n @Field(type => ObjectRefApprover, { nullable: true })\n approver?: ObjectRefApprover\n}\n"]}