@saasquatch/mint-components 2.0.11-2 → 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.
Files changed (58) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +16 -13
  4. package/dist/cjs/sqm-big-stat_49.cjs.entry.js +1 -1
  5. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +11 -7
  6. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +13 -8
  7. package/dist/cjs/sqm-stencilbook.cjs.entry.js +167 -167
  8. package/dist/cjs/{usePayoutStatus-98f2ca76.js → usePayoutStatus-4cd81495.js} +3 -0
  9. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +1 -1
  10. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +11 -7
  11. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +6 -7
  12. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +31 -4
  13. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
  14. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -2
  15. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +3 -0
  16. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +15 -12
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/mint-components.js +1 -1
  19. package/dist/esm/sqm-banking-info-form_10.entry.js +16 -13
  20. package/dist/esm/sqm-big-stat_49.entry.js +1 -1
  21. package/dist/esm/sqm-referral-table_11.entry.js +11 -7
  22. package/dist/esm/sqm-rewards-table_9.entry.js +13 -8
  23. package/dist/esm/sqm-stencilbook.entry.js +167 -167
  24. package/dist/esm/{usePayoutStatus-6be47a64.js → usePayoutStatus-203c2b2b.js} +3 -0
  25. package/dist/esm-es5/loader.js +1 -1
  26. package/dist/esm-es5/mint-components.js +1 -1
  27. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  28. package/dist/esm-es5/sqm-big-stat_49.entry.js +1 -1
  29. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  30. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  31. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  32. package/dist/esm-es5/{usePayoutStatus-6be47a64.js → usePayoutStatus-203c2b2b.js} +2 -2
  33. package/dist/mint-components/mint-components.esm.js +1 -1
  34. package/dist/mint-components/{p-517c454d.entry.js → p-1c427858.entry.js} +1 -1
  35. package/dist/mint-components/{p-25474a76.system.entry.js → p-670869ab.system.entry.js} +1 -1
  36. package/dist/mint-components/{p-3fede0f7.js → p-7d54fe67.js} +5 -2
  37. package/dist/mint-components/{p-23c58c4f.system.js → p-8785a98e.system.js} +2 -2
  38. package/dist/mint-components/{p-d693782f.entry.js → p-900e4bb2.entry.js} +1 -1
  39. package/dist/mint-components/{p-190769c2.entry.js → p-9537742d.entry.js} +2 -2
  40. package/dist/mint-components/p-af123d2b.system.js +1 -1
  41. package/dist/mint-components/{p-ef8b63cd.system.entry.js → p-b39ad42c.system.entry.js} +1 -1
  42. package/dist/mint-components/{p-e971050e.entry.js → p-b5c942ea.entry.js} +2 -2
  43. package/dist/mint-components/p-c7a4a0ae.entry.js +1 -0
  44. package/dist/mint-components/{p-25703088.system.entry.js → p-d7c9d0f4.system.entry.js} +1 -1
  45. package/dist/mint-components/{p-1086ca86.system.entry.js → p-e9dd0d9a.system.entry.js} +1 -1
  46. package/dist/mint-components/{p-c0f50724.system.entry.js → p-f4bc425e.system.entry.js} +1 -1
  47. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +7 -1
  48. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
  49. package/dist/types/components.d.ts +10 -0
  50. package/docs/docs.docx +0 -0
  51. package/docs/raisins.json +1 -1
  52. package/grapesjs/grapesjs.js +1 -1
  53. package/package.json +2 -2
  54. package/dist/mint-components/p-9c116b6b.entry.js +0 -1
  55. package/dist/types/global/android.d.ts +0 -7
  56. package/dist/types/global/demo.d.ts +0 -2
  57. package/dist/types/stories/features.d.ts +0 -4
  58. package/dist/types/stories/templates.d.ts +0 -4
@@ -73,7 +73,7 @@ export class RewardTableStatusCell {
73
73
  this.pendingUnhandled = "Fulfillment error";
74
74
  this.pendingReviewText = "Awaiting review";
75
75
  this.deniedText = "Detected self-referral";
76
- this.payoutFailed = "Payout failed due to a fulfillment issue and is current being retried.";
76
+ this.payoutFailed = "Payout failed due to a fulfillment issue and is currently being retried.";
77
77
  this.payoutApproved = "Payout approved and scheduled for payment based on your settings.";
78
78
  this.payoutCancelled = "If you think this is a mistake, contact our Support team.";
79
79
  this.payoutProcessing = "Processing until {date}. Payout is then scheduled based on your settings.";
@@ -90,19 +90,18 @@ export class RewardTableStatusCell {
90
90
  return "PENDING_REVIEW";
91
91
  const partnerTransferStatus = (_e = reward.partnerFundsTransfer) === null || _e === void 0 ? void 0 : _e.status;
92
92
  if (reward.partnerFundsTransfer) {
93
- console.log({
94
- isProcessing: reward.partnerFundsTransfer.dateScheduled > Date.now(),
95
- });
96
93
  if (partnerTransferStatus === "REVERSED")
97
94
  return "PAYOUT_CANCELLED";
98
95
  if (partnerTransferStatus === "OVERDUE")
99
96
  return "PAYOUT_FAILED";
100
- if (reward.partnerFundsTransfer.dateScheduled > Date.now()) {
97
+ if (reward.partnerFundsTransfer.dateScheduled &&
98
+ reward.partnerFundsTransfer.dateScheduled > Date.now()) {
101
99
  return "PROCESSING";
102
100
  }
103
101
  if (partnerTransferStatus === "TRANSFERRED" ||
104
102
  partnerTransferStatus === "NOT_YET_DUE" ||
105
- (reward.partnerFundsTransfer.dateScheduled < Date.now() &&
103
+ (reward.partnerFundsTransfer.dateScheduled &&
104
+ reward.partnerFundsTransfer.dateScheduled < Date.now() &&
106
105
  partnerTransferStatus !== "OVERDUE" &&
107
106
  partnerTransferStatus !== "REVERSED"))
108
107
  return "PAYOUT_APPROVED";
@@ -538,7 +537,7 @@ export class RewardTableStatusCell {
538
537
  },
539
538
  "attribute": "payout-failed",
540
539
  "reflect": false,
541
- "defaultValue": "\"Payout failed due to a fulfillment issue and is current being retried.\""
540
+ "defaultValue": "\"Payout failed due to a fulfillment issue and is currently being retried.\""
542
541
  },
543
542
  "payoutApproved": {
544
543
  "type": "string",
@@ -5,7 +5,7 @@ import { useRequestRerender } from "../../../tables/re-render";
5
5
  * @uiName Reward Table Status Column
6
6
  * @validParents ["sqm-rewards-table"]
7
7
  * @exampleGroup Rewards
8
- * @example Reward Table Status Column - <sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column>
8
+ * @example Reward Table Status Column - <sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is currently being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column>
9
9
  */
10
10
  export class RewardTableStatusColumn {
11
11
  constructor() {
@@ -83,7 +83,13 @@ export class RewardTableStatusColumn {
83
83
  *
84
84
  * @uiName Payout failed text
85
85
  */
86
- this.payoutFailed = "Payout failed due to a fulfillment issue and is current being retried.";
86
+ this.payoutFailed = "Payout failed due to a fulfillment issue and is currently being retried.";
87
+ /**
88
+ * Displayed when a reward payout is processing.
89
+ *
90
+ * @uiName Payout processing text
91
+ */
92
+ this.payoutProcessing = "Processing until {date}. Payout is then scheduled based on your settings.";
87
93
  /**
88
94
  * Displayed when reward payout was reversed (based on Impact cash payout configuration).
89
95
  *
@@ -100,7 +106,7 @@ export class RewardTableStatusColumn {
100
106
  }
101
107
  disconnectedCallback() { }
102
108
  async renderCell(data, options) {
103
- return (h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options === null || options === void 0 ? void 0 : options.locale }));
109
+ return (h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutProcessing: this.payoutProcessing, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options === null || options === void 0 ? void 0 : options.locale }));
104
110
  }
105
111
  async renderLabel() {
106
112
  return this.columnTitle;
@@ -394,7 +400,28 @@ export class RewardTableStatusColumn {
394
400
  },
395
401
  "attribute": "payout-failed",
396
402
  "reflect": false,
397
- "defaultValue": "\"Payout failed due to a fulfillment issue and is current being retried.\""
403
+ "defaultValue": "\"Payout failed due to a fulfillment issue and is currently being retried.\""
404
+ },
405
+ "payoutProcessing": {
406
+ "type": "string",
407
+ "mutable": false,
408
+ "complexType": {
409
+ "original": "string",
410
+ "resolved": "string",
411
+ "references": {}
412
+ },
413
+ "required": false,
414
+ "optional": false,
415
+ "docs": {
416
+ "tags": [{
417
+ "text": "Payout processing text",
418
+ "name": "uiName"
419
+ }],
420
+ "text": "Displayed when a reward payout is processing."
421
+ },
422
+ "attribute": "payout-processing",
423
+ "reflect": false,
424
+ "defaultValue": "\"Processing until {date}. Payout is then scheduled based on your settings.\""
398
425
  },
399
426
  "payoutCancelled": {
400
427
  "type": "string",
@@ -13,7 +13,7 @@ import { tryMethod, useRewardsTable } from "./useRewardsTable";
13
13
  * @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqm-hero","sqm-tab","sqb-program-section","sqb-conditional-section"]
14
14
  * @exampleGroup Rewards
15
15
  * @slots [{"name":"", "title":"Table Row"},{"name":"empty", "title":"Empty"},{"name":"loading","title":"Loading"}]
16
- * @example Reward Table - <sqm-rewards-table per-page="4" prev-label="Prev" more-label="Next" hidden-columns="0" sm-breakpoint="599" md-breakpoint="799" ><sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column> <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}" ></sqm-rewards-table-source-column ><sqm-rewards-table-reward-column column-title="Reward" redeemed-text="{redeemedAmount} redeemed" available-text="{availableAmount} remaining" copy-text="Copied!" ></sqm-rewards-table-reward-column ><sqm-rewards-table-date-column column-title="Date received" date-shown="dateGiven" ></sqm-rewards-table-date-column ><sqm-rewards-table-customer-note-column column-title="Note" ></sqm-rewards-table-customer-note-column ><sqm-empty slot="empty" empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png" empty-state-header="View your rewards" empty-state-text="Complete program tasks to view the details of your rewards" ></sqm-empty ></sqm-rewards-table>
16
+ * @example Reward Table - <sqm-rewards-table per-page="4" prev-label="Prev" more-label="Next" hidden-columns="0" sm-breakpoint="599" md-breakpoint="799" ><sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is currently being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column> <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}" ></sqm-rewards-table-source-column ><sqm-rewards-table-reward-column column-title="Reward" redeemed-text="{redeemedAmount} redeemed" available-text="{availableAmount} remaining" copy-text="Copied!" ></sqm-rewards-table-reward-column ><sqm-rewards-table-date-column column-title="Date received" date-shown="dateGiven" ></sqm-rewards-table-date-column ><sqm-rewards-table-customer-note-column column-title="Note" ></sqm-rewards-table-customer-note-column ><sqm-empty slot="empty" empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png" empty-state-header="View your rewards" empty-state-text="Complete program tasks to view the details of your rewards" ></sqm-empty ></sqm-rewards-table>
17
17
  */
18
18
  export class RewardsTable {
19
19
  constructor() {
@@ -73,8 +73,8 @@ import * as ReferralTableRewardsCell from "../sqm-referral-table/ReferralTableRe
73
73
  import * as UseReferralTable from "../sqm-referral-table/UseReferralTable.stories";
74
74
  import * as RewardExchangeList from "../sqm-reward-exchange-list/RewardExchangeList.stories";
75
75
  import * as UseRewardExchangeList from "../sqm-reward-exchange-list/UseRewardExchangeList.stories";
76
- import * as RewardsTable from "../sqm-rewards-table/TaxAndCashRewardsTable.stories";
77
- import * as TaxAndCashRewardsTable from "../sqm-rewards-table/RewardsTable.stories";
76
+ import * as RewardsTable from "../sqm-rewards-table/RewardsTable.stories";
77
+ import * as TaxAndCashRewardsTable from "../sqm-rewards-table/TaxAndCashRewardsTable.stories";
78
78
  import * as RewardsTableCell from "../sqm-rewards-table/RewardsTableCell.stories";
79
79
  import * as TaxAndCashRewardsTableCell from "../sqm-rewards-table/TaxAndCashRewardsTableCell.stories";
80
80
  import * as UseRewardsTable from "../sqm-rewards-table/UseRewardsTable.stories";
@@ -24,6 +24,9 @@ const GET_USER_STATUS = gql `
24
24
  partnerFundsTransfer {
25
25
  id
26
26
  status
27
+ dateScheduled
28
+ dateCreated
29
+ dateTransferred
27
30
  }
28
31
  }
29
32
  }
@@ -42,7 +42,7 @@ export function useUserInfoForm(props) {
42
42
  window.location.hash = "";
43
43
  }, []);
44
44
  useEffect(() => {
45
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
46
46
  const user = data === null || data === void 0 ? void 0 : data.user;
47
47
  if (!user || step !== "/1")
48
48
  return;
@@ -72,16 +72,16 @@ export function useUserInfoForm(props) {
72
72
  // Initialise with user information
73
73
  setUserFormContext({
74
74
  email,
75
- firstName: user.firstName,
76
- lastName: user.lastName,
75
+ firstName: ((_e = (_d = user.impactConnection) === null || _d === void 0 ? void 0 : _d.user) === null || _e === void 0 ? void 0 : _e.firstName) || user.firstName,
76
+ lastName: ((_g = (_f = user.impactConnection) === null || _f === void 0 ? void 0 : _f.user) === null || _g === void 0 ? void 0 : _g.lastName) || user.lastName,
77
77
  countryCode: user.countryCode || "US",
78
- currency: (_d = user.customFields) === null || _d === void 0 ? void 0 : _d.currency,
79
- phoneNumberCountryCode: ((_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumberCountryCode) || "US",
80
- phoneNumber: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.phoneNumber,
81
- address: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.address,
82
- city: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.city,
83
- state: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.state,
84
- postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
78
+ currency: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.currency,
79
+ phoneNumberCountryCode: ((_j = user.customFields) === null || _j === void 0 ? void 0 : _j.phoneNumberCountryCode) || "US",
80
+ phoneNumber: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.phoneNumber,
81
+ address: (_l = user.customFields) === null || _l === void 0 ? void 0 : _l.address,
82
+ city: (_m = user.customFields) === null || _m === void 0 ? void 0 : _m.city,
83
+ state: (_o = user.customFields) === null || _o === void 0 ? void 0 : _o.state,
84
+ postalCode: (_p = user.customFields) === null || _p === void 0 ? void 0 : _p.postalCode,
85
85
  });
86
86
  }
87
87
  }, [data, step, userFormContext]);
@@ -116,7 +116,9 @@ export function useUserInfoForm(props) {
116
116
  setFilteredPhoneCountries(countries || []);
117
117
  }
118
118
  else {
119
- setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
119
+ setFilteredPhoneCountries(countries.filter((c) => c.displayName
120
+ .toLowerCase()
121
+ .includes(phoneCountrySearch.toLowerCase())) || []);
120
122
  }
121
123
  }, [phoneCountrySearch, countries]);
122
124
  useEffect(() => {
@@ -154,7 +156,8 @@ export function useUserInfoForm(props) {
154
156
  throw new Error();
155
157
  if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
156
158
  // Output backend errors to console for now
157
- console.error("Failed to create Impact connection: ", result.createImpactConnection.validationErrors);
159
+ console.error("Failed to create Impact connection: ", result.createImpactConnection
160
+ .validationErrors);
158
161
  throw new Error();
159
162
  }
160
163
  await refetch();