@bondsports/types 2.4.69-a-7 → 2.4.69-a-9

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.
@@ -47,6 +47,7 @@ export declare class SimpleCartItemDto extends OrganizationBaseEntityDto {
47
47
  export declare class CartItemDto extends SimpleCartItemDto {
48
48
  cartId: number;
49
49
  userId?: number;
50
+ facilityId?: number;
50
51
  customer?: SimpleCustomerDto;
51
52
  user?: SimpleUserDto;
52
53
  productId: number;
@@ -79,6 +80,7 @@ export declare class UpdateCartItemDto extends BaseCartItemDto {
79
80
  export declare class AddCartItemDto extends BaseCartItemDto {
80
81
  productId: number;
81
82
  unitPrice?: number;
83
+ facilityId?: number;
82
84
  parentResourceType?: ResourceNameTypeEnum;
83
85
  parentResourceId?: string;
84
86
  children?: AddCartItemDto[];
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AAEA,8EAAoF;AAWpF,MAAa,UAAW,SAAQ,4CAAyB;CAYxD;AAZD,gCAYC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CAsB7D;AAtBD,0CAsBC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAI/D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CA4CjD;AA5CD,kCA4CC;AAED,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAGrD;AAHD,8CAGC;AAED,MAAa,cAAe,SAAQ,eAAe;CAUlD;AAVD,wCAUC"}
1
+ {"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AAEA,8EAAoF;AAWpF,MAAa,UAAW,SAAQ,4CAAyB;CAYxD;AAZD,gCAYC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CAsB7D;AAtBD,0CAsBC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAI/D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CA8CjD;AA9CD,kCA8CC;AAED,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAGrD;AAHD,8CAGC;AAED,MAAa,cAAe,SAAQ,eAAe;CAYlD;AAZD,wCAYC"}
@@ -5,6 +5,7 @@ import { Customer } from '../../entity/Customer';
5
5
  import { EntitlementGroup } from '../../entity/EntitlementGroup';
6
6
  import { LineItems } from '../../entity/LineItems';
7
7
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
8
+ import { Facility } from '../../facilities/entities/Facility';
8
9
  import { Reason } from '../../organization/entities/Reason';
9
10
  import { Discount } from '../../payment/entities/Discount';
10
11
  import { DiscountOnEnum } from '../../payment/types/enums/discount.enums';
@@ -23,6 +24,8 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
23
24
  cartId: number;
24
25
  cart: Cart;
25
26
  userId: number;
27
+ facilityId?: number;
28
+ facility?: Facility;
26
29
  customer?: Customer;
27
30
  user: User;
28
31
  productId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;AAgBjG,MAAa,QAAS,SAAQ,mEAAgC;CAiH7D;AAjHD,4BAiHC"}
1
+ {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;AAiBjG,MAAa,QAAS,SAAQ,mEAAgC;CAqH7D;AArHD,4BAqHC"}
@@ -39,6 +39,7 @@ export interface IItemPriceMetadata {
39
39
  export interface ICreateCartItem {
40
40
  discountId?: number;
41
41
  entitlementGroupId?: number;
42
+ facilityId?: number;
42
43
  groupId?: string;
43
44
  parentResourceId?: string;
44
45
  productId: number;
@@ -14,10 +14,6 @@ export interface IEmployeeFacilities {
14
14
  accessibleFacilities: Facility[];
15
15
  facilityIds: number[];
16
16
  }
17
- export interface IEmployeeFacilitiesSummary {
18
- facilities: Facility[];
19
- facilityIds: number[];
20
- }
21
17
  export interface IFindFacilityAccessFilter {
22
18
  organizationId: number;
23
19
  facilityIds?: number[];
@@ -1,5 +1,6 @@
1
1
  import { ItemPriceMetadata } from '../cart/types/classes/cart.classes';
2
2
  import { CustomerMerge } from '../customers-merge/entities/CustomerMerge';
3
+ import { Facility } from '../facilities/entities/Facility';
3
4
  import { Reason } from '../organization/entities/Reason';
4
5
  import { ItemDiscountDto, SimpleDiscountDto } from '../payment/dto/discount.dto';
5
6
  import { Discount } from '../payment/entities/Discount';
@@ -21,6 +22,8 @@ export declare class LineItems extends OrganizationConnectionBaseEntity {
21
22
  invoiceId: number;
22
23
  invoice: Invoice;
23
24
  userId: number;
25
+ facilityId?: number;
26
+ facility?: Facility;
24
27
  user: User;
25
28
  productId: number;
26
29
  product: Product;
@@ -1 +1 @@
1
- {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AA6BA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CA6K9D;AA7KD,8BA6KC"}
1
+ {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AA8BA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CAiL9D;AAjLD,8BAiLC"}
@@ -8,6 +8,7 @@ export declare class LineItemDto {
8
8
  type: LineItemsStatusEnum;
9
9
  organizationId: number;
10
10
  userId: number;
11
+ facilityId?: number;
11
12
  productId: number;
12
13
  product?: Product;
13
14
  productType: ProductTypesEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AAMA,MAAa,WAAW;CAqDvB;AArDD,kCAqDC"}
1
+ {"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AAMA,MAAa,WAAW;CAuDvB;AAvDD,kCAuDC"}
@@ -1,13 +1,17 @@
1
1
  import { IdDto, PaginatedSearchDto } from '../../dto/general.dto';
2
+ import { SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
2
3
  import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
3
4
  import { NotificationTypeEnum } from '../../services/enums.service';
5
+ import { SimpleUserDto } from '../../user/dto/user.dto';
4
6
  import { NotificationSubscriptionOrderByEnum } from '../types/enums/notification.enums';
5
7
  import { INotificationSubscriptionsQueryOptions } from '../types/interfaces/notification-subscriptions.interfaces';
6
8
  export declare class NotificationSubscriptionDto extends OrganizationBaseEntityDto {
7
9
  userId?: number;
10
+ user?: SimpleUserDto;
8
11
  email?: string;
9
12
  notificationType: NotificationTypeEnum;
10
13
  facilityIds: number[];
14
+ facilities?: SimpleFacilityDto[];
11
15
  }
12
16
  export declare class AddNotificationSubscriptionDto {
13
17
  userId: number;
@@ -24,5 +28,7 @@ export declare class UpdateNotificationSubscriptionsDto {
24
28
  subscriptions: UpdateNotificationSubscriptionDto[];
25
29
  }
26
30
  export declare class GetNotificationSubscriptionsQueryDto extends PaginatedSearchDto implements INotificationSubscriptionsQueryOptions {
31
+ facilitiesIds?: number[];
32
+ notificationTypes?: NotificationTypeEnum[];
27
33
  orderBy?: NotificationSubscriptionOrderByEnum;
28
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"notification-subscriptions.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification-subscriptions.dto.ts"],"names":[],"mappings":";;;AACA,uDAAkE;AAElE,8EAAoF;AAMpF,MAAa,2BAA4B,SAAQ,4CAAyB;CAQzE;AARD,kEAQC;AAED,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAED,MAAa,iCAAkC,SAAQ,mBAAK;CAE3D;AAFD,8EAEC;AAED,MAAa,+BAA+B;CAE3C;AAFD,0EAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,oCACZ,SAAQ,gCAAkB;CAI1B;AALD,oFAKC"}
1
+ {"version":3,"file":"notification-subscriptions.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification-subscriptions.dto.ts"],"names":[],"mappings":";;;AACA,uDAAkE;AAGlE,8EAAoF;AAOpF,MAAa,2BAA4B,SAAQ,4CAAyB;CAYzE;AAZD,kEAYC;AAED,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAED,MAAa,iCAAkC,SAAQ,mBAAK;CAE3D;AAFD,8EAEC;AAED,MAAa,+BAA+B;CAE3C;AAFD,0EAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,oCACZ,SAAQ,gCAAkB;CAQ1B;AATD,oFASC"}
@@ -1,9 +1,11 @@
1
1
  import { FindManyOptions } from 'typeorm';
2
- import { OrderByEnum } from '../../../services/enums.service';
2
+ import { NotificationTypeEnum, OrderByEnum } from '../../../services/enums.service';
3
3
  import { NotificationSubscriptionToFacility } from '../../entities/notification-subscription-to-facility.entity';
4
4
  import { NotificationSubscriptions } from '../../entities/notification-subscription.entity';
5
5
  import { NotificationSubscriptionOrderByEnum } from '../enums/notification.enums';
6
6
  export interface INotificationSubscriptionsQueryOptions {
7
+ facilitiesIds?: number[];
8
+ notificationTypes?: NotificationTypeEnum[];
7
9
  order?: OrderByEnum;
8
10
  orderBy?: NotificationSubscriptionOrderByEnum;
9
11
  search?: string;
@@ -124,6 +124,7 @@ export declare class BaseDraftSlotDto extends BaseSlotDto {
124
124
  parentSlotId?: string;
125
125
  participantsIds?: number[];
126
126
  slotId?: number;
127
+ groupId?: string;
127
128
  }
128
129
  export declare class UpdateDraftSlotDto {
129
130
  id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAOA,8EAAoF;AAQpF,wEAU0C;AAa1C,MAAa,sBAAsB;CAclC;AAdD,wDAcC;AAED,MAAa,4BAA4B;CAYxC;AAZD,oEAYC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAwCvC;AAxCD,0BAwCC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA0CxD;AA1CD,gCA0CC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;CAsBnD;AAtBD,sCAsBC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED,MAAa,WAAY,SAAQ,gBAAgB;CAUhD;AAVD,kCAUC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAkBvC;AAlBD,kCAkBC;AAED,MAAa,gBAAgB;CAsB5B;AAtBD,4CAsBC;AArBC,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,UAAU,EAE5B,qCAAiB,CA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BC;AAED,MAAa,gBAAgB;CAsB5B;AAtBD,4CAsBC;AArBC,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,UAAU,EAE5B,qCAAiB,CAAC,UAAU,EAE5B,qCAAiB,CAAC,WAAW,EAE7B,qCAAiB,CAAC,MAAM,EAExB,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,MAAM,EAExB,qCAAiB,CAAC,eAAe,EAEjC,qCAAiB,CAAC,cAAc,EAEhC,qCAAiB,CAAC,WAAW"}
@@ -58,6 +58,7 @@ export declare class DraftSlot implements IDraftSlot {
58
58
  approvalStatus?: ReservationStatusEnum;
59
59
  paymentStatus?: ReservationPaymentStatusEnum;
60
60
  cartItemId?: string;
61
+ groupId?: string;
61
62
  facility?: Facility;
62
63
  owner?: Customer;
63
64
  slotId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAuBA,MAAa,SAAS;CA8GrB;AA9GD,8BA8GC;AAED,0CAA0C;AAC1C,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C"}
1
+ {"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAuBA,MAAa,SAAS;CAgHrB;AAhHD,8BAgHC;AAED,0CAA0C;AAC1C,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C"}
@@ -6,6 +6,7 @@ import { AnswerTemplateDataDto, QuestionAnswersDto } from '../../../dto/applicat
6
6
  import { PaginationQuery, SelectOptionsDto } from '../../../dto/general.dto';
7
7
  import { Customer } from '../../../entity/Customer';
8
8
  import { Invoice } from '../../../entity/Invoice';
9
+ import { LineItems } from '../../../entity/LineItems';
9
10
  import { LineItemDto } from '../../../invoice/dto/lineItem.dto';
10
11
  import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
11
12
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
@@ -354,6 +355,7 @@ export interface IDuplicateDraftReservation extends IGetDraftReservationOptions,
354
355
  combineSlots?: boolean;
355
356
  excludeIds?: number[];
356
357
  isEdit?: boolean;
358
+ lineItems?: LineItems[];
357
359
  reservationAddonsIds?: number[];
358
360
  slotsFilter?: SlotsFilterDto;
359
361
  slotsIds?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAqCA,kEASoC;AA2DpC,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAsCA,kEASoC;AA2DpC,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -156,6 +156,7 @@ export declare class IBaseSlot {
156
156
  export interface IDraftSlot extends IBaseSlot {
157
157
  id: string;
158
158
  cartItemId?: string;
159
+ groupId?: string;
159
160
  facilityId: number;
160
161
  parentSlotId?: string;
161
162
  reservationId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.69-a-7",
3
+ "version": "2.4.69-a-9",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {