@bondsports/types 2.4.103 → 2.4.104-a-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/cart/entities/cart.entity.d.ts +3 -0
- package/dist/types/cart/entities/cart.entity.js.map +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +1 -0
- package/dist/types/cart/types/consts/cart.consts.js +1 -0
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -4
- package/dist/types/customers/types/consts/customers.consts.d.ts +2 -1
- package/dist/types/customers/types/consts/customers.consts.js +3 -2
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +1 -7
- package/dist/types/employees/types/interfaces/employee-facility-access.interfaces.d.ts +1 -0
- package/dist/types/entity/Invoice.d.ts +4 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/entity/LinkedAccounts.d.ts +0 -2
- package/dist/types/entity/LinkedAccounts.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +1 -1
- package/dist/types/gl-codes/dto/gl-code.dto.d.ts +11 -4
- package/dist/types/gl-codes/dto/gl-code.dto.js +6 -5
- package/dist/types/gl-codes/dto/gl-code.dto.js.map +1 -1
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.d.ts +10 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js +8 -0
- package/dist/types/gl-codes/entities/gl-code-to-facility.entity.js.map +1 -0
- package/dist/types/gl-codes/entities/gl-code.d.ts +2 -0
- package/dist/types/gl-codes/entities/gl-code.js.map +1 -1
- package/dist/types/gl-codes/entities/index.d.ts +1 -0
- package/dist/types/gl-codes/entities/index.js +1 -0
- package/dist/types/gl-codes/entities/index.js.map +1 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.d.ts +2 -1
- package/dist/types/gl-codes/types/enums/gl-code.enum.js +1 -0
- 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 +6 -0
- 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/invoice/dto/organization-invoice.dto.d.ts +2 -0
- package/dist/types/invoice/dto/organization-invoice.dto.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +20 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +2 -2
- package/dist/types/payment/dto/payment.dto.d.ts +4 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/dto/refund.dto.d.ts +12 -4
- package/dist/types/payment/dto/refund.dto.js +8 -1
- package/dist/types/payment/dto/refund.dto.js.map +1 -1
- package/dist/types/payment/dto/void.dto.d.ts +2 -1
- package/dist/types/payment/dto/void.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +2 -1
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/types/consts/index.d.ts +1 -0
- package/dist/types/payment/types/consts/index.js +1 -0
- package/dist/types/payment/types/consts/index.js.map +1 -1
- package/dist/types/payment/types/consts/linked-accounts.consts.d.ts +6 -0
- package/dist/types/payment/types/consts/linked-accounts.consts.js +20 -0
- package/dist/types/payment/types/consts/linked-accounts.consts.js.map +1 -0
- package/dist/types/payment/types/enums/linked-account.enums.d.ts +7 -1
- package/dist/types/payment/types/enums/linked-account.enums.js +8 -1
- package/dist/types/payment/types/enums/linked-account.enums.js.map +1 -1
- package/dist/types/payment/types/enums/refund.enums.d.ts +0 -1
- package/dist/types/payment/types/enums/refund.enums.js +0 -1
- package/dist/types/payment/types/enums/refund.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/index.d.ts +1 -0
- package/dist/types/payment/types/interfaces/index.js +1 -0
- package/dist/types/payment/types/interfaces/index.js.map +1 -1
- package/dist/types/payment/types/interfaces/linked-account.interfaces.d.ts +32 -0
- package/dist/types/payment/types/interfaces/linked-account.interfaces.js +3 -0
- package/dist/types/payment/types/interfaces/linked-account.interfaces.js.map +1 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +5 -4
- package/dist/types/payment/types/interfaces/pending-terminal-reconciler.interfaces.d.ts +2 -2
- package/dist/types/payment/types/interfaces/refund.interfaces.d.ts +21 -8
- package/dist/types/payment/types/interfaces/refund.interfaces.js.map +1 -1
- package/dist/types/payment/types/interfaces/stripe.interfaces.d.ts +11 -0
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +3 -1
- package/dist/types/payout-accounts/entities/index.d.ts +1 -0
- package/dist/types/payout-accounts/entities/index.js +18 -0
- package/dist/types/payout-accounts/entities/index.js.map +1 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.d.ts +10 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js +8 -0
- package/dist/types/payout-accounts/entities/payout-account.entity.js.map +1 -0
- package/dist/types/payout-accounts/index.d.ts +2 -0
- package/dist/types/payout-accounts/index.js +19 -0
- package/dist/types/payout-accounts/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/index.d.ts +1 -0
- package/dist/types/payout-accounts/types/dto/index.js +18 -0
- package/dist/types/payout-accounts/types/dto/index.js.map +1 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.d.ts +50 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js +36 -0
- package/dist/types/payout-accounts/types/dto/payout-account.dto.js.map +1 -0
- package/dist/types/payout-accounts/types/index.d.ts +2 -0
- package/dist/types/payout-accounts/types/index.js +19 -0
- package/dist/types/payout-accounts/types/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.d.ts +1 -0
- package/dist/types/payout-accounts/types/interfaces/index.js +18 -0
- package/dist/types/payout-accounts/types/interfaces/index.js.map +1 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.d.ts +113 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js +11 -0
- package/dist/types/payout-accounts/types/interfaces/payout-account.interfaces.js.map +1 -0
- 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 +6 -0
- package/dist/types/programs-seasons/dto/public-session-group.dto.js.map +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +11 -1
- package/dist/types/purchase/dto/purchase.dto.js +4 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +2 -0
- package/dist/types/questionnaires/types/question-metadata.interfaces.d.ts +0 -1
- package/dist/types/services/interfaces.service.d.ts +1 -0
- package/dist/types/terminal/dto/terminal-actions.dto.d.ts +1 -0
- package/dist/types/terminal/dto/terminal-actions.dto.js.map +1 -1
- package/dist/types/terminal/types/interfaces/terminal-action-service.interfaces.d.ts +2 -2
- package/dist/types/webhooks/types/webhooks.enums.d.ts +2 -1
- package/dist/types/webhooks/types/webhooks.enums.js +1 -0
- package/dist/types/webhooks/types/webhooks.enums.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CustomerMerge } from '../../customers-merge/entities/CustomerMerge';
|
|
2
2
|
import { UserAnswersDto } from '../../dto/application.dto';
|
|
3
3
|
import { Customer } from '../../entity/Customer';
|
|
4
|
+
import { LinkedAccounts } from '../../entity/LinkedAccounts';
|
|
4
5
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
5
6
|
import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
|
|
6
7
|
import { User } from '../../user/entities/User';
|
|
@@ -23,6 +24,8 @@ export declare class Cart extends OrganizationConnectionBaseEntity {
|
|
|
23
24
|
shiftId?: number;
|
|
24
25
|
parentId?: number;
|
|
25
26
|
invoiceId?: number;
|
|
27
|
+
linkedAccountId?: number | null;
|
|
28
|
+
linkedAccount?: LinkedAccounts | null;
|
|
26
29
|
answers?: UserAnswersDto[];
|
|
27
30
|
lastActiveTime: Date;
|
|
28
31
|
lastFetchedTime: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAMA,oGAAiG;AASjG,MAAa,IAAK,SAAQ,mEAAgC;CA4DzD;AA5DD,oBA4DC"}
|
|
@@ -18,5 +18,6 @@ exports.CART_ERROR_CODES = {
|
|
|
18
18
|
INVALID_PURCHASE: 'CART.INVALID_PURCHASE',
|
|
19
19
|
CANNOT_PAY_WAITLIST_CART: 'CART.CANNOT_PAY_WAITLIST_CART',
|
|
20
20
|
WAITLIST_DECLARED_BUT_ROOM_AVAILABLE: 'CART.WAITLIST_DECLARED_BUT_ROOM_AVAILABLE',
|
|
21
|
+
PAYOUT_ACCOUNT_DIFFERENT: 'CART.PAYOUT_ACCOUNT_DIFFERENT',
|
|
21
22
|
};
|
|
22
23
|
//# 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;IACzC,wBAAwB,EAAE,+BAA+B;IACzD,oCAAoC,EAAE,2CAA2C;
|
|
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;IACjF,wBAAwB,EAAE,+BAA+B;CACzD,CAAC"}
|
|
@@ -80,10 +80,6 @@ export interface IValidateCartResult {
|
|
|
80
80
|
[key: number]: Product;
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
export interface IUnresolvedFacilityAttribution {
|
|
84
|
-
productId: number;
|
|
85
|
-
facilityIds: number[];
|
|
86
|
-
}
|
|
87
83
|
export interface IUpdateCartOptions {
|
|
88
84
|
updateActiveTime?: boolean;
|
|
89
85
|
updateCache?: boolean;
|
|
@@ -2,5 +2,6 @@ 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:
|
|
5
|
+
export declare const CUSTOMER_ENTITY_UPDATE_FIELDS: ("addressId" | "email" | "phoneNumber" | "firstName" | "lastName")[];
|
|
6
|
+
export declare const CUSTOMER_ORG_SCOPED_UPDATE_FIELDS: "colorCodeId"[];
|
|
6
7
|
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.CUSTOMER_ENTITY_UPDATE_FIELDS = exports.RELATIONS_FOR_ORGANIZATION_USER = exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = void 0;
|
|
3
|
+
exports.CUSTOMER_SEARCH_FIELDS = exports.CUSTOMER_ORG_SCOPED_UPDATE_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,15 +8,16 @@ exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
|
|
8
8
|
allowExistingCustomer: false,
|
|
9
9
|
requireNewUser: false,
|
|
10
10
|
skipCreateCognitoUser: false,
|
|
11
|
+
skipUserProfileSync: false,
|
|
11
12
|
};
|
|
12
13
|
exports.RELATIONS_FOR_ORGANIZATION_USER = ['user', 'user.organizationUsers'];
|
|
13
14
|
exports.CUSTOMER_ENTITY_UPDATE_FIELDS = [
|
|
14
15
|
'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'];
|
|
21
22
|
exports.CUSTOMER_SEARCH_FIELDS = ['firstName', 'lastName', 'name', 'email'];
|
|
22
23
|
//# 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":";;;AAGa,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;IAC5B,mBAAmB,EAAE,KAAK;CAC1B,CAAC;AAEW,QAAA,+BAA+B,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAErE,QAAA,6BAA6B,GAAG;IAC5C,WAAW;IACX,OAAO;IACP,WAAW;IACX,UAAU;IACV,aAAa;CACgB,CAAC;AAElB,QAAA,iCAAiC,GAAG,CAAC,aAAa,CAA8B,CAAC;AAEjF,QAAA,sBAAsB,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -7,13 +7,6 @@ import { CustomerTypeEnum, GenderEnum, GenderNameEnum, ResourceNameTypeEnum } fr
|
|
|
7
7
|
import { User } from '../../user/entities/User';
|
|
8
8
|
import { CreateCustomerDto } from '../dto/customer.dto';
|
|
9
9
|
import { CustomerFamilyStatusEnum } from './enums';
|
|
10
|
-
export type TCustomerInvoiceScope = {
|
|
11
|
-
entityType: CustomerTypeEnum.USER;
|
|
12
|
-
entityId: number;
|
|
13
|
-
} | {
|
|
14
|
-
entityType: CustomerTypeEnum.FAMILY;
|
|
15
|
-
familyAccountId: number;
|
|
16
|
-
};
|
|
17
10
|
/** Organization customer paired with the family admin when the customer is a dependent. */
|
|
18
11
|
export interface ICustomerWithFamilyAdmin {
|
|
19
12
|
admin?: Customer;
|
|
@@ -35,6 +28,7 @@ export interface CreateCustomerOptions {
|
|
|
35
28
|
saveCustomer?: boolean;
|
|
36
29
|
sendCustomerNotification?: boolean;
|
|
37
30
|
skipCreateCognitoUser?: boolean;
|
|
31
|
+
skipUserProfileSync?: boolean;
|
|
38
32
|
}
|
|
39
33
|
export interface CustomerFamilyMember {
|
|
40
34
|
id: number;
|
|
@@ -17,6 +17,7 @@ import { InvoiceNote } from './InvoiceNote';
|
|
|
17
17
|
import { InvoiceToPayment } from './InvoiceToPayment';
|
|
18
18
|
import { LineItemHistory } from './LineItemHistory';
|
|
19
19
|
import { LineItems } from './LineItems';
|
|
20
|
+
import { LinkedAccounts } from './LinkedAccounts';
|
|
20
21
|
export declare class Invoice extends BondBaseEntity {
|
|
21
22
|
invoiceId?: string;
|
|
22
23
|
parentId?: number;
|
|
@@ -27,6 +28,8 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
27
28
|
payingUserId?: number;
|
|
28
29
|
owner?: User;
|
|
29
30
|
organizationId?: number;
|
|
31
|
+
linkedAccountId?: number | null;
|
|
32
|
+
linkedAccount?: LinkedAccounts | null;
|
|
30
33
|
invoiceToPayments: InvoiceToPayment[];
|
|
31
34
|
payments: Payment[];
|
|
32
35
|
lineItems: LineItems[];
|
|
@@ -60,6 +63,7 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
60
63
|
subtotal?: number;
|
|
61
64
|
subtotalBalance?: number;
|
|
62
65
|
tippableAmount?: number;
|
|
66
|
+
facilityIds?: number[];
|
|
63
67
|
customer?: Customer;
|
|
64
68
|
obfuscatedCustomer?: ObfuscatedCustomerDto;
|
|
65
69
|
hasFailedPayments?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAQlD,MAAa,OAAQ,SAAQ,+BAAc;CAmH1C;AAnHD,0BAmHC"}
|
|
@@ -11,8 +11,6 @@ export declare class LinkedAccounts extends BondBaseEntity {
|
|
|
11
11
|
refreshToken: string | null;
|
|
12
12
|
tokenCreatedAt: Date | null;
|
|
13
13
|
tokenValidUpTo: Date | null;
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
updatedAt: Date;
|
|
16
14
|
user: User;
|
|
17
15
|
userId: number | null;
|
|
18
16
|
importedId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkedAccounts.js","sourceRoot":"","sources":["../../../src/types/entity/LinkedAccounts.ts"],"names":[],"mappings":";;;AAKA,qDAAkD;AAElD,MAAa,cAAe,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"LinkedAccounts.js","sourceRoot":"","sources":["../../../src/types/entity/LinkedAccounts.ts"],"names":[],"mappings":";;;AAKA,qDAAkD;AAElD,MAAa,cAAe,SAAQ,+BAAc;CA8BjD;AA9BD,wCA8BC"}
|
|
@@ -29,8 +29,8 @@ export interface IGetFolderContentsParams {
|
|
|
29
29
|
contentTypes?: ContentType[];
|
|
30
30
|
excludedContentIds?: number[];
|
|
31
31
|
excludedFolderContentIds?: number[];
|
|
32
|
-
teamRoles?: string[];
|
|
33
32
|
folderIds: number[];
|
|
33
|
+
teamRoles?: string[];
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Parameters for getting folder contents with pagination
|
|
@@ -14,6 +14,7 @@ export declare class CreateGlCodeDto {
|
|
|
14
14
|
resourceType?: GlResourceTypeEnum;
|
|
15
15
|
productType?: ProductTypesEnum;
|
|
16
16
|
glTypeId: number;
|
|
17
|
+
facilitiesIds?: number[];
|
|
17
18
|
}
|
|
18
19
|
export declare class GlCodeDto extends OrganizationBaseEntityDto {
|
|
19
20
|
code: string;
|
|
@@ -23,6 +24,8 @@ export declare class GlCodeDto extends OrganizationBaseEntityDto {
|
|
|
23
24
|
productType?: ProductTypesEnum;
|
|
24
25
|
updatedAt?: Date;
|
|
25
26
|
assignedResources?: number;
|
|
27
|
+
facilityIds?: number[];
|
|
28
|
+
isAllFacilities?: boolean;
|
|
26
29
|
glType: GlTypeDto;
|
|
27
30
|
}
|
|
28
31
|
export declare class AccountingCodeDto extends IdDto {
|
|
@@ -32,7 +35,10 @@ export declare class AccountingCodeDto extends IdDto {
|
|
|
32
35
|
resourceType?: GlResourceTypeEnum;
|
|
33
36
|
productType?: ProductTypesEnum;
|
|
34
37
|
}
|
|
35
|
-
export declare class
|
|
38
|
+
export declare class ExpandGlCodeDto {
|
|
39
|
+
expand?: GlCodeExpandEnum[];
|
|
40
|
+
}
|
|
41
|
+
export declare class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
36
42
|
label?: string;
|
|
37
43
|
includeInactive?: boolean;
|
|
38
44
|
codes?: string[];
|
|
@@ -41,6 +47,7 @@ export declare class FindGlCodesFiltersDto {
|
|
|
41
47
|
productTypes?: ProductTypesEnum[];
|
|
42
48
|
isResourceTypeNullable?: boolean;
|
|
43
49
|
glTypeIds?: number[];
|
|
50
|
+
facilitiesIds?: number[];
|
|
44
51
|
}
|
|
45
52
|
export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGlCodesFilters {
|
|
46
53
|
search?: string;
|
|
@@ -49,13 +56,11 @@ export declare class GetGlCodesFiltersDto extends PaginationQuery implements IGl
|
|
|
49
56
|
resourceTypes?: GlResourceTypeEnum[];
|
|
50
57
|
productTypes?: ProductTypesEnum[];
|
|
51
58
|
glTypeIds?: number[];
|
|
59
|
+
facilitiesIds?: number[];
|
|
52
60
|
orderBy?: GlCodeOrderByEnum;
|
|
53
61
|
order?: OrderByEnum;
|
|
54
62
|
expand?: GlCodeExpandEnum[];
|
|
55
63
|
}
|
|
56
|
-
export declare class ExpandGlCodeDto {
|
|
57
|
-
expand?: GlCodeExpandEnum[];
|
|
58
|
-
}
|
|
59
64
|
export declare class UpdateGlCodeDto {
|
|
60
65
|
id: number;
|
|
61
66
|
code?: string;
|
|
@@ -64,6 +69,7 @@ export declare class UpdateGlCodeDto {
|
|
|
64
69
|
resourceType?: GlResourceTypeEnum;
|
|
65
70
|
productType?: ProductTypesEnum;
|
|
66
71
|
glTypeId?: number;
|
|
72
|
+
facilitiesIds?: number[];
|
|
67
73
|
}
|
|
68
74
|
export declare class MassActionUpdateGlCodeDto {
|
|
69
75
|
label?: string;
|
|
@@ -84,4 +90,5 @@ export declare class MassActionGlCodesQueryDto extends MassActionFilterDto imple
|
|
|
84
90
|
resourceTypes?: GlResourceTypeEnum[];
|
|
85
91
|
productTypes?: ProductTypesEnum[];
|
|
86
92
|
glTypeIds?: number[];
|
|
93
|
+
facilitiesIds?: number[];
|
|
87
94
|
}
|
|
@@ -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.GetGlCodesFiltersDto = exports.FindGlCodesFiltersDto = exports.ExpandGlCodeDto = 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,8 +15,12 @@ exports.GlCodeDto = GlCodeDto;
|
|
|
15
15
|
class AccountingCodeDto extends general_dto_1.IdDto {
|
|
16
16
|
}
|
|
17
17
|
exports.AccountingCodeDto = AccountingCodeDto;
|
|
18
|
-
class
|
|
18
|
+
class ExpandGlCodeDto {
|
|
19
|
+
}
|
|
20
|
+
exports.ExpandGlCodeDto = ExpandGlCodeDto;
|
|
21
|
+
class FindGlCodesFiltersDto extends ExpandGlCodeDto {
|
|
19
22
|
constructor() {
|
|
23
|
+
super(...arguments);
|
|
20
24
|
this.isResourceTypeNullable = true;
|
|
21
25
|
}
|
|
22
26
|
}
|
|
@@ -24,9 +28,6 @@ exports.FindGlCodesFiltersDto = FindGlCodesFiltersDto;
|
|
|
24
28
|
class GetGlCodesFiltersDto extends general_dto_1.PaginationQuery {
|
|
25
29
|
}
|
|
26
30
|
exports.GetGlCodesFiltersDto = GetGlCodesFiltersDto;
|
|
27
|
-
class ExpandGlCodeDto {
|
|
28
|
-
}
|
|
29
|
-
exports.ExpandGlCodeDto = ExpandGlCodeDto;
|
|
30
31
|
class UpdateGlCodeDto {
|
|
31
32
|
}
|
|
32
33
|
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;CAc3B;AAdD,0CAcC;AAED,MAAa,SAAU,SAAQ,4CAAyB;CAoBvD;AApBD,8BAoBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAU3C;AAVD,8CAUC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,qBAAsB,SAAQ,eAAe;IAA1D;;QAaC,2BAAsB,GAAa,IAAI,CAAC;IAKzC,CAAC;CAAA;AAlBD,sDAkBC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAoBxD;AApBD,oDAoBC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC;AAED,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,yBAA0B,SAAQ,iCAAmB;CAYjE;AAZD,8DAYC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlCodeToFacility = void 0;
|
|
4
|
+
const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
|
|
5
|
+
class GlCodeToFacility extends BondBaseEntity_1.BondBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.GlCodeToFacility = GlCodeToFacility;
|
|
8
|
+
//# sourceMappingURL=gl-code-to-facility.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gl-code-to-facility.entity.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/gl-code-to-facility.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAK7D,MAAa,gBAAiB,SAAQ,+BAAc;CAUnD;AAVD,4CAUC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
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';
|
|
4
5
|
import { GlType } from './gl-type';
|
|
5
6
|
export declare class GlCode extends OrganizationConnectionBaseEntity {
|
|
6
7
|
code: string;
|
|
@@ -11,5 +12,6 @@ export declare class GlCode extends OrganizationConnectionBaseEntity {
|
|
|
11
12
|
deletedAt?: Date;
|
|
12
13
|
glTypeId: number;
|
|
13
14
|
glType: GlType;
|
|
15
|
+
glCodeToFacilities: GlCodeToFacility[];
|
|
14
16
|
assignedResources?: number;
|
|
15
17
|
}
|
|
@@ -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;AAOjG,MAAa,MAAO,SAAQ,mEAAgC;CAoB3D;AApBD,wBAoBC"}
|
|
@@ -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("./gl-code-to-facility.entity"), exports);
|
|
17
18
|
__exportStar(require("./gl-code"), exports);
|
|
18
19
|
__exportStar(require("./gl-type"), exports);
|
|
19
20
|
__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,4CAA0B;AAC1B,4CAA0B;AAC1B,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/gl-codes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4CAA0B;AAC1B,4CAA0B;AAC1B,mDAAiC"}
|
|
@@ -30,5 +30,6 @@ var GlCodeOrderByEnum;
|
|
|
30
30
|
var GlCodeExpandEnum;
|
|
31
31
|
(function (GlCodeExpandEnum) {
|
|
32
32
|
GlCodeExpandEnum["ASSIGNED_RESOURCES"] = "assignedResources";
|
|
33
|
+
GlCodeExpandEnum["FACILITIES"] = "facilities";
|
|
33
34
|
})(GlCodeExpandEnum = exports.GlCodeExpandEnum || (exports.GlCodeExpandEnum = {}));
|
|
34
35
|
//# 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,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,4DAAwC,CAAA;IACxC,6CAAyB,CAAA;AAC1B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
|
|
@@ -1,12 +1,17 @@
|
|
|
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';
|
|
4
5
|
import { ResourceToGL } from '../../entities/resource-to-gl';
|
|
5
6
|
import { GlCodeExpandEnum, GlCodeOrderByEnum, GlResourceTypeEnum } from '../enums/gl-code.enum';
|
|
6
7
|
export interface filterExistingGlsResult {
|
|
7
8
|
deleteResourceToGlsIds: number[];
|
|
8
9
|
newResourceToGls: CreateResourceToGlDto[];
|
|
9
10
|
}
|
|
11
|
+
export interface IGlCodeFacilityConnectionsDiff {
|
|
12
|
+
connectionIdsToRemove: number[];
|
|
13
|
+
connectionsToAdd: GlCodeToFacility[];
|
|
14
|
+
}
|
|
10
15
|
export interface IResourcesGLsResult {
|
|
11
16
|
organizationId: number;
|
|
12
17
|
resourceId: number;
|
|
@@ -15,6 +20,7 @@ export interface IResourcesGLsResult {
|
|
|
15
20
|
}
|
|
16
21
|
export interface IGlCodesFilters extends IPagination {
|
|
17
22
|
expand?: GlCodeExpandEnum[];
|
|
23
|
+
facilitiesIds?: number[];
|
|
18
24
|
glTypeIds?: number[];
|
|
19
25
|
labels?: string[];
|
|
20
26
|
order?: OrderByEnum;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './notifications';
|
|
|
39
39
|
export * from './online-booking';
|
|
40
40
|
export * from './organization';
|
|
41
41
|
export * from './payment';
|
|
42
|
+
export * from './payout-accounts';
|
|
42
43
|
export * from './pricing';
|
|
43
44
|
export * from './product-pricing';
|
|
44
45
|
export * from './programs';
|
package/dist/types/index.js
CHANGED
|
@@ -55,6 +55,7 @@ __exportStar(require("./notifications"), exports);
|
|
|
55
55
|
__exportStar(require("./online-booking"), exports);
|
|
56
56
|
__exportStar(require("./organization"), exports);
|
|
57
57
|
__exportStar(require("./payment"), exports);
|
|
58
|
+
__exportStar(require("./payout-accounts"), exports);
|
|
58
59
|
__exportStar(require("./pricing"), exports);
|
|
59
60
|
__exportStar(require("./product-pricing"), exports);
|
|
60
61
|
__exportStar(require("./programs"), 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,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,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,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,uDAAqC;AACrC,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,4DAA0C;AAC1C,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,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,oDAAkC;AAClC,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,uDAAqC;AACrC,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -38,6 +38,7 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
38
38
|
hasDueDate?: boolean;
|
|
39
39
|
isOverdue?: boolean;
|
|
40
40
|
platforms?: PlatformsEnum[];
|
|
41
|
+
facilitiesIds?: number[];
|
|
41
42
|
createdAtFrom?: Date;
|
|
42
43
|
createdAtTo?: Date;
|
|
43
44
|
dueDateFrom?: Date;
|
|
@@ -46,6 +47,7 @@ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQue
|
|
|
46
47
|
}
|
|
47
48
|
export declare class OrganizationInvoiceDto {
|
|
48
49
|
invoiceId: number;
|
|
50
|
+
facilityIds: number[];
|
|
49
51
|
payingUserName?: string;
|
|
50
52
|
payingUserId: number;
|
|
51
53
|
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;AAK9D,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;CA0B1G;AA1BD,0EA0BC;AAED,MAAa,sBAAsB;CAsClC;AAtCD,wDAsCC"}
|
|
@@ -7,9 +7,23 @@ import { DueDateTypeEnum } from '../../../payment/types/enums/payment.enums';
|
|
|
7
7
|
import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
|
|
8
8
|
import { ProductPricesDto } from '../../../reservations/dto/reservation.dto';
|
|
9
9
|
import { IOverrideProductsPricing } from '../../../reservations/types/interfaces/reservation.interfaces';
|
|
10
|
-
import { InvoiceStatusEnum } from '../../../services/enums.service';
|
|
10
|
+
import { CustomerTypeEnum, InvoiceStatusEnum } from '../../../services/enums.service';
|
|
11
11
|
import { InvoiceDto } from '../../dto/invoice.dto';
|
|
12
12
|
import { LineItemDto } from '../../dto/lineItem.dto';
|
|
13
|
+
import { GetOrganizationInvoicesQueryDto } from '../../dto/organization-invoice.dto';
|
|
14
|
+
export type TOrganizationInvoiceCustomerType = CustomerTypeEnum.USER | CustomerTypeEnum.FAMILY;
|
|
15
|
+
/** Resolved single-type customer restriction for organization invoice queries. */
|
|
16
|
+
export interface IOrganizationInvoiceCustomerFilter {
|
|
17
|
+
customerType: TOrganizationInvoiceCustomerType;
|
|
18
|
+
entityIds: number[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Internal organization invoice list filters.
|
|
22
|
+
* customerFilter is set only after customers are resolved (never from raw client input).
|
|
23
|
+
*/
|
|
24
|
+
export interface IOrganizationInvoiceFilters extends GetOrganizationInvoicesQueryDto {
|
|
25
|
+
customerFilter?: IOrganizationInvoiceCustomerFilter;
|
|
26
|
+
}
|
|
13
27
|
export interface InvoiceAndRelatedMethod {
|
|
14
28
|
invoice: Invoice;
|
|
15
29
|
paymentMethod?: DisplayedMethodFields;
|
|
@@ -23,6 +37,11 @@ export interface InvoiceAndRelatedMethodDto {
|
|
|
23
37
|
futureInvoices?: InvoiceAndRelatedMethod[];
|
|
24
38
|
pendingInvoices?: InvoiceAndRelatedMethod[];
|
|
25
39
|
}
|
|
40
|
+
/** Optional fields for a cartless `createNewInvoice` call. */
|
|
41
|
+
export interface ICreateNewInvoiceOptions {
|
|
42
|
+
organizationId?: number;
|
|
43
|
+
linkedAccountId?: number | null;
|
|
44
|
+
}
|
|
26
45
|
export interface IInvoiceCart {
|
|
27
46
|
existingInvoiceId?: number;
|
|
28
47
|
shiftId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA+FA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IFamilyMemberForRenewal, ISingleMemberForRenewal } from '../../services/interfaces.service';
|
|
2
1
|
import { SportsEnum } from '../../activities/types/activities.enums';
|
|
3
2
|
import { Invoice } from '../../entity/Invoice';
|
|
4
3
|
import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
|
|
@@ -6,6 +5,7 @@ import { LineItems } from '../../entity/LineItems';
|
|
|
6
5
|
import { UserPaymentMethodSimpleDto } from '../../payment/dto/payment-method.dto';
|
|
7
6
|
import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
8
7
|
import { CancellationStatusEnum, CurrencyEnum, CustomerInMembershipTypeEnum, GenderEnum, MembershipTypeEnum } from '../../services/enums.service';
|
|
8
|
+
import { IFamilyMemberForRenewal, ISingleMemberForRenewal } from '../../services/interfaces.service';
|
|
9
9
|
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
10
10
|
import { User } from '../../user/entities/User';
|
|
11
11
|
import { MembershipMemberRenewal } from '../entities/membership-member-renewal.entity';
|
|
@@ -181,8 +181,8 @@ export interface ICancelCommonInfo {
|
|
|
181
181
|
}
|
|
182
182
|
export interface ICancelOptions {
|
|
183
183
|
cancellationReason?: string;
|
|
184
|
-
isImmediateCancel: boolean;
|
|
185
184
|
ignoreRenewals?: boolean;
|
|
185
|
+
isImmediateCancel: boolean;
|
|
186
186
|
}
|
|
187
187
|
export interface IRenewalDedupCancelTarget {
|
|
188
188
|
organizationId: number;
|
|
@@ -72,6 +72,7 @@ export declare class ByPaymentFilter extends PaginationQuery {
|
|
|
72
72
|
isScheduled?: boolean;
|
|
73
73
|
hasDueDate?: boolean;
|
|
74
74
|
isOverdue?: boolean;
|
|
75
|
+
facilitiesIds?: number[];
|
|
75
76
|
}
|
|
76
77
|
export declare class FindPayments extends ByPaymentFilter {
|
|
77
78
|
id?: number;
|
|
@@ -94,6 +95,7 @@ export declare class PaymentIntentDto {
|
|
|
94
95
|
payment_method?: string;
|
|
95
96
|
setup_future_usage?: 'off_session';
|
|
96
97
|
cardSaveTerminalData?: SaveCardTerminalInputDto;
|
|
98
|
+
invoiceId: number;
|
|
97
99
|
}
|
|
98
100
|
export declare class SetupIntentDto {
|
|
99
101
|
customer: string;
|
|
@@ -175,8 +177,8 @@ export declare class PaymentDto extends BasePaymentMethodFieldsDto {
|
|
|
175
177
|
paymentProcessorDisputeId?: string;
|
|
176
178
|
disputeStatus?: string;
|
|
177
179
|
disputeReason?: string;
|
|
180
|
+
disputeCreatedAt?: Date;
|
|
178
181
|
disputeUpdatedAt?: Date;
|
|
179
|
-
disputeClosedAt?: Date;
|
|
180
182
|
disputeAmount?: number;
|
|
181
183
|
creatingUserId?: number;
|
|
182
184
|
shiftId?: number;
|
|
@@ -194,6 +196,7 @@ export declare class PaymentDto extends BasePaymentMethodFieldsDto {
|
|
|
194
196
|
installments?: FutureInstallment[];
|
|
195
197
|
totalFeesAmount?: number;
|
|
196
198
|
tipAmount?: number;
|
|
199
|
+
facilityIds?: number[];
|
|
197
200
|
lineItems: LineItems[];
|
|
198
201
|
invoiceToPayments: InvoiceToPayment[];
|
|
199
202
|
stripePaymentMethodId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA+D;AAC/D,2EAAuG;
|
|
1
|
+
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA+D;AAC/D,2EAAuG;AAQvG,8EAAyG;AA0BzG,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAE9C;AAFD,sCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,iCAAkC,SAAQ,YAAY;CAElE;AAFD,8EAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;AAED,MAAa,qBAAsB,SAAQ,YAAY;CAEtD;AAFD,sDAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAsBnD;AAtBD,0CAsBC;AAED,MAAa,YAAa,SAAQ,eAAe;CAQhD;AARD,oCAQC;AAED,MAAa,WAAW;CAMvB;AAND,kCAMC;AAED,MAAa,gBAAgB;CAoB5B;AApBD,4CAoBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,YAAY;CAQhD;AARD,0CAQC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,oBAAqB,SAAQ,aAAa;CAEtD;AAFD,oDAEC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,qBAAsB,SAAQ,YAAY;CAMtD;AAND,sDAMC;AAED,MAAa,0BAA2B,SAAQ,4CAAyB;CAIxE;AAJD,gEAIC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,2CAA2C;AAC3C,MAAa,UAAW,SAAQ,kDAA0B;CA4FzD;AA5FD,gCA4FC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAgB1C;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
|
2
2
|
import { RefundTypeEnum } from '../types/enums/refund.enums';
|
|
3
|
+
import type { IRefund } from '../types/interfaces/refund.interfaces';
|
|
3
4
|
import { RevertMetaDto } from './payment.dto';
|
|
5
|
+
import { VoidLineItemDto } from './void.dto';
|
|
4
6
|
export declare class RevertPaymentsDto {
|
|
5
7
|
invoiceId: number;
|
|
6
8
|
paymentsIds: number[];
|
|
@@ -22,7 +24,6 @@ export declare class PaymentMethodDto {
|
|
|
22
24
|
}
|
|
23
25
|
export declare class RefundBaseDto {
|
|
24
26
|
invoiceId: number;
|
|
25
|
-
lineItems?: RefundAmountDto[];
|
|
26
27
|
fees?: RefundAmountDto[];
|
|
27
28
|
refundLineItemAmountDict?: {
|
|
28
29
|
[id: number]: number;
|
|
@@ -31,12 +32,19 @@ export declare class RefundBaseDto {
|
|
|
31
32
|
reasonId: number;
|
|
32
33
|
note?: string;
|
|
33
34
|
shiftId?: number;
|
|
34
|
-
meta?: RevertMetaDto;
|
|
35
35
|
}
|
|
36
|
-
export declare class RefundDto extends RefundBaseDto {
|
|
37
|
-
|
|
36
|
+
export declare class RefundDto extends RefundBaseDto implements IRefund {
|
|
37
|
+
lineItems?: RefundAmountDto[];
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
*/
|
|
41
|
+
export declare class RefundAndVoidLineItemDto extends VoidLineItemDto {
|
|
42
|
+
refundAmount?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Each line item may refund less than it voids; entries with no `refundAmount` are voided only.
|
|
46
|
+
*/
|
|
41
47
|
export declare class RefundAndVoidDto extends RefundBaseDto {
|
|
48
|
+
lineItems: RefundAndVoidLineItemDto[];
|
|
49
|
+
meta?: RevertMetaDto;
|
|
42
50
|
}
|