@bondsports/types 2.4.11 → 2.4.14-squad-c-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/auth/auth-headers-names.enum.d.ts +6 -0
- package/dist/types/auth/auth-headers-names.enum.js +8 -1
- package/dist/types/auth/auth-headers-names.enum.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
- package/dist/types/customers/dto/add-family-member.dto.d.ts +2 -1
- package/dist/types/customers/dto/add-family-member.dto.js.map +1 -1
- package/dist/types/customers/dto/customer-response.dto.d.ts +9 -0
- package/dist/types/customers/dto/customer-response.dto.js +9 -1
- package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +4 -0
- package/dist/types/entity/Invoice.d.ts +2 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/invoice/types/consts/index.d.ts +1 -0
- package/dist/types/invoice/types/consts/index.js +1 -0
- package/dist/types/invoice/types/consts/index.js.map +1 -1
- package/dist/types/invoice/types/consts/invoice-visibility.consts.d.ts +11 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js +24 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js.map +1 -0
- package/dist/types/invoice/types/enums/index.d.ts +1 -0
- package/dist/types/invoice/types/enums/index.js +18 -0
- package/dist/types/invoice/types/enums/index.js.map +1 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.d.ts +19 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js +25 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js.map +1 -0
- package/dist/types/invoice/types/index.d.ts +1 -0
- package/dist/types/invoice/types/index.js +1 -0
- package/dist/types/invoice/types/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js +3 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js.map +1 -0
- package/dist/types/league-standings/interfaces/index.d.ts +4 -0
- package/dist/types/league-standings/interfaces/index.js +4 -0
- package/dist/types/league-standings/interfaces/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/standings.interface.d.ts +4 -0
- package/dist/types/league-standings/interfaces/standings.interface.js +3 -0
- package/dist/types/league-standings/interfaces/standings.interface.js.map +1 -0
- package/dist/types/product-pricing/dto/index.d.ts +1 -0
- package/dist/types/product-pricing/dto/index.js +1 -0
- package/dist/types/product-pricing/dto/index.js.map +1 -1
- package/dist/types/product-pricing/dto/product-categories.dto.d.ts +43 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js +30 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/index.d.ts +1 -0
- package/dist/types/product-pricing/entities/index.js +1 -0
- package/dist/types/product-pricing/entities/index.js.map +1 -1
- package/dist/types/product-pricing/entities/product-category.entity.d.ts +12 -0
- package/dist/types/product-pricing/entities/product-category.entity.js +8 -0
- package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -0
- package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
- package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
- package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
- package/dist/types/product-pricing/types/consts/index.js +1 -0
- package/dist/types/product-pricing/types/consts/index.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +455 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js +116 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -0
- package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
- package/dist/types/product-pricing/types/enums/index.js +1 -0
- package/dist/types/product-pricing/types/enums/index.js.map +1 -1
- package/dist/types/product-pricing/types/enums/product-categories.enums.d.ts +8 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js +13 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js.map +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +2 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +25 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js +3 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +3 -0
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +0 -1
- package/dist/types/programs-seasons/dto/program-session.dto.d.ts +1 -0
- package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +20 -2
- package/dist/types/punch-pass/types/interfaces.d.ts +38 -0
- package/dist/types/services/enums.service.d.ts +3 -1
- package/dist/types/services/enums.service.js +2 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/session-participants/types/interfaces.d.ts +27 -0
- package/package.json +4 -3
|
@@ -4,3 +4,9 @@ export declare enum AuthHeadersNamesEnum {
|
|
|
4
4
|
RefreshToken = "X-BondUserRefreshToken",
|
|
5
5
|
Username = "X-BondUserUsername"
|
|
6
6
|
}
|
|
7
|
+
export declare enum AuthCookieNamesEnum {
|
|
8
|
+
AccessToken = "BondUserAccessToken",
|
|
9
|
+
IdToken = "BondUserIdToken",
|
|
10
|
+
RefreshToken = "BondUserRefreshToken",
|
|
11
|
+
Username = "BondUserUsername"
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthHeadersNamesEnum = void 0;
|
|
3
|
+
exports.AuthCookieNamesEnum = exports.AuthHeadersNamesEnum = void 0;
|
|
4
4
|
var AuthHeadersNamesEnum;
|
|
5
5
|
(function (AuthHeadersNamesEnum) {
|
|
6
6
|
AuthHeadersNamesEnum["AccessToken"] = "X-BondUserAccessToken";
|
|
@@ -8,4 +8,11 @@ var AuthHeadersNamesEnum;
|
|
|
8
8
|
AuthHeadersNamesEnum["RefreshToken"] = "X-BondUserRefreshToken";
|
|
9
9
|
AuthHeadersNamesEnum["Username"] = "X-BondUserUsername";
|
|
10
10
|
})(AuthHeadersNamesEnum = exports.AuthHeadersNamesEnum || (exports.AuthHeadersNamesEnum = {}));
|
|
11
|
+
var AuthCookieNamesEnum;
|
|
12
|
+
(function (AuthCookieNamesEnum) {
|
|
13
|
+
AuthCookieNamesEnum["AccessToken"] = "BondUserAccessToken";
|
|
14
|
+
AuthCookieNamesEnum["IdToken"] = "BondUserIdToken";
|
|
15
|
+
AuthCookieNamesEnum["RefreshToken"] = "BondUserRefreshToken";
|
|
16
|
+
AuthCookieNamesEnum["Username"] = "BondUserUsername";
|
|
17
|
+
})(AuthCookieNamesEnum = exports.AuthCookieNamesEnum || (exports.AuthCookieNamesEnum = {}));
|
|
11
18
|
//# sourceMappingURL=auth-headers-names.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-headers-names.enum.js","sourceRoot":"","sources":["../../../src/types/auth/auth-headers-names.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,+DAAuC,CAAA;IACvC,uDAA+B,CAAA;AAChC,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B"}
|
|
1
|
+
{"version":3,"file":"auth-headers-names.enum.js","sourceRoot":"","sources":["../../../src/types/auth/auth-headers-names.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC/B,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,+DAAuC,CAAA;IACvC,uDAA+B,CAAA;AAChC,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC9B,0DAAmC,CAAA;IACnC,kDAA2B,CAAA;IAC3B,4DAAqC,CAAA;IACrC,oDAA6B,CAAA;AAC9B,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CreateCustomerDto } from './customer.dto';
|
|
2
|
+
import { SimpleCustomerDto } from './customer-response.dto';
|
|
2
3
|
export declare class AddMembersDto {
|
|
3
4
|
customerIds?: number[];
|
|
4
5
|
customers?: CreateCustomerDto[];
|
|
5
6
|
}
|
|
6
7
|
export declare class NewFamilyMembersDto {
|
|
7
8
|
familyCustomerId: number;
|
|
8
|
-
|
|
9
|
+
newMembers: SimpleCustomerDto[];
|
|
9
10
|
}
|
|
10
11
|
export declare class AddMembersResponseDto {
|
|
11
12
|
data: NewFamilyMembersDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-family-member.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/add-family-member.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"add-family-member.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/add-family-member.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC"}
|
|
@@ -3,6 +3,15 @@ import { MediaDto } from '../../media/dto/media.dto';
|
|
|
3
3
|
import { UserPaymentMethodDto } from '../../payment/dtos/user-payment-method.dto';
|
|
4
4
|
import { CustomerTypeEnum } from '../../services/enums.service';
|
|
5
5
|
import { CustomerFamilyStatusEnum } from '../types/enums';
|
|
6
|
+
/**
|
|
7
|
+
* DTO representing minimal customer information for public/obscured views.
|
|
8
|
+
* Used when customer details should be partially hidden from viewers
|
|
9
|
+
* (e.g., when viewing an invoice that belongs to another customer).
|
|
10
|
+
*/
|
|
11
|
+
export declare class ObfuscatedCustomerDto {
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
}
|
|
6
15
|
export declare class EmergencyContactDto {
|
|
7
16
|
customerId: number;
|
|
8
17
|
name?: string;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomersPaymentMethodsResponseDto = exports.GetCustomerQueryDto = exports.SimpleCustomerDto = exports.EmergencyContactDto = void 0;
|
|
3
|
+
exports.CustomersPaymentMethodsResponseDto = exports.GetCustomerQueryDto = exports.SimpleCustomerDto = exports.EmergencyContactDto = exports.ObfuscatedCustomerDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
|
+
/**
|
|
6
|
+
* DTO representing minimal customer information for public/obscured views.
|
|
7
|
+
* Used when customer details should be partially hidden from viewers
|
|
8
|
+
* (e.g., when viewing an invoice that belongs to another customer).
|
|
9
|
+
*/
|
|
10
|
+
class ObfuscatedCustomerDto {
|
|
11
|
+
}
|
|
12
|
+
exports.ObfuscatedCustomerDto = ObfuscatedCustomerDto;
|
|
5
13
|
class EmergencyContactDto {
|
|
6
14
|
}
|
|
7
15
|
exports.EmergencyContactDto = EmergencyContactDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-response.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer-response.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAM9C,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAwB3C;AAxBD,8CAwBC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC"}
|
|
1
|
+
{"version":3,"file":"customer-response.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer-response.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAM9C;;;;GAIG;AACH,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAwB3C;AAxBD,8CAwBC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC"}
|
|
@@ -11,6 +11,7 @@ import { Slot } from '../reservations/entities/slot.entity';
|
|
|
11
11
|
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
|
|
12
12
|
import { User } from '../user/entities/User';
|
|
13
13
|
import { BondBaseEntity } from './BondBaseEntity';
|
|
14
|
+
import { ObfuscatedCustomerDto } from '../customers/dto/customer-response.dto';
|
|
14
15
|
import { Customer } from './Customer';
|
|
15
16
|
import { InvoiceNote } from './InvoiceNote';
|
|
16
17
|
import { InvoiceToPayment } from './InvoiceToPayment';
|
|
@@ -57,6 +58,7 @@ export declare class Invoice extends BondBaseEntity {
|
|
|
57
58
|
subtotal?: number;
|
|
58
59
|
subtotalBalance?: number;
|
|
59
60
|
customer?: Customer;
|
|
61
|
+
obfuscatedCustomer?: ObfuscatedCustomerDto;
|
|
60
62
|
hasFailedPayments?: boolean;
|
|
61
63
|
hasFailedInstallments?: boolean;
|
|
62
64
|
reservations?: Reservation[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAoBA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAoBA,qDAAkD;AAQlD,MAAa,OAAQ,SAAQ,+BAAc;CAuG1C;AAvGD,0BAuGC"}
|
|
@@ -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("./invoice-visibility.consts"), exports);
|
|
17
18
|
__exportStar(require("./invoice.consts"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,mDAAiC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InvoiceViewerRoleEnum, InvoiceVisibilityFieldEnum } from '../enums/invoice-visibility.enums';
|
|
2
|
+
/**
|
|
3
|
+
* Defines which fields are HIDDEN for each role.
|
|
4
|
+
* - Admin has nothing hidden (empty array)
|
|
5
|
+
* - Other customer is most restrictive (fallback)
|
|
6
|
+
*
|
|
7
|
+
* To hide a new field:
|
|
8
|
+
* 1. Add it to InvoiceVisibilityFieldEnum
|
|
9
|
+
* 2. Add it to the roles that should NOT see it below
|
|
10
|
+
*/
|
|
11
|
+
export declare const INVOICE_RESTRICT_VISIBILITY_CONFIG: Record<InvoiceViewerRoleEnum, InvoiceVisibilityFieldEnum[]>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVOICE_RESTRICT_VISIBILITY_CONFIG = void 0;
|
|
4
|
+
const invoice_visibility_enums_1 = require("../enums/invoice-visibility.enums");
|
|
5
|
+
/**
|
|
6
|
+
* Defines which fields are HIDDEN for each role.
|
|
7
|
+
* - Admin has nothing hidden (empty array)
|
|
8
|
+
* - Other customer is most restrictive (fallback)
|
|
9
|
+
*
|
|
10
|
+
* To hide a new field:
|
|
11
|
+
* 1. Add it to InvoiceVisibilityFieldEnum
|
|
12
|
+
* 2. Add it to the roles that should NOT see it below
|
|
13
|
+
*/
|
|
14
|
+
exports.INVOICE_RESTRICT_VISIBILITY_CONFIG = {
|
|
15
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.ADMIN]: [],
|
|
16
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.OWNER]: [],
|
|
17
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.FAMILY_MEMBER]: [],
|
|
18
|
+
[invoice_visibility_enums_1.InvoiceViewerRoleEnum.OTHER_CUSTOMER]: [
|
|
19
|
+
invoice_visibility_enums_1.InvoiceVisibilityFieldEnum.PAYMENTS,
|
|
20
|
+
invoice_visibility_enums_1.InvoiceVisibilityFieldEnum.CUSTOMER_DETAILS,
|
|
21
|
+
invoice_visibility_enums_1.InvoiceVisibilityFieldEnum.SCHEDULED_PAYMENTS,
|
|
22
|
+
],
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=invoice-visibility.consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-visibility.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice-visibility.consts.ts"],"names":[],"mappings":";;;AAAA,gFAAsG;AAEtG;;;;;;;;GAQG;AACU,QAAA,kCAAkC,GAAgE;IAC9G,CAAC,gDAAqB,CAAC,KAAK,CAAC,EAAE,EAAE;IACjC,CAAC,gDAAqB,CAAC,KAAK,CAAC,EAAE,EAAE;IACjC,CAAC,gDAAqB,CAAC,aAAa,CAAC,EAAE,EAAE;IACzC,CAAC,gDAAqB,CAAC,cAAc,CAAC,EAAE;QACvC,qDAA0B,CAAC,QAAQ;QACnC,qDAA0B,CAAC,gBAAgB;QAC3C,qDAA0B,CAAC,kBAAkB;KAC7C;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './invoice-visibility.enums';
|
|
@@ -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("./invoice-visibility.enums"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the role of the user viewing an invoice.
|
|
3
|
+
* Used to determine what data should be visible to them.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum InvoiceViewerRoleEnum {
|
|
6
|
+
ADMIN = "admin",
|
|
7
|
+
OWNER = "owner",
|
|
8
|
+
FAMILY_MEMBER = "familyMember",
|
|
9
|
+
OTHER_CUSTOMER = "other"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Fields that can be hidden based on viewer role.
|
|
13
|
+
* Add new fields here as needed - no refactoring required.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum InvoiceVisibilityFieldEnum {
|
|
16
|
+
PAYMENTS = "payments",
|
|
17
|
+
CUSTOMER_DETAILS = "customerDetails",
|
|
18
|
+
SCHEDULED_PAYMENTS = "scheduledPayments"
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceVisibilityFieldEnum = exports.InvoiceViewerRoleEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Defines the role of the user viewing an invoice.
|
|
6
|
+
* Used to determine what data should be visible to them.
|
|
7
|
+
*/
|
|
8
|
+
var InvoiceViewerRoleEnum;
|
|
9
|
+
(function (InvoiceViewerRoleEnum) {
|
|
10
|
+
InvoiceViewerRoleEnum["ADMIN"] = "admin";
|
|
11
|
+
InvoiceViewerRoleEnum["OWNER"] = "owner";
|
|
12
|
+
InvoiceViewerRoleEnum["FAMILY_MEMBER"] = "familyMember";
|
|
13
|
+
InvoiceViewerRoleEnum["OTHER_CUSTOMER"] = "other";
|
|
14
|
+
})(InvoiceViewerRoleEnum = exports.InvoiceViewerRoleEnum || (exports.InvoiceViewerRoleEnum = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Fields that can be hidden based on viewer role.
|
|
17
|
+
* Add new fields here as needed - no refactoring required.
|
|
18
|
+
*/
|
|
19
|
+
var InvoiceVisibilityFieldEnum;
|
|
20
|
+
(function (InvoiceVisibilityFieldEnum) {
|
|
21
|
+
InvoiceVisibilityFieldEnum["PAYMENTS"] = "payments";
|
|
22
|
+
InvoiceVisibilityFieldEnum["CUSTOMER_DETAILS"] = "customerDetails";
|
|
23
|
+
InvoiceVisibilityFieldEnum["SCHEDULED_PAYMENTS"] = "scheduledPayments";
|
|
24
|
+
})(InvoiceVisibilityFieldEnum = exports.InvoiceVisibilityFieldEnum || (exports.InvoiceVisibilityFieldEnum = {}));
|
|
25
|
+
//# sourceMappingURL=invoice-visibility.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-visibility.enums.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/enums/invoice-visibility.enums.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,uDAA8B,CAAA;IAC9B,iDAAwB,CAAA;AACzB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAED;;;GAGG;AACH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACrC,mDAAqB,CAAA;IACrB,kEAAoC,CAAA;IACpC,sEAAwC,CAAA;AACzC,CAAC,EAJW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAIrC"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./consts"), exports);
|
|
18
|
+
__exportStar(require("./enums"), exports);
|
|
18
19
|
__exportStar(require("./interfaces"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CompetitionDivision } from '../entities/division.entity';
|
|
2
|
+
import { CompetitionTeam } from '../entities/team.entity';
|
|
3
|
+
export interface ICreateTeamDto {
|
|
4
|
+
divisionId: number;
|
|
5
|
+
folderId: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IAddTeamByFolderIdsResult {
|
|
8
|
+
division: CompetitionDivision;
|
|
9
|
+
team: CompetitionTeam;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"competition-team.interface.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/competition-team.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * from './competition-team.interface';
|
|
1
2
|
export * from './ruleset-defaults.interface';
|
|
3
|
+
export * from './standings.interface';
|
|
4
|
+
export * from './competition-team.interface';
|
|
2
5
|
export * from './index';
|
|
3
6
|
export * from './ruleset-defaults.interface';
|
|
7
|
+
export * from './standings.interface';
|
|
@@ -14,7 +14,11 @@ 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("./competition-team.interface"), exports);
|
|
17
18
|
__exportStar(require("./ruleset-defaults.interface"), exports);
|
|
19
|
+
__exportStar(require("./standings.interface"), exports);
|
|
20
|
+
__exportStar(require("./competition-team.interface"), exports);
|
|
18
21
|
__exportStar(require("./index"), exports);
|
|
19
22
|
__exportStar(require("./ruleset-defaults.interface"), exports);
|
|
23
|
+
__exportStar(require("./standings.interface"), exports);
|
|
20
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0CAAwB;AACxB,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,+DAA6C;AAC7C,wDAAsC;AACtC,+DAA6C;AAC7C,0CAAwB;AACxB,+DAA6C;AAC7C,wDAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standings.interface.js","sourceRoot":"","sources":["../../../../src/types/league-standings/interfaces/standings.interface.ts"],"names":[],"mappings":""}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product-categories.dto"), exports);
|
|
17
18
|
__exportStar(require("./product-pricing.dto"), exports);
|
|
18
19
|
__exportStar(require("./product-resource.dto"), exports);
|
|
19
20
|
__exportStar(require("./product.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
|
+
import { ByOrganizationIdDto, OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
|
+
import { ISettings } from '../../resource-settings/types/resource-settings.interfaces';
|
|
4
|
+
import { OrderByEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
5
|
+
import { CategoryOrderColumnEnum } from '../types/enums/product-categories.enums';
|
|
6
|
+
import { IGetProductCategories } from '../types/interfaces/product-categories.interfaces';
|
|
7
|
+
export declare class UpdateProductCategorySettingsDto<T extends Record<string, unknown> = ISettings> {
|
|
8
|
+
settings?: T;
|
|
9
|
+
}
|
|
10
|
+
export declare class UpdateProductCategoryBaseDto {
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class CreateProductCategoryDto<T extends Record<string, unknown> = ISettings> extends UpdateProductCategoryBaseDto {
|
|
15
|
+
settings?: T;
|
|
16
|
+
productType: ProductTypesEnum;
|
|
17
|
+
productsIds?: number[];
|
|
18
|
+
}
|
|
19
|
+
export declare class UpdateProductCategoryDto<T extends Record<string, unknown> = ISettings> extends UpdateProductCategoryBaseDto {
|
|
20
|
+
settings?: T;
|
|
21
|
+
productsIds?: number[];
|
|
22
|
+
}
|
|
23
|
+
export declare class ProductCategoryDto<T extends Record<string, unknown> = ISettings> extends OrganizationBaseEntityDto {
|
|
24
|
+
name?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
productType: ProductTypesEnum;
|
|
27
|
+
settings?: T;
|
|
28
|
+
productsCount?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare class GetProductCategoriesDto extends PaginationQuery implements IGetProductCategories {
|
|
31
|
+
order?: OrderByEnum;
|
|
32
|
+
orderBy?: CategoryOrderColumnEnum;
|
|
33
|
+
search?: string;
|
|
34
|
+
categoriesIds?: number[];
|
|
35
|
+
vipEnabled?: boolean;
|
|
36
|
+
approvalRequired?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare class ByOrganizationAndCategoryIdDto extends ByOrganizationIdDto {
|
|
39
|
+
categoryId: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class IncludeProductsCountDto {
|
|
42
|
+
includeProductsCount?: boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncludeProductsCountDto = exports.ByOrganizationAndCategoryIdDto = exports.GetProductCategoriesDto = exports.ProductCategoryDto = exports.UpdateProductCategoryDto = exports.CreateProductCategoryDto = exports.UpdateProductCategoryBaseDto = exports.UpdateProductCategorySettingsDto = void 0;
|
|
4
|
+
const general_dto_1 = require("../../dto/general.dto");
|
|
5
|
+
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
|
+
class UpdateProductCategorySettingsDto {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateProductCategorySettingsDto = UpdateProductCategorySettingsDto;
|
|
9
|
+
class UpdateProductCategoryBaseDto {
|
|
10
|
+
}
|
|
11
|
+
exports.UpdateProductCategoryBaseDto = UpdateProductCategoryBaseDto;
|
|
12
|
+
class CreateProductCategoryDto extends UpdateProductCategoryBaseDto {
|
|
13
|
+
}
|
|
14
|
+
exports.CreateProductCategoryDto = CreateProductCategoryDto;
|
|
15
|
+
class UpdateProductCategoryDto extends UpdateProductCategoryBaseDto {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateProductCategoryDto = UpdateProductCategoryDto;
|
|
18
|
+
class ProductCategoryDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
19
|
+
}
|
|
20
|
+
exports.ProductCategoryDto = ProductCategoryDto;
|
|
21
|
+
class GetProductCategoriesDto extends general_dto_1.PaginationQuery {
|
|
22
|
+
}
|
|
23
|
+
exports.GetProductCategoriesDto = GetProductCategoriesDto;
|
|
24
|
+
class ByOrganizationAndCategoryIdDto extends organization_dto_1.ByOrganizationIdDto {
|
|
25
|
+
}
|
|
26
|
+
exports.ByOrganizationAndCategoryIdDto = ByOrganizationAndCategoryIdDto;
|
|
27
|
+
class IncludeProductsCountDto {
|
|
28
|
+
}
|
|
29
|
+
exports.IncludeProductsCountDto = IncludeProductsCountDto;
|
|
30
|
+
//# sourceMappingURL=product-categories.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-categories.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-categories.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAAyG;AAMzG,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAMrC;AARD,4DAQC;AAED,MAAa,wBAEX,SAAQ,4BAA4B;CAIrC;AAND,4DAMC;AAED,MAAa,kBAAkE,SAAQ,4CAAyB;CAU/G;AAVD,gDAUC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAY3D;AAZD,0DAYC;AAED,MAAa,8BAA+B,SAAQ,sCAAmB;CAEtE;AAFD,wEAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
|
@@ -79,6 +79,7 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
|
|
|
79
79
|
includeProductResources?: boolean;
|
|
80
80
|
includeFacilities?: boolean;
|
|
81
81
|
includeGlCodes?: boolean;
|
|
82
|
+
includeProductCategories?: boolean;
|
|
82
83
|
includeArchived?: boolean;
|
|
83
84
|
includeCurrentPrice?: boolean;
|
|
84
85
|
includePricesSchedule?: boolean;
|
|
@@ -103,6 +104,8 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
|
|
|
103
104
|
punchPassOnly?: boolean;
|
|
104
105
|
includePaymentPlan?: boolean;
|
|
105
106
|
includeResourceSettings?: boolean;
|
|
107
|
+
productCategoryId?: number;
|
|
108
|
+
includeOnlyNotAssignedToCategory?: boolean;
|
|
106
109
|
}
|
|
107
110
|
export declare class GetPunchPassProductsByTypeQueryDto extends PaginationQuery implements IGetPunchPassProductsOptions {
|
|
108
111
|
search?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;
|
|
1
|
+
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAgE7D;AAhED,8DAgEC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAoBtE;AApBD,gFAoBC"}
|
|
@@ -17,6 +17,7 @@ import { ActivityEnum, AddonTimePeriodEnum, PlatformsEnum, ProductPackageLevelEn
|
|
|
17
17
|
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
|
18
18
|
import { TaxDto } from '../../taxes/dto/tax.dto';
|
|
19
19
|
import { IGetResourcesProductsOptions, IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
|
20
|
+
import { ProductCategoryDto } from './product-categories.dto';
|
|
20
21
|
import { ProductResourceDto } from './product-resource.dto';
|
|
21
22
|
export declare class FindByProductIdDto {
|
|
22
23
|
productId: number;
|
|
@@ -194,6 +195,7 @@ export declare class ProductDto extends BaseProductDto {
|
|
|
194
195
|
entitlementDiscounts?: EntitlementDiscountDto[];
|
|
195
196
|
facilities?: FacilityDto[];
|
|
196
197
|
punchPass?: PunchPassDto;
|
|
198
|
+
productCategory?: ProductCategoryDto;
|
|
197
199
|
}
|
|
198
200
|
export declare class ResourceProductDto {
|
|
199
201
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;AAsB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAQjD;AARD,4CAQC;AAED,MAAa,cAAc;CA4G1B;AA5GD,wCA4GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAc7C;AAdD,gCAcC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product-category.entity"), exports);
|
|
17
18
|
__exportStar(require("./product-to-facility.entity"), exports);
|
|
18
19
|
__exportStar(require("./product.entity"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
|
+
import { ProductTypesEnum } from '../../services/enums.service';
|
|
3
|
+
import { Product } from './product.entity';
|
|
4
|
+
export declare class ProductCategory extends OrganizationConnectionBaseEntity {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
productType: ProductTypesEnum;
|
|
8
|
+
settings?: unknown;
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
products?: Product[];
|
|
11
|
+
productsCount?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCategory = void 0;
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
class ProductCategory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.ProductCategory = ProductCategory;
|
|
8
|
+
//# sourceMappingURL=product-category.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-category.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-category.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,eAAgB,SAAQ,mEAAgC;CAcpE;AAdD,0CAcC"}
|
|
@@ -23,6 +23,7 @@ import { Tax } from '../../taxes/entities/Tax';
|
|
|
23
23
|
import { ProductResourceDto } from '../dto/product-resource.dto';
|
|
24
24
|
import { ProductStateEnum } from '../types/enums/product.enums';
|
|
25
25
|
import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
|
26
|
+
import { ProductCategory } from './product-category.entity';
|
|
26
27
|
import { ProductToFacility } from './product-to-facility.entity';
|
|
27
28
|
export declare class Product extends OrganizationConnectionBaseEntity {
|
|
28
29
|
name: string;
|
|
@@ -63,6 +64,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
|
63
64
|
defaultPriceId?: number;
|
|
64
65
|
tax: number;
|
|
65
66
|
isTaxInclusive: boolean;
|
|
67
|
+
categoryId?: number;
|
|
68
|
+
productCategory?: ProductCategory;
|
|
66
69
|
defaultPrice?: Price;
|
|
67
70
|
addOns?: IChildProduct[];
|
|
68
71
|
productPaymentPlans?: ProductPaymentPlan[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAyBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAqJ5D;AArJD,0BAqJC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product-category.consts"), exports);
|
|
17
18
|
__exportStar(require("./product-pricing.consts"), exports);
|
|
18
19
|
__exportStar(require("./product-resource.consts"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C"}
|