@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.
@@ -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.typings.ts
@@ -425,289 +415,6 @@ function updateBadgesDisplayOrder(payload) {
425
415
  return __updateBadgesDisplayOrder;
426
416
  }
427
417
 
428
- // src/badges-v3-badge-badges.schemas.ts
429
- var z = __toESM(require("zod"));
430
- var CreateBadgeRequest = z.object({
431
- badge: z.object({
432
- _id: z.string().describe("Badge ID.").regex(
433
- /^[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}$/,
434
- "Must be a valid GUID"
435
- ).optional(),
436
- title: z.string().describe("Text displayed on the badge."),
437
- description: z.string().describe("Badge description.").optional().nullable(),
438
- backgroundColor: z.string().describe(
439
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
440
- ),
441
- textColor: z.string().describe(
442
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
443
- ),
444
- icon: z.string().describe(
445
- "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."
446
- ).optional().nullable(),
447
- permissionsEnabled: z.boolean().describe(
448
- "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."
449
- ).optional().nullable(),
450
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
451
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
452
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
453
- }).describe("Badge to create.")
454
- });
455
- var CreateBadgeResponse = z.object({
456
- _id: z.string().describe("Badge ID.").regex(
457
- /^[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}$/,
458
- "Must be a valid GUID"
459
- ).optional(),
460
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
461
- description: z.string().describe("Badge description.").optional().nullable(),
462
- backgroundColor: z.string().describe(
463
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
464
- ).optional().nullable(),
465
- textColor: z.string().describe(
466
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
467
- ).optional().nullable(),
468
- icon: z.string().describe(
469
- "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."
470
- ).optional().nullable(),
471
- permissionsEnabled: z.boolean().describe(
472
- "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."
473
- ).optional().nullable(),
474
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
475
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
476
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
477
- });
478
- var UpdateBadgeRequest = z.object({
479
- _id: z.string().describe("Badge ID.").regex(
480
- /^[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}$/,
481
- "Must be a valid GUID"
482
- ),
483
- badge: z.object({
484
- _id: z.string().describe("Badge ID.").regex(
485
- /^[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}$/,
486
- "Must be a valid GUID"
487
- ).optional(),
488
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
489
- description: z.string().describe("Badge description.").optional().nullable(),
490
- backgroundColor: z.string().describe(
491
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
492
- ).optional().nullable(),
493
- textColor: z.string().describe(
494
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
495
- ).optional().nullable(),
496
- icon: z.string().describe(
497
- "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."
498
- ).optional().nullable(),
499
- permissionsEnabled: z.boolean().describe(
500
- "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."
501
- ).optional().nullable(),
502
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
503
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
504
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
505
- }).describe("Badge to update.")
506
- });
507
- var UpdateBadgeResponse = z.object({
508
- _id: z.string().describe("Badge ID.").regex(
509
- /^[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}$/,
510
- "Must be a valid GUID"
511
- ).optional(),
512
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
513
- description: z.string().describe("Badge description.").optional().nullable(),
514
- backgroundColor: z.string().describe(
515
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
516
- ).optional().nullable(),
517
- textColor: z.string().describe(
518
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
519
- ).optional().nullable(),
520
- icon: z.string().describe(
521
- "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."
522
- ).optional().nullable(),
523
- permissionsEnabled: z.boolean().describe(
524
- "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."
525
- ).optional().nullable(),
526
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
527
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
528
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
529
- });
530
- var ListBadgesRequest = z.object({
531
- options: z.object({
532
- paging: z.object({
533
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
534
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
535
- }).describe(
536
- "Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
537
- ).optional()
538
- }).optional()
539
- });
540
- var ListBadgesResponse = z.object({
541
- badges: z.array(
542
- z.object({
543
- _id: z.string().describe("Badge ID.").regex(
544
- /^[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}$/,
545
- "Must be a valid GUID"
546
- ).optional(),
547
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
548
- description: z.string().describe("Badge description.").optional().nullable(),
549
- backgroundColor: z.string().describe(
550
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
551
- ).optional().nullable(),
552
- textColor: z.string().describe(
553
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
554
- ).optional().nullable(),
555
- icon: z.string().describe(
556
- "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."
557
- ).optional().nullable(),
558
- permissionsEnabled: z.boolean().describe(
559
- "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."
560
- ).optional().nullable(),
561
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
562
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
563
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
564
- })
565
- ).optional(),
566
- metadata: z.object({
567
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
568
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
569
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
570
- tooManyToCount: z.boolean().describe(
571
- "Flag that indicates the server failed to calculate the `total` field."
572
- ).optional().nullable()
573
- }).describe("Metadata for the paginated results.").optional()
574
- });
575
- var GetBadgeRequest = z.object({
576
- _id: z.string().describe("Badge ID.").regex(
577
- /^[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}$/,
578
- "Must be a valid GUID"
579
- )
580
- });
581
- var GetBadgeResponse = z.object({
582
- _id: z.string().describe("Badge ID.").regex(
583
- /^[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}$/,
584
- "Must be a valid GUID"
585
- ).optional(),
586
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
587
- description: z.string().describe("Badge description.").optional().nullable(),
588
- backgroundColor: z.string().describe(
589
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
590
- ).optional().nullable(),
591
- textColor: z.string().describe(
592
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
593
- ).optional().nullable(),
594
- icon: z.string().describe(
595
- "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."
596
- ).optional().nullable(),
597
- permissionsEnabled: z.boolean().describe(
598
- "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."
599
- ).optional().nullable(),
600
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
601
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
602
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
603
- });
604
- var DeleteBadgeRequest = z.object({
605
- _id: z.string().describe("Badge ID.").regex(
606
- /^[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}$/,
607
- "Must be a valid GUID"
608
- )
609
- });
610
- var DeleteBadgeResponse = z.object({});
611
- var AssignBadgeRequest = z.object({
612
- _id: z.string().describe("Badge ID.").regex(
613
- /^[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}$/,
614
- "Must be a valid GUID"
615
- ),
616
- memberIds: z.array(z.string())
617
- });
618
- var AssignBadgeResponse = z.object({
619
- memberIds: z.array(z.string()).optional()
620
- });
621
- var UnassignBadgeRequest = z.object({
622
- _id: z.string().describe("Badge ID.").regex(
623
- /^[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}$/,
624
- "Must be a valid GUID"
625
- ),
626
- memberIds: z.array(z.string())
627
- });
628
- var UnassignBadgeResponse = z.object({});
629
- var ListMembersByBadgeRequest = 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
- options: z.object({
635
- paging: z.object({
636
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
637
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
638
- }).describe(
639
- "Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
640
- ).optional()
641
- }).optional()
642
- });
643
- var ListMembersByBadgeResponse = z.object({
644
- memberIds: z.array(z.string()).optional(),
645
- metadata: z.object({
646
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
647
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
648
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
649
- tooManyToCount: z.boolean().describe(
650
- "Flag that indicates the server failed to calculate the `total` field."
651
- ).optional().nullable()
652
- }).describe("Metadata for the paginated results.").optional()
653
- });
654
- var ListBadgesPerMemberRequest = z.object({
655
- memberIds: z.array(z.string()).min(1).max(100)
656
- });
657
- var ListBadgesPerMemberResponse = z.object({
658
- memberBadgeIds: z.array(
659
- z.object({
660
- memberId: z.string().describe("Member ID.").regex(
661
- /^[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}$/,
662
- "Must be a valid GUID"
663
- ).optional(),
664
- badgeIds: z.array(z.string()).optional()
665
- })
666
- ).optional()
667
- });
668
- var GetMemberCountsPerBadgeRequest = z.object({});
669
- var GetMemberCountsPerBadgeResponse = z.object({
670
- badgeMemberCounts: z.array(
671
- z.object({
672
- badgeId: z.string().describe("Badge ID.").regex(
673
- /^[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}$/,
674
- "Must be a valid GUID"
675
- ).optional(),
676
- memberCount: z.number().int().describe("Badge member count.").optional()
677
- })
678
- ).optional()
679
- });
680
- var UpdateBadgesDisplayOrderRequest = z.object({
681
- badgeIds: z.array(z.string()).min(1)
682
- });
683
- var UpdateBadgesDisplayOrderResponse = z.object({
684
- badges: z.array(
685
- z.object({
686
- _id: z.string().describe("Badge ID.").regex(
687
- /^[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}$/,
688
- "Must be a valid GUID"
689
- ).optional(),
690
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
691
- description: z.string().describe("Badge description.").optional().nullable(),
692
- backgroundColor: z.string().describe(
693
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
694
- ).optional().nullable(),
695
- textColor: z.string().describe(
696
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
697
- ).optional().nullable(),
698
- icon: z.string().describe(
699
- "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."
700
- ).optional().nullable(),
701
- permissionsEnabled: z.boolean().describe(
702
- "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."
703
- ).optional().nullable(),
704
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
705
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
706
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
707
- })
708
- ).optional()
709
- });
710
-
711
418
  // src/badges-v3-badge-badges.universal.ts
712
419
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
713
420
  SortOrder2["ASC"] = "ASC";
@@ -723,10 +430,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
723
430
  return WebhookIdentityType2;
724
431
  })(WebhookIdentityType || {});
725
432
  async function createBadge2(badge) {
726
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
727
- if (validateRequestSchema) {
728
- CreateBadgeRequest.parse({ badge });
729
- }
433
+ const { httpClient, sideEffects } = arguments[1];
730
434
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ badge });
731
435
  const reqOpts = createBadge(payload);
732
436
  sideEffects?.onSiteCall?.();
@@ -749,10 +453,7 @@ async function createBadge2(badge) {
749
453
  }
750
454
  }
751
455
  async function updateBadge2(_id, badge) {
752
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
753
- if (validateRequestSchema) {
754
- UpdateBadgeRequest.parse({ _id, badge });
755
- }
456
+ const { httpClient, sideEffects } = arguments[2];
756
457
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
757
458
  badge: { ...badge, id: _id }
758
459
  });
@@ -777,10 +478,7 @@ async function updateBadge2(_id, badge) {
777
478
  }
778
479
  }
779
480
  async function listBadges2(options) {
780
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
781
- if (validateRequestSchema) {
782
- ListBadgesRequest.parse({ options });
783
- }
481
+ const { httpClient, sideEffects } = arguments[1];
784
482
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
785
483
  paging: options?.paging
786
484
  });
@@ -805,10 +503,7 @@ async function listBadges2(options) {
805
503
  }
806
504
  }
807
505
  async function getBadge2(_id) {
808
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
809
- if (validateRequestSchema) {
810
- GetBadgeRequest.parse({ _id });
811
- }
506
+ const { httpClient, sideEffects } = arguments[1];
812
507
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
813
508
  const reqOpts = getBadge(payload);
814
509
  sideEffects?.onSiteCall?.();
@@ -831,10 +526,7 @@ async function getBadge2(_id) {
831
526
  }
832
527
  }
833
528
  async function deleteBadge2(_id) {
834
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
835
- if (validateRequestSchema) {
836
- DeleteBadgeRequest.parse({ _id });
837
- }
529
+ const { httpClient, sideEffects } = arguments[1];
838
530
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
839
531
  const reqOpts = deleteBadge(payload);
840
532
  sideEffects?.onSiteCall?.();
@@ -856,10 +548,7 @@ async function deleteBadge2(_id) {
856
548
  }
857
549
  }
858
550
  async function assignBadge2(_id, memberIds) {
859
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
860
- if (validateRequestSchema) {
861
- AssignBadgeRequest.parse({ _id, memberIds });
862
- }
551
+ const { httpClient, sideEffects } = arguments[2];
863
552
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
864
553
  id: _id,
865
554
  memberIds
@@ -885,10 +574,7 @@ async function assignBadge2(_id, memberIds) {
885
574
  }
886
575
  }
887
576
  async function unassignBadge2(_id, memberIds) {
888
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
889
- if (validateRequestSchema) {
890
- UnassignBadgeRequest.parse({ _id, memberIds });
891
- }
577
+ const { httpClient, sideEffects } = arguments[2];
892
578
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
893
579
  id: _id,
894
580
  memberIds
@@ -913,10 +599,7 @@ async function unassignBadge2(_id, memberIds) {
913
599
  }
914
600
  }
915
601
  async function listMembersByBadge(_id, options) {
916
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
917
- if (validateRequestSchema) {
918
- ListMembersByBadgeRequest.parse({ _id, options });
919
- }
602
+ const { httpClient, sideEffects } = arguments[2];
920
603
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
921
604
  id: _id,
922
605
  paging: options?.paging
@@ -942,10 +625,7 @@ async function listMembersByBadge(_id, options) {
942
625
  }
943
626
  }
944
627
  async function listBadgesPerMember(memberIds) {
945
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
946
- if (validateRequestSchema) {
947
- ListBadgesPerMemberRequest.parse({ memberIds });
948
- }
628
+ const { httpClient, sideEffects } = arguments[1];
949
629
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
950
630
  memberIds
951
631
  });
@@ -970,10 +650,7 @@ async function listBadgesPerMember(memberIds) {
970
650
  }
971
651
  }
972
652
  async function getMemberCountsPerBadge2() {
973
- const { httpClient, sideEffects, validateRequestSchema } = arguments[0];
974
- if (validateRequestSchema) {
975
- GetMemberCountsPerBadgeRequest.parse({});
976
- }
653
+ const { httpClient, sideEffects } = arguments[0];
977
654
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
978
655
  const reqOpts = getMemberCountsPerBadge(payload);
979
656
  sideEffects?.onSiteCall?.();
@@ -996,10 +673,7 @@ async function getMemberCountsPerBadge2() {
996
673
  }
997
674
  }
998
675
  async function updateBadgesDisplayOrder2(badgeIds) {
999
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1000
- if (validateRequestSchema) {
1001
- UpdateBadgesDisplayOrderRequest.parse({ badgeIds });
1002
- }
676
+ const { httpClient, sideEffects } = arguments[1];
1003
677
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ badgeIds });
1004
678
  const reqOpts = updateBadgesDisplayOrder(payload);
1005
679
  sideEffects?.onSiteCall?.();