@persei/perseed-api 5.0.20 → 5.0.21
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 +103 -8
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +103 -8
- package/dist/client.mjs.map +1 -1
- package/dist/ecosystem-action-system.cjs +82 -2
- package/dist/ecosystem-action-system.cjs.map +1 -1
- package/dist/ecosystem-action-system.mjs +82 -2
- package/dist/ecosystem-action-system.mjs.map +1 -1
- package/dist/lib/src/generated/client.d.ts +594 -77
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/ProcessLogService.d.ts +1 -1
- package/dist/src/Services/ProcessLogService.d.ts.map +1 -1
- package/dist/src/Services/QueryService.d.ts +24 -1
- package/dist/src/Services/QueryService.d.ts.map +1 -1
- package/dist/src/Services/RedisQueueService.d.ts.map +1 -1
- package/dist/src/models/ecosystem/NotificationConfiguration.d.ts +1 -1
- package/dist/src/models/ecosystem/NotificationConfiguration.d.ts.map +1 -1
- package/dist/src/models/ecosystem/User.d.ts +17 -0
- package/dist/src/models/ecosystem/User.d.ts.map +1 -1
- package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts +2 -0
- package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts.map +1 -0
- package/dist/src/models/perseed/PerseedEcosystem.d.ts +2 -0
- package/dist/src/models/perseed/PerseedEcosystem.d.ts.map +1 -1
- package/dist/src/schemas/api_action/ApiActionTypes.d.ts +11 -0
- package/dist/src/schemas/api_action/ApiActionTypes.d.ts.map +1 -1
- package/dist/src/schemas/index.d.ts +1 -0
- package/dist/src/schemas/index.d.ts.map +1 -1
- package/dist/src/schemas/project_user/index.d.ts +2 -0
- package/dist/src/schemas/project_user/index.d.ts.map +1 -0
- package/dist/src/schemas/project_user/types.d.ts +44 -0
- package/dist/src/schemas/project_user/types.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/manual-trigger.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts +26 -4
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts +13 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts +2 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts +165 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts +6 -0
- 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 +42 -0
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts.map +1 -1
- package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts +5 -0
- 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/process-log/index.d.ts +3 -0
- package/dist/src/v2/modules/ecosystem/process-log/index.d.ts.map +1 -0
- package/dist/src/{models/ecosystem/ProcessLog.d.ts → v2/modules/ecosystem/process-log/process-log.model.d.ts} +5 -5
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts +20 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts +2 -0
- package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts.map +1 -1
- package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/src/models/ecosystem/ProcessLog.d.ts.map +0 -1
- package/dist/src/models/ecosystem/ProcessLog.test.d.ts +0 -2
- package/dist/src/models/ecosystem/ProcessLog.test.d.ts.map +0 -1
|
@@ -54,6 +54,7 @@ export declare const actionContextBaseSchema: Type.TObject<{
|
|
|
54
54
|
current: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
55
55
|
old: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
56
56
|
requestContextData: Type.TOptional<Type.TUnknown>;
|
|
57
|
+
requester: Type.TOptional<Type.TUnknown>;
|
|
57
58
|
projectId: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
58
59
|
}>;
|
|
59
60
|
export type ActionContextBaseData = Static<typeof actionContextBaseSchema>;
|
|
@@ -61,6 +62,7 @@ export declare const apiActionContextSchema: Type.TObject<{
|
|
|
61
62
|
current: Type.TRecord<"^.*$", Type.TUnknown>;
|
|
62
63
|
old: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
|
|
63
64
|
requestContextData: Type.TOptional<Type.TUnknown>;
|
|
65
|
+
requester: Type.TOptional<Type.TUnknown>;
|
|
64
66
|
projectId: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
65
67
|
}>;
|
|
66
68
|
export declare const ACTION_CONTEXT_SCHEMAS: Record<ActionType, TSchema>;
|
|
@@ -269,6 +271,67 @@ export declare const updateAutomaticTriggerSchema: Type.TObject<{
|
|
|
269
271
|
}>]>>>;
|
|
270
272
|
}>;
|
|
271
273
|
export type UpdateAutomaticTriggerData = Static<typeof updateAutomaticTriggerSchema>;
|
|
274
|
+
export declare const UnmatchedBehavior: {
|
|
275
|
+
readonly HIDE: "hide";
|
|
276
|
+
readonly DISABLE: "disable";
|
|
277
|
+
};
|
|
278
|
+
export declare const unmatchedBehaviorSchema: Type.TEnum<("hide" | "disable")[]>;
|
|
279
|
+
export type UnmatchedBehavior = Static<typeof unmatchedBehaviorSchema>;
|
|
280
|
+
export declare const IconPosition: {
|
|
281
|
+
readonly LEFT: "left";
|
|
282
|
+
readonly RIGHT: "right";
|
|
283
|
+
};
|
|
284
|
+
export declare const iconPositionSchema: Type.TEnum<("left" | "right")[]>;
|
|
285
|
+
export type IconPosition = Static<typeof iconPositionSchema>;
|
|
286
|
+
export declare const manualTriggerButtonStyleSchema: Type.TObject<{
|
|
287
|
+
text: Type.TOptional<Type.TString>;
|
|
288
|
+
textColor: Type.TOptional<Type.TString>;
|
|
289
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
290
|
+
icon: Type.TOptional<Type.TString>;
|
|
291
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
292
|
+
}>;
|
|
293
|
+
export type ManualTriggerButtonStyleData = Static<typeof manualTriggerButtonStyleSchema>;
|
|
294
|
+
export declare const manualTriggerConditionalStyleSchema: Type.TIntersect<[Type.TObject<{
|
|
295
|
+
text: Type.TOptional<Type.TString>;
|
|
296
|
+
textColor: Type.TOptional<Type.TString>;
|
|
297
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
298
|
+
icon: Type.TOptional<Type.TString>;
|
|
299
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
300
|
+
}>, Type.TObject<{
|
|
301
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
302
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
303
|
+
}>]>;
|
|
304
|
+
export type ManualTriggerConditionalStyleData = Static<typeof manualTriggerConditionalStyleSchema>;
|
|
305
|
+
/**
|
|
306
|
+
* Envelope for everything a manual trigger configures beyond its firing rules. Today it carries
|
|
307
|
+
* whether an unmatched trigger is hidden or shown disabled, plus the button presentation;
|
|
308
|
+
* `additionalProperties` stays open so a future concern can be added without another column.
|
|
309
|
+
*
|
|
310
|
+
* The two are deliberately separate concerns: `unmatchedBehavior` answers whether the button is
|
|
311
|
+
* offered at all, which only the trigger `conditions` decide, while `styles`/`conditionalStyles`
|
|
312
|
+
* only dress a button that is already going to be shown.
|
|
313
|
+
*/
|
|
314
|
+
export declare const manualTriggerConfigSchema: Type.TObject<{
|
|
315
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
316
|
+
styles: Type.TOptional<Type.TObject<{
|
|
317
|
+
text: Type.TOptional<Type.TString>;
|
|
318
|
+
textColor: Type.TOptional<Type.TString>;
|
|
319
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
320
|
+
icon: Type.TOptional<Type.TString>;
|
|
321
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
322
|
+
}>>;
|
|
323
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
324
|
+
text: Type.TOptional<Type.TString>;
|
|
325
|
+
textColor: Type.TOptional<Type.TString>;
|
|
326
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
327
|
+
icon: Type.TOptional<Type.TString>;
|
|
328
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
329
|
+
}>, Type.TObject<{
|
|
330
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
331
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
332
|
+
}>]>>>;
|
|
333
|
+
}>;
|
|
334
|
+
export type ManualTriggerConfigData = Static<typeof manualTriggerConfigSchema>;
|
|
272
335
|
export declare const manualTriggerSchema: Type.TObject<{
|
|
273
336
|
id: Type.TNumber;
|
|
274
337
|
project_id: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
@@ -281,6 +344,26 @@ export declare const manualTriggerSchema: Type.TObject<{
|
|
|
281
344
|
}>, Type.TNull]>>;
|
|
282
345
|
enabled: Type.TOptional<Type.TBoolean>;
|
|
283
346
|
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
347
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
348
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
349
|
+
styles: Type.TOptional<Type.TObject<{
|
|
350
|
+
text: Type.TOptional<Type.TString>;
|
|
351
|
+
textColor: Type.TOptional<Type.TString>;
|
|
352
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
353
|
+
icon: Type.TOptional<Type.TString>;
|
|
354
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
355
|
+
}>>;
|
|
356
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
357
|
+
text: Type.TOptional<Type.TString>;
|
|
358
|
+
textColor: Type.TOptional<Type.TString>;
|
|
359
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
360
|
+
icon: Type.TOptional<Type.TString>;
|
|
361
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
362
|
+
}>, Type.TObject<{
|
|
363
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
364
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
365
|
+
}>]>>>;
|
|
366
|
+
}>, Type.TNull]>>;
|
|
284
367
|
}>;
|
|
285
368
|
export type ManualTriggerData = Static<typeof manualTriggerSchema>;
|
|
286
369
|
export declare const createManualTriggerSchema: Type.TObject<{
|
|
@@ -293,6 +376,26 @@ export declare const createManualTriggerSchema: Type.TObject<{
|
|
|
293
376
|
}>, Type.TNull]>>;
|
|
294
377
|
enabled: Type.TOptional<Type.TBoolean>;
|
|
295
378
|
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
379
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
380
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
381
|
+
styles: Type.TOptional<Type.TObject<{
|
|
382
|
+
text: Type.TOptional<Type.TString>;
|
|
383
|
+
textColor: Type.TOptional<Type.TString>;
|
|
384
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
385
|
+
icon: Type.TOptional<Type.TString>;
|
|
386
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
387
|
+
}>>;
|
|
388
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
389
|
+
text: Type.TOptional<Type.TString>;
|
|
390
|
+
textColor: Type.TOptional<Type.TString>;
|
|
391
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
392
|
+
icon: Type.TOptional<Type.TString>;
|
|
393
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
394
|
+
}>, Type.TObject<{
|
|
395
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
396
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
397
|
+
}>]>>>;
|
|
398
|
+
}>, Type.TNull]>>;
|
|
296
399
|
actions: Type.TOptional<Type.TArray<Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
297
400
|
type: Type.TEnum<"ApiAction"[]>;
|
|
298
401
|
name: Type.TString;
|
|
@@ -333,6 +436,26 @@ export declare const updateManualTriggerSchema: Type.TObject<{
|
|
|
333
436
|
}>, Type.TNull]>>;
|
|
334
437
|
enabled: Type.TOptional<Type.TBoolean>;
|
|
335
438
|
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
439
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
440
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
441
|
+
styles: Type.TOptional<Type.TObject<{
|
|
442
|
+
text: Type.TOptional<Type.TString>;
|
|
443
|
+
textColor: Type.TOptional<Type.TString>;
|
|
444
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
445
|
+
icon: Type.TOptional<Type.TString>;
|
|
446
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
447
|
+
}>>;
|
|
448
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
449
|
+
text: Type.TOptional<Type.TString>;
|
|
450
|
+
textColor: Type.TOptional<Type.TString>;
|
|
451
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
452
|
+
icon: Type.TOptional<Type.TString>;
|
|
453
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
454
|
+
}>, Type.TObject<{
|
|
455
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
456
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
457
|
+
}>]>>>;
|
|
458
|
+
}>, Type.TNull]>>;
|
|
336
459
|
actions: Type.TOptional<Type.TArray<Type.TUnion<[Type.TNumber, Type.TObject<{
|
|
337
460
|
type: Type.TEnum<"ApiAction"[]>;
|
|
338
461
|
name: Type.TString;
|
|
@@ -369,6 +492,17 @@ export declare const manualTriggerAvailabilitySchema: Type.TObject<{
|
|
|
369
492
|
matched: Type.TBoolean;
|
|
370
493
|
actionsCount: Type.TNumber;
|
|
371
494
|
relationsSkipped: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
495
|
+
/**
|
|
496
|
+
* Resolved server-side: conditional styles already evaluated and label already compiled. Absent
|
|
497
|
+
* when the trigger has no config — the consumer then paints its own default button.
|
|
498
|
+
*/
|
|
499
|
+
style: Type.TOptional<Type.TObject<{
|
|
500
|
+
text: Type.TOptional<Type.TString>;
|
|
501
|
+
textColor: Type.TOptional<Type.TString>;
|
|
502
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
503
|
+
icon: Type.TOptional<Type.TString>;
|
|
504
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
505
|
+
}>>;
|
|
372
506
|
}>;
|
|
373
507
|
export type ManualTriggerAvailability = Static<typeof manualTriggerAvailabilitySchema>;
|
|
374
508
|
export declare const manualTriggerAvailabilityListSchema: Type.TObject<{
|
|
@@ -378,6 +512,17 @@ export declare const manualTriggerAvailabilityListSchema: Type.TObject<{
|
|
|
378
512
|
matched: Type.TBoolean;
|
|
379
513
|
actionsCount: Type.TNumber;
|
|
380
514
|
relationsSkipped: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
515
|
+
/**
|
|
516
|
+
* Resolved server-side: conditional styles already evaluated and label already compiled. Absent
|
|
517
|
+
* when the trigger has no config — the consumer then paints its own default button.
|
|
518
|
+
*/
|
|
519
|
+
style: Type.TOptional<Type.TObject<{
|
|
520
|
+
text: Type.TOptional<Type.TString>;
|
|
521
|
+
textColor: Type.TOptional<Type.TString>;
|
|
522
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
523
|
+
icon: Type.TOptional<Type.TString>;
|
|
524
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
525
|
+
}>>;
|
|
381
526
|
}>>;
|
|
382
527
|
}>;
|
|
383
528
|
export declare const manualTriggerAvailabilityQuerySchema: Type.TObject<{
|
|
@@ -471,6 +616,26 @@ export declare const manualTriggerWithActionsSchema: Type.TIntersect<[Type.TObje
|
|
|
471
616
|
}>, Type.TNull]>>;
|
|
472
617
|
enabled: Type.TOptional<Type.TBoolean>;
|
|
473
618
|
retention_days: Type.TOptional<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
619
|
+
config: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
620
|
+
unmatchedBehavior: Type.TOptional<Type.TEnum<("hide" | "disable")[]>>;
|
|
621
|
+
styles: Type.TOptional<Type.TObject<{
|
|
622
|
+
text: Type.TOptional<Type.TString>;
|
|
623
|
+
textColor: Type.TOptional<Type.TString>;
|
|
624
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
625
|
+
icon: Type.TOptional<Type.TString>;
|
|
626
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
627
|
+
}>>;
|
|
628
|
+
conditionalStyles: Type.TOptional<Type.TArray<Type.TIntersect<[Type.TObject<{
|
|
629
|
+
text: Type.TOptional<Type.TString>;
|
|
630
|
+
textColor: Type.TOptional<Type.TString>;
|
|
631
|
+
bgColor: Type.TOptional<Type.TString>;
|
|
632
|
+
icon: Type.TOptional<Type.TString>;
|
|
633
|
+
iconPosition: Type.TOptional<Type.TEnum<("left" | "right")[]>>;
|
|
634
|
+
}>, Type.TObject<{
|
|
635
|
+
conditions: Type.TOptional<Type.TUnion<[Type.TObject<{}>, Type.TNull]>>;
|
|
636
|
+
continueEvaluate: Type.TOptional<Type.TBoolean>;
|
|
637
|
+
}>]>>>;
|
|
638
|
+
}>, Type.TNull]>>;
|
|
474
639
|
}>, Type.TObject<{
|
|
475
640
|
actions: Type.TOptional<Type.TArray<Type.TObject<{
|
|
476
641
|
id: Type.TNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-system.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/action-system/action-system.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAA;AAQpD,eAAO,MAAM,gBAAgB;;;CAGnB,CAAA;AACV,eAAO,MAAM,sBAAsB,wCAGjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpE,eAAO,MAAM,aAAa;;;;CAIhB,CAAA;AACV,eAAO,MAAM,mBAAmB,oDAG9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AACV,eAAO,MAAM,sBAAsB,gDAGjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAKpE,eAAO,MAAM,UAAU;;CAEb,CAAA;AACV,eAAO,MAAM,gBAAgB,2BAG3B,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAoBxD,eAAO,MAAM,sBAAsB;;;;;EAyBlC,CAAA;AACD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAIxE,eAAO,MAAM,qBAAqB;;;;;;;IAUjC,CAAA;AACD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAIlE,eAAO,MAAM,kBAAkB;;;;;;;MAG7B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAI5D,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,CAE7D,CAAA;AAQD,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"action-system.schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/action-system/action-system.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAA;AAQpD,eAAO,MAAM,gBAAgB;;;CAGnB,CAAA;AACV,eAAO,MAAM,sBAAsB,wCAGjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpE,eAAO,MAAM,aAAa;;;;CAIhB,CAAA;AACV,eAAO,MAAM,mBAAmB,oDAG9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AACV,eAAO,MAAM,sBAAsB,gDAGjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAKpE,eAAO,MAAM,UAAU;;CAEb,CAAA;AACV,eAAO,MAAM,gBAAgB,2BAG3B,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAoBxD,eAAO,MAAM,sBAAsB;;;;;EAyBlC,CAAA;AACD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAIxE,eAAO,MAAM,qBAAqB;;;;;;;IAUjC,CAAA;AACD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAIlE,eAAO,MAAM,kBAAkB;;;;;;;MAG7B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAI5D,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,UAAU,EAAE,OAA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;EAGjC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;IAG9B,CAAA"}
|
|
@@ -11,6 +11,12 @@ declare function resolveManualTriggers(ctx: RequestContext, source: TriggerSourc
|
|
|
11
11
|
* Applicable triggers with their `conditions` already evaluated. Writes no
|
|
12
12
|
* `process_log` row — it runs on every render. Context is built per trigger
|
|
13
13
|
* because `relations` is a per-trigger column.
|
|
14
|
+
*
|
|
15
|
+
* Only what the consumer is going to paint travels: a trigger whose conditions
|
|
16
|
+
* do not hold and whose `config.unmatchedBehavior` is `hide` is dropped here,
|
|
17
|
+
* before its style is resolved — a button nobody will see does not pay for its
|
|
18
|
+
* own presentation. What survives with `matched: false` is therefore always a
|
|
19
|
+
* button shown disabled.
|
|
14
20
|
*/
|
|
15
21
|
declare function listAvailable(ctx: RequestContext, query: ManualTriggerAvailabilityQuery): Promise<ManualTriggerAvailability[]>;
|
|
16
22
|
/**
|
|
@@ -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,KAAK,
|
|
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,CA4CjC;AAED,eAAO,MAAM,0BAA0B;;;;CAItC,CAAA"}
|
|
@@ -7,6 +7,26 @@ declare function listManualTriggers(ctx: RequestContext, pagination: PaginatedQu
|
|
|
7
7
|
enabled?: boolean | undefined;
|
|
8
8
|
project_id?: number | null | undefined;
|
|
9
9
|
conditions?: object | null | undefined;
|
|
10
|
+
config?: {
|
|
11
|
+
unmatchedBehavior?: "hide" | "disable" | undefined;
|
|
12
|
+
styles?: {
|
|
13
|
+
text?: string | undefined;
|
|
14
|
+
icon?: string | undefined;
|
|
15
|
+
textColor?: string | undefined;
|
|
16
|
+
bgColor?: string | undefined;
|
|
17
|
+
iconPosition?: "left" | "right" | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
conditionalStyles?: ({
|
|
20
|
+
text?: string | undefined;
|
|
21
|
+
icon?: string | undefined;
|
|
22
|
+
textColor?: string | undefined;
|
|
23
|
+
bgColor?: string | undefined;
|
|
24
|
+
iconPosition?: "left" | "right" | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
conditions?: object | null | undefined;
|
|
27
|
+
continueEvaluate?: boolean | undefined;
|
|
28
|
+
})[] | undefined;
|
|
29
|
+
} | null | undefined;
|
|
10
30
|
retention_days?: number | null | undefined;
|
|
11
31
|
relations?: {
|
|
12
32
|
join?: string[] | undefined;
|
|
@@ -39,6 +59,26 @@ declare function getManualTriggerById(ctx: RequestContext, id: number, includeAc
|
|
|
39
59
|
enabled?: boolean | undefined;
|
|
40
60
|
project_id?: number | null | undefined;
|
|
41
61
|
conditions?: object | null | undefined;
|
|
62
|
+
config?: {
|
|
63
|
+
unmatchedBehavior?: "hide" | "disable" | undefined;
|
|
64
|
+
styles?: {
|
|
65
|
+
text?: string | undefined;
|
|
66
|
+
icon?: string | undefined;
|
|
67
|
+
textColor?: string | undefined;
|
|
68
|
+
bgColor?: string | undefined;
|
|
69
|
+
iconPosition?: "left" | "right" | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
conditionalStyles?: ({
|
|
72
|
+
text?: string | undefined;
|
|
73
|
+
icon?: string | undefined;
|
|
74
|
+
textColor?: string | undefined;
|
|
75
|
+
bgColor?: string | undefined;
|
|
76
|
+
iconPosition?: "left" | "right" | undefined;
|
|
77
|
+
} & {
|
|
78
|
+
conditions?: object | null | undefined;
|
|
79
|
+
continueEvaluate?: boolean | undefined;
|
|
80
|
+
})[] | undefined;
|
|
81
|
+
} | null | undefined;
|
|
42
82
|
retention_days?: number | null | undefined;
|
|
43
83
|
relations?: {
|
|
44
84
|
join?: string[] | undefined;
|
|
@@ -90,6 +130,7 @@ declare function createManualTrigger(ctx: RequestContext, data: CreateManualTrig
|
|
|
90
130
|
relations?: import('../action-system.schema').TriggerRelations | null;
|
|
91
131
|
enabled?: boolean;
|
|
92
132
|
retention_days?: number | null;
|
|
133
|
+
config?: import('../action-system.schema').ManualTriggerConfigData | null;
|
|
93
134
|
trigger_actions?: import('../action-system.model').ManualTriggerAction[];
|
|
94
135
|
id: number;
|
|
95
136
|
$modelClass: import('objection').ModelClass<ManualTrigger>;
|
|
@@ -120,6 +161,7 @@ declare function updateManualTrigger(ctx: RequestContext, id: number, data: Upda
|
|
|
120
161
|
relations?: import('../action-system.schema').TriggerRelations | null;
|
|
121
162
|
enabled?: boolean;
|
|
122
163
|
retention_days?: number | null;
|
|
164
|
+
config?: import('../action-system.schema').ManualTriggerConfigData | null;
|
|
123
165
|
trigger_actions?: import('../action-system.model').ManualTriggerAction[];
|
|
124
166
|
id: number;
|
|
125
167
|
$modelClass: import('objection').ModelClass<ManualTrigger>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manual-trigger.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAA;AAG3E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EACV,uBAAuB,EAEvB,uBAAuB,EACxB,MAAM,yBAAyB,CAAA;AAiBhC,iBAAe,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,UAAQ
|
|
1
|
+
{"version":3,"file":"manual-trigger.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAA;AAG3E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EACV,uBAAuB,EAEvB,uBAAuB,EACxB,MAAM,yBAAyB,CAAA;AAiBhC,iBAAe,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWxG;AAED,iBAAe,oBAAoB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAW1F;AAID,iBAAe,mBAAmB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsBpF;AAyBD,iBAAe,mBAAmB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBhG;AAED,iBAAe,mBAAmB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,oBAEjE;AAED,eAAO,MAAM,oBAAoB;;;;;;CAMhC,CAAA"}
|
|
@@ -10,6 +10,11 @@ import { EvaluableTrigger, TriggerBatch, TriggerExecutionResult, TriggerRelation
|
|
|
10
10
|
* A relation that cannot be loaded never aborts the evaluation — the reason is
|
|
11
11
|
* returned as `relationsSkipped` for the caller to record, and the trigger is
|
|
12
12
|
* evaluated with whatever context it has.
|
|
13
|
+
*
|
|
14
|
+
* `requester` describes the user the request comes from, so a condition can ask what
|
|
15
|
+
* they are — a doctor, someone of a given clinic — and not only what the entity holds.
|
|
16
|
+
* It is part of the one context, not a second one: the conditions and the templates of
|
|
17
|
+
* an action read the same object, so neither can ever see data the other does not.
|
|
13
18
|
*/
|
|
14
19
|
export declare function buildTriggerContext(ctx: RequestContext, source: TriggerSource, target: string | null | undefined, current: Record<string, unknown>, old: Record<string, unknown> | null, relations?: TriggerRelations | null): Promise<{
|
|
15
20
|
context: ApiActionContextData;
|
|
@@ -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;AAI9D,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;
|
|
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;AAI9D,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;AAoBhC;;;;;;;;;;;;;;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;AAiDD;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,IAAI,GACR,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,CA2CzD;AAID;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,cAAc,EACnB,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,IAAI,GACR,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAsDnC;AAED,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA"}
|
|
@@ -0,0 +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,9 +1,9 @@
|
|
|
1
1
|
import { default as Objection } from 'objection';
|
|
2
|
-
import { default as BaseModel } from '
|
|
3
|
-
import { default as RequestContext } from '
|
|
4
|
-
import { ProcessLogType } from '
|
|
2
|
+
import { default as BaseModel } from '../../../../models/BaseModel';
|
|
3
|
+
import { default as RequestContext } from '../../../../models/request/RequestContext';
|
|
4
|
+
import { ProcessLogType } from '../../../../schemas';
|
|
5
5
|
export declare function isTriggerEngineTrace(relatedModel: unknown): boolean;
|
|
6
|
-
export
|
|
6
|
+
export declare class ProcessLog extends BaseModel {
|
|
7
7
|
created_at: string;
|
|
8
8
|
mod_time: string;
|
|
9
9
|
created_user?: number;
|
|
@@ -124,4 +124,4 @@ export default class ProcessLog extends BaseModel {
|
|
|
124
124
|
static insert(ctx: RequestContext, data: Objection.PartialModelObject<ProcessLog>): Promise<ProcessLog>;
|
|
125
125
|
static patch(ctx: RequestContext, data: Objection.PartialModelObject<ProcessLog>, id: number): Promise<ProcessLog>;
|
|
126
126
|
}
|
|
127
|
-
//# sourceMappingURL=
|
|
127
|
+
//# sourceMappingURL=process-log.model.d.ts.map
|
|
@@ -0,0 +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;AAqB5C,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAEnE;AAED,qBAAa,UAAW,SAAQ,SAAS;IACvC,UAAU,EAAG,MAAM,CAAA;IACnB,QAAQ,EAAG,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,EAAG,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,IAAI,EAAG,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,EAAG,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B,MAAM,KAAK,SAAS,WAEnB;IAED,MAAM,KAAK,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwBpB;IAED,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,cAAc;IAInC,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,iBAAiB;IAI1D,WAAW,CAAC,aAAa,EAAE,SAAS,CAAC,YAAY,EAAE,GAAG,CAAC,EAAE,UAAU;IAUnE,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,CAAC,YAAY;IAM/E,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY;WAK3C,MAAM,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC;WAO1E,KAAK,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,MAAM;CASnG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-log.model.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.model.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface EcosystemPurgeResult {
|
|
2
|
+
ecosystem: string;
|
|
3
|
+
/** Rows deleted in this cycle. `null` when the ecosystem was skipped or failed. */
|
|
4
|
+
deleted: number | null;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* One purge cycle: walks every ecosystem in the global `ecosystem` catalog and deletes
|
|
8
|
+
* its expired `process_log` rows.
|
|
9
|
+
*
|
|
10
|
+
* An ecosystem that fails is logged and skipped so it never aborts the rest, matching
|
|
11
|
+
* how the trigger engine isolates a failing trigger within a batch. The purge writes no
|
|
12
|
+
* `process_log` row of its own: it would be self-referential and, carrying no
|
|
13
|
+
* `expires_at`, those audit rows would be the only ones that never expire.
|
|
14
|
+
*/
|
|
15
|
+
declare function purgeExpiredProcessLogs(): Promise<EcosystemPurgeResult[]>;
|
|
16
|
+
export declare const ProcessLogPurgeService: {
|
|
17
|
+
purgeExpiredProcessLogs: typeof purgeExpiredProcessLogs;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=process-log.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-log.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.service.ts"],"names":[],"mappings":"AA0CA,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,mFAAmF;IACnF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB;AA+DD;;;;;;;;GAQG;AACH,iBAAe,uBAAuB,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAiDxE;AAED,eAAO,MAAM,sBAAsB;;CAElC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-log.service.e2e.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.service.e2e.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-log.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/process-log/process-log.service.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e2e-operation.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"e2e-operation.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAkE1E,eAAO,MAAM,sBAAsB;;CAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e2e-operation.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"e2e-operation.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/global/e2e-operation/e2e-operation.service.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAuLhE,MAAM,WAAW,OAAO;IAGtB,GAAG,CAAC,GAAG,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;CAC/E;AAKD,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAgFD,eAAO,MAAM,aAAa,GAAU,KAAK,OAAO,EAAE,SAAS,MAAM,EAAE,OAAM,YAAiB,KAAG,OAAO,CAAC,IAAI,CAyExG,CAAA;AAiGD,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,EACZ,SAAS,MAAM,EACf,OAAM,YAAiB,KACtB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CA6BtF,CAAA;AA8xBD,eAAO,MAAM,mBAAmB;sCAhBQ,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC;mBAkBrD,MAAM,UAAU,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAQxE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessLog.d.ts","sourceRoot":"","sources":["../../../../../src/models/ecosystem/ProcessLog.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,cAAc,MAAM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