@persei/perseed-api 5.0.23 → 5.0.25
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/client.cjs +57 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +57 -0
- package/dist/client.mjs.map +1 -1
- package/dist/dates.helper-CDM5aEJG.cjs.map +1 -1
- package/dist/dates.helper-XRCJ_UAQ.js.map +1 -1
- package/dist/dates.schema-BqkBcmM6.js +18 -0
- package/dist/dates.schema-BqkBcmM6.js.map +1 -0
- package/dist/dates.schema-npKpToAJ.cjs +17 -0
- package/dist/dates.schema-npKpToAJ.cjs.map +1 -0
- package/dist/ecosystem-container-widget.cjs +1 -1
- package/dist/ecosystem-container-widget.mjs +1 -1
- package/dist/ecosystem-process-log.cjs +209 -0
- package/dist/ecosystem-process-log.cjs.map +1 -0
- package/dist/ecosystem-process-log.d.ts +1 -0
- package/dist/ecosystem-process-log.mjs +209 -0
- package/dist/ecosystem-process-log.mjs.map +1 -0
- package/dist/global-dates.cjs +5 -6
- package/dist/global-dates.cjs.map +1 -1
- package/dist/global-dates.mjs +5 -6
- package/dist/global-dates.mjs.map +1 -1
- package/dist/lib/src/generated/client.d.ts +247 -0
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/ProcessLogService.d.ts.map +1 -1
- package/dist/src/Services/QueryService.d.ts.map +1 -1
- package/dist/src/app.d.ts +2 -2
- package/dist/src/app.d.ts.map +1 -1
- package/dist/src/controllers/IntrospectionController.d.ts.map +1 -1
- package/dist/src/models/project/Displayer.d.ts.map +1 -1
- package/dist/src/models/project/DisplayerMeta.d.ts +2 -1
- package/dist/src/models/project/DisplayerMeta.d.ts.map +1 -1
- package/dist/src/models/project/QuestionariesInfo.d.ts +2 -1
- package/dist/src/models/project/QuestionariesInfo.d.ts.map +1 -1
- package/dist/src/schemas/process_log/create_process_log_payload.schema.json +12 -1
- package/dist/src/schemas/process_log/types.d.ts +8 -5
- package/dist/src/schemas/process_log/types.d.ts.map +1 -1
- package/dist/src/test/test-helpers.d.ts +12 -0
- package/dist/src/test/test-helpers.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.d.ts +4 -4
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts +8 -8
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts +18 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/index.d.ts +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/index.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/alert/alert.controller.d.ts +3 -3
- package/dist/src/v2/modules/ecosystem/alert/alert.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/alert/alert.model.d.ts +15 -2
- package/dist/src/v2/modules/ecosystem/alert/alert.model.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/alert/alert.schema.d.ts +14 -5
- package/dist/src/v2/modules/ecosystem/alert/alert.schema.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/alert/alert.service.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/alert/index.d.ts +1 -1
- package/dist/src/v2/modules/ecosystem/alert/index.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/process-log/index.d.ts +4 -1
- package/dist/src/v2/modules/ecosystem/process-log/index.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/process-log/lib.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/lib.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.controller.d.ts +5 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.controller.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.controller.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.d.ts +9 -2
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/process-log/process-log.schema.d.ts +111 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts +16 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts.map +1 -1
- package/dist/src/v2/modules/global/dates/{dates.helper.d.ts → dates.helper/dates.helper.d.ts} +1 -1
- package/dist/src/v2/modules/global/dates/dates.helper/dates.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.helper/dates.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.helper/decoding-validator.helper.d.ts +75 -0
- package/dist/src/v2/modules/global/dates/dates.helper/decoding-validator.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.helper/decoding-validator.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/global/dates/dates.helper/decoding-validator.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.helper/index.d.ts +3 -0
- package/dist/src/v2/modules/global/dates/dates.helper/index.d.ts.map +1 -0
- package/dist/src/v2/modules/global/dates/dates.schema.d.ts +23 -0
- package/dist/src/v2/modules/global/dates/dates.schema.d.ts.map +1 -1
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/alert/index.d.ts +1 -1
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/alert/index.d.ts +1 -1
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/process-log/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/process-log/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs +0 -7
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs +0 -7
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/src/v2/modules/global/dates/dates.helper.d.ts.map +0 -1
- package/dist/src/v2/modules/global/dates/dates.helper.test.d.ts.map +0 -1
- /package/dist/src/v2/modules/global/dates/{dates.helper.test.d.ts → dates.helper/dates.helper.test.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessLogService.d.ts","sourceRoot":"","sources":["../../../../src/Services/ProcessLogService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,cAAc,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAK7E,QAAA,MAAM,iBAAiB;kBACD,cAAc,WAAW,uBAAuB;
|
|
1
|
+
{"version":3,"file":"ProcessLogService.d.ts","sourceRoot":"","sources":["../../../../src/Services/ProcessLogService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,cAAc,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAK7E,QAAA,MAAM,iBAAiB;kBACD,cAAc,WAAW,uBAAuB;kBAgChD,cAAc,MAAM,MAAM,WAAW,uBAAuB;eAM/D,cAAc,MAAM,MAAM;CAG5C,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryService.d.ts","sourceRoot":"","sources":["../../../../src/Services/QueryService.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AA4BjC,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;
|
|
1
|
+
{"version":3,"file":"QueryService.d.ts","sourceRoot":"","sources":["../../../../src/Services/QueryService.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AA4BjC,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AA+ID;;GAEG;AACH,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,EACb,YAAY,GAAE,IAAI,CAAC,UAAU,EAAO,EACpC,OAAO,UAAQ,EACf,YAAY,UAAQ,EACpB,UAAU,UAAQ,gBAenB;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,WAAW,SAAK,EAChB,QAAQ,SAAK,EACb,EAAE,QAAgB,EAAE,GAAE,oBAAyB,kCA2BhD;AAED,wBAAgB,QAAQ,SAKvB;AAED,QAAA,MAAM,YAAY;;IAEhB;;OAEG;;;CAGJ,CAAA;AAED,eAAe,YAAY,CAAA"}
|
package/dist/src/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function getApp(testMode?: boolean, loadSwagger?: boolean): Promise<import('fastify').FastifyInstance<import('http').Server<typeof import('http').IncomingMessage, typeof import('http').ServerResponse>, import('http').IncomingMessage, import('http').ServerResponse<import('http').IncomingMessage>, import('fastify').FastifyBaseLogger,
|
|
1
|
+
import { DecodingTypeBoxTypeProvider } from './v2/modules/global/dates';
|
|
2
|
+
declare function getApp(testMode?: boolean, loadSwagger?: boolean): Promise<import('fastify').FastifyInstance<import('http').Server<typeof import('http').IncomingMessage, typeof import('http').ServerResponse>, import('http').IncomingMessage, import('http').ServerResponse<import('http').IncomingMessage>, import('fastify').FastifyBaseLogger, DecodingTypeBoxTypeProvider>>;
|
|
3
3
|
export default getApp;
|
|
4
4
|
//# sourceMappingURL=app.d.ts.map
|
package/dist/src/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AAkCrB,OAAO,EAAE,2BAA2B,EAAoD,MAAM,wBAAwB,CAAA;AAQtH,iBAAe,MAAM,CAAC,QAAQ,UAAQ,EAAE,WAAW,CAAC,EAAE,OAAO,mTA+N5D;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntrospectionController.d.ts","sourceRoot":"","sources":["../../../../src/controllers/IntrospectionController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"IntrospectionController.d.ts","sourceRoot":"","sources":["../../../../src/controllers/IntrospectionController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgD,MAAM,aAAa,CAAA;AAM/F,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAOtD,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,SAAS,GAAG,mBAAmB,CA2TxE;AAED,QAAA,MAAM,uBAAuB;kCACS,cAAc,OAAO,YAAY;CAGtE,CAAA;AAED,eAAe,uBAAuB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Displayer.d.ts","sourceRoot":"","sources":["../../../../../src/models/project/Displayer.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,eAAe,CAAA;AAYvC,OAAO,cAAc,EAAE,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Displayer.d.ts","sourceRoot":"","sources":["../../../../../src/models/project/Displayer.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,eAAe,CAAA;AAYvC,OAAO,cAAc,EAAE,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAoBhF;;;GAGG;AAEH;;;;GAIG;AAEH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,oBAAoB,EAC/B,QAAQ,EAAE,MAAM,EAChB,WAAW,UAAQ,EACnB,UAAU,CAAC,EAAE,GAAG,EAAE,OA+wBnB;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,cAAc,EACnB,gBAAgB,CAAC,EAAE,MAAM,EACzB,WAAW,UAAQ,EACnB,UAAU,CAAC,EAAE,WAAW,EAAE,OAoJ3B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as BaseModel } from '../BaseModel';
|
|
2
2
|
import { default as Objection } from 'objection';
|
|
3
3
|
import { default as RequestContext } from '../request/RequestContext';
|
|
4
|
+
import * as DesignerCrfModule from './DesignerCrf';
|
|
4
5
|
export interface DisplayerMetaData {
|
|
5
6
|
meta_name: string;
|
|
6
7
|
meta_value: any;
|
|
@@ -58,7 +59,7 @@ export default class DisplayerMeta extends BaseModel {
|
|
|
58
59
|
static get relationMappings(): {
|
|
59
60
|
crf: {
|
|
60
61
|
relation: Objection.RelationType;
|
|
61
|
-
modelClass:
|
|
62
|
+
modelClass: () => typeof DesignerCrfModule.default;
|
|
62
63
|
join: {
|
|
63
64
|
from: string;
|
|
64
65
|
to: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayerMeta.d.ts","sourceRoot":"","sources":["../../../../../src/models/project/DisplayerMeta.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,SAAoB,MAAM,WAAW,CAAA;AAC5C,OAAO,cAAc,MAAM,2BAA2B,CAAA;AAEtD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,GAAG,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAClD,UAAU,EAAG,MAAM,CAAA;IACnB,QAAQ,EAAG,MAAM,CAAA;IACjB,YAAY,EAAG,MAAM,CAAA;IACrB,MAAM,EAAG,MAAM,CAAA;IACf,YAAY,EAAG,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,EAAG,MAAM,CAAA;IAClB,UAAU,EAAG,GAAG,CAAA;IAEhB,MAAM,KAAK,SAAS,WAEnB;IAED,MAAM,KAAK,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBpB;IAED,MAAM,KAAK,gBAAgB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DisplayerMeta.d.ts","sourceRoot":"","sources":["../../../../../src/models/project/DisplayerMeta.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,SAAoB,MAAM,WAAW,CAAA;AAC5C,OAAO,cAAc,MAAM,2BAA2B,CAAA;AAEtD,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAA;AAElD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,GAAG,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY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pD,QAAQ,CACnB,WAAW,EAAE,SAAS,CAAC,iBAAiB,EACxC,SAAS,EAAE,MAAM,EAAE,EACnB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM;CAgBnB"}
|
|
@@ -8,6 +8,7 @@ import { DateConstructorType } from '../../helpers/dates';
|
|
|
8
8
|
import { default as dayjs } from 'dayjs';
|
|
9
9
|
import { default as QuestionnaireCrf } from '../virtual/QuestionnaireCrf';
|
|
10
10
|
import { QuestionnaireInfoData, QuestionnaireInfoPatchData, QuestionnaireInfoUpdateMode } from '../../schemas';
|
|
11
|
+
import * as DesignerCrfModule from './DesignerCrf';
|
|
11
12
|
export default class QuestionariesInfo extends BaseModel {
|
|
12
13
|
crf_name?: string;
|
|
13
14
|
patient_id: number;
|
|
@@ -143,7 +144,7 @@ export default class QuestionariesInfo extends BaseModel {
|
|
|
143
144
|
static get relationMappings(): {
|
|
144
145
|
crf: {
|
|
145
146
|
relation: Objection.RelationType;
|
|
146
|
-
modelClass:
|
|
147
|
+
modelClass: () => typeof DesignerCrfModule.default;
|
|
147
148
|
join: {
|
|
148
149
|
from: string;
|
|
149
150
|
to: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionariesInfo.d.ts","sourceRoot":"","sources":["../../../../../src/models/project/QuestionariesInfo.ts"],"names":[],"mappings":"AAAA,OAAO,SAAoB,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"QuestionariesInfo.d.ts","sourceRoot":"","sources":["../../../../../src/models/project/QuestionariesInfo.ts"],"names":[],"mappings":"AAAA,OAAO,SAAoB,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAI7B,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAA;AAGlD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,C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iBAAiB;IAQX,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;CAGxD"}
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
"expiresAt": {
|
|
36
36
|
"type": ["string", "null"],
|
|
37
37
|
"description": "Retention deadline; the row is purged after it. Never expires when unset."
|
|
38
|
+
},
|
|
39
|
+
"parentId": {
|
|
40
|
+
"type": ["integer", "null"],
|
|
41
|
+
"description": "Id of this row's parent process_log row. Silently dropped on an ecosystem database that does not have the parent_id column yet."
|
|
38
42
|
}
|
|
39
43
|
},
|
|
40
44
|
"required": ["log", "type"],
|
|
@@ -42,7 +46,14 @@
|
|
|
42
46
|
},
|
|
43
47
|
"ProcessLogCode": {
|
|
44
48
|
"type": "string",
|
|
45
|
-
"enum": [
|
|
49
|
+
"enum": [
|
|
50
|
+
"bulk_upload_batch",
|
|
51
|
+
"bulk_upload_success",
|
|
52
|
+
"bulk_upload_error",
|
|
53
|
+
"trigger_evaluation",
|
|
54
|
+
"trigger_error",
|
|
55
|
+
"trigger_action"
|
|
56
|
+
]
|
|
46
57
|
},
|
|
47
58
|
"ProcessLogType": {
|
|
48
59
|
"type": "number",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProcessLogCode } from '../../v2/modules/ecosystem/process-log';
|
|
1
2
|
export declare enum ProcessLogType {
|
|
2
3
|
LOG = 0,
|
|
3
4
|
RESULT = 1,
|
|
@@ -16,6 +17,12 @@ export interface CreateProcessLogPayload {
|
|
|
16
17
|
reviewed?: boolean;
|
|
17
18
|
/** Retention deadline; the row is purged after it. Never expires when unset. */
|
|
18
19
|
expiresAt?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Id of this row's parent process_log row (#348), e.g. a trigger_action row's parent is the
|
|
22
|
+
* trigger_evaluation row of the trigger that ran it. Silently dropped by `ProcessLog.insert` on an
|
|
23
|
+
* ecosystem database whose `parent_id` column has not been applied yet (see the module's README).
|
|
24
|
+
*/
|
|
25
|
+
parentId?: number | null;
|
|
19
26
|
}
|
|
20
27
|
export interface UpdateProcessLogPayload {
|
|
21
28
|
reviewed?: boolean;
|
|
@@ -37,10 +44,6 @@ export interface ProcessLog {
|
|
|
37
44
|
reviewed_date?: string;
|
|
38
45
|
project_id?: number;
|
|
39
46
|
expires_at?: string | null;
|
|
40
|
-
|
|
41
|
-
export declare enum ProcessLogCode {
|
|
42
|
-
BULK_UPLOAD_BATCH = "bulk_upload_batch",
|
|
43
|
-
BULK_UPLOAD_SUCCESS = "bulk_upload_success",
|
|
44
|
-
BULK_UPLOAD_ERROR = "bulk_upload_error"
|
|
47
|
+
parent_id?: number | null;
|
|
45
48
|
}
|
|
46
49
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/process_log/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/process_log/types.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE,oBAAY,cAAc;IACxB,GAAG,IAAI;IACP,MAAM,IAAI;IACV,OAAO,KAAK;IACZ,KAAK,KAAK;CACX;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,IAAI,EAAE,cAAc,CAAA;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FastifyInstance } from 'fastify';
|
|
2
|
+
import { DecodingTypeBoxTypeProvider } from '../v2/modules/global/dates';
|
|
2
3
|
export declare function addErrorHandling(fastify: FastifyInstance): void;
|
|
3
4
|
/**
|
|
4
5
|
* Builds a `getUser` mock that behaves like the real `RequestContext.getUser` overloads: the
|
|
@@ -12,4 +13,15 @@ export declare function addErrorHandling(fastify: FastifyInstance): void;
|
|
|
12
13
|
* mode cannot come back.
|
|
13
14
|
*/
|
|
14
15
|
export declare function mockGetUser<T>(user?: T): (throwException?: boolean) => T | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Builds a Fastify instance wired the way `app.ts` wires the real one: the decoding validator
|
|
18
|
+
* compiler and the type provider that matches it.
|
|
19
|
+
*
|
|
20
|
+
* Controller tests build their own instance rather than booting the app, so each one used to repeat
|
|
21
|
+
* `Fastify().withTypeProvider<TypeBoxTypeProvider>()` plus `setValidatorCompiler(...)`. That is a
|
|
22
|
+
* copy of a production decision in eight places, and a test that validates a request through a
|
|
23
|
+
* *different* compiler than production uses is testing something nobody ships. Routing it through
|
|
24
|
+
* here leaves one place where that decision lives.
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildTestFastify(): FastifyInstance<import('http').Server<typeof import('http').IncomingMessage, typeof import('http').ServerResponse>, import('http').IncomingMessage, import('http').ServerResponse<import('http').IncomingMessage>, import('fastify').FastifyBaseLogger, DecodingTypeBoxTypeProvider>;
|
|
15
27
|
//# sourceMappingURL=test-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../../../src/test/test-helpers.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../../../src/test/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,2BAA2B,EAA6B,MAAM,wBAAwB,CAAA;AAE/F,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,eAAe,QAIxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,IAC7B,wBAAqB,KAAG,CAAC,GAAG,SAAS,CAM9C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,yRAI/B"}
|
|
@@ -9,12 +9,12 @@ declare function listAutomaticTriggers(ctx: RequestContext, pagination: Paginate
|
|
|
9
9
|
description?: string | null | undefined;
|
|
10
10
|
project_id?: number | null | undefined;
|
|
11
11
|
target?: string | null | undefined;
|
|
12
|
-
conditions?: object | null | undefined;
|
|
13
12
|
operation?: "delete" | "update" | "create" | null | undefined;
|
|
14
|
-
|
|
13
|
+
conditions?: object | null | undefined;
|
|
15
14
|
relations?: {
|
|
16
15
|
join?: string[] | undefined;
|
|
17
16
|
} | null | undefined;
|
|
17
|
+
retention_days?: number | null | undefined;
|
|
18
18
|
id: number;
|
|
19
19
|
source: "model" | "displayer";
|
|
20
20
|
} & {
|
|
@@ -43,12 +43,12 @@ declare function getAutomaticTriggerById(ctx: RequestContext, id: number, includ
|
|
|
43
43
|
description?: string | null | undefined;
|
|
44
44
|
project_id?: number | null | undefined;
|
|
45
45
|
target?: string | null | undefined;
|
|
46
|
-
conditions?: object | null | undefined;
|
|
47
46
|
operation?: "delete" | "update" | "create" | null | undefined;
|
|
48
|
-
|
|
47
|
+
conditions?: object | null | undefined;
|
|
49
48
|
relations?: {
|
|
50
49
|
join?: string[] | undefined;
|
|
51
50
|
} | null | undefined;
|
|
51
|
+
retention_days?: number | null | undefined;
|
|
52
52
|
id: number;
|
|
53
53
|
source: "model" | "displayer";
|
|
54
54
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manual-trigger-engine.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AAInE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,yBAAyB,CAAA;AAOhC;;;;GAIG;AACH,iBAAe,qBAAqB,CAClC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,aAAa,EAAE,CAAC,CAS1B;AAoBD;;;;;;;;;;GAUG;AACH,iBAAe,aAAa,CAC1B,GAAG,EAAE,cAAc,EACnB,KAAK,EAAE,8BAA8B,GACpC,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAqCtC;AAED;;;;GAIG;AACH,iBAAe,gBAAgB,CAC7B,GAAG,EAAE,cAAc,EACnB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,GAAG,GAAE,IAAiB,GACrB,OAAO,CAAC,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"manual-trigger-engine.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AAInE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,yBAAyB,CAAA;AAOhC;;;;GAIG;AACH,iBAAe,qBAAqB,CAClC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,aAAa,EAAE,CAAC,CAS1B;AAoBD;;;;;;;;;;GAUG;AACH,iBAAe,aAAa,CAC1B,GAAG,EAAE,cAAc,EACnB,KAAK,EAAE,8BAA8B,GACpC,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAqCtC;AAED;;;;GAIG;AACH,iBAAe,gBAAgB,CAC7B,GAAG,EAAE,cAAc,EACnB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,GAAG,GAAE,IAAiB,GACrB,OAAO,CAAC,sBAAsB,CAAC,CA8CjC;AAED,eAAO,MAAM,0BAA0B;;;;CAItC,CAAA"}
|
|
@@ -9,6 +9,9 @@ declare function listManualTriggers(ctx: RequestContext, pagination: PaginatedQu
|
|
|
9
9
|
description?: string | null | undefined;
|
|
10
10
|
project_id?: number | null | undefined;
|
|
11
11
|
conditions?: object | null | undefined;
|
|
12
|
+
relations?: {
|
|
13
|
+
join?: string[] | undefined;
|
|
14
|
+
} | null | undefined;
|
|
12
15
|
config?: {
|
|
13
16
|
unmatchedBehavior?: "hide" | "disable" | undefined;
|
|
14
17
|
styles?: {
|
|
@@ -32,12 +35,9 @@ declare function listManualTriggers(ctx: RequestContext, pagination: PaginatedQu
|
|
|
32
35
|
})[] | undefined;
|
|
33
36
|
} | null | undefined;
|
|
34
37
|
retention_days?: number | null | undefined;
|
|
35
|
-
relations?: {
|
|
36
|
-
join?: string[] | undefined;
|
|
37
|
-
} | null | undefined;
|
|
38
38
|
id: number;
|
|
39
|
-
target: string;
|
|
40
39
|
source: "model" | "displayer";
|
|
40
|
+
target: string;
|
|
41
41
|
} & {
|
|
42
42
|
actions?: {
|
|
43
43
|
name?: string | null | undefined;
|
|
@@ -64,6 +64,9 @@ declare function getManualTriggerById(ctx: RequestContext, id: number, includeAc
|
|
|
64
64
|
description?: string | null | undefined;
|
|
65
65
|
project_id?: number | null | undefined;
|
|
66
66
|
conditions?: object | null | undefined;
|
|
67
|
+
relations?: {
|
|
68
|
+
join?: string[] | undefined;
|
|
69
|
+
} | null | undefined;
|
|
67
70
|
config?: {
|
|
68
71
|
unmatchedBehavior?: "hide" | "disable" | undefined;
|
|
69
72
|
styles?: {
|
|
@@ -87,12 +90,9 @@ declare function getManualTriggerById(ctx: RequestContext, id: number, includeAc
|
|
|
87
90
|
})[] | undefined;
|
|
88
91
|
} | null | undefined;
|
|
89
92
|
retention_days?: number | null | undefined;
|
|
90
|
-
relations?: {
|
|
91
|
-
join?: string[] | undefined;
|
|
92
|
-
} | null | undefined;
|
|
93
93
|
id: number;
|
|
94
|
-
target: string;
|
|
95
94
|
source: "model" | "displayer";
|
|
95
|
+
target: string;
|
|
96
96
|
} & {
|
|
97
97
|
actions?: {
|
|
98
98
|
name?: string | null | undefined;
|
|
@@ -27,13 +27,30 @@ export declare function buildTriggerContext(ctx: RequestContext, source: Trigger
|
|
|
27
27
|
* a `process_log` row.
|
|
28
28
|
*/
|
|
29
29
|
export declare function evaluateConditions(context: ApiActionContextData, trigger: Pick<EvaluableTrigger, 'id' | 'conditions'>): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Correlation the caller threads through `executeTriggerActions`, so each action's `process_log` row
|
|
32
|
+
* can be traced back to the trigger evaluation that ran it.
|
|
33
|
+
*
|
|
34
|
+
* `triggerModel` is needed alongside `triggerId` because the engine is shared: `automatic_trigger`
|
|
35
|
+
* and `manual_trigger` are different tables with overlapping id ranges, so `triggerId` alone cannot
|
|
36
|
+
* tell which trigger a `trigger_action` row belongs to — `batch.relatedModel` is what disambiguates
|
|
37
|
+
* it (see `TriggerBatch`).
|
|
38
|
+
*
|
|
39
|
+
* `parentId` is the id of the `trigger_evaluation` (or `trigger_error`) `process_log` row written for
|
|
40
|
+
* this trigger, when one was written — `undefined` when the caller has none to correlate against
|
|
41
|
+
* (e.g. a caller evaluating a trigger without writing that row, see `evaluateConditions`).
|
|
42
|
+
*/
|
|
43
|
+
export interface TriggerActionsCorrelation {
|
|
44
|
+
parentId?: number;
|
|
45
|
+
triggerModel: string;
|
|
46
|
+
}
|
|
30
47
|
/**
|
|
31
48
|
* Executes the ordered actions of a matched trigger, one `process_log` row each.
|
|
32
49
|
*
|
|
33
50
|
* A context mismatch aborts that action only, never the rest. Retention: an action with `null`
|
|
34
51
|
* inherits the trigger's, `0` means never — so the two are not interchangeable.
|
|
35
52
|
*/
|
|
36
|
-
export declare function executeTriggerActions(ctx: RequestContext, trigger: EvaluableTrigger, context: ApiActionContextData, now: Date): Promise<{
|
|
53
|
+
export declare function executeTriggerActions(ctx: RequestContext, trigger: EvaluableTrigger, context: ApiActionContextData, now: Date, correlation: TriggerActionsCorrelation): Promise<{
|
|
37
54
|
actionsRun: number;
|
|
38
55
|
actionsAborted: number;
|
|
39
56
|
actionsFailed: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-engine.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"trigger-engine.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mCAAmC,CAAA;AAQ9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAGjF,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAA;AAsBhC;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACnC,SAAS,CAAC,EAAE,gBAAgB,GAAG,IAAI,GAClC,OAAO,CAAC;IAAE,OAAO,EAAE,oBAAoB,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAavE;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,YAAY,CAAC,GACnD,OAAO,CAAC,OAAO,CAAC,CAIlB;AA0ED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,IAAI,EACT,WAAW,EAAE,yBAAyB,GACrC,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAqDhF;AAID;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,cAAc,EACnB,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,IAAI,GACR,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAmEnC;AAED,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ActionSystemService, TriggerEngineService, AutomaticTriggerService, ActionService, ManualTriggerService, TriggerActionsService, ManualTriggerEngineService, } from './action-system.service';
|
|
2
2
|
export { ConditionsFormat, TriggerOperation, TriggerSource } from './action-system.schema';
|
|
3
|
-
export { conditionsMatch } from './action-system.helper';
|
|
3
|
+
export { conditionsMatch, requireTriggersManagement } from './action-system.helper';
|
|
4
4
|
export type { ActionEvent, EvaluableTrigger, TriggerBatch, TriggerExecutionResult } from './action-system.schema';
|
|
5
5
|
export { ActionSystemController } from './action-system.controller';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/action-system/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/action-system/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC1F,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACnF,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACjH,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyPluginAsyncDecodingTypebox } from '../../global/dates';
|
|
2
2
|
/**
|
|
3
3
|
* Suffix of every ecosystem-level name, as a constant rather than a literal in `ECOSYSTEM_LEVEL`:
|
|
4
4
|
* a second ecosystem-mounted resource has to carry the same word for the generated client to read
|
|
@@ -6,7 +6,7 @@ import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const ECOSYSTEM_OPERATION_SUFFIX = "Ecosystem";
|
|
8
8
|
export declare const AlertController: {
|
|
9
|
-
alertRouter:
|
|
10
|
-
ecosystemAlertRouter:
|
|
9
|
+
alertRouter: FastifyPluginAsyncDecodingTypebox;
|
|
10
|
+
ecosystemAlertRouter: FastifyPluginAsyncDecodingTypebox;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=alert.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"alert.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AAiD1E;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,cAAc,CAAA;AAyJrD,eAAO,MAAM,eAAe;;;CAG3B,CAAA"}
|
|
@@ -3,6 +3,18 @@ import { default as BaseModel } from '../../../../models/BaseModel';
|
|
|
3
3
|
import { default as RequestContext } from '../../../../models/request/RequestContext';
|
|
4
4
|
import { TypedQueryBuilder } from '../../global/objection';
|
|
5
5
|
import { AlertData, AlertEmitterData, AlertEntityRefData, AlertSeverity, AlertStatus } from './alert.schema';
|
|
6
|
+
/**
|
|
7
|
+
* What the write methods accept, which is not quite a row.
|
|
8
|
+
*
|
|
9
|
+
* The class properties describe what a **read** returns, and a datetime column comes back from the
|
|
10
|
+
* driver as a `string`. A **write** may also carry a `Date`: that is what `apiDateTime` hands the
|
|
11
|
+
* service after decoding the request, and `BaseModel.$parseJson` (`datesToString`) turns it into the
|
|
12
|
+
* UTC string the column takes. Spelling the difference here is what keeps the service from having to
|
|
13
|
+
* convert — and keeps `AlertData` describing the entity as the API serializes it.
|
|
14
|
+
*/
|
|
15
|
+
type AlertWriteData = Omit<Objection.PartialModelObject<Alert>, 'triggered_at'> & {
|
|
16
|
+
triggered_at?: Date | string | null;
|
|
17
|
+
};
|
|
6
18
|
export declare class Alert extends BaseModel implements AlertData {
|
|
7
19
|
project_id?: number | null;
|
|
8
20
|
alert_type_id?: number | null;
|
|
@@ -43,7 +55,7 @@ export declare class Alert extends BaseModel implements AlertData {
|
|
|
43
55
|
* write inside the dedup transaction of the service; it defaults to the request's ecosystem
|
|
44
56
|
* transaction, as `ProcessLog` does.
|
|
45
57
|
*/
|
|
46
|
-
static insert(ctx: RequestContext, data:
|
|
58
|
+
static insert(ctx: RequestContext, data: AlertWriteData, trx?: Objection.TransactionOrKnex): Promise<Alert>;
|
|
47
59
|
/**
|
|
48
60
|
* Patches an alert the request reaches and announces it.
|
|
49
61
|
*
|
|
@@ -56,6 +68,7 @@ export declare class Alert extends BaseModel implements AlertData {
|
|
|
56
68
|
* belonging to no project, so the narrowing becomes `IS NULL`. `= NULL` would never match and the
|
|
57
69
|
* patch would silently write nothing.
|
|
58
70
|
*/
|
|
59
|
-
static patch(ctx: RequestContext, data:
|
|
71
|
+
static patch(ctx: RequestContext, data: AlertWriteData, id: number): Promise<Alert>;
|
|
60
72
|
}
|
|
73
|
+
export {};
|
|
61
74
|
//# sourceMappingURL=alert.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.model.ts"],"names":[],"mappings":"AAAA,OAAO,SAA2B,MAAM,WAAW,CAAA;AACnD,OAAO,SAAS,MAAM,sBAAsB,CAAA;AAC5C,OAAO,cAAc,MAAM,mCAAmC,CAAA;AAI9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAG9D,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAA;AAUvB,qBAAa,KAAM,SAAQ,SAAU,YAAW,SAAS;IACvD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,CAAC,EAAE,aAAa,G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IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,MAAM,CAAC,SAAS,SAAU;IAK1B,MAAM,CAAC,cAAc,WAAuE;IAS5F,MAAM,CAAC,UAAU,uBAA0C;IAE3D,MAAM,CAAC,YAAY,gCAAyC;IAE5D,MAAM,CAAC,KAAK;IAIZ,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,cAAc;IAInC,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,iBAAiB;IAIhE;;;;;;;;OAQG;WACU,MAAM,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,CAAC,EAAE,SAAS,CAAC,iBAAiB;IAWhG;;;;;;;;;;;OAWG;WACU,KAAK,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM;CAqBzE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type, Static } from 'typebox';
|
|
1
|
+
import { Type, Static, StaticDecode } from 'typebox';
|
|
2
2
|
export declare const AlertStatus: {
|
|
3
3
|
readonly ACTIVE: "active";
|
|
4
4
|
readonly RESOLVED: "resolved";
|
|
@@ -95,9 +95,18 @@ export declare const createAlertSchema: Type.TObject<{
|
|
|
95
95
|
payload: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
96
96
|
metadata: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
97
97
|
dedup_key: Type.TOptional<Type.TString>;
|
|
98
|
-
triggered_at: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
98
|
+
triggered_at: Type.TOptional<Type.TUnion<[Type.TCodec<Type.TString, Date>, Type.TNull]>>;
|
|
99
99
|
}>;
|
|
100
|
-
export type CreateAlertData =
|
|
100
|
+
export type CreateAlertData = StaticDecode<typeof createAlertSchema>;
|
|
101
|
+
/**
|
|
102
|
+
* The same payload as it travels on the wire, before the boundary decodes it: `triggered_at` is
|
|
103
|
+
* still the RFC 3339 string a client sends.
|
|
104
|
+
*
|
|
105
|
+
* Only clients of the HTTP interface need this — tests that build a request body, and any caller
|
|
106
|
+
* assembling JSON. Everything on the server side of the validator wants `CreateAlertData`, which is
|
|
107
|
+
* the decoded shape.
|
|
108
|
+
*/
|
|
109
|
+
export type CreateAlertRequestBody = Static<typeof createAlertSchema>;
|
|
101
110
|
export declare const updateAlertSchema: Type.TObject<{
|
|
102
111
|
patient_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
103
112
|
user_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
@@ -116,9 +125,9 @@ export declare const updateAlertSchema: Type.TObject<{
|
|
|
116
125
|
payload: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
117
126
|
metadata: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
118
127
|
dedup_key: Type.TOptional<Type.TString>;
|
|
119
|
-
triggered_at: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
128
|
+
triggered_at: Type.TOptional<Type.TUnion<[Type.TCodec<Type.TString, Date>, Type.TNull]>>;
|
|
120
129
|
}>;
|
|
121
|
-
export type UpdateAlertData =
|
|
130
|
+
export type UpdateAlertData = StaticDecode<typeof updateAlertSchema>;
|
|
122
131
|
export declare const resolveAlertSchema: Type.TObject<{
|
|
123
132
|
resolution_note: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
124
133
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"alert.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAgBpD,eAAO,MAAM,WAAW;;;CAGd,CAAA;AACV,eAAO,MAAM,iBAAiB,uCAG5B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE1D,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAA;AACV,eAAO,MAAM,mBAAmB,iEAG9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAM9D,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AACV,eAAO,MAAM,sBAAsB,+CAGjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAIpE,eAAO,MAAM,kBAAkB;;;;;EAoB9B,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA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AAK,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAyC7G;;;;;GAKG;AACH,iBAAe,UAAU,CACvB,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,cAAc,EAC1B,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,cAAc,GAAG,IAAI,4CAe7B;AAED;;;;;;GAMG;AACH,iBAAe,YAAY,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,8BAMxF;
|
|
1
|
+
{"version":3,"file":"alert.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AAKnE,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAA;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAe,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAyC7G;;;;;GAKG;AACH,iBAAe,UAAU,CACvB,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,cAAc,EAC1B,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,cAAc,GAAG,IAAI,4CAe7B;AAED;;;;;;GAMG;AACH,iBAAe,YAAY,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,8BAMxF;AA+DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,iBAAe,WAAW,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,eAAe,kBAkBpE;AA2FD,iBAAe,WAAW,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,kBAahF;AAED;;;;;;;GAOG;AACH,iBAAe,YAAY,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,kBAyB1F;AAED,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAA"}
|
|
@@ -3,5 +3,5 @@ export { Alert } from './alert.model';
|
|
|
3
3
|
export { AlertController } from './alert.controller';
|
|
4
4
|
export { requireAlertsManagement } from './alert.helper';
|
|
5
5
|
export { AlertStatus, AlertSeverity, AlertEmitterType } from './alert.schema';
|
|
6
|
-
export type { AlertData, AlertEmitterData, AlertEntityRefData, CreateAlertData, UpdateAlertData } from './alert.schema';
|
|
6
|
+
export type { AlertData, AlertEmitterData, AlertEntityRefData, CreateAlertData, CreateAlertRequestBody, UpdateAlertData, } from './alert.schema';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC7E,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC7E,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,eAAe,GAChB,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { ProcessLog, isTriggerEngineTrace } from './process-log.model';
|
|
2
|
-
export { ProcessLogPurgeService } from './process-log.service';
|
|
2
|
+
export { ProcessLogPurgeService, ProcessLogService } from './process-log.service';
|
|
3
|
+
export { ProcessLogController } from './process-log.controller';
|
|
4
|
+
export { ProcessLogCode, ProcessLogType, processLogCodeSchema, listProcessLogQuerySchema } from './process-log.schema';
|
|
5
|
+
export type { ProcessLogData, ListProcessLogQuery, TriggerEvaluationExtraData, TriggerErrorExtraData, TriggerActionExtraData, } from './process-log.schema';
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AACtE,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACtH,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/lib.ts"],"names":[],"mappings":"AAEA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-log.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AA+D1E,eAAO,MAAM,oBAAoB;;CAEhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-log.controller.e2e.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.controller.e2e.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-log.controller.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.controller.test.ts"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,7 @@ import { default as Objection } from 'objection';
|
|
|
2
2
|
import { default as BaseModel } from '../../../../models/BaseModel';
|
|
3
3
|
import { default as RequestContext } from '../../../../models/request/RequestContext';
|
|
4
4
|
import { ProcessLogType } from '../../../../schemas';
|
|
5
|
+
import { ProcessLogCode, ProcessLogType as ProcessLogTypeValue } from './process-log.schema';
|
|
5
6
|
export declare function isTriggerEngineTrace(relatedModel: unknown): boolean;
|
|
6
7
|
export declare class ProcessLog extends BaseModel {
|
|
7
8
|
created_at: string;
|
|
@@ -9,16 +10,17 @@ export declare class ProcessLog extends BaseModel {
|
|
|
9
10
|
created_user?: number;
|
|
10
11
|
related_model?: string;
|
|
11
12
|
related_id?: string;
|
|
12
|
-
code?:
|
|
13
|
+
code?: ProcessLogCode;
|
|
13
14
|
log: string;
|
|
14
15
|
long_log?: string;
|
|
15
16
|
extra_data?: Record<string, any>;
|
|
16
|
-
type:
|
|
17
|
+
type: ProcessLogTypeValue;
|
|
17
18
|
requires_attention?: boolean;
|
|
18
19
|
reviewed: boolean;
|
|
19
20
|
reviewed_date?: string | null;
|
|
20
21
|
project_id?: number;
|
|
21
22
|
expires_at?: string | null;
|
|
23
|
+
parent_id?: number | null;
|
|
22
24
|
static get tableName(): string;
|
|
23
25
|
static get jsonSchema(): {
|
|
24
26
|
type: string;
|
|
@@ -113,6 +115,11 @@ export declare class ProcessLog extends BaseModel {
|
|
|
113
115
|
format?: undefined;
|
|
114
116
|
})[];
|
|
115
117
|
};
|
|
118
|
+
parent_id: {
|
|
119
|
+
oneOf: {
|
|
120
|
+
type: string;
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
116
123
|
};
|
|
117
124
|
additionalProperties: boolean;
|
|
118
125
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-log.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.model.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,OAAO,SAAS,MAAM,sBAAsB,CAAA;AAC5C,OAAO,cAAc,MAAM,mCAAmC,CAAA;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"process-log.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.model.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,OAAO,SAAS,MAAM,sBAAsB,CAAA;AAC5C,OAAO,cAAc,MAAM,mCAAmC,CAAA;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAI5C,OAAO,KAAK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