@bondsports/types 2.5.7-c-1 → 2.5.7-squad-b-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/cart/dto/cart-item-public.dto.d.ts +27 -1
- package/dist/types/cart/dto/cart-item-public.dto.js +26 -1
- package/dist/types/cart/dto/cart-item-public.dto.js.map +1 -1
- package/dist/types/cart/dto/cart-item.dto.d.ts +18 -4
- package/dist/types/cart/dto/cart-item.dto.js +17 -3
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/dto/cart-public.dto.d.ts +15 -1
- package/dist/types/cart/dto/cart-public.dto.js +15 -1
- package/dist/types/cart/dto/cart-public.dto.js.map +1 -1
- package/dist/types/cart/dto/cart.dto.d.ts +4 -0
- package/dist/types/cart/dto/cart.dto.js +4 -0
- package/dist/types/cart/dto/cart.dto.js.map +1 -1
- package/dist/types/cart/types/consts/cart-public-api-examples.consts.d.ts +101 -0
- package/dist/types/cart/types/consts/cart-public-api-examples.consts.js +137 -0
- package/dist/types/cart/types/consts/cart-public-api-examples.consts.js.map +1 -0
- package/dist/types/cart/types/consts/cart-request-limits.consts.d.ts +2 -0
- package/dist/types/cart/types/consts/cart-request-limits.consts.js +3 -1
- package/dist/types/cart/types/consts/cart-request-limits.consts.js.map +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +1 -0
- package/dist/types/cart/types/consts/cart.consts.js +1 -0
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- 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/types/interfaces.d.ts +2 -2
- package/dist/types/filters/types/consts.d.ts +2 -0
- package/dist/types/filters/types/consts.js +2 -0
- package/dist/types/filters/types/consts.js.map +1 -1
- package/dist/types/filters/types/enums/filter.enums.d.ts +2 -1
- package/dist/types/filters/types/enums/filter.enums.js +1 -0
- package/dist/types/filters/types/enums/filter.enums.js.map +1 -1
- package/dist/types/filters/types/interfaces/filters.interfaces.d.ts +11 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/product-pricing/dto/rental-punch-pass-product.dto.d.ts +2 -2
- package/dist/types/program-portals/index.js.map +1 -0
- package/dist/types/program-portals/types/classes/index.d.ts +2 -0
- package/dist/types/program-portals/types/classes/index.js +19 -0
- package/dist/types/program-portals/types/classes/index.js.map +1 -0
- package/dist/types/program-portals/types/classes/program-portal-options.class.d.ts +24 -0
- package/dist/types/program-portals/types/classes/program-portal-options.class.js +13 -0
- package/dist/types/program-portals/types/classes/program-portal-options.class.js.map +1 -0
- package/dist/types/program-portals/types/classes/program-portal.class.d.ts +14 -0
- package/dist/types/program-portals/types/classes/program-portal.class.js +8 -0
- package/dist/types/program-portals/types/classes/program-portal.class.js.map +1 -0
- package/dist/types/program-portals/types/consts/index.d.ts +1 -0
- package/dist/types/{audit/processor/drain/types/interfaces → program-portals/types/consts}/index.js +1 -1
- package/dist/types/program-portals/types/consts/index.js.map +1 -0
- package/dist/types/program-portals/types/consts/program-portals.consts.d.ts +14 -0
- package/dist/types/program-portals/types/consts/program-portals.consts.js +31 -0
- package/dist/types/program-portals/types/consts/program-portals.consts.js.map +1 -0
- package/dist/types/program-portals/types/dto/index.d.ts +1 -0
- package/dist/types/program-portals/types/dto/index.js +18 -0
- package/dist/types/program-portals/types/dto/index.js.map +1 -0
- package/dist/types/program-portals/types/dto/program-portals.dto.d.ts +91 -0
- package/dist/types/program-portals/types/dto/program-portals.dto.js +53 -0
- package/dist/types/program-portals/types/dto/program-portals.dto.js.map +1 -0
- package/dist/types/program-portals/types/enums/index.d.ts +1 -0
- package/dist/types/program-portals/types/enums/index.js +18 -0
- package/dist/types/program-portals/types/enums/index.js.map +1 -0
- package/dist/types/program-portals/types/enums/program-portals.enums.d.ts +20 -0
- package/dist/types/program-portals/types/enums/program-portals.enums.js +28 -0
- package/dist/types/program-portals/types/enums/program-portals.enums.js.map +1 -0
- package/dist/types/{audit/read → program-portals}/types/index.d.ts +2 -0
- package/dist/types/{audit/read → program-portals}/types/index.js +2 -0
- package/dist/types/program-portals/types/index.js.map +1 -0
- package/dist/types/program-portals/types/interfaces/index.d.ts +1 -0
- package/dist/types/program-portals/types/interfaces/index.js +18 -0
- package/dist/types/program-portals/types/interfaces/index.js.map +1 -0
- package/dist/types/program-portals/types/interfaces/program-portals.interfaces.d.ts +22 -0
- package/dist/types/{audit/processor/queue/types/interfaces/audit-drain.interface.js → program-portals/types/interfaces/program-portals.interfaces.js} +1 -1
- package/dist/types/program-portals/types/interfaces/program-portals.interfaces.js.map +1 -0
- package/dist/types/programs/dto/segment-public.dto.d.ts +3 -0
- package/dist/types/programs/dto/segment-public.dto.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-session.dto.d.ts +3 -0
- package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +3 -0
- package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +0 -12
- package/dist/types/punch-pass/dto/punch-pass.dto.js +1 -10
- package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
- package/dist/types/punch-pass/types/consts.d.ts +0 -6
- package/dist/types/punch-pass/types/consts.js +1 -17
- package/dist/types/punch-pass/types/consts.js.map +1 -1
- package/dist/types/punch-pass/types/interfaces.d.ts +0 -9
- package/dist/types/purchase/dto/purchase.dto.d.ts +8 -2
- package/dist/types/purchase/dto/purchase.dto.js +9 -2
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/segment-tags/entities/index.d.ts +1 -0
- package/dist/types/segment-tags/entities/index.js +18 -0
- package/dist/types/segment-tags/entities/index.js.map +1 -0
- package/dist/types/segment-tags/entities/segment-tag.entity.d.ts +5 -0
- package/dist/types/segment-tags/entities/segment-tag.entity.js +8 -0
- package/dist/types/segment-tags/entities/segment-tag.entity.js.map +1 -0
- package/dist/types/segment-tags/index.d.ts +2 -0
- package/dist/types/{audit/processor/queue → segment-tags}/index.js +1 -0
- package/dist/types/segment-tags/index.js.map +1 -0
- package/dist/types/segment-tags/types/dto/index.d.ts +1 -0
- package/dist/types/{audit/processor/drain/types/enums → segment-tags/types/dto}/index.js +1 -1
- package/dist/types/segment-tags/types/dto/index.js.map +1 -0
- package/dist/types/segment-tags/types/dto/segment-tags.dto.d.ts +22 -0
- package/dist/types/segment-tags/types/dto/segment-tags.dto.js +21 -0
- package/dist/types/segment-tags/types/dto/segment-tags.dto.js.map +1 -0
- package/dist/types/segment-tags/types/enums/index.d.ts +1 -0
- package/dist/types/{audit/processor/drain/types/consts → segment-tags/types/enums}/index.js +1 -1
- package/dist/types/segment-tags/types/enums/index.js.map +1 -0
- package/dist/types/segment-tags/types/enums/segment-tag.enum.d.ts +4 -0
- package/dist/types/segment-tags/types/enums/segment-tag.enum.js +9 -0
- package/dist/types/segment-tags/types/enums/segment-tag.enum.js.map +1 -0
- package/dist/types/{audit/processor/drain → segment-tags}/types/index.d.ts +1 -1
- package/dist/types/{audit/processor/drain → segment-tags}/types/index.js +1 -1
- package/dist/types/segment-tags/types/index.js.map +1 -0
- package/dist/types/segment-tags/types/interfaces/index.d.ts +1 -0
- package/dist/types/segment-tags/types/interfaces/index.js +18 -0
- package/dist/types/segment-tags/types/interfaces/index.js.map +1 -0
- package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.d.ts +7 -0
- package/dist/types/{audit/processor/drain/types/interfaces/audit-drain.interfaces.js → segment-tags/types/interfaces/segment-tag.interfaces.js} +1 -1
- package/dist/types/segment-tags/types/interfaces/segment-tag.interfaces.js.map +1 -0
- package/dist/types/services/enums.service.d.ts +2 -2
- package/dist/types/services/enums.service.js +7 -3
- package/dist/types/services/enums.service.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/audit/entities/audit-action-outbox.entity.d.ts +0 -24
- package/dist/types/audit/entities/audit-action-outbox.entity.js +0 -12
- package/dist/types/audit/entities/audit-action-outbox.entity.js.map +0 -1
- package/dist/types/audit/entities/audit-action.entity.d.ts +0 -31
- package/dist/types/audit/entities/audit-action.entity.js +0 -13
- package/dist/types/audit/entities/audit-action.entity.js.map +0 -1
- package/dist/types/audit/entities/audit-entity.entity.d.ts +0 -15
- package/dist/types/audit/entities/audit-entity.entity.js +0 -12
- package/dist/types/audit/entities/audit-entity.entity.js.map +0 -1
- package/dist/types/audit/entities/audit-event-change.entity.d.ts +0 -15
- package/dist/types/audit/entities/audit-event-change.entity.js +0 -11
- package/dist/types/audit/entities/audit-event-change.entity.js.map +0 -1
- package/dist/types/audit/entities/audit-event.entity.d.ts +0 -20
- package/dist/types/audit/entities/audit-event.entity.js +0 -12
- package/dist/types/audit/entities/audit-event.entity.js.map +0 -1
- package/dist/types/audit/entities/audit-outbox.entity.d.ts +0 -21
- package/dist/types/audit/entities/audit-outbox.entity.js +0 -12
- package/dist/types/audit/entities/audit-outbox.entity.js.map +0 -1
- package/dist/types/audit/entities/index.d.ts +0 -6
- package/dist/types/audit/entities/index.js +0 -23
- package/dist/types/audit/entities/index.js.map +0 -1
- package/dist/types/audit/index.d.ts +0 -6
- package/dist/types/audit/index.js +0 -23
- package/dist/types/audit/index.js.map +0 -1
- package/dist/types/audit/processor/drain/index.js.map +0 -1
- package/dist/types/audit/processor/drain/types/consts/drain.consts.d.ts +0 -13
- package/dist/types/audit/processor/drain/types/consts/drain.consts.js +0 -17
- package/dist/types/audit/processor/drain/types/consts/drain.consts.js.map +0 -1
- package/dist/types/audit/processor/drain/types/consts/index.d.ts +0 -1
- package/dist/types/audit/processor/drain/types/consts/index.js.map +0 -1
- package/dist/types/audit/processor/drain/types/enums/audit-drain.enum.d.ts +0 -28
- package/dist/types/audit/processor/drain/types/enums/audit-drain.enum.js +0 -34
- package/dist/types/audit/processor/drain/types/enums/audit-drain.enum.js.map +0 -1
- package/dist/types/audit/processor/drain/types/enums/index.d.ts +0 -1
- package/dist/types/audit/processor/drain/types/enums/index.js.map +0 -1
- package/dist/types/audit/processor/drain/types/index.js.map +0 -1
- package/dist/types/audit/processor/drain/types/interfaces/audit-drain.interfaces.d.ts +0 -74
- package/dist/types/audit/processor/drain/types/interfaces/audit-drain.interfaces.js.map +0 -1
- package/dist/types/audit/processor/drain/types/interfaces/index.d.ts +0 -1
- package/dist/types/audit/processor/drain/types/interfaces/index.js.map +0 -1
- package/dist/types/audit/processor/index.d.ts +0 -2
- package/dist/types/audit/processor/index.js +0 -19
- package/dist/types/audit/processor/index.js.map +0 -1
- package/dist/types/audit/processor/queue/index.d.ts +0 -1
- package/dist/types/audit/processor/queue/index.js.map +0 -1
- package/dist/types/audit/processor/queue/types/index.d.ts +0 -1
- package/dist/types/audit/processor/queue/types/index.js +0 -18
- package/dist/types/audit/processor/queue/types/index.js.map +0 -1
- package/dist/types/audit/processor/queue/types/interfaces/audit-drain.interface.d.ts +0 -14
- package/dist/types/audit/processor/queue/types/interfaces/audit-drain.interface.js.map +0 -1
- package/dist/types/audit/processor/queue/types/interfaces/index.d.ts +0 -1
- package/dist/types/audit/processor/queue/types/interfaces/index.js +0 -18
- package/dist/types/audit/processor/queue/types/interfaces/index.js.map +0 -1
- package/dist/types/audit/producer/index.d.ts +0 -1
- package/dist/types/audit/producer/index.js +0 -18
- package/dist/types/audit/producer/index.js.map +0 -1
- package/dist/types/audit/producer/types/index.d.ts +0 -4
- package/dist/types/audit/producer/types/index.js +0 -21
- package/dist/types/audit/producer/types/index.js.map +0 -1
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.d.ts +0 -26
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.js +0 -3
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.js.map +0 -1
- package/dist/types/audit/producer/types/interfaces/emit-capture-params.interface.d.ts +0 -28
- package/dist/types/audit/producer/types/interfaces/emit-capture-params.interface.js +0 -3
- package/dist/types/audit/producer/types/interfaces/emit-capture-params.interface.js.map +0 -1
- package/dist/types/audit/producer/types/interfaces/index.d.ts +0 -2
- package/dist/types/audit/producer/types/interfaces/index.js +0 -19
- package/dist/types/audit/producer/types/interfaces/index.js.map +0 -1
- package/dist/types/audit/read/dto/audit-action-response.dto.d.ts +0 -21
- package/dist/types/audit/read/dto/audit-action-response.dto.js +0 -8
- package/dist/types/audit/read/dto/audit-action-response.dto.js.map +0 -1
- package/dist/types/audit/read/dto/audit-actor.dto.d.ts +0 -8
- package/dist/types/audit/read/dto/audit-actor.dto.js +0 -8
- package/dist/types/audit/read/dto/audit-actor.dto.js.map +0 -1
- package/dist/types/audit/read/dto/get-audit-actions.dto.d.ts +0 -18
- package/dist/types/audit/read/dto/get-audit-actions.dto.js +0 -15
- package/dist/types/audit/read/dto/get-audit-actions.dto.js.map +0 -1
- package/dist/types/audit/read/dto/index.d.ts +0 -3
- package/dist/types/audit/read/dto/index.js +0 -20
- package/dist/types/audit/read/dto/index.js.map +0 -1
- package/dist/types/audit/read/index.d.ts +0 -2
- package/dist/types/audit/read/index.js +0 -19
- package/dist/types/audit/read/index.js.map +0 -1
- package/dist/types/audit/read/types/consts/audit-read.consts.d.ts +0 -1
- package/dist/types/audit/read/types/consts/audit-read.consts.js +0 -5
- package/dist/types/audit/read/types/consts/audit-read.consts.js.map +0 -1
- package/dist/types/audit/read/types/consts/index.d.ts +0 -1
- package/dist/types/audit/read/types/consts/index.js +0 -18
- package/dist/types/audit/read/types/consts/index.js.map +0 -1
- package/dist/types/audit/read/types/enums/audit-read.enums.d.ts +0 -12
- package/dist/types/audit/read/types/enums/audit-read.enums.js +0 -18
- package/dist/types/audit/read/types/enums/audit-read.enums.js.map +0 -1
- package/dist/types/audit/read/types/enums/index.d.ts +0 -1
- package/dist/types/audit/read/types/enums/index.js +0 -18
- package/dist/types/audit/read/types/enums/index.js.map +0 -1
- package/dist/types/audit/read/types/index.js.map +0 -1
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.d.ts +0 -32
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.js +0 -3
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.js.map +0 -1
- package/dist/types/audit/read/types/interfaces/index.d.ts +0 -1
- package/dist/types/audit/read/types/interfaces/index.js +0 -18
- package/dist/types/audit/read/types/interfaces/index.js.map +0 -1
- package/dist/types/audit/schemas/index.d.ts +0 -1
- package/dist/types/audit/schemas/index.js +0 -18
- package/dist/types/audit/schemas/index.js.map +0 -1
- package/dist/types/audit/schemas/types/audit-json.types.d.ts +0 -25
- package/dist/types/audit/schemas/types/audit-json.types.js +0 -3
- package/dist/types/audit/schemas/types/audit-json.types.js.map +0 -1
- package/dist/types/audit/schemas/types/audit-order.enum.d.ts +0 -9
- package/dist/types/audit/schemas/types/audit-order.enum.js +0 -14
- package/dist/types/audit/schemas/types/audit-order.enum.js.map +0 -1
- package/dist/types/audit/schemas/types/audit-property-kind.enum.d.ts +0 -12
- package/dist/types/audit/schemas/types/audit-property-kind.enum.js +0 -17
- package/dist/types/audit/schemas/types/audit-property-kind.enum.js.map +0 -1
- package/dist/types/audit/schemas/types/audit-schema-typing.types.d.ts +0 -103
- package/dist/types/audit/schemas/types/audit-schema-typing.types.js +0 -3
- package/dist/types/audit/schemas/types/audit-schema-typing.types.js.map +0 -1
- package/dist/types/audit/schemas/types/audit-schema.types.d.ts +0 -121
- package/dist/types/audit/schemas/types/audit-schema.types.js +0 -3
- package/dist/types/audit/schemas/types/audit-schema.types.js.map +0 -1
- package/dist/types/audit/schemas/types/index.d.ts +0 -6
- package/dist/types/audit/schemas/types/index.js +0 -23
- package/dist/types/audit/schemas/types/index.js.map +0 -1
- package/dist/types/audit/schemas/types/property-change.interface.d.ts +0 -16
- package/dist/types/audit/schemas/types/property-change.interface.js +0 -3
- package/dist/types/audit/schemas/types/property-change.interface.js.map +0 -1
- package/dist/types/audit/types/consts/audit-queue.constants.d.ts +0 -63
- package/dist/types/audit/types/consts/audit-queue.constants.js +0 -60
- package/dist/types/audit/types/consts/audit-queue.constants.js.map +0 -1
- package/dist/types/audit/types/consts/index.d.ts +0 -1
- package/dist/types/audit/types/consts/index.js +0 -18
- package/dist/types/audit/types/consts/index.js.map +0 -1
- package/dist/types/audit/types/enums/audit.enums.d.ts +0 -71
- package/dist/types/audit/types/enums/audit.enums.js +0 -81
- package/dist/types/audit/types/enums/audit.enums.js.map +0 -1
- package/dist/types/audit/types/enums/index.d.ts +0 -1
- package/dist/types/audit/types/enums/index.js +0 -18
- package/dist/types/audit/types/enums/index.js.map +0 -1
- package/dist/types/audit/types/index.d.ts +0 -2
- package/dist/types/audit/types/index.js +0 -19
- package/dist/types/audit/types/index.js.map +0 -1
- /package/dist/types/{audit/processor/drain → program-portals}/index.d.ts +0 -0
- /package/dist/types/{audit/processor/drain → program-portals}/index.js +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/audit/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-json.types.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/audit-json.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,103 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-schema-typing.types.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/audit-schema-typing.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
2
|
-
import { IAuditRow } from './audit-json.types';
|
|
3
|
-
import { AuditOrderEnum } from './audit-order.enum';
|
|
4
|
-
import { AuditPropertyKindEnum } from './audit-property-kind.enum';
|
|
5
|
-
/**
|
|
6
|
-
* A pure predicate over the row that contains a field. Returning `false`
|
|
7
|
-
* excludes the field from that row's canonical value, as if the field were
|
|
8
|
-
* not listed in the shape for that row.
|
|
9
|
-
*/
|
|
10
|
-
export type AuditRowPredicate = (row: IAuditRow) => boolean;
|
|
11
|
-
/**
|
|
12
|
-
* A scalar field inside an embedded value shape.
|
|
13
|
-
*/
|
|
14
|
-
export interface IAuditScalarFieldDefinition {
|
|
15
|
-
/** Optional per-row predicate gating this field's participation. */
|
|
16
|
-
condition?: AuditRowPredicate;
|
|
17
|
-
/** Marks the field as a single primitive value. */
|
|
18
|
-
kind: AuditPropertyKindEnum.SCALAR;
|
|
19
|
-
/** The field's key on the embedded row. */
|
|
20
|
-
name: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* A scalar-array field inside an embedded value shape.
|
|
24
|
-
*/
|
|
25
|
-
export interface IAuditScalarArrayFieldDefinition {
|
|
26
|
-
/** Optional per-row predicate gating this field's participation. */
|
|
27
|
-
condition?: AuditRowPredicate;
|
|
28
|
-
/** Marks the field as an array of primitive values. */
|
|
29
|
-
kind: AuditPropertyKindEnum.SCALAR_ARRAY;
|
|
30
|
-
/** The field's key on the embedded row. */
|
|
31
|
-
name: string;
|
|
32
|
-
/** Ordering semantic; defaults to ordered. */
|
|
33
|
-
order?: AuditOrderEnum;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* A nested embedded field inside an embedded value shape. Its own participants
|
|
37
|
-
* are governed by the mandatory nested `valueShape`. Canonicalize accepts a
|
|
38
|
-
* single object or an array of objects for the field's value.
|
|
39
|
-
*/
|
|
40
|
-
export interface IAuditEmbeddedFieldDefinition {
|
|
41
|
-
/** Optional per-row predicate gating this field's participation. */
|
|
42
|
-
condition?: AuditRowPredicate;
|
|
43
|
-
/** Marks the field as a nested embedded structure. */
|
|
44
|
-
kind: AuditPropertyKindEnum.EMBEDDED;
|
|
45
|
-
/** The field's key on the embedded row. */
|
|
46
|
-
name: string;
|
|
47
|
-
/** Ordering semantic; defaults to ordered. */
|
|
48
|
-
order?: AuditOrderEnum;
|
|
49
|
-
/** The nested value shape listing the participating fields. */
|
|
50
|
-
valueShape: IAuditEmbeddedShape;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* One field participating in an embedded value shape, discriminated on
|
|
54
|
-
* `kind`. Fields are explicit at every depth: a field absent from `fields`
|
|
55
|
-
* does not participate, and embedded fields must declare their `valueShape`.
|
|
56
|
-
*/
|
|
57
|
-
export type AuditFieldDefinition = IAuditScalarFieldDefinition | IAuditScalarArrayFieldDefinition | IAuditEmbeddedFieldDefinition;
|
|
58
|
-
/**
|
|
59
|
-
* A reusable embedded value shape. Defined once and referenced from multiple
|
|
60
|
-
* properties and multiple entity schemas.
|
|
61
|
-
*/
|
|
62
|
-
export interface IAuditEmbeddedShape {
|
|
63
|
-
/** The fields that participate in an embedded row's canonical value. */
|
|
64
|
-
fields: readonly AuditFieldDefinition[];
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* A top-level scalar property of an entity.
|
|
68
|
-
*/
|
|
69
|
-
export interface IAuditScalarPropertyDefinition {
|
|
70
|
-
/** Marks the property as a single primitive value. */
|
|
71
|
-
kind: AuditPropertyKindEnum.SCALAR;
|
|
72
|
-
/** The property's key on the entity snapshot. */
|
|
73
|
-
propertyName: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* A top-level scalar-array property of an entity.
|
|
77
|
-
*/
|
|
78
|
-
export interface IAuditScalarArrayPropertyDefinition {
|
|
79
|
-
/** Marks the property as an array of primitive values. */
|
|
80
|
-
kind: AuditPropertyKindEnum.SCALAR_ARRAY;
|
|
81
|
-
/** Ordering semantic; defaults to ordered. */
|
|
82
|
-
order?: AuditOrderEnum;
|
|
83
|
-
/** The property's key on the entity snapshot. */
|
|
84
|
-
propertyName: string;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* A top-level embedded property of an entity. Its participating fields are
|
|
88
|
-
* governed by the mandatory `valueShape`. Canonicalize accepts a single
|
|
89
|
-
* object or an array of objects for the property's value.
|
|
90
|
-
*/
|
|
91
|
-
export interface IAuditEmbeddedPropertyDefinition {
|
|
92
|
-
/** Marks the property as an embedded structure compared at whole-collection granularity. */
|
|
93
|
-
kind: AuditPropertyKindEnum.EMBEDDED;
|
|
94
|
-
/** Ordering semantic; defaults to ordered. */
|
|
95
|
-
order?: AuditOrderEnum;
|
|
96
|
-
/** The property's key on the entity snapshot. */
|
|
97
|
-
propertyName: string;
|
|
98
|
-
/** The value shape listing the participating fields. */
|
|
99
|
-
valueShape: IAuditEmbeddedShape;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* A top-level audited property of an entity, discriminated on `kind`.
|
|
103
|
-
* Embedded properties must declare their `valueShape`.
|
|
104
|
-
*/
|
|
105
|
-
export type AuditPropertyDefinition = IAuditScalarPropertyDefinition | IAuditScalarArrayPropertyDefinition | IAuditEmbeddedPropertyDefinition;
|
|
106
|
-
/**
|
|
107
|
-
* A declarative, entity-agnostic description of which properties are audited
|
|
108
|
-
* for a given entity type and how each is compared.
|
|
109
|
-
*/
|
|
110
|
-
export interface IAuditEntitySchema {
|
|
111
|
-
/** The entity type this schema audits. */
|
|
112
|
-
entityType: ResourceNameTypeEnum;
|
|
113
|
-
/** The audited properties; anything not listed is omitted from diffs. */
|
|
114
|
-
properties: readonly AuditPropertyDefinition[];
|
|
115
|
-
/**
|
|
116
|
-
* The diff-semantics version this schema was authored under. The processor
|
|
117
|
-
* stamps it on every event produced with this schema; any change to the
|
|
118
|
-
* schema's property inventory or value shapes must bump it.
|
|
119
|
-
*/
|
|
120
|
-
semanticsVersion: number;
|
|
121
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-schema.types.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/audit-schema.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./audit-json.types"), exports);
|
|
18
|
-
__exportStar(require("./audit-order.enum"), exports);
|
|
19
|
-
__exportStar(require("./audit-property-kind.enum"), exports);
|
|
20
|
-
__exportStar(require("./audit-schema-typing.types"), exports);
|
|
21
|
-
__exportStar(require("./audit-schema.types"), exports);
|
|
22
|
-
__exportStar(require("./property-change.interface"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,qDAAmC;AACnC,6DAA2C;AAC3C,8DAA4C;AAC5C,uDAAqC;AACrC,8DAA4C"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AuditJsonValue } from './audit-json.types';
|
|
2
|
-
/**
|
|
3
|
-
* A single normalized change produced by the differ. `oldValue` / `newValue`
|
|
4
|
-
* are JSONB-compatible; `null` marks the absent side (for example the old side
|
|
5
|
-
* of a baseline, or a relation missing from one snapshot). A null-vs-absent
|
|
6
|
-
* transition is detected as a change but renders as `null` on both sides of
|
|
7
|
-
* the emitted row.
|
|
8
|
-
*/
|
|
9
|
-
export interface IPropertyChange {
|
|
10
|
-
/** The canonical value on the new side, or `null` when absent. */
|
|
11
|
-
newValue: AuditJsonValue | null;
|
|
12
|
-
/** The canonical value on the old side, or `null` when absent. */
|
|
13
|
-
oldValue: AuditJsonValue | null;
|
|
14
|
-
/** The audited property that changed. */
|
|
15
|
-
propertyName: string;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"property-change.interface.js","sourceRoot":"","sources":["../../../../../src/types/audit/schemas/types/property-change.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Frozen cross-story contract for the audit outbox drain queue.
|
|
3
|
-
*
|
|
4
|
-
* The queue name, key prefix, job name, and drain job shape defined here are
|
|
5
|
-
* consumed by both the audit-processor deployment (worker side) and the
|
|
6
|
-
* producer story (enqueue side). This file must stay pure: constants, types,
|
|
7
|
-
* and pure functions only — no service or framework imports — so it is
|
|
8
|
-
* importable by every deployment.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Name of the BullMQ queue carrying audit drain signals.
|
|
12
|
-
* BullMQ forbids `:` in queue names.
|
|
13
|
-
*/
|
|
14
|
-
export declare const AUDIT_QUEUE_NAME = "audit-outbox-drain";
|
|
15
|
-
/**
|
|
16
|
-
* BullMQ key prefix namespacing all audit queue keys on the shared Redis instance
|
|
17
|
-
* (keys become `bull-audit:audit-outbox-drain:*`).
|
|
18
|
-
*/
|
|
19
|
-
export declare const AUDIT_QUEUE_PREFIX = "bull-audit";
|
|
20
|
-
/**
|
|
21
|
-
* Job name of a drain job inside the audit queue.
|
|
22
|
-
*/
|
|
23
|
-
export declare const AUDIT_JOB_NAME = "drain";
|
|
24
|
-
/**
|
|
25
|
-
* Fixed global job id for every drain job. BullMQ deduplicates by custom job
|
|
26
|
-
* id while a job with that id is waiting OR active, so drain signals coalesce
|
|
27
|
-
* into a single pending wake regardless of how many post-commit enqueues fire
|
|
28
|
-
* concurrently. BullMQ forbids `:` in custom job ids, hence the `-` separator.
|
|
29
|
-
*/
|
|
30
|
-
export declare const AUDIT_DRAIN_JOB_ID = "audit-drain";
|
|
31
|
-
/**
|
|
32
|
-
* Maximum delivery attempts for a drain job. Drain signals are disposable
|
|
33
|
-
* wakeup signals — ambient traffic re-signals, so retries stay minimal.
|
|
34
|
-
*/
|
|
35
|
-
export declare const AUDIT_JOB_ATTEMPTS = 2;
|
|
36
|
-
/**
|
|
37
|
-
* Delay applied to every drain job. The signal is enqueued after the business
|
|
38
|
-
* transaction has already committed (post-commit publish, ticket 05), so the
|
|
39
|
-
* drain can run immediately — no commit-window delay is needed.
|
|
40
|
-
*/
|
|
41
|
-
export declare const AUDIT_DRAIN_DELAY_MS = 0;
|
|
42
|
-
/**
|
|
43
|
-
* Payload of a drain job: wake-only, disposable. The drain scans pending
|
|
44
|
-
* ActionOutbox rows itself — no entity or outbox id travels in the job body.
|
|
45
|
-
*/
|
|
46
|
-
export type IAuditDrainJobData = Record<string, never>;
|
|
47
|
-
/**
|
|
48
|
-
* Per-job options for drain jobs. Structurally compatible with BullMQ
|
|
49
|
-
* `JobsOptions` without importing it, keeping this file dependency-free.
|
|
50
|
-
*/
|
|
51
|
-
export interface IAuditDrainJobOptions {
|
|
52
|
-
jobId: string;
|
|
53
|
-
attempts: number;
|
|
54
|
-
delay: number;
|
|
55
|
-
removeOnComplete: boolean;
|
|
56
|
-
removeOnFail: boolean;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Builds the fixed options producers pass to `queue.add` when enqueueing a
|
|
60
|
-
* drain signal: coalescing global job id, disposable lifecycle, minimal
|
|
61
|
-
* retries, zero delay.
|
|
62
|
-
*/
|
|
63
|
-
export declare function buildAuditDrainJobOptions(): IAuditDrainJobOptions;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Frozen cross-story contract for the audit outbox drain queue.
|
|
4
|
-
*
|
|
5
|
-
* The queue name, key prefix, job name, and drain job shape defined here are
|
|
6
|
-
* consumed by both the audit-processor deployment (worker side) and the
|
|
7
|
-
* producer story (enqueue side). This file must stay pure: constants, types,
|
|
8
|
-
* and pure functions only — no service or framework imports — so it is
|
|
9
|
-
* importable by every deployment.
|
|
10
|
-
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.buildAuditDrainJobOptions = exports.AUDIT_DRAIN_DELAY_MS = exports.AUDIT_JOB_ATTEMPTS = exports.AUDIT_DRAIN_JOB_ID = exports.AUDIT_JOB_NAME = exports.AUDIT_QUEUE_PREFIX = exports.AUDIT_QUEUE_NAME = void 0;
|
|
13
|
-
/**
|
|
14
|
-
* Name of the BullMQ queue carrying audit drain signals.
|
|
15
|
-
* BullMQ forbids `:` in queue names.
|
|
16
|
-
*/
|
|
17
|
-
exports.AUDIT_QUEUE_NAME = 'audit-outbox-drain';
|
|
18
|
-
/**
|
|
19
|
-
* BullMQ key prefix namespacing all audit queue keys on the shared Redis instance
|
|
20
|
-
* (keys become `bull-audit:audit-outbox-drain:*`).
|
|
21
|
-
*/
|
|
22
|
-
exports.AUDIT_QUEUE_PREFIX = 'bull-audit';
|
|
23
|
-
/**
|
|
24
|
-
* Job name of a drain job inside the audit queue.
|
|
25
|
-
*/
|
|
26
|
-
exports.AUDIT_JOB_NAME = 'drain';
|
|
27
|
-
/**
|
|
28
|
-
* Fixed global job id for every drain job. BullMQ deduplicates by custom job
|
|
29
|
-
* id while a job with that id is waiting OR active, so drain signals coalesce
|
|
30
|
-
* into a single pending wake regardless of how many post-commit enqueues fire
|
|
31
|
-
* concurrently. BullMQ forbids `:` in custom job ids, hence the `-` separator.
|
|
32
|
-
*/
|
|
33
|
-
exports.AUDIT_DRAIN_JOB_ID = 'audit-drain';
|
|
34
|
-
/**
|
|
35
|
-
* Maximum delivery attempts for a drain job. Drain signals are disposable
|
|
36
|
-
* wakeup signals — ambient traffic re-signals, so retries stay minimal.
|
|
37
|
-
*/
|
|
38
|
-
exports.AUDIT_JOB_ATTEMPTS = 2;
|
|
39
|
-
/**
|
|
40
|
-
* Delay applied to every drain job. The signal is enqueued after the business
|
|
41
|
-
* transaction has already committed (post-commit publish, ticket 05), so the
|
|
42
|
-
* drain can run immediately — no commit-window delay is needed.
|
|
43
|
-
*/
|
|
44
|
-
exports.AUDIT_DRAIN_DELAY_MS = 0;
|
|
45
|
-
/**
|
|
46
|
-
* Builds the fixed options producers pass to `queue.add` when enqueueing a
|
|
47
|
-
* drain signal: coalescing global job id, disposable lifecycle, minimal
|
|
48
|
-
* retries, zero delay.
|
|
49
|
-
*/
|
|
50
|
-
function buildAuditDrainJobOptions() {
|
|
51
|
-
return {
|
|
52
|
-
jobId: exports.AUDIT_DRAIN_JOB_ID,
|
|
53
|
-
attempts: exports.AUDIT_JOB_ATTEMPTS,
|
|
54
|
-
delay: exports.AUDIT_DRAIN_DELAY_MS,
|
|
55
|
-
removeOnComplete: true,
|
|
56
|
-
removeOnFail: true,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
exports.buildAuditDrainJobOptions = buildAuditDrainJobOptions;
|
|
60
|
-
//# sourceMappingURL=audit-queue.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-queue.constants.js","sourceRoot":"","sources":["../../../../../src/types/audit/types/consts/audit-queue.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH;;;GAGG;AACU,QAAA,gBAAgB,GAAG,oBAAoB,CAAC;AAErD;;;GAGG;AACU,QAAA,kBAAkB,GAAG,YAAY,CAAC;AAE/C;;GAEG;AACU,QAAA,cAAc,GAAG,OAAO,CAAC;AAEtC;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,aAAa,CAAC;AAEhD;;;GAGG;AACU,QAAA,kBAAkB,GAAG,CAAC,CAAC;AAEpC;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,CAAC,CAAC;AAoBtC;;;;GAIG;AACH,SAAgB,yBAAyB;IACxC,OAAO;QACN,KAAK,EAAE,0BAAkB;QACzB,QAAQ,EAAE,0BAAkB;QAC5B,KAAK,EAAE,4BAAoB;QAC3B,gBAAgB,EAAE,IAAI;QACtB,YAAY,EAAE,IAAI;KAClB,CAAC;AACH,CAAC;AARD,8DAQC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './audit-queue.constants';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./audit-queue.constants"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/audit/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export declare enum AuditActionTypeEnum {
|
|
2
|
-
CREATE = "create",
|
|
3
|
-
UPDATE = "update",
|
|
4
|
-
DELETE = "delete",
|
|
5
|
-
MASS_EDIT = "mass_edit",
|
|
6
|
-
CANCEL = "cancel",
|
|
7
|
-
REFUND = "refund",
|
|
8
|
-
ARCHIVE = "archive"
|
|
9
|
-
}
|
|
10
|
-
export declare enum AuditActionNameEnum {
|
|
11
|
-
CONNECTED = "connected",
|
|
12
|
-
ISSUED = "issued",
|
|
13
|
-
REDEEMED = "redeemed",
|
|
14
|
-
JOINED = "joined",
|
|
15
|
-
SIGNED = "signed",
|
|
16
|
-
DUPLICATED = "duplicated",
|
|
17
|
-
PURCHASED = "purchased",
|
|
18
|
-
REGISTERED = "registered",
|
|
19
|
-
SOLD = "sold",
|
|
20
|
-
EDITED = "edited",
|
|
21
|
-
MOVED = "moved",
|
|
22
|
-
PUBLISHED = "published",
|
|
23
|
-
UNPUBLISHED = "unpublished",
|
|
24
|
-
APPROVED = "approved",
|
|
25
|
-
REJECTED = "rejected",
|
|
26
|
-
RESCHEDULED = "rescheduled",
|
|
27
|
-
PAUSED = "paused",
|
|
28
|
-
RESUMED = "resumed",
|
|
29
|
-
PROMOTED = "promoted",
|
|
30
|
-
CHECKED_IN = "checked_in",
|
|
31
|
-
UNDID = "undid",
|
|
32
|
-
APPLIED = "applied",
|
|
33
|
-
COLLECTED = "collected",
|
|
34
|
-
RECONCILED = "reconciled",
|
|
35
|
-
SENT = "sent",
|
|
36
|
-
MERGED = "merged",
|
|
37
|
-
ACTIVATED = "activated",
|
|
38
|
-
DEACTIVATED = "deactivated",
|
|
39
|
-
CHANGED = "changed",
|
|
40
|
-
MADE_DEFAULT = "made_default",
|
|
41
|
-
MADE_ADMIN = "made_admin",
|
|
42
|
-
SCHEDULED = "scheduled",
|
|
43
|
-
REMOVED = "removed",
|
|
44
|
-
VOIDED = "voided",
|
|
45
|
-
MASS_MOVED = "mass_moved"
|
|
46
|
-
}
|
|
47
|
-
export declare enum AuditEventTypeEnum {
|
|
48
|
-
CREATE = "create",
|
|
49
|
-
UPDATE = "update",
|
|
50
|
-
DELETE = "delete",
|
|
51
|
-
ARCHIVE = "archive"
|
|
52
|
-
}
|
|
53
|
-
export declare enum AuditAreaEnum {
|
|
54
|
-
RESERVATIONS = "reservations",
|
|
55
|
-
PROGRAMS = "programs",
|
|
56
|
-
MEMBERSHIPS = "memberships",
|
|
57
|
-
COMMERCE = "commerce",
|
|
58
|
-
FINANCE = "finance",
|
|
59
|
-
CUSTOMERS = "customers",
|
|
60
|
-
SETTINGS = "settings",
|
|
61
|
-
COMMUNICATIONS = "communications"
|
|
62
|
-
}
|
|
63
|
-
export declare enum ActionOutboxStatusEnum {
|
|
64
|
-
PENDING = "pending",
|
|
65
|
-
COMPLETED = "completed",
|
|
66
|
-
DEAD = "dead"
|
|
67
|
-
}
|
|
68
|
-
export declare enum AuditActorTypeEnum {
|
|
69
|
-
USER = "user",
|
|
70
|
-
SYSTEM = "system"
|
|
71
|
-
}
|