-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBitlinkUpdate.ts
More file actions
193 lines (182 loc) · 5.37 KB
/
Copy pathBitlinkUpdate.ts
File metadata and controls
193 lines (182 loc) · 5.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* tslint:disable */
/* eslint-disable */
/**
* Bitly API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { DeeplinkRule } from './DeeplinkRule';
import {
DeeplinkRuleFromJSON,
DeeplinkRuleFromJSONTyped,
DeeplinkRuleToJSON,
DeeplinkRuleToJSONTyped,
} from './DeeplinkRule';
/**
*
* @export
* @interface BitlinkUpdate
*/
export interface BitlinkUpdate {
/**
*
* @type {string}
* @memberof BitlinkUpdate
*/
link?: string;
/**
*
* @type {string}
* @memberof BitlinkUpdate
*/
id?: string;
/**
*
* @type {string}
* @memberof BitlinkUpdate
*/
long_url?: string;
/**
*
* @type {string}
* @memberof BitlinkUpdate
*/
title?: string;
/**
*
* @type {boolean}
* @memberof BitlinkUpdate
*/
archived?: boolean;
/**
*
* @type {string}
* @memberof BitlinkUpdate
*/
created_at?: string;
/**
*
* @type {string}
* @memberof BitlinkUpdate
*/
created_by?: string;
/**
*
* @type {string}
* @memberof BitlinkUpdate
*/
client_id?: string;
/**
* list of previously edited backhalfs for the bitlink - these are in reverse chronological order, with the most recently edited backhalf first
* @type {Array<string>}
* @memberof BitlinkUpdate
*/
custom_bitlinks?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof BitlinkUpdate
*/
tags?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof BitlinkUpdate
*/
launchpad_ids?: Array<string>;
/**
* a list of qr code ids that are associated with this bitlink
* @type {Array<string>}
* @memberof BitlinkUpdate
*/
qr_code_ids?: Array<string>;
/**
*
* @type {Array<DeeplinkRule>}
* @memberof BitlinkUpdate
*/
deeplinks?: Array<DeeplinkRule>;
/**
*
* @type {boolean}
* @memberof BitlinkUpdate
*/
is_deleted?: boolean;
/**
*
* @type {Array<string>}
* @memberof BitlinkUpdate
*/
campaign_ids?: Array<string>;
/**
* Coming soon
* @type {string}
* @memberof BitlinkUpdate
*/
expiration_at?: string;
}
/**
* Check if a given object implements the BitlinkUpdate interface.
*/
export function instanceOfBitlinkUpdate(value: object): value is BitlinkUpdate {
return true;
}
export function BitlinkUpdateFromJSON(json: any): BitlinkUpdate {
return BitlinkUpdateFromJSONTyped(json, false);
}
export function BitlinkUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BitlinkUpdate {
if (json == null) {
return json;
}
return {
'link': json['link'] == null ? undefined : json['link'],
'id': json['id'] == null ? undefined : json['id'],
'long_url': json['long_url'] == null ? undefined : json['long_url'],
'title': json['title'] == null ? undefined : json['title'],
'archived': json['archived'] == null ? undefined : json['archived'],
'created_at': json['created_at'] == null ? undefined : json['created_at'],
'created_by': json['created_by'] == null ? undefined : json['created_by'],
'client_id': json['client_id'] == null ? undefined : json['client_id'],
'custom_bitlinks': json['custom_bitlinks'] == null ? undefined : json['custom_bitlinks'],
'tags': json['tags'] == null ? undefined : json['tags'],
'launchpad_ids': json['launchpad_ids'] == null ? undefined : json['launchpad_ids'],
'qr_code_ids': json['qr_code_ids'] == null ? undefined : json['qr_code_ids'],
'deeplinks': json['deeplinks'] == null ? undefined : ((json['deeplinks'] as Array<any>).map(DeeplinkRuleFromJSON)),
'is_deleted': json['is_deleted'] == null ? undefined : json['is_deleted'],
'campaign_ids': json['campaign_ids'] == null ? undefined : json['campaign_ids'],
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
};
}
export function BitlinkUpdateToJSON(json: any): BitlinkUpdate {
return BitlinkUpdateToJSONTyped(json, false);
}
export function BitlinkUpdateToJSONTyped(value?: BitlinkUpdate | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'link': value['link'],
'id': value['id'],
'long_url': value['long_url'],
'title': value['title'],
'archived': value['archived'],
'created_at': value['created_at'],
'created_by': value['created_by'],
'client_id': value['client_id'],
'custom_bitlinks': value['custom_bitlinks'],
'tags': value['tags'],
'launchpad_ids': value['launchpad_ids'],
'qr_code_ids': value['qr_code_ids'],
'deeplinks': value['deeplinks'] == null ? undefined : ((value['deeplinks'] as Array<any>).map(DeeplinkRuleToJSON)),
'is_deleted': value['is_deleted'],
'campaign_ids': value['campaign_ids'],
'expiration_at': value['expiration_at'],
};
}