Skip to content

Commit

Permalink
Update to support SendEvent API
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkoke committed Sep 9, 2021
1 parent 02f4264 commit 6f75c4a
Show file tree
Hide file tree
Showing 217 changed files with 9,418 additions and 9,703 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Gradle Package & Publish

on:
release:
types: [published]
types: [ published ]

jobs:
build:
Expand All @@ -16,22 +16,22 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Gradle
run: gradle build
- name: Build with Gradle
run: gradle build

# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
run: gradle publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GH_PUBLISH_TOKEN }}
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
run: gradle publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GH_PUBLISH_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ hs_err_pid*
target
.gradle
build
/.openapi-generator-ignore
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ docs/Collection.md
docs/CollectionsApi.md
docs/DeleteRecordRequest.md
docs/Error.md
docs/EventsApi.md
docs/GeneratePipelinesRequest.md
docs/GeneratePipelinesResponse.md
docs/GetDefaultPipelineResponse.md
Expand Down Expand Up @@ -56,6 +57,7 @@ docs/SchemaApi.md
docs/SchemaField.md
docs/SchemaFieldMode.md
docs/SchemaFieldType.md
docs/SendEventRequest.md
docs/SetDefaultPipelineRequest.md
docs/SetDefaultVersionRequest.md
docs/Status.md
Expand All @@ -82,6 +84,7 @@ src/main/java/com/sajari/client/ServerConfiguration.java
src/main/java/com/sajari/client/ServerVariable.java
src/main/java/com/sajari/client/StringUtil.java
src/main/java/com/sajari/client/api/CollectionsApi.java
src/main/java/com/sajari/client/api/EventsApi.java
src/main/java/com/sajari/client/api/PipelinesApi.java
src/main/java/com/sajari/client/api/RecordsApi.java
src/main/java/com/sajari/client/api/SchemaApi.java
Expand Down Expand Up @@ -140,6 +143,7 @@ src/main/java/com/sajari/client/model/RecordKey.java
src/main/java/com/sajari/client/model/SchemaField.java
src/main/java/com/sajari/client/model/SchemaFieldMode.java
src/main/java/com/sajari/client/model/SchemaFieldType.java
src/main/java/com/sajari/client/model/SendEventRequest.java
src/main/java/com/sajari/client/model/SetDefaultPipelineRequest.java
src/main/java/com/sajari/client/model/SetDefaultVersionRequest.java
src/main/java/com/sajari/client/model/Status.java
Expand Down
143 changes: 72 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# sajari-sdk-java-client
# sdk-java-client

Sajari API

- API version: v4

- Build date: 2021-08-20T00:31:03.336071Z[Etc/UTC]

Sajari 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.
Sajari 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.

For more information, please visit [https://www.sajari.com/company/contact](https://www.sajari.com/company/contact)

Expand Down Expand Up @@ -42,7 +41,7 @@ Add this dependency to your project's POM:
```xml
<dependency>
<groupId>com.sajari</groupId>
<artifactId>sajari-sdk-java-client</artifactId>
<artifactId>sdk-java-client</artifactId>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
Expand All @@ -53,7 +52,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.sajari:sajari-sdk-java-client:4.0.0"
compile "com.sajari:sdk-java-client:4.0.0"
```

### Others
Expand All @@ -66,7 +65,7 @@ mvn clean package

Then manually install the following JARs:

- `target/sajari-sdk-java-client-4.0.0.jar`
- `target/sdk-java-client-4.0.0.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -123,93 +122,95 @@ Class | Method | HTTP request | Description
*CollectionsApi* | [**listCollections**](docs/CollectionsApi.md#listCollections) | **GET** /v4/collections | List collections
*CollectionsApi* | [**queryCollection**](docs/CollectionsApi.md#queryCollection) | **POST** /v4/collections/{collection_id}:queryCollection | Query collection
*CollectionsApi* | [**updateCollection**](docs/CollectionsApi.md#updateCollection) | **PATCH** /v4/collections/{collection_id} | Update collection
*EventsApi* | [**sendEvent**](docs/EventsApi.md#sendEvent) | **POST** /v4/events:sendEvent | Send event
*PipelinesApi* | [**createPipeline**](docs/PipelinesApi.md#createPipeline) | **POST** /v4/collections/{collection_id}/pipelines | Create pipeline
*PipelinesApi* | [**generatePipelines**](docs/PipelinesApi.md#generatePipelines) | **POST** /v4/collections/{collection_id}:generatePipelines | Generate pipelines
*PipelinesApi* | [**getDefaultPipeline**](docs/PipelinesApi.md#getDefaultPipeline) | **GET** /v4/collections/{collection_id}:getDefaultPipeline | Get default pipeline
*PipelinesApi* | [**getDefaultVersion**](docs/PipelinesApi.md#getDefaultVersion) | **GET** /v4/collections/{collection_id}/pipelines/{type}/{name}:getDefaultVersion | Get default pipeline version
*PipelinesApi* | [**getDefaultVersion**](docs/PipelinesApi.md#getDefaultVersion) | **
GET** /v4/collections/{collection_id}/pipelines/{type}/{name}:getDefaultVersion | Get default pipeline version
*PipelinesApi* | [**getPipeline**](docs/PipelinesApi.md#getPipeline) | **GET** /v4/collections/{collection_id}/pipelines/{type}/{name}/{version} | Get pipeline
*PipelinesApi* | [**listPipelines**](docs/PipelinesApi.md#listPipelines) | **GET** /v4/collections/{collection_id}/pipelines | List pipelines
*PipelinesApi* | [**setDefaultPipeline**](docs/PipelinesApi.md#setDefaultPipeline) | **POST** /v4/collections/{collection_id}:setDefaultPipeline | Set default pipeline
*PipelinesApi* | [**setDefaultVersion**](docs/PipelinesApi.md#setDefaultVersion) | **POST** /v4/collections/{collection_id}/pipelines/{type}/{name}:setDefaultVersion | Set default pipeline version
*PipelinesApi* | [**setDefaultVersion**](docs/PipelinesApi.md#setDefaultVersion) | **
POST** /v4/collections/{collection_id}/pipelines/{type}/{name}:setDefaultVersion | Set default pipeline version
*RecordsApi* | [**batchUpsertRecords**](docs/RecordsApi.md#batchUpsertRecords) | **POST** /v4/collections/{collection_id}/records:batchUpsert | Batch upsert records
*RecordsApi* | [**deleteRecord**](docs/RecordsApi.md#deleteRecord) | **POST** /v4/collections/{collection_id}/records:delete | Delete record
*RecordsApi* | [**getRecord**](docs/RecordsApi.md#getRecord) | **POST** /v4/collections/{collection_id}/records:get | Get record
*RecordsApi* | [**upsertRecord**](docs/RecordsApi.md#upsertRecord) | **POST** /v4/collections/{collection_id}/records:upsert | Upsert record
*SchemaApi* | [**batchCreateSchemaFields**](docs/SchemaApi.md#batchCreateSchemaFields) | **POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields
*SchemaApi* | [**batchCreateSchemaFields**](docs/SchemaApi.md#batchCreateSchemaFields) | **
POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields
*SchemaApi* | [**createSchemaField**](docs/SchemaApi.md#createSchemaField) | **POST** /v4/collections/{collection_id}/schemaFields | Create schema field
*SchemaApi* | [**listSchemaFields**](docs/SchemaApi.md#listSchemaFields) | **GET** /v4/collections/{collection_id}/schemaFields | List schema fields


## Documentation for Models

- [BatchCreateSchemaFieldsRequest](docs/BatchCreateSchemaFieldsRequest.md)
- [BatchCreateSchemaFieldsResponse](docs/BatchCreateSchemaFieldsResponse.md)
- [BatchCreateSchemaFieldsResponseError](docs/BatchCreateSchemaFieldsResponseError.md)
- [BatchUpsertRecordsRequest](docs/BatchUpsertRecordsRequest.md)
- [BatchUpsertRecordsRequestPipeline](docs/BatchUpsertRecordsRequestPipeline.md)
- [BatchUpsertRecordsResponse](docs/BatchUpsertRecordsResponse.md)
- [BatchUpsertRecordsResponseError](docs/BatchUpsertRecordsResponseError.md)
- [BatchUpsertRecordsResponseKey](docs/BatchUpsertRecordsResponseKey.md)
- [BatchUpsertRecordsResponseVariables](docs/BatchUpsertRecordsResponseVariables.md)
- [Collection](docs/Collection.md)
- [DeleteRecordRequest](docs/DeleteRecordRequest.md)
- [Error](docs/Error.md)
- [GeneratePipelinesRequest](docs/GeneratePipelinesRequest.md)
- [GeneratePipelinesResponse](docs/GeneratePipelinesResponse.md)
- [GetDefaultPipelineResponse](docs/GetDefaultPipelineResponse.md)
- [GetDefaultVersionRequestView](docs/GetDefaultVersionRequestView.md)
- [GetPipelineRequestView](docs/GetPipelineRequestView.md)
- [GetRecordRequest](docs/GetRecordRequest.md)
- [ListCollectionsResponse](docs/ListCollectionsResponse.md)
- [ListPipelinesRequestView](docs/ListPipelinesRequestView.md)
- [ListPipelinesResponse](docs/ListPipelinesResponse.md)
- [ListSchemaFieldsResponse](docs/ListSchemaFieldsResponse.md)
- [PercentileDataPoint](docs/PercentileDataPoint.md)
- [Pipeline](docs/Pipeline.md)
- [PipelineStep](docs/PipelineStep.md)
- [PipelineStepParamBinding](docs/PipelineStepParamBinding.md)
- [PipelineType](docs/PipelineType.md)
- [ProtobufAny](docs/ProtobufAny.md)
- [ProtobufNullValue](docs/ProtobufNullValue.md)
- [QueryAggregateResult](docs/QueryAggregateResult.md)
- [QueryAggregateResultAnalysis](docs/QueryAggregateResultAnalysis.md)
- [QueryAggregateResultBuckets](docs/QueryAggregateResultBuckets.md)
- [QueryAggregateResultBucketsBucket](docs/QueryAggregateResultBucketsBucket.md)
- [QueryAggregateResultCount](docs/QueryAggregateResultCount.md)
- [QueryAggregateResultDate](docs/QueryAggregateResultDate.md)
- [QueryAggregateResultMetric](docs/QueryAggregateResultMetric.md)
- [QueryAggregateResultPercentile](docs/QueryAggregateResultPercentile.md)
- [QueryCollectionRequest](docs/QueryCollectionRequest.md)
- [QueryCollectionRequestPipeline](docs/QueryCollectionRequestPipeline.md)
- [QueryCollectionRequestTracking](docs/QueryCollectionRequestTracking.md)
- [QueryCollectionRequestTrackingType](docs/QueryCollectionRequestTrackingType.md)
- [QueryCollectionResponse](docs/QueryCollectionResponse.md)
- [QueryCollectionResponsePipeline](docs/QueryCollectionResponsePipeline.md)
- [QueryResult](docs/QueryResult.md)
- [QueryResultToken](docs/QueryResultToken.md)
- [QueryResultTokenClick](docs/QueryResultTokenClick.md)
- [QueryResultTokenPosNeg](docs/QueryResultTokenPosNeg.md)
- [RecordKey](docs/RecordKey.md)
- [SchemaField](docs/SchemaField.md)
- [SchemaFieldMode](docs/SchemaFieldMode.md)
- [SchemaFieldType](docs/SchemaFieldType.md)
- [SetDefaultPipelineRequest](docs/SetDefaultPipelineRequest.md)
- [SetDefaultVersionRequest](docs/SetDefaultVersionRequest.md)
- [Status](docs/Status.md)
- [UpsertRecordRequest](docs/UpsertRecordRequest.md)
- [UpsertRecordRequestPipeline](docs/UpsertRecordRequestPipeline.md)
- [UpsertRecordResponse](docs/UpsertRecordResponse.md)

- [BatchCreateSchemaFieldsRequest](docs/BatchCreateSchemaFieldsRequest.md)
- [BatchCreateSchemaFieldsResponse](docs/BatchCreateSchemaFieldsResponse.md)
- [BatchCreateSchemaFieldsResponseError](docs/BatchCreateSchemaFieldsResponseError.md)
- [BatchUpsertRecordsRequest](docs/BatchUpsertRecordsRequest.md)
- [BatchUpsertRecordsRequestPipeline](docs/BatchUpsertRecordsRequestPipeline.md)
- [BatchUpsertRecordsResponse](docs/BatchUpsertRecordsResponse.md)
- [BatchUpsertRecordsResponseError](docs/BatchUpsertRecordsResponseError.md)
- [BatchUpsertRecordsResponseKey](docs/BatchUpsertRecordsResponseKey.md)
- [BatchUpsertRecordsResponseVariables](docs/BatchUpsertRecordsResponseVariables.md)
- [Collection](docs/Collection.md)
- [DeleteRecordRequest](docs/DeleteRecordRequest.md)
- [Error](docs/Error.md)
- [GeneratePipelinesRequest](docs/GeneratePipelinesRequest.md)
- [GeneratePipelinesResponse](docs/GeneratePipelinesResponse.md)
- [GetDefaultPipelineResponse](docs/GetDefaultPipelineResponse.md)
- [GetDefaultVersionRequestView](docs/GetDefaultVersionRequestView.md)
- [GetPipelineRequestView](docs/GetPipelineRequestView.md)
- [GetRecordRequest](docs/GetRecordRequest.md)
- [ListCollectionsResponse](docs/ListCollectionsResponse.md)
- [ListPipelinesRequestView](docs/ListPipelinesRequestView.md)
- [ListPipelinesResponse](docs/ListPipelinesResponse.md)
- [ListSchemaFieldsResponse](docs/ListSchemaFieldsResponse.md)
- [PercentileDataPoint](docs/PercentileDataPoint.md)
- [Pipeline](docs/Pipeline.md)
- [PipelineStep](docs/PipelineStep.md)
- [PipelineStepParamBinding](docs/PipelineStepParamBinding.md)
- [PipelineType](docs/PipelineType.md)
- [ProtobufAny](docs/ProtobufAny.md)
- [ProtobufNullValue](docs/ProtobufNullValue.md)
- [QueryAggregateResult](docs/QueryAggregateResult.md)
- [QueryAggregateResultAnalysis](docs/QueryAggregateResultAnalysis.md)
- [QueryAggregateResultBuckets](docs/QueryAggregateResultBuckets.md)
- [QueryAggregateResultBucketsBucket](docs/QueryAggregateResultBucketsBucket.md)
- [QueryAggregateResultCount](docs/QueryAggregateResultCount.md)
- [QueryAggregateResultDate](docs/QueryAggregateResultDate.md)
- [QueryAggregateResultMetric](docs/QueryAggregateResultMetric.md)
- [QueryAggregateResultPercentile](docs/QueryAggregateResultPercentile.md)
- [QueryCollectionRequest](docs/QueryCollectionRequest.md)
- [QueryCollectionRequestPipeline](docs/QueryCollectionRequestPipeline.md)
- [QueryCollectionRequestTracking](docs/QueryCollectionRequestTracking.md)
- [QueryCollectionRequestTrackingType](docs/QueryCollectionRequestTrackingType.md)
- [QueryCollectionResponse](docs/QueryCollectionResponse.md)
- [QueryCollectionResponsePipeline](docs/QueryCollectionResponsePipeline.md)
- [QueryResult](docs/QueryResult.md)
- [QueryResultToken](docs/QueryResultToken.md)
- [QueryResultTokenClick](docs/QueryResultTokenClick.md)
- [QueryResultTokenPosNeg](docs/QueryResultTokenPosNeg.md)
- [RecordKey](docs/RecordKey.md)
- [SchemaField](docs/SchemaField.md)
- [SchemaFieldMode](docs/SchemaFieldMode.md)
- [SchemaFieldType](docs/SchemaFieldType.md)
- [SendEventRequest](docs/SendEventRequest.md)
- [SetDefaultPipelineRequest](docs/SetDefaultPipelineRequest.md)
- [SetDefaultVersionRequest](docs/SetDefaultVersionRequest.md)
- [Status](docs/Status.md)
- [UpsertRecordRequest](docs/UpsertRecordRequest.md)
- [UpsertRecordRequestPipeline](docs/UpsertRecordRequestPipeline.md)
- [UpsertRecordResponse](docs/UpsertRecordResponse.md)

## Documentation for Authorization

Authentication schemes defined for the API:
### BasicAuth

### BasicAuth

- **Type**: HTTP basic authentication


## Recommendation

It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
Expand Down
Loading

0 comments on commit 6f75c4a

Please sign in to comment.