forked from intercom/intercom-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsyncUnstableClient.java
More file actions
288 lines (217 loc) · 11.8 KB
/
Copy pathAsyncUnstableClient.java
File metadata and controls
288 lines (217 loc) · 11.8 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.intercom.api.resources.unstable;
import com.intercom.api.core.ClientOptions;
import com.intercom.api.core.Suppliers;
import com.intercom.api.resources.unstable.admins.AsyncAdminsClient;
import com.intercom.api.resources.unstable.aicontent.AsyncAiContentClient;
import com.intercom.api.resources.unstable.articles.AsyncArticlesClient;
import com.intercom.api.resources.unstable.awaystatusreasons.AsyncAwayStatusReasonsClient;
import com.intercom.api.resources.unstable.brands.AsyncBrandsClient;
import com.intercom.api.resources.unstable.calls.AsyncCallsClient;
import com.intercom.api.resources.unstable.companies.AsyncCompaniesClient;
import com.intercom.api.resources.unstable.contacts.AsyncContactsClient;
import com.intercom.api.resources.unstable.conversations.AsyncConversationsClient;
import com.intercom.api.resources.unstable.customchannelevents.AsyncCustomChannelEventsClient;
import com.intercom.api.resources.unstable.customobjectinstances.AsyncCustomObjectInstancesClient;
import com.intercom.api.resources.unstable.dataattributes.AsyncDataAttributesClient;
import com.intercom.api.resources.unstable.dataevents.AsyncDataEventsClient;
import com.intercom.api.resources.unstable.dataexport.AsyncDataExportClient;
import com.intercom.api.resources.unstable.emails.AsyncEmailsClient;
import com.intercom.api.resources.unstable.export.AsyncExportClient;
import com.intercom.api.resources.unstable.helpcenter.AsyncHelpCenterClient;
import com.intercom.api.resources.unstable.internalarticles.AsyncInternalArticlesClient;
import com.intercom.api.resources.unstable.jobs.AsyncJobsClient;
import com.intercom.api.resources.unstable.macros.AsyncMacrosClient;
import com.intercom.api.resources.unstable.messages.AsyncMessagesClient;
import com.intercom.api.resources.unstable.news.AsyncNewsClient;
import com.intercom.api.resources.unstable.notes.AsyncNotesClient;
import com.intercom.api.resources.unstable.segments.AsyncSegmentsClient;
import com.intercom.api.resources.unstable.subscriptiontypes.AsyncSubscriptionTypesClient;
import com.intercom.api.resources.unstable.switch_.AsyncSwitchClient;
import com.intercom.api.resources.unstable.tags.AsyncTagsClient;
import com.intercom.api.resources.unstable.teams.AsyncTeamsClient;
import com.intercom.api.resources.unstable.tickets.AsyncTicketsClient;
import com.intercom.api.resources.unstable.ticketstates.AsyncTicketStatesClient;
import com.intercom.api.resources.unstable.tickettypeattributes.AsyncTicketTypeAttributesClient;
import com.intercom.api.resources.unstable.tickettypes.AsyncTicketTypesClient;
import com.intercom.api.resources.unstable.visitors.AsyncVisitorsClient;
import com.intercom.api.resources.unstable.workflows.AsyncWorkflowsClient;
import java.util.function.Supplier;
public class AsyncUnstableClient {
protected final ClientOptions clientOptions;
protected final Supplier<AsyncAdminsClient> adminsClient;
protected final Supplier<AsyncAiContentClient> aiContentClient;
protected final Supplier<AsyncArticlesClient> articlesClient;
protected final Supplier<AsyncAwayStatusReasonsClient> awayStatusReasonsClient;
protected final Supplier<AsyncExportClient> exportClient;
protected final Supplier<AsyncHelpCenterClient> helpCenterClient;
protected final Supplier<AsyncInternalArticlesClient> internalArticlesClient;
protected final Supplier<AsyncCompaniesClient> companiesClient;
protected final Supplier<AsyncNotesClient> notesClient;
protected final Supplier<AsyncContactsClient> contactsClient;
protected final Supplier<AsyncSubscriptionTypesClient> subscriptionTypesClient;
protected final Supplier<AsyncTagsClient> tagsClient;
protected final Supplier<AsyncConversationsClient> conversationsClient;
protected final Supplier<AsyncCustomChannelEventsClient> customChannelEventsClient;
protected final Supplier<AsyncCustomObjectInstancesClient> customObjectInstancesClient;
protected final Supplier<AsyncDataAttributesClient> dataAttributesClient;
protected final Supplier<AsyncDataEventsClient> dataEventsClient;
protected final Supplier<AsyncDataExportClient> dataExportClient;
protected final Supplier<AsyncWorkflowsClient> workflowsClient;
protected final Supplier<AsyncJobsClient> jobsClient;
protected final Supplier<AsyncMacrosClient> macrosClient;
protected final Supplier<AsyncMessagesClient> messagesClient;
protected final Supplier<AsyncNewsClient> newsClient;
protected final Supplier<AsyncSegmentsClient> segmentsClient;
protected final Supplier<AsyncSwitchClient> switchClient;
protected final Supplier<AsyncCallsClient> callsClient;
protected final Supplier<AsyncTeamsClient> teamsClient;
protected final Supplier<AsyncTicketStatesClient> ticketStatesClient;
protected final Supplier<AsyncTicketTypeAttributesClient> ticketTypeAttributesClient;
protected final Supplier<AsyncTicketTypesClient> ticketTypesClient;
protected final Supplier<AsyncTicketsClient> ticketsClient;
protected final Supplier<AsyncVisitorsClient> visitorsClient;
protected final Supplier<AsyncBrandsClient> brandsClient;
protected final Supplier<AsyncEmailsClient> emailsClient;
public AsyncUnstableClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.adminsClient = Suppliers.memoize(() -> new AsyncAdminsClient(clientOptions));
this.aiContentClient = Suppliers.memoize(() -> new AsyncAiContentClient(clientOptions));
this.articlesClient = Suppliers.memoize(() -> new AsyncArticlesClient(clientOptions));
this.awayStatusReasonsClient = Suppliers.memoize(() -> new AsyncAwayStatusReasonsClient(clientOptions));
this.exportClient = Suppliers.memoize(() -> new AsyncExportClient(clientOptions));
this.helpCenterClient = Suppliers.memoize(() -> new AsyncHelpCenterClient(clientOptions));
this.internalArticlesClient = Suppliers.memoize(() -> new AsyncInternalArticlesClient(clientOptions));
this.companiesClient = Suppliers.memoize(() -> new AsyncCompaniesClient(clientOptions));
this.notesClient = Suppliers.memoize(() -> new AsyncNotesClient(clientOptions));
this.contactsClient = Suppliers.memoize(() -> new AsyncContactsClient(clientOptions));
this.subscriptionTypesClient = Suppliers.memoize(() -> new AsyncSubscriptionTypesClient(clientOptions));
this.tagsClient = Suppliers.memoize(() -> new AsyncTagsClient(clientOptions));
this.conversationsClient = Suppliers.memoize(() -> new AsyncConversationsClient(clientOptions));
this.customChannelEventsClient = Suppliers.memoize(() -> new AsyncCustomChannelEventsClient(clientOptions));
this.customObjectInstancesClient = Suppliers.memoize(() -> new AsyncCustomObjectInstancesClient(clientOptions));
this.dataAttributesClient = Suppliers.memoize(() -> new AsyncDataAttributesClient(clientOptions));
this.dataEventsClient = Suppliers.memoize(() -> new AsyncDataEventsClient(clientOptions));
this.dataExportClient = Suppliers.memoize(() -> new AsyncDataExportClient(clientOptions));
this.workflowsClient = Suppliers.memoize(() -> new AsyncWorkflowsClient(clientOptions));
this.jobsClient = Suppliers.memoize(() -> new AsyncJobsClient(clientOptions));
this.macrosClient = Suppliers.memoize(() -> new AsyncMacrosClient(clientOptions));
this.messagesClient = Suppliers.memoize(() -> new AsyncMessagesClient(clientOptions));
this.newsClient = Suppliers.memoize(() -> new AsyncNewsClient(clientOptions));
this.segmentsClient = Suppliers.memoize(() -> new AsyncSegmentsClient(clientOptions));
this.switchClient = Suppliers.memoize(() -> new AsyncSwitchClient(clientOptions));
this.callsClient = Suppliers.memoize(() -> new AsyncCallsClient(clientOptions));
this.teamsClient = Suppliers.memoize(() -> new AsyncTeamsClient(clientOptions));
this.ticketStatesClient = Suppliers.memoize(() -> new AsyncTicketStatesClient(clientOptions));
this.ticketTypeAttributesClient = Suppliers.memoize(() -> new AsyncTicketTypeAttributesClient(clientOptions));
this.ticketTypesClient = Suppliers.memoize(() -> new AsyncTicketTypesClient(clientOptions));
this.ticketsClient = Suppliers.memoize(() -> new AsyncTicketsClient(clientOptions));
this.visitorsClient = Suppliers.memoize(() -> new AsyncVisitorsClient(clientOptions));
this.brandsClient = Suppliers.memoize(() -> new AsyncBrandsClient(clientOptions));
this.emailsClient = Suppliers.memoize(() -> new AsyncEmailsClient(clientOptions));
}
public AsyncAdminsClient admins() {
return this.adminsClient.get();
}
public AsyncAiContentClient aiContent() {
return this.aiContentClient.get();
}
public AsyncArticlesClient articles() {
return this.articlesClient.get();
}
public AsyncAwayStatusReasonsClient awayStatusReasons() {
return this.awayStatusReasonsClient.get();
}
public AsyncExportClient export() {
return this.exportClient.get();
}
public AsyncHelpCenterClient helpCenter() {
return this.helpCenterClient.get();
}
public AsyncInternalArticlesClient internalArticles() {
return this.internalArticlesClient.get();
}
public AsyncCompaniesClient companies() {
return this.companiesClient.get();
}
public AsyncNotesClient notes() {
return this.notesClient.get();
}
public AsyncContactsClient contacts() {
return this.contactsClient.get();
}
public AsyncSubscriptionTypesClient subscriptionTypes() {
return this.subscriptionTypesClient.get();
}
public AsyncTagsClient tags() {
return this.tagsClient.get();
}
public AsyncConversationsClient conversations() {
return this.conversationsClient.get();
}
public AsyncCustomChannelEventsClient customChannelEvents() {
return this.customChannelEventsClient.get();
}
public AsyncCustomObjectInstancesClient customObjectInstances() {
return this.customObjectInstancesClient.get();
}
public AsyncDataAttributesClient dataAttributes() {
return this.dataAttributesClient.get();
}
public AsyncDataEventsClient dataEvents() {
return this.dataEventsClient.get();
}
public AsyncDataExportClient dataExport() {
return this.dataExportClient.get();
}
public AsyncWorkflowsClient workflows() {
return this.workflowsClient.get();
}
public AsyncJobsClient jobs() {
return this.jobsClient.get();
}
public AsyncMacrosClient macros() {
return this.macrosClient.get();
}
public AsyncMessagesClient messages() {
return this.messagesClient.get();
}
public AsyncNewsClient news() {
return this.newsClient.get();
}
public AsyncSegmentsClient segments() {
return this.segmentsClient.get();
}
public AsyncSwitchClient switch_() {
return this.switchClient.get();
}
public AsyncCallsClient calls() {
return this.callsClient.get();
}
public AsyncTeamsClient teams() {
return this.teamsClient.get();
}
public AsyncTicketStatesClient ticketStates() {
return this.ticketStatesClient.get();
}
public AsyncTicketTypeAttributesClient ticketTypeAttributes() {
return this.ticketTypeAttributesClient.get();
}
public AsyncTicketTypesClient ticketTypes() {
return this.ticketTypesClient.get();
}
public AsyncTicketsClient tickets() {
return this.ticketsClient.get();
}
public AsyncVisitorsClient visitors() {
return this.visitorsClient.get();
}
public AsyncBrandsClient brands() {
return this.brandsClient.get();
}
public AsyncEmailsClient emails() {
return this.emailsClient.get();
}
}