@digital8/task-dashboard-ts-sdk 0.0.6 → 0.0.7

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/task-dashboard-ts-sdk@0.0.6
1
+ ## @digital8/task-dashboard-ts-sdk@0.0.7
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/task-dashboard-ts-sdk@0.0.6 --save
39
+ npm install @digital8/task-dashboard-ts-sdk@0.0.7 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ProjectLiteResource } from './ProjectLiteResource';
13
+ import type { AllocationLiteResource } from './AllocationLiteResource';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -51,6 +53,18 @@ export interface AllocationDayResource {
51
53
  * @memberof AllocationDayResource
52
54
  */
53
55
  hours: number;
56
+ /**
57
+ *
58
+ * @type {ProjectLiteResource}
59
+ * @memberof AllocationDayResource
60
+ */
61
+ project: ProjectLiteResource;
62
+ /**
63
+ *
64
+ * @type {AllocationLiteResource}
65
+ * @memberof AllocationDayResource
66
+ */
67
+ allocation: AllocationLiteResource;
54
68
  }
55
69
  /**
56
70
  * Check if a given object implements the AllocationDayResource interface.
@@ -11,6 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ProjectLiteResourceFromJSON, ProjectLiteResourceToJSON, } from './ProjectLiteResource';
15
+ import { AllocationLiteResourceFromJSON, AllocationLiteResourceToJSON, } from './AllocationLiteResource';
14
16
  /**
15
17
  * Check if a given object implements the AllocationDayResource interface.
16
18
  */
@@ -27,6 +29,10 @@ export function instanceOfAllocationDayResource(value) {
27
29
  return false;
28
30
  if (!('hours' in value) || value['hours'] === undefined)
29
31
  return false;
32
+ if (!('project' in value) || value['project'] === undefined)
33
+ return false;
34
+ if (!('allocation' in value) || value['allocation'] === undefined)
35
+ return false;
30
36
  return true;
31
37
  }
32
38
  export function AllocationDayResourceFromJSON(json) {
@@ -43,6 +49,8 @@ export function AllocationDayResourceFromJSONTyped(json, ignoreDiscriminator) {
43
49
  'projectId': json['projectId'],
44
50
  'date': (new Date(json['date'])),
45
51
  'hours': json['hours'],
52
+ 'project': ProjectLiteResourceFromJSON(json['project']),
53
+ 'allocation': AllocationLiteResourceFromJSON(json['allocation']),
46
54
  };
47
55
  }
48
56
  export function AllocationDayResourceToJSON(json) {
@@ -59,5 +67,7 @@ export function AllocationDayResourceToJSONTyped(value, ignoreDiscriminator = fa
59
67
  'projectId': value['projectId'],
60
68
  'date': ((value['date']).toISOString()),
61
69
  'hours': value['hours'],
70
+ 'project': ProjectLiteResourceToJSON(value['project']),
71
+ 'allocation': AllocationLiteResourceToJSON(value['allocation']),
62
72
  };
63
73
  }
@@ -51,6 +51,12 @@ export interface AllocationLiteResource {
51
51
  * @memberof AllocationLiteResource
52
52
  */
53
53
  rrule: string | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof AllocationLiteResource
58
+ */
59
+ isDeleted: boolean;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the AllocationLiteResource interface.
@@ -27,6 +27,8 @@ export function instanceOfAllocationLiteResource(value) {
27
27
  return false;
28
28
  if (!('rrule' in value) || value['rrule'] === undefined)
29
29
  return false;
30
+ if (!('isDeleted' in value) || value['isDeleted'] === undefined)
31
+ return false;
30
32
  return true;
31
33
  }
32
34
  export function AllocationLiteResourceFromJSON(json) {
@@ -43,6 +45,7 @@ export function AllocationLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
43
45
  'startsOn': (new Date(json['startsOn'])),
44
46
  'endsOn': (json['endsOn'] == null ? null : new Date(json['endsOn'])),
45
47
  'rrule': json['rrule'],
48
+ 'isDeleted': json['isDeleted'],
46
49
  };
47
50
  }
48
51
  export function AllocationLiteResourceToJSON(json) {
@@ -59,5 +62,6 @@ export function AllocationLiteResourceToJSONTyped(value, ignoreDiscriminator = f
59
62
  'startsOn': ((value['startsOn']).toISOString()),
60
63
  'endsOn': (value['endsOn'].toISOString()),
61
64
  'rrule': value['rrule'],
65
+ 'isDeleted': value['isDeleted'],
62
66
  };
63
67
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TimeOffLiteResource } from './TimeOffLiteResource';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,12 @@ export interface TimeOffDayResource {
45
46
  * @memberof TimeOffDayResource
46
47
  */
47
48
  hours: number | null;
49
+ /**
50
+ *
51
+ * @type {TimeOffLiteResource}
52
+ * @memberof TimeOffDayResource
53
+ */
54
+ timeOff: TimeOffLiteResource;
48
55
  }
49
56
  /**
50
57
  * Check if a given object implements the TimeOffDayResource interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { TimeOffLiteResourceFromJSON, TimeOffLiteResourceToJSON, } from './TimeOffLiteResource';
14
15
  /**
15
16
  * Check if a given object implements the TimeOffDayResource interface.
16
17
  */
@@ -25,6 +26,8 @@ export function instanceOfTimeOffDayResource(value) {
25
26
  return false;
26
27
  if (!('hours' in value) || value['hours'] === undefined)
27
28
  return false;
29
+ if (!('timeOff' in value) || value['timeOff'] === undefined)
30
+ return false;
28
31
  return true;
29
32
  }
30
33
  export function TimeOffDayResourceFromJSON(json) {
@@ -40,6 +43,7 @@ export function TimeOffDayResourceFromJSONTyped(json, ignoreDiscriminator) {
40
43
  'personId': json['personId'],
41
44
  'date': (new Date(json['date'])),
42
45
  'hours': json['hours'],
46
+ 'timeOff': TimeOffLiteResourceFromJSON(json['timeOff']),
43
47
  };
44
48
  }
45
49
  export function TimeOffDayResourceToJSON(json) {
@@ -55,5 +59,6 @@ export function TimeOffDayResourceToJSONTyped(value, ignoreDiscriminator = false
55
59
  'personId': value['personId'],
56
60
  'date': ((value['date']).toISOString()),
57
61
  'hours': value['hours'],
62
+ 'timeOff': TimeOffLiteResourceToJSON(value['timeOff']),
58
63
  };
59
64
  }
@@ -58,6 +58,12 @@ export interface TimeOffLiteResource {
58
58
  * @memberof TimeOffLiteResource
59
59
  */
60
60
  rrule: string | null;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof TimeOffLiteResource
65
+ */
66
+ isDeleted: boolean;
61
67
  }
62
68
  /**
63
69
  * Check if a given object implements the TimeOffLiteResource interface.
@@ -30,6 +30,8 @@ export function instanceOfTimeOffLiteResource(value) {
30
30
  return false;
31
31
  if (!('rrule' in value) || value['rrule'] === undefined)
32
32
  return false;
33
+ if (!('isDeleted' in value) || value['isDeleted'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  export function TimeOffLiteResourceFromJSON(json) {
@@ -47,6 +49,7 @@ export function TimeOffLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
47
49
  'endsOn': (json['endsOn'] == null ? null : new Date(json['endsOn'])),
48
50
  'hoursPerDay': json['hoursPerDay'],
49
51
  'rrule': json['rrule'],
52
+ 'isDeleted': json['isDeleted'],
50
53
  };
51
54
  }
52
55
  export function TimeOffLiteResourceToJSON(json) {
@@ -64,5 +67,6 @@ export function TimeOffLiteResourceToJSONTyped(value, ignoreDiscriminator = fals
64
67
  'endsOn': (value['endsOn'].toISOString()),
65
68
  'hoursPerDay': value['hoursPerDay'],
66
69
  'rrule': value['rrule'],
70
+ 'isDeleted': value['isDeleted'],
67
71
  };
68
72
  }
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ProjectLiteResource } from './ProjectLiteResource';
13
+ import type { AllocationLiteResource } from './AllocationLiteResource';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -51,6 +53,18 @@ export interface AllocationDayResource {
51
53
  * @memberof AllocationDayResource
52
54
  */
53
55
  hours: number;
56
+ /**
57
+ *
58
+ * @type {ProjectLiteResource}
59
+ * @memberof AllocationDayResource
60
+ */
61
+ project: ProjectLiteResource;
62
+ /**
63
+ *
64
+ * @type {AllocationLiteResource}
65
+ * @memberof AllocationDayResource
66
+ */
67
+ allocation: AllocationLiteResource;
54
68
  }
55
69
  /**
56
70
  * Check if a given object implements the AllocationDayResource interface.
@@ -18,6 +18,8 @@ exports.AllocationDayResourceFromJSON = AllocationDayResourceFromJSON;
18
18
  exports.AllocationDayResourceFromJSONTyped = AllocationDayResourceFromJSONTyped;
19
19
  exports.AllocationDayResourceToJSON = AllocationDayResourceToJSON;
20
20
  exports.AllocationDayResourceToJSONTyped = AllocationDayResourceToJSONTyped;
21
+ const ProjectLiteResource_1 = require("./ProjectLiteResource");
22
+ const AllocationLiteResource_1 = require("./AllocationLiteResource");
21
23
  /**
22
24
  * Check if a given object implements the AllocationDayResource interface.
23
25
  */
@@ -34,6 +36,10 @@ function instanceOfAllocationDayResource(value) {
34
36
  return false;
35
37
  if (!('hours' in value) || value['hours'] === undefined)
36
38
  return false;
39
+ if (!('project' in value) || value['project'] === undefined)
40
+ return false;
41
+ if (!('allocation' in value) || value['allocation'] === undefined)
42
+ return false;
37
43
  return true;
38
44
  }
39
45
  function AllocationDayResourceFromJSON(json) {
@@ -50,6 +56,8 @@ function AllocationDayResourceFromJSONTyped(json, ignoreDiscriminator) {
50
56
  'projectId': json['projectId'],
51
57
  'date': (new Date(json['date'])),
52
58
  'hours': json['hours'],
59
+ 'project': (0, ProjectLiteResource_1.ProjectLiteResourceFromJSON)(json['project']),
60
+ 'allocation': (0, AllocationLiteResource_1.AllocationLiteResourceFromJSON)(json['allocation']),
53
61
  };
54
62
  }
55
63
  function AllocationDayResourceToJSON(json) {
@@ -66,5 +74,7 @@ function AllocationDayResourceToJSONTyped(value, ignoreDiscriminator = false) {
66
74
  'projectId': value['projectId'],
67
75
  'date': ((value['date']).toISOString()),
68
76
  'hours': value['hours'],
77
+ 'project': (0, ProjectLiteResource_1.ProjectLiteResourceToJSON)(value['project']),
78
+ 'allocation': (0, AllocationLiteResource_1.AllocationLiteResourceToJSON)(value['allocation']),
69
79
  };
70
80
  }
@@ -51,6 +51,12 @@ export interface AllocationLiteResource {
51
51
  * @memberof AllocationLiteResource
52
52
  */
53
53
  rrule: string | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof AllocationLiteResource
58
+ */
59
+ isDeleted: boolean;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the AllocationLiteResource interface.
@@ -34,6 +34,8 @@ function instanceOfAllocationLiteResource(value) {
34
34
  return false;
35
35
  if (!('rrule' in value) || value['rrule'] === undefined)
36
36
  return false;
37
+ if (!('isDeleted' in value) || value['isDeleted'] === undefined)
38
+ return false;
37
39
  return true;
38
40
  }
39
41
  function AllocationLiteResourceFromJSON(json) {
@@ -50,6 +52,7 @@ function AllocationLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'startsOn': (new Date(json['startsOn'])),
51
53
  'endsOn': (json['endsOn'] == null ? null : new Date(json['endsOn'])),
52
54
  'rrule': json['rrule'],
55
+ 'isDeleted': json['isDeleted'],
53
56
  };
54
57
  }
55
58
  function AllocationLiteResourceToJSON(json) {
@@ -66,5 +69,6 @@ function AllocationLiteResourceToJSONTyped(value, ignoreDiscriminator = false) {
66
69
  'startsOn': ((value['startsOn']).toISOString()),
67
70
  'endsOn': (value['endsOn'].toISOString()),
68
71
  'rrule': value['rrule'],
72
+ 'isDeleted': value['isDeleted'],
69
73
  };
70
74
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TimeOffLiteResource } from './TimeOffLiteResource';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,12 @@ export interface TimeOffDayResource {
45
46
  * @memberof TimeOffDayResource
46
47
  */
47
48
  hours: number | null;
49
+ /**
50
+ *
51
+ * @type {TimeOffLiteResource}
52
+ * @memberof TimeOffDayResource
53
+ */
54
+ timeOff: TimeOffLiteResource;
48
55
  }
49
56
  /**
50
57
  * Check if a given object implements the TimeOffDayResource interface.
@@ -18,6 +18,7 @@ exports.TimeOffDayResourceFromJSON = TimeOffDayResourceFromJSON;
18
18
  exports.TimeOffDayResourceFromJSONTyped = TimeOffDayResourceFromJSONTyped;
19
19
  exports.TimeOffDayResourceToJSON = TimeOffDayResourceToJSON;
20
20
  exports.TimeOffDayResourceToJSONTyped = TimeOffDayResourceToJSONTyped;
21
+ const TimeOffLiteResource_1 = require("./TimeOffLiteResource");
21
22
  /**
22
23
  * Check if a given object implements the TimeOffDayResource interface.
23
24
  */
@@ -32,6 +33,8 @@ function instanceOfTimeOffDayResource(value) {
32
33
  return false;
33
34
  if (!('hours' in value) || value['hours'] === undefined)
34
35
  return false;
36
+ if (!('timeOff' in value) || value['timeOff'] === undefined)
37
+ return false;
35
38
  return true;
36
39
  }
37
40
  function TimeOffDayResourceFromJSON(json) {
@@ -47,6 +50,7 @@ function TimeOffDayResourceFromJSONTyped(json, ignoreDiscriminator) {
47
50
  'personId': json['personId'],
48
51
  'date': (new Date(json['date'])),
49
52
  'hours': json['hours'],
53
+ 'timeOff': (0, TimeOffLiteResource_1.TimeOffLiteResourceFromJSON)(json['timeOff']),
50
54
  };
51
55
  }
52
56
  function TimeOffDayResourceToJSON(json) {
@@ -62,5 +66,6 @@ function TimeOffDayResourceToJSONTyped(value, ignoreDiscriminator = false) {
62
66
  'personId': value['personId'],
63
67
  'date': ((value['date']).toISOString()),
64
68
  'hours': value['hours'],
69
+ 'timeOff': (0, TimeOffLiteResource_1.TimeOffLiteResourceToJSON)(value['timeOff']),
65
70
  };
66
71
  }
@@ -58,6 +58,12 @@ export interface TimeOffLiteResource {
58
58
  * @memberof TimeOffLiteResource
59
59
  */
60
60
  rrule: string | null;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof TimeOffLiteResource
65
+ */
66
+ isDeleted: boolean;
61
67
  }
62
68
  /**
63
69
  * Check if a given object implements the TimeOffLiteResource interface.
@@ -37,6 +37,8 @@ function instanceOfTimeOffLiteResource(value) {
37
37
  return false;
38
38
  if (!('rrule' in value) || value['rrule'] === undefined)
39
39
  return false;
40
+ if (!('isDeleted' in value) || value['isDeleted'] === undefined)
41
+ return false;
40
42
  return true;
41
43
  }
42
44
  function TimeOffLiteResourceFromJSON(json) {
@@ -54,6 +56,7 @@ function TimeOffLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
54
56
  'endsOn': (json['endsOn'] == null ? null : new Date(json['endsOn'])),
55
57
  'hoursPerDay': json['hoursPerDay'],
56
58
  'rrule': json['rrule'],
59
+ 'isDeleted': json['isDeleted'],
57
60
  };
58
61
  }
59
62
  function TimeOffLiteResourceToJSON(json) {
@@ -71,5 +74,6 @@ function TimeOffLiteResourceToJSONTyped(value, ignoreDiscriminator = false) {
71
74
  'endsOn': (value['endsOn'].toISOString()),
72
75
  'hoursPerDay': value['hoursPerDay'],
73
76
  'rrule': value['rrule'],
77
+ 'isDeleted': value['isDeleted'],
74
78
  };
75
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/task-dashboard-ts-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "OpenAPI client for @digital8/task-dashboard-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ProjectLiteResource } from './ProjectLiteResource';
17
+ import {
18
+ ProjectLiteResourceFromJSON,
19
+ ProjectLiteResourceFromJSONTyped,
20
+ ProjectLiteResourceToJSON,
21
+ ProjectLiteResourceToJSONTyped,
22
+ } from './ProjectLiteResource';
23
+ import type { AllocationLiteResource } from './AllocationLiteResource';
24
+ import {
25
+ AllocationLiteResourceFromJSON,
26
+ AllocationLiteResourceFromJSONTyped,
27
+ AllocationLiteResourceToJSON,
28
+ AllocationLiteResourceToJSONTyped,
29
+ } from './AllocationLiteResource';
30
+
16
31
  /**
17
32
  *
18
33
  * @export
@@ -55,6 +70,18 @@ export interface AllocationDayResource {
55
70
  * @memberof AllocationDayResource
56
71
  */
57
72
  hours: number;
73
+ /**
74
+ *
75
+ * @type {ProjectLiteResource}
76
+ * @memberof AllocationDayResource
77
+ */
78
+ project: ProjectLiteResource;
79
+ /**
80
+ *
81
+ * @type {AllocationLiteResource}
82
+ * @memberof AllocationDayResource
83
+ */
84
+ allocation: AllocationLiteResource;
58
85
  }
59
86
 
60
87
  /**
@@ -67,6 +94,8 @@ export function instanceOfAllocationDayResource(value: object): value is Allocat
67
94
  if (!('projectId' in value) || value['projectId'] === undefined) return false;
68
95
  if (!('date' in value) || value['date'] === undefined) return false;
69
96
  if (!('hours' in value) || value['hours'] === undefined) return false;
97
+ if (!('project' in value) || value['project'] === undefined) return false;
98
+ if (!('allocation' in value) || value['allocation'] === undefined) return false;
70
99
  return true;
71
100
  }
72
101
 
@@ -86,6 +115,8 @@ export function AllocationDayResourceFromJSONTyped(json: any, ignoreDiscriminato
86
115
  'projectId': json['projectId'],
87
116
  'date': (new Date(json['date'])),
88
117
  'hours': json['hours'],
118
+ 'project': ProjectLiteResourceFromJSON(json['project']),
119
+ 'allocation': AllocationLiteResourceFromJSON(json['allocation']),
89
120
  };
90
121
  }
91
122
 
@@ -106,6 +137,8 @@ export function AllocationDayResourceToJSONTyped(value?: AllocationDayResource |
106
137
  'projectId': value['projectId'],
107
138
  'date': ((value['date']).toISOString()),
108
139
  'hours': value['hours'],
140
+ 'project': ProjectLiteResourceToJSON(value['project']),
141
+ 'allocation': AllocationLiteResourceToJSON(value['allocation']),
109
142
  };
110
143
  }
111
144
 
@@ -55,6 +55,12 @@ export interface AllocationLiteResource {
55
55
  * @memberof AllocationLiteResource
56
56
  */
57
57
  rrule: string | null;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof AllocationLiteResource
62
+ */
63
+ isDeleted: boolean;
58
64
  }
59
65
 
60
66
  /**
@@ -67,6 +73,7 @@ export function instanceOfAllocationLiteResource(value: object): value is Alloca
67
73
  if (!('startsOn' in value) || value['startsOn'] === undefined) return false;
68
74
  if (!('endsOn' in value) || value['endsOn'] === undefined) return false;
69
75
  if (!('rrule' in value) || value['rrule'] === undefined) return false;
76
+ if (!('isDeleted' in value) || value['isDeleted'] === undefined) return false;
70
77
  return true;
71
78
  }
72
79
 
@@ -86,6 +93,7 @@ export function AllocationLiteResourceFromJSONTyped(json: any, ignoreDiscriminat
86
93
  'startsOn': (new Date(json['startsOn'])),
87
94
  'endsOn': (json['endsOn'] == null ? null : new Date(json['endsOn'])),
88
95
  'rrule': json['rrule'],
96
+ 'isDeleted': json['isDeleted'],
89
97
  };
90
98
  }
91
99
 
@@ -106,6 +114,7 @@ export function AllocationLiteResourceToJSONTyped(value?: AllocationLiteResource
106
114
  'startsOn': ((value['startsOn']).toISOString()),
107
115
  'endsOn': ((value['endsOn'] as any).toISOString()),
108
116
  'rrule': value['rrule'],
117
+ 'isDeleted': value['isDeleted'],
109
118
  };
110
119
  }
111
120
 
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TimeOffLiteResource } from './TimeOffLiteResource';
17
+ import {
18
+ TimeOffLiteResourceFromJSON,
19
+ TimeOffLiteResourceFromJSONTyped,
20
+ TimeOffLiteResourceToJSON,
21
+ TimeOffLiteResourceToJSONTyped,
22
+ } from './TimeOffLiteResource';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -49,6 +57,12 @@ export interface TimeOffDayResource {
49
57
  * @memberof TimeOffDayResource
50
58
  */
51
59
  hours: number | null;
60
+ /**
61
+ *
62
+ * @type {TimeOffLiteResource}
63
+ * @memberof TimeOffDayResource
64
+ */
65
+ timeOff: TimeOffLiteResource;
52
66
  }
53
67
 
54
68
  /**
@@ -60,6 +74,7 @@ export function instanceOfTimeOffDayResource(value: object): value is TimeOffDay
60
74
  if (!('personId' in value) || value['personId'] === undefined) return false;
61
75
  if (!('date' in value) || value['date'] === undefined) return false;
62
76
  if (!('hours' in value) || value['hours'] === undefined) return false;
77
+ if (!('timeOff' in value) || value['timeOff'] === undefined) return false;
63
78
  return true;
64
79
  }
65
80
 
@@ -78,6 +93,7 @@ export function TimeOffDayResourceFromJSONTyped(json: any, ignoreDiscriminator:
78
93
  'personId': json['personId'],
79
94
  'date': (new Date(json['date'])),
80
95
  'hours': json['hours'],
96
+ 'timeOff': TimeOffLiteResourceFromJSON(json['timeOff']),
81
97
  };
82
98
  }
83
99
 
@@ -97,6 +113,7 @@ export function TimeOffDayResourceToJSONTyped(value?: TimeOffDayResource | null,
97
113
  'personId': value['personId'],
98
114
  'date': ((value['date']).toISOString()),
99
115
  'hours': value['hours'],
116
+ 'timeOff': TimeOffLiteResourceToJSON(value['timeOff']),
100
117
  };
101
118
  }
102
119
 
@@ -69,6 +69,12 @@ export interface TimeOffLiteResource {
69
69
  * @memberof TimeOffLiteResource
70
70
  */
71
71
  rrule: string | null;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof TimeOffLiteResource
76
+ */
77
+ isDeleted: boolean;
72
78
  }
73
79
 
74
80
 
@@ -84,6 +90,7 @@ export function instanceOfTimeOffLiteResource(value: object): value is TimeOffLi
84
90
  if (!('endsOn' in value) || value['endsOn'] === undefined) return false;
85
91
  if (!('hoursPerDay' in value) || value['hoursPerDay'] === undefined) return false;
86
92
  if (!('rrule' in value) || value['rrule'] === undefined) return false;
93
+ if (!('isDeleted' in value) || value['isDeleted'] === undefined) return false;
87
94
  return true;
88
95
  }
89
96
 
@@ -104,6 +111,7 @@ export function TimeOffLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
104
111
  'endsOn': (json['endsOn'] == null ? null : new Date(json['endsOn'])),
105
112
  'hoursPerDay': json['hoursPerDay'],
106
113
  'rrule': json['rrule'],
114
+ 'isDeleted': json['isDeleted'],
107
115
  };
108
116
  }
109
117
 
@@ -125,6 +133,7 @@ export function TimeOffLiteResourceToJSONTyped(value?: TimeOffLiteResource | nul
125
133
  'endsOn': ((value['endsOn'] as any).toISOString()),
126
134
  'hoursPerDay': value['hoursPerDay'],
127
135
  'rrule': value['rrule'],
136
+ 'isDeleted': value['isDeleted'],
128
137
  };
129
138
  }
130
139