@digital8/security-registers-backend-ts-sdk 0.0.495 → 0.0.497

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.495
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.497
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.495 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.497 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText: string;
47
+ altText?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,8 +30,6 @@ 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;
35
33
  if (!('index' in value) || value['index'] === undefined)
36
34
  return false;
37
35
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
52
50
  'filePath': json['filePath'],
53
51
  'fileName': json['fileName'],
54
52
  'mimeType': json['mimeType'],
55
- 'altText': json['altText'],
53
+ 'altText': json['altText'] == null ? undefined : json['altText'],
56
54
  'index': json['index'],
57
55
  'fileId': json['fileId'],
58
56
  'isExternal': json['isExternal'],
@@ -154,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLong: number;
157
+ signOffLong?: number | null;
158
158
  /**
159
159
  *
160
160
  * @type {boolean}
@@ -67,8 +67,6 @@ function instanceOfRegisterListResource(value) {
67
67
  return false;
68
68
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
69
69
  return false;
70
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
71
- return false;
72
70
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
73
71
  return false;
74
72
  return true;
@@ -103,7 +101,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
103
101
  'signOnLat': json['signOnLat'],
104
102
  'signOnLong': json['signOnLong'],
105
103
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
106
- 'signOffLong': json['signOffLong'],
104
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
107
105
  'hasIncidents': json['hasIncidents'],
108
106
  };
109
107
  }
@@ -112,7 +112,7 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong?: number | null;
115
+ signOffLong: number;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -57,6 +57,8 @@ 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;
60
62
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
61
63
  return false;
62
64
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -90,7 +92,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
90
92
  'signOnLat': json['signOnLat'],
91
93
  'signOnLong': json['signOnLong'],
92
94
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
93
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
95
+ 'signOffLong': json['signOffLong'],
94
96
  'licenceNumber': json['licenceNumber'],
95
97
  'licenceExpiry': json['licenceExpiry'],
96
98
  'licenceFirstName': json['licenceFirstName'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.495",
3
+ "version": "0.0.497",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText: string;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,7 +83,6 @@ 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;
87
86
  if (!('index' in value) || value['index'] === undefined) return false;
88
87
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
89
88
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
104
103
  'filePath': json['filePath'],
105
104
  'fileName': json['fileName'],
106
105
  'mimeType': json['mimeType'],
107
- 'altText': json['altText'],
106
+ 'altText': json['altText'] == null ? undefined : json['altText'],
108
107
  'index': json['index'],
109
108
  'fileId': json['fileId'],
110
109
  'isExternal': json['isExternal'],
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLong: number;
174
+ signOffLong?: number | null;
175
175
  /**
176
176
  *
177
177
  * @type {boolean}
@@ -213,7 +213,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
213
213
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
214
214
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
215
215
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
216
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
217
216
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
218
217
  return true;
219
218
  }
@@ -250,7 +249,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
250
249
  'signOnLat': json['signOnLat'],
251
250
  'signOnLong': json['signOnLong'],
252
251
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
253
- 'signOffLong': json['signOffLong'],
252
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
254
253
  'hasIncidents': json['hasIncidents'],
255
254
  };
256
255
  }
@@ -129,7 +129,7 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong?: number | null;
132
+ signOffLong: number;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -208,6 +208,7 @@ 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;
211
212
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
212
213
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
213
214
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -240,7 +241,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
240
241
  'signOnLat': json['signOnLat'],
241
242
  'signOnLong': json['signOnLong'],
242
243
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
243
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
244
+ 'signOffLong': json['signOffLong'],
244
245
  'licenceNumber': json['licenceNumber'],
245
246
  'licenceExpiry': json['licenceExpiry'],
246
247
  'licenceFirstName': json['licenceFirstName'],