@teamleader/focus-api-specification 1.204.0 → 1.206.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.
|
|
6
|
+
version: 1.206.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,30 +3417,46 @@ paths:
|
|
|
3417
3417
|
days:
|
|
3418
3418
|
type: array
|
|
3419
3419
|
items:
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
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.
|
|
3445
|
+
description: At least one day must be present, and at most 100.
|
|
3432
3446
|
- example:
|
|
3433
3447
|
user_id: f29abf48-337d-44b4-aad4-585f5277a456
|
|
3434
3448
|
leave_type_id: 0f517e20-2e76-4684-8d6c-3334f6d7148c
|
|
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.
|
|
6
|
+
version: 1.206.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,18 +18651,32 @@ components:
|
|
|
18649
18651
|
days:
|
|
18650
18652
|
type: array
|
|
18651
18653
|
items:
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18659
|
-
|
|
18660
|
-
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
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.
|
|
18679
|
+
description: At least one day must be present, and at most 100.
|
|
18664
18680
|
daysOff.bulkDelete.request:
|
|
18665
18681
|
title: daysOff.bulkDelete.request
|
|
18666
18682
|
required:
|
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.
|
|
4
|
+
"version": "1.206.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"
|