@digital8/task-dashboard-ts-sdk 0.0.8 → 0.0.9
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/.openapi-generator/FILES +3 -4
- package/README.md +2 -2
- package/dist/apis/AllocationDaysApi.d.ts +1 -24
- package/dist/apis/AllocationDaysApi.js +0 -76
- package/dist/apis/AllocationsApi.d.ts +2 -13
- package/dist/apis/AllocationsApi.js +2 -39
- package/dist/apis/TimeOffApi.d.ts +2 -13
- package/dist/apis/TimeOffApi.js +2 -39
- package/dist/apis/TimeOffDaysApi.d.ts +1 -24
- package/dist/apis/TimeOffDaysApi.js +0 -76
- package/dist/esm/apis/AllocationDaysApi.d.ts +1 -24
- package/dist/esm/apis/AllocationDaysApi.js +1 -77
- package/dist/esm/apis/AllocationsApi.d.ts +2 -13
- package/dist/esm/apis/AllocationsApi.js +3 -40
- package/dist/esm/apis/TimeOffApi.d.ts +2 -13
- package/dist/esm/apis/TimeOffApi.js +3 -40
- package/dist/esm/apis/TimeOffDaysApi.d.ts +1 -24
- package/dist/esm/apis/TimeOffDaysApi.js +1 -77
- package/dist/esm/models/DeleteAllocationRequest.d.ts +39 -0
- package/dist/esm/models/{UpdateTimeOffDayRequest.js → DeleteAllocationRequest.js} +13 -10
- package/dist/esm/models/DeleteTimeOffRequest.d.ts +39 -0
- package/dist/esm/models/DeleteTimeOffRequest.js +46 -0
- package/dist/esm/models/ScheduleScope.d.ts +26 -0
- package/dist/esm/models/ScheduleScope.js +44 -0
- package/dist/esm/models/UpdateAllocationRequest.d.ts +13 -0
- package/dist/esm/models/UpdateAllocationRequest.js +7 -0
- package/dist/esm/models/UpdateTimeOffRequest.d.ts +13 -0
- package/dist/esm/models/UpdateTimeOffRequest.js +7 -0
- package/dist/esm/models/index.d.ts +3 -4
- package/dist/esm/models/index.js +3 -4
- package/dist/models/DeleteAllocationRequest.d.ts +39 -0
- package/dist/models/DeleteAllocationRequest.js +53 -0
- package/dist/models/DeleteTimeOffRequest.d.ts +39 -0
- package/dist/models/DeleteTimeOffRequest.js +53 -0
- package/dist/models/ScheduleScope.d.ts +26 -0
- package/dist/models/ScheduleScope.js +52 -0
- package/dist/models/UpdateAllocationRequest.d.ts +13 -0
- package/dist/models/UpdateAllocationRequest.js +7 -0
- package/dist/models/UpdateTimeOffRequest.d.ts +13 -0
- package/dist/models/UpdateTimeOffRequest.js +7 -0
- package/dist/models/index.d.ts +3 -4
- package/dist/models/index.js +3 -4
- package/package.json +1 -1
- package/src/apis/AllocationDaysApi.ts +0 -111
- package/src/apis/AllocationsApi.ts +7 -56
- package/src/apis/TimeOffApi.ts +7 -56
- package/src/apis/TimeOffDaysApi.ts +0 -111
- package/src/models/DeleteAllocationRequest.ts +84 -0
- package/src/models/DeleteTimeOffRequest.ts +84 -0
- package/src/models/ScheduleScope.ts +54 -0
- package/src/models/UpdateAllocationRequest.ts +27 -0
- package/src/models/UpdateTimeOffRequest.ts +24 -0
- package/src/models/index.ts +3 -4
- package/dist/esm/models/ShiftAllocationRequest.d.ts +0 -38
- package/dist/esm/models/ShiftAllocationRequest.js +0 -45
- package/dist/esm/models/ShiftTimeOffRequest.d.ts +0 -32
- package/dist/esm/models/ShiftTimeOffRequest.js +0 -43
- package/dist/esm/models/UpdateAllocationDayRequest.d.ts +0 -50
- package/dist/esm/models/UpdateAllocationDayRequest.js +0 -47
- package/dist/esm/models/UpdateTimeOffDayRequest.d.ts +0 -38
- package/dist/models/ShiftAllocationRequest.d.ts +0 -38
- package/dist/models/ShiftAllocationRequest.js +0 -52
- package/dist/models/ShiftTimeOffRequest.d.ts +0 -32
- package/dist/models/ShiftTimeOffRequest.js +0 -50
- package/dist/models/UpdateAllocationDayRequest.d.ts +0 -50
- package/dist/models/UpdateAllocationDayRequest.js +0 -54
- package/dist/models/UpdateTimeOffDayRequest.d.ts +0 -38
- package/dist/models/UpdateTimeOffDayRequest.js +0 -50
- package/src/models/ShiftAllocationRequest.ts +0 -74
- package/src/models/ShiftTimeOffRequest.ts +0 -66
- package/src/models/UpdateAllocationDayRequest.ts +0 -89
- package/src/models/UpdateTimeOffDayRequest.ts +0 -73
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Laravel API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
17
|
+
import {
|
|
18
|
+
ScheduleScopeFromJSON,
|
|
19
|
+
ScheduleScopeFromJSONTyped,
|
|
20
|
+
ScheduleScopeToJSON,
|
|
21
|
+
ScheduleScopeToJSONTyped,
|
|
22
|
+
} from './ScheduleScope';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DeleteTimeOffRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface DeleteTimeOffRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ScheduleScope}
|
|
33
|
+
* @memberof DeleteTimeOffRequest
|
|
34
|
+
*/
|
|
35
|
+
scope: ScheduleScope;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof DeleteTimeOffRequest
|
|
40
|
+
*/
|
|
41
|
+
date?: Date;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the DeleteTimeOffRequest interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfDeleteTimeOffRequest(value: object): value is DeleteTimeOffRequest {
|
|
50
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function DeleteTimeOffRequestFromJSON(json: any): DeleteTimeOffRequest {
|
|
55
|
+
return DeleteTimeOffRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function DeleteTimeOffRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTimeOffRequest {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'scope': ScheduleScopeFromJSON(json['scope']),
|
|
65
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function DeleteTimeOffRequestToJSON(json: any): DeleteTimeOffRequest {
|
|
70
|
+
return DeleteTimeOffRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function DeleteTimeOffRequestToJSONTyped(value?: DeleteTimeOffRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'scope': ScheduleScopeToJSON(value['scope']),
|
|
81
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Laravel API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ScheduleScope = {
|
|
21
|
+
This: 'this',
|
|
22
|
+
Future: 'future',
|
|
23
|
+
All: 'all'
|
|
24
|
+
} as const;
|
|
25
|
+
export type ScheduleScope = typeof ScheduleScope[keyof typeof ScheduleScope];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfScheduleScope(value: any): boolean {
|
|
29
|
+
for (const key in ScheduleScope) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(ScheduleScope, key)) {
|
|
31
|
+
if (ScheduleScope[key as keyof typeof ScheduleScope] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ScheduleScopeFromJSON(json: any): ScheduleScope {
|
|
40
|
+
return ScheduleScopeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ScheduleScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleScope {
|
|
44
|
+
return json as ScheduleScope;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ScheduleScopeToJSON(value?: ScheduleScope | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ScheduleScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): ScheduleScope {
|
|
52
|
+
return value as ScheduleScope;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
17
|
+
import {
|
|
18
|
+
ScheduleScopeFromJSON,
|
|
19
|
+
ScheduleScopeFromJSONTyped,
|
|
20
|
+
ScheduleScopeToJSON,
|
|
21
|
+
ScheduleScopeToJSONTyped,
|
|
22
|
+
} from './ScheduleScope';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -61,12 +69,27 @@ export interface UpdateAllocationRequest {
|
|
|
61
69
|
* @memberof UpdateAllocationRequest
|
|
62
70
|
*/
|
|
63
71
|
notes?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {ScheduleScope}
|
|
75
|
+
* @memberof UpdateAllocationRequest
|
|
76
|
+
*/
|
|
77
|
+
scope: ScheduleScope;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof UpdateAllocationRequest
|
|
82
|
+
*/
|
|
83
|
+
date?: Date;
|
|
64
84
|
}
|
|
65
85
|
|
|
86
|
+
|
|
87
|
+
|
|
66
88
|
/**
|
|
67
89
|
* Check if a given object implements the UpdateAllocationRequest interface.
|
|
68
90
|
*/
|
|
69
91
|
export function instanceOfUpdateAllocationRequest(value: object): value is UpdateAllocationRequest {
|
|
92
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
70
93
|
return true;
|
|
71
94
|
}
|
|
72
95
|
|
|
@@ -87,6 +110,8 @@ export function UpdateAllocationRequestFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
87
110
|
'hoursPerDay': json['hours_per_day'] == null ? undefined : json['hours_per_day'],
|
|
88
111
|
'rrule': json['rrule'] == null ? undefined : json['rrule'],
|
|
89
112
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
113
|
+
'scope': ScheduleScopeFromJSON(json['scope']),
|
|
114
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
90
115
|
};
|
|
91
116
|
}
|
|
92
117
|
|
|
@@ -108,6 +133,8 @@ export function UpdateAllocationRequestToJSONTyped(value?: UpdateAllocationReque
|
|
|
108
133
|
'hours_per_day': value['hoursPerDay'],
|
|
109
134
|
'rrule': value['rrule'],
|
|
110
135
|
'notes': value['notes'],
|
|
136
|
+
'scope': ScheduleScopeToJSON(value['scope']),
|
|
137
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
|
|
111
138
|
};
|
|
112
139
|
}
|
|
113
140
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
17
|
+
import {
|
|
18
|
+
ScheduleScopeFromJSON,
|
|
19
|
+
ScheduleScopeFromJSONTyped,
|
|
20
|
+
ScheduleScopeToJSON,
|
|
21
|
+
ScheduleScopeToJSONTyped,
|
|
22
|
+
} from './ScheduleScope';
|
|
16
23
|
import type { TimeOffType } from './TimeOffType';
|
|
17
24
|
import {
|
|
18
25
|
TimeOffTypeFromJSON,
|
|
@@ -63,6 +70,18 @@ export interface UpdateTimeOffRequest {
|
|
|
63
70
|
* @memberof UpdateTimeOffRequest
|
|
64
71
|
*/
|
|
65
72
|
notes?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {ScheduleScope}
|
|
76
|
+
* @memberof UpdateTimeOffRequest
|
|
77
|
+
*/
|
|
78
|
+
scope: ScheduleScope;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof UpdateTimeOffRequest
|
|
83
|
+
*/
|
|
84
|
+
date?: Date;
|
|
66
85
|
}
|
|
67
86
|
|
|
68
87
|
|
|
@@ -71,6 +90,7 @@ export interface UpdateTimeOffRequest {
|
|
|
71
90
|
* Check if a given object implements the UpdateTimeOffRequest interface.
|
|
72
91
|
*/
|
|
73
92
|
export function instanceOfUpdateTimeOffRequest(value: object): value is UpdateTimeOffRequest {
|
|
93
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
74
94
|
return true;
|
|
75
95
|
}
|
|
76
96
|
|
|
@@ -90,6 +110,8 @@ export function UpdateTimeOffRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
90
110
|
'hoursPerDay': json['hours_per_day'] == null ? undefined : json['hours_per_day'],
|
|
91
111
|
'rrule': json['rrule'] == null ? undefined : json['rrule'],
|
|
92
112
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
113
|
+
'scope': ScheduleScopeFromJSON(json['scope']),
|
|
114
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
93
115
|
};
|
|
94
116
|
}
|
|
95
117
|
|
|
@@ -110,6 +132,8 @@ export function UpdateTimeOffRequestToJSONTyped(value?: UpdateTimeOffRequest | n
|
|
|
110
132
|
'hours_per_day': value['hoursPerDay'],
|
|
111
133
|
'rrule': value['rrule'],
|
|
112
134
|
'notes': value['notes'],
|
|
135
|
+
'scope': ScheduleScopeToJSON(value['scope']),
|
|
136
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
|
|
113
137
|
};
|
|
114
138
|
}
|
|
115
139
|
|
package/src/models/index.ts
CHANGED
|
@@ -47,6 +47,8 @@ export * from './CreateTimeEntryRequest';
|
|
|
47
47
|
export * from './CreateTimeOffRequest';
|
|
48
48
|
export * from './CurrentUserResource';
|
|
49
49
|
export * from './CurrentUserResourceArrayResponse';
|
|
50
|
+
export * from './DeleteAllocationRequest';
|
|
51
|
+
export * from './DeleteTimeOffRequest';
|
|
50
52
|
export * from './DetachBudgetEntriesFromProjectJobRequest';
|
|
51
53
|
export * from './DetachBudgetEntriesFromProjectRequest';
|
|
52
54
|
export * from './DetachClickupListsFromProjectRequest';
|
|
@@ -104,6 +106,7 @@ export * from './PublicHolidayResource';
|
|
|
104
106
|
export * from './PublicHolidayResourceArrayResponse';
|
|
105
107
|
export * from './RateSource';
|
|
106
108
|
export * from './ResetPasswordRequest';
|
|
109
|
+
export * from './ScheduleScope';
|
|
107
110
|
export * from './SearchAllAllocationDaysRequest';
|
|
108
111
|
export * from './SearchAllAllocationsRequest';
|
|
109
112
|
export * from './SearchAllBudgetEntriesRequest';
|
|
@@ -130,8 +133,6 @@ export * from './SearchTimeOffRequest';
|
|
|
130
133
|
export * from './SendForgotPasswordLinkRequest';
|
|
131
134
|
export * from './SettingsResource';
|
|
132
135
|
export * from './SettingsResourceArrayResponse';
|
|
133
|
-
export * from './ShiftAllocationRequest';
|
|
134
|
-
export * from './ShiftTimeOffRequest';
|
|
135
136
|
export * from './TaskListResource';
|
|
136
137
|
export * from './TaskListResourceArrayResponse';
|
|
137
138
|
export * from './TaskLiteResource';
|
|
@@ -153,7 +154,6 @@ export * from './TimeOffLiteResourceArrayResponse';
|
|
|
153
154
|
export * from './TimeOffResource';
|
|
154
155
|
export * from './TimeOffResourceArrayResponse';
|
|
155
156
|
export * from './TimeOffType';
|
|
156
|
-
export * from './UpdateAllocationDayRequest';
|
|
157
157
|
export * from './UpdateAllocationRequest';
|
|
158
158
|
export * from './UpdateClientRequest';
|
|
159
159
|
export * from './UpdatePersonRequest';
|
|
@@ -166,7 +166,6 @@ export * from './UpdateProjectTaskRateRequest';
|
|
|
166
166
|
export * from './UpdateSettingsRequest';
|
|
167
167
|
export * from './UpdateTaskRequest';
|
|
168
168
|
export * from './UpdateTimeEntryRequest';
|
|
169
|
-
export * from './UpdateTimeOffDayRequest';
|
|
170
169
|
export * from './UpdateTimeOffRequest';
|
|
171
170
|
export * from './UserAuthTokenResource';
|
|
172
171
|
export * from './UserAuthTokenResourceArrayResponse';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Laravel API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ShiftAllocationRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ShiftAllocationRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ShiftAllocationRequest
|
|
22
|
-
*/
|
|
23
|
-
days: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ShiftAllocationRequest
|
|
28
|
-
*/
|
|
29
|
-
personId?: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ShiftAllocationRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfShiftAllocationRequest(value: object): value is ShiftAllocationRequest;
|
|
35
|
-
export declare function ShiftAllocationRequestFromJSON(json: any): ShiftAllocationRequest;
|
|
36
|
-
export declare function ShiftAllocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShiftAllocationRequest;
|
|
37
|
-
export declare function ShiftAllocationRequestToJSON(json: any): ShiftAllocationRequest;
|
|
38
|
-
export declare function ShiftAllocationRequestToJSONTyped(value?: ShiftAllocationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Laravel API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Check if a given object implements the ShiftAllocationRequest interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfShiftAllocationRequest(value) {
|
|
18
|
-
if (!('days' in value) || value['days'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
export function ShiftAllocationRequestFromJSON(json) {
|
|
23
|
-
return ShiftAllocationRequestFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function ShiftAllocationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'days': json['days'],
|
|
31
|
-
'personId': json['person_id'] == null ? undefined : json['person_id'],
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export function ShiftAllocationRequestToJSON(json) {
|
|
35
|
-
return ShiftAllocationRequestToJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
export function ShiftAllocationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'days': value['days'],
|
|
43
|
-
'person_id': value['personId'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Laravel API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ShiftTimeOffRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ShiftTimeOffRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ShiftTimeOffRequest
|
|
22
|
-
*/
|
|
23
|
-
days: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ShiftTimeOffRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfShiftTimeOffRequest(value: object): value is ShiftTimeOffRequest;
|
|
29
|
-
export declare function ShiftTimeOffRequestFromJSON(json: any): ShiftTimeOffRequest;
|
|
30
|
-
export declare function ShiftTimeOffRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShiftTimeOffRequest;
|
|
31
|
-
export declare function ShiftTimeOffRequestToJSON(json: any): ShiftTimeOffRequest;
|
|
32
|
-
export declare function ShiftTimeOffRequestToJSONTyped(value?: ShiftTimeOffRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Laravel API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Check if a given object implements the ShiftTimeOffRequest interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfShiftTimeOffRequest(value) {
|
|
18
|
-
if (!('days' in value) || value['days'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
export function ShiftTimeOffRequestFromJSON(json) {
|
|
23
|
-
return ShiftTimeOffRequestFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function ShiftTimeOffRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'days': json['days'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function ShiftTimeOffRequestToJSON(json) {
|
|
34
|
-
return ShiftTimeOffRequestToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
export function ShiftTimeOffRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
-
if (value == null) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'days': value['days'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Laravel API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UpdateAllocationDayRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateAllocationDayRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Date}
|
|
21
|
-
* @memberof UpdateAllocationDayRequest
|
|
22
|
-
*/
|
|
23
|
-
date?: Date;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof UpdateAllocationDayRequest
|
|
28
|
-
*/
|
|
29
|
-
personId?: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof UpdateAllocationDayRequest
|
|
34
|
-
*/
|
|
35
|
-
projectId?: number;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof UpdateAllocationDayRequest
|
|
40
|
-
*/
|
|
41
|
-
hours?: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the UpdateAllocationDayRequest interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfUpdateAllocationDayRequest(value: object): value is UpdateAllocationDayRequest;
|
|
47
|
-
export declare function UpdateAllocationDayRequestFromJSON(json: any): UpdateAllocationDayRequest;
|
|
48
|
-
export declare function UpdateAllocationDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAllocationDayRequest;
|
|
49
|
-
export declare function UpdateAllocationDayRequestToJSON(json: any): UpdateAllocationDayRequest;
|
|
50
|
-
export declare function UpdateAllocationDayRequestToJSONTyped(value?: UpdateAllocationDayRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Laravel API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Check if a given object implements the UpdateAllocationDayRequest interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfUpdateAllocationDayRequest(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function UpdateAllocationDayRequestFromJSON(json) {
|
|
21
|
-
return UpdateAllocationDayRequestFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function UpdateAllocationDayRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
29
|
-
'personId': json['person_id'] == null ? undefined : json['person_id'],
|
|
30
|
-
'projectId': json['project_id'] == null ? undefined : json['project_id'],
|
|
31
|
-
'hours': json['hours'] == null ? undefined : json['hours'],
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export function UpdateAllocationDayRequestToJSON(json) {
|
|
35
|
-
return UpdateAllocationDayRequestToJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
export function UpdateAllocationDayRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
|
|
43
|
-
'person_id': value['personId'],
|
|
44
|
-
'project_id': value['projectId'],
|
|
45
|
-
'hours': value['hours'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Laravel API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UpdateTimeOffDayRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateTimeOffDayRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Date}
|
|
21
|
-
* @memberof UpdateTimeOffDayRequest
|
|
22
|
-
*/
|
|
23
|
-
date?: Date;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof UpdateTimeOffDayRequest
|
|
28
|
-
*/
|
|
29
|
-
hours?: number | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the UpdateTimeOffDayRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfUpdateTimeOffDayRequest(value: object): value is UpdateTimeOffDayRequest;
|
|
35
|
-
export declare function UpdateTimeOffDayRequestFromJSON(json: any): UpdateTimeOffDayRequest;
|
|
36
|
-
export declare function UpdateTimeOffDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTimeOffDayRequest;
|
|
37
|
-
export declare function UpdateTimeOffDayRequestToJSON(json: any): UpdateTimeOffDayRequest;
|
|
38
|
-
export declare function UpdateTimeOffDayRequestToJSONTyped(value?: UpdateTimeOffDayRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Laravel API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ShiftAllocationRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ShiftAllocationRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ShiftAllocationRequest
|
|
22
|
-
*/
|
|
23
|
-
days: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ShiftAllocationRequest
|
|
28
|
-
*/
|
|
29
|
-
personId?: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ShiftAllocationRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfShiftAllocationRequest(value: object): value is ShiftAllocationRequest;
|
|
35
|
-
export declare function ShiftAllocationRequestFromJSON(json: any): ShiftAllocationRequest;
|
|
36
|
-
export declare function ShiftAllocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShiftAllocationRequest;
|
|
37
|
-
export declare function ShiftAllocationRequestToJSON(json: any): ShiftAllocationRequest;
|
|
38
|
-
export declare function ShiftAllocationRequestToJSONTyped(value?: ShiftAllocationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Laravel API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfShiftAllocationRequest = instanceOfShiftAllocationRequest;
|
|
17
|
-
exports.ShiftAllocationRequestFromJSON = ShiftAllocationRequestFromJSON;
|
|
18
|
-
exports.ShiftAllocationRequestFromJSONTyped = ShiftAllocationRequestFromJSONTyped;
|
|
19
|
-
exports.ShiftAllocationRequestToJSON = ShiftAllocationRequestToJSON;
|
|
20
|
-
exports.ShiftAllocationRequestToJSONTyped = ShiftAllocationRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ShiftAllocationRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfShiftAllocationRequest(value) {
|
|
25
|
-
if (!('days' in value) || value['days'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function ShiftAllocationRequestFromJSON(json) {
|
|
30
|
-
return ShiftAllocationRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function ShiftAllocationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'days': json['days'],
|
|
38
|
-
'personId': json['person_id'] == null ? undefined : json['person_id'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function ShiftAllocationRequestToJSON(json) {
|
|
42
|
-
return ShiftAllocationRequestToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function ShiftAllocationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'days': value['days'],
|
|
50
|
-
'person_id': value['personId'],
|
|
51
|
-
};
|
|
52
|
-
}
|