@bondsports/types 2.4.38 → 2.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/dto/cart.dto.d.ts +3 -0
- package/dist/types/cart/dto/cart.dto.js.map +1 -1
- package/dist/types/cart/entities/cart.entity.d.ts +1 -0
- package/dist/types/cart/entities/cart.entity.js.map +1 -1
- package/dist/types/dto/general.dto.d.ts +1 -1
- package/dist/types/dto/index.d.ts +1 -0
- package/dist/types/dto/index.js +1 -0
- package/dist/types/dto/index.js.map +1 -1
- package/dist/types/dto/package.dto.d.ts +2 -0
- package/dist/types/dto/package.dto.js.map +1 -1
- package/dist/types/dto/station.dto.d.ts +6 -0
- package/dist/types/dto/station.dto.js +8 -0
- package/dist/types/dto/station.dto.js.map +1 -0
- package/dist/types/entity/Facility.d.ts +4 -0
- package/dist/types/entity/Facility.js.map +1 -1
- package/dist/types/entity/Invoice.d.ts +2 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/entity/Station.d.ts +4 -0
- package/dist/types/entity/Station.js.map +1 -1
- package/dist/types/facilities/types/facilities.types.d.ts +20 -1
- package/dist/types/fee/dto/fee.dto.d.ts +7 -4
- package/dist/types/fee/dto/fee.dto.js +11 -0
- package/dist/types/fee/dto/fee.dto.js.map +1 -1
- package/dist/types/fee/entities/Fee.d.ts +3 -2
- package/dist/types/fee/entities/Fee.js.map +1 -1
- package/dist/types/fee/types/enums/fee.enums.d.ts +5 -0
- package/dist/types/fee/types/enums/fee.enums.js +10 -0
- package/dist/types/fee/types/enums/fee.enums.js.map +1 -0
- package/dist/types/fee/types/enums/index.d.ts +1 -0
- package/dist/types/fee/types/enums/index.js +18 -0
- package/dist/types/fee/types/enums/index.js.map +1 -0
- package/dist/types/fee/types/index.d.ts +1 -0
- package/dist/types/fee/types/index.js +1 -0
- package/dist/types/fee/types/index.js.map +1 -1
- package/dist/types/fee/types/interfaces/fee.interfaces.d.ts +1 -0
- package/dist/types/fee/types/interfaces/fee.interfaces.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +8 -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/league-standings/dto/game.dto.d.ts +2 -2
- package/dist/types/league-standings/entities/game.entity.d.ts +4 -4
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.d.ts +43 -3
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.js +28 -1
- package/dist/types/leagues-scheduler/dto/leagues-scheduler.dto.js.map +1 -1
- package/dist/types/leagues-scheduler/types/interfaces.d.ts +54 -1
- package/dist/types/leagues-scheduler/types/interfaces.js +6 -1
- package/dist/types/leagues-scheduler/types/interfaces.js.map +1 -1
- package/dist/types/media/entities/Media.d.ts +2 -0
- package/dist/types/media/entities/Media.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +1 -0
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +1 -0
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +1 -0
- package/dist/types/product-pricing/dto/product-categories.dto.d.ts +16 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js +4 -1
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +6 -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 +6 -0
- package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -1
- 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/entities/station-to-product-category.entity.d.ts +12 -0
- package/dist/types/product-pricing/entities/station-to-product-category.entity.js +8 -0
- package/dist/types/product-pricing/entities/station-to-product-category.entity.js.map +1 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +8 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js +4 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +10 -0
- package/dist/types/purchase/dto/purchase.dto.d.ts +2 -0
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +15 -0
- package/dist/types/session-participants/types/interfaces.d.ts +2 -2
- package/dist/types/tip-configurations/dto/index.d.ts +1 -0
- package/dist/types/tip-configurations/dto/index.js +18 -0
- package/dist/types/tip-configurations/dto/index.js.map +1 -0
- package/dist/types/tip-configurations/dto/tip-configuration.dto.d.ts +43 -0
- package/dist/types/tip-configurations/dto/tip-configuration.dto.js +37 -0
- package/dist/types/tip-configurations/dto/tip-configuration.dto.js.map +1 -0
- package/dist/types/tip-configurations/entities/TipConfiguration.d.ts +11 -0
- package/dist/types/tip-configurations/entities/TipConfiguration.js +8 -0
- package/dist/types/tip-configurations/entities/TipConfiguration.js.map +1 -0
- package/dist/types/tip-configurations/entities/index.d.ts +1 -0
- package/dist/types/tip-configurations/entities/index.js +18 -0
- package/dist/types/tip-configurations/entities/index.js.map +1 -0
- package/dist/types/tip-configurations/index.d.ts +3 -0
- package/dist/types/tip-configurations/index.js +20 -0
- package/dist/types/tip-configurations/index.js.map +1 -0
- package/dist/types/tip-configurations/types/consts/index.d.ts +1 -0
- package/dist/types/tip-configurations/types/consts/index.js +18 -0
- package/dist/types/tip-configurations/types/consts/index.js.map +1 -0
- package/dist/types/tip-configurations/types/consts/tip-configuration.consts.d.ts +4 -0
- package/dist/types/tip-configurations/types/consts/tip-configuration.consts.js +7 -0
- package/dist/types/tip-configurations/types/consts/tip-configuration.consts.js.map +1 -0
- package/dist/types/tip-configurations/types/enums/index.d.ts +1 -0
- package/dist/types/tip-configurations/types/enums/index.js +18 -0
- package/dist/types/tip-configurations/types/enums/index.js.map +1 -0
- package/dist/types/tip-configurations/types/enums/tipping-mode.enum.d.ts +9 -0
- package/dist/types/tip-configurations/types/enums/tipping-mode.enum.js +15 -0
- package/dist/types/tip-configurations/types/enums/tipping-mode.enum.js.map +1 -0
- package/dist/types/tip-configurations/types/index.d.ts +3 -0
- package/dist/types/tip-configurations/types/index.js +20 -0
- package/dist/types/tip-configurations/types/index.js.map +1 -0
- package/dist/types/tip-configurations/types/interfaces/index.d.ts +1 -0
- package/dist/types/tip-configurations/types/interfaces/index.js +18 -0
- package/dist/types/tip-configurations/types/interfaces/index.js.map +1 -0
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.d.ts +44 -0
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.js +3 -0
- package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Facility } from '../../entity/Facility';
|
|
2
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
3
|
+
import { TippingModeEnum } from '../types/enums/tipping-mode.enum';
|
|
4
|
+
import { ITipConfigOptions } from '../types/interfaces/tip-configuration.interfaces';
|
|
5
|
+
export declare class TipConfiguration extends OrganizationConnectionBaseEntity {
|
|
6
|
+
type: TippingModeEnum;
|
|
7
|
+
config: ITipConfigOptions;
|
|
8
|
+
deletedAt?: Date;
|
|
9
|
+
facilities?: Facility[];
|
|
10
|
+
}
|
|
11
|
+
export type TipConfigurationRelation = 'facilities';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipConfiguration = void 0;
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
class TipConfiguration extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.TipConfiguration = TipConfiguration;
|
|
8
|
+
//# sourceMappingURL=TipConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TipConfiguration.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/entities/TipConfiguration.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAIjG,MAAa,gBAAiB,SAAQ,mEAAgC;CAQrE;AARD,4CAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TipConfiguration';
|
|
@@ -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("./TipConfiguration"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
__exportStar(require("./entities"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/tip-configurations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tip-configuration.consts';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./tip-configuration.consts"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIPS_EXPECTED_VALUES_LENGTH = exports.TIP_CONFIG_FIELDS = exports.MAX_TIP_PERCENTAGE = void 0;
|
|
4
|
+
exports.MAX_TIP_PERCENTAGE = 50;
|
|
5
|
+
exports.TIP_CONFIG_FIELDS = ['percentages', 'fixedAmounts', 'smartTipThreshold'];
|
|
6
|
+
exports.TIPS_EXPECTED_VALUES_LENGTH = 3;
|
|
7
|
+
//# sourceMappingURL=tip-configuration.consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tip-configuration.consts.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/consts/tip-configuration.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAExB,QAAA,iBAAiB,GAAgC,CAAC,aAAa,EAAE,cAAc,EAAE,mBAAmB,CAAC,CAAC;AAEtG,QAAA,2BAA2B,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tipping-mode.enum';
|
|
@@ -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("./tipping-mode.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipConfigOrderByEnum = exports.TippingModeEnum = void 0;
|
|
4
|
+
var TippingModeEnum;
|
|
5
|
+
(function (TippingModeEnum) {
|
|
6
|
+
TippingModeEnum["FIXED"] = "FIXED";
|
|
7
|
+
TippingModeEnum["PERCENTAGE"] = "PERCENTAGE";
|
|
8
|
+
TippingModeEnum["SMART"] = "SMART";
|
|
9
|
+
})(TippingModeEnum = exports.TippingModeEnum || (exports.TippingModeEnum = {}));
|
|
10
|
+
var TipConfigOrderByEnum;
|
|
11
|
+
(function (TipConfigOrderByEnum) {
|
|
12
|
+
TipConfigOrderByEnum["UPDATED_AT"] = "updatedAt";
|
|
13
|
+
TipConfigOrderByEnum["TYPE"] = "type";
|
|
14
|
+
})(TipConfigOrderByEnum = exports.TipConfigOrderByEnum || (exports.TipConfigOrderByEnum = {}));
|
|
15
|
+
//# sourceMappingURL=tipping-mode.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tipping-mode.enum.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/enums/tipping-mode.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,kCAAe,CAAA;IACf,4CAAyB,CAAA;IACzB,kCAAe,CAAA;AAChB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,gDAAwB,CAAA;IACxB,qCAAa,CAAA;AACd,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./consts"), exports);
|
|
18
|
+
__exportStar(require("./enums"), exports);
|
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tip-configuration.interfaces';
|
|
@@ -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("./tip-configuration.interfaces"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OrderByEnum } from '../../../services/enums.service';
|
|
2
|
+
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
3
|
+
import { TipConfigOrderByEnum, TippingModeEnum } from '../enums/tipping-mode.enum';
|
|
4
|
+
export interface ITipConfigOptions {
|
|
5
|
+
fixedAmounts?: number[];
|
|
6
|
+
percentages?: number[];
|
|
7
|
+
smartTipThreshold?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface IStripeTippingConfig {
|
|
10
|
+
fixed_amounts?: number[];
|
|
11
|
+
percentages?: number[];
|
|
12
|
+
smart_tip_threshold?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ITipConfigFacility {
|
|
15
|
+
id: number;
|
|
16
|
+
locationId: string;
|
|
17
|
+
name: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ITypeAndConfig {
|
|
20
|
+
config: ITipConfigOptions;
|
|
21
|
+
type: TippingModeEnum;
|
|
22
|
+
}
|
|
23
|
+
export interface ICreateTipConfig {
|
|
24
|
+
allFacilities?: boolean;
|
|
25
|
+
config: ITipConfigOptions;
|
|
26
|
+
facilityIds?: number[];
|
|
27
|
+
type: TippingModeEnum;
|
|
28
|
+
}
|
|
29
|
+
export interface IUpdateTipConfig {
|
|
30
|
+
allFacilities?: boolean;
|
|
31
|
+
config?: ITipConfigOptions;
|
|
32
|
+
facilitiesIdsToAdd?: number[];
|
|
33
|
+
facilitiesIdsToRemove?: number[];
|
|
34
|
+
type?: TippingModeEnum;
|
|
35
|
+
}
|
|
36
|
+
export interface ICleanupOrphanedTipConfigsOptions {
|
|
37
|
+
specificIds?: number[];
|
|
38
|
+
}
|
|
39
|
+
export interface IListTipConfigFilters extends IPagination {
|
|
40
|
+
order?: OrderByEnum;
|
|
41
|
+
search?: string;
|
|
42
|
+
sortBy?: TipConfigOrderByEnum;
|
|
43
|
+
types?: TippingModeEnum[];
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tip-configuration.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/interfaces/tip-configuration.interfaces.ts"],"names":[],"mappings":""}
|