@wastesentry/trak-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +120 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/apis/DefaultApi.ts +176 -0
- package/apis/InfoApi.ts +80 -0
- package/apis/ManifestApi.ts +604 -0
- package/apis/MyProfileApi.ts +63 -0
- package/apis/OrgsApi.ts +172 -0
- package/apis/PegasusApi.ts +336 -0
- package/apis/ProfileApi.ts +229 -0
- package/apis/SiteApi.ts +108 -0
- package/apis/SitesApi.ts +119 -0
- package/apis/SyncApi.ts +55 -0
- package/apis/TeamsApi.ts +673 -0
- package/apis/index.ts +12 -0
- package/docs/AdditionalInfo.md +41 -0
- package/docs/DefaultApi.md +235 -0
- package/docs/ESignature.md +43 -0
- package/docs/Handler.md +41 -0
- package/docs/HandlerSearch.md +34 -0
- package/docs/HandlerSearchSiteTypeEnum.md +31 -0
- package/docs/InfoApi.md +81 -0
- package/docs/Invitation.md +42 -0
- package/docs/LockReasonEnum.md +31 -0
- package/docs/Manifest.md +93 -0
- package/docs/ManifestApi.md +907 -0
- package/docs/ManifestPhone.md +35 -0
- package/docs/Membership.md +42 -0
- package/docs/Mtn.md +39 -0
- package/docs/MyProfileApi.md +73 -0
- package/docs/NullEnum.md +30 -0
- package/docs/OpenInvitation.md +38 -0
- package/docs/Org.md +39 -0
- package/docs/OrgsApi.md +232 -0
- package/docs/PaginatedInvitationList.md +38 -0
- package/docs/PaginatedMtnList.md +38 -0
- package/docs/PaginatedOrgList.md +38 -0
- package/docs/PaginatedSiteList.md +38 -0
- package/docs/PaginatedTeamList.md +38 -0
- package/docs/PaperSignature.md +35 -0
- package/docs/PatchedInvitation.md +42 -0
- package/docs/PatchedProfile.md +35 -0
- package/docs/PatchedRcrainfoProfile.md +45 -0
- package/docs/PatchedTeam.md +48 -0
- package/docs/Price.md +42 -0
- package/docs/Profile.md +35 -0
- package/docs/ProfileApi.md +241 -0
- package/docs/QuickerSign.md +43 -0
- package/docs/RcraAddress.md +45 -0
- package/docs/RcraContact.md +43 -0
- package/docs/RcraPhone.md +35 -0
- package/docs/RcraSite.md +57 -0
- package/docs/RcraSitePermission.md +45 -0
- package/docs/RcraSiteSiteTypeEnum.md +31 -0
- package/docs/RcrainfoProfile.md +45 -0
- package/docs/RoleEnum.md +31 -0
- package/docs/Signer.md +49 -0
- package/docs/Site.md +35 -0
- package/docs/SiteApi.md +147 -0
- package/docs/SiteManifestSyncRequest.md +32 -0
- package/docs/SiteManifestSyncResponse.md +32 -0
- package/docs/SitesApi.md +155 -0
- package/docs/StatusC23Enum.md +31 -0
- package/docs/Subscription.md +51 -0
- package/docs/SubscriptionItem.md +36 -0
- package/docs/SubscriptionStatusEnum.md +31 -0
- package/docs/SyncApi.md +73 -0
- package/docs/Team.md +48 -0
- package/docs/TeamsApi.md +965 -0
- package/docs/TrakUser.md +43 -0
- package/docs/Transporter.md +41 -0
- package/docs/UserInvitationsResponse.md +32 -0
- package/docs/WasteLine.md +55 -0
- package/index.ts +5 -0
- package/models/AdditionalInfo.ts +96 -0
- package/models/AggregateEmployeeData.ts +83 -0
- package/models/DepartmentEnum.ts +59 -0
- package/models/ESignature.ts +112 -0
- package/models/Employee.ts +125 -0
- package/models/Handler.ts +126 -0
- package/models/HandlerSearch.ts +84 -0
- package/models/HandlerSearchSiteTypeEnum.ts +57 -0
- package/models/Invitation.ts +116 -0
- package/models/LockReasonEnum.ts +55 -0
- package/models/Manifest.ts +353 -0
- package/models/ManifestPhone.ts +73 -0
- package/models/Membership.ts +115 -0
- package/models/Mtn.ts +98 -0
- package/models/NullEnum.ts +50 -0
- package/models/OpenInvitation.ts +88 -0
- package/models/Org.ts +88 -0
- package/models/PaginatedEmployeeList.ts +98 -0
- package/models/PaginatedInvitationList.ts +98 -0
- package/models/PaginatedMtnList.ts +98 -0
- package/models/PaginatedOrgList.ts +98 -0
- package/models/PaginatedSiteList.ts +98 -0
- package/models/PaginatedTeamList.ts +98 -0
- package/models/PaperSignature.ts +74 -0
- package/models/PatchedEmployee.ts +118 -0
- package/models/PatchedInvitation.ts +112 -0
- package/models/PatchedProfile.ts +79 -0
- package/models/PatchedRcrainfoProfile.ts +119 -0
- package/models/PatchedTeam.ts +143 -0
- package/models/Price.ts +106 -0
- package/models/Profile.ts +80 -0
- package/models/QuickerSign.ts +108 -0
- package/models/RcraAddress.ts +113 -0
- package/models/RcraContact.ts +112 -0
- package/models/RcraPhone.ts +73 -0
- package/models/RcraSite.ts +200 -0
- package/models/RcraSitePermission.ts +121 -0
- package/models/RcraSiteSiteTypeEnum.ts +57 -0
- package/models/RcrainfoProfile.ts +120 -0
- package/models/RoleEnum.ts +53 -0
- package/models/Signer.ts +136 -0
- package/models/Site.ts +81 -0
- package/models/SiteManifestSyncRequest.ts +65 -0
- package/models/SiteManifestSyncResponse.ts +65 -0
- package/models/StatusC23Enum.ts +67 -0
- package/models/StatusEnum.ts +63 -0
- package/models/Subscription.ts +168 -0
- package/models/SubscriptionItem.ts +90 -0
- package/models/SubscriptionStatusEnum.ts +63 -0
- package/models/Team.ts +151 -0
- package/models/TrakUser.ts +106 -0
- package/models/Transporter.ts +120 -0
- package/models/UserInvitationsResponse.ts +73 -0
- package/models/WasteLine.ts +157 -0
- package/models/index.ts +50 -0
- package/package.json +17 -0
- package/runtime.ts +432 -0
package/docs/TeamsApi.md
ADDED
|
@@ -0,0 +1,965 @@
|
|
|
1
|
+
# TeamsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**invitationsCreate**](TeamsApi.md#invitationscreate) | **POST** /a/{team_slug}/team/api/invitations/ | |
|
|
8
|
+
| [**invitationsDestroy**](TeamsApi.md#invitationsdestroy) | **DELETE** /a/{team_slug}/team/api/invitations/{id}/ | |
|
|
9
|
+
| [**invitationsList**](TeamsApi.md#invitationslist) | **GET** /a/{team_slug}/team/api/invitations/ | |
|
|
10
|
+
| [**invitationsPartialUpdate**](TeamsApi.md#invitationspartialupdate) | **PATCH** /a/{team_slug}/team/api/invitations/{id}/ | |
|
|
11
|
+
| [**invitationsRetrieve**](TeamsApi.md#invitationsretrieve) | **GET** /a/{team_slug}/team/api/invitations/{id}/ | |
|
|
12
|
+
| [**invitationsUpdate**](TeamsApi.md#invitationsupdate) | **PUT** /a/{team_slug}/team/api/invitations/{id}/ | |
|
|
13
|
+
| [**teamsCreate**](TeamsApi.md#teamscreate) | **POST** /teams/api/teams/ | |
|
|
14
|
+
| [**teamsDestroy**](TeamsApi.md#teamsdestroy) | **DELETE** /teams/api/teams/{id}/ | |
|
|
15
|
+
| [**teamsList**](TeamsApi.md#teamslist) | **GET** /teams/api/teams/ | |
|
|
16
|
+
| [**teamsPartialUpdate**](TeamsApi.md#teamspartialupdate) | **PATCH** /teams/api/teams/{id}/ | |
|
|
17
|
+
| [**teamsRetrieve**](TeamsApi.md#teamsretrieve) | **GET** /teams/api/teams/{id}/ | |
|
|
18
|
+
| [**teamsUpdate**](TeamsApi.md#teamsupdate) | **PUT** /teams/api/teams/{id}/ | |
|
|
19
|
+
| [**userInvitations**](TeamsApi.md#userinvitations) | **GET** /teams/api/user-invitations/ | |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## invitationsCreate
|
|
24
|
+
|
|
25
|
+
> Invitation invitationsCreate(teamSlug, invitation)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Example
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import {
|
|
33
|
+
Configuration,
|
|
34
|
+
TeamsApi,
|
|
35
|
+
} from '';
|
|
36
|
+
import type { InvitationsCreateRequest } from '';
|
|
37
|
+
|
|
38
|
+
async function example() {
|
|
39
|
+
console.log("🚀 Testing SDK...");
|
|
40
|
+
const config = new Configuration({
|
|
41
|
+
// To configure API key authorization: cookieAuth
|
|
42
|
+
apiKey: "YOUR API KEY",
|
|
43
|
+
// To configure API key authorization: ApiKeyAuth
|
|
44
|
+
apiKey: "YOUR API KEY",
|
|
45
|
+
});
|
|
46
|
+
const api = new TeamsApi(config);
|
|
47
|
+
|
|
48
|
+
const body = {
|
|
49
|
+
// string
|
|
50
|
+
teamSlug: teamSlug_example,
|
|
51
|
+
// Invitation
|
|
52
|
+
invitation: ...,
|
|
53
|
+
} satisfies InvitationsCreateRequest;
|
|
54
|
+
|
|
55
|
+
try {
|
|
56
|
+
const data = await api.invitationsCreate(body);
|
|
57
|
+
console.log(data);
|
|
58
|
+
} catch (error) {
|
|
59
|
+
console.error(error);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Run the test
|
|
64
|
+
example().catch(console.error);
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
| Name | Type | Description | Notes |
|
|
71
|
+
|------------- | ------------- | ------------- | -------------|
|
|
72
|
+
| **teamSlug** | `string` | | [Defaults to `undefined`] |
|
|
73
|
+
| **invitation** | [Invitation](Invitation.md) | | |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**Invitation**](Invitation.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: `application/json`
|
|
86
|
+
- **Accept**: `application/json`
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
| **201** | | - |
|
|
93
|
+
|
|
94
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## invitationsDestroy
|
|
98
|
+
|
|
99
|
+
> invitationsDestroy(id, teamSlug)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Example
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
import {
|
|
107
|
+
Configuration,
|
|
108
|
+
TeamsApi,
|
|
109
|
+
} from '';
|
|
110
|
+
import type { InvitationsDestroyRequest } from '';
|
|
111
|
+
|
|
112
|
+
async function example() {
|
|
113
|
+
console.log("🚀 Testing SDK...");
|
|
114
|
+
const config = new Configuration({
|
|
115
|
+
// To configure API key authorization: cookieAuth
|
|
116
|
+
apiKey: "YOUR API KEY",
|
|
117
|
+
// To configure API key authorization: ApiKeyAuth
|
|
118
|
+
apiKey: "YOUR API KEY",
|
|
119
|
+
});
|
|
120
|
+
const api = new TeamsApi(config);
|
|
121
|
+
|
|
122
|
+
const body = {
|
|
123
|
+
// string | A UUID string identifying this invitation.
|
|
124
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
125
|
+
// string
|
|
126
|
+
teamSlug: teamSlug_example,
|
|
127
|
+
} satisfies InvitationsDestroyRequest;
|
|
128
|
+
|
|
129
|
+
try {
|
|
130
|
+
const data = await api.invitationsDestroy(body);
|
|
131
|
+
console.log(data);
|
|
132
|
+
} catch (error) {
|
|
133
|
+
console.error(error);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// Run the test
|
|
138
|
+
example().catch(console.error);
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
| Name | Type | Description | Notes |
|
|
145
|
+
|------------- | ------------- | ------------- | -------------|
|
|
146
|
+
| **id** | `string` | A UUID string identifying this invitation. | [Defaults to `undefined`] |
|
|
147
|
+
| **teamSlug** | `string` | | [Defaults to `undefined`] |
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
`void` (Empty response body)
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: Not defined
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
| Status code | Description | Response headers |
|
|
165
|
+
|-------------|-------------|------------------|
|
|
166
|
+
| **204** | No response body | - |
|
|
167
|
+
|
|
168
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
## invitationsList
|
|
172
|
+
|
|
173
|
+
> PaginatedInvitationList invitationsList(teamSlug, page)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Example
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
import {
|
|
181
|
+
Configuration,
|
|
182
|
+
TeamsApi,
|
|
183
|
+
} from '';
|
|
184
|
+
import type { InvitationsListRequest } from '';
|
|
185
|
+
|
|
186
|
+
async function example() {
|
|
187
|
+
console.log("🚀 Testing SDK...");
|
|
188
|
+
const config = new Configuration({
|
|
189
|
+
// To configure API key authorization: cookieAuth
|
|
190
|
+
apiKey: "YOUR API KEY",
|
|
191
|
+
// To configure API key authorization: ApiKeyAuth
|
|
192
|
+
apiKey: "YOUR API KEY",
|
|
193
|
+
});
|
|
194
|
+
const api = new TeamsApi(config);
|
|
195
|
+
|
|
196
|
+
const body = {
|
|
197
|
+
// string
|
|
198
|
+
teamSlug: teamSlug_example,
|
|
199
|
+
// number | A page number within the paginated result set. (optional)
|
|
200
|
+
page: 56,
|
|
201
|
+
} satisfies InvitationsListRequest;
|
|
202
|
+
|
|
203
|
+
try {
|
|
204
|
+
const data = await api.invitationsList(body);
|
|
205
|
+
console.log(data);
|
|
206
|
+
} catch (error) {
|
|
207
|
+
console.error(error);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// Run the test
|
|
212
|
+
example().catch(console.error);
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
| Name | Type | Description | Notes |
|
|
219
|
+
|------------- | ------------- | ------------- | -------------|
|
|
220
|
+
| **teamSlug** | `string` | | [Defaults to `undefined`] |
|
|
221
|
+
| **page** | `number` | A page number within the paginated result set. | [Optional] [Defaults to `undefined`] |
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
[**PaginatedInvitationList**](PaginatedInvitationList.md)
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: `application/json`
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### HTTP response details
|
|
238
|
+
| Status code | Description | Response headers |
|
|
239
|
+
|-------------|-------------|------------------|
|
|
240
|
+
| **200** | | - |
|
|
241
|
+
|
|
242
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
## invitationsPartialUpdate
|
|
246
|
+
|
|
247
|
+
> Invitation invitationsPartialUpdate(id, teamSlug, patchedInvitation)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Example
|
|
252
|
+
|
|
253
|
+
```ts
|
|
254
|
+
import {
|
|
255
|
+
Configuration,
|
|
256
|
+
TeamsApi,
|
|
257
|
+
} from '';
|
|
258
|
+
import type { InvitationsPartialUpdateRequest } from '';
|
|
259
|
+
|
|
260
|
+
async function example() {
|
|
261
|
+
console.log("🚀 Testing SDK...");
|
|
262
|
+
const config = new Configuration({
|
|
263
|
+
// To configure API key authorization: cookieAuth
|
|
264
|
+
apiKey: "YOUR API KEY",
|
|
265
|
+
// To configure API key authorization: ApiKeyAuth
|
|
266
|
+
apiKey: "YOUR API KEY",
|
|
267
|
+
});
|
|
268
|
+
const api = new TeamsApi(config);
|
|
269
|
+
|
|
270
|
+
const body = {
|
|
271
|
+
// string | A UUID string identifying this invitation.
|
|
272
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
273
|
+
// string
|
|
274
|
+
teamSlug: teamSlug_example,
|
|
275
|
+
// PatchedInvitation (optional)
|
|
276
|
+
patchedInvitation: ...,
|
|
277
|
+
} satisfies InvitationsPartialUpdateRequest;
|
|
278
|
+
|
|
279
|
+
try {
|
|
280
|
+
const data = await api.invitationsPartialUpdate(body);
|
|
281
|
+
console.log(data);
|
|
282
|
+
} catch (error) {
|
|
283
|
+
console.error(error);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// Run the test
|
|
288
|
+
example().catch(console.error);
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Parameters
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
| Name | Type | Description | Notes |
|
|
295
|
+
|------------- | ------------- | ------------- | -------------|
|
|
296
|
+
| **id** | `string` | A UUID string identifying this invitation. | [Defaults to `undefined`] |
|
|
297
|
+
| **teamSlug** | `string` | | [Defaults to `undefined`] |
|
|
298
|
+
| **patchedInvitation** | [PatchedInvitation](PatchedInvitation.md) | | [Optional] |
|
|
299
|
+
|
|
300
|
+
### Return type
|
|
301
|
+
|
|
302
|
+
[**Invitation**](Invitation.md)
|
|
303
|
+
|
|
304
|
+
### Authorization
|
|
305
|
+
|
|
306
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
307
|
+
|
|
308
|
+
### HTTP request headers
|
|
309
|
+
|
|
310
|
+
- **Content-Type**: `application/json`
|
|
311
|
+
- **Accept**: `application/json`
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
### HTTP response details
|
|
315
|
+
| Status code | Description | Response headers |
|
|
316
|
+
|-------------|-------------|------------------|
|
|
317
|
+
| **200** | | - |
|
|
318
|
+
|
|
319
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## invitationsRetrieve
|
|
323
|
+
|
|
324
|
+
> Invitation invitationsRetrieve(id, teamSlug)
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
### Example
|
|
329
|
+
|
|
330
|
+
```ts
|
|
331
|
+
import {
|
|
332
|
+
Configuration,
|
|
333
|
+
TeamsApi,
|
|
334
|
+
} from '';
|
|
335
|
+
import type { InvitationsRetrieveRequest } from '';
|
|
336
|
+
|
|
337
|
+
async function example() {
|
|
338
|
+
console.log("🚀 Testing SDK...");
|
|
339
|
+
const config = new Configuration({
|
|
340
|
+
// To configure API key authorization: cookieAuth
|
|
341
|
+
apiKey: "YOUR API KEY",
|
|
342
|
+
// To configure API key authorization: ApiKeyAuth
|
|
343
|
+
apiKey: "YOUR API KEY",
|
|
344
|
+
});
|
|
345
|
+
const api = new TeamsApi(config);
|
|
346
|
+
|
|
347
|
+
const body = {
|
|
348
|
+
// string | A UUID string identifying this invitation.
|
|
349
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
350
|
+
// string
|
|
351
|
+
teamSlug: teamSlug_example,
|
|
352
|
+
} satisfies InvitationsRetrieveRequest;
|
|
353
|
+
|
|
354
|
+
try {
|
|
355
|
+
const data = await api.invitationsRetrieve(body);
|
|
356
|
+
console.log(data);
|
|
357
|
+
} catch (error) {
|
|
358
|
+
console.error(error);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// Run the test
|
|
363
|
+
example().catch(console.error);
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Parameters
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
| Name | Type | Description | Notes |
|
|
370
|
+
|------------- | ------------- | ------------- | -------------|
|
|
371
|
+
| **id** | `string` | A UUID string identifying this invitation. | [Defaults to `undefined`] |
|
|
372
|
+
| **teamSlug** | `string` | | [Defaults to `undefined`] |
|
|
373
|
+
|
|
374
|
+
### Return type
|
|
375
|
+
|
|
376
|
+
[**Invitation**](Invitation.md)
|
|
377
|
+
|
|
378
|
+
### Authorization
|
|
379
|
+
|
|
380
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
381
|
+
|
|
382
|
+
### HTTP request headers
|
|
383
|
+
|
|
384
|
+
- **Content-Type**: Not defined
|
|
385
|
+
- **Accept**: `application/json`
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
### HTTP response details
|
|
389
|
+
| Status code | Description | Response headers |
|
|
390
|
+
|-------------|-------------|------------------|
|
|
391
|
+
| **200** | | - |
|
|
392
|
+
|
|
393
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
## invitationsUpdate
|
|
397
|
+
|
|
398
|
+
> Invitation invitationsUpdate(id, teamSlug, invitation)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
### Example
|
|
403
|
+
|
|
404
|
+
```ts
|
|
405
|
+
import {
|
|
406
|
+
Configuration,
|
|
407
|
+
TeamsApi,
|
|
408
|
+
} from '';
|
|
409
|
+
import type { InvitationsUpdateRequest } from '';
|
|
410
|
+
|
|
411
|
+
async function example() {
|
|
412
|
+
console.log("🚀 Testing SDK...");
|
|
413
|
+
const config = new Configuration({
|
|
414
|
+
// To configure API key authorization: cookieAuth
|
|
415
|
+
apiKey: "YOUR API KEY",
|
|
416
|
+
// To configure API key authorization: ApiKeyAuth
|
|
417
|
+
apiKey: "YOUR API KEY",
|
|
418
|
+
});
|
|
419
|
+
const api = new TeamsApi(config);
|
|
420
|
+
|
|
421
|
+
const body = {
|
|
422
|
+
// string | A UUID string identifying this invitation.
|
|
423
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
424
|
+
// string
|
|
425
|
+
teamSlug: teamSlug_example,
|
|
426
|
+
// Invitation
|
|
427
|
+
invitation: ...,
|
|
428
|
+
} satisfies InvitationsUpdateRequest;
|
|
429
|
+
|
|
430
|
+
try {
|
|
431
|
+
const data = await api.invitationsUpdate(body);
|
|
432
|
+
console.log(data);
|
|
433
|
+
} catch (error) {
|
|
434
|
+
console.error(error);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// Run the test
|
|
439
|
+
example().catch(console.error);
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Parameters
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
| Name | Type | Description | Notes |
|
|
446
|
+
|------------- | ------------- | ------------- | -------------|
|
|
447
|
+
| **id** | `string` | A UUID string identifying this invitation. | [Defaults to `undefined`] |
|
|
448
|
+
| **teamSlug** | `string` | | [Defaults to `undefined`] |
|
|
449
|
+
| **invitation** | [Invitation](Invitation.md) | | |
|
|
450
|
+
|
|
451
|
+
### Return type
|
|
452
|
+
|
|
453
|
+
[**Invitation**](Invitation.md)
|
|
454
|
+
|
|
455
|
+
### Authorization
|
|
456
|
+
|
|
457
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
458
|
+
|
|
459
|
+
### HTTP request headers
|
|
460
|
+
|
|
461
|
+
- **Content-Type**: `application/json`
|
|
462
|
+
- **Accept**: `application/json`
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
### HTTP response details
|
|
466
|
+
| Status code | Description | Response headers |
|
|
467
|
+
|-------------|-------------|------------------|
|
|
468
|
+
| **200** | | - |
|
|
469
|
+
|
|
470
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
## teamsCreate
|
|
474
|
+
|
|
475
|
+
> Team teamsCreate(team)
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
### Example
|
|
480
|
+
|
|
481
|
+
```ts
|
|
482
|
+
import {
|
|
483
|
+
Configuration,
|
|
484
|
+
TeamsApi,
|
|
485
|
+
} from '';
|
|
486
|
+
import type { TeamsCreateRequest } from '';
|
|
487
|
+
|
|
488
|
+
async function example() {
|
|
489
|
+
console.log("🚀 Testing SDK...");
|
|
490
|
+
const config = new Configuration({
|
|
491
|
+
// To configure API key authorization: cookieAuth
|
|
492
|
+
apiKey: "YOUR API KEY",
|
|
493
|
+
// To configure API key authorization: ApiKeyAuth
|
|
494
|
+
apiKey: "YOUR API KEY",
|
|
495
|
+
});
|
|
496
|
+
const api = new TeamsApi(config);
|
|
497
|
+
|
|
498
|
+
const body = {
|
|
499
|
+
// Team
|
|
500
|
+
team: ...,
|
|
501
|
+
} satisfies TeamsCreateRequest;
|
|
502
|
+
|
|
503
|
+
try {
|
|
504
|
+
const data = await api.teamsCreate(body);
|
|
505
|
+
console.log(data);
|
|
506
|
+
} catch (error) {
|
|
507
|
+
console.error(error);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// Run the test
|
|
512
|
+
example().catch(console.error);
|
|
513
|
+
```
|
|
514
|
+
|
|
515
|
+
### Parameters
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
| Name | Type | Description | Notes |
|
|
519
|
+
|------------- | ------------- | ------------- | -------------|
|
|
520
|
+
| **team** | [Team](Team.md) | | |
|
|
521
|
+
|
|
522
|
+
### Return type
|
|
523
|
+
|
|
524
|
+
[**Team**](Team.md)
|
|
525
|
+
|
|
526
|
+
### Authorization
|
|
527
|
+
|
|
528
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
529
|
+
|
|
530
|
+
### HTTP request headers
|
|
531
|
+
|
|
532
|
+
- **Content-Type**: `application/json`
|
|
533
|
+
- **Accept**: `application/json`
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
### HTTP response details
|
|
537
|
+
| Status code | Description | Response headers |
|
|
538
|
+
|-------------|-------------|------------------|
|
|
539
|
+
| **201** | | - |
|
|
540
|
+
|
|
541
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
## teamsDestroy
|
|
545
|
+
|
|
546
|
+
> teamsDestroy(id)
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
### Example
|
|
551
|
+
|
|
552
|
+
```ts
|
|
553
|
+
import {
|
|
554
|
+
Configuration,
|
|
555
|
+
TeamsApi,
|
|
556
|
+
} from '';
|
|
557
|
+
import type { TeamsDestroyRequest } from '';
|
|
558
|
+
|
|
559
|
+
async function example() {
|
|
560
|
+
console.log("🚀 Testing SDK...");
|
|
561
|
+
const config = new Configuration({
|
|
562
|
+
// To configure API key authorization: cookieAuth
|
|
563
|
+
apiKey: "YOUR API KEY",
|
|
564
|
+
// To configure API key authorization: ApiKeyAuth
|
|
565
|
+
apiKey: "YOUR API KEY",
|
|
566
|
+
});
|
|
567
|
+
const api = new TeamsApi(config);
|
|
568
|
+
|
|
569
|
+
const body = {
|
|
570
|
+
// number | A unique integer value identifying this team.
|
|
571
|
+
id: 56,
|
|
572
|
+
} satisfies TeamsDestroyRequest;
|
|
573
|
+
|
|
574
|
+
try {
|
|
575
|
+
const data = await api.teamsDestroy(body);
|
|
576
|
+
console.log(data);
|
|
577
|
+
} catch (error) {
|
|
578
|
+
console.error(error);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// Run the test
|
|
583
|
+
example().catch(console.error);
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
### Parameters
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
| Name | Type | Description | Notes |
|
|
590
|
+
|------------- | ------------- | ------------- | -------------|
|
|
591
|
+
| **id** | `number` | A unique integer value identifying this team. | [Defaults to `undefined`] |
|
|
592
|
+
|
|
593
|
+
### Return type
|
|
594
|
+
|
|
595
|
+
`void` (Empty response body)
|
|
596
|
+
|
|
597
|
+
### Authorization
|
|
598
|
+
|
|
599
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
600
|
+
|
|
601
|
+
### HTTP request headers
|
|
602
|
+
|
|
603
|
+
- **Content-Type**: Not defined
|
|
604
|
+
- **Accept**: Not defined
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
### HTTP response details
|
|
608
|
+
| Status code | Description | Response headers |
|
|
609
|
+
|-------------|-------------|------------------|
|
|
610
|
+
| **204** | No response body | - |
|
|
611
|
+
|
|
612
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
## teamsList
|
|
616
|
+
|
|
617
|
+
> PaginatedTeamList teamsList(page)
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
### Example
|
|
622
|
+
|
|
623
|
+
```ts
|
|
624
|
+
import {
|
|
625
|
+
Configuration,
|
|
626
|
+
TeamsApi,
|
|
627
|
+
} from '';
|
|
628
|
+
import type { TeamsListRequest } from '';
|
|
629
|
+
|
|
630
|
+
async function example() {
|
|
631
|
+
console.log("🚀 Testing SDK...");
|
|
632
|
+
const config = new Configuration({
|
|
633
|
+
// To configure API key authorization: cookieAuth
|
|
634
|
+
apiKey: "YOUR API KEY",
|
|
635
|
+
// To configure API key authorization: ApiKeyAuth
|
|
636
|
+
apiKey: "YOUR API KEY",
|
|
637
|
+
});
|
|
638
|
+
const api = new TeamsApi(config);
|
|
639
|
+
|
|
640
|
+
const body = {
|
|
641
|
+
// number | A page number within the paginated result set. (optional)
|
|
642
|
+
page: 56,
|
|
643
|
+
} satisfies TeamsListRequest;
|
|
644
|
+
|
|
645
|
+
try {
|
|
646
|
+
const data = await api.teamsList(body);
|
|
647
|
+
console.log(data);
|
|
648
|
+
} catch (error) {
|
|
649
|
+
console.error(error);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
// Run the test
|
|
654
|
+
example().catch(console.error);
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
### Parameters
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
| Name | Type | Description | Notes |
|
|
661
|
+
|------------- | ------------- | ------------- | -------------|
|
|
662
|
+
| **page** | `number` | A page number within the paginated result set. | [Optional] [Defaults to `undefined`] |
|
|
663
|
+
|
|
664
|
+
### Return type
|
|
665
|
+
|
|
666
|
+
[**PaginatedTeamList**](PaginatedTeamList.md)
|
|
667
|
+
|
|
668
|
+
### Authorization
|
|
669
|
+
|
|
670
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
671
|
+
|
|
672
|
+
### HTTP request headers
|
|
673
|
+
|
|
674
|
+
- **Content-Type**: Not defined
|
|
675
|
+
- **Accept**: `application/json`
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
### HTTP response details
|
|
679
|
+
| Status code | Description | Response headers |
|
|
680
|
+
|-------------|-------------|------------------|
|
|
681
|
+
| **200** | | - |
|
|
682
|
+
|
|
683
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
## teamsPartialUpdate
|
|
687
|
+
|
|
688
|
+
> Team teamsPartialUpdate(id, patchedTeam)
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
### Example
|
|
693
|
+
|
|
694
|
+
```ts
|
|
695
|
+
import {
|
|
696
|
+
Configuration,
|
|
697
|
+
TeamsApi,
|
|
698
|
+
} from '';
|
|
699
|
+
import type { TeamsPartialUpdateRequest } from '';
|
|
700
|
+
|
|
701
|
+
async function example() {
|
|
702
|
+
console.log("🚀 Testing SDK...");
|
|
703
|
+
const config = new Configuration({
|
|
704
|
+
// To configure API key authorization: cookieAuth
|
|
705
|
+
apiKey: "YOUR API KEY",
|
|
706
|
+
// To configure API key authorization: ApiKeyAuth
|
|
707
|
+
apiKey: "YOUR API KEY",
|
|
708
|
+
});
|
|
709
|
+
const api = new TeamsApi(config);
|
|
710
|
+
|
|
711
|
+
const body = {
|
|
712
|
+
// number | A unique integer value identifying this team.
|
|
713
|
+
id: 56,
|
|
714
|
+
// PatchedTeam (optional)
|
|
715
|
+
patchedTeam: ...,
|
|
716
|
+
} satisfies TeamsPartialUpdateRequest;
|
|
717
|
+
|
|
718
|
+
try {
|
|
719
|
+
const data = await api.teamsPartialUpdate(body);
|
|
720
|
+
console.log(data);
|
|
721
|
+
} catch (error) {
|
|
722
|
+
console.error(error);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// Run the test
|
|
727
|
+
example().catch(console.error);
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
### Parameters
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
| Name | Type | Description | Notes |
|
|
734
|
+
|------------- | ------------- | ------------- | -------------|
|
|
735
|
+
| **id** | `number` | A unique integer value identifying this team. | [Defaults to `undefined`] |
|
|
736
|
+
| **patchedTeam** | [PatchedTeam](PatchedTeam.md) | | [Optional] |
|
|
737
|
+
|
|
738
|
+
### Return type
|
|
739
|
+
|
|
740
|
+
[**Team**](Team.md)
|
|
741
|
+
|
|
742
|
+
### Authorization
|
|
743
|
+
|
|
744
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
745
|
+
|
|
746
|
+
### HTTP request headers
|
|
747
|
+
|
|
748
|
+
- **Content-Type**: `application/json`
|
|
749
|
+
- **Accept**: `application/json`
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
### HTTP response details
|
|
753
|
+
| Status code | Description | Response headers |
|
|
754
|
+
|-------------|-------------|------------------|
|
|
755
|
+
| **200** | | - |
|
|
756
|
+
|
|
757
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
## teamsRetrieve
|
|
761
|
+
|
|
762
|
+
> Team teamsRetrieve(id)
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
### Example
|
|
767
|
+
|
|
768
|
+
```ts
|
|
769
|
+
import {
|
|
770
|
+
Configuration,
|
|
771
|
+
TeamsApi,
|
|
772
|
+
} from '';
|
|
773
|
+
import type { TeamsRetrieveRequest } from '';
|
|
774
|
+
|
|
775
|
+
async function example() {
|
|
776
|
+
console.log("🚀 Testing SDK...");
|
|
777
|
+
const config = new Configuration({
|
|
778
|
+
// To configure API key authorization: cookieAuth
|
|
779
|
+
apiKey: "YOUR API KEY",
|
|
780
|
+
// To configure API key authorization: ApiKeyAuth
|
|
781
|
+
apiKey: "YOUR API KEY",
|
|
782
|
+
});
|
|
783
|
+
const api = new TeamsApi(config);
|
|
784
|
+
|
|
785
|
+
const body = {
|
|
786
|
+
// number | A unique integer value identifying this team.
|
|
787
|
+
id: 56,
|
|
788
|
+
} satisfies TeamsRetrieveRequest;
|
|
789
|
+
|
|
790
|
+
try {
|
|
791
|
+
const data = await api.teamsRetrieve(body);
|
|
792
|
+
console.log(data);
|
|
793
|
+
} catch (error) {
|
|
794
|
+
console.error(error);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
// Run the test
|
|
799
|
+
example().catch(console.error);
|
|
800
|
+
```
|
|
801
|
+
|
|
802
|
+
### Parameters
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
| Name | Type | Description | Notes |
|
|
806
|
+
|------------- | ------------- | ------------- | -------------|
|
|
807
|
+
| **id** | `number` | A unique integer value identifying this team. | [Defaults to `undefined`] |
|
|
808
|
+
|
|
809
|
+
### Return type
|
|
810
|
+
|
|
811
|
+
[**Team**](Team.md)
|
|
812
|
+
|
|
813
|
+
### Authorization
|
|
814
|
+
|
|
815
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
816
|
+
|
|
817
|
+
### HTTP request headers
|
|
818
|
+
|
|
819
|
+
- **Content-Type**: Not defined
|
|
820
|
+
- **Accept**: `application/json`
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
### HTTP response details
|
|
824
|
+
| Status code | Description | Response headers |
|
|
825
|
+
|-------------|-------------|------------------|
|
|
826
|
+
| **200** | | - |
|
|
827
|
+
|
|
828
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
## teamsUpdate
|
|
832
|
+
|
|
833
|
+
> Team teamsUpdate(id, team)
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
### Example
|
|
838
|
+
|
|
839
|
+
```ts
|
|
840
|
+
import {
|
|
841
|
+
Configuration,
|
|
842
|
+
TeamsApi,
|
|
843
|
+
} from '';
|
|
844
|
+
import type { TeamsUpdateRequest } from '';
|
|
845
|
+
|
|
846
|
+
async function example() {
|
|
847
|
+
console.log("🚀 Testing SDK...");
|
|
848
|
+
const config = new Configuration({
|
|
849
|
+
// To configure API key authorization: cookieAuth
|
|
850
|
+
apiKey: "YOUR API KEY",
|
|
851
|
+
// To configure API key authorization: ApiKeyAuth
|
|
852
|
+
apiKey: "YOUR API KEY",
|
|
853
|
+
});
|
|
854
|
+
const api = new TeamsApi(config);
|
|
855
|
+
|
|
856
|
+
const body = {
|
|
857
|
+
// number | A unique integer value identifying this team.
|
|
858
|
+
id: 56,
|
|
859
|
+
// Team
|
|
860
|
+
team: ...,
|
|
861
|
+
} satisfies TeamsUpdateRequest;
|
|
862
|
+
|
|
863
|
+
try {
|
|
864
|
+
const data = await api.teamsUpdate(body);
|
|
865
|
+
console.log(data);
|
|
866
|
+
} catch (error) {
|
|
867
|
+
console.error(error);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// Run the test
|
|
872
|
+
example().catch(console.error);
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
### Parameters
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
| Name | Type | Description | Notes |
|
|
879
|
+
|------------- | ------------- | ------------- | -------------|
|
|
880
|
+
| **id** | `number` | A unique integer value identifying this team. | [Defaults to `undefined`] |
|
|
881
|
+
| **team** | [Team](Team.md) | | |
|
|
882
|
+
|
|
883
|
+
### Return type
|
|
884
|
+
|
|
885
|
+
[**Team**](Team.md)
|
|
886
|
+
|
|
887
|
+
### Authorization
|
|
888
|
+
|
|
889
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
890
|
+
|
|
891
|
+
### HTTP request headers
|
|
892
|
+
|
|
893
|
+
- **Content-Type**: `application/json`
|
|
894
|
+
- **Accept**: `application/json`
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
### HTTP response details
|
|
898
|
+
| Status code | Description | Response headers |
|
|
899
|
+
|-------------|-------------|------------------|
|
|
900
|
+
| **200** | | - |
|
|
901
|
+
|
|
902
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
## userInvitations
|
|
906
|
+
|
|
907
|
+
> UserInvitationsResponse userInvitations()
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
### Example
|
|
912
|
+
|
|
913
|
+
```ts
|
|
914
|
+
import {
|
|
915
|
+
Configuration,
|
|
916
|
+
TeamsApi,
|
|
917
|
+
} from '';
|
|
918
|
+
import type { UserInvitationsRequest } from '';
|
|
919
|
+
|
|
920
|
+
async function example() {
|
|
921
|
+
console.log("🚀 Testing SDK...");
|
|
922
|
+
const config = new Configuration({
|
|
923
|
+
// To configure API key authorization: cookieAuth
|
|
924
|
+
apiKey: "YOUR API KEY",
|
|
925
|
+
// To configure API key authorization: ApiKeyAuth
|
|
926
|
+
apiKey: "YOUR API KEY",
|
|
927
|
+
});
|
|
928
|
+
const api = new TeamsApi(config);
|
|
929
|
+
|
|
930
|
+
try {
|
|
931
|
+
const data = await api.userInvitations();
|
|
932
|
+
console.log(data);
|
|
933
|
+
} catch (error) {
|
|
934
|
+
console.error(error);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
// Run the test
|
|
939
|
+
example().catch(console.error);
|
|
940
|
+
```
|
|
941
|
+
|
|
942
|
+
### Parameters
|
|
943
|
+
|
|
944
|
+
This endpoint does not need any parameter.
|
|
945
|
+
|
|
946
|
+
### Return type
|
|
947
|
+
|
|
948
|
+
[**UserInvitationsResponse**](UserInvitationsResponse.md)
|
|
949
|
+
|
|
950
|
+
### Authorization
|
|
951
|
+
|
|
952
|
+
[cookieAuth](../README.md#cookieAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
953
|
+
|
|
954
|
+
### HTTP request headers
|
|
955
|
+
|
|
956
|
+
- **Content-Type**: Not defined
|
|
957
|
+
- **Accept**: `application/json`
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
### HTTP response details
|
|
961
|
+
| Status code | Description | Response headers |
|
|
962
|
+
|-------------|-------------|------------------|
|
|
963
|
+
| **200** | | - |
|
|
964
|
+
|
|
965
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|