@bondsports/types 2.5.6 → 2.5.7-c-1
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/attendance/dto/index.d.ts +1 -0
- package/dist/types/attendance/dto/index.js +1 -0
- package/dist/types/attendance/dto/index.js.map +1 -1
- package/dist/types/attendance/dto/organization-attendance.dto.d.ts +23 -0
- package/dist/types/attendance/dto/organization-attendance.dto.js +18 -0
- package/dist/types/attendance/dto/organization-attendance.dto.js.map +1 -0
- package/dist/types/attendance/types/attendance.enums.d.ts +8 -0
- package/dist/types/attendance/types/attendance.enums.js +10 -1
- package/dist/types/attendance/types/attendance.enums.js.map +1 -1
- package/dist/types/attendance/types/index.d.ts +1 -0
- package/dist/types/attendance/types/index.js +1 -0
- package/dist/types/attendance/types/index.js.map +1 -1
- package/dist/types/attendance/types/interfaces/attendance.interfaces.d.ts +63 -0
- package/dist/types/attendance/types/interfaces/attendance.interfaces.js +3 -0
- package/dist/types/attendance/types/interfaces/attendance.interfaces.js.map +1 -0
- package/dist/types/attendance/types/interfaces/index.d.ts +1 -0
- package/dist/types/attendance/types/interfaces/index.js +18 -0
- package/dist/types/attendance/types/interfaces/index.js.map +1 -0
- package/dist/types/audit/entities/audit-action-outbox.entity.d.ts +24 -0
- package/dist/types/audit/entities/audit-action-outbox.entity.js +12 -0
- package/dist/types/audit/entities/audit-action-outbox.entity.js.map +1 -0
- package/dist/types/audit/entities/audit-action.entity.d.ts +31 -0
- package/dist/types/audit/entities/audit-action.entity.js +13 -0
- package/dist/types/audit/entities/audit-action.entity.js.map +1 -0
- package/dist/types/audit/entities/audit-entity.entity.d.ts +15 -0
- package/dist/types/audit/entities/audit-entity.entity.js +12 -0
- package/dist/types/audit/entities/audit-entity.entity.js.map +1 -0
- package/dist/types/audit/entities/audit-event-change.entity.d.ts +15 -0
- package/dist/types/audit/entities/audit-event-change.entity.js +11 -0
- package/dist/types/audit/entities/audit-event-change.entity.js.map +1 -0
- package/dist/types/audit/entities/audit-event.entity.d.ts +20 -0
- package/dist/types/audit/entities/audit-event.entity.js +12 -0
- package/dist/types/audit/entities/audit-event.entity.js.map +1 -0
- package/dist/types/audit/entities/audit-outbox.entity.d.ts +21 -0
- package/dist/types/audit/entities/audit-outbox.entity.js +12 -0
- package/dist/types/audit/entities/audit-outbox.entity.js.map +1 -0
- package/dist/types/audit/entities/index.d.ts +6 -0
- package/dist/types/audit/entities/index.js +23 -0
- package/dist/types/audit/entities/index.js.map +1 -0
- package/dist/types/audit/index.d.ts +6 -0
- package/dist/types/audit/index.js +23 -0
- package/dist/types/audit/index.js.map +1 -0
- package/dist/types/audit/processor/drain/index.d.ts +1 -0
- package/dist/types/audit/processor/drain/index.js +18 -0
- package/dist/types/audit/processor/drain/index.js.map +1 -0
- package/dist/types/audit/processor/drain/types/consts/drain.consts.d.ts +13 -0
- package/dist/types/audit/processor/drain/types/consts/drain.consts.js +17 -0
- package/dist/types/audit/processor/drain/types/consts/drain.consts.js.map +1 -0
- package/dist/types/audit/processor/drain/types/consts/index.d.ts +1 -0
- package/dist/types/audit/processor/drain/types/consts/index.js +18 -0
- package/dist/types/audit/processor/drain/types/consts/index.js.map +1 -0
- package/dist/types/audit/processor/drain/types/enums/audit-drain.enum.d.ts +28 -0
- package/dist/types/audit/processor/drain/types/enums/audit-drain.enum.js +34 -0
- package/dist/types/audit/processor/drain/types/enums/audit-drain.enum.js.map +1 -0
- package/dist/types/audit/processor/drain/types/enums/index.d.ts +1 -0
- package/dist/types/audit/processor/drain/types/enums/index.js +18 -0
- package/dist/types/audit/processor/drain/types/enums/index.js.map +1 -0
- package/dist/types/audit/processor/drain/types/index.d.ts +3 -0
- package/dist/types/audit/processor/drain/types/index.js +20 -0
- package/dist/types/audit/processor/drain/types/index.js.map +1 -0
- package/dist/types/audit/processor/drain/types/interfaces/audit-drain.interfaces.d.ts +74 -0
- package/dist/types/audit/processor/drain/types/interfaces/audit-drain.interfaces.js +3 -0
- package/dist/types/audit/processor/drain/types/interfaces/audit-drain.interfaces.js.map +1 -0
- package/dist/types/audit/processor/drain/types/interfaces/index.d.ts +1 -0
- package/dist/types/audit/processor/drain/types/interfaces/index.js +18 -0
- package/dist/types/audit/processor/drain/types/interfaces/index.js.map +1 -0
- package/dist/types/audit/processor/index.d.ts +2 -0
- package/dist/types/audit/processor/index.js +19 -0
- package/dist/types/audit/processor/index.js.map +1 -0
- package/dist/types/audit/processor/queue/index.d.ts +1 -0
- package/dist/types/audit/processor/queue/index.js +18 -0
- package/dist/types/audit/processor/queue/index.js.map +1 -0
- package/dist/types/audit/processor/queue/types/index.d.ts +1 -0
- package/dist/types/audit/processor/queue/types/index.js +18 -0
- package/dist/types/audit/processor/queue/types/index.js.map +1 -0
- package/dist/types/audit/processor/queue/types/interfaces/audit-drain.interface.d.ts +14 -0
- package/dist/types/audit/processor/queue/types/interfaces/audit-drain.interface.js +3 -0
- package/dist/types/audit/processor/queue/types/interfaces/audit-drain.interface.js.map +1 -0
- package/dist/types/audit/processor/queue/types/interfaces/index.d.ts +1 -0
- package/dist/types/audit/processor/queue/types/interfaces/index.js +18 -0
- package/dist/types/audit/processor/queue/types/interfaces/index.js.map +1 -0
- package/dist/types/audit/producer/index.d.ts +1 -0
- package/dist/types/audit/producer/index.js +18 -0
- package/dist/types/audit/producer/index.js.map +1 -0
- package/dist/types/audit/producer/types/index.d.ts +4 -0
- package/dist/types/audit/producer/types/index.js +21 -0
- package/dist/types/audit/producer/types/index.js.map +1 -0
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.d.ts +26 -0
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.js +3 -0
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.js.map +1 -0
- package/dist/types/audit/producer/types/interfaces/emit-capture-params.interface.d.ts +28 -0
- package/dist/types/audit/producer/types/interfaces/emit-capture-params.interface.js +3 -0
- package/dist/types/audit/producer/types/interfaces/emit-capture-params.interface.js.map +1 -0
- package/dist/types/audit/producer/types/interfaces/index.d.ts +2 -0
- package/dist/types/audit/producer/types/interfaces/index.js +19 -0
- package/dist/types/audit/producer/types/interfaces/index.js.map +1 -0
- package/dist/types/audit/read/dto/audit-action-response.dto.d.ts +21 -0
- package/dist/types/audit/read/dto/audit-action-response.dto.js +8 -0
- package/dist/types/audit/read/dto/audit-action-response.dto.js.map +1 -0
- package/dist/types/audit/read/dto/audit-actor.dto.d.ts +8 -0
- package/dist/types/audit/read/dto/audit-actor.dto.js +8 -0
- package/dist/types/audit/read/dto/audit-actor.dto.js.map +1 -0
- package/dist/types/audit/read/dto/get-audit-actions.dto.d.ts +18 -0
- package/dist/types/audit/read/dto/get-audit-actions.dto.js +15 -0
- package/dist/types/audit/read/dto/get-audit-actions.dto.js.map +1 -0
- package/dist/types/audit/read/dto/index.d.ts +3 -0
- package/dist/types/audit/read/dto/index.js +20 -0
- package/dist/types/audit/read/dto/index.js.map +1 -0
- package/dist/types/audit/read/index.d.ts +2 -0
- package/dist/types/audit/read/index.js +19 -0
- package/dist/types/audit/read/index.js.map +1 -0
- package/dist/types/audit/read/types/consts/audit-read.consts.d.ts +1 -0
- package/dist/types/audit/read/types/consts/audit-read.consts.js +5 -0
- package/dist/types/audit/read/types/consts/audit-read.consts.js.map +1 -0
- package/dist/types/audit/read/types/consts/index.d.ts +1 -0
- package/dist/types/audit/read/types/consts/index.js +18 -0
- package/dist/types/audit/read/types/consts/index.js.map +1 -0
- package/dist/types/audit/read/types/enums/audit-read.enums.d.ts +12 -0
- package/dist/types/audit/read/types/enums/audit-read.enums.js +18 -0
- package/dist/types/audit/read/types/enums/audit-read.enums.js.map +1 -0
- package/dist/types/audit/read/types/enums/index.d.ts +1 -0
- package/dist/types/audit/read/types/enums/index.js +18 -0
- package/dist/types/audit/read/types/enums/index.js.map +1 -0
- package/dist/types/audit/read/types/index.d.ts +3 -0
- package/dist/types/audit/read/types/index.js +20 -0
- package/dist/types/audit/read/types/index.js.map +1 -0
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.d.ts +32 -0
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.js +3 -0
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.js.map +1 -0
- package/dist/types/audit/read/types/interfaces/index.d.ts +1 -0
- package/dist/types/audit/read/types/interfaces/index.js +18 -0
- package/dist/types/audit/read/types/interfaces/index.js.map +1 -0
- package/dist/types/audit/schemas/index.d.ts +1 -0
- package/dist/types/audit/schemas/index.js +18 -0
- package/dist/types/audit/schemas/index.js.map +1 -0
- package/dist/types/audit/schemas/types/audit-json.types.d.ts +25 -0
- package/dist/types/audit/schemas/types/audit-json.types.js +3 -0
- package/dist/types/audit/schemas/types/audit-json.types.js.map +1 -0
- package/dist/types/audit/schemas/types/audit-order.enum.d.ts +9 -0
- package/dist/types/audit/schemas/types/audit-order.enum.js +14 -0
- package/dist/types/audit/schemas/types/audit-order.enum.js.map +1 -0
- package/dist/types/audit/schemas/types/audit-property-kind.enum.d.ts +12 -0
- package/dist/types/audit/schemas/types/audit-property-kind.enum.js +17 -0
- package/dist/types/audit/schemas/types/audit-property-kind.enum.js.map +1 -0
- package/dist/types/audit/schemas/types/audit-schema-typing.types.d.ts +103 -0
- package/dist/types/audit/schemas/types/audit-schema-typing.types.js +3 -0
- package/dist/types/audit/schemas/types/audit-schema-typing.types.js.map +1 -0
- package/dist/types/audit/schemas/types/audit-schema.types.d.ts +121 -0
- package/dist/types/audit/schemas/types/audit-schema.types.js +3 -0
- package/dist/types/audit/schemas/types/audit-schema.types.js.map +1 -0
- package/dist/types/audit/schemas/types/index.d.ts +6 -0
- package/dist/types/audit/schemas/types/index.js +23 -0
- package/dist/types/audit/schemas/types/index.js.map +1 -0
- package/dist/types/audit/schemas/types/property-change.interface.d.ts +16 -0
- package/dist/types/audit/schemas/types/property-change.interface.js +3 -0
- package/dist/types/audit/schemas/types/property-change.interface.js.map +1 -0
- package/dist/types/audit/types/consts/audit-queue.constants.d.ts +63 -0
- package/dist/types/audit/types/consts/audit-queue.constants.js +60 -0
- package/dist/types/audit/types/consts/audit-queue.constants.js.map +1 -0
- package/dist/types/audit/types/consts/index.d.ts +1 -0
- package/dist/types/audit/types/consts/index.js +18 -0
- package/dist/types/audit/types/consts/index.js.map +1 -0
- package/dist/types/audit/types/enums/audit.enums.d.ts +71 -0
- package/dist/types/audit/types/enums/audit.enums.js +81 -0
- package/dist/types/audit/types/enums/audit.enums.js.map +1 -0
- package/dist/types/audit/types/enums/index.d.ts +1 -0
- package/dist/types/audit/types/enums/index.js +18 -0
- package/dist/types/audit/types/enums/index.js.map +1 -0
- package/dist/types/audit/types/index.d.ts +2 -0
- package/dist/types/audit/types/index.js +19 -0
- package/dist/types/audit/types/index.js.map +1 -0
- package/dist/types/cart/dto/cart-item.dto.js +1 -0
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/dto/cart.dto.js.map +1 -1
- package/dist/types/cart/types/consts/cart-request-limits.consts.d.ts +4 -0
- package/dist/types/cart/types/consts/cart-request-limits.consts.js +8 -0
- package/dist/types/cart/types/consts/cart-request-limits.consts.js.map +1 -0
- package/dist/types/cart/types/consts/index.d.ts +1 -0
- package/dist/types/cart/types/consts/index.js +1 -0
- package/dist/types/cart/types/consts/index.js.map +1 -1
- package/dist/types/customers/dto/full-customer.dto.d.ts +1 -0
- package/dist/types/customers/dto/full-customer.dto.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +8 -3
- package/dist/types/dto/application.dto.d.ts +1 -0
- package/dist/types/dto/application.dto.js.map +1 -1
- package/dist/types/dto/customer.dto.d.ts +3 -1
- package/dist/types/dto/customer.dto.js.map +1 -1
- package/dist/types/entity/Customer.d.ts +3 -0
- package/dist/types/entity/Customer.js.map +1 -1
- package/dist/types/filters/types/consts.d.ts +10 -0
- package/dist/types/filters/types/consts.js +13 -1
- package/dist/types/filters/types/consts.js.map +1 -1
- package/dist/types/filters/types/interfaces/filters.interfaces.d.ts +7 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/league-standings/dto/game.dto.d.ts +2 -2
- package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
- package/dist/types/membership/entities/membership.entity.d.ts +2 -0
- package/dist/types/membership/entities/membership.entity.js.map +1 -1
- package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/rental-punch-pass-product.dto.d.ts +2 -2
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +12 -0
- package/dist/types/punch-pass/dto/punch-pass.dto.js +10 -1
- package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
- package/dist/types/punch-pass/types/consts.d.ts +6 -0
- package/dist/types/punch-pass/types/consts.js +17 -1
- package/dist/types/punch-pass/types/consts.js.map +1 -1
- package/dist/types/punch-pass/types/interfaces.d.ts +9 -0
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/questionnaires/types/questions.enum.d.ts +2 -1
- package/dist/types/questionnaires/types/questions.enum.js +1 -0
- package/dist/types/questionnaires/types/questions.enum.js.map +1 -1
- package/dist/types/react/WaiverTemplate/waiver.types.d.ts +83 -14
- package/dist/types/services/enums.service.d.ts +2 -1
- package/dist/types/services/enums.service.js +1 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/standings-integration/dto/game-score.dto.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAuditActionsDto = void 0;
|
|
4
|
+
const general_dto_1 = require("../../../dto/general.dto");
|
|
5
|
+
const enums_service_1 = require("../../../services/enums.service");
|
|
6
|
+
const audit_read_enums_1 = require("../types/enums/audit-read.enums");
|
|
7
|
+
class GetAuditActionsDto extends general_dto_1.PaginationSearchQuery {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.orderBy = audit_read_enums_1.AuditActionsSortEnum.CREATED_AT;
|
|
11
|
+
this.order = enums_service_1.OrderByEnum.DESC;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.GetAuditActionsDto = GetAuditActionsDto;
|
|
15
|
+
//# sourceMappingURL=get-audit-actions.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-audit-actions.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/get-audit-actions.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiE;AACjE,mEAAmG;AAEnG,sEAAgG;AAEhG,MAAa,kBAAmB,SAAQ,mCAA2C;IAAnF;;QAqBC,YAAO,GAA0B,uCAAoB,CAAC,UAAU,CAAC;QAEjE,UAAK,GAAiB,2BAAW,CAAC,IAAI,CAAC;IACxC,CAAC;CAAA;AAxBD,gDAwBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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-action-response.dto"), exports);
|
|
18
|
+
__exportStar(require("./audit-actor.dto"), exports);
|
|
19
|
+
__exportStar(require("./get-audit-actions.dto"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./dto"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/audit/read/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AUDIT_ACTIONS_ALIAS = "auditAction";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-read.consts.js","sourceRoot":"","sources":["../../../../../../src/types/audit/read/types/consts/audit-read.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './audit-read.consts';
|
|
@@ -0,0 +1,18 @@
|
|
|
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-read.consts"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/types/audit/read/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum AuditSearchByFieldsEnum {
|
|
2
|
+
ACTOR = "actor",
|
|
3
|
+
RECORD_NAME = "record_name",
|
|
4
|
+
RECORD_ID = "record_id"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AuditActionsSortEnum {
|
|
7
|
+
CREATED_AT = "createdAt",
|
|
8
|
+
TYPE = "type",
|
|
9
|
+
AREA = "area",
|
|
10
|
+
PARENT_TYPE = "parentType",
|
|
11
|
+
ACTOR_ID = "actorId"
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditActionsSortEnum = exports.AuditSearchByFieldsEnum = void 0;
|
|
4
|
+
var AuditSearchByFieldsEnum;
|
|
5
|
+
(function (AuditSearchByFieldsEnum) {
|
|
6
|
+
AuditSearchByFieldsEnum["ACTOR"] = "actor";
|
|
7
|
+
AuditSearchByFieldsEnum["RECORD_NAME"] = "record_name";
|
|
8
|
+
AuditSearchByFieldsEnum["RECORD_ID"] = "record_id";
|
|
9
|
+
})(AuditSearchByFieldsEnum = exports.AuditSearchByFieldsEnum || (exports.AuditSearchByFieldsEnum = {}));
|
|
10
|
+
var AuditActionsSortEnum;
|
|
11
|
+
(function (AuditActionsSortEnum) {
|
|
12
|
+
AuditActionsSortEnum["CREATED_AT"] = "createdAt";
|
|
13
|
+
AuditActionsSortEnum["TYPE"] = "type";
|
|
14
|
+
AuditActionsSortEnum["AREA"] = "area";
|
|
15
|
+
AuditActionsSortEnum["PARENT_TYPE"] = "parentType";
|
|
16
|
+
AuditActionsSortEnum["ACTOR_ID"] = "actorId";
|
|
17
|
+
})(AuditActionsSortEnum = exports.AuditActionsSortEnum || (exports.AuditActionsSortEnum = {}));
|
|
18
|
+
//# sourceMappingURL=audit-read.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-read.enums.js","sourceRoot":"","sources":["../../../../../../src/types/audit/read/types/enums/audit-read.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAClC,0CAAe,CAAA;IACf,sDAA2B,CAAA;IAC3B,kDAAuB,CAAA;AACxB,CAAC,EAJW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAIlC;AAED,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC/B,gDAAwB,CAAA;IACxB,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,kDAA0B,CAAA;IAC1B,4CAAoB,CAAA;AACrB,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './audit-read.enums';
|
|
@@ -0,0 +1,18 @@
|
|
|
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-read.enums"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/types/audit/read/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./consts"), exports);
|
|
18
|
+
__exportStar(require("./enums"), exports);
|
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PaginationMetaDto } from '../../../../dto/general.dto';
|
|
2
|
+
import { SimpleMediaDto } from '../../../../media/dto/media-public.dto';
|
|
3
|
+
import { PlatformsEnum, ResourceNameTypeEnum } from '../../../../services/enums.service';
|
|
4
|
+
import { AuditAction } from '../../../entities/audit-action.entity';
|
|
5
|
+
import { AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum } from '../../../types/enums/audit.enums';
|
|
6
|
+
export interface IAuditActor {
|
|
7
|
+
id: number;
|
|
8
|
+
customerId?: number;
|
|
9
|
+
mainMedia?: SimpleMediaDto;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IAuditActionResponse {
|
|
13
|
+
id: number;
|
|
14
|
+
organizationId: number;
|
|
15
|
+
actorId?: number;
|
|
16
|
+
facilityId?: number;
|
|
17
|
+
parentId: number;
|
|
18
|
+
traceId?: string;
|
|
19
|
+
actor?: IAuditActor;
|
|
20
|
+
actorType: AuditActorTypeEnum;
|
|
21
|
+
area: AuditAreaEnum;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
name?: AuditActionNameEnum;
|
|
24
|
+
parentName?: string;
|
|
25
|
+
parentType: ResourceNameTypeEnum;
|
|
26
|
+
platform: PlatformsEnum;
|
|
27
|
+
type: AuditActionTypeEnum;
|
|
28
|
+
}
|
|
29
|
+
export interface IAuditActionsPage {
|
|
30
|
+
actions: AuditAction[];
|
|
31
|
+
meta: PaginationMetaDto;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-read.interfaces.js","sourceRoot":"","sources":["../../../../../../src/types/audit/read/types/interfaces/audit-read.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './audit-read.interfaces';
|
|
@@ -0,0 +1,18 @@
|
|
|
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-read.interfaces"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/types/audit/read/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/audit/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A JSONB-compatible value. Audit snapshots, canonical forms, and property
|
|
3
|
+
* change values are all constrained to this shape so they round-trip through
|
|
4
|
+
* PostgreSQL `jsonb` columns without loss.
|
|
5
|
+
*/
|
|
6
|
+
export type AuditJsonValue = string | number | boolean | null | AuditJsonValue[] | IAuditJsonObject;
|
|
7
|
+
/**
|
|
8
|
+
*/
|
|
9
|
+
export interface IAuditJsonObject {
|
|
10
|
+
[key: string]: AuditJsonValue;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A raw entity snapshot as stored in the outbox. Snapshots may carry fields
|
|
14
|
+
* that no schema audits; the differ ignores anything a schema does not list.
|
|
15
|
+
*/
|
|
16
|
+
export interface IAuditSnapshot {
|
|
17
|
+
[key: string]: AuditJsonValue;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A single row of a relation, passed to per-property predicates during
|
|
21
|
+
* canonicalization.
|
|
22
|
+
*/
|
|
23
|
+
export interface IAuditRow {
|
|
24
|
+
[key: string]: AuditJsonValue;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-json.types.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/audit-json.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ordering semantic of a collection property (scalar array or relation).
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AuditOrderEnum {
|
|
5
|
+
/** Business order is meaningful; compared by index. */
|
|
6
|
+
ORDERED = "ordered",
|
|
7
|
+
/** Order is incidental; canonically sorted then compared as a multiset. */
|
|
8
|
+
UNORDERED = "unordered"
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditOrderEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The ordering semantic of a collection property (scalar array or relation).
|
|
6
|
+
*/
|
|
7
|
+
var AuditOrderEnum;
|
|
8
|
+
(function (AuditOrderEnum) {
|
|
9
|
+
/** Business order is meaningful; compared by index. */
|
|
10
|
+
AuditOrderEnum["ORDERED"] = "ordered";
|
|
11
|
+
/** Order is incidental; canonically sorted then compared as a multiset. */
|
|
12
|
+
AuditOrderEnum["UNORDERED"] = "unordered";
|
|
13
|
+
})(AuditOrderEnum = exports.AuditOrderEnum || (exports.AuditOrderEnum = {}));
|
|
14
|
+
//# sourceMappingURL=audit-order.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-order.enum.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/audit-order.enum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACzB,uDAAuD;IACvD,qCAAmB,CAAA;IAEnB,2EAA2E;IAC3E,yCAAuB,CAAA;AACxB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kind of an audited property, controlling how the differ reads and
|
|
3
|
+
* compares its value.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AuditPropertyKindEnum {
|
|
6
|
+
/** A single primitive value read directly off the snapshot. */
|
|
7
|
+
SCALAR = "scalar",
|
|
8
|
+
/** An array of primitive values. */
|
|
9
|
+
SCALAR_ARRAY = "scalar_array",
|
|
10
|
+
/** A shaped nested object or array of objects; canonicalize normalizes to an array of projected rows. */
|
|
11
|
+
EMBEDDED = "embedded"
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditPropertyKindEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The kind of an audited property, controlling how the differ reads and
|
|
6
|
+
* compares its value.
|
|
7
|
+
*/
|
|
8
|
+
var AuditPropertyKindEnum;
|
|
9
|
+
(function (AuditPropertyKindEnum) {
|
|
10
|
+
/** A single primitive value read directly off the snapshot. */
|
|
11
|
+
AuditPropertyKindEnum["SCALAR"] = "scalar";
|
|
12
|
+
/** An array of primitive values. */
|
|
13
|
+
AuditPropertyKindEnum["SCALAR_ARRAY"] = "scalar_array";
|
|
14
|
+
/** A shaped nested object or array of objects; canonicalize normalizes to an array of projected rows. */
|
|
15
|
+
AuditPropertyKindEnum["EMBEDDED"] = "embedded";
|
|
16
|
+
})(AuditPropertyKindEnum = exports.AuditPropertyKindEnum || (exports.AuditPropertyKindEnum = {}));
|
|
17
|
+
//# sourceMappingURL=audit-property-kind.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-property-kind.enum.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/audit-property-kind.enum.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,qBASX;AATD,WAAY,qBAAqB;IAChC,+DAA+D;IAC/D,0CAAiB,CAAA;IAEjB,oCAAoC;IACpC,sDAA6B,CAAA;IAE7B,yGAAyG;IACzG,8CAAqB,CAAA;AACtB,CAAC,EATW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAShC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { AuditJsonValue } from './audit-json.types';
|
|
2
|
+
import { AuditPropertyKindEnum } from './audit-property-kind.enum';
|
|
3
|
+
import { IAuditEntitySchema, IAuditEmbeddedFieldDefinition, IAuditEmbeddedPropertyDefinition, IAuditScalarArrayFieldDefinition, IAuditScalarArrayPropertyDefinition, IAuditScalarFieldDefinition, IAuditScalarPropertyDefinition } from './audit-schema.types';
|
|
4
|
+
/**
|
|
5
|
+
* The string keys of an audited entity class, usable as schema property and
|
|
6
|
+
* field names. Constraining schema keys to this type is the platform's
|
|
7
|
+
* key-drift protection: a typo, a renamed column, or a removed property fails
|
|
8
|
+
* compilation.
|
|
9
|
+
*/
|
|
10
|
+
export type AuditKeyOf<TEntity> = Extract<keyof TEntity, string>;
|
|
11
|
+
/**
|
|
12
|
+
* The row entity behind an embedded property: the array element type for
|
|
13
|
+
* to-many collections, or the type itself for singular embedded values.
|
|
14
|
+
* Canonicalize normalizes singles and arrays identically, so assembly may
|
|
15
|
+
* pass either form.
|
|
16
|
+
*/
|
|
17
|
+
export type AuditRowEntityOf<TValue> = NonNullable<TValue> extends readonly (infer TElement)[] ? TElement : NonNullable<TValue>;
|
|
18
|
+
/**
|
|
19
|
+
* An embedded value shape whose field names are compile-time constrained to
|
|
20
|
+
* the embedded row entity's own keys.
|
|
21
|
+
*/
|
|
22
|
+
export interface IAuditEmbeddedShapeOf<TRow> {
|
|
23
|
+
/** The fields that participate in an embedded row's canonical value. */
|
|
24
|
+
fields: readonly AuditFieldDefinitionOf<TRow>[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* One field of a key-constrained embedded shape, discriminated on `kind`.
|
|
28
|
+
* Nested embedded fields recurse into their own row entity's keys.
|
|
29
|
+
*/
|
|
30
|
+
export type AuditFieldDefinitionOf<TRow> = {
|
|
31
|
+
[K in AuditKeyOf<TRow>]: (IAuditScalarFieldDefinition & {
|
|
32
|
+
name: K;
|
|
33
|
+
}) | (IAuditScalarArrayFieldDefinition & {
|
|
34
|
+
name: K;
|
|
35
|
+
}) | (IAuditEmbeddedFieldDefinition & {
|
|
36
|
+
name: K;
|
|
37
|
+
valueShape: IAuditEmbeddedShapeOf<AuditRowEntityOf<TRow[K]>>;
|
|
38
|
+
});
|
|
39
|
+
}[AuditKeyOf<TRow>];
|
|
40
|
+
/**
|
|
41
|
+
* One top-level audited property of a key-constrained schema, discriminated
|
|
42
|
+
* on `kind`. Relation properties' value shapes recurse into the relation's
|
|
43
|
+
* row entity keys.
|
|
44
|
+
*/
|
|
45
|
+
export type AuditPropertyDefinitionOf<TEntity> = {
|
|
46
|
+
[K in AuditKeyOf<TEntity>]: (IAuditScalarPropertyDefinition & {
|
|
47
|
+
propertyName: K;
|
|
48
|
+
}) | (IAuditScalarArrayPropertyDefinition & {
|
|
49
|
+
propertyName: K;
|
|
50
|
+
}) | (IAuditEmbeddedPropertyDefinition & {
|
|
51
|
+
propertyName: K;
|
|
52
|
+
valueShape: IAuditEmbeddedShapeOf<AuditRowEntityOf<TEntity[K]>>;
|
|
53
|
+
});
|
|
54
|
+
}[AuditKeyOf<TEntity>];
|
|
55
|
+
/**
|
|
56
|
+
* An entity schema whose property keys are compile-time constrained to the
|
|
57
|
+
* audited entity's own keys at every depth. Declare concrete schemas
|
|
58
|
+
* `as const satisfies IAuditEntitySchemaOf<Entity>` so the literal type is
|
|
59
|
+
* preserved for snapshot inference while the constraint is enforced.
|
|
60
|
+
*/
|
|
61
|
+
export interface IAuditEntitySchemaOf<TEntity> extends IAuditEntitySchema {
|
|
62
|
+
/** The audited properties; anything not listed is omitted from diffs. */
|
|
63
|
+
properties: readonly AuditPropertyDefinitionOf<TEntity>[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The structural surface of a relation shape needed for snapshot inference.
|
|
67
|
+
*/
|
|
68
|
+
export interface IAuditShapeStructure {
|
|
69
|
+
/** The shape's participating fields. */
|
|
70
|
+
fields: readonly {
|
|
71
|
+
kind: AuditPropertyKindEnum;
|
|
72
|
+
name: string;
|
|
73
|
+
}[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The snapshot row type inferred from one embedded shape literal: exactly the
|
|
77
|
+
* shape's field names, with nested embedded fields as arrays of their nested
|
|
78
|
+
* row snapshot.
|
|
79
|
+
*/
|
|
80
|
+
export type AuditRowSnapshotOf<TShape extends IAuditShapeStructure> = {
|
|
81
|
+
[F in TShape['fields'][number] as F['name']]: F extends {
|
|
82
|
+
kind: AuditPropertyKindEnum.EMBEDDED;
|
|
83
|
+
valueShape: infer TNested extends IAuditShapeStructure;
|
|
84
|
+
} ? AuditRowSnapshotOf<TNested>[] : F extends {
|
|
85
|
+
kind: AuditPropertyKindEnum.SCALAR_ARRAY;
|
|
86
|
+
} ? AuditJsonValue[] : AuditJsonValue;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The snapshot type structurally inferred from a schema literal: exactly the
|
|
90
|
+
* audited keys; every embedded property an array of its shape's row snapshot
|
|
91
|
+
* (singular embedded values included — canonicalize normalizes a single
|
|
92
|
+
* object to a one-row array); scalar-array properties as arrays; scalar
|
|
93
|
+
* projected from entity property types — the compile-time guarantee lives in
|
|
94
|
+
* the key constraints.
|
|
95
|
+
*/
|
|
96
|
+
export type AuditSnapshotOf<TSchema extends IAuditEntitySchema> = {
|
|
97
|
+
[P in TSchema['properties'][number] as P['propertyName']]: P extends {
|
|
98
|
+
kind: AuditPropertyKindEnum.EMBEDDED;
|
|
99
|
+
valueShape: infer TShape extends IAuditShapeStructure;
|
|
100
|
+
} ? AuditRowSnapshotOf<TShape>[] : P extends {
|
|
101
|
+
kind: AuditPropertyKindEnum.SCALAR_ARRAY;
|
|
102
|
+
} ? AuditJsonValue[] : AuditJsonValue;
|
|
103
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-schema-typing.types.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/audit-schema-typing.types.ts"],"names":[],"mappings":""}
|