@digital8/security-registers-backend-ts-sdk 0.0.283 → 0.0.284

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 (51) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +12 -1
  4. package/dist/apis/GeneralApi.js +55 -0
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/AssetLiteResource.d.ts +0 -12
  8. package/dist/models/AssetLiteResource.js +0 -6
  9. package/dist/models/AssetResource.d.ts +1 -13
  10. package/dist/models/AssetResource.js +1 -9
  11. package/dist/models/IncidentListResource.d.ts +101 -0
  12. package/dist/models/IncidentListResource.js +79 -0
  13. package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/IncidentListResourceArrayResponse.js +50 -0
  15. package/dist/models/IncidentsListRequest.d.ts +151 -0
  16. package/dist/models/IncidentsListRequest.js +99 -0
  17. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
  18. package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
  19. package/dist/models/RegisterListResource.d.ts +2 -2
  20. package/dist/models/RegisterListResource.js +4 -4
  21. package/dist/models/RegisterResource.d.ts +3 -15
  22. package/dist/models/RegisterResource.js +4 -14
  23. package/dist/models/RosterListResource.d.ts +1 -1
  24. package/dist/models/RosterListResource.js +4 -3
  25. package/dist/models/RosterLiteResource.d.ts +1 -1
  26. package/dist/models/RosterLiteResource.js +4 -3
  27. package/dist/models/RosterResource.d.ts +1 -1
  28. package/dist/models/RosterResource.js +3 -4
  29. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  30. package/dist/models/SecurityCompanyResource.js +3 -1
  31. package/dist/models/VenueLiteResource.d.ts +6 -0
  32. package/dist/models/VenueLiteResource.js +4 -0
  33. package/dist/models/index.d.ts +4 -0
  34. package/dist/models/index.js +4 -0
  35. package/package.json +1 -1
  36. package/src/apis/GeneralApi.ts +50 -0
  37. package/src/models/AddressResource.ts +2 -3
  38. package/src/models/AssetLiteResource.ts +0 -17
  39. package/src/models/AssetResource.ts +2 -20
  40. package/src/models/IncidentListResource.ts +177 -0
  41. package/src/models/IncidentListResourceArrayResponse.ts +73 -0
  42. package/src/models/IncidentsListRequest.ts +222 -0
  43. package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
  44. package/src/models/RegisterListResource.ts +5 -5
  45. package/src/models/RegisterResource.ts +7 -26
  46. package/src/models/RosterListResource.ts +4 -3
  47. package/src/models/RosterLiteResource.ts +4 -3
  48. package/src/models/RosterResource.ts +3 -4
  49. package/src/models/SecurityCompanyResource.ts +3 -2
  50. package/src/models/VenueLiteResource.ts +9 -0
  51. package/src/models/index.ts +4 -0
@@ -0,0 +1,151 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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 IncidentsListRequest
16
+ */
17
+ export interface IncidentsListRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IncidentsListRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IncidentsListRequest
28
+ */
29
+ sortBy?: IncidentsListRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IncidentsListRequest
34
+ */
35
+ sortDirection?: IncidentsListRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IncidentsListRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof IncidentsListRequest
46
+ */
47
+ page?: string;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof IncidentsListRequest
52
+ */
53
+ venueId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof IncidentsListRequest
58
+ */
59
+ securityCompanyId?: Array<string>;
60
+ /**
61
+ *
62
+ * @type {Array<string>}
63
+ * @memberof IncidentsListRequest
64
+ */
65
+ rosterId?: Array<string>;
66
+ /**
67
+ *
68
+ * @type {Array<string>}
69
+ * @memberof IncidentsListRequest
70
+ */
71
+ userId?: Array<string>;
72
+ /**
73
+ *
74
+ * @type {Array<string>}
75
+ * @memberof IncidentsListRequest
76
+ */
77
+ approvedByUserId?: Array<string>;
78
+ /**
79
+ *
80
+ * @type {Array<string>}
81
+ * @memberof IncidentsListRequest
82
+ */
83
+ hasApprovedAt?: Array<string>;
84
+ /**
85
+ *
86
+ * @type {Date}
87
+ * @memberof IncidentsListRequest
88
+ */
89
+ beforeApprovedAt?: Date;
90
+ /**
91
+ *
92
+ * @type {Date}
93
+ * @memberof IncidentsListRequest
94
+ */
95
+ afterApprovedAt?: Date;
96
+ /**
97
+ *
98
+ * @type {Date}
99
+ * @memberof IncidentsListRequest
100
+ */
101
+ beforeCreatedAt?: Date;
102
+ /**
103
+ *
104
+ * @type {Date}
105
+ * @memberof IncidentsListRequest
106
+ */
107
+ afterCreatedAt?: Date;
108
+ /**
109
+ *
110
+ * @type {number}
111
+ * @memberof IncidentsListRequest
112
+ */
113
+ relatedId?: number;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof IncidentsListRequest
118
+ */
119
+ relatedType?: string;
120
+ /**
121
+ *
122
+ * @type {boolean}
123
+ * @memberof IncidentsListRequest
124
+ */
125
+ includesRelations?: boolean;
126
+ }
127
+ /**
128
+ * @export
129
+ */
130
+ export declare const IncidentsListRequestSortByEnum: {
131
+ readonly Id: "id";
132
+ readonly CreatedAt: "created_at";
133
+ readonly ApprovedAt: "approved_at";
134
+ };
135
+ export type IncidentsListRequestSortByEnum = typeof IncidentsListRequestSortByEnum[keyof typeof IncidentsListRequestSortByEnum];
136
+ /**
137
+ * @export
138
+ */
139
+ export declare const IncidentsListRequestSortDirectionEnum: {
140
+ readonly Asc: "asc";
141
+ readonly Desc: "desc";
142
+ };
143
+ export type IncidentsListRequestSortDirectionEnum = typeof IncidentsListRequestSortDirectionEnum[keyof typeof IncidentsListRequestSortDirectionEnum];
144
+ /**
145
+ * Check if a given object implements the IncidentsListRequest interface.
146
+ */
147
+ export declare function instanceOfIncidentsListRequest(value: object): value is IncidentsListRequest;
148
+ export declare function IncidentsListRequestFromJSON(json: any): IncidentsListRequest;
149
+ export declare function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsListRequest;
150
+ export declare function IncidentsListRequestToJSON(json: any): IncidentsListRequest;
151
+ export declare function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
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.IncidentsListRequestSortDirectionEnum = exports.IncidentsListRequestSortByEnum = void 0;
17
+ exports.instanceOfIncidentsListRequest = instanceOfIncidentsListRequest;
18
+ exports.IncidentsListRequestFromJSON = IncidentsListRequestFromJSON;
19
+ exports.IncidentsListRequestFromJSONTyped = IncidentsListRequestFromJSONTyped;
20
+ exports.IncidentsListRequestToJSON = IncidentsListRequestToJSON;
21
+ exports.IncidentsListRequestToJSONTyped = IncidentsListRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IncidentsListRequestSortByEnum = {
26
+ Id: 'id',
27
+ CreatedAt: 'created_at',
28
+ ApprovedAt: 'approved_at'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.IncidentsListRequestSortDirectionEnum = {
34
+ Asc: 'asc',
35
+ Desc: 'desc'
36
+ };
37
+ /**
38
+ * Check if a given object implements the IncidentsListRequest interface.
39
+ */
40
+ function instanceOfIncidentsListRequest(value) {
41
+ return true;
42
+ }
43
+ function IncidentsListRequestFromJSON(json) {
44
+ return IncidentsListRequestFromJSONTyped(json, false);
45
+ }
46
+ function IncidentsListRequestFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'search': json['search'] == null ? undefined : json['search'],
52
+ 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
53
+ 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
54
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
55
+ 'page': json['page'] == null ? undefined : json['page'],
56
+ 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
57
+ 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
58
+ 'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
59
+ 'userId': json['user_id'] == null ? undefined : json['user_id'],
60
+ 'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
61
+ 'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
62
+ 'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
63
+ 'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
64
+ 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
65
+ 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
66
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
68
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
69
+ };
70
+ }
71
+ function IncidentsListRequestToJSON(json) {
72
+ return IncidentsListRequestToJSONTyped(json, false);
73
+ }
74
+ function IncidentsListRequestToJSONTyped(value, ignoreDiscriminator) {
75
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'search': value['search'],
81
+ 'sort_by': value['sortBy'],
82
+ 'sort_direction': value['sortDirection'],
83
+ 'per_page': value['perPage'],
84
+ 'page': value['page'],
85
+ 'venue_id': value['venueId'],
86
+ 'security_company_id': value['securityCompanyId'],
87
+ 'roster_id': value['rosterId'],
88
+ 'user_id': value['userId'],
89
+ 'approved_by_user_id': value['approvedByUserId'],
90
+ 'has_approved_at': value['hasApprovedAt'],
91
+ 'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
92
+ 'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
93
+ 'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
94
+ 'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
95
+ 'related_id': value['relatedId'],
96
+ 'related_type': value['relatedType'],
97
+ 'includes_relations': value['includesRelations'],
98
+ };
99
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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 { PagingMetadata } from './PagingMetadata';
13
+ import type { IncidentListResource } from './IncidentListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedIncidentListResourceResponse
18
+ */
19
+ export interface PaginatedIncidentListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<IncidentListResource>}
23
+ * @memberof PaginatedIncidentListResourceResponse
24
+ */
25
+ data: Array<IncidentListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedIncidentListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedIncidentListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedIncidentListResourceResponse(value: object): value is PaginatedIncidentListResourceResponse;
37
+ export declare function PaginatedIncidentListResourceResponseFromJSON(json: any): PaginatedIncidentListResourceResponse;
38
+ export declare function PaginatedIncidentListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIncidentListResourceResponse;
39
+ export declare function PaginatedIncidentListResourceResponseToJSON(json: any): PaginatedIncidentListResourceResponse;
40
+ export declare function PaginatedIncidentListResourceResponseToJSONTyped(value?: PaginatedIncidentListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
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.instanceOfPaginatedIncidentListResourceResponse = instanceOfPaginatedIncidentListResourceResponse;
17
+ exports.PaginatedIncidentListResourceResponseFromJSON = PaginatedIncidentListResourceResponseFromJSON;
18
+ exports.PaginatedIncidentListResourceResponseFromJSONTyped = PaginatedIncidentListResourceResponseFromJSONTyped;
19
+ exports.PaginatedIncidentListResourceResponseToJSON = PaginatedIncidentListResourceResponseToJSON;
20
+ exports.PaginatedIncidentListResourceResponseToJSONTyped = PaginatedIncidentListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var IncidentListResource_1 = require("./IncidentListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedIncidentListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedIncidentListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedIncidentListResourceResponseFromJSON(json) {
34
+ return PaginatedIncidentListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedIncidentListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedIncidentListResourceResponseToJSON(json) {
46
+ return PaginatedIncidentListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedIncidentListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(IncidentListResource_1.IncidentListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -65,7 +65,7 @@ export interface RegisterListResource {
65
65
  * @type {string}
66
66
  * @memberof RegisterListResource
67
67
  */
68
- badgeNumber: string;
68
+ badgeNumber?: string | null;
69
69
  /**
70
70
  *
71
71
  * @type {string}
@@ -143,7 +143,7 @@ export interface RegisterListResource {
143
143
  * @type {number}
144
144
  * @memberof RegisterListResource
145
145
  */
146
- signOffLat?: number | null;
146
+ signOffLat: number;
147
147
  /**
148
148
  *
149
149
  * @type {number}
@@ -35,8 +35,6 @@ function instanceOfRegisterListResource(value) {
35
35
  return false;
36
36
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
37
37
  return false;
38
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
39
- return false;
40
38
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
41
39
  return false;
42
40
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
@@ -61,6 +59,8 @@ function instanceOfRegisterListResource(value) {
61
59
  return false;
62
60
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
63
61
  return false;
62
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
63
+ return false;
64
64
  if (!('signOffLong' in value) || value['signOffLong'] === undefined)
65
65
  return false;
66
66
  if (!('incidents' in value) || value['incidents'] === undefined)
@@ -82,7 +82,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
82
82
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
83
83
  'shiftLength': json['shiftLength'],
84
84
  'signOffStatus': json['signOffStatus'],
85
- 'badgeNumber': json['badgeNumber'],
85
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
86
86
  'licenceNumber': json['licenceNumber'],
87
87
  'licenceFirstName': json['licenceFirstName'],
88
88
  'licenceLastName': json['licenceLastName'],
@@ -95,7 +95,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
95
95
  'firstAid': json['firstAid'],
96
96
  'signOnLat': json['signOnLat'],
97
97
  'signOnLong': json['signOnLong'],
98
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
98
+ 'signOffLat': json['signOffLat'],
99
99
  'signOffLong': json['signOffLong'],
100
100
  'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
101
101
  };
@@ -65,18 +65,6 @@ export interface RegisterResource {
65
65
  * @memberof RegisterResource
66
66
  */
67
67
  signOffSignature: object;
68
- /**
69
- *
70
- * @type {object}
71
- * @memberof RegisterResource
72
- */
73
- signOnPhoto: object;
74
- /**
75
- *
76
- * @type {object}
77
- * @memberof RegisterResource
78
- */
79
- signOffPhoto: object;
80
68
  /**
81
69
  *
82
70
  * @type {object}
@@ -118,13 +106,13 @@ export interface RegisterResource {
118
106
  * @type {number}
119
107
  * @memberof RegisterResource
120
108
  */
121
- signOffLat?: number | null;
109
+ signOffLat: number;
122
110
  /**
123
111
  *
124
112
  * @type {number}
125
113
  * @memberof RegisterResource
126
114
  */
127
- signOffLong: number;
115
+ signOffLong?: number | null;
128
116
  /**
129
117
  *
130
118
  * @type {string}
@@ -154,7 +142,7 @@ export interface RegisterResource {
154
142
  * @type {string}
155
143
  * @memberof RegisterResource
156
144
  */
157
- badgeNumber: string;
145
+ badgeNumber?: string | null;
158
146
  /**
159
147
  *
160
148
  * @type {Date}
@@ -38,10 +38,6 @@ function instanceOfRegisterResource(value) {
38
38
  return false;
39
39
  if (!('signOffSignature' in value) || value['signOffSignature'] === undefined)
40
40
  return false;
41
- if (!('signOnPhoto' in value) || value['signOnPhoto'] === undefined)
42
- return false;
43
- if (!('signOffPhoto' in value) || value['signOffPhoto'] === undefined)
44
- return false;
45
41
  if (!('licenceFront' in value) || value['licenceFront'] === undefined)
46
42
  return false;
47
43
  if (!('licenceBack' in value) || value['licenceBack'] === undefined)
@@ -54,7 +50,7 @@ function instanceOfRegisterResource(value) {
54
50
  return false;
55
51
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
56
52
  return false;
57
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
53
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
58
54
  return false;
59
55
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
60
56
  return false;
@@ -64,8 +60,6 @@ function instanceOfRegisterResource(value) {
64
60
  return false;
65
61
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
66
62
  return false;
67
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
68
- return false;
69
63
  return true;
70
64
  }
71
65
  function RegisterResourceFromJSON(json) {
@@ -84,21 +78,19 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
84
78
  'signOffStatus': json['signOffStatus'],
85
79
  'signOnSignature': json['signOnSignature'],
86
80
  'signOffSignature': json['signOffSignature'],
87
- 'signOnPhoto': json['signOnPhoto'],
88
- 'signOffPhoto': json['signOffPhoto'],
89
81
  'licenceFront': json['licenceFront'],
90
82
  'licenceBack': json['licenceBack'],
91
83
  'rsaImage': json['rsaImage'],
92
84
  'firstAidImage': json['firstAidImage'],
93
85
  'signOnLat': json['signOnLat'],
94
86
  'signOnLong': json['signOnLong'],
95
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
96
- 'signOffLong': json['signOffLong'],
87
+ 'signOffLat': json['signOffLat'],
88
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
97
89
  'licenceNumber': json['licenceNumber'],
98
90
  'licenceExpiry': json['licenceExpiry'],
99
91
  'licenceFirstName': json['licenceFirstName'],
100
92
  'licenceLastName': json['licenceLastName'],
101
- 'badgeNumber': json['badgeNumber'],
93
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
102
94
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
103
95
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
104
96
  };
@@ -121,8 +113,6 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
121
113
  'signOffStatus': value['signOffStatus'],
122
114
  'signOnSignature': value['signOnSignature'],
123
115
  'signOffSignature': value['signOffSignature'],
124
- 'signOnPhoto': value['signOnPhoto'],
125
- 'signOffPhoto': value['signOffPhoto'],
126
116
  'licenceFront': value['licenceFront'],
127
117
  'licenceBack': value['licenceBack'],
128
118
  'rsaImage': value['rsaImage'],
@@ -46,7 +46,7 @@ export interface RosterListResource {
46
46
  * @type {Date}
47
47
  * @memberof RosterListResource
48
48
  */
49
- finishDateTime?: Date | null;
49
+ finishDateTime: Date;
50
50
  /**
51
51
  *
52
52
  * @type {boolean}
@@ -30,6 +30,8 @@ function instanceOfRosterListResource(value) {
30
30
  return false;
31
31
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
32
32
  return false;
33
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
34
+ return false;
33
35
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
34
36
  return false;
35
37
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -52,7 +54,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
53
55
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
54
56
  'startDateTime': (new Date(json['startDateTime'])),
55
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
57
+ 'finishDateTime': (new Date(json['finishDateTime'])),
56
58
  'isCompliant': json['isCompliant'],
57
59
  'isComplete': json['isComplete'],
58
60
  'signOffStatus': json['signOffStatus'],
@@ -63,7 +65,6 @@ function RosterListResourceToJSON(json) {
63
65
  return RosterListResourceToJSONTyped(json, false);
64
66
  }
65
67
  function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
66
- var _a;
67
68
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
69
  if (value == null) {
69
70
  return value;
@@ -73,7 +74,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
73
74
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
74
75
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
75
76
  'startDateTime': ((value['startDateTime']).toISOString()),
76
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
77
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
77
78
  'isCompliant': value['isCompliant'],
78
79
  'isComplete': value['isComplete'],
79
80
  'signOffStatus': value['signOffStatus'],
@@ -32,7 +32,7 @@ export interface RosterLiteResource {
32
32
  * @type {Date}
33
33
  * @memberof RosterLiteResource
34
34
  */
35
- finishDateTime?: Date | null;
35
+ finishDateTime: Date;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the RosterLiteResource interface.
@@ -24,6 +24,8 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
24
24
  function instanceOfRosterLiteResource(value) {
25
25
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
26
26
  return false;
27
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
28
+ return false;
27
29
  return true;
28
30
  }
29
31
  function RosterLiteResourceFromJSON(json) {
@@ -36,14 +38,13 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
36
38
  return {
37
39
  'id': json['id'] == null ? undefined : json['id'],
38
40
  'startDateTime': (new Date(json['startDateTime'])),
39
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
41
+ 'finishDateTime': (new Date(json['finishDateTime'])),
40
42
  };
41
43
  }
42
44
  function RosterLiteResourceToJSON(json) {
43
45
  return RosterLiteResourceToJSONTyped(json, false);
44
46
  }
45
47
  function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
46
- var _a;
47
48
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
49
  if (value == null) {
49
50
  return value;
@@ -51,6 +52,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
51
52
  return {
52
53
  'id': value['id'],
53
54
  'startDateTime': ((value['startDateTime']).toISOString()),
54
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
55
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
55
56
  };
56
57
  }
@@ -47,7 +47,7 @@ export interface RosterResource {
47
47
  * @type {Date}
48
48
  * @memberof RosterResource
49
49
  */
50
- finishDateTime: Date;
50
+ finishDateTime?: Date | null;
51
51
  /**
52
52
  *
53
53
  * @type {boolean}
@@ -31,8 +31,6 @@ function instanceOfRosterResource(value) {
31
31
  return false;
32
32
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
33
33
  return false;
34
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
35
- return false;
36
34
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
37
35
  return false;
38
36
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -55,7 +53,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
55
53
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
56
54
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
57
55
  'startDateTime': (new Date(json['startDateTime'])),
58
- 'finishDateTime': (new Date(json['finishDateTime'])),
56
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
59
57
  'isCompliant': json['isCompliant'],
60
58
  'isComplete': json['isComplete'],
61
59
  'signOffStatus': json['signOffStatus'],
@@ -66,6 +64,7 @@ function RosterResourceToJSON(json) {
66
64
  return RosterResourceToJSONTyped(json, false);
67
65
  }
68
66
  function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
67
+ var _a;
69
68
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
70
69
  if (value == null) {
71
70
  return value;
@@ -75,7 +74,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
75
74
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
76
75
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
77
76
  'startDateTime': ((value['startDateTime']).toISOString()),
78
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
77
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
79
78
  'isCompliant': value['isCompliant'],
80
79
  'isComplete': value['isComplete'],
81
80
  'signOffStatus': value['signOffStatus'],
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email?: string | null;
36
+ email: string;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}