@bondsports/types 2.0.74 → 2.0.76
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/cart/dto/cart-item.dto.d.ts +3 -3
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +1 -1
- package/dist/types/cart/types/consts/cart.consts.js +2 -2
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +2 -2
- package/dist/types/dto/index.d.ts +0 -1
- package/dist/types/dto/index.js +0 -1
- package/dist/types/dto/index.js.map +1 -1
- package/dist/types/dto/membership.dto.d.ts +7 -1
- package/dist/types/dto/membership.dto.js +4 -1
- package/dist/types/dto/membership.dto.js.map +1 -1
- package/dist/types/dto/package.dto.d.ts +1 -1
- package/dist/types/entity/ActivityTimes.d.ts +1 -1
- package/dist/types/entity/LineItems.d.ts +1 -1
- package/dist/types/entity/Membership.d.ts +4 -4
- package/dist/types/entity/Membership.js.map +1 -1
- package/dist/types/entity/ProductPackage.d.ts +1 -1
- package/dist/types/entity/ProductResource.d.ts +1 -1
- package/dist/types/entity/ProductsReservedForCustomers.d.ts +1 -1
- package/dist/types/entity/ProductsUsers.d.ts +1 -1
- package/dist/types/entity/PurchasedResources.d.ts +1 -1
- package/dist/types/entity/index.d.ts +0 -1
- package/dist/types/entity/index.js +0 -1
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/errors/dto/error.dto.d.ts +6 -0
- package/dist/types/errors/dto/error.dto.js +7 -0
- package/dist/types/errors/dto/error.dto.js.map +1 -0
- package/dist/types/errors/dto/index.d.ts +1 -0
- package/dist/types/errors/dto/index.js +18 -0
- package/dist/types/errors/dto/index.js.map +1 -0
- package/dist/types/errors/index.d.ts +1 -0
- package/dist/types/errors/index.js +18 -0
- package/dist/types/errors/index.js.map +1 -0
- package/dist/types/import/dto/product.dto.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/payment/entities/ProductPaymentPlan.d.ts +1 -1
- package/dist/types/pricing/entities/Price.d.ts +1 -1
- package/dist/types/product-pricing/dto/index.d.ts +1 -0
- package/dist/types/product-pricing/dto/index.js +1 -0
- package/dist/types/product-pricing/dto/index.js.map +1 -1
- package/dist/types/{dto → product-pricing/dto}/product.dto.d.ts +14 -6
- package/dist/types/{dto → product-pricing/dto}/product.dto.js +5 -2
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -0
- package/dist/types/{entity → product-pricing/entities}/Product.d.ts +24 -22
- package/dist/types/{entity → product-pricing/entities}/Product.js +1 -1
- package/dist/types/product-pricing/entities/Product.js.map +1 -0
- package/dist/types/product-pricing/entities/index.d.ts +1 -0
- package/dist/types/product-pricing/entities/index.js +18 -0
- package/dist/types/product-pricing/entities/index.js.map +1 -0
- package/dist/types/product-pricing/index.d.ts +1 -0
- package/dist/types/product-pricing/index.js +1 -0
- package/dist/types/product-pricing/index.js.map +1 -1
- package/dist/types/programs/dto/program.dto.d.ts +5 -5
- package/dist/types/programs/dto/program.dto.js.map +1 -1
- package/dist/types/programs/entities/Program.d.ts +6 -7
- package/dist/types/programs/entities/Program.js +2 -2
- package/dist/types/programs/entities/Program.js.map +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +10 -11
- package/dist/types/programs-seasons/entities/ProgramSeason.js +2 -2
- package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +1 -1
- package/dist/types/reservations/dto/addon.dto.d.ts +1 -1
- package/dist/types/reservations/dto/lineItem.dto.d.ts +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +1 -1
- package/dist/types/reservations/entities/Addon.d.ts +1 -1
- package/dist/types/reservations/entities/Slots.d.ts +1 -1
- package/dist/types/reservations/interfaces/invoice.d.ts +1 -1
- package/dist/types/reservations/interfaces/reservation.d.ts +1 -1
- package/dist/types/services/interfaces.service.d.ts +1 -1
- package/dist/types/user/dto/user.dto.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/dto/product.dto.js.map +0 -1
- package/dist/types/entity/Product.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Product } from '../../entity/Product';
|
|
2
1
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
2
|
import { SimpleDiscountDto } from '../../payment/dto/discount.dto';
|
|
4
3
|
import { CartDiscountOnEnum } from '../../payment/types/enums/discount.enums';
|
|
4
|
+
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
|
5
5
|
import { ResourceDto } from '../../spaces/dto/resource.dto';
|
|
6
6
|
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
7
7
|
import { CartStatusEnum } from '../types/enums/cart.enums';
|
|
@@ -31,7 +31,7 @@ export declare class CartItemDto extends OrganizationBaseEntityDto {
|
|
|
31
31
|
userId?: number;
|
|
32
32
|
user?: SimpleUserDto;
|
|
33
33
|
productId: number;
|
|
34
|
-
product?:
|
|
34
|
+
product?: SimpleProductDto;
|
|
35
35
|
price: number;
|
|
36
36
|
totalPrice: number;
|
|
37
37
|
unitPrice?: number;
|
|
@@ -56,5 +56,5 @@ export declare class UpdateCartItemDto extends BaseCartItemDto {
|
|
|
56
56
|
}
|
|
57
57
|
export declare class AddCartItemDto extends BaseCartItemDto {
|
|
58
58
|
productId: number;
|
|
59
|
-
unitPrice
|
|
59
|
+
unitPrice?: number;
|
|
60
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAoF;AAQpF,MAAa,eAAgB,SAAQ,4CAAyB;CAwB7D;AAxBD,0CAwBC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CAUxD;AAVD,gCAUC;AAED,MAAa,WAAY,SAAQ,4CAAyB;CAgCzD;AAhCD,kCAgCC;AAED,MAAa,eAAe;IAC3B,YAAY,YAAuC;QAClD,IAAI,CAAC,QAAQ,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC;IAC1C,CAAC;CAOD;AAZD,0CAYC;AAED,MAAa,iBAAkB,SAAQ,eAAe;IACrD,YAAY,cAA2C;QACtD,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,CAAC,EAAE,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,EAAE,CAAC;IAC9B,CAAC;CAGD;AAPD,8CAOC;AAED,MAAa,cAAe,SAAQ,eAAe;CAIlD;AAJD,wCAIC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntitlementGroup } from '../../entity/EntitlementGroup';
|
|
2
2
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
3
|
-
import { Product } from '../../
|
|
3
|
+
import { Product } from '../../product-pricing/entities/Product';
|
|
4
4
|
import { Discount } from '../../payment/entities/Discount';
|
|
5
5
|
import { ProductTypesEnum } from '../../services/enums.service';
|
|
6
6
|
import { ResourceDto } from '../../spaces/dto/resource.dto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CartDiscountDto } from '../../dto/cart-item.dto';
|
|
2
2
|
import { CartItem } from '../../entities/cart-item.entity';
|
|
3
|
-
export declare const uniqueCartTaxTemplate: (
|
|
3
|
+
export declare const uniqueCartTaxTemplate: (cartItem: CartItem) => string;
|
|
4
4
|
export declare const uniqueCartDiscountTemplate: (discountItem: CartDiscountDto) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uniqueCartDiscountTemplate = exports.uniqueCartTaxTemplate = void 0;
|
|
4
|
-
const uniqueCartTaxTemplate = (
|
|
5
|
-
return `${
|
|
4
|
+
const uniqueCartTaxTemplate = (cartItem) => {
|
|
5
|
+
return `${cartItem.percentage}_${cartItem.isTaxInclusive}`;
|
|
6
6
|
};
|
|
7
7
|
exports.uniqueCartTaxTemplate = uniqueCartTaxTemplate;
|
|
8
8
|
const uniqueCartDiscountTemplate = (discountItem) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UserAnswersDto } from '../../../dto/application.dto';
|
|
2
|
-
import { Product } from '../../../
|
|
2
|
+
import { Product } from '../../../product-pricing/entities/Product';
|
|
3
3
|
import { CurrencyEnum, PlatformsEnum } from '../../../services/enums.service';
|
|
4
4
|
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
|
5
5
|
import { ResourceDto } from '../../../spaces/dto/resource.dto';
|
|
@@ -21,7 +21,7 @@ export interface IAddCartItems {
|
|
|
21
21
|
}
|
|
22
22
|
export interface ICreateCartItem {
|
|
23
23
|
productId: number;
|
|
24
|
-
unitPrice
|
|
24
|
+
unitPrice?: number;
|
|
25
25
|
quantity?: number;
|
|
26
26
|
userId?: number;
|
|
27
27
|
resources?: ResourceDto[];
|
|
@@ -12,7 +12,6 @@ export * from './membership.dto';
|
|
|
12
12
|
export * from './package.dto';
|
|
13
13
|
export * from './product-user';
|
|
14
14
|
export * from './product-variants.dto';
|
|
15
|
-
export * from './product.dto';
|
|
16
15
|
export * from './registration.dto';
|
|
17
16
|
export * from './rental.dto';
|
|
18
17
|
export * from './response.dto';
|
package/dist/types/dto/index.js
CHANGED
|
@@ -28,7 +28,6 @@ __exportStar(require("./membership.dto"), exports);
|
|
|
28
28
|
__exportStar(require("./package.dto"), exports);
|
|
29
29
|
__exportStar(require("./product-user"), exports);
|
|
30
30
|
__exportStar(require("./product-variants.dto"), exports);
|
|
31
|
-
__exportStar(require("./product.dto"), exports);
|
|
32
31
|
__exportStar(require("./registration.dto"), exports);
|
|
33
32
|
__exportStar(require("./rental.dto"), exports);
|
|
34
33
|
__exportStar(require("./response.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
|
|
2
2
|
import { CustomerInMembershipTypeEnum, GenderEnum, MembershipFilterByPropertyEnum, MembershipOrderByPropertyEnum, MembershipStatusEnum, MembershipTypeEnum, OrderByEnum, SportsEnum } from '../services/enums.service';
|
|
3
|
-
import { PaginationQuery } from './general.dto';
|
|
3
|
+
import { IdAndNameDto, PaginationQuery } from './general.dto';
|
|
4
4
|
export declare class CreateMembershipDto {
|
|
5
5
|
organizationId: number;
|
|
6
6
|
name: string;
|
|
@@ -64,3 +64,9 @@ export declare class GetMembershipDataQueryDto extends PaginationQuery {
|
|
|
64
64
|
order?: OrderByEnum[];
|
|
65
65
|
search?: string;
|
|
66
66
|
}
|
|
67
|
+
export declare class SimpleMembershipDto extends IdAndNameDto {
|
|
68
|
+
description?: string;
|
|
69
|
+
customerTypes: CustomerInMembershipTypeEnum[];
|
|
70
|
+
activity?: SportsEnum;
|
|
71
|
+
membershipType: MembershipTypeEnum;
|
|
72
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
|
|
3
|
+
exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
|
|
4
4
|
const general_dto_1 = require("./general.dto");
|
|
5
5
|
class CreateMembershipDto {
|
|
6
6
|
}
|
|
@@ -38,4 +38,7 @@ exports.CancelMembershipDto = CancelMembershipDto;
|
|
|
38
38
|
class GetMembershipDataQueryDto extends general_dto_1.PaginationQuery {
|
|
39
39
|
}
|
|
40
40
|
exports.GetMembershipDataQueryDto = GetMembershipDataQueryDto;
|
|
41
|
+
class SimpleMembershipDto extends general_dto_1.IdAndNameDto {
|
|
42
|
+
}
|
|
43
|
+
exports.SimpleMembershipDto = SimpleMembershipDto;
|
|
41
44
|
//# sourceMappingURL=membership.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAWA,+
|
|
1
|
+
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAWA,+CAA8D;AAE9D,MAAa,mBAAmB;CAwB/B;AAxBD,kDAwBC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,iCAAkC,SAAQ,kCAAkC;CAExF;AAFD,8EAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAGzD;AAHD,sDAGC;AAED,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAU7D;AAVD,8DAUC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAQpD;AARD,kDAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, ProductPackageLevelEnum, ResourceNameTypeEnum } from '../services/enums.service';
|
|
2
|
-
import { CreateProductDto, ProductInPackage } from '
|
|
2
|
+
import { CreateProductDto, ProductInPackage } from '../product-pricing/dto/product.dto';
|
|
3
3
|
export declare class ExistingProductToPackageDto {
|
|
4
4
|
id: number;
|
|
5
5
|
relationType: PackageProductsRelationTypeEnum;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProductTypesEnum, ResourceNameTypeEnum } from './../services/enums.service';
|
|
2
2
|
import { BondBaseEntity } from './BondBaseEntity';
|
|
3
3
|
import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
|
|
4
|
-
import { Product } from '
|
|
4
|
+
import { Product } from '../product-pricing/entities/Product';
|
|
5
5
|
import { Event } from './Events';
|
|
6
6
|
export declare class ActivityTimes extends BondBaseEntity {
|
|
7
7
|
parentType: ResourceNameTypeEnum | ProductTypesEnum;
|
|
@@ -9,7 +9,7 @@ import { EntitlementGroup } from './EntitlementGroup';
|
|
|
9
9
|
import { Invoice } from './Invoice';
|
|
10
10
|
import { LineItemHistory } from './LineItemHistory';
|
|
11
11
|
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
12
|
-
import { Product } from '
|
|
12
|
+
import { Product } from '../product-pricing/entities/Product';
|
|
13
13
|
import { ProductsUsers } from './ProductsUsers';
|
|
14
14
|
import { PurchasedResource } from './PurchasedResources';
|
|
15
15
|
export declare class LineItems extends OrganizationConnectionBaseEntity {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomerInMembershipTypeEnum, GenderEnum, MembershipTypeEnum, SportsEnum } from './../services/enums.service';
|
|
2
2
|
import { IPackageResponse } from './../services/interfaces.service';
|
|
3
|
-
import { SportsEnum, CustomerInMembershipTypeEnum, GenderEnum, MembershipTypeEnum } from './../services/enums.service';
|
|
4
|
-
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
5
3
|
import { Media } from './Media';
|
|
4
|
+
import { MembershipMember } from './MembershipMember';
|
|
5
|
+
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
6
6
|
import { PurchasedResource } from './PurchasedResources';
|
|
7
7
|
export declare class Membership extends OrganizationConnectionBaseEntity {
|
|
8
8
|
name: string;
|
|
@@ -27,8 +27,8 @@ export declare class Membership extends OrganizationConnectionBaseEntity {
|
|
|
27
27
|
registrationEndDate?: Date;
|
|
28
28
|
package?: IPackageResponse;
|
|
29
29
|
tags: any[];
|
|
30
|
-
members: MembershipMember[];
|
|
31
30
|
longDescription?: string;
|
|
32
31
|
isAutoRenew?: boolean;
|
|
32
|
+
members: MembershipMember[];
|
|
33
33
|
purchasedResources: PurchasedResource[];
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Membership.js","sourceRoot":"","sources":["../../../src/types/entity/Membership.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Membership.js","sourceRoot":"","sources":["../../../src/types/entity/Membership.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAGtF,MAAa,UAAW,SAAQ,mEAAgC;IAAhE;;QA8CC,gCAAgC;QAChC,SAAI,GAAG,EAAE,CAAC;IASX,CAAC;CAAA;AAxDD,gCAwDC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, ProductPackageLevelEnum } from './../services/enums.service';
|
|
2
2
|
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
3
3
|
import { ProductResource } from './ProductResource';
|
|
4
|
-
import { Product } from '
|
|
4
|
+
import { Product } from '../product-pricing/entities/Product';
|
|
5
5
|
export declare class ProductPackage extends OrganizationConnectionBaseEntity {
|
|
6
6
|
parentProductId: number;
|
|
7
7
|
childProductId: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Product } from '
|
|
1
|
+
import { Product } from '../product-pricing/entities/Product';
|
|
2
2
|
import { ResourceNameTypeEnum } from '../services/enums.service';
|
|
3
3
|
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
4
4
|
import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Product } from '
|
|
1
|
+
import { Product } from '../product-pricing/entities/Product';
|
|
2
2
|
import { Customer } from './Customer';
|
|
3
3
|
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
4
4
|
export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
|
|
@@ -7,7 +7,7 @@ import { User } from '../user/entities/User';
|
|
|
7
7
|
import { EventAttendee } from './EventAttendees';
|
|
8
8
|
import { LineItems } from './LineItems';
|
|
9
9
|
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
10
|
-
import { Product } from '
|
|
10
|
+
import { Product } from '../product-pricing/entities/Product';
|
|
11
11
|
import { PurchasedResource } from './PurchasedResources';
|
|
12
12
|
export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
|
|
13
13
|
productId: number;
|
|
@@ -8,7 +8,7 @@ import { LeagueSeason } from './LeagueSeason';
|
|
|
8
8
|
import { LineItems } from './LineItems';
|
|
9
9
|
import { Membership } from './Membership';
|
|
10
10
|
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
11
|
-
import { Product } from '
|
|
11
|
+
import { Product } from '../product-pricing/entities/Product';
|
|
12
12
|
import { ProductsUsers } from './ProductsUsers';
|
|
13
13
|
import { SeasonAttendee } from './SeasonAttendees';
|
|
14
14
|
import { SeasonPool } from './SeasonPool';
|
|
@@ -41,7 +41,6 @@ export * from './OpeningTime';
|
|
|
41
41
|
export * from './OrganizationConnectionBaseEntity';
|
|
42
42
|
export * from './PackageV1';
|
|
43
43
|
export * from './PasswordReset';
|
|
44
|
-
export * from './Product';
|
|
45
44
|
export * from './ProductPackage';
|
|
46
45
|
export * from './ProductResource';
|
|
47
46
|
export * from './ProductToVariantTitles';
|
|
@@ -57,7 +57,6 @@ __exportStar(require("./OpeningTime"), exports);
|
|
|
57
57
|
__exportStar(require("./OrganizationConnectionBaseEntity"), exports);
|
|
58
58
|
__exportStar(require("./PackageV1"), exports);
|
|
59
59
|
__exportStar(require("./PasswordReset"), exports);
|
|
60
|
-
__exportStar(require("./Product"), exports);
|
|
61
60
|
__exportStar(require("./ProductPackage"), exports);
|
|
62
61
|
__exportStar(require("./ProductResource"), exports);
|
|
63
62
|
__exportStar(require("./ProductToVariantTitles"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,0CAAwB;AACxB,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,0CAAwB;AACxB,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,iDAA+B;AAC/B,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,qEAAmD;AACnD,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.dto.js","sourceRoot":"","sources":["../../../../src/types/errors/dto/error.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,iBAAiB;CAQ7B;AARD,8CAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './error.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./error.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/errors/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./communication"), exports);
|
|
|
21
21
|
__exportStar(require("./customers"), exports);
|
|
22
22
|
__exportStar(require("./dto"), exports);
|
|
23
23
|
__exportStar(require("./entity"), exports);
|
|
24
|
+
__exportStar(require("./errors"), exports);
|
|
24
25
|
__exportStar(require("./familyAccount"), exports);
|
|
25
26
|
__exportStar(require("./fee"), exports);
|
|
26
27
|
__exportStar(require("./gl-codes"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB;AACvB,kDAAgC;AAChC,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB;AACvB,kDAAgC;AAChC,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaymentPlanSchedule } from './PaymentPlanSchedule';
|
|
2
2
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
3
|
-
import { Product } from '../../
|
|
3
|
+
import { Product } from '../../product-pricing/entities/Product';
|
|
4
4
|
import { PaymentPlanRepetitionEnum, PaymentPlanStatusEnum, PaymentPlanTypeEnum } from '../types/enums/payment-plan.enums';
|
|
5
5
|
export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
|
|
6
6
|
productId: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Product } from '../../
|
|
1
|
+
import { Product } from '../../product-pricing/entities/Product';
|
|
2
2
|
import { CurrencyEnum, DiscountMethodsEnum } from '../../services/enums.service';
|
|
3
3
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
4
4
|
export declare class Price extends OrganizationConnectionBaseEntity {
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./product-pricing.dto"), exports);
|
|
18
|
+
__exportStar(require("./product.dto"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { IdAndNameDto, PaginationQuery } from '../../dto/general.dto';
|
|
2
|
+
import { VariantWithPrice } from '../../dto/product-variants.dto';
|
|
3
|
+
import { CreatePaymentPlanDto } from '../../payment/dto/payment-plan.dto';
|
|
4
|
+
import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
|
|
5
|
+
import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
|
|
6
|
+
import { SimpleProgramDto } from '../../programs/dto/program.dto';
|
|
7
|
+
import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
|
|
8
|
+
import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
7
9
|
export declare class FindByProductIdDto {
|
|
8
10
|
productId: number;
|
|
9
11
|
}
|
|
@@ -109,5 +111,11 @@ export declare class GetExtraProductDataDto {
|
|
|
109
111
|
includeArchived?: boolean;
|
|
110
112
|
platform?: PlatformsEnum;
|
|
111
113
|
}
|
|
114
|
+
export declare class ProductResourceDto extends IdAndNameDto {
|
|
115
|
+
type: ResourceNameTypeEnum;
|
|
116
|
+
program?: SimpleProgramDto;
|
|
117
|
+
parentSession?: SimpleSessionDto;
|
|
118
|
+
}
|
|
112
119
|
export declare class SimpleProductDto extends IdAndNameDto {
|
|
120
|
+
resource?: ProductResourceDto;
|
|
113
121
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SimpleProductDto = exports.GetExtraProductDataDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.AddRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.ProductInPackage = exports.CreateProductDto = exports.CreateRentalProductAddonDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
|
|
4
|
-
const general_dto_1 = require("
|
|
3
|
+
exports.SimpleProductDto = exports.ProductResourceDto = exports.GetExtraProductDataDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.AddRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.ProductInPackage = exports.CreateProductDto = exports.CreateRentalProductAddonDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
|
|
4
|
+
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
class FindByProductIdDto {
|
|
6
6
|
}
|
|
7
7
|
exports.FindByProductIdDto = FindByProductIdDto;
|
|
@@ -35,6 +35,9 @@ exports.GetProductsDto = GetProductsDto;
|
|
|
35
35
|
class GetExtraProductDataDto {
|
|
36
36
|
}
|
|
37
37
|
exports.GetExtraProductDataDto = GetExtraProductDataDto;
|
|
38
|
+
class ProductResourceDto extends general_dto_1.IdAndNameDto {
|
|
39
|
+
}
|
|
40
|
+
exports.ProductResourceDto = ProductResourceDto;
|
|
38
41
|
class SimpleProductDto extends general_dto_1.IdAndNameDto {
|
|
39
42
|
}
|
|
40
43
|
exports.SimpleProductDto = SimpleProductDto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AAgBtE,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAoBlD;AApBD,wCAoBC;AAED,MAAa,sBAAsB;CASlC;AATD,wDASC;AAED,MAAa,kBAAmB,SAAQ,0BAAY;CAMnD;AAND,gDAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAEjD;AAFD,4CAEC"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { ProductPaymentPlan } from '
|
|
2
|
-
import { Price } from '
|
|
3
|
-
import { AddonTimePeriodEnum, ProductSubTypesEnum, ProductTypesEnum } from '
|
|
4
|
-
import { IChildProduct, IResourcesAvailability } from '
|
|
5
|
-
import { ActivityTimes } from '
|
|
6
|
-
import { Customer } from '
|
|
7
|
-
import { GroupItemsPricing } from '
|
|
8
|
-
import { LineItems } from '
|
|
9
|
-
import { Membership } from '
|
|
10
|
-
import { OrganizationConnectionBaseEntity } from '
|
|
11
|
-
import { ProductPackage } from '
|
|
12
|
-
import { ProductResource } from '
|
|
13
|
-
import { ProductsReservedForCustomers } from '
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { PurchasedResource } from '
|
|
1
|
+
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
|
2
|
+
import { Price } from '../../pricing/entities/Price';
|
|
3
|
+
import { AddonTimePeriodEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
4
|
+
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
|
5
|
+
import { ActivityTimes } from '../../entity/ActivityTimes';
|
|
6
|
+
import { Customer } from '../../entity/Customer';
|
|
7
|
+
import { GroupItemsPricing } from '../../entity/GroupItemsPricing';
|
|
8
|
+
import { LineItems } from '../../entity/LineItems';
|
|
9
|
+
import { Membership } from '../../entity/Membership';
|
|
10
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
11
|
+
import { ProductPackage } from '../../entity/ProductPackage';
|
|
12
|
+
import { ProductResource } from '../../entity/ProductResource';
|
|
13
|
+
import { ProductsReservedForCustomers } from '../../entity/ProductsReservedForCustomers';
|
|
14
|
+
import { VariantTitle } from '../../entity/VariantTitles';
|
|
15
|
+
import { Variant } from '../../entity/Variants';
|
|
16
|
+
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
|
17
|
+
import { ResourceSetting } from '../../resource-settings/entities/resource-setting.entity';
|
|
18
|
+
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
19
|
+
import { PurchasedResource } from '../../entity/PurchasedResources';
|
|
20
|
+
import { ProductResourceDto } from '../dto/product.dto';
|
|
20
21
|
export declare class Product extends OrganizationConnectionBaseEntity {
|
|
21
22
|
name: string;
|
|
22
23
|
quantity: number;
|
|
@@ -35,8 +36,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
|
35
36
|
productSubType?: ProductSubTypesEnum;
|
|
36
37
|
punchCard: boolean;
|
|
37
38
|
requiredProductIds?: number[];
|
|
38
|
-
lineItems: LineItems[];
|
|
39
39
|
resources: IResourcesAvailability[];
|
|
40
|
+
resource: ProductResourceDto;
|
|
40
41
|
variantParentId?: number;
|
|
41
42
|
isAddon: boolean;
|
|
42
43
|
isArchive: boolean;
|
|
@@ -46,7 +47,6 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
|
46
47
|
variantTitlesObj: VariantTitle[];
|
|
47
48
|
timePeriod?: AddonTimePeriodEnum;
|
|
48
49
|
deletedAt?: Date;
|
|
49
|
-
productsUsers: ProductsUsers[];
|
|
50
50
|
isProRated: boolean;
|
|
51
51
|
entitledPrices?: GroupItemsPricing[];
|
|
52
52
|
defaultPriceId?: number;
|
|
@@ -67,6 +67,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
|
67
67
|
reservedForCustomers: Customer[];
|
|
68
68
|
reservedForMemberships: Membership[];
|
|
69
69
|
activityTimes: ActivityTimes[];
|
|
70
|
-
purchasedResources: PurchasedResource[];
|
|
71
70
|
resourceSettings: ResourceSetting[];
|
|
71
|
+
lineItems: LineItems[];
|
|
72
|
+
productsUsers: ProductsUsers[];
|
|
73
|
+
purchasedResources: PurchasedResource[];
|
|
72
74
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Product = void 0;
|
|
4
|
-
const OrganizationConnectionBaseEntity_1 = require("
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
5
|
class Product extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
6
|
}
|
|
7
7
|
exports.Product = Product;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAqBA,oGAAiG;AAcjG,MAAa,OAAQ,SAAQ,mEAAgC;CA+G5D;AA/GD,0BA+GC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Product';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./Product"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./dto"), exports);
|
|
18
|
+
__exportStar(require("./entities"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/product-pricing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/product-pricing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B"}
|