Skip to content

Commit

Permalink
all: regenerate
Browse files Browse the repository at this point in the history
Includes:

- rebrand
- promotions
- redirects
- batch update records
- collection config
  • Loading branch information
jonathaningram committed Jan 7, 2022
1 parent ebf417e commit 902bd29
Show file tree
Hide file tree
Showing 202 changed files with 15,396 additions and 466 deletions.
54 changes: 54 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ composer.json
docs/Api/CollectionsApi.md
docs/Api/EventsApi.md
docs/Api/PipelinesApi.md
docs/Api/PromotionsApi.md
docs/Api/RecordsApi.md
docs/Api/RedirectsApi.md
docs/Api/SchemaApi.md
docs/Model/ActivePromotion.md
docs/Model/BatchCreateSchemaFieldsRequest.md
docs/Model/BatchCreateSchemaFieldsResponse.md
docs/Model/BatchCreateSchemaFieldsResponseError.md
docs/Model/BatchUpdateRecordsRequest.md
docs/Model/BatchUpdateRecordsResponse.md
docs/Model/BatchUpdateRecordsResponseError.md
docs/Model/BatchUpdateRecordsResponseRecord.md
docs/Model/BatchUpsertRecordsRequest.md
docs/Model/BatchUpsertRecordsRequestPipeline.md
docs/Model/BatchUpsertRecordsResponse.md
Expand All @@ -27,14 +34,23 @@ docs/Model/GetRecordRequest.md
docs/Model/ListCollectionsResponse.md
docs/Model/ListPipelinesRequestView.md
docs/Model/ListPipelinesResponse.md
docs/Model/ListPromotionsResponse.md
docs/Model/ListRedirectsResponse.md
docs/Model/ListSchemaFieldsResponse.md
docs/Model/PercentileDataPoint.md
docs/Model/Pipeline.md
docs/Model/PipelineStep.md
docs/Model/PipelineStepParamBinding.md
docs/Model/PipelineType.md
docs/Model/Promotion.md
docs/Model/PromotionCategory.md
docs/Model/PromotionExclusion.md
docs/Model/PromotionFilterBoost.md
docs/Model/PromotionFilterCondition.md
docs/Model/PromotionPin.md
docs/Model/PromotionRangeBoost.md
docs/Model/ProtobufAny.md
docs/Model/ProtobufFieldMask.md
docs/Model/ProtobufNullValue.md
docs/Model/QueryAggregateResult.md
docs/Model/QueryAggregateResultAnalysis.md
Expand All @@ -55,6 +71,8 @@ docs/Model/QueryResultToken.md
docs/Model/QueryResultTokenClick.md
docs/Model/QueryResultTokenPosNeg.md
docs/Model/RecordKey.md
docs/Model/Redirect.md
docs/Model/RedirectResult.md
docs/Model/SchemaField.md
docs/Model/SchemaFieldMode.md
docs/Model/SchemaFieldType.md
Expand All @@ -69,14 +87,21 @@ docs/Model/UpsertRecordResponse.md
lib/Api/CollectionsApi.php
lib/Api/EventsApi.php
lib/Api/PipelinesApi.php
lib/Api/PromotionsApi.php
lib/Api/RecordsApi.php
lib/Api/RedirectsApi.php
lib/Api/SchemaApi.php
lib/ApiException.php
lib/Configuration.php
lib/HeaderSelector.php
lib/Model/ActivePromotion.php
lib/Model/BatchCreateSchemaFieldsRequest.php
lib/Model/BatchCreateSchemaFieldsResponse.php
lib/Model/BatchCreateSchemaFieldsResponseError.php
lib/Model/BatchUpdateRecordsRequest.php
lib/Model/BatchUpdateRecordsResponse.php
lib/Model/BatchUpdateRecordsResponseError.php
lib/Model/BatchUpdateRecordsResponseRecord.php
lib/Model/BatchUpsertRecordsRequest.php
lib/Model/BatchUpsertRecordsRequestPipeline.php
lib/Model/BatchUpsertRecordsResponse.php
Expand All @@ -95,15 +120,24 @@ lib/Model/GetRecordRequest.php
lib/Model/ListCollectionsResponse.php
lib/Model/ListPipelinesRequestView.php
lib/Model/ListPipelinesResponse.php
lib/Model/ListPromotionsResponse.php
lib/Model/ListRedirectsResponse.php
lib/Model/ListSchemaFieldsResponse.php
lib/Model/ModelInterface.php
lib/Model/PercentileDataPoint.php
lib/Model/Pipeline.php
lib/Model/PipelineStep.php
lib/Model/PipelineStepParamBinding.php
lib/Model/PipelineType.php
lib/Model/Promotion.php
lib/Model/PromotionCategory.php
lib/Model/PromotionExclusion.php
lib/Model/PromotionFilterBoost.php
lib/Model/PromotionFilterCondition.php
lib/Model/PromotionPin.php
lib/Model/PromotionRangeBoost.php
lib/Model/ProtobufAny.php
lib/Model/ProtobufFieldMask.php
lib/Model/ProtobufNullValue.php
lib/Model/QueryAggregateResult.php
lib/Model/QueryAggregateResultAnalysis.php
Expand All @@ -124,6 +158,8 @@ lib/Model/QueryResultToken.php
lib/Model/QueryResultTokenClick.php
lib/Model/QueryResultTokenPosNeg.php
lib/Model/RecordKey.php
lib/Model/Redirect.php
lib/Model/RedirectResult.php
lib/Model/SchemaField.php
lib/Model/SchemaFieldMode.php
lib/Model/SchemaFieldType.php
Expand All @@ -139,11 +175,18 @@ lib/ObjectSerializer.php
test/Api/CollectionsApiTest.php
test/Api/EventsApiTest.php
test/Api/PipelinesApiTest.php
test/Api/PromotionsApiTest.php
test/Api/RecordsApiTest.php
test/Api/RedirectsApiTest.php
test/Api/SchemaApiTest.php
test/Model/ActivePromotionTest.php
test/Model/BatchCreateSchemaFieldsRequestTest.php
test/Model/BatchCreateSchemaFieldsResponseErrorTest.php
test/Model/BatchCreateSchemaFieldsResponseTest.php
test/Model/BatchUpdateRecordsRequestTest.php
test/Model/BatchUpdateRecordsResponseErrorTest.php
test/Model/BatchUpdateRecordsResponseRecordTest.php
test/Model/BatchUpdateRecordsResponseTest.php
test/Model/BatchUpsertRecordsRequestPipelineTest.php
test/Model/BatchUpsertRecordsRequestTest.php
test/Model/BatchUpsertRecordsResponseErrorTest.php
Expand All @@ -162,14 +205,23 @@ test/Model/GetRecordRequestTest.php
test/Model/ListCollectionsResponseTest.php
test/Model/ListPipelinesRequestViewTest.php
test/Model/ListPipelinesResponseTest.php
test/Model/ListPromotionsResponseTest.php
test/Model/ListRedirectsResponseTest.php
test/Model/ListSchemaFieldsResponseTest.php
test/Model/PercentileDataPointTest.php
test/Model/PipelineStepParamBindingTest.php
test/Model/PipelineStepTest.php
test/Model/PipelineTest.php
test/Model/PipelineTypeTest.php
test/Model/PromotionCategoryTest.php
test/Model/PromotionExclusionTest.php
test/Model/PromotionFilterBoostTest.php
test/Model/PromotionFilterConditionTest.php
test/Model/PromotionPinTest.php
test/Model/PromotionRangeBoostTest.php
test/Model/PromotionTest.php
test/Model/ProtobufAnyTest.php
test/Model/ProtobufFieldMaskTest.php
test/Model/ProtobufNullValueTest.php
test/Model/QueryAggregateResultAnalysisTest.php
test/Model/QueryAggregateResultBucketsBucketTest.php
Expand All @@ -190,6 +242,8 @@ test/Model/QueryResultTokenClickTest.php
test/Model/QueryResultTokenPosNegTest.php
test/Model/QueryResultTokenTest.php
test/Model/RecordKeyTest.php
test/Model/RedirectResultTest.php
test/Model/RedirectTest.php
test/Model/SchemaFieldModeTest.php
test/Model/SchemaFieldTest.php
test/Model/SchemaFieldTypeTest.php
Expand Down
37 changes: 32 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Sajari SDK for PHP
# Search.io SDK for PHP

[![Build status](https://github.com/sajari/sdk-php/workflows/Build/badge.svg?branch=master)](https://github.com/sajari/sdk-php/actions)

The official [Sajari](https://www.sajari.com) PHP client library.
The official [Search.io](https://www.sajari.com) PHP client library.

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

## Table of contents

Expand Down Expand Up @@ -90,7 +90,7 @@ try {

## API endpoints

All URIs are relative to *https://api-gateway.sajari.com*
All URIs are relative to *https://api.search.io*

| Class | Method | HTTP request | Description |
| -------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------- |
Expand All @@ -111,20 +111,36 @@ All URIs are relative to *https://api-gateway.sajari.com*
| PipelinesApi | [**listPipelines**](docs/Api/PipelinesApi.md#listpipelines) | **GET** /v4/collections/{collection_id}/pipelines | List pipelines |
| PipelinesApi | [**setDefaultPipeline**](docs/Api/PipelinesApi.md#setdefaultpipeline) | **POST** /v4/collections/{collection_id}:setDefaultPipeline | Set default pipeline |
| PipelinesApi | [**setDefaultVersion**](docs/Api/PipelinesApi.md#setdefaultversion) | **POST** /v4/collections/{collection_id}/pipelines/{type}/{name}:setDefaultVersion | Set default pipeline version |
| PromotionsApi | [**createPromotion**](docs/Api/PromotionsApi.md#createpromotion) | **POST** /v4/collections/{collection_id}/promotions | Create promotion |
| PromotionsApi | [**deletePromotion**](docs/Api/PromotionsApi.md#deletepromotion) | **DELETE** /v4/collections/{collection_id}/promotions/{promotion_id} | Delete promotion |
| PromotionsApi | [**getPromotion**](docs/Api/PromotionsApi.md#getpromotion) | **GET** /v4/collections/{collection_id}/promotions/{promotion_id} | Get promotion |
| PromotionsApi | [**listPromotions**](docs/Api/PromotionsApi.md#listpromotions) | **GET** /v4/collections/{collection_id}/promotions | List promotions |
| PromotionsApi | [**updatePromotion**](docs/Api/PromotionsApi.md#updatepromotion) | **PATCH** /v4/collections/{collection_id}/promotions/{promotion_id} | Update promotion |
| RecordsApi | [**batchUpdateRecords**](docs/Api/RecordsApi.md#batchupdaterecords) | **POST** /v4/collections/{collection_id}/records:batchUpdate | Batch update records |
| RecordsApi | [**batchUpsertRecords**](docs/Api/RecordsApi.md#batchupsertrecords) | **POST** /v4/collections/{collection_id}/records:batchUpsert | Batch upsert records |
| RecordsApi | [**deleteRecord**](docs/Api/RecordsApi.md#deleterecord) | **POST** /v4/collections/{collection_id}/records:delete | Delete record |
| RecordsApi | [**getRecord**](docs/Api/RecordsApi.md#getrecord) | **POST** /v4/collections/{collection_id}/records:get | Get record |
| RecordsApi | [**updateRecord**](docs/Api/RecordsApi.md#updaterecord) | **POST** /v4/collections/{collection_id}/records:update | Update record |
| RecordsApi | [**upsertRecord**](docs/Api/RecordsApi.md#upsertrecord) | **POST** /v4/collections/{collection_id}/records:upsert | Upsert record |
| RedirectsApi | [**createRedirect**](docs/Api/RedirectsApi.md#createredirect) | **POST** /v4/collections/{collection_id}/redirects | Create redirect |
| RedirectsApi | [**deleteRedirect**](docs/Api/RedirectsApi.md#deleteredirect) | **DELETE** /v4/collections/{collection_id}/redirects/{redirect_id} | Delete redirect |
| RedirectsApi | [**getRedirect**](docs/Api/RedirectsApi.md#getredirect) | **GET** /v4/collections/{collection_id}/redirects/{redirect_id} | Get redirect |
| RedirectsApi | [**listRedirects**](docs/Api/RedirectsApi.md#listredirects) | **GET** /v4/collections/{collection_id}/redirects | List redirects |
| RedirectsApi | [**updateRedirect**](docs/Api/RedirectsApi.md#updateredirect) | **PATCH** /v4/collections/{collection_id}/redirects/{redirect_id} | Update redirect |
| SchemaApi | [**batchCreateSchemaFields**](docs/Api/SchemaApi.md#batchcreateschemafields) | **POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields |
| SchemaApi | [**createSchemaField**](docs/Api/SchemaApi.md#createschemafield) | **POST** /v4/collections/{collection_id}/schemaFields | Create schema field |
| SchemaApi | [**listSchemaFields**](docs/Api/SchemaApi.md#listschemafields) | **GET** /v4/collections/{collection_id}/schemaFields | List schema fields |

## Models

- [ActivePromotion](docs/Model/ActivePromotion.md)
- [BatchCreateSchemaFieldsRequest](docs/Model/BatchCreateSchemaFieldsRequest.md)
- [BatchCreateSchemaFieldsResponse](docs/Model/BatchCreateSchemaFieldsResponse.md)
- [BatchCreateSchemaFieldsResponseError](docs/Model/BatchCreateSchemaFieldsResponseError.md)
- [BatchUpdateRecordsRequest](docs/Model/BatchUpdateRecordsRequest.md)
- [BatchUpdateRecordsResponse](docs/Model/BatchUpdateRecordsResponse.md)
- [BatchUpdateRecordsResponseError](docs/Model/BatchUpdateRecordsResponseError.md)
- [BatchUpdateRecordsResponseRecord](docs/Model/BatchUpdateRecordsResponseRecord.md)
- [BatchUpsertRecordsRequest](docs/Model/BatchUpsertRecordsRequest.md)
- [BatchUpsertRecordsRequestPipeline](docs/Model/BatchUpsertRecordsRequestPipeline.md)
- [BatchUpsertRecordsResponse](docs/Model/BatchUpsertRecordsResponse.md)
Expand All @@ -143,14 +159,23 @@ All URIs are relative to *https://api-gateway.sajari.com*
- [ListCollectionsResponse](docs/Model/ListCollectionsResponse.md)
- [ListPipelinesRequestView](docs/Model/ListPipelinesRequestView.md)
- [ListPipelinesResponse](docs/Model/ListPipelinesResponse.md)
- [ListPromotionsResponse](docs/Model/ListPromotionsResponse.md)
- [ListRedirectsResponse](docs/Model/ListRedirectsResponse.md)
- [ListSchemaFieldsResponse](docs/Model/ListSchemaFieldsResponse.md)
- [PercentileDataPoint](docs/Model/PercentileDataPoint.md)
- [Pipeline](docs/Model/Pipeline.md)
- [PipelineStep](docs/Model/PipelineStep.md)
- [PipelineStepParamBinding](docs/Model/PipelineStepParamBinding.md)
- [PipelineType](docs/Model/PipelineType.md)
- [Promotion](docs/Model/Promotion.md)
- [PromotionCategory](docs/Model/PromotionCategory.md)
- [PromotionExclusion](docs/Model/PromotionExclusion.md)
- [PromotionFilterBoost](docs/Model/PromotionFilterBoost.md)
- [PromotionFilterCondition](docs/Model/PromotionFilterCondition.md)
- [PromotionPin](docs/Model/PromotionPin.md)
- [PromotionRangeBoost](docs/Model/PromotionRangeBoost.md)
- [ProtobufAny](docs/Model/ProtobufAny.md)
- [ProtobufFieldMask](docs/Model/ProtobufFieldMask.md)
- [ProtobufNullValue](docs/Model/ProtobufNullValue.md)
- [QueryAggregateResult](docs/Model/QueryAggregateResult.md)
- [QueryAggregateResultAnalysis](docs/Model/QueryAggregateResultAnalysis.md)
Expand All @@ -171,6 +196,8 @@ All URIs are relative to *https://api-gateway.sajari.com*
- [QueryResultTokenClick](docs/Model/QueryResultTokenClick.md)
- [QueryResultTokenPosNeg](docs/Model/QueryResultTokenPosNeg.md)
- [RecordKey](docs/Model/RecordKey.md)
- [Redirect](docs/Model/Redirect.md)
- [RedirectResult](docs/Model/RedirectResult.md)
- [SchemaField](docs/Model/SchemaField.md)
- [SchemaFieldMode](docs/Model/SchemaFieldMode.md)
- [SchemaFieldType](docs/Model/SchemaFieldType.md)
Expand Down Expand Up @@ -200,7 +227,7 @@ vendor/bin/phpunit

## Author

support@sajari.com
support@search.io

## About this package

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sajari/sdk-php",
"version": "4.2.0",
"description": "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.",
"description": "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.",
"keywords": [
"sajari",
"search",
Expand Down
8 changes: 4 additions & 4 deletions docs/Api/CollectionsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sajari\CollectionsApi

All URIs are relative to https://api-gateway.sajari.com.
All URIs are relative to https://api.search.io.

| Method | HTTP request | Description |
| ------------------------------------------------------------ | -------------------------------------------------------- | ----------------- |
Expand All @@ -20,7 +20,7 @@ createCollection($collection_id, $collection): \Sajari\Model\Collection

Create collection

Create an empty collection. Before records can be added to a collection, the schema and pipelines for the collection have to be set up. Consider setting up new collections via the Sajari Console, which handles the creation of the schema and pipelines for you.
Create an empty collection. Before records can be added to a collection, the schema and pipelines for the collection have to be set up. Consider setting up new collections via the Search.io Console, which handles the creation of the schema and pipelines for you.

### Example

Expand Down Expand Up @@ -272,7 +272,7 @@ queryCollection($collection_id, $query_collection_request): \Sajari\Model\QueryC

Query collection

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.sajari.com/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)

### Example

Expand Down Expand Up @@ -339,7 +339,7 @@ queryCollection2($collection_id, $query_collection_request): \Sajari\Model\Query

Query collection

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.sajari.com/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)

### Example

Expand Down
2 changes: 1 addition & 1 deletion docs/Api/EventsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sajari\EventsApi

All URIs are relative to https://api-gateway.sajari.com.
All URIs are relative to https://api.search.io.

| Method | HTTP request | Description |
| ------------------------------------------- | ----------------------------- | ----------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/PipelinesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sajari\PipelinesApi

All URIs are relative to https://api-gateway.sajari.com.
All URIs are relative to https://api.search.io.

| Method | HTTP request | Description |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------- |
Expand Down
Loading

0 comments on commit 902bd29

Please sign in to comment.