@bondsports/types 2.5.26-c-1 → 2.5.26-squad-b-2
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/types/interfaces/attendance.interfaces.d.ts +7 -0
- package/dist/types/audit/index.d.ts +0 -1
- package/dist/types/audit/index.js +0 -1
- package/dist/types/audit/index.js.map +1 -1
- package/dist/types/audit/processor/drain/types/interfaces/audit-drain.interfaces.d.ts +1 -24
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.d.ts +0 -5
- package/dist/types/audit/read/dto/audit-related-record.dto.d.ts +0 -1
- package/dist/types/audit/read/dto/audit-related-record.dto.js.map +1 -1
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.d.ts +0 -11
- package/dist/types/audit/types/enums/audit.enums.d.ts +1 -9
- package/dist/types/audit/types/enums/audit.enums.js +0 -8
- package/dist/types/audit/types/enums/audit.enums.js.map +1 -1
- package/dist/types/cart/dto/cart-public.dto.d.ts +0 -1
- package/dist/types/cart/dto/cart-public.dto.js.map +1 -1
- package/dist/types/family-account/dto/group-accounts-public.dto.d.ts +1 -43
- package/dist/types/family-account/dto/group-accounts-public.dto.js +1 -35
- package/dist/types/family-account/dto/group-accounts-public.dto.js.map +1 -1
- package/dist/types/leagues-scheduler/dto/index.d.ts +2 -0
- package/dist/types/leagues-scheduler/dto/index.js +2 -0
- package/dist/types/leagues-scheduler/dto/index.js.map +1 -1
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.d.ts +2 -0
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.js.map +1 -1
- package/dist/types/leagues-scheduler/dto/schedule-import.dto.d.ts +81 -0
- package/dist/types/leagues-scheduler/dto/schedule-import.dto.js +53 -0
- package/dist/types/leagues-scheduler/dto/schedule-import.dto.js.map +1 -0
- package/dist/types/leagues-scheduler/dto/schedule-replace.dto.d.ts +59 -0
- package/dist/types/leagues-scheduler/dto/schedule-replace.dto.js +40 -0
- package/dist/types/leagues-scheduler/dto/schedule-replace.dto.js.map +1 -0
- package/dist/types/leagues-scheduler/types/consts/index.d.ts +1 -0
- package/dist/types/{audit/alerts/types/interfaces → leagues-scheduler/types/consts}/index.js +1 -1
- package/dist/types/leagues-scheduler/types/consts/index.js.map +1 -0
- package/dist/types/leagues-scheduler/types/consts/schedule-import.consts.d.ts +24 -0
- package/dist/types/leagues-scheduler/types/consts/schedule-import.consts.js +63 -0
- package/dist/types/leagues-scheduler/types/consts/schedule-import.consts.js.map +1 -0
- package/dist/types/leagues-scheduler/types/enums/index.d.ts +1 -0
- package/dist/types/leagues-scheduler/types/enums/index.js +1 -0
- package/dist/types/leagues-scheduler/types/enums/index.js.map +1 -1
- package/dist/types/leagues-scheduler/types/enums/schedule-import.enums.d.ts +97 -0
- package/dist/types/leagues-scheduler/types/enums/schedule-import.enums.js +108 -0
- package/dist/types/leagues-scheduler/types/enums/schedule-import.enums.js.map +1 -0
- package/dist/types/leagues-scheduler/types/enums.d.ts +2 -1
- package/dist/types/leagues-scheduler/types/enums.js +1 -0
- package/dist/types/leagues-scheduler/types/enums.js.map +1 -1
- package/dist/types/leagues-scheduler/types/index.d.ts +2 -0
- package/dist/types/leagues-scheduler/types/index.js +2 -0
- package/dist/types/leagues-scheduler/types/index.js.map +1 -1
- package/dist/types/leagues-scheduler/types/interfaces/index.d.ts +2 -0
- package/dist/types/{audit/alerts → leagues-scheduler/types/interfaces}/index.js +2 -1
- package/dist/types/leagues-scheduler/types/interfaces/index.js.map +1 -0
- package/dist/types/leagues-scheduler/types/interfaces/schedule-import.interfaces.d.ts +188 -0
- package/dist/types/{audit/alerts/types/interfaces/audit-alert.interfaces.js → leagues-scheduler/types/interfaces/schedule-import.interfaces.js} +1 -1
- package/dist/types/leagues-scheduler/types/interfaces/schedule-import.interfaces.js.map +1 -0
- package/dist/types/leagues-scheduler/types/interfaces/schedule-replace.interfaces.d.ts +140 -0
- package/dist/types/{questionnaires/types/questions.interfaces.js → leagues-scheduler/types/interfaces/schedule-replace.interfaces.js} +1 -1
- package/dist/types/leagues-scheduler/types/interfaces/schedule-replace.interfaces.js.map +1 -0
- package/dist/types/leagues-scheduler/types/interfaces.d.ts +44 -0
- package/dist/types/leagues-scheduler/types/interfaces.js.map +1 -1
- package/dist/types/leagues-scheduler/types/leagues-scheduler-consts.d.ts +1 -0
- package/dist/types/leagues-scheduler/types/leagues-scheduler-consts.js +2 -1
- package/dist/types/leagues-scheduler/types/leagues-scheduler-consts.js.map +1 -1
- package/dist/types/media/types/media.interfaces.d.ts +0 -14
- package/dist/types/membership/dto/membership.dto.d.ts +0 -3
- package/dist/types/membership/dto/membership.dto.js.map +1 -1
- package/dist/types/membership/entities/membership-member.entity.d.ts +0 -2
- package/dist/types/membership/entities/membership-member.entity.js.map +1 -1
- package/dist/types/membership/entities/membership.entity.d.ts +0 -1
- package/dist/types/membership/entities/membership.entity.js.map +1 -1
- package/dist/types/membership/types/membership.members.interfaces.d.ts +0 -7
- package/dist/types/online-booking/types/classes/schedule.classes.d.ts +0 -2
- package/dist/types/online-booking/types/classes/schedule.classes.js.map +1 -1
- package/dist/types/online-booking/types/consts/online-booking.consts.d.ts +0 -1
- package/dist/types/online-booking/types/consts/online-booking.consts.js +0 -1
- package/dist/types/online-booking/types/consts/online-booking.consts.js.map +1 -1
- package/dist/types/online-booking/types/consts/schedule.consts.d.ts +0 -2
- package/dist/types/online-booking/types/consts/schedule.consts.js +0 -2
- package/dist/types/online-booking/types/consts/schedule.consts.js.map +1 -1
- package/dist/types/online-booking/types/dto/online-booking.dto.d.ts +0 -9
- package/dist/types/online-booking/types/dto/online-booking.dto.js +0 -4
- package/dist/types/online-booking/types/dto/online-booking.dto.js.map +1 -1
- package/dist/types/online-booking/types/dto/schedule.dto.d.ts +0 -3
- package/dist/types/online-booking/types/dto/schedule.dto.js.map +1 -1
- package/dist/types/online-booking/types/interfaces/online-booking.interfaces.d.ts +0 -3
- package/dist/types/online-booking/types/interfaces/schedule.interfaces.d.ts +0 -5
- package/dist/types/organization/entities/organization.entity.d.ts +0 -1
- package/dist/types/organization/entities/organization.entity.js.map +1 -1
- package/dist/types/payment/dto/configuration.dto.d.ts +1 -2
- package/dist/types/payment/dto/configuration.dto.js +0 -1
- package/dist/types/payment/dto/configuration.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/public-product.dto.d.ts +0 -2
- package/dist/types/product-pricing/dto/public-product.dto.js.map +1 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +0 -1
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-resources/types/consts/product-resource.consts.d.ts +2 -2
- package/dist/types/product-resources/types/consts/product-resource.consts.js +2 -2
- package/dist/types/product-resources/types/interfaces/product-resource.interfaces.d.ts +0 -1
- package/dist/types/programs/dto/session-public.dto.d.ts +21 -1
- package/dist/types/programs/dto/session-public.dto.js +11 -1
- package/dist/types/programs/dto/session-public.dto.js.map +1 -1
- package/dist/types/programs/types/interfaces/program.interfaces.d.ts +1 -0
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +18 -0
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +9 -18
- package/dist/types/punch-pass/dto/punch-pass.dto.js +2 -11
- package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
- package/dist/types/punch-pass/types/enums.d.ts +0 -4
- package/dist/types/punch-pass/types/enums.js +1 -6
- package/dist/types/punch-pass/types/enums.js.map +1 -1
- package/dist/types/punch-pass/types/interfaces.d.ts +1 -9
- package/dist/types/purchase/dto/purchase.dto.d.ts +0 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/questionnaires/dto/index.d.ts +0 -1
- package/dist/types/questionnaires/dto/index.js +0 -1
- package/dist/types/questionnaires/dto/index.js.map +1 -1
- package/dist/types/questionnaires/types/index.d.ts +0 -1
- package/dist/types/questionnaires/types/index.js +0 -1
- package/dist/types/questionnaires/types/index.js.map +1 -1
- package/dist/types/questionnaires/types/questions.enum.d.ts +0 -4
- package/dist/types/questionnaires/types/questions.enum.js +1 -6
- package/dist/types/questionnaires/types/questions.enum.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +0 -2
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/series.dto.d.ts +0 -2
- package/dist/types/reservations/dto/series.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +0 -4
- package/dist/types/reservations/dto/slot.dto.js +1 -4
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/segment.classes.d.ts +0 -1
- package/dist/types/reservations/types/classes/segment.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/series.classes.d.ts +0 -2
- package/dist/types/reservations/types/classes/series.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/slot.classes.d.ts +0 -2
- package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
- package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +0 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -49
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/series.interfaces.d.ts +0 -3
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +0 -29
- package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +0 -7
- package/dist/types/user/dto/user.dto.d.ts +0 -4
- package/dist/types/user/dto/user.dto.js +1 -4
- package/dist/types/user/dto/user.dto.js.map +1 -1
- package/dist/types/utils/types/consts/date.consts.d.ts +1 -0
- package/dist/types/utils/types/consts/date.consts.js +2 -1
- package/dist/types/utils/types/consts/date.consts.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/audit/alerts/index.d.ts +0 -1
- package/dist/types/audit/alerts/index.js.map +0 -1
- package/dist/types/audit/alerts/types/consts/audit-alert.consts.d.ts +0 -9
- package/dist/types/audit/alerts/types/consts/audit-alert.consts.js +0 -16
- package/dist/types/audit/alerts/types/consts/audit-alert.consts.js.map +0 -1
- package/dist/types/audit/alerts/types/consts/index.d.ts +0 -1
- package/dist/types/audit/alerts/types/consts/index.js +0 -18
- package/dist/types/audit/alerts/types/consts/index.js.map +0 -1
- package/dist/types/audit/alerts/types/enums/audit-alert.enums.d.ts +0 -18
- package/dist/types/audit/alerts/types/enums/audit-alert.enums.js +0 -25
- package/dist/types/audit/alerts/types/enums/audit-alert.enums.js.map +0 -1
- package/dist/types/audit/alerts/types/enums/index.d.ts +0 -1
- package/dist/types/audit/alerts/types/enums/index.js +0 -18
- package/dist/types/audit/alerts/types/enums/index.js.map +0 -1
- package/dist/types/audit/alerts/types/index.d.ts +0 -3
- package/dist/types/audit/alerts/types/index.js +0 -20
- package/dist/types/audit/alerts/types/index.js.map +0 -1
- package/dist/types/audit/alerts/types/interfaces/audit-alert.interfaces.d.ts +0 -56
- package/dist/types/audit/alerts/types/interfaces/audit-alert.interfaces.js.map +0 -1
- package/dist/types/audit/alerts/types/interfaces/index.d.ts +0 -1
- package/dist/types/audit/alerts/types/interfaces/index.js.map +0 -1
- package/dist/types/questionnaires/dto/update-questionnaire.dto.d.ts +0 -8
- package/dist/types/questionnaires/dto/update-questionnaire.dto.js +0 -12
- package/dist/types/questionnaires/dto/update-questionnaire.dto.js.map +0 -1
- package/dist/types/questionnaires/types/questions.interfaces.d.ts +0 -31
- package/dist/types/questionnaires/types/questions.interfaces.js.map +0 -1
|
@@ -61,3 +61,10 @@ export interface IGetAttendanceForCustomerParams {
|
|
|
61
61
|
requestUserId: number;
|
|
62
62
|
filters: GetOrganizationAttendanceQueryDto;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Events to look up check-ins for, and the earliest check-in that counts.
|
|
66
|
+
*/
|
|
67
|
+
export interface IEventCheckInsParams {
|
|
68
|
+
checkedInFrom: Date;
|
|
69
|
+
eventIds: number[];
|
|
70
|
+
}
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./alerts"), exports);
|
|
18
17
|
__exportStar(require("./entities"), exports);
|
|
19
18
|
__exportStar(require("./processor"), exports);
|
|
20
19
|
__exportStar(require("./producer"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/audit/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/audit/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,yCAAuB;AACvB,4CAA0B;AAC1B,0CAAwB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ResourceNameTypeEnum } from '../../../../../types/enums/resource-name.enums';
|
|
2
|
-
import { AuditDeadReasonEnum } from '../../../../alerts/types/enums/audit-alert.enums';
|
|
3
2
|
import { AuditActionOutbox } from '../../../../entities/audit-action-outbox.entity';
|
|
4
3
|
import { AuditOutbox } from '../../../../entities/audit-outbox.entity';
|
|
5
4
|
import { IAuditSnapshot, IPropertyChange } from '../../../../schemas';
|
|
6
5
|
import { AuditEventTypeEnum } from '../../../../types/enums/audit.enums';
|
|
7
|
-
import {
|
|
6
|
+
import { AuditChildPlanOutcomeEnum } from '../enums/audit-drain.enum';
|
|
8
7
|
/**
|
|
9
8
|
* A trail Audit Event planned for one child, not yet persisted. Delete and
|
|
10
9
|
* Archive plan an identity-only event with zero field changes.
|
|
@@ -73,25 +72,3 @@ export interface IAuditClaimedAction {
|
|
|
73
72
|
/** The claimed Action's `AuditOutbox` children, ordered by `id` ASC. */
|
|
74
73
|
children: AuditOutbox[];
|
|
75
74
|
}
|
|
76
|
-
/**
|
|
77
|
-
* The terminal outcome of one claimed Action, plus the fields an alert needs.
|
|
78
|
-
*/
|
|
79
|
-
export interface IAuditActionOutcomeParams {
|
|
80
|
-
/** The processed AuditActionOutbox row, as claimed. */
|
|
81
|
-
actionOutbox: AuditActionOutbox;
|
|
82
|
-
/** The terminal outcome returned from the success transaction. */
|
|
83
|
-
outcome: AuditActionOutcomeEnum;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* A newly dead AuditActionOutbox and the reason recorded on its log line.
|
|
87
|
-
*/
|
|
88
|
-
export interface IAuditDeadAlertParams {
|
|
89
|
-
/** The AuditActionOutbox row that became dead, as claimed. */
|
|
90
|
-
actionOutbox: AuditActionOutbox;
|
|
91
|
-
/** The error that exhausted ingest attempts, when there was one. */
|
|
92
|
-
error?: unknown;
|
|
93
|
-
/** The reason recorded on the existing dead-action log line. */
|
|
94
|
-
logReason: string;
|
|
95
|
-
/** Why the action is dead: no children, or the attempt cap. */
|
|
96
|
-
reason: AuditDeadReasonEnum;
|
|
97
|
-
}
|
|
@@ -21,11 +21,6 @@ export interface IAuditActionParams {
|
|
|
21
21
|
platform?: PlatformsEnum;
|
|
22
22
|
type?: AuditActionTypeEnum;
|
|
23
23
|
}
|
|
24
|
-
/** The Action a flow records: its type, and its name when the type alone does not identify the flow. */
|
|
25
|
-
export interface IBaseActionParams {
|
|
26
|
-
name?: AuditActionNameEnum;
|
|
27
|
-
type: AuditActionTypeEnum;
|
|
28
|
-
}
|
|
29
24
|
/** Partial Action envelope accepted by `begin`, merged onto a new frame. */
|
|
30
25
|
export type IBeginParams = IAuditActionParams;
|
|
31
26
|
/** Partial Action envelope accepted by `commit`, merged onto the top frame. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-related-record.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/audit-related-record.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"audit-related-record.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/audit-related-record.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,qBAAqB;CAMjC;AAND,sDAMC"}
|
|
@@ -37,14 +37,8 @@ export interface IAuditActionsPage {
|
|
|
37
37
|
actions: AuditAction[];
|
|
38
38
|
meta: PaginationMetaDto;
|
|
39
39
|
}
|
|
40
|
-
/**
|
|
41
|
-
* A record the Action page links to. `userId` is a secondary id some record
|
|
42
|
-
* types need for navigation: the linked user or family account id of the
|
|
43
|
-
* customer, or of the customer that owns the invoice.
|
|
44
|
-
*/
|
|
45
40
|
export interface IAuditRelatedRecord {
|
|
46
41
|
entityId: number;
|
|
47
|
-
userId?: number;
|
|
48
42
|
entityType: ResourceNameTypeEnum;
|
|
49
43
|
name?: string;
|
|
50
44
|
}
|
|
@@ -60,11 +54,6 @@ export interface IAuditParentHydration {
|
|
|
60
54
|
namesByKey: Map<string, string>;
|
|
61
55
|
snapshotsByKey: Map<string, IAuditSnapshot>;
|
|
62
56
|
}
|
|
63
|
-
export interface IFillNamesFromLinkedProductsParams {
|
|
64
|
-
namesByKey: Map<string, string>;
|
|
65
|
-
organizationId: number;
|
|
66
|
-
snapshotsByKey: Map<string, IAuditSnapshot>;
|
|
67
|
-
}
|
|
68
57
|
export interface IAuditActionsListFilters {
|
|
69
58
|
actionTypes?: AuditActionTypeEnum[];
|
|
70
59
|
areas?: AuditAreaEnum[];
|
|
@@ -44,15 +44,7 @@ export declare enum AuditActionNameEnum {
|
|
|
44
44
|
SCHEDULED = "scheduled",
|
|
45
45
|
REMOVED = "removed",
|
|
46
46
|
VOIDED = "voided",
|
|
47
|
-
MASS_MOVED = "mass_moved"
|
|
48
|
-
DUPLICATED_SLOTS = "duplicated_slots",
|
|
49
|
-
ADDED_SEGMENTS = "added_segments",
|
|
50
|
-
EDITED_SLOTS = "edited_slots",
|
|
51
|
-
ADDED_ADDONS = "added_addons",
|
|
52
|
-
EDITED_ADDONS = "edited_addons",
|
|
53
|
-
REMOVED_ADDONS = "removed_addons",
|
|
54
|
-
INVOICED = "invoiced",
|
|
55
|
-
CANCELLED_SLOTS = "cancelled_slots"
|
|
47
|
+
MASS_MOVED = "mass_moved"
|
|
56
48
|
}
|
|
57
49
|
export declare enum AuditEventTypeEnum {
|
|
58
50
|
CREATE = "create",
|
|
@@ -50,14 +50,6 @@ var AuditActionNameEnum;
|
|
|
50
50
|
AuditActionNameEnum["REMOVED"] = "removed";
|
|
51
51
|
AuditActionNameEnum["VOIDED"] = "voided";
|
|
52
52
|
AuditActionNameEnum["MASS_MOVED"] = "mass_moved";
|
|
53
|
-
AuditActionNameEnum["DUPLICATED_SLOTS"] = "duplicated_slots";
|
|
54
|
-
AuditActionNameEnum["ADDED_SEGMENTS"] = "added_segments";
|
|
55
|
-
AuditActionNameEnum["EDITED_SLOTS"] = "edited_slots";
|
|
56
|
-
AuditActionNameEnum["ADDED_ADDONS"] = "added_addons";
|
|
57
|
-
AuditActionNameEnum["EDITED_ADDONS"] = "edited_addons";
|
|
58
|
-
AuditActionNameEnum["REMOVED_ADDONS"] = "removed_addons";
|
|
59
|
-
AuditActionNameEnum["INVOICED"] = "invoiced";
|
|
60
|
-
AuditActionNameEnum["CANCELLED_SLOTS"] = "cancelled_slots";
|
|
61
53
|
})(AuditActionNameEnum = exports.AuditActionNameEnum || (exports.AuditActionNameEnum = {}));
|
|
62
54
|
var AuditEventTypeEnum;
|
|
63
55
|
(function (AuditEventTypeEnum) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.enums.js","sourceRoot":"","sources":["../../../../../src/types/audit/types/enums/audit.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,oCAAa,CAAA;AACd,CAAC,EAVW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAU9B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"audit.enums.js","sourceRoot":"","sources":["../../../../../src/types/audit/types/enums/audit.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,oCAAa,CAAA;AACd,CAAC,EAVW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAU9B;AAED,IAAY,mBAoCX;AApCD,WAAY,mBAAmB;IAC9B,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,sCAAe,CAAA;IACf,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;IACrB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,sCAAe,CAAA;IACf,0CAAmB,CAAA;IACnB,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;IAC7B,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;AAC1B,CAAC,EApCW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAoC9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACpB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAED,IAAY,aAUX;AAVD,WAAY,aAAa;IACxB,8CAA6B,CAAA;IAC7B,sCAAqB,CAAA;IACrB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kDAAiC,CAAA;IACjC,gCAAe,CAAA;AAChB,CAAC,EAVW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAUxB;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,uCAAa,CAAA;AACd,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,mCAAa,CAAA;IACb,uCAAiB,CAAA;AAClB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
|
@@ -13,7 +13,6 @@ export declare class PublicCreateCartDto {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class PublicAddCartItemsDto {
|
|
15
15
|
cartItems: PublicAddCartItemDto[];
|
|
16
|
-
answers?: UserAnswersDto[];
|
|
17
16
|
}
|
|
18
17
|
export declare class PublicUpdateCartItemsDto {
|
|
19
18
|
cartItems: PublicUpdateCartItemDto[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-public.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-public.dto.ts"],"names":[],"mappings":";;;AAMA,yCAAgE;AAEhE,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED;;;;GAIG;AACH,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"cart-public.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-public.dto.ts"],"names":[],"mappings":";;;AAMA,yCAAgE;AAEhE,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED;;;;GAIG;AACH,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,yBAA0B,SAAQ,8BAAmB;CAUjE;AAVD,8DAUC"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import { AddressDto } from '../../address/dto/address.dto';
|
|
2
1
|
import { CreateFamilyMemberDto } from '../../customers/dto/add-family-member.dto';
|
|
3
2
|
import { GroupTypeEnum, GroupUserRoleEnum } from '../../customers/types/enums';
|
|
4
|
-
import { IdAndNameDto
|
|
3
|
+
import { IdAndNameDto } from '../../dto/general.dto';
|
|
5
4
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
6
|
-
import { GenderEnum, GenderNameEnum } from '../../types/enums/gender.enums';
|
|
7
|
-
export declare enum PublicMemberGenderEnum {
|
|
8
|
-
EVERYONE = "everyone",
|
|
9
|
-
MALE = "male",
|
|
10
|
-
FEMALE = "female"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Maps a public gender name onto the numeric gender stored for a user.
|
|
14
|
-
*/
|
|
15
|
-
export declare function toStoredGender(gender: PublicMemberGenderEnum): GenderEnum;
|
|
16
5
|
export declare class SimpleGroupAccountDto extends IdAndNameDto {
|
|
17
6
|
groupType: GroupTypeEnum;
|
|
18
7
|
userRole: GroupUserRoleEnum;
|
|
@@ -27,34 +16,3 @@ export declare class CreatePublicGroupAccountDto {
|
|
|
27
16
|
export declare class CreateGroupMembersDto {
|
|
28
17
|
members: CreateFamilyMemberDto[];
|
|
29
18
|
}
|
|
30
|
-
export declare class ByOrganizationGroupMemberDto extends ByOrganizationGroupIdDto {
|
|
31
|
-
userId: number;
|
|
32
|
-
}
|
|
33
|
-
export declare class AddPublicGroupMemberDto {
|
|
34
|
-
userRole?: GroupUserRoleEnum;
|
|
35
|
-
firstName: string;
|
|
36
|
-
lastName: string;
|
|
37
|
-
gender: PublicMemberGenderEnum;
|
|
38
|
-
birthDate: string;
|
|
39
|
-
sports?: number[];
|
|
40
|
-
email?: string;
|
|
41
|
-
phoneNumber?: string;
|
|
42
|
-
address?: AddressDto;
|
|
43
|
-
title?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare class PublicGroupMemberDto extends IdDto {
|
|
46
|
-
firstName?: string;
|
|
47
|
-
lastName?: string;
|
|
48
|
-
email?: string;
|
|
49
|
-
phoneNumber?: string;
|
|
50
|
-
birthDate?: Date;
|
|
51
|
-
gender?: GenderNameEnum;
|
|
52
|
-
userRole: GroupUserRoleEnum;
|
|
53
|
-
}
|
|
54
|
-
export declare class AddPublicGroupMemberResponseDto {
|
|
55
|
-
data: PublicGroupMemberDto;
|
|
56
|
-
invitePending?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export declare class SetPublicGroupMemberRoleDto {
|
|
59
|
-
userRole: GroupUserRoleEnum;
|
|
60
|
-
}
|
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CreateGroupMembersDto = exports.CreatePublicGroupAccountDto = exports.ByOrganizationGroupIdDto = exports.SimpleGroupAccountDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
|
-
const gender_enums_1 = require("../../types/enums/gender.enums");
|
|
7
|
-
var PublicMemberGenderEnum;
|
|
8
|
-
(function (PublicMemberGenderEnum) {
|
|
9
|
-
PublicMemberGenderEnum["EVERYONE"] = "everyone";
|
|
10
|
-
PublicMemberGenderEnum["MALE"] = "male";
|
|
11
|
-
PublicMemberGenderEnum["FEMALE"] = "female";
|
|
12
|
-
})(PublicMemberGenderEnum = exports.PublicMemberGenderEnum || (exports.PublicMemberGenderEnum = {}));
|
|
13
|
-
const STORED_GENDER_BY_PUBLIC_NAME = {
|
|
14
|
-
[PublicMemberGenderEnum.EVERYONE]: gender_enums_1.GenderEnum.OTHER,
|
|
15
|
-
[PublicMemberGenderEnum.MALE]: gender_enums_1.GenderEnum.MALE,
|
|
16
|
-
[PublicMemberGenderEnum.FEMALE]: gender_enums_1.GenderEnum.FEMALE,
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Maps a public gender name onto the numeric gender stored for a user.
|
|
20
|
-
*/
|
|
21
|
-
function toStoredGender(gender) {
|
|
22
|
-
return STORED_GENDER_BY_PUBLIC_NAME[gender];
|
|
23
|
-
}
|
|
24
|
-
exports.toStoredGender = toStoredGender;
|
|
25
6
|
class SimpleGroupAccountDto extends general_dto_1.IdAndNameDto {
|
|
26
7
|
}
|
|
27
8
|
exports.SimpleGroupAccountDto = SimpleGroupAccountDto;
|
|
@@ -34,19 +15,4 @@ exports.CreatePublicGroupAccountDto = CreatePublicGroupAccountDto;
|
|
|
34
15
|
class CreateGroupMembersDto {
|
|
35
16
|
}
|
|
36
17
|
exports.CreateGroupMembersDto = CreateGroupMembersDto;
|
|
37
|
-
class ByOrganizationGroupMemberDto extends ByOrganizationGroupIdDto {
|
|
38
|
-
}
|
|
39
|
-
exports.ByOrganizationGroupMemberDto = ByOrganizationGroupMemberDto;
|
|
40
|
-
class AddPublicGroupMemberDto {
|
|
41
|
-
}
|
|
42
|
-
exports.AddPublicGroupMemberDto = AddPublicGroupMemberDto;
|
|
43
|
-
class PublicGroupMemberDto extends general_dto_1.IdDto {
|
|
44
|
-
}
|
|
45
|
-
exports.PublicGroupMemberDto = PublicGroupMemberDto;
|
|
46
|
-
class AddPublicGroupMemberResponseDto {
|
|
47
|
-
}
|
|
48
|
-
exports.AddPublicGroupMemberResponseDto = AddPublicGroupMemberResponseDto;
|
|
49
|
-
class SetPublicGroupMemberRoleDto {
|
|
50
|
-
}
|
|
51
|
-
exports.SetPublicGroupMemberRoleDto = SetPublicGroupMemberRoleDto;
|
|
52
18
|
//# sourceMappingURL=group-accounts-public.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-accounts-public.dto.js","sourceRoot":"","sources":["../../../../src/types/family-account/dto/group-accounts-public.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"group-accounts-public.dto.js","sourceRoot":"","sources":["../../../../src/types/family-account/dto/group-accounts-public.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAqD;AACrD,8EAA8E;AAE9E,MAAa,qBAAsB,SAAQ,0BAAY;CAItD;AAJD,sDAIC;AAED,MAAa,wBAAyB,SAAQ,sCAAmB;CAEhE;AAFD,4DAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC"}
|
|
@@ -19,4 +19,6 @@ __exportStar(require("./leagues-scheduler-param.dto"), exports);
|
|
|
19
19
|
__exportStar(require("./leagues-scheduler.dto"), exports);
|
|
20
20
|
__exportStar(require("./maintenance-event.dto"), exports);
|
|
21
21
|
__exportStar(require("./quality-metrics.dto"), exports);
|
|
22
|
+
__exportStar(require("./schedule-import.dto"), exports);
|
|
23
|
+
__exportStar(require("./schedule-replace.dto"), exports);
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProgramSeason } from '../../programs-seasons/entities/program-season.entity';
|
|
2
|
+
import { ScheduleApplyModeEnum } from '../types/enums/schedule-import.enums';
|
|
2
3
|
import { IScheduleConfig, IGameSchedule, ITeamSchedule, IDivisionSchedule, IScheduleConflict, IConflictingEvent, IConflictingResource, IGeneratedSchedule, ByeWeekPolicyEnum, ScheduleConflictTypeEnum, ValidationSeverityEnum, InternalConflictTypeEnum } from '../types/interfaces';
|
|
3
4
|
import { MaintenanceEventDto } from './maintenance-event.dto';
|
|
4
5
|
import { ScheduleQualityScoreDto } from './quality-metrics.dto';
|
|
@@ -137,6 +138,7 @@ export declare class ScheduleConflictDto implements IScheduleConflict {
|
|
|
137
138
|
*/
|
|
138
139
|
export declare class GeneratedScheduleDto implements IGeneratedSchedule {
|
|
139
140
|
id: number;
|
|
141
|
+
applyMode?: ScheduleApplyModeEnum;
|
|
140
142
|
seasonId: number;
|
|
141
143
|
divisions: DivisionScheduleDto[];
|
|
142
144
|
totalGames: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leagues-scheduler.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"leagues-scheduler.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/leagues-scheduler.dto.ts"],"names":[],"mappings":";;;AAsBA,6CAA6C;AAC7C,kDAK6B;AAJ5B,+GAAA,iBAAiB,OAAA;AACjB,sHAAA,wBAAwB,OAAA;AACxB,oHAAA,sBAAsB,OAAA;AACtB,sHAAA,wBAAwB,OAAA;AAGzB,2DAA2D;AAC3D,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAE5B,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E;;GAEG;AACH,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED;;GAEG;AACH,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;GAGG;AACH,MAAa,aAAa;CAUzB;AAVD,sCAUC;AAED;;;GAGG;AACH,MAAa,iBAAiB;CAoC7B;AApCD,8CAoCC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;GAGG;AACH,MAAa,eAAe;CAsC3B;AAtCD,0CAsCC;AAED;;;GAGG;AACH,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED;;;GAGG;AACH,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED;;GAEG;AACH,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED;;GAEG;AACH,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED;;;GAGG;AACH,MAAa,mBAAmB;CAsB/B;AAtBD,kDAsBC;AAED;;;GAGG;AACH,MAAa,oBAAoB;CAkBhC;AAlBD,oDAkBC;AAED,wBAAwB;AACxB,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,2BAA2B;CAwBvC;AAxBD,kEAwBC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED;;;GAGG;AACH,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED;;;GAGG;AACH,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,0BAA0B;CAsBtC;AAtBD,gEAsBC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAED;;;GAGG;AACH,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAED;;;GAGG;AACH,MAAa,8BAA8B;CAkB1C;AAlBD,wEAkBC;AAED;;;;GAIG;AACH,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED;;GAEG;AACH,MAAa,mBAAmB;CAc/B;AAdD,kDAcC;AAED;;GAEG;AACH,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED;;GAEG;AACH,MAAa,yBAAyB;CAQrC;AARD,8DAQC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ValidationSeverityEnum } from '../types/enums';
|
|
2
|
+
import { ScheduleApplyModeEnum, ScheduleImportColumnEnum, ScheduleImportDateOrderEnum, ScheduleImportProblemCodeEnum } from '../types/enums/schedule-import.enums';
|
|
3
|
+
import { IScheduleImportGame, IScheduleImportProblem, IScheduleImportRequest, IScheduleImportResult, IScheduleImportRow, IScheduleImportSummary, TScheduleImportDateOrder } from '../types/interfaces/schedule-import.interfaces';
|
|
4
|
+
import { GameScheduleDto } from './leagues-scheduler.dto';
|
|
5
|
+
/**
|
|
6
|
+
* Path params for a season's schedule uploads.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Route params naming a season's stored draft.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Query params for a schedule upload.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ScheduleImportQueryDto {
|
|
15
|
+
dryRun?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* One spreadsheet row as raw cell text. The browser finds the columns; the server reads the values.
|
|
19
|
+
*/
|
|
20
|
+
export declare class ScheduleImportRowDto implements IScheduleImportRow {
|
|
21
|
+
rowNumber: number;
|
|
22
|
+
date?: string;
|
|
23
|
+
startTime?: string;
|
|
24
|
+
endTime?: string;
|
|
25
|
+
homeTeam?: string;
|
|
26
|
+
awayTeam?: string;
|
|
27
|
+
space?: string;
|
|
28
|
+
division?: string;
|
|
29
|
+
type?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A schedule upload: the file's rows, how to read numeric dates, and how the draft will be published.
|
|
33
|
+
*/
|
|
34
|
+
export declare class ScheduleImportRequestDto implements IScheduleImportRequest {
|
|
35
|
+
rows: ScheduleImportRowDto[];
|
|
36
|
+
dateOrder?: ScheduleImportDateOrderEnum;
|
|
37
|
+
applyMode?: ScheduleApplyModeEnum;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Problems sharing a code, column and value, with every row they appear on.
|
|
41
|
+
*/
|
|
42
|
+
export declare class ScheduleImportProblemDto implements IScheduleImportProblem {
|
|
43
|
+
code: ScheduleImportProblemCodeEnum;
|
|
44
|
+
severity: ValidationSeverityEnum;
|
|
45
|
+
column?: ScheduleImportColumnEnum;
|
|
46
|
+
rowNumbers: number[];
|
|
47
|
+
value?: string;
|
|
48
|
+
candidates: string[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Counts and season settings shown above the problem list.
|
|
52
|
+
*/
|
|
53
|
+
export declare class ScheduleImportSummaryDto implements IScheduleImportSummary {
|
|
54
|
+
rowCount: number;
|
|
55
|
+
gameCount: number;
|
|
56
|
+
errorCount: number;
|
|
57
|
+
warningCount: number;
|
|
58
|
+
infoCount: number;
|
|
59
|
+
timezone: string;
|
|
60
|
+
dateOrder: TScheduleImportDateOrder;
|
|
61
|
+
isSeasonPublished: boolean;
|
|
62
|
+
seasonStartDate: string;
|
|
63
|
+
seasonEndDate: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* An uploaded game, with its spreadsheet row and real start and end instants.
|
|
67
|
+
*/
|
|
68
|
+
export declare class ScheduleImportGameDto extends GameScheduleDto implements IScheduleImportGame {
|
|
69
|
+
sourceRow: number;
|
|
70
|
+
startsAtMs: number;
|
|
71
|
+
endsAtMs: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Result of checking, and without `dryRun` saving, a schedule upload.
|
|
75
|
+
*/
|
|
76
|
+
export declare class ScheduleImportResultDto implements IScheduleImportResult {
|
|
77
|
+
summary: ScheduleImportSummaryDto;
|
|
78
|
+
problems: ScheduleImportProblemDto[];
|
|
79
|
+
games: ScheduleImportGameDto[];
|
|
80
|
+
draftId?: number;
|
|
81
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduleImportResultDto = exports.ScheduleImportGameDto = exports.ScheduleImportSummaryDto = exports.ScheduleImportProblemDto = exports.ScheduleImportRequestDto = exports.ScheduleImportRowDto = exports.ScheduleImportQueryDto = void 0;
|
|
4
|
+
const leagues_scheduler_dto_1 = require("./leagues-scheduler.dto");
|
|
5
|
+
/**
|
|
6
|
+
* Path params for a season's schedule uploads.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Route params naming a season's stored draft.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Query params for a schedule upload.
|
|
13
|
+
*/
|
|
14
|
+
class ScheduleImportQueryDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ScheduleImportQueryDto = ScheduleImportQueryDto;
|
|
17
|
+
/**
|
|
18
|
+
* One spreadsheet row as raw cell text. The browser finds the columns; the server reads the values.
|
|
19
|
+
*/
|
|
20
|
+
class ScheduleImportRowDto {
|
|
21
|
+
}
|
|
22
|
+
exports.ScheduleImportRowDto = ScheduleImportRowDto;
|
|
23
|
+
/**
|
|
24
|
+
* A schedule upload: the file's rows, how to read numeric dates, and how the draft will be published.
|
|
25
|
+
*/
|
|
26
|
+
class ScheduleImportRequestDto {
|
|
27
|
+
}
|
|
28
|
+
exports.ScheduleImportRequestDto = ScheduleImportRequestDto;
|
|
29
|
+
/**
|
|
30
|
+
* Problems sharing a code, column and value, with every row they appear on.
|
|
31
|
+
*/
|
|
32
|
+
class ScheduleImportProblemDto {
|
|
33
|
+
}
|
|
34
|
+
exports.ScheduleImportProblemDto = ScheduleImportProblemDto;
|
|
35
|
+
/**
|
|
36
|
+
* Counts and season settings shown above the problem list.
|
|
37
|
+
*/
|
|
38
|
+
class ScheduleImportSummaryDto {
|
|
39
|
+
}
|
|
40
|
+
exports.ScheduleImportSummaryDto = ScheduleImportSummaryDto;
|
|
41
|
+
/**
|
|
42
|
+
* An uploaded game, with its spreadsheet row and real start and end instants.
|
|
43
|
+
*/
|
|
44
|
+
class ScheduleImportGameDto extends leagues_scheduler_dto_1.GameScheduleDto {
|
|
45
|
+
}
|
|
46
|
+
exports.ScheduleImportGameDto = ScheduleImportGameDto;
|
|
47
|
+
/**
|
|
48
|
+
* Result of checking, and without `dryRun` saving, a schedule upload.
|
|
49
|
+
*/
|
|
50
|
+
class ScheduleImportResultDto {
|
|
51
|
+
}
|
|
52
|
+
exports.ScheduleImportResultDto = ScheduleImportResultDto;
|
|
53
|
+
//# sourceMappingURL=schedule-import.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-import.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/schedule-import.dto.ts"],"names":[],"mappings":";;;AAyBA,mEAA0D;AAE1D;;GAEG;AAEH;;GAEG;AAEH;;GAEG;AACH,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED;;GAEG;AACH,MAAa,oBAAoB;CAkBhC;AAlBD,oDAkBC;AAED;;GAEG;AACH,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED;;GAEG;AACH,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AAED;;GAEG;AACH,MAAa,wBAAwB;CAoBpC;AApBD,4DAoBC;AAED;;GAEG;AACH,MAAa,qBAAsB,SAAQ,uCAAe;CAMzD;AAND,sDAMC;AAED;;GAEG;AACH,MAAa,uBAAuB;CAQnC;AARD,0DAQC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ProgramSeason } from '../../programs-seasons/entities/program-season.entity';
|
|
2
|
+
import { ScheduleReplaceKeptReasonEnum } from '../types/enums/schedule-import.enums';
|
|
3
|
+
import { IReplacementPlanResult, IReplacePlanDraftGame, IReplacePlanEvent, IReplacePlanKeptEvent, IReplaceResult } from '../types/interfaces/schedule-replace.interfaces';
|
|
4
|
+
import { ScheduleConflictDto } from './leagues-scheduler.dto';
|
|
5
|
+
/**
|
|
6
|
+
* Body of a Replace: the games the operator reviewed for removal.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReplaceUnplayedGamesRequestDto {
|
|
9
|
+
removeEventIds: number[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* What a Replace did.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ReplaceResultDto implements IReplaceResult {
|
|
15
|
+
removedCount: number;
|
|
16
|
+
createdCount: number;
|
|
17
|
+
keptCount: number;
|
|
18
|
+
skippedCount: number;
|
|
19
|
+
notesMovedCount: number;
|
|
20
|
+
programSeason: ProgramSeason;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A published game in a Replace plan.
|
|
24
|
+
*/
|
|
25
|
+
export declare class ReplacePlanEventDto implements IReplacePlanEvent {
|
|
26
|
+
eventId: number;
|
|
27
|
+
title: string;
|
|
28
|
+
startDate: Date;
|
|
29
|
+
endDate: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A draft game Replace creates.
|
|
33
|
+
*/
|
|
34
|
+
export declare class ReplacePlanDraftGameDto implements IReplacePlanDraftGame {
|
|
35
|
+
gameId: string;
|
|
36
|
+
title: string;
|
|
37
|
+
startDate: Date;
|
|
38
|
+
endDate: Date;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A published game Replace keeps, with why.
|
|
42
|
+
*/
|
|
43
|
+
export declare class ReplacePlanKeptEventDto extends ReplacePlanEventDto implements IReplacePlanKeptEvent {
|
|
44
|
+
reasons: ScheduleReplaceKeptReasonEnum[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* What replacing with the stored draft would do.
|
|
48
|
+
*/
|
|
49
|
+
export declare class ReplacementPlanResultDto implements IReplacementPlanResult {
|
|
50
|
+
cutoff: Date;
|
|
51
|
+
timezone: string;
|
|
52
|
+
divisionIds: number[];
|
|
53
|
+
removed: ReplacePlanEventDto[];
|
|
54
|
+
removedWithNotesCount: number;
|
|
55
|
+
kept: ReplacePlanKeptEventDto[];
|
|
56
|
+
created: ReplacePlanDraftGameDto[];
|
|
57
|
+
skippedCount: number;
|
|
58
|
+
conflicts: ScheduleConflictDto[];
|
|
59
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReplacementPlanResultDto = exports.ReplacePlanKeptEventDto = exports.ReplacePlanDraftGameDto = exports.ReplacePlanEventDto = exports.ReplaceResultDto = exports.ReplaceUnplayedGamesRequestDto = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Body of a Replace: the games the operator reviewed for removal.
|
|
6
|
+
*/
|
|
7
|
+
class ReplaceUnplayedGamesRequestDto {
|
|
8
|
+
}
|
|
9
|
+
exports.ReplaceUnplayedGamesRequestDto = ReplaceUnplayedGamesRequestDto;
|
|
10
|
+
/**
|
|
11
|
+
* What a Replace did.
|
|
12
|
+
*/
|
|
13
|
+
class ReplaceResultDto {
|
|
14
|
+
}
|
|
15
|
+
exports.ReplaceResultDto = ReplaceResultDto;
|
|
16
|
+
/**
|
|
17
|
+
* A published game in a Replace plan.
|
|
18
|
+
*/
|
|
19
|
+
class ReplacePlanEventDto {
|
|
20
|
+
}
|
|
21
|
+
exports.ReplacePlanEventDto = ReplacePlanEventDto;
|
|
22
|
+
/**
|
|
23
|
+
* A draft game Replace creates.
|
|
24
|
+
*/
|
|
25
|
+
class ReplacePlanDraftGameDto {
|
|
26
|
+
}
|
|
27
|
+
exports.ReplacePlanDraftGameDto = ReplacePlanDraftGameDto;
|
|
28
|
+
/**
|
|
29
|
+
* A published game Replace keeps, with why.
|
|
30
|
+
*/
|
|
31
|
+
class ReplacePlanKeptEventDto extends ReplacePlanEventDto {
|
|
32
|
+
}
|
|
33
|
+
exports.ReplacePlanKeptEventDto = ReplacePlanKeptEventDto;
|
|
34
|
+
/**
|
|
35
|
+
* What replacing with the stored draft would do.
|
|
36
|
+
*/
|
|
37
|
+
class ReplacementPlanResultDto {
|
|
38
|
+
}
|
|
39
|
+
exports.ReplacementPlanResultDto = ReplacementPlanResultDto;
|
|
40
|
+
//# sourceMappingURL=schedule-replace.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-replace.dto.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/dto/schedule-replace.dto.ts"],"names":[],"mappings":";;;AAaA;;GAEG;AACH,MAAa,8BAA8B;CAE1C;AAFD,wEAEC;AAED;;GAEG;AACH,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED;;GAEG;AACH,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED;;GAEG;AACH,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,mBAAmB;CAE/D;AAFD,0DAEC;AAED;;GAEG;AACH,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schedule-import.consts';
|
package/dist/types/{audit/alerts/types/interfaces → leagues-scheduler/types/consts}/index.js
RENAMED
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./schedule-import.consts"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/leagues-scheduler/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ValidationSeverityEnum } from '../enums';
|
|
2
|
+
import { ScheduleImportProblemCodeEnum } from '../enums/schedule-import.enums';
|
|
3
|
+
/** Days outside the season that are a warning; further out is an error. */
|
|
4
|
+
export declare const SCHEDULE_IMPORT_SEASON_TOLERANCE_DAYS = 30;
|
|
5
|
+
/** Most game rows one upload accepts. Bye, playoff, separator and example rows do not count. */
|
|
6
|
+
export declare const MAX_SCHEDULE_IMPORT_GAMES = 1000;
|
|
7
|
+
/** Days before the Replace cutoff from which a check-in still keeps a game. */
|
|
8
|
+
export declare const REPLACE_CHECK_IN_LOOKBACK_DAYS = 1;
|
|
9
|
+
/** Unmatched names one upload suggests close names for; later ones get no suggestions. */
|
|
10
|
+
export declare const MAX_SCHEDULE_IMPORT_SUGGESTED_NAMES = 50;
|
|
11
|
+
/** Games longer than this get a warning. */
|
|
12
|
+
export declare const SCHEDULE_IMPORT_LONG_GAME_MINUTES = 240;
|
|
13
|
+
/** Appended to a `YYYY-MM-DD` day to store it as midnight UTC, as Generate stores game and season dates. */
|
|
14
|
+
export declare const ISO_MIDNIGHT_SUFFIX = "T00:00:00.000Z";
|
|
15
|
+
/** Prefix of a draft game id built from a spreadsheet row (`import-<row>`). */
|
|
16
|
+
export declare const SCHEDULE_IMPORT_GAME_ID_PREFIX = "import-";
|
|
17
|
+
/** Prefix of the game id a published event takes in the upload's overlap check (`published-<eventId>`). */
|
|
18
|
+
export declare const SCHEDULE_IMPORT_PUBLISHED_GAME_ID_PREFIX = "published-";
|
|
19
|
+
/** Severity of every upload problem code. */
|
|
20
|
+
export declare const SCHEDULE_IMPORT_PROBLEM_SEVERITY: Record<ScheduleImportProblemCodeEnum, ValidationSeverityEnum>;
|
|
21
|
+
/** Most rows one upload may send, skipped rows included. */
|
|
22
|
+
export declare const MAX_SCHEDULE_IMPORT_ROWS = 2000;
|
|
23
|
+
/** Longest cell text one upload row may send. */
|
|
24
|
+
export declare const MAX_SCHEDULE_IMPORT_CELL_LENGTH = 200;
|