gap-nodejs-sdk 1.0.646 → 1.0.647
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.
- package/dist/api/pos_client_api/1.0.0/api/other.d.ts +3 -4
- package/dist/api/pos_client_api/1.0.0/api/other.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/api/other.js +25 -5
- package/dist/api/pos_client_api/1.0.0/interfaces/other.d.ts +2 -0
- package/dist/api/pos_client_api/1.0.0/interfaces/other.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import OtherAbstractClass from "../interfaces/other";
|
|
2
2
|
import BaseOther from "../../../../base/BaseOther";
|
|
3
3
|
import { GapApiVersion } from "../../../../base_type";
|
|
4
|
-
import * as CustomerRequest from "../../../go_check_in_api/1.0.0/types/request";
|
|
5
|
-
import * as CustomerResponse from "../../../go_check_in_api/1.0.0/types/response";
|
|
6
4
|
import * as Request from "../types/request";
|
|
7
5
|
import * as Response from "../types/response";
|
|
8
|
-
import { DataWithMetaResponse } from "../../../../types";
|
|
9
6
|
export default class Other extends BaseOther implements OtherAbstractClass {
|
|
10
7
|
static API_VERSION: GapApiVersion;
|
|
11
8
|
static searchCheckIn(data: Request.SearchCheckInRequest): Promise<Response.SearchCheckInResponse>;
|
|
12
|
-
static getCustomerHistory(
|
|
9
|
+
static getCustomerHistory(data: Request.GetCustomerHistoryRequest): Promise<Response.GetCustomerHistoryResponse>;
|
|
13
10
|
static getStaffDailyIncome(data: Request.GetStaffDailyIncomeRequest): Promise<Array<Response.GetStaffDailyIncomeResponse>>;
|
|
14
11
|
static getIncomeHistory(data: Request.GetIncomeHistoryRequest): Promise<Array<Response.GetIncomeHistoryResponse>>;
|
|
12
|
+
static getBusinessInfo(data: Request.GetBusinessInfoRequest): Promise<Response.GetBusinessInfoResponse>;
|
|
13
|
+
static getCheckOutInfo(data: Request.GetCheckOutInfoRequest): Promise<Response.GetCheckOutInfoResponse>;
|
|
15
14
|
}
|
|
16
15
|
//# sourceMappingURL=other.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/other.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/other.ts"],"names":[],"mappings":"AAKA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAGpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAM9C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAU,YAAW,kBAAkB;IACtE,OAAc,WAAW,gBAAoB;WAEzB,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;WAUzF,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;WAU1G,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;WAanH,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;WAS1G,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAShG,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CAUvH"}
|
|
@@ -2,11 +2,11 @@ import { __awaiter } from "tslib";
|
|
|
2
2
|
import { check_in } from "../endpoints";
|
|
3
3
|
import { customer } from "../endpoints";
|
|
4
4
|
import { income } from "../endpoints";
|
|
5
|
+
import { business } from "../endpoints";
|
|
6
|
+
import { check_out } from "../endpoints";
|
|
5
7
|
import BaseOther from "../../../../base/BaseOther";
|
|
6
8
|
import { GapApiVersion } from "../../../../base_type";
|
|
7
9
|
import * as Model from "../models";
|
|
8
|
-
import * as CustomerModel from "../../../go_check_in_api/1.0.0/models";
|
|
9
|
-
import { DataWithMetaModel } from "../../../../models";
|
|
10
10
|
export default class Other extends BaseOther {
|
|
11
11
|
static searchCheckIn(data) {
|
|
12
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -17,13 +17,13 @@ export default class Other extends BaseOther {
|
|
|
17
17
|
return Model.SearchCheckInModel(response.result.data);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
static getCustomerHistory(
|
|
20
|
+
static getCustomerHistory(data) {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
22
|
const response = yield this.client.get({
|
|
23
23
|
path: customer.GET_CUSTOMER_HISTORY,
|
|
24
|
-
query:
|
|
24
|
+
query: data
|
|
25
25
|
});
|
|
26
|
-
return
|
|
26
|
+
return Model.CustomerHistoryModel(response.result.data);
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
static getStaffDailyIncome(data) {
|
|
@@ -49,5 +49,25 @@ export default class Other extends BaseOther {
|
|
|
49
49
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.IncomeHistoryModel(item));
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
+
static getBusinessInfo(data) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const response = yield this.client.get({
|
|
55
|
+
path: business.GET_BUSINESS_INFO,
|
|
56
|
+
query: data
|
|
57
|
+
});
|
|
58
|
+
return Model.BusinessInfoModel(response.result.data);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
static getCheckOutInfo(data) {
|
|
62
|
+
var _a;
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.client.get({
|
|
65
|
+
path: check_out.GET_CHECK_OUT_INFO,
|
|
66
|
+
query: data,
|
|
67
|
+
signal: data.signal
|
|
68
|
+
});
|
|
69
|
+
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
52
72
|
}
|
|
53
73
|
Other.API_VERSION = GapApiVersion.V1;
|
|
@@ -7,5 +7,7 @@ export default abstract class Other {
|
|
|
7
7
|
static getCustomerHistory: (data: CustomerRequest.GetCustomerHistoryCheckinRequest) => Promise<CustomerResponse.GetCustomerHistoryCheckinResponse>;
|
|
8
8
|
static getStaffDailyIncome: (data: Request.GetStaffDailyIncomeRequest) => Promise<Array<Response.GetStaffDailyIncomeResponse>>;
|
|
9
9
|
static getIncomeHistory: (data: Request.GetIncomeHistoryRequest) => Promise<Array<Response.GetIncomeHistoryResponse>>;
|
|
10
|
+
static getCheckOutInfo: (data: Request.GetCheckOutInfoRequest) => Promise<Response.GetCheckOutInfoResponse>;
|
|
11
|
+
static getBusinessInfo: (data: Request.GetBusinessInfoRequest) => Promise<Response.GetBusinessInfoResponse>;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=other.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/interfaces/other.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,eAAe,MAAM,8CAA8C,CAAC;AAChF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