@degenerate/endpoints 0.0.6 → 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 (133) 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/examples/express-server/server.d.ts.map +1 -0
  18. package/dist/{endpoints/src/index.d.ts.map → index.d.ts.map} +1 -1
  19. package/package.json +2 -2
  20. package/dist/endpoints/src/cors/authority/audience/get-set-audiences.d.ts.map +0 -1
  21. package/dist/endpoints/src/cors/authority/jwt/validate-jwt-authorities.d.ts.map +0 -1
  22. package/dist/endpoints/src/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +0 -1
  23. package/dist/endpoints/src/cors/endpoints/helpers/validate-request-body.d.ts.map +0 -1
  24. package/dist/endpoints/src/cors/errors/all-error-handler.d.ts.map +0 -1
  25. package/dist/endpoints/src/cors/errors/bad-request-handler.d.ts.map +0 -1
  26. package/dist/endpoints/src/cors/errors/unauthorized-handler.d.ts.map +0 -1
  27. package/dist/endpoints/src/cors/index.d.ts.map +0 -1
  28. package/dist/endpoints/src/cors/routes/authorities.routes.d.ts.map +0 -1
  29. package/dist/endpoints/src/cors/routes/events.routes.d.ts.map +0 -1
  30. package/dist/endpoints/src/cors/routes/functions.routes.d.ts.map +0 -1
  31. package/dist/endpoints/src/cors/routes/rules.routes.d.ts.map +0 -1
  32. package/dist/endpoints/src/cors/routes/share-data.routes.d.ts.map +0 -1
  33. package/dist/endpoints/src/examples/express-server/app.d.ts.map +0 -1
  34. package/dist/endpoints/src/examples/express-server/server.d.ts.map +0 -1
  35. package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts +0 -20
  36. package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts.map +0 -1
  37. package/dist/generic/src/errors/audit-log/audit-log-errors.js +0 -31
  38. package/dist/generic/src/errors/authorization/authorization-errors.d.ts +0 -106
  39. package/dist/generic/src/errors/authorization/authorization-errors.d.ts.map +0 -1
  40. package/dist/generic/src/errors/authorization/authorization-errors.js +0 -160
  41. package/dist/generic/src/errors/base-error.d.ts +0 -23
  42. package/dist/generic/src/errors/base-error.d.ts.map +0 -1
  43. package/dist/generic/src/errors/base-error.js +0 -34
  44. package/dist/generic/src/errors/database/database-errors.d.ts +0 -24
  45. package/dist/generic/src/errors/database/database-errors.d.ts.map +0 -1
  46. package/dist/generic/src/errors/database/database-errors.js +0 -33
  47. package/dist/generic/src/errors/generic/generic-errors.d.ts +0 -35
  48. package/dist/generic/src/errors/generic/generic-errors.d.ts.map +0 -1
  49. package/dist/generic/src/errors/generic/generic-errors.js +0 -47
  50. package/dist/generic/src/errors/index.d.ts +0 -10
  51. package/dist/generic/src/errors/index.d.ts.map +0 -1
  52. package/dist/generic/src/errors/index.js +0 -26
  53. package/dist/generic/src/errors/request/request-errors.d.ts +0 -98
  54. package/dist/generic/src/errors/request/request-errors.d.ts.map +0 -1
  55. package/dist/generic/src/errors/request/request-errors.js +0 -134
  56. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts +0 -102
  57. package/dist/generic/src/errors/safe/safe-rules-errors.d.ts.map +0 -1
  58. package/dist/generic/src/errors/safe/safe-rules-errors.js +0 -152
  59. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts +0 -8
  60. package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts.map +0 -1
  61. package/dist/generic/src/errors/scheduler/scheduler-errors.js +0 -14
  62. package/dist/generic/src/errors/share-data/share-data-errors.d.ts +0 -67
  63. package/dist/generic/src/errors/share-data/share-data-errors.d.ts.map +0 -1
  64. package/dist/generic/src/errors/share-data/share-data-errors.js +0 -92
  65. package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts +0 -87
  66. package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts.map +0 -1
  67. package/dist/generic/src/models/application/audit-log/application-audit-log-models.js +0 -59
  68. package/dist/generic/src/models/application/database/firestore-models.d.ts +0 -84
  69. package/dist/generic/src/models/application/database/firestore-models.d.ts.map +0 -1
  70. package/dist/generic/src/models/application/database/firestore-models.js +0 -4
  71. package/dist/generic/src/models/authorization/authorization-models.d.ts +0 -81
  72. package/dist/generic/src/models/authorization/authorization-models.d.ts.map +0 -1
  73. package/dist/generic/src/models/authorization/authorization-models.js +0 -33
  74. package/dist/generic/src/models/crypto/crypto-models.d.ts +0 -5
  75. package/dist/generic/src/models/crypto/crypto-models.d.ts.map +0 -1
  76. package/dist/generic/src/models/crypto/crypto-models.js +0 -3
  77. package/dist/generic/src/models/data/data-models.d.ts +0 -24
  78. package/dist/generic/src/models/data/data-models.d.ts.map +0 -1
  79. package/dist/generic/src/models/data/data-models.js +0 -3
  80. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts +0 -9
  81. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts.map +0 -1
  82. package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.js +0 -2
  83. package/dist/generic/src/models/events/share-event-models.d.ts +0 -65
  84. package/dist/generic/src/models/events/share-event-models.d.ts.map +0 -1
  85. package/dist/generic/src/models/events/share-event-models.js +0 -70
  86. package/dist/generic/src/models/functions/share-data-function-models.d.ts +0 -86
  87. package/dist/generic/src/models/functions/share-data-function-models.d.ts.map +0 -1
  88. package/dist/generic/src/models/functions/share-data-function-models.js +0 -17
  89. package/dist/generic/src/models/generic/request-response-models.d.ts +0 -8
  90. package/dist/generic/src/models/generic/request-response-models.d.ts.map +0 -1
  91. package/dist/generic/src/models/generic/request-response-models.js +0 -2
  92. package/dist/generic/src/models/index.d.ts +0 -13
  93. package/dist/generic/src/models/index.d.ts.map +0 -1
  94. package/dist/generic/src/models/index.js +0 -29
  95. package/dist/generic/src/models/rules/share-rule-models.d.ts +0 -303
  96. package/dist/generic/src/models/rules/share-rule-models.d.ts.map +0 -1
  97. package/dist/generic/src/models/rules/share-rule-models.js +0 -93
  98. package/dist/generic/src/models/safe/safe-transaction-models.d.ts +0 -81
  99. package/dist/generic/src/models/safe/safe-transaction-models.d.ts.map +0 -1
  100. package/dist/generic/src/models/safe/safe-transaction-models.js +0 -26
  101. package/dist/generic/src/models/share-data/share-data.d.ts +0 -56
  102. package/dist/generic/src/models/share-data/share-data.d.ts.map +0 -1
  103. package/dist/generic/src/models/share-data/share-data.js +0 -20
  104. /package/dist/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.d.ts +0 -0
  105. /package/dist/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.js +0 -0
  106. /package/dist/{endpoints/src/cors → cors}/authority/jwt/validate-jwt-authorities.d.ts +0 -0
  107. /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.d.ts +0 -0
  108. /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.js +0 -0
  109. /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.d.ts +0 -0
  110. /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.js +0 -0
  111. /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.d.ts +0 -0
  112. /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.js +0 -0
  113. /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.d.ts +0 -0
  114. /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.js +0 -0
  115. /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.d.ts +0 -0
  116. /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.js +0 -0
  117. /package/dist/{endpoints/src/cors → cors}/index.d.ts +0 -0
  118. /package/dist/{endpoints/src/cors → cors}/index.js +0 -0
  119. /package/dist/{endpoints/src/cors → cors}/routes/authorities.routes.d.ts +0 -0
  120. /package/dist/{endpoints/src/cors → cors}/routes/events.routes.d.ts +0 -0
  121. /package/dist/{endpoints/src/cors → cors}/routes/events.routes.js +0 -0
  122. /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.d.ts +0 -0
  123. /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.js +0 -0
  124. /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.d.ts +0 -0
  125. /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.js +0 -0
  126. /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.d.ts +0 -0
  127. /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.js +0 -0
  128. /package/dist/{endpoints/src/examples → examples}/express-server/app.d.ts +0 -0
  129. /package/dist/{endpoints/src/examples → examples}/express-server/app.js +0 -0
  130. /package/dist/{endpoints/src/examples → examples}/express-server/server.d.ts +0 -0
  131. /package/dist/{endpoints/src/examples → examples}/express-server/server.js +0 -0
  132. /package/dist/{endpoints/src/index.d.ts → index.d.ts} +0 -0
  133. /package/dist/{endpoints/src/index.js → index.js} +0 -0
@@ -1,67 +0,0 @@
1
- import { BaseError } from '../base-error';
2
- import { ShareDataTypes } from '../../models/share-data/share-data';
3
- import { IShareDataFunction } from '../../models/functions/share-data-function-models';
4
- /**
5
- * This error is thrown when a function is tried to be applied to the share data thats state is locked.
6
- */
7
- export declare class ShareDataIsLockedError extends BaseError {
8
- /**
9
- * This error is thrown when a function is tried to be applied to the share data thats state is locked.
10
- */
11
- constructor(shareDataId: string, shareDataType: ShareDataTypes);
12
- }
13
- /**
14
- * This error is thrown when a data proposal matches the current data in the rules evaluation service.
15
- */
16
- export declare class ShareDataCurrentAndProposalDataMatchesError extends BaseError {
17
- /**
18
- * This error is thrown when a data proposal matches the current data in the rules evaluation service.
19
- */
20
- constructor(shareDataId: string);
21
- }
22
- /**
23
- * This error is thrown when the share data integrity check fails.
24
- */
25
- export declare class ShareDataIntegrityError extends BaseError {
26
- /**
27
- * This error is thrown when the share data integrity check fails.
28
- */
29
- constructor(shareDataId: string);
30
- }
31
- /**
32
- * This error is thrown when the attemping to be applied function does not exist on the share data.
33
- */
34
- export declare class ShareDataFunctionBeingAppliedDoesNotExistOnShareDataError extends BaseError {
35
- /**
36
- * This error is thrown when the attemping to be applied function does not exist on the share data.
37
- */
38
- constructor(shareDataId: string, functionName: string, functionId: string);
39
- }
40
- /**
41
- * This error is thrown when the function hash is not valid.
42
- */
43
- export declare class ShareDataFunctionHashNotValid extends BaseError {
44
- /**
45
- * This error is thrown when the function hash is not valid.
46
- */
47
- constructor(shareDataId: string, shareDataFunction: IShareDataFunction, calculatedHash: string);
48
- }
49
- /**
50
- * This is thrown when a rule doesn't have current conditions present.
51
- */
52
- export declare class ShareRuleCurrentConditionsNotPresentError extends BaseError {
53
- /**
54
- * This is thrown when a rule doesn't have a before or after conditions.
55
- */
56
- constructor(ruleId: string);
57
- }
58
- /**
59
- * This is thrown when a rule doesn't have proposed conditions present.
60
- */
61
- export declare class ShareRuleProposedConditionsNotPresentError extends BaseError {
62
- /**
63
- * This is thrown when a rule doesn't have a before or after conditions.
64
- */
65
- constructor(ruleId: string);
66
- }
67
- //# sourceMappingURL=share-data-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"share-data-errors.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/errors/share-data/share-data-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAEvF;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;IACjD;;OAEG;gBACS,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc;CAGjE;AAED;;GAEG;AACH,qBAAa,2CAA4C,SAAQ,SAAS;IACtE;;OAEG;gBACS,WAAW,EAAE,MAAM;CAGlC;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,SAAS;IAClD;;OAEG;gBACS,WAAW,EAAE,MAAM;CAGlC;AAED;;GAEG;AACH,qBAAa,yDAA0D,SAAQ,SAAS;IACpF;;OAEG;gBACS,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAI5E;AAGD;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,SAAS;IACxD;;OAEG;gBACS,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM;CAIjG;AAKD;;GAEG;AACH,qBAAa,yCAA0C,SAAQ,SAAS;IACpE;;OAEG;gBACS,MAAM,EAAE,MAAM;CAG7B;AAED;;GAEG;AACH,qBAAa,0CAA2C,SAAQ,SAAS;IACrE;;OAEG;gBACS,MAAM,EAAE,MAAM;CAG7B"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShareRuleProposedConditionsNotPresentError = exports.ShareRuleCurrentConditionsNotPresentError = exports.ShareDataFunctionHashNotValid = exports.ShareDataFunctionBeingAppliedDoesNotExistOnShareDataError = exports.ShareDataIntegrityError = exports.ShareDataCurrentAndProposalDataMatchesError = exports.ShareDataIsLockedError = void 0;
4
- const base_error_1 = require("../base-error");
5
- /**
6
- * This error is thrown when a function is tried to be applied to the share data thats state is locked.
7
- */
8
- class ShareDataIsLockedError extends base_error_1.BaseError {
9
- /**
10
- * This error is thrown when a function is tried to be applied to the share data thats state is locked.
11
- */
12
- constructor(shareDataId, shareDataType) {
13
- super(`Share data with id ${shareDataId} and type ${shareDataType} is locked and cannot be modified.`);
14
- }
15
- }
16
- exports.ShareDataIsLockedError = ShareDataIsLockedError;
17
- /**
18
- * This error is thrown when a data proposal matches the current data in the rules evaluation service.
19
- */
20
- class ShareDataCurrentAndProposalDataMatchesError extends base_error_1.BaseError {
21
- /**
22
- * This error is thrown when a data proposal matches the current data in the rules evaluation service.
23
- */
24
- constructor(shareDataId) {
25
- super(`Share data with id ${shareDataId} current and proposal data matches.`);
26
- }
27
- }
28
- exports.ShareDataCurrentAndProposalDataMatchesError = ShareDataCurrentAndProposalDataMatchesError;
29
- /**
30
- * This error is thrown when the share data integrity check fails.
31
- */
32
- class ShareDataIntegrityError extends base_error_1.BaseError {
33
- /**
34
- * This error is thrown when the share data integrity check fails.
35
- */
36
- constructor(shareDataId) {
37
- super(`Share data with id ${shareDataId} failed the integrity check.`);
38
- }
39
- }
40
- exports.ShareDataIntegrityError = ShareDataIntegrityError;
41
- /**
42
- * This error is thrown when the attemping to be applied function does not exist on the share data.
43
- */
44
- class ShareDataFunctionBeingAppliedDoesNotExistOnShareDataError extends base_error_1.BaseError {
45
- /**
46
- * This error is thrown when the attemping to be applied function does not exist on the share data.
47
- */
48
- constructor(shareDataId, functionName, functionId) {
49
- super(`On share data with id ${shareDataId} the function with id: ${functionId} & name: ${functionName} that is trying to be executed, ` +
50
- 'but does not exist in the authorized functions for the share data.');
51
- }
52
- }
53
- exports.ShareDataFunctionBeingAppliedDoesNotExistOnShareDataError = ShareDataFunctionBeingAppliedDoesNotExistOnShareDataError;
54
- /**
55
- * This error is thrown when the function hash is not valid.
56
- */
57
- class ShareDataFunctionHashNotValid extends base_error_1.BaseError {
58
- /**
59
- * This error is thrown when the function hash is not valid.
60
- */
61
- constructor(shareDataId, shareDataFunction, calculatedHash) {
62
- super(`On share data with id ${shareDataId} the function with current hash: ${shareDataFunction.currentHash} & previous hase: ${shareDataFunction.previousHash}` +
63
- ` that is trying to be executed does not meet the generated hash ${calculatedHash}. This makes it an authorized function execution.`);
64
- }
65
- }
66
- exports.ShareDataFunctionHashNotValid = ShareDataFunctionHashNotValid;
67
- //#region Rules
68
- /**
69
- * This is thrown when a rule doesn't have current conditions present.
70
- */
71
- class ShareRuleCurrentConditionsNotPresentError extends base_error_1.BaseError {
72
- /**
73
- * This is thrown when a rule doesn't have a before or after conditions.
74
- */
75
- constructor(ruleId) {
76
- super(`Rule with id ${ruleId} does not have any current conditions present.`);
77
- }
78
- }
79
- exports.ShareRuleCurrentConditionsNotPresentError = ShareRuleCurrentConditionsNotPresentError;
80
- /**
81
- * This is thrown when a rule doesn't have proposed conditions present.
82
- */
83
- class ShareRuleProposedConditionsNotPresentError extends base_error_1.BaseError {
84
- /**
85
- * This is thrown when a rule doesn't have a before or after conditions.
86
- */
87
- constructor(ruleId) {
88
- super(`Rule with id ${ruleId} does not have any proposed conditions present.`);
89
- }
90
- }
91
- exports.ShareRuleProposedConditionsNotPresentError = ShareRuleProposedConditionsNotPresentError;
92
- //#endregion Rules
@@ -1,87 +0,0 @@
1
- /**
2
- * This contains interfaces for the audit logs that are generated in the system.
3
- * This type of audit log is used to create and log application functions within a non structured database.
4
- */
5
- export type IApplicationAuditLog = IApplicationAuditLogUnstructured;
6
- /**
7
- * This is an application audit log.
8
- */
9
- export interface IApplicationAuditLogUnstructured {
10
- additionalAuditLogIds: IAdditionalApplicationAuditLogIds[];
11
- applicationAuditLogAction: ApplicationAuditLogAction;
12
- applicationAuditLogType: ApplicationAuditLogType;
13
- applicationAuditLogSubType: ApplicationAuditLogSubType;
14
- createdAt: number;
15
- createdBy: string;
16
- currentData?: any;
17
- previousData?: any;
18
- }
19
- /**
20
- * This contains the additional audit log Ids in order of the access in the application
21
- * for database this would be the reference path and reference Id
22
- * for User Financial data this would be
23
- * [
24
- * { referencePath: 'Administrator', referenceId: '{{ administratorId }} ' }, // These are every path downstream from the root data
25
- * { referencePath: 'Accounts', referenceId: '{{ accountId }}' },
26
- * ]
27
- *
28
- * These are available in the helper files based on the Application Audit Log Sub Types.
29
- */
30
- export interface IAdditionalApplicationAuditLogIds {
31
- referencePath: string;
32
- referenceId: string;
33
- }
34
- /**
35
- * This contains the enum for the audit log actions.
36
- */
37
- export declare enum ApplicationAuditLogAction {
38
- create = "create",
39
- update = "update",
40
- delete = "delete",
41
- read = "read",
42
- list = "list",
43
- file = "file"
44
- }
45
- /**
46
- * This contains the model for the audit logs that are generated in the system.
47
- */
48
- export declare enum ApplicationAuditLogType {
49
- authorizedAuthority = "authorizedAuthority",// the authorized authority audit log
50
- global = "global"
51
- }
52
- /**
53
- * This contains the enum for the audit log sub types for the multiple path classes.
54
- */
55
- export declare enum MultiplePathAuditLogSubType {
56
- multiplePathALAI = "multiplePathALAI"
57
- }
58
- /**
59
- * This contains the interface for keeping the query audit log and value.
60
- */
61
- export interface IQueryObjectAndValueForAuditLog {
62
- queryObject: string;
63
- queryValue: string | number | boolean;
64
- }
65
- /**
66
- * This contains the enum for the audit log sub types.
67
- */
68
- export type ApplicationAuditLogSubType = AdministrationAuditLogSubType | UserAuditLogSubType | PublicDataAuditLogSubType | MultiplePathAuditLogSubType;
69
- /**
70
- * This contains the enum for the audit log sub types for the administrator classes.
71
- */
72
- export declare enum AdministrationAuditLogSubType {
73
- administrator = "administrator"
74
- }
75
- /**
76
- * This contains the enum for the audit log sub types for the user classes.
77
- */
78
- export declare enum UserAuditLogSubType {
79
- profile = "profile"
80
- }
81
- /**
82
- * This contains the enum for the audit log sub types for the public data classes.
83
- */
84
- export declare enum PublicDataAuditLogSubType {
85
- userRelatedProfile = "userRelatedProfile"
86
- }
87
- //# sourceMappingURL=application-audit-log-models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"application-audit-log-models.d.ts","sourceRoot":"","sources":["../../../../../../../generic/src/models/application/audit-log/application-audit-log-models.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAIH,MAAM,MAAM,oBAAoB,GAAG,gCAAgC,CAAC;AACpE;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,qBAAqB,EAAE,iCAAiC,EAAE,CAAC;IAC3D,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iCAAiC;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,oBAAY,yBAAyB;IACjC,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CAChB;AAED;;GAEG;AACH,oBAAY,uBAAuB;IAC/B,mBAAmB,wBAAwB,CAAE,qCAAqC;IAClF,MAAM,WAAW;CACpB;AAKD;;GAEG;AACH,oBAAY,2BAA2B;IACnC,gBAAgB,qBAAqB;CACxC;AAMD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACzC;AAMD;;GAEG;AAEH,MAAM,MAAM,0BAA0B,GAAG,6BAA6B,GAAG,mBAAmB,GAAG,yBAAyB,GAClH,2BAA2B,CAAC;AAIlC;;GAEG;AACH,oBAAY,6BAA6B;IACrC,aAAa,kBAAkB;CAClC;AAMD;;GAEG;AACH,oBAAY,mBAAmB;IAC3B,OAAO,YAAY;CACtB;AAMD;;GAEG;AACH,oBAAY,yBAAyB;IACjC,kBAAkB,uBAAuB;CAC5C"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-explicit-any */
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.PublicDataAuditLogSubType = exports.UserAuditLogSubType = exports.AdministrationAuditLogSubType = exports.MultiplePathAuditLogSubType = exports.ApplicationAuditLogType = exports.ApplicationAuditLogAction = void 0;
5
- /**
6
- * This contains the enum for the audit log actions.
7
- */
8
- var ApplicationAuditLogAction;
9
- (function (ApplicationAuditLogAction) {
10
- ApplicationAuditLogAction["create"] = "create";
11
- ApplicationAuditLogAction["update"] = "update";
12
- ApplicationAuditLogAction["delete"] = "delete";
13
- ApplicationAuditLogAction["read"] = "read";
14
- ApplicationAuditLogAction["list"] = "list";
15
- ApplicationAuditLogAction["file"] = "file";
16
- })(ApplicationAuditLogAction || (exports.ApplicationAuditLogAction = ApplicationAuditLogAction = {}));
17
- /**
18
- * This contains the model for the audit logs that are generated in the system.
19
- */
20
- var ApplicationAuditLogType;
21
- (function (ApplicationAuditLogType) {
22
- ApplicationAuditLogType["authorizedAuthority"] = "authorizedAuthority";
23
- ApplicationAuditLogType["global"] = "global";
24
- })(ApplicationAuditLogType || (exports.ApplicationAuditLogType = ApplicationAuditLogType = {}));
25
- //#region Multiple Path Audit Log Types
26
- /**
27
- * This contains the enum for the audit log sub types for the multiple path classes.
28
- */
29
- var MultiplePathAuditLogSubType;
30
- (function (MultiplePathAuditLogSubType) {
31
- MultiplePathAuditLogSubType["multiplePathALAI"] = "multiplePathALAI";
32
- })(MultiplePathAuditLogSubType || (exports.MultiplePathAuditLogSubType = MultiplePathAuditLogSubType = {}));
33
- //#region Administration Audit Log Types
34
- /**
35
- * This contains the enum for the audit log sub types for the administrator classes.
36
- */
37
- var AdministrationAuditLogSubType;
38
- (function (AdministrationAuditLogSubType) {
39
- AdministrationAuditLogSubType["administrator"] = "administrator";
40
- })(AdministrationAuditLogSubType || (exports.AdministrationAuditLogSubType = AdministrationAuditLogSubType = {}));
41
- // #endregion Administration Audit Log Types
42
- //#region User Audit Log Types
43
- /**
44
- * This contains the enum for the audit log sub types for the user classes.
45
- */
46
- var UserAuditLogSubType;
47
- (function (UserAuditLogSubType) {
48
- UserAuditLogSubType["profile"] = "profile";
49
- })(UserAuditLogSubType || (exports.UserAuditLogSubType = UserAuditLogSubType = {}));
50
- //#endregion User Audit Log Types
51
- //#region Public Data audit log types
52
- /**
53
- * This contains the enum for the audit log sub types for the public data classes.
54
- */
55
- var PublicDataAuditLogSubType;
56
- (function (PublicDataAuditLogSubType) {
57
- PublicDataAuditLogSubType["userRelatedProfile"] = "userRelatedProfile";
58
- })(PublicDataAuditLogSubType || (exports.PublicDataAuditLogSubType = PublicDataAuditLogSubType = {}));
59
- //#endregion Public Data audit log types
@@ -1,84 +0,0 @@
1
- import { CollectionReference, DocumentReference } from 'firebase-admin/firestore';
2
- import * as admin from 'firebase-admin';
3
- import { IAdditionalApplicationAuditLogIds, ApplicationAuditLogSubType, IApplicationAuditLog } from '../audit-log/application-audit-log-models';
4
- /**
5
- * This contains the information that is needed to pass a change to the generic database functions.
6
- */
7
- export interface IDatabaseChangeInformation {
8
- alai: IAdditionalApplicationAuditLogIds[];
9
- auditLogSubType: ApplicationAuditLogSubType;
10
- item: unknown;
11
- itemDocRef: DocumentReference;
12
- }
13
- /**
14
- * This contains the information that is needed to pass a change to the generic database functions.
15
- * It allows for a property of an object to be retrieved and updated without needing the original
16
- * object when called.
17
- */
18
- export interface IDatabasePropertyChangeInformation {
19
- alai: IAdditionalApplicationAuditLogIds[];
20
- auditLogSubType: ApplicationAuditLogSubType;
21
- partialObjectUpdate: any;
22
- itemDocRef: DocumentReference;
23
- }
24
- /**
25
- * This contains the information records and audit logs for database changes
26
- */
27
- export interface IDatabaseUpdates {
28
- recordsandRefs: IDatabaseRecordAndRef[];
29
- auditLogInfo: IApplicationAuditLog;
30
- }
31
- /**
32
- * This contains the database record and document reference to update.
33
- */
34
- export interface IDatabaseRecordAndRef {
35
- record: unknown;
36
- recordDocRef: DocumentReference;
37
- }
38
- /**
39
- * This contains the information to get a single item from the database.
40
- */
41
- export interface IDatabaseGetItem extends IDatabaseAuditLogUpdates {
42
- itemDocRef: DocumentReference;
43
- throwErrorOnNotFound: boolean;
44
- }
45
- /**
46
- * This contains the information that is needed to get multiple items from the database.
47
- */
48
- export interface IDatabaseGetInformation extends IDatabaseAuditLogUpdates {
49
- itemColRef: CollectionReference;
50
- lastId: string;
51
- orderBy?: IDatabaseOrderBy;
52
- queryFields: IDatabaseQueryFields[];
53
- isMaxSizeDocumentSet?: boolean;
54
- }
55
- /**
56
- * This contains the information that is needed to get information from the database.
57
- */
58
- export interface IDatabaseOrderBy {
59
- fieldPath: string | admin.firestore.FieldPath;
60
- direction: admin.firestore.OrderByDirection;
61
- }
62
- /**
63
- * This contains the query information for the database if it is required
64
- */
65
- export interface IDatabaseQueryFields {
66
- fieldPath: string | admin.firestore.FieldPath;
67
- opStr: admin.firestore.WhereFilterOp;
68
- value: any;
69
- }
70
- /**
71
- * This contains the information to delete a single item from the database.
72
- */
73
- export interface IDatabaseDeleteItem extends IDatabaseAuditLogUpdates {
74
- itemDocRef: DocumentReference;
75
- throwErrorOnNotFound: boolean;
76
- }
77
- /**
78
- * This contains the additional information audit logs.
79
- */
80
- export interface IDatabaseAuditLogUpdates {
81
- alai: IAdditionalApplicationAuditLogIds[];
82
- auditLogSubType: ApplicationAuditLogSubType;
83
- }
84
- //# sourceMappingURL=firestore-models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"firestore-models.d.ts","sourceRoot":"","sources":["../../../../../../../generic/src/models/application/database/firestore-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACH,iCAAiC,EACjC,0BAA0B,EAC1B,oBAAoB,EACvB,MAAM,2CAA2C,CAAC;AAMnD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC1C,eAAe,EAAE,0BAA0B,CAAC;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,iBAAiB,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC1C,eAAe,EAAE,0BAA0B,CAAC;IAE5C,mBAAmB,EAAE,GAAG,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,cAAc,EAAE,qBAAqB,EAAE,CAAC;IACxC,YAAY,EAAE,oBAAoB,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,iBAAiB,CAAC;CACnC;AAMD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB;IAC9D,UAAU,EAAE,iBAAiB,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACrE,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAC9C,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAC9C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAErC,KAAK,EAAE,GAAG,CAAC;CACd;AAMD;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACjE,UAAU,EAAE,iBAAiB,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAMD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC1C,eAAe,EAAE,0BAA0B,CAAC;CAC/C"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //#endregion Audit Log Information
4
- //#endregion Backend Data Models
@@ -1,81 +0,0 @@
1
- /**
2
- * This is the authorities that can be validated with incoming requests.
3
- * it is AuthorityName Declaration-with ending of the original hex version of the publickey, publickey for the authority
4
- */
5
- export type IJWTAuthority = Map<IAuthorizationIssuer, string>;
6
- /**
7
- * This contains the types of validation that can be done on the authority.
8
- */
9
- export declare enum AuthorityValidationType {
10
- JWT = "jwt"
11
- }
12
- /**
13
- * This is the payload for the jwt.
14
- */
15
- export interface IAuthorizationPayload {
16
- [key: string]: any;
17
- }
18
- /**
19
- * This is the header for the jwt.
20
- */
21
- export interface IAuthorizationHeader {
22
- alg: string;
23
- typ: string;
24
- }
25
- /**
26
- * This is the audience that the jwt is intended for.
27
- */
28
- export declare enum AuthorizationAudience {
29
- AUTHORITIES = "authorities",// the authorities in the SAFE Ecosystem
30
- SHAREDATA = "sharedata",// the Share Data in the SAFE Ecosystem
31
- FUNCTIONS = "functions",// the functions in the SAFE Ecosystem
32
- RULES = "rules",// the rules in the SAFE Ecosystem
33
- EVENTS = "events",// the events in the SAFE Ecosystem
34
- ENDPOINTS = "endpoints"
35
- }
36
- /**
37
- * This contains the start of the subject for the authorization subject
38
- */
39
- export declare enum AuthorizationSubjectStart {
40
- USER = "user",
41
- SAFE_NETWORK = "safe-network"
42
- }
43
- /**
44
- * This type represents the formatted authorization subject.
45
- */
46
- export type IAuthorizationSubject = `${AuthorizationSubjectStart}:${string}`;
47
- /**
48
- * This is the issuer of the token.
49
- */
50
- export type IAuthorizationIssuer = `${string}-${string}`;
51
- /**
52
- * Any custom network claims that are added to the token.
53
- */
54
- export interface ICustomClaims {
55
- [key: string]: any;
56
- }
57
- /**
58
- * This interface represents the valid safe token payload (after deconstructing the jwt token).
59
- */
60
- export interface IValidSafeTokenPayload {
61
- [key: string]: any;
62
- aud: AuthorizationAudience;
63
- exp: number;
64
- iat: number;
65
- nbf: number;
66
- sub: IAuthorizationSubject;
67
- iss: IAuthorizationIssuer;
68
- }
69
- /**
70
- * This is the decoded jwt token.
71
- */
72
- export interface IDecodedJwtToken {
73
- customClaims?: ICustomClaims;
74
- aud: AuthorizationAudience;
75
- exp: number;
76
- iat: number;
77
- nbf: number;
78
- sub: IAuthorizationSubject;
79
- iss: IAuthorizationIssuer;
80
- }
81
- //# sourceMappingURL=authorization-models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/authorization/authorization-models.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;AAG9D;;GAEG;AACH,oBAAY,uBAAuB;IAC/B,GAAG,QAAQ;CACd;AAOD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,oBAAY,qBAAqB;IAC7B,WAAW,gBAAgB,CAAE,wCAAwC;IACrE,SAAS,cAAc,CAAE,uCAAuC;IAChE,SAAS,cAAc,CAAE,sCAAsC;IAC/D,KAAK,UAAU,CAAE,kCAAkC;IACnD,MAAM,WAAW,CAAE,mCAAmC;IACtD,SAAS,cAAc;CAC1B;AAED;;GAEG;AACH,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,YAAY,iBAAiB;CAChC;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,yBAAyB,IAAI,MAAM,EAAE,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAIzD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,oBAAoB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,oBAAoB,CAAC;CAC7B"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- // This file contains the models for the authorization.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AuthorizationSubjectStart = exports.AuthorizationAudience = exports.AuthorityValidationType = void 0;
5
- /**
6
- * This contains the types of validation that can be done on the authority.
7
- */
8
- var AuthorityValidationType;
9
- (function (AuthorityValidationType) {
10
- AuthorityValidationType["JWT"] = "jwt";
11
- })(AuthorityValidationType || (exports.AuthorityValidationType = AuthorityValidationType = {}));
12
- /**
13
- * This is the audience that the jwt is intended for.
14
- */
15
- var AuthorizationAudience;
16
- (function (AuthorizationAudience) {
17
- AuthorizationAudience["AUTHORITIES"] = "authorities";
18
- AuthorizationAudience["SHAREDATA"] = "sharedata";
19
- AuthorizationAudience["FUNCTIONS"] = "functions";
20
- AuthorizationAudience["RULES"] = "rules";
21
- AuthorizationAudience["EVENTS"] = "events";
22
- AuthorizationAudience["ENDPOINTS"] = "endpoints";
23
- })(AuthorizationAudience || (exports.AuthorizationAudience = AuthorizationAudience = {}));
24
- /**
25
- * This contains the start of the subject for the authorization subject
26
- */
27
- var AuthorizationSubjectStart;
28
- (function (AuthorizationSubjectStart) {
29
- AuthorizationSubjectStart["USER"] = "user";
30
- AuthorizationSubjectStart["SAFE_NETWORK"] = "safe-network";
31
- })(AuthorizationSubjectStart || (exports.AuthorizationSubjectStart = AuthorizationSubjectStart = {}));
32
- //#region jwt header models
33
- //#endregion jwt models
@@ -1,5 +0,0 @@
1
- export interface IPublicPrivateKeyDerPair {
2
- privateKeyDer: string;
3
- publicKeyDer: string;
4
- }
5
- //# sourceMappingURL=crypto-models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/crypto/crypto-models.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACxB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file contains the models use in the cryptography functions of this library.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +0,0 @@
1
- /**
2
- * This contains the minimum information that is needed on a data record.
3
- */
4
- export interface IGenericData {
5
- createdAt: number;
6
- createdBy: string;
7
- updatedAt: number;
8
- updatedBy: string;
9
- versionNumber: number;
10
- }
11
- /**
12
- * This contains the data for an item with a searchable index.
13
- * for the word 'found' this object would look like this:
14
- * {
15
- * f: true,
16
- * fo: true,
17
- * fou: true,
18
- * foun: true,
19
- * found: true,
20
- */
21
- export interface ISearchableIndex {
22
- [key: string]: true;
23
- }
24
- //# sourceMappingURL=data-models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/data/data-models.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- /// This contains the models for data in the degenerate package
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file contains all models for the dynamic eexecution fo functions.
3
- */
4
- export interface IDynamicExecutionOutput {
5
- output: any;
6
- executionTime: number;
7
- timeoutStepsConsumed: number;
8
- }
9
- //# sourceMappingURL=dynamic-execution-models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-execution-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/dynamic-execution/dynamic-execution-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,GAAG,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;CAChC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });