@tillhub/schemas 6.221.0 → 6.223.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [6.223.0](https://github.com/tillhub/schemas/compare/v6.222.0...v6.223.0) (2023-06-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * **purchase-orders:** More relaxed schema for purchase orders pdfs ([#815](https://github.com/tillhub/schemas/issues/815)) ([3e8a688](https://github.com/tillhub/schemas/commit/3e8a688))
7
+
8
+ # [6.222.0](https://github.com/tillhub/schemas/compare/v6.221.0...v6.222.0) (2023-06-18)
9
+
10
+
11
+ ### Features
12
+
13
+ * **purchase-orders:** Typo fixed ([#812](https://github.com/tillhub/schemas/issues/812)) ([5b92323](https://github.com/tillhub/schemas/commit/5b92323))
14
+
1
15
  # [6.221.0](https://github.com/tillhub/schemas/compare/v6.220.0...v6.221.0) (2023-06-18)
2
16
 
3
17
 
@@ -81,11 +81,7 @@ module.exports = {
81
81
  companyName: {
82
82
  type: 'string'
83
83
  }
84
- },
85
- required: [
86
- 'id',
87
- 'companyName'
88
- ]
84
+ }
89
85
  },
90
86
  products: {
91
87
  type: 'array',
@@ -126,18 +122,7 @@ module.exports = {
126
122
  totalWithTax: {
127
123
  type: 'integer'
128
124
  }
129
- },
130
- required: [
131
- 'id',
132
- 'productId',
133
- 'productName',
134
- 'price',
135
- 'vatPercent',
136
- 'discountPercent',
137
- 'quantity',
138
- 'totalUntaxed',
139
- 'totalWithTax'
140
- ]
125
+ }
141
126
  },
142
127
  {
143
128
  type: 'object',
@@ -175,32 +160,11 @@ module.exports = {
175
160
  totalWithTax: {
176
161
  type: 'integer'
177
162
  }
178
- },
179
- required: [
180
- 'id',
181
- 'productId',
182
- 'productName',
183
- 'price',
184
- 'vatPercent',
185
- 'discountPercent',
186
- 'quantity',
187
- 'totalUntaxed',
188
- 'totalWithTax'
189
- ]
163
+ }
190
164
  }
191
165
  ]
192
166
  }
193
- },
194
- required: [
195
- 'id',
196
- 'purchaseOrderNumber',
197
- 'notes',
198
- 'status',
199
- 'totalAmount',
200
- 'recipients',
201
- 'createdBy',
202
- 'products'
203
- ]
167
+ }
204
168
  },
205
169
  company: {
206
170
  type: 'object',
@@ -229,15 +193,7 @@ module.exports = {
229
193
  street_number: {
230
194
  type: 'string'
231
195
  }
232
- },
233
- required: [
234
- 'region',
235
- 'street',
236
- 'country',
237
- 'locality',
238
- 'postal_code',
239
- 'street_number'
240
- ]
196
+ }
241
197
  },
242
198
  lastname: {
243
199
  type: 'string'
@@ -251,15 +207,7 @@ module.exports = {
251
207
  company_name: {
252
208
  type: 'string'
253
209
  }
254
- },
255
- required: [
256
- 'vat_id',
257
- 'address',
258
- 'lastname',
259
- 'firstname',
260
- 'tax_number',
261
- 'company_name'
262
- ]
210
+ }
263
211
  },
264
212
  businessPartner: {
265
213
  type: 'object',
@@ -318,11 +266,7 @@ module.exports = {
318
266
  number: {
319
267
  type: 'string'
320
268
  }
321
- },
322
- required: [
323
- 'type',
324
- 'number'
325
- ]
269
+ }
326
270
  }
327
271
  ]
328
272
  },
@@ -385,18 +329,7 @@ module.exports = {
385
329
  postalCode: {
386
330
  type: 'string'
387
331
  }
388
- },
389
- required: [
390
- 'id',
391
- 'type',
392
- 'country',
393
- 'region',
394
- 'locality',
395
- 'street',
396
- 'streetNumber',
397
- 'lines',
398
- 'postalCode'
399
- ]
332
+ }
400
333
  }
401
334
  ]
402
335
  },
@@ -424,39 +357,11 @@ module.exports = {
424
357
  swift: {
425
358
  type: 'string'
426
359
  }
427
- },
428
- required: [
429
- 'id',
430
- 'name',
431
- 'iban',
432
- 'swift'
433
- ]
360
+ }
434
361
  }
435
362
  ]
436
363
  }
437
- },
438
- required: [
439
- 'id',
440
- 'active',
441
- 'companyName',
442
- 'description',
443
- 'number',
444
- 'firstName',
445
- 'lastName',
446
- 'email',
447
- 'phoneNumbers',
448
- 'paymentTerms',
449
- 'taxNumber',
450
- 'glnNumber',
451
- 'taxSubject',
452
- 'addresses',
453
- 'bankAccounts'
454
- ]
364
+ }
455
365
  }
456
- },
457
- required: [
458
- 'order',
459
- 'company',
460
- 'businessParnter'
461
- ]
366
+ }
462
367
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.221.0",
3
+ "version": "6.223.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",