1 | import type { DefaultElements, MakeRequest, MetaLinkProps, MetaSysProps, QueryOptions } from '../common-types';
|
2 | export type UsageMetricEnum = 'cda' | 'cma' | 'cpa' | 'gql';
|
3 | export interface UsageQuery extends QueryOptions {
|
4 | 'metric[in]'?: string;
|
5 | 'dateRange.startAt'?: string;
|
6 | 'dateRange.endAt'?: string;
|
7 | }
|
8 | export type UsageProps = {
|
9 | |
10 |
|
11 |
|
12 | sys: MetaSysProps & {
|
13 | organization?: {
|
14 | sys: MetaLinkProps;
|
15 | };
|
16 | };
|
17 | |
18 |
|
19 |
|
20 | metric: UsageMetricEnum;
|
21 | |
22 |
|
23 |
|
24 | unitOfMeasure: string;
|
25 | |
26 |
|
27 |
|
28 | dateRange: {
|
29 | startAt: string;
|
30 | endAt: string;
|
31 | };
|
32 | |
33 |
|
34 |
|
35 | usage: number;
|
36 | |
37 |
|
38 |
|
39 | usagePerDay: {
|
40 | [key: string]: number;
|
41 | };
|
42 | };
|
43 | export interface Usage extends UsageProps, DefaultElements<UsageProps> {
|
44 | }
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | export declare function wrapUsage(_makeRequest: MakeRequest, data: UsageProps): Usage;
|
52 |
|
53 |
|
54 |
|
55 | export declare const wrapUsageCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<UsageProps>) => import("../common-types").Collection<Usage, UsageProps>;
|