@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,628 @@
|
|
|
1
|
+
// src/badges-v2-badge-badges-v-2.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
5
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
6
|
+
function resolveComWixpressBadgesV2BadgesServiceUrl(opts) {
|
|
7
|
+
const domainToMappings = {
|
|
8
|
+
"www.wixapis.com": [
|
|
9
|
+
{
|
|
10
|
+
srcPath: "/members/v2/badges",
|
|
11
|
+
destPath: "/v2/badges"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"*.dev.wix-code.com": [
|
|
15
|
+
{
|
|
16
|
+
srcPath: "/_api/members-badges-server/v2",
|
|
17
|
+
destPath: "/v2"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"www._base_domain_": [
|
|
21
|
+
{
|
|
22
|
+
srcPath: "/_api/members-badges-server/v2",
|
|
23
|
+
destPath: "/v2"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"manage._base_domain_": [
|
|
27
|
+
{
|
|
28
|
+
srcPath: "/_api/members-badges-server/v2",
|
|
29
|
+
destPath: "/v2"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
_: [
|
|
33
|
+
{
|
|
34
|
+
srcPath: "/_api/members-badges-server/v2",
|
|
35
|
+
destPath: "/v2"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
40
|
+
}
|
|
41
|
+
var PACKAGE_NAME = "@wix/auto_sdk_badges_badges-v-2";
|
|
42
|
+
function create(payload) {
|
|
43
|
+
function __create({ host }) {
|
|
44
|
+
const metadata = {
|
|
45
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
46
|
+
method: "POST",
|
|
47
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.Create",
|
|
48
|
+
packageName: PACKAGE_NAME,
|
|
49
|
+
migrationOptions: {
|
|
50
|
+
optInTransformResponse: true
|
|
51
|
+
},
|
|
52
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
53
|
+
protoPath: "/v2/badges",
|
|
54
|
+
data: payload,
|
|
55
|
+
host
|
|
56
|
+
}),
|
|
57
|
+
data: payload,
|
|
58
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
59
|
+
{
|
|
60
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
61
|
+
paths: [{ path: "badge.createDate" }, { path: "badge.updateDate" }]
|
|
62
|
+
}
|
|
63
|
+
])
|
|
64
|
+
};
|
|
65
|
+
return metadata;
|
|
66
|
+
}
|
|
67
|
+
return __create;
|
|
68
|
+
}
|
|
69
|
+
function update(payload) {
|
|
70
|
+
function __update({ host }) {
|
|
71
|
+
const metadata = {
|
|
72
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
73
|
+
method: "PATCH",
|
|
74
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.Update",
|
|
75
|
+
packageName: PACKAGE_NAME,
|
|
76
|
+
migrationOptions: {
|
|
77
|
+
optInTransformResponse: true
|
|
78
|
+
},
|
|
79
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
80
|
+
protoPath: "/v2/badges/{id}",
|
|
81
|
+
data: payload,
|
|
82
|
+
host
|
|
83
|
+
}),
|
|
84
|
+
data: payload,
|
|
85
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
86
|
+
{
|
|
87
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
88
|
+
paths: [{ path: "badge.createDate" }, { path: "badge.updateDate" }]
|
|
89
|
+
}
|
|
90
|
+
])
|
|
91
|
+
};
|
|
92
|
+
return metadata;
|
|
93
|
+
}
|
|
94
|
+
return __update;
|
|
95
|
+
}
|
|
96
|
+
function list(payload) {
|
|
97
|
+
function __list({ host }) {
|
|
98
|
+
const metadata = {
|
|
99
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
100
|
+
method: "GET",
|
|
101
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.List",
|
|
102
|
+
packageName: PACKAGE_NAME,
|
|
103
|
+
migrationOptions: {
|
|
104
|
+
optInTransformResponse: true
|
|
105
|
+
},
|
|
106
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
107
|
+
protoPath: "/v2/badges",
|
|
108
|
+
data: payload,
|
|
109
|
+
host
|
|
110
|
+
}),
|
|
111
|
+
params: toURLSearchParams(payload),
|
|
112
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
113
|
+
{
|
|
114
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
115
|
+
paths: [
|
|
116
|
+
{ path: "badges.createDate" },
|
|
117
|
+
{ path: "badges.updateDate" }
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
])
|
|
121
|
+
};
|
|
122
|
+
return metadata;
|
|
123
|
+
}
|
|
124
|
+
return __list;
|
|
125
|
+
}
|
|
126
|
+
function query(payload) {
|
|
127
|
+
function __query({ host }) {
|
|
128
|
+
const metadata = {
|
|
129
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
130
|
+
method: "POST",
|
|
131
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.Query",
|
|
132
|
+
packageName: PACKAGE_NAME,
|
|
133
|
+
migrationOptions: {
|
|
134
|
+
optInTransformResponse: true
|
|
135
|
+
},
|
|
136
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
137
|
+
protoPath: "/v2/badges/query",
|
|
138
|
+
data: payload,
|
|
139
|
+
host
|
|
140
|
+
}),
|
|
141
|
+
data: payload,
|
|
142
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
143
|
+
{
|
|
144
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
145
|
+
paths: [
|
|
146
|
+
{ path: "badges.createDate" },
|
|
147
|
+
{ path: "badges.updateDate" }
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
])
|
|
151
|
+
};
|
|
152
|
+
return metadata;
|
|
153
|
+
}
|
|
154
|
+
return __query;
|
|
155
|
+
}
|
|
156
|
+
function get(payload) {
|
|
157
|
+
function __get({ host }) {
|
|
158
|
+
const metadata = {
|
|
159
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
160
|
+
method: "GET",
|
|
161
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.Get",
|
|
162
|
+
packageName: PACKAGE_NAME,
|
|
163
|
+
migrationOptions: {
|
|
164
|
+
optInTransformResponse: true
|
|
165
|
+
},
|
|
166
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
167
|
+
protoPath: "/v2/badges/{id}",
|
|
168
|
+
data: payload,
|
|
169
|
+
host
|
|
170
|
+
}),
|
|
171
|
+
params: toURLSearchParams(payload),
|
|
172
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
173
|
+
{
|
|
174
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
175
|
+
paths: [{ path: "badge.createDate" }, { path: "badge.updateDate" }]
|
|
176
|
+
}
|
|
177
|
+
])
|
|
178
|
+
};
|
|
179
|
+
return metadata;
|
|
180
|
+
}
|
|
181
|
+
return __get;
|
|
182
|
+
}
|
|
183
|
+
function _delete(payload) {
|
|
184
|
+
function ___delete({ host }) {
|
|
185
|
+
const metadata = {
|
|
186
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
187
|
+
method: "DELETE",
|
|
188
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService._delete",
|
|
189
|
+
packageName: PACKAGE_NAME,
|
|
190
|
+
migrationOptions: {
|
|
191
|
+
optInTransformResponse: true
|
|
192
|
+
},
|
|
193
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
194
|
+
protoPath: "/v2/badges/{id}",
|
|
195
|
+
data: payload,
|
|
196
|
+
host
|
|
197
|
+
}),
|
|
198
|
+
params: toURLSearchParams(payload)
|
|
199
|
+
};
|
|
200
|
+
return metadata;
|
|
201
|
+
}
|
|
202
|
+
return ___delete;
|
|
203
|
+
}
|
|
204
|
+
function count(payload) {
|
|
205
|
+
function __count({ host }) {
|
|
206
|
+
const metadata = {
|
|
207
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
208
|
+
method: "POST",
|
|
209
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.Count",
|
|
210
|
+
packageName: PACKAGE_NAME,
|
|
211
|
+
migrationOptions: {
|
|
212
|
+
optInTransformResponse: true
|
|
213
|
+
},
|
|
214
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
215
|
+
protoPath: "/v2/badges/count",
|
|
216
|
+
data: payload,
|
|
217
|
+
host
|
|
218
|
+
}),
|
|
219
|
+
data: payload
|
|
220
|
+
};
|
|
221
|
+
return metadata;
|
|
222
|
+
}
|
|
223
|
+
return __count;
|
|
224
|
+
}
|
|
225
|
+
function assignBadge(payload) {
|
|
226
|
+
function __assignBadge({ host }) {
|
|
227
|
+
const metadata = {
|
|
228
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
229
|
+
method: "POST",
|
|
230
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.AssignBadge",
|
|
231
|
+
packageName: PACKAGE_NAME,
|
|
232
|
+
migrationOptions: {
|
|
233
|
+
optInTransformResponse: true
|
|
234
|
+
},
|
|
235
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
236
|
+
protoPath: "/v2/badges/{id}/members",
|
|
237
|
+
data: payload,
|
|
238
|
+
host
|
|
239
|
+
}),
|
|
240
|
+
data: payload
|
|
241
|
+
};
|
|
242
|
+
return metadata;
|
|
243
|
+
}
|
|
244
|
+
return __assignBadge;
|
|
245
|
+
}
|
|
246
|
+
function unassignBadge(payload) {
|
|
247
|
+
function __unassignBadge({ host }) {
|
|
248
|
+
const metadata = {
|
|
249
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
250
|
+
method: "DELETE",
|
|
251
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.UnassignBadge",
|
|
252
|
+
packageName: PACKAGE_NAME,
|
|
253
|
+
migrationOptions: {
|
|
254
|
+
optInTransformResponse: true
|
|
255
|
+
},
|
|
256
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
257
|
+
protoPath: "/v2/badges/{id}/members",
|
|
258
|
+
data: payload,
|
|
259
|
+
host
|
|
260
|
+
}),
|
|
261
|
+
params: toURLSearchParams(payload)
|
|
262
|
+
};
|
|
263
|
+
return metadata;
|
|
264
|
+
}
|
|
265
|
+
return __unassignBadge;
|
|
266
|
+
}
|
|
267
|
+
function listMembers(payload) {
|
|
268
|
+
function __listMembers({ host }) {
|
|
269
|
+
const metadata = {
|
|
270
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
271
|
+
method: "GET",
|
|
272
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.ListMembers",
|
|
273
|
+
packageName: PACKAGE_NAME,
|
|
274
|
+
migrationOptions: {
|
|
275
|
+
optInTransformResponse: true
|
|
276
|
+
},
|
|
277
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
278
|
+
protoPath: "/v2/badges/{id}/members",
|
|
279
|
+
data: payload,
|
|
280
|
+
host
|
|
281
|
+
}),
|
|
282
|
+
params: toURLSearchParams(payload)
|
|
283
|
+
};
|
|
284
|
+
return metadata;
|
|
285
|
+
}
|
|
286
|
+
return __listMembers;
|
|
287
|
+
}
|
|
288
|
+
function listMembersBadgeIds(payload) {
|
|
289
|
+
function __listMembersBadgeIds({ host }) {
|
|
290
|
+
const metadata = {
|
|
291
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
292
|
+
method: "POST",
|
|
293
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.ListMembersBadgeIds",
|
|
294
|
+
packageName: PACKAGE_NAME,
|
|
295
|
+
migrationOptions: {
|
|
296
|
+
optInTransformResponse: true
|
|
297
|
+
},
|
|
298
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
299
|
+
protoPath: "/v2/badges/members",
|
|
300
|
+
data: payload,
|
|
301
|
+
host
|
|
302
|
+
}),
|
|
303
|
+
data: payload
|
|
304
|
+
};
|
|
305
|
+
return metadata;
|
|
306
|
+
}
|
|
307
|
+
return __listMembersBadgeIds;
|
|
308
|
+
}
|
|
309
|
+
function getBadgeCounters(payload) {
|
|
310
|
+
function __getBadgeCounters({ host }) {
|
|
311
|
+
const metadata = {
|
|
312
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
313
|
+
method: "GET",
|
|
314
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.GetBadgeCounters",
|
|
315
|
+
packageName: PACKAGE_NAME,
|
|
316
|
+
migrationOptions: {
|
|
317
|
+
optInTransformResponse: true
|
|
318
|
+
},
|
|
319
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
320
|
+
protoPath: "/v2/badges/members/count",
|
|
321
|
+
data: payload,
|
|
322
|
+
host
|
|
323
|
+
}),
|
|
324
|
+
params: toURLSearchParams(payload)
|
|
325
|
+
};
|
|
326
|
+
return metadata;
|
|
327
|
+
}
|
|
328
|
+
return __getBadgeCounters;
|
|
329
|
+
}
|
|
330
|
+
function updateBadgesOrder(payload) {
|
|
331
|
+
function __updateBadgesOrder({ host }) {
|
|
332
|
+
const metadata = {
|
|
333
|
+
entityFqdn: "wix.badges.v2.badge",
|
|
334
|
+
method: "PATCH",
|
|
335
|
+
methodFqn: "com.wixpress.badges.v2.BadgesService.UpdateBadgesOrder",
|
|
336
|
+
packageName: PACKAGE_NAME,
|
|
337
|
+
migrationOptions: {
|
|
338
|
+
optInTransformResponse: true
|
|
339
|
+
},
|
|
340
|
+
url: resolveComWixpressBadgesV2BadgesServiceUrl({
|
|
341
|
+
protoPath: "/v2/badges/order",
|
|
342
|
+
data: payload,
|
|
343
|
+
host
|
|
344
|
+
}),
|
|
345
|
+
data: payload,
|
|
346
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
347
|
+
{
|
|
348
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
349
|
+
paths: [
|
|
350
|
+
{ path: "badges.createDate" },
|
|
351
|
+
{ path: "badges.updateDate" }
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
])
|
|
355
|
+
};
|
|
356
|
+
return metadata;
|
|
357
|
+
}
|
|
358
|
+
return __updateBadgesOrder;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// src/badges-v2-badge-badges-v-2.types.ts
|
|
362
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
363
|
+
SortOrder2["ASC"] = "ASC";
|
|
364
|
+
SortOrder2["DESC"] = "DESC";
|
|
365
|
+
return SortOrder2;
|
|
366
|
+
})(SortOrder || {});
|
|
367
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
368
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
369
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
370
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
371
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
372
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
373
|
+
return WebhookIdentityType2;
|
|
374
|
+
})(WebhookIdentityType || {});
|
|
375
|
+
|
|
376
|
+
// src/badges-v2-badge-badges-v-2.meta.ts
|
|
377
|
+
function create2() {
|
|
378
|
+
const payload = {};
|
|
379
|
+
const getRequestOptions = create(payload);
|
|
380
|
+
const getUrl = (context) => {
|
|
381
|
+
const { url } = getRequestOptions(context);
|
|
382
|
+
return url;
|
|
383
|
+
};
|
|
384
|
+
return {
|
|
385
|
+
getUrl,
|
|
386
|
+
httpMethod: "POST",
|
|
387
|
+
path: "/v2/badges",
|
|
388
|
+
pathParams: {},
|
|
389
|
+
__requestType: null,
|
|
390
|
+
__originalRequestType: null,
|
|
391
|
+
__responseType: null,
|
|
392
|
+
__originalResponseType: null
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function update2() {
|
|
396
|
+
const payload = { id: ":id" };
|
|
397
|
+
const getRequestOptions = update(payload);
|
|
398
|
+
const getUrl = (context) => {
|
|
399
|
+
const { url } = getRequestOptions(context);
|
|
400
|
+
return url;
|
|
401
|
+
};
|
|
402
|
+
return {
|
|
403
|
+
getUrl,
|
|
404
|
+
httpMethod: "PATCH",
|
|
405
|
+
path: "/v2/badges/{id}",
|
|
406
|
+
pathParams: { id: "id" },
|
|
407
|
+
__requestType: null,
|
|
408
|
+
__originalRequestType: null,
|
|
409
|
+
__responseType: null,
|
|
410
|
+
__originalResponseType: null
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
function list2() {
|
|
414
|
+
const payload = {};
|
|
415
|
+
const getRequestOptions = list(payload);
|
|
416
|
+
const getUrl = (context) => {
|
|
417
|
+
const { url } = getRequestOptions(context);
|
|
418
|
+
return url;
|
|
419
|
+
};
|
|
420
|
+
return {
|
|
421
|
+
getUrl,
|
|
422
|
+
httpMethod: "GET",
|
|
423
|
+
path: "/v2/badges",
|
|
424
|
+
pathParams: {},
|
|
425
|
+
__requestType: null,
|
|
426
|
+
__originalRequestType: null,
|
|
427
|
+
__responseType: null,
|
|
428
|
+
__originalResponseType: null
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
function query2() {
|
|
432
|
+
const payload = {};
|
|
433
|
+
const getRequestOptions = query(payload);
|
|
434
|
+
const getUrl = (context) => {
|
|
435
|
+
const { url } = getRequestOptions(context);
|
|
436
|
+
return url;
|
|
437
|
+
};
|
|
438
|
+
return {
|
|
439
|
+
getUrl,
|
|
440
|
+
httpMethod: "POST",
|
|
441
|
+
path: "/v2/badges/query",
|
|
442
|
+
pathParams: {},
|
|
443
|
+
__requestType: null,
|
|
444
|
+
__originalRequestType: null,
|
|
445
|
+
__responseType: null,
|
|
446
|
+
__originalResponseType: null
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
function get2() {
|
|
450
|
+
const payload = { id: ":id" };
|
|
451
|
+
const getRequestOptions = get(payload);
|
|
452
|
+
const getUrl = (context) => {
|
|
453
|
+
const { url } = getRequestOptions(context);
|
|
454
|
+
return url;
|
|
455
|
+
};
|
|
456
|
+
return {
|
|
457
|
+
getUrl,
|
|
458
|
+
httpMethod: "GET",
|
|
459
|
+
path: "/v2/badges/{id}",
|
|
460
|
+
pathParams: { id: "id" },
|
|
461
|
+
__requestType: null,
|
|
462
|
+
__originalRequestType: null,
|
|
463
|
+
__responseType: null,
|
|
464
|
+
__originalResponseType: null
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
function _delete2() {
|
|
468
|
+
const payload = { id: ":id" };
|
|
469
|
+
const getRequestOptions = _delete(payload);
|
|
470
|
+
const getUrl = (context) => {
|
|
471
|
+
const { url } = getRequestOptions(context);
|
|
472
|
+
return url;
|
|
473
|
+
};
|
|
474
|
+
return {
|
|
475
|
+
getUrl,
|
|
476
|
+
httpMethod: "DELETE",
|
|
477
|
+
path: "/v2/badges/{id}",
|
|
478
|
+
pathParams: { id: "id" },
|
|
479
|
+
__requestType: null,
|
|
480
|
+
__originalRequestType: null,
|
|
481
|
+
__responseType: null,
|
|
482
|
+
__originalResponseType: null
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
function count2() {
|
|
486
|
+
const payload = {};
|
|
487
|
+
const getRequestOptions = count(payload);
|
|
488
|
+
const getUrl = (context) => {
|
|
489
|
+
const { url } = getRequestOptions(context);
|
|
490
|
+
return url;
|
|
491
|
+
};
|
|
492
|
+
return {
|
|
493
|
+
getUrl,
|
|
494
|
+
httpMethod: "POST",
|
|
495
|
+
path: "/v2/badges/count",
|
|
496
|
+
pathParams: {},
|
|
497
|
+
__requestType: null,
|
|
498
|
+
__originalRequestType: null,
|
|
499
|
+
__responseType: null,
|
|
500
|
+
__originalResponseType: null
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
function assignBadge2() {
|
|
504
|
+
const payload = { id: ":id" };
|
|
505
|
+
const getRequestOptions = assignBadge(payload);
|
|
506
|
+
const getUrl = (context) => {
|
|
507
|
+
const { url } = getRequestOptions(context);
|
|
508
|
+
return url;
|
|
509
|
+
};
|
|
510
|
+
return {
|
|
511
|
+
getUrl,
|
|
512
|
+
httpMethod: "POST",
|
|
513
|
+
path: "/v2/badges/{id}/members",
|
|
514
|
+
pathParams: { id: "id" },
|
|
515
|
+
__requestType: null,
|
|
516
|
+
__originalRequestType: null,
|
|
517
|
+
__responseType: null,
|
|
518
|
+
__originalResponseType: null
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
function unassignBadge2() {
|
|
522
|
+
const payload = { id: ":id" };
|
|
523
|
+
const getRequestOptions = unassignBadge(payload);
|
|
524
|
+
const getUrl = (context) => {
|
|
525
|
+
const { url } = getRequestOptions(context);
|
|
526
|
+
return url;
|
|
527
|
+
};
|
|
528
|
+
return {
|
|
529
|
+
getUrl,
|
|
530
|
+
httpMethod: "DELETE",
|
|
531
|
+
path: "/v2/badges/{id}/members",
|
|
532
|
+
pathParams: { id: "id" },
|
|
533
|
+
__requestType: null,
|
|
534
|
+
__originalRequestType: null,
|
|
535
|
+
__responseType: null,
|
|
536
|
+
__originalResponseType: null
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
function listMembers2() {
|
|
540
|
+
const payload = { id: ":id" };
|
|
541
|
+
const getRequestOptions = listMembers(payload);
|
|
542
|
+
const getUrl = (context) => {
|
|
543
|
+
const { url } = getRequestOptions(context);
|
|
544
|
+
return url;
|
|
545
|
+
};
|
|
546
|
+
return {
|
|
547
|
+
getUrl,
|
|
548
|
+
httpMethod: "GET",
|
|
549
|
+
path: "/v2/badges/{id}/members",
|
|
550
|
+
pathParams: { id: "id" },
|
|
551
|
+
__requestType: null,
|
|
552
|
+
__originalRequestType: null,
|
|
553
|
+
__responseType: null,
|
|
554
|
+
__originalResponseType: null
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
function listMembersBadgeIds2() {
|
|
558
|
+
const payload = {};
|
|
559
|
+
const getRequestOptions = listMembersBadgeIds(payload);
|
|
560
|
+
const getUrl = (context) => {
|
|
561
|
+
const { url } = getRequestOptions(context);
|
|
562
|
+
return url;
|
|
563
|
+
};
|
|
564
|
+
return {
|
|
565
|
+
getUrl,
|
|
566
|
+
httpMethod: "POST",
|
|
567
|
+
path: "/v2/badges/members",
|
|
568
|
+
pathParams: {},
|
|
569
|
+
__requestType: null,
|
|
570
|
+
__originalRequestType: null,
|
|
571
|
+
__responseType: null,
|
|
572
|
+
__originalResponseType: null
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
function getBadgeCounters2() {
|
|
576
|
+
const payload = {};
|
|
577
|
+
const getRequestOptions = getBadgeCounters(payload);
|
|
578
|
+
const getUrl = (context) => {
|
|
579
|
+
const { url } = getRequestOptions(context);
|
|
580
|
+
return url;
|
|
581
|
+
};
|
|
582
|
+
return {
|
|
583
|
+
getUrl,
|
|
584
|
+
httpMethod: "GET",
|
|
585
|
+
path: "/v2/badges/members/count",
|
|
586
|
+
pathParams: {},
|
|
587
|
+
__requestType: null,
|
|
588
|
+
__originalRequestType: null,
|
|
589
|
+
__responseType: null,
|
|
590
|
+
__originalResponseType: null
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
function updateBadgesOrder2() {
|
|
594
|
+
const payload = {};
|
|
595
|
+
const getRequestOptions = updateBadgesOrder(payload);
|
|
596
|
+
const getUrl = (context) => {
|
|
597
|
+
const { url } = getRequestOptions(context);
|
|
598
|
+
return url;
|
|
599
|
+
};
|
|
600
|
+
return {
|
|
601
|
+
getUrl,
|
|
602
|
+
httpMethod: "PATCH",
|
|
603
|
+
path: "/v2/badges/order",
|
|
604
|
+
pathParams: {},
|
|
605
|
+
__requestType: null,
|
|
606
|
+
__originalRequestType: null,
|
|
607
|
+
__responseType: null,
|
|
608
|
+
__originalResponseType: null
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
export {
|
|
612
|
+
SortOrder as SortOrderOriginal,
|
|
613
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
614
|
+
_delete2 as _delete,
|
|
615
|
+
assignBadge2 as assignBadge,
|
|
616
|
+
count2 as count,
|
|
617
|
+
create2 as create,
|
|
618
|
+
get2 as get,
|
|
619
|
+
getBadgeCounters2 as getBadgeCounters,
|
|
620
|
+
list2 as list,
|
|
621
|
+
listMembers2 as listMembers,
|
|
622
|
+
listMembersBadgeIds2 as listMembersBadgeIds,
|
|
623
|
+
query2 as query,
|
|
624
|
+
unassignBadge2 as unassignBadge,
|
|
625
|
+
update2 as update,
|
|
626
|
+
updateBadgesOrder2 as updateBadgesOrder
|
|
627
|
+
};
|
|
628
|
+
//# sourceMappingURL=meta.mjs.map
|