@bondsports/types 2.4.99-a-2 → 2.4.99-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/types/interfaces/cart.interfaces.d.ts +4 -0
- package/dist/types/customers/types/consts/customers.consts.d.ts +1 -2
- package/dist/types/customers/types/consts/customers.consts.js +2 -3
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +0 -1
- package/dist/types/entity/Invoice.d.ts +0 -1
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/folders/dto/folder.dto.d.ts +15 -1
- package/dist/types/folders/dto/folder.dto.js +12 -2
- package/dist/types/folders/dto/folder.dto.js.map +1 -1
- package/dist/types/folders/types/consts/folder.consts.d.ts +2 -0
- package/dist/types/folders/types/consts/folder.consts.js +6 -0
- package/dist/types/folders/types/consts/folder.consts.js.map +1 -0
- package/dist/types/folders/types/consts/index.d.ts +1 -0
- package/dist/types/folders/types/consts/index.js +18 -0
- package/dist/types/folders/types/consts/index.js.map +1 -0
- package/dist/types/folders/types/index.d.ts +2 -0
- package/dist/types/folders/types/index.js +2 -0
- 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/folders/types/team-folder-metadata.d.ts +54 -0
- package/dist/types/folders/types/team-folder-metadata.js +98 -0
- package/dist/types/folders/types/team-folder-metadata.js.map +1 -0
- package/dist/types/gl-codes/dto/gl-code.dto.d.ts +4 -11
- package/dist/types/gl-codes/dto/gl-code.dto.js +5 -6
- package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
- package/dist/types/gl-codes/entities/gl-code.d.ts +0 -2
- package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
- package/dist/types/gl-codes/entities/index.d.ts +0 -1
- package/dist/types/gl-codes/entities/index.js +0 -1
- package/dist/types/gl-codes/entities/index.js.map +1 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.d.ts +1 -2
- package/dist/types/gl-codes/types/enums/gl-code.enum.js +0 -1
- 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 +0 -6
- package/dist/types/import/dto/membership.dto.d.ts +1 -0
- package/dist/types/import/dto/membership.dto.js.map +1 -1
- package/dist/types/invoice/dto/organization-invoice.dto.d.ts +0 -2
- package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
- package/dist/types/league-standings/entities/team-identity.entity.d.ts +6 -2
- package/dist/types/league-standings/entities/team-identity.entity.js +4 -0
- 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 +3 -1
- package/dist/types/payment/dto/payment.dto.js +4 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +0 -1
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/types/interfaces/pending-terminal-reconciler.interfaces.d.ts +2 -2
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +0 -2
- 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 +0 -6
- package/dist/types/programs-seasons/dto/program-segment.dto.d.ts +2 -1
- 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 +2 -1
- 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 +13 -1
- package/dist/types/programs-seasons/types/enums/program-season.enums.js +14 -1
- package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +1 -11
- package/dist/types/purchase/dto/purchase.dto.js +1 -4
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +0 -2
- package/dist/types/repositories/team-identity/team-identity.types.d.ts +2 -1
- package/dist/types/services/enums.service.d.ts +2 -1
- package/dist/types/services/enums.service.js +1 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +0 -1
- package/dist/types/standings-integration/dto/index.d.ts +1 -0
- package/dist/types/standings-integration/dto/index.js +1 -0
- package/dist/types/standings-integration/dto/index.js.map +1 -1
- package/dist/types/standings-integration/dto/my-team.dto.d.ts +104 -0
- package/dist/types/standings-integration/dto/my-team.dto.js +77 -1
- package/dist/types/standings-integration/dto/my-team.dto.js.map +1 -1
- package/dist/types/standings-integration/dto/roster-rollover.dto.d.ts +36 -0
- package/dist/types/standings-integration/dto/roster-rollover.dto.js +23 -0
- package/dist/types/standings-integration/dto/roster-rollover.dto.js.map +1 -0
- package/dist/types/standings-integration/index.d.ts +1 -0
- package/dist/types/standings-integration/index.js +1 -0
- package/dist/types/standings-integration/index.js.map +1 -1
- package/dist/types/standings-integration/types/consts/index.d.ts +1 -0
- package/dist/types/standings-integration/types/consts/index.js +18 -0
- package/dist/types/standings-integration/types/consts/index.js.map +1 -0
- package/dist/types/standings-integration/types/consts/roster-rollover.consts.d.ts +8 -0
- package/dist/types/standings-integration/types/consts/roster-rollover.consts.js +12 -0
- package/dist/types/standings-integration/types/consts/roster-rollover.consts.js.map +1 -0
- package/dist/types/standings-integration/types/index.d.ts +2 -0
- package/dist/types/standings-integration/types/index.js +19 -0
- package/dist/types/standings-integration/types/index.js.map +1 -0
- package/dist/types/standings-integration/types/interfaces/index.d.ts +1 -0
- package/dist/types/standings-integration/types/interfaces/index.js +18 -0
- package/dist/types/standings-integration/types/interfaces/index.js.map +1 -0
- package/dist/types/standings-integration/types/interfaces/my-team.interfaces.d.ts +78 -0
- package/dist/types/standings-integration/types/interfaces/my-team.interfaces.js +3 -0
- package/dist/types/standings-integration/types/interfaces/my-team.interfaces.js.map +1 -0
- 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/gl-codes/entities/gl-code-to-facility.entity.d.ts +0 -10
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js +0 -8
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js.map +0 -1
|
@@ -80,6 +80,10 @@ export interface IValidateCartResult {
|
|
|
80
80
|
[key: number]: Product;
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
+
export interface IUnresolvedFacilityAttribution {
|
|
84
|
+
productId: number;
|
|
85
|
+
facilityIds: number[];
|
|
86
|
+
}
|
|
83
87
|
export interface IUpdateCartOptions {
|
|
84
88
|
updateActiveTime?: boolean;
|
|
85
89
|
updateCache?: boolean;
|
|
@@ -2,6 +2,5 @@ import { CreateCustomerOptions } from '../interfaces';
|
|
|
2
2
|
export declare const LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
|
|
3
3
|
export declare const DEFAULT_CREATE_CUSTOMER_OPTIONS: CreateCustomerOptions;
|
|
4
4
|
export declare const RELATIONS_FOR_ORGANIZATION_USER: string[];
|
|
5
|
-
export declare const CUSTOMER_ENTITY_UPDATE_FIELDS:
|
|
6
|
-
export declare const CUSTOMER_ORG_SCOPED_UPDATE_FIELDS: "colorCodeId"[];
|
|
5
|
+
export declare const CUSTOMER_ENTITY_UPDATE_FIELDS: string[];
|
|
7
6
|
export declare const CUSTOMER_SEARCH_FIELDS: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CUSTOMER_SEARCH_FIELDS = exports.
|
|
3
|
+
exports.CUSTOMER_SEARCH_FIELDS = exports.CUSTOMER_ENTITY_UPDATE_FIELDS = exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
|
|
4
4
|
exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
|
|
5
5
|
exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
6
6
|
saveCustomer: true,
|
|
@@ -8,16 +8,15 @@ exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
|
8
8
|
allowExistingCustomer: false,
|
|
9
9
|
requireNewUser: false,
|
|
10
10
|
skipCreateCognitoUser: false,
|
|
11
|
-
skipUserProfileSync: false,
|
|
12
11
|
};
|
|
13
12
|
exports.RELATIONS_FOR_ORGANIZATION_USER = ['user', 'user.organizationUsers'];
|
|
14
13
|
exports.CUSTOMER_ENTITY_UPDATE_FIELDS = [
|
|
15
14
|
'addressId',
|
|
15
|
+
'colorCodeId',
|
|
16
16
|
'email',
|
|
17
17
|
'firstName',
|
|
18
18
|
'lastName',
|
|
19
19
|
'phoneNumber',
|
|
20
20
|
];
|
|
21
|
-
exports.CUSTOMER_ORG_SCOPED_UPDATE_FIELDS = ['colorCodeId'];
|
|
22
21
|
exports.CUSTOMER_SEARCH_FIELDS = ['firstName', 'lastName', 'name', 'email'];
|
|
23
22
|
//# sourceMappingURL=customers.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AAEpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;IACrB,qBAAqB,EAAE,KAAK;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAErE,QAAA,6BAA6B,GAAG;IAC5C,WAAW;IACX,aAAa;IACb,OAAO;IACP,WAAW;IACX,UAAU;IACV,aAAa;CACb,CAAC;AAEW,QAAA,sBAAsB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -60,7 +60,6 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
60
60
|
subtotal?: number;
|
|
61
61
|
subtotalBalance?: number;
|
|
62
62
|
tippableAmount?: number;
|
|
63
|
-
facilityIds?: number[];
|
|
64
63
|
customer?: Customer;
|
|
65
64
|
obfuscatedCustomer?: ObfuscatedCustomerDto;
|
|
66
65
|
hasFailedPayments?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CA6G1C;AA7GD,0BA6GC"}
|
|
@@ -60,15 +60,29 @@ export declare class CloneFolderDto {
|
|
|
60
60
|
id: number;
|
|
61
61
|
parentFolderId: number;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Clones a team into the season being registered into, identified by its
|
|
65
|
+
* cross-season `TeamIdentity` rather than a specific folder. The backend
|
|
66
|
+
* resolves the identity's most recent team folder, clones it into the target
|
|
67
|
+
* season, and links the clone back to the same `TeamIdentity` so continuity is
|
|
68
|
+
* preserved. Used by the consumer "register an existing team" (rollover) flow.
|
|
69
|
+
*/
|
|
70
|
+
export declare class CloneGroupDto {
|
|
71
|
+
sourceTeamIdentityId: number;
|
|
72
|
+
parentFolderId?: number;
|
|
73
|
+
name?: string;
|
|
74
|
+
mainMedia?: CreateMediaDto;
|
|
75
|
+
}
|
|
63
76
|
/**
|
|
64
77
|
* This DTO is used to ensure a folder exists, either by finding an existing folder, creating a new folder, or cloning an existing folder.
|
|
65
78
|
*
|
|
66
|
-
* folderId,
|
|
79
|
+
* folderId, cloneFolder, cloneGroup and createFolder are mutually exclusive,
|
|
67
80
|
* including more than one will result in undefined behavior.
|
|
68
81
|
*/
|
|
69
82
|
export declare class FindOrCreateFolderDto {
|
|
70
83
|
folderId?: number;
|
|
71
84
|
cloneFolder?: CloneFolderDto;
|
|
85
|
+
cloneGroup?: CloneGroupDto;
|
|
72
86
|
createFolder?: CreateFolderDto;
|
|
73
87
|
}
|
|
74
88
|
export declare class AddContentDto {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotifyFolderContentsUsersDto = exports.NotifyFoldersUsersDto = exports.GetFoldersDto = exports.FolderHierarchyResponseDto = exports.FolderAsGroupResponseDto = exports.GetFolderHierarchyQueryDto = exports.GetFolderHierarchyDto = exports.GetFolderByIdOptionsDto = exports.MoveFolderContentDto = exports.FolderInviteShowDto = exports.FolderInviteUuidDto = exports.FolderContentsMoveDto = exports.GetFolderContentsDto = exports.FolderContentShowDto = exports.FolderContentByIdDto = exports.AddContentDto = exports.FindOrCreateFolderDto = exports.CloneFolderDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = exports.FolderShowDto = exports.FolderByIdDto = void 0;
|
|
3
|
+
exports.NotifyFolderContentsUsersDto = exports.NotifyFoldersUsersDto = exports.GetFoldersDto = exports.FolderHierarchyResponseDto = exports.FolderAsGroupResponseDto = exports.GetFolderHierarchyQueryDto = exports.GetFolderHierarchyDto = exports.GetFolderByIdOptionsDto = exports.MoveFolderContentDto = exports.FolderInviteShowDto = exports.FolderInviteUuidDto = exports.FolderContentsMoveDto = exports.GetFolderContentsDto = exports.FolderContentShowDto = exports.FolderContentByIdDto = exports.AddContentDto = exports.FindOrCreateFolderDto = exports.CloneGroupDto = exports.CloneFolderDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = exports.FolderShowDto = exports.FolderByIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const backoffice_notify_dto_1 = require("../../notifications/dto/backoffice.notify.dto");
|
|
6
6
|
const enums_service_1 = require("../../services/enums.service");
|
|
@@ -23,10 +23,20 @@ exports.DeleteFolderDto = DeleteFolderDto;
|
|
|
23
23
|
class CloneFolderDto {
|
|
24
24
|
}
|
|
25
25
|
exports.CloneFolderDto = CloneFolderDto;
|
|
26
|
+
/**
|
|
27
|
+
* Clones a team into the season being registered into, identified by its
|
|
28
|
+
* cross-season `TeamIdentity` rather than a specific folder. The backend
|
|
29
|
+
* resolves the identity's most recent team folder, clones it into the target
|
|
30
|
+
* season, and links the clone back to the same `TeamIdentity` so continuity is
|
|
31
|
+
* preserved. Used by the consumer "register an existing team" (rollover) flow.
|
|
32
|
+
*/
|
|
33
|
+
class CloneGroupDto {
|
|
34
|
+
}
|
|
35
|
+
exports.CloneGroupDto = CloneGroupDto;
|
|
26
36
|
/**
|
|
27
37
|
* This DTO is used to ensure a folder exists, either by finding an existing folder, creating a new folder, or cloning an existing folder.
|
|
28
38
|
*
|
|
29
|
-
* folderId,
|
|
39
|
+
* folderId, cloneFolder, cloneGroup and createFolder are mutually exclusive,
|
|
30
40
|
* including more than one will result in undefined behavior.
|
|
31
41
|
*/
|
|
32
42
|
class FindOrCreateFolderDto {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AAExD,yFAAoF;AAEpF,gEAAyE;AAKzE,0DAMgC;AAOhC,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,aAAa;CAmCzB;AAnCD,sCAmCC;AAED,MAAa,eAAe;CAsB3B;AAtBD,0CAsBC;AAED,MAAa,eAAe;CAkB3B;AAlBD,0CAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED;;;;;GAKG;AACH,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"folder.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AAExD,yFAAoF;AAEpF,gEAAyE;AAKzE,0DAMgC;AAOhC,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,aAAa;CAmCzB;AAnCD,sCAmCC;AAED,MAAa,eAAe;CAsB3B;AAtBD,0CAsBC;AAED,MAAa,eAAe;CAkB3B;AAlBD,0CAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED;;;;;;GAMG;AACH,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED;;;;;GAKG;AACH,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAIxD;AAJD,oDAIC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,mBAAmB;CAW/B;AAXD,kDAWC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,qBAAqB;IAArE;;QAGC,cAAS,GAAiB,2BAAW,CAAC,GAAG,CAAC;IAC3C,CAAC;CAAA;AAJD,gEAIC;AAED,MAAa,wBAAwB;CAwCpC;AAxCD,4DAwCC;AAED,MAAa,0BAA0B;CAyDtC;AAzDD,gEAyDC;AAED;;;;;;;;;GASG;AACH,MAAa,aAAc,SAAQ,qBAAqB;IAAxD;;QACC,eAAU,GAA0B,oCAAoB,CAAC,IAAI,CAAC;QAE9D,cAAS,GAAiB,2BAAW,CAAC,GAAG,CAAC;IAC3C,CAAC;CAAA;AAJD,sCAIC;AAED;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,2CAAmB;CAE7D;AAFD,sDAEC;AAED;;;;GAIG;AACH,MAAa,4BAA6B,SAAQ,2CAAmB;CAEpE;AAFD,oEAEC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './folder.consts';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./folder.consts"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/folders/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -94,6 +94,7 @@ export interface IFolderConfirmationMailData {
|
|
|
94
94
|
}
|
|
95
95
|
export { ILeagueEventMetadata, LEAGUE_EVENT_FOLDER_ID_KEYS } from '../../league/types';
|
|
96
96
|
export * from './classes';
|
|
97
|
+
export * from './consts';
|
|
97
98
|
export * from './folder-restrictions.consts';
|
|
98
99
|
export * from './folder-restrictions.enums';
|
|
99
100
|
export * from './folder-restrictions.types';
|
|
@@ -101,3 +102,4 @@ export * from './folders.enums';
|
|
|
101
102
|
export * from './index';
|
|
102
103
|
export * from './interfaces';
|
|
103
104
|
export * from './session-participants.consts';
|
|
105
|
+
export * from './team-folder-metadata';
|
|
@@ -18,6 +18,7 @@ exports.LEAGUE_EVENT_FOLDER_ID_KEYS = void 0;
|
|
|
18
18
|
var types_1 = require("../../league/types");
|
|
19
19
|
Object.defineProperty(exports, "LEAGUE_EVENT_FOLDER_ID_KEYS", { enumerable: true, get: function () { return types_1.LEAGUE_EVENT_FOLDER_ID_KEYS; } });
|
|
20
20
|
__exportStar(require("./classes"), exports);
|
|
21
|
+
__exportStar(require("./consts"), exports);
|
|
21
22
|
__exportStar(require("./folder-restrictions.consts"), exports);
|
|
22
23
|
__exportStar(require("./folder-restrictions.enums"), exports);
|
|
23
24
|
__exportStar(require("./folder-restrictions.types"), exports);
|
|
@@ -25,4 +26,5 @@ __exportStar(require("./folders.enums"), exports);
|
|
|
25
26
|
__exportStar(require("./index"), exports);
|
|
26
27
|
__exportStar(require("./interfaces"), exports);
|
|
27
28
|
__exportStar(require("./session-participants.consts"), exports);
|
|
29
|
+
__exportStar(require("./team-folder-metadata"), exports);
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/folders/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA2GA,4CAAuF;AAAxD,oHAAA,2BAA2B,OAAA;AAC1D,4CAA0B;AAC1B,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C;AAC5C,kDAAgC;AAChC,0CAAwB;AACxB,+CAA6B;AAC7B,gEAA8C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/folders/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA2GA,4CAAuF;AAAxD,oHAAA,2BAA2B,OAAA;AAC1D,4CAA0B;AAC1B,2CAAyB;AACzB,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C;AAC5C,kDAAgC;AAChC,0CAAwB;AACxB,+CAA6B;AAC7B,gEAA8C;AAC9C,yDAAuC"}
|
|
@@ -29,8 +29,8 @@ export interface IGetFolderContentsParams {
|
|
|
29
29
|
contentTypes?: ContentType[];
|
|
30
30
|
excludedContentIds?: number[];
|
|
31
31
|
excludedFolderContentIds?: number[];
|
|
32
|
-
folderIds: number[];
|
|
33
32
|
teamRoles?: string[];
|
|
33
|
+
folderIds: number[];
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Parameters for getting folder contents with pagination
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -14,7 +14,6 @@ export declare class CreateGlCodeDto {
|
|
|
14
14
|
resourceType?: GlResourceTypeEnum;
|
|
15
15
|
productType?: ProductTypesEnum;
|
|
16
16
|
glTypeId: number;
|
|
17
|
-
facilitiesIds?: number[];
|
|
18
17
|
}
|
|
19
18
|
export declare class GlCodeDto extends OrganizationBaseEntityDto {
|
|
20
19
|
code: string;
|
|
@@ -24,8 +23,6 @@ export declare class GlCodeDto extends OrganizationBaseEntityDto {
|
|
|
24
23
|
productType?: ProductTypesEnum;
|
|
25
24
|
updatedAt?: Date;
|
|
26
25
|
assignedResources?: number;
|
|
27
|
-
facilityIds?: number[];
|
|
28
|
-
isAllFacilities?: boolean;
|
|
29
26
|
glType: GlTypeDto;
|
|
30
27
|
}
|
|
31
28
|
export declare class AccountingCodeDto extends IdDto {
|
|
@@ -35,10 +32,7 @@ export declare class AccountingCodeDto extends IdDto {
|
|
|
35
32
|
resourceType?: GlResourceTypeEnum;
|
|
36
33
|
productType?: ProductTypesEnum;
|
|
37
34
|
}
|
|
38
|
-
export declare class
|
|
39
|
-
expand?: GlCodeExpandEnum[];
|
|
40
|
-
}
|
|
41
|
-
export declare class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
35
|
+
export declare class FindGlCodesFiltersDto {
|
|
42
36
|
label?: string;
|
|
43
37
|
includeInactive?: boolean;
|
|
44
38
|
codes?: string[];
|
|
@@ -47,7 +41,6 @@ export declare class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
|
47
41
|
productTypes?: ProductTypesEnum[];
|
|
48
42
|
isResourceTypeNullable?: boolean;
|
|
49
43
|
glTypeIds?: number[];
|
|
50
|
-
facilitiesIds?: number[];
|
|
51
44
|
}
|
|
52
45
|
export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGlCodesFilters {
|
|
53
46
|
search?: string;
|
|
@@ -56,11 +49,13 @@ export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGl
|
|
|
56
49
|
resourceTypes?: GlResourceTypeEnum[];
|
|
57
50
|
productTypes?: ProductTypesEnum[];
|
|
58
51
|
glTypeIds?: number[];
|
|
59
|
-
facilitiesIds?: number[];
|
|
60
52
|
orderBy?: GlCodeOrderByEnum;
|
|
61
53
|
order?: OrderByEnum;
|
|
62
54
|
expand?: GlCodeExpandEnum[];
|
|
63
55
|
}
|
|
56
|
+
export declare class ExpandGlCodeDto {
|
|
57
|
+
expand?: GlCodeExpandEnum[];
|
|
58
|
+
}
|
|
64
59
|
export declare class UpdateGlCodeDto {
|
|
65
60
|
id: number;
|
|
66
61
|
code?: string;
|
|
@@ -69,7 +64,6 @@ export declare class UpdateGlCodeDto {
|
|
|
69
64
|
resourceType?: GlResourceTypeEnum;
|
|
70
65
|
productType?: ProductTypesEnum;
|
|
71
66
|
glTypeId?: number;
|
|
72
|
-
facilitiesIds?: number[];
|
|
73
67
|
}
|
|
74
68
|
export declare class MassActionUpdateGlCodeDto {
|
|
75
69
|
label?: string;
|
|
@@ -90,5 +84,4 @@ export declare class MassActionGlCodesQueryDto extends MassActionFilterDto imple
|
|
|
90
84
|
resourceTypes?: GlResourceTypeEnum[];
|
|
91
85
|
productTypes?: ProductTypesEnum[];
|
|
92
86
|
glTypeIds?: number[];
|
|
93
|
-
facilitiesIds?: number[];
|
|
94
87
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MassActionGlCodesQueryDto = exports.CreateGlCodesDto = exports.UpdateGlCodesDto = exports.MassActionUpdateGlCodeDto = exports.UpdateGlCodeDto = exports.
|
|
3
|
+
exports.MassActionGlCodesQueryDto = exports.CreateGlCodesDto = exports.UpdateGlCodesDto = exports.MassActionUpdateGlCodeDto = exports.UpdateGlCodeDto = exports.ExpandGlCodeDto = exports.GetGlCodesFiltersDto = exports.FindGlCodesFiltersDto = exports.AccountingCodeDto = exports.GlCodeDto = exports.CreateGlCodeDto = exports.ByGlCodeDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
class ByGlCodeDto extends organization_dto_1.ByOrganizationIdDto {
|
|
@@ -15,12 +15,8 @@ exports.GlCodeDto = GlCodeDto;
|
|
|
15
15
|
class AccountingCodeDto extends general_dto_1.IdDto {
|
|
16
16
|
}
|
|
17
17
|
exports.AccountingCodeDto = AccountingCodeDto;
|
|
18
|
-
class
|
|
19
|
-
}
|
|
20
|
-
exports.ExpandGlCodeDto = ExpandGlCodeDto;
|
|
21
|
-
class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
18
|
+
class FindGlCodesFiltersDto {
|
|
22
19
|
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
20
|
this.isResourceTypeNullable = true;
|
|
25
21
|
}
|
|
26
22
|
}
|
|
@@ -28,6 +24,9 @@ exports.FindGlCodesFiltersDto = FindGlCodesFiltersDto;
|
|
|
28
24
|
class GetGlCodesFiltersDto extends general_dto_1.PaginationQuery {
|
|
29
25
|
}
|
|
30
26
|
exports.GetGlCodesFiltersDto = GetGlCodesFiltersDto;
|
|
27
|
+
class ExpandGlCodeDto {
|
|
28
|
+
}
|
|
29
|
+
exports.ExpandGlCodeDto = ExpandGlCodeDto;
|
|
31
30
|
class UpdateGlCodeDto {
|
|
32
31
|
}
|
|
33
32
|
exports.UpdateGlCodeDto = UpdateGlCodeDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AACA,uDAAoF;AACpF,8EAAyG;AAOzG,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AACA,uDAAoF;AACpF,8EAAyG;AAOzG,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAgBvD;AAhBD,8BAgBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAU3C;AAVD,8CAUC;AAED,MAAa,qBAAqB;IAAlC;QAaC,2BAAsB,GAAa,IAAI,CAAC;IAGzC,CAAC;CAAA;AAhBD,sDAgBC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAkBxD;AAlBD,oDAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAA0B,SAAQ,iCAAmB;CAUjE;AAVD,8DAUC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
2
|
import { ActivityEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
3
3
|
import { GlResourceTypeEnum } from '../types/enums/gl-code.enum';
|
|
4
|
-
import { GlCodeToFacility } from './gl-code-to-facility.entity';
|
|
5
4
|
import { GlType } from './gl-type';
|
|
6
5
|
export declare class GlCode extends OrganizationConnectionBaseEntity {
|
|
7
6
|
code: string;
|
|
@@ -12,6 +11,5 @@ export declare class GlCode extends OrganizationConnectionBaseEntity {
|
|
|
12
11
|
deletedAt?: Date;
|
|
13
12
|
glTypeId: number;
|
|
14
13
|
glType: GlType;
|
|
15
|
-
glCodeToFacilities: GlCodeToFacility[];
|
|
16
14
|
assignedResources?: number;
|
|
17
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,MAAO,SAAQ,mEAAgC;CAkB3D;AAlBD,wBAkBC"}
|
|
@@ -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("./gl-code-to-facility.entity"), exports);
|
|
18
17
|
__exportStar(require("./gl-code"), exports);
|
|
19
18
|
__exportStar(require("./gl-type"), exports);
|
|
20
19
|
__exportStar(require("./resource-to-gl"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,mDAAiC"}
|
|
@@ -30,6 +30,5 @@ var GlCodeOrderByEnum;
|
|
|
30
30
|
var GlCodeExpandEnum;
|
|
31
31
|
(function (GlCodeExpandEnum) {
|
|
32
32
|
GlCodeExpandEnum["ASSIGNED_RESOURCES"] = "assignedResources";
|
|
33
|
-
GlCodeExpandEnum["FACILITIES"] = "facilities";
|
|
34
33
|
})(GlCodeExpandEnum = exports.GlCodeExpandEnum || (exports.GlCodeExpandEnum = {}));
|
|
35
34
|
//# sourceMappingURL=gl-code.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.enum.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/enums/gl-code.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mDAA6B,CAAA;IAC7B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,uDAAiC,CAAA;AAClC,CAAC,EAhBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAgB7B;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,6CAAwB,CAAA;AACzB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"gl-code.enum.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/enums/gl-code.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mDAA6B,CAAA;IAC7B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,uDAAiC,CAAA;AAClC,CAAC,EAhBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAgB7B;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,6CAAwB,CAAA;AACzB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC3B,4DAAwC,CAAA;AACzC,CAAC,EAFW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAE3B"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { ActivityEnum, OrderByEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
2
2
|
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
3
3
|
import { CreateResourceToGlDto } from '../../dto/resource-to-gl.dto';
|
|
4
|
-
import { GlCodeToFacility } from '../../entities/gl-code-to-facility.entity';
|
|
5
4
|
import { ResourceToGL } from '../../entities/resource-to-gl';
|
|
6
5
|
import { GlCodeExpandEnum, GlCodeOrderByEnum, GlResourceTypeEnum } from '../enums/gl-code.enum';
|
|
7
6
|
export interface filterExistingGlsResult {
|
|
8
7
|
deleteResourceToGlsIds: number[];
|
|
9
8
|
newResourceToGls: CreateResourceToGlDto[];
|
|
10
9
|
}
|
|
11
|
-
export interface IGlCodeFacilityConnectionsDiff {
|
|
12
|
-
connectionIdsToRemove: number[];
|
|
13
|
-
connectionsToAdd: GlCodeToFacility[];
|
|
14
|
-
}
|
|
15
10
|
export interface IResourcesGLsResult {
|
|
16
11
|
organizationId: number;
|
|
17
12
|
resourceId: number;
|
|
@@ -20,7 +15,6 @@ export interface IResourcesGLsResult {
|
|
|
20
15
|
}
|
|
21
16
|
export interface IGlCodesFilters extends IPagination {
|
|
22
17
|
expand?: GlCodeExpandEnum[];
|
|
23
|
-
facilitiesIds?: number[];
|
|
24
18
|
glTypeIds?: number[];
|
|
25
19
|
labels?: string[];
|
|
26
20
|
order?: OrderByEnum;
|
|
@@ -13,6 +13,7 @@ export declare class ImportMembershipDto extends CreateMembershipDto {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class ImportMembershipMembersDto extends AddImportedCustomerDto {
|
|
15
15
|
importedId: string;
|
|
16
|
+
entityId?: number;
|
|
16
17
|
startDate: string;
|
|
17
18
|
parentId?: number;
|
|
18
19
|
membershipId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/membership.dto.ts"],"names":[],"mappings":";;;AACA,wEAA+F;AAG/F,iDAAwD;AACxD,6CAA2D;AAE3D,MAAa,6BAA8B,SAAQ,wCAA2B;CAE7E;AAFD,sEAEC;AAED,MAAa,mCAAoC,SAAQ,wCAA2B;CAEnF;AAFD,kFAEC;AAED,MAAa,mBAAoB,SAAQ,oCAAmB;CAE3D;AAFD,kDAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAsB;
|
|
1
|
+
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/membership.dto.ts"],"names":[],"mappings":";;;AACA,wEAA+F;AAG/F,iDAAwD;AACxD,6CAA2D;AAE3D,MAAa,6BAA8B,SAAQ,wCAA2B;CAE7E;AAFD,sEAEC;AAED,MAAa,mCAAoC,SAAQ,wCAA2B;CAEnF;AAFD,kFAEC;AAED,MAAa,mBAAoB,SAAQ,oCAAmB;CAE3D;AAFD,kDAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAsB;CAgCrE;AAhCD,gEAgCC"}
|
|
@@ -38,7 +38,6 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
38
38
|
hasDueDate?: boolean;
|
|
39
39
|
isOverdue?: boolean;
|
|
40
40
|
platforms?: PlatformsEnum[];
|
|
41
|
-
facilitiesIds?: number[];
|
|
42
41
|
createdAtFrom?: Date;
|
|
43
42
|
createdAtTo?: Date;
|
|
44
43
|
dueDateFrom?: Date;
|
|
@@ -47,7 +46,6 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
47
46
|
}
|
|
48
47
|
export declare class OrganizationInvoiceDto {
|
|
49
48
|
invoiceId: number;
|
|
50
|
-
facilityIds: number[];
|
|
51
49
|
payingUserName?: string;
|
|
52
50
|
payingUserId: number;
|
|
53
51
|
payingUserEmail?: string;
|