@bondsports/types 2.1.2 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/product-variants.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +80 -3
- package/dist/types/product-pricing/dto/product.dto.js +10 -1
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product-variants.dto.js","sourceRoot":"","sources":["../../../src/types/dto/product-variants.dto.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;
|
1
|
+
{"version":3,"file":"product-variants.dto.js","sourceRoot":"","sources":["../../../src/types/dto/product-variants.dto.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAK3E,MAAa,uBAAuB;CAKnC;AALD,0DAKC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAED,MAAa,UAAU;CAYtB;AAZD,gCAYC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAAG;AAAlE,wDAAkE;AAElE,MAAa,qBAAsB,SAAQ,sCAAmB;CAI7D;AAJD,sDAIC;AAED,MAAa,qBAAsB,SAAQ,sCAAmB;CAM7D;AAND,sDAMC"}
|
@@ -1,11 +1,25 @@
|
|
1
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';
|
2
|
+
import { VariantDto, VariantTitleDto, VariantWithPrice } from '../../dto/product-variants.dto';
|
3
|
+
import { CreatePaymentPlanDto, PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
|
4
4
|
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
5
5
|
import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
|
6
6
|
import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
|
7
|
-
import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
7
|
+
import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
8
8
|
import { ProductResourceDto } from './product-resource.dto';
|
9
|
+
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
10
|
+
import { Price } from '../../pricing/entities/Price';
|
11
|
+
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
12
|
+
import { GroupItemsPricing } from '../../entity/GroupItemsPricing';
|
13
|
+
import { ProductPackage } from '../../entity/ProductPackage';
|
14
|
+
import { ProductsReservedForCustomers } from '../../entity/ProductsReservedForCustomers';
|
15
|
+
import { Membership } from '../../entity/Membership';
|
16
|
+
import { ProductsUsers } from '../../entity/ProductsUsers';
|
17
|
+
import { CustomerDto } from '../../dto/customer.dto';
|
18
|
+
import { ActivityTimesDto } from '../../programs-seasons/dto/program-seasons.dto';
|
19
|
+
import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
|
20
|
+
import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting.dto';
|
21
|
+
import { LineItemDto } from '../../reservations/dto/lineItem.dto';
|
22
|
+
import { Product } from '../entities/Product';
|
9
23
|
export declare class FindByProductIdDto {
|
10
24
|
productId: number;
|
11
25
|
}
|
@@ -120,3 +134,66 @@ export declare class SimpleProductDto extends IdAndNameDto {
|
|
120
134
|
resource?: ProductResourceDto;
|
121
135
|
productPaymentPlans?: ProductPaymentPlan[];
|
122
136
|
}
|
137
|
+
export declare class BaseProductDto {
|
138
|
+
id: number;
|
139
|
+
organizationId: number;
|
140
|
+
createdAt: Date;
|
141
|
+
updatedAt: Date;
|
142
|
+
name: string;
|
143
|
+
quantity: number;
|
144
|
+
isAll: boolean;
|
145
|
+
paymentProcessorId?: string;
|
146
|
+
startDate?: Date;
|
147
|
+
endDate?: Date;
|
148
|
+
isPublic: boolean;
|
149
|
+
productType?: ProductTypesEnum;
|
150
|
+
GL?: string;
|
151
|
+
glCodes?: ResourceGlDto[];
|
152
|
+
downpayment?: number;
|
153
|
+
description?: string;
|
154
|
+
prices: Price[];
|
155
|
+
currPrice: Price;
|
156
|
+
productSubType?: ProductSubTypesEnum;
|
157
|
+
punchCard: boolean;
|
158
|
+
requiredProductIds?: number[];
|
159
|
+
resources: IResourcesAvailability[];
|
160
|
+
resource: ProductResourceDto;
|
161
|
+
variantParentId?: number;
|
162
|
+
isAddon: boolean;
|
163
|
+
isArchive: boolean;
|
164
|
+
productVariants: Product[];
|
165
|
+
variantParentProduct: BaseProductDto;
|
166
|
+
variantsObj: VariantDto[];
|
167
|
+
variantTitlesObj: VariantTitleDto[];
|
168
|
+
timePeriod?: AddonTimePeriodEnum;
|
169
|
+
deletedAt?: Date;
|
170
|
+
isProRated: boolean;
|
171
|
+
entitledPrices?: GroupItemsPricing[];
|
172
|
+
defaultPriceId?: number;
|
173
|
+
tax: number;
|
174
|
+
isTaxInclusive: boolean;
|
175
|
+
defaultPrice?: Price;
|
176
|
+
addOns?: IChildProduct[];
|
177
|
+
productResources: ProductResourceDto[];
|
178
|
+
parentProductPackages: ProductPackage[];
|
179
|
+
childProductPackages: ProductPackage[];
|
180
|
+
sports?: number[];
|
181
|
+
durationMinutes?: number;
|
182
|
+
durationDays?: number;
|
183
|
+
forms?: number[];
|
184
|
+
isForAllCustomers?: boolean;
|
185
|
+
productsReservedForCustomers?: ProductsReservedForCustomers[];
|
186
|
+
reservedForCustomers?: CustomerDto[];
|
187
|
+
reservedForMemberships?: Membership[];
|
188
|
+
activityTimes?: ActivityTimesDto[];
|
189
|
+
resourceSettings: ResourceSettingDto[];
|
190
|
+
lineItems?: LineItemDto[];
|
191
|
+
productsUsers?: ProductsUsers[];
|
192
|
+
purchasedResources?: PurchasedResourceDto[];
|
193
|
+
}
|
194
|
+
export declare class DeprecatedProductDto extends BaseProductDto {
|
195
|
+
productPaymentPlan?: PaymentPlanDto;
|
196
|
+
}
|
197
|
+
export declare class ProductDto extends BaseProductDto {
|
198
|
+
productPaymentPlans?: PaymentPlanDto[];
|
199
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.AddRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.ProductInPackage = exports.CreateProductDto = exports.CreateRentalProductAddonDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
|
3
|
+
exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = 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
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
5
|
class FindByProductIdDto {
|
6
6
|
}
|
@@ -41,4 +41,13 @@ exports.GetOrganizationProductsDto = GetOrganizationProductsDto;
|
|
41
41
|
class SimpleProductDto extends general_dto_1.IdAndNameDto {
|
42
42
|
}
|
43
43
|
exports.SimpleProductDto = SimpleProductDto;
|
44
|
+
class BaseProductDto {
|
45
|
+
}
|
46
|
+
exports.BaseProductDto = BaseProductDto;
|
47
|
+
class DeprecatedProductDto extends BaseProductDto {
|
48
|
+
}
|
49
|
+
exports.DeprecatedProductDto = DeprecatedProductDto;
|
50
|
+
class ProductDto extends BaseProductDto {
|
51
|
+
}
|
52
|
+
exports.ProductDto = ProductDto;
|
44
53
|
//# sourceMappingURL=product.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AA+BtE,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,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA8G1B;AA9GD,wCA8GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAE7C;AAFD,gCAEC"}
|