Skip to content

Commit ceb4790

Browse files
feat(specs): introduce multifeed composition behavior for beta release (generated)
algolia/api-clients-automation#5828 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Gavin Wade <gavin.wade12@gmail.com>
1 parent 4b04977 commit ceb4790

6 files changed

Lines changed: 29 additions & 7 deletions

File tree

packages/composition/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ All of our clients comes with type definition, and are available for both browse
4040
### With a package manager
4141

4242
```bash
43-
yarn add @algolia/composition@1.22.4
43+
yarn add @algolia/composition@1.22.4-beta.0
4444
# or
45-
npm install @algolia/composition@1.22.4
45+
npm install @algolia/composition@1.22.4-beta.0
4646
# or
47-
pnpm add @algolia/composition@1.22.4
47+
pnpm add @algolia/composition@1.22.4-beta.0
4848
```
4949

5050
### Without a package manager
5151

5252
Add the following JavaScript snippet to the <head> of your website:
5353

5454
```html
55-
<script src="https://cdn.jsdelivr.net/npm/@algolia/composition@1.22.4/dist/builds/browser.umd.js"></script>
55+
<script src="https://cdn.jsdelivr.net/npm/@algolia/composition@1.22.4-beta.0/dist/builds/browser.umd.js"></script>
5656
```
5757

5858
### Usage
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

33
import type { Injection } from './injection';
4+
import type { Multifeed } from './multifeed';
45

6+
/**
7+
* An object containing either an `injection` or `multifeed` behavior schema, but not both.
8+
*/
59
export type CompositionBehavior = {
6-
injection: Injection;
10+
injection?: Injection | undefined;
11+
12+
multifeed?: Multifeed | undefined;
713
};

packages/composition/model/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export * from './main';
6767
export * from './mainInjectionQueryParameters';
6868
export * from './matchedGeoLocation';
6969
export * from './matchLevel';
70+
export * from './multifeed';
7071
export * from './multipleBatchRequest';
7172
export * from './multipleBatchResponse';
7273
export * from './numericFilters';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
import type { Injection } from './injection';
4+
5+
export type Multifeed = {
6+
/**
7+
* A key-value store of Feed ID to Feed. Currently, the only supported Feed type is an Injection.
8+
*/
9+
feeds: { [key: string]: Injection };
10+
11+
/**
12+
* A list of Feed IDs that specifies the order in which to order the results in the response. The IDs should be a subset of those in the Feeds object, and only those specified will be processed. When this field is not set, all Feeds are processed and returned with a default ordering.
13+
*/
14+
feedsOrder?: Array<string> | undefined;
15+
};

packages/composition/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.22.4",
2+
"version": "1.22.4-beta.0",
33
"repository": {
44
"type": "git",
55
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"

packages/composition/src/compositionClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import type {
4747
WaitForCompositionTaskOptions,
4848
} from '../model/clientMethodProps';
4949

50-
export const apiClientVersion = '1.22.4';
50+
export const apiClientVersion = '1.22.4-beta.0';
5151

5252
function getDefaultHosts(appId: string): Host[] {
5353
return (

0 commit comments

Comments
 (0)