Skip to content

Commit

Permalink
feat(generators): allow per-spec timeouts [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4173

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
  • Loading branch information
4 people committed Dec 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3505be0 commit fa44a7d
Showing 32 changed files with 117 additions and 299 deletions.
9 changes: 3 additions & 6 deletions packages/algoliasearch/lite/builds/browser.ts
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ import {
createFallbackableCache,
createMemoryCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_BROWSER,
DEFAULT_READ_TIMEOUT_BROWSER,
DEFAULT_WRITE_TIMEOUT_BROWSER,
} from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';
@@ -33,9 +30,9 @@ export function liteClient(appId: string, apiKey: string, options?: ClientOption
appId,
apiKey,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_BROWSER,
read: DEFAULT_READ_TIMEOUT_BROWSER,
write: DEFAULT_WRITE_TIMEOUT_BROWSER,
connect: 1000,
read: 2000,
write: 30000,
},
logger: createNullLogger(),
requester: createXhrRequester(),
15 changes: 4 additions & 11 deletions packages/algoliasearch/lite/builds/node.ts
Original file line number Diff line number Diff line change
@@ -4,14 +4,7 @@ export type LiteClient = ReturnType<typeof createLiteClient>;

import { createHttpRequester } from '@algolia/requester-node-http';

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';

@@ -34,9 +27,9 @@ export function liteClient(appId: string, apiKey: string, options?: ClientOption
appId,
apiKey,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
requester: createHttpRequester(),
9 changes: 3 additions & 6 deletions packages/client-abtesting/builds/browser.ts
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ import {
createFallbackableCache,
createMemoryCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_BROWSER,
DEFAULT_READ_TIMEOUT_BROWSER,
DEFAULT_WRITE_TIMEOUT_BROWSER,
} from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';
@@ -48,9 +45,9 @@ export function abtestingClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_BROWSER,
read: DEFAULT_READ_TIMEOUT_BROWSER,
write: DEFAULT_WRITE_TIMEOUT_BROWSER,
connect: 1000,
read: 2000,
write: 30000,
},
logger: createNullLogger(),
requester: createXhrRequester(),
15 changes: 4 additions & 11 deletions packages/client-abtesting/builds/fetch.ts
Original file line number Diff line number Diff line change
@@ -2,14 +2,7 @@

export type AbtestingClient = ReturnType<typeof createAbtestingClient>;

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';
import { createFetchRequester } from '@algolia/requester-fetch';

import type { ClientOptions } from '@algolia/client-common';
@@ -49,9 +42,9 @@ export function abtestingClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
algoliaAgents: [{ segment: 'Fetch' }],
15 changes: 4 additions & 11 deletions packages/client-abtesting/builds/node.ts
Original file line number Diff line number Diff line change
@@ -4,14 +4,7 @@ export type AbtestingClient = ReturnType<typeof createAbtestingClient>;

import { createHttpRequester } from '@algolia/requester-node-http';

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';

@@ -50,9 +43,9 @@ export function abtestingClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
requester: createHttpRequester(),
9 changes: 3 additions & 6 deletions packages/client-analytics/builds/browser.ts
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ import {
createFallbackableCache,
createMemoryCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_BROWSER,
DEFAULT_READ_TIMEOUT_BROWSER,
DEFAULT_WRITE_TIMEOUT_BROWSER,
} from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';
@@ -48,9 +45,9 @@ export function analyticsClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_BROWSER,
read: DEFAULT_READ_TIMEOUT_BROWSER,
write: DEFAULT_WRITE_TIMEOUT_BROWSER,
connect: 1000,
read: 2000,
write: 30000,
},
logger: createNullLogger(),
requester: createXhrRequester(),
15 changes: 4 additions & 11 deletions packages/client-analytics/builds/fetch.ts
Original file line number Diff line number Diff line change
@@ -2,14 +2,7 @@

export type AnalyticsClient = ReturnType<typeof createAnalyticsClient>;

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';
import { createFetchRequester } from '@algolia/requester-fetch';

import type { ClientOptions } from '@algolia/client-common';
@@ -49,9 +42,9 @@ export function analyticsClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
algoliaAgents: [{ segment: 'Fetch' }],
15 changes: 4 additions & 11 deletions packages/client-analytics/builds/node.ts
Original file line number Diff line number Diff line change
@@ -4,14 +4,7 @@ export type AnalyticsClient = ReturnType<typeof createAnalyticsClient>;

import { createHttpRequester } from '@algolia/requester-node-http';

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';

@@ -50,9 +43,9 @@ export function analyticsClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
requester: createHttpRequester(),
9 changes: 3 additions & 6 deletions packages/client-composition/builds/browser.ts
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ import {
createFallbackableCache,
createMemoryCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_BROWSER,
DEFAULT_READ_TIMEOUT_BROWSER,
DEFAULT_WRITE_TIMEOUT_BROWSER,
} from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';
@@ -33,9 +30,9 @@ export function compositionClient(appId: string, apiKey: string, options?: Clien
appId,
apiKey,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_BROWSER,
read: DEFAULT_READ_TIMEOUT_BROWSER,
write: DEFAULT_WRITE_TIMEOUT_BROWSER,
connect: 1000,
read: 2000,
write: 30000,
},
logger: createNullLogger(),
requester: createXhrRequester(),
15 changes: 4 additions & 11 deletions packages/client-composition/builds/fetch.ts
Original file line number Diff line number Diff line change
@@ -2,14 +2,7 @@

export type CompositionClient = ReturnType<typeof createCompositionClient>;

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';
import { createFetchRequester } from '@algolia/requester-fetch';

import type { ClientOptions } from '@algolia/client-common';
@@ -34,9 +27,9 @@ export function compositionClient(appId: string, apiKey: string, options?: Clien
appId,
apiKey,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
algoliaAgents: [{ segment: 'Fetch' }],
15 changes: 4 additions & 11 deletions packages/client-composition/builds/node.ts
Original file line number Diff line number Diff line change
@@ -4,14 +4,7 @@ export type CompositionClient = ReturnType<typeof createCompositionClient>;

import { createHttpRequester } from '@algolia/requester-node-http';

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';

@@ -35,9 +28,9 @@ export function compositionClient(appId: string, apiKey: string, options?: Clien
appId,
apiKey,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
requester: createHttpRequester(),
9 changes: 3 additions & 6 deletions packages/client-insights/builds/browser.ts
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ import {
createFallbackableCache,
createMemoryCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_BROWSER,
DEFAULT_READ_TIMEOUT_BROWSER,
DEFAULT_WRITE_TIMEOUT_BROWSER,
} from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';
@@ -48,9 +45,9 @@ export function insightsClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_BROWSER,
read: DEFAULT_READ_TIMEOUT_BROWSER,
write: DEFAULT_WRITE_TIMEOUT_BROWSER,
connect: 1000,
read: 2000,
write: 30000,
},
logger: createNullLogger(),
requester: createXhrRequester(),
15 changes: 4 additions & 11 deletions packages/client-insights/builds/fetch.ts
Original file line number Diff line number Diff line change
@@ -2,14 +2,7 @@

export type InsightsClient = ReturnType<typeof createInsightsClient>;

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';
import { createFetchRequester } from '@algolia/requester-fetch';

import type { ClientOptions } from '@algolia/client-common';
@@ -49,9 +42,9 @@ export function insightsClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
algoliaAgents: [{ segment: 'Fetch' }],
15 changes: 4 additions & 11 deletions packages/client-insights/builds/node.ts
Original file line number Diff line number Diff line change
@@ -4,14 +4,7 @@ export type InsightsClient = ReturnType<typeof createInsightsClient>;

import { createHttpRequester } from '@algolia/requester-node-http';

import {
createMemoryCache,
createNullCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_NODE,
DEFAULT_READ_TIMEOUT_NODE,
DEFAULT_WRITE_TIMEOUT_NODE,
} from '@algolia/client-common';
import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';

@@ -50,9 +43,9 @@ export function insightsClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
read: DEFAULT_READ_TIMEOUT_NODE,
write: DEFAULT_WRITE_TIMEOUT_NODE,
connect: 2000,
read: 5000,
write: 30000,
},
logger: createNullLogger(),
requester: createHttpRequester(),
9 changes: 3 additions & 6 deletions packages/client-personalization/builds/browser.ts
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ import {
createFallbackableCache,
createMemoryCache,
createNullLogger,
DEFAULT_CONNECT_TIMEOUT_BROWSER,
DEFAULT_READ_TIMEOUT_BROWSER,
DEFAULT_WRITE_TIMEOUT_BROWSER,
} from '@algolia/client-common';

import type { ClientOptions } from '@algolia/client-common';
@@ -48,9 +45,9 @@ export function personalizationClient(
apiKey,
region,
timeouts: {
connect: DEFAULT_CONNECT_TIMEOUT_BROWSER,
read: DEFAULT_READ_TIMEOUT_BROWSER,
write: DEFAULT_WRITE_TIMEOUT_BROWSER,
connect: 1000,
read: 2000,
write: 30000,
},
logger: createNullLogger(),
requester: createXhrRequester(),
Loading

0 comments on commit fa44a7d

Please sign in to comment.