@wix/auto_sdk_members_badges 1.0.48 → 1.0.49
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 +11 -33
- package/build/cjs/index.js +33 -359
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +11 -337
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +11 -33
- package/build/es/index.mjs +33 -349
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +11 -327
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -33
- package/build/internal/cjs/index.js +33 -359
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +11 -337
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -33
- package/build/internal/es/index.mjs +33 -349
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +11 -327
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
|
|
|
2
2
|
import { Badge, UpdateBadge, ListBadgesOptions, ListBadgesResponse, AssignBadgeResponse, ListMembersByBadgeOptions, ListMembersResponse, ListMembersBadgeIdsResponse, GetMemberCountsPerBadgeResponse, UpdateBadgesDisplayOrderResponse, BadgeAssignedEnvelope, BadgeUnassignedEnvelope } from './index.typings.js';
|
|
3
3
|
export { AccountInfo, AccountInfoMetadata, ActionEvent, AssignBadgeRequest, AssignBadgesRequest, AssignBadgesResponse, BadgeAssigned, BadgeMemberCount, BadgeUnassigned, BaseEventMetadata, CountBadgesRequest, CountBadgesResponse, CreateBadgeRequest, CreateBadgeResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteBadgeRequest, DeleteBadgeResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetBadgeRequest, GetBadgeResponse, GetMemberCountsPerBadgeRequest, IdentificationData, IdentificationDataIdOneOf, ListBadgesRequest, ListMembersBadgeIdsRequest, ListMembersRequest, ListMembersWithBadgesRequest, ListMembersWithBadgesResponse, MemberBadgeIds, MessageEnvelope, Paging, PagingMetadata, QueryBadgesRequest, QueryBadgesResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, UnassignBadgeRequest, UnassignBadgeResponse, UpdateBadgeRequest, UpdateBadgeResponse, UpdateBadgesDisplayOrderRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
|
-
declare function createBadge$1(httpClient: HttpClient
|
|
6
|
-
validateRequestSchema?: boolean;
|
|
7
|
-
}): CreateBadgeSignature;
|
|
5
|
+
declare function createBadge$1(httpClient: HttpClient): CreateBadgeSignature;
|
|
8
6
|
interface CreateBadgeSignature {
|
|
9
7
|
/**
|
|
10
8
|
* Creates a badge.
|
|
@@ -18,9 +16,7 @@ interface CreateBadgeSignature {
|
|
|
18
16
|
*/
|
|
19
17
|
(badge: NonNullablePaths<Badge, `backgroundColor` | `textColor` | `title`, 2>): Promise<NonNullablePaths<Badge, `_id`, 2>>;
|
|
20
18
|
}
|
|
21
|
-
declare function updateBadge$1(httpClient: HttpClient
|
|
22
|
-
validateRequestSchema?: boolean;
|
|
23
|
-
}): UpdateBadgeSignature;
|
|
19
|
+
declare function updateBadge$1(httpClient: HttpClient): UpdateBadgeSignature;
|
|
24
20
|
interface UpdateBadgeSignature {
|
|
25
21
|
/**
|
|
26
22
|
* Updates a badge.
|
|
@@ -32,9 +28,7 @@ interface UpdateBadgeSignature {
|
|
|
32
28
|
*/
|
|
33
29
|
(_id: string, badge: UpdateBadge): Promise<NonNullablePaths<Badge, `_id`, 2>>;
|
|
34
30
|
}
|
|
35
|
-
declare function listBadges$1(httpClient: HttpClient
|
|
36
|
-
validateRequestSchema?: boolean;
|
|
37
|
-
}): ListBadgesSignature;
|
|
31
|
+
declare function listBadges$1(httpClient: HttpClient): ListBadgesSignature;
|
|
38
32
|
interface ListBadgesSignature {
|
|
39
33
|
/**
|
|
40
34
|
* Retrieves up to 1,000 badges, given the requested paging.
|
|
@@ -46,9 +40,7 @@ interface ListBadgesSignature {
|
|
|
46
40
|
*/
|
|
47
41
|
(options?: ListBadgesOptions): Promise<NonNullablePaths<ListBadgesResponse, `badges` | `badges.${number}._id`, 4>>;
|
|
48
42
|
}
|
|
49
|
-
declare function getBadge$1(httpClient: HttpClient
|
|
50
|
-
validateRequestSchema?: boolean;
|
|
51
|
-
}): GetBadgeSignature;
|
|
43
|
+
declare function getBadge$1(httpClient: HttpClient): GetBadgeSignature;
|
|
52
44
|
interface GetBadgeSignature {
|
|
53
45
|
/**
|
|
54
46
|
* Retrieves a badge.
|
|
@@ -60,9 +52,7 @@ interface GetBadgeSignature {
|
|
|
60
52
|
*/
|
|
61
53
|
(_id: string): Promise<NonNullablePaths<Badge, `_id`, 2>>;
|
|
62
54
|
}
|
|
63
|
-
declare function deleteBadge$1(httpClient: HttpClient
|
|
64
|
-
validateRequestSchema?: boolean;
|
|
65
|
-
}): DeleteBadgeSignature;
|
|
55
|
+
declare function deleteBadge$1(httpClient: HttpClient): DeleteBadgeSignature;
|
|
66
56
|
interface DeleteBadgeSignature {
|
|
67
57
|
/**
|
|
68
58
|
* Deletes a badge.
|
|
@@ -71,9 +61,7 @@ interface DeleteBadgeSignature {
|
|
|
71
61
|
*/
|
|
72
62
|
(_id: string): Promise<void>;
|
|
73
63
|
}
|
|
74
|
-
declare function assignBadge$1(httpClient: HttpClient
|
|
75
|
-
validateRequestSchema?: boolean;
|
|
76
|
-
}): AssignBadgeSignature;
|
|
64
|
+
declare function assignBadge$1(httpClient: HttpClient): AssignBadgeSignature;
|
|
77
65
|
interface AssignBadgeSignature {
|
|
78
66
|
/**
|
|
79
67
|
* Assigns a badge to site members.
|
|
@@ -86,9 +74,7 @@ interface AssignBadgeSignature {
|
|
|
86
74
|
*/
|
|
87
75
|
(_id: string, memberIds: string[]): Promise<NonNullablePaths<AssignBadgeResponse, `memberIds`, 2>>;
|
|
88
76
|
}
|
|
89
|
-
declare function unassignBadge$1(httpClient: HttpClient
|
|
90
|
-
validateRequestSchema?: boolean;
|
|
91
|
-
}): UnassignBadgeSignature;
|
|
77
|
+
declare function unassignBadge$1(httpClient: HttpClient): UnassignBadgeSignature;
|
|
92
78
|
interface UnassignBadgeSignature {
|
|
93
79
|
/**
|
|
94
80
|
* Removes an assigned badge from multiple site members.
|
|
@@ -100,9 +86,7 @@ interface UnassignBadgeSignature {
|
|
|
100
86
|
*/
|
|
101
87
|
(_id: string, memberIds: string[]): Promise<void>;
|
|
102
88
|
}
|
|
103
|
-
declare function listMembersByBadge$1(httpClient: HttpClient
|
|
104
|
-
validateRequestSchema?: boolean;
|
|
105
|
-
}): ListMembersByBadgeSignature;
|
|
89
|
+
declare function listMembersByBadge$1(httpClient: HttpClient): ListMembersByBadgeSignature;
|
|
106
90
|
interface ListMembersByBadgeSignature {
|
|
107
91
|
/**
|
|
108
92
|
* Retrieves up to 1,000 site members assigned to a badge.
|
|
@@ -115,9 +99,7 @@ interface ListMembersByBadgeSignature {
|
|
|
115
99
|
*/
|
|
116
100
|
(_id: string, options?: ListMembersByBadgeOptions): Promise<NonNullablePaths<ListMembersResponse, `memberIds`, 2>>;
|
|
117
101
|
}
|
|
118
|
-
declare function listBadgesPerMember$1(httpClient: HttpClient
|
|
119
|
-
validateRequestSchema?: boolean;
|
|
120
|
-
}): ListBadgesPerMemberSignature;
|
|
102
|
+
declare function listBadgesPerMember$1(httpClient: HttpClient): ListBadgesPerMemberSignature;
|
|
121
103
|
interface ListBadgesPerMemberSignature {
|
|
122
104
|
/**
|
|
123
105
|
* Retrieves badges assigned to specified members.
|
|
@@ -130,9 +112,7 @@ interface ListBadgesPerMemberSignature {
|
|
|
130
112
|
*/
|
|
131
113
|
(memberIds: string[]): Promise<NonNullablePaths<ListMembersBadgeIdsResponse, `memberBadgeIds` | `memberBadgeIds.${number}.memberId`, 4>>;
|
|
132
114
|
}
|
|
133
|
-
declare function getMemberCountsPerBadge$1(httpClient: HttpClient
|
|
134
|
-
validateRequestSchema?: boolean;
|
|
135
|
-
}): GetMemberCountsPerBadgeSignature;
|
|
115
|
+
declare function getMemberCountsPerBadge$1(httpClient: HttpClient): GetMemberCountsPerBadgeSignature;
|
|
136
116
|
interface GetMemberCountsPerBadgeSignature {
|
|
137
117
|
/**
|
|
138
118
|
* Retrieves a member count per badge.
|
|
@@ -142,9 +122,7 @@ interface GetMemberCountsPerBadgeSignature {
|
|
|
142
122
|
*/
|
|
143
123
|
(): Promise<NonNullablePaths<GetMemberCountsPerBadgeResponse, `badgeMemberCounts` | `badgeMemberCounts.${number}.badgeId` | `badgeMemberCounts.${number}.memberCount`, 4>>;
|
|
144
124
|
}
|
|
145
|
-
declare function updateBadgesDisplayOrder$1(httpClient: HttpClient
|
|
146
|
-
validateRequestSchema?: boolean;
|
|
147
|
-
}): UpdateBadgesDisplayOrderSignature;
|
|
125
|
+
declare function updateBadgesDisplayOrder$1(httpClient: HttpClient): UpdateBadgesDisplayOrderSignature;
|
|
148
126
|
interface UpdateBadgesDisplayOrderSignature {
|
|
149
127
|
/**
|
|
150
128
|
* Updates the display order of badges.
|
package/build/cjs/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// index.ts
|
|
@@ -433,289 +423,6 @@ function updateBadgesDisplayOrder(payload) {
|
|
|
433
423
|
return __updateBadgesDisplayOrder;
|
|
434
424
|
}
|
|
435
425
|
|
|
436
|
-
// src/badges-v3-badge-badges.schemas.ts
|
|
437
|
-
var z = __toESM(require("zod"));
|
|
438
|
-
var CreateBadgeRequest = z.object({
|
|
439
|
-
badge: z.object({
|
|
440
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
441
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
442
|
-
"Must be a valid GUID"
|
|
443
|
-
).optional(),
|
|
444
|
-
title: z.string().describe("Text displayed on the badge."),
|
|
445
|
-
description: z.string().describe("Badge description.").optional().nullable(),
|
|
446
|
-
backgroundColor: z.string().describe(
|
|
447
|
-
"Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
|
|
448
|
-
),
|
|
449
|
-
textColor: z.string().describe(
|
|
450
|
-
"Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
|
|
451
|
-
),
|
|
452
|
-
icon: z.string().describe(
|
|
453
|
-
"URL of the badge icon image. <br/><br/>\n\nIt is recommended to use an `SVG` image format as it's resolution independent and looks good at any scale."
|
|
454
|
-
).optional().nullable(),
|
|
455
|
-
permissionsEnabled: z.boolean().describe(
|
|
456
|
-
"Whether the badge has special permissions\nto access specific members-only pages. <br/><br/>\nWhen `true`, members with the badge receive special permissions,\nand Wix users can\n[manage badge permissions in the dashboard](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges?tabs=Dashboard-2#managing-member-badges).\nWhen `false`, members with the badge receive no special permissions."
|
|
457
|
-
).optional().nullable(),
|
|
458
|
-
slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
|
|
459
|
-
_createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
|
|
460
|
-
_updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
|
|
461
|
-
}).describe("Badge to create.")
|
|
462
|
-
});
|
|
463
|
-
var CreateBadgeResponse = z.object({
|
|
464
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
465
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
466
|
-
"Must be a valid GUID"
|
|
467
|
-
).optional(),
|
|
468
|
-
title: z.string().describe("Text displayed on the badge.").optional().nullable(),
|
|
469
|
-
description: z.string().describe("Badge description.").optional().nullable(),
|
|
470
|
-
backgroundColor: z.string().describe(
|
|
471
|
-
"Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
|
|
472
|
-
).optional().nullable(),
|
|
473
|
-
textColor: z.string().describe(
|
|
474
|
-
"Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
|
|
475
|
-
).optional().nullable(),
|
|
476
|
-
icon: z.string().describe(
|
|
477
|
-
"URL of the badge icon image. <br/><br/>\n\nIt is recommended to use an `SVG` image format as it's resolution independent and looks good at any scale."
|
|
478
|
-
).optional().nullable(),
|
|
479
|
-
permissionsEnabled: z.boolean().describe(
|
|
480
|
-
"Whether the badge has special permissions\nto access specific members-only pages. <br/><br/>\nWhen `true`, members with the badge receive special permissions,\nand Wix users can\n[manage badge permissions in the dashboard](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges?tabs=Dashboard-2#managing-member-badges).\nWhen `false`, members with the badge receive no special permissions."
|
|
481
|
-
).optional().nullable(),
|
|
482
|
-
slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
|
|
483
|
-
_createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
|
|
484
|
-
_updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
|
|
485
|
-
});
|
|
486
|
-
var UpdateBadgeRequest = z.object({
|
|
487
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
488
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
489
|
-
"Must be a valid GUID"
|
|
490
|
-
),
|
|
491
|
-
badge: z.object({
|
|
492
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
493
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
494
|
-
"Must be a valid GUID"
|
|
495
|
-
).optional(),
|
|
496
|
-
title: z.string().describe("Text displayed on the badge.").optional().nullable(),
|
|
497
|
-
description: z.string().describe("Badge description.").optional().nullable(),
|
|
498
|
-
backgroundColor: z.string().describe(
|
|
499
|
-
"Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
|
|
500
|
-
).optional().nullable(),
|
|
501
|
-
textColor: z.string().describe(
|
|
502
|
-
"Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
|
|
503
|
-
).optional().nullable(),
|
|
504
|
-
icon: z.string().describe(
|
|
505
|
-
"URL of the badge icon image. <br/><br/>\n\nIt is recommended to use an `SVG` image format as it's resolution independent and looks good at any scale."
|
|
506
|
-
).optional().nullable(),
|
|
507
|
-
permissionsEnabled: z.boolean().describe(
|
|
508
|
-
"Whether the badge has special permissions\nto access specific members-only pages. <br/><br/>\nWhen `true`, members with the badge receive special permissions,\nand Wix users can\n[manage badge permissions in the dashboard](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges?tabs=Dashboard-2#managing-member-badges).\nWhen `false`, members with the badge receive no special permissions."
|
|
509
|
-
).optional().nullable(),
|
|
510
|
-
slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
|
|
511
|
-
_createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
|
|
512
|
-
_updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
|
|
513
|
-
}).describe("Badge to update.")
|
|
514
|
-
});
|
|
515
|
-
var UpdateBadgeResponse = z.object({
|
|
516
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
517
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
518
|
-
"Must be a valid GUID"
|
|
519
|
-
).optional(),
|
|
520
|
-
title: z.string().describe("Text displayed on the badge.").optional().nullable(),
|
|
521
|
-
description: z.string().describe("Badge description.").optional().nullable(),
|
|
522
|
-
backgroundColor: z.string().describe(
|
|
523
|
-
"Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
|
|
524
|
-
).optional().nullable(),
|
|
525
|
-
textColor: z.string().describe(
|
|
526
|
-
"Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
|
|
527
|
-
).optional().nullable(),
|
|
528
|
-
icon: z.string().describe(
|
|
529
|
-
"URL of the badge icon image. <br/><br/>\n\nIt is recommended to use an `SVG` image format as it's resolution independent and looks good at any scale."
|
|
530
|
-
).optional().nullable(),
|
|
531
|
-
permissionsEnabled: z.boolean().describe(
|
|
532
|
-
"Whether the badge has special permissions\nto access specific members-only pages. <br/><br/>\nWhen `true`, members with the badge receive special permissions,\nand Wix users can\n[manage badge permissions in the dashboard](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges?tabs=Dashboard-2#managing-member-badges).\nWhen `false`, members with the badge receive no special permissions."
|
|
533
|
-
).optional().nullable(),
|
|
534
|
-
slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
|
|
535
|
-
_createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
|
|
536
|
-
_updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
|
|
537
|
-
});
|
|
538
|
-
var ListBadgesRequest = z.object({
|
|
539
|
-
options: z.object({
|
|
540
|
-
paging: z.object({
|
|
541
|
-
limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
|
|
542
|
-
offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
|
|
543
|
-
}).describe(
|
|
544
|
-
"Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
|
|
545
|
-
).optional()
|
|
546
|
-
}).optional()
|
|
547
|
-
});
|
|
548
|
-
var ListBadgesResponse = z.object({
|
|
549
|
-
badges: z.array(
|
|
550
|
-
z.object({
|
|
551
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
552
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
553
|
-
"Must be a valid GUID"
|
|
554
|
-
).optional(),
|
|
555
|
-
title: z.string().describe("Text displayed on the badge.").optional().nullable(),
|
|
556
|
-
description: z.string().describe("Badge description.").optional().nullable(),
|
|
557
|
-
backgroundColor: z.string().describe(
|
|
558
|
-
"Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
|
|
559
|
-
).optional().nullable(),
|
|
560
|
-
textColor: z.string().describe(
|
|
561
|
-
"Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
|
|
562
|
-
).optional().nullable(),
|
|
563
|
-
icon: z.string().describe(
|
|
564
|
-
"URL of the badge icon image. <br/><br/>\n\nIt is recommended to use an `SVG` image format as it's resolution independent and looks good at any scale."
|
|
565
|
-
).optional().nullable(),
|
|
566
|
-
permissionsEnabled: z.boolean().describe(
|
|
567
|
-
"Whether the badge has special permissions\nto access specific members-only pages. <br/><br/>\nWhen `true`, members with the badge receive special permissions,\nand Wix users can\n[manage badge permissions in the dashboard](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges?tabs=Dashboard-2#managing-member-badges).\nWhen `false`, members with the badge receive no special permissions."
|
|
568
|
-
).optional().nullable(),
|
|
569
|
-
slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
|
|
570
|
-
_createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
|
|
571
|
-
_updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
|
|
572
|
-
})
|
|
573
|
-
).optional(),
|
|
574
|
-
metadata: z.object({
|
|
575
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
576
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
577
|
-
total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
|
|
578
|
-
tooManyToCount: z.boolean().describe(
|
|
579
|
-
"Flag that indicates the server failed to calculate the `total` field."
|
|
580
|
-
).optional().nullable()
|
|
581
|
-
}).describe("Metadata for the paginated results.").optional()
|
|
582
|
-
});
|
|
583
|
-
var GetBadgeRequest = z.object({
|
|
584
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
585
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
586
|
-
"Must be a valid GUID"
|
|
587
|
-
)
|
|
588
|
-
});
|
|
589
|
-
var GetBadgeResponse = z.object({
|
|
590
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
591
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
592
|
-
"Must be a valid GUID"
|
|
593
|
-
).optional(),
|
|
594
|
-
title: z.string().describe("Text displayed on the badge.").optional().nullable(),
|
|
595
|
-
description: z.string().describe("Badge description.").optional().nullable(),
|
|
596
|
-
backgroundColor: z.string().describe(
|
|
597
|
-
"Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
|
|
598
|
-
).optional().nullable(),
|
|
599
|
-
textColor: z.string().describe(
|
|
600
|
-
"Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
|
|
601
|
-
).optional().nullable(),
|
|
602
|
-
icon: z.string().describe(
|
|
603
|
-
"URL of the badge icon image. <br/><br/>\n\nIt is recommended to use an `SVG` image format as it's resolution independent and looks good at any scale."
|
|
604
|
-
).optional().nullable(),
|
|
605
|
-
permissionsEnabled: z.boolean().describe(
|
|
606
|
-
"Whether the badge has special permissions\nto access specific members-only pages. <br/><br/>\nWhen `true`, members with the badge receive special permissions,\nand Wix users can\n[manage badge permissions in the dashboard](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges?tabs=Dashboard-2#managing-member-badges).\nWhen `false`, members with the badge receive no special permissions."
|
|
607
|
-
).optional().nullable(),
|
|
608
|
-
slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
|
|
609
|
-
_createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
|
|
610
|
-
_updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
|
|
611
|
-
});
|
|
612
|
-
var DeleteBadgeRequest = z.object({
|
|
613
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
614
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
615
|
-
"Must be a valid GUID"
|
|
616
|
-
)
|
|
617
|
-
});
|
|
618
|
-
var DeleteBadgeResponse = z.object({});
|
|
619
|
-
var AssignBadgeRequest = z.object({
|
|
620
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
621
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
622
|
-
"Must be a valid GUID"
|
|
623
|
-
),
|
|
624
|
-
memberIds: z.array(z.string())
|
|
625
|
-
});
|
|
626
|
-
var AssignBadgeResponse = z.object({
|
|
627
|
-
memberIds: z.array(z.string()).optional()
|
|
628
|
-
});
|
|
629
|
-
var UnassignBadgeRequest = z.object({
|
|
630
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
631
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
632
|
-
"Must be a valid GUID"
|
|
633
|
-
),
|
|
634
|
-
memberIds: z.array(z.string())
|
|
635
|
-
});
|
|
636
|
-
var UnassignBadgeResponse = z.object({});
|
|
637
|
-
var ListMembersByBadgeRequest = z.object({
|
|
638
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
639
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
640
|
-
"Must be a valid GUID"
|
|
641
|
-
),
|
|
642
|
-
options: z.object({
|
|
643
|
-
paging: z.object({
|
|
644
|
-
limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
|
|
645
|
-
offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
|
|
646
|
-
}).describe(
|
|
647
|
-
"Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
|
|
648
|
-
).optional()
|
|
649
|
-
}).optional()
|
|
650
|
-
});
|
|
651
|
-
var ListMembersByBadgeResponse = z.object({
|
|
652
|
-
memberIds: z.array(z.string()).optional(),
|
|
653
|
-
metadata: z.object({
|
|
654
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
655
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
656
|
-
total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
|
|
657
|
-
tooManyToCount: z.boolean().describe(
|
|
658
|
-
"Flag that indicates the server failed to calculate the `total` field."
|
|
659
|
-
).optional().nullable()
|
|
660
|
-
}).describe("Metadata for the paginated results.").optional()
|
|
661
|
-
});
|
|
662
|
-
var ListBadgesPerMemberRequest = z.object({
|
|
663
|
-
memberIds: z.array(z.string()).min(1).max(100)
|
|
664
|
-
});
|
|
665
|
-
var ListBadgesPerMemberResponse = z.object({
|
|
666
|
-
memberBadgeIds: z.array(
|
|
667
|
-
z.object({
|
|
668
|
-
memberId: z.string().describe("Member ID.").regex(
|
|
669
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
670
|
-
"Must be a valid GUID"
|
|
671
|
-
).optional(),
|
|
672
|
-
badgeIds: z.array(z.string()).optional()
|
|
673
|
-
})
|
|
674
|
-
).optional()
|
|
675
|
-
});
|
|
676
|
-
var GetMemberCountsPerBadgeRequest = z.object({});
|
|
677
|
-
var GetMemberCountsPerBadgeResponse = z.object({
|
|
678
|
-
badgeMemberCounts: z.array(
|
|
679
|
-
z.object({
|
|
680
|
-
badgeId: z.string().describe("Badge ID.").regex(
|
|
681
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
682
|
-
"Must be a valid GUID"
|
|
683
|
-
).optional(),
|
|
684
|
-
memberCount: z.number().int().describe("Badge member count.").optional()
|
|
685
|
-
})
|
|
686
|
-
).optional()
|
|
687
|
-
});
|
|
688
|
-
var UpdateBadgesDisplayOrderRequest = z.object({
|
|
689
|
-
badgeIds: z.array(z.string()).min(1)
|
|
690
|
-
});
|
|
691
|
-
var UpdateBadgesDisplayOrderResponse = z.object({
|
|
692
|
-
badges: z.array(
|
|
693
|
-
z.object({
|
|
694
|
-
_id: z.string().describe("Badge ID.").regex(
|
|
695
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
696
|
-
"Must be a valid GUID"
|
|
697
|
-
).optional(),
|
|
698
|
-
title: z.string().describe("Text displayed on the badge.").optional().nullable(),
|
|
699
|
-
description: z.string().describe("Badge description.").optional().nullable(),
|
|
700
|
-
backgroundColor: z.string().describe(
|
|
701
|
-
"Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
|
|
702
|
-
).optional().nullable(),
|
|
703
|
-
textColor: z.string().describe(
|
|
704
|
-
"Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
|
|
705
|
-
).optional().nullable(),
|
|
706
|
-
icon: z.string().describe(
|
|
707
|
-
"URL of the badge icon image. <br/><br/>\n\nIt is recommended to use an `SVG` image format as it's resolution independent and looks good at any scale."
|
|
708
|
-
).optional().nullable(),
|
|
709
|
-
permissionsEnabled: z.boolean().describe(
|
|
710
|
-
"Whether the badge has special permissions\nto access specific members-only pages. <br/><br/>\nWhen `true`, members with the badge receive special permissions,\nand Wix users can\n[manage badge permissions in the dashboard](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges?tabs=Dashboard-2#managing-member-badges).\nWhen `false`, members with the badge receive no special permissions."
|
|
711
|
-
).optional().nullable(),
|
|
712
|
-
slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
|
|
713
|
-
_createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
|
|
714
|
-
_updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
|
|
715
|
-
})
|
|
716
|
-
).optional()
|
|
717
|
-
});
|
|
718
|
-
|
|
719
426
|
// src/badges-v3-badge-badges.universal.ts
|
|
720
427
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
721
428
|
SortOrder2["ASC"] = "ASC";
|
|
@@ -731,10 +438,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
731
438
|
return WebhookIdentityType2;
|
|
732
439
|
})(WebhookIdentityType || {});
|
|
733
440
|
async function createBadge2(badge) {
|
|
734
|
-
const { httpClient, sideEffects
|
|
735
|
-
if (validateRequestSchema) {
|
|
736
|
-
CreateBadgeRequest.parse({ badge });
|
|
737
|
-
}
|
|
441
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
738
442
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ badge });
|
|
739
443
|
const reqOpts = createBadge(payload);
|
|
740
444
|
sideEffects?.onSiteCall?.();
|
|
@@ -757,10 +461,7 @@ async function createBadge2(badge) {
|
|
|
757
461
|
}
|
|
758
462
|
}
|
|
759
463
|
async function updateBadge2(_id, badge) {
|
|
760
|
-
const { httpClient, sideEffects
|
|
761
|
-
if (validateRequestSchema) {
|
|
762
|
-
UpdateBadgeRequest.parse({ _id, badge });
|
|
763
|
-
}
|
|
464
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
764
465
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
765
466
|
badge: { ...badge, id: _id }
|
|
766
467
|
});
|
|
@@ -785,10 +486,7 @@ async function updateBadge2(_id, badge) {
|
|
|
785
486
|
}
|
|
786
487
|
}
|
|
787
488
|
async function listBadges2(options) {
|
|
788
|
-
const { httpClient, sideEffects
|
|
789
|
-
if (validateRequestSchema) {
|
|
790
|
-
ListBadgesRequest.parse({ options });
|
|
791
|
-
}
|
|
489
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
792
490
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
793
491
|
paging: options?.paging
|
|
794
492
|
});
|
|
@@ -813,10 +511,7 @@ async function listBadges2(options) {
|
|
|
813
511
|
}
|
|
814
512
|
}
|
|
815
513
|
async function getBadge2(_id) {
|
|
816
|
-
const { httpClient, sideEffects
|
|
817
|
-
if (validateRequestSchema) {
|
|
818
|
-
GetBadgeRequest.parse({ _id });
|
|
819
|
-
}
|
|
514
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
820
515
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
821
516
|
const reqOpts = getBadge(payload);
|
|
822
517
|
sideEffects?.onSiteCall?.();
|
|
@@ -839,10 +534,7 @@ async function getBadge2(_id) {
|
|
|
839
534
|
}
|
|
840
535
|
}
|
|
841
536
|
async function deleteBadge2(_id) {
|
|
842
|
-
const { httpClient, sideEffects
|
|
843
|
-
if (validateRequestSchema) {
|
|
844
|
-
DeleteBadgeRequest.parse({ _id });
|
|
845
|
-
}
|
|
537
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
846
538
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
847
539
|
const reqOpts = deleteBadge(payload);
|
|
848
540
|
sideEffects?.onSiteCall?.();
|
|
@@ -864,10 +556,7 @@ async function deleteBadge2(_id) {
|
|
|
864
556
|
}
|
|
865
557
|
}
|
|
866
558
|
async function assignBadge2(_id, memberIds) {
|
|
867
|
-
const { httpClient, sideEffects
|
|
868
|
-
if (validateRequestSchema) {
|
|
869
|
-
AssignBadgeRequest.parse({ _id, memberIds });
|
|
870
|
-
}
|
|
559
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
871
560
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
872
561
|
id: _id,
|
|
873
562
|
memberIds
|
|
@@ -893,10 +582,7 @@ async function assignBadge2(_id, memberIds) {
|
|
|
893
582
|
}
|
|
894
583
|
}
|
|
895
584
|
async function unassignBadge2(_id, memberIds) {
|
|
896
|
-
const { httpClient, sideEffects
|
|
897
|
-
if (validateRequestSchema) {
|
|
898
|
-
UnassignBadgeRequest.parse({ _id, memberIds });
|
|
899
|
-
}
|
|
585
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
900
586
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
901
587
|
id: _id,
|
|
902
588
|
memberIds
|
|
@@ -921,10 +607,7 @@ async function unassignBadge2(_id, memberIds) {
|
|
|
921
607
|
}
|
|
922
608
|
}
|
|
923
609
|
async function listMembersByBadge(_id, options) {
|
|
924
|
-
const { httpClient, sideEffects
|
|
925
|
-
if (validateRequestSchema) {
|
|
926
|
-
ListMembersByBadgeRequest.parse({ _id, options });
|
|
927
|
-
}
|
|
610
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
928
611
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
929
612
|
id: _id,
|
|
930
613
|
paging: options?.paging
|
|
@@ -950,10 +633,7 @@ async function listMembersByBadge(_id, options) {
|
|
|
950
633
|
}
|
|
951
634
|
}
|
|
952
635
|
async function listBadgesPerMember(memberIds) {
|
|
953
|
-
const { httpClient, sideEffects
|
|
954
|
-
if (validateRequestSchema) {
|
|
955
|
-
ListBadgesPerMemberRequest.parse({ memberIds });
|
|
956
|
-
}
|
|
636
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
957
637
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
958
638
|
memberIds
|
|
959
639
|
});
|
|
@@ -978,10 +658,7 @@ async function listBadgesPerMember(memberIds) {
|
|
|
978
658
|
}
|
|
979
659
|
}
|
|
980
660
|
async function getMemberCountsPerBadge2() {
|
|
981
|
-
const { httpClient, sideEffects
|
|
982
|
-
if (validateRequestSchema) {
|
|
983
|
-
GetMemberCountsPerBadgeRequest.parse({});
|
|
984
|
-
}
|
|
661
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
985
662
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
986
663
|
const reqOpts = getMemberCountsPerBadge(payload);
|
|
987
664
|
sideEffects?.onSiteCall?.();
|
|
@@ -1004,10 +681,7 @@ async function getMemberCountsPerBadge2() {
|
|
|
1004
681
|
}
|
|
1005
682
|
}
|
|
1006
683
|
async function updateBadgesDisplayOrder2(badgeIds) {
|
|
1007
|
-
const { httpClient, sideEffects
|
|
1008
|
-
if (validateRequestSchema) {
|
|
1009
|
-
UpdateBadgesDisplayOrderRequest.parse({ badgeIds });
|
|
1010
|
-
}
|
|
684
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1011
685
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ badgeIds });
|
|
1012
686
|
const reqOpts = updateBadgesDisplayOrder(payload);
|
|
1013
687
|
sideEffects?.onSiteCall?.();
|
|
@@ -1031,84 +705,84 @@ async function updateBadgesDisplayOrder2(badgeIds) {
|
|
|
1031
705
|
}
|
|
1032
706
|
|
|
1033
707
|
// src/badges-v3-badge-badges.public.ts
|
|
1034
|
-
function createBadge3(httpClient
|
|
708
|
+
function createBadge3(httpClient) {
|
|
1035
709
|
return (badge) => createBadge2(
|
|
1036
710
|
badge,
|
|
1037
711
|
// @ts-ignore
|
|
1038
|
-
{ httpClient
|
|
712
|
+
{ httpClient }
|
|
1039
713
|
);
|
|
1040
714
|
}
|
|
1041
|
-
function updateBadge3(httpClient
|
|
715
|
+
function updateBadge3(httpClient) {
|
|
1042
716
|
return (_id, badge) => updateBadge2(
|
|
1043
717
|
_id,
|
|
1044
718
|
badge,
|
|
1045
719
|
// @ts-ignore
|
|
1046
|
-
{ httpClient
|
|
720
|
+
{ httpClient }
|
|
1047
721
|
);
|
|
1048
722
|
}
|
|
1049
|
-
function listBadges3(httpClient
|
|
723
|
+
function listBadges3(httpClient) {
|
|
1050
724
|
return (options) => listBadges2(
|
|
1051
725
|
options,
|
|
1052
726
|
// @ts-ignore
|
|
1053
|
-
{ httpClient
|
|
727
|
+
{ httpClient }
|
|
1054
728
|
);
|
|
1055
729
|
}
|
|
1056
|
-
function getBadge3(httpClient
|
|
730
|
+
function getBadge3(httpClient) {
|
|
1057
731
|
return (_id) => getBadge2(
|
|
1058
732
|
_id,
|
|
1059
733
|
// @ts-ignore
|
|
1060
|
-
{ httpClient
|
|
734
|
+
{ httpClient }
|
|
1061
735
|
);
|
|
1062
736
|
}
|
|
1063
|
-
function deleteBadge3(httpClient
|
|
737
|
+
function deleteBadge3(httpClient) {
|
|
1064
738
|
return (_id) => deleteBadge2(
|
|
1065
739
|
_id,
|
|
1066
740
|
// @ts-ignore
|
|
1067
|
-
{ httpClient
|
|
741
|
+
{ httpClient }
|
|
1068
742
|
);
|
|
1069
743
|
}
|
|
1070
|
-
function assignBadge3(httpClient
|
|
744
|
+
function assignBadge3(httpClient) {
|
|
1071
745
|
return (_id, memberIds) => assignBadge2(
|
|
1072
746
|
_id,
|
|
1073
747
|
memberIds,
|
|
1074
748
|
// @ts-ignore
|
|
1075
|
-
{ httpClient
|
|
749
|
+
{ httpClient }
|
|
1076
750
|
);
|
|
1077
751
|
}
|
|
1078
|
-
function unassignBadge3(httpClient
|
|
752
|
+
function unassignBadge3(httpClient) {
|
|
1079
753
|
return (_id, memberIds) => unassignBadge2(
|
|
1080
754
|
_id,
|
|
1081
755
|
memberIds,
|
|
1082
756
|
// @ts-ignore
|
|
1083
|
-
{ httpClient
|
|
757
|
+
{ httpClient }
|
|
1084
758
|
);
|
|
1085
759
|
}
|
|
1086
|
-
function listMembersByBadge2(httpClient
|
|
760
|
+
function listMembersByBadge2(httpClient) {
|
|
1087
761
|
return (_id, options) => listMembersByBadge(
|
|
1088
762
|
_id,
|
|
1089
763
|
options,
|
|
1090
764
|
// @ts-ignore
|
|
1091
|
-
{ httpClient
|
|
765
|
+
{ httpClient }
|
|
1092
766
|
);
|
|
1093
767
|
}
|
|
1094
|
-
function listBadgesPerMember2(httpClient
|
|
768
|
+
function listBadgesPerMember2(httpClient) {
|
|
1095
769
|
return (memberIds) => listBadgesPerMember(
|
|
1096
770
|
memberIds,
|
|
1097
771
|
// @ts-ignore
|
|
1098
|
-
{ httpClient
|
|
772
|
+
{ httpClient }
|
|
1099
773
|
);
|
|
1100
774
|
}
|
|
1101
|
-
function getMemberCountsPerBadge3(httpClient
|
|
775
|
+
function getMemberCountsPerBadge3(httpClient) {
|
|
1102
776
|
return () => getMemberCountsPerBadge2(
|
|
1103
777
|
// @ts-ignore
|
|
1104
|
-
{ httpClient
|
|
778
|
+
{ httpClient }
|
|
1105
779
|
);
|
|
1106
780
|
}
|
|
1107
|
-
function updateBadgesDisplayOrder3(httpClient
|
|
781
|
+
function updateBadgesDisplayOrder3(httpClient) {
|
|
1108
782
|
return (badgeIds) => updateBadgesDisplayOrder2(
|
|
1109
783
|
badgeIds,
|
|
1110
784
|
// @ts-ignore
|
|
1111
|
-
{ httpClient
|
|
785
|
+
{ httpClient }
|
|
1112
786
|
);
|
|
1113
787
|
}
|
|
1114
788
|
var onBadgeAssigned = (0, import_sdk_types.EventDefinition)(
|