Fetch a model collection.
(key: IntegrationTaskKey, params: { slug: string })
| 9 | |
| 10 | /** Fetch a model collection. */ |
| 11 | get(key: IntegrationTaskKey, params: { slug: string }): ReplicateReturnType<Collection> { |
| 12 | return this.runTask( |
| 13 | key, |
| 14 | (client) => { |
| 15 | return client.collections.get(params.slug); |
| 16 | }, |
| 17 | { |
| 18 | name: "Get Collection", |
| 19 | params, |
| 20 | properties: [{ label: "Collection Slug", text: params.slug }], |
| 21 | } |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | /** Fetch a list of model collections. */ |
| 26 | list(key: IntegrationTaskKey): ReplicateReturnType<Page<Collection>> { |