gap-nodejs-sdk 1.0.354 → 1.0.356

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 (59) hide show
  1. package/dist/api/go_check_in_api/1.0.0/api/checkin.d.ts +3 -0
  2. package/dist/api/go_check_in_api/1.0.0/api/checkin.d.ts.map +1 -1
  3. package/dist/api/go_check_in_api/1.0.0/api/checkin.js +31 -0
  4. package/dist/api/go_check_in_api/1.0.0/api/index.d.ts +1 -0
  5. package/dist/api/go_check_in_api/1.0.0/api/index.d.ts.map +1 -1
  6. package/dist/api/go_check_in_api/1.0.0/api/index.js +1 -0
  7. package/dist/api/go_check_in_api/1.0.0/api/invoice.d.ts +10 -0
  8. package/dist/api/go_check_in_api/1.0.0/api/invoice.d.ts.map +1 -0
  9. package/dist/api/go_check_in_api/1.0.0/api/invoice.js +18 -0
  10. package/dist/api/go_check_in_api/1.0.0/endpoints/checkin.d.ts +3 -0
  11. package/dist/api/go_check_in_api/1.0.0/endpoints/checkin.d.ts.map +1 -1
  12. package/dist/api/go_check_in_api/1.0.0/endpoints/checkin.js +3 -0
  13. package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts +1 -0
  14. package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts.map +1 -1
  15. package/dist/api/go_check_in_api/1.0.0/endpoints/index.js +1 -0
  16. package/dist/api/go_check_in_api/1.0.0/endpoints/invoice.d.ts +5 -0
  17. package/dist/api/go_check_in_api/1.0.0/endpoints/invoice.d.ts.map +1 -0
  18. package/dist/api/go_check_in_api/1.0.0/endpoints/invoice.js +3 -0
  19. package/dist/api/go_check_in_api/1.0.0/interfaces/invoice.d.ts +1 -0
  20. package/dist/api/go_check_in_api/1.0.0/interfaces/invoice.d.ts.map +1 -0
  21. package/dist/api/go_check_in_api/1.0.0/interfaces/invoice.js +0 -0
  22. package/dist/api/go_check_in_api/1.0.0/models/checkin.d.ts +109 -0
  23. package/dist/api/go_check_in_api/1.0.0/models/checkin.d.ts.map +1 -1
  24. package/dist/api/go_check_in_api/1.0.0/models/checkin.js +117 -1
  25. package/dist/api/go_check_in_api/1.0.0/models/index.d.ts +1 -0
  26. package/dist/api/go_check_in_api/1.0.0/models/index.d.ts.map +1 -1
  27. package/dist/api/go_check_in_api/1.0.0/models/index.js +1 -0
  28. package/dist/api/go_check_in_api/1.0.0/models/invoice.d.ts +24 -0
  29. package/dist/api/go_check_in_api/1.0.0/models/invoice.d.ts.map +1 -0
  30. package/dist/api/go_check_in_api/1.0.0/models/invoice.js +56 -0
  31. package/dist/api/go_check_in_api/1.0.0/types/request/checkin.d.ts +18 -0
  32. package/dist/api/go_check_in_api/1.0.0/types/request/checkin.d.ts.map +1 -1
  33. package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts +1 -0
  34. package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts.map +1 -1
  35. package/dist/api/go_check_in_api/1.0.0/types/request/index.js +1 -0
  36. package/dist/api/go_check_in_api/1.0.0/types/request/invoice.d.ts +5 -0
  37. package/dist/api/go_check_in_api/1.0.0/types/request/invoice.d.ts.map +1 -0
  38. package/dist/api/go_check_in_api/1.0.0/types/request/invoice.js +1 -0
  39. package/dist/api/go_check_in_api/1.0.0/types/response/checkin.d.ts +100 -0
  40. package/dist/api/go_check_in_api/1.0.0/types/response/checkin.d.ts.map +1 -1
  41. package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts +1 -0
  42. package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts.map +1 -1
  43. package/dist/api/go_check_in_api/1.0.0/types/response/index.js +1 -0
  44. package/dist/api/go_check_in_api/1.0.0/types/response/invoice.d.ts +51 -0
  45. package/dist/api/go_check_in_api/1.0.0/types/response/invoice.d.ts.map +1 -0
  46. package/dist/api/go_check_in_api/1.0.0/types/response/invoice.js +1 -0
  47. package/dist/api/go_check_in_api/index.d.ts +1 -0
  48. package/dist/api/go_check_in_api/index.d.ts.map +1 -1
  49. package/dist/api/go_check_in_api/index.js +1 -0
  50. package/dist/api/pos_client_api/1.0.0/api/check_out.d.ts +1 -0
  51. package/dist/api/pos_client_api/1.0.0/api/check_out.d.ts.map +1 -1
  52. package/dist/api/pos_client_api/1.0.0/api/check_out.js +10 -0
  53. package/dist/api/pos_client_api/1.0.0/endpoints/check_out.d.ts +1 -0
  54. package/dist/api/pos_client_api/1.0.0/endpoints/check_out.d.ts.map +1 -1
  55. package/dist/api/pos_client_api/1.0.0/endpoints/check_out.js +1 -0
  56. package/dist/api/settings_api/1.0.0/types/request/checkout.d.ts +1 -1
  57. package/dist/api/settings_api/1.0.0/types/request/checkout.d.ts.map +1 -1
  58. package/dist/gap-sdk.js +1 -1
  59. package/package.json +1 -1
@@ -8,5 +8,8 @@ export default class Checkin extends Base implements CategoryAbstractClass {
8
8
  static getCheckinList(query: Request.GetCheckinListRequest): Promise<Response.GetCheckinListResponse>;
9
9
  static updateInServiceStatus(data: Request.UpdateInServiceStatusRequest): Promise<Response.UpdateStatusResponse>;
10
10
  static updateSmsSend(data: Request.UpdateSmsSendRequest): Promise<Response.UpdateStatusResponse>;
11
+ static updateCustomerCheckinStaff(data: Request.UpdateCustomerCheckinStaffRequest): Promise<Response.UpdateCustomerCheckinStaffResponse>;
12
+ static updateStaffService(data: Request.UpdateStaffServiceRequest): Promise<Response.UpdateStaffServiceResponse>;
13
+ static getCustomerCheckinService(query: Request.GetCustomerCheckinServiceRequest): Promise<Response.GetCustomerCheckinServiceResponse>;
11
14
  }
12
15
  //# sourceMappingURL=checkin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/checkin.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;AAK9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,qBAAqB;IACtE,OAAc,WAAW,gBAAoB;WAEzB,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU9F,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUzG,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;CAShH"}
1
+ {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/checkin.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;AAI9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,qBAAqB;IACtE,OAAc,WAAW,gBAAoB;WAEzB,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU9F,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUzG,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUzF,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;WASzG,yBAAyB,CAAC,KAAK,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC;CAStJ"}
@@ -3,6 +3,7 @@ import { checkin } from "../endpoints";
3
3
  import Base from "../../../../base/Base";
4
4
  import { GapApiVersion } from "../../../../base_type";
5
5
  import * as Model from "../models";
6
+ import { objectToFormData } from "../../../../utils/form-data";
6
7
  export default class Checkin extends Base {
7
8
  static getCheckinList(query) {
8
9
  var _a, _b;
@@ -34,5 +35,35 @@ export default class Checkin extends Base {
34
35
  return Model.UpdateStatusModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
35
36
  });
36
37
  }
38
+ static updateCustomerCheckinStaff(data) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const formData = objectToFormData(data);
41
+ const response = yield this.client.post({
42
+ path: checkin.UPDATE_CUSTOMER_CHECKIN_STAFF,
43
+ data: formData,
44
+ });
45
+ return null;
46
+ });
47
+ }
48
+ static updateStaffService(data) {
49
+ var _a;
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ const response = yield this.client.post({
52
+ path: checkin.UPDATE_STAFF_SERVICE,
53
+ data: data,
54
+ });
55
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.UpdateStaffServiceModel(item));
56
+ });
57
+ }
58
+ static getCustomerCheckinService(query) {
59
+ var _a;
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const response = yield this.client.get({
62
+ path: checkin.GET_INFO_CUSTOMER_CHECKIN_SERVICE,
63
+ query: query
64
+ });
65
+ return Model.CustomerCheckinServiceModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
66
+ });
67
+ }
37
68
  }
38
69
  Checkin.API_VERSION = GapApiVersion.V1;
@@ -12,4 +12,5 @@ export { default as Checkin } from "./checkin";
12
12
  export { default as Group } from "./group";
13
13
  export { default as Reward } from "./reward";
14
14
  export { default as Review } from "./review";
15
+ export { default as Invoice } from "./invoice";
15
16
  //# 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;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,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,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,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,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;AACvD,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,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,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC"}
@@ -12,3 +12,4 @@ export { default as Checkin } from "./checkin";
12
12
  export { default as Group } from "./group";
13
13
  export { default as Reward } from "./reward";
14
14
  export { default as Review } from "./review";
15
+ export { default as Invoice } from "./invoice";
@@ -0,0 +1,10 @@
1
+ import CategoryAbstractClass from "../interfaces/category";
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 Invoice extends Base implements CategoryAbstractClass {
7
+ static API_VERSION: GapApiVersion;
8
+ static getListByCustomer(query: Request.GetListByCustomerRequest): Promise<Response.GetListByCustomerResponse>;
9
+ }
10
+ //# sourceMappingURL=invoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/invoice.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;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,qBAAqB;IACtE,OAAc,WAAW,gBAAoB;WAEzB,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS9H"}
@@ -0,0 +1,18 @@
1
+ import { __awaiter } from "tslib";
2
+ import { invoice } from "../endpoints";
3
+ import Base from "../../../../base/Base";
4
+ import { GapApiVersion } from "../../../../base_type";
5
+ import * as Model from "../models";
6
+ export default class Invoice extends Base {
7
+ static getListByCustomer(query) {
8
+ var _a, _b;
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const response = yield this.client.get({
11
+ path: invoice.GET_LIST_BY_CUSTOMER,
12
+ query: query
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.ListByCustomerModel(item));
15
+ });
16
+ }
17
+ }
18
+ Invoice.API_VERSION = GapApiVersion.V1;
@@ -2,6 +2,9 @@ declare const _default: {
2
2
  GET_CHECKIN_LIST: string;
3
3
  UPDATE_IN_SERVICE_STATUS: string;
4
4
  UPDATE_SMS_SENT: string;
5
+ UPDATE_CUSTOMER_CHECKIN_STAFF: string;
6
+ UPDATE_STAFF_SERVICE: string;
7
+ GET_INFO_CUSTOMER_CHECKIN_SERVICE: string;
5
8
  };
6
9
  export default _default;
7
10
  //# sourceMappingURL=checkin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/checkin.ts"],"names":[],"mappings":";;;;;AAAA,wBAIC"}
1
+ {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/checkin.ts"],"names":[],"mappings":";;;;;;;;AAAA,wBAOC"}
@@ -2,4 +2,7 @@ export default {
2
2
  GET_CHECKIN_LIST: 'v1/gocheckin/checkin/site/list',
3
3
  UPDATE_IN_SERVICE_STATUS: 'v1/gocheckin/checkout/form/update-status',
4
4
  UPDATE_SMS_SENT: 'v1/gocheckin/checkout/form/update-sms-sent',
5
+ UPDATE_CUSTOMER_CHECKIN_STAFF: 'v1/gocheckin/checkin/form/update-customer-checkin-staff',
6
+ UPDATE_STAFF_SERVICE: 'v1/gocheckin/checkout/service/update-staff-service',
7
+ GET_INFO_CUSTOMER_CHECKIN_SERVICE: 'v1/gocheckin/checkout/site/info',
5
8
  };
@@ -12,4 +12,5 @@ export { default as checkin } from "./checkin";
12
12
  export { default as group } from "./group";
13
13
  export { default as reward } from "./reward";
14
14
  export { default as review } from "./review";
15
+ export { default as invoice } from "./invoice";
15
16
  //# 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;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,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,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,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,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;AACvD,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,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,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC"}
@@ -12,3 +12,4 @@ export { default as checkin } from "./checkin";
12
12
  export { default as group } from "./group";
13
13
  export { default as reward } from "./reward";
14
14
  export { default as review } from "./review";
15
+ export { default as invoice } from "./invoice";
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ GET_LIST_BY_CUSTOMER: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=invoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/invoice.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_LIST_BY_CUSTOMER: 'v1/gocheckin/invoice/site/list-by-customer',
3
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=invoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/interfaces/invoice.ts"],"names":[],"mappings":""}
@@ -49,6 +49,7 @@ export declare const CheckinListModel: (data: any) => {
49
49
  yelp: any;
50
50
  last_review: any;
51
51
  review_type: any;
52
+ number_checkin: any;
52
53
  };
53
54
  customer_point: {
54
55
  customer_id: any;
@@ -149,4 +150,112 @@ export declare const UpdateStatusModel: (data: any) => {
149
150
  invoice_details: any;
150
151
  };
151
152
  };
153
+ export declare const UpdateStaffServiceModel: (data: any) => {
154
+ checkin_id: any;
155
+ service_id: any;
156
+ staff_id: any;
157
+ price: any;
158
+ id: any;
159
+ staff: any;
160
+ service: {
161
+ id: any;
162
+ name: any;
163
+ price: any;
164
+ };
165
+ };
166
+ export declare const CustomerCheckinServiceModel: (data: any) => {
167
+ id: any;
168
+ customer_id: any;
169
+ created_at: any;
170
+ update_at: any;
171
+ owner_id: any;
172
+ checkin_id: any;
173
+ status: any;
174
+ note: any;
175
+ total_price: any;
176
+ discount: any;
177
+ user_id: any;
178
+ point_bonus: any;
179
+ sms_sent: any;
180
+ order_id: any;
181
+ check_in: any;
182
+ survey: any;
183
+ staff: any;
184
+ customer: {
185
+ id: any;
186
+ first_name: any;
187
+ last_name: any;
188
+ full_name: any;
189
+ phone: any;
190
+ email: any;
191
+ address: any;
192
+ city: any;
193
+ state: any;
194
+ country: any;
195
+ gender: any;
196
+ birthday: any;
197
+ create_at: any;
198
+ update_at: any;
199
+ status: any;
200
+ group_id: any;
201
+ note: any;
202
+ parent_id: any;
203
+ rating: any;
204
+ is_yelp: any;
205
+ reachable_email: any;
206
+ reachable_push: any;
207
+ reachable_sms: any;
208
+ visit_count: any;
209
+ last_visited: any;
210
+ image_url: any;
211
+ address2: any;
212
+ postal_code: any;
213
+ is_send_sms: any;
214
+ is_import: any;
215
+ is_checked_in: any;
216
+ is_blocked_from_booking: any;
217
+ source: any;
218
+ current_point: any;
219
+ lifetime_point: any;
220
+ type: any;
221
+ yelp: any;
222
+ last_review: any;
223
+ review_type: any;
224
+ number_checkin: any;
225
+ };
226
+ customer_point: {
227
+ customer_id: any;
228
+ point: any;
229
+ created_at: any;
230
+ update_at: any;
231
+ lifetime_point: any;
232
+ };
233
+ redeem: any;
234
+ promotion: any;
235
+ list_redeem: any;
236
+ list_promotion: any;
237
+ invoice: {
238
+ id: any;
239
+ checkout_id: any;
240
+ customer_id: any;
241
+ customer_name: any;
242
+ customer_phone: any;
243
+ promotion_code: any;
244
+ redeem_id: any;
245
+ total_discount: any;
246
+ has_tax: any;
247
+ tax_price: any;
248
+ total_before_discount: any;
249
+ total_after_discount: any;
250
+ total_after_tax: any;
251
+ payment_method: any;
252
+ employee_id: any;
253
+ employee_name: any;
254
+ status: any;
255
+ created_at: any;
256
+ updated_at: any;
257
+ type: any;
258
+ invoice_details: any;
259
+ };
260
+ };
152
261
  //# sourceMappingURL=checkin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/checkin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBzC,CAAA;AAwJD,eAAO,MAAM,iBAAiB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C1C,CAAA"}
1
+ {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/checkin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBzC,CAAA;AAyJD,eAAO,MAAM,iBAAiB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C1C,CAAA;AAsED,eAAO,MAAM,uBAAuB,SAAU,GAAG;;;;;;;;;;;;CAchD,CAAA;AAED,eAAO,MAAM,2BAA2B,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BpD,CAAA"}
@@ -24,7 +24,7 @@ export const CheckinListModel = (data) => {
24
24
  };
25
25
  };
26
26
  const Customer = (data) => {
27
- 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;
27
+ 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;
28
28
  return {
29
29
  id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
30
30
  first_name: (_b = data === null || data === void 0 ? void 0 : data.first_name) !== null && _b !== void 0 ? _b : null,
@@ -65,6 +65,7 @@ const Customer = (data) => {
65
65
  yelp: (_12 = data === null || data === void 0 ? void 0 : data.yelp) !== null && _12 !== void 0 ? _12 : null,
66
66
  last_review: (_13 = data === null || data === void 0 ? void 0 : data.last_review) !== null && _13 !== void 0 ? _13 : null,
67
67
  review_type: (_14 = data === null || data === void 0 ? void 0 : data.review_type) !== null && _14 !== void 0 ? _14 : null,
68
+ number_checkin: (_15 = data === null || data === void 0 ? void 0 : data.number_checkin) !== null && _15 !== void 0 ? _15 : null,
68
69
  };
69
70
  };
70
71
  const CustomerPoint = (data) => {
@@ -285,3 +286,118 @@ const InvoiceDetail = (data) => {
285
286
  };
286
287
  });
287
288
  };
289
+ export const UpdateStaffServiceModel = (data) => {
290
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
291
+ return {
292
+ checkin_id: (_a = data === null || data === void 0 ? void 0 : data.checkin_id) !== null && _a !== void 0 ? _a : null,
293
+ service_id: (_b = data === null || data === void 0 ? void 0 : data.service_id) !== null && _b !== void 0 ? _b : null,
294
+ staff_id: (_c = data === null || data === void 0 ? void 0 : data.staff_id) !== null && _c !== void 0 ? _c : null,
295
+ price: (_d = data === null || data === void 0 ? void 0 : data.price) !== null && _d !== void 0 ? _d : null,
296
+ id: (_e = data === null || data === void 0 ? void 0 : data.id) !== null && _e !== void 0 ? _e : null,
297
+ staff: (_f = data === null || data === void 0 ? void 0 : data.staff) !== null && _f !== void 0 ? _f : null,
298
+ service: {
299
+ id: (_h = (_g = data === null || data === void 0 ? void 0 : data.service) === null || _g === void 0 ? void 0 : _g.id) !== null && _h !== void 0 ? _h : null,
300
+ name: (_k = (_j = data === null || data === void 0 ? void 0 : data.service) === null || _j === void 0 ? void 0 : _j.name) !== null && _k !== void 0 ? _k : null,
301
+ price: (_m = (_l = data === null || data === void 0 ? void 0 : data.service) === null || _l === void 0 ? void 0 : _l.price) !== null && _m !== void 0 ? _m : null,
302
+ }
303
+ };
304
+ };
305
+ export const CustomerCheckinServiceModel = (data) => {
306
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
307
+ return {
308
+ id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
309
+ customer_id: (_b = data === null || data === void 0 ? void 0 : data.customer_id) !== null && _b !== void 0 ? _b : null,
310
+ created_at: (_c = data === null || data === void 0 ? void 0 : data.created_at) !== null && _c !== void 0 ? _c : null,
311
+ update_at: (_d = data === null || data === void 0 ? void 0 : data.update_at) !== null && _d !== void 0 ? _d : null,
312
+ owner_id: (_e = data === null || data === void 0 ? void 0 : data.owner_id) !== null && _e !== void 0 ? _e : null,
313
+ checkin_id: (_f = data === null || data === void 0 ? void 0 : data.checkin_id) !== null && _f !== void 0 ? _f : null,
314
+ status: (_g = data === null || data === void 0 ? void 0 : data.status) !== null && _g !== void 0 ? _g : null,
315
+ note: (_h = data === null || data === void 0 ? void 0 : data.note) !== null && _h !== void 0 ? _h : null,
316
+ total_price: (_j = data === null || data === void 0 ? void 0 : data.total_price) !== null && _j !== void 0 ? _j : null,
317
+ discount: (_k = data === null || data === void 0 ? void 0 : data.discount) !== null && _k !== void 0 ? _k : null,
318
+ user_id: (_l = data === null || data === void 0 ? void 0 : data.user_id) !== null && _l !== void 0 ? _l : null,
319
+ point_bonus: (_m = data === null || data === void 0 ? void 0 : data.point_bonus) !== null && _m !== void 0 ? _m : null,
320
+ sms_sent: (_o = data === null || data === void 0 ? void 0 : data.sms_sent) !== null && _o !== void 0 ? _o : null,
321
+ order_id: (_p = data === null || data === void 0 ? void 0 : data.order_id) !== null && _p !== void 0 ? _p : null,
322
+ check_in: (_q = data === null || data === void 0 ? void 0 : data.check_in) !== null && _q !== void 0 ? _q : null,
323
+ survey: (_r = data === null || data === void 0 ? void 0 : data.survey) !== null && _r !== void 0 ? _r : null,
324
+ staff: (_s = data === null || data === void 0 ? void 0 : data.staff) !== null && _s !== void 0 ? _s : null,
325
+ customer: Customer(data === null || data === void 0 ? void 0 : data.customer),
326
+ customer_point: CustomerPoint(data === null || data === void 0 ? void 0 : data.customer_point),
327
+ redeem: Redeem(data === null || data === void 0 ? void 0 : data.redeem),
328
+ promotion: (_t = data === null || data === void 0 ? void 0 : data.promotion) !== null && _t !== void 0 ? _t : null,
329
+ list_redeem: ListRedeemCustomerCheckinService(data === null || data === void 0 ? void 0 : data.list_redeem),
330
+ list_promotion: ListPromotionCustomerCheckinService(data === null || data === void 0 ? void 0 : data.list_promotion),
331
+ invoice: Invoice(data === null || data === void 0 ? void 0 : data.invoice),
332
+ };
333
+ };
334
+ const ListRedeemCustomerCheckinService = (data) => {
335
+ return (data || []).map((item) => {
336
+ var _a, _b, _c, _d, _e, _f, _g, _h;
337
+ return {
338
+ id: (_a = item === null || item === void 0 ? void 0 : item.id) !== null && _a !== void 0 ? _a : null,
339
+ point: (_b = item === null || item === void 0 ? void 0 : item.point) !== null && _b !== void 0 ? _b : null,
340
+ content: (_c = item === null || item === void 0 ? void 0 : item.content) !== null && _c !== void 0 ? _c : null,
341
+ created_at: (_d = item === null || item === void 0 ? void 0 : item.created_at) !== null && _d !== void 0 ? _d : null,
342
+ updated_at: (_e = item === null || item === void 0 ? void 0 : item.updated_at) !== null && _e !== void 0 ? _e : null,
343
+ is_active: (_f = item === null || item === void 0 ? void 0 : item.is_active) !== null && _f !== void 0 ? _f : null,
344
+ logic_type: (_g = item === null || item === void 0 ? void 0 : item.logic_type) !== null && _g !== void 0 ? _g : null,
345
+ logic_value: (_h = item === null || item === void 0 ? void 0 : item.logic_value) !== null && _h !== void 0 ? _h : null,
346
+ };
347
+ });
348
+ };
349
+ const ListPromotionCustomerCheckinService = (data) => {
350
+ return (data || []).map((item) => {
351
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
352
+ return {
353
+ id: (_a = item === null || item === void 0 ? void 0 : item.id) !== null && _a !== void 0 ? _a : null,
354
+ campaign_id: (_b = item === null || item === void 0 ? void 0 : item.campaign_id) !== null && _b !== void 0 ? _b : null,
355
+ code: (_c = item === null || item === void 0 ? void 0 : item.code) !== null && _c !== void 0 ? _c : null,
356
+ customer_id: (_d = item === null || item === void 0 ? void 0 : item.customer_id) !== null && _d !== void 0 ? _d : null,
357
+ created_at: (_e = item === null || item === void 0 ? void 0 : item.created_at) !== null && _e !== void 0 ? _e : null,
358
+ updated_at: (_f = item === null || item === void 0 ? void 0 : item.updated_at) !== null && _f !== void 0 ? _f : null,
359
+ is_used: (_g = item === null || item === void 0 ? void 0 : item.is_used) !== null && _g !== void 0 ? _g : null,
360
+ expired_date: (_h = item === null || item === void 0 ? void 0 : item.expired_date) !== null && _h !== void 0 ? _h : null,
361
+ limit_used: (_j = item === null || item === void 0 ? void 0 : item.limit_used) !== null && _j !== void 0 ? _j : null,
362
+ total_used: (_k = item === null || item === void 0 ? void 0 : item.total_used) !== null && _k !== void 0 ? _k : null,
363
+ campaign: Campaign(item === null || item === void 0 ? void 0 : item.campaign),
364
+ };
365
+ });
366
+ };
367
+ const Campaign = (data) => {
368
+ 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;
369
+ return {
370
+ id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
371
+ name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
372
+ type: (_c = data === null || data === void 0 ? void 0 : data.type) !== null && _c !== void 0 ? _c : null,
373
+ created_at: (_d = data === null || data === void 0 ? void 0 : data.created_at) !== null && _d !== void 0 ? _d : null,
374
+ updated_at: (_e = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _e !== void 0 ? _e : null,
375
+ is_active: (_f = data === null || data === void 0 ? void 0 : data.is_active) !== null && _f !== void 0 ? _f : null,
376
+ delivery_time: (_g = data === null || data === void 0 ? void 0 : data.delivery_time) !== null && _g !== void 0 ? _g : null,
377
+ read_tracking: (_h = data === null || data === void 0 ? void 0 : data.read_tracking) !== null && _h !== void 0 ? _h : null,
378
+ link_tracking: (_j = data === null || data === void 0 ? void 0 : data.link_tracking) !== null && _j !== void 0 ? _j : null,
379
+ reply_tracking: (_k = data === null || data === void 0 ? void 0 : data.reply_tracking) !== null && _k !== void 0 ? _k : null,
380
+ google_analytics: (_l = data === null || data === void 0 ? void 0 : data.google_analytics) !== null && _l !== void 0 ? _l : null,
381
+ expired_date: (_m = data === null || data === void 0 ? void 0 : data.expired_date) !== null && _m !== void 0 ? _m : null,
382
+ usable_limit: (_o = data === null || data === void 0 ? void 0 : data.usable_limit) !== null && _o !== void 0 ? _o : null,
383
+ start_date: (_p = data === null || data === void 0 ? void 0 : data.start_date) !== null && _p !== void 0 ? _p : null,
384
+ sent_at: (_q = data === null || data === void 0 ? void 0 : data.sent_at) !== null && _q !== void 0 ? _q : null,
385
+ total_delivered_email: (_r = data === null || data === void 0 ? void 0 : data.total_delivered_email) !== null && _r !== void 0 ? _r : null,
386
+ total_delivered_push: (_s = data === null || data === void 0 ? void 0 : data.total_delivered_push) !== null && _s !== void 0 ? _s : null,
387
+ total_delivered_sms: (_t = data === null || data === void 0 ? void 0 : data.total_delivered_sms) !== null && _t !== void 0 ? _t : null,
388
+ total_open: (_u = data === null || data === void 0 ? void 0 : data.total_open) !== null && _u !== void 0 ? _u : null,
389
+ total_optout: (_v = data === null || data === void 0 ? void 0 : data.total_optout) !== null && _v !== void 0 ? _v : null,
390
+ total_sent: (_w = data === null || data === void 0 ? void 0 : data.total_sent) !== null && _w !== void 0 ? _w : null,
391
+ total_visits: (_x = data === null || data === void 0 ? void 0 : data.total_visits) !== null && _x !== void 0 ? _x : null,
392
+ tracker_id: (_y = data === null || data === void 0 ? void 0 : data.tracker_id) !== null && _y !== void 0 ? _y : null,
393
+ groups: (_z = data === null || data === void 0 ? void 0 : data.groups) !== null && _z !== void 0 ? _z : null,
394
+ has_promotion: (_0 = data === null || data === void 0 ? void 0 : data.has_promotion) !== null && _0 !== void 0 ? _0 : null,
395
+ expired_day_in: (_1 = data === null || data === void 0 ? void 0 : data.expired_day_in) !== null && _1 !== void 0 ? _1 : null,
396
+ logic_type: (_2 = data === null || data === void 0 ? void 0 : data.logic_type) !== null && _2 !== void 0 ? _2 : null,
397
+ logic_value: (_3 = data === null || data === void 0 ? void 0 : data.logic_value) !== null && _3 !== void 0 ? _3 : null,
398
+ is_show_exp: (_4 = data === null || data === void 0 ? void 0 : data.is_show_exp) !== null && _4 !== void 0 ? _4 : null,
399
+ business_name: (_5 = data === null || data === void 0 ? void 0 : data.business_name) !== null && _5 !== void 0 ? _5 : null,
400
+ is_sent_opt_out: (_6 = data === null || data === void 0 ? void 0 : data.is_sent_opt_out) !== null && _6 !== void 0 ? _6 : null,
401
+ email_subject: (_7 = data === null || data === void 0 ? void 0 : data.email_subject) !== null && _7 !== void 0 ? _7 : null,
402
+ };
403
+ };
@@ -12,4 +12,5 @@ export * from "./checkin";
12
12
  export * from "./group";
13
13
  export * from "./reward";
14
14
  export * from "./review";
15
+ export * from "./invoice";
15
16
  //# 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/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;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,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;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -12,3 +12,4 @@ export * from "./checkin";
12
12
  export * from "./group";
13
13
  export * from "./reward";
14
14
  export * from "./review";
15
+ export * from "./invoice";
@@ -0,0 +1,24 @@
1
+ export declare const ListByCustomerModel: (data: any) => {
2
+ id: any;
3
+ checkout_id: any;
4
+ customer_id: any;
5
+ customer_name: any;
6
+ customer_phone: any;
7
+ promotion_code: any;
8
+ redeem_id: any;
9
+ total_discount: any;
10
+ has_tax: any;
11
+ tax_price: any;
12
+ total_before_discount: any;
13
+ total_after_discount: any;
14
+ total_after_tax: any;
15
+ payment_method: any;
16
+ employee_id: any;
17
+ employee_name: any;
18
+ status: any;
19
+ created_at: any;
20
+ updated_at: any;
21
+ type: any;
22
+ invoice_details: any;
23
+ };
24
+ //# sourceMappingURL=invoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/invoice.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;CAwB5C,CAAA"}
@@ -0,0 +1,56 @@
1
+ export const ListByCustomerModel = (data) => {
2
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
3
+ return {
4
+ id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
5
+ checkout_id: (_b = data === null || data === void 0 ? void 0 : data.checkout_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
+ customer_name: (_d = data === null || data === void 0 ? void 0 : data.customer_name) !== null && _d !== void 0 ? _d : null,
8
+ customer_phone: (_e = data === null || data === void 0 ? void 0 : data.customer_phone) !== null && _e !== void 0 ? _e : null,
9
+ promotion_code: (_f = data === null || data === void 0 ? void 0 : data.promotion_code) !== null && _f !== void 0 ? _f : null,
10
+ redeem_id: (_g = data === null || data === void 0 ? void 0 : data.redeem_id) !== null && _g !== void 0 ? _g : null,
11
+ total_discount: (_h = data === null || data === void 0 ? void 0 : data.total_discount) !== null && _h !== void 0 ? _h : null,
12
+ has_tax: (_j = data === null || data === void 0 ? void 0 : data.has_tax) !== null && _j !== void 0 ? _j : null,
13
+ tax_price: (_k = data === null || data === void 0 ? void 0 : data.tax_price) !== null && _k !== void 0 ? _k : null,
14
+ total_before_discount: (_l = data === null || data === void 0 ? void 0 : data.total_before_discount) !== null && _l !== void 0 ? _l : null,
15
+ total_after_discount: (_m = data === null || data === void 0 ? void 0 : data.total_after_discount) !== null && _m !== void 0 ? _m : null,
16
+ total_after_tax: (_o = data === null || data === void 0 ? void 0 : data.total_after_tax) !== null && _o !== void 0 ? _o : null,
17
+ payment_method: (_p = data === null || data === void 0 ? void 0 : data.payment_method) !== null && _p !== void 0 ? _p : null,
18
+ employee_id: (_q = data === null || data === void 0 ? void 0 : data.employee_id) !== null && _q !== void 0 ? _q : null,
19
+ employee_name: (_r = data === null || data === void 0 ? void 0 : data.employee_name) !== null && _r !== void 0 ? _r : null,
20
+ status: (_s = data === null || data === void 0 ? void 0 : data.status) !== null && _s !== void 0 ? _s : null,
21
+ created_at: (_t = data === null || data === void 0 ? void 0 : data.created_at) !== null && _t !== void 0 ? _t : null,
22
+ updated_at: (_u = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _u !== void 0 ? _u : null,
23
+ type: (_v = data === null || data === void 0 ? void 0 : data.type) !== null && _v !== void 0 ? _v : null,
24
+ invoice_details: InvoiceDetail(data === null || data === void 0 ? void 0 : data.invoice_details)
25
+ };
26
+ };
27
+ const InvoiceDetail = (data) => {
28
+ return (data || []).map((item) => {
29
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
30
+ return {
31
+ id: (_a = item === null || item === void 0 ? void 0 : item.id) !== null && _a !== void 0 ? _a : null,
32
+ invoice_id: (_b = item === null || item === void 0 ? void 0 : item.invoice_id) !== null && _b !== void 0 ? _b : null,
33
+ product_type: (_c = item === null || item === void 0 ? void 0 : item.product_type) !== null && _c !== void 0 ? _c : null,
34
+ product_id: (_d = item === null || item === void 0 ? void 0 : item.product_id) !== null && _d !== void 0 ? _d : null,
35
+ product_name: (_e = item === null || item === void 0 ? void 0 : item.product_name) !== null && _e !== void 0 ? _e : null,
36
+ description: (_f = item === null || item === void 0 ? void 0 : item.description) !== null && _f !== void 0 ? _f : null,
37
+ duration: (_g = item === null || item === void 0 ? void 0 : item.duration) !== null && _g !== void 0 ? _g : null,
38
+ product_price: (_h = item === null || item === void 0 ? void 0 : item.product_price) !== null && _h !== void 0 ? _h : null,
39
+ quantity: (_j = item === null || item === void 0 ? void 0 : item.quantity) !== null && _j !== void 0 ? _j : null,
40
+ promotion_code: (_k = item === null || item === void 0 ? void 0 : item.promotion_code) !== null && _k !== void 0 ? _k : null,
41
+ discount_price: (_l = item === null || item === void 0 ? void 0 : item.discount_price) !== null && _l !== void 0 ? _l : null,
42
+ has_tax: (_m = item === null || item === void 0 ? void 0 : item.has_tax) !== null && _m !== void 0 ? _m : null,
43
+ tax_price: (_o = item === null || item === void 0 ? void 0 : item.tax_price) !== null && _o !== void 0 ? _o : null,
44
+ total_after_tax: (_p = item === null || item === void 0 ? void 0 : item.total_after_tax) !== null && _p !== void 0 ? _p : null,
45
+ total_before_discount: (_q = item === null || item === void 0 ? void 0 : item.total_before_discount) !== null && _q !== void 0 ? _q : null,
46
+ total_after_discount: (_r = item === null || item === void 0 ? void 0 : item.total_after_discount) !== null && _r !== void 0 ? _r : null,
47
+ detail: (_s = item === null || item === void 0 ? void 0 : item.detail) !== null && _s !== void 0 ? _s : null,
48
+ payment_method: (_t = item === null || item === void 0 ? void 0 : item.payment_method) !== null && _t !== void 0 ? _t : null,
49
+ employee_id: (_u = item === null || item === void 0 ? void 0 : item.employee_id) !== null && _u !== void 0 ? _u : null,
50
+ employee_name: (_v = item === null || item === void 0 ? void 0 : item.employee_name) !== null && _v !== void 0 ? _v : null,
51
+ status: (_w = item === null || item === void 0 ? void 0 : item.status) !== null && _w !== void 0 ? _w : null,
52
+ created_at: (_x = item === null || item === void 0 ? void 0 : item.created_at) !== null && _x !== void 0 ? _x : null,
53
+ updated_at: (_y = item === null || item === void 0 ? void 0 : item.updated_at) !== null && _y !== void 0 ? _y : null,
54
+ };
55
+ });
56
+ };
@@ -11,4 +11,22 @@ export type UpdateSmsSendRequest = {
11
11
  checkout_id: number;
12
12
  sms_sent: number;
13
13
  };
14
+ export type UpdateCustomerCheckinStaffRequest = {
15
+ checkin_id: number;
16
+ list_staff: any;
17
+ };
18
+ export type UpdateStaffServiceRequest = {
19
+ checkin_id: number;
20
+ data: {
21
+ service_id: number;
22
+ staff_id: any;
23
+ price: number;
24
+ };
25
+ page: number;
26
+ "per-page": number;
27
+ keyword: string;
28
+ };
29
+ export type GetCustomerCheckinServiceRequest = {
30
+ id: number;
31
+ };
14
32
  //# sourceMappingURL=checkin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/checkin.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA"}
1
+ {"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/checkin.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC5C,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,GAAG,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE;QACF,UAAU,EAAE,MAAM,CAAA;QAClB,QAAQ,EAAE,GAAG,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAA;CACb,CAAA"}
@@ -12,4 +12,5 @@ export * from './checkin';
12
12
  export * from './group';
13
13
  export * from './reward';
14
14
  export * from './review';
15
+ export * from './invoice';
15
16
  //# 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/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;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,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;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -12,3 +12,4 @@ export * from './checkin';
12
12
  export * from './group';
13
13
  export * from './reward';
14
14
  export * from './review';
15
+ export * from './invoice';
@@ -0,0 +1,5 @@
1
+ export type GetListByCustomerRequest = {
2
+ id: number;
3
+ 'per-page': number;
4
+ };
5
+ //# sourceMappingURL=invoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_check_in_api/1.0.0/types/request/invoice.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA"}