@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.
@@ -380,289 +380,6 @@ function updateBadgesDisplayOrder(payload) {
380
380
  return __updateBadgesDisplayOrder;
381
381
  }
382
382
 
383
- // src/badges-v3-badge-badges.schemas.ts
384
- import * as z from "zod";
385
- var CreateBadgeRequest = z.object({
386
- badge: z.object({
387
- _id: z.string().describe("Badge ID.").regex(
388
- /^[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}$/,
389
- "Must be a valid GUID"
390
- ).optional(),
391
- title: z.string().describe("Text displayed on the badge."),
392
- description: z.string().describe("Badge description.").optional().nullable(),
393
- backgroundColor: z.string().describe(
394
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
395
- ),
396
- textColor: z.string().describe(
397
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
398
- ),
399
- icon: z.string().describe(
400
- "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."
401
- ).optional().nullable(),
402
- permissionsEnabled: z.boolean().describe(
403
- "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."
404
- ).optional().nullable(),
405
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
406
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
407
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
408
- }).describe("Badge to create.")
409
- });
410
- var CreateBadgeResponse = z.object({
411
- _id: z.string().describe("Badge ID.").regex(
412
- /^[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}$/,
413
- "Must be a valid GUID"
414
- ).optional(),
415
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
416
- description: z.string().describe("Badge description.").optional().nullable(),
417
- backgroundColor: z.string().describe(
418
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
419
- ).optional().nullable(),
420
- textColor: z.string().describe(
421
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
422
- ).optional().nullable(),
423
- icon: z.string().describe(
424
- "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."
425
- ).optional().nullable(),
426
- permissionsEnabled: z.boolean().describe(
427
- "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."
428
- ).optional().nullable(),
429
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
430
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
431
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
432
- });
433
- var UpdateBadgeRequest = z.object({
434
- _id: z.string().describe("Badge ID.").regex(
435
- /^[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}$/,
436
- "Must be a valid GUID"
437
- ),
438
- badge: z.object({
439
- _id: z.string().describe("Badge ID.").regex(
440
- /^[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}$/,
441
- "Must be a valid GUID"
442
- ).optional(),
443
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
444
- description: z.string().describe("Badge description.").optional().nullable(),
445
- backgroundColor: z.string().describe(
446
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
447
- ).optional().nullable(),
448
- textColor: z.string().describe(
449
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
450
- ).optional().nullable(),
451
- icon: z.string().describe(
452
- "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."
453
- ).optional().nullable(),
454
- permissionsEnabled: z.boolean().describe(
455
- "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."
456
- ).optional().nullable(),
457
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
458
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
459
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
460
- }).describe("Badge to update.")
461
- });
462
- var UpdateBadgeResponse = z.object({
463
- _id: z.string().describe("Badge ID.").regex(
464
- /^[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}$/,
465
- "Must be a valid GUID"
466
- ).optional(),
467
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
468
- description: z.string().describe("Badge description.").optional().nullable(),
469
- backgroundColor: z.string().describe(
470
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
471
- ).optional().nullable(),
472
- textColor: z.string().describe(
473
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
474
- ).optional().nullable(),
475
- icon: z.string().describe(
476
- "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."
477
- ).optional().nullable(),
478
- permissionsEnabled: z.boolean().describe(
479
- "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."
480
- ).optional().nullable(),
481
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
482
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
483
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
484
- });
485
- var ListBadgesRequest = z.object({
486
- options: z.object({
487
- paging: z.object({
488
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
489
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
490
- }).describe(
491
- "Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
492
- ).optional()
493
- }).optional()
494
- });
495
- var ListBadgesResponse = z.object({
496
- badges: z.array(
497
- z.object({
498
- _id: z.string().describe("Badge ID.").regex(
499
- /^[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}$/,
500
- "Must be a valid GUID"
501
- ).optional(),
502
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
503
- description: z.string().describe("Badge description.").optional().nullable(),
504
- backgroundColor: z.string().describe(
505
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
506
- ).optional().nullable(),
507
- textColor: z.string().describe(
508
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
509
- ).optional().nullable(),
510
- icon: z.string().describe(
511
- "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."
512
- ).optional().nullable(),
513
- permissionsEnabled: z.boolean().describe(
514
- "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."
515
- ).optional().nullable(),
516
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
517
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
518
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
519
- })
520
- ).optional(),
521
- metadata: z.object({
522
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
523
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
524
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
525
- tooManyToCount: z.boolean().describe(
526
- "Flag that indicates the server failed to calculate the `total` field."
527
- ).optional().nullable()
528
- }).describe("Metadata for the paginated results.").optional()
529
- });
530
- var GetBadgeRequest = z.object({
531
- _id: z.string().describe("Badge ID.").regex(
532
- /^[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}$/,
533
- "Must be a valid GUID"
534
- )
535
- });
536
- var GetBadgeResponse = z.object({
537
- _id: z.string().describe("Badge ID.").regex(
538
- /^[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}$/,
539
- "Must be a valid GUID"
540
- ).optional(),
541
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
542
- description: z.string().describe("Badge description.").optional().nullable(),
543
- backgroundColor: z.string().describe(
544
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
545
- ).optional().nullable(),
546
- textColor: z.string().describe(
547
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
548
- ).optional().nullable(),
549
- icon: z.string().describe(
550
- "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."
551
- ).optional().nullable(),
552
- permissionsEnabled: z.boolean().describe(
553
- "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."
554
- ).optional().nullable(),
555
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
556
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
557
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
558
- });
559
- var DeleteBadgeRequest = z.object({
560
- _id: z.string().describe("Badge ID.").regex(
561
- /^[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}$/,
562
- "Must be a valid GUID"
563
- )
564
- });
565
- var DeleteBadgeResponse = z.object({});
566
- var AssignBadgeRequest = z.object({
567
- _id: z.string().describe("Badge ID.").regex(
568
- /^[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}$/,
569
- "Must be a valid GUID"
570
- ),
571
- memberIds: z.array(z.string())
572
- });
573
- var AssignBadgeResponse = z.object({
574
- memberIds: z.array(z.string()).optional()
575
- });
576
- var UnassignBadgeRequest = z.object({
577
- _id: z.string().describe("Badge ID.").regex(
578
- /^[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}$/,
579
- "Must be a valid GUID"
580
- ),
581
- memberIds: z.array(z.string())
582
- });
583
- var UnassignBadgeResponse = z.object({});
584
- var ListMembersByBadgeRequest = z.object({
585
- _id: z.string().describe("Badge ID.").regex(
586
- /^[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}$/,
587
- "Must be a valid GUID"
588
- ),
589
- options: z.object({
590
- paging: z.object({
591
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
592
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
593
- }).describe(
594
- "Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
595
- ).optional()
596
- }).optional()
597
- });
598
- var ListMembersByBadgeResponse = z.object({
599
- memberIds: z.array(z.string()).optional(),
600
- metadata: z.object({
601
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
602
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
603
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
604
- tooManyToCount: z.boolean().describe(
605
- "Flag that indicates the server failed to calculate the `total` field."
606
- ).optional().nullable()
607
- }).describe("Metadata for the paginated results.").optional()
608
- });
609
- var ListBadgesPerMemberRequest = z.object({
610
- memberIds: z.array(z.string()).min(1).max(100)
611
- });
612
- var ListBadgesPerMemberResponse = z.object({
613
- memberBadgeIds: z.array(
614
- z.object({
615
- memberId: z.string().describe("Member ID.").regex(
616
- /^[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}$/,
617
- "Must be a valid GUID"
618
- ).optional(),
619
- badgeIds: z.array(z.string()).optional()
620
- })
621
- ).optional()
622
- });
623
- var GetMemberCountsPerBadgeRequest = z.object({});
624
- var GetMemberCountsPerBadgeResponse = z.object({
625
- badgeMemberCounts: z.array(
626
- z.object({
627
- badgeId: z.string().describe("Badge ID.").regex(
628
- /^[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}$/,
629
- "Must be a valid GUID"
630
- ).optional(),
631
- memberCount: z.number().int().describe("Badge member count.").optional()
632
- })
633
- ).optional()
634
- });
635
- var UpdateBadgesDisplayOrderRequest = z.object({
636
- badgeIds: z.array(z.string()).min(1)
637
- });
638
- var UpdateBadgesDisplayOrderResponse = z.object({
639
- badges: z.array(
640
- z.object({
641
- _id: z.string().describe("Badge ID.").regex(
642
- /^[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}$/,
643
- "Must be a valid GUID"
644
- ).optional(),
645
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
646
- description: z.string().describe("Badge description.").optional().nullable(),
647
- backgroundColor: z.string().describe(
648
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
649
- ).optional().nullable(),
650
- textColor: z.string().describe(
651
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
652
- ).optional().nullable(),
653
- icon: z.string().describe(
654
- "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."
655
- ).optional().nullable(),
656
- permissionsEnabled: z.boolean().describe(
657
- "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."
658
- ).optional().nullable(),
659
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
660
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
661
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
662
- })
663
- ).optional()
664
- });
665
-
666
383
  // src/badges-v3-badge-badges.universal.ts
667
384
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
668
385
  SortOrder2["ASC"] = "ASC";
@@ -678,10 +395,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
678
395
  return WebhookIdentityType2;
679
396
  })(WebhookIdentityType || {});
680
397
  async function createBadge2(badge) {
681
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
682
- if (validateRequestSchema) {
683
- CreateBadgeRequest.parse({ badge });
684
- }
398
+ const { httpClient, sideEffects } = arguments[1];
685
399
  const payload = renameKeysFromSDKRequestToRESTRequest({ badge });
686
400
  const reqOpts = createBadge(payload);
687
401
  sideEffects?.onSiteCall?.();
@@ -704,10 +418,7 @@ async function createBadge2(badge) {
704
418
  }
705
419
  }
706
420
  async function updateBadge2(_id, badge) {
707
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
708
- if (validateRequestSchema) {
709
- UpdateBadgeRequest.parse({ _id, badge });
710
- }
421
+ const { httpClient, sideEffects } = arguments[2];
711
422
  const payload = renameKeysFromSDKRequestToRESTRequest({
712
423
  badge: { ...badge, id: _id }
713
424
  });
@@ -732,10 +443,7 @@ async function updateBadge2(_id, badge) {
732
443
  }
733
444
  }
734
445
  async function listBadges2(options) {
735
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
736
- if (validateRequestSchema) {
737
- ListBadgesRequest.parse({ options });
738
- }
446
+ const { httpClient, sideEffects } = arguments[1];
739
447
  const payload = renameKeysFromSDKRequestToRESTRequest({
740
448
  paging: options?.paging
741
449
  });
@@ -760,10 +468,7 @@ async function listBadges2(options) {
760
468
  }
761
469
  }
762
470
  async function getBadge2(_id) {
763
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
764
- if (validateRequestSchema) {
765
- GetBadgeRequest.parse({ _id });
766
- }
471
+ const { httpClient, sideEffects } = arguments[1];
767
472
  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
768
473
  const reqOpts = getBadge(payload);
769
474
  sideEffects?.onSiteCall?.();
@@ -786,10 +491,7 @@ async function getBadge2(_id) {
786
491
  }
787
492
  }
788
493
  async function deleteBadge2(_id) {
789
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
790
- if (validateRequestSchema) {
791
- DeleteBadgeRequest.parse({ _id });
792
- }
494
+ const { httpClient, sideEffects } = arguments[1];
793
495
  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
794
496
  const reqOpts = deleteBadge(payload);
795
497
  sideEffects?.onSiteCall?.();
@@ -811,10 +513,7 @@ async function deleteBadge2(_id) {
811
513
  }
812
514
  }
813
515
  async function assignBadge2(_id, memberIds) {
814
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
815
- if (validateRequestSchema) {
816
- AssignBadgeRequest.parse({ _id, memberIds });
817
- }
516
+ const { httpClient, sideEffects } = arguments[2];
818
517
  const payload = renameKeysFromSDKRequestToRESTRequest({
819
518
  id: _id,
820
519
  memberIds
@@ -840,10 +539,7 @@ async function assignBadge2(_id, memberIds) {
840
539
  }
841
540
  }
842
541
  async function unassignBadge2(_id, memberIds) {
843
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
844
- if (validateRequestSchema) {
845
- UnassignBadgeRequest.parse({ _id, memberIds });
846
- }
542
+ const { httpClient, sideEffects } = arguments[2];
847
543
  const payload = renameKeysFromSDKRequestToRESTRequest({
848
544
  id: _id,
849
545
  memberIds
@@ -868,10 +564,7 @@ async function unassignBadge2(_id, memberIds) {
868
564
  }
869
565
  }
870
566
  async function listMembersByBadge(_id, options) {
871
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
872
- if (validateRequestSchema) {
873
- ListMembersByBadgeRequest.parse({ _id, options });
874
- }
567
+ const { httpClient, sideEffects } = arguments[2];
875
568
  const payload = renameKeysFromSDKRequestToRESTRequest({
876
569
  id: _id,
877
570
  paging: options?.paging
@@ -897,10 +590,7 @@ async function listMembersByBadge(_id, options) {
897
590
  }
898
591
  }
899
592
  async function listBadgesPerMember(memberIds) {
900
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
901
- if (validateRequestSchema) {
902
- ListBadgesPerMemberRequest.parse({ memberIds });
903
- }
593
+ const { httpClient, sideEffects } = arguments[1];
904
594
  const payload = renameKeysFromSDKRequestToRESTRequest({
905
595
  memberIds
906
596
  });
@@ -925,10 +615,7 @@ async function listBadgesPerMember(memberIds) {
925
615
  }
926
616
  }
927
617
  async function getMemberCountsPerBadge2() {
928
- const { httpClient, sideEffects, validateRequestSchema } = arguments[0];
929
- if (validateRequestSchema) {
930
- GetMemberCountsPerBadgeRequest.parse({});
931
- }
618
+ const { httpClient, sideEffects } = arguments[0];
932
619
  const payload = renameKeysFromSDKRequestToRESTRequest({});
933
620
  const reqOpts = getMemberCountsPerBadge(payload);
934
621
  sideEffects?.onSiteCall?.();
@@ -951,10 +638,7 @@ async function getMemberCountsPerBadge2() {
951
638
  }
952
639
  }
953
640
  async function updateBadgesDisplayOrder2(badgeIds) {
954
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
955
- if (validateRequestSchema) {
956
- UpdateBadgesDisplayOrderRequest.parse({ badgeIds });
957
- }
641
+ const { httpClient, sideEffects } = arguments[1];
958
642
  const payload = renameKeysFromSDKRequestToRESTRequest({ badgeIds });
959
643
  const reqOpts = updateBadgesDisplayOrder(payload);
960
644
  sideEffects?.onSiteCall?.();