@bondsports/types 2.4.42 → 2.4.43

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.
@@ -1,5 +1,5 @@
1
- import { CreateCustomerDto } from './customer.dto';
2
1
  import { SimpleCustomerDto } from './customer-response.dto';
2
+ import { CreateCustomerDto } from './customer.dto';
3
3
  export declare class AddMembersDto {
4
4
  customerIds?: number[];
5
5
  customers?: CreateCustomerDto[];
@@ -118,10 +118,10 @@ export interface IAttendeeOfEvent extends IEventAttendeeBase {
118
118
  }
119
119
  export interface INotifyEventAttendee extends IEventAttendeeBase {
120
120
  email: string | null;
121
- sessionName: string;
122
- parentSessionName: string | null;
123
121
  organizationName: string;
122
+ parentSessionName: string | null;
124
123
  programName: string;
124
+ sessionName: string;
125
125
  }
126
126
  export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
127
127
  nameSearch?: string;
@@ -1,4 +1,5 @@
1
1
  import { CustomerMerge } from '../customers-merge/entities/CustomerMerge';
2
+ import { ObfuscatedCustomerDto } from '../customers/dto/customer-response.dto';
2
3
  import { PaymentFeeDto } from '../fee/dto/payment-fee.dto';
3
4
  import { PaymentFee } from '../fee/entities/PaymentFee';
4
5
  import { ItemDiscountDto } from '../payment/dto/discount.dto';
@@ -11,7 +12,6 @@ import { Slot } from '../reservations/entities/slot.entity';
11
12
  import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
12
13
  import { User } from '../user/entities/User';
13
14
  import { BondBaseEntity } from './BondBaseEntity';
14
- import { ObfuscatedCustomerDto } from '../customers/dto/customer-response.dto';
15
15
  import { Customer } from './Customer';
16
16
  import { InvoiceNote } from './InvoiceNote';
17
17
  import { InvoiceToPayment } from './InvoiceToPayment';
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAoBA,qDAAkD;AAQlD,MAAa,OAAQ,SAAQ,+BAAc;CA2G1C;AA3GD,0BA2GC"}
1
+ {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CA2G1C;AA3GD,0BA2GC"}
@@ -39,6 +39,6 @@ export interface IGetPaginatedFolderContentsParams extends IGetFolderContentsPar
39
39
  * Used to track the specific purchase associated with a user's team membership.
40
40
  */
41
41
  export interface ITeamFolderMetadata {
42
- teamRole?: string;
43
42
  productUserId?: number;
43
+ teamRole?: string;
44
44
  }
@@ -4,16 +4,16 @@ import { GameTypeEnum } from '../../leagues-scheduler/types/enums';
4
4
  * Used for event metadata storage and folder mapping.
5
5
  */
6
6
  export interface ILeagueEventMetadata {
7
- awayTeamId?: number;
8
- homeTeamId?: number;
9
7
  awayParentId?: number;
8
+ awayTeamId?: number;
9
+ groupId?: number;
10
10
  homeParentId?: number;
11
+ homeTeamId?: number;
12
+ parentGroupId?: number;
11
13
  gameType?: GameTypeEnum;
12
14
  isMaintenance?: boolean;
13
15
  maintenanceName?: string;
14
16
  scheduledBy?: string;
15
- groupId?: number;
16
- parentGroupId?: number;
17
17
  }
18
18
  /**
19
19
  * Keys in ILeagueEventMetadata that represent folder IDs.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,+DAA6C;AAC7C,wDAAsC;AACtC,+DAA6C;AAC7C,0CAAwB;AACxB,+DAA6C;AAC7C,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAE7C,+DAA6C;AAE7C,wDAAsC;AACtC,+DAA6C;AAC7C,0CAAwB;AACxB,+DAA6C;AAC7C,wDAAsC"}
@@ -1,4 +1,4 @@
1
1
  export interface IStageConfig {
2
- stageId: number;
3
2
  divisionId: number;
3
+ stageId: number;
4
4
  }
@@ -73,8 +73,8 @@ export interface IGameSchedule {
73
73
  participants: number[];
74
74
  round: number;
75
75
  startTime: string;
76
- week: number;
77
76
  timezone?: string;
77
+ week: number;
78
78
  }
79
79
  export interface ITeamSchedule {
80
80
  teamId: number;
@@ -100,13 +100,13 @@ export interface IConflictingResource {
100
100
  }
101
101
  export interface IScheduleConflict {
102
102
  gameId: string;
103
- type: ScheduleConflictTypeEnum;
104
- severity: ValidationSeverityEnum;
105
103
  conflictingEvent?: IConflictingEvent;
104
+ endTime?: string;
106
105
  resource?: IConflictingResource;
106
+ severity: ValidationSeverityEnum;
107
107
  startDate?: string;
108
108
  startTime?: string;
109
- endTime?: string;
109
+ type: ScheduleConflictTypeEnum;
110
110
  }
111
111
  export interface IGenerateScheduleOptions {
112
112
  isGenerateOptimized?: boolean;
@@ -274,12 +274,12 @@ export interface ICreateEventsParams {
274
274
  }
275
275
  export interface IScheduleTeam {
276
276
  id: number;
277
- name: string;
278
277
  ancestors?: number[];
278
+ name: string;
279
279
  }
280
280
  export interface ITeamPairing {
281
- homeTeam: IScheduleTeam;
282
281
  awayTeam: IScheduleTeam;
282
+ homeTeam: IScheduleTeam;
283
283
  }
284
284
  export interface ISchedulingMode {
285
285
  effectiveGamesPerTeam: number;
@@ -287,10 +287,10 @@ export interface ISchedulingMode {
287
287
  isPackingMode: boolean;
288
288
  }
289
289
  export interface IRoundRobinStats {
290
- totalRounds: number;
291
290
  gamesPerRound: number;
292
- totalGames: number;
293
291
  gamesPerTeam: number;
292
+ totalGames: number;
293
+ totalRounds: number;
294
294
  }
295
295
  export interface IScheduleCacheInvalidator {
296
296
  invalidateOne: (id: number) => Promise<void>;
@@ -300,15 +300,16 @@ export declare enum InternalConflictTypeEnum {
300
300
  TEAM_DOUBLE_BOOKING = "team_double_booking"
301
301
  }
302
302
  export interface IInternalConflict {
303
- gameId1: string;
304
- gameId2: string;
305
303
  resourceId?: number;
306
304
  teamId?: number;
307
- type: InternalConflictTypeEnum;
308
305
  date: string;
309
306
  description: string;
307
+ gameId1: string;
308
+ gameId2: string;
309
+ type: InternalConflictTypeEnum;
310
310
  }
311
311
  export interface IResourceConflictSlot {
312
+ endTime?: string;
312
313
  event?: {
313
314
  id: number;
314
315
  title?: string;
@@ -318,33 +319,32 @@ export interface IResourceConflictSlot {
318
319
  name?: string;
319
320
  };
320
321
  startTime?: string;
321
- endTime?: string;
322
322
  }
323
323
  export interface IMapResourceConflictsParams {
324
324
  gameId: string;
325
- slots: IResourceConflictSlot[];
326
325
  date: string;
327
- startTime: string;
328
326
  endTime: string;
327
+ slots: IResourceConflictSlot[];
328
+ startTime: string;
329
329
  }
330
330
  export interface IFindTeamOverlapsParams {
331
331
  teamId: number;
332
- teamGames: IGameSchedule[];
333
332
  date: string;
334
333
  reportedConflicts: Set<string>;
334
+ teamGames: IGameSchedule[];
335
335
  }
336
336
  export interface IValidateWindowTimesParams {
337
+ timeRegex: RegExp;
337
338
  window: ITimeWindow;
338
339
  windowIndex: number;
339
- timeRegex: RegExp;
340
340
  }
341
341
  export interface IWeeklyCapacityInfo {
342
342
  maxCapacityPerWeek: number;
343
- slotsPerDay: number;
344
- preferredDays: number[];
345
343
  numResources: number;
344
+ preferredDays: number[];
345
+ slotsPerDay: number;
346
346
  }
347
347
  export interface ICheckConflictsResult {
348
- internalConflicts: IInternalConflict[];
349
348
  externalConflicts: IScheduleConflict[];
349
+ internalConflicts: IInternalConflict[];
350
350
  }
@@ -2,8 +2,8 @@ import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
2
  import { Customer } from '../../entity/Customer';
3
3
  import { Folder } from '../../folders/entities/folder.entity';
4
4
  import { Membership } from '../../membership/entities/membership.entity';
5
- import { Program } from '../../programs/entities/Program';
6
5
  import { Product } from '../../product-pricing/entities/product.entity';
6
+ import { Program } from '../../programs/entities/Program';
7
7
  import { User } from '../../user/entities/User';
8
8
  import { MediaTypesEnum } from '../types/media.enums';
9
9
  export declare class Media extends BondBaseEntity {
@@ -10,8 +10,8 @@ export interface ISaveCardTerminalInput {
10
10
  }
11
11
  export interface IFindUserPaymentMethodsOptions {
12
12
  ignoreError?: boolean;
13
+ includeLimited?: boolean;
13
14
  skipValidations?: boolean;
14
15
  withDeleted?: boolean;
15
- includeLimited?: boolean;
16
16
  }
17
17
  export type PaymentMethodByTypeMap = Map<PaymentMethodTypeEnum, UserPaymentMethod[]>;
@@ -1,7 +1,7 @@
1
1
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
+ import { Station } from '../../entity/Station';
2
3
  import { ProductTypesEnum } from '../../services/enums.service';
3
4
  import { Product } from './product.entity';
4
- import { Station } from '../../entity/Station';
5
5
  import { StationToProductCategory } from './station-to-product-category.entity';
6
6
  export declare class ProductCategory extends OrganizationConnectionBaseEntity {
7
7
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"UsagePlanDto.js","sourceRoot":"","sources":["../../../../src/types/public-api/dto/UsagePlanDto.ts"],"names":[],"mappings":";;;AAAA,0CAAyD;AAEzD,MAAa,YAAY;IAAzB;QACC,cAAS,GAA4B,+BAAuB,CAAC,UAAU,CAAC;IACzE,CAAC;CAAA;AAFD,oCAEC"}
1
+ {"version":3,"file":"UsagePlanDto.js","sourceRoot":"","sources":["../../../../src/types/public-api/dto/UsagePlanDto.ts"],"names":[],"mappings":";;;AACA,0CAAyD;AAEzD,MAAa,YAAY;IAAzB;QACC,cAAS,GAA4B,+BAAuB,CAAC,UAAU,CAAC;IACzE,CAAC;CAAA;AAFD,oCAEC"}
@@ -1,12 +1,12 @@
1
1
  import { DateInput } from '@bondsports/date-time';
2
2
  import { ResourceIdAndTypeDto } from '../../dto/general.dto';
3
+ import { Organization } from '../../organization/entities/Organization';
3
4
  import { ProgramSeason } from '../../programs-seasons/entities/ProgramSeason';
5
+ import { Program } from '../../programs/entities/Program';
4
6
  import { GenderEnum, OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
5
7
  import { IBasicSpaceAndSlotCreator, IId } from '../../services/interfaces.service';
6
8
  import { IPagination } from '../../util/models/interfaces/general.interfaces';
7
9
  import { PunchPassOrderByEnum, PunchPassSearchByEnum } from './enums';
8
- import { Program } from '../../programs/entities/Program';
9
- import { Organization } from '../../organization/entities/Organization';
10
10
  export interface IPunchPassHoldersIds {
11
11
  punchPassId: number;
12
12
  usersIds: number[];
@@ -97,38 +97,38 @@ export interface IPurchasePassConfirmationMailData extends Record<string, unknow
97
97
  user_last_name: string;
98
98
  }
99
99
  export interface IPassRedemptionEventMailData extends Record<string, unknown> {
100
- name?: string;
101
100
  end_time: string;
101
+ name?: string;
102
102
  start_day_date: string;
103
103
  start_time: string;
104
104
  }
105
105
  export interface IRedeemPassInvoiceUrls {
106
- backoffice_invoices_url_schedule: string;
107
106
  backoffice_invoices_url: string;
108
- consumer_passes_url: string;
107
+ backoffice_invoices_url_schedule: string;
109
108
  consumer_facility_schedule_url: string;
109
+ consumer_passes_url: string;
110
110
  }
111
111
  export interface IPunchPassRegistrationConfirmationMailData extends IRedeemPassInvoiceUrls, Record<string, unknown> {
112
+ events: IPassRedemptionEventMailData[];
112
113
  organization_name: string;
113
- user_first_name: string;
114
- user_last_name: string;
115
114
  pass_name: string;
116
115
  program_name: string;
117
116
  season_name: string;
118
- events: IPassRedemptionEventMailData[];
117
+ user_first_name: string;
118
+ user_last_name: string;
119
119
  }
120
120
  export interface ILoadPassRedemptionData extends IRawCustomerPassRedemptionFields {
121
- program: Program;
122
121
  organization: Organization;
122
+ program: Program;
123
123
  }
124
124
  export interface IRegistrationOptions {
125
125
  organizationId?: number;
126
126
  sendRedemptionMail?: boolean;
127
127
  }
128
128
  export interface IRawCustomerPassRedemptionFields {
129
- invoiceId: number;
130
129
  customerId: number;
130
+ invoiceId: number;
131
+ customerEmail?: string;
131
132
  customerFirstName?: string;
132
133
  customerLastName?: string;
133
- customerEmail?: string;
134
134
  }
@@ -1,6 +1,6 @@
1
- import { AnswerTitleDto } from './answerTitle.dto';
2
1
  import { QuestionDto } from '../../dto/application.dto';
3
2
  import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
3
+ import { AnswerTitleDto } from './answerTitle.dto';
4
4
  export declare class QuestionnaireDto extends OrganizationBaseEntityDto {
5
5
  id: number;
6
6
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"questionnaire.dto.js","sourceRoot":"","sources":["../../../../src/types/questionnaires/dto/questionnaire.dto.ts"],"names":[],"mappings":";;;AAGA,8EAAoF;AAEpF,MAAa,gBAAiB,SAAQ,4CAAyB;CAU9D;AAVD,4CAUC"}
1
+ {"version":3,"file":"questionnaire.dto.js","sourceRoot":"","sources":["../../../../src/types/questionnaires/dto/questionnaire.dto.ts"],"names":[],"mappings":";;;AAEA,8EAAoF;AAIpF,MAAa,gBAAiB,SAAQ,4CAAyB;CAU9D;AAVD,4CAUC"}
@@ -271,15 +271,15 @@ export interface ISegmentEventCount {
271
271
  eventsCount: number;
272
272
  }
273
273
  export interface IEventAttendeeNotificationData {
274
+ eventId: number;
275
+ userId: number;
276
+ email: string;
274
277
  firstName: string;
275
278
  lastName: string;
276
- email: string;
277
- userId: number;
278
- sessionName: string;
279
- parentSessionName: string | null;
280
279
  organizationName: string;
280
+ parentSessionName: string | null;
281
281
  programName: string;
282
- eventId: number;
282
+ sessionName: string;
283
283
  }
284
284
  export interface IBasicSpaceAndSlotCreator {
285
285
  id: number;
@@ -1,8 +1,8 @@
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';
5
4
  import { MetaTypeEnum } from '../../folders/types/folders.enums';
5
+ import { ITeamFolderMetadata } from '../../folders/types/interfaces/folder-content.interfaces';
6
6
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
7
7
  import { ProgramTypesEnum } from '../../programs/types/enums/program.enums';
8
8
  import { CurrencyEnum, GenderEnum } from '../../services/enums.service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.42",
3
+ "version": "2.4.43",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {