@degenerate/endpoints 0.0.3 → 0.0.4

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 (212) hide show
  1. package/dist/endpoints/src/cors/authority/audience/get-set-audiences.d.ts +60 -0
  2. package/dist/endpoints/src/cors/authority/audience/get-set-audiences.d.ts.map +1 -0
  3. package/dist/endpoints/src/cors/authority/audience/get-set-audiences.js +90 -0
  4. package/dist/endpoints/src/cors/authority/jwt/validate-jwt-authorities.d.ts +16 -0
  5. package/dist/endpoints/src/cors/authority/jwt/validate-jwt-authorities.d.ts.map +1 -0
  6. package/dist/endpoints/src/cors/authority/jwt/validate-jwt-authorities.js +34 -0
  7. package/dist/endpoints/src/cors/endpoints/authorities/validate-authorities-transaction.d.ts +30 -0
  8. package/dist/endpoints/src/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +1 -0
  9. package/dist/endpoints/src/cors/endpoints/authorities/validate-authorities-transaction.js +155 -0
  10. package/dist/endpoints/src/cors/endpoints/helpers/validate-request-body.d.ts +11 -0
  11. package/dist/endpoints/src/cors/endpoints/helpers/validate-request-body.d.ts.map +1 -0
  12. package/dist/endpoints/src/cors/endpoints/helpers/validate-request-body.js +32 -0
  13. package/dist/{cors → endpoints/src/cors}/errors/all-error-handler.d.ts +2 -2
  14. package/dist/endpoints/src/cors/errors/all-error-handler.d.ts.map +1 -0
  15. package/dist/{cors → endpoints/src/cors}/errors/all-error-handler.js +1 -0
  16. package/dist/endpoints/src/cors/errors/bad-request-handler.d.ts +12 -0
  17. package/dist/endpoints/src/cors/errors/bad-request-handler.d.ts.map +1 -0
  18. package/dist/{cors → endpoints/src/cors}/errors/bad-request-handler.js +1 -0
  19. package/dist/endpoints/src/cors/errors/unauthorized-handler.d.ts +12 -0
  20. package/dist/endpoints/src/cors/errors/unauthorized-handler.d.ts.map +1 -0
  21. package/dist/{cors → endpoints/src/cors}/errors/unauthorized-handler.js +1 -0
  22. package/dist/endpoints/src/cors/index.d.ts +9 -0
  23. package/dist/endpoints/src/cors/index.d.ts.map +1 -0
  24. package/dist/{cors → endpoints/src/cors}/index.js +7 -0
  25. package/dist/endpoints/src/cors/routes/authorities.routes.d.ts +2 -0
  26. package/dist/endpoints/src/cors/routes/authorities.routes.d.ts.map +1 -0
  27. package/dist/endpoints/src/cors/routes/authorities.routes.js +69 -0
  28. package/dist/endpoints/src/cors/routes/events.routes.d.ts +2 -0
  29. package/dist/endpoints/src/cors/routes/events.routes.d.ts.map +1 -0
  30. package/dist/endpoints/src/cors/routes/events.routes.js +56 -0
  31. package/dist/endpoints/src/cors/routes/functions.routes.d.ts +2 -0
  32. package/dist/endpoints/src/cors/routes/functions.routes.d.ts.map +1 -0
  33. package/dist/endpoints/src/cors/routes/functions.routes.js +56 -0
  34. package/dist/endpoints/src/cors/routes/rules.routes.d.ts +2 -0
  35. package/dist/endpoints/src/cors/routes/rules.routes.d.ts.map +1 -0
  36. package/dist/endpoints/src/cors/routes/rules.routes.js +56 -0
  37. package/dist/endpoints/src/cors/routes/share-data.routes.d.ts +2 -0
  38. package/dist/endpoints/src/cors/routes/share-data.routes.d.ts.map +1 -0
  39. package/dist/endpoints/src/cors/routes/share-data.routes.js +56 -0
  40. package/dist/endpoints/src/examples/express-server/app.d.ts +3 -0
  41. package/dist/endpoints/src/examples/express-server/app.d.ts.map +1 -0
  42. package/dist/endpoints/src/examples/express-server/app.js +29 -0
  43. package/dist/endpoints/src/examples/express-server/server.d.ts +2 -0
  44. package/dist/endpoints/src/examples/express-server/server.d.ts.map +1 -0
  45. package/dist/endpoints/src/examples/express-server/server.js +9 -0
  46. package/dist/{index.d.ts.map → endpoints/src/index.d.ts.map} +1 -1
  47. package/dist/generic/src/_settings/authorization-settings.d.ts +17 -0
  48. package/dist/generic/src/_settings/authorization-settings.d.ts.map +1 -0
  49. package/dist/generic/src/_settings/authorization-settings.js +20 -0
  50. package/dist/generic/src/authorization/index.d.ts +24 -0
  51. package/dist/generic/src/authorization/index.d.ts.map +1 -0
  52. package/dist/generic/src/authorization/index.js +61 -0
  53. package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.d.ts +9 -0
  54. package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.d.ts.map +1 -0
  55. package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.js +25 -0
  56. package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.d.ts +9 -0
  57. package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.d.ts.map +1 -0
  58. package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.js +24 -0
  59. package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.d.ts +10 -0
  60. package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.d.ts.map +1 -0
  61. package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.js +26 -0
  62. package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.d.ts +12 -0
  63. package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.d.ts.map +1 -0
  64. package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.js +19 -0
  65. package/dist/generic/src/authorization/jwt/sign/create-jwt-options.d.ts +17 -0
  66. package/dist/generic/src/authorization/jwt/sign/create-jwt-options.d.ts.map +1 -0
  67. package/dist/generic/src/authorization/jwt/sign/create-jwt-options.js +43 -0
  68. package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.d.ts +13 -0
  69. package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.d.ts.map +1 -0
  70. package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.js +22 -0
  71. package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.d.ts +10 -0
  72. package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.d.ts.map +1 -0
  73. package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.js +31 -0
  74. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.d.ts +10 -0
  75. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.d.ts.map +1 -0
  76. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.js +20 -0
  77. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.d.ts +9 -0
  78. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.d.ts.map +1 -0
  79. package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.js +17 -0
  80. package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.d.ts +12 -0
  81. package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.d.ts.map +1 -0
  82. package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.js +34 -0
  83. package/dist/generic/src/authorization/safe/authorization/authorized-authorities.d.ts +42 -0
  84. package/dist/generic/src/authorization/safe/authorization/authorized-authorities.d.ts.map +1 -0
  85. package/dist/generic/src/authorization/safe/authorization/authorized-authorities.js +65 -0
  86. package/dist/generic/src/authorization/safe/request/decode-bearer-token.d.ts +11 -0
  87. package/dist/generic/src/authorization/safe/request/decode-bearer-token.d.ts.map +1 -0
  88. package/dist/generic/src/authorization/safe/request/decode-bearer-token.js +31 -0
  89. package/dist/generic/src/authorization/safe/request/decode-safe-request.d.ts +11 -0
  90. package/dist/generic/src/authorization/safe/request/decode-safe-request.d.ts.map +1 -0
  91. package/dist/generic/src/authorization/safe/request/decode-safe-request.js +30 -0
  92. package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.d.ts +10 -0
  93. package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.d.ts.map +1 -0
  94. package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.js +29 -0
  95. package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts +12 -0
  96. package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +1 -0
  97. package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.js +30 -0
  98. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.d.ts +10 -0
  99. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.d.ts.map +1 -0
  100. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.js +24 -0
  101. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.d.ts +8 -0
  102. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.d.ts.map +1 -0
  103. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.js +23 -0
  104. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.d.ts +9 -0
  105. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.d.ts.map +1 -0
  106. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.js +24 -0
  107. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts +10 -0
  108. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +1 -0
  109. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.js +25 -0
  110. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.d.ts +8 -0
  111. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.d.ts.map +1 -0
  112. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.js +23 -0
  113. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts +10 -0
  114. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +1 -0
  115. package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.js +22 -0
  116. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.d.ts +9 -0
  117. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.d.ts.map +1 -0
  118. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.js +25 -0
  119. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.d.ts +11 -0
  120. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.d.ts.map +1 -0
  121. package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.js +30 -0
  122. package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts +20 -0
  123. package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts.map +1 -0
  124. package/dist/generic/src/errors/audit-log/audit-log-errors.js +31 -0
  125. package/dist/generic/src/errors/authorization/authorization-errors.d.ts +106 -0
  126. package/dist/generic/src/errors/authorization/authorization-errors.d.ts.map +1 -0
  127. package/dist/generic/src/errors/authorization/authorization-errors.js +160 -0
  128. package/dist/generic/src/errors/base-error.d.ts +23 -0
  129. package/dist/generic/src/errors/base-error.d.ts.map +1 -0
  130. package/dist/generic/src/errors/base-error.js +34 -0
  131. package/dist/generic/src/errors/database/database-errors.d.ts +24 -0
  132. package/dist/generic/src/errors/database/database-errors.d.ts.map +1 -0
  133. package/dist/generic/src/errors/database/database-errors.js +33 -0
  134. package/dist/generic/src/errors/generic/generic-errors.d.ts +35 -0
  135. package/dist/generic/src/errors/generic/generic-errors.d.ts.map +1 -0
  136. package/dist/generic/src/errors/generic/generic-errors.js +47 -0
  137. package/dist/generic/src/errors/index.d.ts +10 -0
  138. package/dist/generic/src/errors/index.d.ts.map +1 -0
  139. package/dist/generic/src/errors/index.js +26 -0
  140. package/dist/generic/src/errors/request/request-errors.d.ts +98 -0
  141. package/dist/generic/src/errors/request/request-errors.d.ts.map +1 -0
  142. package/dist/generic/src/errors/request/request-errors.js +134 -0
  143. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts +102 -0
  144. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts.map +1 -0
  145. package/dist/generic/src/errors/safe/safe-rules-errors.js +152 -0
  146. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts +8 -0
  147. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts.map +1 -0
  148. package/dist/generic/src/errors/scheduler/scheduler-errors.js +14 -0
  149. package/dist/generic/src/errors/share-data/share-data-errors.d.ts +67 -0
  150. package/dist/generic/src/errors/share-data/share-data-errors.d.ts.map +1 -0
  151. package/dist/generic/src/errors/share-data/share-data-errors.js +92 -0
  152. package/dist/generic/src/helpers/crypto/cryptography-helpers.d.ts +37 -0
  153. package/dist/generic/src/helpers/crypto/cryptography-helpers.d.ts.map +1 -0
  154. package/dist/generic/src/helpers/crypto/cryptography-helpers.js +65 -0
  155. package/dist/generic/src/helpers/object-validation-helpers.d.ts +66 -0
  156. package/dist/generic/src/helpers/object-validation-helpers.d.ts.map +1 -0
  157. package/dist/generic/src/helpers/object-validation-helpers.js +254 -0
  158. package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts +87 -0
  159. package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts.map +1 -0
  160. package/dist/generic/src/models/application/audit-log/application-audit-log-models.js +59 -0
  161. package/dist/generic/src/models/application/database/firestore-models.d.ts +84 -0
  162. package/dist/generic/src/models/application/database/firestore-models.d.ts.map +1 -0
  163. package/dist/generic/src/models/application/database/firestore-models.js +4 -0
  164. package/dist/generic/src/models/authorization/authorization-models.d.ts +81 -0
  165. package/dist/generic/src/models/authorization/authorization-models.d.ts.map +1 -0
  166. package/dist/generic/src/models/authorization/authorization-models.js +33 -0
  167. package/dist/generic/src/models/crypto/crypto-models.d.ts +5 -0
  168. package/dist/generic/src/models/crypto/crypto-models.d.ts.map +1 -0
  169. package/dist/generic/src/models/crypto/crypto-models.js +3 -0
  170. package/dist/generic/src/models/data/data-models.d.ts +24 -0
  171. package/dist/generic/src/models/data/data-models.d.ts.map +1 -0
  172. package/dist/generic/src/models/data/data-models.js +3 -0
  173. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts +9 -0
  174. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts.map +1 -0
  175. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.js +2 -0
  176. package/dist/generic/src/models/events/share-event-models.d.ts +65 -0
  177. package/dist/generic/src/models/events/share-event-models.d.ts.map +1 -0
  178. package/dist/generic/src/models/events/share-event-models.js +70 -0
  179. package/dist/generic/src/models/functions/share-data-function-models.d.ts +86 -0
  180. package/dist/generic/src/models/functions/share-data-function-models.d.ts.map +1 -0
  181. package/dist/generic/src/models/functions/share-data-function-models.js +17 -0
  182. package/dist/generic/src/models/generic/request-response-models.d.ts +8 -0
  183. package/dist/generic/src/models/generic/request-response-models.d.ts.map +1 -0
  184. package/dist/generic/src/models/generic/request-response-models.js +2 -0
  185. package/dist/generic/src/models/index.d.ts +13 -0
  186. package/dist/generic/src/models/index.d.ts.map +1 -0
  187. package/dist/generic/src/models/index.js +29 -0
  188. package/dist/generic/src/models/rules/share-rule-models.d.ts +303 -0
  189. package/dist/generic/src/models/rules/share-rule-models.d.ts.map +1 -0
  190. package/dist/generic/src/models/rules/share-rule-models.js +93 -0
  191. package/dist/generic/src/models/safe/safe-transaction-models.d.ts +81 -0
  192. package/dist/generic/src/models/safe/safe-transaction-models.d.ts.map +1 -0
  193. package/dist/generic/src/models/safe/safe-transaction-models.js +26 -0
  194. package/dist/generic/src/models/share-data/share-data.d.ts +56 -0
  195. package/dist/generic/src/models/share-data/share-data.d.ts.map +1 -0
  196. package/dist/generic/src/models/share-data/share-data.js +20 -0
  197. package/package.json +4 -3
  198. package/dist/cors/authority/audience/set-audience-authority.d.ts +0 -1
  199. package/dist/cors/authority/audience/set-audience-authority.d.ts.map +0 -1
  200. package/dist/cors/authority/audience/set-audience-authority.js +0 -1
  201. package/dist/cors/authority/jwt/validate-jwt-authority.d.ts +0 -1
  202. package/dist/cors/authority/jwt/validate-jwt-authority.d.ts.map +0 -1
  203. package/dist/cors/authority/jwt/validate-jwt-authority.js +0 -1
  204. package/dist/cors/errors/all-error-handler.d.ts.map +0 -1
  205. package/dist/cors/errors/bad-request-handler.d.ts +0 -12
  206. package/dist/cors/errors/bad-request-handler.d.ts.map +0 -1
  207. package/dist/cors/errors/unauthorized-handler.d.ts +0 -12
  208. package/dist/cors/errors/unauthorized-handler.d.ts.map +0 -1
  209. package/dist/cors/index.d.ts +0 -4
  210. package/dist/cors/index.d.ts.map +0 -1
  211. /package/dist/{index.d.ts → endpoints/src/index.d.ts} +0 -0
  212. /package/dist/{index.js → endpoints/src/index.js} +0 -0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseError = void 0;
4
+ /**
5
+ * This is the base error class that all other errors should extend from.
6
+ */
7
+ class BaseError extends Error {
8
+ /**
9
+ * This is the base error type for the application.
10
+ *
11
+ * @param message the message to include.
12
+ * @param errorCode the error code if we want to include one.
13
+ */
14
+ constructor(message, errorCode) {
15
+ super(message); // Pass the message to the Error constructor
16
+ this.name = this.constructor.name; // Set the name of the error
17
+ this.errorCode = errorCode; // Set the error code
18
+ // This line is needed to restore the correct prototype chain.
19
+ // (see note below)
20
+ Object.setPrototypeOf(this, new.target.prototype);
21
+ }
22
+ /**
23
+ * This function returns the error as a JSON object.
24
+ */
25
+ toJSON() {
26
+ return {
27
+ message: this.message,
28
+ errorType: this.name,
29
+ errorCode: this.errorCode,
30
+ stack: this.stack,
31
+ };
32
+ }
33
+ }
34
+ exports.BaseError = BaseError;
@@ -0,0 +1,24 @@
1
+ import { BaseError } from '../base-error';
2
+ /**
3
+ * This is throw when a database records is not found.
4
+ */
5
+ export declare class DatabaseRecordNotFoundError extends BaseError {
6
+ /**
7
+ * This is thrown when a database record is not found.
8
+ *
9
+ * @param databasePath the path to the database record.
10
+ */
11
+ constructor(databasePath: string);
12
+ }
13
+ /**
14
+ * This is throw when too many database records are found.
15
+ */
16
+ export declare class DatabaseTooManyRecordsError extends BaseError {
17
+ /**
18
+ * This is thrown when too many database records are found.
19
+ *
20
+ * @param databasePath the path to the database record.
21
+ */
22
+ constructor(databasePath: string);
23
+ }
24
+ //# sourceMappingURL=database-errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database-errors.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/errors/database/database-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,SAAS;IACtD;;;;OAIG;gBACS,YAAY,EAAE,MAAM;CAGnC;AAED;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,SAAS;IACtD;;;;OAIG;gBACS,YAAY,EAAE,MAAM;CAGnC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatabaseTooManyRecordsError = exports.DatabaseRecordNotFoundError = void 0;
4
+ // This file contains all the errors that are related to database records.
5
+ const base_error_1 = require("../base-error");
6
+ /**
7
+ * This is throw when a database records is not found.
8
+ */
9
+ class DatabaseRecordNotFoundError extends base_error_1.BaseError {
10
+ /**
11
+ * This is thrown when a database record is not found.
12
+ *
13
+ * @param databasePath the path to the database record.
14
+ */
15
+ constructor(databasePath) {
16
+ super(`The database record at ${databasePath} was not found`);
17
+ }
18
+ }
19
+ exports.DatabaseRecordNotFoundError = DatabaseRecordNotFoundError;
20
+ /**
21
+ * This is throw when too many database records are found.
22
+ */
23
+ class DatabaseTooManyRecordsError extends base_error_1.BaseError {
24
+ /**
25
+ * This is thrown when too many database records are found.
26
+ *
27
+ * @param databasePath the path to the database record.
28
+ */
29
+ constructor(databasePath) {
30
+ super(`Too many records found at ${databasePath}`);
31
+ }
32
+ }
33
+ exports.DatabaseTooManyRecordsError = DatabaseTooManyRecordsError;
@@ -0,0 +1,35 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,47 @@
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;
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,26 @@
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);
@@ -0,0 +1,98 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,134 @@
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
@@ -0,0 +1,102 @@
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
@@ -0,0 +1 @@
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"}