@coveo/platform-client 37.9.0 → 37.11.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/README.md +1 -15
- package/dist/APICore.js +6 -2
- package/dist/APICore.js.map +1 -1
- package/dist/definitions/APICore.d.ts +1 -1
- package/dist/definitions/resources/BaseInterfaces.d.ts +1 -1
- package/dist/definitions/resources/Pipelines/Conditions/Condition.d.ts +27 -0
- package/dist/definitions/resources/Pipelines/Conditions/ConditionInterfaces.d.ts +63 -1
- package/dist/definitions/resources/Pipelines/MLAssociations/MLAssociations.d.ts +2 -1
- package/dist/definitions/resources/Pipelines/MLAssociations/MLAssociationsInterfaces.d.ts +3 -0
- package/dist/definitions/resources/Pipelines/PipelinesInterfaces.d.ts +1 -1
- package/dist/definitions/resources/UsageAnalytics/Read/Administration/Administration.d.ts +13 -2
- package/dist/definitions/resources/UsageAnalytics/Read/Administration/AdministrationInterfaces.d.ts +5 -6
- package/dist/definitions/resources/UsageAnalytics/Read/CommonParamParts.d.ts +118 -0
- package/dist/definitions/resources/UsageAnalytics/Read/DataShare/DataShare.d.ts +15 -3
- package/dist/definitions/resources/UsageAnalytics/Read/Dimensions/Dimensions.d.ts +65 -2
- package/dist/definitions/resources/UsageAnalytics/Read/Dimensions/DimensionsInterfaces.d.ts +20 -19
- package/dist/definitions/resources/UsageAnalytics/Read/Exports/Exports.d.ts +60 -2
- package/dist/definitions/resources/UsageAnalytics/Read/Exports/ExportsInterfaces.d.ts +28 -23
- package/dist/definitions/resources/UsageAnalytics/Read/Filters/Filters.d.ts +44 -26
- package/dist/definitions/resources/UsageAnalytics/Read/ReadServiceResource.d.ts +16 -0
- package/dist/definitions/resources/UsageAnalytics/Read/Reports/Reports.d.ts +35 -17
- package/dist/definitions/resources/UsageAnalytics/Read/Reports/ReportsInterfaces.d.ts +13 -14
- package/dist/definitions/resources/UsageAnalytics/Read/Snowflake/Snowflake.d.ts +41 -2
- package/dist/definitions/resources/UsageAnalytics/Read/Snowflake/SnowflakeInterfaces.d.ts +8 -16
- package/dist/definitions/resources/UsageAnalytics/Read/Statistics/Statistics.d.ts +55 -4
- package/dist/definitions/resources/UsageAnalytics/Read/Statistics/StatisticsInterfaces.d.ts +71 -93
- package/dist/definitions/resources/UsageAnalytics/Read/Users/Users.d.ts +33 -2
- package/dist/definitions/resources/UsageAnalytics/Read/Users/UsersInterfaces.d.ts +11 -9
- package/dist/definitions/resources/UsageAnalytics/Read/index.d.ts +1 -0
- package/dist/definitions/resources/UsageAnalytics/UsageAnalytics.d.ts +5 -5
- package/dist/definitions/utils/normalizePaginatedOptions.d.ts +1 -1
- package/dist/resources/Activities/Activities.js +2 -2
- package/dist/resources/Activities/Activities.js.map +1 -1
- package/dist/resources/Pipelines/Conditions/Condition.js +32 -0
- package/dist/resources/Pipelines/Conditions/Condition.js.map +1 -1
- package/dist/resources/Pipelines/MLAssociations/MLAssociations.js +4 -0
- package/dist/resources/Pipelines/MLAssociations/MLAssociations.js.map +1 -1
- package/dist/resources/ResourceSnapshots/ResourceSnapshots.js +1 -1
- package/dist/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Administration/Administration.js +16 -5
- package/dist/resources/UsageAnalytics/Read/Administration/Administration.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/CommonParamParts.js +3 -0
- package/dist/resources/UsageAnalytics/Read/CommonParamParts.js.map +1 -0
- package/dist/resources/UsageAnalytics/Read/DataShare/DataShare.js +19 -7
- package/dist/resources/UsageAnalytics/Read/DataShare/DataShare.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Dimensions/Dimensions.js +76 -13
- package/dist/resources/UsageAnalytics/Read/Dimensions/Dimensions.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Exports/Exports.js +73 -15
- package/dist/resources/UsageAnalytics/Read/Exports/Exports.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Filters/Filters.js +58 -40
- package/dist/resources/UsageAnalytics/Read/Filters/Filters.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/ReadServiceResource.js +28 -0
- package/dist/resources/UsageAnalytics/Read/ReadServiceResource.js.map +1 -0
- package/dist/resources/UsageAnalytics/Read/Reports/Reports.js +48 -38
- package/dist/resources/UsageAnalytics/Read/Reports/Reports.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Reports/ReportsInterfaces.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Snowflake/Snowflake.js +52 -13
- package/dist/resources/UsageAnalytics/Read/Snowflake/Snowflake.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Statistics/Statistics.js +66 -13
- package/dist/resources/UsageAnalytics/Read/Statistics/Statistics.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/Users/Users.js +38 -7
- package/dist/resources/UsageAnalytics/Read/Users/Users.js.map +1 -1
- package/dist/resources/UsageAnalytics/Read/index.js +1 -0
- package/dist/resources/UsageAnalytics/Read/index.js.map +1 -1
- package/dist/resources/UsageAnalytics/UsageAnalytics.js +5 -5
- package/dist/resources/UsageAnalytics/UsageAnalytics.js.map +1 -1
- package/dist/utils/normalizePaginatedOptions.js +1 -1
- package/dist/utils/normalizePaginatedOptions.js.map +1 -1
- package/package.json +10 -9
|
@@ -1,18 +1,69 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CombinedDataModel, CombinedDataOptions,
|
|
3
|
-
export default class Statistics extends
|
|
1
|
+
import ReadServiceResource from '../ReadServiceResource';
|
|
2
|
+
import { CombinedDataModel, CombinedDataOptions, CancelQueryOptions, GlobalDataOptions, GraphDataPointsModel, GraphDataPointsOptions, IncoherentEventsModel, IncoherentEventsOptions, MetricsModel, MonitoringHealthModel, ServiceStatus, TrendsModel, TrendsOptions, VisitsGraphDataPointsOptions, VisitsMetricsOptions, VisitsStatisticsModel, VisitsStatisticsOptions, VisitViewOptions, DeleteQueryOptions } from './StatisticsInterfaces';
|
|
3
|
+
export default class Statistics extends ReadServiceResource {
|
|
4
4
|
static baseUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* Get the statistics service status.
|
|
7
|
+
*/
|
|
5
8
|
status(): Promise<ServiceStatus>;
|
|
9
|
+
/**
|
|
10
|
+
* Get the incoherent events for a date range.
|
|
11
|
+
*/
|
|
6
12
|
listIncoherentEvents(options: IncoherentEventsOptions): Promise<IncoherentEventsModel>;
|
|
13
|
+
/**
|
|
14
|
+
* Get graph data points for the metrics for a date range.
|
|
15
|
+
*/
|
|
7
16
|
listGraphDataPoints(options: GraphDataPointsOptions): Promise<GraphDataPointsModel>;
|
|
17
|
+
/**
|
|
18
|
+
* Get global data for each metric for a date range.
|
|
19
|
+
*/
|
|
8
20
|
listGlobalData(options: GlobalDataOptions): Promise<MetricsModel>;
|
|
21
|
+
/**
|
|
22
|
+
* Get trends of a metric combined with dimensions for a date range.
|
|
23
|
+
*/
|
|
9
24
|
listTrends(options: TrendsOptions): Promise<TrendsModel>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the metrics based on the visits matching the specified criteria.
|
|
27
|
+
*/
|
|
10
28
|
listVisitsMetrics(options: VisitsMetricsOptions): Promise<MetricsModel>;
|
|
29
|
+
/**
|
|
30
|
+
* Get graph data points for visit based metrics for a date range.
|
|
31
|
+
*/
|
|
11
32
|
listVisitsGraphDataPoints(options: VisitsGraphDataPointsOptions): Promise<GraphDataPointsModel>;
|
|
33
|
+
/**
|
|
34
|
+
* Cancel the execution of a query.
|
|
35
|
+
* This is a best effort; there is no guarantee that the query will be cancelled.
|
|
36
|
+
* If the query is cancelled, the sender of the now cancelled query will receive a 409 Conflict.
|
|
37
|
+
*
|
|
38
|
+
* @param queryId The id of the query to cancel.
|
|
39
|
+
*/
|
|
40
|
+
cancelQuery(queryId: string, options: CancelQueryOptions): Promise<Record<string, unknown>>;
|
|
41
|
+
/**
|
|
42
|
+
* Please use {@link cancelQuery} instead.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
12
46
|
delete(queryId: string, options: DeleteQueryOptions): Promise<Record<string, unknown>>;
|
|
47
|
+
/**
|
|
48
|
+
* Get metrics combined with dimensions for a date range.
|
|
49
|
+
*/
|
|
13
50
|
listCombinedData(options: CombinedDataOptions): Promise<CombinedDataModel>;
|
|
51
|
+
/**
|
|
52
|
+
* This call no longer exists on the API, it will be removed.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated
|
|
55
|
+
*/
|
|
14
56
|
listTopQueries(): Promise<string[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Health check for the statistics service.
|
|
59
|
+
*/
|
|
15
60
|
getMonitoringHealth(): Promise<MonitoringHealthModel>;
|
|
61
|
+
/**
|
|
62
|
+
* Get the details of the visits matching the specified criteria.
|
|
63
|
+
*/
|
|
16
64
|
listVisits(options: VisitsStatisticsOptions): Promise<VisitsStatisticsModel>;
|
|
17
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Force a visit view update.
|
|
67
|
+
*/
|
|
68
|
+
updateVisitView(options: VisitViewOptions): Promise<Record<string, unknown>>;
|
|
18
69
|
}
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
import { DeprecatedShortPaginatedParamParts, EventDimensionsExcludeFilterParamParts, EventDimensionsFilterParamParts, EventDimensionsHideEventsFilterParamParts, EventDimensionsParamParts, EventMetricsFilterParamParts, EventMetricsIntervalParamParts, EventMetricsParamParts, OrganizationParamParts, TimeRangeParamParts, TimeZoneParamParts } from '../CommonParamParts';
|
|
2
|
+
export interface MetricsSortParamParts {
|
|
3
|
+
/**
|
|
4
|
+
* The field to order the results by.
|
|
5
|
+
* It must be a dimension, metric or custom dimension that was specified in the 'm' or the 'd' parameter.
|
|
6
|
+
*/
|
|
7
|
+
s?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to sort by ascending order.
|
|
10
|
+
*/
|
|
11
|
+
asc?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface MetadataParamParts {
|
|
14
|
+
/**
|
|
15
|
+
* Whether to include metadata regarding the results (total count and unique counts, if applicable).
|
|
16
|
+
*/
|
|
17
|
+
includeMetadata?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface BindOnLastSearchParamPart {
|
|
20
|
+
bindOnLastSearch?: boolean;
|
|
21
|
+
}
|
|
1
22
|
export interface ServiceStatus {
|
|
2
23
|
status: string;
|
|
3
24
|
}
|
|
@@ -9,16 +30,22 @@ export interface MetricStats {
|
|
|
9
30
|
total: number;
|
|
10
31
|
peak: number;
|
|
11
32
|
}
|
|
12
|
-
export interface IncoherentEventsOptions {
|
|
13
|
-
|
|
14
|
-
|
|
33
|
+
export interface IncoherentEventsOptions extends OrganizationParamParts, TimeRangeParamParts, DeprecatedShortPaginatedParamParts, Pick<MetricsSortParamParts, 'asc'>, MetadataParamParts {
|
|
34
|
+
/**
|
|
35
|
+
* The error codes to fetch.
|
|
36
|
+
* Example values are:
|
|
37
|
+
* 'DUPLICATE_SEARCH_ID',
|
|
38
|
+
* 'DUPLICATE_CLICK_ID',
|
|
39
|
+
* 'DUPLICATE_CUSTOM_EVENT_ID',
|
|
40
|
+
* 'DUPLICATE_VIEW_EVENT_ID',
|
|
41
|
+
* 'CLICK_WITHOUT_ASSOCIATED_SEARCH',
|
|
42
|
+
* 'STRICT_VALIDATION_FAILURE'.
|
|
43
|
+
*/
|
|
15
44
|
errorCodes?: string[];
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
includeMetadata?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether to include the incoherent events that have already been seen.
|
|
47
|
+
*/
|
|
20
48
|
seen?: boolean;
|
|
21
|
-
org: string;
|
|
22
49
|
}
|
|
23
50
|
export interface IncoherentEventModel {
|
|
24
51
|
errorCode: string;
|
|
@@ -35,16 +62,13 @@ export interface MetricsModel {
|
|
|
35
62
|
lastUpdated: number;
|
|
36
63
|
cached: boolean;
|
|
37
64
|
}
|
|
38
|
-
export interface GlobalDataOptions {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
65
|
+
export interface GlobalDataOptions extends OrganizationParamParts, EventMetricsParamParts, EventMetricsIntervalParamParts, TimeRangeParamParts, TimeZoneParamParts, EventDimensionsFilterParamParts, BindOnLastSearchParamPart {
|
|
66
|
+
/**
|
|
67
|
+
* The dimensions to fetch.
|
|
68
|
+
* Required when the Activity metric is requested, as it has to be based on a dimension.
|
|
69
|
+
*/
|
|
43
70
|
d?: string[];
|
|
44
|
-
f?: string[];
|
|
45
|
-
i?: string;
|
|
46
71
|
bindOnLastSearch?: boolean;
|
|
47
|
-
org: string;
|
|
48
72
|
}
|
|
49
73
|
export interface TrendsModel {
|
|
50
74
|
combinations: Array<Record<string, any>>;
|
|
@@ -53,35 +77,31 @@ export interface TrendsModel {
|
|
|
53
77
|
lastUpdated: number;
|
|
54
78
|
cached: boolean;
|
|
55
79
|
}
|
|
56
|
-
export interface TrendsOptions {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
80
|
+
export interface TrendsOptions extends OrganizationParamParts, TimeRangeParamParts, TimeZoneParamParts, EventMetricsParamParts, EventMetricsFilterParamParts, EventDimensionsParamParts, EventDimensionsFilterParamParts, DeprecatedShortPaginatedParamParts, MetricsSortParamParts, MetadataParamParts, BindOnLastSearchParamPart {
|
|
81
|
+
/**
|
|
82
|
+
* The trends to caculate.
|
|
83
|
+
*/
|
|
84
|
+
t: string[];
|
|
85
|
+
/**
|
|
86
|
+
* The beginning date of the previous date range, when reporting trends.
|
|
87
|
+
* If not specified, it will be the 'from' date minus the duration of the 'from'-'to' date range.
|
|
88
|
+
* The date/time should include an offset, or `Z` for UTC.
|
|
89
|
+
* Format: `YYYY-MM-DDThh:mm:ss.sssZ`.
|
|
90
|
+
*/
|
|
60
91
|
previousFrom?: string;
|
|
92
|
+
/**
|
|
93
|
+
* The end date of the previous date range, when reporting trends.
|
|
94
|
+
* If not specified, it will be the 'to' date minus the duration of the 'from'-'to' date range.
|
|
95
|
+
* The date/time should include an offset, or `Z` for UTC.
|
|
96
|
+
* Format: `YYYY-MM-DDThh:mm:ss.sssZ`.
|
|
97
|
+
*/
|
|
61
98
|
previousTo?: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
fm?: string[];
|
|
66
|
-
s?: string;
|
|
67
|
-
p?: number;
|
|
68
|
-
n?: number;
|
|
69
|
-
asc?: boolean;
|
|
70
|
-
includeMetadata?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* The format of the response. Default is JSON.
|
|
101
|
+
*/
|
|
71
102
|
format?: string;
|
|
72
|
-
bindOnLastSearch?: boolean;
|
|
73
|
-
t: string[];
|
|
74
|
-
org: string;
|
|
75
103
|
}
|
|
76
|
-
export interface VisitsMetricsOptions {
|
|
77
|
-
m: string[];
|
|
78
|
-
from: string;
|
|
79
|
-
to: string;
|
|
80
|
-
tz?: string;
|
|
81
|
-
f?: string[];
|
|
82
|
-
hideEventFilters?: string[];
|
|
83
|
-
fn?: string[];
|
|
84
|
-
org: string;
|
|
104
|
+
export interface VisitsMetricsOptions extends OrganizationParamParts, TimeRangeParamParts, TimeZoneParamParts, EventMetricsParamParts, EventDimensionsFilterParamParts, EventDimensionsHideEventsFilterParamParts, EventMetricsFilterParamParts {
|
|
85
105
|
}
|
|
86
106
|
export interface VisitMetricStats {
|
|
87
107
|
sum: number;
|
|
@@ -89,33 +109,16 @@ export interface VisitMetricStats {
|
|
|
89
109
|
min: number;
|
|
90
110
|
max: number;
|
|
91
111
|
}
|
|
92
|
-
export interface VisitsGraphDataPointsOptions {
|
|
93
|
-
m: string[];
|
|
94
|
-
from: string;
|
|
95
|
-
to: string;
|
|
96
|
-
tz?: string;
|
|
97
|
-
f?: string[];
|
|
98
|
-
hideEventFilters?: string[];
|
|
99
|
-
fn?: string[];
|
|
100
|
-
i?: string;
|
|
101
|
-
org: string;
|
|
112
|
+
export interface VisitsGraphDataPointsOptions extends OrganizationParamParts, TimeRangeParamParts, TimeZoneParamParts, EventMetricsParamParts, EventMetricsIntervalParamParts, EventDimensionsFilterParamParts, EventDimensionsExcludeFilterParamParts, EventDimensionsHideEventsFilterParamParts {
|
|
102
113
|
}
|
|
103
|
-
export interface
|
|
104
|
-
org: string;
|
|
114
|
+
export interface CancelQueryOptions extends OrganizationParamParts {
|
|
105
115
|
}
|
|
116
|
+
export type DeleteQueryOptions = CancelQueryOptions;
|
|
106
117
|
export interface DataPointModel {
|
|
107
118
|
dateTime: number;
|
|
108
119
|
datas: Record<string, number>;
|
|
109
120
|
}
|
|
110
|
-
export interface GraphDataPointsOptions {
|
|
111
|
-
m: string[];
|
|
112
|
-
from: string;
|
|
113
|
-
to: string;
|
|
114
|
-
tz?: string;
|
|
115
|
-
f?: string[];
|
|
116
|
-
i?: string[];
|
|
117
|
-
bindOnLastSearch?: boolean;
|
|
118
|
-
org: string;
|
|
121
|
+
export interface GraphDataPointsOptions extends OrganizationParamParts, TimeRangeParamParts, TimeZoneParamParts, EventMetricsParamParts, EventMetricsIntervalParamParts, EventDimensionsFilterParamParts, BindOnLastSearchParamPart {
|
|
119
122
|
}
|
|
120
123
|
export interface GraphDataPointsModel {
|
|
121
124
|
dataPoints: DataPointModel[];
|
|
@@ -124,22 +127,11 @@ export interface GraphDataPointsModel {
|
|
|
124
127
|
lastUpdated: string;
|
|
125
128
|
cached: boolean;
|
|
126
129
|
}
|
|
127
|
-
export interface CombinedDataOptions {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
tz?: string;
|
|
132
|
-
d: string[];
|
|
133
|
-
f?: string[];
|
|
134
|
-
fm?: string[];
|
|
135
|
-
s?: string;
|
|
136
|
-
p?: number;
|
|
137
|
-
n?: number;
|
|
138
|
-
asc?: boolean;
|
|
139
|
-
includeMetadata?: boolean;
|
|
130
|
+
export interface CombinedDataOptions extends OrganizationParamParts, TimeRangeParamParts, TimeZoneParamParts, EventMetricsParamParts, EventMetricsFilterParamParts, EventDimensionsParamParts, EventDimensionsFilterParamParts, DeprecatedShortPaginatedParamParts, MetricsSortParamParts, MetadataParamParts, BindOnLastSearchParamPart {
|
|
131
|
+
/**
|
|
132
|
+
* The format of the response. Default is 'JSON'.
|
|
133
|
+
*/
|
|
140
134
|
format?: boolean;
|
|
141
|
-
bindOnLastSearch?: boolean;
|
|
142
|
-
org: string;
|
|
143
135
|
}
|
|
144
136
|
export interface CombinedDataModel {
|
|
145
137
|
combinations: Array<Record<string, any>>;
|
|
@@ -157,20 +149,7 @@ export interface TopQueries {
|
|
|
157
149
|
export interface MonitoringHealthModel {
|
|
158
150
|
status: string;
|
|
159
151
|
}
|
|
160
|
-
export interface VisitsStatisticsOptions {
|
|
161
|
-
from: string;
|
|
162
|
-
to: string;
|
|
163
|
-
tz?: string;
|
|
164
|
-
d?: string[];
|
|
165
|
-
f?: string[];
|
|
166
|
-
hideEventFilters?: string[];
|
|
167
|
-
fn?: string[];
|
|
168
|
-
s?: string;
|
|
169
|
-
p?: number;
|
|
170
|
-
n?: number;
|
|
171
|
-
asc?: boolean;
|
|
172
|
-
includeMetadata?: boolean;
|
|
173
|
-
org: string;
|
|
152
|
+
export interface VisitsStatisticsOptions extends OrganizationParamParts, TimeRangeParamParts, TimeZoneParamParts, Partial<EventDimensionsParamParts>, EventDimensionsFilterParamParts, EventDimensionsExcludeFilterParamParts, EventDimensionsHideEventsFilterParamParts, DeprecatedShortPaginatedParamParts, MetricsSortParamParts, MetadataParamParts {
|
|
174
153
|
}
|
|
175
154
|
export interface VisitStatisticsModel {
|
|
176
155
|
visitId: string;
|
|
@@ -181,6 +160,5 @@ export interface VisitsStatisticsModel {
|
|
|
181
160
|
visits: VisitStatisticsModel[];
|
|
182
161
|
totalNumberOfVisits: number;
|
|
183
162
|
}
|
|
184
|
-
export interface VisitViewOptions {
|
|
185
|
-
org: string;
|
|
163
|
+
export interface VisitViewOptions extends OrganizationParamParts {
|
|
186
164
|
}
|
|
@@ -1,12 +1,43 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReadServiceResource from '../ReadServiceResource';
|
|
2
2
|
import { FilterParams, UsersFiltersModel, ListUsersFiltersParams, ListUsersReportsParams, UsersReportsModel, UserModel, UsersStatusModel } from './UsersInterfaces';
|
|
3
|
-
export default class Users extends
|
|
3
|
+
export default class Users extends ReadServiceResource {
|
|
4
4
|
static baseUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* Get the data level filters that apply to a user.
|
|
7
|
+
*
|
|
8
|
+
* @param userId The unique identifier of a user.
|
|
9
|
+
*/
|
|
5
10
|
listUserFilters(userId: string, params?: ListUsersFiltersParams): Promise<UsersFiltersModel>;
|
|
11
|
+
/**
|
|
12
|
+
* Set the filters that will be applied to a user query.
|
|
13
|
+
*
|
|
14
|
+
* @param userId The unique identifier of a user.
|
|
15
|
+
*/
|
|
6
16
|
updateUserFilters(userId: string, filters: FilterParams[]): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Get the reports that a user can access.
|
|
19
|
+
*
|
|
20
|
+
* @param userId The unique identifier of a user.
|
|
21
|
+
*/
|
|
7
22
|
listUsersReports(userId: string, params?: ListUsersReportsParams): Promise<UsersReportsModel>;
|
|
23
|
+
/**
|
|
24
|
+
* Set which reports a user can access.
|
|
25
|
+
*
|
|
26
|
+
* @param userId The unique identifier of a user.
|
|
27
|
+
*/
|
|
8
28
|
updateUsersReports(userId: string, reportsIDs: string[]): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Health check for the users service.
|
|
31
|
+
*/
|
|
9
32
|
getUsersServiceHealth(): Promise<UsersStatusModel>;
|
|
33
|
+
/**
|
|
34
|
+
* Get the users service status.
|
|
35
|
+
*/
|
|
10
36
|
getUsersServiceStatus(): Promise<UsersStatusModel>;
|
|
37
|
+
/**
|
|
38
|
+
* Get a user.
|
|
39
|
+
*
|
|
40
|
+
* @param userId The unique identifier of a user.
|
|
41
|
+
*/
|
|
11
42
|
getUser(userId: string): Promise<UserModel>;
|
|
12
43
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OrganizationParamParts } from '../CommonParamParts';
|
|
1
2
|
export interface UsersFilterModel {
|
|
2
3
|
/**
|
|
3
4
|
* The filter id
|
|
@@ -86,11 +87,7 @@ export interface UserModel {
|
|
|
86
87
|
*/
|
|
87
88
|
reports: string[];
|
|
88
89
|
}
|
|
89
|
-
export interface ListUsersFiltersParams {
|
|
90
|
-
/**
|
|
91
|
-
* The org id
|
|
92
|
-
*/
|
|
93
|
-
org: string;
|
|
90
|
+
export interface ListUsersFiltersParams extends OrganizationParamParts {
|
|
94
91
|
/**
|
|
95
92
|
* Whether to include th values inherited from a user's groups in the response
|
|
96
93
|
*/
|
|
@@ -98,16 +95,21 @@ export interface ListUsersFiltersParams {
|
|
|
98
95
|
}
|
|
99
96
|
export interface FilterParams {
|
|
100
97
|
/**
|
|
101
|
-
* The value of the filter
|
|
98
|
+
* The id or value of the filter.
|
|
102
99
|
*/
|
|
103
100
|
value: string;
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
102
|
+
* Whether the value is a persisted filter ID (`true`) or a filter value (`false`).
|
|
106
103
|
*/
|
|
107
104
|
id: boolean;
|
|
108
105
|
}
|
|
109
|
-
export interface ListUsersReportsParams {
|
|
110
|
-
|
|
106
|
+
export interface ListUsersReportsParams extends OrganizationParamParts {
|
|
107
|
+
/**
|
|
108
|
+
* Whether to include the detailed configuration of the report in the response.
|
|
109
|
+
*/
|
|
111
110
|
includeConfig?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Whether to include the values inherited from a user's groups in the response.
|
|
113
|
+
*/
|
|
112
114
|
includeGroups?: boolean;
|
|
113
115
|
}
|
|
@@ -11,13 +11,13 @@ import Statistics from './Read/Statistics/Statistics';
|
|
|
11
11
|
export default class UsageAnalytics extends Resource {
|
|
12
12
|
protected api: API;
|
|
13
13
|
protected serverlessApi: API;
|
|
14
|
-
|
|
14
|
+
administration: Administration;
|
|
15
|
+
dataShare: DataShare;
|
|
15
16
|
dimensions: Dimensions;
|
|
16
17
|
exports: Exports;
|
|
17
|
-
administration: Administration;
|
|
18
|
-
snowflake: Snowflake;
|
|
19
|
-
reports: Reports;
|
|
20
18
|
filters: Filters;
|
|
21
|
-
|
|
19
|
+
reports: Reports;
|
|
20
|
+
snowflake: Snowflake;
|
|
21
|
+
statistics: Statistics;
|
|
22
22
|
constructor(api: API, serverlessApi: API);
|
|
23
23
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Paginated } from '../resources';
|
|
2
2
|
import { DeprecatedPaginated } from '../resources/InternalBaseInterface';
|
|
3
|
-
export declare const normalizePaginatedOptions: (options: Paginated | DeprecatedPaginated) => DeprecatedPaginated;
|
|
3
|
+
export declare const normalizePaginatedOptions: (options: Paginated | DeprecatedPaginated | undefined) => DeprecatedPaginated;
|
|
@@ -16,12 +16,12 @@ var Activity = /** @class */ (function (_super) {
|
|
|
16
16
|
};
|
|
17
17
|
Activity.prototype.list = function (params, activityFacet) {
|
|
18
18
|
var _a;
|
|
19
|
-
var isPublic = !((_a = activityFacet.sections) === null || _a === void 0 ? void 0 : _a.includes('INTERNAL'));
|
|
19
|
+
var isPublic = !Boolean((_a = activityFacet === null || activityFacet === void 0 ? void 0 : activityFacet.sections) === null || _a === void 0 ? void 0 : _a.includes('INTERNAL'));
|
|
20
20
|
return this.api.post(this.buildPath(isPublic ? "".concat(Activity.getBaseUrl(), "/public") : Activity.getBaseUrl(), params), activityFacet);
|
|
21
21
|
};
|
|
22
22
|
Activity.prototype.listFacets = function (params, activityFacet) {
|
|
23
23
|
var _a;
|
|
24
|
-
var isPublic = !((_a = activityFacet.sections) === null || _a === void 0 ? void 0 : _a.includes('INTERNAL'));
|
|
24
|
+
var isPublic = !Boolean((_a = activityFacet === null || activityFacet === void 0 ? void 0 : activityFacet.sections) === null || _a === void 0 ? void 0 : _a.includes('INTERNAL'));
|
|
25
25
|
return this.api.post(this.buildPath(isPublic ? "".concat(Activity.getBaseUrl(), "/facets/public") : "".concat(Activity.getBaseUrl(), "/facets"), params), activityFacet);
|
|
26
26
|
};
|
|
27
27
|
Activity.prototype.listAll = function (params, activityFacet) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Activities.js","sourceRoot":"","sources":["../../../src/resources/Activities/Activities.ts"],"names":[],"mappings":";;;AAAA,kEAAgC;AAEhC,iEAAmC;AASnC;IAAsC,oCAAQ;IAA9C;;IAwCA,CAAC;IApCG,sBAAG,GAAH,UAAI,UAAkB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAgB,UAAG,QAAQ,CAAC,UAAU,EAAE,cAAI,UAAU,CAAE,CAAC,CAAC;IACjF,CAAC;IACD,mCAAgB,GAAhB;QACI,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAW,UAAG,QAAQ,CAAC,UAAU,EAAE,mBAAgB,CAAC,CAAC;IAC5E,CAAC;IAED,uBAAI,GAAJ,UAAK,MAA6B,EAAE,aAAsC;;QACtE,IAAM,QAAQ,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"Activities.js","sourceRoot":"","sources":["../../../src/resources/Activities/Activities.ts"],"names":[],"mappings":";;;AAAA,kEAAgC;AAEhC,iEAAmC;AASnC;IAAsC,oCAAQ;IAA9C;;IAwCA,CAAC;IApCG,sBAAG,GAAH,UAAI,UAAkB;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAgB,UAAG,QAAQ,CAAC,UAAU,EAAE,cAAI,UAAU,CAAE,CAAC,CAAC;IACjF,CAAC;IACD,mCAAgB,GAAhB;QACI,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAW,UAAG,QAAQ,CAAC,UAAU,EAAE,mBAAgB,CAAC,CAAC;IAC5E,CAAC;IAED,uBAAI,GAAJ,UAAK,MAA6B,EAAE,aAAsC;;QACtE,IAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,0CAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;QACzE,OAAO,IAAI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CoB,QAAQ"}
|
|
@@ -7,22 +7,54 @@ var Condition = /** @class */ (function (_super) {
|
|
|
7
7
|
function Condition() {
|
|
8
8
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Returns a paginated list of condition models.
|
|
12
|
+
* @param {ListConditionsOptions} options
|
|
13
|
+
*/
|
|
10
14
|
Condition.prototype.list = function (options) {
|
|
11
15
|
if (options === void 0) { options = {}; }
|
|
12
16
|
return this.api.get(this.buildPath(Condition.baseUrl, tslib_1.__assign({ feature: 'when', organizationId: this.api.organizationId }, options)));
|
|
13
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Creates and returns a new condition model.
|
|
20
|
+
* @param {NewConditionModel} conditionModel
|
|
21
|
+
*/
|
|
14
22
|
Condition.prototype.create = function (conditionModel) {
|
|
15
23
|
return this.api.post(this.buildPath(Condition.baseUrl, { organizationId: this.api.organizationId }), conditionModel);
|
|
16
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Delete a condition model.
|
|
27
|
+
* @param {string} conditionId The unique identifier of the condition to be deleted.
|
|
28
|
+
*/
|
|
17
29
|
Condition.prototype.delete = function (conditionId) {
|
|
18
30
|
return this.api.delete(this.buildPath("".concat(Condition.baseUrl, "/").concat(conditionId), { organizationId: this.api.organizationId }));
|
|
19
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Returns a condition model.
|
|
34
|
+
* @param {string} conditionId The unique identifier of the condition to be fetched.
|
|
35
|
+
*/
|
|
20
36
|
Condition.prototype.get = function (conditionId) {
|
|
21
37
|
return this.api.get(this.buildPath("".concat(Condition.baseUrl, "/").concat(conditionId), { organizationId: this.api.organizationId }));
|
|
22
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Update a condition model with the model sent and returns the updated condition model.
|
|
41
|
+
* @param {string} conditionId The unique identifier of the condition to be updated.
|
|
42
|
+
* @param {ConditionModel | NewConditionModel} conditionModel
|
|
43
|
+
*/
|
|
23
44
|
Condition.prototype.update = function (conditionId, conditionModel) {
|
|
24
45
|
return this.api.put(this.buildPath("".concat(Condition.baseUrl, "/").concat(conditionId), { organizationId: this.api.organizationId }), conditionModel);
|
|
25
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Bulk get a list of conditions corresponding of the ids sent.
|
|
49
|
+
* @param {string[]} conditionIds The list of condition's ids to be fetched. Limit of 1000 incoming ids.
|
|
50
|
+
* @param {ListConditionsOptions} params
|
|
51
|
+
*/
|
|
52
|
+
Condition.prototype.bulkGet = function (conditionIds, params) {
|
|
53
|
+
if (params === void 0) { params = {}; }
|
|
54
|
+
return this.api.post(this.buildPath("".concat(Condition.baseUrl, "/bulkGet"), tslib_1.__assign({ organizationId: this.api.organizationId }, params)), {
|
|
55
|
+
ids: conditionIds,
|
|
56
|
+
});
|
|
57
|
+
};
|
|
26
58
|
Condition.baseUrl = "/rest/search/v1/admin/pipelines/statements";
|
|
27
59
|
return Condition;
|
|
28
60
|
}(Resource_1.default));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Condition.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/Conditions/Condition.ts"],"names":[],"mappings":";;;AACA,oEAAsC;AAGtC;IAAuC,qCAAQ;IAA/C;;
|
|
1
|
+
{"version":3,"file":"Condition.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/Conditions/Condition.ts"],"names":[],"mappings":";;;AACA,oEAAsC;AAGtC;IAAuC,qCAAQ;IAA/C;;IAyEA,CAAC;IAtEG;;;OAGG;IACH,wBAAI,GAAJ,UAAK,OAAmC;QAAnC,wBAAA,EAAA,YAAmC;QACpC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,qBAAG,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,IAAK,OAAO,EAAE,CAC5G,CAAC;IACN,CAAC;IAED;;;OAGG;IACH,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pC,MAAM,EACX,EACF;YACI,GAAG,EAAE,YAAY;SACpB,CACJ,CAAC;IACN,CAAC;IAvEM,iBAAO,GAAG,4CAA4C,CAAC;IAwElE,gBAAC;CAAA,AAzED,CAAuC,kBAAQ,GAyE9C;kBAzEoB,SAAS"}
|
|
@@ -39,6 +39,10 @@ var MLAssociations = /** @class */ (function (_super) {
|
|
|
39
39
|
organizationId: this.api.organizationId,
|
|
40
40
|
}));
|
|
41
41
|
};
|
|
42
|
+
MLAssociations.prototype.bulkGet = function (pipelineId, _a) {
|
|
43
|
+
var ids = _a.ids, allQueryStringOptions = tslib_1.__rest(_a, ["ids"]);
|
|
44
|
+
return this.api.post(this.buildPath("".concat(MLAssociations.getBaseUrl(pipelineId), "/bulkGet"), tslib_1.__assign({ organizationId: this.api.organizationId }, allQueryStringOptions)), { ids: ids });
|
|
45
|
+
};
|
|
42
46
|
MLAssociations.getBaseUrl = function (pipelineId) { return "/rest/search/v2/admin/pipelines/".concat(pipelineId, "/ml/model/associations"); };
|
|
43
47
|
return MLAssociations;
|
|
44
48
|
}(Resource_1.default));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MLAssociations.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/MLAssociations/MLAssociations.ts"],"names":[],"mappings":";;;AACA,oEAAsC;
|
|
1
|
+
{"version":3,"file":"MLAssociations.js","sourceRoot":"","sources":["../../../../src/resources/Pipelines/MLAssociations/MLAssociations.ts"],"names":[],"mappings":";;;AACA,oEAAsC;AAUtC;IAA4C,0CAAQ;IAApD;;IAoEA,CAAC;IAjEG,6BAAI,GAAJ,UAAK,UAAkB,EAAE,OAAgC;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,qBAAG,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,IAAK,OAAO,EAAE,CAC/G,CAAC;IACN,CAAC;IAED,k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AU,CAAC,cAAI,aAAa,cAAW,EAAE;YACjF,QAAQ,UAAA;YACR,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,EACF,EAAE,CACL,CAAC;IACN,CAAC;IAED,+CAAsB,GAAtB;QACI,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,SAAS,CAAC,uDAAuD,EAAE;YACpE,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SAC1C,CAAC,CACL,CAAC;IACN,CAAC;IAED,gCAAO,GAAP,UAAQ,UAAkB,EAAE,EAA0D;QAAzD,IAAA,GAAG,SAAA,EAAK,qBAAqB,sBAA9B,OAA+B,CAAD;QACtD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,SAAS,CAAC,UAAG,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,aAAU,qBAC7D,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,IACpC,qBAAqB,EAC1B,EACF,EAAC,GAAG,KAAA,EAAC,CACR,CAAC;IACN,CAAC;IAlEM,yBAAU,GAAG,UAAC,UAAkB,IAAK,OAAA,0CAAmC,UAAU,2BAAwB,EAArE,CAAqE,CAAC;IAmEtH,qBAAC;CAAA,AApED,CAA4C,kBAAQ,GAoEnD;kBApEoB,cAAc"}
|
|
@@ -60,7 +60,7 @@ var ResourceSnapshots = /** @class */ (function (_super) {
|
|
|
60
60
|
*/
|
|
61
61
|
ResourceSnapshots.prototype.createFromFile = function (file, options) {
|
|
62
62
|
var computedOptions = {
|
|
63
|
-
developerNotes: options.developerNotes,
|
|
63
|
+
developerNotes: options === null || options === void 0 ? void 0 : options.developerNotes,
|
|
64
64
|
snapshotFileType: this.getSnapshotFileType(file),
|
|
65
65
|
};
|
|
66
66
|
var form = new FormData();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceSnapshots.js","sourceRoot":"","sources":["../../../src/resources/ResourceSnapsh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AC,CACL,CAAC;IACN,CAAC;IA3KM,yBAAO,GAAG,8BAAuB,iBAAG,CAAC,cAAc,eAAY,CAAC;IA4K3E,wBAAC;CAAA,AA7KD,CAA+C,kBAAQ,GA6KtD;kBA7KoB,iBAAiB"}
|
|
@@ -1,26 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
-
var
|
|
4
|
+
var ReadServiceResource_1 = tslib_1.__importDefault(require("../ReadServiceResource"));
|
|
5
5
|
var Administration = /** @class */ (function (_super) {
|
|
6
6
|
tslib_1.__extends(Administration, _super);
|
|
7
7
|
function Administration() {
|
|
8
8
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Get an account.
|
|
12
|
+
*/
|
|
10
13
|
Administration.prototype.getAccount = function () {
|
|
11
|
-
return this.api.get(this.
|
|
14
|
+
return this.api.get(this.buildPathWithOrg("".concat(Administration.baseUrl, "/account")));
|
|
12
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Edit an account.
|
|
18
|
+
*
|
|
19
|
+
* @param model The account information.
|
|
20
|
+
*/
|
|
13
21
|
Administration.prototype.updateAccount = function (model) {
|
|
14
|
-
return this.api.put(this.
|
|
22
|
+
return this.api.put(this.buildPathWithOrg("".concat(Administration.baseUrl, "/account")), model);
|
|
15
23
|
};
|
|
16
24
|
Administration.prototype.setRedshiftStatus = function (endpoint, status) {
|
|
17
25
|
return this.api.post(this.buildPath("".concat(Administration.baseUrl, "/redshift/endpoint/status"), { endpointId: endpoint, status: status }));
|
|
18
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Get example values that would be rejected by strict validation for the specified dimension.
|
|
29
|
+
*/
|
|
19
30
|
Administration.prototype.getStrictValidationTest = function (params) {
|
|
20
|
-
return this.api.get(this.
|
|
31
|
+
return this.api.get(this.buildPathWithOrg("".concat(Administration.baseUrl, "/account/strictValidationTest"), params));
|
|
21
32
|
};
|
|
22
33
|
Administration.baseUrl = '/rest/ua/v15/admin';
|
|
23
34
|
return Administration;
|
|
24
|
-
}(
|
|
35
|
+
}(ReadServiceResource_1.default));
|
|
25
36
|
exports.default = Administration;
|
|
26
37
|
//# sourceMappingURL=Administration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Administration.js","sourceRoot":"","sources":["../../../../../src/resources/UsageAnalytics/Read/Administration/Administration.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"Administration.js","sourceRoot":"","sources":["../../../../../src/resources/UsageAnalytics/Read/Administration/Administration.ts"],"names":[],"mappings":";;;AACA,uFAAyD;AAQzD;IAA4C,0CAAmB;IAA/D;;IAiCA,CAAC;IA9BG;;OAEG;IACH,mCAAU,GAAV;QACI,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAqB,IAAI,CAAC,gBAAgB,CAAC,UAAG,cAAc,CAAC,OAAO,aAAU,CAAC,CAAC,CAAC;IACxG,CAAC;IAED;;;;OAIG;IACH,sCAAa,GAAb,UAAc,KAA0B;QACpC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAqB,IAAI,CAAC,gBAAgB,CAAC,UAAG,cAAc,CAAC,OAAO,aAAU,CAAC,EAAE,KAAK,CAAC,CAAC;IAC/G,CAAC;IAED,0CAAiB,GAAjB,UAAkB,QAAgB,EAAE,MAA8B;QAC9D,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,SAAS,CAAC,UAAG,cAAc,CAAC,OAAO,8BAA2B,EAAE,EAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAA,EAAC,CAAC,CACvG,CAAC;IACN,CAAC;IAED;;OAEG;IACH,gDAAuB,GAAvB,UAAwB,MAAkC;QACtD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,UAAG,cAAc,CAAC,OAAO,kCAA+B,EAAE,MAAM,CAAC,CAC1F,CAAC;IACN,CAAC;IA/BM,sBAAO,GAAG,oBAAoB,CAAC;IAgC1C,qBAAC;CAAA,AAjCD,CAA4C,6BAAmB,GAiC9D;kBAjCoB,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommonParamParts.js","sourceRoot":"","sources":["../../../../src/resources/UsageAnalytics/Read/CommonParamParts.ts"],"names":[],"mappings":""}
|