@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,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 CommonJoinOperator = {
|
|
21
|
+
And: 'AND',
|
|
22
|
+
Or: 'OR',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type CommonJoinOperator = typeof CommonJoinOperator[keyof typeof CommonJoinOperator];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function CommonJoinOperatorFromJSON(json: any): CommonJoinOperator {
|
|
29
|
+
return CommonJoinOperatorFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function CommonJoinOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonJoinOperator {
|
|
33
|
+
return json as CommonJoinOperator;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function CommonJoinOperatorToJSON(value?: CommonJoinOperator | null): any {
|
|
37
|
+
return value as any;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CommonLogEntry
|
|
20
|
+
*/
|
|
21
|
+
export interface CommonLogEntry {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CommonLogEntry
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CommonLogEntry
|
|
32
|
+
*/
|
|
33
|
+
timestamp?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CommonLogEntry
|
|
38
|
+
*/
|
|
39
|
+
logLevel?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CommonLogEntry
|
|
44
|
+
*/
|
|
45
|
+
logType?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CommonLogEntry
|
|
50
|
+
*/
|
|
51
|
+
contractName?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CommonLogEntry
|
|
56
|
+
*/
|
|
57
|
+
contractAddress?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CommonLogEntry
|
|
62
|
+
*/
|
|
63
|
+
blockNumber?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CommonLogEntry
|
|
68
|
+
*/
|
|
69
|
+
chainId?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {object}
|
|
73
|
+
* @memberof CommonLogEntry
|
|
74
|
+
*/
|
|
75
|
+
attributes?: object;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof CommonLogEntry
|
|
80
|
+
*/
|
|
81
|
+
id?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof CommonLogEntry
|
|
86
|
+
*/
|
|
87
|
+
transactionHash?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof CommonLogEntry
|
|
92
|
+
*/
|
|
93
|
+
highlightedMessage?: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the CommonLogEntry interface.
|
|
98
|
+
*/
|
|
99
|
+
export function instanceOfCommonLogEntry(value: object): boolean {
|
|
100
|
+
let isInstance = true;
|
|
101
|
+
|
|
102
|
+
return isInstance;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function CommonLogEntryFromJSON(json: any): CommonLogEntry {
|
|
106
|
+
return CommonLogEntryFromJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function CommonLogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonLogEntry {
|
|
110
|
+
if ((json === undefined) || (json === null)) {
|
|
111
|
+
return json;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
116
|
+
'timestamp': !exists(json, 'timestamp') ? undefined : json['timestamp'],
|
|
117
|
+
'logLevel': !exists(json, 'logLevel') ? undefined : json['logLevel'],
|
|
118
|
+
'logType': !exists(json, 'logType') ? undefined : json['logType'],
|
|
119
|
+
'contractName': !exists(json, 'contractName') ? undefined : json['contractName'],
|
|
120
|
+
'contractAddress': !exists(json, 'contractAddress') ? undefined : json['contractAddress'],
|
|
121
|
+
'blockNumber': !exists(json, 'blockNumber') ? undefined : json['blockNumber'],
|
|
122
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
123
|
+
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
124
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
125
|
+
'transactionHash': !exists(json, 'transactionHash') ? undefined : json['transactionHash'],
|
|
126
|
+
'highlightedMessage': !exists(json, 'highlightedMessage') ? undefined : json['highlightedMessage'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function CommonLogEntryToJSON(value?: CommonLogEntry | null): any {
|
|
131
|
+
if (value === undefined) {
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
134
|
+
if (value === null) {
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
|
|
139
|
+
'message': value.message,
|
|
140
|
+
'timestamp': value.timestamp,
|
|
141
|
+
'logLevel': value.logLevel,
|
|
142
|
+
'logType': value.logType,
|
|
143
|
+
'contractName': value.contractName,
|
|
144
|
+
'contractAddress': value.contractAddress,
|
|
145
|
+
'blockNumber': value.blockNumber,
|
|
146
|
+
'chainId': value.chainId,
|
|
147
|
+
'attributes': value.attributes,
|
|
148
|
+
'id': value.id,
|
|
149
|
+
'transactionHash': value.transactionHash,
|
|
150
|
+
'highlightedMessage': value.highlightedMessage,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -0,0 +1,156 @@
|
|
|
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 { CommonOrganizationMember } from './CommonOrganizationMember';
|
|
17
|
+
import {
|
|
18
|
+
CommonOrganizationMemberFromJSON,
|
|
19
|
+
CommonOrganizationMemberFromJSONTyped,
|
|
20
|
+
CommonOrganizationMemberToJSON,
|
|
21
|
+
} from './CommonOrganizationMember';
|
|
22
|
+
import type { CommonProjectInfo } from './CommonProjectInfo';
|
|
23
|
+
import {
|
|
24
|
+
CommonProjectInfoFromJSON,
|
|
25
|
+
CommonProjectInfoFromJSONTyped,
|
|
26
|
+
CommonProjectInfoToJSON,
|
|
27
|
+
} from './CommonProjectInfo';
|
|
28
|
+
import type { CommonTier } from './CommonTier';
|
|
29
|
+
import {
|
|
30
|
+
CommonTierFromJSON,
|
|
31
|
+
CommonTierFromJSONTyped,
|
|
32
|
+
CommonTierToJSON,
|
|
33
|
+
} from './CommonTier';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface CommonOrganization
|
|
39
|
+
*/
|
|
40
|
+
export interface CommonOrganization {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CommonOrganization
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CommonOrganization
|
|
51
|
+
*/
|
|
52
|
+
oid?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CommonOrganization
|
|
57
|
+
*/
|
|
58
|
+
name?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CommonOrganization
|
|
63
|
+
*/
|
|
64
|
+
createdAt?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CommonOrganization
|
|
69
|
+
*/
|
|
70
|
+
updatedAt?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<CommonOrganizationMember>}
|
|
74
|
+
* @memberof CommonOrganization
|
|
75
|
+
*/
|
|
76
|
+
members?: Array<CommonOrganizationMember>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CommonOrganization
|
|
81
|
+
*/
|
|
82
|
+
displayName?: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CommonOrganization
|
|
87
|
+
*/
|
|
88
|
+
logoUrl?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<CommonProjectInfo>}
|
|
92
|
+
* @memberof CommonOrganization
|
|
93
|
+
*/
|
|
94
|
+
projects?: Array<CommonProjectInfo>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {CommonTier}
|
|
98
|
+
* @memberof CommonOrganization
|
|
99
|
+
*/
|
|
100
|
+
tier?: CommonTier;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the CommonOrganization interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfCommonOrganization(value: object): boolean {
|
|
107
|
+
let isInstance = true;
|
|
108
|
+
|
|
109
|
+
return isInstance;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function CommonOrganizationFromJSON(json: any): CommonOrganization {
|
|
113
|
+
return CommonOrganizationFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function CommonOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonOrganization {
|
|
117
|
+
if ((json === undefined) || (json === null)) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
123
|
+
'oid': !exists(json, 'oid') ? undefined : json['oid'],
|
|
124
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
125
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
|
|
126
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : json['updatedAt'],
|
|
127
|
+
'members': !exists(json, 'members') ? undefined : ((json['members'] as Array<any>).map(CommonOrganizationMemberFromJSON)),
|
|
128
|
+
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
|
129
|
+
'logoUrl': !exists(json, 'logoUrl') ? undefined : json['logoUrl'],
|
|
130
|
+
'projects': !exists(json, 'projects') ? undefined : ((json['projects'] as Array<any>).map(CommonProjectInfoFromJSON)),
|
|
131
|
+
'tier': !exists(json, 'tier') ? undefined : CommonTierFromJSON(json['tier']),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function CommonOrganizationToJSON(value?: CommonOrganization | null): any {
|
|
136
|
+
if (value === undefined) {
|
|
137
|
+
return undefined;
|
|
138
|
+
}
|
|
139
|
+
if (value === null) {
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'id': value.id,
|
|
145
|
+
'oid': value.oid,
|
|
146
|
+
'name': value.name,
|
|
147
|
+
'createdAt': value.createdAt,
|
|
148
|
+
'updatedAt': value.updatedAt,
|
|
149
|
+
'members': value.members === undefined ? undefined : ((value.members as Array<any>).map(CommonOrganizationMemberToJSON)),
|
|
150
|
+
'displayName': value.displayName,
|
|
151
|
+
'logoUrl': value.logoUrl,
|
|
152
|
+
'projects': value.projects === undefined ? undefined : ((value.projects as Array<any>).map(CommonProjectInfoToJSON)),
|
|
153
|
+
'tier': CommonTierToJSON(value.tier),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
@@ -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 { CommonOrganizationRole } from './CommonOrganizationRole';
|
|
17
|
+
import {
|
|
18
|
+
CommonOrganizationRoleFromJSON,
|
|
19
|
+
CommonOrganizationRoleFromJSONTyped,
|
|
20
|
+
CommonOrganizationRoleToJSON,
|
|
21
|
+
} from './CommonOrganizationRole';
|
|
22
|
+
import type { CommonUserInfo } from './CommonUserInfo';
|
|
23
|
+
import {
|
|
24
|
+
CommonUserInfoFromJSON,
|
|
25
|
+
CommonUserInfoFromJSONTyped,
|
|
26
|
+
CommonUserInfoToJSON,
|
|
27
|
+
} from './CommonUserInfo';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface CommonOrganizationMember
|
|
33
|
+
*/
|
|
34
|
+
export interface CommonOrganizationMember {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {CommonUserInfo}
|
|
38
|
+
* @memberof CommonOrganizationMember
|
|
39
|
+
*/
|
|
40
|
+
user?: CommonUserInfo;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {CommonOrganizationRole}
|
|
44
|
+
* @memberof CommonOrganizationMember
|
|
45
|
+
*/
|
|
46
|
+
role?: CommonOrganizationRole;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CommonOrganizationMember interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfCommonOrganizationMember(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CommonOrganizationMemberFromJSON(json: any): CommonOrganizationMember {
|
|
59
|
+
return CommonOrganizationMemberFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CommonOrganizationMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonOrganizationMember {
|
|
63
|
+
if ((json === undefined) || (json === null)) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'user': !exists(json, 'user') ? undefined : CommonUserInfoFromJSON(json['user']),
|
|
69
|
+
'role': !exists(json, 'role') ? undefined : CommonOrganizationRoleFromJSON(json['role']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function CommonOrganizationMemberToJSON(value?: CommonOrganizationMember | null): any {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'user': CommonUserInfoToJSON(value.user),
|
|
83
|
+
'role': CommonOrganizationRoleToJSON(value.role),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -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 CommonOrganizationRole = {
|
|
21
|
+
Member: 'ORG_MEMBER',
|
|
22
|
+
Admin: 'ORG_ADMIN',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type CommonOrganizationRole = typeof CommonOrganizationRole[keyof typeof CommonOrganizationRole];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function CommonOrganizationRoleFromJSON(json: any): CommonOrganizationRole {
|
|
29
|
+
return CommonOrganizationRoleFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function CommonOrganizationRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonOrganizationRole {
|
|
33
|
+
return json as CommonOrganizationRole;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function CommonOrganizationRoleToJSON(value?: CommonOrganizationRole | null): any {
|
|
37
|
+
return value as any;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { CommonOrganization } from './CommonOrganization';
|
|
17
|
+
import {
|
|
18
|
+
CommonOrganizationFromJSON,
|
|
19
|
+
CommonOrganizationFromJSONTyped,
|
|
20
|
+
CommonOrganizationToJSON,
|
|
21
|
+
} from './CommonOrganization';
|
|
22
|
+
import type { CommonTier } from './CommonTier';
|
|
23
|
+
import {
|
|
24
|
+
CommonTierFromJSON,
|
|
25
|
+
CommonTierFromJSONTyped,
|
|
26
|
+
CommonTierToJSON,
|
|
27
|
+
} from './CommonTier';
|
|
28
|
+
import type { CommonUser } from './CommonUser';
|
|
29
|
+
import {
|
|
30
|
+
CommonUserFromJSON,
|
|
31
|
+
CommonUserFromJSONTyped,
|
|
32
|
+
CommonUserToJSON,
|
|
33
|
+
} from './CommonUser';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface CommonOwner
|
|
39
|
+
*/
|
|
40
|
+
export interface CommonOwner {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {CommonUser}
|
|
44
|
+
* @memberof CommonOwner
|
|
45
|
+
*/
|
|
46
|
+
user?: CommonUser;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {CommonOrganization}
|
|
50
|
+
* @memberof CommonOwner
|
|
51
|
+
*/
|
|
52
|
+
organization?: CommonOrganization;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CommonTier}
|
|
56
|
+
* @memberof CommonOwner
|
|
57
|
+
*/
|
|
58
|
+
tier?: CommonTier;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the CommonOwner interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfCommonOwner(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
|
|
67
|
+
return isInstance;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CommonOwnerFromJSON(json: any): CommonOwner {
|
|
71
|
+
return CommonOwnerFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CommonOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonOwner {
|
|
75
|
+
if ((json === undefined) || (json === null)) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'user': !exists(json, 'user') ? undefined : CommonUserFromJSON(json['user']),
|
|
81
|
+
'organization': !exists(json, 'organization') ? undefined : CommonOrganizationFromJSON(json['organization']),
|
|
82
|
+
'tier': !exists(json, 'tier') ? undefined : CommonTierFromJSON(json['tier']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CommonOwnerToJSON(value?: CommonOwner | null): any {
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
if (value === null) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'user': CommonUserToJSON(value.user),
|
|
96
|
+
'organization': CommonOrganizationToJSON(value.organization),
|
|
97
|
+
'tier': CommonTierToJSON(value.tier),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
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 CommonPermission = {
|
|
21
|
+
Read: 'READ',
|
|
22
|
+
Write: 'WRITE',
|
|
23
|
+
Admin: 'ADMIN',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
|
+
} as const;
|
|
26
|
+
export type CommonPermission = typeof CommonPermission[keyof typeof CommonPermission];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function CommonPermissionFromJSON(json: any): CommonPermission {
|
|
30
|
+
return CommonPermissionFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function CommonPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommonPermission {
|
|
34
|
+
return json as CommonPermission;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function CommonPermissionToJSON(value?: CommonPermission | null): any {
|
|
38
|
+
return value as any;
|
|
39
|
+
}
|
|
40
|
+
|