gap-nodejs-sdk 1.0.684 → 1.0.686

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.
@@ -11,8 +11,8 @@ export default class TimeKeeping extends Base implements TimeKeepingAbstractClas
11
11
  static updateTimeKeeping(data: Request.UpdateTimeKeepingRequest): Promise<null>;
12
12
  static removeTimeKeeping(data: Request.RemoveTimeKeepingRequest): Promise<null>;
13
13
  static getTimeKeepingListStaff(data: Request.GetTimeKeepingListStaffRequest): Promise<Array<Response.GetTimeKeepingListStaffResponse>>;
14
- static postTimeKeepingCheckIn(data: Request.PostTimeKeepingCheckInRequest): Promise<null>;
15
- static postTimeKeepingCheckOut(data: Request.PostTimeKeepingCheckOutRequest): Promise<null>;
14
+ static postTimeKeepingCheckIn(data: Request.PostTimeKeepingCheckInRequest): Promise<Response.GetTimeKeepingListStaffResponse>;
15
+ static postTimeKeepingCheckOut(data: Request.PostTimeKeepingCheckOutRequest): Promise<Response.GetTimeKeepingListStaffResponse>;
16
16
  static postTimeKeepingCheckOutAll(data: Request.PostTimeKeepingCheckOutAllRequest): Promise<null>;
17
17
  }
18
18
  //# sourceMappingURL=time_keeping.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"time_keeping.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/time_keeping.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAIvD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;IAC7E,OAAc,WAAW,gBAAoB;WA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,qBAAqB;WAWlD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WAWxD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WAWxD,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC;WAU/H,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;WAUtH,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;WAUxH,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,iCAAiC;CASjG"}
@@ -56,21 +56,23 @@ export default class TimeKeeping extends Base {
56
56
  });
57
57
  }
58
58
  static postTimeKeepingCheckIn(data) {
59
+ var _a;
59
60
  return __awaiter(this, void 0, void 0, function* () {
60
- yield this.client.post({
61
+ const response = yield this.client.post({
61
62
  path: time_keeping.POST_TIME_KEEPING_CHECK_IN,
62
63
  data: data
63
64
  });
64
- return null;
65
+ return Model.TimeKeepingListStaffModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
65
66
  });
66
67
  }
67
68
  static postTimeKeepingCheckOut(data) {
69
+ var _a;
68
70
  return __awaiter(this, void 0, void 0, function* () {
69
- this.client.post({
71
+ const response = yield this.client.post({
70
72
  path: time_keeping.POST_TIME_KEEPING_CHECK_OUT,
71
73
  data: data
72
74
  });
73
- return null;
75
+ return Model.TimeKeepingListStaffModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
74
76
  });
75
77
  }
76
78
  static postTimeKeepingCheckOutAll(data) {
@@ -5,5 +5,6 @@ import * as Request from "../types/request";
5
5
  export default class User extends Base implements UserAbstractClass {
6
6
  static API_VERSION: GapApiVersion;
7
7
  static postLogin(data: Request.PostLoginRequest): Promise<any>;
8
+ static getKeyStorageAppointment(data: Request.PostLoginRequest): Promise<any>;
8
9
  }
9
10
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/user.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;IAC/D,OAAc,WAAW,gBAAoB;WAEzB,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB;CAQ/D"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/user.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;IAC/D,OAAc,WAAW,gBAAoB;WAEzB,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB;WAQxC,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB;CAS9E"}
@@ -11,5 +11,15 @@ export default class User extends Base {
11
11
  });
12
12
  });
13
13
  }
14
+ static getKeyStorageAppointment(data) {
15
+ var _a;
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ const response = yield this.client.post({
18
+ path: user.POST_LOGIN_API,
19
+ data: data
20
+ });
21
+ return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
22
+ });
23
+ }
14
24
  }
15
25
  User.API_VERSION = GapApiVersion.V1;
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  POST_LOGIN_API: string;
3
+ POST_GET_KEY_STORAGE_APPOINTMENT: string;
3
4
  };
4
5
  export default _default;
5
6
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/user.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/user.ts"],"names":[],"mappings":";;;;AAAA,wBAGC"}
@@ -1,3 +1,4 @@
1
1
  export default {
2
- POST_LOGIN_API: '/v1/pos/user/form/login'
2
+ POST_LOGIN_API: '/v1/pos/user/form/login',
3
+ POST_GET_KEY_STORAGE_APPOINTMENT: '/v1/pos/user/site/get-key-storage-appointment'
3
4
  };
@@ -2,5 +2,6 @@ import { ResponseDataApi } from "src/base_type";
2
2
  import * as Request from "../types/request";
3
3
  export default abstract class User {
4
4
  static postLogin: (data: Request.PostLoginRequest) => Promise<ResponseDataApi>;
5
+ static getKeyStorageAppointment: (data: Request.PostGetKeyStorageAppointment) => Promise<any>;
5
6
  }
6
7
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/interfaces/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,IAAI;IAC9B,OAAc,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CACzF"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/interfaces/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,IAAI;IAC9B,OAAc,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IACtF,OAAc,wBAAwB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACxG"}
@@ -3,4 +3,7 @@ export type PostLoginRequest = {
3
3
  password: string;
4
4
  rememberMe?: boolean;
5
5
  };
6
+ export type PostGetKeyStorageAppointment = {
7
+ keys: string[];
8
+ };
6
9
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/request/user.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/request/user.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACvC,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB,CAAA"}