@tillhub/schemas 6.299.0 → 6.301.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.301.0](https://github.com/tillhub/schemas/compare/v6.300.0...v6.301.0) (2024-04-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** add map address field ([#930](https://github.com/tillhub/schemas/issues/930)) ([a4532a3](https://github.com/tillhub/schemas/commit/a4532a3))
7
+
8
+ # [6.300.0](https://github.com/tillhub/schemas/compare/v6.299.0...v6.300.0) (2024-04-11)
9
+
10
+
11
+ ### Features
12
+
13
+ * **shift_plan:** add shifts for multiple branches ([#934](https://github.com/tillhub/schemas/issues/934)) ([f29c220](https://github.com/tillhub/schemas/commit/f29c220))
14
+
1
15
  # [6.299.0](https://github.com/tillhub/schemas/compare/v6.298.0...v6.299.0) (2024-04-09)
2
16
 
3
17
 
@@ -368,6 +368,19 @@ module.exports = {
368
368
  type: 'null'
369
369
  }
370
370
  ]
371
+ },
372
+ reservations_google_maps_address: {
373
+ description: 'The location of the branch on Google Maps',
374
+ example: 'https://maps.app.goo.gl/tpF7EMsEC7Wy5hmd6',
375
+ pattern: '^https:\\/\\/maps\\.app\\.goo\\.gl\\/[A-Za-z]*$',
376
+ oneOf: [
377
+ {
378
+ type: 'string'
379
+ },
380
+ {
381
+ type: 'null'
382
+ }
383
+ ]
371
384
  }
372
385
  },
373
386
  required: [
@@ -529,5 +542,11 @@ module.exports = {
529
542
  type: 'null'
530
543
  }
531
544
  ]
545
+ },
546
+ shift_plan_enabled: {
547
+ description: 'Define if this branch uses a shift plan.',
548
+ example: 'false',
549
+ type: 'boolean',
550
+ default: false
532
551
  }
533
552
  }
@@ -1,32 +1,42 @@
1
1
  module.exports = {
2
- shift_plan_enabled: {
3
- type: 'boolean'
4
- },
5
- shift_plan: {
2
+ shifts: {
6
3
  type: 'array',
7
4
  items: {
8
5
  type: 'object',
9
6
  additionalProperties: false,
10
7
  properties: {
11
- staff_member_id: {
8
+ branch_id: {
12
9
  type: 'string',
13
10
  format: 'uuid'
14
11
  },
15
- date: {
16
- type: 'string',
17
- format: 'date'
18
- },
19
- plan: {
12
+ shift_plan: {
20
13
  type: 'array',
21
14
  items: {
22
15
  type: 'object',
23
16
  additionalProperties: false,
24
17
  properties: {
25
- start: {
26
- type: 'string'
18
+ staff_member_id: {
19
+ type: 'string',
20
+ format: 'uuid'
21
+ },
22
+ date: {
23
+ type: 'string',
24
+ format: 'date'
27
25
  },
28
- end: {
29
- type: 'string'
26
+ plan: {
27
+ type: 'array',
28
+ items: {
29
+ type: 'object',
30
+ additionalProperties: false,
31
+ properties: {
32
+ start: {
33
+ type: 'string'
34
+ },
35
+ end: {
36
+ type: 'string'
37
+ }
38
+ }
39
+ }
30
40
  }
31
41
  }
32
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.299.0",
3
+ "version": "6.301.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",