@persei/perseed-api 5.0.20 → 5.0.22

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.
Files changed (166) hide show
  1. package/dist/client.cjs +773 -37
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.mjs +773 -37
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/{lib-CDM5aEJG.cjs → dates.helper-CDM5aEJG.cjs} +1 -1
  6. package/dist/dates.helper-CDM5aEJG.cjs.map +1 -0
  7. package/dist/{lib-XRCJ_UAQ.js → dates.helper-XRCJ_UAQ.js} +1 -1
  8. package/dist/dates.helper-XRCJ_UAQ.js.map +1 -0
  9. package/dist/ecosystem-action-system.cjs +124 -34
  10. package/dist/ecosystem-action-system.cjs.map +1 -1
  11. package/dist/ecosystem-action-system.mjs +124 -34
  12. package/dist/ecosystem-action-system.mjs.map +1 -1
  13. package/dist/ecosystem-container-widget.cjs +6 -6
  14. package/dist/ecosystem-container-widget.cjs.map +1 -1
  15. package/dist/ecosystem-container-widget.mjs +1 -1
  16. package/dist/global-dates.cjs +9 -3
  17. package/dist/global-dates.cjs.map +1 -1
  18. package/dist/global-dates.mjs +7 -1
  19. package/dist/global-dates.mjs.map +1 -1
  20. package/dist/lib/src/generated/client.d.ts +5815 -839
  21. package/dist/lib/src/generated/client.d.ts.map +1 -1
  22. package/dist/src/Services/ProcessLogService.d.ts +1 -1
  23. package/dist/src/Services/ProcessLogService.d.ts.map +1 -1
  24. package/dist/src/Services/QueryService.d.ts +24 -1
  25. package/dist/src/Services/QueryService.d.ts.map +1 -1
  26. package/dist/src/Services/RedisQueueService.d.ts.map +1 -1
  27. package/dist/src/Services/TriggerService.d.ts.map +1 -1
  28. package/dist/src/config/apiPublicKey.d.ts +19 -4
  29. package/dist/src/config/apiPublicKey.d.ts.map +1 -1
  30. package/dist/src/config/apiPublicKey.test.d.ts +2 -0
  31. package/dist/src/config/apiPublicKey.test.d.ts.map +1 -0
  32. package/dist/src/constants/SeedPrivilege.d.ts +1 -0
  33. package/dist/src/constants/SeedPrivilege.d.ts.map +1 -1
  34. package/dist/src/controllers/IntrospectionController.d.ts.map +1 -1
  35. package/dist/src/controllers/UserController.d.ts.map +1 -1
  36. package/dist/src/models/ecosystem/NotificationConfiguration.d.ts +1 -1
  37. package/dist/src/models/ecosystem/NotificationConfiguration.d.ts.map +1 -1
  38. package/dist/src/models/ecosystem/User.d.ts +17 -0
  39. package/dist/src/models/ecosystem/User.d.ts.map +1 -1
  40. package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts +2 -0
  41. package/dist/src/models/ecosystem/User.getProjectUser.test.d.ts.map +1 -0
  42. package/dist/src/models/perseed/PerseedEcosystem.d.ts +2 -0
  43. package/dist/src/models/perseed/PerseedEcosystem.d.ts.map +1 -1
  44. package/dist/src/schemas/api_action/ApiActionTypes.d.ts +11 -0
  45. package/dist/src/schemas/api_action/ApiActionTypes.d.ts.map +1 -1
  46. package/dist/src/schemas/container_widget/create_widget_payload.schema.json +1 -1
  47. package/dist/src/schemas/container_widget/update_widget_payload.schema.json +1 -1
  48. package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts +2 -1
  49. package/dist/src/schemas/container_widget/widgetTypes/PatientListProps.d.ts.map +1 -1
  50. package/dist/src/schemas/index.d.ts +1 -0
  51. package/dist/src/schemas/index.d.ts.map +1 -1
  52. package/dist/src/schemas/project_user/index.d.ts +2 -0
  53. package/dist/src/schemas/project_user/index.d.ts.map +1 -0
  54. package/dist/src/schemas/project_user/types.d.ts +44 -0
  55. package/dist/src/schemas/project_user/types.d.ts.map +1 -0
  56. package/dist/src/test/e2e-permissions.d.ts +32 -3
  57. package/dist/src/test/e2e-permissions.d.ts.map +1 -1
  58. package/dist/src/test/test-helpers.d.ts +12 -0
  59. package/dist/src/test/test-helpers.d.ts.map +1 -1
  60. package/dist/src/v2/modules/ecosystem/action-system/action-system.controller/manual-trigger.controller.d.ts.map +1 -1
  61. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts +27 -5
  62. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/action-system.helper.d.ts.map +1 -1
  63. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts +1 -0
  64. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/index.d.ts.map +1 -1
  65. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts +13 -0
  66. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.d.ts.map +1 -0
  67. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts +2 -0
  68. package/dist/src/v2/modules/ecosystem/action-system/action-system.helper/manual-trigger.helper.test.d.ts.map +1 -0
  69. package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts +7 -3
  70. package/dist/src/v2/modules/ecosystem/action-system/action-system.model.d.ts.map +1 -1
  71. package/dist/src/v2/modules/ecosystem/action-system/action-system.model.test.d.ts +2 -0
  72. package/dist/src/v2/modules/ecosystem/action-system/action-system.model.test.d.ts.map +1 -0
  73. package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts +234 -58
  74. package/dist/src/v2/modules/ecosystem/action-system/action-system.schema.d.ts.map +1 -1
  75. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.d.ts +14 -6
  76. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.d.ts.map +1 -1
  77. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts +6 -0
  78. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger-engine.service.d.ts.map +1 -1
  79. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts +60 -10
  80. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/manual-trigger.service.d.ts.map +1 -1
  81. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts +6 -0
  82. package/dist/src/v2/modules/ecosystem/action-system/action-system.service/trigger-engine.service.d.ts.map +1 -1
  83. package/dist/src/v2/modules/ecosystem/alert/alert.controller.d.ts +12 -0
  84. package/dist/src/v2/modules/ecosystem/alert/alert.controller.d.ts.map +1 -0
  85. package/dist/src/v2/modules/ecosystem/alert/alert.controller.e2e.d.ts +2 -0
  86. package/dist/src/v2/modules/ecosystem/alert/alert.controller.e2e.d.ts.map +1 -0
  87. package/dist/src/v2/modules/ecosystem/alert/alert.controller.test.d.ts +2 -0
  88. package/dist/src/v2/modules/ecosystem/alert/alert.controller.test.d.ts.map +1 -0
  89. package/dist/src/v2/modules/ecosystem/alert/alert.helper.d.ts +55 -0
  90. package/dist/src/v2/modules/ecosystem/alert/alert.helper.d.ts.map +1 -0
  91. package/dist/src/v2/modules/ecosystem/alert/alert.helper.test.d.ts +2 -0
  92. package/dist/src/v2/modules/ecosystem/alert/alert.helper.test.d.ts.map +1 -0
  93. package/dist/src/v2/modules/ecosystem/alert/alert.model.d.ts +61 -0
  94. package/dist/src/v2/modules/ecosystem/alert/alert.model.d.ts.map +1 -0
  95. package/dist/src/v2/modules/ecosystem/alert/alert.model.test.d.ts +2 -0
  96. package/dist/src/v2/modules/ecosystem/alert/alert.model.test.d.ts.map +1 -0
  97. package/dist/src/v2/modules/ecosystem/alert/alert.schema.d.ts +134 -0
  98. package/dist/src/v2/modules/ecosystem/alert/alert.schema.d.ts.map +1 -0
  99. package/dist/src/v2/modules/ecosystem/alert/alert.service.d.ts +73 -0
  100. package/dist/src/v2/modules/ecosystem/alert/alert.service.d.ts.map +1 -0
  101. package/dist/src/v2/modules/ecosystem/alert/alert.service.test.d.ts +2 -0
  102. package/dist/src/v2/modules/ecosystem/alert/alert.service.test.d.ts.map +1 -0
  103. package/dist/src/v2/modules/ecosystem/alert/index.d.ts +7 -0
  104. package/dist/src/v2/modules/ecosystem/alert/index.d.ts.map +1 -0
  105. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.controller.d.ts +6 -0
  106. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.controller.d.ts.map +1 -0
  107. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.controller.e2e.d.ts +2 -0
  108. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.controller.e2e.d.ts.map +1 -0
  109. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.controller.test.d.ts +2 -0
  110. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.controller.test.d.ts.map +1 -0
  111. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.helper.d.ts +14 -0
  112. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.helper.d.ts.map +1 -0
  113. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.helper.test.d.ts +2 -0
  114. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.helper.test.d.ts.map +1 -0
  115. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.model.d.ts +18 -0
  116. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.model.d.ts.map +1 -0
  117. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.schema.d.ts +29 -0
  118. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.schema.d.ts.map +1 -0
  119. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.service.d.ts +38 -0
  120. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.service.d.ts.map +1 -0
  121. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.service.test.d.ts +2 -0
  122. package/dist/src/v2/modules/ecosystem/alert-type/alert-type.service.test.d.ts.map +1 -0
  123. package/dist/src/v2/modules/ecosystem/alert-type/index.d.ts +6 -0
  124. package/dist/src/v2/modules/ecosystem/alert-type/index.d.ts.map +1 -0
  125. package/dist/src/v2/modules/ecosystem/process-log/index.d.ts +3 -0
  126. package/dist/src/v2/modules/ecosystem/process-log/index.d.ts.map +1 -0
  127. package/dist/src/{models/ecosystem/ProcessLog.d.ts → v2/modules/ecosystem/process-log/process-log.model.d.ts} +5 -5
  128. package/dist/src/v2/modules/ecosystem/process-log/process-log.model.d.ts.map +1 -0
  129. package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts +2 -0
  130. package/dist/src/v2/modules/ecosystem/process-log/process-log.model.test.d.ts.map +1 -0
  131. package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts +20 -0
  132. package/dist/src/v2/modules/ecosystem/process-log/process-log.service.d.ts.map +1 -0
  133. package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts +2 -0
  134. package/dist/src/v2/modules/ecosystem/process-log/process-log.service.e2e.d.ts.map +1 -0
  135. package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts +2 -0
  136. package/dist/src/v2/modules/ecosystem/process-log/process-log.service.test.d.ts.map +1 -0
  137. package/dist/src/v2/modules/global/auth-token/auth-token.controller.d.ts.map +1 -1
  138. package/dist/src/v2/modules/global/dates/dates.helper.d.ts.map +1 -1
  139. package/dist/src/v2/modules/global/dates/dates.schema.d.ts +39 -0
  140. package/dist/src/v2/modules/global/dates/dates.schema.d.ts.map +1 -1
  141. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.controller.d.ts.map +1 -1
  142. package/dist/src/v2/modules/global/e2e-operation/e2e-operation.service.d.ts.map +1 -1
  143. package/dist/src/v2/modules/global/permissions/index.d.ts +2 -0
  144. package/dist/src/v2/modules/global/permissions/index.d.ts.map +1 -0
  145. package/dist/src/v2/modules/global/permissions/permissions.helper.d.ts +32 -0
  146. package/dist/src/v2/modules/global/permissions/permissions.helper.d.ts.map +1 -0
  147. package/dist/src/v2/modules/global/permissions/permissions.helper.test.d.ts +2 -0
  148. package/dist/src/v2/modules/global/permissions/permissions.helper.test.d.ts.map +1 -0
  149. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/alert/index.d.ts +3 -0
  150. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/alert/index.d.ts.map +1 -0
  151. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/alert-type/index.d.ts +3 -0
  152. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/alert-type/index.d.ts.map +1 -0
  153. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/alert/index.d.ts +3 -0
  154. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/alert/index.d.ts.map +1 -0
  155. package/dist/v1/perseed-api.cjs +2 -0
  156. package/dist/v1/perseed-api.cjs.map +1 -1
  157. package/dist/v1/perseed-api.mjs +2 -0
  158. package/dist/v1/perseed-api.mjs.map +1 -1
  159. package/package.json +1 -1
  160. package/dist/lib-CDM5aEJG.cjs.map +0 -1
  161. package/dist/lib-XRCJ_UAQ.js.map +0 -1
  162. package/dist/src/models/ecosystem/ProcessLog.d.ts.map +0 -1
  163. package/dist/src/models/ecosystem/ProcessLog.test.d.ts +0 -2
  164. package/dist/src/models/ecosystem/ProcessLog.test.d.ts.map +0 -1
  165. package/dist/src/test/global-setup.d.ts +0 -2
  166. package/dist/src/test/global-setup.d.ts.map +0 -1
@@ -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,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AgB,GAAG,gBAAgB;IACzE,QAAQ,EAAE,CAAC,EAAE,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CACrC;AAID,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC/C,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAC5B;AAKD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAC5B;AAKD,eAAO,MAAM,qBAAqB;;EAGjC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;IAG9B,CAAA"}
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,K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IACtC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC/C,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAC5B;AAKD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAC5B;AAKD,eAAO,MAAM,qBAAqB;;EAGjC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;IAG9B,CAAA"}
@@ -5,6 +5,8 @@ import { CreateAutomaticTriggerData, UpdateAutomaticTriggerData } from '../actio
5
5
  declare function listAutomaticTriggers(ctx: RequestContext, pagination: PaginatedQuery, includeActions?: boolean): Promise<import('objection').Page<AutomaticTrigger> | {
6
6
  results: ({
7
7
  enabled?: boolean | undefined;
8
+ name?: string | null | undefined;
9
+ description?: string | null | undefined;
8
10
  project_id?: number | null | undefined;
9
11
  target?: string | null | undefined;
10
12
  conditions?: object | null | undefined;
@@ -14,15 +16,15 @@ declare function listAutomaticTriggers(ctx: RequestContext, pagination: Paginate
14
16
  join?: string[] | undefined;
15
17
  } | null | undefined;
16
18
  id: number;
17
- source: "model" | "designer" | "displayer";
19
+ source: "model" | "displayer";
18
20
  } & {
19
21
  actions?: {
22
+ name?: string | null | undefined;
20
23
  project_id?: number | null | undefined;
21
24
  retention_days?: number | null | undefined;
22
25
  library?: boolean | undefined;
23
26
  id: number;
24
27
  type: "ApiAction";
25
- name: string;
26
28
  config: {
27
29
  default?: Record<string, unknown> | undefined;
28
30
  location?: string | undefined;
@@ -37,6 +39,8 @@ declare function listAutomaticTriggers(ctx: RequestContext, pagination: Paginate
37
39
  }>;
38
40
  declare function getAutomaticTriggerById(ctx: RequestContext, id: number, includeActions?: boolean): Promise<({
39
41
  enabled?: boolean | undefined;
42
+ name?: string | null | undefined;
43
+ description?: string | null | undefined;
40
44
  project_id?: number | null | undefined;
41
45
  target?: string | null | undefined;
42
46
  conditions?: object | null | undefined;
@@ -46,15 +50,15 @@ declare function getAutomaticTriggerById(ctx: RequestContext, id: number, includ
46
50
  join?: string[] | undefined;
47
51
  } | null | undefined;
48
52
  id: number;
49
- source: "model" | "designer" | "displayer";
53
+ source: "model" | "displayer";
50
54
  } & {
51
55
  actions?: {
56
+ name?: string | null | undefined;
52
57
  project_id?: number | null | undefined;
53
58
  retention_days?: number | null | undefined;
54
59
  library?: boolean | undefined;
55
60
  id: number;
56
61
  type: "ApiAction";
57
- name: string;
58
62
  config: {
59
63
  default?: Record<string, unknown> | undefined;
60
64
  location?: string | undefined;
@@ -67,12 +71,12 @@ declare function getAutomaticTriggerById(ctx: RequestContext, id: number, includ
67
71
  }) | AutomaticTrigger | undefined>;
68
72
  declare function createAutomaticTrigger(ctx: RequestContext, data: CreateAutomaticTriggerData): Promise<AutomaticTrigger | {
69
73
  actions: {
74
+ name?: string | null | undefined;
70
75
  project_id?: number | null | undefined;
71
76
  retention_days?: number | null | undefined;
72
77
  library?: boolean | undefined;
73
78
  id: number;
74
79
  type: "ApiAction";
75
- name: string;
76
80
  config: {
77
81
  default?: Record<string, unknown> | undefined;
78
82
  location?: string | undefined;
@@ -83,6 +87,8 @@ declare function createAutomaticTrigger(ctx: RequestContext, data: CreateAutomat
83
87
  };
84
88
  }[];
85
89
  project_id?: number | null;
90
+ name?: string | null;
91
+ description?: string | null;
86
92
  source: import('../action-system.schema').TriggerSource;
87
93
  target?: string | null;
88
94
  operation?: import('../action-system.schema').TriggerOperation | null;
@@ -97,12 +103,12 @@ declare function createAutomaticTrigger(ctx: RequestContext, data: CreateAutomat
97
103
  }>;
98
104
  declare function updateAutomaticTrigger(ctx: RequestContext, id: number, data: UpdateAutomaticTriggerData): Promise<AutomaticTrigger | {
99
105
  actions: {
106
+ name?: string | null | undefined;
100
107
  project_id?: number | null | undefined;
101
108
  retention_days?: number | null | undefined;
102
109
  library?: boolean | undefined;
103
110
  id: number;
104
111
  type: "ApiAction";
105
- name: string;
106
112
  config: {
107
113
  default?: Record<string, unknown> | undefined;
108
114
  location?: string | undefined;
@@ -113,6 +119,8 @@ declare function updateAutomaticTrigger(ctx: RequestContext, id: number, data: U
113
119
  };
114
120
  }[];
115
121
  project_id?: number | null;
122
+ name?: string | null;
123
+ description?: string | null;
116
124
  source: import('../action-system.schema').TriggerSource;
117
125
  target?: string | null;
118
126
  operation?: import('../action-system.schema').TriggerOperation | null;
@@ -1 +1 @@
1
- {"version":3,"file":"automatic-trigger.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAA;AAG3E,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACjF,OAAO,KAAK,EAEV,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,yBAAyB,CAAA;AAqBhC,iBAAe,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAa3G;AAED,iBAAe,uBAAuB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAW7F;AAMD,iBAAe,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsB1F;AAyBD,iBAAe,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsBtG;AAED,iBAAe,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,oBAEpE;AAED,eAAO,MAAM,uBAAuB;;;;;;CAMnC,CAAA"}
1
+ {"version":3,"file":"automatic-trigger.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/v2/modules/ecosystem/action-system/action-system.service/automatic-trigger.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAA;AAG3E,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACjF,OAAO,KAAK,EAEV,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,yBAAyB,CAAA;AAqBhC,iBAAe,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAa3G;AAED,iBAAe,uBAAuB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAW7F;AAMD,iBAAe,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsB1F;AAyBD,iBAAe,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsBtG;AAED,iBAAe,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,oBAEpE;AAED,eAAO,MAAM,uBAAuB;;;;;;CAMnC,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,EACV,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACtB,aAAa,EACd,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;;;;GAIG;AACH,iBAAe,aAAa,CAC1B,GAAG,EAAE,cAAc,EACnB,KAAK,EAAE,8BAA8B,GACpC,OAAO,CAAC,yBAAyB,EAAE,CAAC,CA4BtC;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"}
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"}
@@ -5,24 +5,47 @@ import { CreateManualTriggerData, UpdateManualTriggerData } from '../action-syst
5
5
  declare function listManualTriggers(ctx: RequestContext, pagination: PaginatedQuery, includeActions?: boolean): Promise<import('objection').Page<ManualTrigger> | {
6
6
  results: ({
7
7
  enabled?: boolean | undefined;
8
+ name?: string | null | undefined;
9
+ description?: string | null | undefined;
8
10
  project_id?: number | null | undefined;
9
11
  conditions?: object | null | undefined;
12
+ config?: {
13
+ unmatchedBehavior?: "hide" | "disable" | undefined;
14
+ styles?: {
15
+ text?: string | undefined;
16
+ icon?: string | undefined;
17
+ tooltip?: string | undefined;
18
+ textColor?: string | undefined;
19
+ bgColor?: string | undefined;
20
+ iconPosition?: "left" | "right" | undefined;
21
+ } | undefined;
22
+ conditionalStyles?: ({
23
+ text?: string | undefined;
24
+ icon?: string | undefined;
25
+ tooltip?: string | undefined;
26
+ textColor?: string | undefined;
27
+ bgColor?: string | undefined;
28
+ iconPosition?: "left" | "right" | undefined;
29
+ } & {
30
+ conditions?: object | null | undefined;
31
+ continueEvaluate?: boolean | undefined;
32
+ })[] | undefined;
33
+ } | null | undefined;
10
34
  retention_days?: number | null | undefined;
11
35
  relations?: {
12
36
  join?: string[] | undefined;
13
37
  } | null | undefined;
14
38
  id: number;
15
- name: string;
16
39
  target: string;
17
- source: "model" | "designer" | "displayer";
40
+ source: "model" | "displayer";
18
41
  } & {
19
42
  actions?: {
43
+ name?: string | null | undefined;
20
44
  project_id?: number | null | undefined;
21
45
  retention_days?: number | null | undefined;
22
46
  library?: boolean | undefined;
23
47
  id: number;
24
48
  type: "ApiAction";
25
- name: string;
26
49
  config: {
27
50
  default?: Record<string, unknown> | undefined;
28
51
  location?: string | undefined;
@@ -37,24 +60,47 @@ declare function listManualTriggers(ctx: RequestContext, pagination: PaginatedQu
37
60
  }>;
38
61
  declare function getManualTriggerById(ctx: RequestContext, id: number, includeActions?: boolean): Promise<({
39
62
  enabled?: boolean | undefined;
63
+ name?: string | null | undefined;
64
+ description?: string | null | undefined;
40
65
  project_id?: number | null | undefined;
41
66
  conditions?: object | null | undefined;
67
+ config?: {
68
+ unmatchedBehavior?: "hide" | "disable" | undefined;
69
+ styles?: {
70
+ text?: string | undefined;
71
+ icon?: string | undefined;
72
+ tooltip?: string | undefined;
73
+ textColor?: string | undefined;
74
+ bgColor?: string | undefined;
75
+ iconPosition?: "left" | "right" | undefined;
76
+ } | undefined;
77
+ conditionalStyles?: ({
78
+ text?: string | undefined;
79
+ icon?: string | undefined;
80
+ tooltip?: string | undefined;
81
+ textColor?: string | undefined;
82
+ bgColor?: string | undefined;
83
+ iconPosition?: "left" | "right" | undefined;
84
+ } & {
85
+ conditions?: object | null | undefined;
86
+ continueEvaluate?: boolean | undefined;
87
+ })[] | undefined;
88
+ } | null | undefined;
42
89
  retention_days?: number | null | undefined;
43
90
  relations?: {
44
91
  join?: string[] | undefined;
45
92
  } | null | undefined;
46
93
  id: number;
47
- name: string;
48
94
  target: string;
49
- source: "model" | "designer" | "displayer";
95
+ source: "model" | "displayer";
50
96
  } & {
51
97
  actions?: {
98
+ name?: string | null | undefined;
52
99
  project_id?: number | null | undefined;
53
100
  retention_days?: number | null | undefined;
54
101
  library?: boolean | undefined;
55
102
  id: number;
56
103
  type: "ApiAction";
57
- name: string;
58
104
  config: {
59
105
  default?: Record<string, unknown> | undefined;
60
106
  location?: string | undefined;
@@ -67,12 +113,12 @@ declare function getManualTriggerById(ctx: RequestContext, id: number, includeAc
67
113
  }) | ManualTrigger | undefined>;
68
114
  declare function createManualTrigger(ctx: RequestContext, data: CreateManualTriggerData): Promise<ManualTrigger | {
69
115
  actions: {
116
+ name?: string | null | undefined;
70
117
  project_id?: number | null | undefined;
71
118
  retention_days?: number | null | undefined;
72
119
  library?: boolean | undefined;
73
120
  id: number;
74
121
  type: "ApiAction";
75
- name: string;
76
122
  config: {
77
123
  default?: Record<string, unknown> | undefined;
78
124
  location?: string | undefined;
@@ -83,13 +129,15 @@ declare function createManualTrigger(ctx: RequestContext, data: CreateManualTrig
83
129
  };
84
130
  }[];
85
131
  project_id?: number | null;
86
- name: string;
132
+ name?: string | null;
133
+ description?: string | null;
87
134
  source: import('../action-system.schema').TriggerSource;
88
135
  target: string;
89
136
  conditions?: object | null;
90
137
  relations?: import('../action-system.schema').TriggerRelations | null;
91
138
  enabled?: boolean;
92
139
  retention_days?: number | null;
140
+ config?: import('../action-system.schema').ManualTriggerConfigData | null;
93
141
  trigger_actions?: import('../action-system.model').ManualTriggerAction[];
94
142
  id: number;
95
143
  $modelClass: import('objection').ModelClass<ManualTrigger>;
@@ -97,12 +145,12 @@ declare function createManualTrigger(ctx: RequestContext, data: CreateManualTrig
97
145
  }>;
98
146
  declare function updateManualTrigger(ctx: RequestContext, id: number, data: UpdateManualTriggerData): Promise<ManualTrigger | {
99
147
  actions: {
148
+ name?: string | null | undefined;
100
149
  project_id?: number | null | undefined;
101
150
  retention_days?: number | null | undefined;
102
151
  library?: boolean | undefined;
103
152
  id: number;
104
153
  type: "ApiAction";
105
- name: string;
106
154
  config: {
107
155
  default?: Record<string, unknown> | undefined;
108
156
  location?: string | undefined;
@@ -113,13 +161,15 @@ declare function updateManualTrigger(ctx: RequestContext, id: number, data: Upda
113
161
  };
114
162
  }[];
115
163
  project_id?: number | null;
116
- name: string;
164
+ name?: string | null;
165
+ description?: string | null;
117
166
  source: import('../action-system.schema').TriggerSource;
118
167
  target: string;
119
168
  conditions?: object | null;
120
169
  relations?: import('../action-system.schema').TriggerRelations | null;
121
170
  enabled?: boolean;
122
171
  retention_days?: number | null;
172
+ config?: import('../action-system.schema').ManualTriggerConfigData | null;
123
173
  trigger_actions?: import('../action-system.model').ManualTriggerAction[];
124
174
  id: number;
125
175
  $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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;
@@ -31,6 +36,7 @@ export declare function evaluateConditions(context: ApiActionContextData, trigge
31
36
  export declare function executeTriggerActions(ctx: RequestContext, trigger: EvaluableTrigger, context: ApiActionContextData, now: Date): Promise<{
32
37
  actionsRun: number;
33
38
  actionsAborted: number;
39
+ actionsFailed: number;
34
40
  }>;
35
41
  /**
36
42
  * Runs a batch of already-resolved trigger candidates: per trigger, assembles
@@ -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;AAmBhC;;;;;;;;;GASG;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,CAYvE;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"}
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;AAgDD;;;;;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,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAkDhF;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,12 @@
1
+ import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox';
2
+ /**
3
+ * Suffix of every ecosystem-level name, as a constant rather than a literal in `ECOSYSTEM_LEVEL`:
4
+ * a second ecosystem-mounted resource has to carry the same word for the generated client to read
5
+ * as one family, and a constant is what makes that a reference instead of a convention to remember.
6
+ */
7
+ export declare const ECOSYSTEM_OPERATION_SUFFIX = "Ecosystem";
8
+ export declare const AlertController: {
9
+ alertRouter: FastifyPluginAsyncTypebox;
10
+ ecosystemAlertRouter: FastifyPluginAsyncTypebox;
11
+ };
12
+ //# sourceMappingURL=alert.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.controller.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAiD1E;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,cAAc,CAAA;AAqJrD,eAAO,MAAM,eAAe;;;CAG3B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=alert.controller.e2e.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.controller.e2e.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.controller.e2e.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=alert.controller.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.controller.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.controller.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ import { default as RequestContext } from '../../../../models/request/RequestContext';
2
+ /**
3
+ * Permission preHandler of the write endpoints of this module (create, update, resolve). Reads go
4
+ * through `resolveAlertReadScope` instead, which narrows what is returned rather than refusing.
5
+ *
6
+ * `alerts_management` is its own privilege rather than a reuse of `triggers_management`: managing
7
+ * the rules that fire and managing the alerts they raise are different jobs given to different
8
+ * profiles. Without the privilege row, `checkPermission` matches nothing and every endpoint answers
9
+ * 403 for everyone.
10
+ *
11
+ * The administrator role stands in for the privilege on both mounts, the same way
12
+ * `requireTriggersManagement` does it: seed privileges are granted per profiling and a profiling
13
+ * belongs to a project, so an administrator — who has no profiling row there — could never be given
14
+ * this one. See `hasPrivilege` for the full argument.
15
+ */
16
+ export declare const requireAlertsManagement: (req: import('fastify').FastifyRequest) => Promise<void>;
17
+ /**
18
+ * How much of the alerts in reach the caller may read.
19
+ *
20
+ * `null` means all of them — the caller manages alerts, so narrowing would hide rows from their own
21
+ * guard. Otherwise the reach is the union of the two things that make someone party to an alert:
22
+ * being its `user_id`, or having access to its `patient_id`.
23
+ */
24
+ export interface AlertReadScope {
25
+ /** Alerts whose `user_id` is this user. Always the caller. */
26
+ ownUserId: number;
27
+ /**
28
+ * Alerts whose `patient_id` is one of these — the patients the caller has access to. Empty when
29
+ * the caller reaches no patient, and at the ecosystem level, where there is no project to resolve
30
+ * patients against.
31
+ */
32
+ patientIds: number[];
33
+ }
34
+ /**
35
+ * Resolves what the caller may read, instead of refusing outright as the write endpoints do.
36
+ *
37
+ * Two levels: a caller who manages alerts reads everything in reach; anyone else reads the alerts
38
+ * they are the `user_id` of, plus the alerts about a patient they have access to.
39
+ *
40
+ * There is no third level for "no user on the context": the request never reaches a handler in that
41
+ * state. `authProtectedHook` refuses a request with no token, and a token that resolves no user for
42
+ * the ecosystem of the URL is refused by `validateParams` with `no-user-for-ecosystem`; the project
43
+ * mount adds `checkProjectAccess` on top. `hasPrivilege` reads the user with `getUser(false)` and so
44
+ * answers `false` rather than throwing, which leaves `ctx.getUserId()` as the one place that would
45
+ * notice — and it is unreachable for the same reason.
46
+ *
47
+ * The two halves are a union and not a branch on whether the caller is a professional: a person can
48
+ * be both the subject of an alert and the clinician of another patient, and choosing one of the two
49
+ * would hide the other set from them.
50
+ *
51
+ * Returning a scope rather than filtering here keeps the decision (who may see what) apart from the
52
+ * query that enforces it (`alert.service.ts`), so each can be tested without the other.
53
+ */
54
+ export declare function resolveAlertReadScope(ctx: RequestContext): Promise<AlertReadScope | null>;
55
+ //# sourceMappingURL=alert.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,mCAAmC,CAAA;AAKnE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB,0DAGnC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB;AAsBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAO/F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=alert.helper.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.helper.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.helper.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,61 @@
1
+ import { default as Objection } from 'objection';
2
+ import { default as BaseModel } from '../../../../models/BaseModel';
3
+ import { default as RequestContext } from '../../../../models/request/RequestContext';
4
+ import { TypedQueryBuilder } from '../../global/objection';
5
+ import { AlertData, AlertEmitterData, AlertEntityRefData, AlertSeverity, AlertStatus } from './alert.schema';
6
+ export declare class Alert extends BaseModel implements AlertData {
7
+ project_id?: number | null;
8
+ alert_type_id?: number | null;
9
+ user_id?: number | null;
10
+ patient_id?: number | null;
11
+ severity?: AlertSeverity | null;
12
+ status?: AlertStatus;
13
+ title?: string | null;
14
+ summary?: string | null;
15
+ emitter: AlertEmitterData;
16
+ recipients?: AlertEntityRefData[] | null;
17
+ related_entities?: AlertEntityRefData[] | null;
18
+ payload?: Record<string, unknown> | null;
19
+ metadata?: Record<string, unknown> | null;
20
+ dedup_key?: string;
21
+ triggered_at?: string | null;
22
+ viewed_at?: string | null;
23
+ viewed_by?: number | null;
24
+ resolved_at?: string | null;
25
+ resolved_by?: number | null;
26
+ resolution_note?: string | null;
27
+ created_user?: number | null;
28
+ created_at?: string;
29
+ mod_time?: string;
30
+ static tableName: string;
31
+ static jsonAttributes: string[];
32
+ static jsonSchema: Objection.JSONSchema;
33
+ static QueryBuilder: typeof Objection.QueryBuilder;
34
+ static query(): TypedQueryBuilder<Alert, typeof Alert, never>;
35
+ static getModel(ctx: RequestContext): typeof Alert;
36
+ static getModelByPool(ecosystemPool: Objection.TransactionOrKnex): typeof Alert;
37
+ /**
38
+ * Writes an alert and announces it, so an alert is a trigger source like any other model: the
39
+ * `MODEL_AFTER_SAVE` event is what lets a trigger fire *from* an alert.
40
+ *
41
+ * Every write goes through `insert`/`patch` rather than `query().insert()` — a bare query writes
42
+ * the row without emitting, and the trigger silently never fires. `trx` lets the caller keep the
43
+ * write inside the dedup transaction of the service; it defaults to the request's ecosystem
44
+ * transaction, as `ProcessLog` does.
45
+ */
46
+ static insert(ctx: RequestContext, data: Objection.PartialModelObject<Alert>, trx?: Objection.TransactionOrKnex): Promise<Alert>;
47
+ /**
48
+ * Patches an alert the request reaches and announces it.
49
+ *
50
+ * The scoping lives here and not only in the service: the table is ecosystem-wide and holds the
51
+ * alerts of every project in it, so a `patchAndFetchById` on its own writes across tenants. Both
52
+ * service callers already check ownership before calling, but leaving the isolation as an
53
+ * invariant of the caller means a future one that forgets it writes across projects in silence.
54
+ *
55
+ * With no project in the request — the ecosystem-level routes — the reachable rows are the ones
56
+ * belonging to no project, so the narrowing becomes `IS NULL`. `= NULL` would never match and the
57
+ * patch would silently write nothing.
58
+ */
59
+ static patch(ctx: RequestContext, data: Objection.PartialModelObject<Alert>, id: number): Promise<Alert>;
60
+ }
61
+ //# sourceMappingURL=alert.model.d.ts.map
@@ -0,0 +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,GAAG,IAAI,CAAA;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,OAAO,EA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,EAAE,IAAI,EAAE,SAAS,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM;CAqB9F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=alert.model.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.model.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/modules/ecosystem/alert/alert.model.test.ts"],"names":[],"mappings":""}