From 483c18640054d39a60e494715bad8b87a1fc2562 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:31:36 +0000 Subject: [PATCH 1/2] feat(api): OpenAPI spec update via Stainless API (#18) --- .stats.yml | 2 +- src/resources/searches.ts | 41 ++++++++++------------------ tests/api-resources/searches.test.ts | 2 +- 3 files changed, 16 insertions(+), 29 deletions(-) diff --git a/.stats.yml b/.stats.yml index e458891..3cc10ec 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 2 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/find-ai%2Ffind-ai-703a90257c6ec20e6b67cbb97b6699e96ffef05e62249c4d98bd8fb5b197617d.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/find-ai%2Ffind-ai-f1e4b85be4f9018b4c912ee9907f0d1b78c9cbc338257edc23c784e3e4c86331.yml diff --git a/src/resources/searches.ts b/src/resources/searches.ts index 6205ae5..65e7008 100644 --- a/src/resources/searches.ts +++ b/src/resources/searches.ts @@ -49,30 +49,17 @@ export namespace SearchRetrieveResponse { name: string; - photo_url: string; - - reason: string; - - short_description: string; - - slug: string; - - company?: SearchRetrieveResponseItem.Company; - - /** - * Returned only for a company. - */ - company_size?: string; - /** * Returned only for a person. */ - inferred_email?: string; + company?: string; + + criteria_and_reasons?: Array; /** * Returned only for a company. */ - locations?: Array; + domain?: string; /** * Returned only for a person. @@ -81,21 +68,21 @@ export namespace SearchRetrieveResponse { } export namespace SearchRetrieveResponseItem { - export interface Company { + export interface CriteriaAndReason { /** - * Returned only for a person. + * Match criteria */ - name: string; + criteria?: string; /** - * Returned only for a person. + * Whether it's a match */ - slug: string; + match?: boolean; /** - * Returned only for a person. + * Reason for the match */ - website: string; + reason?: string; } } } @@ -114,12 +101,12 @@ export interface SearchCreateParams { /** * The mode of the search. Valid values are 'exact' or 'best'. */ - result_mode?: string; + result_mode?: 'exact' | 'best'; /** - * The scope of the search. Valid values are 'people' or 'companies'. + * The scope of the search. Valid values are 'person' or 'company'. */ - scope?: string; + scope?: 'person' | 'company'; } export namespace Searches { diff --git a/tests/api-resources/searches.test.ts b/tests/api-resources/searches.test.ts index e2ea3c3..2abfee5 100644 --- a/tests/api-resources/searches.test.ts +++ b/tests/api-resources/searches.test.ts @@ -31,7 +31,7 @@ describe('resource searches', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.searches.create( - { max_matches: 0, query: 'query', result_mode: 'result_mode', scope: 'scope' }, + { max_matches: 0, query: 'query', result_mode: 'exact', scope: 'person' }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(FindAI.NotFoundError); From d8b699266b6f0d63e6e0cf8c1969664462a8f8c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:20:24 +0000 Subject: [PATCH 2/2] release: 1.0.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 12342be..37fcefa 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.5" + ".": "1.0.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a4cd5b..77f9e78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.0.0 (2024-10-08) + +Full Changelog: [v0.1.0-alpha.5...v1.0.0](https://github.com/Find-AI/find-ai-node/compare/v0.1.0-alpha.5...v1.0.0) + +### Features + +* **api:** OpenAPI spec update via Stainless API ([#18](https://github.com/Find-AI/find-ai-node/issues/18)) ([483c186](https://github.com/Find-AI/find-ai-node/commit/483c18640054d39a60e494715bad8b87a1fc2562)) + ## 0.1.0-alpha.5 (2024-10-02) Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/Find-AI/find-ai-node/compare/v0.1.0-alpha.4...v0.1.0-alpha.5) diff --git a/package.json b/package.json index e2c65e7..dcf36c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "find-ai", - "version": "0.1.0-alpha.5", + "version": "1.0.0", "description": "The official TypeScript library for the Find AI API", "author": "Find AI ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 66c10e6..bea2896 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.1.0-alpha.5'; // x-release-please-version +export const VERSION = '1.0.0'; // x-release-please-version