gap-nodejs-sdk 1.0.519 → 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.
|
@@ -16,8 +16,10 @@ export default class Payroll extends Base implements PayrollAbstractClass {
|
|
|
16
16
|
static exportApprovePayroll(data: Request.ExportApprovePayrollRequest): Promise<null>;
|
|
17
17
|
static exportIncomeDetail(data: Request.ExportIncomeDetailRequest): Promise<null>;
|
|
18
18
|
static getSalaryChart(data: Request.GetSalaryChartRequest): Promise<Response.GetSalaryChartResponse>;
|
|
19
|
-
static getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<
|
|
20
|
-
static
|
|
19
|
+
static getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<Array<Response.GetAppListPayrollResponse>>;
|
|
20
|
+
static getAppListPayrollPagination(data: Request.GetAppListPayrollRequest): Promise<DataWithMetaResponse<Response.GetAppListPayrollResponse>>;
|
|
21
|
+
static getPayrollDetail(data: Request.GetPayrollDetailRequest): Promise<Array<Response.GetPayrollDetailResponse>>;
|
|
22
|
+
static getPayrollDetailPagination(data: Request.GetPayrollDetailRequest): Promise<DataWithMetaResponse<Response.GetPayrollDetailResponse>>;
|
|
21
23
|
static getSiteIncomeDetail(data: Request.GetSiteIncomeDetailRequest): Promise<Response.GetSiteIncomeDetailResponse>;
|
|
22
24
|
static getSalaryDetail(data: Request.GetSalaryDetailRequest): Promise<Array<Response.GetSalaryDetailResponse>>;
|
|
23
25
|
}
|
|
@@ -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,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AAIzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C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AG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;WAU7G,2BAA2B,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;WAUtI,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;WAU1G,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;WAUnI,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"}
|
|
@@ -149,16 +149,17 @@ export default class Payroll extends Base {
|
|
|
149
149
|
return Model.SalaryChartModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
150
150
|
});
|
|
151
151
|
}
|
|
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
152
|
static getAppListPayroll(data) {
|
|
153
|
+
var _a, _b;
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const response = yield this.client.get({
|
|
156
|
+
path: payroll.GET_APP_LIST_PAYROLL,
|
|
157
|
+
query: data
|
|
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));
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
static getAppListPayrollPagination(data) {
|
|
162
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
164
|
const response = yield this.client.get({
|
|
164
165
|
path: payroll.GET_APP_LIST_PAYROLL,
|
|
@@ -167,16 +168,17 @@ export default class Payroll extends Base {
|
|
|
167
168
|
return DataWithMetaModel(response, Model.AppListPayrollModel);
|
|
168
169
|
});
|
|
169
170
|
}
|
|
170
|
-
// public static async getPayrollDetail(data: Request.GetPayrollDetailRequest): Promise<Array<Response.GetPayrollDetailResponse>> {
|
|
171
|
-
// const response = await this.client.get(
|
|
172
|
-
// {
|
|
173
|
-
// path: payroll.GET_PAYROLL_DETAIL,
|
|
174
|
-
// query: data
|
|
175
|
-
// }
|
|
176
|
-
// );
|
|
177
|
-
// return (response?.result?.data || []).map(item => Model.PayrollDetailModel(item));
|
|
178
|
-
// }
|
|
179
171
|
static getPayrollDetail(data) {
|
|
172
|
+
var _a;
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
const response = yield this.client.get({
|
|
175
|
+
path: payroll.GET_PAYROLL_DETAIL,
|
|
176
|
+
query: data
|
|
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));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
static getPayrollDetailPagination(data) {
|
|
180
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
183
|
const response = yield this.client.get({
|
|
182
184
|
path: payroll.GET_PAYROLL_DETAIL,
|