gap-nodejs-sdk 1.0.697 → 1.0.699

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.
@@ -9,7 +9,7 @@ export default class CheckIn extends Base implements CheckInAbstractClass {
9
9
  static getCheckInReport(data: Request.GetCheckInReportRequest): Promise<Response.GetCheckInReportResponse>;
10
10
  static getLastCheckIn(data: Request.GetLastCheckInRequest): Promise<Response.GetLastCheckInResponse>;
11
11
  static getCheckInList(data: Request.GetCheckInListRequest): Promise<Array<Response.GetCheckInInfoResponse>>;
12
- static getCheckInListV1(data: Request.GetCheckInListV1Request): Promise<Array<Response.GetCheckInInfoResponse>>;
12
+ static getCheckInListV2(data: Request.GetCheckInListV2Request): Promise<Array<Response.GetCheckInInfoResponse>>;
13
13
  static getNewCheckInList(data: Request.GetCheckInListRequest): Promise<Array<Response.GetNewCheckInInfoResponse>>;
14
14
  static getCheckInInfo(data: Request.GetCheckInInfoRequest): Promise<Response.GetCheckInInfoResponse>;
15
15
  static searchCheckIn(data: Request.SearchCheckInRequest): Promise<Response.SearchCheckInResponse>;
@@ -44,11 +44,11 @@ export default class CheckIn extends Base {
44
44
  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.CheckInInfoModel(item));
45
45
  });
46
46
  }
47
- static getCheckInListV1(data) {
47
+ static getCheckInListV2(data) {
48
48
  var _a, _b;
49
49
  return __awaiter(this, void 0, void 0, function* () {
50
50
  const response = yield this.client.get({
51
- path: check_in.GET_CHECK_IN_LIST_V1,
51
+ path: check_in.GET_CHECK_IN_LIST_V2,
52
52
  query: data
53
53
  });
54
54
  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.CheckInInfoModel(item));
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  POST_CHECK_IN_FORM_SUBMIT: string;
3
3
  GET_CHECK_IN_LIST: string;
4
- GET_CHECK_IN_LIST_V1: string;
4
+ GET_CHECK_IN_LIST_V2: string;
5
5
  GET_CHECK_IN_NEW_LIST: string;
6
6
  GET_CHECK_IN_REPORT: string;
7
7
  GET_LAST_CHECK_IN: string;
@@ -1,7 +1,7 @@
1
1
  export default {
2
2
  POST_CHECK_IN_FORM_SUBMIT: '/v1/pos/checkin/form/submit',
3
3
  GET_CHECK_IN_LIST: '/v1/pos/checkin/site/list',
4
- GET_CHECK_IN_LIST_V1: '/v1/pos/checkin/site/list-v1',
4
+ GET_CHECK_IN_LIST_V2: '/v1/pos/checkin/site/list-v2',
5
5
  GET_CHECK_IN_NEW_LIST: '/v1/pos/checkin/site/new-list',
6
6
  GET_CHECK_IN_REPORT: '/v1/pos/checkin/site/report',
7
7
  GET_LAST_CHECK_IN: '/v1/pos/checkin/site/check-update',
@@ -62,7 +62,7 @@ export function StaffTurnChartModel(data) {
62
62
  total_order_in_progress: (_h = staff === null || staff === void 0 ? void 0 : staff.total_order_in_progress) !== null && _h !== void 0 ? _h : null,
63
63
  total_order_price_complete: (_j = staff === null || staff === void 0 ? void 0 : staff.total_order_price_complete) !== null && _j !== void 0 ? _j : null,
64
64
  total_order_price_in_progress: (_k = staff === null || staff === void 0 ? void 0 : staff.total_order_price_in_progress) !== null && _k !== void 0 ? _k : null,
65
- turn_count: (_l = staff === null || staff === void 0 ? void 0 : staff.turn_count) !== null && _l !== void 0 ? _l : null,
65
+ turn_count: (_l = staff === null || staff === void 0 ? void 0 : staff.turn_count) !== null && _l !== void 0 ? _l : 0,
66
66
  checkin: (_m = staff === null || staff === void 0 ? void 0 : staff.checkin) !== null && _m !== void 0 ? _m : null,
67
67
  is_checked_in: (_o = staff === null || staff === void 0 ? void 0 : staff.is_checked_in) !== null && _o !== void 0 ? _o : null,
68
68
  commission_type: (_p = staff === null || staff === void 0 ? void 0 : staff.commission_type) !== null && _p !== void 0 ? _p : null,
@@ -13,7 +13,7 @@ export type GetCheckInListRequest = {
13
13
  'per-page'?: number;
14
14
  pos_device_name?: string;
15
15
  };
16
- export type GetCheckInListV1Request = GetCheckInListRequest & {
16
+ export type GetCheckInListV2Request = GetCheckInListRequest & {
17
17
  from_date: string;
18
18
  to_date: string;
19
19
  };
@@ -8,6 +8,7 @@ export default class KeyStorage extends Base implements KeyStorageAbstractClass
8
8
  static API_VERSION: GapApiVersion;
9
9
  static getKeyStorage(data: Request.GetKeyStorageRequest): Promise<Response.GetKeyStorageResponse>;
10
10
  static getListKeyStorage(data: Request.GetListKeyStorageRequest): Promise<DataWithMetaResponse<Array<Response.GetListKeyStorageResponse>>>;
11
+ static getKeyStorageAll(data: Request.GetKeyStorageAllRequest): Promise<Response.GetKeyStorageAllResponse>;
11
12
  static addKeyStorage(data: Request.AddKeyStorageRequest): Promise<Response.AddKeyStorageResponse>;
12
13
  static updateKeyStorage(data: Request.UpdateKeyStorageRequest): Promise<Response.UpdateKeyStorageResponse>;
13
14
  static updateListKeyStorage(data: Request.UpdateListKeyStorageRequest): Promise<Response.UpdateListKeyStorageResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../src/api/settings_api/1.0.0/api/key_storage.ts"],"names":[],"mappings":"AACA,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,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,UAAW,SAAQ,IAAK,YAAW,uBAAuB;IAC3E,OAAc,WAAW,gBAAoB;WAEzB,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,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AAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAC;WAUnI,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;WAW1F,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAS1H"}
@@ -3,7 +3,7 @@ import { keyStorage } 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 { DataWithMetaModel } from "../../../../models";
6
+ import { DataWithMetaModel, KeyStorageDataModel } from "../../../../models";
7
7
  import { objectToFormData } from "../../../../utils/form-data";
8
8
  export default class KeyStorage extends Base {
9
9
  static getKeyStorage(data) {
@@ -25,6 +25,15 @@ export default class KeyStorage extends Base {
25
25
  return DataWithMetaModel(response, Model.KeyStorageModel);
26
26
  });
27
27
  }
28
+ static getKeyStorageAll(data) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const response = yield this.client.post({
31
+ path: keyStorage.GET_ALL_KEY_STORAGE,
32
+ data: data
33
+ });
34
+ return KeyStorageDataModel(response);
35
+ });
36
+ }
28
37
  static addKeyStorage(data) {
29
38
  var _a;
30
39
  return __awaiter(this, void 0, void 0, function* () {
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  UPDATE_KEY_STORAGE: string;
6
6
  UPDATE_LIST_KEY_STORAGE: string;
7
7
  DELETE_KEY_STORAGE: string;
8
+ GET_ALL_KEY_STORAGE: string;
8
9
  };
9
10
  export default _default;
10
11
  //# sourceMappingURL=key_storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../src/api/settings_api/1.0.0/endpoints/key_storage.ts"],"names":[],"mappings":";;;;;;;;AAAA,wBAOC"}
1
+ {"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../src/api/settings_api/1.0.0/endpoints/key_storage.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wBAQC"}
@@ -5,4 +5,5 @@ export default {
5
5
  UPDATE_KEY_STORAGE: "/v1/settings/key-storage/update",
6
6
  UPDATE_LIST_KEY_STORAGE: "/v1/settings/key-storage/update-list",
7
7
  DELETE_KEY_STORAGE: "/v1/settings/key-storage/delete",
8
+ GET_ALL_KEY_STORAGE: 'v1/settings/key-storage/get-key',
8
9
  };
@@ -2,6 +2,9 @@ export type GetKeyStorageRequest = {
2
2
  key: string;
3
3
  pos_version?: number;
4
4
  };
5
+ export type GetKeyStorageAllRequest = {
6
+ keys: string[];
7
+ };
5
8
  export type GetListKeyStorageRequest = {};
6
9
  export type AddKeyStorageRequest = {
7
10
  key: string;
@@ -1 +1 @@
1
- {"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../../src/api/settings_api/1.0.0/types/request/key_storage.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAEzC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACtC,IAAI,EAAE,oBAAoB,EAAE,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAA;CACd,CAAA"}
1
+ {"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../../src/api/settings_api/1.0.0/types/request/key_storage.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AACD,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAEzC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACtC,IAAI,EAAE,oBAAoB,EAAE,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAA;CACd,CAAA"}
@@ -7,6 +7,9 @@ type KeyStorage = {
7
7
  created_at: number;
8
8
  };
9
9
  export type GetKeyStorageResponse = Nullable<KeyStorage>;
10
+ export type GetKeyStorageAllResponse = {
11
+ [key: string]: string;
12
+ };
10
13
  export type GetListKeyStorageResponse = Nullable<Array<KeyStorage>>;
11
14
  export type AddKeyStorageResponse = Nullable<{
12
15
  key: string;
@@ -1 +1 @@
1
- {"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../../src/api/settings_api/1.0.0/types/response/key_storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,KAAK,UAAU,GAAG;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAA;AAExD,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAA;AAEnE,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;CAClB,CAAC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;CAClB,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAA;AAE/C,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAA"}
1
+ {"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../../src/api/settings_api/1.0.0/types/response/key_storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,KAAK,UAAU,GAAG;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAA;AAExD,MAAM,MAAM,wBAAwB,GAAG;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAA;AAEnE,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;CAClB,CAAC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;CAClB,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAA;AAE/C,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAA"}