@teamleader/focus-api-specification 1.166.0 → 1.168.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.166.0
6
+ version: 1.168.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -617,6 +617,26 @@ paths:
617
617
  fiscal_regime:
618
618
  type: string
619
619
  nullable: true
620
+ enum:
621
+ - RF01
622
+ - RF02
623
+ - RF03
624
+ - RF04
625
+ - RF05
626
+ - RF06
627
+ - RF07
628
+ - RF08
629
+ - RF09
630
+ - RF10
631
+ - RF11
632
+ - RF12
633
+ - RF13
634
+ - RF14
635
+ - RF15
636
+ - RF16
637
+ - RF17
638
+ - RF18
639
+ - RF19
620
640
  example: RF01
621
641
  status:
622
642
  type: string
@@ -730,6 +750,17 @@ paths:
730
750
  whitelabeling:
731
751
  type: boolean
732
752
  example: true
753
+ teams:
754
+ type: array
755
+ items:
756
+ allOf:
757
+ - title: TypeAndId
758
+ type: object
759
+ properties: *ref_1
760
+ - properties:
761
+ type:
762
+ type: string
763
+ example: team
733
764
  - example:
734
765
  data:
735
766
  id: cb8da52a-ce89-4bf6-8f7e-8ee6cb85e3b5
@@ -1621,6 +1652,8 @@ paths:
1621
1652
  - ticket
1622
1653
  type: string
1623
1654
  - example: contact
1655
+ required:
1656
+ type: boolean
1624
1657
  configuration:
1625
1658
  type: object
1626
1659
  description: |
@@ -1807,6 +1840,10 @@ paths:
1807
1840
  extra_option_allowed:
1808
1841
  type: boolean
1809
1842
  example: true
1843
+ default_value:
1844
+ type: string
1845
+ nullable: true
1846
+ description: Only returned for `single_select` type
1810
1847
  description: ''
1811
1848
  - example:
1812
1849
  data:
@@ -1972,19 +2009,6 @@ paths:
1972
2009
  title: Page
1973
2010
  type: object
1974
2011
  properties: *ref_6
1975
- sort:
1976
- allOf:
1977
- - title: Sort
1978
- required: *ref_3
1979
- type: object
1980
- properties: *ref_4
1981
- - properties:
1982
- field:
1983
- type: string
1984
- default: name
1985
- order:
1986
- type: string
1987
- default: asc
1988
2012
  required: false
1989
2013
  responses:
1990
2014
  '200':
@@ -8446,9 +8470,8 @@ paths:
8446
8470
  enum:
8447
8471
  - open
8448
8472
  - accepted
8473
+ - refused
8449
8474
  - expired
8450
- - rejected
8451
- - closed
8452
8475
  example: open
8453
8476
  name:
8454
8477
  type: string
@@ -8845,9 +8868,8 @@ paths:
8845
8868
  enum:
8846
8869
  - open
8847
8870
  - accepted
8871
+ - refused
8848
8872
  - expired
8849
- - rejected
8850
- - closed
8851
8873
  example: open
8852
8874
  name:
8853
8875
  type: string
@@ -10034,7 +10056,7 @@ paths:
10034
10056
  title: My meeting
10035
10057
  description: My meeting description
10036
10058
  created_at: '2020-02-01T10:33:45+00:00'
10037
- creaded_by:
10059
+ created_by:
10038
10060
  type: user
10039
10061
  id: b5094b3f-bb7a-0391-b01b-e709773f3509
10040
10062
  scheduled_at: '2020-02-04T16:44:33+00:00'
@@ -13075,6 +13097,7 @@ paths:
13075
13097
  - pdf
13076
13098
  - ubl/e-fff
13077
13099
  - ubl/peppol_bis_3
13100
+ - ubl/xrechnung
13078
13101
  type: string
13079
13102
  example: pdf
13080
13103
  - example: pdf
@@ -14649,6 +14672,8 @@ paths:
14649
14672
  enum: &ref_408
14650
14673
  - pdf
14651
14674
  - ubl/e-fff
14675
+ - ubl/peppol_bis_3
14676
+ - ubl/xrechnung
14652
14677
  type: string
14653
14678
  example: pdf
14654
14679
  - example: pdf
@@ -15997,7 +16022,7 @@ paths:
15997
16022
  filter:
15998
16023
  subject:
15999
16024
  id: 018d5965-19fb-701a-af11-e80451931551
16000
- type: incoming_invoice
16025
+ type: incomingInvoice
16001
16026
  schema:
16002
16027
  type: object
16003
16028
  properties:
@@ -16013,8 +16038,8 @@ paths:
16013
16038
  type:
16014
16039
  type: string
16015
16040
  enum:
16016
- - incoming_invoice
16017
- - incoming_credit_note
16041
+ - incomingInvoice
16042
+ - incomingCreditNote
16018
16043
  - receipt
16019
16044
  required:
16020
16045
  - subject
@@ -16063,7 +16088,7 @@ paths:
16063
16088
  - id: 018d5965-19fb-701a-af11-e80451931551
16064
16089
  subject:
16065
16090
  id: 018d5965-19fb-701a-af11-e80451931551
16066
- type: incoming_invoice
16091
+ type: incomingInvoice
16067
16092
  email_address: john.doe@example.com
16068
16093
  status: sending
16069
16094
  created_at: '2025-02-26 15:56:40'
@@ -16120,8 +16145,11 @@ paths:
16120
16145
  items:
16121
16146
  type: string
16122
16147
  enum:
16148
+ - unknown
16123
16149
  - paid
16124
- - unpaid
16150
+ - partially_paid
16151
+ - credited
16152
+ - not_paid
16125
16153
  department_ids:
16126
16154
  type: array
16127
16155
  description: Filters by one or more department IDs
@@ -16177,7 +16205,7 @@ paths:
16177
16205
  - after
16178
16206
  value:
16179
16207
  type: string
16180
- description: Required if operator is `equals`, `before`, or `after`
16208
+ description: Required if operator is `equals`, `before`, or `after`, date is inclusive
16181
16209
  start:
16182
16210
  type: string
16183
16211
  description: Required if operator is `between`
@@ -16226,7 +16254,7 @@ paths:
16226
16254
  - not_sent
16227
16255
  payment_statuses:
16228
16256
  - paid
16229
- - unpaid
16257
+ - not_paid
16230
16258
  department_ids:
16231
16259
  - 018fcef1-4f96-7349-9f57-1c7857023c42
16232
16260
  supplier:
@@ -16365,6 +16393,7 @@ paths:
16365
16393
  - unknown
16366
16394
  - paid
16367
16395
  - partially_paid
16396
+ - credited
16368
16397
  - not_paid
16369
16398
  paid_amount:
16370
16399
  type: number
@@ -16428,6 +16457,7 @@ paths:
16428
16457
  - incoming_credit_notes
16429
16458
  parameters: []
16430
16459
  requestBody:
16460
+ required: true
16431
16461
  content:
16432
16462
  application/json:
16433
16463
  example:
@@ -16538,6 +16568,7 @@ paths:
16538
16568
  - incoming_credit_notes
16539
16569
  parameters: []
16540
16570
  requestBody:
16571
+ required: true
16541
16572
  content:
16542
16573
  application/json:
16543
16574
  example:
@@ -16563,6 +16594,7 @@ paths:
16563
16594
  - incoming_credit_notes
16564
16595
  parameters: []
16565
16596
  requestBody:
16597
+ required: true
16566
16598
  content:
16567
16599
  application/json:
16568
16600
  example:
@@ -16588,6 +16620,7 @@ paths:
16588
16620
  - incoming_credit_notes
16589
16621
  parameters: []
16590
16622
  requestBody:
16623
+ required: true
16591
16624
  content:
16592
16625
  application/json:
16593
16626
  example:
@@ -16817,6 +16850,7 @@ paths:
16817
16850
  - incoming_credit_notes
16818
16851
  parameters: []
16819
16852
  requestBody:
16853
+ required: true
16820
16854
  content:
16821
16855
  application/json:
16822
16856
  example:
@@ -16842,6 +16876,7 @@ paths:
16842
16876
  - incoming_credit_notes
16843
16877
  parameters: []
16844
16878
  requestBody:
16879
+ required: true
16845
16880
  content:
16846
16881
  application/json:
16847
16882
  example:
@@ -16958,6 +16993,7 @@ paths:
16958
16993
  - incoming_credit_notes
16959
16994
  parameters: []
16960
16995
  requestBody:
16996
+ required: true
16961
16997
  content:
16962
16998
  application/json:
16963
16999
  example:
@@ -16983,6 +17019,7 @@ paths:
16983
17019
  - incoming_credit_notes
16984
17020
  parameters: []
16985
17021
  requestBody:
17022
+ required: true
16986
17023
  content:
16987
17024
  application/json:
16988
17025
  example:
@@ -17401,6 +17438,7 @@ paths:
17401
17438
  - unknown
17402
17439
  - paid
17403
17440
  - partially_paid
17441
+ - credited
17404
17442
  - not_paid
17405
17443
  example:
17406
17444
  data:
@@ -17833,6 +17871,7 @@ paths:
17833
17871
  - receipts
17834
17872
  parameters: []
17835
17873
  requestBody:
17874
+ required: true
17836
17875
  content:
17837
17876
  application/json:
17838
17877
  example:
@@ -17902,12 +17941,15 @@ paths:
17902
17941
  type: object
17903
17942
  properties:
17904
17943
  data:
17905
- type: object
17906
- properties:
17907
- type:
17908
- type: string
17909
- id:
17910
- type: string
17944
+ allOf:
17945
+ - title: TypeAndId
17946
+ type: object
17947
+ properties: *ref_1
17948
+ - properties:
17949
+ type:
17950
+ example: receipt
17951
+ id:
17952
+ example: 018d5965-19fb-701a-af11-e80451931551
17911
17953
  example:
17912
17954
  data:
17913
17955
  type: receipt
@@ -17921,6 +17963,7 @@ paths:
17921
17963
  - receipts
17922
17964
  parameters: []
17923
17965
  requestBody:
17966
+ required: true
17924
17967
  content:
17925
17968
  application/json:
17926
17969
  example:
@@ -17946,6 +17989,7 @@ paths:
17946
17989
  - receipts
17947
17990
  parameters: []
17948
17991
  requestBody:
17992
+ required: true
17949
17993
  content:
17950
17994
  application/json:
17951
17995
  example:
@@ -17971,6 +18015,7 @@ paths:
17971
18015
  - receipts
17972
18016
  parameters: []
17973
18017
  requestBody:
18018
+ required: true
17974
18019
  content:
17975
18020
  application/json:
17976
18021
  example:
@@ -18172,11 +18217,12 @@ paths:
18172
18217
  post:
18173
18218
  summary: receipts.markAsPendingReview
18174
18219
  operationId: receipts.markAsPendingReview
18175
- description: Mark a receipts as pending review.
18220
+ description: Mark a receipt as pending review.
18176
18221
  tags:
18177
18222
  - receipts
18178
18223
  parameters: []
18179
18224
  requestBody:
18225
+ required: true
18180
18226
  content:
18181
18227
  application/json:
18182
18228
  example:
@@ -18197,11 +18243,12 @@ paths:
18197
18243
  post:
18198
18244
  summary: receipts.refuse
18199
18245
  operationId: receipts.refuse
18200
- description: Refuse a receipts.
18246
+ description: Refuse a receipt.
18201
18247
  tags:
18202
18248
  - receipts
18203
18249
  parameters: []
18204
18250
  requestBody:
18251
+ required: true
18205
18252
  content:
18206
18253
  application/json:
18207
18254
  example:
@@ -18345,6 +18392,7 @@ paths:
18345
18392
  - receipts
18346
18393
  parameters: []
18347
18394
  requestBody:
18395
+ required: true
18348
18396
  content:
18349
18397
  application/json:
18350
18398
  example:
@@ -27915,10 +27963,11 @@ paths:
27915
27963
  properties: *ref_4
27916
27964
  - properties:
27917
27965
  field:
27918
- enum:
27919
- - name
27920
27966
  type: string
27921
- example: name
27967
+ enum:
27968
+ - created_at
27969
+ - due_on
27970
+ example: due_on
27922
27971
  description: ''
27923
27972
  required: false
27924
27973
  responses:
@@ -31073,6 +31122,7 @@ paths:
31073
31122
  - deal
31074
31123
  - invoice
31075
31124
  - creditNote
31125
+ - meeting
31076
31126
  - product
31077
31127
  - project
31078
31128
  - nextgenProject
@@ -31160,6 +31210,9 @@ paths:
31160
31210
  - deal
31161
31211
  - invoice
31162
31212
  - creditNote
31213
+ - meeting
31214
+ - product
31215
+ - project
31163
31216
  - nextgenProject
31164
31217
  - ticket
31165
31218
  example: company
@@ -32583,6 +32636,7 @@ paths:
32583
32636
  type:
32584
32637
  type: string
32585
32638
  enum:
32639
+ - deal
32586
32640
  - invoice
32587
32641
  - quotation
32588
32642
  - ticket
@@ -32608,11 +32662,24 @@ paths:
32608
32662
  type: object
32609
32663
  properties: &ref_732
32610
32664
  data:
32611
- type: object
32612
- properties:
32613
- url:
32614
- type: string
32615
- example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32665
+ oneOf:
32666
+ - title: Response for type=deal
32667
+ type: object
32668
+ description: Returned when type is `deal`.
32669
+ properties:
32670
+ public:
32671
+ type: string
32672
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32673
+ preview:
32674
+ type: string
32675
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/?preview=true
32676
+ - title: Response for type=invoice, type=quotation, type=ticket
32677
+ type: object
32678
+ description: Returned when type is `invoice`, `quotation`, or `ticket`.
32679
+ properties:
32680
+ url:
32681
+ type: string
32682
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32616
32683
  - example:
32617
32684
  data:
32618
32685
  url: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
@@ -32695,14 +32762,18 @@ paths:
32695
32762
  type: array
32696
32763
  items:
32697
32764
  type: string
32698
- status:
32765
+ types:
32699
32766
  type: array
32700
32767
  items:
32701
32768
  type: string
32702
32769
  enum:
32703
- - active
32704
- - deactivated
32705
- example: active
32770
+ - closingDay
32771
+ - dayOffType
32772
+ - meeting
32773
+ - task
32774
+ - call
32775
+ - externalEvent
32776
+ example: task
32706
32777
  term:
32707
32778
  type: string
32708
32779
  example: Set-up
@@ -32847,13 +32918,13 @@ paths:
32847
32918
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32848
32919
  total_duration:
32849
32920
  value: 600
32850
- currency: minutes
32921
+ unit: minutes
32851
32922
  planned_duration:
32852
32923
  value: 600
32853
- currency: minutes
32924
+ unit: minutes
32854
32925
  unplanned_duration:
32855
32926
  value: 0
32856
- currency: minutes
32927
+ unit: minutes
32857
32928
  example:
32858
32929
  data:
32859
32930
  - id: 018d79a1-2b99-7fbd-b323-500b01305371
@@ -32862,13 +32933,13 @@ paths:
32862
32933
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32863
32934
  total_duration:
32864
32935
  value: 600
32865
- currency: minutes
32936
+ unit: minutes
32866
32937
  planned_duration:
32867
32938
  value: 600
32868
- currency: minutes
32939
+ unit: minutes
32869
32940
  unplanned_duration:
32870
32941
  value: 0
32871
- currency: minutes
32942
+ unit: minutes
32872
32943
  deprecated: false
32873
32944
  /plannableItems.info:
32874
32945
  post:
@@ -32953,13 +33024,13 @@ paths:
32953
33024
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32954
33025
  total_duration:
32955
33026
  value: 600
32956
- currency: minutes
33027
+ unit: minutes
32957
33028
  planned_duration:
32958
33029
  value: 600
32959
- currency: minutes
33030
+ unit: minutes
32960
33031
  unplanned_duration:
32961
33032
  value: 0
32962
- currency: minutes
33033
+ unit: minutes
32963
33034
  example:
32964
33035
  data:
32965
33036
  id: 018d79a1-2b99-7fbd-b323-500b01305371
@@ -32968,13 +33039,13 @@ paths:
32968
33039
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32969
33040
  total_duration:
32970
33041
  value: 600
32971
- currency: minutes
33042
+ unit: minutes
32972
33043
  planned_duration:
32973
33044
  value: 600
32974
- currency: minutes
33045
+ unit: minutes
32975
33046
  unplanned_duration:
32976
33047
  value: 0
32977
- currency: minutes
33048
+ unit: minutes
32978
33049
  deprecated: false
32979
33050
  /reservations.list:
32980
33051
  post:
@@ -33064,11 +33135,13 @@ paths:
33064
33135
  type: object
33065
33136
  properties: *ref_6
33066
33137
  - example:
33067
- plannable_item_ids:
33068
- - 46156648-87c6-478d-8aa7-1dc3a00dacab
33138
+ filter:
33139
+ plannable_item_ids:
33140
+ - 46156648-87c6-478d-8aa7-1dc3a00dacab
33069
33141
  example:
33070
- plannable_item_ids:
33071
- - 46156648-87c6-478d-8aa7-1dc3a00dacab
33142
+ filter:
33143
+ plannable_item_ids:
33144
+ - 46156648-87c6-478d-8aa7-1dc3a00dacab
33072
33145
  required: false
33073
33146
  responses:
33074
33147
  '200':
@@ -33140,7 +33213,7 @@ paths:
33140
33213
  date: '2024-01-02'
33141
33214
  duration:
33142
33215
  value: 60
33143
- currency: minutes
33216
+ unit: minutes
33144
33217
  assignee: null
33145
33218
  origin: null
33146
33219
  source:
@@ -33155,7 +33228,7 @@ paths:
33155
33228
  date: '2024-01-02'
33156
33229
  duration:
33157
33230
  value: 60
33158
- currency: minutes
33231
+ unit: minutes
33159
33232
  assignee: null
33160
33233
  origin: null
33161
33234
  source:
@@ -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.166.0
6
+ version: 1.168.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -5035,7 +5035,7 @@ paths:
5035
5035
  title: My meeting
5036
5036
  description: My meeting description
5037
5037
  created_at: '2020-02-01T10:33:45+00:00'
5038
- creaded_by:
5038
+ created_by:
5039
5039
  type: user
5040
5040
  id: b5094b3f-bb7a-0391-b01b-e709773f3509
5041
5041
  scheduled_at: '2020-02-04T16:44:33+00:00'
@@ -7569,7 +7569,7 @@ paths:
7569
7569
  filter:
7570
7570
  subject:
7571
7571
  id: 018d5965-19fb-701a-af11-e80451931551
7572
- type: incoming_invoice
7572
+ type: incomingInvoice
7573
7573
  schema:
7574
7574
  type: object
7575
7575
  properties:
@@ -7585,8 +7585,8 @@ paths:
7585
7585
  type:
7586
7586
  type: string
7587
7587
  enum:
7588
- - incoming_invoice
7589
- - incoming_credit_note
7588
+ - incomingInvoice
7589
+ - incomingCreditNote
7590
7590
  - receipt
7591
7591
  required:
7592
7592
  - subject
@@ -7635,7 +7635,7 @@ paths:
7635
7635
  - id: 018d5965-19fb-701a-af11-e80451931551
7636
7636
  subject:
7637
7637
  id: 018d5965-19fb-701a-af11-e80451931551
7638
- type: incoming_invoice
7638
+ type: incomingInvoice
7639
7639
  email_address: john.doe@example.com
7640
7640
  status: sending
7641
7641
  created_at: '2025-02-26 15:56:40'
@@ -7669,7 +7669,7 @@ paths:
7669
7669
  - not_sent
7670
7670
  payment_statuses:
7671
7671
  - paid
7672
- - unpaid
7672
+ - not_paid
7673
7673
  department_ids:
7674
7674
  - 018fcef1-4f96-7349-9f57-1c7857023c42
7675
7675
  supplier:
@@ -7747,6 +7747,7 @@ paths:
7747
7747
  - incoming_credit_notes
7748
7748
  parameters: []
7749
7749
  requestBody:
7750
+ required: true
7750
7751
  content:
7751
7752
  application/json:
7752
7753
  example:
@@ -7855,6 +7856,7 @@ paths:
7855
7856
  - incoming_credit_notes
7856
7857
  parameters: []
7857
7858
  requestBody:
7859
+ required: true
7858
7860
  content:
7859
7861
  application/json:
7860
7862
  example:
@@ -7880,6 +7882,7 @@ paths:
7880
7882
  - incoming_credit_notes
7881
7883
  parameters: []
7882
7884
  requestBody:
7885
+ required: true
7883
7886
  content:
7884
7887
  application/json:
7885
7888
  example:
@@ -7905,6 +7908,7 @@ paths:
7905
7908
  - incoming_credit_notes
7906
7909
  parameters: []
7907
7910
  requestBody:
7911
+ required: true
7908
7912
  content:
7909
7913
  application/json:
7910
7914
  example:
@@ -8090,6 +8094,7 @@ paths:
8090
8094
  - incoming_credit_notes
8091
8095
  parameters: []
8092
8096
  requestBody:
8097
+ required: true
8093
8098
  content:
8094
8099
  application/json:
8095
8100
  example:
@@ -8115,6 +8120,7 @@ paths:
8115
8120
  - incoming_credit_notes
8116
8121
  parameters: []
8117
8122
  requestBody:
8123
+ required: true
8118
8124
  content:
8119
8125
  application/json:
8120
8126
  example:
@@ -8191,6 +8197,7 @@ paths:
8191
8197
  - incoming_credit_notes
8192
8198
  parameters: []
8193
8199
  requestBody:
8200
+ required: true
8194
8201
  content:
8195
8202
  application/json:
8196
8203
  example:
@@ -8216,6 +8223,7 @@ paths:
8216
8223
  - incoming_credit_notes
8217
8224
  parameters: []
8218
8225
  requestBody:
8226
+ required: true
8219
8227
  content:
8220
8228
  application/json:
8221
8229
  example:
@@ -8605,6 +8613,7 @@ paths:
8605
8613
  - unknown
8606
8614
  - paid
8607
8615
  - partially_paid
8616
+ - credited
8608
8617
  - not_paid
8609
8618
  example:
8610
8619
  data:
@@ -8930,6 +8939,7 @@ paths:
8930
8939
  - receipts
8931
8940
  parameters: []
8932
8941
  requestBody:
8942
+ required: true
8933
8943
  content:
8934
8944
  application/json:
8935
8945
  example:
@@ -8997,12 +9007,13 @@ paths:
8997
9007
  type: object
8998
9008
  properties:
8999
9009
  data:
9000
- type: object
9001
- properties:
9002
- type:
9003
- type: string
9004
- id:
9005
- type: string
9010
+ allOf:
9011
+ - $ref: '#/components/schemas/TypeAndId'
9012
+ - properties:
9013
+ type:
9014
+ example: receipt
9015
+ id:
9016
+ example: 018d5965-19fb-701a-af11-e80451931551
9006
9017
  example:
9007
9018
  data:
9008
9019
  type: receipt
@@ -9016,6 +9027,7 @@ paths:
9016
9027
  - receipts
9017
9028
  parameters: []
9018
9029
  requestBody:
9030
+ required: true
9019
9031
  content:
9020
9032
  application/json:
9021
9033
  example:
@@ -9041,6 +9053,7 @@ paths:
9041
9053
  - receipts
9042
9054
  parameters: []
9043
9055
  requestBody:
9056
+ required: true
9044
9057
  content:
9045
9058
  application/json:
9046
9059
  example:
@@ -9066,6 +9079,7 @@ paths:
9066
9079
  - receipts
9067
9080
  parameters: []
9068
9081
  requestBody:
9082
+ required: true
9069
9083
  content:
9070
9084
  application/json:
9071
9085
  example:
@@ -9223,11 +9237,12 @@ paths:
9223
9237
  post:
9224
9238
  summary: receipts.markAsPendingReview
9225
9239
  operationId: receipts.markAsPendingReview
9226
- description: Mark a receipts as pending review.
9240
+ description: Mark a receipt as pending review.
9227
9241
  tags:
9228
9242
  - receipts
9229
9243
  parameters: []
9230
9244
  requestBody:
9245
+ required: true
9231
9246
  content:
9232
9247
  application/json:
9233
9248
  example:
@@ -9248,11 +9263,12 @@ paths:
9248
9263
  post:
9249
9264
  summary: receipts.refuse
9250
9265
  operationId: receipts.refuse
9251
- description: Refuse a receipts.
9266
+ description: Refuse a receipt.
9252
9267
  tags:
9253
9268
  - receipts
9254
9269
  parameters: []
9255
9270
  requestBody:
9271
+ required: true
9256
9272
  content:
9257
9273
  application/json:
9258
9274
  example:
@@ -9356,6 +9372,7 @@ paths:
9356
9372
  - receipts
9357
9373
  parameters: []
9358
9374
  requestBody:
9375
+ required: true
9359
9376
  content:
9360
9377
  application/json:
9361
9378
  example:
@@ -16437,13 +16454,13 @@ paths:
16437
16454
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
16438
16455
  total_duration:
16439
16456
  value: 600
16440
- currency: minutes
16457
+ unit: minutes
16441
16458
  planned_duration:
16442
16459
  value: 600
16443
- currency: minutes
16460
+ unit: minutes
16444
16461
  unplanned_duration:
16445
16462
  value: 0
16446
- currency: minutes
16463
+ unit: minutes
16447
16464
  example:
16448
16465
  data:
16449
16466
  - id: 018d79a1-2b99-7fbd-b323-500b01305371
@@ -16452,13 +16469,13 @@ paths:
16452
16469
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
16453
16470
  total_duration:
16454
16471
  value: 600
16455
- currency: minutes
16472
+ unit: minutes
16456
16473
  planned_duration:
16457
16474
  value: 600
16458
- currency: minutes
16475
+ unit: minutes
16459
16476
  unplanned_duration:
16460
16477
  value: 0
16461
- currency: minutes
16478
+ unit: minutes
16462
16479
  deprecated: false
16463
16480
  /plannableItems.info:
16464
16481
  post:
@@ -16497,13 +16514,13 @@ paths:
16497
16514
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
16498
16515
  total_duration:
16499
16516
  value: 600
16500
- currency: minutes
16517
+ unit: minutes
16501
16518
  planned_duration:
16502
16519
  value: 600
16503
- currency: minutes
16520
+ unit: minutes
16504
16521
  unplanned_duration:
16505
16522
  value: 0
16506
- currency: minutes
16523
+ unit: minutes
16507
16524
  example:
16508
16525
  data:
16509
16526
  id: 018d79a1-2b99-7fbd-b323-500b01305371
@@ -16512,13 +16529,13 @@ paths:
16512
16529
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
16513
16530
  total_duration:
16514
16531
  value: 600
16515
- currency: minutes
16532
+ unit: minutes
16516
16533
  planned_duration:
16517
16534
  value: 600
16518
- currency: minutes
16535
+ unit: minutes
16519
16536
  unplanned_duration:
16520
16537
  value: 0
16521
- currency: minutes
16538
+ unit: minutes
16522
16539
  deprecated: false
16523
16540
  /reservations.list:
16524
16541
  post:
@@ -16536,11 +16553,13 @@ paths:
16536
16553
  allOf:
16537
16554
  - $ref: '#/components/schemas/reservations.list.request'
16538
16555
  - example:
16539
- plannable_item_ids:
16540
- - 46156648-87c6-478d-8aa7-1dc3a00dacab
16556
+ filter:
16557
+ plannable_item_ids:
16558
+ - 46156648-87c6-478d-8aa7-1dc3a00dacab
16541
16559
  example:
16542
- plannable_item_ids:
16543
- - 46156648-87c6-478d-8aa7-1dc3a00dacab
16560
+ filter:
16561
+ plannable_item_ids:
16562
+ - 46156648-87c6-478d-8aa7-1dc3a00dacab
16544
16563
  required: false
16545
16564
  responses:
16546
16565
  '200':
@@ -16560,7 +16579,7 @@ paths:
16560
16579
  date: '2024-01-02'
16561
16580
  duration:
16562
16581
  value: 60
16563
- currency: minutes
16582
+ unit: minutes
16564
16583
  assignee: null
16565
16584
  origin: null
16566
16585
  source:
@@ -16575,7 +16594,7 @@ paths:
16575
16594
  date: '2024-01-02'
16576
16595
  duration:
16577
16596
  value: 60
16578
- currency: minutes
16597
+ unit: minutes
16579
16598
  assignee: null
16580
16599
  origin: null
16581
16600
  source:
@@ -17066,6 +17085,26 @@ components:
17066
17085
  fiscal_regime:
17067
17086
  type: string
17068
17087
  nullable: true
17088
+ enum:
17089
+ - RF01
17090
+ - RF02
17091
+ - RF03
17092
+ - RF04
17093
+ - RF05
17094
+ - RF06
17095
+ - RF07
17096
+ - RF08
17097
+ - RF09
17098
+ - RF10
17099
+ - RF11
17100
+ - RF12
17101
+ - RF13
17102
+ - RF14
17103
+ - RF15
17104
+ - RF16
17105
+ - RF17
17106
+ - RF18
17107
+ - RF19
17069
17108
  example: RF01
17070
17109
  status:
17071
17110
  type: string
@@ -17163,6 +17202,15 @@ components:
17163
17202
  example: Europe/Brussels
17164
17203
  preferences:
17165
17204
  $ref: '#/components/schemas/UserPreferences'
17205
+ teams:
17206
+ type: array
17207
+ items:
17208
+ allOf:
17209
+ - $ref: '#/components/schemas/TypeAndId'
17210
+ - properties:
17211
+ type:
17212
+ type: string
17213
+ example: team
17166
17214
  Page:
17167
17215
  title: Page
17168
17216
  type: object
@@ -17640,6 +17688,8 @@ components:
17640
17688
  allOf:
17641
17689
  - $ref: '#/components/schemas/Context'
17642
17690
  - example: contact
17691
+ required:
17692
+ type: boolean
17643
17693
  configuration:
17644
17694
  type: object
17645
17695
  description: |
@@ -17748,6 +17798,10 @@ components:
17748
17798
  extra_option_allowed:
17749
17799
  type: boolean
17750
17800
  example: true
17801
+ default_value:
17802
+ type: string
17803
+ nullable: true
17804
+ description: Only returned for `single_select` type
17751
17805
  description: ''
17752
17806
  customFieldDefinitions.info.request:
17753
17807
  title: customFieldDefinitions.info.request
@@ -17817,16 +17871,6 @@ components:
17817
17871
  example: design
17818
17872
  page:
17819
17873
  $ref: '#/components/schemas/Page'
17820
- sort:
17821
- allOf:
17822
- - $ref: '#/components/schemas/Sort'
17823
- - properties:
17824
- field:
17825
- type: string
17826
- default: name
17827
- order:
17828
- type: string
17829
- default: asc
17830
17874
  IdAndName:
17831
17875
  title: IdAndName
17832
17876
  type: object
@@ -20884,9 +20928,8 @@ components:
20884
20928
  enum:
20885
20929
  - open
20886
20930
  - accepted
20931
+ - refused
20887
20932
  - expired
20888
- - rejected
20889
- - closed
20890
20933
  example: open
20891
20934
  name:
20892
20935
  type: string
@@ -21149,9 +21192,8 @@ components:
21149
21192
  enum:
21150
21193
  - open
21151
21194
  - accepted
21195
+ - refused
21152
21196
  - expired
21153
- - rejected
21154
- - closed
21155
21197
  example: open
21156
21198
  name:
21157
21199
  type: string
@@ -23328,6 +23370,7 @@ components:
23328
23370
  - pdf
23329
23371
  - ubl/e-fff
23330
23372
  - ubl/peppol_bis_3
23373
+ - ubl/xrechnung
23331
23374
  type: string
23332
23375
  example: pdf
23333
23376
  invoices.download.request:
@@ -24023,6 +24066,8 @@ components:
24023
24066
  enum:
24024
24067
  - pdf
24025
24068
  - ubl/e-fff
24069
+ - ubl/peppol_bis_3
24070
+ - ubl/xrechnung
24026
24071
  type: string
24027
24072
  example: pdf
24028
24073
  creditNotes.download.request:
@@ -24928,8 +24973,11 @@ components:
24928
24973
  items:
24929
24974
  type: string
24930
24975
  enum:
24976
+ - unknown
24931
24977
  - paid
24932
- - unpaid
24978
+ - partially_paid
24979
+ - credited
24980
+ - not_paid
24933
24981
  department_ids:
24934
24982
  type: array
24935
24983
  description: Filters by one or more department IDs
@@ -24985,7 +25033,7 @@ components:
24985
25033
  - after
24986
25034
  value:
24987
25035
  type: string
24988
- description: Required if operator is `equals`, `before`, or `after`
25036
+ description: Required if operator is `equals`, `before`, or `after`, date is inclusive
24989
25037
  start:
24990
25038
  type: string
24991
25039
  description: Required if operator is `between`
@@ -25125,6 +25173,7 @@ components:
25125
25173
  - unknown
25126
25174
  - paid
25127
25175
  - partially_paid
25176
+ - credited
25128
25177
  - not_paid
25129
25178
  paid_amount:
25130
25179
  type: number
@@ -29610,10 +29659,11 @@ components:
29610
29659
  - $ref: '#/components/schemas/Sort'
29611
29660
  - properties:
29612
29661
  field:
29613
- enum:
29614
- - name
29615
29662
  type: string
29616
- example: name
29663
+ enum:
29664
+ - created_at
29665
+ - due_on
29666
+ example: due_on
29617
29667
  description: ''
29618
29668
  Priority:
29619
29669
  title: Priority
@@ -31138,6 +31188,7 @@ components:
31138
31188
  - deal
31139
31189
  - invoice
31140
31190
  - creditNote
31191
+ - meeting
31141
31192
  - product
31142
31193
  - project
31143
31194
  - nextgenProject
@@ -31216,6 +31267,9 @@ components:
31216
31267
  - deal
31217
31268
  - invoice
31218
31269
  - creditNote
31270
+ - meeting
31271
+ - product
31272
+ - project
31219
31273
  - nextgenProject
31220
31274
  - ticket
31221
31275
  example: company
@@ -31946,6 +32000,7 @@ components:
31946
32000
  type:
31947
32001
  type: string
31948
32002
  enum:
32003
+ - deal
31949
32004
  - invoice
31950
32005
  - quotation
31951
32006
  - ticket
@@ -31957,11 +32012,24 @@ components:
31957
32012
  type: object
31958
32013
  properties:
31959
32014
  data:
31960
- type: object
31961
- properties:
31962
- url:
31963
- type: string
31964
- example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32015
+ oneOf:
32016
+ - title: Response for type=deal
32017
+ type: object
32018
+ description: Returned when type is `deal`.
32019
+ properties:
32020
+ public:
32021
+ type: string
32022
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32023
+ preview:
32024
+ type: string
32025
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/?preview=true
32026
+ - title: Response for type=invoice, type=quotation, type=ticket
32027
+ type: object
32028
+ description: Returned when type is `invoice`, `quotation`, or `ticket`.
32029
+ properties:
32030
+ url:
32031
+ type: string
32032
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
31965
32033
  accounts.projects-v2-status.response:
31966
32034
  title: accounts.projects-v2-status.response
31967
32035
  type: object
@@ -31990,14 +32058,18 @@ components:
31990
32058
  type: array
31991
32059
  items:
31992
32060
  type: string
31993
- status:
32061
+ types:
31994
32062
  type: array
31995
32063
  items:
31996
32064
  type: string
31997
32065
  enum:
31998
- - active
31999
- - deactivated
32000
- example: active
32066
+ - closingDay
32067
+ - dayOffType
32068
+ - meeting
32069
+ - task
32070
+ - call
32071
+ - externalEvent
32072
+ example: task
32001
32073
  term:
32002
32074
  type: string
32003
32075
  example: Set-up
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added the `teams` field to the `users.me` endpoint response.
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.166.0",
4
+ "version": "1.168.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"