@tillhub/schemas 6.313.0 → 6.313.1

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,10 @@
1
+ ## [6.313.1](https://github.com/tillhub/schemas/compare/v6.313.0...v6.313.1) (2024-06-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **inventory-stocks:** added location endpoint ([32c0ad8](https://github.com/tillhub/schemas/commit/32c0ad8))
7
+
1
8
  # [6.313.0](https://github.com/tillhub/schemas/compare/v6.312.0...v6.313.0) (2024-05-31)
2
9
 
3
10
 
package/lib/v0/index.js CHANGED
@@ -7,6 +7,7 @@ module.exports.customers = require('./customers')
7
7
  module.exports.deliveries = require('./deliveries')
8
8
  module.exports.orders = require('./orders')
9
9
  module.exports.branches = require('./branches')
10
+ module.exports.location = require('./location')
10
11
  module.exports.clients = require('./clients')
11
12
  module.exports.pdfs = require('./pdfs')
12
13
  module.exports.taxes = require('./taxes')
@@ -0,0 +1 @@
1
+ module.exports.read = require('./read')
@@ -0,0 +1,28 @@
1
+ const baseObject = require('../../common/base')
2
+ const commonResponse = require('../../common/response')
3
+
4
+ module.exports.one = {
5
+ response: {
6
+ $id: 'https://schemas.tillhub.com/v0/location.read.one.response.schema.json',
7
+ $schema: 'http://json-schema.org/draft-07/schema#',
8
+ additionalProperties: false,
9
+ ...commonResponse({
10
+ resultItems: {
11
+ type: 'object',
12
+ additionalProperties: false,
13
+ properties: {
14
+ ...baseObject(),
15
+ name: {
16
+ description: 'Name of the branch, warehouse or warehouse shelf',
17
+ type: 'string'
18
+ },
19
+ type: {
20
+ description: 'Type of the location',
21
+ type: 'string',
22
+ enum: ['branch', 'warehouse', 'warehouse_shelf']
23
+ }
24
+ }
25
+ }
26
+ })
27
+ }
28
+ }
@@ -408,7 +408,7 @@ module.exports = oneOf({
408
408
  items: {
409
409
  type: 'object',
410
410
  properties: {
411
- tags: {
411
+ tags: oneOf({
412
412
  deprecated: true,
413
413
  type: 'array',
414
414
  items: {
@@ -418,33 +418,33 @@ module.exports = oneOf({
418
418
  minLength: 3,
419
419
  maxLength: 64
420
420
  }
421
- },
422
- tag_ids: {
421
+ }),
422
+ tag_ids: oneOf({
423
423
  type: 'array',
424
424
  items: {
425
425
  description: 'The tag resource ids which will be tested for intersection with the cart item\'s product tag ids',
426
426
  type: 'string',
427
427
  format: 'uuid'
428
428
  }
429
- },
430
- title: {
429
+ }),
430
+ title: oneOf({
431
431
  description: 'Visual clue where a specific receipt should be used.',
432
432
  type: 'string',
433
433
  example: 'Kitchen',
434
434
  minLength: 3,
435
435
  maxLength: 64
436
- },
437
- coaster: {
436
+ }),
437
+ coaster: oneOf({
438
438
  deprecated: true,
439
439
  description: 'If true - print the coaster(number) on the specified receipt',
440
440
  type: 'boolean',
441
- default: true
442
- },
443
- pager: {
441
+ default: false
442
+ }),
443
+ pager: oneOf({
444
444
  description: 'If true - print the pager(number) on the specified receipt',
445
445
  type: 'boolean',
446
- default: true
447
- },
446
+ default: false
447
+ }),
448
448
  size_type: oneOf({
449
449
  type: 'string',
450
450
  enum: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.313.0",
3
+ "version": "6.313.1",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",