@degenerate/endpoints 0.0.5 → 0.0.7

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 (214) hide show
  1. package/dist/cors/authority/audience/get-set-audiences.d.ts.map +1 -0
  2. package/dist/cors/authority/jwt/validate-jwt-authorities.d.ts.map +1 -0
  3. package/dist/{endpoints/src/cors → cors}/authority/jwt/validate-jwt-authorities.js +2 -3
  4. package/dist/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +1 -0
  5. package/dist/cors/endpoints/helpers/validate-request-body.d.ts.map +1 -0
  6. package/dist/cors/errors/all-error-handler.d.ts.map +1 -0
  7. package/dist/cors/errors/bad-request-handler.d.ts.map +1 -0
  8. package/dist/cors/errors/unauthorized-handler.d.ts.map +1 -0
  9. package/dist/cors/index.d.ts.map +1 -0
  10. package/dist/cors/routes/authorities.routes.d.ts.map +1 -0
  11. package/dist/{endpoints/src/cors → cors}/routes/authorities.routes.js +2 -2
  12. package/dist/cors/routes/events.routes.d.ts.map +1 -0
  13. package/dist/cors/routes/functions.routes.d.ts.map +1 -0
  14. package/dist/cors/routes/rules.routes.d.ts.map +1 -0
  15. package/dist/cors/routes/share-data.routes.d.ts.map +1 -0
  16. package/dist/examples/express-server/app.d.ts.map +1 -0
  17. package/dist/{endpoints/src/examples → examples}/express-server/app.js +2 -2
  18. package/dist/examples/express-server/server.d.ts.map +1 -0
  19. package/dist/{endpoints/src/index.d.ts.map → index.d.ts.map} +1 -1
  20. package/package.json +2 -2
  21. package/dist/endpoints/src/cors/authority/audience/get-set-audiences.d.ts.map +0 -1
  22. package/dist/endpoints/src/cors/authority/jwt/validate-jwt-authorities.d.ts.map +0 -1
  23. package/dist/endpoints/src/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +0 -1
  24. package/dist/endpoints/src/cors/endpoints/helpers/validate-request-body.d.ts.map +0 -1
  25. package/dist/endpoints/src/cors/errors/all-error-handler.d.ts.map +0 -1
  26. package/dist/endpoints/src/cors/errors/bad-request-handler.d.ts.map +0 -1
  27. package/dist/endpoints/src/cors/errors/unauthorized-handler.d.ts.map +0 -1
  28. package/dist/endpoints/src/cors/index.d.ts.map +0 -1
  29. package/dist/endpoints/src/cors/routes/authorities.routes.d.ts.map +0 -1
  30. package/dist/endpoints/src/cors/routes/events.routes.d.ts.map +0 -1
  31. package/dist/endpoints/src/cors/routes/functions.routes.d.ts.map +0 -1
  32. package/dist/endpoints/src/cors/routes/rules.routes.d.ts.map +0 -1
  33. package/dist/endpoints/src/cors/routes/share-data.routes.d.ts.map +0 -1
  34. package/dist/endpoints/src/examples/express-server/app.d.ts.map +0 -1
  35. package/dist/endpoints/src/examples/express-server/server.d.ts.map +0 -1
  36. package/dist/generic/src/_settings/authorization-settings.d.ts +0 -17
  37. package/dist/generic/src/_settings/authorization-settings.d.ts.map +0 -1
  38. package/dist/generic/src/_settings/authorization-settings.js +0 -20
  39. package/dist/generic/src/authorization/index.d.ts +0 -24
  40. package/dist/generic/src/authorization/index.d.ts.map +0 -1
  41. package/dist/generic/src/authorization/index.js +0 -61
  42. package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.d.ts +0 -9
  43. package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.d.ts.map +0 -1
  44. package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.js +0 -25
  45. package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.d.ts +0 -9
  46. package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.d.ts.map +0 -1
  47. package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.js +0 -24
  48. package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.d.ts +0 -10
  49. package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.d.ts.map +0 -1
  50. package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.js +0 -26
  51. package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.d.ts +0 -12
  52. package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.d.ts.map +0 -1
  53. package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.js +0 -19
  54. package/dist/generic/src/authorization/jwt/sign/create-jwt-options.d.ts +0 -17
  55. package/dist/generic/src/authorization/jwt/sign/create-jwt-options.d.ts.map +0 -1
  56. package/dist/generic/src/authorization/jwt/sign/create-jwt-options.js +0 -43
  57. package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.d.ts +0 -13
  58. package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.d.ts.map +0 -1
  59. package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.js +0 -22
  60. package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.d.ts +0 -10
  61. package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.d.ts.map +0 -1
  62. package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.js +0 -31
  63. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.d.ts +0 -10
  64. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.d.ts.map +0 -1
  65. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.js +0 -20
  66. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.d.ts +0 -9
  67. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.d.ts.map +0 -1
  68. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.js +0 -17
  69. package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.d.ts +0 -12
  70. package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.d.ts.map +0 -1
  71. package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.js +0 -34
  72. package/dist/generic/src/authorization/safe/authorization/authorized-authorities.d.ts +0 -42
  73. package/dist/generic/src/authorization/safe/authorization/authorized-authorities.d.ts.map +0 -1
  74. package/dist/generic/src/authorization/safe/authorization/authorized-authorities.js +0 -65
  75. package/dist/generic/src/authorization/safe/request/decode-bearer-token.d.ts +0 -11
  76. package/dist/generic/src/authorization/safe/request/decode-bearer-token.d.ts.map +0 -1
  77. package/dist/generic/src/authorization/safe/request/decode-bearer-token.js +0 -31
  78. package/dist/generic/src/authorization/safe/request/decode-safe-request.d.ts +0 -11
  79. package/dist/generic/src/authorization/safe/request/decode-safe-request.d.ts.map +0 -1
  80. package/dist/generic/src/authorization/safe/request/decode-safe-request.js +0 -30
  81. package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.d.ts +0 -10
  82. package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.d.ts.map +0 -1
  83. package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.js +0 -29
  84. package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts +0 -12
  85. package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +0 -1
  86. package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.js +0 -30
  87. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.d.ts +0 -10
  88. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.d.ts.map +0 -1
  89. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.js +0 -24
  90. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.d.ts +0 -8
  91. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.d.ts.map +0 -1
  92. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.js +0 -23
  93. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.d.ts +0 -9
  94. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.d.ts.map +0 -1
  95. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.js +0 -24
  96. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts +0 -10
  97. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +0 -1
  98. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.js +0 -25
  99. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.d.ts +0 -8
  100. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.d.ts.map +0 -1
  101. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.js +0 -23
  102. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts +0 -10
  103. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +0 -1
  104. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.js +0 -22
  105. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.d.ts +0 -9
  106. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.d.ts.map +0 -1
  107. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.js +0 -25
  108. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.d.ts +0 -11
  109. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.d.ts.map +0 -1
  110. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.js +0 -30
  111. package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts +0 -20
  112. package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts.map +0 -1
  113. package/dist/generic/src/errors/audit-log/audit-log-errors.js +0 -31
  114. package/dist/generic/src/errors/authorization/authorization-errors.d.ts +0 -106
  115. package/dist/generic/src/errors/authorization/authorization-errors.d.ts.map +0 -1
  116. package/dist/generic/src/errors/authorization/authorization-errors.js +0 -160
  117. package/dist/generic/src/errors/base-error.d.ts +0 -23
  118. package/dist/generic/src/errors/base-error.d.ts.map +0 -1
  119. package/dist/generic/src/errors/base-error.js +0 -34
  120. package/dist/generic/src/errors/database/database-errors.d.ts +0 -24
  121. package/dist/generic/src/errors/database/database-errors.d.ts.map +0 -1
  122. package/dist/generic/src/errors/database/database-errors.js +0 -33
  123. package/dist/generic/src/errors/generic/generic-errors.d.ts +0 -35
  124. package/dist/generic/src/errors/generic/generic-errors.d.ts.map +0 -1
  125. package/dist/generic/src/errors/generic/generic-errors.js +0 -47
  126. package/dist/generic/src/errors/index.d.ts +0 -10
  127. package/dist/generic/src/errors/index.d.ts.map +0 -1
  128. package/dist/generic/src/errors/index.js +0 -26
  129. package/dist/generic/src/errors/request/request-errors.d.ts +0 -98
  130. package/dist/generic/src/errors/request/request-errors.d.ts.map +0 -1
  131. package/dist/generic/src/errors/request/request-errors.js +0 -134
  132. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts +0 -102
  133. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts.map +0 -1
  134. package/dist/generic/src/errors/safe/safe-rules-errors.js +0 -152
  135. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts +0 -8
  136. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts.map +0 -1
  137. package/dist/generic/src/errors/scheduler/scheduler-errors.js +0 -14
  138. package/dist/generic/src/errors/share-data/share-data-errors.d.ts +0 -67
  139. package/dist/generic/src/errors/share-data/share-data-errors.d.ts.map +0 -1
  140. package/dist/generic/src/errors/share-data/share-data-errors.js +0 -92
  141. package/dist/generic/src/helpers/crypto/cryptography-helpers.d.ts +0 -37
  142. package/dist/generic/src/helpers/crypto/cryptography-helpers.d.ts.map +0 -1
  143. package/dist/generic/src/helpers/crypto/cryptography-helpers.js +0 -65
  144. package/dist/generic/src/helpers/object-validation-helpers.d.ts +0 -66
  145. package/dist/generic/src/helpers/object-validation-helpers.d.ts.map +0 -1
  146. package/dist/generic/src/helpers/object-validation-helpers.js +0 -254
  147. package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts +0 -87
  148. package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts.map +0 -1
  149. package/dist/generic/src/models/application/audit-log/application-audit-log-models.js +0 -59
  150. package/dist/generic/src/models/application/database/firestore-models.d.ts +0 -84
  151. package/dist/generic/src/models/application/database/firestore-models.d.ts.map +0 -1
  152. package/dist/generic/src/models/application/database/firestore-models.js +0 -4
  153. package/dist/generic/src/models/authorization/authorization-models.d.ts +0 -81
  154. package/dist/generic/src/models/authorization/authorization-models.d.ts.map +0 -1
  155. package/dist/generic/src/models/authorization/authorization-models.js +0 -33
  156. package/dist/generic/src/models/crypto/crypto-models.d.ts +0 -5
  157. package/dist/generic/src/models/crypto/crypto-models.d.ts.map +0 -1
  158. package/dist/generic/src/models/crypto/crypto-models.js +0 -3
  159. package/dist/generic/src/models/data/data-models.d.ts +0 -24
  160. package/dist/generic/src/models/data/data-models.d.ts.map +0 -1
  161. package/dist/generic/src/models/data/data-models.js +0 -3
  162. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts +0 -9
  163. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts.map +0 -1
  164. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.js +0 -2
  165. package/dist/generic/src/models/events/share-event-models.d.ts +0 -65
  166. package/dist/generic/src/models/events/share-event-models.d.ts.map +0 -1
  167. package/dist/generic/src/models/events/share-event-models.js +0 -70
  168. package/dist/generic/src/models/functions/share-data-function-models.d.ts +0 -86
  169. package/dist/generic/src/models/functions/share-data-function-models.d.ts.map +0 -1
  170. package/dist/generic/src/models/functions/share-data-function-models.js +0 -17
  171. package/dist/generic/src/models/generic/request-response-models.d.ts +0 -8
  172. package/dist/generic/src/models/generic/request-response-models.d.ts.map +0 -1
  173. package/dist/generic/src/models/generic/request-response-models.js +0 -2
  174. package/dist/generic/src/models/index.d.ts +0 -13
  175. package/dist/generic/src/models/index.d.ts.map +0 -1
  176. package/dist/generic/src/models/index.js +0 -29
  177. package/dist/generic/src/models/rules/share-rule-models.d.ts +0 -303
  178. package/dist/generic/src/models/rules/share-rule-models.d.ts.map +0 -1
  179. package/dist/generic/src/models/rules/share-rule-models.js +0 -93
  180. package/dist/generic/src/models/safe/safe-transaction-models.d.ts +0 -81
  181. package/dist/generic/src/models/safe/safe-transaction-models.d.ts.map +0 -1
  182. package/dist/generic/src/models/safe/safe-transaction-models.js +0 -26
  183. package/dist/generic/src/models/share-data/share-data.d.ts +0 -56
  184. package/dist/generic/src/models/share-data/share-data.d.ts.map +0 -1
  185. package/dist/generic/src/models/share-data/share-data.js +0 -20
  186. /package/dist/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.d.ts +0 -0
  187. /package/dist/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.js +0 -0
  188. /package/dist/{endpoints/src/cors → cors}/authority/jwt/validate-jwt-authorities.d.ts +0 -0
  189. /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.d.ts +0 -0
  190. /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.js +0 -0
  191. /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.d.ts +0 -0
  192. /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.js +0 -0
  193. /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.d.ts +0 -0
  194. /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.js +0 -0
  195. /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.d.ts +0 -0
  196. /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.js +0 -0
  197. /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.d.ts +0 -0
  198. /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.js +0 -0
  199. /package/dist/{endpoints/src/cors → cors}/index.d.ts +0 -0
  200. /package/dist/{endpoints/src/cors → cors}/index.js +0 -0
  201. /package/dist/{endpoints/src/cors → cors}/routes/authorities.routes.d.ts +0 -0
  202. /package/dist/{endpoints/src/cors → cors}/routes/events.routes.d.ts +0 -0
  203. /package/dist/{endpoints/src/cors → cors}/routes/events.routes.js +0 -0
  204. /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.d.ts +0 -0
  205. /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.js +0 -0
  206. /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.d.ts +0 -0
  207. /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.js +0 -0
  208. /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.d.ts +0 -0
  209. /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.js +0 -0
  210. /package/dist/{endpoints/src/examples → examples}/express-server/app.d.ts +0 -0
  211. /package/dist/{endpoints/src/examples → examples}/express-server/server.d.ts +0 -0
  212. /package/dist/{endpoints/src/examples → examples}/express-server/server.js +0 -0
  213. /package/dist/{endpoints/src/index.d.ts → index.d.ts} +0 -0
  214. /package/dist/{endpoints/src/index.js → index.js} +0 -0
@@ -1,35 +0,0 @@
1
- import { BaseError } from '../base-error';
2
- /**
3
- * This file contains all the errors that are more generic in nature.
4
- */
5
- /**
6
- * This is used for when function data was not received.
7
- */
8
- export declare class FunctionDataNotReceivedError extends BaseError {
9
- /**
10
- * This is used for when function data was not received.
11
- */
12
- constructor();
13
- }
14
- /**
15
- * This is used for when an item can not have a searchable index created for it.
16
- */
17
- export declare class UnableToCreateSearchableIndexError extends BaseError {
18
- /**
19
- * This is used for when an item can not have a searchable index created for it.
20
- *
21
- * @param item
22
- */
23
- constructor(item: any);
24
- }
25
- /**
26
- * This is used for when a function is not implemented.
27
- */
28
- export declare class NotImplementedError extends BaseError {
29
- /**
30
- * This is used for when a function is not implemented.
31
- *
32
- */
33
- constructor();
34
- }
35
- //# sourceMappingURL=generic-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generic-errors.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/errors/generic/generic-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AAEH;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IACvD;;OAEG;;CAIN;AAED;;GAEG;AACH,qBAAa,kCAAmC,SAAQ,SAAS;IAC7D;;;;OAIG;gBACS,IAAI,EAAE,GAAG;CAGxB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,SAAS;IAC9C;;;OAGG;;CAIN"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotImplementedError = exports.UnableToCreateSearchableIndexError = exports.FunctionDataNotReceivedError = void 0;
4
- /* eslint-disable @typescript-eslint/no-explicit-any */
5
- const base_error_1 = require("../base-error");
6
- /**
7
- * This file contains all the errors that are more generic in nature.
8
- */
9
- /**
10
- * This is used for when function data was not received.
11
- */
12
- class FunctionDataNotReceivedError extends base_error_1.BaseError {
13
- /**
14
- * This is used for when function data was not received.
15
- */
16
- constructor() {
17
- super('Data required for the functions to run was not received.');
18
- }
19
- }
20
- exports.FunctionDataNotReceivedError = FunctionDataNotReceivedError;
21
- /**
22
- * This is used for when an item can not have a searchable index created for it.
23
- */
24
- class UnableToCreateSearchableIndexError extends base_error_1.BaseError {
25
- /**
26
- * This is used for when an item can not have a searchable index created for it.
27
- *
28
- * @param item
29
- */
30
- constructor(item) {
31
- super(`The item ${item} can not have a searchable index created for it.`);
32
- }
33
- }
34
- exports.UnableToCreateSearchableIndexError = UnableToCreateSearchableIndexError;
35
- /**
36
- * This is used for when a function is not implemented.
37
- */
38
- class NotImplementedError extends base_error_1.BaseError {
39
- /**
40
- * This is used for when a function is not implemented.
41
- *
42
- */
43
- constructor() {
44
- super('This function / feature is not implemented.');
45
- }
46
- }
47
- exports.NotImplementedError = NotImplementedError;
@@ -1,10 +0,0 @@
1
- export * from './audit-log/audit-log-errors';
2
- export * from './authorization/authorization-errors';
3
- export * from './database/database-errors';
4
- export * from './generic/generic-errors';
5
- export * from './request/request-errors';
6
- export * from './safe/safe-rules-errors';
7
- export * from './scheduler/scheduler-errors';
8
- export * from './share-data/share-data-errors';
9
- export * from './base-error';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../generic/src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAG/C,cAAc,cAAc,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./audit-log/audit-log-errors"), exports);
18
- __exportStar(require("./authorization/authorization-errors"), exports);
19
- __exportStar(require("./database/database-errors"), exports);
20
- __exportStar(require("./generic/generic-errors"), exports);
21
- __exportStar(require("./request/request-errors"), exports);
22
- __exportStar(require("./safe/safe-rules-errors"), exports);
23
- __exportStar(require("./scheduler/scheduler-errors"), exports);
24
- __exportStar(require("./share-data/share-data-errors"), exports);
25
- // Base error
26
- __exportStar(require("./base-error"), exports);
@@ -1,98 +0,0 @@
1
- import { BaseError } from '../base-error';
2
- /**
3
- * This is thrown when the request object is not valid.
4
- */
5
- export declare class RequestObjectValidationFailedError extends BaseError {
6
- /**
7
- * This is thrown when the request object is not valid.
8
- * @param objectToValidate the object that is not valid
9
- * @param validationType the type of validation that failed
10
- */
11
- constructor(objectToValidate: any, validationObject: string, validationType: string);
12
- }
13
- /**
14
- * This is throw when the request object has too many properties.
15
- */
16
- export declare class RequestObjectTooManyPropertiesError extends BaseError {
17
- /**
18
- * This is throw when the request object has too many properties.
19
- * @param objectToValidate the object that is not valid
20
- * @param validationOject the object property text that is being validated
21
- * @param totalProperties the total properties on the object
22
- * @param maxProperties the max properties allowed on the object
23
- */
24
- constructor(objectToValidate: any, validationOject: string, totalProperties: number, maxProperties: number);
25
- }
26
- /**
27
- * This is thrown when the request object has too few properties.
28
- */
29
- export declare class RequestObjectTooFewPropertiesError extends BaseError {
30
- /**
31
- * This is thrown when the request object has too few properties.
32
- * @param objectToValidate the object that is not valid
33
- * @param validationOject the object property text that is being validated
34
- * @param totalProperties the total properties on the object
35
- * @param minProperties the min properties allowed on the object
36
- */
37
- constructor(objectToValidate: any, validationOject: string, totalProperties: number, minProperties: number);
38
- }
39
- /**
40
- * This is thrown when the request object should only have a certain number of properties.
41
- */
42
- export declare class RequestObjectShouldOnlyHaveXPropertiesError extends BaseError {
43
- /**
44
- * This is thrown when the request object should only have a certain number of properties.
45
- * @param objectToValidate the object that is not valid
46
- * @param validationOject the object property text that is being validated
47
- * @param totalProperties the total properties on the object
48
- * @param expectedProperties the expected properties on the object
49
- */
50
- constructor(objectToValidate: any, validationOject: string, totalProperties: number, expectedProperties: number);
51
- }
52
- /**
53
- * This is throw when the request object has a property that does not match the param property.
54
- */
55
- export declare class RequestObjectPropertyNotMatchingParamProperty extends BaseError {
56
- /**
57
- * This is thrown when the request object doesnot match the param property.
58
- * @param requestPropertyName the property in the request object
59
- * @param requestPropertyValue the value of the property in the request object
60
- * @param paramPropertyName the property in the param object
61
- * @param paramPropertyValue the value of the property in the param object
62
- */
63
- constructor(requestPropertyName: string, requestPropertyValue: any, paramPropertyName: string, paramPropertyValue: any);
64
- }
65
- /**
66
- * This is thrown when the query object is not valid.
67
- */
68
- export declare class RequestQueryNotValidError extends BaseError {
69
- /**
70
- * This is thrown when the query object is not valid.
71
- * @param queryObjectName the name of the query object
72
- * @param queryValue the value of the query object
73
- * @param expectedType the expected type of the query object
74
- */
75
- constructor(queryObjectName: string, queryValue: any, expectedType: string);
76
- }
77
- /**
78
- * This is thrown when the param object is not valid.
79
- */
80
- export declare class RequestParamNotValidError extends BaseError {
81
- /**
82
- * This is thrown when the param object is not valid.
83
- * @param paramName the name of the param object
84
- * @param paramValue the value of the param object
85
- * @param expectedType the expected type of the param object
86
- */
87
- constructor(paramName: string, paramValue: any, expectedType: string, allParams: any);
88
- }
89
- /**
90
- * This is thrown when the request is not authorized.
91
- */
92
- export declare class RequestNotAuthorizedError extends BaseError {
93
- /**
94
- * This is thrown when the request is not authorized.
95
- */
96
- constructor(errorMessage?: string);
97
- }
98
- //# sourceMappingURL=request-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-errors.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/errors/request/request-errors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C;;GAEG;AACH,qBAAa,kCAAmC,SAAQ,SAAS;IAC7D;;;;OAIG;gBACS,gBAAgB,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;CAGtF;AAED;;GAEG;AACH,qBAAa,mCAAoC,SAAQ,SAAS;IAC9D;;;;;;OAMG;gBACS,gBAAgB,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;CAG7G;AAED;;GAEG;AACH,qBAAa,kCAAmC,SAAQ,SAAS;IAC7D;;;;;;OAMG;gBACS,gBAAgB,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;CAG7G;AAED;;GAEG;AACH,qBAAa,2CAA4C,SAAQ,SAAS;IACtE;;;;;;OAMG;gBACS,gBAAgB,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM;CAGlH;AAED;;GAEG;AACH,qBAAa,6CAA8C,SAAQ,SAAS;IACxE;;;;;;OAMG;gBACS,mBAAmB,EAAE,MAAM,EAAE,oBAAoB,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG;CAGzH;AAMD;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACpD;;;;;OAKG;gBACS,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM;CAG7E;AAMD;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACpD;;;;;OAKG;gBACS,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG;CAGvF;AAMD;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACpD;;OAEG;gBACS,YAAY,SAAiB;CAG5C"}
@@ -1,134 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestNotAuthorizedError = exports.RequestParamNotValidError = exports.RequestQueryNotValidError = exports.RequestObjectPropertyNotMatchingParamProperty = exports.RequestObjectShouldOnlyHaveXPropertiesError = exports.RequestObjectTooFewPropertiesError = exports.RequestObjectTooManyPropertiesError = exports.RequestObjectValidationFailedError = void 0;
4
- /* eslint-disable @typescript-eslint/no-explicit-any */
5
- // This file contains the errors that are thrown when the request object is not valid.
6
- const base_error_1 = require("../base-error");
7
- //#region Request Body Errors
8
- /**
9
- * This is thrown when the request object is not valid.
10
- */
11
- class RequestObjectValidationFailedError extends base_error_1.BaseError {
12
- /**
13
- * This is thrown when the request object is not valid.
14
- * @param objectToValidate the object that is not valid
15
- * @param validationType the type of validation that failed
16
- */
17
- constructor(objectToValidate, validationObject, validationType) {
18
- super(`The object ${objectToValidate} in the node ${validationObject} is not a valid ${validationType}`, 400);
19
- }
20
- }
21
- exports.RequestObjectValidationFailedError = RequestObjectValidationFailedError;
22
- /**
23
- * This is throw when the request object has too many properties.
24
- */
25
- class RequestObjectTooManyPropertiesError extends base_error_1.BaseError {
26
- /**
27
- * This is throw when the request object has too many properties.
28
- * @param objectToValidate the object that is not valid
29
- * @param validationOject the object property text that is being validated
30
- * @param totalProperties the total properties on the object
31
- * @param maxProperties the max properties allowed on the object
32
- */
33
- constructor(objectToValidate, validationOject, totalProperties, maxProperties) {
34
- super(`The object ${objectToValidate} which is property ${validationOject} has too many properties. It has ${totalProperties} and the max is ${maxProperties}`, 400);
35
- }
36
- }
37
- exports.RequestObjectTooManyPropertiesError = RequestObjectTooManyPropertiesError;
38
- /**
39
- * This is thrown when the request object has too few properties.
40
- */
41
- class RequestObjectTooFewPropertiesError extends base_error_1.BaseError {
42
- /**
43
- * This is thrown when the request object has too few properties.
44
- * @param objectToValidate the object that is not valid
45
- * @param validationOject the object property text that is being validated
46
- * @param totalProperties the total properties on the object
47
- * @param minProperties the min properties allowed on the object
48
- */
49
- constructor(objectToValidate, validationOject, totalProperties, minProperties) {
50
- super(`The object ${objectToValidate} which is property ${validationOject} has too few properties. It has ${totalProperties} and the min is ${minProperties}`, 400);
51
- }
52
- }
53
- exports.RequestObjectTooFewPropertiesError = RequestObjectTooFewPropertiesError;
54
- /**
55
- * This is thrown when the request object should only have a certain number of properties.
56
- */
57
- class RequestObjectShouldOnlyHaveXPropertiesError extends base_error_1.BaseError {
58
- /**
59
- * This is thrown when the request object should only have a certain number of properties.
60
- * @param objectToValidate the object that is not valid
61
- * @param validationOject the object property text that is being validated
62
- * @param totalProperties the total properties on the object
63
- * @param expectedProperties the expected properties on the object
64
- */
65
- constructor(objectToValidate, validationOject, totalProperties, expectedProperties) {
66
- super(`The object ${objectToValidate} which is property ${validationOject} should only have ${expectedProperties} properties. It has ${totalProperties}`, 400);
67
- }
68
- }
69
- exports.RequestObjectShouldOnlyHaveXPropertiesError = RequestObjectShouldOnlyHaveXPropertiesError;
70
- /**
71
- * This is throw when the request object has a property that does not match the param property.
72
- */
73
- class RequestObjectPropertyNotMatchingParamProperty extends base_error_1.BaseError {
74
- /**
75
- * This is thrown when the request object doesnot match the param property.
76
- * @param requestPropertyName the property in the request object
77
- * @param requestPropertyValue the value of the property in the request object
78
- * @param paramPropertyName the property in the param object
79
- * @param paramPropertyValue the value of the property in the param object
80
- */
81
- constructor(requestPropertyName, requestPropertyValue, paramPropertyName, paramPropertyValue) {
82
- super(`The request object property ${requestPropertyName} with value ${requestPropertyValue} does not match the param property ${paramPropertyName} with value ${paramPropertyValue}`, 400);
83
- }
84
- }
85
- exports.RequestObjectPropertyNotMatchingParamProperty = RequestObjectPropertyNotMatchingParamProperty;
86
- //#endregion Request Body Errors
87
- //#region Request Query Errors
88
- /**
89
- * This is thrown when the query object is not valid.
90
- */
91
- class RequestQueryNotValidError extends base_error_1.BaseError {
92
- /**
93
- * This is thrown when the query object is not valid.
94
- * @param queryObjectName the name of the query object
95
- * @param queryValue the value of the query object
96
- * @param expectedType the expected type of the query object
97
- */
98
- constructor(queryObjectName, queryValue, expectedType) {
99
- super(`The query object ${queryObjectName} with value ${queryValue} is not a valid ${expectedType}`, 400);
100
- }
101
- }
102
- exports.RequestQueryNotValidError = RequestQueryNotValidError;
103
- //#endregion Request Query Errors
104
- //#region Request Param Errors
105
- /**
106
- * This is thrown when the param object is not valid.
107
- */
108
- class RequestParamNotValidError extends base_error_1.BaseError {
109
- /**
110
- * This is thrown when the param object is not valid.
111
- * @param paramName the name of the param object
112
- * @param paramValue the value of the param object
113
- * @param expectedType the expected type of the param object
114
- */
115
- constructor(paramName, paramValue, expectedType, allParams) {
116
- super(`The param object ${paramName} with value ${paramValue} is not a valid ${expectedType}. All params: ${JSON.stringify(allParams)}`, 400);
117
- }
118
- }
119
- exports.RequestParamNotValidError = RequestParamNotValidError;
120
- //#endregion Request Param Errors
121
- //#region Request Authorization Errors
122
- /**
123
- * This is thrown when the request is not authorized.
124
- */
125
- class RequestNotAuthorizedError extends base_error_1.BaseError {
126
- /**
127
- * This is thrown when the request is not authorized.
128
- */
129
- constructor(errorMessage = 'Unauthorized') {
130
- super(errorMessage, 403);
131
- }
132
- }
133
- exports.RequestNotAuthorizedError = RequestNotAuthorizedError;
134
- //#endregion Request Authorization Errors
@@ -1,102 +0,0 @@
1
- import { ConditionType } from '../../models';
2
- import { BaseError } from '../base-error';
3
- /**
4
- * This error is thrown when a evaluation condition data value is not valid
5
- */
6
- export declare class SafeRuleEvaluationConditionDataValueError extends BaseError {
7
- /**
8
- * This error is thrown when a evaluation condition data value is not valid
9
- */
10
- constructor(dataValue: unknown, conditionValue: unknown, conditionType: ConditionType);
11
- }
12
- /**
13
- * This error is thrown when a evaluation condition value is not valid
14
- */
15
- export declare class SafeRuleEvaluationConditionValueError extends BaseError {
16
- /**
17
- * This error is thrown when a evaluation condition value is not valid
18
- */
19
- constructor(dataValue: unknown, conditionValue: unknown, conditionType: ConditionType);
20
- }
21
- /**
22
- * This error is thrown when a speical condition pattern is not valid
23
- */
24
- export declare class SafeRuleEvaluationSpecialConditionPatternError extends BaseError {
25
- /**
26
- * This error is thrown when a speical condition pattern is not valid
27
- */
28
- constructor(dataValue: unknown, conditionValue: unknown);
29
- }
30
- /**
31
- * This error is thrown when a rule set has no rule groups
32
- */
33
- export declare class SafeRuleRuleSetNoRuleGroupsError extends BaseError {
34
- /**
35
- * This error is thrown when a rule set has no rule groups
36
- */
37
- constructor(name: string, description?: string);
38
- }
39
- export declare class SafeRuleConditionNotTypeOfError extends BaseError {
40
- constructor(conditionType: ConditionType, expectedType: string);
41
- }
42
- /**
43
- * This error is thrown when a rule condition is not an object
44
- */
45
- export declare class SafeRuleConditionNotObjectError extends BaseError {
46
- constructor(incomingObject: unknown);
47
- }
48
- /**
49
- * This error is thrown when a rule condition is missing or has an extra property
50
- */
51
- export declare class SafeRuleConditionHasMismatchingProperties extends BaseError {
52
- constructor(incomingObject: unknown, expectedPropertyCount: number, actualPropertyCount: number);
53
- }
54
- /**
55
- * This error is thrown when the safe condition qualifier is not valid
56
- */
57
- export declare class SafeRuleConditionQualifierError extends BaseError {
58
- constructor(conditionQualifier: unknown);
59
- }
60
- /**
61
- * This error is thrown when a rule condition property is missing
62
- */
63
- export declare class SafeRuleConditionPropertyMissingError extends BaseError {
64
- constructor(missingProperty: string);
65
- }
66
- /**
67
- * This error is thrown when a rule condition value is not valid
68
- */
69
- export declare class SafeRuleConditionValueWrongType extends BaseError {
70
- constructor(conditionValue: unknown, expectedType: string);
71
- }
72
- /**
73
- * This error is thrown when a rule condition type is not valid
74
- */
75
- export declare class SafeRuleConditionTypeNotValidError extends BaseError {
76
- constructor(conditionType: unknown);
77
- }
78
- /**
79
- * This error is thrown when a safe rule is not an object
80
- */
81
- export declare class SafeRuleNotObjectError extends BaseError {
82
- constructor(incomingObject: unknown);
83
- }
84
- /**
85
- * This error is thrown when a safe rule is missing or has an extra property
86
- */
87
- export declare class SafeRuleHasMismatchingProperties extends BaseError {
88
- constructor(incomingObject: unknown, expectedPropertyCount: number, actualPropertyCount: number);
89
- }
90
- /**
91
- * This error is thrown when a safe rule is missing property
92
- */
93
- export declare class SafeRuleHasMissingProperty extends BaseError {
94
- constructor(incomingObject: unknown, expectedProperty: string);
95
- }
96
- /**
97
- * This error is thrown when a safe rule property is not valid
98
- */
99
- export declare class SafeRulePropertyValueWrongType extends BaseError {
100
- constructor(propertyName: string, propertyValue: unknown, expectedType: string);
101
- }
102
- //# sourceMappingURL=safe-rules-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"safe-rules-errors.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/errors/safe/safe-rules-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,qBAAa,yCAA0C,SAAQ,SAAS;IACpE;;OAEG;gBACS,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa;CAGxF;AAED;;GAEG;AACH,qBAAa,qCAAsC,SAAQ,SAAS;IAChE;;OAEG;gBACS,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa;CAGxF;AAED;;GAEG;AACH,qBAAa,8CAA+C,SAAQ,SAAS;IACzE;;OAEG;gBACS,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO;CAG1D;AAED;;GAEG;AACH,qBAAa,gCAAiC,SAAQ,SAAS;IAC3D;;OAEG;gBACS,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM;CAGjD;AAKD,qBAAa,+BAAgC,SAAQ,SAAS;gBAC9C,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM;CAGjE;AAGD;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,SAAS;gBAC9C,cAAc,EAAE,OAAO;CAGtC;AAED;;GAEG;AACH,qBAAa,yCAA0C,SAAQ,SAAS;gBACxD,cAAc,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM;CAGlG;AAED;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,SAAS;gBAC9C,kBAAkB,EAAE,OAAO;CAG1C;AAGD;;GAEG;AACH,qBAAa,qCAAsC,SAAQ,SAAS;gBACpD,eAAe,EAAE,MAAM;CAGtC;AAED;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,SAAS;gBAC9C,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM;CAG5D;AAED;;GAEG;AACH,qBAAa,kCAAmC,SAAQ,SAAS;gBACjD,aAAa,EAAE,OAAO;CAGrC;AAMD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;gBACrC,cAAc,EAAE,OAAO;CAGtC;AAED;;GAEG;AACH,qBAAa,gCAAiC,SAAQ,SAAS;gBAC/C,cAAc,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM;CAGlG;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,SAAS;gBACzC,cAAc,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM;CAGhE;AAED;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,SAAS;gBAC7C,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM;CAGjF"}
@@ -1,152 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SafeRulePropertyValueWrongType = exports.SafeRuleHasMissingProperty = exports.SafeRuleHasMismatchingProperties = exports.SafeRuleNotObjectError = exports.SafeRuleConditionTypeNotValidError = exports.SafeRuleConditionValueWrongType = exports.SafeRuleConditionPropertyMissingError = exports.SafeRuleConditionQualifierError = exports.SafeRuleConditionHasMismatchingProperties = exports.SafeRuleConditionNotObjectError = exports.SafeRuleConditionNotTypeOfError = exports.SafeRuleRuleSetNoRuleGroupsError = exports.SafeRuleEvaluationSpecialConditionPatternError = exports.SafeRuleEvaluationConditionValueError = exports.SafeRuleEvaluationConditionDataValueError = void 0;
4
- const base_error_1 = require("../base-error");
5
- /**
6
- * This error is thrown when a evaluation condition data value is not valid
7
- */
8
- class SafeRuleEvaluationConditionDataValueError extends base_error_1.BaseError {
9
- /**
10
- * This error is thrown when a evaluation condition data value is not valid
11
- */
12
- constructor(dataValue, conditionValue, conditionType) {
13
- super(`Share Rule condition evaluation for type ${conditionType} failed to execute. dataValue: ${dataValue} is incorrect for conditionValue: ${conditionValue}`);
14
- }
15
- }
16
- exports.SafeRuleEvaluationConditionDataValueError = SafeRuleEvaluationConditionDataValueError;
17
- /**
18
- * This error is thrown when a evaluation condition value is not valid
19
- */
20
- class SafeRuleEvaluationConditionValueError extends base_error_1.BaseError {
21
- /**
22
- * This error is thrown when a evaluation condition value is not valid
23
- */
24
- constructor(dataValue, conditionValue, conditionType) {
25
- super(`Share Rule condition evaluation for type ${conditionType} failed to execute. conditionValue: ${conditionValue} is incorrect for dataValue: ${dataValue}`);
26
- }
27
- }
28
- exports.SafeRuleEvaluationConditionValueError = SafeRuleEvaluationConditionValueError;
29
- /**
30
- * This error is thrown when a speical condition pattern is not valid
31
- */
32
- class SafeRuleEvaluationSpecialConditionPatternError extends base_error_1.BaseError {
33
- /**
34
- * This error is thrown when a speical condition pattern is not valid
35
- */
36
- constructor(dataValue, conditionValue) {
37
- super(`Share Rule special condition pattern evaluation failed to execute. dataValue ${dataValue} and conditionValue: ${conditionValue}`);
38
- }
39
- }
40
- exports.SafeRuleEvaluationSpecialConditionPatternError = SafeRuleEvaluationSpecialConditionPatternError;
41
- /**
42
- * This error is thrown when a rule set has no rule groups
43
- */
44
- class SafeRuleRuleSetNoRuleGroupsError extends base_error_1.BaseError {
45
- /**
46
- * This error is thrown when a rule set has no rule groups
47
- */
48
- constructor(name, description) {
49
- super(`Share Rule set ${name} with description ${description} has no rule groups`);
50
- }
51
- }
52
- exports.SafeRuleRuleSetNoRuleGroupsError = SafeRuleRuleSetNoRuleGroupsError;
53
- //#region Condition Validation Errors
54
- class SafeRuleConditionNotTypeOfError extends base_error_1.BaseError {
55
- constructor(conditionType, expectedType) {
56
- super(`Share Rule condition type ${conditionType} is not of type ${expectedType}`);
57
- }
58
- }
59
- exports.SafeRuleConditionNotTypeOfError = SafeRuleConditionNotTypeOfError;
60
- /**
61
- * This error is thrown when a rule condition is not an object
62
- */
63
- class SafeRuleConditionNotObjectError extends base_error_1.BaseError {
64
- constructor(incomingObject) {
65
- super(`Share Rule condition object ${incomingObject} is not an object`);
66
- }
67
- }
68
- exports.SafeRuleConditionNotObjectError = SafeRuleConditionNotObjectError;
69
- /**
70
- * This error is thrown when a rule condition is missing or has an extra property
71
- */
72
- class SafeRuleConditionHasMismatchingProperties extends base_error_1.BaseError {
73
- constructor(incomingObject, expectedPropertyCount, actualPropertyCount) {
74
- super(`Share Rule condition object ${incomingObject} has mismatching properties, expected ${expectedPropertyCount} but got ${actualPropertyCount}`);
75
- }
76
- }
77
- exports.SafeRuleConditionHasMismatchingProperties = SafeRuleConditionHasMismatchingProperties;
78
- /**
79
- * This error is thrown when the safe condition qualifier is not valid
80
- */
81
- class SafeRuleConditionQualifierError extends base_error_1.BaseError {
82
- constructor(conditionQualifier) {
83
- super(`Share Rule condition qualifier ${conditionQualifier} is not valid`);
84
- }
85
- }
86
- exports.SafeRuleConditionQualifierError = SafeRuleConditionQualifierError;
87
- /**
88
- * This error is thrown when a rule condition property is missing
89
- */
90
- class SafeRuleConditionPropertyMissingError extends base_error_1.BaseError {
91
- constructor(missingProperty) {
92
- super(`Share Rule condition property ${missingProperty} is missing`);
93
- }
94
- }
95
- exports.SafeRuleConditionPropertyMissingError = SafeRuleConditionPropertyMissingError;
96
- /**
97
- * This error is thrown when a rule condition value is not valid
98
- */
99
- class SafeRuleConditionValueWrongType extends base_error_1.BaseError {
100
- constructor(conditionValue, expectedType) {
101
- super(`Share Rule condition value ${conditionValue} is not of type ${expectedType}`);
102
- }
103
- }
104
- exports.SafeRuleConditionValueWrongType = SafeRuleConditionValueWrongType;
105
- /**
106
- * This error is thrown when a rule condition type is not valid
107
- */
108
- class SafeRuleConditionTypeNotValidError extends base_error_1.BaseError {
109
- constructor(conditionType) {
110
- super(`Share Rule condition type ${conditionType} is not valid`);
111
- }
112
- }
113
- exports.SafeRuleConditionTypeNotValidError = SafeRuleConditionTypeNotValidError;
114
- //#endregion Condition Validation Errors
115
- //#region Rule Validation Errors
116
- /**
117
- * This error is thrown when a safe rule is not an object
118
- */
119
- class SafeRuleNotObjectError extends base_error_1.BaseError {
120
- constructor(incomingObject) {
121
- super(`Share Rule object ${incomingObject} is not an object`);
122
- }
123
- }
124
- exports.SafeRuleNotObjectError = SafeRuleNotObjectError;
125
- /**
126
- * This error is thrown when a safe rule is missing or has an extra property
127
- */
128
- class SafeRuleHasMismatchingProperties extends base_error_1.BaseError {
129
- constructor(incomingObject, expectedPropertyCount, actualPropertyCount) {
130
- super(`Share Rule object ${incomingObject} has mismatching properties, expected ${expectedPropertyCount} but got ${actualPropertyCount}`);
131
- }
132
- }
133
- exports.SafeRuleHasMismatchingProperties = SafeRuleHasMismatchingProperties;
134
- /**
135
- * This error is thrown when a safe rule is missing property
136
- */
137
- class SafeRuleHasMissingProperty extends base_error_1.BaseError {
138
- constructor(incomingObject, expectedProperty) {
139
- super(`Share Rule object ${incomingObject} is missing property ${expectedProperty}`);
140
- }
141
- }
142
- exports.SafeRuleHasMissingProperty = SafeRuleHasMissingProperty;
143
- /**
144
- * This error is thrown when a safe rule property is not valid
145
- */
146
- class SafeRulePropertyValueWrongType extends base_error_1.BaseError {
147
- constructor(propertyName, propertyValue, expectedType) {
148
- super(`Share Rule property ${propertyName} with value ${propertyValue} is not of type ${expectedType}`);
149
- }
150
- }
151
- exports.SafeRulePropertyValueWrongType = SafeRulePropertyValueWrongType;
152
- //#endregion Rule Validation Errors
@@ -1,8 +0,0 @@
1
- import { BaseError } from '../base-error';
2
- /**
3
- * This error is thrown when a task is not found in the scheduler
4
- */
5
- export declare class TaskNotFoundError extends BaseError {
6
- constructor(taskId: string);
7
- }
8
- //# sourceMappingURL=scheduler-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scheduler-errors.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/errors/scheduler/scheduler-errors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,SAAS;gBAChC,MAAM,EAAE,MAAM;CAG7B"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- // this file contains all the errors that can be thrown by the scheduler
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TaskNotFoundError = void 0;
5
- const base_error_1 = require("../base-error");
6
- /**
7
- * This error is thrown when a task is not found in the scheduler
8
- */
9
- class TaskNotFoundError extends base_error_1.BaseError {
10
- constructor(taskId) {
11
- super(`An error occurred while trying to remove task ${taskId}.`);
12
- }
13
- }
14
- exports.TaskNotFoundError = TaskNotFoundError;