@contractspec/example.workflow-system 1.62.0 → 2.1.0
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.enum.d.ts +0 -1
- package/dist/approval/approval.event.d.ts +4 -5
- package/dist/approval/approval.event.js +2 -2
- package/dist/approval/approval.handler.d.ts +0 -1
- package/dist/approval/approval.operations.d.ts +5 -6
- package/dist/approval/approval.operations.js +1 -1
- package/dist/approval/approval.schema.d.ts +0 -1
- package/dist/approval/index.d.ts +0 -1
- package/dist/approval/index.js +3 -3
- package/dist/browser/approval/approval.event.js +2 -2
- package/dist/browser/approval/approval.operations.js +1 -1
- package/dist/browser/approval/index.js +3 -3
- package/dist/browser/docs/index.js +1 -1
- package/dist/browser/docs/workflow-system.docblock.js +1 -1
- package/dist/browser/example.js +1 -1
- package/dist/browser/index.js +14 -11
- package/dist/browser/instance/index.js +3 -3
- package/dist/browser/instance/instance.event.js +2 -2
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/workflow-system.docblock.d.ts +0 -1
- package/dist/docs/workflow-system.docblock.js +1 -1
- package/dist/entities/approval.d.ts +0 -1
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/instance.d.ts +0 -1
- package/dist/entities/step.d.ts +0 -1
- package/dist/entities/workflow.d.ts +0 -1
- package/dist/example.d.ts +1 -2
- package/dist/example.js +1 -1
- package/dist/handlers/index.d.ts +0 -1
- package/dist/handlers/workflow.handlers.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +14 -11
- package/dist/instance/index.d.ts +0 -1
- package/dist/instance/index.js +3 -3
- package/dist/instance/instance.enum.d.ts +0 -1
- package/dist/instance/instance.event.d.ts +9 -10
- package/dist/instance/instance.event.js +2 -2
- package/dist/instance/instance.handler.d.ts +0 -1
- package/dist/instance/instance.operations.d.ts +7 -8
- package/dist/instance/instance.schema.d.ts +0 -1
- package/dist/presentations/index.d.ts +22 -23
- package/dist/seeders/index.d.ts +0 -1
- package/dist/shared/index.d.ts +0 -1
- package/dist/shared/mock-data.d.ts +0 -1
- package/dist/shared/types.d.ts +0 -1
- package/dist/state-machine/index.d.ts +0 -1
- package/dist/tests/operations.test-spec.d.ts +4 -5
- package/dist/ui/WorkflowDashboard.d.ts +0 -1
- package/dist/ui/hooks/index.d.ts +0 -1
- package/dist/ui/hooks/useWorkflowList.d.ts +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/renderers/index.d.ts +0 -1
- package/dist/ui/renderers/workflow.markdown.d.ts +1 -2
- package/dist/workflow/index.d.ts +0 -1
- package/dist/workflow/workflow.enum.d.ts +0 -1
- package/dist/workflow/workflow.event.d.ts +4 -5
- package/dist/workflow/workflow.handler.d.ts +0 -1
- package/dist/workflow/workflow.operations.d.ts +6 -7
- package/dist/workflow/workflow.schema.d.ts +0 -1
- package/dist/workflow-system.capability.d.ts +3 -4
- package/dist/workflow-system.feature.d.ts +1 -2
- package/package.json +8 -8
- package/dist/approval/approval.enum.d.ts.map +0 -1
- package/dist/approval/approval.event.d.ts.map +0 -1
- package/dist/approval/approval.handler.d.ts.map +0 -1
- package/dist/approval/approval.operations.d.ts.map +0 -1
- package/dist/approval/approval.schema.d.ts.map +0 -1
- package/dist/approval/index.d.ts.map +0 -1
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/docs/workflow-system.docblock.d.ts.map +0 -1
- package/dist/entities/approval.d.ts.map +0 -1
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/instance.d.ts.map +0 -1
- package/dist/entities/step.d.ts.map +0 -1
- package/dist/entities/workflow.d.ts.map +0 -1
- package/dist/example.d.ts.map +0 -1
- package/dist/handlers/index.d.ts.map +0 -1
- package/dist/handlers/workflow.handlers.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/instance/index.d.ts.map +0 -1
- package/dist/instance/instance.enum.d.ts.map +0 -1
- package/dist/instance/instance.event.d.ts.map +0 -1
- package/dist/instance/instance.handler.d.ts.map +0 -1
- package/dist/instance/instance.operations.d.ts.map +0 -1
- package/dist/instance/instance.schema.d.ts.map +0 -1
- package/dist/presentations/index.d.ts.map +0 -1
- package/dist/seeders/index.d.ts.map +0 -1
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/mock-data.d.ts.map +0 -1
- package/dist/shared/types.d.ts.map +0 -1
- package/dist/state-machine/index.d.ts.map +0 -1
- package/dist/tests/operations.test-spec.d.ts.map +0 -1
- package/dist/ui/WorkflowDashboard.d.ts.map +0 -1
- package/dist/ui/hooks/index.d.ts.map +0 -1
- package/dist/ui/hooks/useWorkflowList.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/renderers/index.d.ts.map +0 -1
- package/dist/ui/renderers/workflow.markdown.d.ts.map +0 -1
- package/dist/workflow/index.d.ts.map +0 -1
- package/dist/workflow/workflow.enum.d.ts.map +0 -1
- package/dist/workflow/workflow.event.d.ts.map +0 -1
- package/dist/workflow/workflow.handler.d.ts.map +0 -1
- package/dist/workflow/workflow.operations.d.ts.map +0 -1
- package/dist/workflow/workflow.schema.d.ts.map +0 -1
- package/dist/workflow-system.capability.d.ts.map +0 -1
- package/dist/workflow-system.feature.d.ts.map +0 -1
|
@@ -6,4 +6,3 @@ export declare const ApprovalStatusEnum: import("@contractspec/lib.schema").Enum
|
|
|
6
6
|
* Approval decision enum.
|
|
7
7
|
*/
|
|
8
8
|
export declare const ApprovalDecisionEnum: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string]>;
|
|
9
|
-
//# sourceMappingURL=approval.enum.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ApprovalRequestedEvent - An approval has been requested.
|
|
3
3
|
*/
|
|
4
|
-
export declare const ApprovalRequestedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const ApprovalRequestedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
requestId: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -38,7 +38,7 @@ export declare const ApprovalRequestedEvent: import("@contractspec/lib.contracts
|
|
|
38
38
|
/**
|
|
39
39
|
* ApprovalDecidedEvent - An approval decision has been made.
|
|
40
40
|
*/
|
|
41
|
-
export declare const ApprovalDecidedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
41
|
+
export declare const ApprovalDecidedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
42
42
|
requestId: {
|
|
43
43
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
@@ -67,7 +67,7 @@ export declare const ApprovalDecidedEvent: import("@contractspec/lib.contracts")
|
|
|
67
67
|
/**
|
|
68
68
|
* ApprovalDelegatedEvent - An approval has been delegated.
|
|
69
69
|
*/
|
|
70
|
-
export declare const ApprovalDelegatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
70
|
+
export declare const ApprovalDelegatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
71
71
|
requestId: {
|
|
72
72
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
@@ -96,7 +96,7 @@ export declare const ApprovalDelegatedEvent: import("@contractspec/lib.contracts
|
|
|
96
96
|
/**
|
|
97
97
|
* ApprovalEscalatedEvent - An approval has been escalated.
|
|
98
98
|
*/
|
|
99
|
-
export declare const ApprovalEscalatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
99
|
+
export declare const ApprovalEscalatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
100
100
|
requestId: {
|
|
101
101
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
@@ -122,4 +122,3 @@ export declare const ApprovalEscalatedEvent: import("@contractspec/lib.contracts
|
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
}>>;
|
|
125
|
-
//# sourceMappingURL=approval.event.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/approval/approval.event.ts
|
|
3
|
-
import { defineEvent
|
|
4
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
3
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
4
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
5
5
|
var ApprovalRequestedPayload = defineSchemaModel({
|
|
6
6
|
name: "ApprovalRequestedEventPayload",
|
|
7
7
|
description: "Payload when approval is requested",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Approve or reject an approval request.
|
|
3
3
|
*/
|
|
4
|
-
export declare const SubmitDecisionContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const SubmitDecisionContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
requestId: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -149,7 +149,7 @@ export declare const SubmitDecisionContract: import("@contractspec/lib.contracts
|
|
|
149
149
|
/**
|
|
150
150
|
* Delegate an approval to another user.
|
|
151
151
|
*/
|
|
152
|
-
export declare const DelegateApprovalContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
152
|
+
export declare const DelegateApprovalContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
153
153
|
requestId: {
|
|
154
154
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
@@ -293,7 +293,7 @@ export declare const DelegateApprovalContract: import("@contractspec/lib.contrac
|
|
|
293
293
|
/**
|
|
294
294
|
* Add a comment to an approval request.
|
|
295
295
|
*/
|
|
296
|
-
export declare const AddApprovalCommentContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
296
|
+
export declare const AddApprovalCommentContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
297
297
|
requestId: {
|
|
298
298
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
299
299
|
isOptional: false;
|
|
@@ -365,7 +365,7 @@ export declare const AddApprovalCommentContract: import("@contractspec/lib.contr
|
|
|
365
365
|
/**
|
|
366
366
|
* List approvals assigned to the current user.
|
|
367
367
|
*/
|
|
368
|
-
export declare const ListMyApprovalsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
368
|
+
export declare const ListMyApprovalsContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
369
369
|
status: {
|
|
370
370
|
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string]>;
|
|
371
371
|
isOptional: true;
|
|
@@ -459,7 +459,7 @@ export declare const ListMyApprovalsContract: import("@contractspec/lib.contract
|
|
|
459
459
|
/**
|
|
460
460
|
* Get a single approval request.
|
|
461
461
|
*/
|
|
462
|
-
export declare const GetApprovalContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
462
|
+
export declare const GetApprovalContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
463
463
|
requestId: {
|
|
464
464
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
465
465
|
isOptional: false;
|
|
@@ -526,4 +526,3 @@ export declare const GetApprovalContract: import("@contractspec/lib.contracts").
|
|
|
526
526
|
isOptional: false;
|
|
527
527
|
};
|
|
528
528
|
}>, undefined>;
|
|
529
|
-
//# sourceMappingURL=approval.operations.d.ts.map
|
|
@@ -73,7 +73,7 @@ var ApprovalCommentModel = defineSchemaModel({
|
|
|
73
73
|
import {
|
|
74
74
|
defineCommand,
|
|
75
75
|
defineQuery
|
|
76
|
-
} from "@contractspec/lib.contracts/operations";
|
|
76
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
77
77
|
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
78
78
|
var OWNERS = ["@example.workflow-system"];
|
|
79
79
|
var SubmitDecisionContract = defineCommand({
|
package/dist/approval/index.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ export { ApprovalStatusEnum, ApprovalDecisionEnum } from './approval.enum';
|
|
|
5
5
|
export { ApprovalRequestModel, ApprovalCommentModel } from './approval.schema';
|
|
6
6
|
export { SubmitDecisionContract, DelegateApprovalContract, AddApprovalCommentContract, ListMyApprovalsContract, GetApprovalContract, } from './approval.operations';
|
|
7
7
|
export { ApprovalRequestedEvent, ApprovalDecidedEvent, ApprovalDelegatedEvent, ApprovalEscalatedEvent, } from './approval.event';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/approval/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var ApprovalDecisionEnum = defineEnum("ApprovalDecision", [
|
|
|
19
19
|
]);
|
|
20
20
|
|
|
21
21
|
// src/approval/approval.event.ts
|
|
22
|
-
import { defineEvent
|
|
23
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
22
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
23
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
24
24
|
var ApprovalRequestedPayload = defineSchemaModel({
|
|
25
25
|
name: "ApprovalRequestedEventPayload",
|
|
26
26
|
description: "Payload when approval is requested",
|
|
@@ -180,7 +180,7 @@ var ApprovalCommentModel = defineSchemaModel2({
|
|
|
180
180
|
import {
|
|
181
181
|
defineCommand,
|
|
182
182
|
defineQuery
|
|
183
|
-
} from "@contractspec/lib.contracts/operations";
|
|
183
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
184
184
|
import { defineSchemaModel as defineSchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
185
185
|
var OWNERS = ["@example.workflow-system"];
|
|
186
186
|
var SubmitDecisionContract = defineCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/approval/approval.event.ts
|
|
2
|
-
import { defineEvent
|
|
3
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
2
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
3
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
4
|
var ApprovalRequestedPayload = defineSchemaModel({
|
|
5
5
|
name: "ApprovalRequestedEventPayload",
|
|
6
6
|
description: "Payload when approval is requested",
|
|
@@ -72,7 +72,7 @@ var ApprovalCommentModel = defineSchemaModel({
|
|
|
72
72
|
import {
|
|
73
73
|
defineCommand,
|
|
74
74
|
defineQuery
|
|
75
|
-
} from "@contractspec/lib.contracts/operations";
|
|
75
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
76
76
|
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
77
77
|
var OWNERS = ["@example.workflow-system"];
|
|
78
78
|
var SubmitDecisionContract = defineCommand({
|
|
@@ -18,8 +18,8 @@ var ApprovalDecisionEnum = defineEnum("ApprovalDecision", [
|
|
|
18
18
|
]);
|
|
19
19
|
|
|
20
20
|
// src/approval/approval.event.ts
|
|
21
|
-
import { defineEvent
|
|
22
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
21
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
22
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
23
23
|
var ApprovalRequestedPayload = defineSchemaModel({
|
|
24
24
|
name: "ApprovalRequestedEventPayload",
|
|
25
25
|
description: "Payload when approval is requested",
|
|
@@ -179,7 +179,7 @@ var ApprovalCommentModel = defineSchemaModel2({
|
|
|
179
179
|
import {
|
|
180
180
|
defineCommand,
|
|
181
181
|
defineQuery
|
|
182
|
-
} from "@contractspec/lib.contracts/operations";
|
|
182
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
183
183
|
import { defineSchemaModel as defineSchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
184
184
|
var OWNERS = ["@example.workflow-system"];
|
|
185
185
|
var SubmitDecisionContract = defineCommand({
|
package/dist/browser/example.js
CHANGED
package/dist/browser/index.js
CHANGED
|
@@ -18,8 +18,8 @@ var ApprovalDecisionEnum = defineEnum("ApprovalDecision", [
|
|
|
18
18
|
]);
|
|
19
19
|
|
|
20
20
|
// src/approval/approval.event.ts
|
|
21
|
-
import { defineEvent
|
|
22
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
21
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
22
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
23
23
|
var ApprovalRequestedPayload = defineSchemaModel({
|
|
24
24
|
name: "ApprovalRequestedEventPayload",
|
|
25
25
|
description: "Payload when approval is requested",
|
|
@@ -371,7 +371,7 @@ var ApprovalCommentModel = defineSchemaModel2({
|
|
|
371
371
|
import {
|
|
372
372
|
defineCommand,
|
|
373
373
|
defineQuery
|
|
374
|
-
} from "@contractspec/lib.contracts/operations";
|
|
374
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
375
375
|
import { defineSchemaModel as defineSchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
376
376
|
var OWNERS = ["@example.workflow-system"];
|
|
377
377
|
var SubmitDecisionContract = defineCommand({
|
|
@@ -1059,7 +1059,7 @@ var AddStepInputModel = defineSchemaModel4({
|
|
|
1059
1059
|
import {
|
|
1060
1060
|
defineCommand as defineCommand2,
|
|
1061
1061
|
defineQuery as defineQuery2
|
|
1062
|
-
} from "@contractspec/lib.contracts/operations";
|
|
1062
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
1063
1063
|
import { defineSchemaModel as defineSchemaModel5, ScalarTypeEnum as ScalarTypeEnum5 } from "@contractspec/lib.schema";
|
|
1064
1064
|
var OWNERS2 = ["@example.workflow-system"];
|
|
1065
1065
|
var CreateWorkflowContract = defineCommand2({
|
|
@@ -1368,8 +1368,8 @@ var GetWorkflowContract = defineQuery2({
|
|
|
1368
1368
|
});
|
|
1369
1369
|
|
|
1370
1370
|
// src/workflow/workflow.event.ts
|
|
1371
|
-
import { defineEvent as defineEvent2
|
|
1372
|
-
import { ScalarTypeEnum as ScalarTypeEnum6 } from "@contractspec/lib.schema";
|
|
1371
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
1372
|
+
import { ScalarTypeEnum as ScalarTypeEnum6, defineSchemaModel as defineSchemaModel6 } from "@contractspec/lib.schema";
|
|
1373
1373
|
var WorkflowDefinitionPayload = defineSchemaModel6({
|
|
1374
1374
|
name: "WorkflowDefinitionEventPayload",
|
|
1375
1375
|
description: "Payload for workflow definition events",
|
|
@@ -1542,7 +1542,7 @@ var TransitionResultModel = defineSchemaModel7({
|
|
|
1542
1542
|
import {
|
|
1543
1543
|
defineCommand as defineCommand3,
|
|
1544
1544
|
defineQuery as defineQuery3
|
|
1545
|
-
} from "@contractspec/lib.contracts/operations";
|
|
1545
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
1546
1546
|
import { defineSchemaModel as defineSchemaModel8, ScalarTypeEnum as ScalarTypeEnum8 } from "@contractspec/lib.schema";
|
|
1547
1547
|
var OWNERS3 = ["@example.workflow-system"];
|
|
1548
1548
|
var StartWorkflowContract = defineCommand3({
|
|
@@ -1944,8 +1944,8 @@ var GetInstanceContract = defineQuery3({
|
|
|
1944
1944
|
});
|
|
1945
1945
|
|
|
1946
1946
|
// src/instance/instance.event.ts
|
|
1947
|
-
import { defineEvent as defineEvent3
|
|
1948
|
-
import { ScalarTypeEnum as ScalarTypeEnum9 } from "@contractspec/lib.schema";
|
|
1947
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
1948
|
+
import { ScalarTypeEnum as ScalarTypeEnum9, defineSchemaModel as defineSchemaModel9 } from "@contractspec/lib.schema";
|
|
1949
1949
|
var InstanceEventPayload = defineSchemaModel9({
|
|
1950
1950
|
name: "InstanceEventPayload",
|
|
1951
1951
|
description: "Base payload for instance events",
|
|
@@ -2097,7 +2097,10 @@ var InstanceTimedOutEvent = defineEvent3({
|
|
|
2097
2097
|
payload: InstanceEventPayload
|
|
2098
2098
|
});
|
|
2099
2099
|
// src/presentations/index.ts
|
|
2100
|
-
import {
|
|
2100
|
+
import {
|
|
2101
|
+
definePresentation,
|
|
2102
|
+
StabilityEnum
|
|
2103
|
+
} from "@contractspec/lib.contracts-spec";
|
|
2101
2104
|
var WorkflowDesignerPresentation = definePresentation({
|
|
2102
2105
|
meta: {
|
|
2103
2106
|
key: "workflow.designer",
|
|
@@ -2374,7 +2377,7 @@ var WorkflowSystemPresentations = {
|
|
|
2374
2377
|
};
|
|
2375
2378
|
|
|
2376
2379
|
// src/workflow-system.feature.ts
|
|
2377
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
2380
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
2378
2381
|
var WorkflowSystemFeature = defineFeature({
|
|
2379
2382
|
meta: {
|
|
2380
2383
|
key: "workflow-system",
|
|
@@ -98,7 +98,7 @@ var TransitionResultModel = defineSchemaModel({
|
|
|
98
98
|
import {
|
|
99
99
|
defineCommand,
|
|
100
100
|
defineQuery
|
|
101
|
-
} from "@contractspec/lib.contracts/operations";
|
|
101
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
102
102
|
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
103
103
|
var OWNERS = ["@example.workflow-system"];
|
|
104
104
|
var StartWorkflowContract = defineCommand({
|
|
@@ -500,8 +500,8 @@ var GetInstanceContract = defineQuery({
|
|
|
500
500
|
});
|
|
501
501
|
|
|
502
502
|
// src/instance/instance.event.ts
|
|
503
|
-
import { defineEvent
|
|
504
|
-
import { ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
503
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
504
|
+
import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
|
|
505
505
|
var InstanceEventPayload = defineSchemaModel3({
|
|
506
506
|
name: "InstanceEventPayload",
|
|
507
507
|
description: "Base payload for instance events",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/instance/instance.event.ts
|
|
2
|
-
import { defineEvent
|
|
3
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
2
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
3
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
4
|
var InstanceEventPayload = defineSchemaModel({
|
|
5
5
|
name: "InstanceEventPayload",
|
|
6
6
|
description: "Base payload for instance events",
|
package/dist/docs/index.d.ts
CHANGED
package/dist/docs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/workflow-system.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var workflowSystemDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.workflow-system",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/docs/workflow-system.docblock.ts
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
4
|
var workflowSystemDocBlocks = [
|
|
5
5
|
{
|
|
6
6
|
id: "docs.examples.workflow-system",
|
|
@@ -50,4 +50,3 @@ export declare const ApprovalCommentEntity: import("@contractspec/lib.schema").E
|
|
|
50
50
|
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
51
51
|
approvalRequest: import("@contractspec/lib.schema").EntityRelationField;
|
|
52
52
|
}>;
|
|
53
|
-
//# sourceMappingURL=approval.d.ts.map
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -131,4 +131,3 @@ export declare const workflowSystemEntities: (import("@contractspec/lib.schema")
|
|
|
131
131
|
workflowStep: import("@contractspec/lib.schema").EntityRelationField;
|
|
132
132
|
}>)[];
|
|
133
133
|
export declare const workflowSystemSchemaContribution: ModuleSchemaContribution;
|
|
134
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -61,4 +61,3 @@ export declare const StepExecutionEntity: import("@contractspec/lib.schema").Ent
|
|
|
61
61
|
workflowInstance: import("@contractspec/lib.schema").EntityRelationField;
|
|
62
62
|
workflowStep: import("@contractspec/lib.schema").EntityRelationField;
|
|
63
63
|
}>;
|
|
64
|
-
//# sourceMappingURL=instance.d.ts.map
|
package/dist/entities/step.d.ts
CHANGED
|
@@ -42,4 +42,3 @@ export declare const WorkflowStepEntity: import("@contractspec/lib.schema").Enti
|
|
|
42
42
|
workflowDefinition: import("@contractspec/lib.schema").EntityRelationField;
|
|
43
43
|
executions: import("@contractspec/lib.schema").EntityRelationField;
|
|
44
44
|
}>;
|
|
45
|
-
//# sourceMappingURL=step.d.ts.map
|
package/dist/example.d.ts
CHANGED
package/dist/example.js
CHANGED
package/dist/handlers/index.d.ts
CHANGED
|
@@ -119,4 +119,3 @@ export declare function createWorkflowHandlers(db: DatabasePort): {
|
|
|
119
119
|
getApprovals: (instanceId: string) => Promise<WorkflowApproval[]>;
|
|
120
120
|
};
|
|
121
121
|
export type WorkflowHandlers = ReturnType<typeof createWorkflowHandlers>;
|
|
122
|
-
//# sourceMappingURL=workflow.handlers.d.ts.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var ApprovalDecisionEnum = defineEnum("ApprovalDecision", [
|
|
|
19
19
|
]);
|
|
20
20
|
|
|
21
21
|
// src/approval/approval.event.ts
|
|
22
|
-
import { defineEvent
|
|
23
|
-
import { ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
22
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
23
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
24
24
|
var ApprovalRequestedPayload = defineSchemaModel({
|
|
25
25
|
name: "ApprovalRequestedEventPayload",
|
|
26
26
|
description: "Payload when approval is requested",
|
|
@@ -372,7 +372,7 @@ var ApprovalCommentModel = defineSchemaModel2({
|
|
|
372
372
|
import {
|
|
373
373
|
defineCommand,
|
|
374
374
|
defineQuery
|
|
375
|
-
} from "@contractspec/lib.contracts/operations";
|
|
375
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
376
376
|
import { defineSchemaModel as defineSchemaModel3, ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
377
377
|
var OWNERS = ["@example.workflow-system"];
|
|
378
378
|
var SubmitDecisionContract = defineCommand({
|
|
@@ -1060,7 +1060,7 @@ var AddStepInputModel = defineSchemaModel4({
|
|
|
1060
1060
|
import {
|
|
1061
1061
|
defineCommand as defineCommand2,
|
|
1062
1062
|
defineQuery as defineQuery2
|
|
1063
|
-
} from "@contractspec/lib.contracts/operations";
|
|
1063
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
1064
1064
|
import { defineSchemaModel as defineSchemaModel5, ScalarTypeEnum as ScalarTypeEnum5 } from "@contractspec/lib.schema";
|
|
1065
1065
|
var OWNERS2 = ["@example.workflow-system"];
|
|
1066
1066
|
var CreateWorkflowContract = defineCommand2({
|
|
@@ -1369,8 +1369,8 @@ var GetWorkflowContract = defineQuery2({
|
|
|
1369
1369
|
});
|
|
1370
1370
|
|
|
1371
1371
|
// src/workflow/workflow.event.ts
|
|
1372
|
-
import { defineEvent as defineEvent2
|
|
1373
|
-
import { ScalarTypeEnum as ScalarTypeEnum6 } from "@contractspec/lib.schema";
|
|
1372
|
+
import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
|
|
1373
|
+
import { ScalarTypeEnum as ScalarTypeEnum6, defineSchemaModel as defineSchemaModel6 } from "@contractspec/lib.schema";
|
|
1374
1374
|
var WorkflowDefinitionPayload = defineSchemaModel6({
|
|
1375
1375
|
name: "WorkflowDefinitionEventPayload",
|
|
1376
1376
|
description: "Payload for workflow definition events",
|
|
@@ -1543,7 +1543,7 @@ var TransitionResultModel = defineSchemaModel7({
|
|
|
1543
1543
|
import {
|
|
1544
1544
|
defineCommand as defineCommand3,
|
|
1545
1545
|
defineQuery as defineQuery3
|
|
1546
|
-
} from "@contractspec/lib.contracts/operations";
|
|
1546
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
1547
1547
|
import { defineSchemaModel as defineSchemaModel8, ScalarTypeEnum as ScalarTypeEnum8 } from "@contractspec/lib.schema";
|
|
1548
1548
|
var OWNERS3 = ["@example.workflow-system"];
|
|
1549
1549
|
var StartWorkflowContract = defineCommand3({
|
|
@@ -1945,8 +1945,8 @@ var GetInstanceContract = defineQuery3({
|
|
|
1945
1945
|
});
|
|
1946
1946
|
|
|
1947
1947
|
// src/instance/instance.event.ts
|
|
1948
|
-
import { defineEvent as defineEvent3
|
|
1949
|
-
import { ScalarTypeEnum as ScalarTypeEnum9 } from "@contractspec/lib.schema";
|
|
1948
|
+
import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
|
|
1949
|
+
import { ScalarTypeEnum as ScalarTypeEnum9, defineSchemaModel as defineSchemaModel9 } from "@contractspec/lib.schema";
|
|
1950
1950
|
var InstanceEventPayload = defineSchemaModel9({
|
|
1951
1951
|
name: "InstanceEventPayload",
|
|
1952
1952
|
description: "Base payload for instance events",
|
|
@@ -2098,7 +2098,10 @@ var InstanceTimedOutEvent = defineEvent3({
|
|
|
2098
2098
|
payload: InstanceEventPayload
|
|
2099
2099
|
});
|
|
2100
2100
|
// src/presentations/index.ts
|
|
2101
|
-
import {
|
|
2101
|
+
import {
|
|
2102
|
+
definePresentation,
|
|
2103
|
+
StabilityEnum
|
|
2104
|
+
} from "@contractspec/lib.contracts-spec";
|
|
2102
2105
|
var WorkflowDesignerPresentation = definePresentation({
|
|
2103
2106
|
meta: {
|
|
2104
2107
|
key: "workflow.designer",
|
|
@@ -2375,7 +2378,7 @@ var WorkflowSystemPresentations = {
|
|
|
2375
2378
|
};
|
|
2376
2379
|
|
|
2377
2380
|
// src/workflow-system.feature.ts
|
|
2378
|
-
import { defineFeature } from "@contractspec/lib.contracts";
|
|
2381
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
2379
2382
|
var WorkflowSystemFeature = defineFeature({
|
|
2380
2383
|
meta: {
|
|
2381
2384
|
key: "workflow-system",
|
package/dist/instance/index.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ export { InstanceStatusEnum } from './instance.enum';
|
|
|
5
5
|
export { WorkflowInstanceModel, StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, } from './instance.schema';
|
|
6
6
|
export { StartWorkflowContract, TransitionWorkflowContract, PauseWorkflowContract, ResumeWorkflowContract, CancelWorkflowContract, ListInstancesContract, GetInstanceContract, } from './instance.operations';
|
|
7
7
|
export { InstanceStartedEvent, StepEnteredEvent, StepExitedEvent, InstanceCompletedEvent, InstanceCancelledEvent, InstancePausedEvent, InstanceResumedEvent, InstanceFailedEvent, InstanceTimedOutEvent, } from './instance.event';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/instance/index.js
CHANGED
|
@@ -99,7 +99,7 @@ var TransitionResultModel = defineSchemaModel({
|
|
|
99
99
|
import {
|
|
100
100
|
defineCommand,
|
|
101
101
|
defineQuery
|
|
102
|
-
} from "@contractspec/lib.contracts/operations";
|
|
102
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
103
103
|
import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
|
|
104
104
|
var OWNERS = ["@example.workflow-system"];
|
|
105
105
|
var StartWorkflowContract = defineCommand({
|
|
@@ -501,8 +501,8 @@ var GetInstanceContract = defineQuery({
|
|
|
501
501
|
});
|
|
502
502
|
|
|
503
503
|
// src/instance/instance.event.ts
|
|
504
|
-
import { defineEvent
|
|
505
|
-
import { ScalarTypeEnum as ScalarTypeEnum3 } from "@contractspec/lib.schema";
|
|
504
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
505
|
+
import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
|
|
506
506
|
var InstanceEventPayload = defineSchemaModel3({
|
|
507
507
|
name: "InstanceEventPayload",
|
|
508
508
|
description: "Base payload for instance events",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* InstanceStartedEvent - A new workflow instance has been started.
|
|
3
3
|
*/
|
|
4
|
-
export declare const InstanceStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const InstanceStartedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
instanceId: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -42,7 +42,7 @@ export declare const InstanceStartedEvent: import("@contractspec/lib.contracts")
|
|
|
42
42
|
/**
|
|
43
43
|
* StepEnteredEvent - A workflow instance has entered a new step.
|
|
44
44
|
*/
|
|
45
|
-
export declare const StepEnteredEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
45
|
+
export declare const StepEnteredEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
46
46
|
instanceId: {
|
|
47
47
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
@@ -75,7 +75,7 @@ export declare const StepEnteredEvent: import("@contractspec/lib.contracts").Eve
|
|
|
75
75
|
/**
|
|
76
76
|
* StepExitedEvent - A workflow instance has exited a step.
|
|
77
77
|
*/
|
|
78
|
-
export declare const StepExitedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
78
|
+
export declare const StepExitedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
79
79
|
instanceId: {
|
|
80
80
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
@@ -108,7 +108,7 @@ export declare const StepExitedEvent: import("@contractspec/lib.contracts").Even
|
|
|
108
108
|
/**
|
|
109
109
|
* InstanceCompletedEvent - A workflow instance has completed.
|
|
110
110
|
*/
|
|
111
|
-
export declare const InstanceCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
111
|
+
export declare const InstanceCompletedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
112
112
|
instanceId: {
|
|
113
113
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
114
114
|
isOptional: false;
|
|
@@ -145,7 +145,7 @@ export declare const InstanceCompletedEvent: import("@contractspec/lib.contracts
|
|
|
145
145
|
/**
|
|
146
146
|
* InstanceCancelledEvent - A workflow instance has been cancelled.
|
|
147
147
|
*/
|
|
148
|
-
export declare const InstanceCancelledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
148
|
+
export declare const InstanceCancelledEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
149
149
|
instanceId: {
|
|
150
150
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
151
151
|
isOptional: false;
|
|
@@ -186,7 +186,7 @@ export declare const InstanceCancelledEvent: import("@contractspec/lib.contracts
|
|
|
186
186
|
/**
|
|
187
187
|
* InstancePausedEvent - A workflow instance has been paused.
|
|
188
188
|
*/
|
|
189
|
-
export declare const InstancePausedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
189
|
+
export declare const InstancePausedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
190
190
|
instanceId: {
|
|
191
191
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
@@ -227,7 +227,7 @@ export declare const InstancePausedEvent: import("@contractspec/lib.contracts").
|
|
|
227
227
|
/**
|
|
228
228
|
* InstanceResumedEvent - A workflow instance has been resumed.
|
|
229
229
|
*/
|
|
230
|
-
export declare const InstanceResumedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
230
|
+
export declare const InstanceResumedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
231
231
|
instanceId: {
|
|
232
232
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
233
233
|
isOptional: false;
|
|
@@ -268,7 +268,7 @@ export declare const InstanceResumedEvent: import("@contractspec/lib.contracts")
|
|
|
268
268
|
/**
|
|
269
269
|
* InstanceFailedEvent - A workflow instance has failed.
|
|
270
270
|
*/
|
|
271
|
-
export declare const InstanceFailedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
271
|
+
export declare const InstanceFailedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
272
272
|
instanceId: {
|
|
273
273
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
274
274
|
isOptional: false;
|
|
@@ -309,7 +309,7 @@ export declare const InstanceFailedEvent: import("@contractspec/lib.contracts").
|
|
|
309
309
|
/**
|
|
310
310
|
* InstanceTimedOutEvent - A workflow instance has timed out.
|
|
311
311
|
*/
|
|
312
|
-
export declare const InstanceTimedOutEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
312
|
+
export declare const InstanceTimedOutEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
313
313
|
instanceId: {
|
|
314
314
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
315
315
|
isOptional: false;
|
|
@@ -347,4 +347,3 @@ export declare const InstanceTimedOutEvent: import("@contractspec/lib.contracts"
|
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
}>>;
|
|
350
|
-
//# sourceMappingURL=instance.event.d.ts.map
|