@rocketmakers/orbit-capsule-utils 0.18.0 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. package/README.md +3 -49
  2. package/lib/src/bootstrap/boot.d.ts +12 -0
  3. package/lib/src/bootstrap/boot.d.ts.map +1 -0
  4. package/lib/src/bootstrap/boot.js +30 -0
  5. package/lib/src/bootstrap/boot.js.map +1 -0
  6. package/lib/{bootstrap → src/bootstrap}/common.d.ts +4 -4
  7. package/lib/src/bootstrap/common.d.ts.map +1 -0
  8. package/lib/src/bootstrap/common.js +33 -0
  9. package/lib/src/bootstrap/common.js.map +1 -0
  10. package/lib/src/bootstrap/createExpressApp.d.ts +4 -0
  11. package/lib/src/bootstrap/createExpressApp.d.ts.map +1 -0
  12. package/lib/src/bootstrap/createExpressApp.js +36 -0
  13. package/lib/src/bootstrap/createExpressApp.js.map +1 -0
  14. package/lib/{bootstrap → src/bootstrap}/index.d.ts +2 -2
  15. package/lib/src/bootstrap/index.d.ts.map +1 -0
  16. package/lib/{bootstrap → src/bootstrap}/index.js +1 -2
  17. package/lib/src/bootstrap/index.js.map +1 -0
  18. package/lib/src/bootstrap/ioc/container.d.ts +12 -0
  19. package/lib/src/bootstrap/ioc/container.d.ts.map +1 -0
  20. package/lib/src/bootstrap/ioc/container.js +7 -0
  21. package/lib/src/bootstrap/ioc/container.js.map +1 -0
  22. package/lib/src/bootstrap/ioc/index.d.ts +3 -0
  23. package/lib/src/bootstrap/ioc/index.d.ts.map +1 -0
  24. package/lib/src/bootstrap/ioc/index.js +6 -0
  25. package/lib/src/bootstrap/ioc/index.js.map +1 -0
  26. package/lib/src/bootstrap/ioc/register.d.ts +6 -0
  27. package/lib/src/bootstrap/ioc/register.d.ts.map +1 -0
  28. package/lib/src/bootstrap/ioc/register.js +27 -0
  29. package/lib/src/bootstrap/ioc/register.js.map +1 -0
  30. package/lib/src/bootstrap/ioc/tsoaIoc.d.ts +9 -0
  31. package/lib/src/bootstrap/ioc/tsoaIoc.d.ts.map +1 -0
  32. package/lib/src/bootstrap/ioc/tsoaIoc.helper.d.ts +4 -0
  33. package/lib/src/bootstrap/ioc/tsoaIoc.helper.d.ts.map +1 -0
  34. package/lib/src/bootstrap/ioc/tsoaIoc.helper.js +14 -0
  35. package/lib/src/bootstrap/ioc/tsoaIoc.helper.js.map +1 -0
  36. package/lib/src/bootstrap/ioc/tsoaIoc.js +12 -0
  37. package/lib/src/bootstrap/ioc/tsoaIoc.js.map +1 -0
  38. package/lib/src/bootstrap/ioc/types.d.ts +19 -0
  39. package/lib/src/bootstrap/ioc/types.d.ts.map +1 -0
  40. package/lib/{core/dto.js → src/bootstrap/ioc/types.js} +1 -1
  41. package/lib/src/bootstrap/ioc/types.js.map +1 -0
  42. package/lib/{build → src/build}/config.d.ts +1 -0
  43. package/lib/src/build/config.d.ts.map +1 -0
  44. package/lib/{build → src/build}/config.js +0 -0
  45. package/lib/src/build/config.js.map +1 -0
  46. package/lib/src/build/index.d.ts +2 -0
  47. package/lib/src/build/index.d.ts.map +1 -0
  48. package/lib/{build → src/build}/index.js +0 -0
  49. package/lib/src/build/index.js.map +1 -0
  50. package/lib/src/build-docker/copy.d.ts +4 -0
  51. package/lib/src/build-docker/copy.d.ts.map +1 -0
  52. package/lib/src/build-docker/copy.js +69 -0
  53. package/lib/src/build-docker/copy.js.map +1 -0
  54. package/lib/src/config/app.d.ts +37 -0
  55. package/lib/src/config/app.d.ts.map +1 -0
  56. package/lib/src/config/app.js +56 -0
  57. package/lib/src/config/app.js.map +1 -0
  58. package/lib/src/config/environment.generated.d.ts +30 -0
  59. package/lib/src/config/environment.generated.d.ts.map +1 -0
  60. package/lib/src/config/environment.generated.js +120 -0
  61. package/lib/src/config/environment.generated.js.map +1 -0
  62. package/lib/src/config/index.d.ts +2 -0
  63. package/lib/src/config/index.d.ts.map +1 -0
  64. package/lib/{config → src/config}/index.js +0 -0
  65. package/lib/src/config/index.js.map +1 -0
  66. package/lib/{database → src/database}/connectionFactory.d.ts +1 -0
  67. package/lib/src/database/connectionFactory.d.ts.map +1 -0
  68. package/lib/{database → src/database}/connectionFactory.js +3 -4
  69. package/lib/src/database/connectionFactory.js.map +1 -0
  70. package/lib/src/database/dataContext.d.ts +13 -0
  71. package/lib/src/database/dataContext.d.ts.map +1 -0
  72. package/lib/src/database/dataContext.js +35 -0
  73. package/lib/src/database/dataContext.js.map +1 -0
  74. package/lib/src/database/index.d.ts +3 -0
  75. package/lib/src/database/index.d.ts.map +1 -0
  76. package/lib/src/database/index.js +6 -0
  77. package/lib/src/database/index.js.map +1 -0
  78. package/lib/src/index.d.ts +9 -0
  79. package/lib/src/index.d.ts.map +1 -0
  80. package/lib/{index.js → src/index.js} +1 -8
  81. package/lib/src/index.js.map +1 -0
  82. package/lib/{middleware → src/middleware}/errors.d.ts +2 -1
  83. package/lib/src/middleware/errors.d.ts.map +1 -0
  84. package/lib/{middleware → src/middleware}/errors.js +7 -8
  85. package/lib/src/middleware/errors.js.map +1 -0
  86. package/lib/{middleware → src/middleware}/health.d.ts +1 -0
  87. package/lib/src/middleware/health.d.ts.map +1 -0
  88. package/lib/{middleware → src/middleware}/health.js +0 -0
  89. package/lib/src/middleware/health.js.map +1 -0
  90. package/lib/{middleware → src/middleware}/index.d.ts +1 -0
  91. package/lib/src/middleware/index.d.ts.map +1 -0
  92. package/lib/{middleware → src/middleware}/index.js +0 -0
  93. package/lib/src/middleware/index.js.map +1 -0
  94. package/lib/src/rest/health.d.ts +7 -0
  95. package/lib/src/rest/health.d.ts.map +1 -0
  96. package/lib/{controllers → src/rest}/health.js +14 -14
  97. package/lib/src/rest/health.js.map +1 -0
  98. package/lib/src/rest/index.d.ts +2 -0
  99. package/lib/src/rest/index.d.ts.map +1 -0
  100. package/lib/{controllers → src/rest}/index.js +0 -0
  101. package/lib/src/rest/index.js.map +1 -0
  102. package/lib/src/services/identity.d.ts +10 -0
  103. package/lib/src/services/identity.d.ts.map +1 -0
  104. package/lib/{services → src/services}/identity.js +8 -12
  105. package/lib/src/services/identity.js.map +1 -0
  106. package/lib/src/services/index.d.ts +2 -0
  107. package/lib/src/services/index.d.ts.map +1 -0
  108. package/lib/{notify → src/services}/index.js +1 -1
  109. package/lib/src/services/index.js.map +1 -0
  110. package/lib/src/utils/capsules.d.ts +10 -0
  111. package/lib/src/utils/capsules.d.ts.map +1 -0
  112. package/lib/src/utils/capsules.js +27 -0
  113. package/lib/src/utils/capsules.js.map +1 -0
  114. package/lib/src/utils/context.d.ts +10 -0
  115. package/lib/src/utils/context.d.ts.map +1 -0
  116. package/lib/src/utils/context.js +20 -0
  117. package/lib/src/utils/context.js.map +1 -0
  118. package/lib/{utils → src/utils}/httpErrors.d.ts +1 -0
  119. package/lib/src/utils/httpErrors.d.ts.map +1 -0
  120. package/lib/{utils → src/utils}/httpErrors.js +0 -0
  121. package/lib/src/utils/httpErrors.js.map +1 -0
  122. package/lib/src/utils/index.d.ts +6 -0
  123. package/lib/src/utils/index.d.ts.map +1 -0
  124. package/lib/src/utils/index.js +9 -0
  125. package/lib/src/utils/index.js.map +1 -0
  126. package/lib/src/utils/podTypes.d.ts +2 -0
  127. package/lib/src/utils/podTypes.d.ts.map +1 -0
  128. package/lib/{auth/session.js → src/utils/podTypes.js} +1 -1
  129. package/lib/src/utils/podTypes.js.map +1 -0
  130. package/lib/src/utils/repositoryPaths.d.ts +4 -0
  131. package/lib/src/utils/repositoryPaths.d.ts.map +1 -0
  132. package/lib/src/utils/repositoryPaths.js +13 -0
  133. package/lib/src/utils/repositoryPaths.js.map +1 -0
  134. package/lib/tsconfig.tsbuildinfo +8873 -20872
  135. package/package.json +53 -72
  136. package/.npm-version +0 -1
  137. package/check-npm.js +0 -37
  138. package/lib/_tests/assertHelpers/array.d.ts +0 -1
  139. package/lib/_tests/assertHelpers/array.js +0 -22
  140. package/lib/_tests/assertHelpers/array.js.map +0 -1
  141. package/lib/_tests/assertHelpers/authorisation.d.ts +0 -9
  142. package/lib/_tests/assertHelpers/authorisation.js +0 -94
  143. package/lib/_tests/assertHelpers/authorisation.js.map +0 -1
  144. package/lib/_tests/assertHelpers/context.d.ts +0 -3
  145. package/lib/_tests/assertHelpers/context.js +0 -13
  146. package/lib/_tests/assertHelpers/context.js.map +0 -1
  147. package/lib/_tests/assertHelpers/core.d.ts +0 -2
  148. package/lib/_tests/assertHelpers/core.js +0 -39
  149. package/lib/_tests/assertHelpers/core.js.map +0 -1
  150. package/lib/_tests/assertHelpers/string.d.ts +0 -4
  151. package/lib/_tests/assertHelpers/string.js +0 -81
  152. package/lib/_tests/assertHelpers/string.js.map +0 -1
  153. package/lib/_tests/assertHelpers/validation.d.ts +0 -14
  154. package/lib/_tests/assertHelpers/validation.js +0 -60
  155. package/lib/_tests/assertHelpers/validation.js.map +0 -1
  156. package/lib/_tests/common.d.ts +0 -5
  157. package/lib/_tests/common.js +0 -32
  158. package/lib/_tests/common.js.map +0 -1
  159. package/lib/_tests/factories/context.d.ts +0 -43
  160. package/lib/_tests/factories/context.js +0 -142
  161. package/lib/_tests/factories/context.js.map +0 -1
  162. package/lib/_tests/factories/transaction.d.ts +0 -2
  163. package/lib/_tests/factories/transaction.js +0 -8
  164. package/lib/_tests/factories/transaction.js.map +0 -1
  165. package/lib/_tests/services/claims/claims.test.d.ts +0 -1
  166. package/lib/_tests/services/claims/claims.test.js +0 -51
  167. package/lib/_tests/services/claims/claims.test.js.map +0 -1
  168. package/lib/_tests/services/encryption/encryptDecrypt.test.d.ts +0 -1
  169. package/lib/_tests/services/encryption/encryptDecrypt.test.js +0 -104
  170. package/lib/_tests/services/encryption/encryptDecrypt.test.js.map +0 -1
  171. package/lib/_tests/services/encryption/mockedService.d.ts +0 -6
  172. package/lib/_tests/services/encryption/mockedService.js +0 -12
  173. package/lib/_tests/services/encryption/mockedService.js.map +0 -1
  174. package/lib/_tests/tasks/factories/scheduledTask.d.ts +0 -2
  175. package/lib/_tests/tasks/factories/scheduledTask.js +0 -23
  176. package/lib/_tests/tasks/factories/scheduledTask.js.map +0 -1
  177. package/lib/_tests/tasks/factories/task.d.ts +0 -3
  178. package/lib/_tests/tasks/factories/task.js +0 -23
  179. package/lib/_tests/tasks/factories/task.js.map +0 -1
  180. package/lib/_tests/tasks/services/taskService/index.test.d.ts +0 -1
  181. package/lib/_tests/tasks/services/taskService/index.test.js +0 -9
  182. package/lib/_tests/tasks/services/taskService/index.test.js.map +0 -1
  183. package/lib/_tests/tasks/services/taskService/mockedService.d.ts +0 -25
  184. package/lib/_tests/tasks/services/taskService/mockedService.js +0 -60
  185. package/lib/_tests/tasks/services/taskService/mockedService.js.map +0 -1
  186. package/lib/_tests/tasks/services/taskService/process.d.ts +0 -1
  187. package/lib/_tests/tasks/services/taskService/process.js +0 -127
  188. package/lib/_tests/tasks/services/taskService/process.js.map +0 -1
  189. package/lib/_tests/tasks/services/taskService/schedule.d.ts +0 -1
  190. package/lib/_tests/tasks/services/taskService/schedule.js +0 -100
  191. package/lib/_tests/tasks/services/taskService/schedule.js.map +0 -1
  192. package/lib/_tests/tracing/decorators/tracing.test.d.ts +0 -1
  193. package/lib/_tests/tracing/decorators/tracing.test.js +0 -44
  194. package/lib/_tests/tracing/decorators/tracing.test.js.map +0 -1
  195. package/lib/_tests/utils/array.test.d.ts +0 -1
  196. package/lib/_tests/utils/array.test.js +0 -105
  197. package/lib/_tests/utils/array.test.js.map +0 -1
  198. package/lib/_tests/utils/dates.test.d.ts +0 -1
  199. package/lib/_tests/utils/dates.test.js +0 -63
  200. package/lib/_tests/utils/dates.test.js.map +0 -1
  201. package/lib/_tests/utils/errors.d.ts +0 -6
  202. package/lib/_tests/utils/errors.js +0 -30
  203. package/lib/_tests/utils/errors.js.map +0 -1
  204. package/lib/auth/authorisation.d.ts +0 -22
  205. package/lib/auth/authorisation.js +0 -198
  206. package/lib/auth/authorisation.js.map +0 -1
  207. package/lib/auth/claims.d.ts +0 -4
  208. package/lib/auth/claims.js +0 -11
  209. package/lib/auth/claims.js.map +0 -1
  210. package/lib/auth/context.d.ts +0 -23
  211. package/lib/auth/context.js +0 -58
  212. package/lib/auth/context.js.map +0 -1
  213. package/lib/auth/index.d.ts +0 -7
  214. package/lib/auth/index.js +0 -11
  215. package/lib/auth/index.js.map +0 -1
  216. package/lib/auth/interfaces.d.ts +0 -5
  217. package/lib/auth/interfaces.js +0 -3
  218. package/lib/auth/interfaces.js.map +0 -1
  219. package/lib/auth/session.d.ts +0 -15
  220. package/lib/auth/session.js.map +0 -1
  221. package/lib/auth/tokenParser.d.ts +0 -21
  222. package/lib/auth/tokenParser.js +0 -120
  223. package/lib/auth/tokenParser.js.map +0 -1
  224. package/lib/auth/user.d.ts +0 -63
  225. package/lib/auth/user.js +0 -27
  226. package/lib/auth/user.js.map +0 -1
  227. package/lib/bootstrap/boot.d.ts +0 -10
  228. package/lib/bootstrap/boot.js +0 -35
  229. package/lib/bootstrap/boot.js.map +0 -1
  230. package/lib/bootstrap/common.js +0 -59
  231. package/lib/bootstrap/common.js.map +0 -1
  232. package/lib/bootstrap/createExpressApp.d.ts +0 -4
  233. package/lib/bootstrap/createExpressApp.js +0 -70
  234. package/lib/bootstrap/createExpressApp.js.map +0 -1
  235. package/lib/bootstrap/index.js.map +0 -1
  236. package/lib/bootstrap/kernel.d.ts +0 -24
  237. package/lib/bootstrap/kernel.js +0 -76
  238. package/lib/bootstrap/kernel.js.map +0 -1
  239. package/lib/bootstrap/request.d.ts +0 -41
  240. package/lib/bootstrap/request.js +0 -50
  241. package/lib/bootstrap/request.js.map +0 -1
  242. package/lib/build/config.js.map +0 -1
  243. package/lib/build/index.d.ts +0 -1
  244. package/lib/build/index.js.map +0 -1
  245. package/lib/config/app.d.ts +0 -66
  246. package/lib/config/app.js +0 -143
  247. package/lib/config/app.js.map +0 -1
  248. package/lib/config/index.d.ts +0 -1
  249. package/lib/config/index.js.map +0 -1
  250. package/lib/controllers/health.d.ts +0 -7
  251. package/lib/controllers/health.js.map +0 -1
  252. package/lib/controllers/index.d.ts +0 -1
  253. package/lib/controllers/index.js.map +0 -1
  254. package/lib/core/arrays.d.ts +0 -1
  255. package/lib/core/arrays.js +0 -3
  256. package/lib/core/arrays.js.map +0 -1
  257. package/lib/core/dto.d.ts +0 -26
  258. package/lib/core/dto.js.map +0 -1
  259. package/lib/core/errors.d.ts +0 -51
  260. package/lib/core/errors.js +0 -155
  261. package/lib/core/errors.js.map +0 -1
  262. package/lib/core/index.d.ts +0 -7
  263. package/lib/core/index.js +0 -11
  264. package/lib/core/index.js.map +0 -1
  265. package/lib/core/opaqueTypes.d.ts +0 -12
  266. package/lib/core/opaqueTypes.js +0 -8
  267. package/lib/core/opaqueTypes.js.map +0 -1
  268. package/lib/core/pagination.d.ts +0 -32
  269. package/lib/core/pagination.js +0 -66
  270. package/lib/core/pagination.js.map +0 -1
  271. package/lib/core/query.d.ts +0 -21
  272. package/lib/core/query.js +0 -17
  273. package/lib/core/query.js.map +0 -1
  274. package/lib/core/serverError.d.ts +0 -42
  275. package/lib/core/serverError.js +0 -86
  276. package/lib/core/serverError.js.map +0 -1
  277. package/lib/core/types.d.ts +0 -37
  278. package/lib/core/types.js +0 -46
  279. package/lib/core/types.js.map +0 -1
  280. package/lib/database/columns.d.ts +0 -5
  281. package/lib/database/columns.js +0 -14
  282. package/lib/database/columns.js.map +0 -1
  283. package/lib/database/connectionFactory.js.map +0 -1
  284. package/lib/database/dataContext.d.ts +0 -14
  285. package/lib/database/dataContext.js +0 -26
  286. package/lib/database/dataContext.js.map +0 -1
  287. package/lib/database/entities.d.ts +0 -10
  288. package/lib/database/entities.js +0 -29
  289. package/lib/database/entities.js.map +0 -1
  290. package/lib/database/index.d.ts +0 -8
  291. package/lib/database/index.js +0 -12
  292. package/lib/database/index.js.map +0 -1
  293. package/lib/database/query.d.ts +0 -3
  294. package/lib/database/query.js +0 -51
  295. package/lib/database/query.js.map +0 -1
  296. package/lib/database/relationsBuilder.d.ts +0 -6
  297. package/lib/database/relationsBuilder.js +0 -33
  298. package/lib/database/relationsBuilder.js.map +0 -1
  299. package/lib/database/repository.d.ts +0 -32
  300. package/lib/database/repository.js +0 -157
  301. package/lib/database/repository.js.map +0 -1
  302. package/lib/database/select.d.ts +0 -4
  303. package/lib/database/select.js +0 -27
  304. package/lib/database/select.js.map +0 -1
  305. package/lib/database/transformers.d.ts +0 -12
  306. package/lib/database/transformers.js +0 -38
  307. package/lib/database/transformers.js.map +0 -1
  308. package/lib/graphql/GraphqlController.d.ts +0 -12
  309. package/lib/graphql/GraphqlController.js +0 -81
  310. package/lib/graphql/GraphqlController.js.map +0 -1
  311. package/lib/graphql/index.d.ts +0 -4
  312. package/lib/graphql/index.js +0 -8
  313. package/lib/graphql/index.js.map +0 -1
  314. package/lib/graphql/init.d.ts +0 -9
  315. package/lib/graphql/init.js +0 -51
  316. package/lib/graphql/init.js.map +0 -1
  317. package/lib/graphql/registrations.d.ts +0 -7
  318. package/lib/graphql/registrations.js +0 -16
  319. package/lib/graphql/registrations.js.map +0 -1
  320. package/lib/graphql/types/InputTypes/index.d.ts +0 -2
  321. package/lib/graphql/types/InputTypes/index.js +0 -6
  322. package/lib/graphql/types/InputTypes/index.js.map +0 -1
  323. package/lib/graphql/types/InputTypes/paging.d.ts +0 -5
  324. package/lib/graphql/types/InputTypes/paging.js +0 -20
  325. package/lib/graphql/types/InputTypes/paging.js.map +0 -1
  326. package/lib/graphql/types/InputTypes/query.d.ts +0 -7
  327. package/lib/graphql/types/InputTypes/query.js +0 -36
  328. package/lib/graphql/types/InputTypes/query.js.map +0 -1
  329. package/lib/graphql/types/ObjectTypes/index.d.ts +0 -2
  330. package/lib/graphql/types/ObjectTypes/index.js +0 -6
  331. package/lib/graphql/types/ObjectTypes/index.js.map +0 -1
  332. package/lib/graphql/types/ObjectTypes/paging.d.ts +0 -6
  333. package/lib/graphql/types/ObjectTypes/paging.js +0 -24
  334. package/lib/graphql/types/ObjectTypes/paging.js.map +0 -1
  335. package/lib/graphql/types/ObjectTypes/user.d.ts +0 -26
  336. package/lib/graphql/types/ObjectTypes/user.js +0 -114
  337. package/lib/graphql/types/ObjectTypes/user.js.map +0 -1
  338. package/lib/graphql/types/index.d.ts +0 -2
  339. package/lib/graphql/types/index.js +0 -6
  340. package/lib/graphql/types/index.js.map +0 -1
  341. package/lib/index.d.ts +0 -15
  342. package/lib/index.js.map +0 -1
  343. package/lib/middleware/errors.js.map +0 -1
  344. package/lib/middleware/health.js.map +0 -1
  345. package/lib/middleware/index.js.map +0 -1
  346. package/lib/notify/decorator.d.ts +0 -6
  347. package/lib/notify/decorator.js +0 -8
  348. package/lib/notify/decorator.js.map +0 -1
  349. package/lib/notify/index.d.ts +0 -1
  350. package/lib/notify/index.js.map +0 -1
  351. package/lib/public/api-clients/auditClientApi.d.ts +0 -165
  352. package/lib/public/api-clients/auditClientApi.js +0 -255
  353. package/lib/public/api-clients/auditClientApi.js.map +0 -1
  354. package/lib/public/api-clients/authClientApi.d.ts +0 -585
  355. package/lib/public/api-clients/authClientApi.js +0 -555
  356. package/lib/public/api-clients/authClientApi.js.map +0 -1
  357. package/lib/public/api-clients/notifyClientApi.d.ts +0 -435
  358. package/lib/public/api-clients/notifyClientApi.js +0 -386
  359. package/lib/public/api-clients/notifyClientApi.js.map +0 -1
  360. package/lib/public/api-clients/storageClientApi.d.ts +0 -345
  361. package/lib/public/api-clients/storageClientApi.js +0 -340
  362. package/lib/public/api-clients/storageClientApi.js.map +0 -1
  363. package/lib/services/client.d.ts +0 -2
  364. package/lib/services/client.js +0 -38
  365. package/lib/services/client.js.map +0 -1
  366. package/lib/services/encryption.d.ts +0 -20
  367. package/lib/services/encryption.js +0 -74
  368. package/lib/services/encryption.js.map +0 -1
  369. package/lib/services/identity.d.ts +0 -7
  370. package/lib/services/identity.js.map +0 -1
  371. package/lib/services/index.d.ts +0 -8
  372. package/lib/services/index.js +0 -12
  373. package/lib/services/index.js.map +0 -1
  374. package/lib/services/jsonSchema.d.ts +0 -7
  375. package/lib/services/jsonSchema.js +0 -22
  376. package/lib/services/jsonSchema.js.map +0 -1
  377. package/lib/services/time.d.ts +0 -21
  378. package/lib/services/time.js +0 -20
  379. package/lib/services/time.js.map +0 -1
  380. package/lib/services/token.d.ts +0 -5
  381. package/lib/services/token.js +0 -17
  382. package/lib/services/token.js.map +0 -1
  383. package/lib/services/transaction.d.ts +0 -7
  384. package/lib/services/transaction.js +0 -11
  385. package/lib/services/transaction.js.map +0 -1
  386. package/lib/services/uuidGenerator.d.ts +0 -7
  387. package/lib/services/uuidGenerator.js +0 -11
  388. package/lib/services/uuidGenerator.js.map +0 -1
  389. package/lib/tasks/configTypes.d.ts +0 -3
  390. package/lib/tasks/configTypes.js +0 -3
  391. package/lib/tasks/configTypes.js.map +0 -1
  392. package/lib/tasks/data/ScheduledTaskRepository.d.ts +0 -14
  393. package/lib/tasks/data/ScheduledTaskRepository.js +0 -64
  394. package/lib/tasks/data/ScheduledTaskRepository.js.map +0 -1
  395. package/lib/tasks/data/TaskRepository.d.ts +0 -17
  396. package/lib/tasks/data/TaskRepository.js +0 -69
  397. package/lib/tasks/data/TaskRepository.js.map +0 -1
  398. package/lib/tasks/data/entities/ScheduledTask.d.ts +0 -10
  399. package/lib/tasks/data/entities/ScheduledTask.js +0 -33
  400. package/lib/tasks/data/entities/ScheduledTask.js.map +0 -1
  401. package/lib/tasks/data/entities/Task.d.ts +0 -13
  402. package/lib/tasks/data/entities/Task.js +0 -46
  403. package/lib/tasks/data/entities/Task.js.map +0 -1
  404. package/lib/tasks/data/repositories.d.ts +0 -18
  405. package/lib/tasks/data/repositories.js +0 -3
  406. package/lib/tasks/data/repositories.js.map +0 -1
  407. package/lib/tasks/data/types/opaqueTypes.d.ts +0 -3
  408. package/lib/tasks/data/types/opaqueTypes.js +0 -3
  409. package/lib/tasks/data/types/opaqueTypes.js.map +0 -1
  410. package/lib/tasks/data/types/scheduledTaskTypes.d.ts +0 -11
  411. package/lib/tasks/data/types/scheduledTaskTypes.js +0 -3
  412. package/lib/tasks/data/types/scheduledTaskTypes.js.map +0 -1
  413. package/lib/tasks/data/types/taskTypes.d.ts +0 -18
  414. package/lib/tasks/data/types/taskTypes.js +0 -10
  415. package/lib/tasks/data/types/taskTypes.js.map +0 -1
  416. package/lib/tasks/index.d.ts +0 -3
  417. package/lib/tasks/index.js +0 -7
  418. package/lib/tasks/index.js.map +0 -1
  419. package/lib/tasks/services/TaskService.d.ts +0 -19
  420. package/lib/tasks/services/TaskService.js +0 -107
  421. package/lib/tasks/services/TaskService.js.map +0 -1
  422. package/lib/tasks/services/index.d.ts +0 -16
  423. package/lib/tasks/services/index.js +0 -3
  424. package/lib/tasks/services/index.js.map +0 -1
  425. package/lib/tasks/validators/index.d.ts +0 -2
  426. package/lib/tasks/validators/index.js +0 -6
  427. package/lib/tasks/validators/index.js.map +0 -1
  428. package/lib/tasks/validators/scheduledTaskValidators.d.ts +0 -5
  429. package/lib/tasks/validators/scheduledTaskValidators.js +0 -12
  430. package/lib/tasks/validators/scheduledTaskValidators.js.map +0 -1
  431. package/lib/tasks/validators/taskValidators.d.ts +0 -5
  432. package/lib/tasks/validators/taskValidators.js +0 -15
  433. package/lib/tasks/validators/taskValidators.js.map +0 -1
  434. package/lib/tracing/decorator.d.ts +0 -19
  435. package/lib/tracing/decorator.js +0 -101
  436. package/lib/tracing/decorator.js.map +0 -1
  437. package/lib/tracing/index.d.ts +0 -3
  438. package/lib/tracing/index.js +0 -7
  439. package/lib/tracing/index.js.map +0 -1
  440. package/lib/tracing/init.d.ts +0 -4
  441. package/lib/tracing/init.js +0 -24
  442. package/lib/tracing/init.js.map +0 -1
  443. package/lib/tracing/middleware.d.ts +0 -3
  444. package/lib/tracing/middleware.js +0 -15
  445. package/lib/tracing/middleware.js.map +0 -1
  446. package/lib/utils/array.d.ts +0 -1
  447. package/lib/utils/array.js +0 -19
  448. package/lib/utils/array.js.map +0 -1
  449. package/lib/utils/base64.d.ts +0 -1
  450. package/lib/utils/base64.js +0 -12
  451. package/lib/utils/base64.js.map +0 -1
  452. package/lib/utils/context.d.ts +0 -16
  453. package/lib/utils/context.js +0 -21
  454. package/lib/utils/context.js.map +0 -1
  455. package/lib/utils/dates.d.ts +0 -12
  456. package/lib/utils/dates.js +0 -46
  457. package/lib/utils/dates.js.map +0 -1
  458. package/lib/utils/errors.d.ts +0 -4
  459. package/lib/utils/errors.js +0 -24
  460. package/lib/utils/errors.js.map +0 -1
  461. package/lib/utils/httpErrors.js.map +0 -1
  462. package/lib/utils/index.d.ts +0 -10
  463. package/lib/utils/index.js +0 -14
  464. package/lib/utils/index.js.map +0 -1
  465. package/lib/utils/number.d.ts +0 -4
  466. package/lib/utils/number.js +0 -21
  467. package/lib/utils/number.js.map +0 -1
  468. package/lib/utils/object.d.ts +0 -6
  469. package/lib/utils/object.js +0 -40
  470. package/lib/utils/object.js.map +0 -1
  471. package/lib/utils/random.d.ts +0 -13
  472. package/lib/utils/random.js +0 -41
  473. package/lib/utils/random.js.map +0 -1
  474. package/lib/utils/string.d.ts +0 -3
  475. package/lib/utils/string.js +0 -32
  476. package/lib/utils/string.js.map +0 -1
  477. package/lib/validation/index.d.ts +0 -1
  478. package/lib/validation/index.js +0 -5
  479. package/lib/validation/index.js.map +0 -1
  480. package/lib/validation/validators.d.ts +0 -32
  481. package/lib/validation/validators.js +0 -158
  482. package/lib/validation/validators.js.map +0 -1
  483. package/tsconfig.json +0 -35
@@ -1,435 +0,0 @@
1
- export declare const UnknownServerErrorAppCode = "UnknownServerError";
2
- export declare abstract class ApiErrorBase<TAppCode extends string = string> extends Error {
3
- appCode: TAppCode;
4
- developerMessage?: string | undefined;
5
- constructor(appCode: TAppCode, message: string, developerMessage?: string | undefined);
6
- }
7
- export interface IErrorRegistration<TError extends {
8
- appCode: string;
9
- }, TData> {
10
- appCode: string;
11
- status: number;
12
- toJson: (e: TError) => TData;
13
- fromJson: (d: TData) => TError;
14
- }
15
- export declare class ApiError {
16
- static errors: IErrorRegistration<any, any>[];
17
- static registerCore(): void;
18
- static isApiError(testError: any): testError is ApiErrorBase<any>;
19
- static register<TErrorConstructor extends new (...args: any[]) => {
20
- appCode: string;
21
- developerMessage?: string;
22
- }>(_error: TErrorConstructor, status: number): {
23
- transit<TKeys extends Exclude<keyof InstanceType<TErrorConstructor>, "developerMessage" | "appCode">>(...keys: TKeys[]): {
24
- recreate(fromJson: (d: Pick<InstanceType<TErrorConstructor>, TKeys>) => InstanceType<TErrorConstructor>): ClassDecorator;
25
- };
26
- };
27
- static createApiError(data: any): any;
28
- }
29
- export declare class UnknownServerError extends ApiErrorBase<typeof UnknownServerErrorAppCode> {
30
- data: any;
31
- constructor(data: any, developerMessage?: string);
32
- }
33
- export declare class UnauthorisedError extends ApiErrorBase<'UnauthorisedError'> {
34
- constructor(message: string, developerMessage?: string);
35
- }
36
- export declare class RequestEntityTooLargeError extends ApiErrorBase<'RequestEntityTooLargeError'> {
37
- expected: number;
38
- length: number;
39
- limit: number;
40
- constructor(message: string, expected: number, length: number, limit: number);
41
- }
42
- export declare class NotFoundError extends ApiErrorBase<'NotFoundError'> {
43
- constructor(message: string, developerMessage?: string);
44
- }
45
- export declare class BadRequestError extends ApiErrorBase<'BadRequestError'> {
46
- constructor(message: string, developerMessage?: string);
47
- }
48
- export declare class ForbiddenError extends ApiErrorBase<'ForbiddenError'> {
49
- constructor(message: string, developerMessage?: string);
50
- }
51
- export interface IValidationErrorMessages {
52
- developer: string;
53
- friendly?: string;
54
- }
55
- export interface IValidationErrorDetail {
56
- attribute?: string;
57
- path: string;
58
- value: any;
59
- messages: IValidationErrorMessages;
60
- }
61
- export declare class ValidationError extends ApiErrorBase<'ValidationError'> {
62
- errors: IValidationErrorDetail[];
63
- constructor(errors: IValidationErrorDetail[], developerMessage?: string);
64
- }
65
- export declare class ConfigurationError extends ApiErrorBase<'ConfigurationError'> {
66
- constructor(message: string, developerMessage?: string);
67
- }
68
- export declare class ConflictError extends ApiErrorBase<'ConflictError'> {
69
- constructor(message: string, developerMessage?: string);
70
- }
71
- export declare class ArgumentError extends ApiErrorBase<'ArgumentError'> {
72
- parameter: string;
73
- constructor(parameter: string, developerMessage?: string);
74
- }
75
- export declare type OrbitError = UnknownServerError | UnauthorisedError | RequestEntityTooLargeError | NotFoundError | BadRequestError | ForbiddenError | ValidationError | ConfigurationError | ConflictError | ArgumentError;
76
- export declare enum NotifyTargetType {
77
- anonymous = "anonymous",
78
- user = "user"
79
- }
80
- export declare enum UserType {
81
- anonymous = "anonymous",
82
- user = "user",
83
- system = "system"
84
- }
85
- export interface IJsonSchema {
86
- }
87
- export interface INotificationDefinitionRegistration {
88
- name: string;
89
- ignorable: boolean;
90
- payloadSchema: IJsonSchema;
91
- groupTag?: string;
92
- }
93
- export interface IServiceRegistration {
94
- name: string;
95
- definitions: INotificationDefinitionRegistration[];
96
- }
97
- export interface IServiceRegistrationResult {
98
- isSuccessful: boolean;
99
- errors: string[];
100
- }
101
- export declare type NotificationDefinitionId = OpaqueString<'NotificationDefinitionId'>;
102
- export declare type OpaqueString<Key extends string> = string & {
103
- __opaque: Key;
104
- };
105
- export declare type ServiceId = OpaqueString<'ServiceId'>;
106
- export interface INotificationDefinition extends IIdentifiable<NotificationDefinitionId> {
107
- serviceId: ServiceId;
108
- name: string;
109
- payloadSchema: IJsonSchema;
110
- ignorable: boolean;
111
- isLegacy: boolean;
112
- groupTag?: string;
113
- }
114
- export interface IIdentifiable<TId> {
115
- id: TId;
116
- }
117
- export interface IQueryNotificationDefinitions extends IPagination, IQuery<INotificationDefinition> {
118
- }
119
- export interface IPagination {
120
- page?: string;
121
- pageSize?: number;
122
- }
123
- export declare enum QueryOperator {
124
- between = "between",
125
- equals = "equals",
126
- like = "like",
127
- lessThanOrEqual = "lessThanOrEqual",
128
- greaterThanOrEqual = "greaterThanOrEqual",
129
- not = "not",
130
- in = "in",
131
- isNull = "isNull",
132
- lessThan = "lessThan",
133
- greaterThan = "greaterThan"
134
- }
135
- export interface IQueryWhere<T> {
136
- key: keyof T;
137
- operator: QueryOperator;
138
- valueOne: any;
139
- valueTwo?: any;
140
- }
141
- export interface IQuery<T> {
142
- where?: IQueryWhere<T>[];
143
- }
144
- export interface ICreateService {
145
- name: string;
146
- }
147
- export declare type IService = DtoOf<ICreateService, ServiceId>;
148
- export interface IByAnon {
149
- type: UserType.anonymous;
150
- }
151
- export declare type UserId = OpaqueString<'UserId'>;
152
- export interface IBySystem {
153
- type: UserType.system;
154
- userId?: UserId;
155
- }
156
- export interface IByUser {
157
- type: UserType.user;
158
- userId: UserId;
159
- impersonator?: UserId;
160
- }
161
- export interface IByUnknown {
162
- type: 'unknown';
163
- }
164
- export declare type IByWho = IByAnon | IBySystem | IByUser | IByUnknown;
165
- export interface IUpdatable extends IUpdatedOn {
166
- updatedBy: IByWho;
167
- }
168
- export declare type DateTimeString = OpaqueString<'DateTime'>;
169
- export interface IUpdatedOn {
170
- updatedOn: DateTimeString;
171
- }
172
- export interface ICreatable extends ICreatedOn {
173
- createdBy: IByWho;
174
- }
175
- export interface ICreatedOn {
176
- createdOn: DateTimeString;
177
- }
178
- export declare type DtoOf<TCreate, TId> = TCreate & IUpdatable & ICreatable & IIdentifiable<TId>;
179
- export interface ISearchResponsePaging {
180
- current: string;
181
- previous?: string;
182
- next?: string;
183
- }
184
- export interface ISearchResponse<T> {
185
- paging?: ISearchResponsePaging;
186
- items: T[];
187
- itemCount: number;
188
- }
189
- export interface IUserNotifyTarget {
190
- type: NotifyTargetType.user;
191
- }
192
- export interface IAnonymousNotifyTargets extends INotifyTargets {
193
- type: NotifyTargetType.anonymous;
194
- }
195
- export interface INotifyEmailTargets {
196
- to: string;
197
- cc?: string[];
198
- bcc?: string[];
199
- }
200
- export interface INotifyTargets {
201
- emails?: INotifyEmailTargets;
202
- firebaseDeviceTokens?: string[];
203
- smsAddresses?: string[];
204
- }
205
- export declare type NotifyTarget = IUserNotifyTarget | IAnonymousNotifyTargets;
206
- export interface INotifyPayload {
207
- }
208
- export interface INotifyData {
209
- serviceName: string;
210
- definitionName: string;
211
- targets: NotifyTarget;
212
- payload: INotifyPayload;
213
- }
214
- export declare enum ChannelName {
215
- SendGrid = "SendGrid",
216
- Firebase = "Firebase",
217
- TwilioSMS = "TwilioSMS"
218
- }
219
- export interface INotifyChannelResult {
220
- channelName: ChannelName;
221
- message?: string;
222
- }
223
- export interface INotifyResult {
224
- successfulChannels: ChannelName[];
225
- unsuccessfulChannels: INotifyChannelResult[];
226
- }
227
- export declare type NotificationId = OpaqueString<'NotificationId'>;
228
- export declare type ContactId = OpaqueString<'ContactId'>;
229
- export declare enum ContactKind {
230
- Email = "Email",
231
- FirebaseDeviceToken = "FirebaseDeviceToken",
232
- SMS = "SMS"
233
- }
234
- export interface IContact extends IIdentifiable<ContactId> {
235
- userId: UserId;
236
- kind: ContactKind;
237
- contact: string;
238
- description?: string;
239
- isPrimary: boolean;
240
- }
241
- export interface IGetAllQueryParams {
242
- kind?: ContactKind;
243
- }
244
- export interface IGetByContactQueryParams {
245
- contact: string;
246
- kind?: ContactKind;
247
- }
248
- export declare type ICreateContact = Omit<IContact, 'id'>;
249
- export declare type IExternalCreateContact = Omit<ICreateContact, 'userId'>;
250
- export interface ISendGridConfiguration {
251
- type: ChannelName.SendGrid;
252
- apiToken: string;
253
- fromAddress: string;
254
- }
255
- export interface IFirebaseConfiguration {
256
- type: ChannelName.Firebase;
257
- serviceAccount: string;
258
- }
259
- export declare type TwilioAccountSid = OpaqueString<'TwilioAccountSid'>;
260
- export declare type TwilioAuthToken = OpaqueString<'TwilioAuthToken'>;
261
- export interface ITwilioSMSConfiguration {
262
- type: ChannelName.TwilioSMS;
263
- accountSid: TwilioAccountSid;
264
- authToken: TwilioAuthToken;
265
- defaultFromAddress: string;
266
- testToAddress: string;
267
- messagingServiceSid?: string;
268
- }
269
- export declare type ChannelConfiguration = ISendGridConfiguration | IFirebaseConfiguration | ITwilioSMSConfiguration;
270
- export interface INotification {
271
- id: NotificationId;
272
- serviceName: string;
273
- notificationDefinitionName: string;
274
- userId?: UserId;
275
- targets: NotifyTarget;
276
- payload?: INotifyPayload;
277
- createdOn: DateTimeString;
278
- }
279
- export declare type NotificationStatusId = OpaqueString<'NotificationStatusId'>;
280
- export declare enum NotificationStatusState {
281
- Pending = "Pending",
282
- Sending = "Sending",
283
- Sent = "Sent",
284
- Failed = "Failed"
285
- }
286
- export interface INotificationStatus {
287
- id: NotificationStatusId;
288
- notificationId: NotificationId;
289
- channelName: string;
290
- state: NotificationStatusState;
291
- errorDetails?: string;
292
- }
293
- export declare type ChannelNotificationDefinitionId = OpaqueString<'ChannelNotificationDefinitionId'>;
294
- export declare type ChannelId = OpaqueString<'ChannelId'>;
295
- export interface IChannelNotificationDefinition extends IIdentifiable<ChannelNotificationDefinitionId> {
296
- channelId: ChannelId;
297
- notificationDefinitionId: NotificationDefinitionId;
298
- isEnabled: boolean;
299
- }
300
- export declare type SendGridTemplateId = OpaqueString<'SendGridTemplateId'>;
301
- export declare type SendGridTransactionalTemplateId = OpaqueString<'SendGridTransactionalTemplateId'>;
302
- export interface ISendGridTemplate extends IIdentifiable<SendGridTemplateId> {
303
- channelNotificationDefinitionId: ChannelNotificationDefinitionId;
304
- templateId: SendGridTransactionalTemplateId;
305
- }
306
- export declare type FirebaseTemplateId = OpaqueString<'FirebaseTemplateId'>;
307
- export interface IFirebaseTemplate extends IIdentifiable<FirebaseTemplateId> {
308
- channelNotificationDefinitionId: ChannelNotificationDefinitionId;
309
- title?: string;
310
- body?: string;
311
- imageUrl?: string;
312
- payload?: string;
313
- }
314
- export declare type TwilioSMSTemplateId = OpaqueString<'TwilioSMSTemplateId'>;
315
- export interface ITwilioSMSTemplate extends IIdentifiable<TwilioSMSTemplateId> {
316
- channelNotificationDefinitionId: ChannelNotificationDefinitionId;
317
- body?: string;
318
- samplePayload?: string;
319
- }
320
- export interface IChannelNotificationDefinitionWithTemplatesDefinitions extends IChannelNotificationDefinition {
321
- sendGridTemplate?: ISendGridTemplate;
322
- firebaseTemplate?: IFirebaseTemplate;
323
- twilioSMSTemplate?: ITwilioSMSTemplate;
324
- notificationDefinition: INotificationDefinition;
325
- }
326
- export declare type IUpdateFirebaseTemplate = Omit<IFirebaseTemplate, 'id' | 'channelNotificationDefinitionId'>;
327
- export declare type IExternalUpdateFirebaseTemplate = Omit<IUpdateFirebaseTemplate, 'payload'>;
328
- export declare type IUpdateTwilioSMSTemplate = Omit<ITwilioSMSTemplate, 'id' | 'channelNotificationDefinitionId'>;
329
- export declare type IExternalUpdateTwilioSMSTemplate = Omit<IUpdateTwilioSMSTemplate, 'samplePayload'>;
330
- export interface HeaderMap {
331
- [k: string]: string;
332
- }
333
- export interface IFetcher {
334
- request<T>(url: string, verb: string, contentType: string, body?: any, headers?: HeaderMap): Promise<T>;
335
- buildQueryString(query?: any): string;
336
- requestValidate?(routeUniqueName: string, paramValues: {
337
- body?: any;
338
- params?: any;
339
- query?: any;
340
- }): Promise<void>;
341
- }
342
- export declare class Qs {
343
- private static buildQueryStringKeyValueItem;
344
- static buildQueryStringKeyValue(key: string, value: any): string;
345
- static buildQueryString(query?: any, buildQueryStringValue?: (key: string, value: any) => string): string;
346
- }
347
- export declare function optionalParam(parameter: any, key: string): string;
348
- export declare class TransactionalHealthController {
349
- private fetcher;
350
- constructor(fetcher: IFetcher);
351
- health: (headers?: HeaderMap | undefined) => Promise<void>;
352
- }
353
- export declare class HealthController {
354
- private fetcher;
355
- constructor(fetcher: IFetcher);
356
- health: (headers?: HeaderMap | undefined) => Promise<void>;
357
- }
358
- export declare class ServiceController {
359
- private fetcher;
360
- constructor(fetcher: IFetcher);
361
- register: (body: IServiceRegistration, headers?: HeaderMap | undefined) => Promise<IServiceRegistrationResult>;
362
- }
363
- export declare class NotificationDefinitionController {
364
- private fetcher;
365
- constructor(fetcher: IFetcher);
366
- search: (body: IQueryNotificationDefinitions, query?: IPagination | undefined, headers?: HeaderMap | undefined) => Promise<ISearchResponse<INotificationDefinition & {
367
- service: IService;
368
- }>>;
369
- notify: (body: INotifyData, headers?: HeaderMap | undefined) => Promise<INotifyResult>;
370
- resendNotification: (params: {
371
- id: NotificationId;
372
- }, headers?: HeaderMap | undefined) => Promise<INotifyResult>;
373
- }
374
- export declare class ContactController {
375
- private fetcher;
376
- constructor(fetcher: IFetcher);
377
- getAll: (params: IGetAllQueryParams, headers?: HeaderMap | undefined) => Promise<IContact[]>;
378
- getByContact: (params: IGetByContactQueryParams, headers?: HeaderMap | undefined) => Promise<IContact[]>;
379
- add: (body: IExternalCreateContact, headers?: HeaderMap | undefined) => Promise<IContact>;
380
- deleteAll: (headers?: HeaderMap | undefined) => Promise<boolean>;
381
- }
382
- export declare class InitialisationController {
383
- private fetcher;
384
- constructor(fetcher: IFetcher);
385
- initialiseChannel: (body: ChannelConfiguration, params: {
386
- channelName: ChannelName;
387
- }, headers?: HeaderMap | undefined) => Promise<void>;
388
- }
389
- export declare class NotificationController {
390
- private fetcher;
391
- constructor(fetcher: IFetcher);
392
- search: (body: IQuery<INotification>, query?: IPagination | undefined, headers?: HeaderMap | undefined) => Promise<ISearchResponse<INotification>>;
393
- getStatuses: (params: {
394
- notificationId: NotificationId;
395
- }, headers?: HeaderMap | undefined) => Promise<INotificationStatus[]>;
396
- }
397
- export declare class ChannelNotificationDefinitionController {
398
- private fetcher;
399
- constructor(fetcher: IFetcher);
400
- getAll: (body: IQuery<IChannelNotificationDefinition>, query?: IPagination | undefined, headers?: HeaderMap | undefined) => Promise<ISearchResponse<IChannelNotificationDefinitionWithTemplatesDefinitions>>;
401
- enable: (params: {
402
- id: ChannelNotificationDefinitionId;
403
- }, headers?: HeaderMap | undefined) => Promise<IChannelNotificationDefinition>;
404
- disable: (params: {
405
- id: ChannelNotificationDefinitionId;
406
- }, headers?: HeaderMap | undefined) => Promise<IChannelNotificationDefinition>;
407
- }
408
- export declare class FirebaseController {
409
- private fetcher;
410
- constructor(fetcher: IFetcher);
411
- updateTemplate: (body: IExternalUpdateFirebaseTemplate, params: {
412
- id: FirebaseTemplateId;
413
- }, headers?: HeaderMap | undefined) => Promise<IFirebaseTemplate | undefined>;
414
- }
415
- export declare class TwilioSMSController {
416
- private fetcher;
417
- constructor(fetcher: IFetcher);
418
- updateTemplate: (body: IExternalUpdateTwilioSMSTemplate, params: {
419
- id: TwilioSMSTemplateId;
420
- }, headers?: HeaderMap | undefined) => Promise<ITwilioSMSTemplate | undefined>;
421
- }
422
- export declare class ApiClient {
423
- private fetcher;
424
- constructor(fetcher: IFetcher);
425
- transactionalHealth: TransactionalHealthController;
426
- health: HealthController;
427
- service: ServiceController;
428
- notificationDefinition: NotificationDefinitionController;
429
- contact: ContactController;
430
- initialisation: InitialisationController;
431
- notification: NotificationController;
432
- channelNotificationDefinition: ChannelNotificationDefinitionController;
433
- firebase: FirebaseController;
434
- twilioSMS: TwilioSMSController;
435
- }