@bondsports/types 2.4.38-a-1 → 2.4.38-a-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/entity/Facility.d.ts +1 -1
- package/dist/types/facilities/types/facilities.types.d.ts +20 -1
- package/dist/types/tip-configurations/dto/tip-configuration.dto.d.ts +7 -6
- package/dist/types/tip-configurations/dto/tip-configuration.dto.js +2 -1
- package/dist/types/tip-configurations/dto/tip-configuration.dto.js.map +1 -1
- package/dist/types/tip-configurations/entities/TipConfiguration.d.ts +2 -1
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.d.ts +25 -1
- package/package.json +2 -2
|
@@ -32,7 +32,7 @@ export declare class Facility extends OrganizationConnectionBaseEntity {
|
|
|
32
32
|
locationId?: string;
|
|
33
33
|
linkSEO: string;
|
|
34
34
|
tipConfigId: number;
|
|
35
|
-
tipConfiguration
|
|
35
|
+
tipConfiguration?: TipConfiguration;
|
|
36
36
|
stripeConfigurationId?: string;
|
|
37
37
|
products: Product[];
|
|
38
38
|
}
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { IAddressMandatoryFields } from '../../address/types/address.interfaces';
|
|
2
|
+
export interface IUpdateFacilityDetails {
|
|
3
|
+
stripeConfigurationId?: string | null;
|
|
4
|
+
tipConfigId?: number | null;
|
|
5
|
+
address?: IAddressMandatoryFields;
|
|
6
|
+
description?: string;
|
|
7
|
+
info?: string;
|
|
8
|
+
longDescription?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
timezone?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IFacilityNameAndCoordinates {
|
|
2
13
|
coordinates: number[];
|
|
3
14
|
facilityName: string;
|
|
4
15
|
}
|
|
16
|
+
export type FacilityRelation = 'address' | 'mainMedia' | 'openingTimes' | 'spaces' | 'resources' | 'programSeasons' | 'tipConfiguration' | 'products';
|
|
17
|
+
export interface IGetOrganizationFacilitiesOptions {
|
|
18
|
+
facilityIds?: number[];
|
|
19
|
+
hasLocation?: boolean;
|
|
20
|
+
hasStripeConfig?: boolean;
|
|
21
|
+
isTipConfigured?: boolean;
|
|
22
|
+
relations?: FacilityRelation[];
|
|
23
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BasicFacilityDto } from '../../dto/facilities.dto';
|
|
2
|
+
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
3
|
import { ByOrganizationIdDto, OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
4
|
import { OrderByEnum } from '../../services/enums.service';
|
|
4
5
|
import { TipConfigOrderByEnum, TippingModeEnum } from '../types/enums/tipping-mode.enum';
|
|
@@ -21,22 +22,22 @@ export declare class CreateTipConfigDto implements ITypeAndConfig {
|
|
|
21
22
|
config: TipConfigOptionsDto;
|
|
22
23
|
}
|
|
23
24
|
export declare class UpdateTipConfigDto implements Partial<ITypeAndConfig> {
|
|
25
|
+
allFacilities?: boolean;
|
|
24
26
|
type?: TippingModeEnum;
|
|
25
27
|
config?: TipConfigOptionsDto;
|
|
26
28
|
facilitiesIdsToAdd?: number[];
|
|
27
29
|
facilitiesIdsToRemove?: number[];
|
|
28
30
|
}
|
|
29
|
-
export declare class ListTipConfigFiltersDto {
|
|
31
|
+
export declare class ListTipConfigFiltersDto extends PaginationQuery {
|
|
30
32
|
sortBy?: TipConfigOrderByEnum;
|
|
31
33
|
order?: OrderByEnum;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
types?: TippingModeEnum[];
|
|
35
|
+
search?: string;
|
|
34
36
|
}
|
|
35
37
|
export declare class TipConfigurationDto extends OrganizationBaseEntityDto {
|
|
36
38
|
type: TippingModeEnum;
|
|
37
39
|
config: ITipConfigOptions;
|
|
38
|
-
|
|
39
|
-
facilities: IdAndNameDto[];
|
|
40
|
+
facilities?: BasicFacilityDto[];
|
|
40
41
|
createdAt: Date;
|
|
41
42
|
updatedAt: Date;
|
|
42
43
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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");
|
|
4
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
5
6
|
//# region Param DTOs
|
|
6
7
|
class ByTipConfigDto extends organization_dto_1.ByOrganizationIdDto {
|
|
@@ -24,7 +25,7 @@ class UpdateTipConfigDto {
|
|
|
24
25
|
exports.UpdateTipConfigDto = UpdateTipConfigDto;
|
|
25
26
|
//# endregion
|
|
26
27
|
//# region Query DTOs
|
|
27
|
-
class ListTipConfigFiltersDto {
|
|
28
|
+
class ListTipConfigFiltersDto extends general_dto_1.PaginationQuery {
|
|
28
29
|
}
|
|
29
30
|
exports.ListTipConfigFiltersDto = ListTipConfigFiltersDto;
|
|
30
31
|
//# endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tip-configuration.dto.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/dto/tip-configuration.dto.ts"],"names":[],"mappings":";;;AAEA,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;
|
|
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,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
2
4
|
export interface ITipConfigOptions {
|
|
3
5
|
fixedAmounts?: number[];
|
|
4
6
|
percentages?: number[];
|
|
@@ -13,3 +15,25 @@ export interface ITypeAndConfig {
|
|
|
13
15
|
config: ITipConfigOptions;
|
|
14
16
|
type: TippingModeEnum;
|
|
15
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "2.4.38-a-
|
|
3
|
+
"version": "2.4.38-a-2",
|
|
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": "224be5269e66207b6710709999997ee0e8258bdb"
|
|
55
55
|
}
|