@teamleader/focus-api-specification 1.222.0 → 1.224.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.222.0
6
+ version: 1.224.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -4329,44 +4329,6 @@ paths:
4329
4329
  headers: {}
4330
4330
  content: {}
4331
4331
  deprecated: false
4332
- /dealPhases.duplicate:
4333
- post:
4334
- tags:
4335
- - deal_phases
4336
- summary: dealPhases.duplicate
4337
- description: Create a new deal phase by duplicating an existing one.
4338
- operationId: dealPhases.duplicate
4339
- parameters: []
4340
- requestBody:
4341
- description: ''
4342
- content:
4343
- application/json:
4344
- schema:
4345
- allOf:
4346
- - $ref: '#/components/schemas/dealPhases.duplicate.request'
4347
- - example:
4348
- id: 22364cbf-971e-022c-811b-a76c28000257
4349
- example:
4350
- id: 22364cbf-971e-022c-811b-a76c28000257
4351
- required: true
4352
- responses:
4353
- '201':
4354
- description: ''
4355
- headers: {}
4356
- content:
4357
- application/json:
4358
- schema:
4359
- allOf:
4360
- - $ref: '#/components/schemas/dealPhases.duplicate.response'
4361
- - example:
4362
- data:
4363
- type: dealPhase
4364
- id: eb264fd0-0e5c-0dbf-ae1e-49e7d6a8e6b8
4365
- example:
4366
- data:
4367
- type: dealPhase
4368
- id: eb264fd0-0e5c-0dbf-ae1e-49e7d6a8e6b8
4369
- deprecated: false
4370
4332
  /dealPhases.move:
4371
4333
  post:
4372
4334
  tags:
@@ -21095,31 +21057,6 @@ components:
21095
21057
  items:
21096
21058
  $ref: '#/components/schemas/FollowUpActions'
21097
21059
  description: ''
21098
- dealPhases.duplicate.request:
21099
- title: dealPhases.duplicate.request
21100
- required:
21101
- - id
21102
- type: object
21103
- properties:
21104
- id:
21105
- type: string
21106
- description: Id from source phase
21107
- example: 22364cbf-971e-022c-811b-a76c28000257
21108
- dealPhases.duplicate.response:
21109
- title: dealPhases.duplicate.response
21110
- type: object
21111
- properties:
21112
- data:
21113
- type: object
21114
- required:
21115
- - id
21116
- properties:
21117
- type:
21118
- type: string
21119
- example: dealPhase
21120
- id:
21121
- type: string
21122
- example: eb264fd0-0e5c-0dbf-ae1e-49e7d6a8e6b8
21123
21060
  dealPhases.move.request:
21124
21061
  title: dealPhases.move.request
21125
21062
  required:
@@ -31581,10 +31518,19 @@ components:
31581
31518
  properties:
31582
31519
  filter:
31583
31520
  type: object
31584
- required:
31585
- - subject
31521
+ description: Either `subject` or `ids` is required
31522
+ anyOf:
31523
+ - title: By subject
31524
+ description: Lists the files linked to `subject`
31525
+ required:
31526
+ - subject
31527
+ - title: By ids
31528
+ description: Lists the files with the given `ids`
31529
+ required:
31530
+ - ids
31586
31531
  properties:
31587
31532
  subject:
31533
+ description: Required, unless `ids` is given
31588
31534
  allOf:
31589
31535
  - $ref: '#/components/schemas/TypeAndId'
31590
31536
  - properties:
@@ -31602,6 +31548,18 @@ components:
31602
31548
  - nextgenProject
31603
31549
  - ticket
31604
31550
  example: company
31551
+ ids:
31552
+ type: array
31553
+ description: Only returns the files with these ids. Files the user has no access to are left out.
31554
+ items:
31555
+ type: string
31556
+ example:
31557
+ - a856642a-a476-4b69-8e42-e7d1badb2ce9
31558
+ - b0e1ad49-2a4e-4c8f-9a3f-1d2f6c7e8a90
31559
+ term:
31560
+ type: string
31561
+ description: Filters on the file name. Accents and special characters are transliterated, so `cafe` also matches `Café.pdf`.
31562
+ example: invoice
31605
31563
  page:
31606
31564
  $ref: '#/components/schemas/Page'
31607
31565
  sort:
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added `filter.ids` to `files.list`. When `ids` is given, `filter.subject` is no longer required.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added `filter.term` to `files.list`. It filters on the file name, ignoring accents and special characters.
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.222.0",
4
+ "version": "1.224.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"