gap-nodejs-sdk 1.0.581 → 1.0.583

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.
Files changed (38) hide show
  1. package/dist/api/pos_client_api/1.0.0/api/appointment.d.ts +11 -0
  2. package/dist/api/pos_client_api/1.0.0/api/appointment.d.ts.map +1 -0
  3. package/dist/api/pos_client_api/1.0.0/api/appointment.js +18 -0
  4. package/dist/api/pos_client_api/1.0.0/api/index.d.ts +1 -0
  5. package/dist/api/pos_client_api/1.0.0/api/index.d.ts.map +1 -1
  6. package/dist/api/pos_client_api/1.0.0/api/index.js +1 -0
  7. package/dist/api/pos_client_api/1.0.0/endpoints/appointment.d.ts +5 -0
  8. package/dist/api/pos_client_api/1.0.0/endpoints/appointment.d.ts.map +1 -0
  9. package/dist/api/pos_client_api/1.0.0/endpoints/appointment.js +3 -0
  10. package/dist/api/pos_client_api/1.0.0/endpoints/index.d.ts +1 -0
  11. package/dist/api/pos_client_api/1.0.0/endpoints/index.d.ts.map +1 -1
  12. package/dist/api/pos_client_api/1.0.0/endpoints/index.js +1 -0
  13. package/dist/api/pos_client_api/1.0.0/interfaces/appointment.d.ts +6 -0
  14. package/dist/api/pos_client_api/1.0.0/interfaces/appointment.d.ts.map +1 -0
  15. package/dist/api/pos_client_api/1.0.0/interfaces/appointment.js +2 -0
  16. package/dist/api/pos_client_api/1.0.0/models/appointment.d.ts +3 -0
  17. package/dist/api/pos_client_api/1.0.0/models/appointment.d.ts.map +1 -0
  18. package/dist/api/pos_client_api/1.0.0/models/appointment.js +110 -0
  19. package/dist/api/pos_client_api/1.0.0/models/index.d.ts +1 -0
  20. package/dist/api/pos_client_api/1.0.0/models/index.d.ts.map +1 -1
  21. package/dist/api/pos_client_api/1.0.0/models/index.js +1 -0
  22. package/dist/api/pos_client_api/1.0.0/types/request/appointment.d.ts +10 -0
  23. package/dist/api/pos_client_api/1.0.0/types/request/appointment.d.ts.map +1 -0
  24. package/dist/api/pos_client_api/1.0.0/types/request/appointment.js +1 -0
  25. package/dist/api/pos_client_api/1.0.0/types/request/index.d.ts +1 -0
  26. package/dist/api/pos_client_api/1.0.0/types/request/index.d.ts.map +1 -1
  27. package/dist/api/pos_client_api/1.0.0/types/request/index.js +1 -0
  28. package/dist/api/pos_client_api/1.0.0/types/response/appointment.d.ts +110 -0
  29. package/dist/api/pos_client_api/1.0.0/types/response/appointment.d.ts.map +1 -0
  30. package/dist/api/pos_client_api/1.0.0/types/response/appointment.js +1 -0
  31. package/dist/api/pos_client_api/1.0.0/types/response/index.d.ts +1 -0
  32. package/dist/api/pos_client_api/1.0.0/types/response/index.d.ts.map +1 -1
  33. package/dist/api/pos_client_api/1.0.0/types/response/index.js +1 -0
  34. package/dist/api/pos_client_api/index.d.ts +1 -0
  35. package/dist/api/pos_client_api/index.d.ts.map +1 -1
  36. package/dist/api/pos_client_api/index.js +1 -0
  37. package/dist/gap-sdk.js +1 -1
  38. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import AppointmentAbstractClass from "../interfaces/appointment";
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 Appointment extends Base implements AppointmentAbstractClass {
8
+ static API_VERSION: GapApiVersion;
9
+ static getListAppointment(data: Request.GetListAppointmentRequest): Promise<DataWithMetaResponse<Response.GetListAppointmentResponse>>;
10
+ }
11
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,MAAM,2BAA2B,CAAC;AACjE,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;AAG9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;IAC7E,OAAc,WAAW,gBAAoB;WAEzB,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC;CAStJ"}
@@ -0,0 +1,18 @@
1
+ import { __awaiter } from "tslib";
2
+ import Base from "../../../../base/Base";
3
+ import { GapApiVersion } from "../../../../base_type";
4
+ import * as Model from "../models";
5
+ import { DataWithMetaModel } from "../../../../models";
6
+ import { appointment } from "../endpoints";
7
+ export default class Appointment extends Base {
8
+ static getListAppointment(data) {
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: appointment.GET_LIST_APPOINTMENT,
12
+ query: data
13
+ });
14
+ return DataWithMetaModel(response, Model.ListAppointmentModel);
15
+ });
16
+ }
17
+ }
18
+ Appointment.API_VERSION = GapApiVersion.V1;
@@ -25,4 +25,5 @@ export { default as Device } from "./device";
25
25
  export { default as Rate } from "./rate";
26
26
  export { default as Report } from "./report";
27
27
  export { default as Summary } from "./summary";
28
+ export { default as Appointment } from "./appointment";
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,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AI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAC"}
@@ -25,3 +25,4 @@ export { default as Device } from "./device";
25
25
  export { default as Rate } from "./rate";
26
26
  export { default as Report } from "./report";
27
27
  export { default as Summary } from "./summary";
28
+ export { default as Appointment } from "./appointment";
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ GET_LIST_APPOINTMENT: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/appointment.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_LIST_APPOINTMENT: '/v1/pos/appointment/site/list-appointment',
3
+ };
@@ -25,4 +25,5 @@ export { default as device } from "./device";
25
25
  export { default as rate } from "./rate";
26
26
  export { default as report } from "./report";
27
27
  export { default as summary } from "./summary";
28
+ export { default as appointment } from "./appointment";
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM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OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAC"}
@@ -25,3 +25,4 @@ export { default as device } from "./device";
25
25
  export { default as rate } from "./rate";
26
26
  export { default as report } from "./report";
27
27
  export { default as summary } from "./summary";
28
+ export { default as appointment } from "./appointment";
@@ -0,0 +1,6 @@
1
+ import * as Request from "../types/request";
2
+ import * as Response from "../types/response";
3
+ export default abstract class AppointmentAbstractClass {
4
+ static getListAppointment: (data: Request.GetListAppointmentRequest) => Promise<Response.GetListAppointmentResponse>;
5
+ }
6
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/interfaces/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,wBAAwB;IAClD,OAAc,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,KAAK,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC;CAC/H"}
@@ -0,0 +1,2 @@
1
+ export default class AppointmentAbstractClass {
2
+ }
@@ -0,0 +1,3 @@
1
+ import * as Response from "../types/response";
2
+ export declare function ListAppointmentModel(data: any): Response.GetListAppointmentResponse;
3
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/models/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,0BAA0B,CA4GnF"}
@@ -0,0 +1,110 @@
1
+ export function ListAppointmentModel(data) {
2
+ var _a, _b, _c;
3
+ function AppointmentModel(data) {
4
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138;
5
+ return {
6
+ id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
7
+ resourceId: (_b = data === null || data === void 0 ? void 0 : data.resourceId) !== null && _b !== void 0 ? _b : null,
8
+ backgroundColor: (_c = data === null || data === void 0 ? void 0 : data.backgroundColor) !== null && _c !== void 0 ? _c : null,
9
+ borderColor: (_d = data === null || data === void 0 ? void 0 : data.borderColor) !== null && _d !== void 0 ? _d : null,
10
+ rendering: (_e = data === null || data === void 0 ? void 0 : data.rendering) !== null && _e !== void 0 ? _e : null,
11
+ note: (_f = data === null || data === void 0 ? void 0 : data.note) !== null && _f !== void 0 ? _f : null,
12
+ start: (_g = data === null || data === void 0 ? void 0 : data.start) !== null && _g !== void 0 ? _g : null,
13
+ end: (_h = data === null || data === void 0 ? void 0 : data.end) !== null && _h !== void 0 ? _h : null,
14
+ title: (_j = data === null || data === void 0 ? void 0 : data.title) !== null && _j !== void 0 ? _j : null,
15
+ overlap: (_k = data === null || data === void 0 ? void 0 : data.overlap) !== null && _k !== void 0 ? _k : null,
16
+ is_auto_assign: (_l = data === null || data === void 0 ? void 0 : data.is_auto_assign) !== null && _l !== void 0 ? _l : null,
17
+ service_id: (_m = data === null || data === void 0 ? void 0 : data.service_id) !== null && _m !== void 0 ? _m : null,
18
+ child_appointment_id: (_o = data === null || data === void 0 ? void 0 : data.child_appointment_id) !== null && _o !== void 0 ? _o : null,
19
+ checkin_id: (_p = data === null || data === void 0 ? void 0 : data.checkin_id) !== null && _p !== void 0 ? _p : null,
20
+ order_id: (_q = data === null || data === void 0 ? void 0 : data.order_id) !== null && _q !== void 0 ? _q : null,
21
+ status: (_r = data === null || data === void 0 ? void 0 : data.status) !== null && _r !== void 0 ? _r : null,
22
+ customer: {
23
+ id: (_t = (_s = data === null || data === void 0 ? void 0 : data.customer) === null || _s === void 0 ? void 0 : _s.id) !== null && _t !== void 0 ? _t : null,
24
+ first_name: (_v = (_u = data === null || data === void 0 ? void 0 : data.customer) === null || _u === void 0 ? void 0 : _u.first_name) !== null && _v !== void 0 ? _v : null,
25
+ last_name: (_x = (_w = data === null || data === void 0 ? void 0 : data.customer) === null || _w === void 0 ? void 0 : _w.last_name) !== null && _x !== void 0 ? _x : null,
26
+ full_name: (_z = (_y = data === null || data === void 0 ? void 0 : data.customer) === null || _y === void 0 ? void 0 : _y.full_name) !== null && _z !== void 0 ? _z : null,
27
+ phone: (_1 = (_0 = data === null || data === void 0 ? void 0 : data.customer) === null || _0 === void 0 ? void 0 : _0.phone) !== null && _1 !== void 0 ? _1 : null,
28
+ email: (_3 = (_2 = data === null || data === void 0 ? void 0 : data.customer) === null || _2 === void 0 ? void 0 : _2.email) !== null && _3 !== void 0 ? _3 : null,
29
+ address: (_5 = (_4 = data === null || data === void 0 ? void 0 : data.customer) === null || _4 === void 0 ? void 0 : _4.address) !== null && _5 !== void 0 ? _5 : null,
30
+ city: (_7 = (_6 = data === null || data === void 0 ? void 0 : data.customer) === null || _6 === void 0 ? void 0 : _6.city) !== null && _7 !== void 0 ? _7 : null,
31
+ state: (_9 = (_8 = data === null || data === void 0 ? void 0 : data.customer) === null || _8 === void 0 ? void 0 : _8.state) !== null && _9 !== void 0 ? _9 : null,
32
+ country: (_11 = (_10 = data === null || data === void 0 ? void 0 : data.customer) === null || _10 === void 0 ? void 0 : _10.country) !== null && _11 !== void 0 ? _11 : null,
33
+ gender: (_13 = (_12 = data === null || data === void 0 ? void 0 : data.customer) === null || _12 === void 0 ? void 0 : _12.gender) !== null && _13 !== void 0 ? _13 : null,
34
+ birthday: (_15 = (_14 = data === null || data === void 0 ? void 0 : data.customer) === null || _14 === void 0 ? void 0 : _14.birthday) !== null && _15 !== void 0 ? _15 : null,
35
+ create_at: (_17 = (_16 = data === null || data === void 0 ? void 0 : data.customer) === null || _16 === void 0 ? void 0 : _16.create_at) !== null && _17 !== void 0 ? _17 : null,
36
+ update_at: (_19 = (_18 = data === null || data === void 0 ? void 0 : data.customer) === null || _18 === void 0 ? void 0 : _18.update_at) !== null && _19 !== void 0 ? _19 : null,
37
+ status: (_21 = (_20 = data === null || data === void 0 ? void 0 : data.customer) === null || _20 === void 0 ? void 0 : _20.status) !== null && _21 !== void 0 ? _21 : null,
38
+ group_id: (_23 = (_22 = data === null || data === void 0 ? void 0 : data.customer) === null || _22 === void 0 ? void 0 : _22.group_id) !== null && _23 !== void 0 ? _23 : null,
39
+ note: (_25 = (_24 = data === null || data === void 0 ? void 0 : data.customer) === null || _24 === void 0 ? void 0 : _24.note) !== null && _25 !== void 0 ? _25 : null,
40
+ parent_id: (_27 = (_26 = data === null || data === void 0 ? void 0 : data.customer) === null || _26 === void 0 ? void 0 : _26.parent_id) !== null && _27 !== void 0 ? _27 : null,
41
+ rating: (_29 = (_28 = data === null || data === void 0 ? void 0 : data.customer) === null || _28 === void 0 ? void 0 : _28.rating) !== null && _29 !== void 0 ? _29 : null,
42
+ is_yelp: (_31 = (_30 = data === null || data === void 0 ? void 0 : data.customer) === null || _30 === void 0 ? void 0 : _30.is_yelp) !== null && _31 !== void 0 ? _31 : null,
43
+ reachable_email: (_33 = (_32 = data === null || data === void 0 ? void 0 : data.customer) === null || _32 === void 0 ? void 0 : _32.reachable_email) !== null && _33 !== void 0 ? _33 : null,
44
+ reachable_push: (_35 = (_34 = data === null || data === void 0 ? void 0 : data.customer) === null || _34 === void 0 ? void 0 : _34.reachable_push) !== null && _35 !== void 0 ? _35 : null,
45
+ reachable_sms: (_37 = (_36 = data === null || data === void 0 ? void 0 : data.customer) === null || _36 === void 0 ? void 0 : _36.reachable_sms) !== null && _37 !== void 0 ? _37 : null,
46
+ visit_count: (_39 = (_38 = data === null || data === void 0 ? void 0 : data.customer) === null || _38 === void 0 ? void 0 : _38.visit_count) !== null && _39 !== void 0 ? _39 : null,
47
+ last_visited: (_41 = (_40 = data === null || data === void 0 ? void 0 : data.customer) === null || _40 === void 0 ? void 0 : _40.last_visited) !== null && _41 !== void 0 ? _41 : null,
48
+ image_url: (_43 = (_42 = data === null || data === void 0 ? void 0 : data.customer) === null || _42 === void 0 ? void 0 : _42.image_url) !== null && _43 !== void 0 ? _43 : null,
49
+ address2: (_45 = (_44 = data === null || data === void 0 ? void 0 : data.customer) === null || _44 === void 0 ? void 0 : _44.address2) !== null && _45 !== void 0 ? _45 : null,
50
+ postal_code: (_47 = (_46 = data === null || data === void 0 ? void 0 : data.customer) === null || _46 === void 0 ? void 0 : _46.postal_code) !== null && _47 !== void 0 ? _47 : null,
51
+ is_send_sms: (_49 = (_48 = data === null || data === void 0 ? void 0 : data.customer) === null || _48 === void 0 ? void 0 : _48.is_send_sms) !== null && _49 !== void 0 ? _49 : null,
52
+ is_import: (_51 = (_50 = data === null || data === void 0 ? void 0 : data.customer) === null || _50 === void 0 ? void 0 : _50.is_import) !== null && _51 !== void 0 ? _51 : null,
53
+ is_checked_in: (_53 = (_52 = data === null || data === void 0 ? void 0 : data.customer) === null || _52 === void 0 ? void 0 : _52.is_checked_in) !== null && _53 !== void 0 ? _53 : null,
54
+ is_blocked_from_booking: (_55 = (_54 = data === null || data === void 0 ? void 0 : data.customer) === null || _54 === void 0 ? void 0 : _54.is_blocked_from_booking) !== null && _55 !== void 0 ? _55 : null,
55
+ source: (_57 = (_56 = data === null || data === void 0 ? void 0 : data.customer) === null || _56 === void 0 ? void 0 : _56.source) !== null && _57 !== void 0 ? _57 : null,
56
+ current_point: (_59 = (_58 = data === null || data === void 0 ? void 0 : data.customer) === null || _58 === void 0 ? void 0 : _58.current_point) !== null && _59 !== void 0 ? _59 : null,
57
+ lifetime_point: (_61 = (_60 = data === null || data === void 0 ? void 0 : data.customer) === null || _60 === void 0 ? void 0 : _60.lifetime_point) !== null && _61 !== void 0 ? _61 : null,
58
+ type: (_63 = (_62 = data === null || data === void 0 ? void 0 : data.customer) === null || _62 === void 0 ? void 0 : _62.type) !== null && _63 !== void 0 ? _63 : null,
59
+ },
60
+ staff: {
61
+ user_id: (_65 = (_64 = data === null || data === void 0 ? void 0 : data.staff) === null || _64 === void 0 ? void 0 : _64.user_id) !== null && _65 !== void 0 ? _65 : null,
62
+ name: (_67 = (_66 = data === null || data === void 0 ? void 0 : data.staff) === null || _66 === void 0 ? void 0 : _66.name) !== null && _67 !== void 0 ? _67 : null,
63
+ code: (_69 = (_68 = data === null || data === void 0 ? void 0 : data.staff) === null || _68 === void 0 ? void 0 : _68.code) !== null && _69 !== void 0 ? _69 : null,
64
+ created_at: (_71 = (_70 = data === null || data === void 0 ? void 0 : data.staff) === null || _70 === void 0 ? void 0 : _70.created_at) !== null && _71 !== void 0 ? _71 : null,
65
+ updated_at: (_73 = (_72 = data === null || data === void 0 ? void 0 : data.staff) === null || _72 === void 0 ? void 0 : _72.updated_at) !== null && _73 !== void 0 ? _73 : null,
66
+ color_code: (_75 = (_74 = data === null || data === void 0 ? void 0 : data.staff) === null || _74 === void 0 ? void 0 : _74.color_code) !== null && _75 !== void 0 ? _75 : null,
67
+ image_url: (_77 = (_76 = data === null || data === void 0 ? void 0 : data.staff) === null || _76 === void 0 ? void 0 : _76.image_url) !== null && _77 !== void 0 ? _77 : null,
68
+ delete_image_url: (_79 = (_78 = data === null || data === void 0 ? void 0 : data.staff) === null || _78 === void 0 ? void 0 : _78.delete_image_url) !== null && _79 !== void 0 ? _79 : null,
69
+ priority: (_81 = (_80 = data === null || data === void 0 ? void 0 : data.staff) === null || _80 === void 0 ? void 0 : _80.priority) !== null && _81 !== void 0 ? _81 : null,
70
+ commission_type: (_83 = (_82 = data === null || data === void 0 ? void 0 : data.staff) === null || _82 === void 0 ? void 0 : _82.commission_type) !== null && _83 !== void 0 ? _83 : null,
71
+ turn_priority: (_85 = (_84 = data === null || data === void 0 ? void 0 : data.staff) === null || _84 === void 0 ? void 0 : _84.turn_priority) !== null && _85 !== void 0 ? _85 : null,
72
+ last_turn_priority: (_87 = (_86 = data === null || data === void 0 ? void 0 : data.staff) === null || _86 === void 0 ? void 0 : _86.last_turn_priority) !== null && _87 !== void 0 ? _87 : null,
73
+ phone: (_89 = (_88 = data === null || data === void 0 ? void 0 : data.staff) === null || _88 === void 0 ? void 0 : _88.phone) !== null && _89 !== void 0 ? _89 : null,
74
+ address: (_91 = (_90 = data === null || data === void 0 ? void 0 : data.staff) === null || _90 === void 0 ? void 0 : _90.address) !== null && _91 !== void 0 ? _91 : null,
75
+ nickname: (_93 = (_92 = data === null || data === void 0 ? void 0 : data.staff) === null || _92 === void 0 ? void 0 : _92.nickname) !== null && _93 !== void 0 ? _93 : null,
76
+ priority_calendar: (_95 = (_94 = data === null || data === void 0 ? void 0 : data.staff) === null || _94 === void 0 ? void 0 : _94.priority_calendar) !== null && _95 !== void 0 ? _95 : null,
77
+ },
78
+ services: {
79
+ id: (_97 = (_96 = data === null || data === void 0 ? void 0 : data.services) === null || _96 === void 0 ? void 0 : _96.id) !== null && _97 !== void 0 ? _97 : null,
80
+ name: (_99 = (_98 = data === null || data === void 0 ? void 0 : data.services) === null || _98 === void 0 ? void 0 : _98.name) !== null && _99 !== void 0 ? _99 : null,
81
+ create_at: (_101 = (_100 = data === null || data === void 0 ? void 0 : data.services) === null || _100 === void 0 ? void 0 : _100.create_at) !== null && _101 !== void 0 ? _101 : null,
82
+ type: (_103 = (_102 = data === null || data === void 0 ? void 0 : data.services) === null || _102 === void 0 ? void 0 : _102.type) !== null && _103 !== void 0 ? _103 : null,
83
+ status: (_105 = (_104 = data === null || data === void 0 ? void 0 : data.services) === null || _104 === void 0 ? void 0 : _104.status) !== null && _105 !== void 0 ? _105 : null,
84
+ group_id: (_107 = (_106 = data === null || data === void 0 ? void 0 : data.services) === null || _106 === void 0 ? void 0 : _106.group_id) !== null && _107 !== void 0 ? _107 : null,
85
+ priority: (_109 = (_108 = data === null || data === void 0 ? void 0 : data.services) === null || _108 === void 0 ? void 0 : _108.priority) !== null && _109 !== void 0 ? _109 : null,
86
+ category_id: (_111 = (_110 = data === null || data === void 0 ? void 0 : data.services) === null || _110 === void 0 ? void 0 : _110.category_id) !== null && _111 !== void 0 ? _111 : null,
87
+ onwer_id: (_113 = (_112 = data === null || data === void 0 ? void 0 : data.services) === null || _112 === void 0 ? void 0 : _112.onwer_id) !== null && _113 !== void 0 ? _113 : null,
88
+ price: (_115 = (_114 = data === null || data === void 0 ? void 0 : data.services) === null || _114 === void 0 ? void 0 : _114.price) !== null && _115 !== void 0 ? _115 : null,
89
+ note: (_117 = (_116 = data === null || data === void 0 ? void 0 : data.services) === null || _116 === void 0 ? void 0 : _116.note) !== null && _117 !== void 0 ? _117 : null,
90
+ point_bonus: (_119 = (_118 = data === null || data === void 0 ? void 0 : data.services) === null || _118 === void 0 ? void 0 : _118.point_bonus) !== null && _119 !== void 0 ? _119 : null,
91
+ duration: (_121 = (_120 = data === null || data === void 0 ? void 0 : data.services) === null || _120 === void 0 ? void 0 : _120.duration) !== null && _121 !== void 0 ? _121 : null,
92
+ buffer_time: (_123 = (_122 = data === null || data === void 0 ? void 0 : data.services) === null || _122 === void 0 ? void 0 : _122.buffer_time) !== null && _123 !== void 0 ? _123 : null,
93
+ web_booking_visible: (_125 = (_124 = data === null || data === void 0 ? void 0 : data.services) === null || _124 === void 0 ? void 0 : _124.web_booking_visible) !== null && _125 !== void 0 ? _125 : null,
94
+ supply_share: (_127 = (_126 = data === null || data === void 0 ? void 0 : data.services) === null || _126 === void 0 ? void 0 : _126.supply_share) !== null && _127 !== void 0 ? _127 : null,
95
+ show_on_checkin: (_129 = (_128 = data === null || data === void 0 ? void 0 : data.services) === null || _128 === void 0 ? void 0 : _128.show_on_checkin) !== null && _129 !== void 0 ? _129 : null,
96
+ show_on_booking: (_131 = (_130 = data === null || data === void 0 ? void 0 : data.services) === null || _130 === void 0 ? void 0 : _130.show_on_booking) !== null && _131 !== void 0 ? _131 : null,
97
+ show_on_pos: (_133 = (_132 = data === null || data === void 0 ? void 0 : data.services) === null || _132 === void 0 ? void 0 : _132.show_on_pos) !== null && _133 !== void 0 ? _133 : null,
98
+ image_base_url: (_135 = (_134 = data === null || data === void 0 ? void 0 : data.services) === null || _134 === void 0 ? void 0 : _134.image_base_url) !== null && _135 !== void 0 ? _135 : null,
99
+ image_path: (_137 = (_136 = data === null || data === void 0 ? void 0 : data.services) === null || _136 === void 0 ? void 0 : _136.image_path) !== null && _137 !== void 0 ? _137 : null,
100
+ },
101
+ customer_type: (_138 = data === null || data === void 0 ? void 0 : data.customer_type) !== null && _138 !== void 0 ? _138 : null,
102
+ };
103
+ }
104
+ return {
105
+ appointments: (data === null || data === void 0 ? void 0 : data.appointments) ? data === null || data === void 0 ? void 0 : data.appointments.map(item => AppointmentModel(item)) : null,
106
+ total_assigned: (_a = data === null || data === void 0 ? void 0 : data.total_assigned) !== null && _a !== void 0 ? _a : null,
107
+ total_unassigned: (_b = data === null || data === void 0 ? void 0 : data.total_unassigned) !== null && _b !== void 0 ? _b : null,
108
+ total: (_c = data === null || data === void 0 ? void 0 : data.total) !== null && _c !== void 0 ? _c : null,
109
+ };
110
+ }
@@ -21,4 +21,5 @@ export * from "./commission";
21
21
  export * from "./device";
22
22
  export * from "./rate";
23
23
  export * from "./summary";
24
+ export * from "./appointment";
24
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
@@ -21,3 +21,4 @@ export * from "./commission";
21
21
  export * from "./device";
22
22
  export * from "./rate";
23
23
  export * from "./summary";
24
+ export * from "./appointment";
@@ -0,0 +1,10 @@
1
+ export type GetListAppointmentRequest = {
2
+ type?: string;
3
+ appointment_type?: string;
4
+ page?: number;
5
+ is_pagination?: number;
6
+ page_size?: number;
7
+ start_time: string;
8
+ staffs?: string;
9
+ };
10
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/request/appointment.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA"}
@@ -25,4 +25,5 @@ export * from './device';
25
25
  export * from './rate';
26
26
  export * from './report';
27
27
  export * from './summary';
28
+ export * from './appointment';
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3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c,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
@@ -25,3 +25,4 @@ export * from './device';
25
25
  export * from './rate';
26
26
  export * from './report';
27
27
  export * from './summary';
28
+ export * from './appointment';
@@ -0,0 +1,110 @@
1
+ import { Nullable } from "src/base_type";
2
+ export type GetListAppointmentResponse = Nullable<{
3
+ appointments: Appointment[];
4
+ total_assigned: number;
5
+ total_unassigned: number;
6
+ total: number;
7
+ }>;
8
+ type Appointment = Nullable<{
9
+ id: number;
10
+ resourceId: number;
11
+ backgroundColor: string;
12
+ borderColor: string;
13
+ rendering: string;
14
+ note: string;
15
+ start: string;
16
+ end: string;
17
+ title: string;
18
+ overlap: boolean;
19
+ is_auto_assign: number;
20
+ service_id: number;
21
+ child_appointment_id: number;
22
+ checkin_id: any;
23
+ order_id: any;
24
+ status: string;
25
+ customer: Customer;
26
+ staff: Staff;
27
+ services: Services;
28
+ customer_type: string;
29
+ }>;
30
+ type Customer = Nullable<{
31
+ id: number;
32
+ first_name: any;
33
+ last_name: any;
34
+ full_name: string;
35
+ phone: string;
36
+ email?: string;
37
+ address: any;
38
+ city: any;
39
+ state: any;
40
+ country: any;
41
+ gender: any;
42
+ birthday?: string;
43
+ create_at: string;
44
+ update_at: string;
45
+ status: any;
46
+ group_id: any;
47
+ note: string;
48
+ parent_id: any;
49
+ rating: any;
50
+ is_yelp?: number;
51
+ reachable_email: number;
52
+ reachable_push: number;
53
+ reachable_sms: number;
54
+ visit_count: number;
55
+ last_visited: string;
56
+ image_url: any;
57
+ address2: any;
58
+ postal_code: any;
59
+ is_send_sms: number;
60
+ is_import: number;
61
+ is_checked_in: number;
62
+ is_blocked_from_booking?: number;
63
+ source: any;
64
+ current_point: number;
65
+ lifetime_point: number;
66
+ type: string;
67
+ }>;
68
+ type Staff = Nullable<{
69
+ user_id: number;
70
+ name: string;
71
+ code: number;
72
+ created_at: string;
73
+ updated_at: any;
74
+ color_code: string;
75
+ image_url?: string;
76
+ delete_image_url: any;
77
+ priority: number;
78
+ commission_type: string;
79
+ turn_priority: number;
80
+ last_turn_priority: number;
81
+ phone: string;
82
+ address: string;
83
+ nickname: string;
84
+ priority_calendar?: number;
85
+ }>;
86
+ type Services = Nullable<{
87
+ id: number;
88
+ name: string;
89
+ create_at: string;
90
+ type: any;
91
+ status: number;
92
+ group_id?: number;
93
+ priority: number;
94
+ category_id: number;
95
+ onwer_id: any;
96
+ price: number;
97
+ note: string;
98
+ point_bonus: any;
99
+ duration: number;
100
+ buffer_time: any;
101
+ web_booking_visible: string;
102
+ supply_share: number;
103
+ show_on_checkin: number;
104
+ show_on_booking: number;
105
+ show_on_pos: number;
106
+ image_base_url: string;
107
+ image_path: string;
108
+ }>;
109
+ export {};
110
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/response/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC;IAC9C,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAC,CAAA;AAEF,KAAK,WAAW,GAAG,QAAQ,CAAC;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO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M,CAAA;IAChB,WAAW,EAAE,GAAG,CAAA;IAChB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA"}
@@ -23,4 +23,5 @@ export * from './device';
23
23
  export * from './rate';
24
24
  export * from './report';
25
25
  export * from './summary';
26
+ export * from './appointment';
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
@@ -23,3 +23,4 @@ export * from './device';
23
23
  export * from './rate';
24
24
  export * from './report';
25
25
  export * from './summary';
26
+ export * from './appointment';
@@ -27,6 +27,7 @@ export default class PosClientApi {
27
27
  rate: any;
28
28
  report: any;
29
29
  summary: any;
30
+ appointment: any;
30
31
  constructor(domain: string, gClientId: string, token: string, version: GapApiVersion);
31
32
  }
32
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/pos_client_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,aAAa,MAAC;IACd,QAAQ,MAAC;IACT,IAAI,MAAC;IACL,QAAQ,MAAC;IACT,QAAQ,MAAC;IACT,SAAS,MAAC;IACV,KAAK,MAAC;IACN,QAAQ,MAAC;IACT,SAAS,MAAC;IACV,MAAM,MAAC;IACP,WAAW,MAAC;IACZ,KAAK,MAAC;IACN,OAAO,MAAC;IACR,OAAO,MAAC;IACR,OAAO,MAAC;IACR,KAAK,MAAC;IACN,MAAM,MAAC;IACP,YAAY,MAAC;IACb,mBAAmB,MAAC;IACpB,IAAI,MAAC;IACL,OAAO,MAAC;IACR,OAAO,MAAC;IACR,UAAU,MAAC;IACX,MAAM,MAAC;IACP,IAAI,MAAC;IACL,MAAM,MAAC;IACP,OAAO,MAAC;gBAEI,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CA+BvF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/pos_client_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,aAAa,MAAC;IACd,QAAQ,MAAC;IACT,IAAI,MAAC;IACL,QAAQ,MAAC;IACT,QAAQ,MAAC;IACT,SAAS,MAAC;IACV,KAAK,MAAC;IACN,QAAQ,MAAC;IACT,SAAS,MAAC;IACV,MAAM,MAAC;IACP,WAAW,MAAC;IACZ,KAAK,MAAC;IACN,OAAO,MAAC;IACR,OAAO,MAAC;IACR,OAAO,MAAC;IACR,KAAK,MAAC;IACN,MAAM,MAAC;IACP,YAAY,MAAC;IACb,mBAAmB,MAAC;IACpB,IAAI,MAAC;IACL,OAAO,MAAC;IACR,OAAO,MAAC;IACR,UAAU,MAAC;IACX,MAAM,MAAC;IACP,IAAI,MAAC;IACL,MAAM,MAAC;IACP,OAAO,MAAC;IACR,WAAW,MAAC;gBAEA,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAgCvF"}
@@ -31,5 +31,6 @@ export default class PosClientApi {
31
31
  this.rate = API.Rate;
32
32
  this.report = API.Report;
33
33
  this.summary = API.Summary;
34
+ this.appointment = API.Appointment;
34
35
  }
35
36
  }