@bondsports/types 2.4.99-squad-b-1 → 2.4.100-a-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/types/interfaces/cart.interfaces.d.ts +8 -4
- package/dist/types/customers/types/consts/customers.consts.d.ts +2 -1
- package/dist/types/customers/types/consts/customers.consts.js +3 -2
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +1 -0
- package/dist/types/entity/Invoice.d.ts +1 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/folders/dto/folder.dto.d.ts +1 -15
- package/dist/types/folders/dto/folder.dto.js +2 -12
- package/dist/types/folders/dto/folder.dto.js.map +1 -1
- package/dist/types/folders/types/index.d.ts +0 -2
- package/dist/types/folders/types/index.js +0 -2
- package/dist/types/folders/types/index.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +1 -1
- package/dist/types/gl-codes/dto/gl-code.dto.d.ts +11 -4
- package/dist/types/gl-codes/dto/gl-code.dto.js +6 -5
- package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.d.ts +10 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js +8 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js.map +1 -0
- package/dist/types/gl-codes/entities/gl-code.d.ts +2 -0
- package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
- package/dist/types/gl-codes/entities/index.d.ts +1 -0
- package/dist/types/gl-codes/entities/index.js +1 -0
- package/dist/types/gl-codes/entities/index.js.map +1 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.d.ts +2 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.js +1 -0
- package/dist/types/gl-codes/types/enums/gl-code.enum.js.map +1 -1
- package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.d.ts +6 -0
- package/dist/types/import/dto/membership.dto.d.ts +0 -1
- package/dist/types/import/dto/membership.dto.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/invoice/dto/organization-invoice.dto.d.ts +2 -0
- package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
- package/dist/types/league-standings/entities/team-identity.entity.d.ts +2 -6
- package/dist/types/league-standings/entities/team-identity.entity.js +0 -4
- package/dist/types/league-standings/entities/team-identity.entity.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +2 -2
- package/dist/types/payment/dto/payment.dto.d.ts +2 -3
- package/dist/types/payment/dto/payment.dto.js +1 -4
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/dto/refund.dto.d.ts +12 -4
- package/dist/types/payment/dto/refund.dto.js +8 -1
- package/dist/types/payment/dto/refund.dto.js.map +1 -1
- package/dist/types/payment/dto/void.dto.d.ts +2 -1
- package/dist/types/payment/dto/void.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +1 -0
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/enums/index.d.ts +1 -0
- package/dist/types/{standings-integration/types/interfaces → payment/enums}/index.js +1 -1
- package/dist/types/payment/enums/index.js.map +1 -0
- package/dist/types/payment/enums/linked-account.enums.d.ts +5 -0
- package/dist/types/payment/enums/linked-account.enums.js +13 -0
- package/dist/types/payment/enums/linked-account.enums.js.map +1 -0
- package/dist/types/payment/index.d.ts +1 -0
- package/dist/types/payment/index.js +1 -0
- package/dist/types/payment/index.js.map +1 -1
- package/dist/types/payment/types/enums/linked-account.enums.d.ts +2 -1
- package/dist/types/payment/types/enums/linked-account.enums.js +1 -0
- package/dist/types/payment/types/enums/linked-account.enums.js.map +1 -1
- package/dist/types/payment/types/enums/refund.enums.d.ts +0 -1
- package/dist/types/payment/types/enums/refund.enums.js +0 -1
- package/dist/types/payment/types/enums/refund.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/index.d.ts +1 -0
- package/dist/types/payment/types/interfaces/index.js +1 -0
- package/dist/types/payment/types/interfaces/index.js.map +1 -1
- package/dist/types/payment/types/interfaces/linked-account.interfaces.d.ts +9 -0
- package/dist/types/{standings-integration/types/interfaces/my-team.interfaces.js → payment/types/interfaces/linked-account.interfaces.js} +1 -1
- package/dist/types/payment/types/interfaces/linked-account.interfaces.js.map +1 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +2 -3
- package/dist/types/payment/types/interfaces/pending-terminal-reconciler.interfaces.d.ts +2 -2
- package/dist/types/payment/types/interfaces/refund.interfaces.d.ts +21 -8
- package/dist/types/payment/types/interfaces/refund.interfaces.js.map +1 -1
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +3 -1
- package/dist/types/payout-accounts/entities/index.d.ts +1 -0
- package/dist/types/{standings-integration/types/consts → payout-accounts/entities}/index.js +1 -1
- package/dist/types/payout-accounts/entities/index.js.map +1 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.d.ts +10 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js +8 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js.map +1 -0
- package/dist/types/payout-accounts/index.d.ts +2 -0
- package/dist/types/payout-accounts/index.js +19 -0
- package/dist/types/payout-accounts/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/index.d.ts +1 -0
- package/dist/types/{folders/types/consts → payout-accounts/types/dto}/index.js +1 -1
- package/dist/types/payout-accounts/types/dto/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.d.ts +21 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js +14 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js.map +1 -0
- package/dist/types/{standings-integration → payout-accounts}/types/index.d.ts +1 -1
- package/dist/types/{standings-integration → payout-accounts}/types/index.js +1 -1
- package/dist/types/payout-accounts/types/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.d.ts +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.js +18 -0
- package/dist/types/payout-accounts/types/interfaces/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.d.ts +64 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js +3 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +39 -39
- package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.d.ts +6 -0
- package/dist/types/programs-seasons/dto/program-segment.dto.d.ts +1 -2
- package/dist/types/programs-seasons/dto/program-segment.dto.js +1 -1
- package/dist/types/programs-seasons/dto/program-segment.dto.js.map +1 -1
- package/dist/types/programs-seasons/dto/public-session-group.dto.js.map +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +1 -2
- package/dist/types/programs-seasons/entities/ProgramSeason.js +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
- package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +1 -13
- package/dist/types/programs-seasons/types/enums/program-season.enums.js +1 -14
- package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +11 -1
- package/dist/types/purchase/dto/purchase.dto.js +4 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +2 -0
- package/dist/types/repositories/team-identity/team-identity.types.d.ts +1 -2
- package/dist/types/reservations/entities/addon.entity.d.ts +2 -0
- package/dist/types/reservations/entities/addon.entity.js.map +1 -1
- package/dist/types/services/enums.service.d.ts +1 -2
- package/dist/types/services/enums.service.js +0 -1
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +1 -0
- package/dist/types/standings-integration/dto/index.d.ts +0 -1
- package/dist/types/standings-integration/dto/index.js +0 -1
- package/dist/types/standings-integration/dto/index.js.map +1 -1
- package/dist/types/standings-integration/dto/my-team.dto.d.ts +0 -104
- package/dist/types/standings-integration/dto/my-team.dto.js +1 -77
- package/dist/types/standings-integration/dto/my-team.dto.js.map +1 -1
- package/dist/types/standings-integration/index.d.ts +0 -1
- package/dist/types/standings-integration/index.js +0 -1
- package/dist/types/standings-integration/index.js.map +1 -1
- package/dist/types/terminal/dto/terminal-actions.dto.js.map +1 -1
- package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/folders/types/consts/folder.consts.d.ts +0 -2
- package/dist/types/folders/types/consts/folder.consts.js +0 -6
- package/dist/types/folders/types/consts/folder.consts.js.map +0 -1
- package/dist/types/folders/types/consts/index.d.ts +0 -1
- package/dist/types/folders/types/consts/index.js.map +0 -1
- package/dist/types/folders/types/team-folder-metadata.d.ts +0 -54
- package/dist/types/folders/types/team-folder-metadata.js +0 -98
- package/dist/types/folders/types/team-folder-metadata.js.map +0 -1
- package/dist/types/standings-integration/dto/roster-rollover.dto.d.ts +0 -36
- package/dist/types/standings-integration/dto/roster-rollover.dto.js +0 -23
- package/dist/types/standings-integration/dto/roster-rollover.dto.js.map +0 -1
- package/dist/types/standings-integration/types/consts/index.d.ts +0 -1
- package/dist/types/standings-integration/types/consts/index.js.map +0 -1
- package/dist/types/standings-integration/types/consts/roster-rollover.consts.d.ts +0 -8
- package/dist/types/standings-integration/types/consts/roster-rollover.consts.js +0 -12
- package/dist/types/standings-integration/types/consts/roster-rollover.consts.js.map +0 -1
- package/dist/types/standings-integration/types/index.js.map +0 -1
- package/dist/types/standings-integration/types/interfaces/index.d.ts +0 -1
- package/dist/types/standings-integration/types/interfaces/index.js.map +0 -1
- package/dist/types/standings-integration/types/interfaces/my-team.interfaces.d.ts +0 -78
- package/dist/types/standings-integration/types/interfaces/my-team.interfaces.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UpdateMyTeamProfileResponseDto = exports.UpdateMyTeamProfileBodyDto = exports.TeamFolderParamsDto = exports.SUBTYPE_TO_ROLE = exports.ROLE_TO_SUBTYPE = exports.TeamRoleEnum = void 0;
|
|
4
4
|
const enums_service_1 = require("../../services/enums.service");
|
|
5
5
|
/**
|
|
6
6
|
* Role a user holds on a team folder, as surfaced through the consumer
|
|
@@ -40,28 +40,6 @@ const MAX_TEAM_NAME_LENGTH = 255;
|
|
|
40
40
|
class TeamFolderParamsDto {
|
|
41
41
|
}
|
|
42
42
|
exports.TeamFolderParamsDto = TeamFolderParamsDto;
|
|
43
|
-
/**
|
|
44
|
-
* Query DTO for `GET /my-teams/past-teams` (the program season the user is
|
|
45
|
-
* registering into).
|
|
46
|
-
*/
|
|
47
|
-
class MyPastTeamsQueryDto {
|
|
48
|
-
}
|
|
49
|
-
exports.MyPastTeamsQueryDto = MyPastTeamsQueryDto;
|
|
50
|
-
/**
|
|
51
|
-
* Params DTO for `/my-teams/:teamFolderId/players/:folderContentId` routes.
|
|
52
|
-
* The player is identified by the roster `FolderContent` row id (as surfaced
|
|
53
|
-
* by the team roster query), which uniquely identifies the membership to
|
|
54
|
-
* remove.
|
|
55
|
-
*/
|
|
56
|
-
class TeamPlayerParamsDto {
|
|
57
|
-
}
|
|
58
|
-
exports.TeamPlayerParamsDto = TeamPlayerParamsDto;
|
|
59
|
-
/**
|
|
60
|
-
* Response DTO for `DELETE /my-teams/:teamFolderId/players/:folderContentId`.
|
|
61
|
-
*/
|
|
62
|
-
class RemovePlayerResponseDto {
|
|
63
|
-
}
|
|
64
|
-
exports.RemovePlayerResponseDto = RemovePlayerResponseDto;
|
|
65
43
|
/**
|
|
66
44
|
* Body DTO for `PATCH /my-teams/:teamFolderId`. At least one field must be
|
|
67
45
|
* provided -- enforcement is done at the service layer so we can return a
|
|
@@ -81,58 +59,4 @@ exports.UpdateMyTeamProfileBodyDto = UpdateMyTeamProfileBodyDto;
|
|
|
81
59
|
class UpdateMyTeamProfileResponseDto {
|
|
82
60
|
}
|
|
83
61
|
exports.UpdateMyTeamProfileResponseDto = UpdateMyTeamProfileResponseDto;
|
|
84
|
-
/**
|
|
85
|
-
* Body DTO for `PATCH /my-teams/:teamFolderId/players/:folderContentId`
|
|
86
|
-
* ("Edit Teammate Details"). Every field is optional so a single request can
|
|
87
|
-
* change the role, the jersey number, the position, or any combination; at
|
|
88
|
-
* least one must be present (enforced at the service layer for a clear 400).
|
|
89
|
-
*
|
|
90
|
-
* `jerseyNumber` / `position` follow JSON Merge Patch semantics: omit to keep
|
|
91
|
-
* the stored value, pass `null` to clear it. Both are ignored (and cleared)
|
|
92
|
-
* when the resolved role is a non-player role (coach or organizer).
|
|
93
|
-
*/
|
|
94
|
-
class UpdateTeammateDetailsBodyDto {
|
|
95
|
-
}
|
|
96
|
-
exports.UpdateTeammateDetailsBodyDto = UpdateTeammateDetailsBodyDto;
|
|
97
|
-
/**
|
|
98
|
-
* Response DTO for `PATCH /my-teams/:teamFolderId/players/:folderContentId`,
|
|
99
|
-
* reflecting the teammate's roster entry after the update.
|
|
100
|
-
*/
|
|
101
|
-
class UpdateTeammateDetailsResponseDto {
|
|
102
|
-
}
|
|
103
|
-
exports.UpdateTeammateDetailsResponseDto = UpdateTeammateDetailsResponseDto;
|
|
104
|
-
/**
|
|
105
|
-
* Response DTO for `GET /my-teams/:teamFolderId/position-defaults`, the ordered
|
|
106
|
-
* list of position options the consumer offers for the team's sport.
|
|
107
|
-
*/
|
|
108
|
-
class PositionDefaultsResponseDto {
|
|
109
|
-
}
|
|
110
|
-
exports.PositionDefaultsResponseDto = PositionDefaultsResponseDto;
|
|
111
|
-
/**
|
|
112
|
-
* Params DTO for `GET /my-teams/past-teams/:teamIdentityId/roster`.
|
|
113
|
-
*/
|
|
114
|
-
class PastTeamRosterParamsDto {
|
|
115
|
-
}
|
|
116
|
-
exports.PastTeamRosterParamsDto = PastTeamRosterParamsDto;
|
|
117
|
-
class PastTeamRosterQueryDto {
|
|
118
|
-
}
|
|
119
|
-
exports.PastTeamRosterQueryDto = PastTeamRosterQueryDto;
|
|
120
|
-
/**
|
|
121
|
-
* One teammate on a past team's most recent roster, offered to the captain in
|
|
122
|
-
* the "Rollover Participants" modal during registration. Sourced from the
|
|
123
|
-
* `FolderContent` USER rows on the identity's most recent team folder.
|
|
124
|
-
*/
|
|
125
|
-
class RolloverRosterEntryDto {
|
|
126
|
-
}
|
|
127
|
-
exports.RolloverRosterEntryDto = RolloverRosterEntryDto;
|
|
128
|
-
/**
|
|
129
|
-
* One past team a user can roll over into the program season they are
|
|
130
|
-
* registering for, as returned by `GET /my-teams/past-teams?programSeasonId=`.
|
|
131
|
-
*
|
|
132
|
-
* `teamIdentityId` is the stable cross-season handle the consumer FE passes
|
|
133
|
-
* back into the registration flow to drive the rollover linkage.
|
|
134
|
-
*/
|
|
135
|
-
class MyPastTeamDto {
|
|
136
|
-
}
|
|
137
|
-
exports.MyPastTeamDto = MyPastTeamDto;
|
|
138
62
|
//# sourceMappingURL=my-team.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"my-team.dto.js","sourceRoot":"","sources":["../../../../src/types/standings-integration/dto/my-team.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"my-team.dto.js","sourceRoot":"","sources":["../../../../src/types/standings-integration/dto/my-team.dto.ts"],"names":[],"mappings":";;;AAEA,gEAAmE;AAEnE;;;;;GAKG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED;;GAEG;AACU,QAAA,eAAe,GAA8C;IACzE,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,mCAAmB,CAAC,iBAAiB;IAC7D,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,mCAAmB,CAAC,eAAe;IACzD,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,mCAAmB,CAAC,mBAAmB;IACjE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,mCAAmB,CAAC,gBAAgB;CAC3D,CAAC;AAEF;;GAEG;AACU,QAAA,eAAe,GAAuD;IAClF,CAAC,mCAAmB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO;IAC7D,CAAC,mCAAmB,CAAC,eAAe,CAAC,EAAE,YAAY,CAAC,KAAK;IACzD,CAAC,mCAAmB,CAAC,mBAAmB,CAAC,EAAE,YAAY,CAAC,SAAS;IACjE,CAAC,mCAAmB,CAAC,gBAAgB,CAAC,EAAE,YAAY,CAAC,MAAM;CAC3D,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC;;GAEG;AACH,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED;;;;GAIG;AACH,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED;;;;;;;GAOG;AACH,MAAa,8BAA8B;CAU1C;AAVD,wEAUC"}
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./dto"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/standings-integration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/standings-integration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;AASA,MAAM,iCAAiC,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"terminal-actions.dto.js","sourceRoot":"","sources":["../../../../src/types/terminal/dto/terminal-actions.dto.ts"],"names":[],"mappings":";;;AASA,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAEhC,QAAA,mCAAmC,GAAG,GAAG,CAAC;AACvD,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAE3C,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,uCAAuC;CAInD;AAJD,0FAIC;AAED,MAAa,2CAA2C;CAEvD;AAFD,kGAEC;AAED;;;;;GAKG;AACH,MAAM,gCAAgC,GAAG,CAAC,GAA8B,EAAW,EAAE,CACpF,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC;AAElE,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACvC,uEAAuC,CAAA;IACvC,+DAA+B,CAAA;AAChC,CAAC,EAHW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAGvC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,+BAA+B;CAM3C;AAND,0EAMC;AAED,MAAa,6BAA6B;CAQzC;AARD,sEAQC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAED,MAAa,iCAAiC;CAI7C;AAJD,8EAIC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,+BAA+B;CAM3C;AAND,0EAMC"}
|
|
@@ -67,12 +67,12 @@ export interface IActionLogTemplates {
|
|
|
67
67
|
export interface IExecuteActionTriggerParams {
|
|
68
68
|
organizationId: number;
|
|
69
69
|
readerId: string;
|
|
70
|
+
/** PaymentIntent id being re-dispatched; override/ghost cleanup must not cancel it. */
|
|
71
|
+
reservedTargetId?: string | null;
|
|
70
72
|
actionType: TerminalReaderActionTypeEnum;
|
|
71
73
|
dispatch: (readerId: string) => Promise<TerminalActionResponseDto>;
|
|
72
74
|
force?: boolean;
|
|
73
75
|
logTemplates: IActionLogTemplates;
|
|
74
|
-
/** PaymentIntent id being re-dispatched; override/ghost cleanup must not cancel it. */
|
|
75
|
-
reservedTargetId?: string | null;
|
|
76
76
|
}
|
|
77
77
|
export interface IForceActionTriggerParams extends IExecuteActionTriggerParams {
|
|
78
78
|
startedAt: number;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_ROLLOVER_PLAYER_USER_IDS = void 0;
|
|
4
|
-
/** Cap on past-player user ids accepted on a cloneGroup checkout payload. */
|
|
5
|
-
exports.MAX_ROLLOVER_PLAYER_USER_IDS = 100;
|
|
6
|
-
//# sourceMappingURL=folder.consts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"folder.consts.js","sourceRoot":"","sources":["../../../../../src/types/folders/types/consts/folder.consts.ts"],"names":[],"mappings":";;;AAAA,6EAA6E;AAChE,QAAA,4BAA4B,GAAG,GAAG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './folder.consts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/folders/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ProductSubTypesEnum } from '../../services/enums.service';
|
|
2
|
-
/**
|
|
3
|
-
* A value for a JSON Merge Patch field: `undefined` leaves the stored value
|
|
4
|
-
* untouched, `null` removes the key, and any other value overwrites it.
|
|
5
|
-
*/
|
|
6
|
-
export type TMergePatchValue<T> = T | null | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Fluent wrapper around a team-folder `FolderContent.metadata` record. It
|
|
9
|
-
* centralizes every metadata read/write so callers never index the raw JSONB
|
|
10
|
-
* by string key, and it owns the two domain rules that previously lived inline
|
|
11
|
-
* in services:
|
|
12
|
-
*
|
|
13
|
-
* - JSON Merge Patch semantics for the optional player fields (omit = keep,
|
|
14
|
-
* `null` = delete, value = overwrite), via {@link applyJerseyNumber} /
|
|
15
|
-
* {@link applyPosition}.
|
|
16
|
-
* - Non-player roles (coach / organizer) never carry a jersey number or
|
|
17
|
-
* position; {@link isNonPlayerRole} + {@link clearPlayerFields} express that.
|
|
18
|
-
*
|
|
19
|
-
* Unknown keys (e.g. `productUserId`) are preserved across edits. Instances are
|
|
20
|
-
* mutated in place and the mutators return `this` so edits can be chained;
|
|
21
|
-
* {@link toRecord} produces the object to persist.
|
|
22
|
-
*/
|
|
23
|
-
export declare class TeamFolderMetadata {
|
|
24
|
-
private readonly data;
|
|
25
|
-
private constructor();
|
|
26
|
-
/**
|
|
27
|
-
* Wraps an existing metadata record (or starts from empty). The source is
|
|
28
|
-
* shallow-copied, so the caller's object is never mutated.
|
|
29
|
-
*/
|
|
30
|
-
static from(source?: Record<string, unknown> | null): TeamFolderMetadata;
|
|
31
|
-
get teamRole(): string | undefined;
|
|
32
|
-
get jerseyNumber(): number | null;
|
|
33
|
-
get position(): string | null;
|
|
34
|
-
/**
|
|
35
|
-
* True when the stored role is a non-playing role (coach / organizer) that
|
|
36
|
-
* must not carry a jersey number or position.
|
|
37
|
-
*/
|
|
38
|
-
get isNonPlayerRole(): boolean;
|
|
39
|
-
setRole(subtype: ProductSubTypesEnum | string): this;
|
|
40
|
-
applyJerseyNumber(value: TMergePatchValue<number>): this;
|
|
41
|
-
applyPosition(value: TMergePatchValue<string>): this;
|
|
42
|
-
/**
|
|
43
|
-
* Removes the player-only fields (jersey number and position). Used when the
|
|
44
|
-
* resolved role is a coach or organizer.
|
|
45
|
-
*/
|
|
46
|
-
clearPlayerFields(): this;
|
|
47
|
-
/**
|
|
48
|
-
* Returns a shallow copy of the underlying metadata for persistence. The
|
|
49
|
-
* return type mirrors the `FolderContent.metadata` JSONB column, which is an
|
|
50
|
-
* untyped record; use the typed getters above for reads.
|
|
51
|
-
*/
|
|
52
|
-
toRecord(): Record<string, unknown>;
|
|
53
|
-
private applyOptionalField;
|
|
54
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TeamFolderMetadata = void 0;
|
|
4
|
-
const enums_service_1 = require("../../services/enums.service");
|
|
5
|
-
const TEAM_ROLE_KEY = 'teamRole';
|
|
6
|
-
const JERSEY_NUMBER_KEY = 'jerseyNumber';
|
|
7
|
-
const POSITION_KEY = 'position';
|
|
8
|
-
/**
|
|
9
|
-
* Fluent wrapper around a team-folder `FolderContent.metadata` record. It
|
|
10
|
-
* centralizes every metadata read/write so callers never index the raw JSONB
|
|
11
|
-
* by string key, and it owns the two domain rules that previously lived inline
|
|
12
|
-
* in services:
|
|
13
|
-
*
|
|
14
|
-
* - JSON Merge Patch semantics for the optional player fields (omit = keep,
|
|
15
|
-
* `null` = delete, value = overwrite), via {@link applyJerseyNumber} /
|
|
16
|
-
* {@link applyPosition}.
|
|
17
|
-
* - Non-player roles (coach / organizer) never carry a jersey number or
|
|
18
|
-
* position; {@link isNonPlayerRole} + {@link clearPlayerFields} express that.
|
|
19
|
-
*
|
|
20
|
-
* Unknown keys (e.g. `productUserId`) are preserved across edits. Instances are
|
|
21
|
-
* mutated in place and the mutators return `this` so edits can be chained;
|
|
22
|
-
* {@link toRecord} produces the object to persist.
|
|
23
|
-
*/
|
|
24
|
-
class TeamFolderMetadata {
|
|
25
|
-
constructor(source) {
|
|
26
|
-
this.data = { ...source };
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Wraps an existing metadata record (or starts from empty). The source is
|
|
30
|
-
* shallow-copied, so the caller's object is never mutated.
|
|
31
|
-
*/
|
|
32
|
-
static from(source) {
|
|
33
|
-
return new TeamFolderMetadata(source ?? {});
|
|
34
|
-
}
|
|
35
|
-
get teamRole() {
|
|
36
|
-
const value = this.data[TEAM_ROLE_KEY];
|
|
37
|
-
return typeof value === 'string' ? value : undefined;
|
|
38
|
-
}
|
|
39
|
-
get jerseyNumber() {
|
|
40
|
-
const value = this.data[JERSEY_NUMBER_KEY];
|
|
41
|
-
return typeof value === 'number' ? value : null;
|
|
42
|
-
}
|
|
43
|
-
get position() {
|
|
44
|
-
const value = this.data[POSITION_KEY];
|
|
45
|
-
return typeof value === 'string' ? value : null;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* True when the stored role is a non-playing role (coach / organizer) that
|
|
49
|
-
* must not carry a jersey number or position.
|
|
50
|
-
*/
|
|
51
|
-
get isNonPlayerRole() {
|
|
52
|
-
const role = this.teamRole;
|
|
53
|
-
if (!role) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
return enums_service_1.PARTICIPANT_SUBTYPES_EXCLUDED_FROM_USER_VALIDATION.includes(role);
|
|
57
|
-
}
|
|
58
|
-
setRole(subtype) {
|
|
59
|
-
this.data[TEAM_ROLE_KEY] = subtype;
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
applyJerseyNumber(value) {
|
|
63
|
-
return this.applyOptionalField(JERSEY_NUMBER_KEY, value);
|
|
64
|
-
}
|
|
65
|
-
applyPosition(value) {
|
|
66
|
-
return this.applyOptionalField(POSITION_KEY, value);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Removes the player-only fields (jersey number and position). Used when the
|
|
70
|
-
* resolved role is a coach or organizer.
|
|
71
|
-
*/
|
|
72
|
-
clearPlayerFields() {
|
|
73
|
-
delete this.data[JERSEY_NUMBER_KEY];
|
|
74
|
-
delete this.data[POSITION_KEY];
|
|
75
|
-
return this;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Returns a shallow copy of the underlying metadata for persistence. The
|
|
79
|
-
* return type mirrors the `FolderContent.metadata` JSONB column, which is an
|
|
80
|
-
* untyped record; use the typed getters above for reads.
|
|
81
|
-
*/
|
|
82
|
-
toRecord() {
|
|
83
|
-
return { ...this.data };
|
|
84
|
-
}
|
|
85
|
-
applyOptionalField(key, value) {
|
|
86
|
-
if (value === undefined) {
|
|
87
|
-
return this;
|
|
88
|
-
}
|
|
89
|
-
if (value === null) {
|
|
90
|
-
delete this.data[key];
|
|
91
|
-
return this;
|
|
92
|
-
}
|
|
93
|
-
this.data[key] = value;
|
|
94
|
-
return this;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.TeamFolderMetadata = TeamFolderMetadata;
|
|
98
|
-
//# sourceMappingURL=team-folder-metadata.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"team-folder-metadata.js","sourceRoot":"","sources":["../../../../src/types/folders/types/team-folder-metadata.ts"],"names":[],"mappings":";;;AAAA,gEAAuH;AAQvH,MAAM,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AACzC,MAAM,YAAY,GAAG,UAAU,CAAC;AAEhC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,kBAAkB;IAG9B,YAAoB,MAA+B;QAClD,IAAI,CAAC,IAAI,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,MAAuC;QAClD,OAAO,IAAI,kBAAkB,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,QAAQ;QACX,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEvC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACtD,CAAC;IAED,IAAI,YAAY;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAE3C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,CAAC;IAED,IAAI,QAAQ;QACX,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEtC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,IAAI,eAAe;QAClB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC3B,IAAI,CAAC,IAAI,EAAE;YACV,OAAO,KAAK,CAAC;SACb;QAED,OAAQ,kEAAwE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjG,CAAC;IAED,OAAO,CAAC,OAAqC;QAC5C,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC;QAEnC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,iBAAiB,CAAC,KAA+B;QAChD,OAAO,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,KAA+B;QAC5C,OAAO,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,iBAAiB;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE/B,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACP,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAEO,kBAAkB,CAAC,GAAW,EAAE,KAAwC;QAC/E,IAAI,KAAK,KAAK,SAAS,EAAE;YACxB,OAAO,IAAI,CAAC;SACZ;QAED,IAAI,KAAK,KAAK,IAAI,EAAE;YACnB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAEtB,OAAO,IAAI,CAAC;SACZ;QAED,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAEvB,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AA/FD,gDA+FC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { InviteDto } from '../../invites/dto/invite.dto';
|
|
2
|
-
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
3
|
-
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
4
|
-
import { RosterRolloverModeEnum } from '../../programs-seasons/types/enums/program-season.enums';
|
|
5
|
-
import { InvoiceStatusEnum } from '../../services/enums.service';
|
|
6
|
-
export declare class RolloverPlayerParamsDto extends ByOrganizationIdDto {
|
|
7
|
-
userId: number;
|
|
8
|
-
}
|
|
9
|
-
export declare class RolloverPlayersBodyDto {
|
|
10
|
-
targetUserIds: number[];
|
|
11
|
-
programSeasonId: number;
|
|
12
|
-
sourceTeamIdentityId: number;
|
|
13
|
-
}
|
|
14
|
-
export declare class RolloverInvoiceDto {
|
|
15
|
-
id: number;
|
|
16
|
-
price: number;
|
|
17
|
-
paidAmount: number;
|
|
18
|
-
payingUserId?: number;
|
|
19
|
-
paymentStatus: PaymentStatusEnum;
|
|
20
|
-
status?: InvoiceStatusEnum;
|
|
21
|
-
}
|
|
22
|
-
export declare class RolloverPlayerResultDto {
|
|
23
|
-
mode: RosterRolloverModeEnum;
|
|
24
|
-
userId: number;
|
|
25
|
-
invite?: InviteDto;
|
|
26
|
-
invoice?: RolloverInvoiceDto;
|
|
27
|
-
}
|
|
28
|
-
export declare class RolloverPlayerFailureDto {
|
|
29
|
-
userId: number;
|
|
30
|
-
statusCode: number;
|
|
31
|
-
message: string;
|
|
32
|
-
}
|
|
33
|
-
export declare class RolloverPlayersResultDto {
|
|
34
|
-
results: RolloverPlayerResultDto[];
|
|
35
|
-
failures: RolloverPlayerFailureDto[];
|
|
36
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RolloverPlayersResultDto = exports.RolloverPlayerFailureDto = exports.RolloverPlayerResultDto = exports.RolloverInvoiceDto = exports.RolloverPlayersBodyDto = exports.RolloverPlayerParamsDto = void 0;
|
|
4
|
-
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
5
|
-
class RolloverPlayerParamsDto extends organization_dto_1.ByOrganizationIdDto {
|
|
6
|
-
}
|
|
7
|
-
exports.RolloverPlayerParamsDto = RolloverPlayerParamsDto;
|
|
8
|
-
class RolloverPlayersBodyDto {
|
|
9
|
-
}
|
|
10
|
-
exports.RolloverPlayersBodyDto = RolloverPlayersBodyDto;
|
|
11
|
-
class RolloverInvoiceDto {
|
|
12
|
-
}
|
|
13
|
-
exports.RolloverInvoiceDto = RolloverInvoiceDto;
|
|
14
|
-
class RolloverPlayerResultDto {
|
|
15
|
-
}
|
|
16
|
-
exports.RolloverPlayerResultDto = RolloverPlayerResultDto;
|
|
17
|
-
class RolloverPlayerFailureDto {
|
|
18
|
-
}
|
|
19
|
-
exports.RolloverPlayerFailureDto = RolloverPlayerFailureDto;
|
|
20
|
-
class RolloverPlayersResultDto {
|
|
21
|
-
}
|
|
22
|
-
exports.RolloverPlayersResultDto = RolloverPlayersResultDto;
|
|
23
|
-
//# sourceMappingURL=roster-rollover.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roster-rollover.dto.js","sourceRoot":"","sources":["../../../../src/types/standings-integration/dto/roster-rollover.dto.ts"],"names":[],"mappings":";;;AAGA,8EAA8E;AAK9E,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './roster-rollover.consts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/standings-integration/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Permission required for org staff to roll over a player on behalf of a team. */
|
|
2
|
-
export declare const ROLLOVER_MANAGE_PERMISSION = "programs.sessions.edit";
|
|
3
|
-
/**
|
|
4
|
-
* Max players rolled over concurrently within one batch request. Each player runs
|
|
5
|
-
* in its own transaction (and may run a full `purchase()`), so this is kept well
|
|
6
|
-
* below the Postgres connection pool size to avoid exhausting it under load.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ROLLOVER_PLAYER_CONCURRENCY = 5;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ROLLOVER_PLAYER_CONCURRENCY = exports.ROLLOVER_MANAGE_PERMISSION = void 0;
|
|
4
|
-
/** Permission required for org staff to roll over a player on behalf of a team. */
|
|
5
|
-
exports.ROLLOVER_MANAGE_PERMISSION = 'programs.sessions.edit';
|
|
6
|
-
/**
|
|
7
|
-
* Max players rolled over concurrently within one batch request. Each player runs
|
|
8
|
-
* in its own transaction (and may run a full `purchase()`), so this is kept well
|
|
9
|
-
* below the Postgres connection pool size to avoid exhausting it under load.
|
|
10
|
-
*/
|
|
11
|
-
exports.ROLLOVER_PLAYER_CONCURRENCY = 5;
|
|
12
|
-
//# sourceMappingURL=roster-rollover.consts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roster-rollover.consts.js","sourceRoot":"","sources":["../../../../../src/types/standings-integration/types/consts/roster-rollover.consts.ts"],"names":[],"mappings":";;;AAAA,mFAAmF;AACtE,QAAA,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE;;;;GAIG;AACU,QAAA,2BAA2B,GAAG,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/standings-integration/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './my-team.interfaces';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/standings-integration/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Folder } from '../../../folders/entities/folder.entity';
|
|
2
|
-
import { User } from '../../../user/entities/User';
|
|
3
|
-
import { UpdateMyTeamProfileBodyDto, UpdateTeammateDetailsBodyDto } from '../../dto/my-team.dto';
|
|
4
|
-
export interface IUpdateMyTeamProfileInput {
|
|
5
|
-
teamFolderId: number;
|
|
6
|
-
userId: number;
|
|
7
|
-
patch: UpdateMyTeamProfileBodyDto;
|
|
8
|
-
}
|
|
9
|
-
export interface IUpdateTeammateDetailsInput {
|
|
10
|
-
/** Authenticated caller performing the edit. */
|
|
11
|
-
userId: number;
|
|
12
|
-
teamFolderId: number;
|
|
13
|
-
/** FolderContent id of the teammate roster entry being edited. */
|
|
14
|
-
folderContentId: number;
|
|
15
|
-
patch: UpdateTeammateDetailsBodyDto;
|
|
16
|
-
}
|
|
17
|
-
export interface IListMyPastTeamsInput {
|
|
18
|
-
userId: number;
|
|
19
|
-
programSeasonId: number;
|
|
20
|
-
}
|
|
21
|
-
export interface IListPastTeamRosterInput {
|
|
22
|
-
userId: number;
|
|
23
|
-
teamIdentityId: number;
|
|
24
|
-
/**
|
|
25
|
-
* When set, the roster is read from the newest linked folder other than the
|
|
26
|
-
* identity's folder in this season — matching rollover source resolution so
|
|
27
|
-
* the modal does not list players that rollover will skip.
|
|
28
|
-
*/
|
|
29
|
-
programSeasonId?: number;
|
|
30
|
-
}
|
|
31
|
-
export interface IRemovePlayerFromTeamInput {
|
|
32
|
-
/** FolderContent id of the roster entry being removed. */
|
|
33
|
-
folderContentId: number;
|
|
34
|
-
teamFolderId: number;
|
|
35
|
-
/** Authenticated caller performing the removal. */
|
|
36
|
-
userId: number;
|
|
37
|
-
}
|
|
38
|
-
export interface IValidateTeamRemovalResult {
|
|
39
|
-
organizationId: number;
|
|
40
|
-
playerUserId: number;
|
|
41
|
-
seasonId: number;
|
|
42
|
-
folder: Folder;
|
|
43
|
-
}
|
|
44
|
-
export interface IRemovalTemplatePlayer {
|
|
45
|
-
firstName?: string;
|
|
46
|
-
lastName?: string;
|
|
47
|
-
}
|
|
48
|
-
export interface IPlayerRemovedTemplateData {
|
|
49
|
-
player_first_name: string;
|
|
50
|
-
player_last_name: string;
|
|
51
|
-
team_name: string;
|
|
52
|
-
removed_at: string;
|
|
53
|
-
season_name?: string;
|
|
54
|
-
program_name?: string;
|
|
55
|
-
organization_name?: string;
|
|
56
|
-
removed_by_name?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface INotifyPlayerRemovedArgs {
|
|
59
|
-
organizationId: number;
|
|
60
|
-
removedByUserId: number;
|
|
61
|
-
playerUserId: number;
|
|
62
|
-
folder: Folder;
|
|
63
|
-
}
|
|
64
|
-
export interface INotifyPlayerOfRemovalArgs {
|
|
65
|
-
organizationId: number;
|
|
66
|
-
removedByUserId: number;
|
|
67
|
-
playerUserId: number;
|
|
68
|
-
facilityId?: number;
|
|
69
|
-
teamFolderId: number;
|
|
70
|
-
player: User;
|
|
71
|
-
dynamicTemplateData: IPlayerRemovedTemplateData;
|
|
72
|
-
}
|
|
73
|
-
export interface INotifyAdminsOfPlayerRemovalArgs {
|
|
74
|
-
organizationId: number;
|
|
75
|
-
removedByUserId: number;
|
|
76
|
-
facilityId?: number;
|
|
77
|
-
dynamicTemplateData: IPlayerRemovedTemplateData;
|
|
78
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"my-team.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/standings-integration/types/interfaces/my-team.interfaces.ts"],"names":[],"mappings":""}
|