rotacloud 1.0.24 → 1.0.28
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/cjs/interfaces/auth.interface.d.ts +8 -0
- package/dist/cjs/interfaces/auth.interface.js +2 -0
- package/dist/cjs/interfaces/index.d.ts +1 -0
- package/dist/cjs/interfaces/index.js +1 -0
- package/dist/cjs/interfaces/query-params/daily-budgets-query-params.interface.d.ts +2 -2
- package/dist/cjs/models/auth.model.d.ts +6 -0
- package/dist/cjs/models/auth.model.js +10 -0
- package/dist/cjs/models/daily-budgets.model.js +2 -0
- package/dist/cjs/rotacloud.d.ts +4 -1
- package/dist/cjs/rotacloud.js +3 -0
- package/dist/cjs/services/accounts.service.d.ts +3 -4
- package/dist/cjs/services/accounts.service.js +2 -2
- package/dist/cjs/services/attendance.service.d.ts +13 -18
- package/dist/cjs/services/attendance.service.js +6 -6
- package/dist/cjs/services/auth.service.d.ts +11 -0
- package/dist/cjs/services/auth.service.js +16 -0
- package/dist/cjs/services/availability.service.d.ts +9 -16
- package/dist/cjs/services/availability.service.js +4 -4
- package/dist/cjs/services/daily-budgets.service.d.ts +16 -0
- package/dist/cjs/services/daily-budgets.service.js +99 -0
- package/dist/cjs/services/daily-revenue.service.d.ts +16 -0
- package/dist/cjs/services/daily-revenue.service.js +99 -0
- package/dist/cjs/services/days-off.service.d.ts +8 -12
- package/dist/cjs/services/days-off.service.js +6 -6
- package/dist/cjs/services/groups.service.d.ts +13 -18
- package/dist/cjs/services/groups.service.js +6 -6
- package/dist/cjs/services/index.d.ts +3 -0
- package/dist/cjs/services/index.js +3 -0
- package/dist/cjs/services/leave-embargoes.service.d.ts +13 -18
- package/dist/cjs/services/leave-embargoes.service.js +6 -6
- package/dist/cjs/services/leave-request.service.d.ts +12 -17
- package/dist/cjs/services/leave-request.service.js +4 -4
- package/dist/cjs/services/leave.service.d.ts +13 -18
- package/dist/cjs/services/leave.service.js +9 -9
- package/dist/cjs/services/locations.service.d.ts +13 -18
- package/dist/cjs/services/locations.service.js +6 -6
- package/dist/cjs/services/roles.service.d.ts +13 -18
- package/dist/cjs/services/roles.service.js +6 -6
- package/dist/cjs/services/service.d.ts +6 -4
- package/dist/cjs/services/service.js +2 -2
- package/dist/cjs/services/shifts.service.d.ts +19 -27
- package/dist/cjs/services/shifts.service.js +6 -6
- package/dist/cjs/services/users.service.d.ts +11 -16
- package/dist/cjs/services/users.service.js +6 -6
- package/dist/cjs/version.js +1 -1
- package/dist/mjs/interfaces/auth.interface.d.ts +8 -0
- package/dist/mjs/interfaces/auth.interface.js +1 -0
- package/dist/mjs/interfaces/index.d.ts +1 -0
- package/dist/mjs/interfaces/index.js +1 -0
- package/dist/mjs/interfaces/query-params/daily-budgets-query-params.interface.d.ts +2 -2
- package/dist/mjs/models/auth.model.d.ts +6 -0
- package/dist/mjs/models/auth.model.js +6 -0
- package/dist/mjs/models/daily-budgets.model.js +2 -0
- package/dist/mjs/rotacloud.d.ts +4 -1
- package/dist/mjs/rotacloud.js +4 -1
- package/dist/mjs/services/accounts.service.d.ts +3 -4
- package/dist/mjs/services/accounts.service.js +2 -2
- package/dist/mjs/services/attendance.service.d.ts +13 -18
- package/dist/mjs/services/attendance.service.js +7 -8
- package/dist/mjs/services/auth.service.d.ts +11 -0
- package/dist/mjs/services/auth.service.js +12 -0
- package/dist/mjs/services/availability.service.d.ts +9 -16
- package/dist/mjs/services/availability.service.js +4 -4
- package/dist/mjs/services/daily-budgets.service.d.ts +16 -0
- package/dist/mjs/services/daily-budgets.service.js +38 -0
- package/dist/mjs/services/daily-revenue.service.d.ts +16 -0
- package/dist/mjs/services/daily-revenue.service.js +38 -0
- package/dist/mjs/services/days-off.service.d.ts +8 -12
- package/dist/mjs/services/days-off.service.js +7 -8
- package/dist/mjs/services/groups.service.d.ts +13 -18
- package/dist/mjs/services/groups.service.js +7 -8
- package/dist/mjs/services/index.d.ts +3 -0
- package/dist/mjs/services/index.js +3 -0
- package/dist/mjs/services/leave-embargoes.service.d.ts +13 -18
- package/dist/mjs/services/leave-embargoes.service.js +7 -8
- package/dist/mjs/services/leave-request.service.d.ts +12 -17
- package/dist/mjs/services/leave-request.service.js +5 -6
- package/dist/mjs/services/leave.service.d.ts +13 -18
- package/dist/mjs/services/leave.service.js +10 -11
- package/dist/mjs/services/locations.service.d.ts +13 -18
- package/dist/mjs/services/locations.service.js +7 -8
- package/dist/mjs/services/roles.service.d.ts +13 -18
- package/dist/mjs/services/roles.service.js +7 -8
- package/dist/mjs/services/service.d.ts +6 -4
- package/dist/mjs/services/service.js +7 -2
- package/dist/mjs/services/shifts.service.d.ts +19 -27
- package/dist/mjs/services/shifts.service.js +7 -8
- package/dist/mjs/services/users.service.d.ts +11 -16
- package/dist/mjs/services/users.service.js +6 -6
- package/dist/mjs/version.js +1 -1
- package/package.json +1 -1
- package/src/interfaces/auth.interface.ts +9 -0
- package/src/interfaces/index.ts +1 -0
- package/src/interfaces/query-params/daily-budgets-query-params.interface.ts +2 -2
- package/src/models/auth.model.ts +11 -0
- package/src/models/daily-budgets.model.ts +2 -0
- package/src/rotacloud.ts +6 -0
- package/src/services/accounts.service.ts +5 -6
- package/src/services/attendance.service.ts +20 -32
- package/src/services/auth.service.ts +19 -0
- package/src/services/availability.service.ts +14 -34
- package/src/services/daily-budgets.service.ts +53 -0
- package/src/services/daily-revenue.service.ts +53 -0
- package/src/services/days-off.service.ts +15 -21
- package/src/services/groups.service.ts +21 -23
- package/src/services/index.ts +3 -0
- package/src/services/leave-embargoes.service.ts +21 -30
- package/src/services/leave-request.service.ts +20 -31
- package/src/services/leave.service.ts +24 -29
- package/src/services/locations.service.ts +20 -26
- package/src/services/roles.service.ts +20 -24
- package/src/services/service.ts +18 -8
- package/src/services/shifts.service.ts +29 -41
- package/src/services/users.service.ts +19 -20
- package/src/version.ts +1 -1
|
@@ -49,14 +49,14 @@ class DaysOffService extends index_js_1.Service {
|
|
|
49
49
|
})
|
|
50
50
|
.then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : res.status), (err) => Promise.reject((options === null || options === void 0 ? void 0 : options.rawResponse) ? err : new error_response_model_js_1.ErrorResponse(err)));
|
|
51
51
|
}
|
|
52
|
-
list(options) {
|
|
52
|
+
list(query, options) {
|
|
53
53
|
const _super = Object.create(null, {
|
|
54
54
|
iterator: { get: () => super.iterator }
|
|
55
55
|
});
|
|
56
56
|
return __asyncGenerator(this, arguments, function* list_1() {
|
|
57
57
|
var e_1, _a;
|
|
58
58
|
try {
|
|
59
|
-
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath, params: query }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
60
60
|
const res = _c.value;
|
|
61
61
|
yield yield __await(new days_off_model_js_1.DaysOff(res));
|
|
62
62
|
}
|
|
@@ -70,13 +70,13 @@ class DaysOffService extends index_js_1.Service {
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
listAll() {
|
|
73
|
+
listAll(query, options) {
|
|
74
74
|
var e_2, _a;
|
|
75
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
76
|
try {
|
|
77
77
|
const daysOff = [];
|
|
78
78
|
try {
|
|
79
|
-
for (var _b = __asyncValues(this.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
79
|
+
for (var _b = __asyncValues(this.list(query, options)), _c; _c = yield _b.next(), !_c.done;) {
|
|
80
80
|
const dayOff = _c.value;
|
|
81
81
|
daysOff.push(dayOff);
|
|
82
82
|
}
|
|
@@ -95,8 +95,8 @@ class DaysOffService extends index_js_1.Service {
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
listByPage(options) {
|
|
99
|
-
return super.iterator({ url: this.apiPath }, options).byPage();
|
|
98
|
+
listByPage(query, options) {
|
|
99
|
+
return super.iterator({ url: this.apiPath, params: query }, options).byPage();
|
|
100
100
|
}
|
|
101
101
|
delete(dates, users, options) {
|
|
102
102
|
return super
|
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { ApiGroup } from '../interfaces/index.js';
|
|
3
3
|
import { Service, Options, RequirementsOf } from './index.js';
|
|
4
|
-
import { InternalQueryParams } from '../interfaces/query-params/internal-query-params.interface.js';
|
|
5
4
|
import { Group } from '../models/group.model.js';
|
|
6
5
|
import { GroupsQueryParams } from '../interfaces/query-params/groups-query-params.interface.js';
|
|
7
6
|
declare type RequiredProps = 'name';
|
|
8
|
-
declare class GroupsService extends Service {
|
|
7
|
+
export declare class GroupsService extends Service {
|
|
9
8
|
private apiPath;
|
|
10
9
|
create(data: RequirementsOf<ApiGroup, RequiredProps>): Promise<Group>;
|
|
11
10
|
create(data: RequirementsOf<ApiGroup, RequiredProps>, options: {
|
|
12
11
|
rawResponse: true;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
create(data: RequirementsOf<ApiGroup, RequiredProps>, options: Options<InternalQueryParams>): Promise<Group>;
|
|
12
|
+
} & Options): Promise<AxiosResponse<ApiGroup, any>>;
|
|
13
|
+
create(data: RequirementsOf<ApiGroup, RequiredProps>, options: Options): Promise<Group>;
|
|
16
14
|
get(id: number): Promise<Group>;
|
|
17
15
|
get(id: number, options: {
|
|
18
16
|
rawResponse: true;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
listByPage(options?: Options<GroupsQueryParams & InternalQueryParams>): AsyncGenerator<AxiosResponse<ApiGroup[], any>, any, unknown>;
|
|
17
|
+
} & Options): Promise<AxiosResponse<ApiGroup, any>>;
|
|
18
|
+
get(id: number, options: Options): Promise<Group>;
|
|
19
|
+
list(query: GroupsQueryParams, options?: Options): AsyncGenerator<Group, void, unknown>;
|
|
20
|
+
listAll(query: GroupsQueryParams, options?: Options): Promise<Group[]>;
|
|
21
|
+
listByPage(query: GroupsQueryParams, options?: Options): AsyncGenerator<AxiosResponse<ApiGroup[], any>, any, unknown>;
|
|
25
22
|
update(id: number, data: Partial<ApiGroup>): Promise<Group>;
|
|
26
23
|
update(id: number, data: Partial<ApiGroup>, options: {
|
|
27
24
|
rawResponse: true;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
update(id: number, data: Partial<ApiGroup>, options: Options<InternalQueryParams>): Promise<Group>;
|
|
25
|
+
} & Options): Promise<AxiosResponse<ApiGroup, any>>;
|
|
26
|
+
update(id: number, data: Partial<ApiGroup>, options: Options): Promise<Group>;
|
|
31
27
|
delete(id: number): Promise<number>;
|
|
32
28
|
delete(id: number, options: {
|
|
33
29
|
rawResponse: true;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
delete(id: number, options: Options<InternalQueryParams>): Promise<number>;
|
|
30
|
+
} & Options): Promise<AxiosResponse<any, any>>;
|
|
31
|
+
delete(id: number, options: Options): Promise<number>;
|
|
37
32
|
}
|
|
38
|
-
export {
|
|
33
|
+
export {};
|
|
@@ -43,14 +43,14 @@ class GroupsService extends index_js_1.Service {
|
|
|
43
43
|
get(id, options) {
|
|
44
44
|
return super.fetch({ url: `${this.apiPath}/${id}` }, options).then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : new group_model_js_1.Group(res.data)), (err) => Promise.reject((options === null || options === void 0 ? void 0 : options.rawResponse) ? err : new error_response_model_js_1.ErrorResponse(err)));
|
|
45
45
|
}
|
|
46
|
-
list(options) {
|
|
46
|
+
list(query, options) {
|
|
47
47
|
const _super = Object.create(null, {
|
|
48
48
|
iterator: { get: () => super.iterator }
|
|
49
49
|
});
|
|
50
50
|
return __asyncGenerator(this, arguments, function* list_1() {
|
|
51
51
|
var e_1, _a;
|
|
52
52
|
try {
|
|
53
|
-
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
53
|
+
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath, params: query }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
54
54
|
const res = _c.value;
|
|
55
55
|
yield yield __await(new group_model_js_1.Group(res));
|
|
56
56
|
}
|
|
@@ -64,13 +64,13 @@ class GroupsService extends index_js_1.Service {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
listAll() {
|
|
67
|
+
listAll(query, options) {
|
|
68
68
|
var e_2, _a;
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
try {
|
|
71
71
|
const groups = [];
|
|
72
72
|
try {
|
|
73
|
-
for (var _b = __asyncValues(this.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
73
|
+
for (var _b = __asyncValues(this.list(query, options)), _c; _c = yield _b.next(), !_c.done;) {
|
|
74
74
|
const group = _c.value;
|
|
75
75
|
groups.push(group);
|
|
76
76
|
}
|
|
@@ -89,8 +89,8 @@ class GroupsService extends index_js_1.Service {
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
listByPage(options) {
|
|
93
|
-
return super.iterator({ url: this.apiPath }, options).byPage();
|
|
92
|
+
listByPage(query, options) {
|
|
93
|
+
return super.iterator({ url: this.apiPath, params: query }, options).byPage();
|
|
94
94
|
}
|
|
95
95
|
update(id, data, options) {
|
|
96
96
|
return super
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './service.js';
|
|
2
2
|
export * from './accounts.service.js';
|
|
3
3
|
export * from './attendance.service.js';
|
|
4
|
+
export * from './auth.service.js';
|
|
4
5
|
export * from './availability.service.js';
|
|
6
|
+
export * from './daily-budgets.service.js';
|
|
7
|
+
export * from './daily-revenue.service.js';
|
|
5
8
|
export * from './days-off.service.js';
|
|
6
9
|
export * from './groups.service.js';
|
|
7
10
|
export * from './leave-request.service.js';
|
|
@@ -13,7 +13,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./service.js"), exports);
|
|
14
14
|
__exportStar(require("./accounts.service.js"), exports);
|
|
15
15
|
__exportStar(require("./attendance.service.js"), exports);
|
|
16
|
+
__exportStar(require("./auth.service.js"), exports);
|
|
16
17
|
__exportStar(require("./availability.service.js"), exports);
|
|
18
|
+
__exportStar(require("./daily-budgets.service.js"), exports);
|
|
19
|
+
__exportStar(require("./daily-revenue.service.js"), exports);
|
|
17
20
|
__exportStar(require("./days-off.service.js"), exports);
|
|
18
21
|
__exportStar(require("./groups.service.js"), exports);
|
|
19
22
|
__exportStar(require("./leave-request.service.js"), exports);
|
|
@@ -2,37 +2,32 @@ import { AxiosResponse } from 'axios';
|
|
|
2
2
|
import { ApiLeaveEmbargo } from '../interfaces/index.js';
|
|
3
3
|
import { Service, Options, RequirementsOf } from './index.js';
|
|
4
4
|
import { LeaveEmbargo } from '../models/leave-embargo.model.js';
|
|
5
|
-
import {
|
|
6
|
-
import { InternalQueryParams } from '../interfaces/query-params/internal-query-params.interface.js';
|
|
5
|
+
import { LeaveEmbargoesQueryParams } from '../rotacloud.js';
|
|
7
6
|
declare type RequiredProps = 'start_date' | 'end_date' | 'users';
|
|
8
|
-
declare class LeaveEmbargoesService extends Service {
|
|
7
|
+
export declare class LeaveEmbargoesService extends Service {
|
|
9
8
|
private apiPath;
|
|
10
9
|
create(data: RequirementsOf<ApiLeaveEmbargo, RequiredProps>): Promise<LeaveEmbargo>;
|
|
11
10
|
create(data: RequirementsOf<ApiLeaveEmbargo, RequiredProps>, options: {
|
|
12
11
|
rawResponse: true;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
create(data: RequirementsOf<ApiLeaveEmbargo, RequiredProps>, options: Options<InternalQueryParams>): Promise<LeaveEmbargo>;
|
|
12
|
+
} & Options): Promise<AxiosResponse<ApiLeaveEmbargo, any>>;
|
|
13
|
+
create(data: RequirementsOf<ApiLeaveEmbargo, RequiredProps>, options: Options): Promise<LeaveEmbargo>;
|
|
16
14
|
get(id: number): Promise<LeaveEmbargo>;
|
|
17
15
|
get(id: number, options: {
|
|
18
16
|
rawResponse: true;
|
|
19
|
-
params?: InternalQueryParams;
|
|
20
17
|
}): Promise<AxiosResponse<ApiLeaveEmbargo, any>>;
|
|
21
|
-
get(id: number, options: Options
|
|
22
|
-
list(options?: Options
|
|
23
|
-
listAll(): Promise<LeaveEmbargo[]>;
|
|
24
|
-
listByPage(options?: Options
|
|
18
|
+
get(id: number, options: Options): Promise<LeaveEmbargo>;
|
|
19
|
+
list(query: LeaveEmbargoesQueryParams, options?: Options): AsyncGenerator<LeaveEmbargo, void, unknown>;
|
|
20
|
+
listAll(query: LeaveEmbargoesQueryParams, options?: Options): Promise<LeaveEmbargo[]>;
|
|
21
|
+
listByPage(query: LeaveEmbargoesQueryParams, options?: Options): AsyncGenerator<AxiosResponse<ApiLeaveEmbargo[], any>, any, unknown>;
|
|
25
22
|
update(id: number, data: Partial<ApiLeaveEmbargo>): Promise<LeaveEmbargo>;
|
|
26
23
|
update(id: number, data: Partial<ApiLeaveEmbargo>, options: {
|
|
27
24
|
rawResponse: true;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
update(id: number, data: Partial<ApiLeaveEmbargo>, options: Options<InternalQueryParams>): Promise<LeaveEmbargo>;
|
|
25
|
+
} & Options): Promise<AxiosResponse<ApiLeaveEmbargo, any>>;
|
|
26
|
+
update(id: number, data: Partial<ApiLeaveEmbargo>, options: Options): Promise<LeaveEmbargo>;
|
|
31
27
|
delete(id: number): Promise<number>;
|
|
32
28
|
delete(id: number, options: {
|
|
33
29
|
rawResponse: true;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
delete(id: number, options: Options<InternalQueryParams>): Promise<number>;
|
|
30
|
+
} & Options): Promise<AxiosResponse<any, any>>;
|
|
31
|
+
delete(id: number, options: Options): Promise<number>;
|
|
37
32
|
}
|
|
38
|
-
export {
|
|
33
|
+
export {};
|
|
@@ -43,14 +43,14 @@ class LeaveEmbargoesService extends index_js_1.Service {
|
|
|
43
43
|
get(id, options) {
|
|
44
44
|
return super.fetch({ url: `${this.apiPath}/${id}` }, options).then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : new leave_embargo_model_js_1.LeaveEmbargo(res.data)), (err) => Promise.reject((options === null || options === void 0 ? void 0 : options.rawResponse) ? err : new error_response_model_js_1.ErrorResponse(err)));
|
|
45
45
|
}
|
|
46
|
-
list(options) {
|
|
46
|
+
list(query, options) {
|
|
47
47
|
const _super = Object.create(null, {
|
|
48
48
|
iterator: { get: () => super.iterator }
|
|
49
49
|
});
|
|
50
50
|
return __asyncGenerator(this, arguments, function* list_1() {
|
|
51
51
|
var e_1, _a;
|
|
52
52
|
try {
|
|
53
|
-
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
53
|
+
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath, params: query }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
54
54
|
const res = _c.value;
|
|
55
55
|
yield yield __await(new leave_embargo_model_js_1.LeaveEmbargo(res));
|
|
56
56
|
}
|
|
@@ -64,13 +64,13 @@ class LeaveEmbargoesService extends index_js_1.Service {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
listAll() {
|
|
67
|
+
listAll(query, options) {
|
|
68
68
|
var e_2, _a;
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
try {
|
|
71
71
|
const leave = [];
|
|
72
72
|
try {
|
|
73
|
-
for (var _b = __asyncValues(this.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
73
|
+
for (var _b = __asyncValues(this.list(query, options)), _c; _c = yield _b.next(), !_c.done;) {
|
|
74
74
|
const leaveEmbargoRecord = _c.value;
|
|
75
75
|
leave.push(leaveEmbargoRecord);
|
|
76
76
|
}
|
|
@@ -89,8 +89,8 @@ class LeaveEmbargoesService extends index_js_1.Service {
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
listByPage(options) {
|
|
93
|
-
return super.iterator({ url: this.apiPath }, options).byPage();
|
|
92
|
+
listByPage(query, options) {
|
|
93
|
+
return super.iterator({ url: this.apiPath, params: query }, options).byPage();
|
|
94
94
|
}
|
|
95
95
|
update(id, data, options) {
|
|
96
96
|
return super
|
|
@@ -2,37 +2,32 @@ import { AxiosResponse } from 'axios';
|
|
|
2
2
|
import { ApiLeaveRequest } from '../interfaces/index.js';
|
|
3
3
|
import { Service, Options, RequirementsOf } from './index.js';
|
|
4
4
|
import { LeaveQueryParams } from '../interfaces/query-params/leave-query-params.interface.js';
|
|
5
|
-
import { InternalQueryParams } from '../interfaces/query-params/internal-query-params.interface.js';
|
|
6
5
|
import { LeaveRequest } from '../models/leave-request.model.js';
|
|
7
6
|
declare type RequiredProps = 'start_date' | 'end_date' | 'type' | 'user';
|
|
8
|
-
declare class LeaveRequestService extends Service {
|
|
7
|
+
export declare class LeaveRequestService extends Service {
|
|
9
8
|
private apiPath;
|
|
10
9
|
create(data: RequirementsOf<ApiLeaveRequest, RequiredProps>): Promise<LeaveRequest>;
|
|
11
10
|
create(data: RequirementsOf<ApiLeaveRequest, RequiredProps>, options: {
|
|
12
11
|
rawResponse: true;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
create(data: RequirementsOf<ApiLeaveRequest, RequiredProps>, options: Options<InternalQueryParams>): Promise<LeaveRequest>;
|
|
12
|
+
} & Options): Promise<AxiosResponse<ApiLeaveRequest, any>>;
|
|
13
|
+
create(data: RequirementsOf<ApiLeaveRequest, RequiredProps>, options: Options): Promise<LeaveRequest>;
|
|
16
14
|
get(id: number): Promise<LeaveRequest>;
|
|
17
15
|
get(id: number, options: {
|
|
18
16
|
rawResponse: true;
|
|
19
|
-
params?: InternalQueryParams;
|
|
20
17
|
}): Promise<AxiosResponse<ApiLeaveRequest, any>>;
|
|
21
|
-
get(id: number, options: Options
|
|
22
|
-
list(options?: Options
|
|
23
|
-
listAll(): Promise<LeaveRequest[]>;
|
|
24
|
-
listByPage(options?: Options
|
|
18
|
+
get(id: number, options: Options): Promise<LeaveRequest>;
|
|
19
|
+
list(query: LeaveQueryParams, options?: Options): AsyncGenerator<LeaveRequest, void, unknown>;
|
|
20
|
+
listAll(query: LeaveQueryParams, options?: Options): Promise<LeaveRequest[]>;
|
|
21
|
+
listByPage(options?: Options): AsyncGenerator<AxiosResponse<ApiLeaveRequest[], any>, any, unknown>;
|
|
25
22
|
update(id: number, data: Partial<ApiLeaveRequest>): Promise<LeaveRequest>;
|
|
26
23
|
update(id: number, data: Partial<ApiLeaveRequest>, options: {
|
|
27
24
|
rawResponse: true;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
update(id: number, data: Partial<ApiLeaveRequest>, options: Options<InternalQueryParams>): Promise<LeaveRequest>;
|
|
25
|
+
} & Options): Promise<AxiosResponse<ApiLeaveRequest, any>>;
|
|
26
|
+
update(id: number, data: Partial<ApiLeaveRequest>, options: Options): Promise<LeaveRequest>;
|
|
31
27
|
delete(id: number): Promise<number>;
|
|
32
28
|
delete(id: number, options: {
|
|
33
29
|
rawResponse: true;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
delete(id: number, options: Options<InternalQueryParams>): Promise<number>;
|
|
30
|
+
} & Options): Promise<AxiosResponse<ApiLeaveRequest, any>>;
|
|
31
|
+
delete(id: number, options: Options): Promise<number>;
|
|
37
32
|
}
|
|
38
|
-
export {
|
|
33
|
+
export {};
|
|
@@ -43,14 +43,14 @@ class LeaveRequestService extends index_js_1.Service {
|
|
|
43
43
|
get(id, options) {
|
|
44
44
|
return super.fetch({ url: `${this.apiPath}/${id}` }, options).then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : new leave_request_model_js_1.LeaveRequest(res.data)), (err) => Promise.reject((options === null || options === void 0 ? void 0 : options.rawResponse) ? err : new error_response_model_js_1.ErrorResponse(err)));
|
|
45
45
|
}
|
|
46
|
-
list(options) {
|
|
46
|
+
list(query, options) {
|
|
47
47
|
const _super = Object.create(null, {
|
|
48
48
|
iterator: { get: () => super.iterator }
|
|
49
49
|
});
|
|
50
50
|
return __asyncGenerator(this, arguments, function* list_1() {
|
|
51
51
|
var e_1, _a;
|
|
52
52
|
try {
|
|
53
|
-
for (var _b = __asyncValues(_super.iterator.call(this, { url:
|
|
53
|
+
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath, params: query }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
54
54
|
const res = _c.value;
|
|
55
55
|
yield yield __await(new leave_request_model_js_1.LeaveRequest(res));
|
|
56
56
|
}
|
|
@@ -64,13 +64,13 @@ class LeaveRequestService extends index_js_1.Service {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
listAll() {
|
|
67
|
+
listAll(query, options) {
|
|
68
68
|
var e_2, _a;
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
try {
|
|
71
71
|
const leave = [];
|
|
72
72
|
try {
|
|
73
|
-
for (var _b = __asyncValues(this.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
73
|
+
for (var _b = __asyncValues(this.list(query, options)), _c; _c = yield _b.next(), !_c.done;) {
|
|
74
74
|
const leaveRequestRecord = _c.value;
|
|
75
75
|
leave.push(leaveRequestRecord);
|
|
76
76
|
}
|
|
@@ -3,38 +3,33 @@ import { ApiLeave } from '../interfaces/index.js';
|
|
|
3
3
|
import { Service, Options, RequirementsOf } from './index.js';
|
|
4
4
|
import { Leave } from '../models/leave.model.js';
|
|
5
5
|
import { LeaveQueryParams } from '../interfaces/query-params/leave-query-params.interface.js';
|
|
6
|
-
import { InternalQueryParams } from '../interfaces/query-params/internal-query-params.interface.js';
|
|
7
6
|
import { LeaveType } from '../models/leave-type.model.js';
|
|
8
7
|
declare type RequiredProps = 'users' | 'type' | 'start_date' | 'end_date';
|
|
9
|
-
declare class LeaveService extends Service {
|
|
8
|
+
export declare class LeaveService extends Service {
|
|
10
9
|
private apiPath;
|
|
11
10
|
create(data: RequirementsOf<ApiLeave, RequiredProps>): Promise<Leave[]>;
|
|
12
11
|
create(data: RequirementsOf<ApiLeave, RequiredProps>, options: {
|
|
13
12
|
rawResponse: true;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
create(data: RequirementsOf<ApiLeave, RequiredProps>, options: Options<InternalQueryParams>): Promise<Leave[]>;
|
|
13
|
+
} & Options): Promise<AxiosResponse<ApiLeave[], any>>;
|
|
14
|
+
create(data: RequirementsOf<ApiLeave, RequiredProps>, options: Options): Promise<Leave[]>;
|
|
17
15
|
get(id: number): Promise<Leave>;
|
|
18
16
|
get(id: number, options: {
|
|
19
17
|
rawResponse: true;
|
|
20
|
-
params?: InternalQueryParams;
|
|
21
18
|
}): Promise<AxiosResponse<ApiLeave, any>>;
|
|
22
|
-
get(id: number, options: Options
|
|
23
|
-
list(options?: Options
|
|
24
|
-
listAll(): Promise<Leave[]>;
|
|
25
|
-
listLeaveTypes(options?: Options
|
|
26
|
-
listByPage(options?: Options
|
|
19
|
+
get(id: number, options: Options): Promise<Leave>;
|
|
20
|
+
list(query: LeaveQueryParams, options?: Options): AsyncGenerator<Leave, void, unknown>;
|
|
21
|
+
listAll(query: LeaveQueryParams, options?: Options): Promise<Leave[]>;
|
|
22
|
+
listLeaveTypes(query: LeaveQueryParams, options?: Options): AsyncGenerator<LeaveType, void, unknown>;
|
|
23
|
+
listByPage(query: LeaveQueryParams, options?: Options): AsyncGenerator<AxiosResponse<ApiLeave[], any>, any, unknown>;
|
|
27
24
|
update(id: number, data: Partial<ApiLeave>): Promise<Leave>;
|
|
28
25
|
update(id: number, data: Partial<ApiLeave>, options: {
|
|
29
26
|
rawResponse: true;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
update(id: number, data: Partial<ApiLeave>, options: Options<InternalQueryParams>): Promise<Leave>;
|
|
27
|
+
} & Options): Promise<AxiosResponse<ApiLeave, any>>;
|
|
28
|
+
update(id: number, data: Partial<ApiLeave>, options: Options): Promise<Leave>;
|
|
33
29
|
delete(id: number): Promise<number>;
|
|
34
30
|
delete(id: number, options: {
|
|
35
31
|
rawResponse: true;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
delete(id: number, options: Options<InternalQueryParams>): Promise<number>;
|
|
32
|
+
} & Options): Promise<AxiosResponse<ApiLeave, any>>;
|
|
33
|
+
delete(id: number, options: Options): Promise<number>;
|
|
39
34
|
}
|
|
40
|
-
export {
|
|
35
|
+
export {};
|
|
@@ -39,19 +39,19 @@ class LeaveService extends index_js_1.Service {
|
|
|
39
39
|
this.apiPath = '/leave';
|
|
40
40
|
}
|
|
41
41
|
create(data, options) {
|
|
42
|
-
return super.fetch({ url:
|
|
42
|
+
return super.fetch({ url: this.apiPath, data, method: 'POST' }).then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : [...res.data.map((leave) => new leave_model_js_1.Leave(leave))]), (err) => Promise.reject((options === null || options === void 0 ? void 0 : options.rawResponse) ? err : new error_response_model_js_1.ErrorResponse(err)));
|
|
43
43
|
}
|
|
44
44
|
get(id, options) {
|
|
45
45
|
return super.fetch({ url: `${this.apiPath}/${id}` }, options).then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : new leave_model_js_1.Leave(res.data)), (err) => Promise.reject((options === null || options === void 0 ? void 0 : options.rawResponse) ? err : new error_response_model_js_1.ErrorResponse(err)));
|
|
46
46
|
}
|
|
47
|
-
list(options) {
|
|
47
|
+
list(query, options) {
|
|
48
48
|
const _super = Object.create(null, {
|
|
49
49
|
iterator: { get: () => super.iterator }
|
|
50
50
|
});
|
|
51
51
|
return __asyncGenerator(this, arguments, function* list_1() {
|
|
52
52
|
var e_1, _a;
|
|
53
53
|
try {
|
|
54
|
-
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
54
|
+
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath, params: query }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
55
55
|
const res = _c.value;
|
|
56
56
|
yield yield __await(new leave_model_js_1.Leave(res));
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ class LeaveService extends index_js_1.Service {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
listAll() {
|
|
68
|
+
listAll(query, options) {
|
|
69
69
|
var e_2, _a;
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
try {
|
|
72
72
|
const leave = [];
|
|
73
73
|
try {
|
|
74
|
-
for (var _b = __asyncValues(this.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
74
|
+
for (var _b = __asyncValues(this.list(query, options)), _c; _c = yield _b.next(), !_c.done;) {
|
|
75
75
|
const leaveRecord = _c.value;
|
|
76
76
|
leave.push(leaveRecord);
|
|
77
77
|
}
|
|
@@ -90,14 +90,14 @@ class LeaveService extends index_js_1.Service {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
listLeaveTypes(options) {
|
|
93
|
+
listLeaveTypes(query, options) {
|
|
94
94
|
const _super = Object.create(null, {
|
|
95
95
|
iterator: { get: () => super.iterator }
|
|
96
96
|
});
|
|
97
97
|
return __asyncGenerator(this, arguments, function* listLeaveTypes_1() {
|
|
98
98
|
var e_3, _a;
|
|
99
99
|
try {
|
|
100
|
-
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
100
|
+
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath, params: query }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
101
101
|
const res = _c.value;
|
|
102
102
|
yield yield __await(new leave_type_model_js_1.LeaveType(res));
|
|
103
103
|
}
|
|
@@ -111,8 +111,8 @@ class LeaveService extends index_js_1.Service {
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
listByPage(options) {
|
|
115
|
-
return super.iterator({ url: this.apiPath }, options).byPage();
|
|
114
|
+
listByPage(query, options) {
|
|
115
|
+
return super.iterator({ url: this.apiPath, params: query }, options).byPage();
|
|
116
116
|
}
|
|
117
117
|
update(id, data, options) {
|
|
118
118
|
return super
|
|
@@ -3,36 +3,31 @@ import { ApiLocation } from '../interfaces/index.js';
|
|
|
3
3
|
import { Service, Options, RequirementsOf } from './index.js';
|
|
4
4
|
import { Location } from '../models/location.model.js';
|
|
5
5
|
import { LocationsQueryParams } from '../interfaces/query-params/locations-query-params.interface.js';
|
|
6
|
-
import { InternalQueryParams } from '../interfaces/query-params/internal-query-params.interface.js';
|
|
7
6
|
declare type RequiredProps = 'name';
|
|
8
|
-
declare class LocationsService extends Service {
|
|
7
|
+
export declare class LocationsService extends Service {
|
|
9
8
|
private apiPath;
|
|
10
9
|
create(data: RequirementsOf<ApiLocation, RequiredProps>): Promise<Location>;
|
|
11
10
|
create(data: RequirementsOf<ApiLocation, RequiredProps>, options: {
|
|
12
11
|
rawResponse: true;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
create(data: RequirementsOf<ApiLocation, RequiredProps>, options: Options<InternalQueryParams>): Promise<ApiLocation>;
|
|
12
|
+
} & Options): Promise<AxiosResponse<ApiLocation, any>>;
|
|
13
|
+
create(data: RequirementsOf<ApiLocation, RequiredProps>, options: Options): Promise<Location>;
|
|
16
14
|
get(id: number): Promise<Location>;
|
|
17
15
|
get(id: number, options: {
|
|
18
16
|
rawResponse: true;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
listByPage(options?: Options<LocationsQueryParams & InternalQueryParams>): AsyncGenerator<AxiosResponse<ApiLocation[], any>, any, unknown>;
|
|
17
|
+
} & Options): Promise<AxiosResponse<ApiLocation, any>>;
|
|
18
|
+
get(id: number, options: Options): Promise<Location>;
|
|
19
|
+
list(query: LocationsQueryParams, options?: Options): AsyncGenerator<Location, void, unknown>;
|
|
20
|
+
listAll(query: LocationsQueryParams, options?: Options): Promise<Location[]>;
|
|
21
|
+
listByPage(query: LocationsQueryParams, options?: Options): AsyncGenerator<AxiosResponse<ApiLocation[], any>, any, unknown>;
|
|
25
22
|
update(id: number, data: Partial<ApiLocation>): Promise<Location>;
|
|
26
23
|
update(id: number, data: Partial<ApiLocation>, options: {
|
|
27
24
|
rawResponse: true;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
update(id: number, data: Partial<ApiLocation>, options: Options<InternalQueryParams>): Promise<ApiLocation>;
|
|
25
|
+
} & Options): Promise<AxiosResponse<ApiLocation, any>>;
|
|
26
|
+
update(id: number, data: Partial<ApiLocation>, options: Options): Promise<Location>;
|
|
31
27
|
delete(id: number): Promise<number>;
|
|
32
28
|
delete(id: number, options: {
|
|
33
29
|
rawResponse: true;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
delete(id: number, options: Options<InternalQueryParams>): Promise<number>;
|
|
30
|
+
} & Options): Promise<AxiosResponse<any, any>>;
|
|
31
|
+
delete(id: number, options: Options): Promise<number>;
|
|
37
32
|
}
|
|
38
|
-
export {
|
|
33
|
+
export {};
|
|
@@ -43,14 +43,14 @@ class LocationsService extends index_js_1.Service {
|
|
|
43
43
|
get(id, options) {
|
|
44
44
|
return super.fetch({ url: `${this.apiPath}/${id}` }, options).then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : new location_model_js_1.Location(res.data)), (err) => Promise.reject((options === null || options === void 0 ? void 0 : options.rawResponse) ? err : new error_response_model_js_1.ErrorResponse(err)));
|
|
45
45
|
}
|
|
46
|
-
list(options) {
|
|
46
|
+
list(query, options) {
|
|
47
47
|
const _super = Object.create(null, {
|
|
48
48
|
iterator: { get: () => super.iterator }
|
|
49
49
|
});
|
|
50
50
|
return __asyncGenerator(this, arguments, function* list_1() {
|
|
51
51
|
var e_1, _a;
|
|
52
52
|
try {
|
|
53
|
-
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
53
|
+
for (var _b = __asyncValues(_super.iterator.call(this, { url: this.apiPath, params: query }, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
54
54
|
const res = _c.value;
|
|
55
55
|
yield yield __await(new location_model_js_1.Location(res));
|
|
56
56
|
}
|
|
@@ -64,13 +64,13 @@ class LocationsService extends index_js_1.Service {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
listAll() {
|
|
67
|
+
listAll(query, options) {
|
|
68
68
|
var e_2, _a;
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
try {
|
|
71
71
|
const locations = [];
|
|
72
72
|
try {
|
|
73
|
-
for (var _b = __asyncValues(this.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
73
|
+
for (var _b = __asyncValues(this.list(query, options)), _c; _c = yield _b.next(), !_c.done;) {
|
|
74
74
|
const location = _c.value;
|
|
75
75
|
locations.push(location);
|
|
76
76
|
}
|
|
@@ -89,8 +89,8 @@ class LocationsService extends index_js_1.Service {
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
listByPage(options) {
|
|
93
|
-
return super.iterator({ url: this.apiPath }, options).byPage();
|
|
92
|
+
listByPage(query, options) {
|
|
93
|
+
return super.iterator({ url: this.apiPath, params: query }, options).byPage();
|
|
94
94
|
}
|
|
95
95
|
update(id, data, options) {
|
|
96
96
|
return super
|
|
@@ -3,36 +3,31 @@ import { ApiRole } from '../interfaces/index.js';
|
|
|
3
3
|
import { Service, Options, RequirementsOf } from './index.js';
|
|
4
4
|
import { Role } from '../models/role.model.js';
|
|
5
5
|
import { RolesQueryParams } from '../interfaces/query-params/roles-query-params.interface.js';
|
|
6
|
-
import { InternalQueryParams } from '../interfaces/query-params/internal-query-params.interface.js';
|
|
7
6
|
declare type RequiredProps = 'name';
|
|
8
|
-
declare class RolesService extends Service {
|
|
7
|
+
export declare class RolesService extends Service {
|
|
9
8
|
private apiPath;
|
|
10
9
|
create(data: RequirementsOf<ApiRole, RequiredProps>): Promise<Role>;
|
|
11
10
|
create(data: RequirementsOf<ApiRole, RequiredProps>, options: {
|
|
12
11
|
rawResponse: true;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
create(data: RequirementsOf<ApiRole, RequiredProps>, options: Options<InternalQueryParams>): Promise<Role>;
|
|
12
|
+
} & Options): Promise<AxiosResponse<ApiRole, any>>;
|
|
13
|
+
create(data: RequirementsOf<ApiRole, RequiredProps>, options: Options): Promise<Role>;
|
|
16
14
|
get(id: number): Promise<Role>;
|
|
17
15
|
get(id: number, options: {
|
|
18
16
|
rawResponse: true;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
listByPage(options?: Options<RolesQueryParams & InternalQueryParams>): AsyncGenerator<AxiosResponse<ApiRole[], any>, any, unknown>;
|
|
17
|
+
} & Options): Promise<AxiosResponse<ApiRole, any>>;
|
|
18
|
+
get(id: number, options: Options): Promise<Role>;
|
|
19
|
+
list(query: RolesQueryParams, options?: Options): AsyncGenerator<Role, void, unknown>;
|
|
20
|
+
listAll(query: RolesQueryParams, options?: Options): Promise<Role[]>;
|
|
21
|
+
listByPage(query: RolesQueryParams, options?: Options): AsyncGenerator<AxiosResponse<ApiRole[], any>, any, unknown>;
|
|
25
22
|
update(id: number, data: Partial<ApiRole>): Promise<Role>;
|
|
26
23
|
update(id: number, data: Partial<ApiRole>, options: {
|
|
27
24
|
rawResponse: true;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
update(id: number, data: Partial<ApiRole>, options: Options<InternalQueryParams>): Promise<Role>;
|
|
25
|
+
} & Options): Promise<AxiosResponse<ApiRole, any>>;
|
|
26
|
+
update(id: number, data: Partial<ApiRole>, options: Options): Promise<Role>;
|
|
31
27
|
delete(id: number): Promise<number>;
|
|
32
28
|
delete(id: number, options: {
|
|
33
29
|
rawResponse: true;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
delete(id: number, options: Options<InternalQueryParams>): Promise<number>;
|
|
30
|
+
} & Options): Promise<AxiosResponse<any, any>>;
|
|
31
|
+
delete(id: number, options: Options): Promise<number>;
|
|
37
32
|
}
|
|
38
|
-
export {
|
|
33
|
+
export {};
|