gap-nodejs-sdk 1.0.59 → 1.0.62

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 (106) hide show
  1. package/dist/gap-sdk.js +1 -1
  2. package/dist/go_check_in_api/1.0.0/api/category.d.ts +7 -0
  3. package/dist/go_check_in_api/1.0.0/api/category.d.ts.map +1 -1
  4. package/dist/go_check_in_api/1.0.0/api/category.js +58 -0
  5. package/dist/go_check_in_api/1.0.0/api/index.d.ts +1 -1
  6. package/dist/go_check_in_api/1.0.0/api/index.d.ts.map +1 -1
  7. package/dist/go_check_in_api/1.0.0/api/index.js +1 -1
  8. package/dist/go_check_in_api/1.0.0/api/service.d.ts +14 -0
  9. package/dist/go_check_in_api/1.0.0/api/service.d.ts.map +1 -0
  10. package/dist/go_check_in_api/1.0.0/api/service.js +61 -0
  11. package/dist/go_check_in_api/1.0.0/endpoints/category.d.ts +5 -1
  12. package/dist/go_check_in_api/1.0.0/endpoints/category.d.ts.map +1 -1
  13. package/dist/go_check_in_api/1.0.0/endpoints/category.js +5 -1
  14. package/dist/go_check_in_api/1.0.0/endpoints/index.d.ts +1 -1
  15. package/dist/go_check_in_api/1.0.0/endpoints/index.d.ts.map +1 -1
  16. package/dist/go_check_in_api/1.0.0/endpoints/index.js +1 -1
  17. package/dist/go_check_in_api/1.0.0/endpoints/service.d.ts +9 -0
  18. package/dist/go_check_in_api/1.0.0/endpoints/service.d.ts.map +1 -0
  19. package/dist/go_check_in_api/1.0.0/endpoints/service.js +7 -0
  20. package/dist/go_check_in_api/1.0.0/interfaces/service.d.ts +3 -0
  21. package/dist/go_check_in_api/1.0.0/interfaces/service.d.ts.map +1 -0
  22. package/dist/go_check_in_api/1.0.0/interfaces/service.js +2 -0
  23. package/dist/go_check_in_api/1.0.0/models/category.d.ts +2 -1
  24. package/dist/go_check_in_api/1.0.0/models/category.d.ts.map +1 -1
  25. package/dist/go_check_in_api/1.0.0/models/category.js +45 -3
  26. package/dist/go_check_in_api/1.0.0/models/index.d.ts +1 -1
  27. package/dist/go_check_in_api/1.0.0/models/index.d.ts.map +1 -1
  28. package/dist/go_check_in_api/1.0.0/models/index.js +1 -1
  29. package/dist/go_check_in_api/1.0.0/models/service.d.ts +2 -0
  30. package/dist/go_check_in_api/1.0.0/models/service.d.ts.map +1 -0
  31. package/dist/go_check_in_api/1.0.0/models/service.js +24 -0
  32. package/dist/go_check_in_api/1.0.0/types/request/category.d.ts +33 -2
  33. package/dist/go_check_in_api/1.0.0/types/request/category.d.ts.map +1 -1
  34. package/dist/go_check_in_api/1.0.0/types/request/index.d.ts +1 -1
  35. package/dist/go_check_in_api/1.0.0/types/request/index.d.ts.map +1 -1
  36. package/dist/go_check_in_api/1.0.0/types/request/index.js +1 -1
  37. package/dist/go_check_in_api/1.0.0/types/request/service.d.ts +52 -0
  38. package/dist/go_check_in_api/1.0.0/types/request/service.d.ts.map +1 -0
  39. package/dist/go_check_in_api/1.0.0/types/request/{services.js → service.js} +0 -0
  40. package/dist/go_check_in_api/1.0.0/types/response/category.d.ts +45 -1
  41. package/dist/go_check_in_api/1.0.0/types/response/category.d.ts.map +1 -1
  42. package/dist/go_check_in_api/1.0.0/types/response/index.d.ts +1 -1
  43. package/dist/go_check_in_api/1.0.0/types/response/index.d.ts.map +1 -1
  44. package/dist/go_check_in_api/1.0.0/types/response/index.js +1 -1
  45. package/dist/go_check_in_api/1.0.0/types/response/service.d.ts +28 -0
  46. package/dist/go_check_in_api/1.0.0/types/response/service.d.ts.map +1 -0
  47. package/dist/go_check_in_api/1.0.0/types/response/{services.js → service.js} +0 -0
  48. package/dist/go_check_in_api/index.d.ts +1 -1
  49. package/dist/go_check_in_api/index.d.ts.map +1 -1
  50. package/dist/go_check_in_api/index.js +1 -1
  51. package/dist/pos_client_api/1.0.0/api/index.d.ts +1 -0
  52. package/dist/pos_client_api/1.0.0/api/index.d.ts.map +1 -1
  53. package/dist/pos_client_api/1.0.0/api/index.js +1 -0
  54. package/dist/pos_client_api/1.0.0/api/product.d.ts +14 -0
  55. package/dist/pos_client_api/1.0.0/api/product.d.ts.map +1 -0
  56. package/dist/pos_client_api/1.0.0/api/product.js +60 -0
  57. package/dist/pos_client_api/1.0.0/endpoints/index.d.ts +1 -0
  58. package/dist/pos_client_api/1.0.0/endpoints/index.d.ts.map +1 -1
  59. package/dist/pos_client_api/1.0.0/endpoints/index.js +1 -0
  60. package/dist/pos_client_api/1.0.0/endpoints/product.d.ts +9 -0
  61. package/dist/pos_client_api/1.0.0/endpoints/product.d.ts.map +1 -0
  62. package/dist/pos_client_api/1.0.0/endpoints/product.js +7 -0
  63. package/dist/pos_client_api/1.0.0/interfaces/product.d.ts +3 -0
  64. package/dist/pos_client_api/1.0.0/interfaces/product.d.ts.map +1 -0
  65. package/dist/pos_client_api/1.0.0/interfaces/product.js +2 -0
  66. package/dist/pos_client_api/1.0.0/models/index.d.ts +1 -0
  67. package/dist/pos_client_api/1.0.0/models/index.d.ts.map +1 -1
  68. package/dist/pos_client_api/1.0.0/models/index.js +1 -0
  69. package/dist/pos_client_api/1.0.0/models/product.d.ts +2 -0
  70. package/dist/pos_client_api/1.0.0/models/product.d.ts.map +1 -0
  71. package/dist/pos_client_api/1.0.0/models/product.js +16 -0
  72. package/dist/pos_client_api/1.0.0/types/request/index.d.ts +1 -0
  73. package/dist/pos_client_api/1.0.0/types/request/index.d.ts.map +1 -1
  74. package/dist/pos_client_api/1.0.0/types/request/index.js +1 -0
  75. package/dist/pos_client_api/1.0.0/types/request/product.d.ts +36 -0
  76. package/dist/pos_client_api/1.0.0/types/request/product.d.ts.map +1 -0
  77. package/dist/pos_client_api/1.0.0/types/request/product.js +1 -0
  78. package/dist/pos_client_api/1.0.0/types/response/index.d.ts +1 -0
  79. package/dist/pos_client_api/1.0.0/types/response/index.d.ts.map +1 -1
  80. package/dist/pos_client_api/1.0.0/types/response/index.js +1 -0
  81. package/dist/pos_client_api/1.0.0/types/response/product.d.ts +19 -0
  82. package/dist/pos_client_api/1.0.0/types/response/product.d.ts.map +1 -0
  83. package/dist/pos_client_api/1.0.0/types/response/product.js +1 -0
  84. package/dist/pos_client_api/index.d.ts +1 -0
  85. package/dist/pos_client_api/index.d.ts.map +1 -1
  86. package/dist/pos_client_api/index.js +1 -0
  87. package/dist/utils/form-data.d.ts +2 -0
  88. package/dist/utils/form-data.d.ts.map +1 -0
  89. package/dist/utils/form-data.js +7 -0
  90. package/package.json +1 -1
  91. package/dist/go_check_in_api/1.0.0/api/services.d.ts +0 -10
  92. package/dist/go_check_in_api/1.0.0/api/services.d.ts.map +0 -1
  93. package/dist/go_check_in_api/1.0.0/api/services.js +0 -18
  94. package/dist/go_check_in_api/1.0.0/endpoints/services.d.ts +0 -5
  95. package/dist/go_check_in_api/1.0.0/endpoints/services.d.ts.map +0 -1
  96. package/dist/go_check_in_api/1.0.0/endpoints/services.js +0 -3
  97. package/dist/go_check_in_api/1.0.0/interfaces/services.d.ts +0 -3
  98. package/dist/go_check_in_api/1.0.0/interfaces/services.d.ts.map +0 -1
  99. package/dist/go_check_in_api/1.0.0/interfaces/services.js +0 -2
  100. package/dist/go_check_in_api/1.0.0/models/services.d.ts +0 -2
  101. package/dist/go_check_in_api/1.0.0/models/services.d.ts.map +0 -1
  102. package/dist/go_check_in_api/1.0.0/models/services.js +0 -6
  103. package/dist/go_check_in_api/1.0.0/types/request/services.d.ts +0 -4
  104. package/dist/go_check_in_api/1.0.0/types/request/services.d.ts.map +0 -1
  105. package/dist/go_check_in_api/1.0.0/types/response/services.d.ts +0 -3
  106. package/dist/go_check_in_api/1.0.0/types/response/services.d.ts.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { Nullable } from "../../../../base_type";
2
+ export declare type CheckInService = Nullable<{
3
+ id: number;
4
+ name: string;
5
+ create_at: string;
6
+ status: number;
7
+ priority: number;
8
+ category_id: number;
9
+ price: any;
10
+ note: string;
11
+ point_bonus: any;
12
+ duration: number;
13
+ buffer_time: any;
14
+ web_booking_visible: string;
15
+ group_id: any;
16
+ supply_share: number;
17
+ show_on_checkin: number;
18
+ show_on_booking: number;
19
+ show_on_pos: number;
20
+ image_base_url: any;
21
+ image_path: any;
22
+ }>;
23
+ export declare type ShortCheckInServiceResponse = null;
24
+ export declare type GetCheckInListServiceResponse = Nullable<CheckInService[]>;
25
+ export declare type UpdateCheckInServiceResponse = CheckInService;
26
+ export declare type DeleteCheckInServiceResponse = null;
27
+ export declare type CreateCheckInServiceResponse = CheckInService;
28
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/go_check_in_api/1.0.0/types/response/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,cAAc,GAAG,QAAQ,CAAC;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,GAAG,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,GAAG,CAAA;IAChB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,GAAG,CAAA;IACnB,UAAU,EAAE,GAAG,CAAA;CAClB,CAAC,CAAA;AAEF,oBAAY,2BAA2B,GAAG,IAAI,CAAC;AAE/C,oBAAY,6BAA6B,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAA;AAEtE,oBAAY,4BAA4B,GAAG,cAAc,CAAA;AAEzD,oBAAY,4BAA4B,GAAG,IAAI,CAAA;AAE/C,oBAAY,4BAA4B,GAAG,cAAc,CAAA"}
@@ -2,7 +2,7 @@ import { GapApiVersion } from "../base_type";
2
2
  export default class GoCheckInApi {
3
3
  settings: any;
4
4
  ticket: any;
5
- services: any;
5
+ service: any;
6
6
  category: any;
7
7
  constructor(domain: string, gClientId: string, token: string, version: GapApiVersion);
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/go_check_in_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,QAAQ,MAAC;IACT,QAAQ,MAAA;gBAEI,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAQvF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/go_check_in_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,QAAQ,MAAC;IACT,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,MAAA;gBAEI,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAQvF"}
@@ -6,7 +6,7 @@ export default class GoCheckInApi {
6
6
  const API = getApi(version);
7
7
  this.settings = API.Settings;
8
8
  this.ticket = API.Ticket;
9
- this.services = API.Services;
9
+ this.service = API.Service;
10
10
  this.category = API.Category;
11
11
  }
12
12
  }
@@ -19,4 +19,5 @@ export { default as TimeKeeping } from "./time_keeping";
19
19
  export { default as UnsubscribeContact } from "./unsubscribe_contact";
20
20
  export { default as User } from "./user";
21
21
  export { default as Setting } from "./setting";
22
+ export { default as Product } from "./product";
22
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/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,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,aAAa,CAAC;AAChD,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,QAAQ,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,eAAe,CAAC;AACpD,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,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3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AAC,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,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"}
@@ -19,3 +19,4 @@ export { default as TimeKeeping } from "./time_keeping";
19
19
  export { default as UnsubscribeContact } from "./unsubscribe_contact";
20
20
  export { default as User } from "./user";
21
21
  export { default as Setting } from "./setting";
22
+ export { default as Product } from "./product";
@@ -0,0 +1,14 @@
1
+ import ProductAbstractClass from "../interfaces/product";
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 Product extends Base implements ProductAbstractClass {
7
+ static API_VERSION: GapApiVersion;
8
+ static sortPostListProduct(data: Request.SortPostListProductRequest): Promise<Response.SortPostListProductResponse>;
9
+ static getPosListProduct(data: Request.GetPosListProductRequest): Promise<Response.GetPosListProductResponse>;
10
+ static createPosProduct(data: Request.CreatePosProductRequest): Promise<Response.CreatePosProductResponse>;
11
+ static updatePosProduct(data: Request.UpdatePosProductRequest): Promise<Response.UpdatePosProductResponse>;
12
+ static deletePosProduct(data: Request.DeletePosProductRequest): Promise<Response.DeletePosProductResponse>;
13
+ }
14
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/product.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;IACrE,OAAc,WAAW,gBAAoB;WAEzB,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAW5G,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAWnG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAWnG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAS1H"}
@@ -0,0 +1,60 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoints";
3
+ import Base from "../../../base/Base";
4
+ import { GapApiVersion } from "../../../base_type";
5
+ import * as Model from "../models";
6
+ import { objectToFormData } from "../../../utils/form-data";
7
+ export default class Product extends Base {
8
+ static sortPostListProduct(data) {
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ const formData = objectToFormData(data);
11
+ yield this.client.post({
12
+ path: posEndpoints.product.SORT_POS_LIST_PRODUCT,
13
+ data: formData
14
+ });
15
+ return null;
16
+ });
17
+ }
18
+ static getPosListProduct(data) {
19
+ var _a;
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const response = yield this.client.get({
22
+ path: posEndpoints.product.GET_POS_LIST_PRODUCT,
23
+ query: data
24
+ });
25
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PosProductModel(item));
26
+ });
27
+ }
28
+ static createPosProduct(data) {
29
+ var _a;
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const formData = objectToFormData(data);
32
+ const response = yield this.client.get({
33
+ path: posEndpoints.product.CREATE_POS_PRODUCT,
34
+ query: formData
35
+ });
36
+ return Model.PosProductModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
37
+ });
38
+ }
39
+ static updatePosProduct(data) {
40
+ var _a;
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ const formData = objectToFormData(data);
43
+ const response = yield this.client.post({
44
+ path: posEndpoints.product.UPDATE_POS_PRODUCT,
45
+ data: formData
46
+ });
47
+ return Model.PosProductModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
48
+ });
49
+ }
50
+ static deletePosProduct(data) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ yield this.client.get({
53
+ path: posEndpoints.product.DELETE_POS_PRODUCT,
54
+ query: data
55
+ });
56
+ return null;
57
+ });
58
+ }
59
+ }
60
+ Product.API_VERSION = GapApiVersion.V1;
@@ -19,4 +19,5 @@ export { default as time_keeping } from "./time_keeping";
19
19
  export { default as unsubscribe_contact } from "./unsubscribe_contact";
20
20
  export { default as user } from "./user";
21
21
  export { default as setting } from "./setting";
22
+ export { default as product } from "./product";
22
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAA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M,uBAAuB,CAAC;AACrE,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"}
@@ -19,3 +19,4 @@ export { default as time_keeping } from "./time_keeping";
19
19
  export { default as unsubscribe_contact } from "./unsubscribe_contact";
20
20
  export { default as user } from "./user";
21
21
  export { default as setting } from "./setting";
22
+ export { default as product } from "./product";
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ SORT_POS_LIST_PRODUCT: string;
3
+ GET_POS_LIST_PRODUCT: string;
4
+ CREATE_POS_PRODUCT: string;
5
+ UPDATE_POS_PRODUCT: string;
6
+ DELETE_POS_PRODUCT: string;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/product.ts"],"names":[],"mappings":";;;;;;;AAAA,wBAMC"}
@@ -0,0 +1,7 @@
1
+ export default {
2
+ SORT_POS_LIST_PRODUCT: '/v1/pos/product/form/sort',
3
+ GET_POS_LIST_PRODUCT: '/v1/pos/product/site/list',
4
+ CREATE_POS_PRODUCT: '/v1/pos/product/form/create',
5
+ UPDATE_POS_PRODUCT: '/v1/pos/product/form/update',
6
+ DELETE_POS_PRODUCT: '/v1/pos/product/form/delete',
7
+ };
@@ -0,0 +1,3 @@
1
+ export default abstract class Product {
2
+ }
3
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/interfaces/product.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,OAAO;CACpC"}
@@ -0,0 +1,2 @@
1
+ export default class Product {
2
+ }
@@ -16,4 +16,5 @@ export * from "./ticket";
16
16
  export * from "./gift_card";
17
17
  export * from "./combo";
18
18
  export * from "./setting";
19
+ export * from "./product";
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/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"}
@@ -16,3 +16,4 @@ export * from "./ticket";
16
16
  export * from "./gift_card";
17
17
  export * from "./combo";
18
18
  export * from "./setting";
19
+ export * from "./product";
@@ -0,0 +1,2 @@
1
+ export declare function PosProductModel(data: any): any;
2
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/product.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAc9C"}
@@ -0,0 +1,16 @@
1
+ export function PosProductModel(data) {
2
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3
+ return {
4
+ id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
5
+ name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
6
+ type: (_c = data === null || data === void 0 ? void 0 : data.type) !== null && _c !== void 0 ? _c : null,
7
+ category_name: (_d = data === null || data === void 0 ? void 0 : data.category_name) !== null && _d !== void 0 ? _d : null,
8
+ color_code: (_e = data === null || data === void 0 ? void 0 : data.color_code) !== null && _e !== void 0 ? _e : null,
9
+ description: (_f = data === null || data === void 0 ? void 0 : data.description) !== null && _f !== void 0 ? _f : null,
10
+ image: (_g = data === null || data === void 0 ? void 0 : data.image) !== null && _g !== void 0 ? _g : null,
11
+ price: (_h = data === null || data === void 0 ? void 0 : data.price) !== null && _h !== void 0 ? _h : null,
12
+ created_at: (_j = data === null || data === void 0 ? void 0 : data.created_at) !== null && _j !== void 0 ? _j : null,
13
+ updated_at: (_k = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _k !== void 0 ? _k : null,
14
+ status: (_l = data === null || data === void 0 ? void 0 : data.status) !== null && _l !== void 0 ? _l : null,
15
+ };
16
+ }
@@ -19,4 +19,5 @@ export * from './time_keeping';
19
19
  export * from './unsubscribe_contact';
20
20
  export * from './user';
21
21
  export * from './setting';
22
+ export * from './product';
22
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/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;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/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;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -19,3 +19,4 @@ export * from './time_keeping';
19
19
  export * from './unsubscribe_contact';
20
20
  export * from './user';
21
21
  export * from './setting';
22
+ export * from './product';
@@ -0,0 +1,36 @@
1
+ export declare type SortPostListProductRequest = {
2
+ items: string;
3
+ };
4
+ export declare type GetPosListProductRequest = {
5
+ category_id: number;
6
+ status: number;
7
+ };
8
+ export declare type CreatePosProductRequest = {
9
+ name: string;
10
+ category_id: number;
11
+ cate_name: string;
12
+ id: number;
13
+ web_booking_visible: number;
14
+ price: number | string;
15
+ description: string;
16
+ group_id: string;
17
+ status: number;
18
+ statusFilter: number;
19
+ };
20
+ export declare type UpdatePosProductRequest = {
21
+ id: number;
22
+ name: string;
23
+ category_id: number;
24
+ price: number | string;
25
+ web_booking_visible: number;
26
+ description: string;
27
+ group_id: string;
28
+ status: number;
29
+ statusFilter: number;
30
+ };
31
+ export declare type DeletePosProductRequest = {
32
+ id: number;
33
+ category_id: number;
34
+ statusFilter: number;
35
+ };
36
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/product.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,wBAAwB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,oBAAY,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,oBAAY,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,oBAAY,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -17,4 +17,5 @@ export * from './ticket';
17
17
  export * from './gift_card';
18
18
  export * from './combo';
19
19
  export * from './setting';
20
+ export * from './product';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/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"}
@@ -17,3 +17,4 @@ export * from './ticket';
17
17
  export * from './gift_card';
18
18
  export * from './combo';
19
19
  export * from './setting';
20
+ export * from './product';
@@ -0,0 +1,19 @@
1
+ import { Nullable } from "../../../../base_type";
2
+ export declare type SortPostListProductResponse = null;
3
+ export declare type GetPosListProductResponse = Nullable<{
4
+ id: number;
5
+ name: string;
6
+ type: string;
7
+ category_name: string;
8
+ color_code: any;
9
+ description: string;
10
+ image: any;
11
+ price: number;
12
+ created_at: string;
13
+ updated_at: string;
14
+ status: number;
15
+ }[]>;
16
+ export declare type CreatePosProductResponse = GetPosListProductResponse;
17
+ export declare type UpdatePosProductResponse = GetPosListProductResponse;
18
+ export declare type DeletePosProductResponse = null;
19
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,2BAA2B,GAAG,IAAI,CAAC;AAE/C,oBAAY,yBAAyB,GAAG,QAAQ,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,GAAG,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,GAAG,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACjB,EAAE,CAAC,CAAA;AAEJ,oBAAY,wBAAwB,GAAG,yBAAyB,CAAA;AAEhE,oBAAY,wBAAwB,GAAG,yBAAyB,CAAA;AAEhE,oBAAY,wBAAwB,GAAG,IAAI,CAAC"}
@@ -21,6 +21,7 @@ export default class PosClientApi {
21
21
  unsubscribe_contact: any;
22
22
  user: any;
23
23
  setting: any;
24
+ product: any;
24
25
  constructor(domain: string, gClientId: string, token: string, version: GapApiVersion);
25
26
  }
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pos_client_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAG3C,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;gBAEI,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAyBvF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pos_client_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAG3C,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;gBAEI,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CA0BvF"}
@@ -25,5 +25,6 @@ export default class PosClientApi {
25
25
  this.unsubscribe_contact = API.UnsubscribeContact;
26
26
  this.user = API.User;
27
27
  this.setting = API.Setting;
28
+ this.product = API.Product;
28
29
  }
29
30
  }
@@ -0,0 +1,2 @@
1
+ export declare const objectToFormData: (data: any) => FormData;
2
+ //# sourceMappingURL=form-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-data.d.ts","sourceRoot":"","sources":["../../src/utils/form-data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,yBAM5B,CAAA"}
@@ -0,0 +1,7 @@
1
+ export const objectToFormData = (data) => {
2
+ const formData = new FormData();
3
+ for (const [key, value] of Object.entries(data)) {
4
+ formData.append(key, value);
5
+ }
6
+ return formData;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gap-nodejs-sdk",
3
- "version": "1.0.59",
3
+ "version": "1.0.62",
4
4
  "description": "GCI App Platform Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +0,0 @@
1
- import ServicesAbstractClass from "../interfaces/services";
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 Services extends Base implements ServicesAbstractClass {
7
- static API_VERSION: GapApiVersion;
8
- static getServices(data: Request.GetServiceListByCategoryRequest): Promise<Response.GetServiceListByCategoryResponse>;
9
- }
10
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/api/services.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;IACvE,OAAc,WAAW,gBAAoB;WAEzB,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CASrI"}
@@ -1,18 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- import * as posEndpoints from "../endpoints";
3
- import Base from "../../../base/Base";
4
- import { GapApiVersion } from "../../../base_type";
5
- import * as Model from "../models";
6
- export default class Services extends Base {
7
- static getServices(data) {
8
- var _a, _b;
9
- return __awaiter(this, void 0, void 0, function* () {
10
- const response = yield this.client.get({
11
- path: posEndpoints.ticket.GET_TICKET_TEMPLATE,
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.CheckInTicketModel(item));
15
- });
16
- }
17
- }
18
- Services.API_VERSION = GapApiVersion.V1;
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- GET_SERVICES_BY_CATEGORY: string;
3
- };
4
- export default _default;
5
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/endpoints/services.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -1,3 +0,0 @@
1
- export default {
2
- GET_SERVICES_BY_CATEGORY: '/v1/gocheckin/service/site/list-by-category',
3
- };
@@ -1,3 +0,0 @@
1
- export default abstract class Services {
2
- }
3
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/interfaces/services.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,QAAQ;CACrC"}
@@ -1,2 +0,0 @@
1
- export default class Services {
2
- }
@@ -1,2 +0,0 @@
1
- export declare function CModel(data: any): any;
2
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/models/services.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAIrC"}
@@ -1,6 +0,0 @@
1
- export function CModel(data) {
2
- var _a;
3
- return {
4
- test: (_a = data === null || data === void 0 ? void 0 : data.test) !== null && _a !== void 0 ? _a : null
5
- };
6
- }
@@ -1,4 +0,0 @@
1
- export declare type GetServiceListByCategoryRequest = {
2
- type?: string;
3
- };
4
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../../src/go_check_in_api/1.0.0/types/request/services.ts"],"names":[],"mappings":"AAAA,oBAAY,+BAA+B,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Nullable } from "../../../../base_type";
2
- export declare type GetServiceListByCategoryResponse = Nullable<{}>;
3
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../../src/go_check_in_api/1.0.0/types/response/services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,gCAAgC,GAAG,QAAQ,CAAC,EAEvD,CAAC,CAAA"}