diff --git a/generate/generate.sh b/generate/generate.sh index 9866656..dd6d961 100755 --- a/generate/generate.sh +++ b/generate/generate.sh @@ -16,7 +16,7 @@ if [ -z "$TEMPLATES_PATH" ]; then die "TEMPLATES_PATH must be set, e.g. /path/to/sajari/sdk-node/generate/templates" fi -VERSION=4.2.0 +VERSION=4.3.0 docker-entrypoint.sh generate \ -i /openapi.json \ diff --git a/src/generated/.openapi-generator/FILES b/src/generated/.openapi-generator/FILES index 2c3244b..c8f85d5 100644 --- a/src/generated/.openapi-generator/FILES +++ b/src/generated/.openapi-generator/FILES @@ -12,6 +12,10 @@ model/activePromotion.ts model/batchCreateSchemaFieldsRequest.ts model/batchCreateSchemaFieldsResponse.ts model/batchCreateSchemaFieldsResponseError.ts +model/batchUpdateRecordsRequest.ts +model/batchUpdateRecordsResponse.ts +model/batchUpdateRecordsResponseError.ts +model/batchUpdateRecordsResponseRecord.ts model/batchUpsertRecordsRequest.ts model/batchUpsertRecordsRequestPipeline.ts model/batchUpsertRecordsResponse.ts @@ -26,9 +30,7 @@ model/getDefaultPipelineResponse.ts model/getDefaultVersionRequestView.ts model/getPipelineRequestView.ts model/getRecordRequest.ts -model/integration.ts model/listCollectionsResponse.ts -model/listIntegrationsResponse.ts model/listPipelinesRequestView.ts model/listPipelinesResponse.ts model/listPromotionsResponse.ts @@ -42,12 +44,14 @@ model/pipelineStep.ts model/pipelineStepParamBinding.ts model/pipelineType.ts model/promotion.ts +model/promotionCategory.ts model/promotionExclusion.ts model/promotionFilterBoost.ts model/promotionFilterCondition.ts model/promotionPin.ts model/promotionRangeBoost.ts model/protobufAny.ts +model/protobufFieldMask.ts model/protobufNullValue.ts model/queryAggregateResult.ts model/queryAggregateResultAnalysis.ts diff --git a/src/generated/.openapi-generator/VERSION b/src/generated/.openapi-generator/VERSION index e230c83..7d3cdbf 100644 --- a/src/generated/.openapi-generator/VERSION +++ b/src/generated/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.0 \ No newline at end of file +5.3.1 \ No newline at end of file diff --git a/src/generated/api/collectionsApi.ts b/src/generated/api/collectionsApi.ts index 4f9afbc..c934c13 100644 --- a/src/generated/api/collectionsApi.ts +++ b/src/generated/api/collectionsApi.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -209,12 +209,12 @@ export class CollectionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Collection"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Collection"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -308,12 +308,12 @@ export class CollectionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "any"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "any"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -407,12 +407,12 @@ export class CollectionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Collection"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Collection"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -515,15 +515,15 @@ export class CollectionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "ListCollectionsResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "ListCollectionsResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -534,7 +534,7 @@ export class CollectionsApi { }); } /** - * Query the collection to search for records. The following example demonstrates how to run a simple search for a particular string: ```json { \"variables\": { \"q\": \"search terms\" } } ``` For more information: - See [filtering content](https://docs.search.io/user-guide/integrating-search/filters/) - See [tracking in the Go SDK](https://github.com/sajari/sdk-go/blob/v2/session.go) - See [tracking in the JS SDK](https://github.com/sajari/sajari-sdk-js/blob/master/src/session.ts) + * Query the collection to search for records. The following example demonstrates how to run a simple search for a particular string: ```json { \"variables\": { \"q\": \"search terms\" } } ``` For more information: - See [filtering content](https://docs.search.io/documentation/fundamentals/integrating-search/filters-and-sort-options) - See [tracking in the Go SDK](https://github.com/sajari/sdk-go/blob/v2/session.go) - See [tracking in the JS SDK](https://github.com/sajari/sajari-sdk-js/blob/master/src/session.ts) * @summary Query collection * @param collectionId The collection to query, e.g. `my-collection`. * @param queryCollectionRequest @@ -637,15 +637,15 @@ export class CollectionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "QueryCollectionResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "QueryCollectionResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -656,7 +656,7 @@ export class CollectionsApi { }); } /** - * Query the collection to search for records. The following example demonstrates how to run a simple search for a particular string: ```json { \"variables\": { \"q\": \"search terms\" } } ``` For more information: - See [filtering content](https://docs.search.io/user-guide/integrating-search/filters/) - See [tracking in the Go SDK](https://github.com/sajari/sdk-go/blob/v2/session.go) - See [tracking in the JS SDK](https://github.com/sajari/sajari-sdk-js/blob/master/src/session.ts) + * Query the collection to search for records. The following example demonstrates how to run a simple search for a particular string: ```json { \"variables\": { \"q\": \"search terms\" } } ``` For more information: - See [filtering content](https://docs.search.io/documentation/fundamentals/integrating-search/filters-and-sort-options) - See [tracking in the Go SDK](https://github.com/sajari/sdk-go/blob/v2/session.go) - See [tracking in the JS SDK](https://github.com/sajari/sajari-sdk-js/blob/master/src/session.ts) * @summary Query collection * @param collectionId The collection to query, e.g. `my-collection`. * @param queryCollectionRequest @@ -759,15 +759,15 @@ export class CollectionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "QueryCollectionResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "QueryCollectionResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -886,12 +886,12 @@ export class CollectionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Collection"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Collection"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); diff --git a/src/generated/api/eventsApi.ts b/src/generated/api/eventsApi.ts index 0cb898c..846ca14 100644 --- a/src/generated/api/eventsApi.ts +++ b/src/generated/api/eventsApi.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -190,12 +190,12 @@ export class EventsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "object"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "object"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -285,12 +285,12 @@ export class EventsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "object"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "object"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); diff --git a/src/generated/api/pipelinesApi.ts b/src/generated/api/pipelinesApi.ts index 3989cc6..179cffd 100644 --- a/src/generated/api/pipelinesApi.ts +++ b/src/generated/api/pipelinesApi.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -210,12 +210,12 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Pipeline"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Pipeline"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -330,15 +330,15 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "GeneratePipelinesResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "GeneratePipelinesResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -452,15 +452,15 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "GetDefaultPipelineResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "GetDefaultPipelineResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -583,12 +583,12 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Pipeline"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Pipeline"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -722,12 +722,12 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Pipeline"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Pipeline"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -850,12 +850,15 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "ListPipelinesResponse"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "ListPipelinesResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -964,12 +967,12 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "object"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "object"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -1100,12 +1103,12 @@ export class PipelinesApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "object"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "object"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); diff --git a/src/generated/api/promotionsApi.ts b/src/generated/api/promotionsApi.ts index 4513b57..c997e46 100644 --- a/src/generated/api/promotionsApi.ts +++ b/src/generated/api/promotionsApi.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -205,12 +205,12 @@ export class PromotionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Promotion"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Promotion"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -318,12 +318,12 @@ export class PromotionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "any"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "any"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -431,12 +431,12 @@ export class PromotionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Promotion"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Promotion"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -550,12 +550,15 @@ export class PromotionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "ListPromotionsResponse"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "ListPromotionsResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -688,12 +691,12 @@ export class PromotionsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Promotion"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Promotion"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); diff --git a/src/generated/api/recordsApi.ts b/src/generated/api/recordsApi.ts index 8ca4531..dfd5bd4 100644 --- a/src/generated/api/recordsApi.ts +++ b/src/generated/api/recordsApi.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,6 +14,8 @@ import localVarRequest from "request"; import http from "http"; /* tslint:disable:no-unused-locals */ +import { BatchUpdateRecordsRequest } from "../model/batchUpdateRecordsRequest"; +import { BatchUpdateRecordsResponse } from "../model/batchUpdateRecordsResponse"; import { BatchUpsertRecordsRequest } from "../model/batchUpsertRecordsRequest"; import { BatchUpsertRecordsResponse } from "../model/batchUpsertRecordsResponse"; import { DeleteRecordRequest } from "../model/deleteRecordRequest"; @@ -117,6 +119,128 @@ export class RecordsApi { this.interceptors.push(interceptor); } + /** + * The batch version of the [UpdateRecord](/api#operation/UpdateRecord) call. + * @summary Batch update records + * @param collectionId The collection that contains the records to update, e.g. `my-collection`. + * @param batchUpdateRecordsRequest + */ + public async batchUpdateRecords( + collectionId: string, + batchUpdateRecordsRequest: BatchUpdateRecordsRequest, + options: { headers: { [name: string]: string } } = { headers: {} } + ): Promise<{ + response: http.IncomingMessage; + body: BatchUpdateRecordsResponse; + }> { + const localVarPath = + this.basePath + + "/v4/collections/{collection_id}/records:batchUpdate".replace( + "{" + "collection_id" + "}", + encodeURIComponent(String(collectionId)) + ); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign( + {}, + this._defaultHeaders + ); + const produces = ["application/json"]; + // give precedence to 'application/json' + if (produces.indexOf("application/json") >= 0) { + localVarHeaderParams.Accept = "application/json"; + } else { + localVarHeaderParams.Accept = produces.join(","); + } + let localVarFormParams: any = {}; + + // verify required parameter 'collectionId' is not null or undefined + if (collectionId === null || collectionId === undefined) { + throw new Error( + "Required parameter collectionId was null or undefined when calling batchUpdateRecords." + ); + } + + // verify required parameter 'batchUpdateRecordsRequest' is not null or undefined + if ( + batchUpdateRecordsRequest === null || + batchUpdateRecordsRequest === undefined + ) { + throw new Error( + "Required parameter batchUpdateRecordsRequest was null or undefined when calling batchUpdateRecords." + ); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: "POST", + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: ObjectSerializer.serialize( + batchUpdateRecordsRequest, + "BatchUpdateRecordsRequest" + ), + }; + + let authenticationPromise = Promise.resolve(); + if ( + this.authentications.BasicAuth.username && + this.authentications.BasicAuth.password + ) { + authenticationPromise = authenticationPromise.then(() => + this.authentications.BasicAuth.applyToRequest(localVarRequestOptions) + ); + } + authenticationPromise = authenticationPromise.then(() => + this.authentications.default.applyToRequest(localVarRequestOptions) + ); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => + interceptor(localVarRequestOptions) + ); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ + response: http.IncomingMessage; + body: BatchUpdateRecordsResponse; + }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if ( + response.statusCode && + response.statusCode >= 200 && + response.statusCode <= 299 + ) { + body = ObjectSerializer.deserialize( + body, + "BatchUpdateRecordsResponse" + ); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } /** * The batch version of the [UpsertRecord](/api#operation/UpsertRecord) call. * @summary Batch upsert records @@ -221,15 +345,15 @@ export class RecordsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "BatchUpsertRecordsResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "BatchUpsertRecordsResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -335,12 +459,12 @@ export class RecordsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "any"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "any"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -444,12 +568,12 @@ export class RecordsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "object"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "object"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -556,12 +680,12 @@ export class RecordsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "object"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "object"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -670,12 +794,12 @@ export class RecordsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "UpsertRecordResponse"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "UpsertRecordResponse"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); diff --git a/src/generated/api/redirectsApi.ts b/src/generated/api/redirectsApi.ts index d0fb919..652f882 100644 --- a/src/generated/api/redirectsApi.ts +++ b/src/generated/api/redirectsApi.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -205,12 +205,12 @@ export class RedirectsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Redirect"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Redirect"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -318,12 +318,12 @@ export class RedirectsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "any"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "any"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -431,12 +431,12 @@ export class RedirectsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Redirect"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Redirect"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -550,12 +550,15 @@ export class RedirectsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "ListRedirectsResponse"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "ListRedirectsResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -688,12 +691,12 @@ export class RedirectsApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "Redirect"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "Redirect"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); diff --git a/src/generated/api/schemaApi.ts b/src/generated/api/schemaApi.ts index 9605932..64fd5cf 100644 --- a/src/generated/api/schemaApi.ts +++ b/src/generated/api/schemaApi.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -218,15 +218,15 @@ export class SchemaApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "BatchCreateSchemaFieldsResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "BatchCreateSchemaFieldsResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -329,12 +329,12 @@ export class SchemaApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize(body, "SchemaField"); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize(body, "SchemaField"); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); @@ -451,15 +451,15 @@ export class SchemaApi { if (error) { reject(error); } else { - body = ObjectSerializer.deserialize( - body, - "ListSchemaFieldsResponse" - ); if ( response.statusCode && response.statusCode >= 200 && response.statusCode <= 299 ) { + body = ObjectSerializer.deserialize( + body, + "ListSchemaFieldsResponse" + ); resolve({ response: response, body: body }); } else { reject(new HttpError(response, body, response.statusCode)); diff --git a/src/generated/model/activePromotion.ts b/src/generated/model/activePromotion.ts index 4b5154c..ec0a777 100644 --- a/src/generated/model/activePromotion.ts +++ b/src/generated/model/activePromotion.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/apiError.ts b/src/generated/model/apiError.ts index f1266e3..4fe9ac1 100644 --- a/src/generated/model/apiError.ts +++ b/src/generated/model/apiError.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchCreateSchemaFieldsRequest.ts b/src/generated/model/batchCreateSchemaFieldsRequest.ts index d2edc7a..1c90f41 100644 --- a/src/generated/model/batchCreateSchemaFieldsRequest.ts +++ b/src/generated/model/batchCreateSchemaFieldsRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchCreateSchemaFieldsResponse.ts b/src/generated/model/batchCreateSchemaFieldsResponse.ts index a7f6184..be900ce 100644 --- a/src/generated/model/batchCreateSchemaFieldsResponse.ts +++ b/src/generated/model/batchCreateSchemaFieldsResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchCreateSchemaFieldsResponseError.ts b/src/generated/model/batchCreateSchemaFieldsResponseError.ts index f5614a7..dad2ab7 100644 --- a/src/generated/model/batchCreateSchemaFieldsResponseError.ts +++ b/src/generated/model/batchCreateSchemaFieldsResponseError.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchUpdateRecordsRequest.ts b/src/generated/model/batchUpdateRecordsRequest.ts new file mode 100644 index 0000000..c1f3cd6 --- /dev/null +++ b/src/generated/model/batchUpdateRecordsRequest.ts @@ -0,0 +1,48 @@ +/** + * Search.io API + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. + * + * The version of the OpenAPI document: v4 + * Contact: support@search.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from "./models"; +import { UpdateRecordRequest } from "./updateRecordRequest"; + +export class BatchUpdateRecordsRequest { + /** + * The list of requests containing the records to be updated. A maximum of 200 records can be updated in a batch. + */ + "requests": Array; + /** + * The list of fields to be updated, separated by a comma, e.g. `field1,field2`. For each field that you want to update, provide a corresponding value in each record object, within the requests list, containing the new value. If provided, and you also provide an update mask in any child request, the values must match. + */ + "updateMask"?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }> = [ + { + name: "requests", + baseName: "requests", + type: "Array", + }, + { + name: "updateMask", + baseName: "update_mask", + type: "string", + }, + ]; + + static getAttributeTypeMap() { + return BatchUpdateRecordsRequest.attributeTypeMap; + } +} diff --git a/src/generated/model/batchUpdateRecordsResponse.ts b/src/generated/model/batchUpdateRecordsResponse.ts new file mode 100644 index 0000000..6d4a52f --- /dev/null +++ b/src/generated/model/batchUpdateRecordsResponse.ts @@ -0,0 +1,49 @@ +/** + * Search.io API + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. + * + * The version of the OpenAPI document: v4 + * Contact: support@search.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from "./models"; +import { BatchUpdateRecordsResponseError } from "./batchUpdateRecordsResponseError"; +import { BatchUpdateRecordsResponseRecord } from "./batchUpdateRecordsResponseRecord"; + +export class BatchUpdateRecordsResponse { + /** + * The errors that occurred. + */ + "errors"?: Array; + /** + * A list of updated records. + */ + "records"?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }> = [ + { + name: "errors", + baseName: "errors", + type: "Array", + }, + { + name: "records", + baseName: "records", + type: "Array", + }, + ]; + + static getAttributeTypeMap() { + return BatchUpdateRecordsResponse.attributeTypeMap; + } +} diff --git a/src/generated/model/batchUpdateRecordsResponseError.ts b/src/generated/model/batchUpdateRecordsResponseError.ts new file mode 100644 index 0000000..d0b8e4a --- /dev/null +++ b/src/generated/model/batchUpdateRecordsResponseError.ts @@ -0,0 +1,45 @@ +/** + * Search.io API + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. + * + * The version of the OpenAPI document: v4 + * Contact: support@search.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from "./models"; +import { Status } from "./status"; + +export class BatchUpdateRecordsResponseError { + /** + * The index of the record in `requests` that this error corresponds to. + */ + "index"?: number; + "status"?: Status; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }> = [ + { + name: "index", + baseName: "index", + type: "number", + }, + { + name: "status", + baseName: "status", + type: "Status", + }, + ]; + + static getAttributeTypeMap() { + return BatchUpdateRecordsResponseError.attributeTypeMap; + } +} diff --git a/src/generated/model/batchUpdateRecordsResponseRecord.ts b/src/generated/model/batchUpdateRecordsResponseRecord.ts new file mode 100644 index 0000000..90c81a5 --- /dev/null +++ b/src/generated/model/batchUpdateRecordsResponseRecord.ts @@ -0,0 +1,47 @@ +/** + * Search.io API + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. + * + * The version of the OpenAPI document: v4 + * Contact: support@search.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from "./models"; + +export class BatchUpdateRecordsResponseRecord { + /** + * The index of the record in `requests`. + */ + "index"?: number; + /** + * The updated record. + */ + "record"?: object; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }> = [ + { + name: "index", + baseName: "index", + type: "number", + }, + { + name: "record", + baseName: "record", + type: "object", + }, + ]; + + static getAttributeTypeMap() { + return BatchUpdateRecordsResponseRecord.attributeTypeMap; + } +} diff --git a/src/generated/model/batchUpsertRecordsRequest.ts b/src/generated/model/batchUpsertRecordsRequest.ts index 7fee300..77e1970 100644 --- a/src/generated/model/batchUpsertRecordsRequest.ts +++ b/src/generated/model/batchUpsertRecordsRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchUpsertRecordsRequestPipeline.ts b/src/generated/model/batchUpsertRecordsRequestPipeline.ts index 6dbe0f6..a32f5e9 100644 --- a/src/generated/model/batchUpsertRecordsRequestPipeline.ts +++ b/src/generated/model/batchUpsertRecordsRequestPipeline.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchUpsertRecordsResponse.ts b/src/generated/model/batchUpsertRecordsResponse.ts index 4004a9a..a3d3f36 100644 --- a/src/generated/model/batchUpsertRecordsResponse.ts +++ b/src/generated/model/batchUpsertRecordsResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchUpsertRecordsResponseError.ts b/src/generated/model/batchUpsertRecordsResponseError.ts index fd19488..e64edd2 100644 --- a/src/generated/model/batchUpsertRecordsResponseError.ts +++ b/src/generated/model/batchUpsertRecordsResponseError.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchUpsertRecordsResponseKey.ts b/src/generated/model/batchUpsertRecordsResponseKey.ts index 0f446d3..53cdeaf 100644 --- a/src/generated/model/batchUpsertRecordsResponseKey.ts +++ b/src/generated/model/batchUpsertRecordsResponseKey.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/batchUpsertRecordsResponseVariables.ts b/src/generated/model/batchUpsertRecordsResponseVariables.ts index 0d71c50..59d2cd3 100644 --- a/src/generated/model/batchUpsertRecordsResponseVariables.ts +++ b/src/generated/model/batchUpsertRecordsResponseVariables.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/collection.ts b/src/generated/model/collection.ts index 1377751..360a58a 100644 --- a/src/generated/model/collection.ts +++ b/src/generated/model/collection.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/deleteRecordRequest.ts b/src/generated/model/deleteRecordRequest.ts index 2e32d46..6007ab4 100644 --- a/src/generated/model/deleteRecordRequest.ts +++ b/src/generated/model/deleteRecordRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/generatePipelinesRequest.ts b/src/generated/model/generatePipelinesRequest.ts index 5d5dbd4..fe862bb 100644 --- a/src/generated/model/generatePipelinesRequest.ts +++ b/src/generated/model/generatePipelinesRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/generatePipelinesResponse.ts b/src/generated/model/generatePipelinesResponse.ts index ce0825c..ad84a00 100644 --- a/src/generated/model/generatePipelinesResponse.ts +++ b/src/generated/model/generatePipelinesResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/getDefaultPipelineResponse.ts b/src/generated/model/getDefaultPipelineResponse.ts index 69715ce..6362be4 100644 --- a/src/generated/model/getDefaultPipelineResponse.ts +++ b/src/generated/model/getDefaultPipelineResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/getDefaultVersionRequestView.ts b/src/generated/model/getDefaultVersionRequestView.ts index 8d360dc..70283d6 100644 --- a/src/generated/model/getDefaultVersionRequestView.ts +++ b/src/generated/model/getDefaultVersionRequestView.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/getPipelineRequestView.ts b/src/generated/model/getPipelineRequestView.ts index 251f25f..05fdd9a 100644 --- a/src/generated/model/getPipelineRequestView.ts +++ b/src/generated/model/getPipelineRequestView.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/getRecordRequest.ts b/src/generated/model/getRecordRequest.ts index 3908cee..2922114 100644 --- a/src/generated/model/getRecordRequest.ts +++ b/src/generated/model/getRecordRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/integration.ts b/src/generated/model/integration.ts deleted file mode 100644 index 5171575..0000000 --- a/src/generated/model/integration.ts +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. - * - * The version of the OpenAPI document: v4 - * Contact: support@sajari.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from "./models"; - -/** - * Integration contains integration config, e.g. filters and sort options. - */ -export class Integration { - /** - * Output only. The ID of the account that owns the collection, e.g. `1618535966441231024`. - */ - "accountId"?: string; - /** - * Output only. The ID of the collection that owns this integration, e.g. `my-collection`. - */ - "collectionId"?: string; - /** - * The integration\'s config. - */ - "config": object; - /** - * Output only. The time the integration was created. - */ - "createTime"?: Date; - /** - * The integration\'s display name. - */ - "displayName": string; - /** - * Output only. The integration\'s ID. - */ - "id"?: string; - /** - * Output only. The time the integration was last updated. - */ - "updateTime"?: Date; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{ - name: string; - baseName: string; - type: string; - }> = [ - { - name: "accountId", - baseName: "account_id", - type: "string", - }, - { - name: "collectionId", - baseName: "collection_id", - type: "string", - }, - { - name: "config", - baseName: "config", - type: "object", - }, - { - name: "createTime", - baseName: "create_time", - type: "Date", - }, - { - name: "displayName", - baseName: "display_name", - type: "string", - }, - { - name: "id", - baseName: "id", - type: "string", - }, - { - name: "updateTime", - baseName: "update_time", - type: "Date", - }, - ]; - - static getAttributeTypeMap() { - return Integration.attributeTypeMap; - } -} diff --git a/src/generated/model/listCollectionsResponse.ts b/src/generated/model/listCollectionsResponse.ts index 31b105f..4c46ca2 100644 --- a/src/generated/model/listCollectionsResponse.ts +++ b/src/generated/model/listCollectionsResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/listIntegrationsResponse.ts b/src/generated/model/listIntegrationsResponse.ts deleted file mode 100644 index f225db8..0000000 --- a/src/generated/model/listIntegrationsResponse.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. - * - * The version of the OpenAPI document: v4 - * Contact: support@sajari.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from "./models"; -import { Integration } from "./integration"; - -/** - * ListIntegrations response. - */ -export class ListIntegrationsResponse { - /** - * The integrations. - */ - "integrations"?: Array; - /** - * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. - */ - "nextPageToken"?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{ - name: string; - baseName: string; - type: string; - }> = [ - { - name: "integrations", - baseName: "integrations", - type: "Array", - }, - { - name: "nextPageToken", - baseName: "next_page_token", - type: "string", - }, - ]; - - static getAttributeTypeMap() { - return ListIntegrationsResponse.attributeTypeMap; - } -} diff --git a/src/generated/model/listPipelinesRequestView.ts b/src/generated/model/listPipelinesRequestView.ts index d977740..2a42bee 100644 --- a/src/generated/model/listPipelinesRequestView.ts +++ b/src/generated/model/listPipelinesRequestView.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/listPipelinesResponse.ts b/src/generated/model/listPipelinesResponse.ts index c86b2ea..a89c03c 100644 --- a/src/generated/model/listPipelinesResponse.ts +++ b/src/generated/model/listPipelinesResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/listPromotionsResponse.ts b/src/generated/model/listPromotionsResponse.ts index 12d30dd..05b310b 100644 --- a/src/generated/model/listPromotionsResponse.ts +++ b/src/generated/model/listPromotionsResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/listRedirectsResponse.ts b/src/generated/model/listRedirectsResponse.ts index 2dd92b0..e0ecc31 100644 --- a/src/generated/model/listRedirectsResponse.ts +++ b/src/generated/model/listRedirectsResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/listSchemaFieldsResponse.ts b/src/generated/model/listSchemaFieldsResponse.ts index 28bf8e2..6c628d9 100644 --- a/src/generated/model/listSchemaFieldsResponse.ts +++ b/src/generated/model/listSchemaFieldsResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/models.ts b/src/generated/model/models.ts index 2fb4814..c8bf1f4 100644 --- a/src/generated/model/models.ts +++ b/src/generated/model/models.ts @@ -4,6 +4,10 @@ export * from "./activePromotion"; export * from "./batchCreateSchemaFieldsRequest"; export * from "./batchCreateSchemaFieldsResponse"; export * from "./batchCreateSchemaFieldsResponseError"; +export * from "./batchUpdateRecordsRequest"; +export * from "./batchUpdateRecordsResponse"; +export * from "./batchUpdateRecordsResponseError"; +export * from "./batchUpdateRecordsResponseRecord"; export * from "./batchUpsertRecordsRequest"; export * from "./batchUpsertRecordsRequestPipeline"; export * from "./batchUpsertRecordsResponse"; @@ -18,9 +22,7 @@ export * from "./getDefaultPipelineResponse"; export * from "./getDefaultVersionRequestView"; export * from "./getPipelineRequestView"; export * from "./getRecordRequest"; -export * from "./integration"; export * from "./listCollectionsResponse"; -export * from "./listIntegrationsResponse"; export * from "./listPipelinesRequestView"; export * from "./listPipelinesResponse"; export * from "./listPromotionsResponse"; @@ -33,12 +35,14 @@ export * from "./pipelineStep"; export * from "./pipelineStepParamBinding"; export * from "./pipelineType"; export * from "./promotion"; +export * from "./promotionCategory"; export * from "./promotionExclusion"; export * from "./promotionFilterBoost"; export * from "./promotionFilterCondition"; export * from "./promotionPin"; export * from "./promotionRangeBoost"; export * from "./protobufAny"; +export * from "./protobufFieldMask"; export * from "./protobufNullValue"; export * from "./queryAggregateResult"; export * from "./queryAggregateResultAnalysis"; @@ -89,6 +93,10 @@ import { ActivePromotion } from "./activePromotion"; import { BatchCreateSchemaFieldsRequest } from "./batchCreateSchemaFieldsRequest"; import { BatchCreateSchemaFieldsResponse } from "./batchCreateSchemaFieldsResponse"; import { BatchCreateSchemaFieldsResponseError } from "./batchCreateSchemaFieldsResponseError"; +import { BatchUpdateRecordsRequest } from "./batchUpdateRecordsRequest"; +import { BatchUpdateRecordsResponse } from "./batchUpdateRecordsResponse"; +import { BatchUpdateRecordsResponseError } from "./batchUpdateRecordsResponseError"; +import { BatchUpdateRecordsResponseRecord } from "./batchUpdateRecordsResponseRecord"; import { BatchUpsertRecordsRequest } from "./batchUpsertRecordsRequest"; import { BatchUpsertRecordsRequestPipeline } from "./batchUpsertRecordsRequestPipeline"; import { BatchUpsertRecordsResponse } from "./batchUpsertRecordsResponse"; @@ -103,9 +111,7 @@ import { GetDefaultPipelineResponse } from "./getDefaultPipelineResponse"; import { GetDefaultVersionRequestView } from "./getDefaultVersionRequestView"; import { GetPipelineRequestView } from "./getPipelineRequestView"; import { GetRecordRequest } from "./getRecordRequest"; -import { Integration } from "./integration"; import { ListCollectionsResponse } from "./listCollectionsResponse"; -import { ListIntegrationsResponse } from "./listIntegrationsResponse"; import { ListPipelinesRequestView } from "./listPipelinesRequestView"; import { ListPipelinesResponse } from "./listPipelinesResponse"; import { ListPromotionsResponse } from "./listPromotionsResponse"; @@ -118,12 +124,14 @@ import { PipelineStep } from "./pipelineStep"; import { PipelineStepParamBinding } from "./pipelineStepParamBinding"; import { PipelineType } from "./pipelineType"; import { Promotion } from "./promotion"; +import { PromotionCategory } from "./promotionCategory"; import { PromotionExclusion } from "./promotionExclusion"; import { PromotionFilterBoost } from "./promotionFilterBoost"; import { PromotionFilterCondition } from "./promotionFilterCondition"; import { PromotionPin } from "./promotionPin"; import { PromotionRangeBoost } from "./promotionRangeBoost"; import { ProtobufAny } from "./protobufAny"; +import { ProtobufFieldMask } from "./protobufFieldMask"; import { ProtobufNullValue } from "./protobufNullValue"; import { QueryAggregateResult } from "./queryAggregateResult"; import { QueryAggregateResultAnalysis } from "./queryAggregateResultAnalysis"; @@ -186,6 +194,10 @@ let typeMap: { [index: string]: any } = { BatchCreateSchemaFieldsRequest: BatchCreateSchemaFieldsRequest, BatchCreateSchemaFieldsResponse: BatchCreateSchemaFieldsResponse, BatchCreateSchemaFieldsResponseError: BatchCreateSchemaFieldsResponseError, + BatchUpdateRecordsRequest: BatchUpdateRecordsRequest, + BatchUpdateRecordsResponse: BatchUpdateRecordsResponse, + BatchUpdateRecordsResponseError: BatchUpdateRecordsResponseError, + BatchUpdateRecordsResponseRecord: BatchUpdateRecordsResponseRecord, BatchUpsertRecordsRequest: BatchUpsertRecordsRequest, BatchUpsertRecordsRequestPipeline: BatchUpsertRecordsRequestPipeline, BatchUpsertRecordsResponse: BatchUpsertRecordsResponse, @@ -198,9 +210,7 @@ let typeMap: { [index: string]: any } = { GeneratePipelinesResponse: GeneratePipelinesResponse, GetDefaultPipelineResponse: GetDefaultPipelineResponse, GetRecordRequest: GetRecordRequest, - Integration: Integration, ListCollectionsResponse: ListCollectionsResponse, - ListIntegrationsResponse: ListIntegrationsResponse, ListPipelinesResponse: ListPipelinesResponse, ListPromotionsResponse: ListPromotionsResponse, ListRedirectsResponse: ListRedirectsResponse, @@ -211,12 +221,14 @@ let typeMap: { [index: string]: any } = { PipelineStep: PipelineStep, PipelineStepParamBinding: PipelineStepParamBinding, Promotion: Promotion, + PromotionCategory: PromotionCategory, PromotionExclusion: PromotionExclusion, PromotionFilterBoost: PromotionFilterBoost, PromotionFilterCondition: PromotionFilterCondition, PromotionPin: PromotionPin, PromotionRangeBoost: PromotionRangeBoost, ProtobufAny: ProtobufAny, + ProtobufFieldMask: ProtobufFieldMask, QueryAggregateResult: QueryAggregateResult, QueryAggregateResultAnalysis: QueryAggregateResultAnalysis, QueryAggregateResultBuckets: QueryAggregateResultBuckets, diff --git a/src/generated/model/percentileDataPoint.ts b/src/generated/model/percentileDataPoint.ts index 59eee33..6278111 100644 --- a/src/generated/model/percentileDataPoint.ts +++ b/src/generated/model/percentileDataPoint.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/pipeline.ts b/src/generated/model/pipeline.ts index b2e17d0..25ca5a4 100644 --- a/src/generated/model/pipeline.ts +++ b/src/generated/model/pipeline.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/pipelineStep.ts b/src/generated/model/pipelineStep.ts index c9d2fc2..545f0a2 100644 --- a/src/generated/model/pipelineStep.ts +++ b/src/generated/model/pipelineStep.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/pipelineStepParamBinding.ts b/src/generated/model/pipelineStepParamBinding.ts index 43f351c..0fbe659 100644 --- a/src/generated/model/pipelineStepParamBinding.ts +++ b/src/generated/model/pipelineStepParamBinding.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/pipelineType.ts b/src/generated/model/pipelineType.ts index 29c3a23..8e6b4e4 100644 --- a/src/generated/model/pipelineType.ts +++ b/src/generated/model/pipelineType.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/promotion.ts b/src/generated/model/promotion.ts index d048f7a..39f2622 100644 --- a/src/generated/model/promotion.ts +++ b/src/generated/model/promotion.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/promotionCategory.ts b/src/generated/model/promotionCategory.ts new file mode 100644 index 0000000..79d6d06 --- /dev/null +++ b/src/generated/model/promotionCategory.ts @@ -0,0 +1,47 @@ +/** + * Search.io API + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. + * + * The version of the OpenAPI document: v4 + * Contact: support@search.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from "./models"; + +export class PromotionCategory { + /** + * The logical field that specifies a record\'s category, e.g. \"product_type\". + */ + "idField"?: string; + /** + * The field that contains a human-readable rendering of a record\'s category, e.g. \"product_type_name\". When creating promotions, this field\'s text value is displayed instead of the `id_field`. If `mapping_field` is not provided, the text value of the record\'s `id_field` is displayed. + */ + "mappingField"?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }> = [ + { + name: "idField", + baseName: "id_field", + type: "string", + }, + { + name: "mappingField", + baseName: "mapping_field", + type: "string", + }, + ]; + + static getAttributeTypeMap() { + return PromotionCategory.attributeTypeMap; + } +} diff --git a/src/generated/model/promotionExclusion.ts b/src/generated/model/promotionExclusion.ts index acfcf9f..a97199d 100644 --- a/src/generated/model/promotionExclusion.ts +++ b/src/generated/model/promotionExclusion.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/promotionFilterBoost.ts b/src/generated/model/promotionFilterBoost.ts index 160df26..18fe929 100644 --- a/src/generated/model/promotionFilterBoost.ts +++ b/src/generated/model/promotionFilterBoost.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/promotionFilterCondition.ts b/src/generated/model/promotionFilterCondition.ts index 6ddb4e4..9cd019a 100644 --- a/src/generated/model/promotionFilterCondition.ts +++ b/src/generated/model/promotionFilterCondition.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/promotionPin.ts b/src/generated/model/promotionPin.ts index 35795a2..e811db8 100644 --- a/src/generated/model/promotionPin.ts +++ b/src/generated/model/promotionPin.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/promotionRangeBoost.ts b/src/generated/model/promotionRangeBoost.ts index cfcdbfc..25be5e0 100644 --- a/src/generated/model/promotionRangeBoost.ts +++ b/src/generated/model/promotionRangeBoost.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/protobufAny.ts b/src/generated/model/protobufAny.ts index abc2403..6dfed1d 100644 --- a/src/generated/model/protobufAny.ts +++ b/src/generated/model/protobufAny.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/protobufFieldMask.ts b/src/generated/model/protobufFieldMask.ts new file mode 100644 index 0000000..01588c5 --- /dev/null +++ b/src/generated/model/protobufFieldMask.ts @@ -0,0 +1,41 @@ +/** + * Search.io API + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. + * + * The version of the OpenAPI document: v4 + * Contact: support@search.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from "./models"; + +/** + * paths: \"f.a\" paths: \"f.b.d\" Here `f` represents a field in some root message, `a` and `b` fields in the message found in `f`, and `d` a field found in the message in `f.b`. Field masks are used to specify a subset of fields that should be returned by a get operation or modified by an update operation. Field masks also have a custom JSON encoding (see below). # Field Masks in Projections When used in the context of a projection, a response message or sub-message is filtered by the API to only contain those fields as specified in the mask. For example, if the mask in the previous example is applied to a response message as follows: f { a : 22 b { d : 1 x : 2 } y : 13 } z: 8 The result will not contain specific values for fields x,y and z (their value will be set to the default, and omitted in proto text output): f { a : 22 b { d : 1 } } A repeated field is not allowed except at the last position of a paths string. If a FieldMask object is not present in a get operation, the operation applies to all fields (as if a FieldMask of all fields had been specified). Note that a field mask does not necessarily apply to the top-level response message. In case of a REST get operation, the field mask applies directly to the response, but in case of a REST list operation, the mask instead applies to each individual message in the returned resource list. In case of a REST custom method, other definitions may be used. Where the mask applies will be clearly documented together with its declaration in the API. In any case, the effect on the returned resource/resources is required behavior for APIs. # Field Masks in Update Operations A field mask in update operations specifies which fields of the targeted resource are going to be updated. The API is required to only change the values of the fields as specified in the mask and leave the others untouched. If a resource is passed in to describe the updated values, the API ignores the values of all fields not covered by the mask. If a repeated field is specified for an update operation, new values will be appended to the existing repeated field in the target resource. Note that a repeated field is only allowed in the last position of a `paths` string. If a sub-message is specified in the last position of the field mask for an update operation, then new value will be merged into the existing sub-message in the target resource. For example, given the target message: f { b { d: 1 x: 2 } c: [1] } And an update message: f { b { d: 10 } c: [2] } then if the field mask is: paths: [\"f.b\", \"f.c\"] then the result will be: f { b { d: 10 x: 2 } c: [1, 2] } An implementation may provide options to override this default behavior for repeated and message fields. In order to reset a field\'s value to the default, the field must be in the mask and set to the default value in the provided resource. Hence, in order to reset all fields of a resource, provide a default instance of the resource and set all fields in the mask, or do not provide a mask as described below. If a field mask is not present on update, the operation applies to all fields (as if a field mask of all fields has been specified). Note that in the presence of schema evolution, this may mean that fields the client does not know and has therefore not filled into the request will be reset to their default. If this is unwanted behavior, a specific service may require a client to always specify a field mask, producing an error if not. As with get operations, the location of the resource which describes the updated values in the request message depends on the operation kind. In any case, the effect of the field mask is required to be honored by the API. ## Considerations for HTTP REST The HTTP kind of an update operation which uses a field mask must be set to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must only be used for full updates). # JSON Encoding of Field Masks In JSON, a field mask is encoded as a single string where paths are separated by a comma. Fields name in each path are converted to/from lower-camel naming conventions. As an example, consider the following message declarations: message Profile { User user = 1; Photo photo = 2; } message User { string display_name = 1; string address = 2; } In proto a field mask for `Profile` may look as such: mask { paths: \"user.display_name\" paths: \"photo\" } In JSON, the same mask is represented as below: { mask: \"user.displayName,photo\" } # Field Masks and Oneof Fields Field masks treat fields in oneofs just as regular fields. Consider the following message: message SampleMessage { oneof test_oneof { string name = 4; SubMessage sub_message = 9; } } The field mask can be: mask { paths: \"name\" } Or: mask { paths: \"sub_message\" } Note that oneof type names (\"test_oneof\" in this case) cannot be used in paths. ## Field Mask Verification The implementation of any API method which has a FieldMask type field in the request should verify the included field paths, and return an `INVALID_ARGUMENT` error if any path is unmappable. + */ +export class ProtobufFieldMask { + /** + * The set of field mask paths. + */ + "paths"?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }> = [ + { + name: "paths", + baseName: "paths", + type: "Array", + }, + ]; + + static getAttributeTypeMap() { + return ProtobufFieldMask.attributeTypeMap; + } +} diff --git a/src/generated/model/protobufNullValue.ts b/src/generated/model/protobufNullValue.ts index 9c969cf..b927e0e 100644 --- a/src/generated/model/protobufNullValue.ts +++ b/src/generated/model/protobufNullValue.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResult.ts b/src/generated/model/queryAggregateResult.ts index a65de08..6219f62 100644 --- a/src/generated/model/queryAggregateResult.ts +++ b/src/generated/model/queryAggregateResult.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResultAnalysis.ts b/src/generated/model/queryAggregateResultAnalysis.ts index 157d26d..227efff 100644 --- a/src/generated/model/queryAggregateResultAnalysis.ts +++ b/src/generated/model/queryAggregateResultAnalysis.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResultBuckets.ts b/src/generated/model/queryAggregateResultBuckets.ts index 7c7b70b..cc2e4cf 100644 --- a/src/generated/model/queryAggregateResultBuckets.ts +++ b/src/generated/model/queryAggregateResultBuckets.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResultBucketsBucket.ts b/src/generated/model/queryAggregateResultBucketsBucket.ts index e12e112..5252e97 100644 --- a/src/generated/model/queryAggregateResultBucketsBucket.ts +++ b/src/generated/model/queryAggregateResultBucketsBucket.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResultCount.ts b/src/generated/model/queryAggregateResultCount.ts index 201c83a..85c7d3a 100644 --- a/src/generated/model/queryAggregateResultCount.ts +++ b/src/generated/model/queryAggregateResultCount.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResultDate.ts b/src/generated/model/queryAggregateResultDate.ts index 5bf5849..fd60136 100644 --- a/src/generated/model/queryAggregateResultDate.ts +++ b/src/generated/model/queryAggregateResultDate.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResultMetric.ts b/src/generated/model/queryAggregateResultMetric.ts index 482aa03..63a894e 100644 --- a/src/generated/model/queryAggregateResultMetric.ts +++ b/src/generated/model/queryAggregateResultMetric.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryAggregateResultPercentile.ts b/src/generated/model/queryAggregateResultPercentile.ts index d3c1f79..f89e1f3 100644 --- a/src/generated/model/queryAggregateResultPercentile.ts +++ b/src/generated/model/queryAggregateResultPercentile.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryCollectionRequest.ts b/src/generated/model/queryCollectionRequest.ts index 55c7ddd..2904d28 100644 --- a/src/generated/model/queryCollectionRequest.ts +++ b/src/generated/model/queryCollectionRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryCollectionRequestPipeline.ts b/src/generated/model/queryCollectionRequestPipeline.ts index e32dd5a..0808f2c 100644 --- a/src/generated/model/queryCollectionRequestPipeline.ts +++ b/src/generated/model/queryCollectionRequestPipeline.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryCollectionRequestTracking.ts b/src/generated/model/queryCollectionRequestTracking.ts index 8d12c6a..f55726e 100644 --- a/src/generated/model/queryCollectionRequestTracking.ts +++ b/src/generated/model/queryCollectionRequestTracking.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryCollectionRequestTrackingType.ts b/src/generated/model/queryCollectionRequestTrackingType.ts index 9ca83b5..de02de2 100644 --- a/src/generated/model/queryCollectionRequestTrackingType.ts +++ b/src/generated/model/queryCollectionRequestTrackingType.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryCollectionResponse.ts b/src/generated/model/queryCollectionResponse.ts index 22c9a30..e25f6fc 100644 --- a/src/generated/model/queryCollectionResponse.ts +++ b/src/generated/model/queryCollectionResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -30,6 +30,10 @@ export class QueryCollectionResponse { * The aggregates returned by the query. */ "aggregates"?: { [key: string]: QueryAggregateResult }; + /** + * The weight applied to the features in the query, used for analyzing the index, neural and feature components for results. For each result: ``` score = max(index_score, neural_score) * (1 - feature_score_weight) + feature_score * feature_score_weight ``` + */ + "featureScoreWeight"?: number; "pipeline"?: QueryCollectionResponsePipeline; /** * The total time taken to perform the query. @@ -74,6 +78,11 @@ export class QueryCollectionResponse { baseName: "aggregates", type: "{ [key: string]: QueryAggregateResult; }", }, + { + name: "featureScoreWeight", + baseName: "feature_score_weight", + type: "number", + }, { name: "pipeline", baseName: "pipeline", diff --git a/src/generated/model/queryCollectionResponsePipeline.ts b/src/generated/model/queryCollectionResponsePipeline.ts index 8755bbf..d97f7c2 100644 --- a/src/generated/model/queryCollectionResponsePipeline.ts +++ b/src/generated/model/queryCollectionResponsePipeline.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryResult.ts b/src/generated/model/queryResult.ts index f8810f3..29134ee 100644 --- a/src/generated/model/queryResult.ts +++ b/src/generated/model/queryResult.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -15,15 +15,23 @@ import { QueryResultToken } from "./queryResultToken"; export class QueryResult { /** - * Index score. + * The feature score of the result. This is a value between 0 and 1 representing the business-specific ranking of the result as determined by the ranking adjustments. See [Ranking adjustments](https://docs.search.io/documentation/fundamentals/search-settings/ranking-adjustments) for more information. + */ + "featureScore"?: number; + /** + * The index score of the result. This is a value between 0 and 1 representing the relevance of the result using traditional keyword search. The higher the score the more relevant the result is. */ "indexScore"?: number; + /** + * The neural score of the result. This is a value between 0 and 1 representing the relevance of the result using Neuralsearch®, using AI-based search. + */ + "neuralScore"?: number; /** * An object made up of field-value pairs that contains the record data. */ "record"?: object; /** - * The normalized score attributed to this record. Combines the index score and feature score. + * The overall relevance of the result. This is a value between 0 and 1 that combines the index, neural and feature scores. The higher the score the more relevant the result is. */ "score"?: number; "token"?: QueryResultToken; @@ -35,11 +43,21 @@ export class QueryResult { baseName: string; type: string; }> = [ + { + name: "featureScore", + baseName: "feature_score", + type: "number", + }, { name: "indexScore", baseName: "index_score", type: "number", }, + { + name: "neuralScore", + baseName: "neural_score", + type: "number", + }, { name: "record", baseName: "record", diff --git a/src/generated/model/queryResultToken.ts b/src/generated/model/queryResultToken.ts index 4aa97f6..329feb6 100644 --- a/src/generated/model/queryResultToken.ts +++ b/src/generated/model/queryResultToken.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryResultTokenClick.ts b/src/generated/model/queryResultTokenClick.ts index 94b6d12..55793f3 100644 --- a/src/generated/model/queryResultTokenClick.ts +++ b/src/generated/model/queryResultTokenClick.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/queryResultTokenPosNeg.ts b/src/generated/model/queryResultTokenPosNeg.ts index 77714c0..9e5d5d4 100644 --- a/src/generated/model/queryResultTokenPosNeg.ts +++ b/src/generated/model/queryResultTokenPosNeg.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/recordKey.ts b/src/generated/model/recordKey.ts index a5c4899..06da36d 100644 --- a/src/generated/model/recordKey.ts +++ b/src/generated/model/recordKey.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/redirect.ts b/src/generated/model/redirect.ts index 19d6881..c1504a6 100644 --- a/src/generated/model/redirect.ts +++ b/src/generated/model/redirect.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/redirectResult.ts b/src/generated/model/redirectResult.ts index f5b0b8f..03a8c04 100644 --- a/src/generated/model/redirectResult.ts +++ b/src/generated/model/redirectResult.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/schemaField.ts b/src/generated/model/schemaField.ts index 51f9e62..39e7041 100644 --- a/src/generated/model/schemaField.ts +++ b/src/generated/model/schemaField.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/schemaFieldMode.ts b/src/generated/model/schemaFieldMode.ts index afb1f26..872e77a 100644 --- a/src/generated/model/schemaFieldMode.ts +++ b/src/generated/model/schemaFieldMode.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/schemaFieldType.ts b/src/generated/model/schemaFieldType.ts index 2bda969..3cddadc 100644 --- a/src/generated/model/schemaFieldType.ts +++ b/src/generated/model/schemaFieldType.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,7 +13,7 @@ import { RequestFile } from "./models"; /** - * Type represents the underlying data type of the field. - TYPE_UNSPECIFIED: Type not specified. - STRING: String values. - INTEGER: Integer values (64-bit). - FLOAT: Floating point values (32-bit). - DOUBLE: Double floating point values (64-bit). - BOOLEAN: Boolean values. - TIMESTAMP: Timestamp values. + * Type represents the underlying data type of the field. - TYPE_UNSPECIFIED: Type not specified. - STRING: String values. - INTEGER: Integer values (64-bit). - FLOAT: Floating point values (32-bit). - DOUBLE: Double floating point values (64-bit). - BOOLEAN: Boolean values. - TIMESTAMP: Timestamp values. - BYTES: Raw byte values. */ export enum SchemaFieldType { TypeUnspecified = "TYPE_UNSPECIFIED", @@ -23,4 +23,5 @@ export enum SchemaFieldType { Double = "DOUBLE", Boolean = "BOOLEAN", Timestamp = "TIMESTAMP", + Bytes = "BYTES", } diff --git a/src/generated/model/sendEventRequest.ts b/src/generated/model/sendEventRequest.ts index 0d7ca6b..58c6260 100644 --- a/src/generated/model/sendEventRequest.ts +++ b/src/generated/model/sendEventRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/setDefaultPipelineRequest.ts b/src/generated/model/setDefaultPipelineRequest.ts index be228c0..ad5fd80 100644 --- a/src/generated/model/setDefaultPipelineRequest.ts +++ b/src/generated/model/setDefaultPipelineRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/setDefaultVersionRequest.ts b/src/generated/model/setDefaultVersionRequest.ts index 4784614..cd1749e 100644 --- a/src/generated/model/setDefaultVersionRequest.ts +++ b/src/generated/model/setDefaultVersionRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/status.ts b/src/generated/model/status.ts index 2598114..63e8b1b 100644 --- a/src/generated/model/status.ts +++ b/src/generated/model/status.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/updateRecordRequest.ts b/src/generated/model/updateRecordRequest.ts index c410000..d5d05df 100644 --- a/src/generated/model/updateRecordRequest.ts +++ b/src/generated/model/updateRecordRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/upsertRecordRequest.ts b/src/generated/model/upsertRecordRequest.ts index 0424cc0..bd5648d 100644 --- a/src/generated/model/upsertRecordRequest.ts +++ b/src/generated/model/upsertRecordRequest.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/upsertRecordRequestPipeline.ts b/src/generated/model/upsertRecordRequestPipeline.ts index 4f47f3f..bca5d26 100644 --- a/src/generated/model/upsertRecordRequestPipeline.ts +++ b/src/generated/model/upsertRecordRequestPipeline.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/src/generated/model/upsertRecordResponse.ts b/src/generated/model/upsertRecordResponse.ts index 0c05941..7e78f51 100644 --- a/src/generated/model/upsertRecordResponse.ts +++ b/src/generated/model/upsertRecordResponse.ts @@ -1,9 +1,9 @@ /** * Search.io API - * Search.io is a smart, highly-configurable, real-time search service that enables thousands of businesses worldwide to provide amazing search experiences on their websites, stores, and applications. + * Search.io offers a search and discovery service with Neuralsearch®, the world\'s first instant AI search technology. Businesses of all sizes use Search.io to build site search and discovery solutions that maximize e-commerce revenue, optimize on-site customer experience, and scale their online presence. * * The version of the OpenAPI document: v4 - * Contact: support@sajari.com + * Contact: support@search.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech