Skip to content

Commit 2876fbe

Browse files
algolia-botfrancoischalifourshortcuts
committed
chore: generated code for commit a5ee875f. [skip ci]
algolia/api-clients-automation@a5ee875 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: François Chalifour <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 679fd2e commit 2876fbe

File tree

28 files changed

+76
-51
lines changed

28 files changed

+76
-51
lines changed

packages/client-abtesting/builds/browser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import {
1818
REGIONS,
1919
} from '../src/abtestingClient';
2020

21-
export { apiClientVersion, AbtestingClient } from '../src/abtestingClient';
21+
export {
22+
apiClientVersion,
23+
AbtestingClient,
24+
Region,
25+
} from '../src/abtestingClient';
2226
export * from '../model';
2327

2428
export function abtestingClient(

packages/client-abtesting/builds/node.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ import { createHttpRequester } from '@algolia/requester-node-http';
1313
import type { AbtestingClient, Region } from '../src/abtestingClient';
1414
import { createAbtestingClient, REGIONS } from '../src/abtestingClient';
1515

16-
export { apiClientVersion, AbtestingClient } from '../src/abtestingClient';
16+
export {
17+
apiClientVersion,
18+
AbtestingClient,
19+
Region,
20+
} from '../src/abtestingClient';
1721
export * from '../model';
1822

1923
export function abtestingClient(

packages/client-analytics/builds/browser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import {
1818
REGIONS,
1919
} from '../src/analyticsClient';
2020

21-
export { apiClientVersion, AnalyticsClient } from '../src/analyticsClient';
21+
export {
22+
apiClientVersion,
23+
AnalyticsClient,
24+
Region,
25+
} from '../src/analyticsClient';
2226
export * from '../model';
2327

2428
export function analyticsClient(

packages/client-analytics/builds/node.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ import { createHttpRequester } from '@algolia/requester-node-http';
1313
import type { AnalyticsClient, Region } from '../src/analyticsClient';
1414
import { createAnalyticsClient, REGIONS } from '../src/analyticsClient';
1515

16-
export { apiClientVersion, AnalyticsClient } from '../src/analyticsClient';
16+
export {
17+
apiClientVersion,
18+
AnalyticsClient,
19+
Region,
20+
} from '../src/analyticsClient';
1721
export * from '../model';
1822

1923
export function analyticsClient(

packages/client-insights/builds/browser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import {
1818
REGIONS,
1919
} from '../src/insightsClient';
2020

21-
export { apiClientVersion, InsightsClient } from '../src/insightsClient';
21+
export {
22+
apiClientVersion,
23+
InsightsClient,
24+
Region,
25+
} from '../src/insightsClient';
2226
export * from '../model';
2327

2428
export function insightsClient(

packages/client-insights/builds/node.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ import { createHttpRequester } from '@algolia/requester-node-http';
1313
import type { InsightsClient, Region } from '../src/insightsClient';
1414
import { createInsightsClient, REGIONS } from '../src/insightsClient';
1515

16-
export { apiClientVersion, InsightsClient } from '../src/insightsClient';
16+
export {
17+
apiClientVersion,
18+
InsightsClient,
19+
Region,
20+
} from '../src/insightsClient';
1721
export * from '../model';
1822

1923
export function insightsClient(

packages/client-personalization/builds/browser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
export {
2525
apiClientVersion,
2626
PersonalizationClient,
27+
Region,
2728
} from '../src/personalizationClient';
2829
export * from '../model';
2930

packages/client-personalization/builds/node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
export {
2323
apiClientVersion,
2424
PersonalizationClient,
25+
Region,
2526
} from '../src/personalizationClient';
2627
export * from '../model';
2728

packages/client-query-suggestions/builds/browser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
export {
2525
apiClientVersion,
2626
QuerySuggestionsClient,
27+
Region,
2728
} from '../src/querySuggestionsClient';
2829
export * from '../model';
2930

packages/client-query-suggestions/builds/node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
export {
2323
apiClientVersion,
2424
QuerySuggestionsClient,
25+
Region,
2526
} from '../src/querySuggestionsClient';
2627
export * from '../model';
2728

packages/client-sources/builds/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
REGIONS,
1919
} from '../src/sourcesClient';
2020

21-
export { apiClientVersion, SourcesClient } from '../src/sourcesClient';
21+
export { apiClientVersion, SourcesClient, Region } from '../src/sourcesClient';
2222
export * from '../model';
2323

2424
export function sourcesClient(

packages/client-sources/builds/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { createHttpRequester } from '@algolia/requester-node-http';
1313
import type { SourcesClient, Region } from '../src/sourcesClient';
1414
import { createSourcesClient, REGIONS } from '../src/sourcesClient';
1515

16-
export { apiClientVersion, SourcesClient } from '../src/sourcesClient';
16+
export { apiClientVersion, SourcesClient, Region } from '../src/sourcesClient';
1717
export * from '../model';
1818

1919
export function sourcesClient(

packages/predict/builds/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
REGIONS,
1919
} from '../src/predictClient';
2020

21-
export { apiClientVersion, PredictClient } from '../src/predictClient';
21+
export { apiClientVersion, PredictClient, Region } from '../src/predictClient';
2222
export * from '../model';
2323

2424
export function predictClient(

packages/predict/builds/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { createHttpRequester } from '@algolia/requester-node-http';
1313
import type { PredictClient, Region } from '../src/predictClient';
1414
import { createPredictClient, REGIONS } from '../src/predictClient';
1515

16-
export { apiClientVersion, PredictClient } from '../src/predictClient';
16+
export { apiClientVersion, PredictClient, Region } from '../src/predictClient';
1717
export * from '../model';
1818

1919
export function predictClient(
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
export type Affinities = {
4-
name?: string;
3+
export type Affinity = {
4+
name: string;
55

6-
value?: string;
6+
value: string;
77

8-
probability?: number;
8+
probability: number;
99
};

packages/predict/model/allParams.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
import type { ModelsToRetrieve } from './modelsToRetrieve';
4-
import type { TypesToRetrieve } from './typesToRetrieve';
3+
import type { ModelsToRetrieveParam } from './modelsToRetrieveParam';
4+
import type { TypesToRetrieveParam } from './typesToRetrieveParam';
55

6-
export type AllParams = ModelsToRetrieve & TypesToRetrieve;
6+
export type AllParams = ModelsToRetrieveParam & TypesToRetrieveParam;

packages/predict/model/funnelStage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
export type FunnelStage = {
4-
name?: string;
4+
name: string;
55

6-
probability?: number;
6+
probability: number;
77
};

packages/predict/model/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
export * from './affinities';
3+
export * from './affinity';
44
export * from './allParams';
55
export * from './errorBase';
66
export * from './fetchUserProfileResponse';
77
export * from './funnelStage';
88
export * from './modelsToRetrieve';
9-
export * from './modelsToRetrieveEnum';
9+
export * from './modelsToRetrieveParam';
1010
export * from './params';
1111
export * from './predictions';
1212
export * from './predictionsAffinities';
@@ -15,5 +15,5 @@ export * from './predictionsOrderValue';
1515
export * from './properties';
1616
export * from './segments';
1717
export * from './typesToRetrieve';
18-
export * from './typesToRetrieveEnum';
18+
export * from './typesToRetrieveParam';
1919
export * from './clientMethodProps';
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
import type { ModelsToRetrieveEnum } from './modelsToRetrieveEnum';
4-
5-
export type ModelsToRetrieve = {
6-
modelsToRetrieve: ModelsToRetrieveEnum[];
7-
};
3+
export type ModelsToRetrieve = 'affinities' | 'funnel_stage' | 'order_value';

packages/predict/model/modelsToRetrieveEnum.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { ModelsToRetrieve } from './modelsToRetrieve';
4+
5+
export type ModelsToRetrieveParam = {
6+
modelsToRetrieve?: ModelsToRetrieve[];
7+
};

packages/predict/model/params.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
import type { AllParams } from './allParams';
4-
import type { ModelsToRetrieve } from './modelsToRetrieve';
5-
import type { TypesToRetrieve } from './typesToRetrieve';
4+
import type { ModelsToRetrieveParam } from './modelsToRetrieveParam';
5+
import type { TypesToRetrieveParam } from './typesToRetrieveParam';
66

7-
export type Params = AllParams | ModelsToRetrieve | TypesToRetrieve;
7+
export type Params = AllParams | ModelsToRetrieveParam | TypesToRetrieveParam;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
import type { Affinities } from './affinities';
3+
import type { Affinity } from './affinity';
44

55
/**
66
* Prediction for the **affinities** model.
77
*/
88
export type PredictionsAffinities = {
9-
value?: Affinities[];
9+
value: Affinity[];
1010

11-
lastUpdatedAt?: string;
11+
lastUpdatedAt: string;
1212
};

packages/predict/model/predictionsFunnelStage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { FunnelStage } from './funnelStage';
66
* Prediction for the **funnel_stage** model.
77
*/
88
export type PredictionsFunnelStage = {
9-
value?: FunnelStage[];
9+
value: FunnelStage[];
1010

11-
lastUpdatedAt?: string;
11+
lastUpdatedAt: string;
1212
};

packages/predict/model/predictionsOrderValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Prediction for the **order_value** model.
55
*/
66
export type PredictionsOrderValue = {
7-
value?: number;
7+
value: number;
88

9-
lastUpdatedAt?: string;
9+
lastUpdatedAt: string;
1010
};
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
import type { TypesToRetrieveEnum } from './typesToRetrieveEnum';
4-
5-
export type TypesToRetrieve = {
6-
typesToRetrieve: TypesToRetrieveEnum[];
7-
};
3+
export type TypesToRetrieve = 'properties' | 'segments';

packages/predict/model/typesToRetrieveEnum.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { TypesToRetrieve } from './typesToRetrieve';
4+
5+
export type TypesToRetrieveParam = {
6+
typesToRetrieve?: TypesToRetrieve[];
7+
};

0 commit comments

Comments
 (0)