|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * Bitly API |
| 5 | + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 6 | + * |
| 7 | + * The version of the OpenAPI document: 4.0.0 |
| 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 { mapValues } from '../runtime'; |
| 16 | +import type { GetGroupLinkClicksByDevice200ResponseMetricsInner } from './GetGroupLinkClicksByDevice200ResponseMetricsInner'; |
| 17 | +import { |
| 18 | + GetGroupLinkClicksByDevice200ResponseMetricsInnerFromJSON, |
| 19 | + GetGroupLinkClicksByDevice200ResponseMetricsInnerFromJSONTyped, |
| 20 | + GetGroupLinkClicksByDevice200ResponseMetricsInnerToJSON, |
| 21 | + GetGroupLinkClicksByDevice200ResponseMetricsInnerToJSONTyped, |
| 22 | +} from './GetGroupLinkClicksByDevice200ResponseMetricsInner'; |
| 23 | + |
| 24 | +/** |
| 25 | + * |
| 26 | + * @export |
| 27 | + * @interface GetGroupLinkClicksByDevice200Response |
| 28 | + */ |
| 29 | +export interface GetGroupLinkClicksByDevice200Response { |
| 30 | + /** |
| 31 | + * |
| 32 | + * @type {string} |
| 33 | + * @memberof GetGroupLinkClicksByDevice200Response |
| 34 | + */ |
| 35 | + unit?: string; |
| 36 | + /** |
| 37 | + * |
| 38 | + * @type {number} |
| 39 | + * @memberof GetGroupLinkClicksByDevice200Response |
| 40 | + */ |
| 41 | + units?: number; |
| 42 | + /** |
| 43 | + * |
| 44 | + * @type {string} |
| 45 | + * @memberof GetGroupLinkClicksByDevice200Response |
| 46 | + */ |
| 47 | + facet?: GetGroupLinkClicksByDevice200ResponseFacetEnum; |
| 48 | + /** |
| 49 | + * |
| 50 | + * @type {string} |
| 51 | + * @memberof GetGroupLinkClicksByDevice200Response |
| 52 | + */ |
| 53 | + unit_reference?: string; |
| 54 | + /** |
| 55 | + * |
| 56 | + * @type {Array<GetGroupLinkClicksByDevice200ResponseMetricsInner>} |
| 57 | + * @memberof GetGroupLinkClicksByDevice200Response |
| 58 | + */ |
| 59 | + metrics?: Array<GetGroupLinkClicksByDevice200ResponseMetricsInner>; |
| 60 | +} |
| 61 | + |
| 62 | +/** |
| 63 | +* @export |
| 64 | +* @enum {string} |
| 65 | +*/ |
| 66 | +export enum GetGroupLinkClicksByDevice200ResponseFacetEnum { |
| 67 | + countries = 'countries', |
| 68 | + cities = 'cities', |
| 69 | + devices = 'devices', |
| 70 | + referrers = 'referrers', |
| 71 | + referrers_by_domain = 'referrers_by_domain', |
| 72 | + referring_domains = 'referring_domains', |
| 73 | + referring_networks = 'referring_networks', |
| 74 | + shorten_counts = 'shorten_counts' |
| 75 | +} |
| 76 | + |
| 77 | + |
| 78 | +/** |
| 79 | + * Check if a given object implements the GetGroupLinkClicksByDevice200Response interface. |
| 80 | + */ |
| 81 | +export function instanceOfGetGroupLinkClicksByDevice200Response(value: object): value is GetGroupLinkClicksByDevice200Response { |
| 82 | + return true; |
| 83 | +} |
| 84 | + |
| 85 | +export function GetGroupLinkClicksByDevice200ResponseFromJSON(json: any): GetGroupLinkClicksByDevice200Response { |
| 86 | + return GetGroupLinkClicksByDevice200ResponseFromJSONTyped(json, false); |
| 87 | +} |
| 88 | + |
| 89 | +export function GetGroupLinkClicksByDevice200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetGroupLinkClicksByDevice200Response { |
| 90 | + if (json == null) { |
| 91 | + return json; |
| 92 | + } |
| 93 | + return { |
| 94 | + |
| 95 | + 'unit': json['unit'] == null ? undefined : json['unit'], |
| 96 | + 'units': json['units'] == null ? undefined : json['units'], |
| 97 | + 'facet': json['facet'] == null ? undefined : json['facet'], |
| 98 | + 'unit_reference': json['unit_reference'] == null ? undefined : json['unit_reference'], |
| 99 | + 'metrics': json['metrics'] == null ? undefined : ((json['metrics'] as Array<any>).map(GetGroupLinkClicksByDevice200ResponseMetricsInnerFromJSON)), |
| 100 | + }; |
| 101 | +} |
| 102 | + |
| 103 | +export function GetGroupLinkClicksByDevice200ResponseToJSON(json: any): GetGroupLinkClicksByDevice200Response { |
| 104 | + return GetGroupLinkClicksByDevice200ResponseToJSONTyped(json, false); |
| 105 | +} |
| 106 | + |
| 107 | +export function GetGroupLinkClicksByDevice200ResponseToJSONTyped(value?: GetGroupLinkClicksByDevice200Response | null, ignoreDiscriminator: boolean = false): any { |
| 108 | + if (value == null) { |
| 109 | + return value; |
| 110 | + } |
| 111 | + |
| 112 | + return { |
| 113 | + |
| 114 | + 'unit': value['unit'], |
| 115 | + 'units': value['units'], |
| 116 | + 'facet': value['facet'], |
| 117 | + 'unit_reference': value['unit_reference'], |
| 118 | + 'metrics': value['metrics'] == null ? undefined : ((value['metrics'] as Array<any>).map(GetGroupLinkClicksByDevice200ResponseMetricsInnerToJSON)), |
| 119 | + }; |
| 120 | +} |
| 121 | + |
0 commit comments