@bondsports/types 1.19.76 → 1.19.78
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/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/payment/dto/discount.dto.d.ts +2 -2
- package/dist/types/payment/dto/void.dto.d.ts +2 -7
- package/dist/types/payment/dto/void.dto.js +0 -4
- package/dist/types/payment/dto/void.dto.js.map +1 -1
- package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +23 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.js +3 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -0
- 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/payment.interfaces.d.ts +2 -0
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +25 -5
- package/dist/types/payment/types/interfaces/void.interfaces.js +8 -0
- package/dist/types/payment/types/interfaces/void.interfaces.js.map +1 -1
- package/dist/types/questionnaires/dto/answerTitle.dto.d.ts +7 -0
- package/dist/types/questionnaires/dto/answerTitle.dto.js +7 -0
- package/dist/types/questionnaires/dto/answerTitle.dto.js.map +1 -0
- package/dist/types/questionnaires/dto/index.d.ts +2 -0
- package/dist/types/questionnaires/dto/index.js +19 -0
- package/dist/types/questionnaires/dto/index.js.map +1 -0
- package/dist/types/questionnaires/dto/questionnaire.dto.d.ts +8 -0
- package/dist/types/questionnaires/dto/questionnaire.dto.js +7 -0
- package/dist/types/questionnaires/dto/questionnaire.dto.js.map +1 -0
- package/dist/types/questionnaires/index.d.ts +1 -0
- package/dist/types/questionnaires/index.js +18 -0
- package/dist/types/questionnaires/index.js.map +1 -0
- package/dist/types/reservations/interfaces/invoice.d.ts +0 -4
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './product-pricing';
|
|
|
22
22
|
export * from './programs';
|
|
23
23
|
export * from './programs-seasons';
|
|
24
24
|
export * from './purchase';
|
|
25
|
+
export * from './questionnaires';
|
|
25
26
|
export * from './reservations';
|
|
26
27
|
export * from './resource-settings';
|
|
27
28
|
export * from './roles';
|
package/dist/types/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __exportStar(require("./product-pricing"), exports);
|
|
|
38
38
|
__exportStar(require("./programs"), exports);
|
|
39
39
|
__exportStar(require("./programs-seasons"), exports);
|
|
40
40
|
__exportStar(require("./purchase"), exports);
|
|
41
|
+
__exportStar(require("./questionnaires"), exports);
|
|
41
42
|
__exportStar(require("./reservations"), exports);
|
|
42
43
|
__exportStar(require("./resource-settings"), exports);
|
|
43
44
|
__exportStar(require("./roles"), 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,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,6CAA2B;AAC3B,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -63,8 +63,8 @@ export declare class UpdateDiscountsDto {
|
|
|
63
63
|
}
|
|
64
64
|
export declare class SetDiscountDto {
|
|
65
65
|
discountId: number;
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
amount?: number;
|
|
67
|
+
percentage?: number;
|
|
68
68
|
lineItemId?: number;
|
|
69
69
|
}
|
|
70
70
|
export declare class SetDiscountsDto {
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { DiscountOnEnum } from '../types/enums/discount.enums';
|
|
2
|
-
import { VoidTypeEnum } from '../types/enums/void.enums';
|
|
3
1
|
import { RevertMetaDto } from './payment.dto';
|
|
4
2
|
export declare class VoidLineItemDto {
|
|
5
3
|
id: number;
|
|
6
4
|
quantity?: number;
|
|
7
5
|
isEdit?: boolean;
|
|
8
|
-
amount?: number;
|
|
9
|
-
percentage?: number;
|
|
10
6
|
}
|
|
11
7
|
export declare class VoidDto {
|
|
12
8
|
lineItems: VoidLineItemDto[];
|
|
13
9
|
shiftId?: number;
|
|
10
|
+
reasonId?: number;
|
|
11
|
+
note?: string;
|
|
14
12
|
meta?: RevertMetaDto;
|
|
15
|
-
type?: VoidTypeEnum;
|
|
16
|
-
discountId?: number;
|
|
17
|
-
discountOn?: DiscountOnEnum;
|
|
18
13
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VoidDto = exports.VoidLineItemDto = void 0;
|
|
4
|
-
const void_enums_1 = require("../types/enums/void.enums");
|
|
5
4
|
class VoidLineItemDto {
|
|
6
5
|
}
|
|
7
6
|
exports.VoidLineItemDto = VoidLineItemDto;
|
|
8
7
|
class VoidDto {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.type = void_enums_1.VoidTypeEnum.VOID;
|
|
11
|
-
}
|
|
12
8
|
}
|
|
13
9
|
exports.VoidDto = VoidDto;
|
|
14
10
|
//# sourceMappingURL=void.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"void.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/void.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"void.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/void.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,OAAO;CAUnB;AAVD,0BAUC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Invoice } from '../../../entity/Invoice';
|
|
2
|
+
import { LineItems } from '../../../entity/LineItems';
|
|
3
|
+
export interface IDiscountsValidationsResult {
|
|
4
|
+
invoice: Invoice;
|
|
5
|
+
parentLineItems: LineItems[];
|
|
6
|
+
}
|
|
7
|
+
export interface IRoundingSplit {
|
|
8
|
+
splitsNumber: number;
|
|
9
|
+
splitAmount: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ISetDiscount {
|
|
12
|
+
discountId: number;
|
|
13
|
+
amount?: number;
|
|
14
|
+
percentage?: number;
|
|
15
|
+
lineItemId?: number;
|
|
16
|
+
lineItemsIds?: number[];
|
|
17
|
+
}
|
|
18
|
+
export interface ISetDiscounts {
|
|
19
|
+
discounts: ISetDiscount[];
|
|
20
|
+
reasonId: number;
|
|
21
|
+
note?: string;
|
|
22
|
+
shiftId?: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/discount.interfaces.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("./discount.interfaces"), exports);
|
|
17
18
|
__exportStar(require("./payment.interfaces"), exports);
|
|
18
19
|
__exportStar(require("./refund.interfaces"), exports);
|
|
19
20
|
__exportStar(require("./scheduled-payments.interfaces"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,kEAAgD;AAChD,sDAAoC;AACpC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,uDAAqC;AACrC,sDAAoC;AACpC,kEAAgD;AAChD,sDAAoC;AACpC,oDAAkC"}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
import { LineItems } from '../../../entity/LineItems';
|
|
2
2
|
import { TRevertedResources } from '../../../reservations/interfaces/reservation';
|
|
3
3
|
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { RevertMetaDto } from '../../dto/payment.dto';
|
|
5
|
+
import { DiscountOnEnum } from '../enums/discount.enums';
|
|
6
|
+
import { VoidTypeEnum } from '../enums/void.enums';
|
|
7
|
+
export interface IVoidValidationsResult {
|
|
8
|
+
voidDataDict: IVoidLineItemsDict;
|
|
9
9
|
lineItemsToVoid: LineItems[];
|
|
10
10
|
revertedResources: Map<ResourceNameTypeEnum, TRevertedResources[]>;
|
|
11
11
|
}
|
|
12
|
+
export interface IVoidLineItem {
|
|
13
|
+
id: number;
|
|
14
|
+
quantity?: number;
|
|
15
|
+
isEdit?: boolean;
|
|
16
|
+
amount?: number;
|
|
17
|
+
percentage?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare class IVoid {
|
|
20
|
+
lineItems: IVoidLineItem[];
|
|
21
|
+
type?: VoidTypeEnum;
|
|
22
|
+
shiftId?: number;
|
|
23
|
+
reasonId?: number;
|
|
24
|
+
note?: string;
|
|
25
|
+
meta?: RevertMetaDto;
|
|
26
|
+
discountId?: number;
|
|
27
|
+
discountOn?: DiscountOnEnum;
|
|
28
|
+
}
|
|
29
|
+
export interface IVoidLineItemsDict {
|
|
30
|
+
[id: number]: IVoidLineItem;
|
|
31
|
+
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IVoid = void 0;
|
|
4
|
+
const void_enums_1 = require("../enums/void.enums");
|
|
5
|
+
class IVoid {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.type = void_enums_1.VoidTypeEnum.VOID;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.IVoid = IVoid;
|
|
3
11
|
//# sourceMappingURL=void.interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"void.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/void.interfaces.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"void.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/void.interfaces.ts"],"names":[],"mappings":";;;AAKA,oDAAmD;AAgBnD,MAAa,KAAK;IAAlB;QAEC,SAAI,GAAkB,yBAAY,CAAC,IAAI,CAAC;IAOzC,CAAC;CAAA;AATD,sBASC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"answerTitle.dto.js","sourceRoot":"","sources":["../../../../src/types/questionnaires/dto/answerTitle.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./answerTitle.dto"), exports);
|
|
18
|
+
__exportStar(require("./questionnaire.dto"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/questionnaires/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionnaire.dto.js","sourceRoot":"","sources":["../../../../src/types/questionnaires/dto/questionnaire.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,gBAAgB;CAU5B;AAVD,4CAUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dto';
|
|
@@ -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("./dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/questionnaires/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
|
@@ -52,10 +52,6 @@ export interface OverrideLineItemPrice {
|
|
|
52
52
|
export interface OverrideProductsPricing {
|
|
53
53
|
[productInfo: string]: ProductPricesDto;
|
|
54
54
|
}
|
|
55
|
-
export interface RoundingSplit {
|
|
56
|
-
splitsNumber: number;
|
|
57
|
-
splitAmount: number;
|
|
58
|
-
}
|
|
59
55
|
export interface InvoiceReservationOptions {
|
|
60
56
|
invoice?: Invoice;
|
|
61
57
|
skipUpdateReservationPrice?: boolean;
|