@digital8/security-registers-backend-ts-sdk 0.0.626 → 0.0.627

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.626
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.627
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.626 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.627 --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 | 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'],
@@ -154,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLat?: number | null;
157
+ signOffLat: number;
158
158
  /**
159
159
  *
160
160
  * @type {number}
@@ -71,6 +71,8 @@ function instanceOfRegisterListResource(value) {
71
71
  return false;
72
72
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
73
73
  return false;
74
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
75
+ return false;
74
76
  if (!('signOffLong' in value) || value['signOffLong'] === undefined)
75
77
  return false;
76
78
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
@@ -107,7 +109,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
107
109
  'firstAid': json['firstAid'],
108
110
  'signOnLat': json['signOnLat'],
109
111
  'signOnLong': json['signOnLong'],
110
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
112
+ 'signOffLat': json['signOffLat'],
111
113
  'signOffLong': json['signOffLong'],
112
114
  'hasIncidents': json['hasIncidents'],
113
115
  };
@@ -112,13 +112,13 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLat: number;
115
+ signOffLat?: number | null;
116
116
  /**
117
117
  *
118
118
  * @type {number}
119
119
  * @memberof RegisterResource
120
120
  */
121
- signOffLong: number;
121
+ signOffLong?: number | null;
122
122
  /**
123
123
  *
124
124
  * @type {string}
@@ -59,10 +59,6 @@ function instanceOfRegisterResource(value) {
59
59
  return false;
60
60
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
61
61
  return false;
62
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
63
- return false;
64
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
65
- return false;
66
62
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
67
63
  return false;
68
64
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -98,8 +94,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
98
94
  'firstAidImage': json['firstAidImage'],
99
95
  'signOnLat': json['signOnLat'],
100
96
  'signOnLong': json['signOnLong'],
101
- 'signOffLat': json['signOffLat'],
102
- 'signOffLong': json['signOffLong'],
97
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
98
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
103
99
  'licenceNumber': json['licenceNumber'],
104
100
  'licenceExpiry': json['licenceExpiry'],
105
101
  '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.626",
3
+ "version": "0.0.627",
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 | 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'],
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLat?: number | null;
174
+ signOffLat: number;
175
175
  /**
176
176
  *
177
177
  * @type {number}
@@ -221,6 +221,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
221
221
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
222
222
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
223
223
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
224
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
224
225
  if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
225
226
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
226
227
  return true;
@@ -258,7 +259,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
258
259
  'firstAid': json['firstAid'],
259
260
  'signOnLat': json['signOnLat'],
260
261
  'signOnLong': json['signOnLong'],
261
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
262
+ 'signOffLat': json['signOffLat'],
262
263
  'signOffLong': json['signOffLong'],
263
264
  'hasIncidents': json['hasIncidents'],
264
265
  };
@@ -129,13 +129,13 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLat: number;
132
+ signOffLat?: number | null;
133
133
  /**
134
134
  *
135
135
  * @type {number}
136
136
  * @memberof RegisterResource
137
137
  */
138
- signOffLong: number;
138
+ signOffLong?: number | null;
139
139
  /**
140
140
  *
141
141
  * @type {string}
@@ -215,8 +215,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
215
215
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
216
216
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
217
217
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
218
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
219
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
220
218
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
221
219
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
222
220
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -250,8 +248,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
250
248
  'firstAidImage': json['firstAidImage'],
251
249
  'signOnLat': json['signOnLat'],
252
250
  'signOnLong': json['signOnLong'],
253
- 'signOffLat': json['signOffLat'],
254
- 'signOffLong': json['signOffLong'],
251
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
252
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
255
253
  'licenceNumber': json['licenceNumber'],
256
254
  'licenceExpiry': json['licenceExpiry'],
257
255
  'licenceFirstName': json['licenceFirstName'],