Skip to content

Commit

Permalink
Merge pull request #19 from Find-AI/release-please--branches--main--c…
Browse files Browse the repository at this point in the history
…hanges--next--components--find-ai

release: 1.0.0
  • Loading branch information
philipithomas authored Oct 8, 2024
2 parents 65949f8 + d8b6992 commit 67036e8
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.5"
".": "1.0.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
41 changes: 14 additions & 27 deletions src/resources/searches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SearchRetrieveResponseItem.CriteriaAndReason>;

/**
* Returned only for a company.
*/
locations?: Array<string>;
domain?: string;

/**
* Returned only for a person.
Expand All @@ -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;
}
}
}
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0-alpha.5'; // x-release-please-version
export const VERSION = '1.0.0'; // x-release-please-version
2 changes: 1 addition & 1 deletion tests/api-resources/searches.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 67036e8

Please sign in to comment.