gap-nodejs-sdk 1.0.125 → 1.0.127
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/api/go_check_in_api/1.0.0/api/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/api/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/api/notification.d.ts +13 -0
- package/dist/api/go_check_in_api/1.0.0/api/notification.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/api/notification.js +40 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/notification.d.ts +7 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/notification.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/notification.js +5 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/notification.d.ts +3 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/notification.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/notification.js +2 -0
- package/dist/api/go_check_in_api/1.0.0/models/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/models/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/models/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/models/notification.d.ts +33 -0
- package/dist/api/go_check_in_api/1.0.0/models/notification.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/models/notification.js +41 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/request/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/notification.d.ts +13 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/notification.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/notification.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/response/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/notification.d.ts +34 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/notification.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/notification.js +1 -0
- package/dist/api/go_check_in_api/index.d.ts +1 -0
- package/dist/api/go_check_in_api/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/index.js +1 -0
- package/dist/clover/Clover.d.ts +2 -5
- package/dist/clover/Clover.d.ts.map +1 -1
- package/dist/clover/Clover.js +9 -23
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -4,4 +4,5 @@ export { default as Service } from "./service";
|
|
|
4
4
|
export { default as Category } from "./category";
|
|
5
5
|
export { default as SMS } from "./sms";
|
|
6
6
|
export { default as Staff } from "./staff";
|
|
7
|
+
export { default as Notification } from "./notification";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import NotificationAbstractClass from "../interfaces/ticket";
|
|
2
|
+
import Base from "../../../../base/Base";
|
|
3
|
+
import { GapApiVersion } from "../../../../base_type";
|
|
4
|
+
import * as Request from "../types/request";
|
|
5
|
+
import * as Response from "../types/response";
|
|
6
|
+
import { DataWithMetaResponse } from "../../../../types";
|
|
7
|
+
export default class Notification extends Base implements NotificationAbstractClass {
|
|
8
|
+
static API_VERSION: GapApiVersion;
|
|
9
|
+
static getNotifyAppointment(data: Request.GetNotifyAppointmentRequest): Promise<DataWithMetaResponse<Response.GetNotifyAppointmentResponse>>;
|
|
10
|
+
static getNotifySystem(data: Request.GetNotifySystemRequest): Promise<DataWithMetaResponse<Response.GetNotifySystemResponse>>;
|
|
11
|
+
static maskAsRead(data: Request.MaskAsReadRequest): Promise<Response.MaskAsReadResponse>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/notification.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,MAAM,sBAAsB,CAAC;AAC7D,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAKvD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,IAAK,YAAW,yBAAyB;IAC/E,OAAc,WAAW,gBAAoB;WAEzB,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;WAUrI,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;WAUtH,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CAUxG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { notification } from "../endpoints";
|
|
3
|
+
import Base from "../../../../base/Base";
|
|
4
|
+
import { GapApiVersion } from "../../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
import { DataWithMetaModel } from "../../../../models";
|
|
7
|
+
import { MaskAsReadModel } from "../models";
|
|
8
|
+
import { objectToFormData } from "../../../../utils/form-data";
|
|
9
|
+
export default class Notification extends Base {
|
|
10
|
+
static getNotifyAppointment(data) {
|
|
11
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
const response = yield this.client.get({
|
|
13
|
+
path: notification.GET_NOTIFY_APPOINTMENT,
|
|
14
|
+
query: data
|
|
15
|
+
});
|
|
16
|
+
return DataWithMetaModel(response, Model.NotifyAppointmentModel);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
static getNotifySystem(data) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const response = yield this.client.get({
|
|
22
|
+
path: notification.GET_NOTIFY_SYSTEM,
|
|
23
|
+
query: data
|
|
24
|
+
});
|
|
25
|
+
return DataWithMetaModel(response, Model.NotifySystemModel);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static maskAsRead(data) {
|
|
29
|
+
var _a;
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const formData = objectToFormData(data);
|
|
32
|
+
const response = yield this.client.post({
|
|
33
|
+
path: notification.MARK_AS_READ,
|
|
34
|
+
data: formData
|
|
35
|
+
});
|
|
36
|
+
return MaskAsReadModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
Notification.API_VERSION = GapApiVersion.V1;
|
|
@@ -4,4 +4,5 @@ export { default as service } from "./service";
|
|
|
4
4
|
export { default as category } from "./category";
|
|
5
5
|
export { default as sms } from "./sms";
|
|
6
6
|
export { default as staff } from "./staff";
|
|
7
|
+
export { default as notification } from "./notification";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/notification.ts"],"names":[],"mappings":";;;;;AAAA,wBAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/interfaces/notification.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,QAAQ;CACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare function NotifyAppointmentModel(data: any): {
|
|
2
|
+
id: any;
|
|
3
|
+
appointment_id: any;
|
|
4
|
+
customer_id: any;
|
|
5
|
+
type: any;
|
|
6
|
+
content: any;
|
|
7
|
+
created_at: any;
|
|
8
|
+
staff_name: any;
|
|
9
|
+
data: any;
|
|
10
|
+
is_read: any;
|
|
11
|
+
};
|
|
12
|
+
export declare function NotifySystemModel(data: any): {
|
|
13
|
+
id: any;
|
|
14
|
+
user_id: any;
|
|
15
|
+
category: any;
|
|
16
|
+
title: any;
|
|
17
|
+
description: any;
|
|
18
|
+
url: any;
|
|
19
|
+
app: any;
|
|
20
|
+
is_read: any;
|
|
21
|
+
data: any;
|
|
22
|
+
is_sent: any;
|
|
23
|
+
start_date: any;
|
|
24
|
+
end_date: any;
|
|
25
|
+
message_id: any;
|
|
26
|
+
created_at: any;
|
|
27
|
+
updated_at: any;
|
|
28
|
+
status: any;
|
|
29
|
+
};
|
|
30
|
+
export declare function MaskAsReadModel(data: any): {
|
|
31
|
+
id: any;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/notification.ts"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;EAY/C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;;;;;;;;EAmB1C;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG;;EAIxC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export function NotifyAppointmentModel(data) {
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3
|
+
return {
|
|
4
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
5
|
+
appointment_id: (_b = data === null || data === void 0 ? void 0 : data.appointment_id) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
customer_id: (_c = data === null || data === void 0 ? void 0 : data.customer_id) !== null && _c !== void 0 ? _c : null,
|
|
7
|
+
type: (_d = data === null || data === void 0 ? void 0 : data.type) !== null && _d !== void 0 ? _d : null,
|
|
8
|
+
content: (_e = data === null || data === void 0 ? void 0 : data.content) !== null && _e !== void 0 ? _e : null,
|
|
9
|
+
created_at: (_f = data === null || data === void 0 ? void 0 : data.created_at) !== null && _f !== void 0 ? _f : null,
|
|
10
|
+
staff_name: (_g = data === null || data === void 0 ? void 0 : data.staff_name) !== null && _g !== void 0 ? _g : null,
|
|
11
|
+
data: (_h = data === null || data === void 0 ? void 0 : data.data) !== null && _h !== void 0 ? _h : null,
|
|
12
|
+
is_read: (_j = data === null || data === void 0 ? void 0 : data.is_read) !== null && _j !== void 0 ? _j : null,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export function NotifySystemModel(data) {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
17
|
+
return {
|
|
18
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
19
|
+
user_id: (_b = data === null || data === void 0 ? void 0 : data.user_id) !== null && _b !== void 0 ? _b : null,
|
|
20
|
+
category: (_c = data === null || data === void 0 ? void 0 : data.category) !== null && _c !== void 0 ? _c : null,
|
|
21
|
+
title: (_d = data === null || data === void 0 ? void 0 : data.title) !== null && _d !== void 0 ? _d : null,
|
|
22
|
+
description: (_e = data === null || data === void 0 ? void 0 : data.description) !== null && _e !== void 0 ? _e : null,
|
|
23
|
+
url: (_f = data === null || data === void 0 ? void 0 : data.url) !== null && _f !== void 0 ? _f : null,
|
|
24
|
+
app: (_g = data === null || data === void 0 ? void 0 : data.app) !== null && _g !== void 0 ? _g : null,
|
|
25
|
+
is_read: (_h = data === null || data === void 0 ? void 0 : data.is_read) !== null && _h !== void 0 ? _h : null,
|
|
26
|
+
data: (_j = data === null || data === void 0 ? void 0 : data.data) !== null && _j !== void 0 ? _j : null,
|
|
27
|
+
is_sent: (_k = data === null || data === void 0 ? void 0 : data.is_sent) !== null && _k !== void 0 ? _k : null,
|
|
28
|
+
start_date: (_l = data === null || data === void 0 ? void 0 : data.start_date) !== null && _l !== void 0 ? _l : null,
|
|
29
|
+
end_date: (_m = data === null || data === void 0 ? void 0 : data.end_date) !== null && _m !== void 0 ? _m : null,
|
|
30
|
+
message_id: (_o = data === null || data === void 0 ? void 0 : data.message_id) !== null && _o !== void 0 ? _o : null,
|
|
31
|
+
created_at: (_p = data === null || data === void 0 ? void 0 : data.created_at) !== null && _p !== void 0 ? _p : null,
|
|
32
|
+
updated_at: (_q = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _q !== void 0 ? _q : null,
|
|
33
|
+
status: (_r = data === null || data === void 0 ? void 0 : data.status) !== null && _r !== void 0 ? _r : null,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function MaskAsReadModel(data) {
|
|
37
|
+
var _a;
|
|
38
|
+
return {
|
|
39
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare type GetNotifyAppointmentRequest = {
|
|
2
|
+
page: number;
|
|
3
|
+
'per-page': number;
|
|
4
|
+
};
|
|
5
|
+
export declare type GetNotifySystemRequest = {
|
|
6
|
+
page: number;
|
|
7
|
+
'per-page': number;
|
|
8
|
+
};
|
|
9
|
+
export declare type MaskAsReadRequest = {
|
|
10
|
+
type: 'appointment' | 'system';
|
|
11
|
+
id: number;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/notification.ts"],"names":[],"mappings":"AAAA,oBAAY,2BAA2B,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,oBAAY,sBAAsB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,oBAAY,iBAAiB,GAAG;IAC5B,IAAI,EAAE,aAAa,GAAG,QAAQ,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Nullable } from "../../../../../base_type";
|
|
2
|
+
export declare type GetNotifyAppointmentResponse = Nullable<{
|
|
3
|
+
id: number;
|
|
4
|
+
appointment_id: number;
|
|
5
|
+
customer_id: any;
|
|
6
|
+
type: string;
|
|
7
|
+
content: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
staff_name: string;
|
|
10
|
+
data: any;
|
|
11
|
+
is_read: number;
|
|
12
|
+
}[]>;
|
|
13
|
+
export declare type GetNotifySystemResponse = Nullable<{
|
|
14
|
+
id: number;
|
|
15
|
+
user_id: any;
|
|
16
|
+
category: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
url: string;
|
|
20
|
+
app: string;
|
|
21
|
+
is_read: number;
|
|
22
|
+
data: string;
|
|
23
|
+
is_sent: any;
|
|
24
|
+
start_date: any;
|
|
25
|
+
end_date: any;
|
|
26
|
+
message_id: any;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: any;
|
|
29
|
+
status: any;
|
|
30
|
+
}[]>;
|
|
31
|
+
export declare type MaskAsReadResponse = Nullable<{
|
|
32
|
+
id: string;
|
|
33
|
+
}>;
|
|
34
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/response/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,oBAAY,4BAA4B,GAAG,QAAQ,CAAC;IAChD,EAAE,EAAE,MAAM,CAAA;IACV,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,GAAG,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,GAAG,CAAA;IACT,OAAO,EAAE,MAAM,CAAA;CAClB,EAAE,CAAC,CAAA;AAEJ,oBAAY,uBAAuB,GAAG,QAAQ,CAAC;IAC3C,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,GAAG,CAAA;IACZ,UAAU,EAAE,GAAG,CAAA;IACf,QAAQ,EAAE,GAAG,CAAA;IACb,UAAU,EAAE,GAAG,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,GAAG,CAAA;IACf,MAAM,EAAE,GAAG,CAAA;CACd,EAAE,CAAC,CAAA;AAEJ,oBAAY,kBAAkB,GAAG,QAAQ,CAAC;IACtC,EAAE,EAAE,MAAM,CAAA;CACb,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/go_check_in_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,GAAG,MAAC;IACJ,KAAK,MAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/go_check_in_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,GAAG,MAAC;IACJ,KAAK,MAAC;IACN,YAAY,MAAC;gBAED,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAWvF"}
|
package/dist/clover/Clover.d.ts
CHANGED
|
@@ -39,8 +39,7 @@ export default class Clover {
|
|
|
39
39
|
cloverConfig: any;
|
|
40
40
|
onPairingCode?: (pairingCode: string) => void;
|
|
41
41
|
onPairingSuccess?: (authToken: string) => void;
|
|
42
|
-
|
|
43
|
-
}): Clover | undefined;
|
|
42
|
+
}): Clover;
|
|
44
43
|
connect(): void;
|
|
45
44
|
doSale(paymentInput: PaymentInput): void;
|
|
46
45
|
doAuth(paymentInput: PaymentInput): void;
|
|
@@ -54,11 +53,9 @@ export default class Clover {
|
|
|
54
53
|
cleanup(): void;
|
|
55
54
|
showMessage(message: any): void;
|
|
56
55
|
checkDeviceStatus(): void;
|
|
57
|
-
showWelcomeScreen(): void;
|
|
58
|
-
showThankYouScreen(): void;
|
|
59
56
|
private buildCloverConnectionListener;
|
|
60
|
-
resetDevice(): void;
|
|
61
57
|
private getDeviceConfigurationForNetwork;
|
|
58
|
+
private resetDevice;
|
|
62
59
|
private checkPaymentStatus;
|
|
63
60
|
}
|
|
64
61
|
//# sourceMappingURL=Clover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clover.d.ts","sourceRoot":"","sources":["../../src/clover/Clover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3F,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,MAAM,CAAC,OAAO,OAAO,MAAM;IACvB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAQ;IACjE,WAAW,EAAE,GAAG,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAIlB,kBAAkB,EAAE,GAAG,CAAQ;IAC/B,YAAY,EAAE,GAAG,CAAC;IAClB,wBAAwB,EAAE,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC;IACpE,OAAO,EAAE,OAAO,CAAS;IAEzB,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/C,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,sBAAsB,GAAG,IAAI,CAAQ;IACnE,kBAAkB,EA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,YAAY,EAAE,YAAY;IAoBjC,MAAM,CAAC,YAAY,EAAE,YAAY;IAoBjC,WAAW,CAAC,WAAW,EAAE,WAAW;IAiBpC,MAAM,CAAC,SAAS,EAAE,SAAS;IAiB3B,QAAQ,CAAC,WAAW,EAAE,WAAW;IAiBjC,iBAAiB,CAAC,aAAa,EAAE,aAAa;IAe9C,wBAAwB;IAWxB,UAAU;IAeV,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY;IAInD,OAAO;IAMP,WAAW,CAAC,OAAO,KAAA;IAInB,iBAAiB;IAMjB,OAAO,CAAC,6BAA6B;IAmMrC,OAAO,CAAC,gCAAgC;IA2BxC,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,kBAAkB;CAmB7B"}
|
package/dist/clover/Clover.js
CHANGED
|
@@ -33,16 +33,10 @@ export default class Clover {
|
|
|
33
33
|
throw new Error("Missing 'options' parameters");
|
|
34
34
|
}
|
|
35
35
|
static getInstance(options) {
|
|
36
|
-
var _a;
|
|
37
36
|
if (!Clover.instance) {
|
|
38
37
|
Clover.instance = Clover.createInstance(options);
|
|
39
38
|
}
|
|
40
39
|
else if (options) {
|
|
41
|
-
if (options.createNew == true) {
|
|
42
|
-
(_a = Clover.instance.cloverConnector) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
43
|
-
Clover.instance = Clover.createInstance(options);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
40
|
throw Error('Instance is already instantiate with `options`');
|
|
47
41
|
}
|
|
48
42
|
return Clover.instance;
|
|
@@ -217,14 +211,6 @@ export default class Clover {
|
|
|
217
211
|
let retrieveDeviceStatus = new clover.remotepay.RetrieveDeviceStatusRequest();
|
|
218
212
|
(_a = this.cloverConnector) === null || _a === void 0 ? void 0 : _a.retrieveDeviceStatus(retrieveDeviceStatus);
|
|
219
213
|
}
|
|
220
|
-
showWelcomeScreen() {
|
|
221
|
-
var _a;
|
|
222
|
-
(_a = this.cloverConnector) === null || _a === void 0 ? void 0 : _a.showWelcomeScreen();
|
|
223
|
-
}
|
|
224
|
-
showThankYouScreen() {
|
|
225
|
-
var _a;
|
|
226
|
-
(_a = this.cloverConnector) === null || _a === void 0 ? void 0 : _a.showThankYouScreen();
|
|
227
|
-
}
|
|
228
214
|
buildCloverConnectionListener() {
|
|
229
215
|
return Object.assign({}, clover.remotepay.ICloverConnectorListener.prototype, {
|
|
230
216
|
onDeviceConnected: () => {
|
|
@@ -414,15 +400,6 @@ export default class Clover {
|
|
|
414
400
|
}
|
|
415
401
|
});
|
|
416
402
|
}
|
|
417
|
-
resetDevice() {
|
|
418
|
-
var _a;
|
|
419
|
-
if (this.pendingSaleRequest) {
|
|
420
|
-
this.checkPaymentStatus();
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
(_a = this.cloverConnector) === null || _a === void 0 ? void 0 : _a.resetDevice();
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
403
|
getDeviceConfigurationForNetwork() {
|
|
427
404
|
const onPairingCode = (pairingCode) => {
|
|
428
405
|
const pairingCodeMessage = `Please enter pairing code ${pairingCode} on the device`;
|
|
@@ -440,6 +417,15 @@ export default class Clover {
|
|
|
440
417
|
const configBuilder = new clover.WebSocketPairedCloverDeviceConfigurationBuilder(this.cloverConfig.applicationId, this.cloverConfig.endpoint, this.cloverConfig.posName, this.cloverConfig.serialNumber, this.cloverConfig.authToken, this.onPairingCode, this.onPairingSuccess);
|
|
441
418
|
return configBuilder.build();
|
|
442
419
|
}
|
|
420
|
+
resetDevice() {
|
|
421
|
+
var _a;
|
|
422
|
+
if (this.pendingSaleRequest) {
|
|
423
|
+
this.checkPaymentStatus();
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
(_a = this.cloverConnector) === null || _a === void 0 ? void 0 : _a.resetDevice();
|
|
427
|
+
}
|
|
428
|
+
}
|
|
443
429
|
checkPaymentStatus() {
|
|
444
430
|
var _a, _b;
|
|
445
431
|
if (this.pendingSaleRequest) {
|