@connectedxm/admin 1.4.2 → 1.4.4

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/dist/index.d.mts CHANGED
@@ -758,7 +758,8 @@ declare enum BadgeFieldType {
758
758
  attribute = "attribute",
759
759
  question = "question",
760
760
  tier = "tier",
761
- ticket = "ticket"
761
+ ticket = "ticket",
762
+ pass = "pass"
762
763
  }
763
764
  declare enum BadgeFieldTransformation {
764
765
  uppercase = "uppercase",
@@ -1415,8 +1416,8 @@ interface BaseEventPass {
1415
1416
  }
1416
1417
  interface EventPass extends BaseEventPass {
1417
1418
  addOns: BaseEventAddOn[];
1418
- registrationId: string;
1419
- registration: BaseEventAttendee;
1419
+ attendeeId: string;
1420
+ attendee: BaseEventAttendee;
1420
1421
  payerId: string | null;
1421
1422
  payer: BaseAccount | null;
1422
1423
  amtPaid: number;
@@ -1684,7 +1685,7 @@ interface BaseEventAttendee {
1684
1685
  }
1685
1686
  interface EventAttendee extends BaseEventAttendee {
1686
1687
  payments: BasePayment[];
1687
- purchases: BaseEventPass[];
1688
+ passes: BaseEventPass[];
1688
1689
  coupons: BaseCoupon[];
1689
1690
  createdAt: string;
1690
1691
  updatedAt: string;
package/dist/index.d.ts CHANGED
@@ -758,7 +758,8 @@ declare enum BadgeFieldType {
758
758
  attribute = "attribute",
759
759
  question = "question",
760
760
  tier = "tier",
761
- ticket = "ticket"
761
+ ticket = "ticket",
762
+ pass = "pass"
762
763
  }
763
764
  declare enum BadgeFieldTransformation {
764
765
  uppercase = "uppercase",
@@ -1415,8 +1416,8 @@ interface BaseEventPass {
1415
1416
  }
1416
1417
  interface EventPass extends BaseEventPass {
1417
1418
  addOns: BaseEventAddOn[];
1418
- registrationId: string;
1419
- registration: BaseEventAttendee;
1419
+ attendeeId: string;
1420
+ attendee: BaseEventAttendee;
1420
1421
  payerId: string | null;
1421
1422
  payer: BaseAccount | null;
1422
1423
  amtPaid: number;
@@ -1684,7 +1685,7 @@ interface BaseEventAttendee {
1684
1685
  }
1685
1686
  interface EventAttendee extends BaseEventAttendee {
1686
1687
  payments: BasePayment[];
1687
- purchases: BaseEventPass[];
1688
+ passes: BaseEventPass[];
1688
1689
  coupons: BaseCoupon[];
1689
1690
  createdAt: string;
1690
1691
  updatedAt: string;
package/dist/index.js CHANGED
@@ -11224,6 +11224,7 @@ var BadgeFieldType = /* @__PURE__ */ ((BadgeFieldType2) => {
11224
11224
  BadgeFieldType2["question"] = "question";
11225
11225
  BadgeFieldType2["tier"] = "tier";
11226
11226
  BadgeFieldType2["ticket"] = "ticket";
11227
+ BadgeFieldType2["pass"] = "pass";
11227
11228
  return BadgeFieldType2;
11228
11229
  })(BadgeFieldType || {});
11229
11230
  var BadgeFieldTransformation = /* @__PURE__ */ ((BadgeFieldTransformation2) => {
@@ -19507,17 +19508,17 @@ var CancelEventPass = async ({
19507
19508
  queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
19508
19509
  });
19509
19510
  }
19510
- if (data.data.registrationId) {
19511
+ if (data.data.attendee) {
19511
19512
  queryClient.invalidateQueries({
19512
19513
  queryKey: EVENT_ATTENDEE_QUERY_KEY(
19513
19514
  eventId,
19514
- data.data.registration.accountId
19515
+ data.data.attendee.accountId
19515
19516
  )
19516
19517
  });
19517
19518
  queryClient.invalidateQueries({
19518
19519
  queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
19519
19520
  eventId,
19520
- data.data.registration.accountId
19521
+ data.data.attendee.accountId
19521
19522
  )
19522
19523
  });
19523
19524
  }
@@ -19687,17 +19688,17 @@ var UpdateEventPass = async ({
19687
19688
  queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
19688
19689
  });
19689
19690
  }
19690
- if (data.data.registration.accountId) {
19691
+ if (data.data.attendee.accountId) {
19691
19692
  queryClient.invalidateQueries({
19692
19693
  queryKey: EVENT_ATTENDEE_QUERY_KEY(
19693
19694
  eventId,
19694
- data.data.registration.accountId
19695
+ data.data.attendee.accountId
19695
19696
  )
19696
19697
  });
19697
19698
  queryClient.invalidateQueries({
19698
19699
  queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
19699
19700
  eventId,
19700
- data.data.registration.accountId
19701
+ data.data.attendee.accountId
19701
19702
  )
19702
19703
  });
19703
19704
  }
package/dist/index.mjs CHANGED
@@ -9097,6 +9097,7 @@ var BadgeFieldType = /* @__PURE__ */ ((BadgeFieldType2) => {
9097
9097
  BadgeFieldType2["question"] = "question";
9098
9098
  BadgeFieldType2["tier"] = "tier";
9099
9099
  BadgeFieldType2["ticket"] = "ticket";
9100
+ BadgeFieldType2["pass"] = "pass";
9100
9101
  return BadgeFieldType2;
9101
9102
  })(BadgeFieldType || {});
9102
9103
  var BadgeFieldTransformation = /* @__PURE__ */ ((BadgeFieldTransformation2) => {
@@ -17383,17 +17384,17 @@ var CancelEventPass = async ({
17383
17384
  queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
17384
17385
  });
17385
17386
  }
17386
- if (data.data.registrationId) {
17387
+ if (data.data.attendee) {
17387
17388
  queryClient.invalidateQueries({
17388
17389
  queryKey: EVENT_ATTENDEE_QUERY_KEY(
17389
17390
  eventId,
17390
- data.data.registration.accountId
17391
+ data.data.attendee.accountId
17391
17392
  )
17392
17393
  });
17393
17394
  queryClient.invalidateQueries({
17394
17395
  queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
17395
17396
  eventId,
17396
- data.data.registration.accountId
17397
+ data.data.attendee.accountId
17397
17398
  )
17398
17399
  });
17399
17400
  }
@@ -17563,17 +17564,17 @@ var UpdateEventPass = async ({
17563
17564
  queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
17564
17565
  });
17565
17566
  }
17566
- if (data.data.registration.accountId) {
17567
+ if (data.data.attendee.accountId) {
17567
17568
  queryClient.invalidateQueries({
17568
17569
  queryKey: EVENT_ATTENDEE_QUERY_KEY(
17569
17570
  eventId,
17570
- data.data.registration.accountId
17571
+ data.data.attendee.accountId
17571
17572
  )
17572
17573
  });
17573
17574
  queryClient.invalidateQueries({
17574
17575
  queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
17575
17576
  eventId,
17576
- data.data.registration.accountId
17577
+ data.data.attendee.accountId
17577
17578
  )
17578
17579
  });
17579
17580
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {