@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,44 @@
|
|
|
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
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ScheduleScope = {
|
|
19
|
+
This: 'this',
|
|
20
|
+
Future: 'future',
|
|
21
|
+
All: 'all'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfScheduleScope(value) {
|
|
24
|
+
for (const key in ScheduleScope) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(ScheduleScope, key)) {
|
|
26
|
+
if (ScheduleScope[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function ScheduleScopeFromJSON(json) {
|
|
34
|
+
return ScheduleScopeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ScheduleScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function ScheduleScopeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function ScheduleScopeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -57,6 +58,18 @@ export interface UpdateAllocationRequest {
|
|
|
57
58
|
* @memberof UpdateAllocationRequest
|
|
58
59
|
*/
|
|
59
60
|
notes?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ScheduleScope}
|
|
64
|
+
* @memberof UpdateAllocationRequest
|
|
65
|
+
*/
|
|
66
|
+
scope: ScheduleScope;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof UpdateAllocationRequest
|
|
71
|
+
*/
|
|
72
|
+
date?: Date;
|
|
60
73
|
}
|
|
61
74
|
/**
|
|
62
75
|
* Check if a given object implements the UpdateAllocationRequest interface.
|
|
@@ -11,10 +11,13 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ScheduleScopeFromJSON, ScheduleScopeToJSON, } from './ScheduleScope';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the UpdateAllocationRequest interface.
|
|
16
17
|
*/
|
|
17
18
|
export function instanceOfUpdateAllocationRequest(value) {
|
|
19
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
20
|
+
return false;
|
|
18
21
|
return true;
|
|
19
22
|
}
|
|
20
23
|
export function UpdateAllocationRequestFromJSON(json) {
|
|
@@ -32,6 +35,8 @@ export function UpdateAllocationRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
32
35
|
'hoursPerDay': json['hours_per_day'] == null ? undefined : json['hours_per_day'],
|
|
33
36
|
'rrule': json['rrule'] == null ? undefined : json['rrule'],
|
|
34
37
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
38
|
+
'scope': ScheduleScopeFromJSON(json['scope']),
|
|
39
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
35
40
|
};
|
|
36
41
|
}
|
|
37
42
|
export function UpdateAllocationRequestToJSON(json) {
|
|
@@ -50,5 +55,7 @@ export function UpdateAllocationRequestToJSONTyped(value, ignoreDiscriminator =
|
|
|
50
55
|
'hours_per_day': value['hoursPerDay'],
|
|
51
56
|
'rrule': value['rrule'],
|
|
52
57
|
'notes': value['notes'],
|
|
58
|
+
'scope': ScheduleScopeToJSON(value['scope']),
|
|
59
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
|
|
53
60
|
};
|
|
54
61
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
12
13
|
import type { TimeOffType } from './TimeOffType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -52,6 +53,18 @@ export interface UpdateTimeOffRequest {
|
|
|
52
53
|
* @memberof UpdateTimeOffRequest
|
|
53
54
|
*/
|
|
54
55
|
notes?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ScheduleScope}
|
|
59
|
+
* @memberof UpdateTimeOffRequest
|
|
60
|
+
*/
|
|
61
|
+
scope: ScheduleScope;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof UpdateTimeOffRequest
|
|
66
|
+
*/
|
|
67
|
+
date?: Date;
|
|
55
68
|
}
|
|
56
69
|
/**
|
|
57
70
|
* Check if a given object implements the UpdateTimeOffRequest interface.
|
|
@@ -11,11 +11,14 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ScheduleScopeFromJSON, ScheduleScopeToJSON, } from './ScheduleScope';
|
|
14
15
|
import { TimeOffTypeFromJSON, TimeOffTypeToJSON, } from './TimeOffType';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the UpdateTimeOffRequest interface.
|
|
17
18
|
*/
|
|
18
19
|
export function instanceOfUpdateTimeOffRequest(value) {
|
|
20
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
21
|
+
return false;
|
|
19
22
|
return true;
|
|
20
23
|
}
|
|
21
24
|
export function UpdateTimeOffRequestFromJSON(json) {
|
|
@@ -32,6 +35,8 @@ export function UpdateTimeOffRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
35
|
'hoursPerDay': json['hours_per_day'] == null ? undefined : json['hours_per_day'],
|
|
33
36
|
'rrule': json['rrule'] == null ? undefined : json['rrule'],
|
|
34
37
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
38
|
+
'scope': ScheduleScopeFromJSON(json['scope']),
|
|
39
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
35
40
|
};
|
|
36
41
|
}
|
|
37
42
|
export function UpdateTimeOffRequestToJSON(json) {
|
|
@@ -49,5 +54,7 @@ export function UpdateTimeOffRequestToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
49
54
|
'hours_per_day': value['hoursPerDay'],
|
|
50
55
|
'rrule': value['rrule'],
|
|
51
56
|
'notes': value['notes'],
|
|
57
|
+
'scope': ScheduleScopeToJSON(value['scope']),
|
|
58
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
|
|
52
59
|
};
|
|
53
60
|
}
|
|
@@ -45,6 +45,8 @@ export * from './CreateTimeEntryRequest';
|
|
|
45
45
|
export * from './CreateTimeOffRequest';
|
|
46
46
|
export * from './CurrentUserResource';
|
|
47
47
|
export * from './CurrentUserResourceArrayResponse';
|
|
48
|
+
export * from './DeleteAllocationRequest';
|
|
49
|
+
export * from './DeleteTimeOffRequest';
|
|
48
50
|
export * from './DetachBudgetEntriesFromProjectJobRequest';
|
|
49
51
|
export * from './DetachBudgetEntriesFromProjectRequest';
|
|
50
52
|
export * from './DetachClickupListsFromProjectRequest';
|
|
@@ -102,6 +104,7 @@ export * from './PublicHolidayResource';
|
|
|
102
104
|
export * from './PublicHolidayResourceArrayResponse';
|
|
103
105
|
export * from './RateSource';
|
|
104
106
|
export * from './ResetPasswordRequest';
|
|
107
|
+
export * from './ScheduleScope';
|
|
105
108
|
export * from './SearchAllAllocationDaysRequest';
|
|
106
109
|
export * from './SearchAllAllocationsRequest';
|
|
107
110
|
export * from './SearchAllBudgetEntriesRequest';
|
|
@@ -128,8 +131,6 @@ export * from './SearchTimeOffRequest';
|
|
|
128
131
|
export * from './SendForgotPasswordLinkRequest';
|
|
129
132
|
export * from './SettingsResource';
|
|
130
133
|
export * from './SettingsResourceArrayResponse';
|
|
131
|
-
export * from './ShiftAllocationRequest';
|
|
132
|
-
export * from './ShiftTimeOffRequest';
|
|
133
134
|
export * from './TaskListResource';
|
|
134
135
|
export * from './TaskListResourceArrayResponse';
|
|
135
136
|
export * from './TaskLiteResource';
|
|
@@ -151,7 +152,6 @@ export * from './TimeOffLiteResourceArrayResponse';
|
|
|
151
152
|
export * from './TimeOffResource';
|
|
152
153
|
export * from './TimeOffResourceArrayResponse';
|
|
153
154
|
export * from './TimeOffType';
|
|
154
|
-
export * from './UpdateAllocationDayRequest';
|
|
155
155
|
export * from './UpdateAllocationRequest';
|
|
156
156
|
export * from './UpdateClientRequest';
|
|
157
157
|
export * from './UpdatePersonRequest';
|
|
@@ -164,7 +164,6 @@ export * from './UpdateProjectTaskRateRequest';
|
|
|
164
164
|
export * from './UpdateSettingsRequest';
|
|
165
165
|
export * from './UpdateTaskRequest';
|
|
166
166
|
export * from './UpdateTimeEntryRequest';
|
|
167
|
-
export * from './UpdateTimeOffDayRequest';
|
|
168
167
|
export * from './UpdateTimeOffRequest';
|
|
169
168
|
export * from './UserAuthTokenResource';
|
|
170
169
|
export * from './UserAuthTokenResourceArrayResponse';
|
package/dist/esm/models/index.js
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';
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DeleteAllocationRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface DeleteAllocationRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ScheduleScope}
|
|
22
|
+
* @memberof DeleteAllocationRequest
|
|
23
|
+
*/
|
|
24
|
+
scope: ScheduleScope;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof DeleteAllocationRequest
|
|
29
|
+
*/
|
|
30
|
+
date?: Date;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DeleteAllocationRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDeleteAllocationRequest(value: object): value is DeleteAllocationRequest;
|
|
36
|
+
export declare function DeleteAllocationRequestFromJSON(json: any): DeleteAllocationRequest;
|
|
37
|
+
export declare function DeleteAllocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAllocationRequest;
|
|
38
|
+
export declare function DeleteAllocationRequestToJSON(json: any): DeleteAllocationRequest;
|
|
39
|
+
export declare function DeleteAllocationRequestToJSONTyped(value?: DeleteAllocationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfDeleteAllocationRequest = instanceOfDeleteAllocationRequest;
|
|
17
|
+
exports.DeleteAllocationRequestFromJSON = DeleteAllocationRequestFromJSON;
|
|
18
|
+
exports.DeleteAllocationRequestFromJSONTyped = DeleteAllocationRequestFromJSONTyped;
|
|
19
|
+
exports.DeleteAllocationRequestToJSON = DeleteAllocationRequestToJSON;
|
|
20
|
+
exports.DeleteAllocationRequestToJSONTyped = DeleteAllocationRequestToJSONTyped;
|
|
21
|
+
const ScheduleScope_1 = require("./ScheduleScope");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DeleteAllocationRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDeleteAllocationRequest(value) {
|
|
26
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function DeleteAllocationRequestFromJSON(json) {
|
|
31
|
+
return DeleteAllocationRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function DeleteAllocationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeFromJSON)(json['scope']),
|
|
39
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function DeleteAllocationRequestToJSON(json) {
|
|
43
|
+
return DeleteAllocationRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function DeleteAllocationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeToJSON)(value['scope']),
|
|
51
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DeleteTimeOffRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface DeleteTimeOffRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ScheduleScope}
|
|
22
|
+
* @memberof DeleteTimeOffRequest
|
|
23
|
+
*/
|
|
24
|
+
scope: ScheduleScope;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof DeleteTimeOffRequest
|
|
29
|
+
*/
|
|
30
|
+
date?: Date;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DeleteTimeOffRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDeleteTimeOffRequest(value: object): value is DeleteTimeOffRequest;
|
|
36
|
+
export declare function DeleteTimeOffRequestFromJSON(json: any): DeleteTimeOffRequest;
|
|
37
|
+
export declare function DeleteTimeOffRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTimeOffRequest;
|
|
38
|
+
export declare function DeleteTimeOffRequestToJSON(json: any): DeleteTimeOffRequest;
|
|
39
|
+
export declare function DeleteTimeOffRequestToJSONTyped(value?: DeleteTimeOffRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfDeleteTimeOffRequest = instanceOfDeleteTimeOffRequest;
|
|
17
|
+
exports.DeleteTimeOffRequestFromJSON = DeleteTimeOffRequestFromJSON;
|
|
18
|
+
exports.DeleteTimeOffRequestFromJSONTyped = DeleteTimeOffRequestFromJSONTyped;
|
|
19
|
+
exports.DeleteTimeOffRequestToJSON = DeleteTimeOffRequestToJSON;
|
|
20
|
+
exports.DeleteTimeOffRequestToJSONTyped = DeleteTimeOffRequestToJSONTyped;
|
|
21
|
+
const ScheduleScope_1 = require("./ScheduleScope");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DeleteTimeOffRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDeleteTimeOffRequest(value) {
|
|
26
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function DeleteTimeOffRequestFromJSON(json) {
|
|
31
|
+
return DeleteTimeOffRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function DeleteTimeOffRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeFromJSON)(json['scope']),
|
|
39
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function DeleteTimeOffRequestToJSON(json) {
|
|
43
|
+
return DeleteTimeOffRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function DeleteTimeOffRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeToJSON)(value['scope']),
|
|
51
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const ScheduleScope: {
|
|
17
|
+
readonly This: "this";
|
|
18
|
+
readonly Future: "future";
|
|
19
|
+
readonly All: "all";
|
|
20
|
+
};
|
|
21
|
+
export type ScheduleScope = typeof ScheduleScope[keyof typeof ScheduleScope];
|
|
22
|
+
export declare function instanceOfScheduleScope(value: any): boolean;
|
|
23
|
+
export declare function ScheduleScopeFromJSON(json: any): ScheduleScope;
|
|
24
|
+
export declare function ScheduleScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleScope;
|
|
25
|
+
export declare function ScheduleScopeToJSON(value?: ScheduleScope | null): any;
|
|
26
|
+
export declare function ScheduleScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): ScheduleScope;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.ScheduleScope = void 0;
|
|
17
|
+
exports.instanceOfScheduleScope = instanceOfScheduleScope;
|
|
18
|
+
exports.ScheduleScopeFromJSON = ScheduleScopeFromJSON;
|
|
19
|
+
exports.ScheduleScopeFromJSONTyped = ScheduleScopeFromJSONTyped;
|
|
20
|
+
exports.ScheduleScopeToJSON = ScheduleScopeToJSON;
|
|
21
|
+
exports.ScheduleScopeToJSONTyped = ScheduleScopeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ScheduleScope = {
|
|
27
|
+
This: 'this',
|
|
28
|
+
Future: 'future',
|
|
29
|
+
All: 'all'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfScheduleScope(value) {
|
|
32
|
+
for (const key in exports.ScheduleScope) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ScheduleScope, key)) {
|
|
34
|
+
if (exports.ScheduleScope[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ScheduleScopeFromJSON(json) {
|
|
42
|
+
return ScheduleScopeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ScheduleScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ScheduleScopeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ScheduleScopeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -57,6 +58,18 @@ export interface UpdateAllocationRequest {
|
|
|
57
58
|
* @memberof UpdateAllocationRequest
|
|
58
59
|
*/
|
|
59
60
|
notes?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ScheduleScope}
|
|
64
|
+
* @memberof UpdateAllocationRequest
|
|
65
|
+
*/
|
|
66
|
+
scope: ScheduleScope;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof UpdateAllocationRequest
|
|
71
|
+
*/
|
|
72
|
+
date?: Date;
|
|
60
73
|
}
|
|
61
74
|
/**
|
|
62
75
|
* Check if a given object implements the UpdateAllocationRequest interface.
|
|
@@ -18,10 +18,13 @@ exports.UpdateAllocationRequestFromJSON = UpdateAllocationRequestFromJSON;
|
|
|
18
18
|
exports.UpdateAllocationRequestFromJSONTyped = UpdateAllocationRequestFromJSONTyped;
|
|
19
19
|
exports.UpdateAllocationRequestToJSON = UpdateAllocationRequestToJSON;
|
|
20
20
|
exports.UpdateAllocationRequestToJSONTyped = UpdateAllocationRequestToJSONTyped;
|
|
21
|
+
const ScheduleScope_1 = require("./ScheduleScope");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the UpdateAllocationRequest interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfUpdateAllocationRequest(value) {
|
|
26
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
27
|
+
return false;
|
|
25
28
|
return true;
|
|
26
29
|
}
|
|
27
30
|
function UpdateAllocationRequestFromJSON(json) {
|
|
@@ -39,6 +42,8 @@ function UpdateAllocationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
42
|
'hoursPerDay': json['hours_per_day'] == null ? undefined : json['hours_per_day'],
|
|
40
43
|
'rrule': json['rrule'] == null ? undefined : json['rrule'],
|
|
41
44
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
45
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeFromJSON)(json['scope']),
|
|
46
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
42
47
|
};
|
|
43
48
|
}
|
|
44
49
|
function UpdateAllocationRequestToJSON(json) {
|
|
@@ -57,5 +62,7 @@ function UpdateAllocationRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
57
62
|
'hours_per_day': value['hoursPerDay'],
|
|
58
63
|
'rrule': value['rrule'],
|
|
59
64
|
'notes': value['notes'],
|
|
65
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeToJSON)(value['scope']),
|
|
66
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
|
|
60
67
|
};
|
|
61
68
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ScheduleScope } from './ScheduleScope';
|
|
12
13
|
import type { TimeOffType } from './TimeOffType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -52,6 +53,18 @@ export interface UpdateTimeOffRequest {
|
|
|
52
53
|
* @memberof UpdateTimeOffRequest
|
|
53
54
|
*/
|
|
54
55
|
notes?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ScheduleScope}
|
|
59
|
+
* @memberof UpdateTimeOffRequest
|
|
60
|
+
*/
|
|
61
|
+
scope: ScheduleScope;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof UpdateTimeOffRequest
|
|
66
|
+
*/
|
|
67
|
+
date?: Date;
|
|
55
68
|
}
|
|
56
69
|
/**
|
|
57
70
|
* Check if a given object implements the UpdateTimeOffRequest interface.
|
|
@@ -18,11 +18,14 @@ exports.UpdateTimeOffRequestFromJSON = UpdateTimeOffRequestFromJSON;
|
|
|
18
18
|
exports.UpdateTimeOffRequestFromJSONTyped = UpdateTimeOffRequestFromJSONTyped;
|
|
19
19
|
exports.UpdateTimeOffRequestToJSON = UpdateTimeOffRequestToJSON;
|
|
20
20
|
exports.UpdateTimeOffRequestToJSONTyped = UpdateTimeOffRequestToJSONTyped;
|
|
21
|
+
const ScheduleScope_1 = require("./ScheduleScope");
|
|
21
22
|
const TimeOffType_1 = require("./TimeOffType");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the UpdateTimeOffRequest interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfUpdateTimeOffRequest(value) {
|
|
27
|
+
if (!('scope' in value) || value['scope'] === undefined)
|
|
28
|
+
return false;
|
|
26
29
|
return true;
|
|
27
30
|
}
|
|
28
31
|
function UpdateTimeOffRequestFromJSON(json) {
|
|
@@ -39,6 +42,8 @@ function UpdateTimeOffRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
42
|
'hoursPerDay': json['hours_per_day'] == null ? undefined : json['hours_per_day'],
|
|
40
43
|
'rrule': json['rrule'] == null ? undefined : json['rrule'],
|
|
41
44
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
45
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeFromJSON)(json['scope']),
|
|
46
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
42
47
|
};
|
|
43
48
|
}
|
|
44
49
|
function UpdateTimeOffRequestToJSON(json) {
|
|
@@ -56,5 +61,7 @@ function UpdateTimeOffRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
61
|
'hours_per_day': value['hoursPerDay'],
|
|
57
62
|
'rrule': value['rrule'],
|
|
58
63
|
'notes': value['notes'],
|
|
64
|
+
'scope': (0, ScheduleScope_1.ScheduleScopeToJSON)(value['scope']),
|
|
65
|
+
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
|
|
59
66
|
};
|
|
60
67
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export * from './CreateTimeEntryRequest';
|
|
|
45
45
|
export * from './CreateTimeOffRequest';
|
|
46
46
|
export * from './CurrentUserResource';
|
|
47
47
|
export * from './CurrentUserResourceArrayResponse';
|
|
48
|
+
export * from './DeleteAllocationRequest';
|
|
49
|
+
export * from './DeleteTimeOffRequest';
|
|
48
50
|
export * from './DetachBudgetEntriesFromProjectJobRequest';
|
|
49
51
|
export * from './DetachBudgetEntriesFromProjectRequest';
|
|
50
52
|
export * from './DetachClickupListsFromProjectRequest';
|
|
@@ -102,6 +104,7 @@ export * from './PublicHolidayResource';
|
|
|
102
104
|
export * from './PublicHolidayResourceArrayResponse';
|
|
103
105
|
export * from './RateSource';
|
|
104
106
|
export * from './ResetPasswordRequest';
|
|
107
|
+
export * from './ScheduleScope';
|
|
105
108
|
export * from './SearchAllAllocationDaysRequest';
|
|
106
109
|
export * from './SearchAllAllocationsRequest';
|
|
107
110
|
export * from './SearchAllBudgetEntriesRequest';
|
|
@@ -128,8 +131,6 @@ export * from './SearchTimeOffRequest';
|
|
|
128
131
|
export * from './SendForgotPasswordLinkRequest';
|
|
129
132
|
export * from './SettingsResource';
|
|
130
133
|
export * from './SettingsResourceArrayResponse';
|
|
131
|
-
export * from './ShiftAllocationRequest';
|
|
132
|
-
export * from './ShiftTimeOffRequest';
|
|
133
134
|
export * from './TaskListResource';
|
|
134
135
|
export * from './TaskListResourceArrayResponse';
|
|
135
136
|
export * from './TaskLiteResource';
|
|
@@ -151,7 +152,6 @@ export * from './TimeOffLiteResourceArrayResponse';
|
|
|
151
152
|
export * from './TimeOffResource';
|
|
152
153
|
export * from './TimeOffResourceArrayResponse';
|
|
153
154
|
export * from './TimeOffType';
|
|
154
|
-
export * from './UpdateAllocationDayRequest';
|
|
155
155
|
export * from './UpdateAllocationRequest';
|
|
156
156
|
export * from './UpdateClientRequest';
|
|
157
157
|
export * from './UpdatePersonRequest';
|
|
@@ -164,7 +164,6 @@ export * from './UpdateProjectTaskRateRequest';
|
|
|
164
164
|
export * from './UpdateSettingsRequest';
|
|
165
165
|
export * from './UpdateTaskRequest';
|
|
166
166
|
export * from './UpdateTimeEntryRequest';
|
|
167
|
-
export * from './UpdateTimeOffDayRequest';
|
|
168
167
|
export * from './UpdateTimeOffRequest';
|
|
169
168
|
export * from './UserAuthTokenResource';
|
|
170
169
|
export * from './UserAuthTokenResourceArrayResponse';
|