@connectedxm/admin-sdk 11.23.1 → 12.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 +42 -2
- package/AdminApi.ts +9 -0
- package/README.md +2 -2
- package/api.ts +2857 -207
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/AdminApi.d.ts +4 -1
- package/dist/AdminApi.js +3 -0
- package/dist/api.d.ts +1608 -151
- package/dist/api.js +2074 -196
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/AdminApi.d.ts +4 -1
- package/dist/esm/AdminApi.js +4 -1
- package/dist/esm/api.d.ts +1608 -151
- package/dist/esm/api.js +2028 -163
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/Announcement.md +10 -24
- package/docs/AnnouncementAudience.md +48 -0
- package/docs/AnnouncementAudienceCondition.md +98 -0
- package/docs/AnnouncementAudienceConditionAccountAttribute.md +26 -0
- package/docs/AnnouncementAudienceConditionChoice.md +22 -0
- package/docs/AnnouncementAudienceConditionComparator.md +14 -0
- package/docs/AnnouncementAudienceConditionCreateInputs.md +60 -0
- package/docs/AnnouncementAudienceConditionEvent.md +24 -0
- package/docs/AnnouncementAudienceConditionInputs.md +58 -0
- package/docs/AnnouncementAudienceConditionQuestion.md +24 -0
- package/docs/AnnouncementAudienceConditionReference.md +22 -0
- package/docs/AnnouncementAudienceConditionType.md +40 -0
- package/docs/AnnouncementAudienceConditionUpdateInputs.md +60 -0
- package/docs/AnnouncementAudienceCreateInputs.md +30 -0
- package/docs/AnnouncementAudienceFilter.md +32 -0
- package/docs/AnnouncementAudienceFilterCreateInputs.md +24 -0
- package/docs/AnnouncementAudienceFilterUpdateInputs.md +22 -0
- package/docs/AnnouncementAudienceOperator.md +10 -0
- package/docs/AnnouncementAudienceReference.md +26 -0
- package/docs/AnnouncementAudienceScope.md +26 -0
- package/docs/AnnouncementAudienceUpdateInputs.md +28 -0
- package/docs/AnnouncementCreateInputs.md +5 -13
- package/docs/AnnouncementFilters.md +4 -10
- package/docs/AnnouncementMergeField.md +24 -0
- package/docs/AnnouncementTemplate.md +32 -0
- package/docs/AnnouncementTemplateCreateInputs.md +26 -0
- package/docs/AnnouncementTemplateTranslation.md +30 -0
- package/docs/AnnouncementTemplateTranslationUpdateInputs.md +22 -0
- package/docs/AnnouncementTemplateUpdateInputs.md +26 -0
- package/docs/AnnouncementUpdateInputs.md +2 -2
- package/docs/AnnouncementsApi.md +69 -20
- package/docs/AnnouncementsAudiencesApi.md +698 -0
- package/docs/AnnouncementsTemplatesApi.md +281 -0
- package/docs/AnnouncementsTemplatesTranslationsApi.md +240 -0
- package/docs/BaseAnnouncement.md +6 -8
- package/docs/BaseAnnouncementAudience.md +40 -0
- package/docs/CreateAnnouncementAudience200Response.md +24 -0
- package/docs/CreateAnnouncementAudienceCondition200Response.md +24 -0
- package/docs/CreateAnnouncementAudienceFilter200Response.md +24 -0
- package/docs/CreateAnnouncementTemplate200Response.md +24 -0
- package/docs/{GetAnnouncementAudience200Response.md → GetAnnouncementAudienceAccounts200Response.md} +3 -3
- package/docs/GetAnnouncementAudiences200Response.md +26 -0
- package/docs/GetAnnouncementMergeFields200Response.md +24 -0
- package/docs/GetAnnouncementTemplateTranslation200Response.md +24 -0
- package/docs/GetAnnouncementTemplateTranslations200Response.md +26 -0
- package/docs/GetAnnouncementTemplates200Response.md +26 -0
- package/docs/SendAnnouncementPreviewRequest.md +20 -0
- package/docs/UpdateAnnouncementTemplateTranslation200Response.md +24 -0
- package/package.json +1 -1
- package/docs/EventAnnouncementFilters.md +0 -30
|
@@ -0,0 +1,698 @@
|
|
|
1
|
+
# AnnouncementsAudiencesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://admin-api.connected.dev*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createAnnouncementAudience**](#createannouncementaudience) | **POST** /announcements/audiences | Create an announcement audience|
|
|
8
|
+
|[**createAnnouncementAudienceCondition**](#createannouncementaudiencecondition) | **POST** /announcements/audiences/{audienceId}/filters/{filterId}/conditions | Create an audience condition|
|
|
9
|
+
|[**createAnnouncementAudienceFilter**](#createannouncementaudiencefilter) | **POST** /announcements/audiences/{audienceId}/filters | Create an audience filter group|
|
|
10
|
+
|[**deleteAnnouncementAudience**](#deleteannouncementaudience) | **DELETE** /announcements/audiences/{audienceId} | Delete an announcement audience|
|
|
11
|
+
|[**deleteAnnouncementAudienceCondition**](#deleteannouncementaudiencecondition) | **DELETE** /announcements/audiences/{audienceId}/filters/{filterId}/conditions/{conditionId} | Delete an audience condition|
|
|
12
|
+
|[**deleteAnnouncementAudienceFilter**](#deleteannouncementaudiencefilter) | **DELETE** /announcements/audiences/{audienceId}/filters/{filterId} | Delete an audience filter group|
|
|
13
|
+
|[**getAnnouncementAudience**](#getannouncementaudience) | **GET** /announcements/audiences/{audienceId} | Get an announcement audience|
|
|
14
|
+
|[**getAnnouncementAudienceAccounts**](#getannouncementaudienceaccounts) | **GET** /announcements/audiences/{audienceId}/accounts | List the accounts in an announcement audience|
|
|
15
|
+
|[**getAnnouncementAudiences**](#getannouncementaudiences) | **GET** /announcements/audiences | List announcement audiences|
|
|
16
|
+
|[**updateAnnouncementAudience**](#updateannouncementaudience) | **PUT** /announcements/audiences/{audienceId} | Update an announcement audience|
|
|
17
|
+
|[**updateAnnouncementAudienceCondition**](#updateannouncementaudiencecondition) | **PUT** /announcements/audiences/{audienceId}/filters/{filterId}/conditions/{conditionId} | Update an audience condition|
|
|
18
|
+
|[**updateAnnouncementAudienceFilter**](#updateannouncementaudiencefilter) | **PUT** /announcements/audiences/{audienceId}/filters/{filterId} | Update an audience filter group|
|
|
19
|
+
|
|
20
|
+
# **createAnnouncementAudience**
|
|
21
|
+
> CreateAnnouncementAudience200Response createAnnouncementAudience(announcementAudienceCreateInputs)
|
|
22
|
+
|
|
23
|
+
Creates an audience scoped to an event (eventId), a group (groupId), a channel (channelId), or the whole community (none); the scope cannot be changed afterwards; requires create permission on announcements.
|
|
24
|
+
|
|
25
|
+
### Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import {
|
|
29
|
+
AnnouncementsAudiencesApi,
|
|
30
|
+
Configuration,
|
|
31
|
+
AnnouncementAudienceCreateInputs
|
|
32
|
+
} from '@connectedxm/admin-sdk';
|
|
33
|
+
|
|
34
|
+
const configuration = new Configuration();
|
|
35
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
36
|
+
|
|
37
|
+
let announcementAudienceCreateInputs: AnnouncementAudienceCreateInputs; //
|
|
38
|
+
|
|
39
|
+
const { status, data } = await apiInstance.createAnnouncementAudience(
|
|
40
|
+
announcementAudienceCreateInputs
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
|Name | Type | Description | Notes|
|
|
47
|
+
|------------- | ------------- | ------------- | -------------|
|
|
48
|
+
| **announcementAudienceCreateInputs** | **AnnouncementAudienceCreateInputs**| | |
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**CreateAnnouncementAudience200Response**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: application/json
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### HTTP response details
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
|**200** | Successful response | - |
|
|
69
|
+
|
|
70
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
71
|
+
|
|
72
|
+
# **createAnnouncementAudienceCondition**
|
|
73
|
+
> CreateAnnouncementAudienceCondition200Response createAnnouncementAudienceCondition(announcementAudienceConditionCreateInputs)
|
|
74
|
+
|
|
75
|
+
Adds a condition to a filter group; each type requires its own reference (e.g. passTypeId for eventPassType), event conditions inside an event audience always use that event, and every reference must belong to the organization; requires update permission on announcements.
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
AnnouncementsAudiencesApi,
|
|
82
|
+
Configuration,
|
|
83
|
+
AnnouncementAudienceConditionCreateInputs
|
|
84
|
+
} from '@connectedxm/admin-sdk';
|
|
85
|
+
|
|
86
|
+
const configuration = new Configuration();
|
|
87
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
88
|
+
|
|
89
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
90
|
+
let filterId: string; //The filter identifier (default to undefined)
|
|
91
|
+
let announcementAudienceConditionCreateInputs: AnnouncementAudienceConditionCreateInputs; //
|
|
92
|
+
|
|
93
|
+
const { status, data } = await apiInstance.createAnnouncementAudienceCondition(
|
|
94
|
+
audienceId,
|
|
95
|
+
filterId,
|
|
96
|
+
announcementAudienceConditionCreateInputs
|
|
97
|
+
);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
|Name | Type | Description | Notes|
|
|
103
|
+
|------------- | ------------- | ------------- | -------------|
|
|
104
|
+
| **announcementAudienceConditionCreateInputs** | **AnnouncementAudienceConditionCreateInputs**| | |
|
|
105
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
106
|
+
| **filterId** | [**string**] | The filter identifier | defaults to undefined|
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Return type
|
|
110
|
+
|
|
111
|
+
**CreateAnnouncementAudienceCondition200Response**
|
|
112
|
+
|
|
113
|
+
### Authorization
|
|
114
|
+
|
|
115
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
116
|
+
|
|
117
|
+
### HTTP request headers
|
|
118
|
+
|
|
119
|
+
- **Content-Type**: application/json
|
|
120
|
+
- **Accept**: application/json
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### HTTP response details
|
|
124
|
+
| Status code | Description | Response headers |
|
|
125
|
+
|-------------|-------------|------------------|
|
|
126
|
+
|**200** | Successful response | - |
|
|
127
|
+
|
|
128
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
129
|
+
|
|
130
|
+
# **createAnnouncementAudienceFilter**
|
|
131
|
+
> CreateAnnouncementAudienceFilter200Response createAnnouncementAudienceFilter(announcementAudienceFilterCreateInputs)
|
|
132
|
+
|
|
133
|
+
Adds an AND/OR filter group to an audience, at the root or nested under parentFilterId (which must belong to the same audience); requires update permission on announcements.
|
|
134
|
+
|
|
135
|
+
### Example
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
import {
|
|
139
|
+
AnnouncementsAudiencesApi,
|
|
140
|
+
Configuration,
|
|
141
|
+
AnnouncementAudienceFilterCreateInputs
|
|
142
|
+
} from '@connectedxm/admin-sdk';
|
|
143
|
+
|
|
144
|
+
const configuration = new Configuration();
|
|
145
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
146
|
+
|
|
147
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
148
|
+
let announcementAudienceFilterCreateInputs: AnnouncementAudienceFilterCreateInputs; //
|
|
149
|
+
|
|
150
|
+
const { status, data } = await apiInstance.createAnnouncementAudienceFilter(
|
|
151
|
+
audienceId,
|
|
152
|
+
announcementAudienceFilterCreateInputs
|
|
153
|
+
);
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
|Name | Type | Description | Notes|
|
|
159
|
+
|------------- | ------------- | ------------- | -------------|
|
|
160
|
+
| **announcementAudienceFilterCreateInputs** | **AnnouncementAudienceFilterCreateInputs**| | |
|
|
161
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Return type
|
|
165
|
+
|
|
166
|
+
**CreateAnnouncementAudienceFilter200Response**
|
|
167
|
+
|
|
168
|
+
### Authorization
|
|
169
|
+
|
|
170
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
171
|
+
|
|
172
|
+
### HTTP request headers
|
|
173
|
+
|
|
174
|
+
- **Content-Type**: application/json
|
|
175
|
+
- **Accept**: application/json
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### HTTP response details
|
|
179
|
+
| Status code | Description | Response headers |
|
|
180
|
+
|-------------|-------------|------------------|
|
|
181
|
+
|**200** | Successful response | - |
|
|
182
|
+
|
|
183
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
184
|
+
|
|
185
|
+
# **deleteAnnouncementAudience**
|
|
186
|
+
> CreateAccountInvitations200Response deleteAnnouncementAudience()
|
|
187
|
+
|
|
188
|
+
Permanently deletes an audience along with its filter groups and conditions; requires delete permission on announcements.
|
|
189
|
+
|
|
190
|
+
### Example
|
|
191
|
+
|
|
192
|
+
```typescript
|
|
193
|
+
import {
|
|
194
|
+
AnnouncementsAudiencesApi,
|
|
195
|
+
Configuration
|
|
196
|
+
} from '@connectedxm/admin-sdk';
|
|
197
|
+
|
|
198
|
+
const configuration = new Configuration();
|
|
199
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
200
|
+
|
|
201
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
202
|
+
|
|
203
|
+
const { status, data } = await apiInstance.deleteAnnouncementAudience(
|
|
204
|
+
audienceId
|
|
205
|
+
);
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Return type
|
|
216
|
+
|
|
217
|
+
**CreateAccountInvitations200Response**
|
|
218
|
+
|
|
219
|
+
### Authorization
|
|
220
|
+
|
|
221
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
222
|
+
|
|
223
|
+
### HTTP request headers
|
|
224
|
+
|
|
225
|
+
- **Content-Type**: Not defined
|
|
226
|
+
- **Accept**: application/json
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### HTTP response details
|
|
230
|
+
| Status code | Description | Response headers |
|
|
231
|
+
|-------------|-------------|------------------|
|
|
232
|
+
|**200** | Successful response | - |
|
|
233
|
+
|
|
234
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
235
|
+
|
|
236
|
+
# **deleteAnnouncementAudienceCondition**
|
|
237
|
+
> CreateAccountInvitations200Response deleteAnnouncementAudienceCondition()
|
|
238
|
+
|
|
239
|
+
Removes a condition from its filter group; requires update permission on announcements.
|
|
240
|
+
|
|
241
|
+
### Example
|
|
242
|
+
|
|
243
|
+
```typescript
|
|
244
|
+
import {
|
|
245
|
+
AnnouncementsAudiencesApi,
|
|
246
|
+
Configuration
|
|
247
|
+
} from '@connectedxm/admin-sdk';
|
|
248
|
+
|
|
249
|
+
const configuration = new Configuration();
|
|
250
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
251
|
+
|
|
252
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
253
|
+
let filterId: string; //The filter identifier (default to undefined)
|
|
254
|
+
let conditionId: string; //The condition identifier (default to undefined)
|
|
255
|
+
|
|
256
|
+
const { status, data } = await apiInstance.deleteAnnouncementAudienceCondition(
|
|
257
|
+
audienceId,
|
|
258
|
+
filterId,
|
|
259
|
+
conditionId
|
|
260
|
+
);
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Parameters
|
|
264
|
+
|
|
265
|
+
|Name | Type | Description | Notes|
|
|
266
|
+
|------------- | ------------- | ------------- | -------------|
|
|
267
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
268
|
+
| **filterId** | [**string**] | The filter identifier | defaults to undefined|
|
|
269
|
+
| **conditionId** | [**string**] | The condition identifier | defaults to undefined|
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
### Return type
|
|
273
|
+
|
|
274
|
+
**CreateAccountInvitations200Response**
|
|
275
|
+
|
|
276
|
+
### Authorization
|
|
277
|
+
|
|
278
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
279
|
+
|
|
280
|
+
### HTTP request headers
|
|
281
|
+
|
|
282
|
+
- **Content-Type**: Not defined
|
|
283
|
+
- **Accept**: application/json
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
### HTTP response details
|
|
287
|
+
| Status code | Description | Response headers |
|
|
288
|
+
|-------------|-------------|------------------|
|
|
289
|
+
|**200** | Successful response | - |
|
|
290
|
+
|
|
291
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
292
|
+
|
|
293
|
+
# **deleteAnnouncementAudienceFilter**
|
|
294
|
+
> CreateAccountInvitations200Response deleteAnnouncementAudienceFilter()
|
|
295
|
+
|
|
296
|
+
Deletes a filter group together with its nested groups and conditions; requires update permission on announcements.
|
|
297
|
+
|
|
298
|
+
### Example
|
|
299
|
+
|
|
300
|
+
```typescript
|
|
301
|
+
import {
|
|
302
|
+
AnnouncementsAudiencesApi,
|
|
303
|
+
Configuration
|
|
304
|
+
} from '@connectedxm/admin-sdk';
|
|
305
|
+
|
|
306
|
+
const configuration = new Configuration();
|
|
307
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
308
|
+
|
|
309
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
310
|
+
let filterId: string; //The filter identifier (default to undefined)
|
|
311
|
+
|
|
312
|
+
const { status, data } = await apiInstance.deleteAnnouncementAudienceFilter(
|
|
313
|
+
audienceId,
|
|
314
|
+
filterId
|
|
315
|
+
);
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Parameters
|
|
319
|
+
|
|
320
|
+
|Name | Type | Description | Notes|
|
|
321
|
+
|------------- | ------------- | ------------- | -------------|
|
|
322
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
323
|
+
| **filterId** | [**string**] | The filter identifier | defaults to undefined|
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
### Return type
|
|
327
|
+
|
|
328
|
+
**CreateAccountInvitations200Response**
|
|
329
|
+
|
|
330
|
+
### Authorization
|
|
331
|
+
|
|
332
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
333
|
+
|
|
334
|
+
### HTTP request headers
|
|
335
|
+
|
|
336
|
+
- **Content-Type**: Not defined
|
|
337
|
+
- **Accept**: application/json
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
### HTTP response details
|
|
341
|
+
| Status code | Description | Response headers |
|
|
342
|
+
|-------------|-------------|------------------|
|
|
343
|
+
|**200** | Successful response | - |
|
|
344
|
+
|
|
345
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
346
|
+
|
|
347
|
+
# **getAnnouncementAudience**
|
|
348
|
+
> CreateAnnouncementAudience200Response getAnnouncementAudience()
|
|
349
|
+
|
|
350
|
+
Returns one announcement audience with all of its filter groups and conditions, flat, ordered by sortOrder; requires read permission on announcements.
|
|
351
|
+
|
|
352
|
+
### Example
|
|
353
|
+
|
|
354
|
+
```typescript
|
|
355
|
+
import {
|
|
356
|
+
AnnouncementsAudiencesApi,
|
|
357
|
+
Configuration
|
|
358
|
+
} from '@connectedxm/admin-sdk';
|
|
359
|
+
|
|
360
|
+
const configuration = new Configuration();
|
|
361
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
362
|
+
|
|
363
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
364
|
+
|
|
365
|
+
const { status, data } = await apiInstance.getAnnouncementAudience(
|
|
366
|
+
audienceId
|
|
367
|
+
);
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### Parameters
|
|
371
|
+
|
|
372
|
+
|Name | Type | Description | Notes|
|
|
373
|
+
|------------- | ------------- | ------------- | -------------|
|
|
374
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
### Return type
|
|
378
|
+
|
|
379
|
+
**CreateAnnouncementAudience200Response**
|
|
380
|
+
|
|
381
|
+
### Authorization
|
|
382
|
+
|
|
383
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
384
|
+
|
|
385
|
+
### HTTP request headers
|
|
386
|
+
|
|
387
|
+
- **Content-Type**: Not defined
|
|
388
|
+
- **Accept**: application/json
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
### HTTP response details
|
|
392
|
+
| Status code | Description | Response headers |
|
|
393
|
+
|-------------|-------------|------------------|
|
|
394
|
+
|**200** | Successful response | - |
|
|
395
|
+
|
|
396
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
397
|
+
|
|
398
|
+
# **getAnnouncementAudienceAccounts**
|
|
399
|
+
> GetAnnouncementAudienceAccounts200Response getAnnouncementAudienceAccounts()
|
|
400
|
+
|
|
401
|
+
Returns a paginated preview of the accounts an audience currently matches, with the total in count; supports search and ordering; requires read permission on announcements.
|
|
402
|
+
|
|
403
|
+
### Example
|
|
404
|
+
|
|
405
|
+
```typescript
|
|
406
|
+
import {
|
|
407
|
+
AnnouncementsAudiencesApi,
|
|
408
|
+
Configuration
|
|
409
|
+
} from '@connectedxm/admin-sdk';
|
|
410
|
+
|
|
411
|
+
const configuration = new Configuration();
|
|
412
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
413
|
+
|
|
414
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
415
|
+
let page: number; //Page number (optional) (default to 1)
|
|
416
|
+
let pageSize: number; //Number of items per page (optional) (default to 25)
|
|
417
|
+
let orderBy: string; //Field to order by (optional) (default to undefined)
|
|
418
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
419
|
+
|
|
420
|
+
const { status, data } = await apiInstance.getAnnouncementAudienceAccounts(
|
|
421
|
+
audienceId,
|
|
422
|
+
page,
|
|
423
|
+
pageSize,
|
|
424
|
+
orderBy,
|
|
425
|
+
search
|
|
426
|
+
);
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
### Parameters
|
|
430
|
+
|
|
431
|
+
|Name | Type | Description | Notes|
|
|
432
|
+
|------------- | ------------- | ------------- | -------------|
|
|
433
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
434
|
+
| **page** | [**number**] | Page number | (optional) defaults to 1|
|
|
435
|
+
| **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
436
|
+
| **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
|
|
437
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
### Return type
|
|
441
|
+
|
|
442
|
+
**GetAnnouncementAudienceAccounts200Response**
|
|
443
|
+
|
|
444
|
+
### Authorization
|
|
445
|
+
|
|
446
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
447
|
+
|
|
448
|
+
### HTTP request headers
|
|
449
|
+
|
|
450
|
+
- **Content-Type**: Not defined
|
|
451
|
+
- **Accept**: application/json
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
### HTTP response details
|
|
455
|
+
| Status code | Description | Response headers |
|
|
456
|
+
|-------------|-------------|------------------|
|
|
457
|
+
|**200** | Successful response | - |
|
|
458
|
+
|
|
459
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
460
|
+
|
|
461
|
+
# **getAnnouncementAudiences**
|
|
462
|
+
> GetAnnouncementAudiences200Response getAnnouncementAudiences()
|
|
463
|
+
|
|
464
|
+
Returns a paginated list of announcement audiences in one scope: pass an eventId, groupId or channelId for that scope\'s audiences, or none for community audiences. Active audiences by default, starred first; pass archived for the archived ones. requires read permission on announcements.
|
|
465
|
+
|
|
466
|
+
### Example
|
|
467
|
+
|
|
468
|
+
```typescript
|
|
469
|
+
import {
|
|
470
|
+
AnnouncementsAudiencesApi,
|
|
471
|
+
Configuration,
|
|
472
|
+
AnnouncementAudienceScope
|
|
473
|
+
} from '@connectedxm/admin-sdk';
|
|
474
|
+
|
|
475
|
+
const configuration = new Configuration();
|
|
476
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
477
|
+
|
|
478
|
+
let scope: AnnouncementAudienceScope; //Filter by scope (optional) (default to undefined)
|
|
479
|
+
let page: number; //Page number (optional) (default to 1)
|
|
480
|
+
let pageSize: number; //Number of items per page (optional) (default to 25)
|
|
481
|
+
let orderBy: string; //Field to order by (optional) (default to undefined)
|
|
482
|
+
let search: string; //Search query (optional) (default to undefined)
|
|
483
|
+
|
|
484
|
+
const { status, data } = await apiInstance.getAnnouncementAudiences(
|
|
485
|
+
scope,
|
|
486
|
+
page,
|
|
487
|
+
pageSize,
|
|
488
|
+
orderBy,
|
|
489
|
+
search
|
|
490
|
+
);
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
### Parameters
|
|
494
|
+
|
|
495
|
+
|Name | Type | Description | Notes|
|
|
496
|
+
|------------- | ------------- | ------------- | -------------|
|
|
497
|
+
| **scope** | **AnnouncementAudienceScope** | Filter by scope | (optional) defaults to undefined|
|
|
498
|
+
| **page** | [**number**] | Page number | (optional) defaults to 1|
|
|
499
|
+
| **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
500
|
+
| **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
|
|
501
|
+
| **search** | [**string**] | Search query | (optional) defaults to undefined|
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
### Return type
|
|
505
|
+
|
|
506
|
+
**GetAnnouncementAudiences200Response**
|
|
507
|
+
|
|
508
|
+
### Authorization
|
|
509
|
+
|
|
510
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
511
|
+
|
|
512
|
+
### HTTP request headers
|
|
513
|
+
|
|
514
|
+
- **Content-Type**: Not defined
|
|
515
|
+
- **Accept**: application/json
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
### HTTP response details
|
|
519
|
+
| Status code | Description | Response headers |
|
|
520
|
+
|-------------|-------------|------------------|
|
|
521
|
+
|**200** | Successful response | - |
|
|
522
|
+
|
|
523
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
524
|
+
|
|
525
|
+
# **updateAnnouncementAudience**
|
|
526
|
+
> CreateAnnouncementAudience200Response updateAnnouncementAudience(announcementAudienceUpdateInputs)
|
|
527
|
+
|
|
528
|
+
Updates an audience\'s name, description, or root operator (how its top-level filter groups combine); requires update permission on announcements.
|
|
529
|
+
|
|
530
|
+
### Example
|
|
531
|
+
|
|
532
|
+
```typescript
|
|
533
|
+
import {
|
|
534
|
+
AnnouncementsAudiencesApi,
|
|
535
|
+
Configuration,
|
|
536
|
+
AnnouncementAudienceUpdateInputs
|
|
537
|
+
} from '@connectedxm/admin-sdk';
|
|
538
|
+
|
|
539
|
+
const configuration = new Configuration();
|
|
540
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
541
|
+
|
|
542
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
543
|
+
let announcementAudienceUpdateInputs: AnnouncementAudienceUpdateInputs; //
|
|
544
|
+
|
|
545
|
+
const { status, data } = await apiInstance.updateAnnouncementAudience(
|
|
546
|
+
audienceId,
|
|
547
|
+
announcementAudienceUpdateInputs
|
|
548
|
+
);
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
### Parameters
|
|
552
|
+
|
|
553
|
+
|Name | Type | Description | Notes|
|
|
554
|
+
|------------- | ------------- | ------------- | -------------|
|
|
555
|
+
| **announcementAudienceUpdateInputs** | **AnnouncementAudienceUpdateInputs**| | |
|
|
556
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
### Return type
|
|
560
|
+
|
|
561
|
+
**CreateAnnouncementAudience200Response**
|
|
562
|
+
|
|
563
|
+
### Authorization
|
|
564
|
+
|
|
565
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
566
|
+
|
|
567
|
+
### HTTP request headers
|
|
568
|
+
|
|
569
|
+
- **Content-Type**: application/json
|
|
570
|
+
- **Accept**: application/json
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
### HTTP response details
|
|
574
|
+
| Status code | Description | Response headers |
|
|
575
|
+
|-------------|-------------|------------------|
|
|
576
|
+
|**200** | Successful response | - |
|
|
577
|
+
|
|
578
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
579
|
+
|
|
580
|
+
# **updateAnnouncementAudienceCondition**
|
|
581
|
+
> CreateAnnouncementAudienceCondition200Response updateAnnouncementAudienceCondition(announcementAudienceConditionUpdateInputs)
|
|
582
|
+
|
|
583
|
+
Updates a condition; changing its type clears the references the new type does not use; requires update permission on announcements.
|
|
584
|
+
|
|
585
|
+
### Example
|
|
586
|
+
|
|
587
|
+
```typescript
|
|
588
|
+
import {
|
|
589
|
+
AnnouncementsAudiencesApi,
|
|
590
|
+
Configuration,
|
|
591
|
+
AnnouncementAudienceConditionUpdateInputs
|
|
592
|
+
} from '@connectedxm/admin-sdk';
|
|
593
|
+
|
|
594
|
+
const configuration = new Configuration();
|
|
595
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
596
|
+
|
|
597
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
598
|
+
let filterId: string; //The filter identifier (default to undefined)
|
|
599
|
+
let conditionId: string; //The condition identifier (default to undefined)
|
|
600
|
+
let announcementAudienceConditionUpdateInputs: AnnouncementAudienceConditionUpdateInputs; //
|
|
601
|
+
|
|
602
|
+
const { status, data } = await apiInstance.updateAnnouncementAudienceCondition(
|
|
603
|
+
audienceId,
|
|
604
|
+
filterId,
|
|
605
|
+
conditionId,
|
|
606
|
+
announcementAudienceConditionUpdateInputs
|
|
607
|
+
);
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
### Parameters
|
|
611
|
+
|
|
612
|
+
|Name | Type | Description | Notes|
|
|
613
|
+
|------------- | ------------- | ------------- | -------------|
|
|
614
|
+
| **announcementAudienceConditionUpdateInputs** | **AnnouncementAudienceConditionUpdateInputs**| | |
|
|
615
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
616
|
+
| **filterId** | [**string**] | The filter identifier | defaults to undefined|
|
|
617
|
+
| **conditionId** | [**string**] | The condition identifier | defaults to undefined|
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
### Return type
|
|
621
|
+
|
|
622
|
+
**CreateAnnouncementAudienceCondition200Response**
|
|
623
|
+
|
|
624
|
+
### Authorization
|
|
625
|
+
|
|
626
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
627
|
+
|
|
628
|
+
### HTTP request headers
|
|
629
|
+
|
|
630
|
+
- **Content-Type**: application/json
|
|
631
|
+
- **Accept**: application/json
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
### HTTP response details
|
|
635
|
+
| Status code | Description | Response headers |
|
|
636
|
+
|-------------|-------------|------------------|
|
|
637
|
+
|**200** | Successful response | - |
|
|
638
|
+
|
|
639
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
640
|
+
|
|
641
|
+
# **updateAnnouncementAudienceFilter**
|
|
642
|
+
> CreateAnnouncementAudienceFilter200Response updateAnnouncementAudienceFilter(announcementAudienceFilterUpdateInputs)
|
|
643
|
+
|
|
644
|
+
Changes a filter group\'s operator or sort order; requires update permission on announcements.
|
|
645
|
+
|
|
646
|
+
### Example
|
|
647
|
+
|
|
648
|
+
```typescript
|
|
649
|
+
import {
|
|
650
|
+
AnnouncementsAudiencesApi,
|
|
651
|
+
Configuration,
|
|
652
|
+
AnnouncementAudienceFilterUpdateInputs
|
|
653
|
+
} from '@connectedxm/admin-sdk';
|
|
654
|
+
|
|
655
|
+
const configuration = new Configuration();
|
|
656
|
+
const apiInstance = new AnnouncementsAudiencesApi(configuration);
|
|
657
|
+
|
|
658
|
+
let audienceId: string; //The audience identifier (default to undefined)
|
|
659
|
+
let filterId: string; //The filter identifier (default to undefined)
|
|
660
|
+
let announcementAudienceFilterUpdateInputs: AnnouncementAudienceFilterUpdateInputs; //
|
|
661
|
+
|
|
662
|
+
const { status, data } = await apiInstance.updateAnnouncementAudienceFilter(
|
|
663
|
+
audienceId,
|
|
664
|
+
filterId,
|
|
665
|
+
announcementAudienceFilterUpdateInputs
|
|
666
|
+
);
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
### Parameters
|
|
670
|
+
|
|
671
|
+
|Name | Type | Description | Notes|
|
|
672
|
+
|------------- | ------------- | ------------- | -------------|
|
|
673
|
+
| **announcementAudienceFilterUpdateInputs** | **AnnouncementAudienceFilterUpdateInputs**| | |
|
|
674
|
+
| **audienceId** | [**string**] | The audience identifier | defaults to undefined|
|
|
675
|
+
| **filterId** | [**string**] | The filter identifier | defaults to undefined|
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
### Return type
|
|
679
|
+
|
|
680
|
+
**CreateAnnouncementAudienceFilter200Response**
|
|
681
|
+
|
|
682
|
+
### Authorization
|
|
683
|
+
|
|
684
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
685
|
+
|
|
686
|
+
### HTTP request headers
|
|
687
|
+
|
|
688
|
+
- **Content-Type**: application/json
|
|
689
|
+
- **Accept**: application/json
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
### HTTP response details
|
|
693
|
+
| Status code | Description | Response headers |
|
|
694
|
+
|-------------|-------------|------------------|
|
|
695
|
+
|**200** | Successful response | - |
|
|
696
|
+
|
|
697
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
698
|
+
|