@bondsports/types 2.4.15 → 2.4.17-squad-c-1
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/address/types/address.consts.d.ts +1 -0
- package/dist/types/address/types/address.consts.js +5 -0
- package/dist/types/address/types/address.consts.js.map +1 -0
- package/dist/types/address/types/address.interfaces.d.ts +9 -0
- package/dist/types/address/types/index.d.ts +1 -0
- package/dist/types/address/types/index.js +1 -0
- package/dist/types/address/types/index.js.map +1 -1
- package/dist/types/cart/dto/cart-item.dto.d.ts +5 -3
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +4 -2
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +0 -2
- package/dist/types/cart/types/consts/cart.consts.js +2 -6
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/customers/types/consts/customers.consts.d.ts +1 -0
- package/dist/types/customers/types/consts/customers.consts.js +9 -1
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/enums.d.ts +6 -0
- package/dist/types/customers/types/enums.js +8 -1
- package/dist/types/customers/types/enums.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +8 -0
- package/dist/types/employees/dto/employee.dto.d.ts +6 -18
- package/dist/types/employees/dto/employee.dto.js +0 -1
- package/dist/types/employees/dto/employee.dto.js.map +1 -1
- package/dist/types/employees/types/consts/index.d.ts +1 -0
- package/dist/types/employees/types/consts/index.js +7 -1
- package/dist/types/employees/types/consts/index.js.map +1 -1
- package/dist/types/employees/types/interfaces.d.ts +10 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +4 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.js.map +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/product-pricing/dto/product-categories.dto.d.ts +43 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js +30 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/index.d.ts +1 -0
- package/dist/types/product-pricing/entities/index.js +1 -0
- package/dist/types/product-pricing/entities/index.js.map +1 -1
- package/dist/types/product-pricing/entities/product-category.entity.d.ts +12 -0
- package/dist/types/product-pricing/entities/product-category.entity.js +8 -0
- package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -0
- package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
- package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
- package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
- package/dist/types/product-pricing/types/consts/index.js +1 -0
- package/dist/types/product-pricing/types/consts/index.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +510 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js +124 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -0
- package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
- package/dist/types/product-pricing/types/enums/index.js +1 -0
- package/dist/types/product-pricing/types/enums/index.js.map +1 -1
- package/dist/types/product-pricing/types/enums/product-categories.enums.d.ts +8 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js +13 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js.map +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +2 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +25 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js +3 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +5 -0
- package/dist/types/services/enums.service.d.ts +5 -2
- package/dist/types/services/enums.service.js +3 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +5 -0
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/dist/types/user/dto/athlete.dto.d.ts +15 -0
- package/dist/types/user/dto/athlete.dto.js +13 -0
- package/dist/types/user/dto/athlete.dto.js.map +1 -0
- package/dist/types/user/dto/index.d.ts +2 -0
- package/dist/types/user/dto/index.js +2 -0
- package/dist/types/user/dto/index.js.map +1 -1
- package/dist/types/user/dto/update-user-profile.dto.d.ts +24 -0
- package/dist/types/user/dto/update-user-profile.dto.js +17 -0
- package/dist/types/user/dto/update-user-profile.dto.js.map +1 -0
- package/dist/types/user/dto/user.dto.d.ts +0 -3
- package/dist/types/user/dto/user.dto.js +1 -4
- package/dist/types/user/dto/user.dto.js.map +1 -1
- package/dist/types/user/entities/Athlete.d.ts +2 -0
- package/dist/types/user/entities/Athlete.js.map +1 -1
- package/dist/types/user/types/athlete.interfaces.d.ts +14 -0
- package/dist/types/user/types/athlete.interfaces.js +3 -0
- package/dist/types/user/types/athlete.interfaces.js.map +1 -0
- package/dist/types/user/types/index.d.ts +2 -0
- package/dist/types/user/types/index.js +2 -0
- package/dist/types/user/types/index.js.map +1 -1
- package/dist/types/user/types/user.consts.d.ts +11 -0
- package/dist/types/user/types/user.consts.js +36 -0
- package/dist/types/user/types/user.consts.js.map +1 -0
- package/dist/types/user/types/user.interfaces.d.ts +20 -2
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ADDRESS_ENTITY_UPDATE_FIELDS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.consts.js","sourceRoot":"","sources":["../../../../src/types/address/types/address.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./address.consts"), exports);
|
|
17
18
|
__exportStar(require("./address.interfaces"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/address/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/address/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC"}
|
|
@@ -13,8 +13,9 @@ export declare class CartTaxDto extends OrganizationBaseEntityDto {
|
|
|
13
13
|
cartId: number;
|
|
14
14
|
productId: number;
|
|
15
15
|
price: number;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
name: string;
|
|
17
|
+
rate?: number;
|
|
18
|
+
isInclusive?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare class CartDiscountDto extends OrganizationBaseEntityDto {
|
|
20
21
|
cartId: number;
|
|
@@ -57,7 +58,8 @@ export declare class CartItemDto extends SimpleCartItemDto {
|
|
|
57
58
|
status: CartStatusEnum;
|
|
58
59
|
errors?: string[];
|
|
59
60
|
ordinal?: number;
|
|
60
|
-
|
|
61
|
+
taxId?: number;
|
|
62
|
+
taxItems?: CartTaxDto[];
|
|
61
63
|
discounts?: CartDiscountDto[];
|
|
62
64
|
discountSubtotal?: number;
|
|
63
65
|
children?: CartItemDto[];
|
|
@@ -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;
|
|
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;CA0B7D;AA1BD,0CA0BC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;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"}
|
|
@@ -9,6 +9,7 @@ import { Reason } from '../../organization/entities/Reason';
|
|
|
9
9
|
import { Discount } from '../../payment/entities/Discount';
|
|
10
10
|
import { DiscountOnEnum } from '../../payment/types/enums/discount.enums';
|
|
11
11
|
import { Product } from '../../product-pricing/entities/product.entity';
|
|
12
|
+
import { Tax } from '../../taxes/entities/Tax';
|
|
12
13
|
import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
|
|
13
14
|
import { ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
14
15
|
import { User } from '../../user/entities/User';
|
|
@@ -36,16 +37,17 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
|
|
|
36
37
|
parentOrdinal?: number;
|
|
37
38
|
unique?: string;
|
|
38
39
|
percentage?: number;
|
|
39
|
-
isTaxInclusive?: boolean;
|
|
40
40
|
entitlementGroupId?: number;
|
|
41
41
|
entitlementGroup?: EntitlementGroup;
|
|
42
42
|
parentId?: number;
|
|
43
43
|
parent?: CartItem;
|
|
44
44
|
children?: CartItem[];
|
|
45
45
|
discounts?: CartItem[];
|
|
46
|
-
|
|
46
|
+
taxItems?: CartItem[];
|
|
47
47
|
discountId?: number;
|
|
48
48
|
discount?: Discount;
|
|
49
|
+
taxId?: number;
|
|
50
|
+
tax?: Tax;
|
|
49
51
|
resources?: PurchaseResourceDto[];
|
|
50
52
|
parentResourceId?: string;
|
|
51
53
|
parentResourceType?: ResourceNameTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAQA,oGAAiG;AAejG,MAAa,QAAS,SAAQ,mEAAgC;CAqG7D;AArGD,4BAqGC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { CartDiscountDto } from '../../dto/cart-item.dto';
|
|
2
|
-
import { CartItem } from '../../entities/cart-item.entity';
|
|
3
|
-
export declare const uniqueCartTaxTemplate: (cartItem: CartItem) => string;
|
|
4
2
|
export declare const uniqueCartDiscountTemplate: (discountItem: CartDiscountDto) => string;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uniqueCartDiscountTemplate =
|
|
4
|
-
const uniqueCartTaxTemplate = (cartItem) => {
|
|
5
|
-
return `${cartItem.percentage}_${cartItem.isTaxInclusive}`;
|
|
6
|
-
};
|
|
7
|
-
exports.uniqueCartTaxTemplate = uniqueCartTaxTemplate;
|
|
3
|
+
exports.uniqueCartDiscountTemplate = void 0;
|
|
8
4
|
const uniqueCartDiscountTemplate = (discountItem) => {
|
|
9
|
-
const discountPercentage = `${discountItem.percentage}
|
|
5
|
+
const discountPercentage = `${discountItem.percentage}`;
|
|
10
6
|
return `${discountItem.discountId}_${discountItem.discount?.type}_${discountPercentage}_${discountItem.actionId}`;
|
|
11
7
|
};
|
|
12
8
|
exports.uniqueCartDiscountTemplate = uniqueCartDiscountTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.consts.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/consts/cart.consts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cart.consts.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/consts/cart.consts.ts"],"names":[],"mappings":";;;AAEO,MAAM,0BAA0B,GAAG,CAAC,YAA6B,EAAU,EAAE;IACnF,MAAM,kBAAkB,GAAW,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAEhE,OAAO,GAAG,YAAY,CAAC,UAAU,IAAI,YAAY,CAAC,QAAQ,EAAE,IAAI,IAAI,kBAAkB,IAAI,YAAY,CAAC,QAAQ,EAAE,CAAC;AACnH,CAAC,CAAC;AAJW,QAAA,0BAA0B,8BAIrC"}
|
|
@@ -2,3 +2,4 @@ import { CreateCustomerOptions } from '../interfaces';
|
|
|
2
2
|
export declare const LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
|
|
3
3
|
export declare const DEFAULT_CREATE_CUSTOMER_OPTIONS: CreateCustomerOptions;
|
|
4
4
|
export declare const RELATIONS_FOR_ORGANIZATION_USER: string[];
|
|
5
|
+
export declare const CUSTOMER_ENTITY_UPDATE_FIELDS: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
|
|
3
|
+
exports.CUSTOMER_ENTITY_UPDATE_FIELDS = exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
|
|
4
4
|
exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
|
|
5
5
|
exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
6
6
|
saveCustomer: true,
|
|
@@ -10,4 +10,12 @@ exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
|
10
10
|
skipCreateCognitoUser: false,
|
|
11
11
|
};
|
|
12
12
|
exports.RELATIONS_FOR_ORGANIZATION_USER = ['user', 'user.organizationUsers'];
|
|
13
|
+
exports.CUSTOMER_ENTITY_UPDATE_FIELDS = [
|
|
14
|
+
'addressId',
|
|
15
|
+
'colorCodeId',
|
|
16
|
+
'email',
|
|
17
|
+
'firstName',
|
|
18
|
+
'lastName',
|
|
19
|
+
'phoneNumber',
|
|
20
|
+
];
|
|
13
21
|
//# sourceMappingURL=customers.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AAEpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;IACrB,qBAAqB,EAAE,KAAK;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AAEpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;IACrB,qBAAqB,EAAE,KAAK;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAErE,QAAA,6BAA6B,GAAG;IAC5C,WAAW;IACX,aAAa;IACb,OAAO;IACP,WAAW;IACX,UAAU;IACV,aAAa;CACb,CAAC"}
|
|
@@ -20,3 +20,9 @@ export declare enum CustomerExpandsEnum {
|
|
|
20
20
|
NOTES = "notes",
|
|
21
21
|
USER_DETAILS = "user_details"
|
|
22
22
|
}
|
|
23
|
+
export declare enum CustomerErrorsEnum {
|
|
24
|
+
MISSING_PARAMS = "missing_params",
|
|
25
|
+
CUSTOMER_NOT_FOUND = "customer_not_found",
|
|
26
|
+
CUSTOMER_IS_NOT_USER = "customer_is_not_user",
|
|
27
|
+
CROSS_ORGANIZATION_CUSTOMER_ACCESS = "cross_organization_customer_access"
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerExpandsEnum = exports.OrderByCusotmerEnum = exports.CustomerFamilyStatusEnum = void 0;
|
|
3
|
+
exports.CustomerErrorsEnum = exports.CustomerExpandsEnum = exports.OrderByCusotmerEnum = exports.CustomerFamilyStatusEnum = void 0;
|
|
4
4
|
var CustomerFamilyStatusEnum;
|
|
5
5
|
(function (CustomerFamilyStatusEnum) {
|
|
6
6
|
CustomerFamilyStatusEnum["DEPENDENT"] = "dependent";
|
|
@@ -27,4 +27,11 @@ var CustomerExpandsEnum;
|
|
|
27
27
|
CustomerExpandsEnum["NOTES"] = "notes";
|
|
28
28
|
CustomerExpandsEnum["USER_DETAILS"] = "user_details";
|
|
29
29
|
})(CustomerExpandsEnum = exports.CustomerExpandsEnum || (exports.CustomerExpandsEnum = {}));
|
|
30
|
+
var CustomerErrorsEnum;
|
|
31
|
+
(function (CustomerErrorsEnum) {
|
|
32
|
+
CustomerErrorsEnum["MISSING_PARAMS"] = "missing_params";
|
|
33
|
+
CustomerErrorsEnum["CUSTOMER_NOT_FOUND"] = "customer_not_found";
|
|
34
|
+
CustomerErrorsEnum["CUSTOMER_IS_NOT_USER"] = "customer_is_not_user";
|
|
35
|
+
CustomerErrorsEnum["CROSS_ORGANIZATION_CUSTOMER_ACCESS"] = "cross_organization_customer_access";
|
|
36
|
+
})(CustomerErrorsEnum = exports.CustomerErrorsEnum || (exports.CustomerErrorsEnum = {}));
|
|
30
37
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/customers/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,uDAA2B,CAAA;IAC3B,+CAAmB,CAAA;AACpB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAED,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,uDAAgC,CAAA;IAChC,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,oDAA6B,CAAA;AAC9B,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B;AAED,sEAAsE;AACtE,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,gDAAyB,CAAA;IACzB,kDAA2B,CAAA;IAC3B,gEAAyC,CAAA;IACzC,sCAAe,CAAA;IACf,oDAA6B,CAAA;AAC9B,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B"}
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/customers/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,uDAA2B,CAAA;IAC3B,+CAAmB,CAAA;AACpB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAED,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,uDAAgC,CAAA;IAChC,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,oDAA6B,CAAA;AAC9B,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B;AAED,sEAAsE;AACtE,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,gDAAyB,CAAA;IACzB,kDAA2B,CAAA;IAC3B,gEAAyC,CAAA;IACzC,sCAAe,CAAA;IACf,oDAA6B,CAAA;AAC9B,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC7B,uDAAiC,CAAA;IACjC,+DAAyC,CAAA;IACzC,mEAA6C,CAAA;IAC7C,+FAAyE,CAAA;AAC1E,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
|
|
@@ -73,3 +73,11 @@ export interface INewFamilyMembers {
|
|
|
73
73
|
familyCustomerId: number;
|
|
74
74
|
newMembers: Customer[];
|
|
75
75
|
}
|
|
76
|
+
export interface IUpdateCustomerFields {
|
|
77
|
+
addressId?: number;
|
|
78
|
+
colorCodeId?: number;
|
|
79
|
+
email?: string;
|
|
80
|
+
firstName?: string;
|
|
81
|
+
lastName?: string;
|
|
82
|
+
phoneNumber?: string;
|
|
83
|
+
}
|
|
@@ -77,32 +77,20 @@ export declare class CreateEmployeeOptions {
|
|
|
77
77
|
export declare class UpdateEmployeeDto {
|
|
78
78
|
firstName?: string;
|
|
79
79
|
lastName?: string;
|
|
80
|
-
name?: string;
|
|
81
|
-
entityId?: number;
|
|
82
|
-
entityType?: CustomerTypeEnum;
|
|
83
80
|
email?: string;
|
|
84
|
-
|
|
81
|
+
phoneNumber?: string;
|
|
82
|
+
birthDate?: string;
|
|
83
|
+
gender?: GenderEnum;
|
|
85
84
|
street?: string;
|
|
86
85
|
city?: string;
|
|
87
86
|
state?: string;
|
|
88
87
|
zip?: string;
|
|
89
|
-
phoneNumber?: string;
|
|
90
|
-
mainMediaId?: number;
|
|
91
|
-
creatorId?: number;
|
|
92
|
-
creatorType?: ResourceNameTypeEnum;
|
|
93
|
-
userCreatorId?: number;
|
|
94
|
-
gender?: GenderEnum;
|
|
95
|
-
birthDate?: string;
|
|
96
|
-
emergencyContactName?: string;
|
|
97
|
-
emergencyContactPhone?: string;
|
|
98
|
-
mainMedia?: MediaDto;
|
|
99
|
-
rolesIds?: number[];
|
|
100
|
-
rolesIdsToAdd?: number[];
|
|
101
|
-
rolesIdsToRemove?: number[];
|
|
102
88
|
referenceId?: string;
|
|
103
|
-
status?: EmployeeStatus;
|
|
104
89
|
employmentStartDate?: Date;
|
|
105
90
|
employmentEndDate?: Date;
|
|
91
|
+
rolesIdsToAdd?: number[];
|
|
92
|
+
rolesIdsToRemove?: number[];
|
|
93
|
+
employeeStatus?: EmployeeStatus;
|
|
106
94
|
}
|
|
107
95
|
export declare class GetEmployeesByFilterOptions extends PaginationQuery {
|
|
108
96
|
statuses?: EmployeeStatus[];
|
|
@@ -23,7 +23,6 @@ exports.CreateEmployeeDto = CreateEmployeeDto;
|
|
|
23
23
|
class CreateEmployeeOptions {
|
|
24
24
|
}
|
|
25
25
|
exports.CreateEmployeeOptions = CreateEmployeeOptions;
|
|
26
|
-
// TODO: Update with the correct fields
|
|
27
26
|
class UpdateEmployeeDto {
|
|
28
27
|
}
|
|
29
28
|
exports.UpdateEmployeeDto = UpdateEmployeeDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAQxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,
|
|
1
|
+
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAQxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QASC,iBAAY,GAAa,IAAI,CAAC;IAS/B,CAAC;CAAA;AAlBD,kEAkBC"}
|
|
@@ -2,4 +2,5 @@ import { CreateEmployeeOptions } from '../../dto/employee.dto';
|
|
|
2
2
|
import { EmployeeStatus } from '../enums';
|
|
3
3
|
export declare const DEFAULT_CREATE_EMPLOYEE_OPTIONS: CreateEmployeeOptions;
|
|
4
4
|
export declare const EMPLOYEE_STATUS_PRIORITY: Record<EmployeeStatus, number>;
|
|
5
|
+
export declare const ORGANIZATION_USER_UPDATE_FIELDS: string[];
|
|
5
6
|
export * from './index';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.EMPLOYEE_STATUS_PRIORITY = exports.DEFAULT_CREATE_EMPLOYEE_OPTIONS = void 0;
|
|
17
|
+
exports.ORGANIZATION_USER_UPDATE_FIELDS = exports.EMPLOYEE_STATUS_PRIORITY = exports.DEFAULT_CREATE_EMPLOYEE_OPTIONS = void 0;
|
|
18
18
|
const enums_1 = require("../enums");
|
|
19
19
|
exports.DEFAULT_CREATE_EMPLOYEE_OPTIONS = {
|
|
20
20
|
saveCustomer: true,
|
|
@@ -27,5 +27,11 @@ exports.EMPLOYEE_STATUS_PRIORITY = {
|
|
|
27
27
|
[enums_1.EmployeeStatus.INACTIVE]: 2,
|
|
28
28
|
[enums_1.EmployeeStatus.PENDING]: 1,
|
|
29
29
|
};
|
|
30
|
+
exports.ORGANIZATION_USER_UPDATE_FIELDS = [
|
|
31
|
+
'referenceId',
|
|
32
|
+
'employeeStatus',
|
|
33
|
+
'employmentStartDate',
|
|
34
|
+
'employmentEndDate',
|
|
35
|
+
];
|
|
30
36
|
__exportStar(require("./index"), exports);
|
|
31
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/employees/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,oCAA0C;AAE7B,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,KAAK;IAC/B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,IAAI;CACpB,CAAC;AAEW,QAAA,wBAAwB,GAAmC;IACvE,CAAC,sBAAc,CAAC,MAAM,CAAC,EAAE,CAAC;IAC1B,CAAC,sBAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC5B,CAAC,sBAAc,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3B,CAAC;AACF,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/employees/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,oCAA0C;AAE7B,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,KAAK;IAC/B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,IAAI;CACpB,CAAC;AAEW,QAAA,wBAAwB,GAAmC;IACvE,CAAC,sBAAc,CAAC,MAAM,CAAC,EAAE,CAAC;IAC1B,CAAC,sBAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC5B,CAAC,sBAAc,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3B,CAAC;AAEW,QAAA,+BAA+B,GAAG;IAC9C,aAAa;IACb,gBAAgB;IAChB,qBAAqB;IACrB,mBAAmB;CACnB,CAAC;AACF,0CAAwB"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { MediaDto } from '../../media/dto/media.dto';
|
|
2
2
|
import { CustomerTypeEnum, GenderEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
3
|
+
import { IUpdateUser } from '../../user/types/user.interfaces';
|
|
4
|
+
import { EmployeeStatus } from './enums';
|
|
5
|
+
export interface IUpdateEmployeeProfile extends IUpdateUser {
|
|
6
|
+
referenceId?: string;
|
|
7
|
+
employeeStatus?: EmployeeStatus;
|
|
8
|
+
employmentEndDate?: Date;
|
|
9
|
+
employmentStartDate?: Date;
|
|
10
|
+
rolesIdsToAdd?: number[];
|
|
11
|
+
rolesIdsToRemove?: number[];
|
|
12
|
+
}
|
|
3
13
|
export interface ICreateEmployeeDto {
|
|
4
14
|
colorCodeId?: number;
|
|
5
15
|
creatorId?: number;
|
|
@@ -5,6 +5,7 @@ import { IProductRelatedProgram } from '../../../programs/types/interfaces/progr
|
|
|
5
5
|
import { MembershipTypeEnum } from '../../../services/enums.service';
|
|
6
6
|
import { CreateNoteDto } from '../../dto/payment.dto';
|
|
7
7
|
import { DiscountOnEnum } from '../enums/discount.enums';
|
|
8
|
+
import { Tax } from '../../../taxes/entities/Tax';
|
|
8
9
|
export interface IRoundingSplit {
|
|
9
10
|
splitAmount: number;
|
|
10
11
|
splitsNumber: number;
|
|
@@ -66,10 +67,13 @@ export declare class IUserItem {
|
|
|
66
67
|
product?: Product;
|
|
67
68
|
totalQuantity?: number;
|
|
68
69
|
totalPriceWithoutTax?: number;
|
|
70
|
+
subtotal?: number;
|
|
69
71
|
totalPrice?: number;
|
|
70
72
|
isTaxInclusive?: boolean;
|
|
71
73
|
percentage?: number;
|
|
74
|
+
tax?: Tax;
|
|
72
75
|
taxItem?: IUserItem;
|
|
76
|
+
taxItems?: IUserItem[];
|
|
73
77
|
}
|
|
74
78
|
export interface IFindDiscountsOptions {
|
|
75
79
|
includeGLCodes?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,mEAAqE;
|
|
1
|
+
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,mEAAqE;AAqErE,MAAa,SAAS;CA0BrB;AA1BD,8BA0BC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product-categories.dto"), exports);
|
|
17
18
|
__exportStar(require("./product-pricing.dto"), exports);
|
|
18
19
|
__exportStar(require("./product-resource.dto"), exports);
|
|
19
20
|
__exportStar(require("./product.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
|
+
import { ByOrganizationIdDto, OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
|
+
import { ISettings } from '../../resource-settings/types/resource-settings.interfaces';
|
|
4
|
+
import { OrderByEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
5
|
+
import { CategoryOrderColumnEnum } from '../types/enums/product-categories.enums';
|
|
6
|
+
import { IGetProductCategories } from '../types/interfaces/product-categories.interfaces';
|
|
7
|
+
export declare class UpdateProductCategorySettingsDto<T extends Record<string, unknown> = ISettings> {
|
|
8
|
+
settings?: T;
|
|
9
|
+
}
|
|
10
|
+
export declare class UpdateProductCategoryBaseDto {
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class CreateProductCategoryDto<T extends Record<string, unknown> = ISettings> extends UpdateProductCategoryBaseDto {
|
|
15
|
+
settings?: T;
|
|
16
|
+
productType: ProductTypesEnum;
|
|
17
|
+
productsIds?: number[];
|
|
18
|
+
}
|
|
19
|
+
export declare class UpdateProductCategoryDto<T extends Record<string, unknown> = ISettings> extends UpdateProductCategoryBaseDto {
|
|
20
|
+
settings?: T;
|
|
21
|
+
productsIds?: number[];
|
|
22
|
+
}
|
|
23
|
+
export declare class ProductCategoryDto<T extends Record<string, unknown> = ISettings> extends OrganizationBaseEntityDto {
|
|
24
|
+
name?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
productType: ProductTypesEnum;
|
|
27
|
+
settings?: T;
|
|
28
|
+
productsCount?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare class GetProductCategoriesDto extends PaginationQuery implements IGetProductCategories {
|
|
31
|
+
order?: OrderByEnum;
|
|
32
|
+
orderBy?: CategoryOrderColumnEnum;
|
|
33
|
+
search?: string;
|
|
34
|
+
categoriesIds?: number[];
|
|
35
|
+
vipEnabled?: boolean;
|
|
36
|
+
approvalRequired?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare class ByOrganizationAndCategoryIdDto extends ByOrganizationIdDto {
|
|
39
|
+
categoryId: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class IncludeProductsCountDto {
|
|
42
|
+
includeProductsCount?: boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncludeProductsCountDto = exports.ByOrganizationAndCategoryIdDto = exports.GetProductCategoriesDto = exports.ProductCategoryDto = exports.UpdateProductCategoryDto = exports.CreateProductCategoryDto = exports.UpdateProductCategoryBaseDto = exports.UpdateProductCategorySettingsDto = void 0;
|
|
4
|
+
const general_dto_1 = require("../../dto/general.dto");
|
|
5
|
+
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
|
+
class UpdateProductCategorySettingsDto {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateProductCategorySettingsDto = UpdateProductCategorySettingsDto;
|
|
9
|
+
class UpdateProductCategoryBaseDto {
|
|
10
|
+
}
|
|
11
|
+
exports.UpdateProductCategoryBaseDto = UpdateProductCategoryBaseDto;
|
|
12
|
+
class CreateProductCategoryDto extends UpdateProductCategoryBaseDto {
|
|
13
|
+
}
|
|
14
|
+
exports.CreateProductCategoryDto = CreateProductCategoryDto;
|
|
15
|
+
class UpdateProductCategoryDto extends UpdateProductCategoryBaseDto {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateProductCategoryDto = UpdateProductCategoryDto;
|
|
18
|
+
class ProductCategoryDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
19
|
+
}
|
|
20
|
+
exports.ProductCategoryDto = ProductCategoryDto;
|
|
21
|
+
class GetProductCategoriesDto extends general_dto_1.PaginationQuery {
|
|
22
|
+
}
|
|
23
|
+
exports.GetProductCategoriesDto = GetProductCategoriesDto;
|
|
24
|
+
class ByOrganizationAndCategoryIdDto extends organization_dto_1.ByOrganizationIdDto {
|
|
25
|
+
}
|
|
26
|
+
exports.ByOrganizationAndCategoryIdDto = ByOrganizationAndCategoryIdDto;
|
|
27
|
+
class IncludeProductsCountDto {
|
|
28
|
+
}
|
|
29
|
+
exports.IncludeProductsCountDto = IncludeProductsCountDto;
|
|
30
|
+
//# sourceMappingURL=product-categories.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-categories.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-categories.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAAyG;AAMzG,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAMrC;AARD,4DAQC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAIrC;AAND,4DAMC;AAED,MAAa,kBAAkE,SAAQ,4CAAyB;CAU/G;AAVD,gDAUC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAY3D;AAZD,0DAYC;AAED,MAAa,8BAA+B,SAAQ,sCAAmB;CAEtE;AAFD,wEAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
|
@@ -79,6 +79,7 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
|
|
|
79
79
|
includeProductResources?: boolean;
|
|
80
80
|
includeFacilities?: boolean;
|
|
81
81
|
includeGlCodes?: boolean;
|
|
82
|
+
includeProductCategories?: boolean;
|
|
82
83
|
includeArchived?: boolean;
|
|
83
84
|
includeCurrentPrice?: boolean;
|
|
84
85
|
includePricesSchedule?: boolean;
|
|
@@ -103,6 +104,8 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
|
|
|
103
104
|
punchPassOnly?: boolean;
|
|
104
105
|
includePaymentPlan?: boolean;
|
|
105
106
|
includeResourceSettings?: boolean;
|
|
107
|
+
categoriesIds?: number[];
|
|
108
|
+
includeOnlyNotAssignedToCategory?: boolean;
|
|
106
109
|
}
|
|
107
110
|
export declare class GetPunchPassProductsByTypeQueryDto extends PaginationQuery implements IGetPunchPassProductsOptions {
|
|
108
111
|
search?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;
|
|
1
|
+
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAgE7D;AAhED,8DAgEC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAoBtE;AApBD,gFAoBC"}
|
|
@@ -17,6 +17,7 @@ import { ActivityEnum, AddonTimePeriodEnum, PlatformsEnum, ProductPackageLevelEn
|
|
|
17
17
|
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
|
18
18
|
import { TaxDto } from '../../taxes/dto/tax.dto';
|
|
19
19
|
import { IGetResourcesProductsOptions, IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
|
20
|
+
import { ProductCategoryDto } from './product-categories.dto';
|
|
20
21
|
import { ProductResourceDto } from './product-resource.dto';
|
|
21
22
|
export declare class FindByProductIdDto {
|
|
22
23
|
productId: number;
|
|
@@ -194,6 +195,7 @@ export declare class ProductDto extends BaseProductDto {
|
|
|
194
195
|
entitlementDiscounts?: EntitlementDiscountDto[];
|
|
195
196
|
facilities?: FacilityDto[];
|
|
196
197
|
punchPass?: PunchPassDto;
|
|
198
|
+
productCategory?: ProductCategoryDto;
|
|
197
199
|
}
|
|
198
200
|
export declare class ResourceProductDto {
|
|
199
201
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;AAsB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAQjD;AARD,4CAQC;AAED,MAAa,cAAc;CA4G1B;AA5GD,wCA4GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAc7C;AAdD,gCAcC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product-category.entity"), exports);
|
|
17
18
|
__exportStar(require("./product-to-facility.entity"), exports);
|
|
18
19
|
__exportStar(require("./product.entity"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
|
+
import { ProductTypesEnum } from '../../services/enums.service';
|
|
3
|
+
import { Product } from './product.entity';
|
|
4
|
+
export declare class ProductCategory extends OrganizationConnectionBaseEntity {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
productType: ProductTypesEnum;
|
|
8
|
+
settings?: unknown;
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
products?: Product[];
|
|
11
|
+
productsCount?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCategory = void 0;
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
class ProductCategory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.ProductCategory = ProductCategory;
|
|
8
|
+
//# sourceMappingURL=product-category.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-category.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-category.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,eAAgB,SAAQ,mEAAgC;CAcpE;AAdD,0CAcC"}
|
|
@@ -23,6 +23,7 @@ import { Tax } from '../../taxes/entities/Tax';
|
|
|
23
23
|
import { ProductResourceDto } from '../dto/product-resource.dto';
|
|
24
24
|
import { ProductStateEnum } from '../types/enums/product.enums';
|
|
25
25
|
import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
|
26
|
+
import { ProductCategory } from './product-category.entity';
|
|
26
27
|
import { ProductToFacility } from './product-to-facility.entity';
|
|
27
28
|
export declare class Product extends OrganizationConnectionBaseEntity {
|
|
28
29
|
name: string;
|
|
@@ -63,6 +64,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
|
63
64
|
defaultPriceId?: number;
|
|
64
65
|
tax: number;
|
|
65
66
|
isTaxInclusive: boolean;
|
|
67
|
+
categoryId?: number;
|
|
68
|
+
productCategory?: ProductCategory;
|
|
66
69
|
defaultPrice?: Price;
|
|
67
70
|
addOns?: IChildProduct[];
|
|
68
71
|
productPaymentPlans?: ProductPaymentPlan[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAyBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAqJ5D;AArJD,0BAqJC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product-category.consts"), exports);
|
|
17
18
|
__exportStar(require("./product-pricing.consts"), exports);
|
|
18
19
|
__exportStar(require("./product-resource.consts"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C"}
|