gap-nodejs-sdk 1.0.585 → 1.0.587

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.
@@ -7,5 +7,9 @@ import { DataWithMetaResponse } from "../../../../types";
7
7
  export default class Appointment extends Base implements AppointmentAbstractClass {
8
8
  static API_VERSION: GapApiVersion;
9
9
  static getListAppointment(data: Request.GetListAppointmentRequest): Promise<DataWithMetaResponse<Response.GetListAppointmentResponse>>;
10
+ static getListStaffAppointment(data: Request.GetListStaffAppointmentRequest): Promise<DataWithMetaResponse<Response.GetListStaffAppointmentResponse>>;
11
+ static getDetailAppointment(data: Request.GetDetailAppointmentRequest): Promise<Response.GetDetailAppointmentResponse>;
12
+ static getReportAppointment(data: Request.GetListAppointmentRequest): Promise<Response.GetReportAppointmentResponse>;
13
+ static postResendReminder(data: Request.PostResendReminderRequest): Promise<Response.PostResendReminderResponse>;
10
14
  }
11
15
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +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"}
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;WAU/H,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC;WAU9I,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU7G,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CAShI"}
@@ -1,7 +1,8 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import Base from "../../../../base/Base";
3
3
  import { GapApiVersion } from "../../../../base_type";
4
- import { DataAppointmentWithMetaModel } from "../../../../models";
4
+ import * as Model from "../models";
5
+ import { DataWithMetaModel } from "../../../../models";
5
6
  import { appointment } from "../endpoints";
6
7
  export default class Appointment extends Base {
7
8
  static getListAppointment(data) {
@@ -10,7 +11,50 @@ export default class Appointment extends Base {
10
11
  path: appointment.GET_LIST_APPOINTMENT,
11
12
  query: data
12
13
  });
13
- return DataAppointmentWithMetaModel(response);
14
+ return DataWithMetaModel(response, Model.ListAppointmentModel);
15
+ });
16
+ }
17
+ ;
18
+ static getListStaffAppointment(data) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const response = yield this.client.get({
21
+ path: appointment.GET_LIST_STAFF_APPOINTMENT,
22
+ query: data
23
+ });
24
+ return DataWithMetaModel(response, Model.ListStaffAppointmentModel);
25
+ });
26
+ }
27
+ ;
28
+ static getDetailAppointment(data) {
29
+ var _a;
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const response = yield this.client.get({
32
+ path: appointment.GET_APPOINTMENT_DETAIL,
33
+ query: data
34
+ });
35
+ return Model.DetailAppointmentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
36
+ });
37
+ }
38
+ ;
39
+ static getReportAppointment(data) {
40
+ var _a;
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ const response = yield this.client.get({
43
+ path: appointment.GET_REPORT_APPOINTMENT,
44
+ query: data
45
+ });
46
+ return Model.ReportAppointmentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
47
+ });
48
+ }
49
+ ;
50
+ static postResendReminder(data) {
51
+ var _a;
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const response = yield this.client.post({
54
+ path: appointment.RESEND_REMINDER,
55
+ data: data
56
+ });
57
+ return Model.ResendReminderModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
14
58
  });
15
59
  }
16
60
  }
@@ -1,5 +1,9 @@
1
1
  declare const _default: {
2
2
  GET_LIST_APPOINTMENT: string;
3
+ GET_LIST_STAFF_APPOINTMENT: string;
4
+ GET_APPOINTMENT_DETAIL: string;
5
+ GET_REPORT_APPOINTMENT: string;
6
+ RESEND_REMINDER: string;
3
7
  };
4
8
  export default _default;
5
9
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/appointment.ts"],"names":[],"mappings":";;;;;;;AAAA,wBAMC"}
@@ -1,3 +1,7 @@
1
1
  export default {
2
2
  GET_LIST_APPOINTMENT: '/v1/pos/appointment/site/list-appointment',
3
+ GET_LIST_STAFF_APPOINTMENT: '/v1/pos/appointment/site/list-staff-appointment',
4
+ GET_APPOINTMENT_DETAIL: '/v1/pos/appointment/site/detail',
5
+ GET_REPORT_APPOINTMENT: '/v1/pos/appointment/site/appointment-report',
6
+ RESEND_REMINDER: '/v1/appointment/appointment/form/resend-reminder',
3
7
  };
@@ -2,5 +2,9 @@ import * as Request from "../types/request";
2
2
  import * as Response from "../types/response";
3
3
  export default abstract class AppointmentAbstractClass {
4
4
  static getListAppointment: (data: Request.GetListAppointmentRequest) => Promise<Response.GetListAppointmentResponse>;
5
+ static getListStaffAppointment: (data: Request.GetListStaffAppointmentRequest) => Promise<Response.GetListStaffAppointmentResponse>;
6
+ static getAppointmentDetail: (data: Request.GetDetailAppointmentRequest) => Promise<Response.GetDetailAppointmentResponse>;
7
+ static getReportAppointment: (data: Request.GetListAppointmentRequest) => Promise<Response.GetReportAppointmentResponse>;
8
+ static postResendReminder: (data: Request.PostResendReminderRequest) => Promise<Response.PostResendReminderResponse>;
5
9
  }
6
10
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/interfaces/appointment.ts"],"names":[],"mappings":"AACA,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;IAC5H,OAAc,uBAAuB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,KAAK,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC;IAC3I,OAAc,oBAAoB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,KAAK,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;IAClI,OAAc,oBAAoB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,KAAK,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;IAChI,OAAc,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,KAAK,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC;CAC/H"}
@@ -1,3 +1,7 @@
1
1
  import * as Response from "../types/response";
2
2
  export declare function ListAppointmentModel(data: any): Response.GetListAppointmentResponse;
3
+ export declare function ListStaffAppointmentModel(data: any): Response.GetListStaffAppointmentResponse;
4
+ export declare function DetailAppointmentModel(data: any): Response.GetDetailAppointmentResponse;
5
+ export declare function ResendReminderModel(data: any): Response.PostResendReminderResponse;
6
+ export declare function ReportAppointmentModel(data: any): Response.GetReportAppointmentResponse;
3
7
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +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"}
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,CAwGnF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,+BAA+B,CAyE7F;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,4BAA4B,CAwEvF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,0BAA0B,CA2HlF;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,4BAA4B,CAMvF"}