@connectedxm/client 7.9.0 → 7.9.2
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.ts +3 -1
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -642,6 +642,7 @@ interface BasePassType {
|
|
|
642
642
|
requiredPassTypeId: string | null;
|
|
643
643
|
taxCode: string | null;
|
|
644
644
|
taxIncluded: boolean;
|
|
645
|
+
requiresApproval: boolean;
|
|
645
646
|
}
|
|
646
647
|
interface PassType extends BasePassType {
|
|
647
648
|
visibility: TicketVisibility;
|
|
@@ -674,7 +675,8 @@ declare enum PurchaseStatus {
|
|
|
674
675
|
draft = "draft",
|
|
675
676
|
canceled = "canceled",
|
|
676
677
|
needsInfo = "needsInfo",
|
|
677
|
-
ready = "ready"
|
|
678
|
+
ready = "ready",
|
|
679
|
+
pending = "pending"
|
|
678
680
|
}
|
|
679
681
|
interface BasePass {
|
|
680
682
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -7955,7 +7955,7 @@ var useIsAccountFollowing = (accountId) => {
|
|
|
7955
7955
|
if (!isUUID(accountId)) {
|
|
7956
7956
|
throw new Error("Invalid accountId. Did you pass in the username?");
|
|
7957
7957
|
}
|
|
7958
|
-
return relationships?.data
|
|
7958
|
+
return relationships?.data?.accounts?.[accountId] || false;
|
|
7959
7959
|
};
|
|
7960
7960
|
|
|
7961
7961
|
// src/hooks/useGroupStatus.ts
|
|
@@ -7965,7 +7965,7 @@ var useGroupStatus = (groupId) => {
|
|
|
7965
7965
|
if (!isUUID(groupId)) {
|
|
7966
7966
|
throw new Error("Invalid groupId. Did you pass in the slug?");
|
|
7967
7967
|
}
|
|
7968
|
-
return relationships?.data
|
|
7968
|
+
return relationships?.data?.groups?.[groupId] || false;
|
|
7969
7969
|
};
|
|
7970
7970
|
|
|
7971
7971
|
// src/hooks/useIsEventRegistered.ts
|
|
@@ -7975,7 +7975,7 @@ var useIsEventRegistered = (eventId) => {
|
|
|
7975
7975
|
if (!isUUID(eventId)) {
|
|
7976
7976
|
throw new Error("Invalid eventId. Did you pass in the slug?");
|
|
7977
7977
|
}
|
|
7978
|
-
return relationships?.data
|
|
7978
|
+
return relationships?.data?.events?.[eventId] || false;
|
|
7979
7979
|
};
|
|
7980
7980
|
|
|
7981
7981
|
// src/hooks/useIsChannelSubscribed.ts
|
|
@@ -7985,7 +7985,7 @@ var useIsChannelSubscribed = (channelId) => {
|
|
|
7985
7985
|
if (!isUUID(channelId)) {
|
|
7986
7986
|
throw new Error("Invalid channelId. Did you pass in the slug?");
|
|
7987
7987
|
}
|
|
7988
|
-
return relationships?.data
|
|
7988
|
+
return relationships?.data?.channels?.[channelId] || false;
|
|
7989
7989
|
};
|
|
7990
7990
|
|
|
7991
7991
|
// src/interfaces.ts
|
|
@@ -8129,6 +8129,7 @@ var PurchaseStatus = /* @__PURE__ */ ((PurchaseStatus2) => {
|
|
|
8129
8129
|
PurchaseStatus2["canceled"] = "canceled";
|
|
8130
8130
|
PurchaseStatus2["needsInfo"] = "needsInfo";
|
|
8131
8131
|
PurchaseStatus2["ready"] = "ready";
|
|
8132
|
+
PurchaseStatus2["pending"] = "pending";
|
|
8132
8133
|
return PurchaseStatus2;
|
|
8133
8134
|
})(PurchaseStatus || {});
|
|
8134
8135
|
var isTypePurchase = (purchase) => {
|