Skip to content

Commit

Permalink
add support for batch update records (#39)
Browse files Browse the repository at this point in the history
bump version to v4.3.0
  • Loading branch information
jkaho authored Jan 10, 2022
1 parent e7fa6ac commit 3cf48b1
Show file tree
Hide file tree
Showing 89 changed files with 682 additions and 374 deletions.
2 changes: 1 addition & 1 deletion generate/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
8 changes: 6 additions & 2 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/generated/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0
5.3.1
40 changes: 20 additions & 20 deletions src/generated/api/collectionsApi.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand All @@ -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. &#x60;my-collection&#x60;.
* @param queryCollectionRequest
Expand Down Expand Up @@ -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));
Expand All @@ -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. &#x60;my-collection&#x60;.
* @param queryCollectionRequest
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down
8 changes: 4 additions & 4 deletions src/generated/api/eventsApi.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down
35 changes: 19 additions & 16 deletions src/generated/api/pipelinesApi.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down
Loading

0 comments on commit 3cf48b1

Please sign in to comment.