@bondsports/types 2.4.38-a-2 → 2.4.39
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/dto/general.dto.d.ts +1 -1
- package/dist/types/entity/Facility.d.ts +0 -4
- package/dist/types/entity/Facility.js.map +1 -1
- package/dist/types/entity/Invoice.d.ts +0 -1
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/facilities/types/facilities.types.d.ts +1 -20
- package/dist/types/fee/dto/fee.dto.d.ts +4 -7
- package/dist/types/fee/dto/fee.dto.js +0 -11
- package/dist/types/fee/dto/fee.dto.js.map +1 -1
- package/dist/types/fee/entities/Fee.d.ts +2 -3
- package/dist/types/fee/entities/Fee.js.map +1 -1
- package/dist/types/fee/types/index.d.ts +0 -1
- package/dist/types/fee/types/index.js +0 -1
- package/dist/types/fee/types/index.js.map +1 -1
- package/dist/types/fee/types/interfaces/fee.interfaces.d.ts +0 -1
- package/dist/types/fee/types/interfaces/fee.interfaces.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +8 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/league-standings/dto/game.dto.d.ts +2 -2
- package/dist/types/league-standings/entities/game.entity.d.ts +4 -4
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.d.ts +43 -3
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.js +28 -1
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.js.map +1 -1
- package/dist/types/leagues-scheduler/types/interfaces.d.ts +54 -1
- package/dist/types/leagues-scheduler/types/interfaces.js +6 -1
- package/dist/types/leagues-scheduler/types/interfaces.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +0 -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/payment.interfaces.d.ts +0 -1
- package/dist/types/public-api/dto/UsagePlanDto.d.ts +4 -0
- package/dist/types/public-api/dto/UsagePlanDto.js +11 -0
- package/dist/types/public-api/dto/UsagePlanDto.js.map +1 -0
- package/dist/types/public-api/dto/index.d.ts +1 -0
- package/dist/types/{tip-configurations/entities → public-api/dto}/index.js +1 -1
- package/dist/types/public-api/dto/index.js.map +1 -0
- package/dist/types/{tip-configurations → public-api}/index.d.ts +0 -1
- package/dist/types/{tip-configurations → public-api}/index.js +0 -1
- package/dist/types/public-api/index.js.map +1 -0
- package/dist/types/public-api/types/enums.d.ts +5 -0
- package/dist/types/public-api/types/enums.js +10 -0
- package/dist/types/public-api/types/enums.js.map +1 -0
- package/dist/types/public-api/types/index.d.ts +1 -0
- package/dist/types/{fee/types/enums → public-api/types}/index.js +1 -1
- package/dist/types/public-api/types/index.js.map +1 -0
- package/dist/types/purchase/dto/purchase.dto.d.ts +0 -2
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +15 -0
- package/dist/types/session-participants/types/interfaces.d.ts +2 -2
- package/package.json +2 -2
- package/LICENSE.md +0 -0
- package/dist/types/fee/types/enums/fee.enums.d.ts +0 -5
- package/dist/types/fee/types/enums/fee.enums.js +0 -10
- package/dist/types/fee/types/enums/fee.enums.js.map +0 -1
- package/dist/types/fee/types/enums/index.d.ts +0 -1
- package/dist/types/fee/types/enums/index.js.map +0 -1
- package/dist/types/tip-configurations/dto/index.d.ts +0 -1
- package/dist/types/tip-configurations/dto/index.js +0 -18
- package/dist/types/tip-configurations/dto/index.js.map +0 -1
- package/dist/types/tip-configurations/dto/tip-configuration.dto.d.ts +0 -43
- package/dist/types/tip-configurations/dto/tip-configuration.dto.js +0 -37
- package/dist/types/tip-configurations/dto/tip-configuration.dto.js.map +0 -1
- package/dist/types/tip-configurations/entities/TipConfiguration.d.ts +0 -11
- package/dist/types/tip-configurations/entities/TipConfiguration.js +0 -8
- package/dist/types/tip-configurations/entities/TipConfiguration.js.map +0 -1
- package/dist/types/tip-configurations/entities/index.d.ts +0 -1
- package/dist/types/tip-configurations/entities/index.js.map +0 -1
- package/dist/types/tip-configurations/index.js.map +0 -1
- package/dist/types/tip-configurations/types/consts/index.d.ts +0 -1
- package/dist/types/tip-configurations/types/consts/index.js +0 -18
- package/dist/types/tip-configurations/types/consts/index.js.map +0 -1
- package/dist/types/tip-configurations/types/consts/tip-configuration.consts.d.ts +0 -4
- package/dist/types/tip-configurations/types/consts/tip-configuration.consts.js +0 -7
- package/dist/types/tip-configurations/types/consts/tip-configuration.consts.js.map +0 -1
- package/dist/types/tip-configurations/types/enums/index.d.ts +0 -1
- package/dist/types/tip-configurations/types/enums/index.js +0 -18
- package/dist/types/tip-configurations/types/enums/index.js.map +0 -1
- package/dist/types/tip-configurations/types/enums/tipping-mode.enum.d.ts +0 -9
- package/dist/types/tip-configurations/types/enums/tipping-mode.enum.js +0 -15
- package/dist/types/tip-configurations/types/enums/tipping-mode.enum.js.map +0 -1
- package/dist/types/tip-configurations/types/index.d.ts +0 -3
- package/dist/types/tip-configurations/types/index.js +0 -20
- package/dist/types/tip-configurations/types/index.js.map +0 -1
- package/dist/types/tip-configurations/types/interfaces/index.d.ts +0 -1
- package/dist/types/tip-configurations/types/interfaces/index.js +0 -18
- package/dist/types/tip-configurations/types/interfaces/index.js.map +0 -1
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.d.ts +0 -39
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.js +0 -3
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums';
|
|
@@ -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("./enums"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/public-api/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -102,7 +102,6 @@ export declare class PartialPaymentRequestDto {
|
|
|
102
102
|
platform: PlatformsEnum;
|
|
103
103
|
shiftId?: number;
|
|
104
104
|
installmentIds?: number[];
|
|
105
|
-
tipAmount?: number;
|
|
106
105
|
}
|
|
107
106
|
export declare class RedeemPunchCardRequestDto {
|
|
108
107
|
products: PurchaseProductDto[];
|
|
@@ -141,5 +140,4 @@ export declare class PurchaseCartDto extends InvoiceCartDto implements IPurchase
|
|
|
141
140
|
parentPurchasedType?: ResourceNameTypeEnum;
|
|
142
141
|
updatePrices?: UpdateCartPricesDto;
|
|
143
142
|
addToReservationId?: number;
|
|
144
|
-
tipAmount?: number;
|
|
145
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAOA,+DAA+D;AAC/D,8EAA8E;AAe9E,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAkB/B;AAlBD,kDAkBC;AAED,MAAa,kBAAkB;CAkC9B;AAlCD,gDAkCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAOA,+DAA+D;AAC/D,8EAA8E;AAe9E,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAkB/B;AAlBD,kDAkBC;AAED,MAAa,kBAAkB;CAkC9B;AAlCD,gDAkCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAgBlD;AAhBD,0CAgBC"}
|
|
@@ -266,6 +266,21 @@ export interface IRawEventInSchedule extends IEventInSchedule {
|
|
|
266
266
|
maxParticipants: number;
|
|
267
267
|
parentSessionName: string;
|
|
268
268
|
}
|
|
269
|
+
export interface ISegmentEventCount {
|
|
270
|
+
parentId: number;
|
|
271
|
+
eventsCount: number;
|
|
272
|
+
}
|
|
273
|
+
export interface IEventAttendeeNotificationData {
|
|
274
|
+
firstName: string;
|
|
275
|
+
lastName: string;
|
|
276
|
+
email: string;
|
|
277
|
+
userId: number;
|
|
278
|
+
sessionName: string;
|
|
279
|
+
parentSessionName: string | null;
|
|
280
|
+
organizationName: string;
|
|
281
|
+
programName: string;
|
|
282
|
+
eventId: number;
|
|
283
|
+
}
|
|
269
284
|
export interface IBasicSpaceAndSlotCreator {
|
|
270
285
|
id: number;
|
|
271
286
|
bookingCreatorId: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Event } from '../../entity/Events';
|
|
2
2
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
3
3
|
import { Folder } from '../../folders/entities/folder.entity';
|
|
4
|
+
import { ITeamFolderMetadata } from '../../folders/types/interfaces/folder-content.interfaces';
|
|
4
5
|
import { MetaTypeEnum } from '../../folders/types/folders.enums';
|
|
5
6
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
6
7
|
import { ProgramTypesEnum } from '../../programs/types/enums/program.enums';
|
|
@@ -115,7 +116,6 @@ export interface IHandleTeamChangeParams {
|
|
|
115
116
|
* Represents a team member with their role (product subtype).
|
|
116
117
|
* Used when fetching team rosters to match users to their correct ProductsUsers.
|
|
117
118
|
*/
|
|
118
|
-
export interface ITeamMemberWithRole {
|
|
119
|
+
export interface ITeamMemberWithRole extends ITeamFolderMetadata {
|
|
119
120
|
userId: number;
|
|
120
|
-
teamRole?: string;
|
|
121
121
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.39",
|
|
4
4
|
"description": "backend types module for Bond-Sports",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"ts-node": "^10.8.0",
|
|
52
52
|
"typescript": "^4.4.3"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
|
|
55
55
|
}
|
package/LICENSE.md
DELETED
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeeTypeEnum = void 0;
|
|
4
|
-
var FeeTypeEnum;
|
|
5
|
-
(function (FeeTypeEnum) {
|
|
6
|
-
FeeTypeEnum["TRANSACTION"] = "Transaction";
|
|
7
|
-
FeeTypeEnum["BOND"] = "Bond";
|
|
8
|
-
FeeTypeEnum["TIP"] = "Tip";
|
|
9
|
-
})(FeeTypeEnum = exports.FeeTypeEnum || (exports.FeeTypeEnum = {}));
|
|
10
|
-
//# sourceMappingURL=fee.enums.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fee.enums.js","sourceRoot":"","sources":["../../../../../src/types/fee/types/enums/fee.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,0CAA2B,CAAA;IAC3B,4BAAa,CAAA;IACb,0BAAW,CAAA;AACZ,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './fee.enums';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/fee/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tip-configuration.dto';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./tip-configuration.dto"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BasicFacilityDto } from '../../dto/facilities.dto';
|
|
2
|
-
import { PaginationQuery } from '../../dto/general.dto';
|
|
3
|
-
import { ByOrganizationIdDto, OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
4
|
-
import { OrderByEnum } from '../../services/enums.service';
|
|
5
|
-
import { TipConfigOrderByEnum, TippingModeEnum } from '../types/enums/tipping-mode.enum';
|
|
6
|
-
import { ITipConfigOptions, ITypeAndConfig } from '../types/interfaces/tip-configuration.interfaces';
|
|
7
|
-
export declare class ByTipConfigDto extends ByOrganizationIdDto {
|
|
8
|
-
tipConfigId: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class ByFacilityTipConfigDto extends ByOrganizationIdDto {
|
|
11
|
-
facilityId: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class TipConfigOptionsDto implements ITipConfigOptions {
|
|
14
|
-
percentages?: number[];
|
|
15
|
-
fixedAmounts?: number[];
|
|
16
|
-
smartTipThreshold?: number;
|
|
17
|
-
}
|
|
18
|
-
export declare class CreateTipConfigDto implements ITypeAndConfig {
|
|
19
|
-
facilityIds?: number[];
|
|
20
|
-
allFacilities?: boolean;
|
|
21
|
-
type: TippingModeEnum;
|
|
22
|
-
config: TipConfigOptionsDto;
|
|
23
|
-
}
|
|
24
|
-
export declare class UpdateTipConfigDto implements Partial<ITypeAndConfig> {
|
|
25
|
-
allFacilities?: boolean;
|
|
26
|
-
type?: TippingModeEnum;
|
|
27
|
-
config?: TipConfigOptionsDto;
|
|
28
|
-
facilitiesIdsToAdd?: number[];
|
|
29
|
-
facilitiesIdsToRemove?: number[];
|
|
30
|
-
}
|
|
31
|
-
export declare class ListTipConfigFiltersDto extends PaginationQuery {
|
|
32
|
-
sortBy?: TipConfigOrderByEnum;
|
|
33
|
-
order?: OrderByEnum;
|
|
34
|
-
types?: TippingModeEnum[];
|
|
35
|
-
search?: string;
|
|
36
|
-
}
|
|
37
|
-
export declare class TipConfigurationDto extends OrganizationBaseEntityDto {
|
|
38
|
-
type: TippingModeEnum;
|
|
39
|
-
config: ITipConfigOptions;
|
|
40
|
-
facilities?: BasicFacilityDto[];
|
|
41
|
-
createdAt: Date;
|
|
42
|
-
updatedAt: Date;
|
|
43
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TipConfigurationDto = exports.ListTipConfigFiltersDto = exports.UpdateTipConfigDto = exports.CreateTipConfigDto = exports.TipConfigOptionsDto = exports.ByFacilityTipConfigDto = exports.ByTipConfigDto = void 0;
|
|
4
|
-
const general_dto_1 = require("../../dto/general.dto");
|
|
5
|
-
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
|
-
//# region Param DTOs
|
|
7
|
-
class ByTipConfigDto extends organization_dto_1.ByOrganizationIdDto {
|
|
8
|
-
}
|
|
9
|
-
exports.ByTipConfigDto = ByTipConfigDto;
|
|
10
|
-
class ByFacilityTipConfigDto extends organization_dto_1.ByOrganizationIdDto {
|
|
11
|
-
}
|
|
12
|
-
exports.ByFacilityTipConfigDto = ByFacilityTipConfigDto;
|
|
13
|
-
//# endregion
|
|
14
|
-
//# region Config Options DTO
|
|
15
|
-
class TipConfigOptionsDto {
|
|
16
|
-
}
|
|
17
|
-
exports.TipConfigOptionsDto = TipConfigOptionsDto;
|
|
18
|
-
//# endregion
|
|
19
|
-
//# region Request DTOs
|
|
20
|
-
class CreateTipConfigDto {
|
|
21
|
-
}
|
|
22
|
-
exports.CreateTipConfigDto = CreateTipConfigDto;
|
|
23
|
-
class UpdateTipConfigDto {
|
|
24
|
-
}
|
|
25
|
-
exports.UpdateTipConfigDto = UpdateTipConfigDto;
|
|
26
|
-
//# endregion
|
|
27
|
-
//# region Query DTOs
|
|
28
|
-
class ListTipConfigFiltersDto extends general_dto_1.PaginationQuery {
|
|
29
|
-
}
|
|
30
|
-
exports.ListTipConfigFiltersDto = ListTipConfigFiltersDto;
|
|
31
|
-
//# endregion
|
|
32
|
-
//# region Response DTOs
|
|
33
|
-
class TipConfigurationDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
34
|
-
}
|
|
35
|
-
exports.TipConfigurationDto = TipConfigurationDto;
|
|
36
|
-
//# endregion
|
|
37
|
-
//# sourceMappingURL=tip-configuration.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tip-configuration.dto.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/dto/tip-configuration.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AACxD,8EAAyG;AAMzG,qBAAqB;AAErB,MAAa,cAAe,SAAQ,sCAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,aAAa;AAEb,6BAA6B;AAE7B,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,aAAa;AAEb,uBAAuB;AAEvB,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,aAAa;AAEb,qBAAqB;AAErB,MAAa,uBAAwB,SAAQ,6BAAe;CAQ3D;AARD,0DAQC;AAED,aAAa;AAEb,wBAAwB;AACxB,MAAa,mBAAoB,SAAQ,4CAAyB;CAUjE;AAVD,kDAUC;AAED,aAAa"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Facility } from '../../entity/Facility';
|
|
2
|
-
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
3
|
-
import { TippingModeEnum } from '../types/enums/tipping-mode.enum';
|
|
4
|
-
import { ITipConfigOptions } from '../types/interfaces/tip-configuration.interfaces';
|
|
5
|
-
export declare class TipConfiguration extends OrganizationConnectionBaseEntity {
|
|
6
|
-
type: TippingModeEnum;
|
|
7
|
-
config: ITipConfigOptions;
|
|
8
|
-
deletedAt?: Date;
|
|
9
|
-
facilities?: Facility[];
|
|
10
|
-
}
|
|
11
|
-
export type TipConfigurationRelation = 'facilities';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TipConfiguration = void 0;
|
|
4
|
-
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
-
class TipConfiguration extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
-
}
|
|
7
|
-
exports.TipConfiguration = TipConfiguration;
|
|
8
|
-
//# sourceMappingURL=TipConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TipConfiguration.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/entities/TipConfiguration.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAIjG,MAAa,gBAAiB,SAAQ,mEAAgC;CAQrE;AARD,4CAQC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TipConfiguration';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/tip-configurations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tip-configuration.consts';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./tip-configuration.consts"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TIPS_EXPECTED_VALUES_LENGTH = exports.TIP_CONFIG_FIELDS = exports.MAX_TIP_PERCENTAGE = void 0;
|
|
4
|
-
exports.MAX_TIP_PERCENTAGE = 50;
|
|
5
|
-
exports.TIP_CONFIG_FIELDS = ['percentages', 'fixedAmounts', 'smartTipThreshold'];
|
|
6
|
-
exports.TIPS_EXPECTED_VALUES_LENGTH = 3;
|
|
7
|
-
//# sourceMappingURL=tip-configuration.consts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tip-configuration.consts.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/consts/tip-configuration.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAExB,QAAA,iBAAiB,GAAgC,CAAC,aAAa,EAAE,cAAc,EAAE,mBAAmB,CAAC,CAAC;AAEtG,QAAA,2BAA2B,GAAG,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tipping-mode.enum';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./tipping-mode.enum"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TipConfigOrderByEnum = exports.TippingModeEnum = void 0;
|
|
4
|
-
var TippingModeEnum;
|
|
5
|
-
(function (TippingModeEnum) {
|
|
6
|
-
TippingModeEnum["FIXED"] = "FIXED";
|
|
7
|
-
TippingModeEnum["PERCENTAGE"] = "PERCENTAGE";
|
|
8
|
-
TippingModeEnum["SMART"] = "SMART";
|
|
9
|
-
})(TippingModeEnum = exports.TippingModeEnum || (exports.TippingModeEnum = {}));
|
|
10
|
-
var TipConfigOrderByEnum;
|
|
11
|
-
(function (TipConfigOrderByEnum) {
|
|
12
|
-
TipConfigOrderByEnum["UPDATED_AT"] = "updatedAt";
|
|
13
|
-
TipConfigOrderByEnum["TYPE"] = "type";
|
|
14
|
-
})(TipConfigOrderByEnum = exports.TipConfigOrderByEnum || (exports.TipConfigOrderByEnum = {}));
|
|
15
|
-
//# sourceMappingURL=tipping-mode.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tipping-mode.enum.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/enums/tipping-mode.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,kCAAe,CAAA;IACf,4CAAyB,CAAA;IACzB,kCAAe,CAAA;AAChB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,gDAAwB,CAAA;IACxB,qCAAa,CAAA;AACd,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./consts"), exports);
|
|
18
|
-
__exportStar(require("./enums"), exports);
|
|
19
|
-
__exportStar(require("./interfaces"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tip-configuration.interfaces';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./tip-configuration.interfaces"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OrderByEnum } from '../../../services/enums.service';
|
|
2
|
-
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
3
|
-
import { TipConfigOrderByEnum, TippingModeEnum } from '../enums/tipping-mode.enum';
|
|
4
|
-
export interface ITipConfigOptions {
|
|
5
|
-
fixedAmounts?: number[];
|
|
6
|
-
percentages?: number[];
|
|
7
|
-
smartTipThreshold?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface ITipConfigFacility {
|
|
10
|
-
id: number;
|
|
11
|
-
locationId: string;
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ITypeAndConfig {
|
|
15
|
-
config: ITipConfigOptions;
|
|
16
|
-
type: TippingModeEnum;
|
|
17
|
-
}
|
|
18
|
-
export interface ICreateTipConfig {
|
|
19
|
-
allFacilities?: boolean;
|
|
20
|
-
config: ITipConfigOptions;
|
|
21
|
-
facilityIds?: number[];
|
|
22
|
-
type: TippingModeEnum;
|
|
23
|
-
}
|
|
24
|
-
export interface IUpdateTipConfig {
|
|
25
|
-
allFacilities?: boolean;
|
|
26
|
-
config?: ITipConfigOptions;
|
|
27
|
-
facilitiesIdsToAdd?: number[];
|
|
28
|
-
facilitiesIdsToRemove?: number[];
|
|
29
|
-
type?: TippingModeEnum;
|
|
30
|
-
}
|
|
31
|
-
export interface ICleanupOrphanedTipConfigsOptions {
|
|
32
|
-
specificIds?: number[];
|
|
33
|
-
}
|
|
34
|
-
export interface IListTipConfigFilters extends IPagination {
|
|
35
|
-
order?: OrderByEnum;
|
|
36
|
-
search?: string;
|
|
37
|
-
sortBy?: TipConfigOrderByEnum;
|
|
38
|
-
types?: TippingModeEnum[];
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tip-configuration.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/interfaces/tip-configuration.interfaces.ts"],"names":[],"mappings":""}
|