@@ -13,6 +13,7 @@ export const [AccountEntityMetadata, createAccountAssignEntity] =
13
13
name : SchemaType . String ( ) ,
14
14
displayName : SchemaType . String ( ) ,
15
15
description : SchemaType . Optional ( SchemaType . String ( ) ) ,
16
+ vendor : SchemaType . String ( ) ,
16
17
} ) ,
17
18
} ) ;
18
19
@@ -33,18 +34,30 @@ export const [LocationEntityMetadata, createLocationAssignEntity] =
33
34
description : 'Snipe-IT Location' ,
34
35
schema : SchemaType . Object ( {
35
36
locationId : SchemaType . Number ( ) ,
36
- image : SchemaType . Optional ( SchemaType . String ( ) ) ,
37
- address : SchemaType . Optional ( SchemaType . String ( ) ) ,
38
- address2 : SchemaType . Optional ( SchemaType . String ( ) ) ,
37
+ image : SchemaType . Optional (
38
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
39
+ ) ,
40
+ address : SchemaType . Optional (
41
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
42
+ ) ,
43
+ address2 : SchemaType . Optional (
44
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
45
+ ) ,
39
46
city : SchemaType . String ( ) ,
40
- state : SchemaType . Optional ( SchemaType . String ( ) ) ,
47
+ state : SchemaType . Optional (
48
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
49
+ ) ,
41
50
country : SchemaType . String ( ) ,
42
- zip : SchemaType . Optional ( SchemaType . String ( ) ) ,
51
+ zip : SchemaType . Optional (
52
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
53
+ ) ,
43
54
assignedAssetsCount : SchemaType . Number ( ) ,
44
55
assetsCount : SchemaType . Number ( ) ,
45
56
rtdAssetsCount : SchemaType . Number ( ) ,
46
57
usersCount : SchemaType . Number ( ) ,
47
- currency : SchemaType . Optional ( SchemaType . String ( ) ) ,
58
+ currency : SchemaType . Optional (
59
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
60
+ ) ,
48
61
isUpdateActionAvailable : SchemaType . Optional ( SchemaType . Boolean ( ) ) ,
49
62
isDeleteActionAvailable : SchemaType . Optional ( SchemaType . Boolean ( ) ) ,
50
63
isCloneActionAvailable : SchemaType . Optional ( SchemaType . Boolean ( ) ) ,
@@ -78,7 +91,9 @@ export const [HardwareEntityMetadata, createHardwareAssignEntity] =
78
91
locationId : SchemaType . Optional ( SchemaType . Number ( ) ) ,
79
92
statusMeta : SchemaType . String ( SchemaType . String ( ) ) ,
80
93
statusName : SchemaType . String ( SchemaType . String ( ) ) ,
81
- purchaseCost : SchemaType . Optional ( SchemaType . String ( ) ) ,
94
+ purchaseCost : SchemaType . Optional (
95
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
96
+ ) ,
82
97
} ) ,
83
98
} ) ;
84
99
@@ -90,7 +105,9 @@ export const [ConsumableEntityMetadata, createConsumableAssignEntity] =
90
105
description : 'Snipe-IT Consumable' ,
91
106
schema : SchemaType . Object ( {
92
107
consumableId : SchemaType . Number ( ) ,
93
- image : SchemaType . Optional ( SchemaType . String ( ) ) ,
108
+ image : SchemaType . Optional (
109
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
110
+ ) ,
94
111
'category.id' : SchemaType . Optional (
95
112
SchemaType . Number ( {
96
113
deprecated : true ,
@@ -129,10 +146,14 @@ export const [ConsumableEntityMetadata, createConsumableAssignEntity] =
129
146
'manufacturer.name' : SchemaType . Optional ( SchemaType . String ( ) ) ,
130
147
manufacturerName : SchemaType . Optional ( SchemaType . String ( ) ) ,
131
148
minAmt : SchemaType . Optional ( SchemaType . Number ( ) ) ,
132
- modelNumber : SchemaType . Optional ( SchemaType . String ( ) ) ,
149
+ modelNumber : SchemaType . Optional (
150
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
151
+ ) ,
133
152
remaining : SchemaType . Optional ( SchemaType . Number ( ) ) ,
134
153
orderNumber : SchemaType . Optional ( SchemaType . String ( ) ) ,
135
- purchaseCost : SchemaType . Optional ( SchemaType . String ( ) ) ,
154
+ purchaseCost : SchemaType . Optional (
155
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
156
+ ) ,
136
157
purchaseDate : SchemaType . Optional ( SchemaType . Number ( ) ) ,
137
158
qty : SchemaType . Optional ( SchemaType . Number ( ) ) ,
138
159
notes : SchemaType . Optional ( SchemaType . Array ( SchemaType . String ( ) ) ) ,
@@ -187,7 +208,9 @@ export const [LicenseEntityMetadata, createLicenseAssignEntity] =
187
208
purchaseDate : SchemaType . Optional ( SchemaType . Number ( ) ) ,
188
209
terminationDate : SchemaType . Optional ( SchemaType . Number ( ) ) ,
189
210
depreciation : SchemaType . Optional ( SchemaType . String ( ) ) ,
190
- purchaseCost : SchemaType . Optional ( SchemaType . String ( ) ) ,
211
+ purchaseCost : SchemaType . Optional (
212
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
213
+ ) ,
191
214
notes : SchemaType . Optional ( SchemaType . Array ( SchemaType . String ( ) ) ) ,
192
215
expirationDate : SchemaType . Optional ( SchemaType . Number ( ) ) ,
193
216
seats : SchemaType . Optional ( SchemaType . Number ( ) ) ,
@@ -267,7 +290,9 @@ export const [UserEntityMetadata, createUserAssignEntity] =
267
290
avatar : SchemaType . Optional ( SchemaType . String ( ) ) ,
268
291
remote : SchemaType . Boolean ( ) ,
269
292
locale : SchemaType . Optional ( SchemaType . String ( ) ) ,
270
- employeeNum : SchemaType . Optional ( SchemaType . String ( ) ) ,
293
+ employeeNum : SchemaType . Optional (
294
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
295
+ ) ,
271
296
'manager.id' : SchemaType . Optional (
272
297
SchemaType . Number ( {
273
298
deprecated : true ,
@@ -282,14 +307,30 @@ export const [UserEntityMetadata, createUserAssignEntity] =
282
307
} ) ,
283
308
) ,
284
309
managerName : SchemaType . Optional ( SchemaType . String ( ) ) ,
285
- jobtitle : SchemaType . Optional ( SchemaType . String ( ) ) ,
286
- phone : SchemaType . Optional ( SchemaType . String ( ) ) ,
287
- website : SchemaType . Optional ( SchemaType . String ( ) ) ,
288
- address : SchemaType . Optional ( SchemaType . String ( ) ) ,
289
- city : SchemaType . Optional ( SchemaType . String ( ) ) ,
290
- state : SchemaType . Optional ( SchemaType . String ( ) ) ,
291
- country : SchemaType . Optional ( SchemaType . String ( ) ) ,
292
- zip : SchemaType . Optional ( SchemaType . String ( ) ) ,
310
+ jobtitle : SchemaType . Optional (
311
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
312
+ ) ,
313
+ phone : SchemaType . Optional (
314
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
315
+ ) ,
316
+ website : SchemaType . Optional (
317
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
318
+ ) ,
319
+ address : SchemaType . Optional (
320
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
321
+ ) ,
322
+ city : SchemaType . Optional (
323
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
324
+ ) ,
325
+ state : SchemaType . Optional (
326
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
327
+ ) ,
328
+ country : SchemaType . Optional (
329
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
330
+ ) ,
331
+ zip : SchemaType . Optional (
332
+ SchemaType . Union ( [ SchemaType . String ( ) , SchemaType . Null ( ) ] ) ,
333
+ ) ,
293
334
email : SchemaType . Optional (
294
335
SchemaType . String ( {
295
336
format : 'email' ,
0 commit comments