@bondsports/types 2.4.98-a-1 → 2.4.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/dto/cart-item.dto.d.ts +1 -0
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +4 -0
- package/dist/types/cart/entities/cart-item.entity.js +7 -0
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +2 -0
- package/dist/types/cart/types/consts/cart.consts.js +2 -0
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/cart/types/enums/cart.enums.d.ts +2 -1
- package/dist/types/cart/types/enums/cart.enums.js +1 -0
- package/dist/types/cart/types/enums/cart.enums.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +1 -1
- package/dist/types/customers/types/consts/customers.consts.d.ts +1 -2
- package/dist/types/customers/types/consts/customers.consts.js +2 -3
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +0 -1
- package/dist/types/entity/Invoice.d.ts +0 -1
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/gl-codes/dto/gl-code.dto.d.ts +4 -11
- package/dist/types/gl-codes/dto/gl-code.dto.js +5 -6
- package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
- package/dist/types/gl-codes/entities/gl-code.d.ts +0 -2
- package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
- package/dist/types/gl-codes/entities/index.d.ts +0 -1
- package/dist/types/gl-codes/entities/index.js +0 -1
- package/dist/types/gl-codes/entities/index.js.map +1 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.d.ts +1 -2
- package/dist/types/gl-codes/types/enums/gl-code.enum.js +0 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.js.map +1 -1
- package/dist/types/gl-codes/types/interfaces/gl-code.interfaces.d.ts +0 -6
- package/dist/types/invoice/dto/organization-invoice.dto.d.ts +0 -2
- package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +39 -39
- package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.d.ts +0 -6
- package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +1 -0
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +11 -0
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +2 -1
- package/package.json +4 -4
- package/LICENSE.md +0 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.d.ts +0 -10
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js +0 -8
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js.map +0 -1
|
@@ -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;CAYxD;AAZD,gCAYC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CAsB7D;AAtBD,0CAsBC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAI/D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CA8CjD;AA9CD,kCA8CC;AAED,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAGrD;AAHD,8CAGC;AAED,MAAa,cAAe,SAAQ,eAAe;
|
|
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;CAsB7D;AAtBD,0CAsBC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAI/D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CA8CjD;AA9CD,kCA8CC;AAED,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAGrD;AAHD,8CAGC;AAED,MAAa,cAAe,SAAQ,eAAe;CAclD;AAdD,wCAcC"}
|
|
@@ -40,6 +40,10 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
|
|
|
40
40
|
ordinal?: number;
|
|
41
41
|
parentOrdinal?: number;
|
|
42
42
|
unique?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Derived waitlist intent from persisted metadata.purchaseType.
|
|
45
|
+
*/
|
|
46
|
+
get isWaitlist(): boolean;
|
|
43
47
|
percentage?: number;
|
|
44
48
|
entitlementGroupId?: number;
|
|
45
49
|
entitlementGroup?: EntitlementGroup;
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CartItem = void 0;
|
|
4
4
|
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
const cart_enums_1 = require("../types/enums/cart.enums");
|
|
5
6
|
class CartItem extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
7
|
+
/**
|
|
8
|
+
* Derived waitlist intent from persisted metadata.purchaseType.
|
|
9
|
+
*/
|
|
10
|
+
get isWaitlist() {
|
|
11
|
+
return this.metadata?.purchaseType === cart_enums_1.CartPurchaseTypeEnum.WAITLIST;
|
|
12
|
+
}
|
|
6
13
|
}
|
|
7
14
|
exports.CartItem = CartItem;
|
|
8
15
|
//# sourceMappingURL=cart-item.entity.js.map
|
|
@@ -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;AAajG,0DAAiF;AAIjF,MAAa,QAAS,SAAQ,mEAAgC;IAwC7D;;OAEG;IACH,IAAI,UAAU;QACb,OAAO,IAAI,CAAC,QAAQ,EAAE,YAAY,KAAK,iCAAoB,CAAC,QAAQ,CAAC;IACtE,CAAC;CA+ED;AA5HD,4BA4HC"}
|
|
@@ -16,5 +16,7 @@ exports.CART_ERROR_CODES = {
|
|
|
16
16
|
INVALID_USER_PAYMENT_METHOD: 'CART.INVALID_USER_PAYMENT_METHOD',
|
|
17
17
|
INVALID_PAYMENT_AMOUNT: 'CART.INVALID_PAYMENT_AMOUNT',
|
|
18
18
|
INVALID_PURCHASE: 'CART.INVALID_PURCHASE',
|
|
19
|
+
CANNOT_PAY_WAITLIST_CART: 'CART.CANNOT_PAY_WAITLIST_CART',
|
|
20
|
+
WAITLIST_DECLARED_BUT_ROOM_AVAILABLE: 'CART.WAITLIST_DECLARED_BUT_ROOM_AVAILABLE',
|
|
19
21
|
};
|
|
20
22
|
//# sourceMappingURL=cart.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
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;AAEW,QAAA,gBAAgB,GAAG;IAC/B,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;IACjC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,wBAAwB;IAC3C,wBAAwB,EAAE,+BAA+B;IACzD,0BAA0B,EAAE,iCAAiC;IAC7D,2BAA2B,EAAE,kCAAkC;IAC/D,sBAAsB,EAAE,6BAA6B;IACrD,gBAAgB,EAAE,uBAAuB;
|
|
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;AAEW,QAAA,gBAAgB,GAAG;IAC/B,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;IACjC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,wBAAwB;IAC3C,wBAAwB,EAAE,+BAA+B;IACzD,0BAA0B,EAAE,iCAAiC;IAC7D,2BAA2B,EAAE,kCAAkC;IAC/D,sBAAsB,EAAE,6BAA6B;IACrD,gBAAgB,EAAE,uBAAuB;IACzC,wBAAwB,EAAE,+BAA+B;IACzD,oCAAoC,EAAE,2CAA2C;CACjF,CAAC"}
|
|
@@ -19,5 +19,6 @@ var CartPurchaseTypeEnum;
|
|
|
19
19
|
(function (CartPurchaseTypeEnum) {
|
|
20
20
|
CartPurchaseTypeEnum["ORDER"] = "order";
|
|
21
21
|
CartPurchaseTypeEnum["PURCHASE"] = "purchase";
|
|
22
|
+
CartPurchaseTypeEnum["WAITLIST"] = "waitlist";
|
|
22
23
|
})(CartPurchaseTypeEnum = exports.CartPurchaseTypeEnum || (exports.CartPurchaseTypeEnum = {}));
|
|
23
24
|
//# sourceMappingURL=cart.enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.enums.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/enums/cart.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;AACtB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;AAC1B,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"cart.enums.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/enums/cart.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;AACtB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;AAC1B,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC/B,uCAAe,CAAA;IACf,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;AACtB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
|
|
@@ -46,6 +46,7 @@ export interface ICreateCartItem {
|
|
|
46
46
|
userId?: number;
|
|
47
47
|
children?: ICreateCartItem[];
|
|
48
48
|
errors?: string[];
|
|
49
|
+
isWaitlist?: boolean;
|
|
49
50
|
metadata?: CartItemMetadata;
|
|
50
51
|
overrideTotalPrice?: number;
|
|
51
52
|
parentResourceType?: ResourceNameTypeEnum;
|
|
@@ -64,7 +65,6 @@ export interface IValidateCartOptions extends ISkipCartValidations {
|
|
|
64
65
|
onErrorCallback?: (error: Error, ...args: unknown[]) => void;
|
|
65
66
|
overridePrice?: boolean;
|
|
66
67
|
throwError?: boolean;
|
|
67
|
-
validateWaitlist?: boolean;
|
|
68
68
|
}
|
|
69
69
|
export interface ICreateCartOptions extends IValidateCartOptions {
|
|
70
70
|
replaceWithPrimaryId?: boolean;
|
|
@@ -2,6 +2,5 @@ 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:
|
|
6
|
-
export declare const CUSTOMER_ORG_SCOPED_UPDATE_FIELDS: "colorCodeId"[];
|
|
5
|
+
export declare const CUSTOMER_ENTITY_UPDATE_FIELDS: string[];
|
|
7
6
|
export declare const CUSTOMER_SEARCH_FIELDS: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CUSTOMER_SEARCH_FIELDS = exports.
|
|
3
|
+
exports.CUSTOMER_SEARCH_FIELDS = 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,
|
|
@@ -8,16 +8,15 @@ exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
|
8
8
|
allowExistingCustomer: false,
|
|
9
9
|
requireNewUser: false,
|
|
10
10
|
skipCreateCognitoUser: false,
|
|
11
|
-
skipUserProfileSync: false,
|
|
12
11
|
};
|
|
13
12
|
exports.RELATIONS_FOR_ORGANIZATION_USER = ['user', 'user.organizationUsers'];
|
|
14
13
|
exports.CUSTOMER_ENTITY_UPDATE_FIELDS = [
|
|
15
14
|
'addressId',
|
|
15
|
+
'colorCodeId',
|
|
16
16
|
'email',
|
|
17
17
|
'firstName',
|
|
18
18
|
'lastName',
|
|
19
19
|
'phoneNumber',
|
|
20
20
|
];
|
|
21
|
-
exports.CUSTOMER_ORG_SCOPED_UPDATE_FIELDS = ['colorCodeId'];
|
|
22
21
|
exports.CUSTOMER_SEARCH_FIELDS = ['firstName', 'lastName', 'name', 'email'];
|
|
23
22
|
//# 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":";;;
|
|
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;AAEW,QAAA,sBAAsB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -60,7 +60,6 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
60
60
|
subtotal?: number;
|
|
61
61
|
subtotalBalance?: number;
|
|
62
62
|
tippableAmount?: number;
|
|
63
|
-
facilityIds?: number[];
|
|
64
63
|
customer?: Customer;
|
|
65
64
|
obfuscatedCustomer?: ObfuscatedCustomerDto;
|
|
66
65
|
hasFailedPayments?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CA6G1C;AA7GD,0BA6GC"}
|
|
@@ -14,7 +14,6 @@ export declare class CreateGlCodeDto {
|
|
|
14
14
|
resourceType?: GlResourceTypeEnum;
|
|
15
15
|
productType?: ProductTypesEnum;
|
|
16
16
|
glTypeId: number;
|
|
17
|
-
facilitiesIds?: number[];
|
|
18
17
|
}
|
|
19
18
|
export declare class GlCodeDto extends OrganizationBaseEntityDto {
|
|
20
19
|
code: string;
|
|
@@ -24,8 +23,6 @@ export declare class GlCodeDto extends OrganizationBaseEntityDto {
|
|
|
24
23
|
productType?: ProductTypesEnum;
|
|
25
24
|
updatedAt?: Date;
|
|
26
25
|
assignedResources?: number;
|
|
27
|
-
facilityIds?: number[];
|
|
28
|
-
isAllFacilities?: boolean;
|
|
29
26
|
glType: GlTypeDto;
|
|
30
27
|
}
|
|
31
28
|
export declare class AccountingCodeDto extends IdDto {
|
|
@@ -35,10 +32,7 @@ export declare class AccountingCodeDto extends IdDto {
|
|
|
35
32
|
resourceType?: GlResourceTypeEnum;
|
|
36
33
|
productType?: ProductTypesEnum;
|
|
37
34
|
}
|
|
38
|
-
export declare class
|
|
39
|
-
expand?: GlCodeExpandEnum[];
|
|
40
|
-
}
|
|
41
|
-
export declare class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
35
|
+
export declare class FindGlCodesFiltersDto {
|
|
42
36
|
label?: string;
|
|
43
37
|
includeInactive?: boolean;
|
|
44
38
|
codes?: string[];
|
|
@@ -47,7 +41,6 @@ export declare class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
|
47
41
|
productTypes?: ProductTypesEnum[];
|
|
48
42
|
isResourceTypeNullable?: boolean;
|
|
49
43
|
glTypeIds?: number[];
|
|
50
|
-
facilitiesIds?: number[];
|
|
51
44
|
}
|
|
52
45
|
export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGlCodesFilters {
|
|
53
46
|
search?: string;
|
|
@@ -56,11 +49,13 @@ export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGl
|
|
|
56
49
|
resourceTypes?: GlResourceTypeEnum[];
|
|
57
50
|
productTypes?: ProductTypesEnum[];
|
|
58
51
|
glTypeIds?: number[];
|
|
59
|
-
facilitiesIds?: number[];
|
|
60
52
|
orderBy?: GlCodeOrderByEnum;
|
|
61
53
|
order?: OrderByEnum;
|
|
62
54
|
expand?: GlCodeExpandEnum[];
|
|
63
55
|
}
|
|
56
|
+
export declare class ExpandGlCodeDto {
|
|
57
|
+
expand?: GlCodeExpandEnum[];
|
|
58
|
+
}
|
|
64
59
|
export declare class UpdateGlCodeDto {
|
|
65
60
|
id: number;
|
|
66
61
|
code?: string;
|
|
@@ -69,7 +64,6 @@ export declare class UpdateGlCodeDto {
|
|
|
69
64
|
resourceType?: GlResourceTypeEnum;
|
|
70
65
|
productType?: ProductTypesEnum;
|
|
71
66
|
glTypeId?: number;
|
|
72
|
-
facilitiesIds?: number[];
|
|
73
67
|
}
|
|
74
68
|
export declare class MassActionUpdateGlCodeDto {
|
|
75
69
|
label?: string;
|
|
@@ -90,5 +84,4 @@ export declare class MassActionGlCodesQueryDto extends MassActionFilterDto imple
|
|
|
90
84
|
resourceTypes?: GlResourceTypeEnum[];
|
|
91
85
|
productTypes?: ProductTypesEnum[];
|
|
92
86
|
glTypeIds?: number[];
|
|
93
|
-
facilitiesIds?: number[];
|
|
94
87
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MassActionGlCodesQueryDto = exports.CreateGlCodesDto = exports.UpdateGlCodesDto = exports.MassActionUpdateGlCodeDto = exports.UpdateGlCodeDto = exports.
|
|
3
|
+
exports.MassActionGlCodesQueryDto = exports.CreateGlCodesDto = exports.UpdateGlCodesDto = exports.MassActionUpdateGlCodeDto = exports.UpdateGlCodeDto = exports.ExpandGlCodeDto = exports.GetGlCodesFiltersDto = exports.FindGlCodesFiltersDto = exports.AccountingCodeDto = exports.GlCodeDto = exports.CreateGlCodeDto = exports.ByGlCodeDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
class ByGlCodeDto extends organization_dto_1.ByOrganizationIdDto {
|
|
@@ -15,12 +15,8 @@ exports.GlCodeDto = GlCodeDto;
|
|
|
15
15
|
class AccountingCodeDto extends general_dto_1.IdDto {
|
|
16
16
|
}
|
|
17
17
|
exports.AccountingCodeDto = AccountingCodeDto;
|
|
18
|
-
class
|
|
19
|
-
}
|
|
20
|
-
exports.ExpandGlCodeDto = ExpandGlCodeDto;
|
|
21
|
-
class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
18
|
+
class FindGlCodesFiltersDto {
|
|
22
19
|
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
20
|
this.isResourceTypeNullable = true;
|
|
25
21
|
}
|
|
26
22
|
}
|
|
@@ -28,6 +24,9 @@ exports.FindGlCodesFiltersDto = FindGlCodesFiltersDto;
|
|
|
28
24
|
class GetGlCodesFiltersDto extends general_dto_1.PaginationQuery {
|
|
29
25
|
}
|
|
30
26
|
exports.GetGlCodesFiltersDto = GetGlCodesFiltersDto;
|
|
27
|
+
class ExpandGlCodeDto {
|
|
28
|
+
}
|
|
29
|
+
exports.ExpandGlCodeDto = ExpandGlCodeDto;
|
|
31
30
|
class UpdateGlCodeDto {
|
|
32
31
|
}
|
|
33
32
|
exports.UpdateGlCodeDto = UpdateGlCodeDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AACA,uDAAoF;AACpF,8EAAyG;AAOzG,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"gl-code.dto.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/dto/gl-code.dto.ts"],"names":[],"mappings":";;;AACA,uDAAoF;AACpF,8EAAyG;AAOzG,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAgBvD;AAhBD,8BAgBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAU3C;AAVD,8CAUC;AAED,MAAa,qBAAqB;IAAlC;QAaC,2BAAsB,GAAa,IAAI,CAAC;IAGzC,CAAC;CAAA;AAhBD,sDAgBC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAkBxD;AAlBD,oDAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAA0B,SAAQ,iCAAmB;CAUjE;AAVD,8DAUC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
2
|
import { ActivityEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
3
3
|
import { GlResourceTypeEnum } from '../types/enums/gl-code.enum';
|
|
4
|
-
import { GlCodeToFacility } from './gl-code-to-facility.entity';
|
|
5
4
|
import { GlType } from './gl-type';
|
|
6
5
|
export declare class GlCode extends OrganizationConnectionBaseEntity {
|
|
7
6
|
code: string;
|
|
@@ -12,6 +11,5 @@ export declare class GlCode extends OrganizationConnectionBaseEntity {
|
|
|
12
11
|
deletedAt?: Date;
|
|
13
12
|
glTypeId: number;
|
|
14
13
|
glType: GlType;
|
|
15
|
-
glCodeToFacilities: GlCodeToFacility[];
|
|
16
14
|
assignedResources?: number;
|
|
17
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"gl-code.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,MAAO,SAAQ,mEAAgC;CAkB3D;AAlBD,wBAkBC"}
|
|
@@ -14,7 +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("./gl-code-to-facility.entity"), exports);
|
|
18
17
|
__exportStar(require("./gl-code"), exports);
|
|
19
18
|
__exportStar(require("./gl-type"), exports);
|
|
20
19
|
__exportStar(require("./resource-to-gl"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,mDAAiC"}
|
|
@@ -30,6 +30,5 @@ var GlCodeOrderByEnum;
|
|
|
30
30
|
var GlCodeExpandEnum;
|
|
31
31
|
(function (GlCodeExpandEnum) {
|
|
32
32
|
GlCodeExpandEnum["ASSIGNED_RESOURCES"] = "assignedResources";
|
|
33
|
-
GlCodeExpandEnum["FACILITIES"] = "facilities";
|
|
34
33
|
})(GlCodeExpandEnum = exports.GlCodeExpandEnum || (exports.GlCodeExpandEnum = {}));
|
|
35
34
|
//# sourceMappingURL=gl-code.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-code.enum.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/enums/gl-code.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mDAA6B,CAAA;IAC7B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,uDAAiC,CAAA;AAClC,CAAC,EAhBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAgB7B;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,6CAAwB,CAAA;AACzB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"gl-code.enum.js","sourceRoot":"","sources":["../../../../../src/types/gl-codes/types/enums/gl-code.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC7B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;IACnB,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mDAA6B,CAAA;IAC7B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,uDAAiC,CAAA;AAClC,CAAC,EAhBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAgB7B;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,6CAAwB,CAAA;AACzB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC3B,4DAAwC,CAAA;AACzC,CAAC,EAFW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAE3B"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { ActivityEnum, OrderByEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
2
2
|
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
3
3
|
import { CreateResourceToGlDto } from '../../dto/resource-to-gl.dto';
|
|
4
|
-
import { GlCodeToFacility } from '../../entities/gl-code-to-facility.entity';
|
|
5
4
|
import { ResourceToGL } from '../../entities/resource-to-gl';
|
|
6
5
|
import { GlCodeExpandEnum, GlCodeOrderByEnum, GlResourceTypeEnum } from '../enums/gl-code.enum';
|
|
7
6
|
export interface filterExistingGlsResult {
|
|
8
7
|
deleteResourceToGlsIds: number[];
|
|
9
8
|
newResourceToGls: CreateResourceToGlDto[];
|
|
10
9
|
}
|
|
11
|
-
export interface IGlCodeFacilityConnectionsDiff {
|
|
12
|
-
connectionIdsToRemove: number[];
|
|
13
|
-
connectionsToAdd: GlCodeToFacility[];
|
|
14
|
-
}
|
|
15
10
|
export interface IResourcesGLsResult {
|
|
16
11
|
organizationId: number;
|
|
17
12
|
resourceId: number;
|
|
@@ -20,7 +15,6 @@ export interface IResourcesGLsResult {
|
|
|
20
15
|
}
|
|
21
16
|
export interface IGlCodesFilters extends IPagination {
|
|
22
17
|
expand?: GlCodeExpandEnum[];
|
|
23
|
-
facilitiesIds?: number[];
|
|
24
18
|
glTypeIds?: number[];
|
|
25
19
|
labels?: string[];
|
|
26
20
|
order?: OrderByEnum;
|
|
@@ -38,7 +38,6 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
38
38
|
hasDueDate?: boolean;
|
|
39
39
|
isOverdue?: boolean;
|
|
40
40
|
platforms?: PlatformsEnum[];
|
|
41
|
-
facilitiesIds?: number[];
|
|
42
41
|
createdAtFrom?: Date;
|
|
43
42
|
createdAtTo?: Date;
|
|
44
43
|
dueDateFrom?: Date;
|
|
@@ -47,7 +46,6 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
47
46
|
}
|
|
48
47
|
export declare class OrganizationInvoiceDto {
|
|
49
48
|
invoiceId: number;
|
|
50
|
-
facilityIds: number[];
|
|
51
49
|
payingUserName?: string;
|
|
52
50
|
payingUserId: number;
|
|
53
51
|
payingUserEmail?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;
|
|
1
|
+
{"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAI9D,IAAY,yCAcX;AAdD,WAAY,yCAAyC;IACpD,kEAAqB,CAAA;IACrB,wEAA2B,CAAA;IAC3B,gEAAmB,CAAA;IACnB,kEAAqB,CAAA;IACrB,kEAAqB,CAAA;IACrB,sEAAyB,CAAA;IACzB,0DAAa,CAAA;IACb,kEAAqB,CAAA;IACrB,gFAAmC,CAAA;IACnC,8DAAiB,CAAA;IACjB,gEAAmB,CAAA;IACnB,oFAAuC,CAAA;IACvC,oEAAuB,CAAA;AACxB,CAAC,EAdW,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAcpD;AAEY,QAAA,6CAA6C,GAAG,yCAAyC,CAAC,SAAS,CAAC;AAEjH,IAAY,+BAYX;AAZD,WAAY,+BAA+B;IAC1C,2DAAwB,CAAA;IACxB,sEAAmC,CAAA;IACnC,kEAA+B,CAAA;IAC/B,2DAAwB,CAAA;IACxB,uDAAoB,CAAA;IACpB,+DAA4B,CAAA;IAC5B,6DAA0B,CAAA;IAC1B,6DAA0B,CAAA;IAC1B,mEAAgC,CAAA;IAChC,kDAAe,CAAA;IACf,wDAAqB,CAAA;AACtB,CAAC,EAZW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAY1C;AAED,MAAa,+BAAgC,SAAQ,mCAAsD;CAwB1G;AAxBD,0EAwBC;AAED,MAAa,sBAAsB;CAoClC;AApCD,wDAoCC"}
|
|
@@ -230,6 +230,28 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
230
230
|
};
|
|
231
231
|
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
232
232
|
approvalRequired?: boolean;
|
|
233
|
+
allowResourceSelection?: boolean;
|
|
234
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
235
|
+
bookingDurations?: {
|
|
236
|
+
minDuration?: {
|
|
237
|
+
amount?: number;
|
|
238
|
+
unit?: TimeUnit;
|
|
239
|
+
};
|
|
240
|
+
maxDuration?: {
|
|
241
|
+
amount?: number;
|
|
242
|
+
unit?: TimeUnit;
|
|
243
|
+
};
|
|
244
|
+
durationStep?: {
|
|
245
|
+
amount?: number;
|
|
246
|
+
unit?: TimeUnit;
|
|
247
|
+
};
|
|
248
|
+
defaultDuration?: {
|
|
249
|
+
amount?: number;
|
|
250
|
+
unit?: TimeUnit;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
slotStartTime?: number;
|
|
254
|
+
allowOverlappingStartTimes?: boolean;
|
|
233
255
|
memberships?: [{
|
|
234
256
|
name?: string;
|
|
235
257
|
id?: string;
|
|
@@ -255,49 +277,49 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
255
277
|
unit?: TimeUnit;
|
|
256
278
|
};
|
|
257
279
|
}[]];
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
minDuration?: {
|
|
280
|
+
}, {
|
|
281
|
+
default?: {
|
|
282
|
+
advanceBookingWindow?: {
|
|
262
283
|
amount?: number;
|
|
263
284
|
unit?: TimeUnit;
|
|
264
285
|
};
|
|
265
|
-
|
|
286
|
+
minimumBookingNotice?: {
|
|
266
287
|
amount?: number;
|
|
267
288
|
unit?: TimeUnit;
|
|
268
289
|
};
|
|
269
|
-
|
|
290
|
+
maxBookingHours?: {
|
|
270
291
|
amount?: number;
|
|
271
292
|
unit?: TimeUnit;
|
|
272
293
|
};
|
|
273
|
-
|
|
294
|
+
maxSequentialBookings?: {
|
|
274
295
|
amount?: number;
|
|
275
296
|
unit?: TimeUnit;
|
|
276
297
|
};
|
|
277
298
|
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
299
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
300
|
+
approvalRequired?: boolean;
|
|
301
|
+
allowResourceSelection?: boolean;
|
|
302
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
303
|
+
bookingDurations?: {
|
|
304
|
+
minDuration?: {
|
|
283
305
|
amount?: number;
|
|
284
306
|
unit?: TimeUnit;
|
|
285
307
|
};
|
|
286
|
-
|
|
308
|
+
maxDuration?: {
|
|
287
309
|
amount?: number;
|
|
288
310
|
unit?: TimeUnit;
|
|
289
311
|
};
|
|
290
|
-
|
|
312
|
+
durationStep?: {
|
|
291
313
|
amount?: number;
|
|
292
314
|
unit?: TimeUnit;
|
|
293
315
|
};
|
|
294
|
-
|
|
316
|
+
defaultDuration?: {
|
|
295
317
|
amount?: number;
|
|
296
318
|
unit?: TimeUnit;
|
|
297
319
|
};
|
|
298
320
|
};
|
|
299
|
-
|
|
300
|
-
|
|
321
|
+
slotStartTime?: number;
|
|
322
|
+
allowOverlappingStartTimes?: boolean;
|
|
301
323
|
memberships?: [{
|
|
302
324
|
name?: string;
|
|
303
325
|
id?: string;
|
|
@@ -323,28 +345,6 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
323
345
|
unit?: TimeUnit;
|
|
324
346
|
};
|
|
325
347
|
}[]];
|
|
326
|
-
allowResourceSelection?: boolean;
|
|
327
|
-
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
328
|
-
bookingDurations?: {
|
|
329
|
-
minDuration?: {
|
|
330
|
-
amount?: number;
|
|
331
|
-
unit?: TimeUnit;
|
|
332
|
-
};
|
|
333
|
-
maxDuration?: {
|
|
334
|
-
amount?: number;
|
|
335
|
-
unit?: TimeUnit;
|
|
336
|
-
};
|
|
337
|
-
durationStep?: {
|
|
338
|
-
amount?: number;
|
|
339
|
-
unit?: TimeUnit;
|
|
340
|
-
};
|
|
341
|
-
defaultDuration?: {
|
|
342
|
-
amount?: number;
|
|
343
|
-
unit?: TimeUnit;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
slotStartTime?: number;
|
|
347
|
-
allowOverlappingStartTimes?: boolean;
|
|
348
348
|
}>;
|
|
349
349
|
declare const _GOODS_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
350
350
|
colorCodeId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6,9 +6,3 @@ export interface IGetSourceProductDataResponse {
|
|
|
6
6
|
glCodes: ResourceGLsResponseDto[];
|
|
7
7
|
resourceSettings: ResourceSetting[];
|
|
8
8
|
}
|
|
9
|
-
export interface ICreateProductOptions {
|
|
10
|
-
skipGls?: boolean;
|
|
11
|
-
skipResources?: boolean;
|
|
12
|
-
skipEntitlements?: boolean;
|
|
13
|
-
skipPaymentPlans?: boolean;
|
|
14
|
-
}
|
|
@@ -8,8 +8,8 @@ export interface IValidateResourcesDict {
|
|
|
8
8
|
[ResourceNameTypeEnum.PROGRAM_SEASON]: Map<number, ProgramSeason>;
|
|
9
9
|
}
|
|
10
10
|
export interface IValidateResourcesOptions {
|
|
11
|
+
isWaitlistDeclared?: boolean;
|
|
11
12
|
onErrorCallback?: (error: Error, ...args: unknown[]) => void;
|
|
12
13
|
skipExistingRegistrationValidations?: boolean;
|
|
13
14
|
skipOptionalValidations?: boolean;
|
|
14
|
-
validateWaitlist?: boolean;
|
|
15
15
|
}
|
|
@@ -149,3 +149,14 @@ export interface IGetEventsOfSeasonParams extends IPagination {
|
|
|
149
149
|
spaceIds?: number[];
|
|
150
150
|
startDate?: string;
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Capacity facts for a session resource and a set of registering users.
|
|
154
|
+
*/
|
|
155
|
+
export interface ISessionCapacityState {
|
|
156
|
+
canAnyUserRegisterNow: boolean;
|
|
157
|
+
exceedsCapacity: boolean;
|
|
158
|
+
isWaitlistEnabled: boolean;
|
|
159
|
+
resourceName: string;
|
|
160
|
+
spotsLeft: number | null;
|
|
161
|
+
totalUsersToAdd: number;
|
|
162
|
+
}
|
|
@@ -78,15 +78,16 @@ export interface ChargeInvoiceResult {
|
|
|
78
78
|
status: FuturePaymentStatusEnum;
|
|
79
79
|
}
|
|
80
80
|
export interface IPurchaseOptions extends IValidateCartOptions {
|
|
81
|
+
allowWaitlistCartPurchase?: boolean;
|
|
81
82
|
isImport?: boolean;
|
|
82
83
|
overrideQuantity?: number;
|
|
83
84
|
skipMail?: boolean;
|
|
84
85
|
}
|
|
85
86
|
export interface IPurchasePayment {
|
|
86
87
|
applyForFuture?: boolean;
|
|
88
|
+
cardSaveTerminalData?: ISaveCardTerminalInput;
|
|
87
89
|
token?: string;
|
|
88
90
|
type: PaymentMethodTypeEnum;
|
|
89
|
-
cardSaveTerminalData?: ISaveCardTerminalInput;
|
|
90
91
|
}
|
|
91
92
|
export interface IPaymentMethodInfo {
|
|
92
93
|
payingUserId?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "2.4.98
|
|
3
|
+
"version": "2.4.98",
|
|
4
4
|
"description": "backend types module for Bond-Sports",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@bondsports/date-time": "^2.4.53",
|
|
37
37
|
"@bondsports/notifications-sdk": "^0.0.8",
|
|
38
|
-
"@types/lodash": "^4.17.24",
|
|
39
38
|
"moment": "^2.29.1",
|
|
40
39
|
"rimraf": "^3.0.2",
|
|
41
40
|
"stripe": "^18.2.0",
|
|
42
41
|
"typeorm": "^0.2.32",
|
|
43
|
-
"zod": "^3.25.49"
|
|
42
|
+
"zod": "^3.25.49",
|
|
43
|
+
"@types/lodash": "^4.17.24"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@bondsports/eslint-config": "^1.0.2",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"ts-node": "^10.8.0",
|
|
53
53
|
"typescript": "^4.4.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
|
|
56
56
|
}
|
package/LICENSE.md
DELETED
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
|
2
|
-
import { Facility } from '../../facilities/entities/Facility';
|
|
3
|
-
import { GlCode } from './gl-code';
|
|
4
|
-
export declare class GlCodeToFacility extends BondBaseEntity {
|
|
5
|
-
glCodeId: number;
|
|
6
|
-
facilityId: number;
|
|
7
|
-
deletedAt?: Date;
|
|
8
|
-
facility: Facility;
|
|
9
|
-
glCode: GlCode;
|
|
10
|
-
}
|