@digital8/security-registers-backend-ts-sdk 0.0.295 → 0.0.296

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.
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
76
76
  * @type {Date}
77
77
  * @memberof RosterWithRegistersResource
78
78
  */
79
- finishDateTime?: Date | null;
79
+ finishDateTime: Date;
80
80
  /**
81
81
  *
82
82
  * @type {boolean}
@@ -111,6 +111,7 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
111
111
  if (!('state' in value) || value['state'] === undefined) return false;
112
112
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
113
113
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
114
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
114
115
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
115
116
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
116
117
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -133,7 +134,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
133
134
  'state': json['state'],
134
135
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
135
136
  'startDateTime': (new Date(json['startDateTime'])),
136
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
137
+ 'finishDateTime': (new Date(json['finishDateTime'])),
137
138
  'isCompliant': json['isCompliant'],
138
139
  'isComplete': json['isComplete'],
139
140
  'signOffStatus': json['signOffStatus'],
@@ -157,7 +158,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
157
158
  'state': value['state'],
158
159
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
159
160
  'startDateTime': ((value['startDateTime']).toISOString()),
160
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
161
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
161
162
  'isCompliant': value['isCompliant'],
162
163
  'isComplete': value['isComplete'],
163
164
  'signOffStatus': value['signOffStatus'],
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email?: string | null;
47
+ email: string;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,6 +82,7 @@ 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;
85
86
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
86
87
  if (!('address' in value) || value['address'] === undefined) return false;
87
88
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -100,7 +101,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
100
101
 
101
102
  'id': json['id'] == null ? undefined : json['id'],
102
103
  'name': json['name'],
103
- 'email': json['email'] == null ? undefined : json['email'],
104
+ 'email': json['email'],
104
105
  'isEnabled': json['isEnabled'],
105
106
  'address': AddressResourceFromJSON(json['address']),
106
107
  'licenceNumber': json['licenceNumber'],
@@ -10,7 +10,6 @@ export * from './AssetResource';
10
10
  export * from './AssetResourceArrayResponse';
11
11
  export * from './AuthChangePasswordRequest';
12
12
  export * from './AuthProfileUpdateRequest';
13
- export * from './AuthRegisterGuardRequest';
14
13
  export * from './CurrentRegisterResource';
15
14
  export * from './CurrentRegisterResourceArrayResponse';
16
15
  export * from './DevicesRegisterRequest';
@@ -1,256 +0,0 @@
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 AuthRegisterGuardRequest
16
- */
17
- export interface AuthRegisterGuardRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AuthRegisterGuardRequest
22
- */
23
- firstName: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AuthRegisterGuardRequest
28
- */
29
- lastName: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AuthRegisterGuardRequest
34
- */
35
- email: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof AuthRegisterGuardRequest
40
- */
41
- mobile: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof AuthRegisterGuardRequest
46
- */
47
- password: string;
48
- /**
49
- *
50
- * @type {Array<string>}
51
- * @memberof AuthRegisterGuardRequest
52
- */
53
- profileSignature: Array<string>;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof AuthRegisterGuardRequest
58
- */
59
- profileSignatureFileId?: number;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof AuthRegisterGuardRequest
64
- */
65
- profileSignatureFileName?: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof AuthRegisterGuardRequest
70
- */
71
- profileSignatureMimeType?: string;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof AuthRegisterGuardRequest
76
- */
77
- profileSignatureAltText?: string;
78
- /**
79
- *
80
- * @type {Array<string>}
81
- * @memberof AuthRegisterGuardRequest
82
- */
83
- licence: Array<string>;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof AuthRegisterGuardRequest
88
- */
89
- licenceState: AuthRegisterGuardRequestLicenceStateEnum;
90
- /**
91
- *
92
- * @type {string}
93
- * @memberof AuthRegisterGuardRequest
94
- */
95
- licenceLicenceNumber: string;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof AuthRegisterGuardRequest
100
- */
101
- licenceFirstName: string;
102
- /**
103
- *
104
- * @type {string}
105
- * @memberof AuthRegisterGuardRequest
106
- */
107
- licenceLastName: string;
108
- /**
109
- *
110
- * @type {Date}
111
- * @memberof AuthRegisterGuardRequest
112
- */
113
- licenceExpiryDate: Date;
114
- /**
115
- *
116
- * @type {Array<string>}
117
- * @memberof AuthRegisterGuardRequest
118
- */
119
- licenceFrontAsset: Array<string>;
120
- /**
121
- *
122
- * @type {number}
123
- * @memberof AuthRegisterGuardRequest
124
- */
125
- licenceFrontAssetFileId?: number;
126
- /**
127
- *
128
- * @type {string}
129
- * @memberof AuthRegisterGuardRequest
130
- */
131
- licenceFrontAssetFileName?: string;
132
- /**
133
- *
134
- * @type {string}
135
- * @memberof AuthRegisterGuardRequest
136
- */
137
- licenceFrontAssetMimeType?: string;
138
- /**
139
- *
140
- * @type {string}
141
- * @memberof AuthRegisterGuardRequest
142
- */
143
- licenceFrontAssetAltText?: string;
144
- /**
145
- *
146
- * @type {Array<string>}
147
- * @memberof AuthRegisterGuardRequest
148
- */
149
- licenceBackAsset?: Array<string>;
150
- /**
151
- *
152
- * @type {number}
153
- * @memberof AuthRegisterGuardRequest
154
- */
155
- licenceBackAssetFileId?: number;
156
- /**
157
- *
158
- * @type {string}
159
- * @memberof AuthRegisterGuardRequest
160
- */
161
- licenceBackAssetFileName?: string;
162
- /**
163
- *
164
- * @type {string}
165
- * @memberof AuthRegisterGuardRequest
166
- */
167
- licenceBackAssetMimeType?: string;
168
- /**
169
- *
170
- * @type {string}
171
- * @memberof AuthRegisterGuardRequest
172
- */
173
- licenceBackAssetAltText?: string;
174
- /**
175
- *
176
- * @type {Array<string>}
177
- * @memberof AuthRegisterGuardRequest
178
- */
179
- licenceRsaAsset?: Array<string>;
180
- /**
181
- *
182
- * @type {number}
183
- * @memberof AuthRegisterGuardRequest
184
- */
185
- licenceRsaAssetFileId?: number;
186
- /**
187
- *
188
- * @type {string}
189
- * @memberof AuthRegisterGuardRequest
190
- */
191
- licenceRsaAssetFileName?: string;
192
- /**
193
- *
194
- * @type {string}
195
- * @memberof AuthRegisterGuardRequest
196
- */
197
- licenceRsaAssetMimeType?: string;
198
- /**
199
- *
200
- * @type {string}
201
- * @memberof AuthRegisterGuardRequest
202
- */
203
- licenceRsaAssetAltText?: string;
204
- /**
205
- *
206
- * @type {Array<string>}
207
- * @memberof AuthRegisterGuardRequest
208
- */
209
- licenceFirstAidAsset?: Array<string>;
210
- /**
211
- *
212
- * @type {number}
213
- * @memberof AuthRegisterGuardRequest
214
- */
215
- licenceFirstAidAssetFileId?: number;
216
- /**
217
- *
218
- * @type {string}
219
- * @memberof AuthRegisterGuardRequest
220
- */
221
- licenceFirstAidAssetFileName?: string;
222
- /**
223
- *
224
- * @type {string}
225
- * @memberof AuthRegisterGuardRequest
226
- */
227
- licenceFirstAidAssetMimeType?: string;
228
- /**
229
- *
230
- * @type {string}
231
- * @memberof AuthRegisterGuardRequest
232
- */
233
- licenceFirstAidAssetAltText?: string;
234
- }
235
- /**
236
- * @export
237
- */
238
- export declare const AuthRegisterGuardRequestLicenceStateEnum: {
239
- readonly Qld: "QLD";
240
- readonly Nsw: "NSW";
241
- readonly Act: "ACT";
242
- readonly Vic: "VIC";
243
- readonly Tas: "TAS";
244
- readonly Sa: "SA";
245
- readonly Wa: "WA";
246
- readonly Nt: "NT";
247
- };
248
- export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
249
- /**
250
- * Check if a given object implements the AuthRegisterGuardRequest interface.
251
- */
252
- export declare function instanceOfAuthRegisterGuardRequest(value: object): value is AuthRegisterGuardRequest;
253
- export declare function AuthRegisterGuardRequestFromJSON(json: any): AuthRegisterGuardRequest;
254
- export declare function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequest;
255
- export declare function AuthRegisterGuardRequestToJSON(json: any): AuthRegisterGuardRequest;
256
- export declare function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,159 +0,0 @@
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.AuthRegisterGuardRequestLicenceStateEnum = void 0;
17
- exports.instanceOfAuthRegisterGuardRequest = instanceOfAuthRegisterGuardRequest;
18
- exports.AuthRegisterGuardRequestFromJSON = AuthRegisterGuardRequestFromJSON;
19
- exports.AuthRegisterGuardRequestFromJSONTyped = AuthRegisterGuardRequestFromJSONTyped;
20
- exports.AuthRegisterGuardRequestToJSON = AuthRegisterGuardRequestToJSON;
21
- exports.AuthRegisterGuardRequestToJSONTyped = AuthRegisterGuardRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.AuthRegisterGuardRequestLicenceStateEnum = {
26
- Qld: 'QLD',
27
- Nsw: 'NSW',
28
- Act: 'ACT',
29
- Vic: 'VIC',
30
- Tas: 'TAS',
31
- Sa: 'SA',
32
- Wa: 'WA',
33
- Nt: 'NT'
34
- };
35
- /**
36
- * Check if a given object implements the AuthRegisterGuardRequest interface.
37
- */
38
- function instanceOfAuthRegisterGuardRequest(value) {
39
- if (!('firstName' in value) || value['firstName'] === undefined)
40
- return false;
41
- if (!('lastName' in value) || value['lastName'] === undefined)
42
- return false;
43
- if (!('email' in value) || value['email'] === undefined)
44
- return false;
45
- if (!('mobile' in value) || value['mobile'] === undefined)
46
- return false;
47
- if (!('password' in value) || value['password'] === undefined)
48
- return false;
49
- if (!('profileSignature' in value) || value['profileSignature'] === undefined)
50
- return false;
51
- if (!('licence' in value) || value['licence'] === undefined)
52
- return false;
53
- if (!('licenceState' in value) || value['licenceState'] === undefined)
54
- return false;
55
- if (!('licenceLicenceNumber' in value) || value['licenceLicenceNumber'] === undefined)
56
- return false;
57
- if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
58
- return false;
59
- if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
60
- return false;
61
- if (!('licenceExpiryDate' in value) || value['licenceExpiryDate'] === undefined)
62
- return false;
63
- if (!('licenceFrontAsset' in value) || value['licenceFrontAsset'] === undefined)
64
- return false;
65
- return true;
66
- }
67
- function AuthRegisterGuardRequestFromJSON(json) {
68
- return AuthRegisterGuardRequestFromJSONTyped(json, false);
69
- }
70
- function AuthRegisterGuardRequestFromJSONTyped(json, ignoreDiscriminator) {
71
- if (json == null) {
72
- return json;
73
- }
74
- return {
75
- 'firstName': json['first_name'],
76
- 'lastName': json['last_name'],
77
- 'email': json['email'],
78
- 'mobile': json['mobile'],
79
- 'password': json['password'],
80
- 'profileSignature': json['profile_signature'],
81
- 'profileSignatureFileId': json['profile_signature.file_id'] == null ? undefined : json['profile_signature.file_id'],
82
- 'profileSignatureFileName': json['profile_signature.file_name'] == null ? undefined : json['profile_signature.file_name'],
83
- 'profileSignatureMimeType': json['profile_signature.mime_type'] == null ? undefined : json['profile_signature.mime_type'],
84
- 'profileSignatureAltText': json['profile_signature.alt_text'] == null ? undefined : json['profile_signature.alt_text'],
85
- 'licence': json['licence'],
86
- 'licenceState': json['licence.state'],
87
- 'licenceLicenceNumber': json['licence.licence_number'],
88
- 'licenceFirstName': json['licence.first_name'],
89
- 'licenceLastName': json['licence.last_name'],
90
- 'licenceExpiryDate': (new Date(json['licence.expiry_date'])),
91
- 'licenceFrontAsset': json['licence.front_asset'],
92
- 'licenceFrontAssetFileId': json['licence.front_asset.file_id'] == null ? undefined : json['licence.front_asset.file_id'],
93
- 'licenceFrontAssetFileName': json['licence.front_asset.file_name'] == null ? undefined : json['licence.front_asset.file_name'],
94
- 'licenceFrontAssetMimeType': json['licence.front_asset.mime_type'] == null ? undefined : json['licence.front_asset.mime_type'],
95
- 'licenceFrontAssetAltText': json['licence.front_asset.alt_text'] == null ? undefined : json['licence.front_asset.alt_text'],
96
- 'licenceBackAsset': json['licence.back_asset'] == null ? undefined : json['licence.back_asset'],
97
- 'licenceBackAssetFileId': json['licence.back_asset.file_id'] == null ? undefined : json['licence.back_asset.file_id'],
98
- 'licenceBackAssetFileName': json['licence.back_asset.file_name'] == null ? undefined : json['licence.back_asset.file_name'],
99
- 'licenceBackAssetMimeType': json['licence.back_asset.mime_type'] == null ? undefined : json['licence.back_asset.mime_type'],
100
- 'licenceBackAssetAltText': json['licence.back_asset.alt_text'] == null ? undefined : json['licence.back_asset.alt_text'],
101
- 'licenceRsaAsset': json['licence.rsa_asset'] == null ? undefined : json['licence.rsa_asset'],
102
- 'licenceRsaAssetFileId': json['licence.rsa_asset.file_id'] == null ? undefined : json['licence.rsa_asset.file_id'],
103
- 'licenceRsaAssetFileName': json['licence.rsa_asset.file_name'] == null ? undefined : json['licence.rsa_asset.file_name'],
104
- 'licenceRsaAssetMimeType': json['licence.rsa_asset.mime_type'] == null ? undefined : json['licence.rsa_asset.mime_type'],
105
- 'licenceRsaAssetAltText': json['licence.rsa_asset.alt_text'] == null ? undefined : json['licence.rsa_asset.alt_text'],
106
- 'licenceFirstAidAsset': json['licence.first_aid_asset'] == null ? undefined : json['licence.first_aid_asset'],
107
- 'licenceFirstAidAssetFileId': json['licence.first_aid_asset.file_id'] == null ? undefined : json['licence.first_aid_asset.file_id'],
108
- 'licenceFirstAidAssetFileName': json['licence.first_aid_asset.file_name'] == null ? undefined : json['licence.first_aid_asset.file_name'],
109
- 'licenceFirstAidAssetMimeType': json['licence.first_aid_asset.mime_type'] == null ? undefined : json['licence.first_aid_asset.mime_type'],
110
- 'licenceFirstAidAssetAltText': json['licence.first_aid_asset.alt_text'] == null ? undefined : json['licence.first_aid_asset.alt_text'],
111
- };
112
- }
113
- function AuthRegisterGuardRequestToJSON(json) {
114
- return AuthRegisterGuardRequestToJSONTyped(json, false);
115
- }
116
- function AuthRegisterGuardRequestToJSONTyped(value, ignoreDiscriminator) {
117
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
118
- if (value == null) {
119
- return value;
120
- }
121
- return {
122
- 'first_name': value['firstName'],
123
- 'last_name': value['lastName'],
124
- 'email': value['email'],
125
- 'mobile': value['mobile'],
126
- 'password': value['password'],
127
- 'profile_signature': value['profileSignature'],
128
- 'profile_signature.file_id': value['profileSignatureFileId'],
129
- 'profile_signature.file_name': value['profileSignatureFileName'],
130
- 'profile_signature.mime_type': value['profileSignatureMimeType'],
131
- 'profile_signature.alt_text': value['profileSignatureAltText'],
132
- 'licence': value['licence'],
133
- 'licence.state': value['licenceState'],
134
- 'licence.licence_number': value['licenceLicenceNumber'],
135
- 'licence.first_name': value['licenceFirstName'],
136
- 'licence.last_name': value['licenceLastName'],
137
- 'licence.expiry_date': ((value['licenceExpiryDate']).toISOString()),
138
- 'licence.front_asset': value['licenceFrontAsset'],
139
- 'licence.front_asset.file_id': value['licenceFrontAssetFileId'],
140
- 'licence.front_asset.file_name': value['licenceFrontAssetFileName'],
141
- 'licence.front_asset.mime_type': value['licenceFrontAssetMimeType'],
142
- 'licence.front_asset.alt_text': value['licenceFrontAssetAltText'],
143
- 'licence.back_asset': value['licenceBackAsset'],
144
- 'licence.back_asset.file_id': value['licenceBackAssetFileId'],
145
- 'licence.back_asset.file_name': value['licenceBackAssetFileName'],
146
- 'licence.back_asset.mime_type': value['licenceBackAssetMimeType'],
147
- 'licence.back_asset.alt_text': value['licenceBackAssetAltText'],
148
- 'licence.rsa_asset': value['licenceRsaAsset'],
149
- 'licence.rsa_asset.file_id': value['licenceRsaAssetFileId'],
150
- 'licence.rsa_asset.file_name': value['licenceRsaAssetFileName'],
151
- 'licence.rsa_asset.mime_type': value['licenceRsaAssetMimeType'],
152
- 'licence.rsa_asset.alt_text': value['licenceRsaAssetAltText'],
153
- 'licence.first_aid_asset': value['licenceFirstAidAsset'],
154
- 'licence.first_aid_asset.file_id': value['licenceFirstAidAssetFileId'],
155
- 'licence.first_aid_asset.file_name': value['licenceFirstAidAssetFileName'],
156
- 'licence.first_aid_asset.mime_type': value['licenceFirstAidAssetMimeType'],
157
- 'licence.first_aid_asset.alt_text': value['licenceFirstAidAssetAltText'],
158
- };
159
- }