Skip to content

Commit 91218ff

Browse files
algolia-botkai687millotp
committed
fix(specs): built-in ops accept also int (generated)
algolia/api-clients-automation#3450 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 0cb3515 commit 91218ff

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

33
import type { BuiltInOperationType } from './builtInOperationType';
4+
import type { BuiltInOperationValue } from './builtInOperationValue';
45

56
/**
67
* Update to perform on the attribute.
78
*/
89
export type BuiltInOperation = {
910
_operation: BuiltInOperationType;
1011

11-
/**
12-
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
13-
*/
14-
value: string;
12+
value: BuiltInOperationValue;
1513
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
export type BuiltInOperationValue = number | string;

packages/client-search/model/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export * from './browseParamsObject';
3333
export * from './browseResponse';
3434
export * from './builtInOperation';
3535
export * from './builtInOperationType';
36+
export * from './builtInOperationValue';
3637
export * from './condition';
3738
export * from './consequence';
3839
export * from './consequenceHide';

0 commit comments

Comments
 (0)