@teamleader/focus-api-specification 1.229.0 → 1.231.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.229.0
6
+ version: 1.231.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -17238,11 +17238,29 @@ paths:
17238
17238
  application/json:
17239
17239
  example:
17240
17240
  id: 018d5965-19fb-701a-af11-e80451931551
17241
+ refusal_reason_code: DUPLICATE_INVOICE
17241
17242
  schema:
17242
17243
  type: object
17243
17244
  properties:
17244
17245
  id:
17245
17246
  type: string
17247
+ refusal_reason_code:
17248
+ type: string
17249
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
17250
+ enum:
17251
+ - INCORRECT_VAT_RATE
17252
+ - INCORRECT_TOTAL_AMOUNT
17253
+ - CALCULATION_ERROR
17254
+ - MISSING_LEGAL_INFORMATION
17255
+ - DUPLICATE_INVOICE
17256
+ - WRONG_RECIPIENT
17257
+ - UNKNOWN_TRANSACTION
17258
+ - UNKNOWN_ISSUER
17259
+ - CONTRACT_ENDED
17260
+ - DOUBLE_INVOICING
17261
+ - ORDER_NUMBER_ERROR
17262
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
17263
+ - MISSING_CONTRACTUAL_REFERENCE
17246
17264
  required:
17247
17265
  - id
17248
17266
  responses:
@@ -17944,11 +17962,29 @@ paths:
17944
17962
  application/json:
17945
17963
  example:
17946
17964
  id: 018d5965-19fb-701a-af11-e80451931551
17965
+ refusal_reason_code: DUPLICATE_INVOICE
17947
17966
  schema:
17948
17967
  type: object
17949
17968
  properties:
17950
17969
  id:
17951
17970
  type: string
17971
+ refusal_reason_code:
17972
+ type: string
17973
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
17974
+ enum:
17975
+ - INCORRECT_VAT_RATE
17976
+ - INCORRECT_TOTAL_AMOUNT
17977
+ - CALCULATION_ERROR
17978
+ - MISSING_LEGAL_INFORMATION
17979
+ - DUPLICATE_INVOICE
17980
+ - WRONG_RECIPIENT
17981
+ - UNKNOWN_TRANSACTION
17982
+ - UNKNOWN_ISSUER
17983
+ - CONTRACT_ENDED
17984
+ - DOUBLE_INVOICING
17985
+ - ORDER_NUMBER_ERROR
17986
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
17987
+ - MISSING_CONTRACTUAL_REFERENCE
17952
17988
  required:
17953
17989
  - id
17954
17990
  responses:
@@ -21837,6 +21873,62 @@ paths:
21837
21873
  required: *ref_29
21838
21874
  properties: *ref_30
21839
21875
  description: ''
21876
+ created_at:
21877
+ type: object
21878
+ description: Filters by creation date
21879
+ properties:
21880
+ operator:
21881
+ type: string
21882
+ enum:
21883
+ - between
21884
+ - equals
21885
+ - before
21886
+ - after
21887
+ value:
21888
+ type: string
21889
+ format: date-time
21890
+ description: Required if operator is `equals`, `before`, or `after`
21891
+ example: '2022-02-01T00:00:00+00:00'
21892
+ start:
21893
+ type: string
21894
+ format: date-time
21895
+ description: Required if operator is `between`
21896
+ example: '2022-02-01T00:00:00+00:00'
21897
+ end:
21898
+ type: string
21899
+ format: date-time
21900
+ description: Required if operator is `between`
21901
+ example: '2022-02-28T23:59:59+00:00'
21902
+ required:
21903
+ - operator
21904
+ updated_at:
21905
+ type: object
21906
+ description: Filters by last update date
21907
+ properties:
21908
+ operator:
21909
+ type: string
21910
+ enum:
21911
+ - between
21912
+ - equals
21913
+ - before
21914
+ - after
21915
+ value:
21916
+ type: string
21917
+ format: date-time
21918
+ description: Required if operator is `equals`, `before`, or `after`
21919
+ example: '2022-02-01T00:00:00+00:00'
21920
+ start:
21921
+ type: string
21922
+ format: date-time
21923
+ description: Required if operator is `between`
21924
+ example: '2022-02-01T00:00:00+00:00'
21925
+ end:
21926
+ type: string
21927
+ format: date-time
21928
+ description: Required if operator is `between`
21929
+ example: '2022-02-28T23:59:59+00:00'
21930
+ required:
21931
+ - operator
21840
21932
  page:
21841
21933
  title: Page
21842
21934
  type: object
@@ -21857,6 +21949,7 @@ paths:
21857
21949
  - amount_paid
21858
21950
  - amount_unbilled
21859
21951
  - cost
21952
+ - created_at
21860
21953
  - customer
21861
21954
  - end_date
21862
21955
  - external_budget_spent
@@ -21871,6 +21964,7 @@ paths:
21871
21964
  - time_estimated
21872
21965
  - time_tracked
21873
21966
  - title
21967
+ - updated_at
21874
21968
  default: project_key
21875
21969
  order:
21876
21970
  default: desc
@@ -21895,6 +21989,13 @@ paths:
21895
21989
  customers:
21896
21990
  - type: contact
21897
21991
  id: 1106f231-0464-41b7-8b0b-19451af81afe
21992
+ created_at:
21993
+ operator: between
21994
+ start: '2022-02-01T00:00:00+00:00'
21995
+ end: '2022-02-28T23:59:59+00:00'
21996
+ updated_at:
21997
+ operator: after
21998
+ value: '2022-03-01T00:00:00+00:00'
21898
21999
  page:
21899
22000
  size: 20
21900
22001
  number: 1
@@ -21917,6 +22018,13 @@ paths:
21917
22018
  customers:
21918
22019
  - type: contact
21919
22020
  id: 1106f231-0464-41b7-8b0b-19451af81afe
22021
+ created_at:
22022
+ operator: between
22023
+ start: '2022-02-01T00:00:00+00:00'
22024
+ end: '2022-02-28T23:59:59+00:00'
22025
+ updated_at:
22026
+ operator: after
22027
+ value: '2022-03-01T00:00:00+00:00'
21920
22028
  page:
21921
22029
  size: 20
21922
22030
  number: 1
@@ -22118,6 +22226,14 @@ paths:
22118
22226
  type: string
22119
22227
  nullable: true
22120
22228
  example: '2022-02-28'
22229
+ created_at:
22230
+ type: string
22231
+ format: date-time
22232
+ example: '2022-02-01T10:33:45+00:00'
22233
+ updated_at:
22234
+ type: string
22235
+ format: date-time
22236
+ example: '2022-02-03T14:12:09+00:00'
22121
22237
  company_entity:
22122
22238
  type: object
22123
22239
  nullable: true
@@ -22283,6 +22399,8 @@ paths:
22283
22399
  margin_percentage: null
22284
22400
  start_date: '2022-02-23'
22285
22401
  end_date: '2022-02-28'
22402
+ created_at: '2022-02-01T10:33:45+00:00'
22403
+ updated_at: '2022-02-03T14:12:09+00:00'
22286
22404
  company_entity:
22287
22405
  type: department
22288
22406
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -22373,6 +22491,8 @@ paths:
22373
22491
  margin_percentage: null
22374
22492
  start_date: '2022-02-23'
22375
22493
  end_date: '2022-02-28'
22494
+ created_at: '2022-02-01T10:33:45+00:00'
22495
+ updated_at: '2022-02-03T14:12:09+00:00'
22376
22496
  company_entity:
22377
22497
  type: department
22378
22498
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -22635,6 +22755,14 @@ paths:
22635
22755
  type: string
22636
22756
  nullable: true
22637
22757
  example: '000023'
22758
+ created_at:
22759
+ type: string
22760
+ format: date-time
22761
+ example: '2022-02-01T10:33:45+00:00'
22762
+ updated_at:
22763
+ type: string
22764
+ format: date-time
22765
+ example: '2022-02-03T14:12:09+00:00'
22638
22766
  company_entity:
22639
22767
  type: object
22640
22768
  nullable: true
@@ -22796,6 +22924,8 @@ paths:
22796
22924
  start_date: '2022-02-23'
22797
22925
  end_date: '2022-02-28'
22798
22926
  purchase_order_number: '000023'
22927
+ created_at: '2022-02-01T10:33:45+00:00'
22928
+ updated_at: '2022-02-03T14:12:09+00:00'
22799
22929
  company_entity:
22800
22930
  type: department
22801
22931
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -22897,6 +23027,8 @@ paths:
22897
23027
  start_date: '2022-02-23'
22898
23028
  end_date: '2022-02-28'
22899
23029
  purchase_order_number: '000023'
23030
+ created_at: '2022-02-01T10:33:45+00:00'
23031
+ updated_at: '2022-02-03T14:12:09+00:00'
22900
23032
  company_entity:
22901
23033
  type: department
22902
23034
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -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.229.0
6
+ version: 1.231.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -8231,11 +8231,29 @@ paths:
8231
8231
  application/json:
8232
8232
  example:
8233
8233
  id: 018d5965-19fb-701a-af11-e80451931551
8234
+ refusal_reason_code: DUPLICATE_INVOICE
8234
8235
  schema:
8235
8236
  type: object
8236
8237
  properties:
8237
8238
  id:
8238
8239
  type: string
8240
+ refusal_reason_code:
8241
+ type: string
8242
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
8243
+ enum:
8244
+ - INCORRECT_VAT_RATE
8245
+ - INCORRECT_TOTAL_AMOUNT
8246
+ - CALCULATION_ERROR
8247
+ - MISSING_LEGAL_INFORMATION
8248
+ - DUPLICATE_INVOICE
8249
+ - WRONG_RECIPIENT
8250
+ - UNKNOWN_TRANSACTION
8251
+ - UNKNOWN_ISSUER
8252
+ - CONTRACT_ENDED
8253
+ - DOUBLE_INVOICING
8254
+ - ORDER_NUMBER_ERROR
8255
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
8256
+ - MISSING_CONTRACTUAL_REFERENCE
8239
8257
  required:
8240
8258
  - id
8241
8259
  responses:
@@ -8826,11 +8844,29 @@ paths:
8826
8844
  application/json:
8827
8845
  example:
8828
8846
  id: 018d5965-19fb-701a-af11-e80451931551
8847
+ refusal_reason_code: DUPLICATE_INVOICE
8829
8848
  schema:
8830
8849
  type: object
8831
8850
  properties:
8832
8851
  id:
8833
8852
  type: string
8853
+ refusal_reason_code:
8854
+ type: string
8855
+ description: The reason the document is refused. Required under the French e-invoicing reform when refusing an expense received as an electronic invoice; not needed for expenses uploaded manually or via OCR.
8856
+ enum:
8857
+ - INCORRECT_VAT_RATE
8858
+ - INCORRECT_TOTAL_AMOUNT
8859
+ - CALCULATION_ERROR
8860
+ - MISSING_LEGAL_INFORMATION
8861
+ - DUPLICATE_INVOICE
8862
+ - WRONG_RECIPIENT
8863
+ - UNKNOWN_TRANSACTION
8864
+ - UNKNOWN_ISSUER
8865
+ - CONTRACT_ENDED
8866
+ - DOUBLE_INVOICING
8867
+ - ORDER_NUMBER_ERROR
8868
+ - WRONG_ELECTRONIC_BILLING_ADDRESS
8869
+ - MISSING_CONTRACTUAL_REFERENCE
8834
8870
  required:
8835
8871
  - id
8836
8872
  responses:
@@ -11151,6 +11187,13 @@ paths:
11151
11187
  customers:
11152
11188
  - type: contact
11153
11189
  id: 1106f231-0464-41b7-8b0b-19451af81afe
11190
+ created_at:
11191
+ operator: between
11192
+ start: '2022-02-01T00:00:00+00:00'
11193
+ end: '2022-02-28T23:59:59+00:00'
11194
+ updated_at:
11195
+ operator: after
11196
+ value: '2022-03-01T00:00:00+00:00'
11154
11197
  page:
11155
11198
  size: 20
11156
11199
  number: 1
@@ -11173,6 +11216,13 @@ paths:
11173
11216
  customers:
11174
11217
  - type: contact
11175
11218
  id: 1106f231-0464-41b7-8b0b-19451af81afe
11219
+ created_at:
11220
+ operator: between
11221
+ start: '2022-02-01T00:00:00+00:00'
11222
+ end: '2022-02-28T23:59:59+00:00'
11223
+ updated_at:
11224
+ operator: after
11225
+ value: '2022-03-01T00:00:00+00:00'
11176
11226
  page:
11177
11227
  size: 20
11178
11228
  number: 1
@@ -11245,6 +11295,8 @@ paths:
11245
11295
  margin_percentage: null
11246
11296
  start_date: '2022-02-23'
11247
11297
  end_date: '2022-02-28'
11298
+ created_at: '2022-02-01T10:33:45+00:00'
11299
+ updated_at: '2022-02-03T14:12:09+00:00'
11248
11300
  company_entity:
11249
11301
  type: department
11250
11302
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -11335,6 +11387,8 @@ paths:
11335
11387
  margin_percentage: null
11336
11388
  start_date: '2022-02-23'
11337
11389
  end_date: '2022-02-28'
11390
+ created_at: '2022-02-01T10:33:45+00:00'
11391
+ updated_at: '2022-02-03T14:12:09+00:00'
11338
11392
  company_entity:
11339
11393
  type: department
11340
11394
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -11459,6 +11513,8 @@ paths:
11459
11513
  start_date: '2022-02-23'
11460
11514
  end_date: '2022-02-28'
11461
11515
  purchase_order_number: '000023'
11516
+ created_at: '2022-02-01T10:33:45+00:00'
11517
+ updated_at: '2022-02-03T14:12:09+00:00'
11462
11518
  company_entity:
11463
11519
  type: department
11464
11520
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -11560,6 +11616,8 @@ paths:
11560
11616
  start_date: '2022-02-23'
11561
11617
  end_date: '2022-02-28'
11562
11618
  purchase_order_number: '000023'
11619
+ created_at: '2022-02-01T10:33:45+00:00'
11620
+ updated_at: '2022-02-03T14:12:09+00:00'
11563
11621
  company_entity:
11564
11622
  type: department
11565
11623
  id: 0d0dec5a-7096-4009-be37-07eab117db07
@@ -27130,6 +27188,62 @@ components:
27130
27188
  items:
27131
27189
  $ref: '#/components/schemas/Customer'
27132
27190
  description: ''
27191
+ created_at:
27192
+ type: object
27193
+ description: Filters by creation date
27194
+ properties:
27195
+ operator:
27196
+ type: string
27197
+ enum:
27198
+ - between
27199
+ - equals
27200
+ - before
27201
+ - after
27202
+ value:
27203
+ type: string
27204
+ format: date-time
27205
+ description: Required if operator is `equals`, `before`, or `after`
27206
+ example: '2022-02-01T00:00:00+00:00'
27207
+ start:
27208
+ type: string
27209
+ format: date-time
27210
+ description: Required if operator is `between`
27211
+ example: '2022-02-01T00:00:00+00:00'
27212
+ end:
27213
+ type: string
27214
+ format: date-time
27215
+ description: Required if operator is `between`
27216
+ example: '2022-02-28T23:59:59+00:00'
27217
+ required:
27218
+ - operator
27219
+ updated_at:
27220
+ type: object
27221
+ description: Filters by last update date
27222
+ properties:
27223
+ operator:
27224
+ type: string
27225
+ enum:
27226
+ - between
27227
+ - equals
27228
+ - before
27229
+ - after
27230
+ value:
27231
+ type: string
27232
+ format: date-time
27233
+ description: Required if operator is `equals`, `before`, or `after`
27234
+ example: '2022-02-01T00:00:00+00:00'
27235
+ start:
27236
+ type: string
27237
+ format: date-time
27238
+ description: Required if operator is `between`
27239
+ example: '2022-02-01T00:00:00+00:00'
27240
+ end:
27241
+ type: string
27242
+ format: date-time
27243
+ description: Required if operator is `between`
27244
+ example: '2022-02-28T23:59:59+00:00'
27245
+ required:
27246
+ - operator
27133
27247
  page:
27134
27248
  $ref: '#/components/schemas/Page'
27135
27249
  sort:
@@ -27145,6 +27259,7 @@ components:
27145
27259
  - amount_paid
27146
27260
  - amount_unbilled
27147
27261
  - cost
27262
+ - created_at
27148
27263
  - customer
27149
27264
  - end_date
27150
27265
  - external_budget_spent
@@ -27159,6 +27274,7 @@ components:
27159
27274
  - time_estimated
27160
27275
  - time_tracked
27161
27276
  - title
27277
+ - updated_at
27162
27278
  default: project_key
27163
27279
  order:
27164
27280
  default: desc
@@ -27351,6 +27467,14 @@ components:
27351
27467
  type: string
27352
27468
  nullable: true
27353
27469
  example: '2022-02-28'
27470
+ created_at:
27471
+ type: string
27472
+ format: date-time
27473
+ example: '2022-02-01T10:33:45+00:00'
27474
+ updated_at:
27475
+ type: string
27476
+ format: date-time
27477
+ example: '2022-02-03T14:12:09+00:00'
27354
27478
  company_entity:
27355
27479
  type: object
27356
27480
  nullable: true
@@ -27562,6 +27686,14 @@ components:
27562
27686
  type: string
27563
27687
  nullable: true
27564
27688
  example: '000023'
27689
+ created_at:
27690
+ type: string
27691
+ format: date-time
27692
+ example: '2022-02-01T10:33:45+00:00'
27693
+ updated_at:
27694
+ type: string
27695
+ format: date-time
27696
+ example: '2022-02-03T14:12:09+00:00'
27565
27697
  company_entity:
27566
27698
  type: object
27567
27699
  nullable: true
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ The `incomingInvoices.refuse` and `incomingCreditNotes.refuse` endpoints now accept an optional `refusal_reason_code`. France requires a reason when refusing an electronic invoice, so the code is passed on to the sender over the exchange network; existing callers can keep refusing without one.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added `created_at` and `updated_at` to `projects-v2/projects.info`.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added `created_at` and `updated_at` to `projects-v2/projects.list`.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added the `created_at` filter to `projects-v2/projects.list`.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added the `updated_at` filter to `projects-v2/projects.list`.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added `created_at` as a sort field on `projects-v2/projects.list`.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added `updated_at` as a sort field on `projects-v2/projects.list`.
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.229.0",
4
+ "version": "1.231.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"