@things-factory/organization 6.0.12 → 6.0.17
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/client/component/approval-line-view.ts +8 -3
- package/dist-client/component/approval-line-view.d.ts +2 -1
- package/dist-client/component/approval-line-view.js +15 -3
- package/dist-client/component/approval-line-view.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/approval-line/approval-line-item.js +13 -26
- package/dist-server/service/approval-line/approval-line-item.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server/service/approval-line/approval-line-item.ts +12 -12
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ApprovalLineItem = exports.ApproverTarget = exports.ApprovalLineItemType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const shell_1 = require("@things-factory/shell");
|
|
7
6
|
var ApprovalLineItemType;
|
|
8
7
|
(function (ApprovalLineItemType) {
|
|
9
8
|
ApprovalLineItemType["Employee"] = "Employee";
|
|
@@ -14,16 +13,11 @@ var ApprovalLineItemType;
|
|
|
14
13
|
name: 'ApprovalLineItemType',
|
|
15
14
|
description: 'type enumeration of a approval line item'
|
|
16
15
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
], ObjectRefApprover.prototype, "controlNo", void 0);
|
|
23
|
-
ObjectRefApprover = tslib_1.__decorate([
|
|
24
|
-
(0, type_graphql_1.InputType)()
|
|
25
|
-
], ObjectRefApprover);
|
|
26
|
-
exports.ObjectRefApprover = ObjectRefApprover;
|
|
16
|
+
// @InputType()
|
|
17
|
+
// export class ObjectRefApprover extends ObjectRef {
|
|
18
|
+
// @Field({ nullable: true })
|
|
19
|
+
// controlNo?: string
|
|
20
|
+
// }
|
|
27
21
|
let ApproverTarget = class ApproverTarget {
|
|
28
22
|
};
|
|
29
23
|
tslib_1.__decorate([
|
|
@@ -64,18 +58,11 @@ ApprovalLineItem = tslib_1.__decorate([
|
|
|
64
58
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for approval line item' })
|
|
65
59
|
], ApprovalLineItem);
|
|
66
60
|
exports.ApprovalLineItem = ApprovalLineItem;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
(0, type_graphql_1.Field)(type => ObjectRefApprover, { nullable: true }),
|
|
75
|
-
tslib_1.__metadata("design:type", ObjectRefApprover)
|
|
76
|
-
], ApprovalLineItemPatch.prototype, "approver", void 0);
|
|
77
|
-
ApprovalLineItemPatch = tslib_1.__decorate([
|
|
78
|
-
(0, type_graphql_1.InputType)()
|
|
79
|
-
], ApprovalLineItemPatch);
|
|
80
|
-
exports.ApprovalLineItemPatch = ApprovalLineItemPatch;
|
|
61
|
+
// @InputType()
|
|
62
|
+
// export class ApprovalLineItemPatch {
|
|
63
|
+
// @Field({ nullable: true })
|
|
64
|
+
// type?: ApprovalLineItemType
|
|
65
|
+
// @Field(type => ObjectRefApprover, { nullable: true })
|
|
66
|
+
// approver?: ObjectRefApprover
|
|
67
|
+
// }
|
|
81
68
|
//# sourceMappingURL=approval-line-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-line-item.js","sourceRoot":"","sources":["../../../server/service/approval-line/approval-line-item.ts"],"names":[],"mappings":";;;;AAAA,+CAAiF;
|
|
1
|
+
{"version":3,"file":"approval-line-item.js","sourceRoot":"","sources":["../../../server/service/approval-line/approval-line-item.ts"],"names":[],"mappings":";;;;AAAA,+CAAiF;AAIjF,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,iDAAyB,CAAA;IACzB,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AATY,4CAAgB;AAW7B,eAAe;AACf,uCAAuC;AACvC,+BAA+B;AAC/B,gCAAgC;AAEhC,0DAA0D;AAC1D,iCAAiC;AACjC,IAAI","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()\n// export 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()\n// export class ApprovalLineItemPatch {\n// @Field({ nullable: true })\n// type?: ApprovalLineItemType\n\n// @Field(type => ObjectRefApprover, { nullable: true })\n// approver?: ObjectRefApprover\n// }\n"]}
|