gap-nodejs-sdk 1.0.519 → 1.0.520
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,7 +3,6 @@ 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";
|
|
7
6
|
export default class Payroll extends Base implements PayrollAbstractClass {
|
|
8
7
|
static API_VERSION: GapApiVersion;
|
|
9
8
|
static getPayrollList(data: Request.GetPayrollListRequest): Promise<Response.GetPayrollListResponse>;
|
|
@@ -16,8 +15,8 @@ export default class Payroll extends Base implements PayrollAbstractClass {
|
|
|
16
15
|
static exportApprovePayroll(data: Request.ExportApprovePayrollRequest): Promise<null>;
|
|
17
16
|
static exportIncomeDetail(data: Request.ExportIncomeDetailRequest): Promise<null>;
|
|
18
17
|
static getSalaryChart(data: Request.GetSalaryChartRequest): Promise<Response.GetSalaryChartResponse>;
|
|
19
|
-
static getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<
|
|
20
|
-
static getPayrollDetail(data: Request.GetPayrollDetailRequest): Promise<
|
|
18
|
+
static getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<Array<Response.GetAppListPayrollResponse>>;
|
|
19
|
+
static getPayrollDetail(data: Request.GetPayrollDetailRequest): Promise<Array<Response.GetPayrollDetailResponse>>;
|
|
21
20
|
static getSiteIncomeDetail(data: Request.GetSiteIncomeDetailRequest): Promise<Response.GetSiteIncomeDetailResponse>;
|
|
22
21
|
static getSalaryDetail(data: Request.GetSalaryDetailRequest): Promise<Array<Response.GetSalaryDetailResponse>>;
|
|
23
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/payroll.ts"],"names":[],"mappings":"AACA,OAA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,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;WAahE,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;WAa9E,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;WAa1E,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;WAoB7G,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;WAoB1G,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAS5G,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;CAS9H"}
|
|
@@ -6,7 +6,6 @@ import dayjs from "dayjs";
|
|
|
6
6
|
import { formatExportDateString } from "../../../../utils/date-time";
|
|
7
7
|
import { GapApiVersion } from "../../../../base_type";
|
|
8
8
|
import * as Model from "../models";
|
|
9
|
-
import { DataWithMetaModel } from "../../../../models";
|
|
10
9
|
export default class Payroll extends Base {
|
|
11
10
|
static getPayrollList(data) {
|
|
12
11
|
var _a;
|
|
@@ -149,42 +148,44 @@ export default class Payroll extends Base {
|
|
|
149
148
|
return Model.SalaryChartModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
150
149
|
});
|
|
151
150
|
}
|
|
152
|
-
// public static async getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<Array<Response.GetAppListPayrollResponse>> {
|
|
153
|
-
// const response = await this.client.get(
|
|
154
|
-
// {
|
|
155
|
-
// path: payroll.GET_APP_LIST_PAYROLL,
|
|
156
|
-
// query: data
|
|
157
|
-
// }
|
|
158
|
-
// );
|
|
159
|
-
// return (response?.result?.data?.items || []).map(item => Model.AppListPayrollModel(item));
|
|
160
|
-
// }
|
|
161
151
|
static getAppListPayroll(data) {
|
|
152
|
+
var _a, _b;
|
|
162
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
154
|
const response = yield this.client.get({
|
|
164
155
|
path: payroll.GET_APP_LIST_PAYROLL,
|
|
165
156
|
query: data
|
|
166
157
|
});
|
|
167
|
-
return
|
|
158
|
+
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));
|
|
168
159
|
});
|
|
169
160
|
}
|
|
170
|
-
// public static async
|
|
161
|
+
// public static async getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<DataWithMetaResponse<Response.GetAppListPayrollResponse>> {
|
|
171
162
|
// const response = await this.client.get(
|
|
172
163
|
// {
|
|
173
|
-
// path: payroll.
|
|
164
|
+
// path: payroll.GET_APP_LIST_PAYROLL,
|
|
174
165
|
// query: data
|
|
175
166
|
// }
|
|
176
167
|
// );
|
|
177
|
-
// return (response
|
|
168
|
+
// return DataWithMetaModel(response, Model.AppListPayrollModel);
|
|
178
169
|
// }
|
|
179
170
|
static getPayrollDetail(data) {
|
|
171
|
+
var _a;
|
|
180
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
173
|
const response = yield this.client.get({
|
|
182
174
|
path: payroll.GET_PAYROLL_DETAIL,
|
|
183
175
|
query: data
|
|
184
176
|
});
|
|
185
|
-
return
|
|
177
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PayrollDetailModel(item));
|
|
186
178
|
});
|
|
187
179
|
}
|
|
180
|
+
// public static async getPayrollDetail(data: Request.GetPayrollDetailRequest): Promise<DataWithMetaResponse<Response.GetPayrollDetailResponse>> {
|
|
181
|
+
// const response = await this.client.get(
|
|
182
|
+
// {
|
|
183
|
+
// path: payroll.GET_PAYROLL_DETAIL,
|
|
184
|
+
// query: data
|
|
185
|
+
// }
|
|
186
|
+
// );
|
|
187
|
+
// return DataWithMetaModel(response, Model.PayrollDetailModel);
|
|
188
|
+
// }
|
|
188
189
|
static getSiteIncomeDetail(data) {
|
|
189
190
|
var _a;
|
|
190
191
|
return __awaiter(this, void 0, void 0, function* () {
|