@sentio/api 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BUILD.bazel +14 -0
- package/README.md +1 -0
- package/doc/index.html +11971 -0
- package/jest.config.ts +6 -0
- package/package.json +30 -0
- package/spec.json +2635 -0
- package/src/apis/DefaultApi.ts +910 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/CommonAggregate.ts +80 -0
- package/src/models/CommonAggregateAggregateOps.ts +42 -0
- package/src/models/CommonAny.ts +120 -0
- package/src/models/CommonArgument.ts +104 -0
- package/src/models/CommonDuration.ts +73 -0
- package/src/models/CommonErrorRecord.ts +105 -0
- package/src/models/CommonFormula.ts +89 -0
- package/src/models/CommonFunction.ts +80 -0
- package/src/models/CommonJoinOperator.ts +39 -0
- package/src/models/CommonLogEntry.ts +153 -0
- package/src/models/CommonOrganization.ts +156 -0
- package/src/models/CommonOrganizationMember.ts +86 -0
- package/src/models/CommonOrganizationRole.ts +39 -0
- package/src/models/CommonOwner.ts +100 -0
- package/src/models/CommonPermission.ts +40 -0
- package/src/models/CommonProject.ts +172 -0
- package/src/models/CommonProjectInfo.ts +136 -0
- package/src/models/CommonProjectProjectMember.ts +80 -0
- package/src/models/CommonProjectVisibility.ts +39 -0
- package/src/models/CommonQuery.ts +126 -0
- package/src/models/CommonSegmentationQuery.ts +132 -0
- package/src/models/CommonSegmentationQueryAggregation.ts +102 -0
- package/src/models/CommonSegmentationQueryAggregationAggregateProperties.ts +80 -0
- package/src/models/CommonSegmentationQueryAggregationAggregatePropertiesAggregationType.ts +44 -0
- package/src/models/CommonSegmentationQueryAggregationCountUnique.ts +72 -0
- package/src/models/CommonSegmentationQueryResource.ts +80 -0
- package/src/models/CommonSegmentationQueryResourceType.ts +39 -0
- package/src/models/CommonSegmentationQuerySelectorExpr.ts +86 -0
- package/src/models/CommonSegmentationQuerySelectorExprLogicExpr.ts +86 -0
- package/src/models/CommonSelector.ts +94 -0
- package/src/models/CommonSelectorOperatorType.ts +50 -0
- package/src/models/CommonStringList.ts +65 -0
- package/src/models/CommonTier.ts +41 -0
- package/src/models/CommonTimeRange.ts +110 -0
- package/src/models/CommonTimeRangeLite.ts +89 -0
- package/src/models/CommonTimeRangeRelativeTime.ts +73 -0
- package/src/models/CommonTimeRangeTimeLike.ts +80 -0
- package/src/models/CommonUser.ts +182 -0
- package/src/models/CommonUserAccountStatus.ts +41 -0
- package/src/models/CommonUserInfo.ts +105 -0
- package/src/models/GoogleProtobufNullValue.ts +43 -0
- package/src/models/MetricsServiceLogQueryRequestFilter.ts +81 -0
- package/src/models/MetricsServiceLogQueryRequestSort.ts +73 -0
- package/src/models/MetricsServiceLogQueryResponse.ts +94 -0
- package/src/models/MetricsServiceMetricsQueryResponse.ts +72 -0
- package/src/models/MetricsServiceMetricsQueryResponseMatrix.ts +80 -0
- package/src/models/MetricsServiceMetricsQueryResponseMetric.ts +81 -0
- package/src/models/MetricsServiceMetricsQueryResponseResult.ts +96 -0
- package/src/models/MetricsServiceMetricsQueryResponseSample.ts +86 -0
- package/src/models/MetricsServiceMetricsQueryResponseValue.ts +73 -0
- package/src/models/MetricsServiceQueryValueResponse.ts +72 -0
- package/src/models/MetricsServiceQueryValueResponseResult.ts +96 -0
- package/src/models/ProcessorServiceChainState.ts +168 -0
- package/src/models/ProcessorServiceChainStateStatus.ts +86 -0
- package/src/models/ProcessorServiceChainStateStatusState.ts +41 -0
- package/src/models/ProcessorServiceDownloadProcessorResponse.ts +65 -0
- package/src/models/ProcessorServiceGetProcessorResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorEx.ts +170 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatus.ts +86 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatusState.ts +41 -0
- package/src/models/ProcessorServiceGetProcessorWithProjectResponse.ts +86 -0
- package/src/models/ProcessorServiceGetProcessorsResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProjectVersionsResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProjectVersionsResponseVersion.ts +88 -0
- package/src/models/ProcessorServiceProcessor.ts +150 -0
- package/src/models/ProcessorServiceProcessorVersionState.ts +41 -0
- package/src/models/QueryLogRequest.ts +146 -0
- package/src/models/QueryRangeRequest.ts +124 -0
- package/src/models/QueryRequest.ts +118 -0
- package/src/models/WebServiceChart.ts +156 -0
- package/src/models/WebServiceChartChartType.ts +45 -0
- package/src/models/WebServiceChartConfig.ts +156 -0
- package/src/models/WebServiceChartConfigBarGaugeConfig.ts +100 -0
- package/src/models/WebServiceChartConfigCalculation.ts +42 -0
- package/src/models/WebServiceChartConfigColorTheme.ts +81 -0
- package/src/models/WebServiceChartConfigColumnSort.ts +73 -0
- package/src/models/WebServiceChartConfigDirection.ts +39 -0
- package/src/models/WebServiceChartConfigMappingRule.ts +96 -0
- package/src/models/WebServiceChartConfigPieConfig.ts +102 -0
- package/src/models/WebServiceChartConfigPieConfigPieType.ts +39 -0
- package/src/models/WebServiceChartConfigQueryValueConfig.ts +94 -0
- package/src/models/WebServiceChartConfigSort.ts +80 -0
- package/src/models/WebServiceChartConfigSortBy.ts +39 -0
- package/src/models/WebServiceChartConfigTableConfig.ts +140 -0
- package/src/models/WebServiceChartConfigTimeRangeOverride.ts +80 -0
- package/src/models/WebServiceChartConfigValueConfig.ts +148 -0
- package/src/models/WebServiceChartConfigValueConfigStyle.ts +42 -0
- package/src/models/WebServiceChartConfigValueFormatter.ts +40 -0
- package/src/models/WebServiceChartConfigYAxisConfig.ts +89 -0
- package/src/models/WebServiceChartDataSourceType.ts +40 -0
- package/src/models/WebServiceDashboard.ts +162 -0
- package/src/models/WebServiceDashboardExtra.ts +86 -0
- package/src/models/WebServiceDashboardExtraTemplateVariable.ts +73 -0
- package/src/models/WebServiceDashboardExtraTemplateView.ts +65 -0
- package/src/models/WebServiceDashboardLayouts.ts +72 -0
- package/src/models/WebServiceDashboardLayoutsLayout.ts +97 -0
- package/src/models/WebServiceDashboardResponsiveLayouts.ts +72 -0
- package/src/models/WebServiceDashboardSharing.ts +89 -0
- package/src/models/WebServiceExportDashboardResponse.ts +65 -0
- package/src/models/WebServiceGetDashboardResponse.ts +86 -0
- package/src/models/WebServiceGetProjectResponse.ts +86 -0
- package/src/models/WebServiceImportDashboardRequest.ts +81 -0
- package/src/models/WebServiceImportDashboardResponse.ts +72 -0
- package/src/models/WebServiceNote.ts +94 -0
- package/src/models/WebServiceNoteAlignment.ts +40 -0
- package/src/models/WebServiceNoteFontSize.ts +42 -0
- package/src/models/WebServicePanel.ts +96 -0
- package/src/models/index.ts +110 -0
- package/src/runtime.ts +407 -0
- package/test/simple.test.ts +21 -0
- package/tsconfig.json +34 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonSegmentationQueryAggregationAggregateProperties } from './CommonSegmentationQueryAggregationAggregateProperties';
|
|
17
|
+
import {
|
|
18
|
+
CommonSegmentationQueryAggregationAggregatePropertiesFromJSON,
|
|
19
|
+
CommonSegmentationQueryAggregationAggregatePropertiesFromJSONTyped,
|
|
20
|
+
CommonSegmentationQueryAggregationAggregatePropertiesToJSON,
|
|
21
|
+
} from './CommonSegmentationQueryAggregationAggregateProperties';
|
|
22
|
+
import type { CommonSegmentationQueryAggregationCountUnique } from './CommonSegmentationQueryAggregationCountUnique';
|
|
23
|
+
import {
|
|
24
|
+
CommonSegmentationQueryAggregationCountUniqueFromJSON,
|
|
25
|
+
CommonSegmentationQueryAggregationCountUniqueFromJSONTyped,
|
|
26
|
+
CommonSegmentationQueryAggregationCountUniqueToJSON,
|
|
27
|
+
} from './CommonSegmentationQueryAggregationCountUnique';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface CommonSegmentationQueryAggregation
|
|
33
|
+
*/
|
|
34
|
+
export interface CommonSegmentationQueryAggregation {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof CommonSegmentationQueryAggregation
|
|
39
|
+
*/
|
|
40
|
+
total?: object;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {object}
|
|
44
|
+
* @memberof CommonSegmentationQueryAggregation
|
|
45
|
+
*/
|
|
46
|
+
unique?: object;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {CommonSegmentationQueryAggregationCountUnique}
|
|
50
|
+
* @memberof CommonSegmentationQueryAggregation
|
|
51
|
+
*/
|
|
52
|
+
countUnique?: CommonSegmentationQueryAggregationCountUnique;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CommonSegmentationQueryAggregationAggregateProperties}
|
|
56
|
+
* @memberof CommonSegmentationQueryAggregation
|
|
57
|
+
*/
|
|
58
|
+
aggregateProperties?: CommonSegmentationQueryAggregationAggregateProperties;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the CommonSegmentationQueryAggregation interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfCommonSegmentationQueryAggregation(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
|
|
67
|
+
return isInstance;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CommonSegmentationQueryAggregationFromJSON(json: any): CommonSegmentationQueryAggregation {
|
|
71
|
+
return CommonSegmentationQueryAggregationFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CommonSegmentationQueryAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQueryAggregation {
|
|
75
|
+
if ((json === undefined) || (json === null)) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'total': !exists(json, 'total') ? undefined : json['total'],
|
|
81
|
+
'unique': !exists(json, 'unique') ? undefined : json['unique'],
|
|
82
|
+
'countUnique': !exists(json, 'countUnique') ? undefined : CommonSegmentationQueryAggregationCountUniqueFromJSON(json['countUnique']),
|
|
83
|
+
'aggregateProperties': !exists(json, 'aggregateProperties') ? undefined : CommonSegmentationQueryAggregationAggregatePropertiesFromJSON(json['aggregateProperties']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CommonSegmentationQueryAggregationToJSON(value?: CommonSegmentationQueryAggregation | null): any {
|
|
88
|
+
if (value === undefined) {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
if (value === null) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'total': value.total,
|
|
97
|
+
'unique': value.unique,
|
|
98
|
+
'countUnique': CommonSegmentationQueryAggregationCountUniqueToJSON(value.countUnique),
|
|
99
|
+
'aggregateProperties': CommonSegmentationQueryAggregationAggregatePropertiesToJSON(value.aggregateProperties),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonSegmentationQueryAggregationAggregatePropertiesAggregationType } from './CommonSegmentationQueryAggregationAggregatePropertiesAggregationType';
|
|
17
|
+
import {
|
|
18
|
+
CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeFromJSON,
|
|
19
|
+
CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeFromJSONTyped,
|
|
20
|
+
CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeToJSON,
|
|
21
|
+
} from './CommonSegmentationQueryAggregationAggregatePropertiesAggregationType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CommonSegmentationQueryAggregationAggregateProperties
|
|
27
|
+
*/
|
|
28
|
+
export interface CommonSegmentationQueryAggregationAggregateProperties {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {CommonSegmentationQueryAggregationAggregatePropertiesAggregationType}
|
|
32
|
+
* @memberof CommonSegmentationQueryAggregationAggregateProperties
|
|
33
|
+
*/
|
|
34
|
+
type?: CommonSegmentationQueryAggregationAggregatePropertiesAggregationType;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CommonSegmentationQueryAggregationAggregateProperties
|
|
39
|
+
*/
|
|
40
|
+
propertyName?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CommonSegmentationQueryAggregationAggregateProperties interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfCommonSegmentationQueryAggregationAggregateProperties(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CommonSegmentationQueryAggregationAggregatePropertiesFromJSON(json: any): CommonSegmentationQueryAggregationAggregateProperties {
|
|
53
|
+
return CommonSegmentationQueryAggregationAggregatePropertiesFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CommonSegmentationQueryAggregationAggregatePropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQueryAggregationAggregateProperties {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'type': !exists(json, 'type') ? undefined : CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeFromJSON(json['type']),
|
|
63
|
+
'propertyName': !exists(json, 'propertyName') ? undefined : json['propertyName'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function CommonSegmentationQueryAggregationAggregatePropertiesToJSON(value?: CommonSegmentationQueryAggregationAggregateProperties | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'type': CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeToJSON(value.type),
|
|
77
|
+
'propertyName': value.propertyName,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const CommonSegmentationQueryAggregationAggregatePropertiesAggregationType = {
|
|
21
|
+
Sum: 'SUM',
|
|
22
|
+
Avg: 'AVG',
|
|
23
|
+
Median: 'MEDIAN',
|
|
24
|
+
Min: 'MIN',
|
|
25
|
+
Max: 'MAX',
|
|
26
|
+
DistinctCount: 'DISTINCT_COUNT',
|
|
27
|
+
CumulativeSum: 'CUMULATIVE_SUM',
|
|
28
|
+
UnknownDefaultOpenApi: '11184809'
|
|
29
|
+
} as const;
|
|
30
|
+
export type CommonSegmentationQueryAggregationAggregatePropertiesAggregationType = typeof CommonSegmentationQueryAggregationAggregatePropertiesAggregationType[keyof typeof CommonSegmentationQueryAggregationAggregatePropertiesAggregationType];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export function CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeFromJSON(json: any): CommonSegmentationQueryAggregationAggregatePropertiesAggregationType {
|
|
34
|
+
return CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQueryAggregationAggregatePropertiesAggregationType {
|
|
38
|
+
return json as CommonSegmentationQueryAggregationAggregatePropertiesAggregationType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function CommonSegmentationQueryAggregationAggregatePropertiesAggregationTypeToJSON(value?: CommonSegmentationQueryAggregationAggregatePropertiesAggregationType | null): any {
|
|
42
|
+
return value as any;
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonDuration } from './CommonDuration';
|
|
17
|
+
import {
|
|
18
|
+
CommonDurationFromJSON,
|
|
19
|
+
CommonDurationFromJSONTyped,
|
|
20
|
+
CommonDurationToJSON,
|
|
21
|
+
} from './CommonDuration';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CommonSegmentationQueryAggregationCountUnique
|
|
27
|
+
*/
|
|
28
|
+
export interface CommonSegmentationQueryAggregationCountUnique {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {CommonDuration}
|
|
32
|
+
* @memberof CommonSegmentationQueryAggregationCountUnique
|
|
33
|
+
*/
|
|
34
|
+
duration?: CommonDuration;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CommonSegmentationQueryAggregationCountUnique interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfCommonSegmentationQueryAggregationCountUnique(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CommonSegmentationQueryAggregationCountUniqueFromJSON(json: any): CommonSegmentationQueryAggregationCountUnique {
|
|
47
|
+
return CommonSegmentationQueryAggregationCountUniqueFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CommonSegmentationQueryAggregationCountUniqueFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQueryAggregationCountUnique {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'duration': !exists(json, 'duration') ? undefined : CommonDurationFromJSON(json['duration']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CommonSegmentationQueryAggregationCountUniqueToJSON(value?: CommonSegmentationQueryAggregationCountUnique | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'duration': CommonDurationToJSON(value.duration),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonSegmentationQueryResourceType } from './CommonSegmentationQueryResourceType';
|
|
17
|
+
import {
|
|
18
|
+
CommonSegmentationQueryResourceTypeFromJSON,
|
|
19
|
+
CommonSegmentationQueryResourceTypeFromJSONTyped,
|
|
20
|
+
CommonSegmentationQueryResourceTypeToJSON,
|
|
21
|
+
} from './CommonSegmentationQueryResourceType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CommonSegmentationQueryResource
|
|
27
|
+
*/
|
|
28
|
+
export interface CommonSegmentationQueryResource {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CommonSegmentationQueryResource
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {CommonSegmentationQueryResourceType}
|
|
38
|
+
* @memberof CommonSegmentationQueryResource
|
|
39
|
+
*/
|
|
40
|
+
type?: CommonSegmentationQueryResourceType;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CommonSegmentationQueryResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfCommonSegmentationQueryResource(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CommonSegmentationQueryResourceFromJSON(json: any): CommonSegmentationQueryResource {
|
|
53
|
+
return CommonSegmentationQueryResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CommonSegmentationQueryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQueryResource {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
63
|
+
'type': !exists(json, 'type') ? undefined : CommonSegmentationQueryResourceTypeFromJSON(json['type']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function CommonSegmentationQueryResourceToJSON(value?: CommonSegmentationQueryResource | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': value.name,
|
|
77
|
+
'type': CommonSegmentationQueryResourceTypeToJSON(value.type),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const CommonSegmentationQueryResourceType = {
|
|
21
|
+
Events: 'EVENTS',
|
|
22
|
+
Cohorts: 'COHORTS',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type CommonSegmentationQueryResourceType = typeof CommonSegmentationQueryResourceType[keyof typeof CommonSegmentationQueryResourceType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function CommonSegmentationQueryResourceTypeFromJSON(json: any): CommonSegmentationQueryResourceType {
|
|
29
|
+
return CommonSegmentationQueryResourceTypeFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function CommonSegmentationQueryResourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQueryResourceType {
|
|
33
|
+
return json as CommonSegmentationQueryResourceType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function CommonSegmentationQueryResourceTypeToJSON(value?: CommonSegmentationQueryResourceType | null): any {
|
|
37
|
+
return value as any;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonSegmentationQuerySelectorExprLogicExpr } from './CommonSegmentationQuerySelectorExprLogicExpr';
|
|
17
|
+
import {
|
|
18
|
+
CommonSegmentationQuerySelectorExprLogicExprFromJSON,
|
|
19
|
+
CommonSegmentationQuerySelectorExprLogicExprFromJSONTyped,
|
|
20
|
+
CommonSegmentationQuerySelectorExprLogicExprToJSON,
|
|
21
|
+
} from './CommonSegmentationQuerySelectorExprLogicExpr';
|
|
22
|
+
import type { CommonSelector } from './CommonSelector';
|
|
23
|
+
import {
|
|
24
|
+
CommonSelectorFromJSON,
|
|
25
|
+
CommonSelectorFromJSONTyped,
|
|
26
|
+
CommonSelectorToJSON,
|
|
27
|
+
} from './CommonSelector';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface CommonSegmentationQuerySelectorExpr
|
|
33
|
+
*/
|
|
34
|
+
export interface CommonSegmentationQuerySelectorExpr {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {CommonSelector}
|
|
38
|
+
* @memberof CommonSegmentationQuerySelectorExpr
|
|
39
|
+
*/
|
|
40
|
+
selector?: CommonSelector;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {CommonSegmentationQuerySelectorExprLogicExpr}
|
|
44
|
+
* @memberof CommonSegmentationQuerySelectorExpr
|
|
45
|
+
*/
|
|
46
|
+
logicExpr?: CommonSegmentationQuerySelectorExprLogicExpr;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CommonSegmentationQuerySelectorExpr interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfCommonSegmentationQuerySelectorExpr(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CommonSegmentationQuerySelectorExprFromJSON(json: any): CommonSegmentationQuerySelectorExpr {
|
|
59
|
+
return CommonSegmentationQuerySelectorExprFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CommonSegmentationQuerySelectorExprFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQuerySelectorExpr {
|
|
63
|
+
if ((json === undefined) || (json === null)) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'selector': !exists(json, 'selector') ? undefined : CommonSelectorFromJSON(json['selector']),
|
|
69
|
+
'logicExpr': !exists(json, 'logicExpr') ? undefined : CommonSegmentationQuerySelectorExprLogicExprFromJSON(json['logicExpr']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function CommonSegmentationQuerySelectorExprToJSON(value?: CommonSegmentationQuerySelectorExpr | null): any {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'selector': CommonSelectorToJSON(value.selector),
|
|
83
|
+
'logicExpr': CommonSegmentationQuerySelectorExprLogicExprToJSON(value.logicExpr),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonJoinOperator } from './CommonJoinOperator';
|
|
17
|
+
import {
|
|
18
|
+
CommonJoinOperatorFromJSON,
|
|
19
|
+
CommonJoinOperatorFromJSONTyped,
|
|
20
|
+
CommonJoinOperatorToJSON,
|
|
21
|
+
} from './CommonJoinOperator';
|
|
22
|
+
import type { CommonSegmentationQuerySelectorExpr } from './CommonSegmentationQuerySelectorExpr';
|
|
23
|
+
import {
|
|
24
|
+
CommonSegmentationQuerySelectorExprFromJSON,
|
|
25
|
+
CommonSegmentationQuerySelectorExprFromJSONTyped,
|
|
26
|
+
CommonSegmentationQuerySelectorExprToJSON,
|
|
27
|
+
} from './CommonSegmentationQuerySelectorExpr';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface CommonSegmentationQuerySelectorExprLogicExpr
|
|
33
|
+
*/
|
|
34
|
+
export interface CommonSegmentationQuerySelectorExprLogicExpr {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<CommonSegmentationQuerySelectorExpr>}
|
|
38
|
+
* @memberof CommonSegmentationQuerySelectorExprLogicExpr
|
|
39
|
+
*/
|
|
40
|
+
expressions?: Array<CommonSegmentationQuerySelectorExpr>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {CommonJoinOperator}
|
|
44
|
+
* @memberof CommonSegmentationQuerySelectorExprLogicExpr
|
|
45
|
+
*/
|
|
46
|
+
operator?: CommonJoinOperator;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CommonSegmentationQuerySelectorExprLogicExpr interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfCommonSegmentationQuerySelectorExprLogicExpr(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CommonSegmentationQuerySelectorExprLogicExprFromJSON(json: any): CommonSegmentationQuerySelectorExprLogicExpr {
|
|
59
|
+
return CommonSegmentationQuerySelectorExprLogicExprFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CommonSegmentationQuerySelectorExprLogicExprFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSegmentationQuerySelectorExprLogicExpr {
|
|
63
|
+
if ((json === undefined) || (json === null)) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'expressions': !exists(json, 'expressions') ? undefined : ((json['expressions'] as Array<any>).map(CommonSegmentationQuerySelectorExprFromJSON)),
|
|
69
|
+
'operator': !exists(json, 'operator') ? undefined : CommonJoinOperatorFromJSON(json['operator']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function CommonSegmentationQuerySelectorExprLogicExprToJSON(value?: CommonSegmentationQuerySelectorExprLogicExpr | null): any {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'expressions': value.expressions === undefined ? undefined : ((value.expressions as Array<any>).map(CommonSegmentationQuerySelectorExprToJSON)),
|
|
83
|
+
'operator': CommonJoinOperatorToJSON(value.operator),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonAny } from './CommonAny';
|
|
17
|
+
import {
|
|
18
|
+
CommonAnyFromJSON,
|
|
19
|
+
CommonAnyFromJSONTyped,
|
|
20
|
+
CommonAnyToJSON,
|
|
21
|
+
} from './CommonAny';
|
|
22
|
+
import type { CommonSelectorOperatorType } from './CommonSelectorOperatorType';
|
|
23
|
+
import {
|
|
24
|
+
CommonSelectorOperatorTypeFromJSON,
|
|
25
|
+
CommonSelectorOperatorTypeFromJSONTyped,
|
|
26
|
+
CommonSelectorOperatorTypeToJSON,
|
|
27
|
+
} from './CommonSelectorOperatorType';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface CommonSelector
|
|
33
|
+
*/
|
|
34
|
+
export interface CommonSelector {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CommonSelector
|
|
39
|
+
*/
|
|
40
|
+
key?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {CommonSelectorOperatorType}
|
|
44
|
+
* @memberof CommonSelector
|
|
45
|
+
*/
|
|
46
|
+
operator?: CommonSelectorOperatorType;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<CommonAny>}
|
|
50
|
+
* @memberof CommonSelector
|
|
51
|
+
*/
|
|
52
|
+
value?: Array<CommonAny>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the CommonSelector interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfCommonSelector(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
|
|
61
|
+
return isInstance;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CommonSelectorFromJSON(json: any): CommonSelector {
|
|
65
|
+
return CommonSelectorFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CommonSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonSelector {
|
|
69
|
+
if ((json === undefined) || (json === null)) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'key': !exists(json, 'key') ? undefined : json['key'],
|
|
75
|
+
'operator': !exists(json, 'operator') ? undefined : CommonSelectorOperatorTypeFromJSON(json['operator']),
|
|
76
|
+
'value': !exists(json, 'value') ? undefined : ((json['value'] as Array<any>).map(CommonAnyFromJSON)),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CommonSelectorToJSON(value?: CommonSelector | null): any {
|
|
81
|
+
if (value === undefined) {
|
|
82
|
+
return undefined;
|
|
83
|
+
}
|
|
84
|
+
if (value === null) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'key': value.key,
|
|
90
|
+
'operator': CommonSelectorOperatorTypeToJSON(value.operator),
|
|
91
|
+
'value': value.value === undefined ? undefined : ((value.value as Array<any>).map(CommonAnyToJSON)),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|