@lssm/example.workflow-system 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221132705
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/approval/approval.contracts.d.ts +133 -133
- package/dist/approval/approval.contracts.d.ts.map +1 -1
- package/dist/approval/approval.contracts.js +1 -1
- package/dist/approval/approval.contracts.js.map +1 -1
- package/dist/approval/approval.enum.d.ts +3 -3
- package/dist/approval/approval.event.d.ts +32 -32
- package/dist/approval/approval.event.d.ts.map +1 -1
- package/dist/approval/approval.schema.d.ts +24 -24
- package/dist/entities/approval.d.ts +36 -36
- package/dist/entities/index.d.ts +127 -127
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/instance.d.ts +47 -47
- package/dist/entities/instance.d.ts.map +1 -1
- package/dist/entities/step.d.ts +32 -32
- package/dist/entities/step.d.ts.map +1 -1
- package/dist/entities/workflow.d.ts +23 -23
- package/dist/entities/workflow.d.ts.map +1 -1
- package/dist/instance/instance.contracts.d.ts +256 -256
- package/dist/instance/instance.contracts.d.ts.map +1 -1
- package/dist/instance/instance.contracts.js +1 -1
- package/dist/instance/instance.contracts.js.map +1 -1
- package/dist/instance/instance.enum.d.ts +2 -2
- package/dist/instance/instance.enum.d.ts.map +1 -1
- package/dist/instance/instance.event.d.ts +87 -87
- package/dist/instance/instance.schema.d.ts +54 -54
- package/dist/instance/instance.schema.d.ts.map +1 -1
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/libs/contracts/dist/data-views.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/libs/contracts/dist/features.js +1 -0
- package/dist/libs/contracts/dist/forms.js +1 -0
- package/dist/libs/contracts/dist/index.js +14 -1
- package/dist/libs/contracts/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/registry-utils.js +24 -0
- package/dist/libs/contracts/dist/registry-utils.js.map +1 -0
- package/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/spec.js +1 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +122 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/workflow/workflow.contracts.d.ts +246 -246
- package/dist/workflow/workflow.contracts.d.ts.map +1 -1
- package/dist/workflow/workflow.contracts.js +1 -1
- package/dist/workflow/workflow.contracts.js.map +1 -1
- package/dist/workflow/workflow.enum.d.ts +5 -5
- package/dist/workflow/workflow.event.d.ts +33 -33
- package/dist/workflow/workflow.event.d.ts.map +1 -1
- package/dist/workflow/workflow.schema.d.ts +63 -63
- package/dist/workflow/workflow.schema.d.ts.map +1 -1
- package/package.json +14 -14
- package/dist/libs/contracts/dist/spec.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E5, K5 } from "../libs/schema/dist/index.js";
|
|
2
|
-
import { defineCommand, defineQuery } from "../libs/contracts/dist/
|
|
2
|
+
import { defineCommand, defineQuery } from "../libs/contracts/dist/operation.js";
|
|
3
3
|
import { ApprovalDecisionEnum, ApprovalStatusEnum } from "./approval.enum.js";
|
|
4
4
|
import { ApprovalCommentModel, ApprovalRequestModel } from "./approval.schema.js";
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.contracts.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/approval/approval.contracts.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/
|
|
1
|
+
{"version":3,"file":"approval.contracts.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/approval/approval.contracts.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operation';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { ApprovalStatusEnum, ApprovalDecisionEnum } from './approval.enum';\nimport { ApprovalRequestModel, ApprovalCommentModel } from './approval.schema';\n\nconst OWNERS = ['@example.workflow-system'] as const;\n\n/**\n * Approve or reject an approval request.\n */\nexport const SubmitDecisionContract = defineCommand({\n meta: {\n name: 'workflow.approval.decide',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['workflow', 'approval', 'decision'],\n description: 'Submit an approval decision (approve/reject).',\n goal: 'Allow approvers to make decisions on requests.',\n context: 'Approval inbox, workflow detail.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ApproveRejectInput',\n fields: {\n requestId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n decision: { type: ApprovalDecisionEnum, isOptional: false },\n comment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n data: { type: ScalarTypeEnum.JSON(), isOptional: true },\n },\n }),\n output: ApprovalRequestModel,\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'workflow.approval.decided',\n version: 1,\n when: 'Decision is made',\n payload: ApprovalRequestModel,\n },\n ],\n audit: ['workflow.approval.decided'],\n },\n});\n\n/**\n * Delegate an approval to another user.\n */\nexport const DelegateApprovalContract = defineCommand({\n meta: {\n name: 'workflow.approval.delegate',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['workflow', 'approval', 'delegate'],\n description: 'Delegate an approval request to another user.',\n goal: 'Allow approvers to pass approval to others.',\n context: 'Approval inbox.',\n },\n io: {\n input: defineSchemaModel({\n name: 'DelegateInput',\n fields: {\n requestId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n delegateTo: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n }),\n output: ApprovalRequestModel,\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'workflow.approval.delegated',\n version: 1,\n when: 'Approval is delegated',\n payload: ApprovalRequestModel,\n },\n ],\n audit: ['workflow.approval.delegated'],\n },\n});\n\n/**\n * Add a comment to an approval request.\n */\nexport const AddApprovalCommentContract = defineCommand({\n meta: {\n name: 'workflow.approval.comment.add',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['workflow', 'approval', 'comment'],\n description: 'Add a comment to an approval request.',\n goal: 'Allow discussion on approval requests.',\n context: 'Approval detail view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'AddCommentInput',\n fields: {\n requestId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n content: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n isInternal: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: ApprovalCommentModel,\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'workflow.approval.comment.added',\n version: 1,\n when: 'Comment is added',\n payload: ApprovalCommentModel,\n },\n ],\n },\n});\n\n/**\n * List approvals assigned to the current user.\n */\nexport const ListMyApprovalsContract = defineQuery({\n meta: {\n name: 'workflow.approval.list.mine',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['workflow', 'approval', 'list', 'inbox'],\n description: 'List approval requests assigned to current user.',\n goal: 'Show pending approvals in user inbox.',\n context: 'Approval inbox, dashboard widget.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListMyApprovalsInput',\n fields: {\n status: { type: ApprovalStatusEnum, isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListMyApprovalsOutput',\n fields: {\n requests: {\n type: ApprovalRequestModel,\n isArray: true,\n isOptional: false,\n },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n pendingCount: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * Get a single approval request.\n */\nexport const GetApprovalContract = defineQuery({\n meta: {\n name: 'workflow.approval.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['workflow', 'approval', 'get'],\n description: 'Get an approval request with details.',\n goal: 'View approval request details.',\n context: 'Approval detail view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetApprovalInput',\n fields: {\n requestId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n },\n }),\n output: ApprovalRequestModel,\n },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;;;AAKA,MAAM,SAAS,CAAC,2BAA2B;;;;AAK3C,MA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CAAC;;;;AAKF,MAAa,sBAAsB,YAAY;CAC7C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAY;GAAM;EACrC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAOD,GAAkB;GACvB,MAAM;GACN,QAAQ,EACN,WAAW;IACT,MAAMC,GAAe,iBAAiB;IACtC,YAAY;IACb,EACF;GACF,CAAC;EACF,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema193 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/approval/approval.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Approval status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ApprovalStatusEnum:
|
|
7
|
+
declare const ApprovalStatusEnum: _lssm_lib_schema193.EnumType<[string, string, string, string, string, string, string]>;
|
|
8
8
|
/**
|
|
9
9
|
* Approval decision enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ApprovalDecisionEnum:
|
|
11
|
+
declare const ApprovalDecisionEnum: _lssm_lib_schema193.EnumType<[string, string, string, string, string]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { ApprovalDecisionEnum, ApprovalStatusEnum };
|
|
14
14
|
//# sourceMappingURL=approval.enum.d.ts.map
|
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema439 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts10 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/approval/approval.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* ApprovalRequestedEvent - An approval has been requested.
|
|
7
7
|
*/
|
|
8
|
-
declare const ApprovalRequestedEvent:
|
|
8
|
+
declare const ApprovalRequestedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema439.SchemaModel<{
|
|
9
9
|
requestId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
instanceId: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
workflowKey: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
approverId: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
approverRole: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
title: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
dueAt: {
|
|
34
|
-
type:
|
|
34
|
+
type: _lssm_lib_schema439.FieldType<Date, string>;
|
|
35
35
|
isOptional: true;
|
|
36
36
|
};
|
|
37
37
|
timestamp: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema439.FieldType<Date, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
}>>;
|
|
42
42
|
/**
|
|
43
43
|
* ApprovalDecidedEvent - An approval decision has been made.
|
|
44
44
|
*/
|
|
45
|
-
declare const ApprovalDecidedEvent:
|
|
45
|
+
declare const ApprovalDecidedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema439.SchemaModel<{
|
|
46
46
|
requestId: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
instanceId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
decision: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
decidedBy: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
comment: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
timestamp: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema439.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
}>>;
|
|
71
71
|
/**
|
|
72
72
|
* ApprovalDelegatedEvent - An approval has been delegated.
|
|
73
73
|
*/
|
|
74
|
-
declare const ApprovalDelegatedEvent:
|
|
74
|
+
declare const ApprovalDelegatedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema439.SchemaModel<{
|
|
75
75
|
requestId: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
instanceId: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
fromUserId: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
toUserId: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
reason: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
93
93
|
isOptional: true;
|
|
94
94
|
};
|
|
95
95
|
timestamp: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema439.FieldType<Date, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
}>>;
|
|
100
100
|
/**
|
|
101
101
|
* ApprovalEscalatedEvent - An approval has been escalated.
|
|
102
102
|
*/
|
|
103
|
-
declare const ApprovalEscalatedEvent:
|
|
103
|
+
declare const ApprovalEscalatedEvent: _lssm_lib_contracts10.EventSpec<_lssm_lib_schema439.SchemaModel<{
|
|
104
104
|
requestId: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
instanceId: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
escalationLevel: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema439.FieldType<number, number>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
escalatedTo: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
reason: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema439.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
timestamp: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema439.FieldType<Date, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.event.d.ts","names":[],"sources":["../../src/approval/approval.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cAiFa,wBAAsB,
|
|
1
|
+
{"version":3,"file":"approval.event.d.ts","names":[],"sources":["../../src/approval/approval.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cAiFa,wBAAsB,qBAAA,CAAA,8BAAA;EAAtB,SAAA,EAAA;IAKX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;EALiC,UAAA,EAAA;IAAA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAUtB,UAAA,EAAA,KAAA;EAKX,CAAA;;;;;;;qBAL+B;EAAA,CAAA;EAAA,KAAA,EAAA;IAUpB,IAAA,+BAKX,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;AAKW,cApBA,oBAyBX,EAzB+B,qBAAA,CAAA,SAyB/B,qBAzB+B,WAyB/B,CAAA;EAAA,SAAA,EAAA;UApBA,mBAAA,CAAA;;;;;;;EAeiC,QAAA,EAAA;IAAA,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAVtB,wBAAsB,qBAAA,CAAA,8BAAA;;UAKjC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,wBAAsB,qBAAA,CAAA,8BAAA;;UAKjC,mBAAA,CAAA"}
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema504 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/approval/approval.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* An approval request.
|
|
6
6
|
*/
|
|
7
|
-
declare const ApprovalRequestModel:
|
|
7
|
+
declare const ApprovalRequestModel: _lssm_lib_schema504.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
workflowInstanceId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
stepExecutionId: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
approverId: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
approverRole: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
26
26
|
isOptional: true;
|
|
27
27
|
};
|
|
28
28
|
title: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
description: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
status: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema504.EnumType<[string, string, string, string, string, string, string]>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
decision: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema504.EnumType<[string, string, string, string, string]>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
decisionComment: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
46
46
|
isOptional: true;
|
|
47
47
|
};
|
|
48
48
|
decidedAt: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema504.FieldType<Date, string>;
|
|
50
50
|
isOptional: true;
|
|
51
51
|
};
|
|
52
52
|
dueAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema504.FieldType<Date, string>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
contextSnapshot: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema504.FieldType<unknown, unknown>;
|
|
58
58
|
isOptional: true;
|
|
59
59
|
};
|
|
60
60
|
sequenceOrder: {
|
|
61
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema504.FieldType<number, number>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
createdAt: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema504.FieldType<Date, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
70
70
|
* A comment on an approval.
|
|
71
71
|
*/
|
|
72
|
-
declare const ApprovalCommentModel:
|
|
72
|
+
declare const ApprovalCommentModel: _lssm_lib_schema504.SchemaModel<{
|
|
73
73
|
id: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
approvalRequestId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
authorId: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
content: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema504.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
isInternal: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema504.FieldType<boolean, boolean>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
createdAt: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema504.FieldType<Date, string>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>;
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema866 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/approval.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Approval status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const ApprovalStatusEnum:
|
|
7
|
+
declare const ApprovalStatusEnum: _lssm_lib_schema866.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Approval decision enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const ApprovalDecisionEnum:
|
|
11
|
+
declare const ApprovalDecisionEnum: _lssm_lib_schema866.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* ApprovalRequest entity - a request for approval from a user.
|
|
14
14
|
*
|
|
15
15
|
* Created when a workflow reaches an APPROVAL step. Multiple requests
|
|
16
16
|
* may be created depending on the approval mode.
|
|
17
17
|
*/
|
|
18
|
-
declare const ApprovalRequestEntity:
|
|
19
|
-
id:
|
|
20
|
-
workflowInstanceId:
|
|
21
|
-
stepExecutionId:
|
|
22
|
-
approverId:
|
|
23
|
-
approverRole:
|
|
24
|
-
title:
|
|
25
|
-
description:
|
|
26
|
-
status:
|
|
27
|
-
decision:
|
|
28
|
-
decisionComment:
|
|
29
|
-
decidedAt:
|
|
30
|
-
delegatedTo:
|
|
31
|
-
delegationReason:
|
|
32
|
-
escalationLevel:
|
|
33
|
-
escalatedAt:
|
|
34
|
-
dueAt:
|
|
35
|
-
reminderSentAt:
|
|
36
|
-
contextSnapshot:
|
|
37
|
-
sequenceOrder:
|
|
38
|
-
createdAt:
|
|
39
|
-
updatedAt:
|
|
40
|
-
workflowInstance:
|
|
41
|
-
stepExecution:
|
|
18
|
+
declare const ApprovalRequestEntity: _lssm_lib_schema866.EntitySpec<{
|
|
19
|
+
id: _lssm_lib_schema866.EntityScalarField;
|
|
20
|
+
workflowInstanceId: _lssm_lib_schema866.EntityScalarField;
|
|
21
|
+
stepExecutionId: _lssm_lib_schema866.EntityScalarField;
|
|
22
|
+
approverId: _lssm_lib_schema866.EntityScalarField;
|
|
23
|
+
approverRole: _lssm_lib_schema866.EntityScalarField;
|
|
24
|
+
title: _lssm_lib_schema866.EntityScalarField;
|
|
25
|
+
description: _lssm_lib_schema866.EntityScalarField;
|
|
26
|
+
status: _lssm_lib_schema866.EntityEnumField;
|
|
27
|
+
decision: _lssm_lib_schema866.EntityEnumField;
|
|
28
|
+
decisionComment: _lssm_lib_schema866.EntityScalarField;
|
|
29
|
+
decidedAt: _lssm_lib_schema866.EntityScalarField;
|
|
30
|
+
delegatedTo: _lssm_lib_schema866.EntityScalarField;
|
|
31
|
+
delegationReason: _lssm_lib_schema866.EntityScalarField;
|
|
32
|
+
escalationLevel: _lssm_lib_schema866.EntityScalarField;
|
|
33
|
+
escalatedAt: _lssm_lib_schema866.EntityScalarField;
|
|
34
|
+
dueAt: _lssm_lib_schema866.EntityScalarField;
|
|
35
|
+
reminderSentAt: _lssm_lib_schema866.EntityScalarField;
|
|
36
|
+
contextSnapshot: _lssm_lib_schema866.EntityScalarField;
|
|
37
|
+
sequenceOrder: _lssm_lib_schema866.EntityScalarField;
|
|
38
|
+
createdAt: _lssm_lib_schema866.EntityScalarField;
|
|
39
|
+
updatedAt: _lssm_lib_schema866.EntityScalarField;
|
|
40
|
+
workflowInstance: _lssm_lib_schema866.EntityRelationField;
|
|
41
|
+
stepExecution: _lssm_lib_schema866.EntityRelationField;
|
|
42
42
|
}>;
|
|
43
43
|
/**
|
|
44
44
|
* ApprovalComment entity - comments on approval requests.
|
|
45
45
|
*/
|
|
46
|
-
declare const ApprovalCommentEntity:
|
|
47
|
-
id:
|
|
48
|
-
approvalRequestId:
|
|
49
|
-
authorId:
|
|
50
|
-
content:
|
|
51
|
-
isInternal:
|
|
52
|
-
createdAt:
|
|
53
|
-
updatedAt:
|
|
54
|
-
approvalRequest:
|
|
46
|
+
declare const ApprovalCommentEntity: _lssm_lib_schema866.EntitySpec<{
|
|
47
|
+
id: _lssm_lib_schema866.EntityScalarField;
|
|
48
|
+
approvalRequestId: _lssm_lib_schema866.EntityScalarField;
|
|
49
|
+
authorId: _lssm_lib_schema866.EntityScalarField;
|
|
50
|
+
content: _lssm_lib_schema866.EntityScalarField;
|
|
51
|
+
isInternal: _lssm_lib_schema866.EntityScalarField;
|
|
52
|
+
createdAt: _lssm_lib_schema866.EntityScalarField;
|
|
53
|
+
updatedAt: _lssm_lib_schema866.EntityScalarField;
|
|
54
|
+
approvalRequest: _lssm_lib_schema866.EntityRelationField;
|
|
55
55
|
}>;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { ApprovalCommentEntity, ApprovalDecisionEnum, ApprovalRequestEntity, ApprovalStatusEnum };
|