@teamleader/focus-api-specification 1.204.0 → 1.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.
@@ -3,7 +3,7 @@ info:
3
3
  title: Teamleader API
4
4
  description: This is the documentation of the Teamleader Focus API. If you have any feedback, or are you missing functionality to support your use case? Let us know via [api@teamleader.eu](mailto:api@teamleader.eu).
5
5
  contact: {}
6
- version: 1.204.0
6
+ version: 1.205.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -3390,7 +3390,7 @@ paths:
3390
3390
  tags:
3391
3391
  - days_off
3392
3392
  summary: daysOff.import
3393
- description: Imports a list of days off for the given user.
3393
+ description: Imports a list of days off for the given user. Each day is either timed, using `starts_at` and `ends_at`, or a full day, using `date` on its own.
3394
3394
  operationId: daysOff.import
3395
3395
  parameters: []
3396
3396
  requestBody:
@@ -3417,17 +3417,31 @@ paths:
3417
3417
  days:
3418
3418
  type: array
3419
3419
  items:
3420
- type: object
3421
- required:
3422
- - starts_at
3423
- - ends_at
3424
- properties:
3425
- starts_at:
3426
- type: string
3427
- example: '2024-02-01T08:00:00+00:00'
3428
- ends_at:
3429
- type: string
3430
- example: '2024-02-01T18:00:00+00:00'
3420
+ oneOf:
3421
+ - type: object
3422
+ title: Timed day off
3423
+ required:
3424
+ - starts_at
3425
+ - ends_at
3426
+ properties:
3427
+ starts_at:
3428
+ type: string
3429
+ format: date-time
3430
+ example: '2024-02-01T08:00:00+00:00'
3431
+ ends_at:
3432
+ type: string
3433
+ format: date-time
3434
+ example: '2024-02-01T18:00:00+00:00'
3435
+ - type: object
3436
+ title: Full day off
3437
+ required:
3438
+ - date
3439
+ properties:
3440
+ date:
3441
+ type: string
3442
+ format: date
3443
+ example: '2024-02-02'
3444
+ description: Imports the day off as a full day. The user must have a working schedule on this date.
3431
3445
  description: At least one day must be present
3432
3446
  - example:
3433
3447
  user_id: f29abf48-337d-44b4-aad4-585f5277a456
@@ -3435,12 +3449,14 @@ paths:
3435
3449
  days:
3436
3450
  - starts_at: '2024-02-01T08:00:00+00:00'
3437
3451
  ends_at: '2024-02-01T18:00:00+00:00'
3452
+ - date: '2024-02-02'
3438
3453
  example:
3439
3454
  user_id: f29abf48-337d-44b4-aad4-585f5277a456
3440
3455
  leave_type_id: 0f517e20-2e76-4684-8d6c-3334f6d7148c
3441
3456
  days:
3442
3457
  - starts_at: '2024-02-01T08:00:00+00:00'
3443
3458
  ends_at: '2024-02-01T18:00:00+00:00'
3459
+ - date: '2024-02-02'
3444
3460
  required: true
3445
3461
  responses:
3446
3462
  '201':
@@ -3,7 +3,7 @@ info:
3
3
  title: Teamleader API
4
4
  description: This is the documentation of the Teamleader Focus API. If you have any feedback, or are you missing functionality to support your use case? Let us know via [api@teamleader.eu](mailto:api@teamleader.eu).
5
5
  contact: {}
6
- version: 1.204.0
6
+ version: 1.205.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -1808,7 +1808,7 @@ paths:
1808
1808
  tags:
1809
1809
  - days_off
1810
1810
  summary: daysOff.import
1811
- description: Imports a list of days off for the given user.
1811
+ description: Imports a list of days off for the given user. Each day is either timed, using `starts_at` and `ends_at`, or a full day, using `date` on its own.
1812
1812
  operationId: daysOff.import
1813
1813
  parameters: []
1814
1814
  requestBody:
@@ -1824,12 +1824,14 @@ paths:
1824
1824
  days:
1825
1825
  - starts_at: '2024-02-01T08:00:00+00:00'
1826
1826
  ends_at: '2024-02-01T18:00:00+00:00'
1827
+ - date: '2024-02-02'
1827
1828
  example:
1828
1829
  user_id: f29abf48-337d-44b4-aad4-585f5277a456
1829
1830
  leave_type_id: 0f517e20-2e76-4684-8d6c-3334f6d7148c
1830
1831
  days:
1831
1832
  - starts_at: '2024-02-01T08:00:00+00:00'
1832
1833
  ends_at: '2024-02-01T18:00:00+00:00'
1834
+ - date: '2024-02-02'
1833
1835
  required: true
1834
1836
  responses:
1835
1837
  '201':
@@ -18649,17 +18651,31 @@ components:
18649
18651
  days:
18650
18652
  type: array
18651
18653
  items:
18652
- type: object
18653
- required:
18654
- - starts_at
18655
- - ends_at
18656
- properties:
18657
- starts_at:
18658
- type: string
18659
- example: '2024-02-01T08:00:00+00:00'
18660
- ends_at:
18661
- type: string
18662
- example: '2024-02-01T18:00:00+00:00'
18654
+ oneOf:
18655
+ - type: object
18656
+ title: Timed day off
18657
+ required:
18658
+ - starts_at
18659
+ - ends_at
18660
+ properties:
18661
+ starts_at:
18662
+ type: string
18663
+ format: date-time
18664
+ example: '2024-02-01T08:00:00+00:00'
18665
+ ends_at:
18666
+ type: string
18667
+ format: date-time
18668
+ example: '2024-02-01T18:00:00+00:00'
18669
+ - type: object
18670
+ title: Full day off
18671
+ required:
18672
+ - date
18673
+ properties:
18674
+ date:
18675
+ type: string
18676
+ format: date
18677
+ example: '2024-02-02'
18678
+ description: Imports the day off as a full day. The user must have a working schedule on this date.
18663
18679
  description: At least one day must be present
18664
18680
  daysOff.bulkDelete.request:
18665
18681
  title: daysOff.bulkDelete.request
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ The `daysOff.import` endpoint now accepts a date-only `date` property on `days` items, as an alternative to `starts_at` and `ends_at`. Days imported this way are stored as full days off.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@teamleader/focus-api-specification",
3
3
  "description": "Teamleader Focus API Specification",
4
- "version": "1.204.0",
4
+ "version": "1.205.0",
5
5
  "author": "Teamleader <development@teamleader.eu> (https://www.teamleader.eu)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/teamleadercrm/focus-api-specification/issues"