@teamleader/focus-api-specification 1.203.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.
|
|
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
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
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':
|
|
@@ -3534,7 +3550,9 @@ paths:
|
|
|
3534
3550
|
description: ''
|
|
3535
3551
|
company_id:
|
|
3536
3552
|
type: string
|
|
3553
|
+
nullable: true
|
|
3537
3554
|
example: cb8da52a-ce89-4bf6-8f7e-8ee6cb85e3b5
|
|
3555
|
+
description: Filters on contacts linked to this company. To fetch the contacts that are linked to no company at all, provide `null`. A contact whose only linked company has been deleted is part of that set.
|
|
3538
3556
|
term:
|
|
3539
3557
|
type: string
|
|
3540
3558
|
description: Filters on first_name, last_name, email and telephone
|
|
@@ -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.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
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18659
|
-
|
|
18660
|
-
|
|
18661
|
-
|
|
18662
|
-
|
|
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
|
|
@@ -18702,7 +18718,9 @@ components:
|
|
|
18702
18718
|
description: ''
|
|
18703
18719
|
company_id:
|
|
18704
18720
|
type: string
|
|
18721
|
+
nullable: true
|
|
18705
18722
|
example: cb8da52a-ce89-4bf6-8f7e-8ee6cb85e3b5
|
|
18723
|
+
description: Filters on contacts linked to this company. To fetch the contacts that are linked to no company at all, provide `null`. A contact whose only linked company has been deleted is part of that set.
|
|
18706
18724
|
term:
|
|
18707
18725
|
type: string
|
|
18708
18726
|
description: Filters on first_name, last_name, email and telephone
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: addition
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
We made the `company_id` filter on `contacts.list` nullable. Passing `null` returns the contacts that are linked to no company at all, so finding them no longer means paging through every contact. A contact whose only linked company has been deleted is part of that set.
|
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.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"
|