@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.
@@ -386,289 +386,6 @@ function updateBadgesDisplayOrder(payload) {
386
386
  return __updateBadgesDisplayOrder;
387
387
  }
388
388
 
389
- // src/badges-v3-badge-badges.schemas.ts
390
- import * as z from "zod";
391
- var CreateBadgeRequest = z.object({
392
- badge: z.object({
393
- _id: z.string().describe("Badge ID.").regex(
394
- /^[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}$/,
395
- "Must be a valid GUID"
396
- ).optional(),
397
- title: z.string().describe("Text displayed on the badge."),
398
- description: z.string().describe("Badge description.").optional().nullable(),
399
- backgroundColor: z.string().describe(
400
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
401
- ),
402
- textColor: z.string().describe(
403
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
404
- ),
405
- icon: z.string().describe(
406
- "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."
407
- ).optional().nullable(),
408
- permissionsEnabled: z.boolean().describe(
409
- "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."
410
- ).optional().nullable(),
411
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
412
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
413
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
414
- }).describe("Badge to create.")
415
- });
416
- var CreateBadgeResponse = z.object({
417
- _id: z.string().describe("Badge ID.").regex(
418
- /^[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}$/,
419
- "Must be a valid GUID"
420
- ).optional(),
421
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
422
- description: z.string().describe("Badge description.").optional().nullable(),
423
- backgroundColor: z.string().describe(
424
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
425
- ).optional().nullable(),
426
- textColor: z.string().describe(
427
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
428
- ).optional().nullable(),
429
- icon: z.string().describe(
430
- "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."
431
- ).optional().nullable(),
432
- permissionsEnabled: z.boolean().describe(
433
- "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."
434
- ).optional().nullable(),
435
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
436
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
437
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
438
- });
439
- var UpdateBadgeRequest = 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
- ),
444
- badge: z.object({
445
- _id: z.string().describe("Badge ID.").regex(
446
- /^[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}$/,
447
- "Must be a valid GUID"
448
- ).optional(),
449
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
450
- description: z.string().describe("Badge description.").optional().nullable(),
451
- backgroundColor: z.string().describe(
452
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
453
- ).optional().nullable(),
454
- textColor: z.string().describe(
455
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
456
- ).optional().nullable(),
457
- icon: z.string().describe(
458
- "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."
459
- ).optional().nullable(),
460
- permissionsEnabled: z.boolean().describe(
461
- "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."
462
- ).optional().nullable(),
463
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
464
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
465
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
466
- }).describe("Badge to update.")
467
- });
468
- var UpdateBadgeResponse = z.object({
469
- _id: z.string().describe("Badge ID.").regex(
470
- /^[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}$/,
471
- "Must be a valid GUID"
472
- ).optional(),
473
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
474
- description: z.string().describe("Badge description.").optional().nullable(),
475
- backgroundColor: z.string().describe(
476
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
477
- ).optional().nullable(),
478
- textColor: z.string().describe(
479
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
480
- ).optional().nullable(),
481
- icon: z.string().describe(
482
- "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."
483
- ).optional().nullable(),
484
- permissionsEnabled: z.boolean().describe(
485
- "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."
486
- ).optional().nullable(),
487
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
488
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
489
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
490
- });
491
- var ListBadgesRequest = z.object({
492
- options: z.object({
493
- paging: z.object({
494
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
495
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
496
- }).describe(
497
- "Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
498
- ).optional()
499
- }).optional()
500
- });
501
- var ListBadgesResponse = z.object({
502
- badges: z.array(
503
- z.object({
504
- _id: z.string().describe("Badge ID.").regex(
505
- /^[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}$/,
506
- "Must be a valid GUID"
507
- ).optional(),
508
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
509
- description: z.string().describe("Badge description.").optional().nullable(),
510
- backgroundColor: z.string().describe(
511
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
512
- ).optional().nullable(),
513
- textColor: z.string().describe(
514
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
515
- ).optional().nullable(),
516
- icon: z.string().describe(
517
- "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."
518
- ).optional().nullable(),
519
- permissionsEnabled: z.boolean().describe(
520
- "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."
521
- ).optional().nullable(),
522
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
523
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
524
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
525
- })
526
- ).optional(),
527
- metadata: z.object({
528
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
529
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
530
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
531
- tooManyToCount: z.boolean().describe(
532
- "Flag that indicates the server failed to calculate the `total` field."
533
- ).optional().nullable()
534
- }).describe("Metadata for the paginated results.").optional()
535
- });
536
- var GetBadgeRequest = 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
- )
541
- });
542
- var GetBadgeResponse = 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
- var DeleteBadgeRequest = z.object({
566
- _id: z.string().describe("Badge ID.").regex(
567
- /^[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}$/,
568
- "Must be a valid GUID"
569
- )
570
- });
571
- var DeleteBadgeResponse = z.object({});
572
- var AssignBadgeRequest = z.object({
573
- _id: z.string().describe("Badge ID.").regex(
574
- /^[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}$/,
575
- "Must be a valid GUID"
576
- ),
577
- memberIds: z.array(z.string())
578
- });
579
- var AssignBadgeResponse = z.object({
580
- memberIds: z.array(z.string()).optional()
581
- });
582
- var UnassignBadgeRequest = z.object({
583
- _id: z.string().describe("Badge ID.").regex(
584
- /^[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}$/,
585
- "Must be a valid GUID"
586
- ),
587
- memberIds: z.array(z.string())
588
- });
589
- var UnassignBadgeResponse = z.object({});
590
- var ListMembersByBadgeRequest = z.object({
591
- _id: z.string().describe("Badge ID.").regex(
592
- /^[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}$/,
593
- "Must be a valid GUID"
594
- ),
595
- options: z.object({
596
- paging: z.object({
597
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
598
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
599
- }).describe(
600
- "Pagination options. For more information, see\n[API Query Language: Paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)."
601
- ).optional()
602
- }).optional()
603
- });
604
- var ListMembersByBadgeResponse = z.object({
605
- memberIds: z.array(z.string()).optional(),
606
- metadata: z.object({
607
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
608
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
609
- total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
610
- tooManyToCount: z.boolean().describe(
611
- "Flag that indicates the server failed to calculate the `total` field."
612
- ).optional().nullable()
613
- }).describe("Metadata for the paginated results.").optional()
614
- });
615
- var ListBadgesPerMemberRequest = z.object({
616
- memberIds: z.array(z.string()).min(1).max(100)
617
- });
618
- var ListBadgesPerMemberResponse = z.object({
619
- memberBadgeIds: z.array(
620
- z.object({
621
- memberId: z.string().describe("Member ID.").regex(
622
- /^[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}$/,
623
- "Must be a valid GUID"
624
- ).optional(),
625
- badgeIds: z.array(z.string()).optional()
626
- })
627
- ).optional()
628
- });
629
- var GetMemberCountsPerBadgeRequest = z.object({});
630
- var GetMemberCountsPerBadgeResponse = z.object({
631
- badgeMemberCounts: z.array(
632
- z.object({
633
- badgeId: z.string().describe("Badge ID.").regex(
634
- /^[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}$/,
635
- "Must be a valid GUID"
636
- ).optional(),
637
- memberCount: z.number().int().describe("Badge member count.").optional()
638
- })
639
- ).optional()
640
- });
641
- var UpdateBadgesDisplayOrderRequest = z.object({
642
- badgeIds: z.array(z.string()).min(1)
643
- });
644
- var UpdateBadgesDisplayOrderResponse = z.object({
645
- badges: z.array(
646
- z.object({
647
- _id: z.string().describe("Badge ID.").regex(
648
- /^[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}$/,
649
- "Must be a valid GUID"
650
- ).optional(),
651
- title: z.string().describe("Text displayed on the badge.").optional().nullable(),
652
- description: z.string().describe("Badge description.").optional().nullable(),
653
- backgroundColor: z.string().describe(
654
- "Badge background color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#FFFFFF`."
655
- ).optional().nullable(),
656
- textColor: z.string().describe(
657
- "Badge text color in hexadecimal RGB format. <br/><br/>\nUppercase letters only.<br/>\nExample: `#C81B53`."
658
- ).optional().nullable(),
659
- icon: z.string().describe(
660
- "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."
661
- ).optional().nullable(),
662
- permissionsEnabled: z.boolean().describe(
663
- "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."
664
- ).optional().nullable(),
665
- slug: z.string().describe("Slugified name. Used to represent the badge in a URL.").optional().nullable(),
666
- _createdDate: z.date().describe("Date the badge was created.").optional().nullable(),
667
- _updatedDate: z.date().describe("Date the badge was updated.").optional().nullable()
668
- })
669
- ).optional()
670
- });
671
-
672
389
  // src/badges-v3-badge-badges.universal.ts
673
390
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
674
391
  SortOrder2["ASC"] = "ASC";
@@ -684,10 +401,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
684
401
  return WebhookIdentityType2;
685
402
  })(WebhookIdentityType || {});
686
403
  async function createBadge2(badge) {
687
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
688
- if (validateRequestSchema) {
689
- CreateBadgeRequest.parse({ badge });
690
- }
404
+ const { httpClient, sideEffects } = arguments[1];
691
405
  const payload = renameKeysFromSDKRequestToRESTRequest({ badge });
692
406
  const reqOpts = createBadge(payload);
693
407
  sideEffects?.onSiteCall?.();
@@ -710,10 +424,7 @@ async function createBadge2(badge) {
710
424
  }
711
425
  }
712
426
  async function updateBadge2(_id, badge) {
713
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
714
- if (validateRequestSchema) {
715
- UpdateBadgeRequest.parse({ _id, badge });
716
- }
427
+ const { httpClient, sideEffects } = arguments[2];
717
428
  const payload = renameKeysFromSDKRequestToRESTRequest({
718
429
  badge: { ...badge, id: _id }
719
430
  });
@@ -738,10 +449,7 @@ async function updateBadge2(_id, badge) {
738
449
  }
739
450
  }
740
451
  async function listBadges2(options) {
741
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
742
- if (validateRequestSchema) {
743
- ListBadgesRequest.parse({ options });
744
- }
452
+ const { httpClient, sideEffects } = arguments[1];
745
453
  const payload = renameKeysFromSDKRequestToRESTRequest({
746
454
  paging: options?.paging
747
455
  });
@@ -766,10 +474,7 @@ async function listBadges2(options) {
766
474
  }
767
475
  }
768
476
  async function getBadge2(_id) {
769
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
770
- if (validateRequestSchema) {
771
- GetBadgeRequest.parse({ _id });
772
- }
477
+ const { httpClient, sideEffects } = arguments[1];
773
478
  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
774
479
  const reqOpts = getBadge(payload);
775
480
  sideEffects?.onSiteCall?.();
@@ -792,10 +497,7 @@ async function getBadge2(_id) {
792
497
  }
793
498
  }
794
499
  async function deleteBadge2(_id) {
795
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
796
- if (validateRequestSchema) {
797
- DeleteBadgeRequest.parse({ _id });
798
- }
500
+ const { httpClient, sideEffects } = arguments[1];
799
501
  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
800
502
  const reqOpts = deleteBadge(payload);
801
503
  sideEffects?.onSiteCall?.();
@@ -817,10 +519,7 @@ async function deleteBadge2(_id) {
817
519
  }
818
520
  }
819
521
  async function assignBadge2(_id, memberIds) {
820
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
821
- if (validateRequestSchema) {
822
- AssignBadgeRequest.parse({ _id, memberIds });
823
- }
522
+ const { httpClient, sideEffects } = arguments[2];
824
523
  const payload = renameKeysFromSDKRequestToRESTRequest({
825
524
  id: _id,
826
525
  memberIds
@@ -846,10 +545,7 @@ async function assignBadge2(_id, memberIds) {
846
545
  }
847
546
  }
848
547
  async function unassignBadge2(_id, memberIds) {
849
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
850
- if (validateRequestSchema) {
851
- UnassignBadgeRequest.parse({ _id, memberIds });
852
- }
548
+ const { httpClient, sideEffects } = arguments[2];
853
549
  const payload = renameKeysFromSDKRequestToRESTRequest({
854
550
  id: _id,
855
551
  memberIds
@@ -874,10 +570,7 @@ async function unassignBadge2(_id, memberIds) {
874
570
  }
875
571
  }
876
572
  async function listMembersByBadge(_id, options) {
877
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
878
- if (validateRequestSchema) {
879
- ListMembersByBadgeRequest.parse({ _id, options });
880
- }
573
+ const { httpClient, sideEffects } = arguments[2];
881
574
  const payload = renameKeysFromSDKRequestToRESTRequest({
882
575
  id: _id,
883
576
  paging: options?.paging
@@ -903,10 +596,7 @@ async function listMembersByBadge(_id, options) {
903
596
  }
904
597
  }
905
598
  async function listBadgesPerMember(memberIds) {
906
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
907
- if (validateRequestSchema) {
908
- ListBadgesPerMemberRequest.parse({ memberIds });
909
- }
599
+ const { httpClient, sideEffects } = arguments[1];
910
600
  const payload = renameKeysFromSDKRequestToRESTRequest({
911
601
  memberIds
912
602
  });
@@ -931,10 +621,7 @@ async function listBadgesPerMember(memberIds) {
931
621
  }
932
622
  }
933
623
  async function getMemberCountsPerBadge2() {
934
- const { httpClient, sideEffects, validateRequestSchema } = arguments[0];
935
- if (validateRequestSchema) {
936
- GetMemberCountsPerBadgeRequest.parse({});
937
- }
624
+ const { httpClient, sideEffects } = arguments[0];
938
625
  const payload = renameKeysFromSDKRequestToRESTRequest({});
939
626
  const reqOpts = getMemberCountsPerBadge(payload);
940
627
  sideEffects?.onSiteCall?.();
@@ -957,10 +644,7 @@ async function getMemberCountsPerBadge2() {
957
644
  }
958
645
  }
959
646
  async function updateBadgesDisplayOrder2(badgeIds) {
960
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
961
- if (validateRequestSchema) {
962
- UpdateBadgesDisplayOrderRequest.parse({ badgeIds });
963
- }
647
+ const { httpClient, sideEffects } = arguments[1];
964
648
  const payload = renameKeysFromSDKRequestToRESTRequest({ badgeIds });
965
649
  const reqOpts = updateBadgesDisplayOrder(payload);
966
650
  sideEffects?.onSiteCall?.();
@@ -984,84 +668,84 @@ async function updateBadgesDisplayOrder2(badgeIds) {
984
668
  }
985
669
 
986
670
  // src/badges-v3-badge-badges.public.ts
987
- function createBadge3(httpClient, __options) {
671
+ function createBadge3(httpClient) {
988
672
  return (badge) => createBadge2(
989
673
  badge,
990
674
  // @ts-ignore
991
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
675
+ { httpClient }
992
676
  );
993
677
  }
994
- function updateBadge3(httpClient, __options) {
678
+ function updateBadge3(httpClient) {
995
679
  return (_id, badge) => updateBadge2(
996
680
  _id,
997
681
  badge,
998
682
  // @ts-ignore
999
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
683
+ { httpClient }
1000
684
  );
1001
685
  }
1002
- function listBadges3(httpClient, __options) {
686
+ function listBadges3(httpClient) {
1003
687
  return (options) => listBadges2(
1004
688
  options,
1005
689
  // @ts-ignore
1006
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
690
+ { httpClient }
1007
691
  );
1008
692
  }
1009
- function getBadge3(httpClient, __options) {
693
+ function getBadge3(httpClient) {
1010
694
  return (_id) => getBadge2(
1011
695
  _id,
1012
696
  // @ts-ignore
1013
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
697
+ { httpClient }
1014
698
  );
1015
699
  }
1016
- function deleteBadge3(httpClient, __options) {
700
+ function deleteBadge3(httpClient) {
1017
701
  return (_id) => deleteBadge2(
1018
702
  _id,
1019
703
  // @ts-ignore
1020
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
704
+ { httpClient }
1021
705
  );
1022
706
  }
1023
- function assignBadge3(httpClient, __options) {
707
+ function assignBadge3(httpClient) {
1024
708
  return (_id, memberIds) => assignBadge2(
1025
709
  _id,
1026
710
  memberIds,
1027
711
  // @ts-ignore
1028
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
712
+ { httpClient }
1029
713
  );
1030
714
  }
1031
- function unassignBadge3(httpClient, __options) {
715
+ function unassignBadge3(httpClient) {
1032
716
  return (_id, memberIds) => unassignBadge2(
1033
717
  _id,
1034
718
  memberIds,
1035
719
  // @ts-ignore
1036
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
720
+ { httpClient }
1037
721
  );
1038
722
  }
1039
- function listMembersByBadge2(httpClient, __options) {
723
+ function listMembersByBadge2(httpClient) {
1040
724
  return (_id, options) => listMembersByBadge(
1041
725
  _id,
1042
726
  options,
1043
727
  // @ts-ignore
1044
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
728
+ { httpClient }
1045
729
  );
1046
730
  }
1047
- function listBadgesPerMember2(httpClient, __options) {
731
+ function listBadgesPerMember2(httpClient) {
1048
732
  return (memberIds) => listBadgesPerMember(
1049
733
  memberIds,
1050
734
  // @ts-ignore
1051
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
735
+ { httpClient }
1052
736
  );
1053
737
  }
1054
- function getMemberCountsPerBadge3(httpClient, __options) {
738
+ function getMemberCountsPerBadge3(httpClient) {
1055
739
  return () => getMemberCountsPerBadge2(
1056
740
  // @ts-ignore
1057
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
741
+ { httpClient }
1058
742
  );
1059
743
  }
1060
- function updateBadgesDisplayOrder3(httpClient, __options) {
744
+ function updateBadgesDisplayOrder3(httpClient) {
1061
745
  return (badgeIds) => updateBadgesDisplayOrder2(
1062
746
  badgeIds,
1063
747
  // @ts-ignore
1064
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
748
+ { httpClient }
1065
749
  );
1066
750
  }
1067
751
  var onBadgeAssigned = EventDefinition(