Skip to content

Commit 6c6aed0

Browse files
author
GithubActions
committed
Update generated TypeScript client
1 parent 698ec06 commit 6c6aed0

12 files changed

+1286
-30
lines changed

src/apis/GroupsApi.ts

Lines changed: 1024 additions & 28 deletions
Large diffs are not rendered by default.

src/models/BitlinkBody.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ export interface BitlinkBody {
123123
* @memberof BitlinkBody
124124
*/
125125
campaign_ids?: Array<string>;
126+
/**
127+
* Coming soon
128+
* @type {string}
129+
* @memberof BitlinkBody
130+
*/
131+
expiration_at?: string;
126132
}
127133

128134
/**
@@ -158,6 +164,7 @@ export function BitlinkBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean
158164
'deeplinks': json['deeplinks'] == null ? undefined : ((json['deeplinks'] as Array<any>).map(DeeplinkRuleFromJSON)),
159165
'is_deleted': json['is_deleted'] == null ? undefined : json['is_deleted'],
160166
'campaign_ids': json['campaign_ids'] == null ? undefined : json['campaign_ids'],
167+
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
161168
};
162169
}
163170

@@ -188,6 +195,7 @@ export function BitlinkBodyToJSONTyped(value?: BitlinkBody | null, ignoreDiscrim
188195
'deeplinks': value['deeplinks'] == null ? undefined : ((value['deeplinks'] as Array<any>).map(DeeplinkRuleToJSON)),
189196
'is_deleted': value['is_deleted'],
190197
'campaign_ids': value['campaign_ids'],
198+
'expiration_at': value['expiration_at'],
191199
};
192200
}
193201

src/models/BitlinkUpdate.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ export interface BitlinkUpdate {
117117
* @memberof BitlinkUpdate
118118
*/
119119
campaign_ids?: Array<string>;
120+
/**
121+
* Coming soon
122+
* @type {string}
123+
* @memberof BitlinkUpdate
124+
*/
125+
expiration_at?: string;
120126
}
121127

122128
/**
@@ -151,6 +157,7 @@ export function BitlinkUpdateFromJSONTyped(json: any, ignoreDiscriminator: boole
151157
'deeplinks': json['deeplinks'] == null ? undefined : ((json['deeplinks'] as Array<any>).map(DeeplinkRuleFromJSON)),
152158
'is_deleted': json['is_deleted'] == null ? undefined : json['is_deleted'],
153159
'campaign_ids': json['campaign_ids'] == null ? undefined : json['campaign_ids'],
160+
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
154161
};
155162
}
156163

@@ -180,6 +187,7 @@ export function BitlinkUpdateToJSONTyped(value?: BitlinkUpdate | null, ignoreDis
180187
'deeplinks': value['deeplinks'] == null ? undefined : ((value['deeplinks'] as Array<any>).map(DeeplinkRuleToJSON)),
181188
'is_deleted': value['is_deleted'],
182189
'campaign_ids': value['campaign_ids'],
190+
'expiration_at': value['expiration_at'],
183191
};
184192
}
185193

src/models/BitlinkUpdateBody.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ export interface BitlinkUpdateBody {
5757
* @memberof BitlinkUpdateBody
5858
*/
5959
long_url?: string;
60+
/**
61+
* Coming soon
62+
* @type {string}
63+
* @memberof BitlinkUpdateBody
64+
*/
65+
expiration_at?: string;
6066
}
6167

6268
/**
@@ -81,6 +87,7 @@ export function BitlinkUpdateBodyFromJSONTyped(json: any, ignoreDiscriminator: b
8187
'tags': json['tags'] == null ? undefined : json['tags'],
8288
'deeplinks': json['deeplinks'] == null ? undefined : ((json['deeplinks'] as Array<any>).map(DeeplinkRuleFromJSON)),
8389
'long_url': json['long_url'] == null ? undefined : json['long_url'],
90+
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
8491
};
8592
}
8693

@@ -100,6 +107,7 @@ export function BitlinkUpdateBodyToJSONTyped(value?: BitlinkUpdateBody | null, i
100107
'tags': value['tags'],
101108
'deeplinks': value['deeplinks'] == null ? undefined : ((value['deeplinks'] as Array<any>).map(DeeplinkRuleToJSON)),
102109
'long_url': value['long_url'],
110+
'expiration_at': value['expiration_at'],
103111
};
104112
}
105113

src/models/FullShorten.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,23 @@ export interface FullShorten {
7070
*/
7171
force_new_link?: boolean;
7272
/**
73-
* Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword. Cannot use bit.ly domain.
73+
* Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword
7474
* @type {string}
7575
* @memberof FullShorten
7676
*/
7777
keyword?: string;
7878
/**
79-
* Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url. Cannot use bit.ly domain.
79+
* Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url
8080
* @type {string}
8181
* @memberof FullShorten
8282
*/
8383
bitlink_id?: string;
84+
/**
85+
* Coming soon
86+
* @type {string}
87+
* @memberof FullShorten
88+
*/
89+
expiration_at?: string;
8490
}
8591

8692
/**
@@ -109,6 +115,7 @@ export function FullShortenFromJSONTyped(json: any, ignoreDiscriminator: boolean
109115
'force_new_link': json['force_new_link'] == null ? undefined : json['force_new_link'],
110116
'keyword': json['keyword'] == null ? undefined : json['keyword'],
111117
'bitlink_id': json['bitlink_id'] == null ? undefined : json['bitlink_id'],
118+
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
112119
};
113120
}
114121

@@ -132,6 +139,7 @@ export function FullShortenToJSONTyped(value?: FullShorten | null, ignoreDiscrim
132139
'force_new_link': value['force_new_link'],
133140
'keyword': value['keyword'],
134141
'bitlink_id': value['bitlink_id'],
142+
'expiration_at': value['expiration_at'],
135143
};
136144
}
137145

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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+
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
/**
17+
*
18+
* @export
19+
* @interface GetGroupLinkClicksByDevice200ResponseMetricsInner
20+
*/
21+
export interface GetGroupLinkClicksByDevice200ResponseMetricsInner {
22+
/**
23+
*
24+
* @type {number}
25+
* @memberof GetGroupLinkClicksByDevice200ResponseMetricsInner
26+
*/
27+
clicks?: number;
28+
/**
29+
*
30+
* @type {string}
31+
* @memberof GetGroupLinkClicksByDevice200ResponseMetricsInner
32+
*/
33+
value?: string;
34+
}
35+
36+
/**
37+
* Check if a given object implements the GetGroupLinkClicksByDevice200ResponseMetricsInner interface.
38+
*/
39+
export function instanceOfGetGroupLinkClicksByDevice200ResponseMetricsInner(value: object): value is GetGroupLinkClicksByDevice200ResponseMetricsInner {
40+
return true;
41+
}
42+
43+
export function GetGroupLinkClicksByDevice200ResponseMetricsInnerFromJSON(json: any): GetGroupLinkClicksByDevice200ResponseMetricsInner {
44+
return GetGroupLinkClicksByDevice200ResponseMetricsInnerFromJSONTyped(json, false);
45+
}
46+
47+
export function GetGroupLinkClicksByDevice200ResponseMetricsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetGroupLinkClicksByDevice200ResponseMetricsInner {
48+
if (json == null) {
49+
return json;
50+
}
51+
return {
52+
53+
'clicks': json['clicks'] == null ? undefined : json['clicks'],
54+
'value': json['value'] == null ? undefined : json['value'],
55+
};
56+
}
57+
58+
export function GetGroupLinkClicksByDevice200ResponseMetricsInnerToJSON(json: any): GetGroupLinkClicksByDevice200ResponseMetricsInner {
59+
return GetGroupLinkClicksByDevice200ResponseMetricsInnerToJSONTyped(json, false);
60+
}
61+
62+
export function GetGroupLinkClicksByDevice200ResponseMetricsInnerToJSONTyped(value?: GetGroupLinkClicksByDevice200ResponseMetricsInner | null, ignoreDiscriminator: boolean = false): any {
63+
if (value == null) {
64+
return value;
65+
}
66+
67+
return {
68+
69+
'clicks': value['clicks'],
70+
'value': value['value'],
71+
};
72+
}
73+

src/models/PublicCreateQRCodeRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ export interface PublicCreateQRCodeRequest {
7777
* @memberof PublicCreateQRCodeRequest
7878
*/
7979
gs1?: GS1Metadata;
80+
/**
81+
* Coming soon
82+
* @type {string}
83+
* @memberof PublicCreateQRCodeRequest
84+
*/
85+
expiration_at?: string;
8086
}
8187

8288
/**
@@ -104,6 +110,7 @@ export function PublicCreateQRCodeRequestFromJSONTyped(json: any, ignoreDiscrimi
104110
'archived': json['archived'] == null ? undefined : json['archived'],
105111
'destination': QRCodeDestinationFromJSON(json['destination']),
106112
'gs1': json['gs1'] == null ? undefined : GS1MetadataFromJSON(json['gs1']),
113+
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
107114
};
108115
}
109116

@@ -124,6 +131,7 @@ export function PublicCreateQRCodeRequestToJSONTyped(value?: PublicCreateQRCodeR
124131
'archived': value['archived'],
125132
'destination': QRCodeDestinationToJSON(value['destination']),
126133
'gs1': GS1MetadataToJSON(value['gs1']),
134+
'expiration_at': value['expiration_at'],
127135
};
128136
}
129137

src/models/PublicUpdateQRCodeRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export interface PublicUpdateQRCodeRequest {
4545
* @memberof PublicUpdateQRCodeRequest
4646
*/
4747
archived?: boolean;
48+
/**
49+
* Coming soon
50+
* @type {string}
51+
* @memberof PublicUpdateQRCodeRequest
52+
*/
53+
expiration_at?: string;
4854
}
4955

5056
/**
@@ -67,6 +73,7 @@ export function PublicUpdateQRCodeRequestFromJSONTyped(json: any, ignoreDiscrimi
6773
'title': json['title'] == null ? undefined : json['title'],
6874
'render_customizations': json['render_customizations'] == null ? undefined : QRCodeCustomizationsPublicFromJSON(json['render_customizations']),
6975
'archived': json['archived'] == null ? undefined : json['archived'],
76+
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
7077
};
7178
}
7279

@@ -84,6 +91,7 @@ export function PublicUpdateQRCodeRequestToJSONTyped(value?: PublicUpdateQRCodeR
8491
'title': value['title'],
8592
'render_customizations': QRCodeCustomizationsPublicToJSON(value['render_customizations']),
8693
'archived': value['archived'],
94+
'expiration_at': value['expiration_at'],
8795
};
8896
}
8997

0 commit comments

Comments
 (0)