@tillhub/schemas 6.184.0 → 6.185.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,10 @@
1
+ # [6.185.0](https://github.com/tillhub/schemas/compare/v6.184.0...v6.185.0) (2022-12-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **stocks-book:** improve multiline formatting #UNTIL-5820 ([a93bc25](https://github.com/tillhub/schemas/commit/a93bc25)), closes [#UNTIL-5820](https://github.com/tillhub/schemas/issues/UNTIL-5820)
7
+
1
8
  # [6.184.0](https://github.com/tillhub/schemas/compare/v6.183.0...v6.184.0) (2022-12-15)
2
9
 
3
10
 
@@ -1,3 +1,4 @@
1
+ const { stripIndents } = require('common-tags')
1
2
  const pick = require('just-pick')
2
3
  const { oneOf } = require('../../helpers/payload-or-null')
3
4
  const baseObject = require('../../common/base')
@@ -15,11 +16,16 @@ const baseStockBook = require('./base').simple
15
16
  const eventTypeEnum = ['transfer', 'sale', 'delivery_note']
16
17
 
17
18
  const eventBaseData = pick({
18
- ...baseObject({ entityName: 'stock book' }),
19
+ ...baseObject({ entityName: 'stock booking' }),
19
20
  ...baseStockBook,
20
21
  type: {
21
22
  ...baseStockBook.type,
22
- description: `The type of stock booking: \n'transfer' - indicates a stock change made by the operator for the logistic purpose, positive value for goods-in and negative value for goods-out \n'sale' - indicates a stock change triggered by a sale, positive value for a successful transaction and negative value for a refund or cancellation \n'delivery_note' - indicates a stock change triggered by a delivery note, positive value for a successful delivery note and negative value for a refund or cancellation`,
23
+ description: stripIndents`
24
+ The type of stock booking:
25
+ 'transfer' - indicates a stock change made by the operator for the logistic purpose, positive value for goods-in and negative value for goods-out;
26
+ 'sale' - indicates a stock change triggered by a sale, positive value for a successful transaction and negative value for a refund or cancellation;
27
+ 'delivery_note' - indicates a stock change triggered by a delivery note, positive value for a successful delivery note and negative value for a refund or cancellation
28
+ `,
23
29
  enum: eventTypeEnum
24
30
  }
25
31
  }, ['id', 'created_at', 'qty_change', 'type'])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.184.0",
3
+ "version": "6.185.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",