gap-nodejs-sdk 1.0.520 → 1.0.521
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.
|
@@ -3,6 +3,7 @@ import Base from "../../../../base/Base";
|
|
|
3
3
|
import { GapApiVersion } from "../../../../base_type";
|
|
4
4
|
import * as Request from "../types/request";
|
|
5
5
|
import * as Response from "../types/response";
|
|
6
|
+
import { DataWithMetaResponse } from "../../../../types";
|
|
6
7
|
export default class Payroll extends Base implements PayrollAbstractClass {
|
|
7
8
|
static API_VERSION: GapApiVersion;
|
|
8
9
|
static getPayrollList(data: Request.GetPayrollListRequest): Promise<Response.GetPayrollListResponse>;
|
|
@@ -16,7 +17,9 @@ export default class Payroll extends Base implements PayrollAbstractClass {
|
|
|
16
17
|
static exportIncomeDetail(data: Request.ExportIncomeDetailRequest): Promise<null>;
|
|
17
18
|
static getSalaryChart(data: Request.GetSalaryChartRequest): Promise<Response.GetSalaryChartResponse>;
|
|
18
19
|
static getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<Array<Response.GetAppListPayrollResponse>>;
|
|
20
|
+
static getAppListPayrollPagination(data: Request.GetAppListPayrollRequest): Promise<DataWithMetaResponse<Response.GetAppListPayrollResponse>>;
|
|
19
21
|
static getPayrollDetail(data: Request.GetPayrollDetailRequest): Promise<Array<Response.GetPayrollDetailResponse>>;
|
|
22
|
+
static getPayrollDetailPagination(data: Request.GetPayrollDetailRequest): Promise<DataWithMetaResponse<Response.GetPayrollDetailResponse>>;
|
|
20
23
|
static getSiteIncomeDetail(data: Request.GetSiteIncomeDetailRequest): Promise<Response.GetSiteIncomeDetailResponse>;
|
|
21
24
|
static getSalaryDetail(data: Request.GetSalaryDetailRequest): Promise<Array<Response.GetSalaryDetailResponse>>;
|
|
22
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/payroll.ts"],"names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as Model from "../models";
|
|
9
|
+
import { DataWithMetaModel } from "../../../../models";
|
|
9
10
|
export default class Payroll extends Base {
|
|
10
11
|
static getPayrollList(data) {
|
|
11
12
|
var _a;
|
|
@@ -158,15 +159,15 @@ export default class Payroll extends Base {
|
|
|
158
159
|
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.AppListPayrollModel(item));
|
|
159
160
|
});
|
|
160
161
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
162
|
+
static getAppListPayrollPagination(data) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const response = yield this.client.get({
|
|
165
|
+
path: payroll.GET_APP_LIST_PAYROLL,
|
|
166
|
+
query: data
|
|
167
|
+
});
|
|
168
|
+
return DataWithMetaModel(response, Model.AppListPayrollModel);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
170
171
|
static getPayrollDetail(data) {
|
|
171
172
|
var _a;
|
|
172
173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -177,15 +178,15 @@ export default class Payroll extends Base {
|
|
|
177
178
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PayrollDetailModel(item));
|
|
178
179
|
});
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
181
|
+
static getPayrollDetailPagination(data) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const response = yield this.client.get({
|
|
184
|
+
path: payroll.GET_PAYROLL_DETAIL,
|
|
185
|
+
query: data
|
|
186
|
+
});
|
|
187
|
+
return DataWithMetaModel(response, Model.PayrollDetailModel);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
189
190
|
static getSiteIncomeDetail(data) {
|
|
190
191
|
var _a;
|
|
191
192
|
return __awaiter(this, void 0, void 0, function* () {
|