gap-nodejs-sdk 1.0.518 → 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.
|
@@ -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,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;
|
|
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,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAK9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;IACrE,OAAc,WAAW,gBAAoB;WAEzB,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAoB7F,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;WAwClE,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;WAUrH,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC;WAU9H,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAUhG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,aAAa,CAAC,IAAI,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"}
|
|
@@ -149,15 +149,24 @@ export default class Payroll extends Base {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
static getAppListPayroll(data) {
|
|
152
|
-
var _a;
|
|
152
|
+
var _a, _b;
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
const response = yield this.client.get({
|
|
155
155
|
path: payroll.GET_APP_LIST_PAYROLL,
|
|
156
156
|
query: data
|
|
157
157
|
});
|
|
158
|
-
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.AppListPayrollModel(item));
|
|
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));
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
+
// public static async getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<DataWithMetaResponse<Response.GetAppListPayrollResponse>> {
|
|
162
|
+
// const response = await this.client.get(
|
|
163
|
+
// {
|
|
164
|
+
// path: payroll.GET_APP_LIST_PAYROLL,
|
|
165
|
+
// query: data
|
|
166
|
+
// }
|
|
167
|
+
// );
|
|
168
|
+
// return DataWithMetaModel(response, Model.AppListPayrollModel);
|
|
169
|
+
// }
|
|
161
170
|
static getPayrollDetail(data) {
|
|
162
171
|
var _a;
|
|
163
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -168,6 +177,15 @@ export default class Payroll extends Base {
|
|
|
168
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));
|
|
169
178
|
});
|
|
170
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
|
+
// }
|
|
171
189
|
static getSiteIncomeDetail(data) {
|
|
172
190
|
var _a;
|
|
173
191
|
return __awaiter(this, void 0, void 0, function* () {
|