Skip to content

Commit becfd85

Browse files
algolia-botbengreenbankshortcutsmillotpFluf22
committed
chore: generated code for commit d3aead8. [skip ci]
Co-authored-by: Ben Greenbank <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]> Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent d3aead8 commit becfd85

28 files changed

+522
-33
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
import type { SegmentParentConditions } from './segmentParentConditions';
4+
35
export type CreateSegmentParams = {
46
/**
57
* The name or description of the segment.
68
*/
79
name: string;
810

9-
/**
10-
* The filters that define the segment, defined in the same way as filters for Rules.
11-
*/
12-
conditions: string;
11+
conditions: SegmentParentConditions;
1312
};

clients/algoliasearch-client-javascript/packages/predict/model/createSegmentResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type CreateSegmentResponse = {
77
segmentID: string;
88

99
/**
10-
* The date and time at which the segment was last updated.
10+
* The date and time at which the segment was last updated (RFC3339).
1111
*/
1212
updatedAt: string;
1313
};

clients/algoliasearch-client-javascript/packages/predict/model/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,26 @@ export * from './predictionsOrderValueSuccess';
4040
export * from './previousPageTokenParam';
4141
export * from './properties';
4242
export * from './segment';
43+
export * from './segmentAffinityFilter';
44+
export * from './segmentAffinityFilterValue';
45+
export * from './segmentChildConditionOperands';
46+
export * from './segmentChildConditions';
47+
export * from './segmentConditionOperator';
4348
export * from './segmentConditionsParam';
49+
export * from './segmentFilterOperatorBoolean';
50+
export * from './segmentFilterOperatorNumerical';
51+
export * from './segmentFilterProbability';
52+
export * from './segmentFunnelStageFilter';
4453
export * from './segmentNameParam';
54+
export * from './segmentOperandAffinity';
55+
export * from './segmentOperandFunnelStage';
56+
export * from './segmentOperandOrderValue';
57+
export * from './segmentOperandProperty';
58+
export * from './segmentOrderValueFilter';
59+
export * from './segmentParentConditionOperands';
60+
export * from './segmentParentConditions';
61+
export * from './segmentPropertyFilter';
62+
export * from './segmentPropertyFilterValue';
4563
export * from './segmentStatus';
4664
export * from './segmentType';
4765
export * from './segments';

clients/algoliasearch-client-javascript/packages/predict/model/segment.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
import type { SegmentParentConditions } from './segmentParentConditions';
34
import type { SegmentStatus } from './segmentStatus';
45
import type { SegmentType } from './segmentType';
56

67
export type Segment = {
8+
/**
9+
* The segment syntax version.
10+
*/
11+
version: number;
12+
713
/**
814
* The ID of the segment.
915
*/
1016
segmentID: string;
1117

18+
/**
19+
* The name of the segment.
20+
*/
1221
name: string;
1322

14-
conditions: string;
23+
conditions: SegmentParentConditions;
1524

1625
segmentStatus: SegmentStatus;
1726

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentAffinityFilterValue } from './segmentAffinityFilterValue';
4+
import type { SegmentFilterOperatorNumerical } from './segmentFilterOperatorNumerical';
5+
import type { SegmentFilterProbability } from './segmentFilterProbability';
6+
7+
/**
8+
* Filter for affinity model predictions.
9+
*/
10+
export type SegmentAffinityFilter = {
11+
operator?: SegmentFilterOperatorNumerical;
12+
13+
value: SegmentAffinityFilterValue;
14+
15+
probability: SegmentFilterProbability;
16+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
export type SegmentAffinityFilterValue = string[] | boolean | number | string;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentOperandAffinity } from './segmentOperandAffinity';
4+
import type { SegmentOperandFunnelStage } from './segmentOperandFunnelStage';
5+
import type { SegmentOperandOrderValue } from './segmentOperandOrderValue';
6+
import type { SegmentOperandProperty } from './segmentOperandProperty';
7+
8+
export type SegmentChildConditionOperands =
9+
| SegmentOperandAffinity
10+
| SegmentOperandFunnelStage
11+
| SegmentOperandOrderValue
12+
| SegmentOperandProperty;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentChildConditionOperands } from './segmentChildConditionOperands';
4+
import type { SegmentConditionOperator } from './segmentConditionOperator';
5+
6+
/**
7+
* Nested segment conditions that only contain operands.
8+
*/
9+
export type SegmentChildConditions = {
10+
operator: SegmentConditionOperator;
11+
12+
operands: SegmentChildConditionOperands[];
13+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
/**
4+
* Operator used to combine the operands.
5+
*/
6+
export type SegmentConditionOperator = 'AND' | 'OR';
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
import type { SegmentParentConditions } from './segmentParentConditions';
4+
35
export type SegmentConditionsParam = {
4-
/**
5-
* The filters that define the segment, defined in the same way as filters for Rules.
6-
*/
7-
conditions?: string;
6+
conditions?: SegmentParentConditions;
87
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
/**
4+
* The operator used on the boolean filter value.
5+
*/
6+
export type SegmentFilterOperatorBoolean = '!=' | '=';
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
/**
4+
* The operator used on the numerical filter value.
5+
*/
6+
export type SegmentFilterOperatorNumerical =
7+
| '!='
8+
| '<'
9+
| '<='
10+
| '='
11+
| '>'
12+
| '>=';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
/**
4+
* Probability of the filter.
5+
*/
6+
export type SegmentFilterProbability = {
7+
lt?: number;
8+
9+
lte?: number;
10+
11+
gt?: number;
12+
13+
gte?: number;
14+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentFilterOperatorBoolean } from './segmentFilterOperatorBoolean';
4+
import type { SegmentFilterProbability } from './segmentFilterProbability';
5+
6+
/**
7+
* Filter for funnel stage model predictions.
8+
*/
9+
export type SegmentFunnelStageFilter = {
10+
operator?: SegmentFilterOperatorBoolean;
11+
12+
value: string;
13+
14+
probability: SegmentFilterProbability;
15+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentAffinityFilter } from './segmentAffinityFilter';
4+
5+
/**
6+
* Operand for affinity model predictions.
7+
*/
8+
export type SegmentOperandAffinity = {
9+
name: string;
10+
11+
filters: SegmentAffinityFilter[];
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentFunnelStageFilter } from './segmentFunnelStageFilter';
4+
5+
/**
6+
* Operand for funnel stage model predictions.
7+
*/
8+
export type SegmentOperandFunnelStage = {
9+
name: string;
10+
11+
filters: SegmentFunnelStageFilter[];
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentOrderValueFilter } from './segmentOrderValueFilter';
4+
5+
/**
6+
* Operand for order value model predictions.
7+
*/
8+
export type SegmentOperandOrderValue = {
9+
name: string;
10+
11+
filters: SegmentOrderValueFilter[];
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentPropertyFilter } from './segmentPropertyFilter';
4+
5+
/**
6+
* Operand for user profile properties.
7+
*/
8+
export type SegmentOperandProperty = {
9+
name: string;
10+
11+
filters: SegmentPropertyFilter[];
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentFilterOperatorNumerical } from './segmentFilterOperatorNumerical';
4+
5+
/**
6+
* Filter for order value model predictions.
7+
*/
8+
export type SegmentOrderValueFilter = {
9+
operator?: SegmentFilterOperatorNumerical;
10+
11+
value: number;
12+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentChildConditions } from './segmentChildConditions';
4+
import type { SegmentOperandAffinity } from './segmentOperandAffinity';
5+
import type { SegmentOperandFunnelStage } from './segmentOperandFunnelStage';
6+
import type { SegmentOperandOrderValue } from './segmentOperandOrderValue';
7+
import type { SegmentOperandProperty } from './segmentOperandProperty';
8+
9+
export type SegmentParentConditionOperands =
10+
| SegmentChildConditions
11+
| SegmentOperandAffinity
12+
| SegmentOperandFunnelStage
13+
| SegmentOperandOrderValue
14+
| SegmentOperandProperty;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentConditionOperator } from './segmentConditionOperator';
4+
import type { SegmentParentConditionOperands } from './segmentParentConditionOperands';
5+
6+
/**
7+
* The conditions that define which user profiles are included in the segment. Can contain operands and a maximum of 1 level of nested conditions.
8+
*/
9+
export type SegmentParentConditions = {
10+
operator: SegmentConditionOperator;
11+
12+
operands: SegmentParentConditionOperands[];
13+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentFilterOperatorNumerical } from './segmentFilterOperatorNumerical';
4+
import type { SegmentPropertyFilterValue } from './segmentPropertyFilterValue';
5+
6+
/**
7+
* Filter for user profile properties.
8+
*/
9+
export type SegmentPropertyFilter = {
10+
operator?: SegmentFilterOperatorNumerical;
11+
12+
value: SegmentPropertyFilterValue;
13+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SegmentAffinityFilterValue } from './segmentAffinityFilterValue';
4+
5+
export type SegmentPropertyFilterValue = SegmentAffinityFilterValue;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
/**
4+
* The status of the segment.
5+
*/
36
export type SegmentStatus = 'active' | 'failed' | 'pending';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
/**
4+
* The type of the segment.
5+
*/
36
export type SegmentType = 'computed' | 'custom';

clients/algoliasearch-client-javascript/packages/predict/model/updateSegmentResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type UpdateSegmentResponse = {
77
segmentID: string;
88

99
/**
10-
* The date and time at which the segment was last updated.
10+
* The date and time at which the segment was last updated (RFC3339).
1111
*/
1212
updatedAt: string;
1313
};

0 commit comments

Comments
 (0)