@bondsports/types 2.4.14-squad-c-2 → 2.4.14-squad-c-3
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/filters/dto/filters.dto.d.ts +4 -1
- package/dist/types/filters/dto/filters.dto.js.map +1 -1
- package/dist/types/filters/entities/Filter.d.ts +2 -0
- package/dist/types/filters/entities/Filter.js.map +1 -1
- package/dist/types/filters/types/consts.d.ts +2 -0
- package/dist/types/filters/types/consts.js +2 -0
- package/dist/types/filters/types/consts.js.map +1 -1
- package/dist/types/filters/types/enums/filter.enums.d.ts +2 -1
- package/dist/types/filters/types/enums/filter.enums.js +1 -0
- package/dist/types/filters/types/enums/filter.enums.js.map +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/leagues-scheduler/types/interfaces.d.ts +16 -1
- package/dist/types/online-booking/index.d.ts +1 -0
- package/dist/types/online-booking/index.js +18 -0
- package/dist/types/online-booking/index.js.map +1 -0
- package/dist/types/online-booking/types/classes/index.d.ts +1 -0
- package/dist/types/online-booking/types/classes/index.js +18 -0
- package/dist/types/online-booking/types/classes/index.js.map +1 -0
- package/dist/types/online-booking/types/classes/portals.classes.d.ts +20 -0
- package/dist/types/online-booking/types/classes/portals.classes.js +11 -0
- package/dist/types/online-booking/types/classes/portals.classes.js.map +1 -0
- package/dist/types/online-booking/types/consts/index.d.ts +1 -0
- package/dist/types/online-booking/types/consts/index.js +18 -0
- package/dist/types/online-booking/types/consts/index.js.map +1 -0
- package/dist/types/online-booking/types/consts/portals.consts.d.ts +4 -0
- package/dist/types/online-booking/types/consts/portals.consts.js +19 -0
- package/dist/types/online-booking/types/consts/portals.consts.js.map +1 -0
- package/dist/types/online-booking/types/dto/index.d.ts +1 -0
- package/dist/types/online-booking/types/dto/index.js +18 -0
- package/dist/types/online-booking/types/dto/index.js.map +1 -0
- package/dist/types/online-booking/types/dto/portals.dto.d.ts +59 -0
- package/dist/types/online-booking/types/dto/portals.dto.js +36 -0
- package/dist/types/online-booking/types/dto/portals.dto.js.map +1 -0
- package/dist/types/online-booking/types/enums/index.d.ts +1 -0
- package/dist/types/online-booking/types/enums/index.js +18 -0
- package/dist/types/online-booking/types/enums/index.js.map +1 -0
- package/dist/types/online-booking/types/enums/portals.enums.d.ts +12 -0
- package/dist/types/online-booking/types/enums/portals.enums.js +18 -0
- package/dist/types/online-booking/types/enums/portals.enums.js.map +1 -0
- package/dist/types/online-booking/types/index.d.ts +5 -0
- package/dist/types/online-booking/types/index.js +22 -0
- package/dist/types/online-booking/types/index.js.map +1 -0
- package/dist/types/online-booking/types/interfaces/index.d.ts +1 -0
- package/dist/types/online-booking/types/interfaces/index.js +18 -0
- package/dist/types/online-booking/types/interfaces/index.js.map +1 -0
- package/dist/types/online-booking/types/interfaces/portals.interfaces.d.ts +21 -0
- package/dist/types/online-booking/types/interfaces/portals.interfaces.js +3 -0
- package/dist/types/online-booking/types/interfaces/portals.interfaces.js.map +1 -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/product-categories.dto.d.ts +2 -1
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +2 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +2 -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 +1 -1
|
@@ -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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
2
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
3
|
+
import { PublishingStatusEnum } from '../../programs/types/enums/program.enums';
|
|
3
4
|
import { FilterGroupEnum, FilterTypeEnum } from '../types/enums/filter.enums';
|
|
4
5
|
import { IGetPaginatedFiltersOptions } from '../types/interfaces/filters.interfaces';
|
|
5
6
|
export declare class ByOrganizationFilterDto {
|
|
@@ -45,11 +46,13 @@ export declare class CreateFilterDto extends BaseFilterValuesDto {
|
|
|
45
46
|
facilityId?: number;
|
|
46
47
|
organizationId?: number;
|
|
47
48
|
userId?: number;
|
|
49
|
+
status?: PublishingStatusEnum;
|
|
48
50
|
}
|
|
49
51
|
export declare class UpdateFilterDto {
|
|
50
52
|
id: number;
|
|
51
53
|
name?: string;
|
|
52
|
-
options?:
|
|
54
|
+
options?: unknown;
|
|
55
|
+
status?: PublishingStatusEnum;
|
|
53
56
|
isDefault?: boolean;
|
|
54
57
|
}
|
|
55
58
|
export declare class UpdateFiltersDto {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.dto.js","sourceRoot":"","sources":["../../../../src/types/filters/dto/filters.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;
|
|
1
|
+
{"version":3,"file":"filters.dto.js","sourceRoot":"","sources":["../../../../src/types/filters/dto/filters.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAK9E,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,aAAc,SAAQ,sCAAmB;CAErD;AAFD,sCAEC;AAED,MAAa,uBAAwB,SAAQ,uBAAuB;CAEnE;AAFD,0DAEC;AAED,MAAa,kBAAmB,SAAQ,uBAAuB;CAE9D;AAFD,gDAEC;AAED,MAAa,4BACZ,SAAQ,6BAAe;CAQvB;AATD,oEASC;AAED,MAAa,SAAS;CAkBrB;AAlBD,8BAkBC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,eAAgB,SAAQ,mBAAmB;CAQvD;AARD,0CAQC;AAED,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,eAAgB,SAAQ,uBAAuB;CAE3D;AAFD,0CAEC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
|
2
|
+
import { PublishingStatusEnum } from '../../programs/types/enums/program.enums';
|
|
2
3
|
import { FilterTypeEnum } from '../types/enums/filter.enums';
|
|
3
4
|
import { UserFavoriteFilter } from './UserFavoriteFilter';
|
|
4
5
|
export declare class Filter extends BondBaseEntity {
|
|
@@ -9,6 +10,7 @@ export declare class Filter extends BondBaseEntity {
|
|
|
9
10
|
name: string;
|
|
10
11
|
creatorId?: number;
|
|
11
12
|
type: FilterTypeEnum;
|
|
13
|
+
status?: PublishingStatusEnum;
|
|
12
14
|
deletedAt?: Date;
|
|
13
15
|
userFavorites?: UserFavoriteFilter[];
|
|
14
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../../src/types/filters/entities/Filter.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;
|
|
1
|
+
{"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../../src/types/filters/entities/Filter.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAM7D,MAAa,MAAO,SAAQ,+BAAc;CAoBzC;AApBD,wBAoBC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { OnlineBookingPortalOptions } from '../../online-booking/types/classes/portals.classes';
|
|
1
2
|
import { CalendarFilterOptions } from './classes/filter.classes';
|
|
2
3
|
export declare const BOND_DEFAULT_ORGANIZATION_ID = 0;
|
|
3
4
|
export declare const FILTER_TYPES_MAP: {
|
|
4
5
|
calendar: typeof CalendarFilterOptions;
|
|
6
|
+
online_booking: typeof OnlineBookingPortalOptions;
|
|
5
7
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FILTER_TYPES_MAP = exports.BOND_DEFAULT_ORGANIZATION_ID = void 0;
|
|
4
|
+
const portals_classes_1 = require("../../online-booking/types/classes/portals.classes");
|
|
4
5
|
const filter_classes_1 = require("./classes/filter.classes");
|
|
5
6
|
const filter_enums_1 = require("./enums/filter.enums");
|
|
6
7
|
exports.BOND_DEFAULT_ORGANIZATION_ID = 0;
|
|
7
8
|
exports.FILTER_TYPES_MAP = {
|
|
8
9
|
[filter_enums_1.FilterTypeEnum.CALENDAR]: filter_classes_1.CalendarFilterOptions,
|
|
10
|
+
[filter_enums_1.FilterTypeEnum.ONLINE_BOOKING]: portals_classes_1.OnlineBookingPortalOptions,
|
|
9
11
|
};
|
|
10
12
|
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/filters/types/consts.ts"],"names":[],"mappings":";;;AAAA,6DAAiE;AACjE,uDAAsD;AAEzC,QAAA,4BAA4B,GAAG,CAAC,CAAC;AAEjC,QAAA,gBAAgB,GAAG;IAC/B,CAAC,6BAAc,CAAC,QAAQ,CAAC,EAAE,sCAAqB;
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/filters/types/consts.ts"],"names":[],"mappings":";;;AAAA,wFAAgG;AAEhG,6DAAiE;AACjE,uDAAsD;AAEzC,QAAA,4BAA4B,GAAG,CAAC,CAAC;AAEjC,QAAA,gBAAgB,GAAG;IAC/B,CAAC,6BAAc,CAAC,QAAQ,CAAC,EAAE,sCAAqB;IAChD,CAAC,6BAAc,CAAC,cAAc,CAAC,EAAE,4CAA0B;CAC3D,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.FilterGroupEnum = exports.FilterTypeEnum = void 0;
|
|
|
4
4
|
var FilterTypeEnum;
|
|
5
5
|
(function (FilterTypeEnum) {
|
|
6
6
|
FilterTypeEnum["CALENDAR"] = "calendar";
|
|
7
|
+
FilterTypeEnum["ONLINE_BOOKING"] = "online_booking";
|
|
7
8
|
})(FilterTypeEnum = exports.FilterTypeEnum || (exports.FilterTypeEnum = {}));
|
|
8
9
|
var FilterGroupEnum;
|
|
9
10
|
(function (FilterGroupEnum) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.enums.js","sourceRoot":"","sources":["../../../../../src/types/filters/types/enums/filter.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"filter.enums.js","sourceRoot":"","sources":["../../../../../src/types/filters/types/enums/filter.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,uCAAqB,CAAA;IACrB,mDAAiC,CAAA;AAClC,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,oCAAiB,CAAA;IACjB,gDAA6B,CAAA;IAC7B,oCAAiB,CAAA;AAClB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './membership';
|
|
|
32
32
|
export * from './monitor-config';
|
|
33
33
|
export * from './notes';
|
|
34
34
|
export * from './notifications';
|
|
35
|
+
export * from './online-booking';
|
|
35
36
|
export * from './online-rentals';
|
|
36
37
|
export * from './organization';
|
|
37
38
|
export * from './payment';
|
package/dist/types/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __exportStar(require("./membership"), exports);
|
|
|
48
48
|
__exportStar(require("./monitor-config"), exports);
|
|
49
49
|
__exportStar(require("./notes"), exports);
|
|
50
50
|
__exportStar(require("./notifications"), exports);
|
|
51
|
+
__exportStar(require("./online-booking"), exports);
|
|
51
52
|
__exportStar(require("./online-rentals"), exports);
|
|
52
53
|
__exportStar(require("./organization"), exports);
|
|
53
54
|
__exportStar(require("./payment"), 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,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,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,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,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,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -284,7 +284,22 @@ export interface ICreateEventsParams {
|
|
|
284
284
|
export interface IScheduleTeam {
|
|
285
285
|
id: number;
|
|
286
286
|
name: string;
|
|
287
|
-
ancestors
|
|
287
|
+
ancestors?: number[];
|
|
288
|
+
}
|
|
289
|
+
export interface ITeamPairing {
|
|
290
|
+
homeTeam: IScheduleTeam;
|
|
291
|
+
awayTeam: IScheduleTeam;
|
|
292
|
+
}
|
|
293
|
+
export interface ISchedulingMode {
|
|
294
|
+
effectiveGamesPerTeam: number;
|
|
295
|
+
effectiveGamesPerWeek: number;
|
|
296
|
+
isPackingMode: boolean;
|
|
297
|
+
}
|
|
298
|
+
export interface IRoundRobinStats {
|
|
299
|
+
totalRounds: number;
|
|
300
|
+
gamesPerRound: number;
|
|
301
|
+
totalGames: number;
|
|
302
|
+
gamesPerTeam: number;
|
|
288
303
|
}
|
|
289
304
|
export interface IScheduleCacheInvalidator {
|
|
290
305
|
invalidateOne: (id: number) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -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("./types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/online-booking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './portals.classes';
|
|
@@ -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("./portals.classes"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/classes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SportsEnum } from '../../../activities/types/activities.enums';
|
|
2
|
+
import { Facility } from '../../../entity/Facility';
|
|
3
|
+
import { Filter } from '../../../filters/entities/Filter';
|
|
4
|
+
import { ProductCategory } from '../../../product-pricing/entities/product-category.entity';
|
|
5
|
+
import { OnlineBookingViewsEnum } from '../enums/portals.enums';
|
|
6
|
+
export declare class OnlineBookingPortalOptions {
|
|
7
|
+
facilitiesIds: number[];
|
|
8
|
+
defaultFacilityId?: number;
|
|
9
|
+
categoriesIds: number[];
|
|
10
|
+
defaultCategoryId: number;
|
|
11
|
+
activities?: SportsEnum[];
|
|
12
|
+
defaultActivity?: SportsEnum;
|
|
13
|
+
views: OnlineBookingViewsEnum[];
|
|
14
|
+
defaultView: OnlineBookingViewsEnum;
|
|
15
|
+
}
|
|
16
|
+
export declare class Portal extends Filter {
|
|
17
|
+
categories?: ProductCategory[];
|
|
18
|
+
facilities?: Facility[];
|
|
19
|
+
options: OnlineBookingPortalOptions;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Portal = exports.OnlineBookingPortalOptions = void 0;
|
|
4
|
+
const Filter_1 = require("../../../filters/entities/Filter");
|
|
5
|
+
class OnlineBookingPortalOptions {
|
|
6
|
+
}
|
|
7
|
+
exports.OnlineBookingPortalOptions = OnlineBookingPortalOptions;
|
|
8
|
+
class Portal extends Filter_1.Filter {
|
|
9
|
+
}
|
|
10
|
+
exports.Portal = Portal;
|
|
11
|
+
//# sourceMappingURL=portals.classes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portals.classes.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/classes/portals.classes.ts"],"names":[],"mappings":";;;AAGA,6DAA0D;AAI1D,MAAa,0BAA0B;CAgBtC;AAhBD,gEAgBC;AAED,MAAa,MAAO,SAAQ,eAAM;CAMjC;AAND,wBAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './portals.consts';
|
|
@@ -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("./portals.consts"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PublishingStatusEnum } from '../../../programs/types/enums/program.enums';
|
|
2
|
+
import { OnlineBookingPortalsOrderByEnum } from '../enums/portals.enums';
|
|
3
|
+
export declare const PORTALS_ORDERINGS: Record<OnlineBookingPortalsOrderByEnum, string>;
|
|
4
|
+
export declare const PORTAL_PUBLISH_STATUSES: PublishingStatusEnum[];
|