Skip to content

Commit

Permalink
add support for TrackEvent, Experiment, Banners (#2)
Browse files Browse the repository at this point in the history
- new accountId param added to QueryCollection and SendEvent requests
- bump package to v5.0.0
  • Loading branch information
jkaho authored Mar 10, 2022
1 parent b1fc9f2 commit 7e92b56
Show file tree
Hide file tree
Showing 72 changed files with 4,025 additions and 369 deletions.
38 changes: 24 additions & 14 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
README.md
api/openapi.yaml
docs/ActivePromotion.md
docs/Banner.md
docs/BatchCreateSchemaFieldsRequest.md
docs/BatchCreateSchemaFieldsResponse.md
docs/BatchCreateSchemaFieldsResponseError.md
Expand All @@ -19,7 +20,11 @@ docs/Collection.md
docs/CollectionsApi.md
docs/DeleteRecordRequest.md
docs/Error.md
docs/Event.md
docs/EventsApi.md
docs/ExperimentRequest.md
docs/ExperimentRequestPipeline.md
docs/ExperimentResponse.md
docs/GeneratePipelinesRequest.md
docs/GeneratePipelinesResponse.md
docs/GetDefaultPipelineResponse.md
Expand All @@ -29,6 +34,7 @@ docs/GetRecordRequest.md
docs/ListCollectionsResponse.md
docs/ListPipelinesRequestView.md
docs/ListPipelinesResponse.md
docs/ListPromotionsRequestPromotionView.md
docs/ListPromotionsResponse.md
docs/ListRedirectsResponse.md
docs/ListSchemaFieldsResponse.md
Expand All @@ -44,6 +50,7 @@ docs/PromotionExclusion.md
docs/PromotionFilterBoost.md
docs/PromotionFilterCondition.md
docs/PromotionPin.md
docs/PromotionPinMode.md
docs/PromotionRangeBoost.md
docs/PromotionsApi.md
docs/ProtobufAny.md
Expand Down Expand Up @@ -80,6 +87,7 @@ docs/SendEventRequest.md
docs/SetDefaultPipelineRequest.md
docs/SetDefaultVersionRequest.md
docs/Status.md
docs/TextPosition.md
docs/UpdateRecordRequest.md
docs/UpsertRecordRequest.md
docs/UpsertRecordRequestPipeline.md
Expand Down Expand Up @@ -115,6 +123,7 @@ src/main/java/com/sajari/client/auth/Authentication.java
src/main/java/com/sajari/client/auth/HttpBasicAuth.java
src/main/java/com/sajari/client/auth/HttpBearerAuth.java
src/main/java/com/sajari/client/model/ActivePromotion.java
src/main/java/com/sajari/client/model/Banner.java
src/main/java/com/sajari/client/model/BatchCreateSchemaFieldsRequest.java
src/main/java/com/sajari/client/model/BatchCreateSchemaFieldsResponse.java
src/main/java/com/sajari/client/model/BatchCreateSchemaFieldsResponseError.java
Expand All @@ -131,6 +140,10 @@ src/main/java/com/sajari/client/model/BatchUpsertRecordsResponseVariables.java
src/main/java/com/sajari/client/model/Collection.java
src/main/java/com/sajari/client/model/DeleteRecordRequest.java
src/main/java/com/sajari/client/model/Error.java
src/main/java/com/sajari/client/model/Event.java
src/main/java/com/sajari/client/model/ExperimentRequest.java
src/main/java/com/sajari/client/model/ExperimentRequestPipeline.java
src/main/java/com/sajari/client/model/ExperimentResponse.java
src/main/java/com/sajari/client/model/GeneratePipelinesRequest.java
src/main/java/com/sajari/client/model/GeneratePipelinesResponse.java
src/main/java/com/sajari/client/model/GetDefaultPipelineResponse.java
Expand All @@ -140,6 +153,7 @@ src/main/java/com/sajari/client/model/GetRecordRequest.java
src/main/java/com/sajari/client/model/ListCollectionsResponse.java
src/main/java/com/sajari/client/model/ListPipelinesRequestView.java
src/main/java/com/sajari/client/model/ListPipelinesResponse.java
src/main/java/com/sajari/client/model/ListPromotionsRequestPromotionView.java
src/main/java/com/sajari/client/model/ListPromotionsResponse.java
src/main/java/com/sajari/client/model/ListRedirectsResponse.java
src/main/java/com/sajari/client/model/ListSchemaFieldsResponse.java
Expand All @@ -154,6 +168,7 @@ src/main/java/com/sajari/client/model/PromotionExclusion.java
src/main/java/com/sajari/client/model/PromotionFilterBoost.java
src/main/java/com/sajari/client/model/PromotionFilterCondition.java
src/main/java/com/sajari/client/model/PromotionPin.java
src/main/java/com/sajari/client/model/PromotionPinMode.java
src/main/java/com/sajari/client/model/PromotionRangeBoost.java
src/main/java/com/sajari/client/model/ProtobufAny.java
src/main/java/com/sajari/client/model/ProtobufFieldMask.java
Expand Down Expand Up @@ -186,21 +201,16 @@ 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
src/main/java/com/sajari/client/model/TextPosition.java
src/main/java/com/sajari/client/model/UpdateRecordRequest.java
src/main/java/com/sajari/client/model/UpsertRecordRequest.java
src/main/java/com/sajari/client/model/UpsertRecordRequestPipeline.java
src/main/java/com/sajari/client/model/UpsertRecordResponse.java
src/test/java/com/sajari/client/api/PromotionsApiTest.java
src/test/java/com/sajari/client/api/RedirectsApiTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsRequestTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsResponseErrorTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsResponseRecordTest.java
src/test/java/com/sajari/client/model/BatchUpdateRecordsResponseTest.java
src/test/java/com/sajari/client/model/ListPromotionsResponseTest.java
src/test/java/com/sajari/client/model/ListRedirectsResponseTest.java
src/test/java/com/sajari/client/model/PromotionCategoryTest.java
src/test/java/com/sajari/client/model/PromotionFilterBoostTest.java
src/test/java/com/sajari/client/model/PromotionFilterConditionTest.java
src/test/java/com/sajari/client/model/PromotionRangeBoostTest.java
src/test/java/com/sajari/client/model/PromotionTest.java
src/test/java/com/sajari/client/model/ProtobufFieldMaskTest.java
src/test/java/com/sajari/client/model/BannerTest.java
src/test/java/com/sajari/client/model/EventTest.java
src/test/java/com/sajari/client/model/ExperimentRequestPipelineTest.java
src/test/java/com/sajari/client/model/ExperimentRequestTest.java
src/test/java/com/sajari/client/model/ExperimentResponseTest.java
src/test/java/com/sajari/client/model/ListPromotionsRequestPromotionViewTest.java
src/test/java/com/sajari/client/model/PromotionPinModeTest.java
src/test/java/com/sajari/client/model/TextPositionTest.java
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.1
5.4.0
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.sajari</groupId>
<artifactId>sdk-java-client</artifactId>
<version>4.3.0</version>
<version>5.0.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -51,7 +51,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

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

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

Then manually install the following JARs:

- `target/sdk-java-client-4.3.0.jar`
- `target/sdk-java-client-5.0.0.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -117,10 +117,12 @@ Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CollectionsApi* | [**createCollection**](docs/CollectionsApi.md#createCollection) | **POST** /v4/collections | Create collection
*CollectionsApi* | [**deleteCollection**](docs/CollectionsApi.md#deleteCollection) | **DELETE** /v4/collections/{collection_id} | Delete collection
*CollectionsApi* | [**experiment**](docs/CollectionsApi.md#experiment) | **POST** /v4/collections/{collection_id}:experiment | Experiment
*CollectionsApi* | [**getCollection**](docs/CollectionsApi.md#getCollection) | **GET** /v4/collections/{collection_id} | Get collection
*CollectionsApi* | [**listCollections**](docs/CollectionsApi.md#listCollections) | **GET** /v4/collections | List collections
*CollectionsApi* | [**queryCollection**](docs/CollectionsApi.md#queryCollection) | **POST** /v4/collections/{collection_id}:query | Query collection
*CollectionsApi* | [**queryCollection2**](docs/CollectionsApi.md#queryCollection2) | **POST** /v4/collections/{collection_id}:queryCollection | Query collection
*CollectionsApi* | [**trackEvent**](docs/CollectionsApi.md#trackEvent) | **POST** /v4/collections/{collection_id}:trackEvent | Track event
*CollectionsApi* | [**updateCollection**](docs/CollectionsApi.md#updateCollection) | **PATCH** /v4/collections/{collection_id} | Update collection
*EventsApi* | [**sendEvent**](docs/EventsApi.md#sendEvent) | **POST** /v4/events:send | Send event
*EventsApi* | [**sendEvent2**](docs/EventsApi.md#sendEvent2) | **POST** /v4/events:sendEvent | Send event
Expand Down Expand Up @@ -156,6 +158,7 @@ Class | Method | HTTP request | Description
## Documentation for Models

- [ActivePromotion](docs/ActivePromotion.md)
- [Banner](docs/Banner.md)
- [BatchCreateSchemaFieldsRequest](docs/BatchCreateSchemaFieldsRequest.md)
- [BatchCreateSchemaFieldsResponse](docs/BatchCreateSchemaFieldsResponse.md)
- [BatchCreateSchemaFieldsResponseError](docs/BatchCreateSchemaFieldsResponseError.md)
Expand All @@ -172,6 +175,10 @@ Class | Method | HTTP request | Description
- [Collection](docs/Collection.md)
- [DeleteRecordRequest](docs/DeleteRecordRequest.md)
- [Error](docs/Error.md)
- [Event](docs/Event.md)
- [ExperimentRequest](docs/ExperimentRequest.md)
- [ExperimentRequestPipeline](docs/ExperimentRequestPipeline.md)
- [ExperimentResponse](docs/ExperimentResponse.md)
- [GeneratePipelinesRequest](docs/GeneratePipelinesRequest.md)
- [GeneratePipelinesResponse](docs/GeneratePipelinesResponse.md)
- [GetDefaultPipelineResponse](docs/GetDefaultPipelineResponse.md)
Expand All @@ -181,6 +188,7 @@ Class | Method | HTTP request | Description
- [ListCollectionsResponse](docs/ListCollectionsResponse.md)
- [ListPipelinesRequestView](docs/ListPipelinesRequestView.md)
- [ListPipelinesResponse](docs/ListPipelinesResponse.md)
- [ListPromotionsRequestPromotionView](docs/ListPromotionsRequestPromotionView.md)
- [ListPromotionsResponse](docs/ListPromotionsResponse.md)
- [ListRedirectsResponse](docs/ListRedirectsResponse.md)
- [ListSchemaFieldsResponse](docs/ListSchemaFieldsResponse.md)
Expand All @@ -195,6 +203,7 @@ Class | Method | HTTP request | Description
- [PromotionFilterBoost](docs/PromotionFilterBoost.md)
- [PromotionFilterCondition](docs/PromotionFilterCondition.md)
- [PromotionPin](docs/PromotionPin.md)
- [PromotionPinMode](docs/PromotionPinMode.md)
- [PromotionRangeBoost](docs/PromotionRangeBoost.md)
- [ProtobufAny](docs/ProtobufAny.md)
- [ProtobufFieldMask](docs/ProtobufFieldMask.md)
Expand Down Expand Up @@ -227,6 +236,7 @@ Class | Method | HTTP request | Description
- [SetDefaultPipelineRequest](docs/SetDefaultPipelineRequest.md)
- [SetDefaultVersionRequest](docs/SetDefaultVersionRequest.md)
- [Status](docs/Status.md)
- [TextPosition](docs/TextPosition.md)
- [UpdateRecordRequest](docs/UpdateRecordRequest.md)
- [UpsertRecordRequest](docs/UpsertRecordRequest.md)
- [UpsertRecordRequestPipeline](docs/UpsertRecordRequestPipeline.md)
Expand Down
Loading

0 comments on commit 7e92b56

Please sign in to comment.