gap-nodejs-sdk 1.0.689 → 1.0.690

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.
@@ -8,6 +8,7 @@ export default class Staff extends Base implements StaffAbstractClass {
8
8
  static getStaffList(data: Request.GetStaffListRequest): Promise<Response.GetStaffListResponse>;
9
9
  static getStaffListByCheckout(data: Request.GetStaffListByCheckoutRequest): Promise<Response.GetStaffListByCheckoutResponse>;
10
10
  static getStaffTurnChart(data: Request.GetStaffTurnChartRequest): Promise<Response.GetStaffTurnChartResponse>;
11
- static getAllInformationStaff(): Promise<Response.GetAllInformationStaffResponse>;
11
+ static getAllInformationStaff(): Promise<Response.GetAllInformationStaffResponse[]>;
12
+ static getInformationStaff(data: any): Promise<Response.GetAllInformationStaffResponse[]>;
12
13
  }
13
14
  //# sourceMappingURL=staff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_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,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUvF,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;WAUrH,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAStG,sBAAsB,IAAI,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAQjG"}
1
+ {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_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,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUvF,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;WAUrH,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAStG,sBAAsB,IAAI,OAAO,CAAC,QAAQ,CAAC,8BAA8B,EAAE,CAAC;WAQ5E,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,EAAE,CAAC;CASzG"}
@@ -43,5 +43,15 @@ export default class Staff extends Base {
43
43
  return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.AllInformationStaff(item));
44
44
  });
45
45
  }
46
+ static getInformationStaff(data) {
47
+ var _a;
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ const response = yield this.client.get({
50
+ path: staff.GET_INFORMATION_STAFF,
51
+ query: data
52
+ });
53
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.AllInformationStaff(item));
54
+ });
55
+ }
46
56
  }
47
57
  Staff.API_VERSION = GapApiVersion.V1;
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  GET_STAFF_LIST: string;
4
4
  GET_STAFF_TURN_CHART: string;
5
5
  GET_ALL_INFORMATION_STAFF: string;
6
+ GET_INFORMATION_STAFF: string;
6
7
  };
7
8
  export default _default;
8
9
  //# sourceMappingURL=staff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/staff.ts"],"names":[],"mappings":";;;;;;AAAA,wBAKC"}
1
+ {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/staff.ts"],"names":[],"mappings":";;;;;;;AAAA,wBAMC"}
@@ -3,4 +3,5 @@ export default {
3
3
  GET_STAFF_LIST: '/v1/pos/staff/site/list',
4
4
  GET_STAFF_TURN_CHART: '/v1/pos/staff/site/turn-chart',
5
5
  GET_ALL_INFORMATION_STAFF: '/v1/pos/staff/site/get-all',
6
+ GET_INFORMATION_STAFF: '/v1/pos/staff/site/info',
6
7
  };