@degenerate/generic 0.2.7 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_settings/database-settings.d.ts +3 -0
- package/dist/_settings/database-settings.d.ts.map +1 -1
- package/dist/_settings/database-settings.js +3 -0
- package/dist/application/audit-log/additional-ids/create-audit-log-additional-ids-with-query.d.ts.map +1 -1
- package/dist/application/audit-log/additional-ids/create-multiple-path-alai.d.ts.map +1 -1
- package/dist/application/audit-log/additional-ids/create-query-audit-log-for-alai.d.ts.map +1 -1
- package/dist/application/audit-log/create-application-audit-log.d.ts.map +1 -1
- package/dist/application/audit-log/create-application-audit-log.js +1 -1
- package/dist/application/database/firestore/generics/add-items-to-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/add-items-to-database.js +2 -2
- package/dist/application/database/firestore/generics/add-or-update-items-to-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/add-or-update-items-to-database.js +3 -3
- package/dist/application/database/firestore/generics/create-database-change-information.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/delete-items-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/delete-items-on-database.js +2 -2
- package/dist/application/database/firestore/generics/get-item-from-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/get-item-from-database.js +2 -2
- package/dist/application/database/firestore/generics/get-items-different-path-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/get-items-different-path-on-database.js +2 -2
- package/dist/application/database/firestore/generics/get-items-from-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/get-items-from-database.js +1 -1
- package/dist/application/database/firestore/generics/update-items-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/update-items-on-database.js +2 -2
- package/dist/application/database/firestore/generics/update-items-properties-on-database.d.ts.map +1 -1
- package/dist/application/database/firestore/generics/update-items-properties-on-database.js +2 -2
- package/dist/authorization/index.d.ts +1 -0
- package/dist/authorization/index.d.ts.map +1 -1
- package/dist/authorization/index.js +1 -0
- package/dist/authorization/jwt/keys/create-public-key-pem.d.ts.map +1 -1
- package/dist/authorization/jwt/keys/create-secret-key-pem.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-authorization-subject.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts +7 -1
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-jwt-signed-token.d.ts.map +1 -1
- package/dist/authorization/jwt/transform/transform-token-payload-to-safe-payload.d.ts.map +1 -1
- package/dist/authorization/jwt/verify/get-decoded-jwt-header.d.ts.map +1 -1
- package/dist/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.d.ts.map +1 -1
- package/dist/authorization/jwt/verify/verify-jwt-signed-token.d.ts.map +1 -1
- package/dist/authorization/safe/request/decode-bearer-token.d.ts.map +1 -1
- package/dist/authorization/safe/request/decode-safe-request.d.ts.map +1 -1
- package/dist/authorization/safe/request/determine-issuer-from-request.d.ts.map +1 -1
- package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +1 -1
- package/dist/authorization/safe/request/verify-jwt-bearer-token-for-audience.d.ts +31 -0
- package/dist/authorization/safe/request/verify-jwt-bearer-token-for-audience.d.ts.map +1 -0
- package/dist/authorization/safe/request/verify-jwt-bearer-token-for-audience.js +50 -0
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-audience.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/verify-token-header.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/verify-token-payload.d.ts.map +1 -1
- package/dist/crypto/calculate-combined-hash.d.ts.map +1 -1
- package/dist/crypto/calculate-hash.d.ts +1 -1
- package/dist/crypto/calculate-hash.d.ts.map +1 -1
- package/dist/crypto/calculate-hash.js +1 -1
- package/dist/crypto/index.d.ts +1 -0
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js +1 -0
- package/dist/crypto/private-public-keys/create-key-pair-from-mnemonic.d.ts.map +1 -1
- package/dist/crypto/private-public-keys/create-key-pair-from-private-key.d.ts.map +1 -1
- package/dist/crypto/private-public-keys/create-key-pair-from-private-key.js +1 -1
- package/dist/crypto/private-public-keys/create-key-pair-from-public-key.d.ts +11 -0
- package/dist/crypto/private-public-keys/create-key-pair-from-public-key.d.ts.map +1 -0
- package/dist/crypto/private-public-keys/create-key-pair-from-public-key.js +51 -0
- package/dist/crypto/private-public-keys/generation/create-entropy-for-elliptical-curve.d.ts.map +1 -1
- package/dist/crypto/private-public-keys/generation/generate-key-pair.d.ts.map +1 -1
- package/dist/crypto/private-public-keys/generation/get-private-public-key-from-keypair.d.ts.map +1 -1
- package/dist/crypto/signature/create-crypto-signature.d.ts +11 -0
- package/dist/crypto/signature/create-crypto-signature.d.ts.map +1 -1
- package/dist/crypto/signature/create-crypto-signature.js +14 -1
- package/dist/crypto/signature/verify-crypto-signature-by-data.d.ts +4 -0
- package/dist/crypto/signature/verify-crypto-signature-by-data.d.ts.map +1 -1
- package/dist/crypto/signature/verify-crypto-signature-by-data.js +8 -2
- package/dist/crypto/signature/verify-crypto-signature-by-hash.d.ts +4 -0
- package/dist/crypto/signature/verify-crypto-signature-by-hash.d.ts.map +1 -1
- package/dist/crypto/signature/verify-crypto-signature-by-hash.js +7 -1
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +2 -0
- package/dist/errors/share-data/share-data-errors.d.ts +105 -1
- package/dist/errors/share-data/share-data-errors.d.ts.map +1 -1
- package/dist/errors/share-data/share-data-errors.js +148 -1
- package/dist/errors/shareblock/shareblock-errors.d.ts +40 -0
- package/dist/errors/shareblock/shareblock-errors.d.ts.map +1 -0
- package/dist/errors/shareblock/shareblock-errors.js +50 -0
- package/dist/errors/validation/crypto-validation-errors.d.ts +8 -0
- package/dist/errors/validation/crypto-validation-errors.d.ts.map +1 -0
- package/dist/errors/validation/crypto-validation-errors.js +15 -0
- package/dist/helpers/array/array-helpers.d.ts.map +1 -1
- package/dist/helpers/crypto/cryptography-helpers.d.ts.map +1 -1
- package/dist/helpers/data/data-helpers.d.ts.map +1 -1
- package/dist/helpers/file/file-helpers.d.ts.map +1 -1
- package/dist/helpers/id-helpers.d.ts.map +1 -1
- package/dist/helpers/lodash/lodash-helpers.d.ts.map +1 -1
- package/dist/helpers/object-helpers.d.ts.map +1 -1
- package/dist/helpers/object-validation-helpers.d.ts.map +1 -1
- package/dist/helpers/request/params-object-helpers.d.ts +6 -13
- package/dist/helpers/request/params-object-helpers.d.ts.map +1 -1
- package/dist/helpers/request/params-object-helpers.js +11 -21
- package/dist/helpers/request/query-object-helpers.d.ts.map +1 -1
- package/dist/helpers/request/request-object-helpers.d.ts.map +1 -1
- package/dist/models/application/audit-log/application-audit-log-models.d.ts +82 -92
- package/dist/models/application/audit-log/application-audit-log-models.d.ts.map +1 -1
- package/dist/models/application/database/firestore-models.d.ts +158 -307
- package/dist/models/application/database/firestore-models.d.ts.map +1 -1
- package/dist/models/authorization/authorization-models.d.ts +34 -44
- package/dist/models/authorization/authorization-models.d.ts.map +1 -1
- package/dist/models/authorization/authorization-models.js +2 -2
- package/dist/models/crypto/crypto-models.d.ts +1 -7
- package/dist/models/crypto/crypto-models.d.ts.map +1 -1
- package/dist/models/data/data-models.d.ts +27 -13
- package/dist/models/data/data-models.d.ts.map +1 -1
- package/dist/models/data/data-models.js +23 -2
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts +1 -9
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts.map +1 -1
- package/dist/models/events/share-event-models.d.ts +91 -120
- package/dist/models/events/share-event-models.d.ts.map +1 -1
- package/dist/models/events/share-event-models.js +35 -4
- package/dist/models/functions/share-data-function-models.d.ts +23 -193
- package/dist/models/functions/share-data-function-models.d.ts.map +1 -1
- package/dist/models/functions/share-data-function-models.js +1 -1
- package/dist/models/generic/request-response-models.d.ts +1 -7
- package/dist/models/generic/request-response-models.d.ts.map +1 -1
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +4 -1
- package/dist/models/rules/share-rule-models.d.ts +759 -1116
- package/dist/models/rules/share-rule-models.d.ts.map +1 -1
- package/dist/models/rules/share-rule-models.js +6 -6
- package/dist/models/safe/safe-transaction-models.d.ts +28 -30
- package/dist/models/safe/safe-transaction-models.d.ts.map +1 -1
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts +77 -419
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts.map +1 -1
- package/dist/models/safe/transactions/authorities-transactions-models.js +3 -3
- package/dist/models/safe/transactions/events-transactions-models.d.ts +22 -372
- package/dist/models/safe/transactions/events-transactions-models.d.ts.map +1 -1
- package/dist/models/safe/transactions/events-transactions-models.js +1 -1
- package/dist/models/safe/transactions/functions-transactions-models.d.ts +22 -372
- package/dist/models/safe/transactions/functions-transactions-models.d.ts.map +1 -1
- package/dist/models/safe/transactions/functions-transactions-models.js +1 -1
- package/dist/models/safe/transactions/rules-transactions-models.d.ts +59 -603
- package/dist/models/safe/transactions/rules-transactions-models.d.ts.map +1 -1
- package/dist/models/safe/transactions/sharedata-transactions-models.d.ts +256 -388
- package/dist/models/safe/transactions/sharedata-transactions-models.d.ts.map +1 -1
- package/dist/models/safe/transactions/sharedata-transactions-models.js +30 -4
- package/dist/models/share-data/share-data-crypto-models.d.ts +344 -0
- package/dist/models/share-data/share-data-crypto-models.d.ts.map +1 -0
- package/dist/models/share-data/share-data-crypto-models.js +131 -0
- package/dist/models/share-data/share-data-models.d.ts +114 -0
- package/dist/models/share-data/share-data-models.d.ts.map +1 -0
- package/dist/models/share-data/{share-data.js → share-data-models.js} +1 -1
- package/dist/models/share-data/share-data-persistence-models.d.ts +165 -0
- package/dist/models/share-data/share-data-persistence-models.d.ts.map +1 -0
- package/dist/models/share-data/share-data-persistence-models.js +101 -0
- package/dist/models/shareblock/shareblock-models.d.ts +489 -0
- package/dist/models/shareblock/shareblock-models.d.ts.map +1 -0
- package/dist/models/shareblock/shareblock-models.js +395 -0
- package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts.map +1 -1
- package/dist/transactions/authority/create-safe-transaction-authority.d.ts.map +1 -1
- package/package.json +30 -22
- package/dist/models/share-data/share-data.d.ts +0 -181
- package/dist/models/share-data/share-data.d.ts.map +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MissingRequiredProofError = exports.ShareBlockMissingLoanApplicationIdError = exports.ShareBlockTypeMismatchError = void 0;
|
|
4
|
+
const base_error_1 = require("../base-error");
|
|
5
|
+
/**
|
|
6
|
+
* Thrown by a ShareBlock factory when the supplied metadata's `blockType`
|
|
7
|
+
* doesn't match the factory's variant. Each factory expects a specific
|
|
8
|
+
* `ShareBlockType` — e.g. `createFundingShareBlock` requires
|
|
9
|
+
* `metadata.blockType === ShareBlockType.Funding`.
|
|
10
|
+
*/
|
|
11
|
+
class ShareBlockTypeMismatchError extends base_error_1.BaseError {
|
|
12
|
+
constructor(shareBlockId, expected, received) {
|
|
13
|
+
super(`ShareBlock ${shareBlockId}: factory for type ${expected} received metadata.blockType === ${received}.`);
|
|
14
|
+
this.shareBlockId = shareBlockId;
|
|
15
|
+
this.expected = expected;
|
|
16
|
+
this.received = received;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ShareBlockTypeMismatchError = ShareBlockTypeMismatchError;
|
|
20
|
+
/**
|
|
21
|
+
* Thrown by Funding/Distribution factories when
|
|
22
|
+
* `metadata.relatedLoanApplicationId` is missing. Both variants always tie
|
|
23
|
+
* back to a specific loan application; constructing one without an id is a
|
|
24
|
+
* caller bug (caught at construction rather than first transaction so the
|
|
25
|
+
* error surfaces as close to the wiring mistake as possible).
|
|
26
|
+
*/
|
|
27
|
+
class ShareBlockMissingLoanApplicationIdError extends base_error_1.BaseError {
|
|
28
|
+
constructor(shareBlockId, blockType) {
|
|
29
|
+
super(`ShareBlock ${shareBlockId}: ${blockType} blocks require metadata.relatedLoanApplicationId, none was provided.`);
|
|
30
|
+
this.shareBlockId = shareBlockId;
|
|
31
|
+
this.blockType = blockType;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ShareBlockMissingLoanApplicationIdError = ShareBlockMissingLoanApplicationIdError;
|
|
35
|
+
/**
|
|
36
|
+
* Thrown when a wire-format proof bundle is missing a proof for one of the
|
|
37
|
+
* purposes the target ShareBlock variant requires. The HTTP route uses the
|
|
38
|
+
* per-variant `*_REQUIRED_PROOF_PURPOSES` array (exported from each
|
|
39
|
+
* `create-*-shareblock` module) to detect this early — before any state
|
|
40
|
+
* lands — so callers get one explicit "you forgot purpose X" instead of a
|
|
41
|
+
* confusing chain of verifyStructuralProof failures.
|
|
42
|
+
*/
|
|
43
|
+
class MissingRequiredProofError extends base_error_1.BaseError {
|
|
44
|
+
constructor(blockType, purpose) {
|
|
45
|
+
super(`Missing required proof for purpose '${purpose}' on ${blockType} ShareBlock construction.`);
|
|
46
|
+
this.blockType = blockType;
|
|
47
|
+
this.purpose = purpose;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.MissingRequiredProofError = MissingRequiredProofError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseError } from '../base-error';
|
|
2
|
+
/**
|
|
3
|
+
* This is thrown when the crypto proof is not valid on the shared data object.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ShareDataCryptoProofNotValidError extends BaseError {
|
|
6
|
+
constructor(shareDataId: string, cryptoProof: string, publicKey: string);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=crypto-validation-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto-validation-errors.d.ts","sourceRoot":"","sources":["../../../src/errors/validation/crypto-validation-errors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,qBAAa,iCAAkC,SAAQ,SAAS;gBAChD,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAI1E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This errors when crypto validation fails.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ShareDataCryptoProofNotValidError = void 0;
|
|
5
|
+
const base_error_1 = require("../base-error");
|
|
6
|
+
/**
|
|
7
|
+
* This is thrown when the crypto proof is not valid on the shared data object.
|
|
8
|
+
*/
|
|
9
|
+
class ShareDataCryptoProofNotValidError extends base_error_1.BaseError {
|
|
10
|
+
constructor(shareDataId, cryptoProof, publicKey) {
|
|
11
|
+
super(`The crypto proof ${cryptoProof} for share data with id ${shareDataId} ` +
|
|
12
|
+
`is not valid for public key ${publicKey}.`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.ShareDataCryptoProofNotValidError = ShareDataCryptoProofNotValidError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/array/array-helpers.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"array-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/array/array-helpers.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,GAAI,CAAC,EAAE,eAAe,CAAC,EAAE,KAAG,CAGvD,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,mCAAmC,GAAI,OAAO,OAAO,EAAE,EAAE,MAAM,MAAM,KAAG,OAE7E,CAAC;AAEF,OAAO,EACH,sBAAsB,EACtB,mCAAmC,GACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptography-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/crypto/cryptography-helpers.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"cryptography-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/crypto/cryptography-helpers.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,QAAA,MAAM,WAAW,GAAI,WAAW,MAAM,KAAG,MAExC,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,WAAW,GAAI,cAAc,MAAM,KAAG,MAE3C,CAAC;AAIF;;;;;GAKG;AACH,QAAA,MAAM,iBAAiB,GAAI,QAAQ,MAAM,KAAG,MAK3C,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB,GAAI,QAAQ,MAAM,KAAG,MAK9C,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,GAAI,QAAQ,MAAM,KAAG,MAK5C,CAAC;AAIF,OAAO,EACH,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,WAAW,GACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/data/data-helpers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;;;GAOG;AACH,QAAA,MAAM,sBAAsB,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"data-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/data/data-helpers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;;;GAOG;AACH,QAAA,MAAM,sBAAsB,GAAI,CAAC,EAAE,gBAAgB,GAAG,EAAE,QAAQ,MAAM,EAAE,sBAAiB,KAAG,CAU3F,CAAC;AAGF;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,GAAI,QAAQ,MAAM,EAAE,sBAAiB,KAAG,YAU9D,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,qBAAqB,GAAI,wBAAwB,MAAM,KAAG,gBAgB/D,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,yBAAyB,GAAI,MAAM,GAAG,KAAG,GAQ9C,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,0BAA0B,GAAI,KAAK,MAAM,KAAG,MAEjD,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,yBAAyB,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,MAAM,KAAG,GAO/D,CAAC;AAEF,OAAO,EACH,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,GAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/file/file-helpers.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"file-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/file/file-helpers.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,GACf,SAAS,MAAM,EACf,eAAc,MAAM,EAAO,EAC3B,0BAAuB,EACvB,yBAAsB,EACtB,6BAA0B,KACzB,MAAM,EAyBR,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/id-helpers.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"id-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/id-helpers.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,QAAQ,GAAI,eAAW,KAAG,MAS/B,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lodash-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/lodash/lodash-helpers.ts"],"names":[],"mappings":"AACA;;sDAEsD;AAEtD;;;;;;;GAOG;AACH,QAAA,MAAM,KAAK,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"lodash-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/lodash/lodash-helpers.ts"],"names":[],"mappings":"AACA;;sDAEsD;AAEtD;;;;;;;GAOG;AACH,QAAA,MAAM,KAAK,GAAI,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,eAAY,EAAE,gBAAW,KAAG,CAAC,EAAE,EAW/D,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/object-helpers.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"object-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/object-helpers.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,GAAI,KAAK,MAAM,KAAG,MAK9C,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,uBAAqB,KAAG,CAiB5D,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,GAAI,KAAK,MAAM,KAAG,MAEvC,CAAC;AAEF,OAAO,EACH,uBAAuB,EACvB,eAAe,EACf,gBAAgB,GACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-validation-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/object-validation-helpers.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"object-validation-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/object-validation-helpers.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,GAAI,gBAAgB,OAAO,EAAE,sBAAiB,EAAE,gBAAgB,MAAM,KAAG,OAc3F,CAAC;AAEF;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe,GAAI,gBAAgB,OAAO,EAAE,wBAAsB,KAAG,OAS1E,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,GAAI,gBAAgB,OAAO,EAAE,wBAAsB,EAAE,0BAAwB,EAC3F,iCAA+B,KAAG,OAoCrC,CAAC;AAEF;;;;;;;GAOG;AACH,QAAA,MAAM,cAAc,GAAI,gBAAgB,OAAO,EAAE,MAAM,MAAM,EAAE,MAAM,MAAM,KAAG,OAU7E,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,cAAc,GAAI,gBAAgB,OAAO,EAAE,qBAAmB,EAAE,wBAAsB,EAAE,0BAAwB,KAAG,OAiCxH,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,iBAAiB,GAAI,gBAAgB,OAAO,KAAG,OAepD,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,WAAW,GAAI,aAAa,OAAO,EAAE,wBAAsB,KAAG,OAqBnE,CAAC;AA+CF,OAAO,EACH,aAAa,EACb,eAAe,EACf,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,WAAW,GACd,CAAC"}
|
|
@@ -12,34 +12,34 @@
|
|
|
12
12
|
* @param req the incoming request
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
declare const
|
|
15
|
+
declare const getShareDataId: (req: any) => string;
|
|
16
16
|
/**
|
|
17
17
|
* The function gets the function id from the restful parameter object
|
|
18
18
|
*
|
|
19
19
|
* @param req the incoming request
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
|
-
declare const
|
|
22
|
+
declare const getFunctionId: (req: any) => string;
|
|
23
23
|
/**
|
|
24
24
|
* The function gets the rule id from the restful parameter object
|
|
25
25
|
*
|
|
26
26
|
* @param req the incoming request
|
|
27
27
|
* @returns
|
|
28
28
|
*/
|
|
29
|
-
declare const
|
|
29
|
+
declare const getRulesId: (req: any) => string;
|
|
30
30
|
/**
|
|
31
31
|
* The function gets the rulesets id from the restful parameter object
|
|
32
32
|
* @param req the incoming request
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
|
-
declare const
|
|
35
|
+
declare const getRuleSetsId: (req: any) => string;
|
|
36
36
|
/**
|
|
37
37
|
* The function gets the event id from the restful parameter object
|
|
38
38
|
*
|
|
39
39
|
* @param req the incoming request
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
|
-
declare const
|
|
42
|
+
declare const getEventId: (req: any) => string;
|
|
43
43
|
/**
|
|
44
44
|
* The function gets the authority id from the restful parameter object
|
|
45
45
|
*
|
|
@@ -47,12 +47,5 @@ declare const getParamEventId: (req: any) => string;
|
|
|
47
47
|
* @returns
|
|
48
48
|
*/
|
|
49
49
|
declare const getAuthorityId: (req: any) => string;
|
|
50
|
-
|
|
51
|
-
* The function gets the function id from the restful parameter object
|
|
52
|
-
*
|
|
53
|
-
* @param req the incoming request
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
declare const getFunctionId: (req: any) => string;
|
|
57
|
-
export { getParamShareDataId, getParamFunctionId, getParamRulesId, getParamRuleSetsId, getParamEventId, getAuthorityId, getFunctionId };
|
|
50
|
+
export { getShareDataId, getFunctionId, getRulesId, getRuleSetsId, getEventId, getAuthorityId, };
|
|
58
51
|
//# sourceMappingURL=params-object-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params-object-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/request/params-object-helpers.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAIH;;;;;GAKG;AACH,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"params-object-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/request/params-object-helpers.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAIH;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,KAAK,GAAG,KAAG,MAElC,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,aAAa,GAAI,KAAK,GAAG,KAAG,MAEjC,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,UAAU,GAAI,KAAK,GAAG,KAAG,MAE9B,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,aAAa,GAAI,KAAK,GAAG,KAAG,MAEjC,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,UAAU,GAAI,KAAK,GAAG,KAAG,MAE9B,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,KAAK,GAAG,KAAG,MAElC,CAAA;AAID,OAAO,EACH,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,UAAU,EACV,cAAc,GACjB,CAAA"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
3
|
// This file contains the functions to get the incoming params in the request object.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.getAuthorityId = exports.getEventId = exports.getRuleSetsId = exports.getRulesId = exports.getFunctionId = exports.getShareDataId = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* The pattern for this is:
|
|
8
8
|
* Parameters are always in the request object and lowercase.
|
|
@@ -18,49 +18,49 @@ exports.getFunctionId = exports.getAuthorityId = exports.getParamEventId = expor
|
|
|
18
18
|
* @param req the incoming request
|
|
19
19
|
* @returns
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const getShareDataId = (req) => {
|
|
22
22
|
return req.params.sharedataid;
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
24
|
+
exports.getShareDataId = getShareDataId;
|
|
25
25
|
/**
|
|
26
26
|
* The function gets the function id from the restful parameter object
|
|
27
27
|
*
|
|
28
28
|
* @param req the incoming request
|
|
29
29
|
* @returns
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const getFunctionId = (req) => {
|
|
32
32
|
return req.params.functionid;
|
|
33
33
|
};
|
|
34
|
-
exports.
|
|
34
|
+
exports.getFunctionId = getFunctionId;
|
|
35
35
|
/**
|
|
36
36
|
* The function gets the rule id from the restful parameter object
|
|
37
37
|
*
|
|
38
38
|
* @param req the incoming request
|
|
39
39
|
* @returns
|
|
40
40
|
*/
|
|
41
|
-
const
|
|
41
|
+
const getRulesId = (req) => {
|
|
42
42
|
return req.params.rulesid;
|
|
43
43
|
};
|
|
44
|
-
exports.
|
|
44
|
+
exports.getRulesId = getRulesId;
|
|
45
45
|
/**
|
|
46
46
|
* The function gets the rulesets id from the restful parameter object
|
|
47
47
|
* @param req the incoming request
|
|
48
48
|
* @returns
|
|
49
49
|
*/
|
|
50
|
-
const
|
|
50
|
+
const getRuleSetsId = (req) => {
|
|
51
51
|
return req.params.rulesetsid;
|
|
52
52
|
};
|
|
53
|
-
exports.
|
|
53
|
+
exports.getRuleSetsId = getRuleSetsId;
|
|
54
54
|
/**
|
|
55
55
|
* The function gets the event id from the restful parameter object
|
|
56
56
|
*
|
|
57
57
|
* @param req the incoming request
|
|
58
58
|
* @returns
|
|
59
59
|
*/
|
|
60
|
-
const
|
|
60
|
+
const getEventId = (req) => {
|
|
61
61
|
return req.params.eventid;
|
|
62
62
|
};
|
|
63
|
-
exports.
|
|
63
|
+
exports.getEventId = getEventId;
|
|
64
64
|
/**
|
|
65
65
|
* The function gets the authority id from the restful parameter object
|
|
66
66
|
*
|
|
@@ -71,13 +71,3 @@ const getAuthorityId = (req) => {
|
|
|
71
71
|
return req.params.authorityid;
|
|
72
72
|
};
|
|
73
73
|
exports.getAuthorityId = getAuthorityId;
|
|
74
|
-
/**
|
|
75
|
-
* The function gets the function id from the restful parameter object
|
|
76
|
-
*
|
|
77
|
-
* @param req the incoming request
|
|
78
|
-
* @returns
|
|
79
|
-
*/
|
|
80
|
-
const getFunctionId = (req) => {
|
|
81
|
-
return req.params.functionid;
|
|
82
|
-
};
|
|
83
|
-
exports.getFunctionId = getFunctionId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-object-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/request/query-object-helpers.ts"],"names":[],"mappings":"AACA;;GAEG;AAKH;;;;;GAKG;AACH,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"query-object-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/request/query-object-helpers.ts"],"names":[],"mappings":"AACA;;GAEG;AAKH;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,KAAK,GAAG,KAAG,MAQlC,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-object-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/request/request-object-helpers.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAQxF;;;;;;GAMG;AACH,QAAA,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"request-object-helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/request/request-object-helpers.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAQxF;;;;;;GAMG;AACH,QAAA,MAAM,wBAAwB,GAAI,KAAK,GAAG,EAAE,uBAAuB,qBAAqB,KAAG,IAG1F,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,wBAAwB,GAAI,KAAK,GAAG,KAAG,qBAE5C,CAAA;AAED;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,GAAI,KAAK,GAAG,EAAE,kBAAkB,MAAM,KAAG,IAGjE,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,mBAAmB,GAAI,KAAK,GAAG,KAAG,MAEvC,CAAA;AAGD;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,KAAK,GAAG,EAAE,YAAY,GAAG,KAAG,IAEnD,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,cAAc,GAAI,KAAK,GAAG,KAAG,GAElC,CAAC;AAGF,OAAO,EACH,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,mBAAmB,GACtB,CAAC"}
|
|
@@ -2,37 +2,63 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* This contains the enum for the audit log sub types for the administrator classes.
|
|
4
4
|
*/
|
|
5
|
-
export declare const AdministrationAuditLogSubTypeSchema: z.ZodEnum<
|
|
5
|
+
export declare const AdministrationAuditLogSubTypeSchema: z.ZodEnum<{
|
|
6
|
+
administrator: "administrator";
|
|
7
|
+
}>;
|
|
6
8
|
export type AdministrationAuditLogSubType = z.infer<typeof AdministrationAuditLogSubTypeSchema>;
|
|
7
9
|
/**
|
|
8
10
|
* This contains the enum for the audit log actions.
|
|
9
11
|
*/
|
|
10
|
-
export declare const ApplicationAuditLogActionSchema: z.ZodEnum<
|
|
12
|
+
export declare const ApplicationAuditLogActionSchema: z.ZodEnum<{
|
|
13
|
+
file: "file";
|
|
14
|
+
create: "create";
|
|
15
|
+
update: "update";
|
|
16
|
+
delete: "delete";
|
|
17
|
+
read: "read";
|
|
18
|
+
list: "list";
|
|
19
|
+
}>;
|
|
11
20
|
export type ApplicationAuditLogAction = z.infer<typeof ApplicationAuditLogActionSchema>;
|
|
12
21
|
/**
|
|
13
22
|
* This contains the model for the audit logs that are generated in the system.
|
|
14
23
|
*/
|
|
15
|
-
export declare const ApplicationAuditLogTypeSchema: z.ZodEnum<
|
|
24
|
+
export declare const ApplicationAuditLogTypeSchema: z.ZodEnum<{
|
|
25
|
+
authorizedAuthority: "authorizedAuthority";
|
|
26
|
+
global: "global";
|
|
27
|
+
}>;
|
|
16
28
|
export type ApplicationAuditLogType = z.infer<typeof ApplicationAuditLogTypeSchema>;
|
|
17
29
|
/**
|
|
18
30
|
* This contains the enum for the audit log sub types for the multiple path classes.
|
|
19
31
|
*/
|
|
20
|
-
export declare const MultiplePathAuditLogSubTypeSchema: z.ZodEnum<
|
|
32
|
+
export declare const MultiplePathAuditLogSubTypeSchema: z.ZodEnum<{
|
|
33
|
+
multiplePathALAI: "multiplePathALAI";
|
|
34
|
+
}>;
|
|
21
35
|
export type MultiplePathAuditLogSubType = z.infer<typeof MultiplePathAuditLogSubTypeSchema>;
|
|
22
36
|
/**
|
|
23
37
|
* This contains the enum for the audit log sub types for the public data classes.
|
|
24
38
|
*/
|
|
25
|
-
export declare const PublicDataAuditLogSubTypeSchema: z.ZodEnum<
|
|
39
|
+
export declare const PublicDataAuditLogSubTypeSchema: z.ZodEnum<{
|
|
40
|
+
userRelatedProfile: "userRelatedProfile";
|
|
41
|
+
}>;
|
|
26
42
|
export type PublicDataAuditLogSubType = z.infer<typeof PublicDataAuditLogSubTypeSchema>;
|
|
27
43
|
/**
|
|
28
44
|
* This contains the enum for the audit log sub types for the user classes.
|
|
29
45
|
*/
|
|
30
|
-
export declare const UserAuditLogSubTypeSchema: z.ZodEnum<
|
|
46
|
+
export declare const UserAuditLogSubTypeSchema: z.ZodEnum<{
|
|
47
|
+
profile: "profile";
|
|
48
|
+
}>;
|
|
31
49
|
export type UserAuditLogSubType = z.infer<typeof UserAuditLogSubTypeSchema>;
|
|
32
50
|
/**
|
|
33
51
|
* This contains the enum for the audit log sub types.
|
|
34
52
|
*/
|
|
35
|
-
export declare const ApplicationAuditLogSubTypeSchema: z.ZodUnion<
|
|
53
|
+
export declare const ApplicationAuditLogSubTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
54
|
+
administrator: "administrator";
|
|
55
|
+
}>, z.ZodEnum<{
|
|
56
|
+
multiplePathALAI: "multiplePathALAI";
|
|
57
|
+
}>, z.ZodEnum<{
|
|
58
|
+
userRelatedProfile: "userRelatedProfile";
|
|
59
|
+
}>, z.ZodEnum<{
|
|
60
|
+
profile: "profile";
|
|
61
|
+
}>]>;
|
|
36
62
|
export type ApplicationAuditLogSubType = z.infer<typeof ApplicationAuditLogSubTypeSchema>;
|
|
37
63
|
/**
|
|
38
64
|
* This contains interfaces for the audit logs that are generated in the system.
|
|
@@ -52,13 +78,7 @@ export type ApplicationAuditLogSubType = z.infer<typeof ApplicationAuditLogSubTy
|
|
|
52
78
|
export declare const AdditionalApplicationAuditLogIdsSchema: z.ZodObject<{
|
|
53
79
|
referencePath: z.ZodString;
|
|
54
80
|
referenceId: z.ZodString;
|
|
55
|
-
},
|
|
56
|
-
referencePath: string;
|
|
57
|
-
referenceId: string;
|
|
58
|
-
}, {
|
|
59
|
-
referencePath: string;
|
|
60
|
-
referenceId: string;
|
|
61
|
-
}>;
|
|
81
|
+
}, z.core.$strip>;
|
|
62
82
|
export type IAdditionalApplicationAuditLogIds = z.infer<typeof AdditionalApplicationAuditLogIdsSchema>;
|
|
63
83
|
/**
|
|
64
84
|
* Application Audit Log Unstructured Schema
|
|
@@ -67,45 +87,33 @@ export declare const IApplicationAuditLogUnstructuredSchema: z.ZodObject<{
|
|
|
67
87
|
additionalAuditLogIds: z.ZodArray<z.ZodObject<{
|
|
68
88
|
referencePath: z.ZodString;
|
|
69
89
|
referenceId: z.ZodString;
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
applicationAuditLogAction: z.ZodEnum<{
|
|
92
|
+
file: "file";
|
|
93
|
+
create: "create";
|
|
94
|
+
update: "update";
|
|
95
|
+
delete: "delete";
|
|
96
|
+
read: "read";
|
|
97
|
+
list: "list";
|
|
98
|
+
}>;
|
|
99
|
+
applicationAuditLogType: z.ZodEnum<{
|
|
100
|
+
authorizedAuthority: "authorizedAuthority";
|
|
101
|
+
global: "global";
|
|
102
|
+
}>;
|
|
103
|
+
applicationAuditLogSubType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
104
|
+
administrator: "administrator";
|
|
105
|
+
}>, z.ZodEnum<{
|
|
106
|
+
multiplePathALAI: "multiplePathALAI";
|
|
107
|
+
}>, z.ZodEnum<{
|
|
108
|
+
userRelatedProfile: "userRelatedProfile";
|
|
109
|
+
}>, z.ZodEnum<{
|
|
110
|
+
profile: "profile";
|
|
111
|
+
}>]>;
|
|
80
112
|
createdAt: z.ZodNumber;
|
|
81
113
|
createdBy: z.ZodString;
|
|
82
114
|
currentData: z.ZodOptional<z.ZodAny>;
|
|
83
115
|
previousData: z.ZodOptional<z.ZodAny>;
|
|
84
|
-
},
|
|
85
|
-
additionalAuditLogIds: {
|
|
86
|
-
referencePath: string;
|
|
87
|
-
referenceId: string;
|
|
88
|
-
}[];
|
|
89
|
-
applicationAuditLogAction: "create" | "update" | "delete" | "read" | "list" | "file";
|
|
90
|
-
applicationAuditLogType: "authorizedAuthority" | "global";
|
|
91
|
-
applicationAuditLogSubType: "administrator" | "multiplePathALAI" | "userRelatedProfile" | "profile";
|
|
92
|
-
createdAt: number;
|
|
93
|
-
createdBy: string;
|
|
94
|
-
currentData?: any;
|
|
95
|
-
previousData?: any;
|
|
96
|
-
}, {
|
|
97
|
-
additionalAuditLogIds: {
|
|
98
|
-
referencePath: string;
|
|
99
|
-
referenceId: string;
|
|
100
|
-
}[];
|
|
101
|
-
applicationAuditLogAction: "create" | "update" | "delete" | "read" | "list" | "file";
|
|
102
|
-
applicationAuditLogType: "authorizedAuthority" | "global";
|
|
103
|
-
applicationAuditLogSubType: "administrator" | "multiplePathALAI" | "userRelatedProfile" | "profile";
|
|
104
|
-
createdAt: number;
|
|
105
|
-
createdBy: string;
|
|
106
|
-
currentData?: any;
|
|
107
|
-
previousData?: any;
|
|
108
|
-
}>;
|
|
116
|
+
}, z.core.$strip>;
|
|
109
117
|
export type IApplicationAuditLogUnstructured = z.infer<typeof IApplicationAuditLogUnstructuredSchema>;
|
|
110
118
|
/**
|
|
111
119
|
* This contains the interface for the application audit log.
|
|
@@ -114,58 +122,40 @@ export declare const IApplicationAuditLogSchema: z.ZodObject<{
|
|
|
114
122
|
additionalAuditLogIds: z.ZodArray<z.ZodObject<{
|
|
115
123
|
referencePath: z.ZodString;
|
|
116
124
|
referenceId: z.ZodString;
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
applicationAuditLogAction: z.ZodEnum<{
|
|
127
|
+
file: "file";
|
|
128
|
+
create: "create";
|
|
129
|
+
update: "update";
|
|
130
|
+
delete: "delete";
|
|
131
|
+
read: "read";
|
|
132
|
+
list: "list";
|
|
133
|
+
}>;
|
|
134
|
+
applicationAuditLogType: z.ZodEnum<{
|
|
135
|
+
authorizedAuthority: "authorizedAuthority";
|
|
136
|
+
global: "global";
|
|
137
|
+
}>;
|
|
138
|
+
applicationAuditLogSubType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
139
|
+
administrator: "administrator";
|
|
140
|
+
}>, z.ZodEnum<{
|
|
141
|
+
multiplePathALAI: "multiplePathALAI";
|
|
142
|
+
}>, z.ZodEnum<{
|
|
143
|
+
userRelatedProfile: "userRelatedProfile";
|
|
144
|
+
}>, z.ZodEnum<{
|
|
145
|
+
profile: "profile";
|
|
146
|
+
}>]>;
|
|
127
147
|
createdAt: z.ZodNumber;
|
|
128
148
|
createdBy: z.ZodString;
|
|
129
149
|
currentData: z.ZodOptional<z.ZodAny>;
|
|
130
150
|
previousData: z.ZodOptional<z.ZodAny>;
|
|
131
|
-
},
|
|
132
|
-
additionalAuditLogIds: {
|
|
133
|
-
referencePath: string;
|
|
134
|
-
referenceId: string;
|
|
135
|
-
}[];
|
|
136
|
-
applicationAuditLogAction: "create" | "update" | "delete" | "read" | "list" | "file";
|
|
137
|
-
applicationAuditLogType: "authorizedAuthority" | "global";
|
|
138
|
-
applicationAuditLogSubType: "administrator" | "multiplePathALAI" | "userRelatedProfile" | "profile";
|
|
139
|
-
createdAt: number;
|
|
140
|
-
createdBy: string;
|
|
141
|
-
currentData?: any;
|
|
142
|
-
previousData?: any;
|
|
143
|
-
}, {
|
|
144
|
-
additionalAuditLogIds: {
|
|
145
|
-
referencePath: string;
|
|
146
|
-
referenceId: string;
|
|
147
|
-
}[];
|
|
148
|
-
applicationAuditLogAction: "create" | "update" | "delete" | "read" | "list" | "file";
|
|
149
|
-
applicationAuditLogType: "authorizedAuthority" | "global";
|
|
150
|
-
applicationAuditLogSubType: "administrator" | "multiplePathALAI" | "userRelatedProfile" | "profile";
|
|
151
|
-
createdAt: number;
|
|
152
|
-
createdBy: string;
|
|
153
|
-
currentData?: any;
|
|
154
|
-
previousData?: any;
|
|
155
|
-
}>;
|
|
151
|
+
}, z.core.$strip>;
|
|
156
152
|
export type IApplicationAuditLog = z.infer<typeof IApplicationAuditLogSchema>;
|
|
157
153
|
/**
|
|
158
154
|
* This contains the interface for keeping the query audit log and value.
|
|
159
155
|
*/
|
|
160
156
|
export declare const QueryObjectAndValueForAuditLogSchema: z.ZodObject<{
|
|
161
157
|
queryObject: z.ZodString;
|
|
162
|
-
queryValue: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
163
|
-
},
|
|
164
|
-
queryObject: string;
|
|
165
|
-
queryValue: string | number | boolean;
|
|
166
|
-
}, {
|
|
167
|
-
queryObject: string;
|
|
168
|
-
queryValue: string | number | boolean;
|
|
169
|
-
}>;
|
|
158
|
+
queryValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
159
|
+
}, z.core.$strip>;
|
|
170
160
|
export type IQueryObjectAndValueForAuditLog = z.infer<typeof QueryObjectAndValueForAuditLogSchema>;
|
|
171
161
|
//# sourceMappingURL=application-audit-log-models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-audit-log-models.d.ts","sourceRoot":"","sources":["../../../../src/models/application/audit-log/application-audit-log-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,mCAAmC,
|
|
1
|
+
{"version":3,"file":"application-audit-log-models.d.ts","sourceRoot":"","sources":["../../../../src/models/application/audit-log/application-audit-log-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,mCAAmC;;EAE9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;EAO1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAIxF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;EAGxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,iCAAiC;;EAE5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F;;GAEG;AACH,eAAO,MAAM,+BAA+B;;EAE1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;EAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;IAK3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAO1F;;;GAGG;AAIH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sCAAsC;;;iBAGjD,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEvG;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAGtG;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyC,CAAC;AAEjF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAI9E;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;iBAG/C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|