Skip to content

Commit 5a521ea

Browse files
authored
add support for update and delete schema field (#6)
1 parent 75fc617 commit 5a521ea

38 files changed

+1706
-297
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docs/BatchUpsertRecordsResponseError.md
1818
docs/BatchUpsertRecordsResponseKey.md
1919
docs/BatchUpsertRecordsResponseVariables.md
2020
docs/Collection.md
21+
docs/CollectionType.md
2122
docs/CollectionsApi.md
2223
docs/DeleteRecordRequest.md
2324
docs/Error.md
@@ -28,10 +29,12 @@ docs/ExperimentRequestPipeline.md
2829
docs/ExperimentResponse.md
2930
docs/GeneratePipelinesRequest.md
3031
docs/GeneratePipelinesResponse.md
32+
docs/GetCollectionRequestView.md
3133
docs/GetDefaultPipelineResponse.md
3234
docs/GetDefaultVersionRequestView.md
3335
docs/GetPipelineRequestView.md
3436
docs/GetRecordRequest.md
37+
docs/ListCollectionsRequestView.md
3538
docs/ListCollectionsResponse.md
3639
docs/ListPipelinesRequestView.md
3740
docs/ListPipelinesResponse.md
@@ -94,14 +97,6 @@ docs/UpsertRecordRequest.md
9497
docs/UpsertRecordRequestPipeline.md
9598
docs/UpsertRecordResponse.md
9699
src/Com.Sajari.Sdk.Test/Com.Sajari.Sdk.Test.csproj
97-
src/Com.Sajari.Sdk.Test/Model/BannerTests.cs
98-
src/Com.Sajari.Sdk.Test/Model/EventTests.cs
99-
src/Com.Sajari.Sdk.Test/Model/ExperimentRequestPipelineTests.cs
100-
src/Com.Sajari.Sdk.Test/Model/ExperimentRequestTests.cs
101-
src/Com.Sajari.Sdk.Test/Model/ExperimentResponseTests.cs
102-
src/Com.Sajari.Sdk.Test/Model/ListPromotionsRequestPromotionViewTests.cs
103-
src/Com.Sajari.Sdk.Test/Model/PromotionPinModeTests.cs
104-
src/Com.Sajari.Sdk.Test/Model/TextPositionTests.cs
105100
src/Com.Sajari.Sdk/Api/CollectionsApi.cs
106101
src/Com.Sajari.Sdk/Api/EventsApi.cs
107102
src/Com.Sajari.Sdk/Api/PipelinesApi.cs
@@ -143,6 +138,7 @@ src/Com.Sajari.Sdk/Model/BatchUpsertRecordsResponseError.cs
143138
src/Com.Sajari.Sdk/Model/BatchUpsertRecordsResponseKey.cs
144139
src/Com.Sajari.Sdk/Model/BatchUpsertRecordsResponseVariables.cs
145140
src/Com.Sajari.Sdk/Model/Collection.cs
141+
src/Com.Sajari.Sdk/Model/CollectionType.cs
146142
src/Com.Sajari.Sdk/Model/DeleteRecordRequest.cs
147143
src/Com.Sajari.Sdk/Model/Error.cs
148144
src/Com.Sajari.Sdk/Model/Event.cs
@@ -151,10 +147,12 @@ src/Com.Sajari.Sdk/Model/ExperimentRequestPipeline.cs
151147
src/Com.Sajari.Sdk/Model/ExperimentResponse.cs
152148
src/Com.Sajari.Sdk/Model/GeneratePipelinesRequest.cs
153149
src/Com.Sajari.Sdk/Model/GeneratePipelinesResponse.cs
150+
src/Com.Sajari.Sdk/Model/GetCollectionRequestView.cs
154151
src/Com.Sajari.Sdk/Model/GetDefaultPipelineResponse.cs
155152
src/Com.Sajari.Sdk/Model/GetDefaultVersionRequestView.cs
156153
src/Com.Sajari.Sdk/Model/GetPipelineRequestView.cs
157154
src/Com.Sajari.Sdk/Model/GetRecordRequest.cs
155+
src/Com.Sajari.Sdk/Model/ListCollectionsRequestView.cs
158156
src/Com.Sajari.Sdk/Model/ListCollectionsResponse.cs
159157
src/Com.Sajari.Sdk/Model/ListPipelinesRequestView.cs
160158
src/Com.Sajari.Sdk/Model/ListPipelinesResponse.cs

Com.Sajari.Sdk.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Sajari.Sdk", "src\Com.Sajari.Sdk\Com.Sajari.Sdk.csproj", "{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Sajari.Sdk", "src\Com.Sajari.Sdk\Com.Sajari.Sdk.csproj", "{9209CA73-88E1-456D-BE89-9978B4E998A8}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Sajari.Sdk.Test", "src\Com.Sajari.Sdk.Test\Com.Sajari.Sdk.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{AB2FC7D6-7D1E-495D-B4ED-C2CC60E8488D}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{9209CA73-88E1-456D-BE89-9978B4E998A8}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Search.io offers a search and discovery service with Neuralsearch®, the world's
55
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: v4
8-
- SDK version: 5.0.0
8+
- SDK version: 5.1.0
99
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
1010
For more information, please visit [https://www.search.io/company/contact](https://www.search.io/company/contact)
1111

@@ -81,11 +81,12 @@ namespace Example
8181
var apiInstance = new CollectionsApi(config);
8282
var collectionId = "collectionId_example"; // string | The ID to use for the collection. This must start with an alphanumeric character followed by one or more alphanumeric or `-` characters. Strictly speaking, it must match the regular expression: `^[A-Za-z][A-Za-z0-9\\-]*$`.
8383
var collection = new Collection(); // Collection | Details of the collection to create.
84+
var accountId = "accountId_example"; // string | The account that owns the collection, e.g. `1618535966441231024`. (optional)
8485
8586
try
8687
{
8788
// Create collection
88-
Collection result = apiInstance.CreateCollection(collectionId, collection);
89+
Collection result = apiInstance.CreateCollection(collectionId, collection, accountId);
8990
Debug.WriteLine(result);
9091
}
9192
catch (ApiException e)
@@ -144,7 +145,9 @@ Class | Method | HTTP request | Description
144145
*RedirectsApi* | [**UpdateRedirect**](docs/RedirectsApi.md#updateredirect) | **PATCH** /v4/collections/{collection_id}/redirects/{redirect_id} | Update redirect
145146
*SchemaApi* | [**BatchCreateSchemaFields**](docs/SchemaApi.md#batchcreateschemafields) | **POST** /v4/collections/{collection_id}/schemaFields:batchCreate | Batch create schema fields
146147
*SchemaApi* | [**CreateSchemaField**](docs/SchemaApi.md#createschemafield) | **POST** /v4/collections/{collection_id}/schemaFields | Create schema field
148+
*SchemaApi* | [**DeleteSchemaField**](docs/SchemaApi.md#deleteschemafield) | **DELETE** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Delete schema field
147149
*SchemaApi* | [**ListSchemaFields**](docs/SchemaApi.md#listschemafields) | **GET** /v4/collections/{collection_id}/schemaFields | List schema fields
150+
*SchemaApi* | [**UpdateSchemaField**](docs/SchemaApi.md#updateschemafield) | **PATCH** /v4/collections/{collection_id}/schemaFields/{schema_field_name} | Update schema field
148151

149152

150153
<a name="documentation-for-models"></a>
@@ -166,6 +169,7 @@ Class | Method | HTTP request | Description
166169
- [Model.BatchUpsertRecordsResponseKey](docs/BatchUpsertRecordsResponseKey.md)
167170
- [Model.BatchUpsertRecordsResponseVariables](docs/BatchUpsertRecordsResponseVariables.md)
168171
- [Model.Collection](docs/Collection.md)
172+
- [Model.CollectionType](docs/CollectionType.md)
169173
- [Model.DeleteRecordRequest](docs/DeleteRecordRequest.md)
170174
- [Model.Error](docs/Error.md)
171175
- [Model.Event](docs/Event.md)
@@ -174,10 +178,12 @@ Class | Method | HTTP request | Description
174178
- [Model.ExperimentResponse](docs/ExperimentResponse.md)
175179
- [Model.GeneratePipelinesRequest](docs/GeneratePipelinesRequest.md)
176180
- [Model.GeneratePipelinesResponse](docs/GeneratePipelinesResponse.md)
181+
- [Model.GetCollectionRequestView](docs/GetCollectionRequestView.md)
177182
- [Model.GetDefaultPipelineResponse](docs/GetDefaultPipelineResponse.md)
178183
- [Model.GetDefaultVersionRequestView](docs/GetDefaultVersionRequestView.md)
179184
- [Model.GetPipelineRequestView](docs/GetPipelineRequestView.md)
180185
- [Model.GetRecordRequest](docs/GetRecordRequest.md)
186+
- [Model.ListCollectionsRequestView](docs/ListCollectionsRequestView.md)
181187
- [Model.ListCollectionsResponse](docs/ListCollectionsResponse.md)
182188
- [Model.ListPipelinesRequestView](docs/ListPipelinesRequestView.md)
183189
- [Model.ListPipelinesResponse](docs/ListPipelinesResponse.md)

docs/Collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**AccountId** | **string** | Output only. The ID of the account that owns this collection. | [optional] [readonly]
88
**AuthorizedQueryDomains** | **List&lt;string&gt;** | The list of authorized query domains for the collection. Client-side / browser requests to the [QueryCollection](/docs/api#operation/QueryCollection) call can be made by any authorized query domain or any of its subdomains. This allows your interface to make search requests without having to provide an API key in the client-side request. | [optional]
9-
**CreateTime** | **DateTime** | Output only. Time the collection was created. | [optional] [readonly]
9+
**CreateTime** | **DateTime** | Output only. The time the collection was created. | [optional] [readonly]
1010
**DisplayName** | **string** | The collection&#39;s display name. You can change this at any time. |
1111
**Id** | **string** | Output only. The collection&#39;s ID. | [optional] [readonly]
1212

docs/CollectionType.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Com.Sajari.Sdk.Model.CollectionType
2+
- TYPE_UNSPECIFIED: Type not specified. - WEBSITE: The type for website collections. - SHOPIFY: The type for the collection backing a Shopify account. - CUSTOM: The legacy custom type.
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

0 commit comments

Comments
 (0)