meemup-library 1.5.68 → 1.5.70

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.
@@ -0,0 +1,6 @@
1
+ declare enum EnumNotifyNewReservation {
2
+ NoAction = 0,
3
+ Notifiy = 1,
4
+ PopupDetail = 2
5
+ }
6
+ export default EnumNotifyNewReservation;
@@ -0,0 +1,7 @@
1
+ var EnumNotifyNewReservation;
2
+ (function (EnumNotifyNewReservation) {
3
+ EnumNotifyNewReservation[EnumNotifyNewReservation["NoAction"] = 0] = "NoAction";
4
+ EnumNotifyNewReservation[EnumNotifyNewReservation["Notifiy"] = 1] = "Notifiy";
5
+ EnumNotifyNewReservation[EnumNotifyNewReservation["PopupDetail"] = 2] = "PopupDetail";
6
+ })(EnumNotifyNewReservation || (EnumNotifyNewReservation = {}));
7
+ export default EnumNotifyNewReservation;
@@ -1,4 +1,5 @@
1
1
  import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
2
+ import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
2
3
  import EnumNotifyOnlineStoreNewOrder from "../../enums/EnumNotifyOnlineStoreNewOrder";
3
4
  import EnumPaymentState from "../../enums/EnumPaymentState";
4
5
  import EnumPointOfSaleDefaultSaveState from "../../enums/EnumPointOfSaleDefaultSaveState";
@@ -29,6 +30,7 @@ interface IPointOfSaleLocalSetting {
29
30
  timeoutAfterOnePeriodOfSyncLocalOrders: number;
30
31
  timeoutAfterFailSyncOneLocalOrder: number;
31
32
  actionForOnlineStoreNewOrder: EnumNotifyOnlineStoreNewOrder;
33
+ actionForNewReservation: EnumNotifyNewReservation;
32
34
  defaultCashPaymentState: EnumPaymentState;
33
35
  defaultDebitMachinePaymentState: EnumPaymentState;
34
36
  defaultTerminalPaymentState: EnumPaymentState;
@@ -1,4 +1,5 @@
1
1
  import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
2
+ import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
2
3
  import EnumNotifyOnlineStoreNewOrder from "../../enums/EnumNotifyOnlineStoreNewOrder";
3
4
  import EnumPaymentState from "../../enums/EnumPaymentState";
4
5
  import EnumPointOfSaleDefaultSaveState from "../../enums/EnumPointOfSaleDefaultSaveState";
@@ -25,6 +26,7 @@ export const initPointOfSaleLocalSetting = {
25
26
  timeoutAfterOnePeriodOfSyncLocalOrders: 300,
26
27
  timeoutAfterFailSyncOneLocalOrder: 15,
27
28
  actionForOnlineStoreNewOrder: EnumNotifyOnlineStoreNewOrder.NOTIFY_AND_OPEN_IF_POSSIBLE,
29
+ actionForNewReservation: EnumNotifyNewReservation.PopupDetail,
28
30
  defaultCashPaymentState: EnumPaymentState.NotPaid,
29
31
  defaultDebitMachinePaymentState: EnumPaymentState.NotPaid,
30
32
  defaultTerminalPaymentState: EnumPaymentState.NotPaid,
@@ -21,5 +21,8 @@ export default interface IPointOfSalePrintPlan {
21
21
  cashDrawerActOnPaymentTypes: EnumPaymentType[];
22
22
  cashDrawerActOnOrderTypes: EnumOrderType[];
23
23
  printInformationInPhotoFormat: boolean;
24
+ printWhenReservationCreated: boolean;
25
+ printWhenUserAcceptReservation: boolean;
26
+ printWhenUserRejectReservation: boolean;
24
27
  }
25
28
  export declare const initPointOfSalePrintPlan: IPointOfSalePrintPlan;
@@ -19,5 +19,8 @@ export const initPointOfSalePrintPlan = {
19
19
  openCashDrawerWhenPaidOrder: true,
20
20
  cashDrawerActOnPaymentTypes: [EnumPaymentType.Cash],
21
21
  cashDrawerActOnOrderTypes: [EnumOrderType.delivery, EnumOrderType.pickup, EnumOrderType.dining],
22
- printInformationInPhotoFormat: false
22
+ printInformationInPhotoFormat: false,
23
+ printWhenReservationCreated: true,
24
+ printWhenUserAcceptReservation: false,
25
+ printWhenUserRejectReservation: false,
23
26
  };
@@ -0,0 +1,5 @@
1
+ import IAnswer from "../IAnswer";
2
+ import IReservationSettings from "./IReservationSettings";
3
+ export interface IAnswerReservationSetting extends IAnswer {
4
+ data: IReservationSettings;
5
+ }
@@ -0,0 +1,8 @@
1
+ export default interface IReservationSettings {
2
+ status: boolean;
3
+ linkText: string | null;
4
+ notes: string | null;
5
+ cancellationDeadline: number;
6
+ submissionDeadline: number;
7
+ }
8
+ export declare const initReservationSettings: IReservationSettings;
@@ -0,0 +1,7 @@
1
+ export const initReservationSettings = {
2
+ cancellationDeadline: 18,
3
+ linkText: null,
4
+ notes: null,
5
+ status: false,
6
+ submissionDeadline: 20
7
+ };
@@ -0,0 +1,5 @@
1
+ import ITable from "../ITable";
2
+ import IReservationTableRow from "./IReservationTableRow";
3
+ export default interface IReservationTable extends ITable {
4
+ data: IReservationTableRow[];
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import IAnswer from "../IAnswer";
2
+ import IReservationTable from "./IReservationTable";
3
+ export interface IReservationTableAnswer extends IAnswer {
4
+ data: IReservationTable;
5
+ }
6
+ export declare const initReservationTableAnswer: IReservationTableAnswer;
@@ -0,0 +1,18 @@
1
+ export const initReservationTableAnswer = {
2
+ success: false,
3
+ message: "",
4
+ exception: null,
5
+ data: {
6
+ pageNumber: 1,
7
+ countItems: 0,
8
+ totalPages: 1,
9
+ currentPage: 1,
10
+ lastPage: true,
11
+ search: "",
12
+ sortableFields: [],
13
+ sortField: "",
14
+ take: 25,
15
+ sortMode: 1,
16
+ data: []
17
+ }
18
+ };
@@ -0,0 +1,20 @@
1
+ export default interface IReservationTableRow {
2
+ companyConfirmDateTime: string | null;
3
+ customerCancelDateTime: string | null;
4
+ customerCancelDescription: string | null;
5
+ companyRejectDateTime: string | null;
6
+ companyRejectDescription: string | null;
7
+ id: number;
8
+ customerId: number;
9
+ customer: string;
10
+ customerPhoneNumber: string;
11
+ customerEmail: string;
12
+ numberOfPersons: number;
13
+ meetType: number;
14
+ meetTypeText: string;
15
+ dateTime: string;
16
+ startDateTime: string;
17
+ description: string;
18
+ status: number;
19
+ statusText: string;
20
+ }
@@ -0,0 +1 @@
1
+ export type ReservationFilterMode = "All" | "Canceled" | "Rejected" | "Today";
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.5.68",
3
+ "version": "1.5.70",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.5.68\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.5.70\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"