gap-nodejs-sdk 1.0.159 → 1.0.161

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 (112) hide show
  1. package/dist/api/appointment_api/1.0.0/api/appointment.d.ts +17 -0
  2. package/dist/api/appointment_api/1.0.0/api/appointment.d.ts.map +1 -0
  3. package/dist/api/appointment_api/1.0.0/api/appointment.js +88 -0
  4. package/dist/api/appointment_api/1.0.0/api/customer.d.ts +11 -0
  5. package/dist/api/appointment_api/1.0.0/api/customer.d.ts.map +1 -0
  6. package/dist/api/appointment_api/1.0.0/api/customer.js +18 -0
  7. package/dist/api/appointment_api/1.0.0/api/index.d.ts +5 -0
  8. package/dist/api/appointment_api/1.0.0/api/index.d.ts.map +1 -1
  9. package/dist/api/appointment_api/1.0.0/api/index.js +5 -0
  10. package/dist/api/appointment_api/1.0.0/api/pos.d.ts +11 -0
  11. package/dist/api/appointment_api/1.0.0/api/pos.d.ts.map +1 -0
  12. package/dist/api/appointment_api/1.0.0/api/pos.js +28 -0
  13. package/dist/api/appointment_api/1.0.0/api/service.d.ts +11 -0
  14. package/dist/api/appointment_api/1.0.0/api/service.d.ts.map +1 -0
  15. package/dist/api/appointment_api/1.0.0/api/service.js +18 -0
  16. package/dist/api/appointment_api/1.0.0/api/staff.d.ts +10 -0
  17. package/dist/api/appointment_api/1.0.0/api/staff.d.ts.map +1 -0
  18. package/dist/api/appointment_api/1.0.0/api/staff.js +18 -0
  19. package/dist/api/appointment_api/1.0.0/endpoints/appointment.d.ts +12 -0
  20. package/dist/api/appointment_api/1.0.0/endpoints/appointment.d.ts.map +1 -0
  21. package/dist/api/appointment_api/1.0.0/endpoints/appointment.js +10 -0
  22. package/dist/api/appointment_api/1.0.0/endpoints/customer.d.ts +5 -0
  23. package/dist/api/appointment_api/1.0.0/endpoints/customer.d.ts.map +1 -0
  24. package/dist/api/appointment_api/1.0.0/endpoints/customer.js +3 -0
  25. package/dist/api/appointment_api/1.0.0/endpoints/index.d.ts +5 -0
  26. package/dist/api/appointment_api/1.0.0/endpoints/index.d.ts.map +1 -1
  27. package/dist/api/appointment_api/1.0.0/endpoints/index.js +5 -0
  28. package/dist/api/appointment_api/1.0.0/endpoints/pos.d.ts +6 -0
  29. package/dist/api/appointment_api/1.0.0/endpoints/pos.d.ts.map +1 -0
  30. package/dist/api/appointment_api/1.0.0/endpoints/pos.js +4 -0
  31. package/dist/api/appointment_api/1.0.0/endpoints/service.d.ts +5 -0
  32. package/dist/api/appointment_api/1.0.0/endpoints/service.d.ts.map +1 -0
  33. package/dist/api/appointment_api/1.0.0/endpoints/service.js +3 -0
  34. package/dist/api/appointment_api/1.0.0/endpoints/staff.d.ts +5 -0
  35. package/dist/api/appointment_api/1.0.0/endpoints/staff.d.ts.map +1 -0
  36. package/dist/api/appointment_api/1.0.0/endpoints/staff.js +3 -0
  37. package/dist/api/appointment_api/1.0.0/interfaces/appointment.d.ts +3 -0
  38. package/dist/api/appointment_api/1.0.0/interfaces/appointment.d.ts.map +1 -0
  39. package/dist/api/appointment_api/1.0.0/interfaces/appointment.js +2 -0
  40. package/dist/api/appointment_api/1.0.0/interfaces/customer.d.ts +3 -0
  41. package/dist/api/appointment_api/1.0.0/interfaces/customer.d.ts.map +1 -0
  42. package/dist/api/appointment_api/1.0.0/interfaces/customer.js +2 -0
  43. package/dist/api/appointment_api/1.0.0/interfaces/pos.d.ts +3 -0
  44. package/dist/api/appointment_api/1.0.0/interfaces/pos.d.ts.map +1 -0
  45. package/dist/api/appointment_api/1.0.0/interfaces/pos.js +2 -0
  46. package/dist/api/appointment_api/1.0.0/interfaces/service.d.ts +3 -0
  47. package/dist/api/appointment_api/1.0.0/interfaces/service.d.ts.map +1 -0
  48. package/dist/api/appointment_api/1.0.0/interfaces/service.js +2 -0
  49. package/dist/api/appointment_api/1.0.0/interfaces/staff.d.ts +3 -0
  50. package/dist/api/appointment_api/1.0.0/interfaces/staff.d.ts.map +1 -0
  51. package/dist/api/appointment_api/1.0.0/interfaces/staff.js +2 -0
  52. package/dist/api/appointment_api/1.0.0/models/appointment.d.ts +209 -0
  53. package/dist/api/appointment_api/1.0.0/models/appointment.d.ts.map +1 -0
  54. package/dist/api/appointment_api/1.0.0/models/appointment.js +366 -0
  55. package/dist/api/appointment_api/1.0.0/models/customer.d.ts +18 -0
  56. package/dist/api/appointment_api/1.0.0/models/customer.d.ts.map +1 -0
  57. package/dist/api/appointment_api/1.0.0/models/customer.js +20 -0
  58. package/dist/api/appointment_api/1.0.0/models/index.d.ts +5 -0
  59. package/dist/api/appointment_api/1.0.0/models/index.d.ts.map +1 -1
  60. package/dist/api/appointment_api/1.0.0/models/index.js +5 -0
  61. package/dist/api/appointment_api/1.0.0/models/pos.d.ts +227 -0
  62. package/dist/api/appointment_api/1.0.0/models/pos.d.ts.map +1 -0
  63. package/dist/api/appointment_api/1.0.0/models/pos.js +335 -0
  64. package/dist/api/appointment_api/1.0.0/models/service.d.ts +28 -0
  65. package/dist/api/appointment_api/1.0.0/models/service.d.ts.map +1 -0
  66. package/dist/api/appointment_api/1.0.0/models/service.js +75 -0
  67. package/dist/api/appointment_api/1.0.0/models/staff.d.ts +11 -0
  68. package/dist/api/appointment_api/1.0.0/models/staff.d.ts.map +1 -0
  69. package/dist/api/appointment_api/1.0.0/models/staff.js +39 -0
  70. package/dist/api/appointment_api/1.0.0/types/request/appointment.d.ts +84 -0
  71. package/dist/api/appointment_api/1.0.0/types/request/appointment.d.ts.map +1 -0
  72. package/dist/api/appointment_api/1.0.0/types/request/appointment.js +1 -0
  73. package/dist/api/appointment_api/1.0.0/types/request/customer.d.ts +5 -0
  74. package/dist/api/appointment_api/1.0.0/types/request/customer.d.ts.map +1 -0
  75. package/dist/api/appointment_api/1.0.0/types/request/customer.js +1 -0
  76. package/dist/api/appointment_api/1.0.0/types/request/index.d.ts +5 -0
  77. package/dist/api/appointment_api/1.0.0/types/request/index.d.ts.map +1 -1
  78. package/dist/api/appointment_api/1.0.0/types/request/index.js +5 -0
  79. package/dist/api/appointment_api/1.0.0/types/request/pos.d.ts +7 -0
  80. package/dist/api/appointment_api/1.0.0/types/request/pos.d.ts.map +1 -0
  81. package/dist/api/appointment_api/1.0.0/types/request/pos.js +1 -0
  82. package/dist/api/appointment_api/1.0.0/types/request/service.d.ts +2 -0
  83. package/dist/api/appointment_api/1.0.0/types/request/service.d.ts.map +1 -0
  84. package/dist/api/appointment_api/1.0.0/types/request/service.js +1 -0
  85. package/dist/api/appointment_api/1.0.0/types/request/staff.d.ts +2 -0
  86. package/dist/api/appointment_api/1.0.0/types/request/staff.d.ts.map +1 -0
  87. package/dist/api/appointment_api/1.0.0/types/request/staff.js +1 -0
  88. package/dist/api/appointment_api/1.0.0/types/response/appointment.d.ts +293 -0
  89. package/dist/api/appointment_api/1.0.0/types/response/appointment.d.ts.map +1 -0
  90. package/dist/api/appointment_api/1.0.0/types/response/appointment.js +1 -0
  91. package/dist/api/appointment_api/1.0.0/types/response/customer.d.ts +23 -0
  92. package/dist/api/appointment_api/1.0.0/types/response/customer.d.ts.map +1 -0
  93. package/dist/api/appointment_api/1.0.0/types/response/customer.js +1 -0
  94. package/dist/api/appointment_api/1.0.0/types/response/index.d.ts +5 -0
  95. package/dist/api/appointment_api/1.0.0/types/response/index.d.ts.map +1 -1
  96. package/dist/api/appointment_api/1.0.0/types/response/index.js +5 -0
  97. package/dist/api/appointment_api/1.0.0/types/response/pos.d.ts +302 -0
  98. package/dist/api/appointment_api/1.0.0/types/response/pos.d.ts.map +1 -0
  99. package/dist/api/appointment_api/1.0.0/types/response/pos.js +1 -0
  100. package/dist/api/appointment_api/1.0.0/types/response/service.d.ts +61 -0
  101. package/dist/api/appointment_api/1.0.0/types/response/service.d.ts.map +1 -0
  102. package/dist/api/appointment_api/1.0.0/types/response/service.js +1 -0
  103. package/dist/api/appointment_api/1.0.0/types/response/staff.d.ts +33 -0
  104. package/dist/api/appointment_api/1.0.0/types/response/staff.d.ts.map +1 -0
  105. package/dist/api/appointment_api/1.0.0/types/response/staff.js +1 -0
  106. package/dist/api/appointment_api/index.d.ts +5 -0
  107. package/dist/api/appointment_api/index.d.ts.map +1 -1
  108. package/dist/api/appointment_api/index.js +5 -0
  109. package/dist/gap-sdk.js +1 -1
  110. package/dist/http_client/http_client.d.ts.map +1 -1
  111. package/dist/http_client/http_client.js +69 -34
  112. package/package.json +1 -1
@@ -0,0 +1,17 @@
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
+ export default class Appointment extends Base implements AppointmentAbstractClass {
7
+ static API_VERSION: GapApiVersion;
8
+ static getAppointmentSpecificDateList(data: Request.GetAppointmentSpecificDateListRequest): Promise<Response.GetAppointmentSpecificDateListResponse>;
9
+ static getAppointmentResourceList(data: Request.GetAppointmentResourceListRequest): Promise<Response.GetAppointmentResourceListResponse>;
10
+ static getAppointmentList(data: Request.GetAppointmentListRequest): Promise<Response.GetAppointmentListResponse>;
11
+ static getAppointmentDetail(data: Request.GetAppointmentDetailRequest): Promise<Response.GetAppointmentDetailResponse>;
12
+ static changeAppointmentStatus(data: Request.ChangeAppointmentStatusRequest): Promise<Response.ChangeAppointmentStatusResponse>;
13
+ static createAppointment(data: Request.CreateAppointmentRequest): Promise<Response.CreateAppointmentResponse>;
14
+ static updateAppointment(data: Request.UpdateAppointmentRequest): Promise<Response.UpdateAppointmentResponse>;
15
+ static dragDropUpdateAppointment(data: Request.DragDropUpdateAppointmentRequest): Promise<Response.DragDropUpdateAppointmentResponse>;
16
+ }
17
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/api/appointment.ts"],"names":[],"mappings":"AACA,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,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;IAC7E,OAAc,WAAW,gBAAoB;WAEzB,8BAA8B,CAAC,IAAI,EAAE,OAAO,CAAC,qCAAqC,GAAG,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC;WAU7I,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,QAAQ,CAAC,kCAAkC,CAAC;WAUjI,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;WAUzG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;WAUxH,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC;CASrJ"}
@@ -0,0 +1,88 @@
1
+ import { __awaiter } from "tslib";
2
+ import { appointment } from "../endpoints";
3
+ import Base from "../../../../base/Base";
4
+ import { GapApiVersion } from "../../../../base_type";
5
+ import * as Model from "../models";
6
+ export default class Appointment extends Base {
7
+ static getAppointmentSpecificDateList(data) {
8
+ var _a;
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: appointment.GET_APPOINTMENT_SPECIFIC_DATE_LIST,
12
+ query: data
13
+ });
14
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map((item) => Model.AppointmentSpecificDateModel(item));
15
+ });
16
+ }
17
+ static getAppointmentResourceList(data) {
18
+ var _a;
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const response = yield this.client.get({
21
+ path: appointment.GET_APPOINTMENT_RESOURCE_LIST,
22
+ query: data
23
+ });
24
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map((item) => Model.AppointmentResourceModel(item));
25
+ });
26
+ }
27
+ static getAppointmentList(data) {
28
+ var _a;
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const response = yield this.client.get({
31
+ path: appointment.GET_APPOINTMENT_LIST,
32
+ query: data
33
+ });
34
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map((item) => Model.AppointmentListModel(item));
35
+ });
36
+ }
37
+ static getAppointmentDetail(data) {
38
+ var _a;
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const response = yield this.client.get({
41
+ path: appointment.GET_APPOINTMENT_DETAIL,
42
+ query: data
43
+ });
44
+ return Model.AppointmentDetailModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
45
+ });
46
+ }
47
+ static changeAppointmentStatus(data) {
48
+ var _a;
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const response = yield this.client.post({
51
+ path: appointment.CHANGE_APPOINTMENT_STATUS,
52
+ data: data
53
+ });
54
+ return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
55
+ });
56
+ }
57
+ static createAppointment(data) {
58
+ var _a;
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const response = yield this.client.post({
61
+ path: appointment.CREATE_APPOINTMENT,
62
+ data: data
63
+ });
64
+ return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
65
+ });
66
+ }
67
+ static updateAppointment(data) {
68
+ var _a;
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const response = yield this.client.post({
71
+ path: appointment.UPDATE_APPOINTMENT,
72
+ data: data
73
+ });
74
+ return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
75
+ });
76
+ }
77
+ static dragDropUpdateAppointment(data) {
78
+ var _a;
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const response = yield this.client.post({
81
+ path: appointment.DRAG_DROP_UPDATE_APPOINTMENT,
82
+ data: data
83
+ });
84
+ return Model.DragDropUpdateAppointmentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
85
+ });
86
+ }
87
+ }
88
+ Appointment.API_VERSION = GapApiVersion.V1;
@@ -0,0 +1,11 @@
1
+ import CustomerAbstractClass from "../interfaces/customer";
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 Customer extends Base implements CustomerAbstractClass {
8
+ static API_VERSION: GapApiVersion;
9
+ static getAppointmentCustomerList(data: Request.GetAppointmentCustomerListRequest): Promise<DataWithMetaResponse<Response.GetAppointmentCustomerListResponse>>;
10
+ }
11
+ //# sourceMappingURL=customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/api/customer.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,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;AAGvD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;IACvE,OAAc,WAAW,gBAAoB;WAEzB,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,kCAAkC,CAAC,CAAC;CAS9K"}
@@ -0,0 +1,18 @@
1
+ import { __awaiter } from "tslib";
2
+ import { customer } 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
+ export default class Customer extends Base {
8
+ static getAppointmentCustomerList(data) {
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: customer.GET_APPOINTMENT_CUSTOMER_LIST,
12
+ query: data
13
+ });
14
+ return DataWithMetaModel(response, Model.AppointmentCustomerModel);
15
+ });
16
+ }
17
+ }
18
+ Customer.API_VERSION = GapApiVersion.V1;
@@ -1,2 +1,7 @@
1
1
  export { default as Settings } from "./settings";
2
+ export { default as Customer } from "./customer";
3
+ export { default as Service } from "./service";
4
+ export { default as Staff } from "./staff";
5
+ export { default as Appointment } from "./appointment";
6
+ export { default as Pos } from "./pos";
2
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_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,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC"}
@@ -1 +1,6 @@
1
1
  export { default as Settings } from "./settings";
2
+ export { default as Customer } from "./customer";
3
+ export { default as Service } from "./service";
4
+ export { default as Staff } from "./staff";
5
+ export { default as Appointment } from "./appointment";
6
+ export { default as Pos } from "./pos";
@@ -0,0 +1,11 @@
1
+ import PosAbstractClass from "../interfaces/pos";
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
+ export default class Pos extends Base implements PosAbstractClass {
7
+ static API_VERSION: GapApiVersion;
8
+ static getWaitList(data: Request.GetWaitListRequest): Promise<Response.GetWaitListResponse>;
9
+ static createOrder(data: Request.CreateOrderRequest): Promise<Response.CreateOrderResponse>;
10
+ }
11
+ //# sourceMappingURL=pos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pos.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/api/pos.ts"],"names":[],"mappings":"AACA,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;AACjD,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,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,IAAK,YAAW,gBAAgB;IAC7D,OAAc,WAAW,gBAAoB;WAEzB,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;WAUpF,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CAS3G"}
@@ -0,0 +1,28 @@
1
+ import { __awaiter } from "tslib";
2
+ import { pos } from "../endpoints";
3
+ import Base from "../../../../base/Base";
4
+ import { GapApiVersion } from "../../../../base_type";
5
+ import * as Model from "../models";
6
+ export default class Pos extends Base {
7
+ static getWaitList(data) {
8
+ var _a, _b;
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: pos.GET_WAIT_LIST,
12
+ query: data
13
+ });
14
+ return (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map((item) => Model.WaitListModel(item));
15
+ });
16
+ }
17
+ static createOrder(data) {
18
+ var _a;
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const response = yield this.client.post({
21
+ path: pos.CREATE_ORDER,
22
+ data: data
23
+ });
24
+ return Model.CreateOrderModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
25
+ });
26
+ }
27
+ }
28
+ Pos.API_VERSION = GapApiVersion.V1;
@@ -0,0 +1,11 @@
1
+ import ServiceAbstractClass from "../interfaces/service";
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 Service extends Base implements ServiceAbstractClass {
8
+ static API_VERSION: GapApiVersion;
9
+ static getAppointmentServiceList(data?: Request.GetAppointmentServiceListRequest): Promise<DataWithMetaResponse<Response.GetAppointmentServiceListResponse>>;
10
+ }
11
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/api/service.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,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;AAGvD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;IACrE,OAAc,WAAW,gBAAoB;WAEzB,yBAAyB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC;CAS5K"}
@@ -0,0 +1,18 @@
1
+ import { __awaiter } from "tslib";
2
+ import { service } 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
+ export default class Service extends Base {
8
+ static getAppointmentServiceList(data) {
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: service.GET_APPOINTMENT_SERVICE_LIST,
12
+ query: data
13
+ });
14
+ return DataWithMetaModel(response, Model.AppointmentServiceModel);
15
+ });
16
+ }
17
+ }
18
+ Service.API_VERSION = GapApiVersion.V1;
@@ -0,0 +1,10 @@
1
+ import StaffAbstractClass from "../interfaces/staff";
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
+ export default class Staff extends Base implements StaffAbstractClass {
7
+ static API_VERSION: GapApiVersion;
8
+ static getAppointmentStaffList(data?: Request.GetAppointmentStaffListRequest): Promise<Response.GetAppointmentStaffListResponse>;
9
+ }
10
+ //# sourceMappingURL=staff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/api/staff.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,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,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAK,YAAW,kBAAkB;IACjE,OAAc,WAAW,gBAAoB;WAEzB,uBAAuB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CAShJ"}
@@ -0,0 +1,18 @@
1
+ import { __awaiter } from "tslib";
2
+ import { staff } from "../endpoints";
3
+ import Base from "../../../../base/Base";
4
+ import { GapApiVersion } from "../../../../base_type";
5
+ import * as Model from "../models";
6
+ export default class Staff extends Base {
7
+ static getAppointmentStaffList(data) {
8
+ var _a;
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: staff.GET_APPOINTMENT_STAFF_LIST,
12
+ query: data
13
+ });
14
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map((item) => Model.AppointmentStaffModel(item));
15
+ });
16
+ }
17
+ }
18
+ Staff.API_VERSION = GapApiVersion.V1;
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ GET_APPOINTMENT_SPECIFIC_DATE_LIST: string;
3
+ GET_APPOINTMENT_RESOURCE_LIST: string;
4
+ GET_APPOINTMENT_LIST: string;
5
+ GET_APPOINTMENT_DETAIL: string;
6
+ CHANGE_APPOINTMENT_STATUS: string;
7
+ CREATE_APPOINTMENT: string;
8
+ UPDATE_APPOINTMENT: string;
9
+ DRAG_DROP_UPDATE_APPOINTMENT: string;
10
+ };
11
+ export default _default;
12
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/appointment.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wBASC"}
@@ -0,0 +1,10 @@
1
+ export default {
2
+ GET_APPOINTMENT_SPECIFIC_DATE_LIST: "/v1/appointment/appointment/list/specific-date",
3
+ GET_APPOINTMENT_RESOURCE_LIST: "/v1/appointment/appointment/list/resource",
4
+ GET_APPOINTMENT_LIST: "/v1/appointment/appointment/list/all",
5
+ GET_APPOINTMENT_DETAIL: "/v1/appointment/appointment/list/detail",
6
+ CHANGE_APPOINTMENT_STATUS: "/v1/appointment/appointment/form/change-status",
7
+ CREATE_APPOINTMENT: "/v1/appointment/appointment/form/create",
8
+ UPDATE_APPOINTMENT: "/v1/appointment/appointment/form/update",
9
+ DRAG_DROP_UPDATE_APPOINTMENT: "/v1/appointment/appointment/form/drag-drop-update",
10
+ };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ GET_APPOINTMENT_CUSTOMER_LIST: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/customer.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_APPOINTMENT_CUSTOMER_LIST: "/v1/appointment/customer/list/all",
3
+ };
@@ -1,2 +1,7 @@
1
1
  export { default as settings } from "./settings";
2
+ export { default as customer } from "./customer";
3
+ export { default as service } from "./service";
4
+ export { default as staff } from "./staff";
5
+ export { default as appointment } from "./appointment";
6
+ export { default as pos } from "./pos";
2
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_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,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC"}
@@ -1 +1,6 @@
1
1
  export { default as settings } from "./settings";
2
+ export { default as customer } from "./customer";
3
+ export { default as service } from "./service";
4
+ export { default as staff } from "./staff";
5
+ export { default as appointment } from "./appointment";
6
+ export { default as pos } from "./pos";
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ GET_WAIT_LIST: string;
3
+ CREATE_ORDER: string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=pos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pos.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/pos.ts"],"names":[],"mappings":";;;;AAAA,wBAGC"}
@@ -0,0 +1,4 @@
1
+ export default {
2
+ GET_WAIT_LIST: "/v1/appointment/pos/site/get-wait-list",
3
+ CREATE_ORDER: "/v1/appointment/pos/form/create-order",
4
+ };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ GET_APPOINTMENT_SERVICE_LIST: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/service.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_APPOINTMENT_SERVICE_LIST: "/v1/appointment/service/list/all",
3
+ };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ GET_APPOINTMENT_STAFF_LIST: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=staff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/staff.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_APPOINTMENT_STAFF_LIST: "/v1/appointment/staff/list/all",
3
+ };
@@ -0,0 +1,3 @@
1
+ export default abstract class Appointment {
2
+ }
3
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/interfaces/appointment.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAW;CACxC"}
@@ -0,0 +1,2 @@
1
+ export default class Appointment {
2
+ }
@@ -0,0 +1,3 @@
1
+ export default abstract class Customer {
2
+ }
3
+ //# sourceMappingURL=customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/interfaces/customer.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,QAAQ;CACrC"}
@@ -0,0 +1,2 @@
1
+ export default class Customer {
2
+ }
@@ -0,0 +1,3 @@
1
+ export default abstract class Pos {
2
+ }
3
+ //# sourceMappingURL=pos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pos.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/interfaces/pos.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,GAAG;CAChC"}
@@ -0,0 +1,2 @@
1
+ export default class Pos {
2
+ }
@@ -0,0 +1,3 @@
1
+ export default abstract class Service {
2
+ }
3
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/interfaces/service.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,OAAO;CACpC"}
@@ -0,0 +1,2 @@
1
+ export default class Service {
2
+ }
@@ -0,0 +1,3 @@
1
+ export default abstract class Staff {
2
+ }
3
+ //# sourceMappingURL=staff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/interfaces/staff.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK;CAClC"}
@@ -0,0 +1,2 @@
1
+ export default class Staff {
2
+ }