@wix/auto_sdk_badges_badges-v-2 1.0.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/build/cjs/index.d.ts +497 -0
- package/build/cjs/index.js +902 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +790 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +469 -0
- package/build/cjs/meta.js +669 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +497 -0
- package/build/es/index.mjs +864 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +752 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +469 -0
- package/build/es/meta.mjs +628 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +160 -0
- package/build/internal/cjs/index.js +902 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +673 -0
- package/build/internal/cjs/index.typings.js +790 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +470 -0
- package/build/internal/cjs/meta.js +669 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +160 -0
- package/build/internal/es/index.mjs +864 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +673 -0
- package/build/internal/es/index.typings.mjs +752 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +470 -0
- package/build/internal/es/meta.mjs +628 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
interface Badge {
|
|
2
|
+
/**
|
|
3
|
+
* Badge id
|
|
4
|
+
* @format GUID
|
|
5
|
+
*/
|
|
6
|
+
_id?: string;
|
|
7
|
+
/** Badge title */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** Badge description */
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Badge background color in 6-digit color hex in upper case (e.g. #FFFFFF)
|
|
13
|
+
* @format COLOR_HEX
|
|
14
|
+
*/
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Badge text color in 6-digit color hex in upper case (e.g. #FFFFFF)
|
|
18
|
+
* @format COLOR_HEX
|
|
19
|
+
*/
|
|
20
|
+
textColor?: string;
|
|
21
|
+
/** Badge icon SVG as 'https://...' */
|
|
22
|
+
icon?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Id of role/group in groups service that badge assignee belongs to
|
|
25
|
+
* @format GUID
|
|
26
|
+
*/
|
|
27
|
+
roleId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates whether badge has permissions.
|
|
30
|
+
*
|
|
31
|
+
* Badges can have special permissions to access specific members-only pages.
|
|
32
|
+
*
|
|
33
|
+
* When the value is set to **true**, badge permissions can be managed in
|
|
34
|
+
* [permissions table](https://www.wix.com/my-account/site-selector/?buttonText=Manage%20Permissions&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/member-permissions/roles/manage-permissions).
|
|
35
|
+
* Site members will receive relevant permissions once assigned such badge.
|
|
36
|
+
*
|
|
37
|
+
* When the value is set to **false**, badge has no associated permissions
|
|
38
|
+
* and is not visible in permissions table.
|
|
39
|
+
* Site member will not receive any permissions once assigned such badge.
|
|
40
|
+
*/
|
|
41
|
+
hasPermissions?: boolean;
|
|
42
|
+
/** Badge url keyword operator */
|
|
43
|
+
slug?: string;
|
|
44
|
+
/** Date when badge was created */
|
|
45
|
+
createDate?: Date | null;
|
|
46
|
+
/** Date when badge was last updated */
|
|
47
|
+
updateDate?: Date | null;
|
|
48
|
+
}
|
|
49
|
+
interface CreateRequest {
|
|
50
|
+
/** Badge title */
|
|
51
|
+
title: string;
|
|
52
|
+
/** Badge description */
|
|
53
|
+
description?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Badge background color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
56
|
+
* @format COLOR_HEX
|
|
57
|
+
*/
|
|
58
|
+
backgroundColor: string;
|
|
59
|
+
/**
|
|
60
|
+
* Badge text color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
61
|
+
* @format COLOR_HEX
|
|
62
|
+
*/
|
|
63
|
+
textColor: string;
|
|
64
|
+
/** Badge icon SVG as 'https://...' */
|
|
65
|
+
icon?: string;
|
|
66
|
+
/** Indicates whether badge has permissions */
|
|
67
|
+
hasPermissions?: boolean;
|
|
68
|
+
}
|
|
69
|
+
interface CreateResponse {
|
|
70
|
+
/** Created badge */
|
|
71
|
+
badge?: Badge;
|
|
72
|
+
}
|
|
73
|
+
interface UpdateRequest {
|
|
74
|
+
/**
|
|
75
|
+
* Badge id
|
|
76
|
+
* @format GUID
|
|
77
|
+
*/
|
|
78
|
+
_id: string;
|
|
79
|
+
/** Badge title */
|
|
80
|
+
title?: string | null;
|
|
81
|
+
/** Badge description */
|
|
82
|
+
description?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Badge background color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
85
|
+
* @format COLOR_HEX
|
|
86
|
+
*/
|
|
87
|
+
backgroundColor?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Badge text color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
90
|
+
* @format COLOR_HEX
|
|
91
|
+
*/
|
|
92
|
+
textColor?: string | null;
|
|
93
|
+
/** Badge icon SVG as 'https://...' */
|
|
94
|
+
icon?: string | null;
|
|
95
|
+
/** Indicates whether badge has permissions */
|
|
96
|
+
hasPermissions?: boolean | null;
|
|
97
|
+
}
|
|
98
|
+
interface UpdateResponse {
|
|
99
|
+
/** Updated badge */
|
|
100
|
+
badge?: Badge;
|
|
101
|
+
}
|
|
102
|
+
interface ListRequest {
|
|
103
|
+
/**
|
|
104
|
+
* Limit the number of badges to return
|
|
105
|
+
* @min 1
|
|
106
|
+
* @max 1000
|
|
107
|
+
*/
|
|
108
|
+
limit?: number | null;
|
|
109
|
+
/** Default offset is 0. */
|
|
110
|
+
offset?: number | null;
|
|
111
|
+
}
|
|
112
|
+
interface ListResponse {
|
|
113
|
+
/** List of badges in a site */
|
|
114
|
+
badges?: Badge[];
|
|
115
|
+
}
|
|
116
|
+
interface QueryRequest {
|
|
117
|
+
/** Filter criteria */
|
|
118
|
+
filter?: Record<string, any> | null;
|
|
119
|
+
/** Sorting criteria */
|
|
120
|
+
sort?: Sorting[];
|
|
121
|
+
/** Result paging data */
|
|
122
|
+
paging?: Paging;
|
|
123
|
+
}
|
|
124
|
+
interface Sorting {
|
|
125
|
+
/**
|
|
126
|
+
* Name of the field to sort by.
|
|
127
|
+
* @maxLength 512
|
|
128
|
+
*/
|
|
129
|
+
fieldName?: string;
|
|
130
|
+
/** Sort order. */
|
|
131
|
+
order?: SortOrderWithLiterals;
|
|
132
|
+
}
|
|
133
|
+
declare enum SortOrder {
|
|
134
|
+
ASC = "ASC",
|
|
135
|
+
DESC = "DESC"
|
|
136
|
+
}
|
|
137
|
+
/** @enumType */
|
|
138
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
139
|
+
interface Paging {
|
|
140
|
+
/**
|
|
141
|
+
* Limit the number of badges to return
|
|
142
|
+
* @min 1
|
|
143
|
+
* @max 1000
|
|
144
|
+
*/
|
|
145
|
+
limit?: number | null;
|
|
146
|
+
/** Default offset is 0. */
|
|
147
|
+
offset?: number | null;
|
|
148
|
+
}
|
|
149
|
+
interface QueryResponse {
|
|
150
|
+
/** List of sorted badges in a site that satisfy filter and paging */
|
|
151
|
+
badges?: Badge[];
|
|
152
|
+
/** Total count of badges in a site that satisfy given filter */
|
|
153
|
+
count?: string;
|
|
154
|
+
}
|
|
155
|
+
interface GetRequest {
|
|
156
|
+
/**
|
|
157
|
+
* Badge id
|
|
158
|
+
* @format GUID
|
|
159
|
+
*/
|
|
160
|
+
_id: string;
|
|
161
|
+
}
|
|
162
|
+
interface GetResponse {
|
|
163
|
+
/** Badge */
|
|
164
|
+
badge?: Badge;
|
|
165
|
+
}
|
|
166
|
+
interface DeleteRequest {
|
|
167
|
+
/**
|
|
168
|
+
* Badge id
|
|
169
|
+
* @format GUID
|
|
170
|
+
*/
|
|
171
|
+
_id: string;
|
|
172
|
+
}
|
|
173
|
+
interface DeleteResponse {
|
|
174
|
+
}
|
|
175
|
+
interface CountRequest {
|
|
176
|
+
/** Filter criteria used for counting */
|
|
177
|
+
filter?: Record<string, any> | null;
|
|
178
|
+
}
|
|
179
|
+
interface CountResponse {
|
|
180
|
+
/** Badges count */
|
|
181
|
+
count?: string;
|
|
182
|
+
}
|
|
183
|
+
interface AssignBadgeRequest {
|
|
184
|
+
/**
|
|
185
|
+
* Badge id
|
|
186
|
+
* @format GUID
|
|
187
|
+
*/
|
|
188
|
+
_id: string;
|
|
189
|
+
/**
|
|
190
|
+
* Ids of members this badge should be assigned to
|
|
191
|
+
* @format GUID
|
|
192
|
+
*/
|
|
193
|
+
memberIds: string[];
|
|
194
|
+
}
|
|
195
|
+
interface AssignBadgeResponse {
|
|
196
|
+
/**
|
|
197
|
+
* Ids of members given badge has been assigned to
|
|
198
|
+
* @format GUID
|
|
199
|
+
*/
|
|
200
|
+
memberIds?: string[];
|
|
201
|
+
}
|
|
202
|
+
interface BadgeAssigned {
|
|
203
|
+
/**
|
|
204
|
+
* Member ids who have the given badge assigned
|
|
205
|
+
* @format GUID
|
|
206
|
+
*/
|
|
207
|
+
memberId?: string;
|
|
208
|
+
}
|
|
209
|
+
interface UnassignBadgeRequest {
|
|
210
|
+
/**
|
|
211
|
+
* Badge id
|
|
212
|
+
* @format GUID
|
|
213
|
+
*/
|
|
214
|
+
_id: string;
|
|
215
|
+
/**
|
|
216
|
+
* Ids of members given badge will be removed from
|
|
217
|
+
* @format GUID
|
|
218
|
+
*/
|
|
219
|
+
memberIds: string[];
|
|
220
|
+
}
|
|
221
|
+
interface UnassignBadgeResponse {
|
|
222
|
+
}
|
|
223
|
+
interface BadgeUnassigned {
|
|
224
|
+
/**
|
|
225
|
+
* Member id who had the badge unassigned
|
|
226
|
+
* @format GUID
|
|
227
|
+
*/
|
|
228
|
+
memberId?: string;
|
|
229
|
+
}
|
|
230
|
+
interface ListMembersRequest {
|
|
231
|
+
/**
|
|
232
|
+
* Badge id
|
|
233
|
+
* @format GUID
|
|
234
|
+
*/
|
|
235
|
+
_id: string;
|
|
236
|
+
}
|
|
237
|
+
interface ListMembersResponse {
|
|
238
|
+
/**
|
|
239
|
+
* Member ids who have the given badge assigned
|
|
240
|
+
* @format GUID
|
|
241
|
+
*/
|
|
242
|
+
memberIds?: string[];
|
|
243
|
+
}
|
|
244
|
+
interface ListMembersBadgeIdsRequest {
|
|
245
|
+
/**
|
|
246
|
+
* Ids of members whose badge ids should be listed
|
|
247
|
+
* @format GUID
|
|
248
|
+
*/
|
|
249
|
+
memberIds: string[];
|
|
250
|
+
}
|
|
251
|
+
interface ListMembersBadgeIdsResponse {
|
|
252
|
+
/** List of members with Ids of badges assigned to them */
|
|
253
|
+
memberBadgeIds?: MemberBadgeIds[];
|
|
254
|
+
}
|
|
255
|
+
interface MemberBadgeIds {
|
|
256
|
+
/**
|
|
257
|
+
* Member id
|
|
258
|
+
* @format GUID
|
|
259
|
+
*/
|
|
260
|
+
memberId?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Badge ids assigned to a given member
|
|
263
|
+
* @format GUID
|
|
264
|
+
*/
|
|
265
|
+
badgeIds?: string[];
|
|
266
|
+
}
|
|
267
|
+
interface GetBadgeCountersRequest {
|
|
268
|
+
}
|
|
269
|
+
interface GetBadgeCountersResponse {
|
|
270
|
+
/** Ids of badges with a member count with this assigned badge */
|
|
271
|
+
badgeMemberCounts?: BadgeMemberCount[];
|
|
272
|
+
}
|
|
273
|
+
interface BadgeMemberCount {
|
|
274
|
+
/**
|
|
275
|
+
* Badge id
|
|
276
|
+
* @format GUID
|
|
277
|
+
*/
|
|
278
|
+
badgeId?: string;
|
|
279
|
+
/** Number of members with assigned badge */
|
|
280
|
+
memberCount?: number;
|
|
281
|
+
}
|
|
282
|
+
interface UpdateBadgesOrderRequest {
|
|
283
|
+
/**
|
|
284
|
+
* Ordered badges ids
|
|
285
|
+
* @format GUID
|
|
286
|
+
* @minSize 1
|
|
287
|
+
*/
|
|
288
|
+
badgeIds?: string[];
|
|
289
|
+
}
|
|
290
|
+
interface UpdateBadgesOrderResponse {
|
|
291
|
+
/** Reordered badges */
|
|
292
|
+
badges?: Badge[];
|
|
293
|
+
}
|
|
294
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
295
|
+
createdEvent?: EntityCreatedEvent;
|
|
296
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
297
|
+
deletedEvent?: EntityDeletedEvent;
|
|
298
|
+
actionEvent?: ActionEvent;
|
|
299
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
300
|
+
_id?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
303
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
304
|
+
*/
|
|
305
|
+
entityFqdn?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
308
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
309
|
+
*/
|
|
310
|
+
slug?: string;
|
|
311
|
+
/** ID of the entity associated with the event. */
|
|
312
|
+
entityId?: string;
|
|
313
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
314
|
+
eventTime?: Date | null;
|
|
315
|
+
/**
|
|
316
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
317
|
+
* (for example, GDPR).
|
|
318
|
+
*/
|
|
319
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
320
|
+
/** If present, indicates the action that triggered the event. */
|
|
321
|
+
originatedFrom?: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
324
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
325
|
+
*/
|
|
326
|
+
entityEventSequence?: string | null;
|
|
327
|
+
}
|
|
328
|
+
/** @oneof */
|
|
329
|
+
interface DomainEventBodyOneOf {
|
|
330
|
+
createdEvent?: EntityCreatedEvent;
|
|
331
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
332
|
+
deletedEvent?: EntityDeletedEvent;
|
|
333
|
+
actionEvent?: ActionEvent;
|
|
334
|
+
}
|
|
335
|
+
interface EntityCreatedEvent {
|
|
336
|
+
entity?: string;
|
|
337
|
+
}
|
|
338
|
+
interface RestoreInfo {
|
|
339
|
+
deletedDate?: Date | null;
|
|
340
|
+
}
|
|
341
|
+
interface EntityUpdatedEvent {
|
|
342
|
+
/**
|
|
343
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
344
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
345
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
346
|
+
*/
|
|
347
|
+
currentEntity?: string;
|
|
348
|
+
}
|
|
349
|
+
interface EntityDeletedEvent {
|
|
350
|
+
/** Entity that was deleted. */
|
|
351
|
+
deletedEntity?: string | null;
|
|
352
|
+
}
|
|
353
|
+
interface ActionEvent {
|
|
354
|
+
body?: string;
|
|
355
|
+
}
|
|
356
|
+
interface MessageEnvelope {
|
|
357
|
+
/**
|
|
358
|
+
* App instance ID.
|
|
359
|
+
* @format GUID
|
|
360
|
+
*/
|
|
361
|
+
instanceId?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
* Event type.
|
|
364
|
+
* @maxLength 150
|
|
365
|
+
*/
|
|
366
|
+
eventType?: string;
|
|
367
|
+
/** The identification type and identity data. */
|
|
368
|
+
identity?: IdentificationData;
|
|
369
|
+
/** Stringify payload. */
|
|
370
|
+
data?: string;
|
|
371
|
+
}
|
|
372
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
373
|
+
/**
|
|
374
|
+
* ID of a site visitor that has not logged in to the site.
|
|
375
|
+
* @format GUID
|
|
376
|
+
*/
|
|
377
|
+
anonymousVisitorId?: string;
|
|
378
|
+
/**
|
|
379
|
+
* ID of a site visitor that has logged in to the site.
|
|
380
|
+
* @format GUID
|
|
381
|
+
*/
|
|
382
|
+
memberId?: string;
|
|
383
|
+
/**
|
|
384
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
385
|
+
* @format GUID
|
|
386
|
+
*/
|
|
387
|
+
wixUserId?: string;
|
|
388
|
+
/**
|
|
389
|
+
* ID of an app.
|
|
390
|
+
* @format GUID
|
|
391
|
+
*/
|
|
392
|
+
appId?: string;
|
|
393
|
+
/** @readonly */
|
|
394
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
395
|
+
}
|
|
396
|
+
/** @oneof */
|
|
397
|
+
interface IdentificationDataIdOneOf {
|
|
398
|
+
/**
|
|
399
|
+
* ID of a site visitor that has not logged in to the site.
|
|
400
|
+
* @format GUID
|
|
401
|
+
*/
|
|
402
|
+
anonymousVisitorId?: string;
|
|
403
|
+
/**
|
|
404
|
+
* ID of a site visitor that has logged in to the site.
|
|
405
|
+
* @format GUID
|
|
406
|
+
*/
|
|
407
|
+
memberId?: string;
|
|
408
|
+
/**
|
|
409
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
410
|
+
* @format GUID
|
|
411
|
+
*/
|
|
412
|
+
wixUserId?: string;
|
|
413
|
+
/**
|
|
414
|
+
* ID of an app.
|
|
415
|
+
* @format GUID
|
|
416
|
+
*/
|
|
417
|
+
appId?: string;
|
|
418
|
+
}
|
|
419
|
+
declare enum WebhookIdentityType {
|
|
420
|
+
UNKNOWN = "UNKNOWN",
|
|
421
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
422
|
+
MEMBER = "MEMBER",
|
|
423
|
+
WIX_USER = "WIX_USER",
|
|
424
|
+
APP = "APP"
|
|
425
|
+
}
|
|
426
|
+
/** @enumType */
|
|
427
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
428
|
+
interface CreateOptions {
|
|
429
|
+
/** Badge description */
|
|
430
|
+
description?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Badge background color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
433
|
+
* @format COLOR_HEX
|
|
434
|
+
*/
|
|
435
|
+
backgroundColor: string;
|
|
436
|
+
/**
|
|
437
|
+
* Badge text color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
438
|
+
* @format COLOR_HEX
|
|
439
|
+
*/
|
|
440
|
+
textColor: string;
|
|
441
|
+
/** Badge icon SVG as 'https://...' */
|
|
442
|
+
icon?: string;
|
|
443
|
+
/** Indicates whether badge has permissions */
|
|
444
|
+
hasPermissions?: boolean;
|
|
445
|
+
}
|
|
446
|
+
interface UpdateOptions {
|
|
447
|
+
/** Badge title */
|
|
448
|
+
title?: string | null;
|
|
449
|
+
/** Badge description */
|
|
450
|
+
description?: string | null;
|
|
451
|
+
/**
|
|
452
|
+
* Badge background color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
453
|
+
* @format COLOR_HEX
|
|
454
|
+
*/
|
|
455
|
+
backgroundColor?: string | null;
|
|
456
|
+
/**
|
|
457
|
+
* Badge text color in 6-digit upper-cased color hex (e.g. #FFFFFF)
|
|
458
|
+
* @format COLOR_HEX
|
|
459
|
+
*/
|
|
460
|
+
textColor?: string | null;
|
|
461
|
+
/** Badge icon SVG as 'https://...' */
|
|
462
|
+
icon?: string | null;
|
|
463
|
+
/** Indicates whether badge has permissions */
|
|
464
|
+
hasPermissions?: boolean | null;
|
|
465
|
+
}
|
|
466
|
+
interface ListOptions {
|
|
467
|
+
/**
|
|
468
|
+
* Limit the number of badges to return
|
|
469
|
+
* @min 1
|
|
470
|
+
* @max 1000
|
|
471
|
+
*/
|
|
472
|
+
limit?: number | null;
|
|
473
|
+
/** Default offset is 0. */
|
|
474
|
+
offset?: number | null;
|
|
475
|
+
}
|
|
476
|
+
interface QueryOptions {
|
|
477
|
+
/** Filter criteria */
|
|
478
|
+
filter?: Record<string, any> | null;
|
|
479
|
+
/** Sorting criteria */
|
|
480
|
+
sort?: Sorting[];
|
|
481
|
+
/** Result paging data */
|
|
482
|
+
paging?: Paging;
|
|
483
|
+
}
|
|
484
|
+
interface CountOptions {
|
|
485
|
+
/** Filter criteria used for counting */
|
|
486
|
+
filter?: Record<string, any> | null;
|
|
487
|
+
}
|
|
488
|
+
interface UpdateBadgesOrderOptions {
|
|
489
|
+
/**
|
|
490
|
+
* Ordered badges ids
|
|
491
|
+
* @format GUID
|
|
492
|
+
* @minSize 1
|
|
493
|
+
*/
|
|
494
|
+
badgeIds?: string[];
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export { type ActionEvent, type AssignBadgeRequest, type AssignBadgeResponse, type Badge, type BadgeAssigned, type BadgeMemberCount, type BadgeUnassigned, type CountOptions, type CountRequest, type CountResponse, type CreateOptions, type CreateRequest, type CreateResponse, type DeleteRequest, type DeleteResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetBadgeCountersRequest, type GetBadgeCountersResponse, type GetRequest, type GetResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListMembersBadgeIdsRequest, type ListMembersBadgeIdsResponse, type ListMembersRequest, type ListMembersResponse, type ListOptions, type ListRequest, type ListResponse, type MemberBadgeIds, type MessageEnvelope, type Paging, type QueryOptions, type QueryRequest, type QueryResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type UnassignBadgeRequest, type UnassignBadgeResponse, type UpdateBadgesOrderOptions, type UpdateBadgesOrderRequest, type UpdateBadgesOrderResponse, type UpdateOptions, type UpdateRequest, type UpdateResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
|