@digital8/security-registers-backend-ts-sdk 0.0.452 → 0.0.454

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/security-registers-backend-ts-sdk@0.0.452
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.454
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/security-registers-backend-ts-sdk@0.0.452 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.454 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressResource {
32
32
  * @type {string}
33
33
  * @memberof AddressResource
34
34
  */
35
- addressLine2: string;
35
+ addressLine2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addressLine1' in value) || value['addressLine1'] === undefined)
26
26
  return false;
27
- if (!('addressLine2' in value) || value['addressLine2'] === undefined)
28
- return false;
29
27
  if (!('suburb' in value) || value['suburb'] === undefined)
30
28
  return false;
31
29
  if (!('city' in value) || value['city'] === undefined)
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  return {
51
49
  'id': json['id'] == null ? undefined : json['id'],
52
50
  'addressLine1': json['addressLine1'],
53
- 'addressLine2': json['addressLine2'],
51
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
54
52
  'suburb': json['suburb'],
55
53
  'city': json['city'],
56
54
  'state': json['state'],
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText?: string | null;
47
+ altText: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,6 +30,8 @@ function instanceOfAssetResource(value) {
30
30
  return false;
31
31
  if (!('mimeType' in value) || value['mimeType'] === undefined)
32
32
  return false;
33
+ if (!('altText' in value) || value['altText'] === undefined)
34
+ return false;
33
35
  if (!('index' in value) || value['index'] === undefined)
34
36
  return false;
35
37
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'filePath': json['filePath'],
51
53
  'fileName': json['fileName'],
52
54
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'] == null ? undefined : json['altText'],
55
+ 'altText': json['altText'],
54
56
  'index': json['index'],
55
57
  'fileId': json['fileId'],
56
58
  'isExternal': json['isExternal'],
@@ -32,7 +32,7 @@ export interface IncidentImageResource {
32
32
  * @type {string}
33
33
  * @memberof IncidentImageResource
34
34
  */
35
- altText: string;
35
+ altText?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
26
26
  return false;
27
27
  if (!('mimeType' in value) || value['mimeType'] === undefined)
28
28
  return false;
29
- if (!('altText' in value) || value['altText'] === undefined)
30
- return false;
31
29
  if (!('assetId' in value) || value['assetId'] === undefined)
32
30
  return false;
33
31
  if (!('url' in value) || value['url'] === undefined)
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
44
42
  return {
45
43
  'fileId': json['file_id'],
46
44
  'mimeType': json['mime_type'],
47
- 'altText': json['alt_text'],
45
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
48
46
  'assetId': json['asset_id'],
49
47
  'url': json['url'],
50
48
  };
@@ -46,13 +46,13 @@ export interface RegisterListResource {
46
46
  * @type {Date}
47
47
  * @memberof RegisterListResource
48
48
  */
49
- finishDateTime: Date;
49
+ finishDateTime?: Date | null;
50
50
  /**
51
51
  *
52
- * @type {string}
52
+ * @type {object}
53
53
  * @memberof RegisterListResource
54
54
  */
55
- shiftLength: string;
55
+ shiftLength: object;
56
56
  /**
57
57
  *
58
58
  * @type {number}
@@ -148,7 +148,7 @@ export interface RegisterListResource {
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLat: number;
151
+ signOffLat?: number | null;
152
152
  /**
153
153
  *
154
154
  * @type {number}
@@ -39,8 +39,6 @@ function instanceOfRegisterListResource(value) {
39
39
  return false;
40
40
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
41
41
  return false;
42
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
43
- return false;
44
42
  if (!('shiftLength' in value) || value['shiftLength'] === undefined)
45
43
  return false;
46
44
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
@@ -71,8 +69,6 @@ function instanceOfRegisterListResource(value) {
71
69
  return false;
72
70
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
73
71
  return false;
74
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
75
- return false;
76
72
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
77
73
  return false;
78
74
  return true;
@@ -89,7 +85,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
89
85
  'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
90
86
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
91
87
  'startDateTime': (new Date(json['startDateTime'])),
92
- 'finishDateTime': (new Date(json['finishDateTime'])),
88
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
93
89
  'shiftLength': json['shiftLength'],
94
90
  'signOffStatus': json['signOffStatus'],
95
91
  'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
@@ -106,7 +102,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
106
102
  'firstAid': json['firstAid'],
107
103
  'signOnLat': json['signOnLat'],
108
104
  'signOnLong': json['signOnLong'],
109
- 'signOffLat': json['signOffLat'],
105
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
110
106
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
111
107
  'hasIncidents': json['hasIncidents'],
112
108
  };
@@ -115,6 +111,7 @@ function RegisterListResourceToJSON(json) {
115
111
  return RegisterListResourceToJSONTyped(json, false);
116
112
  }
117
113
  function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
114
+ var _a;
118
115
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
119
116
  if (value == null) {
120
117
  return value;
@@ -124,7 +121,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
124
121
  'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
125
122
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
126
123
  'startDateTime': ((value['startDateTime']).toISOString()),
127
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
124
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
128
125
  'shiftLength': value['shiftLength'],
129
126
  'signOffStatus': value['signOffStatus'],
130
127
  'badgeNumber': value['badgeNumber'],
@@ -112,7 +112,7 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong: number;
115
+ signOffLong?: number | null;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -57,8 +57,6 @@ function instanceOfRegisterResource(value) {
57
57
  return false;
58
58
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
59
59
  return false;
60
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
61
- return false;
62
60
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
63
61
  return false;
64
62
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -96,7 +94,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
96
94
  'signOnLat': json['signOnLat'],
97
95
  'signOnLong': json['signOnLong'],
98
96
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
99
- 'signOffLong': json['signOffLong'],
97
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
100
98
  'licenceNumber': json['licenceNumber'],
101
99
  'licenceExpiry': json['licenceExpiry'],
102
100
  'licenceFirstName': json['licenceFirstName'],
@@ -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 | null;
50
+ finishDateTime: Date;
51
51
  /**
52
52
  *
53
53
  * @type {boolean}
@@ -40,6 +40,8 @@ function instanceOfRosterResource(value) {
40
40
  return false;
41
41
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
42
42
  return false;
43
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
44
+ return false;
43
45
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
44
46
  return false;
45
47
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -62,7 +64,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
62
64
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
63
65
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
64
66
  'startDateTime': (new Date(json['startDateTime'])),
65
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
67
+ 'finishDateTime': (new Date(json['finishDateTime'])),
66
68
  'isCompliant': json['isCompliant'],
67
69
  'isComplete': json['isComplete'],
68
70
  'signOffStatus': json['signOffStatus'],
@@ -73,7 +75,6 @@ function RosterResourceToJSON(json) {
73
75
  return RosterResourceToJSONTyped(json, false);
74
76
  }
75
77
  function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
76
- var _a;
77
78
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
79
  if (value == null) {
79
80
  return value;
@@ -83,7 +84,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
83
84
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
84
85
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
85
86
  'startDateTime': ((value['startDateTime']).toISOString()),
86
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
87
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
87
88
  'isCompliant': value['isCompliant'],
88
89
  'isComplete': value['isComplete'],
89
90
  'signOffStatus': value['signOffStatus'],
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email: string;
36
+ email?: string | null;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
25
25
  function instanceOfSecurityCompanyResource(value) {
26
26
  if (!('name' in value) || value['name'] === undefined)
27
27
  return false;
28
- if (!('email' in value) || value['email'] === undefined)
29
- return false;
30
28
  if (!('isEnabled' in value) || value['isEnabled'] === undefined)
31
29
  return false;
32
30
  if (!('address' in value) || value['address'] === undefined)
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
45
43
  return {
46
44
  'id': json['id'] == null ? undefined : json['id'],
47
45
  'name': json['name'],
48
- 'email': json['email'],
46
+ 'email': json['email'] == null ? undefined : json['email'],
49
47
  'isEnabled': json['isEnabled'],
50
48
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
51
49
  'licenceNumber': json['licenceNumber'],
@@ -39,12 +39,6 @@ export interface VenuesUpdateRequest {
39
39
  * @memberof VenuesUpdateRequest
40
40
  */
41
41
  venueSignOnCodeRequired?: boolean;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof VenuesUpdateRequest
46
- */
47
- venueSignOnCode?: string;
48
42
  /**
49
43
  *
50
44
  * @type {boolean}
@@ -54,7 +54,6 @@ function VenuesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'venueCode': json['venue_code'] == null ? undefined : json['venue_code'],
55
55
  'badgeNumberRequired': json['badge_number_required'] == null ? undefined : json['badge_number_required'],
56
56
  'venueSignOnCodeRequired': json['venue_sign_on_code_required'] == null ? undefined : json['venue_sign_on_code_required'],
57
- 'venueSignOnCode': json['venue_sign_on_code'] == null ? undefined : json['venue_sign_on_code'],
58
57
  'rampReadingRequired': json['ramp_reading_required'] == null ? undefined : json['ramp_reading_required'],
59
58
  'primaryManagerId': json['primary_manager_id'] == null ? undefined : json['primary_manager_id'],
60
59
  'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
@@ -84,7 +83,6 @@ function VenuesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
84
83
  'venue_code': value['venueCode'],
85
84
  'badge_number_required': value['badgeNumberRequired'],
86
85
  'venue_sign_on_code_required': value['venueSignOnCodeRequired'],
87
- 'venue_sign_on_code': value['venueSignOnCode'],
88
86
  'ramp_reading_required': value['rampReadingRequired'],
89
87
  'primary_manager_id': value['primaryManagerId'],
90
88
  'security_company_id': value['securityCompanyId'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.452",
3
+ "version": "0.0.454",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2: string;
39
+ addressLine2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,7 +80,6 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
83
- if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
84
83
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
85
84
  if (!('city' in value) || value['city'] === undefined) return false;
86
85
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
102
101
 
103
102
  'id': json['id'] == null ? undefined : json['id'],
104
103
  'addressLine1': json['addressLine1'],
105
- 'addressLine2': json['addressLine2'],
104
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
106
105
  'suburb': json['suburb'],
107
106
  'city': json['city'],
108
107
  'state': json['state'],
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,6 +83,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
86
+ if (!('altText' in value) || value['altText'] === undefined) return false;
86
87
  if (!('index' in value) || value['index'] === undefined) return false;
87
88
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
88
89
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -103,7 +104,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
103
104
  'filePath': json['filePath'],
104
105
  'fileName': json['fileName'],
105
106
  'mimeType': json['mimeType'],
106
- 'altText': json['altText'] == null ? undefined : json['altText'],
107
+ 'altText': json['altText'],
107
108
  'index': json['index'],
108
109
  'fileId': json['fileId'],
109
110
  'isExternal': json['isExternal'],
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
36
36
  * @type {string}
37
37
  * @memberof IncidentImageResource
38
38
  */
39
- altText: string;
39
+ altText?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
57
57
  export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
58
58
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
59
59
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
60
- if (!('altText' in value) || value['altText'] === undefined) return false;
61
60
  if (!('assetId' in value) || value['assetId'] === undefined) return false;
62
61
  if (!('url' in value) || value['url'] === undefined) return false;
63
62
  return true;
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
75
74
 
76
75
  'fileId': json['file_id'],
77
76
  'mimeType': json['mime_type'],
78
- 'altText': json['alt_text'],
77
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
79
78
  'assetId': json['asset_id'],
80
79
  'url': json['url'],
81
80
  };
@@ -63,13 +63,13 @@ export interface RegisterListResource {
63
63
  * @type {Date}
64
64
  * @memberof RegisterListResource
65
65
  */
66
- finishDateTime: Date;
66
+ finishDateTime?: Date | null;
67
67
  /**
68
68
  *
69
- * @type {string}
69
+ * @type {object}
70
70
  * @memberof RegisterListResource
71
71
  */
72
- shiftLength: string;
72
+ shiftLength: object;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -165,7 +165,7 @@ export interface RegisterListResource {
165
165
  * @type {number}
166
166
  * @memberof RegisterListResource
167
167
  */
168
- signOffLat: number;
168
+ signOffLat?: number | null;
169
169
  /**
170
170
  *
171
171
  * @type {number}
@@ -199,7 +199,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
199
199
  if (!('user' in value) || value['user'] === undefined) return false;
200
200
  if (!('venue' in value) || value['venue'] === undefined) return false;
201
201
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
202
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
203
202
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
204
203
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
205
204
  if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
@@ -215,7 +214,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
215
214
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
216
215
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
217
216
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
218
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
219
217
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
220
218
  return true;
221
219
  }
@@ -234,7 +232,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
234
232
  'user': UserLiteResourceFromJSON(json['user']),
235
233
  'venue': VenueLiteResourceFromJSON(json['venue']),
236
234
  'startDateTime': (new Date(json['startDateTime'])),
237
- 'finishDateTime': (new Date(json['finishDateTime'])),
235
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
238
236
  'shiftLength': json['shiftLength'],
239
237
  'signOffStatus': json['signOffStatus'],
240
238
  'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
@@ -251,7 +249,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
251
249
  'firstAid': json['firstAid'],
252
250
  'signOnLat': json['signOnLat'],
253
251
  'signOnLong': json['signOnLong'],
254
- 'signOffLat': json['signOffLat'],
252
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
255
253
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
256
254
  'hasIncidents': json['hasIncidents'],
257
255
  };
@@ -272,7 +270,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
272
270
  'user': UserLiteResourceToJSON(value['user']),
273
271
  'venue': VenueLiteResourceToJSON(value['venue']),
274
272
  'startDateTime': ((value['startDateTime']).toISOString()),
275
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
273
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
276
274
  'shiftLength': value['shiftLength'],
277
275
  'signOffStatus': value['signOffStatus'],
278
276
  'badgeNumber': value['badgeNumber'],
@@ -129,7 +129,7 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong: number;
132
+ signOffLong?: number | null;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -208,7 +208,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
208
208
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
209
209
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
210
210
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
211
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
212
211
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
213
212
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
214
213
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -243,7 +242,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
243
242
  'signOnLat': json['signOnLat'],
244
243
  'signOnLong': json['signOnLong'],
245
244
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
246
- 'signOffLong': json['signOffLong'],
245
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
247
246
  'licenceNumber': json['licenceNumber'],
248
247
  'licenceExpiry': json['licenceExpiry'],
249
248
  'licenceFirstName': json['licenceFirstName'],
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
36
36
  * @type {Date}
37
37
  * @memberof RosterLiteResource
38
38
  */
39
- finishDateTime?: Date | null;
39
+ finishDateTime: Date;
40
40
  }
41
41
 
42
42
  /**
@@ -44,6 +44,7 @@ export interface RosterLiteResource {
44
44
  */
45
45
  export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
46
46
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
47
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
47
48
  return true;
48
49
  }
49
50
 
@@ -59,7 +60,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
59
60
 
60
61
  'id': json['id'] == null ? undefined : json['id'],
61
62
  'startDateTime': (new Date(json['startDateTime'])),
62
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
63
+ 'finishDateTime': (new Date(json['finishDateTime'])),
63
64
  };
64
65
  }
65
66
 
@@ -76,7 +77,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
76
77
 
77
78
  'id': value['id'],
78
79
  'startDateTime': ((value['startDateTime']).toISOString()),
79
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
80
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
80
81
  };
81
82
  }
82
83
 
@@ -70,7 +70,7 @@ export interface RosterResource {
70
70
  * @type {Date}
71
71
  * @memberof RosterResource
72
72
  */
73
- finishDateTime?: Date | null;
73
+ finishDateTime: Date;
74
74
  /**
75
75
  *
76
76
  * @type {boolean}
@@ -116,6 +116,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
116
116
  if (!('venue' in value) || value['venue'] === undefined) return false;
117
117
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
118
118
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
119
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
119
120
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
120
121
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
121
122
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -137,7 +138,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
137
138
  'venue': VenueLiteResourceFromJSON(json['venue']),
138
139
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
139
140
  'startDateTime': (new Date(json['startDateTime'])),
140
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
141
+ 'finishDateTime': (new Date(json['finishDateTime'])),
141
142
  'isCompliant': json['isCompliant'],
142
143
  'isComplete': json['isComplete'],
143
144
  'signOffStatus': json['signOffStatus'],
@@ -160,7 +161,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
160
161
  'venue': VenueLiteResourceToJSON(value['venue']),
161
162
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
162
163
  'startDateTime': ((value['startDateTime']).toISOString()),
163
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
164
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
164
165
  'isCompliant': value['isCompliant'],
165
166
  'isComplete': value['isComplete'],
166
167
  'signOffStatus': value['signOffStatus'],
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email: string;
47
+ email?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
82
82
  */
83
83
  export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
84
84
  if (!('name' in value) || value['name'] === undefined) return false;
85
- if (!('email' in value) || value['email'] === undefined) return false;
86
85
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
87
86
  if (!('address' in value) || value['address'] === undefined) return false;
88
87
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
101
100
 
102
101
  'id': json['id'] == null ? undefined : json['id'],
103
102
  'name': json['name'],
104
- 'email': json['email'],
103
+ 'email': json['email'] == null ? undefined : json['email'],
105
104
  'isEnabled': json['isEnabled'],
106
105
  'address': AddressResourceFromJSON(json['address']),
107
106
  'licenceNumber': json['licenceNumber'],
@@ -43,12 +43,6 @@ export interface VenuesUpdateRequest {
43
43
  * @memberof VenuesUpdateRequest
44
44
  */
45
45
  venueSignOnCodeRequired?: boolean;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof VenuesUpdateRequest
50
- */
51
- venueSignOnCode?: string;
52
46
  /**
53
47
  *
54
48
  * @type {boolean}
@@ -175,7 +169,6 @@ export function VenuesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator:
175
169
  'venueCode': json['venue_code'] == null ? undefined : json['venue_code'],
176
170
  'badgeNumberRequired': json['badge_number_required'] == null ? undefined : json['badge_number_required'],
177
171
  'venueSignOnCodeRequired': json['venue_sign_on_code_required'] == null ? undefined : json['venue_sign_on_code_required'],
178
- 'venueSignOnCode': json['venue_sign_on_code'] == null ? undefined : json['venue_sign_on_code'],
179
172
  'rampReadingRequired': json['ramp_reading_required'] == null ? undefined : json['ramp_reading_required'],
180
173
  'primaryManagerId': json['primary_manager_id'] == null ? undefined : json['primary_manager_id'],
181
174
  'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
@@ -208,7 +201,6 @@ export function VenuesUpdateRequestToJSONTyped(value?: VenuesUpdateRequest | nul
208
201
  'venue_code': value['venueCode'],
209
202
  'badge_number_required': value['badgeNumberRequired'],
210
203
  'venue_sign_on_code_required': value['venueSignOnCodeRequired'],
211
- 'venue_sign_on_code': value['venueSignOnCode'],
212
204
  'ramp_reading_required': value['rampReadingRequired'],
213
205
  'primary_manager_id': value['primaryManagerId'],
214
206
  'security_company_id': value['securityCompanyId'],