rotacloud 1.0.45 → 1.0.47
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/models/toil-allowance.model.js +1 -1
- package/dist/cjs/services/leave.service.js +1 -1
- package/dist/cjs/services/toil-accruals.service.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/mjs/models/toil-allowance.model.js +1 -1
- package/dist/mjs/services/leave.service.js +1 -1
- package/dist/mjs/services/toil-accruals.service.d.ts +1 -1
- package/dist/mjs/version.js +1 -1
- package/package.json +1 -1
- package/src/models/toil-allowance.model.ts +1 -1
- package/src/services/leave.service.ts +8 -5
- package/src/services/toil-accruals.service.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -5,7 +5,7 @@ class ToilAllowance {
|
|
|
5
5
|
constructor(allowance) {
|
|
6
6
|
this.user = allowance.user;
|
|
7
7
|
this.accrued_hours = allowance.accrued_hours;
|
|
8
|
-
this.remaining_hours = allowance.
|
|
8
|
+
this.remaining_hours = allowance.remaining_hours;
|
|
9
9
|
this.used_hours = allowance.used_hours;
|
|
10
10
|
this.has_toil_records = allowance.has_toil_records;
|
|
11
11
|
}
|
|
@@ -118,7 +118,7 @@ class LeaveService extends index_js_1.Service {
|
|
|
118
118
|
url: `${this.apiPath}/${id}`,
|
|
119
119
|
data,
|
|
120
120
|
method: 'POST',
|
|
121
|
-
})
|
|
121
|
+
}, options)
|
|
122
122
|
.then((res) => Promise.resolve((options === null || options === void 0 ? void 0 : options.rawResponse) ? res : new leave_model_js_1.Leave(res.data)));
|
|
123
123
|
}
|
|
124
124
|
delete(id, options) {
|
|
@@ -3,7 +3,7 @@ import { Options, RequirementsOf, Service } from './service';
|
|
|
3
3
|
import { ToilAccrualsQueryParams } from '../interfaces/query-params/toil-accruals-query-params.interface';
|
|
4
4
|
import { ToilAccrual } from '../models/toil-accrual.model';
|
|
5
5
|
import { ApiToilAccrual } from '../interfaces/toil-accrual.interface';
|
|
6
|
-
declare type RequiredProps = 'duration_hours' | '
|
|
6
|
+
declare type RequiredProps = 'duration_hours' | 'leave_year' | 'user_id';
|
|
7
7
|
export declare class ToilAccrualsService extends Service {
|
|
8
8
|
private apiPath;
|
|
9
9
|
create(data: RequirementsOf<ApiToilAccrual, RequiredProps>): Promise<ToilAccrual>;
|
package/dist/cjs/version.js
CHANGED
|
@@ -2,7 +2,7 @@ export class ToilAllowance {
|
|
|
2
2
|
constructor(allowance) {
|
|
3
3
|
this.user = allowance.user;
|
|
4
4
|
this.accrued_hours = allowance.accrued_hours;
|
|
5
|
-
this.remaining_hours = allowance.
|
|
5
|
+
this.remaining_hours = allowance.remaining_hours;
|
|
6
6
|
this.used_hours = allowance.used_hours;
|
|
7
7
|
this.has_toil_records = allowance.has_toil_records;
|
|
8
8
|
}
|
|
@@ -3,7 +3,7 @@ import { Options, RequirementsOf, Service } from './service';
|
|
|
3
3
|
import { ToilAccrualsQueryParams } from '../interfaces/query-params/toil-accruals-query-params.interface';
|
|
4
4
|
import { ToilAccrual } from '../models/toil-accrual.model';
|
|
5
5
|
import { ApiToilAccrual } from '../interfaces/toil-accrual.interface';
|
|
6
|
-
declare type RequiredProps = 'duration_hours' | '
|
|
6
|
+
declare type RequiredProps = 'duration_hours' | 'leave_year' | 'user_id';
|
|
7
7
|
export declare class ToilAccrualsService extends Service {
|
|
8
8
|
private apiPath;
|
|
9
9
|
create(data: RequirementsOf<ApiToilAccrual, RequiredProps>): Promise<ToilAccrual>;
|
package/dist/mjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.0.
|
|
1
|
+
export const Version = { version: '1.0.47' };
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export class ToilAllowance {
|
|
|
9
9
|
constructor(allowance: ApiToilAllowance) {
|
|
10
10
|
this.user = allowance.user;
|
|
11
11
|
this.accrued_hours = allowance.accrued_hours;
|
|
12
|
-
this.remaining_hours = allowance.
|
|
12
|
+
this.remaining_hours = allowance.remaining_hours;
|
|
13
13
|
this.used_hours = allowance.used_hours;
|
|
14
14
|
this.has_toil_records = allowance.has_toil_records;
|
|
15
15
|
}
|
|
@@ -68,11 +68,14 @@ export class LeaveService extends Service {
|
|
|
68
68
|
update(id: number, data: Partial<ApiLeave>, options: Options): Promise<Leave>;
|
|
69
69
|
update(id: number, data: Partial<ApiLeave>, options?: Options) {
|
|
70
70
|
return super
|
|
71
|
-
.fetch<ApiLeave>(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
.fetch<ApiLeave>(
|
|
72
|
+
{
|
|
73
|
+
url: `${this.apiPath}/${id}`,
|
|
74
|
+
data,
|
|
75
|
+
method: 'POST',
|
|
76
|
+
},
|
|
77
|
+
options
|
|
78
|
+
)
|
|
76
79
|
.then((res) => Promise.resolve(options?.rawResponse ? res : new Leave(res.data)));
|
|
77
80
|
}
|
|
78
81
|
|
|
@@ -4,7 +4,7 @@ import { ToilAccrualsQueryParams } from '../interfaces/query-params/toil-accrual
|
|
|
4
4
|
import { ToilAccrual } from '../models/toil-accrual.model';
|
|
5
5
|
import { ApiToilAccrual } from '../interfaces/toil-accrual.interface';
|
|
6
6
|
|
|
7
|
-
type RequiredProps = 'duration_hours' | '
|
|
7
|
+
type RequiredProps = 'duration_hours' | 'leave_year' | 'user_id';
|
|
8
8
|
|
|
9
9
|
export class ToilAccrualsService extends Service {
|
|
10
10
|
private apiPath = '/toil_accruals';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: '1.0.
|
|
1
|
+
export const Version = { version: '1.0.47' };
|