@teamleader/focus-api-specification 1.165.0 → 1.167.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.165.0
6
+ version: 1.167.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
@@ -1621,6 +1641,8 @@ paths:
1621
1641
  - ticket
1622
1642
  type: string
1623
1643
  - example: contact
1644
+ required:
1645
+ type: boolean
1624
1646
  configuration:
1625
1647
  type: object
1626
1648
  description: |
@@ -1807,6 +1829,10 @@ paths:
1807
1829
  extra_option_allowed:
1808
1830
  type: boolean
1809
1831
  example: true
1832
+ default_value:
1833
+ type: string
1834
+ nullable: true
1835
+ description: Only returned for `single_select` type
1810
1836
  description: ''
1811
1837
  - example:
1812
1838
  data:
@@ -1972,19 +1998,6 @@ paths:
1972
1998
  title: Page
1973
1999
  type: object
1974
2000
  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
2001
  required: false
1989
2002
  responses:
1990
2003
  '200':
@@ -8446,9 +8459,8 @@ paths:
8446
8459
  enum:
8447
8460
  - open
8448
8461
  - accepted
8462
+ - refused
8449
8463
  - expired
8450
- - rejected
8451
- - closed
8452
8464
  example: open
8453
8465
  name:
8454
8466
  type: string
@@ -8845,9 +8857,8 @@ paths:
8845
8857
  enum:
8846
8858
  - open
8847
8859
  - accepted
8860
+ - refused
8848
8861
  - expired
8849
- - rejected
8850
- - closed
8851
8862
  example: open
8852
8863
  name:
8853
8864
  type: string
@@ -10034,7 +10045,7 @@ paths:
10034
10045
  title: My meeting
10035
10046
  description: My meeting description
10036
10047
  created_at: '2020-02-01T10:33:45+00:00'
10037
- creaded_by:
10048
+ created_by:
10038
10049
  type: user
10039
10050
  id: b5094b3f-bb7a-0391-b01b-e709773f3509
10040
10051
  scheduled_at: '2020-02-04T16:44:33+00:00'
@@ -13075,6 +13086,7 @@ paths:
13075
13086
  - pdf
13076
13087
  - ubl/e-fff
13077
13088
  - ubl/peppol_bis_3
13089
+ - ubl/xrechnung
13078
13090
  type: string
13079
13091
  example: pdf
13080
13092
  - example: pdf
@@ -14649,6 +14661,8 @@ paths:
14649
14661
  enum: &ref_408
14650
14662
  - pdf
14651
14663
  - ubl/e-fff
14664
+ - ubl/peppol_bis_3
14665
+ - ubl/xrechnung
14652
14666
  type: string
14653
14667
  example: pdf
14654
14668
  - example: pdf
@@ -15997,7 +16011,7 @@ paths:
15997
16011
  filter:
15998
16012
  subject:
15999
16013
  id: 018d5965-19fb-701a-af11-e80451931551
16000
- type: incoming_invoice
16014
+ type: incomingInvoice
16001
16015
  schema:
16002
16016
  type: object
16003
16017
  properties:
@@ -16013,8 +16027,8 @@ paths:
16013
16027
  type:
16014
16028
  type: string
16015
16029
  enum:
16016
- - incoming_invoice
16017
- - incoming_credit_note
16030
+ - incomingInvoice
16031
+ - incomingCreditNote
16018
16032
  - receipt
16019
16033
  required:
16020
16034
  - subject
@@ -16063,7 +16077,7 @@ paths:
16063
16077
  - id: 018d5965-19fb-701a-af11-e80451931551
16064
16078
  subject:
16065
16079
  id: 018d5965-19fb-701a-af11-e80451931551
16066
- type: incoming_invoice
16080
+ type: incomingInvoice
16067
16081
  email_address: john.doe@example.com
16068
16082
  status: sending
16069
16083
  created_at: '2025-02-26 15:56:40'
@@ -16120,8 +16134,11 @@ paths:
16120
16134
  items:
16121
16135
  type: string
16122
16136
  enum:
16137
+ - unknown
16123
16138
  - paid
16124
- - unpaid
16139
+ - partially_paid
16140
+ - credited
16141
+ - not_paid
16125
16142
  department_ids:
16126
16143
  type: array
16127
16144
  description: Filters by one or more department IDs
@@ -16177,7 +16194,7 @@ paths:
16177
16194
  - after
16178
16195
  value:
16179
16196
  type: string
16180
- description: Required if operator is `equals`, `before`, or `after`
16197
+ description: Required if operator is `equals`, `before`, or `after`, date is inclusive
16181
16198
  start:
16182
16199
  type: string
16183
16200
  description: Required if operator is `between`
@@ -16226,7 +16243,7 @@ paths:
16226
16243
  - not_sent
16227
16244
  payment_statuses:
16228
16245
  - paid
16229
- - unpaid
16246
+ - not_paid
16230
16247
  department_ids:
16231
16248
  - 018fcef1-4f96-7349-9f57-1c7857023c42
16232
16249
  supplier:
@@ -16365,6 +16382,7 @@ paths:
16365
16382
  - unknown
16366
16383
  - paid
16367
16384
  - partially_paid
16385
+ - credited
16368
16386
  - not_paid
16369
16387
  paid_amount:
16370
16388
  type: number
@@ -16428,6 +16446,7 @@ paths:
16428
16446
  - incoming_credit_notes
16429
16447
  parameters: []
16430
16448
  requestBody:
16449
+ required: true
16431
16450
  content:
16432
16451
  application/json:
16433
16452
  example:
@@ -16538,6 +16557,7 @@ paths:
16538
16557
  - incoming_credit_notes
16539
16558
  parameters: []
16540
16559
  requestBody:
16560
+ required: true
16541
16561
  content:
16542
16562
  application/json:
16543
16563
  example:
@@ -16563,6 +16583,7 @@ paths:
16563
16583
  - incoming_credit_notes
16564
16584
  parameters: []
16565
16585
  requestBody:
16586
+ required: true
16566
16587
  content:
16567
16588
  application/json:
16568
16589
  example:
@@ -16588,6 +16609,7 @@ paths:
16588
16609
  - incoming_credit_notes
16589
16610
  parameters: []
16590
16611
  requestBody:
16612
+ required: true
16591
16613
  content:
16592
16614
  application/json:
16593
16615
  example:
@@ -16817,6 +16839,7 @@ paths:
16817
16839
  - incoming_credit_notes
16818
16840
  parameters: []
16819
16841
  requestBody:
16842
+ required: true
16820
16843
  content:
16821
16844
  application/json:
16822
16845
  example:
@@ -16842,6 +16865,7 @@ paths:
16842
16865
  - incoming_credit_notes
16843
16866
  parameters: []
16844
16867
  requestBody:
16868
+ required: true
16845
16869
  content:
16846
16870
  application/json:
16847
16871
  example:
@@ -16958,6 +16982,7 @@ paths:
16958
16982
  - incoming_credit_notes
16959
16983
  parameters: []
16960
16984
  requestBody:
16985
+ required: true
16961
16986
  content:
16962
16987
  application/json:
16963
16988
  example:
@@ -16983,6 +17008,7 @@ paths:
16983
17008
  - incoming_credit_notes
16984
17009
  parameters: []
16985
17010
  requestBody:
17011
+ required: true
16986
17012
  content:
16987
17013
  application/json:
16988
17014
  example:
@@ -17401,6 +17427,7 @@ paths:
17401
17427
  - unknown
17402
17428
  - paid
17403
17429
  - partially_paid
17430
+ - credited
17404
17431
  - not_paid
17405
17432
  example:
17406
17433
  data:
@@ -17833,6 +17860,7 @@ paths:
17833
17860
  - receipts
17834
17861
  parameters: []
17835
17862
  requestBody:
17863
+ required: true
17836
17864
  content:
17837
17865
  application/json:
17838
17866
  example:
@@ -17902,12 +17930,15 @@ paths:
17902
17930
  type: object
17903
17931
  properties:
17904
17932
  data:
17905
- type: object
17906
- properties:
17907
- type:
17908
- type: string
17909
- id:
17910
- type: string
17933
+ allOf:
17934
+ - title: TypeAndId
17935
+ type: object
17936
+ properties: *ref_1
17937
+ - properties:
17938
+ type:
17939
+ example: receipt
17940
+ id:
17941
+ example: 018d5965-19fb-701a-af11-e80451931551
17911
17942
  example:
17912
17943
  data:
17913
17944
  type: receipt
@@ -17921,6 +17952,7 @@ paths:
17921
17952
  - receipts
17922
17953
  parameters: []
17923
17954
  requestBody:
17955
+ required: true
17924
17956
  content:
17925
17957
  application/json:
17926
17958
  example:
@@ -17946,6 +17978,7 @@ paths:
17946
17978
  - receipts
17947
17979
  parameters: []
17948
17980
  requestBody:
17981
+ required: true
17949
17982
  content:
17950
17983
  application/json:
17951
17984
  example:
@@ -17971,6 +18004,7 @@ paths:
17971
18004
  - receipts
17972
18005
  parameters: []
17973
18006
  requestBody:
18007
+ required: true
17974
18008
  content:
17975
18009
  application/json:
17976
18010
  example:
@@ -18172,11 +18206,12 @@ paths:
18172
18206
  post:
18173
18207
  summary: receipts.markAsPendingReview
18174
18208
  operationId: receipts.markAsPendingReview
18175
- description: Mark a receipts as pending review.
18209
+ description: Mark a receipt as pending review.
18176
18210
  tags:
18177
18211
  - receipts
18178
18212
  parameters: []
18179
18213
  requestBody:
18214
+ required: true
18180
18215
  content:
18181
18216
  application/json:
18182
18217
  example:
@@ -18197,11 +18232,12 @@ paths:
18197
18232
  post:
18198
18233
  summary: receipts.refuse
18199
18234
  operationId: receipts.refuse
18200
- description: Refuse a receipts.
18235
+ description: Refuse a receipt.
18201
18236
  tags:
18202
18237
  - receipts
18203
18238
  parameters: []
18204
18239
  requestBody:
18240
+ required: true
18205
18241
  content:
18206
18242
  application/json:
18207
18243
  example:
@@ -18345,6 +18381,7 @@ paths:
18345
18381
  - receipts
18346
18382
  parameters: []
18347
18383
  requestBody:
18384
+ required: true
18348
18385
  content:
18349
18386
  application/json:
18350
18387
  example:
@@ -27915,10 +27952,11 @@ paths:
27915
27952
  properties: *ref_4
27916
27953
  - properties:
27917
27954
  field:
27918
- enum:
27919
- - name
27920
27955
  type: string
27921
- example: name
27956
+ enum:
27957
+ - created_at
27958
+ - due_on
27959
+ example: due_on
27922
27960
  description: ''
27923
27961
  required: false
27924
27962
  responses:
@@ -31073,6 +31111,7 @@ paths:
31073
31111
  - deal
31074
31112
  - invoice
31075
31113
  - creditNote
31114
+ - meeting
31076
31115
  - product
31077
31116
  - project
31078
31117
  - nextgenProject
@@ -31160,6 +31199,9 @@ paths:
31160
31199
  - deal
31161
31200
  - invoice
31162
31201
  - creditNote
31202
+ - meeting
31203
+ - product
31204
+ - project
31163
31205
  - nextgenProject
31164
31206
  - ticket
31165
31207
  example: company
@@ -32583,6 +32625,7 @@ paths:
32583
32625
  type:
32584
32626
  type: string
32585
32627
  enum:
32628
+ - deal
32586
32629
  - invoice
32587
32630
  - quotation
32588
32631
  - ticket
@@ -32608,11 +32651,24 @@ paths:
32608
32651
  type: object
32609
32652
  properties: &ref_732
32610
32653
  data:
32611
- type: object
32612
- properties:
32613
- url:
32614
- type: string
32615
- example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32654
+ oneOf:
32655
+ - title: Response for type=deal
32656
+ type: object
32657
+ description: Returned when type is `deal`.
32658
+ properties:
32659
+ public:
32660
+ type: string
32661
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32662
+ preview:
32663
+ type: string
32664
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/?preview=true
32665
+ - title: Response for type=invoice, type=quotation, type=ticket
32666
+ type: object
32667
+ description: Returned when type is `invoice`, `quotation`, or `ticket`.
32668
+ properties:
32669
+ url:
32670
+ type: string
32671
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32616
32672
  - example:
32617
32673
  data:
32618
32674
  url: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
@@ -32695,14 +32751,18 @@ paths:
32695
32751
  type: array
32696
32752
  items:
32697
32753
  type: string
32698
- status:
32754
+ types:
32699
32755
  type: array
32700
32756
  items:
32701
32757
  type: string
32702
32758
  enum:
32703
- - active
32704
- - deactivated
32705
- example: active
32759
+ - closingDay
32760
+ - dayOffType
32761
+ - meeting
32762
+ - task
32763
+ - call
32764
+ - externalEvent
32765
+ example: task
32706
32766
  term:
32707
32767
  type: string
32708
32768
  example: Set-up
@@ -32847,13 +32907,13 @@ paths:
32847
32907
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32848
32908
  total_duration:
32849
32909
  value: 600
32850
- currency: minutes
32910
+ unit: minutes
32851
32911
  planned_duration:
32852
32912
  value: 600
32853
- currency: minutes
32913
+ unit: minutes
32854
32914
  unplanned_duration:
32855
32915
  value: 0
32856
- currency: minutes
32916
+ unit: minutes
32857
32917
  example:
32858
32918
  data:
32859
32919
  - id: 018d79a1-2b99-7fbd-b323-500b01305371
@@ -32862,13 +32922,13 @@ paths:
32862
32922
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32863
32923
  total_duration:
32864
32924
  value: 600
32865
- currency: minutes
32925
+ unit: minutes
32866
32926
  planned_duration:
32867
32927
  value: 600
32868
- currency: minutes
32928
+ unit: minutes
32869
32929
  unplanned_duration:
32870
32930
  value: 0
32871
- currency: minutes
32931
+ unit: minutes
32872
32932
  deprecated: false
32873
32933
  /plannableItems.info:
32874
32934
  post:
@@ -32953,13 +33013,13 @@ paths:
32953
33013
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32954
33014
  total_duration:
32955
33015
  value: 600
32956
- currency: minutes
33016
+ unit: minutes
32957
33017
  planned_duration:
32958
33018
  value: 600
32959
- currency: minutes
33019
+ unit: minutes
32960
33020
  unplanned_duration:
32961
33021
  value: 0
32962
- currency: minutes
33022
+ unit: minutes
32963
33023
  example:
32964
33024
  data:
32965
33025
  id: 018d79a1-2b99-7fbd-b323-500b01305371
@@ -32968,13 +33028,13 @@ paths:
32968
33028
  id: 948b8ca5-58aa-0844-ba34-cee255aa9694
32969
33029
  total_duration:
32970
33030
  value: 600
32971
- currency: minutes
33031
+ unit: minutes
32972
33032
  planned_duration:
32973
33033
  value: 600
32974
- currency: minutes
33034
+ unit: minutes
32975
33035
  unplanned_duration:
32976
33036
  value: 0
32977
- currency: minutes
33037
+ unit: minutes
32978
33038
  deprecated: false
32979
33039
  /reservations.list:
32980
33040
  post:
@@ -33064,11 +33124,13 @@ paths:
33064
33124
  type: object
33065
33125
  properties: *ref_6
33066
33126
  - example:
33067
- plannable_item_ids:
33068
- - 46156648-87c6-478d-8aa7-1dc3a00dacab
33127
+ filter:
33128
+ plannable_item_ids:
33129
+ - 46156648-87c6-478d-8aa7-1dc3a00dacab
33069
33130
  example:
33070
- plannable_item_ids:
33071
- - 46156648-87c6-478d-8aa7-1dc3a00dacab
33131
+ filter:
33132
+ plannable_item_ids:
33133
+ - 46156648-87c6-478d-8aa7-1dc3a00dacab
33072
33134
  required: false
33073
33135
  responses:
33074
33136
  '200':
@@ -33140,7 +33202,7 @@ paths:
33140
33202
  date: '2024-01-02'
33141
33203
  duration:
33142
33204
  value: 60
33143
- currency: minutes
33205
+ unit: minutes
33144
33206
  assignee: null
33145
33207
  origin: null
33146
33208
  source:
@@ -33155,7 +33217,7 @@ paths:
33155
33217
  date: '2024-01-02'
33156
33218
  duration:
33157
33219
  value: 60
33158
- currency: minutes
33220
+ unit: minutes
33159
33221
  assignee: null
33160
33222
  origin: null
33161
33223
  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.165.0
6
+ version: 1.167.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
@@ -17640,6 +17679,8 @@ components:
17640
17679
  allOf:
17641
17680
  - $ref: '#/components/schemas/Context'
17642
17681
  - example: contact
17682
+ required:
17683
+ type: boolean
17643
17684
  configuration:
17644
17685
  type: object
17645
17686
  description: |
@@ -17748,6 +17789,10 @@ components:
17748
17789
  extra_option_allowed:
17749
17790
  type: boolean
17750
17791
  example: true
17792
+ default_value:
17793
+ type: string
17794
+ nullable: true
17795
+ description: Only returned for `single_select` type
17751
17796
  description: ''
17752
17797
  customFieldDefinitions.info.request:
17753
17798
  title: customFieldDefinitions.info.request
@@ -17817,16 +17862,6 @@ components:
17817
17862
  example: design
17818
17863
  page:
17819
17864
  $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
17865
  IdAndName:
17831
17866
  title: IdAndName
17832
17867
  type: object
@@ -20884,9 +20919,8 @@ components:
20884
20919
  enum:
20885
20920
  - open
20886
20921
  - accepted
20922
+ - refused
20887
20923
  - expired
20888
- - rejected
20889
- - closed
20890
20924
  example: open
20891
20925
  name:
20892
20926
  type: string
@@ -21149,9 +21183,8 @@ components:
21149
21183
  enum:
21150
21184
  - open
21151
21185
  - accepted
21186
+ - refused
21152
21187
  - expired
21153
- - rejected
21154
- - closed
21155
21188
  example: open
21156
21189
  name:
21157
21190
  type: string
@@ -23328,6 +23361,7 @@ components:
23328
23361
  - pdf
23329
23362
  - ubl/e-fff
23330
23363
  - ubl/peppol_bis_3
23364
+ - ubl/xrechnung
23331
23365
  type: string
23332
23366
  example: pdf
23333
23367
  invoices.download.request:
@@ -24023,6 +24057,8 @@ components:
24023
24057
  enum:
24024
24058
  - pdf
24025
24059
  - ubl/e-fff
24060
+ - ubl/peppol_bis_3
24061
+ - ubl/xrechnung
24026
24062
  type: string
24027
24063
  example: pdf
24028
24064
  creditNotes.download.request:
@@ -24928,8 +24964,11 @@ components:
24928
24964
  items:
24929
24965
  type: string
24930
24966
  enum:
24967
+ - unknown
24931
24968
  - paid
24932
- - unpaid
24969
+ - partially_paid
24970
+ - credited
24971
+ - not_paid
24933
24972
  department_ids:
24934
24973
  type: array
24935
24974
  description: Filters by one or more department IDs
@@ -24985,7 +25024,7 @@ components:
24985
25024
  - after
24986
25025
  value:
24987
25026
  type: string
24988
- description: Required if operator is `equals`, `before`, or `after`
25027
+ description: Required if operator is `equals`, `before`, or `after`, date is inclusive
24989
25028
  start:
24990
25029
  type: string
24991
25030
  description: Required if operator is `between`
@@ -25125,6 +25164,7 @@ components:
25125
25164
  - unknown
25126
25165
  - paid
25127
25166
  - partially_paid
25167
+ - credited
25128
25168
  - not_paid
25129
25169
  paid_amount:
25130
25170
  type: number
@@ -29610,10 +29650,11 @@ components:
29610
29650
  - $ref: '#/components/schemas/Sort'
29611
29651
  - properties:
29612
29652
  field:
29613
- enum:
29614
- - name
29615
29653
  type: string
29616
- example: name
29654
+ enum:
29655
+ - created_at
29656
+ - due_on
29657
+ example: due_on
29617
29658
  description: ''
29618
29659
  Priority:
29619
29660
  title: Priority
@@ -31138,6 +31179,7 @@ components:
31138
31179
  - deal
31139
31180
  - invoice
31140
31181
  - creditNote
31182
+ - meeting
31141
31183
  - product
31142
31184
  - project
31143
31185
  - nextgenProject
@@ -31216,6 +31258,9 @@ components:
31216
31258
  - deal
31217
31259
  - invoice
31218
31260
  - creditNote
31261
+ - meeting
31262
+ - product
31263
+ - project
31219
31264
  - nextgenProject
31220
31265
  - ticket
31221
31266
  example: company
@@ -31946,6 +31991,7 @@ components:
31946
31991
  type:
31947
31992
  type: string
31948
31993
  enum:
31994
+ - deal
31949
31995
  - invoice
31950
31996
  - quotation
31951
31997
  - ticket
@@ -31957,11 +32003,24 @@ components:
31957
32003
  type: object
31958
32004
  properties:
31959
32005
  data:
31960
- type: object
31961
- properties:
31962
- url:
31963
- type: string
31964
- example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32006
+ oneOf:
32007
+ - title: Response for type=deal
32008
+ type: object
32009
+ description: Returned when type is `deal`.
32010
+ properties:
32011
+ public:
32012
+ type: string
32013
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
32014
+ preview:
32015
+ type: string
32016
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/?preview=true
32017
+ - title: Response for type=invoice, type=quotation, type=ticket
32018
+ type: object
32019
+ description: Returned when type is `invoice`, `quotation`, or `ticket`.
32020
+ properties:
32021
+ url:
32022
+ type: string
32023
+ example: https://teamleader.cloud/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.yUmR5yNZ45P_jHDbjAzuk4kRA8YNoM9ckSZOZpMIJmU/
31965
32024
  accounts.projects-v2-status.response:
31966
32025
  title: accounts.projects-v2-status.response
31967
32026
  type: object
@@ -31990,14 +32049,18 @@ components:
31990
32049
  type: array
31991
32050
  items:
31992
32051
  type: string
31993
- status:
32052
+ types:
31994
32053
  type: array
31995
32054
  items:
31996
32055
  type: string
31997
32056
  enum:
31998
- - active
31999
- - deactivated
32000
- example: active
32057
+ - closingDay
32058
+ - dayOffType
32059
+ - meeting
32060
+ - task
32061
+ - call
32062
+ - externalEvent
32063
+ example: task
32001
32064
  term:
32002
32065
  type: string
32003
32066
  example: Set-up
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.165.0",
4
+ "version": "1.167.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"