@tillhub/schemas 6.400.1 → 6.402.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.402.0](https://github.com/tillhub/schemas/compare/v6.401.0...v6.402.0) (2025-10-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **UNTIL-15266:** add bulk fetch and bulk update request schemas ([#1085](https://github.com/tillhub/schemas/issues/1085)) ([e38ee7d](https://github.com/tillhub/schemas/commit/e38ee7d))
|
|
7
|
+
|
|
8
|
+
# [6.401.0](https://github.com/tillhub/schemas/compare/v6.400.1...v6.401.0) (2025-10-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **UNTIL-15267:** add questionnaire feature ([#1084](https://github.com/tillhub/schemas/issues/1084)) ([1ac5b62](https://github.com/tillhub/schemas/commit/1ac5b62))
|
|
14
|
+
|
|
1
15
|
## [6.400.1](https://github.com/tillhub/schemas/compare/v6.400.0...v6.400.1) (2025-09-23)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
$id: 'https://schemas.tillhub.com/v1/configurations.bulk_fetch.request.schema.json',
|
|
3
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
type: 'object',
|
|
6
|
+
required: ['sections', 'owners'],
|
|
7
|
+
properties: {
|
|
8
|
+
sections: {
|
|
9
|
+
type: 'array',
|
|
10
|
+
minItems: 1,
|
|
11
|
+
items: { type: 'string', minLength: 1 }
|
|
12
|
+
},
|
|
13
|
+
owners: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
minItems: 1,
|
|
16
|
+
items: { type: 'string', minLength: 1 }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const jsonPatch = require('../../common/patch.request')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
$id: 'https://schemas.tillhub.com/v1/configurations.bulk_update.request.schema.json',
|
|
5
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['configurations'],
|
|
9
|
+
properties: {
|
|
10
|
+
configurations: {
|
|
11
|
+
type: 'array',
|
|
12
|
+
minItems: 1,
|
|
13
|
+
items: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
additionalProperties: false,
|
|
16
|
+
required: ['id', 'patch'],
|
|
17
|
+
properties: {
|
|
18
|
+
id: { type: 'string' },
|
|
19
|
+
patch: jsonPatch
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -9,4 +9,12 @@ module.exports.patch = {
|
|
|
9
9
|
request: require('./patch.request')
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
module.exports.bulk_update = {
|
|
13
|
+
request: require('./bulk_update.request')
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports.bulk_fetch = {
|
|
17
|
+
request: require('./bulk_fetch.request')
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
module.exports.users = require('./users')
|
|
@@ -303,6 +303,77 @@ module.exports = oneOf({
|
|
|
303
303
|
default: 14
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
+
}),
|
|
307
|
+
questionnaire: oneOf({
|
|
308
|
+
description: 'Defines a questionnaire with selectable answers.',
|
|
309
|
+
type: 'object',
|
|
310
|
+
additionalProperties: false,
|
|
311
|
+
properties: {
|
|
312
|
+
enabled: {
|
|
313
|
+
description: 'Specifies if the questionnaire feature is available.',
|
|
314
|
+
type: 'boolean',
|
|
315
|
+
default: false
|
|
316
|
+
},
|
|
317
|
+
content: oneOf({
|
|
318
|
+
description: 'List of questions to present.',
|
|
319
|
+
type: 'array',
|
|
320
|
+
items: {
|
|
321
|
+
type: 'object',
|
|
322
|
+
additionalProperties: false,
|
|
323
|
+
properties: {
|
|
324
|
+
id: {
|
|
325
|
+
description: 'Unique identifier of the question.',
|
|
326
|
+
type: 'string',
|
|
327
|
+
minLength: 1,
|
|
328
|
+
maxLength: 128
|
|
329
|
+
},
|
|
330
|
+
question: {
|
|
331
|
+
description: 'Question text.',
|
|
332
|
+
type: 'string',
|
|
333
|
+
minLength: 1,
|
|
334
|
+
maxLength: 512
|
|
335
|
+
},
|
|
336
|
+
type: oneOf({
|
|
337
|
+
description: 'Question type.',
|
|
338
|
+
type: 'string',
|
|
339
|
+
enum: [
|
|
340
|
+
'simple_select'
|
|
341
|
+
],
|
|
342
|
+
default: 'simple_select'
|
|
343
|
+
}),
|
|
344
|
+
required: {
|
|
345
|
+
description: 'If true, this question must be answered.',
|
|
346
|
+
type: 'boolean',
|
|
347
|
+
default: false
|
|
348
|
+
},
|
|
349
|
+
answers: oneOf({
|
|
350
|
+
description: 'List of selectable answers.',
|
|
351
|
+
type: 'array',
|
|
352
|
+
minItems: 1,
|
|
353
|
+
maxItems: 5,
|
|
354
|
+
items: {
|
|
355
|
+
type: 'object',
|
|
356
|
+
additionalProperties: false,
|
|
357
|
+
properties: {
|
|
358
|
+
id: {
|
|
359
|
+
description: 'Unique identifier of the answer.',
|
|
360
|
+
type: 'string',
|
|
361
|
+
minLength: 1,
|
|
362
|
+
maxLength: 128
|
|
363
|
+
},
|
|
364
|
+
content: {
|
|
365
|
+
description: 'Answer text.',
|
|
366
|
+
type: 'string',
|
|
367
|
+
minLength: 1,
|
|
368
|
+
maxLength: 256
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
})
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
})
|
|
376
|
+
}
|
|
306
377
|
})
|
|
307
378
|
}
|
|
308
379
|
})
|