Skip to content

Commit

Permalink
go 1.21 (generated)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot committed Oct 10, 2024
1 parent c29d615 commit 65e9864
Show file tree
Hide file tree
Showing 92 changed files with 56 additions and 107 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/node.cjs');
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/lite/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/lite/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { apiClientVersion, createLiteClient } from '../src/liteClient';
export * from '../model';
export { apiClientVersion } from '../src/liteClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function liteClient(appId: string, apiKey: string, options?: ClientOptions): LiteClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { createLiteClient } from '../src/liteClient';
export * from '../model';
export { apiClientVersion } from '../src/liteClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function liteClient(appId: string, apiKey: string, options?: ClientOptions): LiteClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ function getDefaultHosts(appId: string): Host[] {
);
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createLiteClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down Expand Up @@ -214,7 +213,6 @@ export function createLiteClient({
requests: getRecommendationsParams,
};

// eslint-disable-next-line no-param-reassign
getRecommendationsParams = newSignatureRequest;
}

Expand Down Expand Up @@ -276,7 +274,6 @@ export function createLiteClient({
}),
};

// eslint-disable-next-line no-param-reassign
searchMethodParams = newSignatureRequest;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/abtestingClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/abtestingClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function abtestingClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/abtestingClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/abtestingClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function abtestingClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { Region, REGIONS } from '../src/abtestingClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/abtestingClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function abtestingClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function getDefaultHosts(region?: Region): Host[] {
return [{ url, accept: 'readWrite', protocol: 'https' }];
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createAbtestingClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/analyticsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/analyticsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function analyticsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/analyticsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/analyticsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function analyticsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { Region, REGIONS } from '../src/analyticsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/analyticsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function analyticsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ function getDefaultHosts(region?: Region): Host[] {
return [{ url, accept: 'readWrite', protocol: 'https' }];
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createAnalyticsClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/insightsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/insightsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function insightsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/insightsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/insightsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function insightsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { Region, REGIONS } from '../src/insightsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/insightsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function insightsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function getDefaultHosts(region?: Region): Host[] {
return [{ url, accept: 'readWrite', protocol: 'https' }];
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createInsightsClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/personalizationClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/personalizationClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function personalizationClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/personalizationClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/personalizationClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function personalizationClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { Region, REGIONS } from '../src/personalizationClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/personalizationClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function personalizationClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function getDefaultHosts(region: Region): Host[] {
return [{ url, accept: 'readWrite', protocol: 'https' }];
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createPersonalizationClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/querySuggestionsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/querySuggestionsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function querySuggestionsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Region, REGIONS } from '../src/querySuggestionsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/querySuggestionsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function querySuggestionsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { Region, REGIONS } from '../src/querySuggestionsClient';
export * from '../model';
export { apiClientVersion, Region } from '../src/querySuggestionsClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function querySuggestionsClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function getDefaultHosts(region: Region): Host[] {
return [{ url, accept: 'readWrite', protocol: 'https' }];
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createQuerySuggestionsClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { apiClientVersion, createSearchClient } from '../src/searchClient';
export * from '../model';
export { apiClientVersion } from '../src/searchClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function searchClient(appId: string, apiKey: string, options?: ClientOptions): SearchClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {

import { createHmac } from 'node:crypto';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function searchClient(appId: string, apiKey: string, options?: ClientOptions): SearchClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down Expand Up @@ -78,7 +77,6 @@ export function searchClient(appId: string, apiKey: string, options?: ClientOpti
.sort()
.reduce(
(acc, key) => {
// eslint-disable-next-line no-param-reassign
acc[key] = (mergedRestrictions as any)[key];
return acc;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {

import { createHmac } from 'node:crypto';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function searchClient(appId: string, apiKey: string, options?: ClientOptions): SearchClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down Expand Up @@ -79,7 +78,6 @@ export function searchClient(appId: string, apiKey: string, options?: ClientOpti
.sort()
.reduce(
(acc, key) => {
// eslint-disable-next-line no-param-reassign
acc[key] = (mergedRestrictions as any)[key];
return acc;
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ function getDefaultHosts(appId: string): Host[] {
);
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createSearchClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down Expand Up @@ -2546,7 +2545,6 @@ export function createSearchClient({
}),
};

// eslint-disable-next-line no-param-reassign
searchMethodParams = newSignatureRequest;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export {
Region,
} from '../src/ingestionClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function ingestionClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export {
Region,
} from '../src/ingestionClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function ingestionClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export {
Region,
} from '../src/ingestionClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function ingestionClient(
appId: string,
apiKey: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export function isSubscriptionTrigger(trigger: TaskCreateTrigger | Trigger): tri
return trigger.type === 'subscription';
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createIngestionClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { apiClientVersion, createMonitoringClient } from '../src/monitoringClien
export * from '../model';
export { apiClientVersion } from '../src/monitoringClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): MonitoringClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { createMonitoringClient } from '../src/monitoringClient';
export * from '../model';
export { apiClientVersion } from '../src/monitoringClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): MonitoringClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { createMonitoringClient } from '../src/monitoringClient';
export * from '../model';
export { apiClientVersion } from '../src/monitoringClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): MonitoringClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-unresolved
export * from './dist/node';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line import/no-commonjs,import/extensions
module.exports = require('./dist/builds/node.cjs');
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function getDefaultHosts(): Host[] {
return [{ url: 'status.algolia.com', accept: 'readWrite', protocol: 'https' }];
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createMonitoringClient({
appId: appIdOption,
apiKey: apiKeyOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { apiClientVersion, createRecommendClient } from '../src/recommendClient'
export * from '../model';
export { apiClientVersion } from '../src/recommendClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function recommendClient(appId: string, apiKey: string, options?: ClientOptions): RecommendClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { createRecommendClient } from '../src/recommendClient';
export * from '../model';
export { apiClientVersion } from '../src/recommendClient';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function recommendClient(appId: string, apiKey: string, options?: ClientOptions): RecommendClient {
if (!appId || typeof appId !== 'string') {
throw new Error('`appId` is missing.');
Expand Down
Loading

0 comments on commit 65e9864

Please sign in to comment.