@bondsports/types 2.2.209 → 2.2.211

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,14 +1,14 @@
1
+ import { ScheduleDto } from '../../dto/activityTimes.dto';
1
2
  import { UserAnswersDto } from '../../dto/application.dto';
2
3
  import { PaginationQuery } from '../../dto/general.dto';
3
4
  import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
5
+ import { ISetDiscount, ISetDiscounts } from '../../payment/types/interfaces/discount.interfaces';
6
+ import { DurationUnitTypesEnum } from '../../reservations/types/enums/reservation.enums';
4
7
  import { AddonParentTypeEnum, CurrencyEnum, PlatformsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
5
8
  import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
6
9
  import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
7
- import { AddCartItemDto, CartDiscountDto, CartItemDto, CartTaxDto, UpdateCartItemDto } from './cart-item.dto';
8
- import { ISetDiscount, ISetDiscounts } from '../../payment/types/interfaces/discount.interfaces';
9
- import { ActivityTimesDto } from '../../dto/activityTimes.dto';
10
- import { DurationUnitTypesEnum } from '../../reservations/types/enums/reservation.enums';
11
10
  import { IUpdateCartCategoriesPrices, IUpdateCartPrices, IUpdateCartProductPrices, IUpdateProductPrice } from '../types/interfaces/cart.interfaces';
11
+ import { AddCartItemDto, CartDiscountDto, CartItemDto, CartTaxDto, UpdateCartItemDto } from './cart-item.dto';
12
12
  export declare class CartDto extends OrganizationBaseEntityDto {
13
13
  createdAt: Date;
14
14
  price: number;
@@ -85,7 +85,7 @@ export declare class ProductPriceResultDto {
85
85
  priceId: number;
86
86
  quantity: number;
87
87
  unitPrice: number;
88
- activityTimes?: ActivityTimesDto[];
88
+ schedules?: ScheduleDto[];
89
89
  name: string;
90
90
  isTaxInclusive?: boolean;
91
91
  tax: number;
@@ -1 +1 @@
1
- {"version":3,"file":"cart.dto.js","sourceRo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;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
@@ -1,3 +1,5 @@
1
+ import { ScheduleDto } from '../../dto/activityTimes.dto';
2
+ import { ActivityTimes } from '../../entity/ActivityTimes';
1
3
  import { EntitlementGroup } from '../../entity/EntitlementGroup';
2
4
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
5
  import { Reason } from '../../organization/entities/Reason';
@@ -8,9 +10,8 @@ import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
8
10
  import { ProductTypesEnum } from '../../services/enums.service';
9
11
  import { User } from '../../user/entities/User';
10
12
  import { CartStatusEnum } from '../types/enums/cart.enums';
11
- import { Cart } from './cart.entity';
12
13
  import { ICartItemPriceMetadata } from '../types/interfaces/cart.interfaces';
13
- import { ActivityTimes } from '../../entity/ActivityTimes';
14
+ import { Cart } from './cart.entity';
14
15
  export declare class CartItem extends OrganizationConnectionBaseEntity {
15
16
  deletedAt?: Date;
16
17
  cartId: number;
@@ -48,7 +49,8 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
48
49
  totalPrice?: number;
49
50
  overrideTotalPrice?: number;
50
51
  totalUnitPrice: number;
51
- prices?: ICartItemPriceMetadata[];
52
52
  priceId?: number;
53
53
  activityTimes?: ActivityTimes[];
54
+ schedules?: ScheduleDto[];
55
+ prices?: ICartItemPriceMetadata[];
54
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAajG,MAAa,QAAS,SAAQ,mEAAgC;CA6E7D;AA7ED,4BA6EC"}
1
+ {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAYjG,MAAa,QAAS,SAAQ,mEAAgC;CA+E7D;AA/ED,4BA+EC"}
@@ -21,3 +21,13 @@ export declare class ActivityTimesDto {
21
21
  groupId?: string;
22
22
  isSameAsFacility?: boolean;
23
23
  }
24
+ export declare class ScheduleDto {
25
+ id?: string;
26
+ parentId?: number;
27
+ parentType?: ResourceNameTypeEnum | ProductTypesEnum;
28
+ dayOfWeeks: number[];
29
+ close: string;
30
+ open: string;
31
+ availabilityStartDate?: string;
32
+ availabilityEndDate?: string;
33
+ }
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityTimesDto = exports.BasicActivityTimesDto = void 0;
3
+ exports.ScheduleDto = exports.ActivityTimesDto = exports.BasicActivityTimesDto = void 0;
4
4
  class BasicActivityTimesDto {
5
5
  }
6
6
  exports.BasicActivityTimesDto = BasicActivityTimesDto;
7
7
  class ActivityTimesDto {
8
8
  }
9
9
  exports.ActivityTimesDto = ActivityTimesDto;
10
+ class ScheduleDto {
11
+ }
12
+ exports.ScheduleDto = ScheduleDto;
10
13
  //# sourceMappingURL=activityTimes.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activityTimes.dto.js","sourceRoot":"","sources":["../../../src/types/dto/activityTimes.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;CAgBjC;AAhBD,sDAgBC;AAED,MAAa,gBAAgB;CAoB5B;AApBD,4CAoBC"}
1
+ {"version":3,"file":"activityTimes.dto.js","sourceRoot":"","sources":["../../../src/types/dto/activityTimes.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;CAgBjC;AAhBD,sDAgBC;AAED,MAAa,gBAAgB;CAoB5B;AApBD,4CAoBC;AAED,MAAa,WAAW;CAgBvB;AAhBD,kCAgBC"}
@@ -11,6 +11,7 @@ import { EmergencyContact } from './EmergencyContact';
11
11
  import { Media } from '../media/entities/Media';
12
12
  import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
13
13
  import { ProductsReservedForCustomers } from './ProductsReservedForCustomers';
14
+ import { OrganizationUsers } from '../organization/entities/OrganizationUsers';
14
15
  export declare class Customer extends OrganizationConnectionBaseEntity {
15
16
  name?: string;
16
17
  isAnonymous?: boolean;
@@ -47,5 +48,6 @@ export declare class Customer extends OrganizationConnectionBaseEntity {
47
48
  mainMedia: Media;
48
49
  reservations?: Reservation[];
49
50
  user: User;
51
+ organizationUser: OrganizationUsers;
50
52
  organizationName?: string;
51
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAYA,yFAAsF;AAGtF,MAAa,QAAS,SAAQ,mEAAgC;CA4E7D;AA5ED,4BA4EC"}
1
+ {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAYA,yFAAsF;AAItF,MAAa,QAAS,SAAQ,mEAAgC;CA8E7D;AA9ED,4BA8EC"}
@@ -1,11 +1,13 @@
1
1
  import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
2
  import { EmployeeStatus } from '../../employees/types/enums';
3
3
  import { User } from '../../user/entities/User';
4
+ import { Customer } from '../../entity/Customer';
4
5
  export declare class OrganizationUsers extends BondBaseEntity {
5
6
  organisationId: number | null;
6
7
  userId: number | null;
7
8
  user: User;
8
9
  status?: EmployeeStatus;
10
+ customer: Customer;
9
11
  referenceId?: string;
10
12
  employmentStartDate?: Date;
11
13
  employmentEndDate?: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,iBAAkB,SAAQ,+BAAc;CAiBpD;AAjBD,8CAiBC"}
1
+ {"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAK7D,MAAa,iBAAkB,SAAQ,+BAAc;CAmBpD;AAnBD,8CAmBC"}
@@ -12,6 +12,7 @@ import { UserRole } from '../../roles/entities/UserRole';
12
12
  import { GenderEnum, ResourceNameTypeEnum } from '../../services/enums.service';
13
13
  import { Athlete } from './Athlete';
14
14
  import { Resource } from '../../resources/entities/Resource';
15
+ import { OrganizationUsers } from '../../organization/entities/OrganizationUsers';
15
16
  export declare class User extends BondBaseEntity {
16
17
  firstName?: string;
17
18
  lastName?: string;
@@ -53,6 +54,7 @@ export declare class User extends BondBaseEntity {
53
54
  paymentNotes: PaymentNote[];
54
55
  customers: Customer[];
55
56
  resources?: Resource[];
57
+ organizationUsers: OrganizationUsers[];
56
58
  }
57
59
  export declare class IUserInOrganization extends User {
58
60
  organizationId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAc7D,MAAa,IAAK,SAAQ,+BAAc;CAgFvC;AAhFD,oBAgFC;AAED,MAAa,mBAAoB,SAAQ,IAAI;CAI5C;AAJD,kDAIC"}
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAe7D,MAAa,IAAK,SAAQ,+BAAc;CAkFvC;AAlFD,oBAkFC;AAED,MAAa,mBAAoB,SAAQ,IAAI;CAI5C;AAJD,kDAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.209",
3
+ "version": "2.2.211",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {