@digital8/security-registers-backend-ts-sdk 0.0.660 → 0.0.661

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.660
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.661
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.660 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.661 --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'],
@@ -160,7 +160,7 @@ export interface RegisterListResource {
160
160
  * @type {number}
161
161
  * @memberof RegisterListResource
162
162
  */
163
- signOffLong: number;
163
+ signOffLong?: number | null;
164
164
  /**
165
165
  *
166
166
  * @type {boolean}
@@ -73,8 +73,6 @@ function instanceOfRegisterListResource(value) {
73
73
  return false;
74
74
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
75
75
  return false;
76
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
77
- return false;
78
76
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
79
77
  return false;
80
78
  return true;
@@ -110,7 +108,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
110
108
  'signOnLat': json['signOnLat'],
111
109
  'signOnLong': json['signOnLong'],
112
110
  'signOffLat': json['signOffLat'],
113
- 'signOffLong': json['signOffLong'],
111
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
114
112
  'hasIncidents': json['hasIncidents'],
115
113
  };
116
114
  }
@@ -38,7 +38,7 @@ export interface StoreUserRequest {
38
38
  * @type {string}
39
39
  * @memberof StoreUserRequest
40
40
  */
41
- mobile: string;
41
+ mobile?: string;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the StoreUserRequest interface.
@@ -28,8 +28,6 @@ function instanceOfStoreUserRequest(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
- if (!('mobile' in value) || value['mobile'] === undefined)
32
- return false;
33
31
  return true;
34
32
  }
35
33
  function StoreUserRequestFromJSON(json) {
@@ -43,7 +41,7 @@ function StoreUserRequestFromJSONTyped(json, ignoreDiscriminator) {
43
41
  'firstName': json['first_name'],
44
42
  'lastName': json['last_name'],
45
43
  'email': json['email'],
46
- 'mobile': json['mobile'],
44
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
47
45
  };
48
46
  }
49
47
  function StoreUserRequestToJSON(json) {
@@ -38,7 +38,7 @@ export interface UpdateUserRequest {
38
38
  * @type {string}
39
39
  * @memberof UpdateUserRequest
40
40
  */
41
- mobile: string;
41
+ mobile?: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -34,8 +34,6 @@ exports.UpdateUserRequestRolesEnum = {
34
34
  function instanceOfUpdateUserRequest(value) {
35
35
  if (!('email' in value) || value['email'] === undefined)
36
36
  return false;
37
- if (!('mobile' in value) || value['mobile'] === undefined)
38
- return false;
39
37
  return true;
40
38
  }
41
39
  function UpdateUserRequestFromJSON(json) {
@@ -49,7 +47,7 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
49
47
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
50
48
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
51
49
  'email': json['email'],
52
- 'mobile': json['mobile'],
50
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
53
51
  'password': json['password'] == null ? undefined : json['password'],
54
52
  'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
55
53
  'roles': json['roles'] == null ? undefined : json['roles'],
@@ -39,7 +39,7 @@ export interface UsersCreateWithRoleRequest {
39
39
  * @type {string}
40
40
  * @memberof UsersCreateWithRoleRequest
41
41
  */
42
- mobile: string;
42
+ mobile?: string;
43
43
  /**
44
44
  *
45
45
  * @type {string}
@@ -40,8 +40,6 @@ function instanceOfUsersCreateWithRoleRequest(value) {
40
40
  return false;
41
41
  if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
- if (!('mobile' in value) || value['mobile'] === undefined)
44
- return false;
45
43
  if (!('password' in value) || value['password'] === undefined)
46
44
  return false;
47
45
  if (!('roles' in value) || value['roles'] === undefined)
@@ -59,7 +57,7 @@ function UsersCreateWithRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
59
57
  'firstName': json['first_name'],
60
58
  'lastName': json['last_name'],
61
59
  'email': json['email'],
62
- 'mobile': json['mobile'],
60
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
63
61
  'password': json['password'],
64
62
  'roles': json['roles'],
65
63
  'venueIds': json['venue_ids'] == null ? undefined : json['venue_ids'],
@@ -38,7 +38,7 @@ export interface UsersRegisterVenueManagerRequest {
38
38
  * @type {string}
39
39
  * @memberof UsersRegisterVenueManagerRequest
40
40
  */
41
- mobile: string;
41
+ mobile?: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -42,8 +42,6 @@ function instanceOfUsersRegisterVenueManagerRequest(value) {
42
42
  return false;
43
43
  if (!('email' in value) || value['email'] === undefined)
44
44
  return false;
45
- if (!('mobile' in value) || value['mobile'] === undefined)
46
- return false;
47
45
  if (!('password' in value) || value['password'] === undefined)
48
46
  return false;
49
47
  return true;
@@ -59,7 +57,7 @@ function UsersRegisterVenueManagerRequestFromJSONTyped(json, ignoreDiscriminator
59
57
  'firstName': json['first_name'],
60
58
  'lastName': json['last_name'],
61
59
  'email': json['email'],
62
- 'mobile': json['mobile'],
60
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
63
61
  'password': json['password'],
64
62
  'existingVenueCode': json['existing_venue_code'] == null ? undefined : json['existing_venue_code'],
65
63
  'name': json['name'] == null ? undefined : json['name'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.660",
3
+ "version": "0.0.661",
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'],
@@ -177,7 +177,7 @@ export interface RegisterListResource {
177
177
  * @type {number}
178
178
  * @memberof RegisterListResource
179
179
  */
180
- signOffLong: number;
180
+ signOffLong?: number | null;
181
181
  /**
182
182
  *
183
183
  * @type {boolean}
@@ -222,7 +222,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
222
222
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
223
223
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
224
224
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
225
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
226
225
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
227
226
  return true;
228
227
  }
@@ -260,7 +259,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
260
259
  'signOnLat': json['signOnLat'],
261
260
  'signOnLong': json['signOnLong'],
262
261
  'signOffLat': json['signOffLat'],
263
- 'signOffLong': json['signOffLong'],
262
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
264
263
  'hasIncidents': json['hasIncidents'],
265
264
  };
266
265
  }
@@ -42,7 +42,7 @@ export interface StoreUserRequest {
42
42
  * @type {string}
43
43
  * @memberof StoreUserRequest
44
44
  */
45
- mobile: string;
45
+ mobile?: string;
46
46
  }
47
47
 
48
48
  /**
@@ -52,7 +52,6 @@ export function instanceOfStoreUserRequest(value: object): value is StoreUserReq
52
52
  if (!('firstName' in value) || value['firstName'] === undefined) return false;
53
53
  if (!('lastName' in value) || value['lastName'] === undefined) return false;
54
54
  if (!('email' in value) || value['email'] === undefined) return false;
55
- if (!('mobile' in value) || value['mobile'] === undefined) return false;
56
55
  return true;
57
56
  }
58
57
 
@@ -69,7 +68,7 @@ export function StoreUserRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
69
68
  'firstName': json['first_name'],
70
69
  'lastName': json['last_name'],
71
70
  'email': json['email'],
72
- 'mobile': json['mobile'],
71
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
73
72
  };
74
73
  }
75
74
 
@@ -42,7 +42,7 @@ export interface UpdateUserRequest {
42
42
  * @type {string}
43
43
  * @memberof UpdateUserRequest
44
44
  */
45
- mobile: string;
45
+ mobile?: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -81,7 +81,6 @@ export type UpdateUserRequestRolesEnum = typeof UpdateUserRequestRolesEnum[keyof
81
81
  */
82
82
  export function instanceOfUpdateUserRequest(value: object): value is UpdateUserRequest {
83
83
  if (!('email' in value) || value['email'] === undefined) return false;
84
- if (!('mobile' in value) || value['mobile'] === undefined) return false;
85
84
  return true;
86
85
  }
87
86
 
@@ -98,7 +97,7 @@ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: b
98
97
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
99
98
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
100
99
  'email': json['email'],
101
- 'mobile': json['mobile'],
100
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
102
101
  'password': json['password'] == null ? undefined : json['password'],
103
102
  'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
104
103
  'roles': json['roles'] == null ? undefined : json['roles'],
@@ -50,7 +50,7 @@ export interface UsersCreateWithRoleRequest {
50
50
  * @type {string}
51
51
  * @memberof UsersCreateWithRoleRequest
52
52
  */
53
- mobile: string;
53
+ mobile?: string;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -110,7 +110,6 @@ export function instanceOfUsersCreateWithRoleRequest(value: object): value is Us
110
110
  if (!('firstName' in value) || value['firstName'] === undefined) return false;
111
111
  if (!('lastName' in value) || value['lastName'] === undefined) return false;
112
112
  if (!('email' in value) || value['email'] === undefined) return false;
113
- if (!('mobile' in value) || value['mobile'] === undefined) return false;
114
113
  if (!('password' in value) || value['password'] === undefined) return false;
115
114
  if (!('roles' in value) || value['roles'] === undefined) return false;
116
115
  return true;
@@ -129,7 +128,7 @@ export function UsersCreateWithRoleRequestFromJSONTyped(json: any, ignoreDiscrim
129
128
  'firstName': json['first_name'],
130
129
  'lastName': json['last_name'],
131
130
  'email': json['email'],
132
- 'mobile': json['mobile'],
131
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
133
132
  'password': json['password'],
134
133
  'roles': json['roles'],
135
134
  'venueIds': json['venue_ids'] == null ? undefined : json['venue_ids'],
@@ -42,7 +42,7 @@ export interface UsersRegisterVenueManagerRequest {
42
42
  * @type {string}
43
43
  * @memberof UsersRegisterVenueManagerRequest
44
44
  */
45
- mobile: string;
45
+ mobile?: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -183,7 +183,6 @@ export function instanceOfUsersRegisterVenueManagerRequest(value: object): value
183
183
  if (!('firstName' in value) || value['firstName'] === undefined) return false;
184
184
  if (!('lastName' in value) || value['lastName'] === undefined) return false;
185
185
  if (!('email' in value) || value['email'] === undefined) return false;
186
- if (!('mobile' in value) || value['mobile'] === undefined) return false;
187
186
  if (!('password' in value) || value['password'] === undefined) return false;
188
187
  return true;
189
188
  }
@@ -201,7 +200,7 @@ export function UsersRegisterVenueManagerRequestFromJSONTyped(json: any, ignoreD
201
200
  'firstName': json['first_name'],
202
201
  'lastName': json['last_name'],
203
202
  'email': json['email'],
204
- 'mobile': json['mobile'],
203
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
205
204
  'password': json['password'],
206
205
  'existingVenueCode': json['existing_venue_code'] == null ? undefined : json['existing_venue_code'],
207
206
  'name': json['name'] == null ? undefined : json['name'],