@digital8/task-dashboard-ts-sdk 0.0.8 → 0.0.10

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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +3 -4
  2. package/README.md +2 -2
  3. package/dist/apis/AllocationDaysApi.d.ts +1 -24
  4. package/dist/apis/AllocationDaysApi.js +0 -76
  5. package/dist/apis/AllocationsApi.d.ts +2 -13
  6. package/dist/apis/AllocationsApi.js +2 -39
  7. package/dist/apis/TimeOffApi.d.ts +2 -13
  8. package/dist/apis/TimeOffApi.js +2 -39
  9. package/dist/apis/TimeOffDaysApi.d.ts +1 -24
  10. package/dist/apis/TimeOffDaysApi.js +0 -76
  11. package/dist/esm/apis/AllocationDaysApi.d.ts +1 -24
  12. package/dist/esm/apis/AllocationDaysApi.js +1 -77
  13. package/dist/esm/apis/AllocationsApi.d.ts +2 -13
  14. package/dist/esm/apis/AllocationsApi.js +3 -40
  15. package/dist/esm/apis/TimeOffApi.d.ts +2 -13
  16. package/dist/esm/apis/TimeOffApi.js +3 -40
  17. package/dist/esm/apis/TimeOffDaysApi.d.ts +1 -24
  18. package/dist/esm/apis/TimeOffDaysApi.js +1 -77
  19. package/dist/esm/models/DeleteAllocationRequest.d.ts +39 -0
  20. package/dist/esm/models/{UpdateTimeOffDayRequest.js → DeleteAllocationRequest.js} +13 -10
  21. package/dist/esm/models/DeleteTimeOffRequest.d.ts +39 -0
  22. package/dist/esm/models/DeleteTimeOffRequest.js +46 -0
  23. package/dist/esm/models/ScheduleScope.d.ts +26 -0
  24. package/dist/esm/models/ScheduleScope.js +44 -0
  25. package/dist/esm/models/UpdateAllocationRequest.d.ts +13 -0
  26. package/dist/esm/models/UpdateAllocationRequest.js +7 -0
  27. package/dist/esm/models/UpdateTimeOffRequest.d.ts +13 -0
  28. package/dist/esm/models/UpdateTimeOffRequest.js +7 -0
  29. package/dist/esm/models/index.d.ts +3 -4
  30. package/dist/esm/models/index.js +3 -4
  31. package/dist/models/DeleteAllocationRequest.d.ts +39 -0
  32. package/dist/models/DeleteAllocationRequest.js +53 -0
  33. package/dist/models/DeleteTimeOffRequest.d.ts +39 -0
  34. package/dist/models/DeleteTimeOffRequest.js +53 -0
  35. package/dist/models/ScheduleScope.d.ts +26 -0
  36. package/dist/models/ScheduleScope.js +52 -0
  37. package/dist/models/UpdateAllocationRequest.d.ts +13 -0
  38. package/dist/models/UpdateAllocationRequest.js +7 -0
  39. package/dist/models/UpdateTimeOffRequest.d.ts +13 -0
  40. package/dist/models/UpdateTimeOffRequest.js +7 -0
  41. package/dist/models/index.d.ts +3 -4
  42. package/dist/models/index.js +3 -4
  43. package/package.json +1 -1
  44. package/src/apis/AllocationDaysApi.ts +0 -111
  45. package/src/apis/AllocationsApi.ts +7 -56
  46. package/src/apis/TimeOffApi.ts +7 -56
  47. package/src/apis/TimeOffDaysApi.ts +0 -111
  48. package/src/models/DeleteAllocationRequest.ts +84 -0
  49. package/src/models/DeleteTimeOffRequest.ts +84 -0
  50. package/src/models/ScheduleScope.ts +54 -0
  51. package/src/models/UpdateAllocationRequest.ts +27 -0
  52. package/src/models/UpdateTimeOffRequest.ts +24 -0
  53. package/src/models/index.ts +3 -4
  54. package/dist/esm/models/ShiftAllocationRequest.d.ts +0 -38
  55. package/dist/esm/models/ShiftAllocationRequest.js +0 -45
  56. package/dist/esm/models/ShiftTimeOffRequest.d.ts +0 -32
  57. package/dist/esm/models/ShiftTimeOffRequest.js +0 -43
  58. package/dist/esm/models/UpdateAllocationDayRequest.d.ts +0 -50
  59. package/dist/esm/models/UpdateAllocationDayRequest.js +0 -47
  60. package/dist/esm/models/UpdateTimeOffDayRequest.d.ts +0 -38
  61. package/dist/models/ShiftAllocationRequest.d.ts +0 -38
  62. package/dist/models/ShiftAllocationRequest.js +0 -52
  63. package/dist/models/ShiftTimeOffRequest.d.ts +0 -32
  64. package/dist/models/ShiftTimeOffRequest.js +0 -50
  65. package/dist/models/UpdateAllocationDayRequest.d.ts +0 -50
  66. package/dist/models/UpdateAllocationDayRequest.js +0 -54
  67. package/dist/models/UpdateTimeOffDayRequest.d.ts +0 -38
  68. package/dist/models/UpdateTimeOffDayRequest.js +0 -50
  69. package/src/models/ShiftAllocationRequest.ts +0 -74
  70. package/src/models/ShiftTimeOffRequest.ts +0 -66
  71. package/src/models/UpdateAllocationDayRequest.ts +0 -89
  72. package/src/models/UpdateTimeOffDayRequest.ts +0 -73
@@ -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,50 +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.instanceOfShiftTimeOffRequest = instanceOfShiftTimeOffRequest;
17
- exports.ShiftTimeOffRequestFromJSON = ShiftTimeOffRequestFromJSON;
18
- exports.ShiftTimeOffRequestFromJSONTyped = ShiftTimeOffRequestFromJSONTyped;
19
- exports.ShiftTimeOffRequestToJSON = ShiftTimeOffRequestToJSON;
20
- exports.ShiftTimeOffRequestToJSONTyped = ShiftTimeOffRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the ShiftTimeOffRequest interface.
23
- */
24
- function instanceOfShiftTimeOffRequest(value) {
25
- if (!('days' in value) || value['days'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function ShiftTimeOffRequestFromJSON(json) {
30
- return ShiftTimeOffRequestFromJSONTyped(json, false);
31
- }
32
- function ShiftTimeOffRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'days': json['days'],
38
- };
39
- }
40
- function ShiftTimeOffRequestToJSON(json) {
41
- return ShiftTimeOffRequestToJSONTyped(json, false);
42
- }
43
- function ShiftTimeOffRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'days': value['days'],
49
- };
50
- }
@@ -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,54 +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.instanceOfUpdateAllocationDayRequest = instanceOfUpdateAllocationDayRequest;
17
- exports.UpdateAllocationDayRequestFromJSON = UpdateAllocationDayRequestFromJSON;
18
- exports.UpdateAllocationDayRequestFromJSONTyped = UpdateAllocationDayRequestFromJSONTyped;
19
- exports.UpdateAllocationDayRequestToJSON = UpdateAllocationDayRequestToJSON;
20
- exports.UpdateAllocationDayRequestToJSONTyped = UpdateAllocationDayRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the UpdateAllocationDayRequest interface.
23
- */
24
- function instanceOfUpdateAllocationDayRequest(value) {
25
- return true;
26
- }
27
- function UpdateAllocationDayRequestFromJSON(json) {
28
- return UpdateAllocationDayRequestFromJSONTyped(json, false);
29
- }
30
- function UpdateAllocationDayRequestFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'date': json['date'] == null ? undefined : (new Date(json['date'])),
36
- 'personId': json['person_id'] == null ? undefined : json['person_id'],
37
- 'projectId': json['project_id'] == null ? undefined : json['project_id'],
38
- 'hours': json['hours'] == null ? undefined : json['hours'],
39
- };
40
- }
41
- function UpdateAllocationDayRequestToJSON(json) {
42
- return UpdateAllocationDayRequestToJSONTyped(json, false);
43
- }
44
- function UpdateAllocationDayRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
50
- 'person_id': value['personId'],
51
- 'project_id': value['projectId'],
52
- 'hours': value['hours'],
53
- };
54
- }
@@ -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,50 +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.instanceOfUpdateTimeOffDayRequest = instanceOfUpdateTimeOffDayRequest;
17
- exports.UpdateTimeOffDayRequestFromJSON = UpdateTimeOffDayRequestFromJSON;
18
- exports.UpdateTimeOffDayRequestFromJSONTyped = UpdateTimeOffDayRequestFromJSONTyped;
19
- exports.UpdateTimeOffDayRequestToJSON = UpdateTimeOffDayRequestToJSON;
20
- exports.UpdateTimeOffDayRequestToJSONTyped = UpdateTimeOffDayRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the UpdateTimeOffDayRequest interface.
23
- */
24
- function instanceOfUpdateTimeOffDayRequest(value) {
25
- return true;
26
- }
27
- function UpdateTimeOffDayRequestFromJSON(json) {
28
- return UpdateTimeOffDayRequestFromJSONTyped(json, false);
29
- }
30
- function UpdateTimeOffDayRequestFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'date': json['date'] == null ? undefined : (new Date(json['date'])),
36
- 'hours': json['hours'] == null ? undefined : json['hours'],
37
- };
38
- }
39
- function UpdateTimeOffDayRequestToJSON(json) {
40
- return UpdateTimeOffDayRequestToJSONTyped(json, false);
41
- }
42
- function UpdateTimeOffDayRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
48
- 'hours': value['hours'],
49
- };
50
- }
@@ -1,74 +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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ShiftAllocationRequest
20
- */
21
- export interface ShiftAllocationRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ShiftAllocationRequest
26
- */
27
- days: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof ShiftAllocationRequest
32
- */
33
- personId?: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ShiftAllocationRequest interface.
38
- */
39
- export function instanceOfShiftAllocationRequest(value: object): value is ShiftAllocationRequest {
40
- if (!('days' in value) || value['days'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function ShiftAllocationRequestFromJSON(json: any): ShiftAllocationRequest {
45
- return ShiftAllocationRequestFromJSONTyped(json, false);
46
- }
47
-
48
- export function ShiftAllocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShiftAllocationRequest {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'days': json['days'],
55
- 'personId': json['person_id'] == null ? undefined : json['person_id'],
56
- };
57
- }
58
-
59
- export function ShiftAllocationRequestToJSON(json: any): ShiftAllocationRequest {
60
- return ShiftAllocationRequestToJSONTyped(json, false);
61
- }
62
-
63
- export function ShiftAllocationRequestToJSONTyped(value?: ShiftAllocationRequest | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'days': value['days'],
71
- 'person_id': value['personId'],
72
- };
73
- }
74
-
@@ -1,66 +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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ShiftTimeOffRequest
20
- */
21
- export interface ShiftTimeOffRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof ShiftTimeOffRequest
26
- */
27
- days: number;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the ShiftTimeOffRequest interface.
32
- */
33
- export function instanceOfShiftTimeOffRequest(value: object): value is ShiftTimeOffRequest {
34
- if (!('days' in value) || value['days'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function ShiftTimeOffRequestFromJSON(json: any): ShiftTimeOffRequest {
39
- return ShiftTimeOffRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function ShiftTimeOffRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShiftTimeOffRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'days': json['days'],
49
- };
50
- }
51
-
52
- export function ShiftTimeOffRequestToJSON(json: any): ShiftTimeOffRequest {
53
- return ShiftTimeOffRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function ShiftTimeOffRequestToJSONTyped(value?: ShiftTimeOffRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'days': value['days'],
64
- };
65
- }
66
-
@@ -1,89 +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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface UpdateAllocationDayRequest
20
- */
21
- export interface UpdateAllocationDayRequest {
22
- /**
23
- *
24
- * @type {Date}
25
- * @memberof UpdateAllocationDayRequest
26
- */
27
- date?: Date;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof UpdateAllocationDayRequest
32
- */
33
- personId?: number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof UpdateAllocationDayRequest
38
- */
39
- projectId?: number;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof UpdateAllocationDayRequest
44
- */
45
- hours?: number;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the UpdateAllocationDayRequest interface.
50
- */
51
- export function instanceOfUpdateAllocationDayRequest(value: object): value is UpdateAllocationDayRequest {
52
- return true;
53
- }
54
-
55
- export function UpdateAllocationDayRequestFromJSON(json: any): UpdateAllocationDayRequest {
56
- return UpdateAllocationDayRequestFromJSONTyped(json, false);
57
- }
58
-
59
- export function UpdateAllocationDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAllocationDayRequest {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'date': json['date'] == null ? undefined : (new Date(json['date'])),
66
- 'personId': json['person_id'] == null ? undefined : json['person_id'],
67
- 'projectId': json['project_id'] == null ? undefined : json['project_id'],
68
- 'hours': json['hours'] == null ? undefined : json['hours'],
69
- };
70
- }
71
-
72
- export function UpdateAllocationDayRequestToJSON(json: any): UpdateAllocationDayRequest {
73
- return UpdateAllocationDayRequestToJSONTyped(json, false);
74
- }
75
-
76
- export function UpdateAllocationDayRequestToJSONTyped(value?: UpdateAllocationDayRequest | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
84
- 'person_id': value['personId'],
85
- 'project_id': value['projectId'],
86
- 'hours': value['hours'],
87
- };
88
- }
89
-
@@ -1,73 +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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface UpdateTimeOffDayRequest
20
- */
21
- export interface UpdateTimeOffDayRequest {
22
- /**
23
- *
24
- * @type {Date}
25
- * @memberof UpdateTimeOffDayRequest
26
- */
27
- date?: Date;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof UpdateTimeOffDayRequest
32
- */
33
- hours?: number | null;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the UpdateTimeOffDayRequest interface.
38
- */
39
- export function instanceOfUpdateTimeOffDayRequest(value: object): value is UpdateTimeOffDayRequest {
40
- return true;
41
- }
42
-
43
- export function UpdateTimeOffDayRequestFromJSON(json: any): UpdateTimeOffDayRequest {
44
- return UpdateTimeOffDayRequestFromJSONTyped(json, false);
45
- }
46
-
47
- export function UpdateTimeOffDayRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTimeOffDayRequest {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'date': json['date'] == null ? undefined : (new Date(json['date'])),
54
- 'hours': json['hours'] == null ? undefined : json['hours'],
55
- };
56
- }
57
-
58
- export function UpdateTimeOffDayRequestToJSON(json: any): UpdateTimeOffDayRequest {
59
- return UpdateTimeOffDayRequestToJSONTyped(json, false);
60
- }
61
-
62
- export function UpdateTimeOffDayRequestToJSONTyped(value?: UpdateTimeOffDayRequest | null, ignoreDiscriminator: boolean = false): any {
63
- if (value == null) {
64
- return value;
65
- }
66
-
67
- return {
68
-
69
- 'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
70
- 'hours': value['hours'],
71
- };
72
- }
73
-