@contractspec/example.kb-update-pipeline 1.57.0 → 1.58.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/.turbo/turbo-build.log +58 -60
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +13 -0
- package/dist/browser/docs/index.js +43 -0
- package/dist/browser/docs/kb-update-pipeline.docblock.js +43 -0
- package/dist/browser/entities/index.js +56 -0
- package/dist/browser/entities/models.js +56 -0
- package/dist/browser/events.js +132 -0
- package/dist/browser/example.js +35 -0
- package/dist/browser/handlers/index.js +109 -0
- package/dist/browser/handlers/memory.handlers.js +109 -0
- package/dist/browser/index.js +646 -0
- package/dist/browser/kb-update-pipeline.feature.js +61 -0
- package/dist/browser/operations/index.js +199 -0
- package/dist/browser/operations/pipeline.js +199 -0
- package/dist/browser/presentations.js +120 -0
- package/dist/browser/tests/operations.test-spec.js +85 -0
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +44 -1
- package/dist/docs/kb-update-pipeline.docblock.d.ts +2 -1
- package/dist/docs/kb-update-pipeline.docblock.d.ts.map +1 -0
- package/dist/docs/kb-update-pipeline.docblock.js +41 -28
- package/dist/entities/index.d.ts +2 -2
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +57 -3
- package/dist/entities/models.d.ts +53 -58
- package/dist/entities/models.d.ts.map +1 -1
- package/dist/entities/models.js +54 -71
- package/dist/events.d.ts +62 -68
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +122 -139
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +34 -47
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +110 -3
- package/dist/handlers/memory.handlers.d.ts +58 -60
- package/dist/handlers/memory.handlers.d.ts.map +1 -1
- package/dist/handlers/memory.handlers.js +104 -87
- package/dist/handlers/memory.handlers.test.d.ts +2 -0
- package/dist/handlers/memory.handlers.test.d.ts.map +1 -0
- package/dist/index.d.ts +14 -10
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +647 -12
- package/dist/kb-update-pipeline.feature.d.ts +1 -6
- package/dist/kb-update-pipeline.feature.d.ts.map +1 -1
- package/dist/kb-update-pipeline.feature.js +60 -140
- package/dist/node/docs/index.js +43 -0
- package/dist/node/docs/kb-update-pipeline.docblock.js +43 -0
- package/dist/node/entities/index.js +56 -0
- package/dist/node/entities/models.js +56 -0
- package/dist/node/events.js +132 -0
- package/dist/node/example.js +35 -0
- package/dist/node/handlers/index.js +109 -0
- package/dist/node/handlers/memory.handlers.js +109 -0
- package/dist/node/index.js +646 -0
- package/dist/node/kb-update-pipeline.feature.js +61 -0
- package/dist/node/operations/index.js +199 -0
- package/dist/node/operations/pipeline.js +199 -0
- package/dist/node/presentations.js +120 -0
- package/dist/node/tests/operations.test-spec.js +85 -0
- package/dist/operations/index.d.ts +2 -2
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +199 -2
- package/dist/operations/pipeline.d.ts +126 -132
- package/dist/operations/pipeline.d.ts.map +1 -1
- package/dist/operations/pipeline.js +189 -172
- package/dist/presentations.d.ts +3 -8
- package/dist/presentations.d.ts.map +1 -1
- package/dist/presentations.js +117 -67
- package/dist/tests/operations.test-spec.d.ts +3 -8
- package/dist/tests/operations.test-spec.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.js +82 -90
- package/package.json +157 -41
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -60
- package/dist/docs/kb-update-pipeline.docblock.js.map +0 -1
- package/dist/entities/models.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/memory.handlers.js.map +0 -1
- package/dist/kb-update-pipeline.feature.js.map +0 -1
- package/dist/operations/pipeline.js.map +0 -1
- package/dist/presentations.js.map +0 -1
- package/dist/tests/operations.test-spec.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,31 +1,44 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/docs/kb-update-pipeline.docblock.ts
|
|
1
3
|
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
4
|
+
var docBlocks = [
|
|
5
|
+
{
|
|
6
|
+
id: "docs.examples.kb-update-pipeline.goal",
|
|
7
|
+
title: "KB Update Pipeline \u2014 Goal",
|
|
8
|
+
summary: "Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.",
|
|
9
|
+
kind: "goal",
|
|
10
|
+
visibility: "public",
|
|
11
|
+
route: "/docs/examples/kb-update-pipeline/goal",
|
|
12
|
+
tags: ["knowledge", "pipeline", "hitl", "audit"],
|
|
13
|
+
body: `## Why it matters
|
|
14
|
+
- Keeps humans as the verifiers (HITL) while automation does the busywork.
|
|
15
|
+
- Produces an auditable chain: source change -> diff -> proposal -> review -> publish.
|
|
2
16
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
title: "KB Update Pipeline — Reference",
|
|
22
|
-
summary: "Entities, contracts, and events for the KB update pipeline example.",
|
|
23
|
-
kind: "reference",
|
|
24
|
-
visibility: "public",
|
|
25
|
-
route: "/docs/examples/kb-update-pipeline",
|
|
26
|
-
tags: ["knowledge", "reference"],
|
|
27
|
-
body: `## Contracts\n- kbPipeline.runWatch\n- kbPipeline.createReviewTask\n- kbPipeline.submitDecision\n- kbPipeline.publishIfReady\n\n## Events\n- kb.change.detected\n- kb.change.summarized\n- kb.patch.proposed\n- kb.review.requested\n- kb.review.decided`
|
|
28
|
-
}]);
|
|
17
|
+
## Guardrails
|
|
18
|
+
- High-risk changes require expert approval.
|
|
19
|
+
- Publishing fails if any included rule versions are not approved.
|
|
20
|
+
- Review requests emit notifications/events.`
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "docs.examples.kb-update-pipeline.reference",
|
|
24
|
+
title: "KB Update Pipeline \u2014 Reference",
|
|
25
|
+
summary: "Entities, contracts, and events for the KB update pipeline example.",
|
|
26
|
+
kind: "reference",
|
|
27
|
+
visibility: "public",
|
|
28
|
+
route: "/docs/examples/kb-update-pipeline",
|
|
29
|
+
tags: ["knowledge", "reference"],
|
|
30
|
+
body: `## Contracts
|
|
31
|
+
- kbPipeline.runWatch
|
|
32
|
+
- kbPipeline.createReviewTask
|
|
33
|
+
- kbPipeline.submitDecision
|
|
34
|
+
- kbPipeline.publishIfReady
|
|
29
35
|
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
## Events
|
|
37
|
+
- kb.change.detected
|
|
38
|
+
- kb.change.summarized
|
|
39
|
+
- kb.patch.proposed
|
|
40
|
+
- kb.review.requested
|
|
41
|
+
- kb.review.decided`
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
registerDocBlocks(docBlocks);
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export * from './models';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/entities/models.ts
|
|
3
|
+
import {
|
|
4
|
+
ScalarTypeEnum,
|
|
5
|
+
defineEnum,
|
|
6
|
+
defineSchemaModel
|
|
7
|
+
} from "@contractspec/lib.schema";
|
|
8
|
+
var ChangeRiskLevelEnum = defineEnum("ChangeRiskLevel", [
|
|
9
|
+
"low",
|
|
10
|
+
"medium",
|
|
11
|
+
"high"
|
|
12
|
+
]);
|
|
13
|
+
var ReviewAssignedRoleEnum = defineEnum("ReviewAssignedRole", [
|
|
14
|
+
"curator",
|
|
15
|
+
"expert"
|
|
16
|
+
]);
|
|
17
|
+
var ReviewDecisionEnum = defineEnum("ReviewDecision", [
|
|
18
|
+
"approve",
|
|
19
|
+
"reject"
|
|
20
|
+
]);
|
|
21
|
+
var ChangeCandidateModel = defineSchemaModel({
|
|
22
|
+
name: "ChangeCandidate",
|
|
23
|
+
description: "Candidate change detected in a source document.",
|
|
24
|
+
fields: {
|
|
25
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
26
|
+
sourceDocumentId: {
|
|
27
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
28
|
+
isOptional: false
|
|
29
|
+
},
|
|
30
|
+
detectedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
31
|
+
diffSummary: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
32
|
+
riskLevel: { type: ChangeRiskLevelEnum, isOptional: false }
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var ReviewTaskModel = defineSchemaModel({
|
|
36
|
+
name: "ReviewTask",
|
|
37
|
+
description: "Human verification task for a change candidate.",
|
|
38
|
+
fields: {
|
|
39
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
40
|
+
changeCandidateId: {
|
|
41
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
42
|
+
isOptional: false
|
|
43
|
+
},
|
|
44
|
+
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
45
|
+
assignedRole: { type: ReviewAssignedRoleEnum, isOptional: false },
|
|
46
|
+
decision: { type: ReviewDecisionEnum, isOptional: true },
|
|
47
|
+
decidedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
48
|
+
decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
ReviewTaskModel,
|
|
53
|
+
ReviewDecisionEnum,
|
|
54
|
+
ReviewAssignedRoleEnum,
|
|
55
|
+
ChangeRiskLevelEnum,
|
|
56
|
+
ChangeCandidateModel
|
|
57
|
+
};
|
|
@@ -1,61 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
|
|
26
|
-
isOptional: false;
|
|
27
|
-
};
|
|
1
|
+
export declare const ChangeRiskLevelEnum: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
|
|
2
|
+
export declare const ReviewAssignedRoleEnum: import("@contractspec/lib.schema").EnumType<[string, string]>;
|
|
3
|
+
export declare const ReviewDecisionEnum: import("@contractspec/lib.schema").EnumType<[string, string]>;
|
|
4
|
+
export declare const ChangeCandidateModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
id: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
sourceDocumentId: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
detectedAt: {
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
diffSummary: {
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
riskLevel: {
|
|
22
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
28
25
|
}>;
|
|
29
|
-
declare const ReviewTaskModel:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
26
|
+
export declare const ReviewTaskModel: import("@contractspec/lib.schema").SchemaModel<{
|
|
27
|
+
id: {
|
|
28
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
29
|
+
isOptional: false;
|
|
30
|
+
};
|
|
31
|
+
changeCandidateId: {
|
|
32
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
33
|
+
isOptional: false;
|
|
34
|
+
};
|
|
35
|
+
status: {
|
|
36
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
37
|
+
isOptional: false;
|
|
38
|
+
};
|
|
39
|
+
assignedRole: {
|
|
40
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string]>;
|
|
41
|
+
isOptional: false;
|
|
42
|
+
};
|
|
43
|
+
decision: {
|
|
44
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string]>;
|
|
45
|
+
isOptional: true;
|
|
46
|
+
};
|
|
47
|
+
decidedAt: {
|
|
48
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
49
|
+
isOptional: true;
|
|
50
|
+
};
|
|
51
|
+
decidedBy: {
|
|
52
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
53
|
+
isOptional: true;
|
|
54
|
+
};
|
|
58
55
|
}>;
|
|
59
|
-
//#endregion
|
|
60
|
-
export { ChangeCandidateModel, ChangeRiskLevelEnum, ReviewAssignedRoleEnum, ReviewDecisionEnum, ReviewTaskModel };
|
|
61
56
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/entities/models.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,uEAI9B,CAAC;AAEH,eAAO,MAAM,sBAAsB,+DAGjC,CAAC;AAEH,eAAO,MAAM,kBAAkB,+DAG7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe1B,CAAC"}
|
package/dist/entities/models.js
CHANGED
|
@@ -1,74 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/entities/models.ts
|
|
3
|
+
import {
|
|
4
|
+
ScalarTypeEnum,
|
|
5
|
+
defineEnum,
|
|
6
|
+
defineSchemaModel
|
|
7
|
+
} from "@contractspec/lib.schema";
|
|
8
|
+
var ChangeRiskLevelEnum = defineEnum("ChangeRiskLevel", [
|
|
9
|
+
"low",
|
|
10
|
+
"medium",
|
|
11
|
+
"high"
|
|
8
12
|
]);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
riskLevel: {
|
|
32
|
-
type: ChangeRiskLevelEnum,
|
|
33
|
-
isOptional: false
|
|
34
|
-
}
|
|
35
|
-
}
|
|
13
|
+
var ReviewAssignedRoleEnum = defineEnum("ReviewAssignedRole", [
|
|
14
|
+
"curator",
|
|
15
|
+
"expert"
|
|
16
|
+
]);
|
|
17
|
+
var ReviewDecisionEnum = defineEnum("ReviewDecision", [
|
|
18
|
+
"approve",
|
|
19
|
+
"reject"
|
|
20
|
+
]);
|
|
21
|
+
var ChangeCandidateModel = defineSchemaModel({
|
|
22
|
+
name: "ChangeCandidate",
|
|
23
|
+
description: "Candidate change detected in a source document.",
|
|
24
|
+
fields: {
|
|
25
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
26
|
+
sourceDocumentId: {
|
|
27
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
28
|
+
isOptional: false
|
|
29
|
+
},
|
|
30
|
+
detectedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
31
|
+
diffSummary: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
32
|
+
riskLevel: { type: ChangeRiskLevelEnum, isOptional: false }
|
|
33
|
+
}
|
|
36
34
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
assignedRole: {
|
|
54
|
-
type: ReviewAssignedRoleEnum,
|
|
55
|
-
isOptional: false
|
|
56
|
-
},
|
|
57
|
-
decision: {
|
|
58
|
-
type: ReviewDecisionEnum,
|
|
59
|
-
isOptional: true
|
|
60
|
-
},
|
|
61
|
-
decidedAt: {
|
|
62
|
-
type: ScalarTypeEnum.DateTime(),
|
|
63
|
-
isOptional: true
|
|
64
|
-
},
|
|
65
|
-
decidedBy: {
|
|
66
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
67
|
-
isOptional: true
|
|
68
|
-
}
|
|
69
|
-
}
|
|
35
|
+
var ReviewTaskModel = defineSchemaModel({
|
|
36
|
+
name: "ReviewTask",
|
|
37
|
+
description: "Human verification task for a change candidate.",
|
|
38
|
+
fields: {
|
|
39
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
40
|
+
changeCandidateId: {
|
|
41
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
42
|
+
isOptional: false
|
|
43
|
+
},
|
|
44
|
+
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
45
|
+
assignedRole: { type: ReviewAssignedRoleEnum, isOptional: false },
|
|
46
|
+
decision: { type: ReviewDecisionEnum, isOptional: true },
|
|
47
|
+
decidedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
48
|
+
decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
49
|
+
}
|
|
70
50
|
});
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
51
|
+
export {
|
|
52
|
+
ReviewTaskModel,
|
|
53
|
+
ReviewDecisionEnum,
|
|
54
|
+
ReviewAssignedRoleEnum,
|
|
55
|
+
ChangeRiskLevelEnum,
|
|
56
|
+
ChangeCandidateModel
|
|
57
|
+
};
|
package/dist/events.d.ts
CHANGED
|
@@ -1,74 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
riskLevel: {
|
|
15
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
16
|
-
isOptional: false;
|
|
17
|
-
};
|
|
1
|
+
export declare const KbChangeDetectedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
2
|
+
changeCandidateId: {
|
|
3
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
|
+
isOptional: false;
|
|
5
|
+
};
|
|
6
|
+
sourceDocumentId: {
|
|
7
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
riskLevel: {
|
|
11
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
18
14
|
}>>;
|
|
19
|
-
declare const KbChangeSummarizedEvent:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
export declare const KbChangeSummarizedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
16
|
+
changeCandidateId: {
|
|
17
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
summary: {
|
|
21
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
riskLevel: {
|
|
25
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
32
28
|
}>>;
|
|
33
|
-
declare const KbPatchProposedEvent:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
export declare const KbPatchProposedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
30
|
+
changeCandidateId: {
|
|
31
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
34
|
+
proposedRuleVersionIds: {
|
|
35
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
36
|
+
isArray: true;
|
|
37
|
+
isOptional: false;
|
|
38
|
+
};
|
|
43
39
|
}>>;
|
|
44
|
-
declare const KbReviewRequestedEvent:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
40
|
+
export declare const KbReviewRequestedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
41
|
+
reviewTaskId: {
|
|
42
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
43
|
+
isOptional: false;
|
|
44
|
+
};
|
|
45
|
+
changeCandidateId: {
|
|
46
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
47
|
+
isOptional: false;
|
|
48
|
+
};
|
|
49
|
+
assignedRole: {
|
|
50
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
57
53
|
}>>;
|
|
58
|
-
declare const KbReviewDecidedEvent:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
export declare const KbReviewDecidedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
55
|
+
reviewTaskId: {
|
|
56
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
57
|
+
isOptional: false;
|
|
58
|
+
};
|
|
59
|
+
decision: {
|
|
60
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
61
|
+
isOptional: false;
|
|
62
|
+
};
|
|
63
|
+
decidedBy: {
|
|
64
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
65
|
+
isOptional: false;
|
|
66
|
+
};
|
|
71
67
|
}>>;
|
|
72
|
-
//#endregion
|
|
73
|
-
export { KbChangeDetectedEvent, KbChangeSummarizedEvent, KbPatchProposedEvent, KbReviewDecidedEvent, KbReviewRequestedEvent };
|
|
74
68
|
//# sourceMappingURL=events.d.ts.map
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;GAUhC,CAAC;AAeH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;GAUlC,CAAC;AAkBH,eAAO,MAAM,oBAAoB;;;;;;;;;;GAU/B,CAAC;AAeH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;GAUjC,CAAC;AAYH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;GAU/B,CAAC"}
|