@tillhub/schemas 6.204.0 → 6.205.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.205.0](https://github.com/tillhub/schemas/compare/v6.204.0...v6.205.0) (2023-04-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **branches:** fix fields type #UNTIL-6492 ([dbcf2aa](https://github.com/tillhub/schemas/commit/dbcf2aa)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
7
+ * **branches:** valid date declaration #UNTIL-6492 ([1f4866d](https://github.com/tillhub/schemas/commit/1f4866d)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
8
+
9
+
10
+ ### Features
11
+
12
+ * **branches:** extend schema for MMS model #UNTIL-6492 ([c475f02](https://github.com/tillhub/schemas/commit/c475f02)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
13
+ * **registers:** extend schema for MMS model #UNTIL-6492 ([af9dded](https://github.com/tillhub/schemas/commit/af9dded)), closes [#UNTIL-6492](https://github.com/tillhub/schemas/issues/UNTIL-6492)
14
+
1
15
  # [6.204.0](https://github.com/tillhub/schemas/compare/v6.203.0...v6.204.0) (2023-03-31)
2
16
 
3
17
 
@@ -1,5 +1,6 @@
1
1
  const { stripIndents } = require('common-tags')
2
2
  const customProperties = require('../../common/custom_properties')
3
+ const { oneOf } = require('../../helpers/payload-or-null')
3
4
  const { getImages } = require('../../common/images')
4
5
 
5
6
  module.exports = {
@@ -159,6 +160,12 @@ module.exports = {
159
160
  type: 'boolean',
160
161
  default: false
161
162
  },
163
+ deleted_at: oneOf({
164
+ description: 'The date when branch was deleted.',
165
+ example: '2023-04-05T16:06:04.849Z',
166
+ type: 'string',
167
+ format: 'date-time'
168
+ }),
162
169
  metadata: {
163
170
  description: 'Arbitrary user defined data.',
164
171
  type: 'object',
@@ -194,6 +201,12 @@ module.exports = {
194
201
  }
195
202
  ]
196
203
  },
204
+ is_mms: {
205
+ description: 'The branch belongs to MMS.',
206
+ example: 'false',
207
+ type: 'boolean',
208
+ default: false
209
+ },
197
210
  cost_center: {
198
211
  description: 'Cost center unique ID',
199
212
  example: '7882448928329',
@@ -125,6 +125,19 @@ module.exports = {
125
125
  default: true
126
126
  },
127
127
  deleted: {
128
+ description: 'Soft delete this register.',
129
+ type: 'boolean',
130
+ default: false
131
+ },
132
+ deleted_at: oneOf({
133
+ description: 'The date when register was deleted.',
134
+ example: '2023-04-05T16:06:04.849Z',
135
+ type: 'string',
136
+ format: 'date-time'
137
+ }),
138
+ is_mms: {
139
+ description: 'The register belongs to MMS.',
140
+ example: 'false',
128
141
  type: 'boolean',
129
142
  default: false
130
143
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.204.0",
3
+ "version": "6.205.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",