Skip to content

Commit

Permalink
Merge branch 'main' into fix/banner-link
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Oct 10, 2024
2 parents f92504a + 0b2d1f5 commit fcd1161
Show file tree
Hide file tree
Showing 167 changed files with 1,386 additions and 1,733 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ runs:
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.3
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/tools/cmd/goimports@v0.22.0
- name: Cache golangci-lint analysis
if: ${{ inputs.language == 'go' }}
Expand Down
2 changes: 1 addition & 1 deletion clients/algoliasearch-client-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/algolia/algoliasearch-client-go/v4

go 1.21
go 1.21.11

require github.com/go-playground/validator/v10 v10.22.1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint no-console: 0 */
import { expect, test, vi } from 'vitest';

import { LogLevelEnum } from '../../client-common/src/types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint no-console: 0 */
import { expect, test, vi } from 'vitest';

import { LogLevelEnum } from '../../client-common/src/types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint no-console: 0 */
import { expect, test, vi } from 'vitest';

import { LogLevelEnum } from '../../client-common/src/types';
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/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
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-unresolved
import { defineWorkspace } from 'vitest/config';

export default defineWorkspace([
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
@@ -1,4 +1,3 @@
/* eslint no-console: 0 */
import { describe, expect, test, vi } from 'vitest';

import { createNullLogger } from '../../logger';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-unresolved
import { defineWorkspace } from 'vitest/config';

export default defineWorkspace([
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
@@ -1,4 +1,3 @@
/* eslint no-console: 0 */
import { beforeEach, describe, expect, test, vi } from 'vitest';

import { LogLevelEnum } from '@algolia/client-common';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint no-console: 0 */
import type { LogLevelType, Logger } from '@algolia/client-common';
import { LogLevelEnum } from '@algolia/client-common';

Expand Down
Loading

0 comments on commit fcd1161

Please sign in to comment.