turf-common 1.1.1-beta.4 → 1.1.1-beta.6
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/build/enums/configuration-key.enum.d.ts +3 -2
- package/build/enums/configuration-key.enum.js +2 -0
- package/build/enums/cron-jobs-name.enum.d.ts +2 -1
- package/build/enums/cron-jobs-name.enum.js +1 -0
- package/build/interface/api/get-cancelled-booking.interface.d.ts +7 -0
- package/build/interface/api/get-cancelled-booking.interface.js +2 -0
- package/build/interface/api/index.d.ts +1 -0
- package/build/interface/api/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CronJobsNames } from
|
|
1
|
+
import { CronJobsNames } from "./cron-jobs-name.enum";
|
|
2
2
|
export declare enum ConfigurationKey {
|
|
3
|
-
SEND_DAILY_COLLECTION = "send_daily_collection"
|
|
3
|
+
SEND_DAILY_COLLECTION = "send_daily_collection",
|
|
4
|
+
SUBSCRIPTION_REMAINDER = "subscription_remainder"
|
|
4
5
|
}
|
|
5
6
|
export declare namespace ConfigurationKey {
|
|
6
7
|
function CronJobsConfigurationsKeys(key: ConfigurationKey): boolean;
|
|
@@ -5,6 +5,7 @@ var cron_jobs_name_enum_1 = require("./cron-jobs-name.enum");
|
|
|
5
5
|
var ConfigurationKey;
|
|
6
6
|
(function (ConfigurationKey) {
|
|
7
7
|
ConfigurationKey["SEND_DAILY_COLLECTION"] = "send_daily_collection";
|
|
8
|
+
ConfigurationKey["SUBSCRIPTION_REMAINDER"] = "subscription_remainder";
|
|
8
9
|
})(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
|
|
9
10
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
10
11
|
(function (ConfigurationKey) {
|
|
@@ -18,6 +19,7 @@ var ConfigurationKey;
|
|
|
18
19
|
var _a;
|
|
19
20
|
var cronJobConfigurationKeyMapping = (_a = {},
|
|
20
21
|
_a[ConfigurationKey.SEND_DAILY_COLLECTION] = cron_jobs_name_enum_1.CronJobsNames.SEND_DAILY_COLLECTION,
|
|
22
|
+
_a[ConfigurationKey.SUBSCRIPTION_REMAINDER] = cron_jobs_name_enum_1.CronJobsNames.SUBSCRIPTION_REMAINDER,
|
|
21
23
|
_a);
|
|
22
24
|
return cronJobConfigurationKeyMapping[configurationKey];
|
|
23
25
|
}
|
|
@@ -4,4 +4,5 @@ exports.CronJobsNames = void 0;
|
|
|
4
4
|
var CronJobsNames;
|
|
5
5
|
(function (CronJobsNames) {
|
|
6
6
|
CronJobsNames["SEND_DAILY_COLLECTION"] = "send_daily_collection";
|
|
7
|
+
CronJobsNames["SUBSCRIPTION_REMAINDER"] = "subscription_remainder";
|
|
7
8
|
})(CronJobsNames || (exports.CronJobsNames = CronJobsNames = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IBookingHistoryEntity, IModifyEntity } from "../../@type";
|
|
2
|
+
export interface IGetCancelledBookingsResponse {
|
|
3
|
+
[turfId: string]: ISortByDateCodeResponse;
|
|
4
|
+
}
|
|
5
|
+
export interface ISortByDateCodeResponse {
|
|
6
|
+
[dateCode: string]: IModifyEntity<IBookingHistoryEntity>[];
|
|
7
|
+
}
|
|
@@ -87,3 +87,4 @@ __exportStar(require("./create-user.interface"), exports);
|
|
|
87
87
|
__exportStar(require("./update-turf-details.interface"), exports);
|
|
88
88
|
__exportStar(require("./create-registration-interface"), exports);
|
|
89
89
|
__exportStar(require("./get-configuration.interface"), exports);
|
|
90
|
+
__exportStar(require("./get-cancelled-booking.interface"), exports);
|