@connectedxm/client 1.4.6 → 1.4.8
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.js +16 -10
- package/dist/index.mjs +16 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1993,7 +1993,7 @@ var useGetAccountActivities = (accountId = "", params = {}, options = {}) => {
|
|
|
1993
1993
|
params,
|
|
1994
1994
|
{
|
|
1995
1995
|
...options,
|
|
1996
|
-
enabled: !!accountId
|
|
1996
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1997
1997
|
}
|
|
1998
1998
|
);
|
|
1999
1999
|
};
|
|
@@ -2675,7 +2675,7 @@ var useGetEvent = (eventId = "", options = {}) => {
|
|
|
2675
2675
|
(params) => GetEvent({ eventId, ...params }),
|
|
2676
2676
|
{
|
|
2677
2677
|
...options,
|
|
2678
|
-
enabled: !!eventId
|
|
2678
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
2679
2679
|
}
|
|
2680
2680
|
);
|
|
2681
2681
|
};
|
|
@@ -3202,7 +3202,7 @@ var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
|
3202
3202
|
params,
|
|
3203
3203
|
{
|
|
3204
3204
|
...options,
|
|
3205
|
-
enabled: !!eventId
|
|
3205
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3206
3206
|
}
|
|
3207
3207
|
);
|
|
3208
3208
|
};
|
|
@@ -3439,7 +3439,7 @@ var useGetEventPages = (eventId = "", params = {}, options = {}) => {
|
|
|
3439
3439
|
params,
|
|
3440
3440
|
{
|
|
3441
3441
|
...options,
|
|
3442
|
-
enabled: !!eventId
|
|
3442
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3443
3443
|
}
|
|
3444
3444
|
);
|
|
3445
3445
|
};
|
|
@@ -4014,7 +4014,7 @@ var useGetChannelCollections = (channelId, params = {}, options = {}) => {
|
|
|
4014
4014
|
CHANNEL_COLLECTIONS_QUERY_KEY(channelId),
|
|
4015
4015
|
(params2) => GetChannelCollections({ channelId, ...params2 }),
|
|
4016
4016
|
params,
|
|
4017
|
-
options
|
|
4017
|
+
{ ...options, enabled: !!channelId && (options?.enabled ?? true) }
|
|
4018
4018
|
);
|
|
4019
4019
|
};
|
|
4020
4020
|
|
|
@@ -4495,7 +4495,10 @@ var useGetChannelCollectionContents = (channelId, collectionId, params = {}, opt
|
|
|
4495
4495
|
CHANNEL_COLLECTION_CONTENTS_QUERY_KEY(channelId, collectionId),
|
|
4496
4496
|
(params2) => GetChannelCollectionContents({ channelId, collectionId, ...params2 }),
|
|
4497
4497
|
params,
|
|
4498
|
-
|
|
4498
|
+
{
|
|
4499
|
+
...options,
|
|
4500
|
+
enabled: !!channelId && !!collectionId && (options?.enabled ?? true)
|
|
4501
|
+
}
|
|
4499
4502
|
);
|
|
4500
4503
|
};
|
|
4501
4504
|
|
|
@@ -4631,7 +4634,7 @@ var useGetManagedChannelCollections = (channelId, params = {}, options = {}) =>
|
|
|
4631
4634
|
MANAGED_CHANNEL_COLLECTIONS_QUERY_KEY(channelId),
|
|
4632
4635
|
(params2) => GetManagedChannelCollections({ channelId, ...params2 }),
|
|
4633
4636
|
params,
|
|
4634
|
-
options
|
|
4637
|
+
{ ...options, enabled: !!channelId && (options?.enabled ?? true) }
|
|
4635
4638
|
);
|
|
4636
4639
|
};
|
|
4637
4640
|
|
|
@@ -4754,7 +4757,7 @@ var useGetManagedChannelContent = (channelId = "", contentId = "", options = {})
|
|
|
4754
4757
|
(params) => GetManagedChannelContent({ contentId, channelId, ...params }),
|
|
4755
4758
|
{
|
|
4756
4759
|
...options,
|
|
4757
|
-
enabled: !!channelId && !!contentId && options
|
|
4760
|
+
enabled: !!channelId && !!contentId && (options?.enabled ?? true)
|
|
4758
4761
|
}
|
|
4759
4762
|
);
|
|
4760
4763
|
};
|
|
@@ -4951,7 +4954,10 @@ var useGetManagedChannelCollectionContents = (channelId, collectionId, params =
|
|
|
4951
4954
|
...params2
|
|
4952
4955
|
}),
|
|
4953
4956
|
params,
|
|
4954
|
-
|
|
4957
|
+
{
|
|
4958
|
+
...options,
|
|
4959
|
+
enabled: !!channelId && !!collectionId && (options?.enabled ?? true)
|
|
4960
|
+
}
|
|
4955
4961
|
);
|
|
4956
4962
|
};
|
|
4957
4963
|
|
|
@@ -10083,7 +10089,7 @@ var TransferPass = async ({
|
|
|
10083
10089
|
}) => {
|
|
10084
10090
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
10085
10091
|
const { data } = await clientApi.post(
|
|
10086
|
-
`/self/events/${eventId}/
|
|
10092
|
+
`/self/events/${eventId}/attendee/passes/${passId}/transfer`,
|
|
10087
10093
|
{
|
|
10088
10094
|
receiverId
|
|
10089
10095
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -999,7 +999,7 @@ var useGetAccountActivities = (accountId = "", params = {}, options = {}) => {
|
|
|
999
999
|
params,
|
|
1000
1000
|
{
|
|
1001
1001
|
...options,
|
|
1002
|
-
enabled: !!accountId
|
|
1002
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1003
1003
|
}
|
|
1004
1004
|
);
|
|
1005
1005
|
};
|
|
@@ -1681,7 +1681,7 @@ var useGetEvent = (eventId = "", options = {}) => {
|
|
|
1681
1681
|
(params) => GetEvent({ eventId, ...params }),
|
|
1682
1682
|
{
|
|
1683
1683
|
...options,
|
|
1684
|
-
enabled: !!eventId
|
|
1684
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
1685
1685
|
}
|
|
1686
1686
|
);
|
|
1687
1687
|
};
|
|
@@ -2208,7 +2208,7 @@ var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
|
2208
2208
|
params,
|
|
2209
2209
|
{
|
|
2210
2210
|
...options,
|
|
2211
|
-
enabled: !!eventId
|
|
2211
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
2212
2212
|
}
|
|
2213
2213
|
);
|
|
2214
2214
|
};
|
|
@@ -2445,7 +2445,7 @@ var useGetEventPages = (eventId = "", params = {}, options = {}) => {
|
|
|
2445
2445
|
params,
|
|
2446
2446
|
{
|
|
2447
2447
|
...options,
|
|
2448
|
-
enabled: !!eventId
|
|
2448
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
2449
2449
|
}
|
|
2450
2450
|
);
|
|
2451
2451
|
};
|
|
@@ -3020,7 +3020,7 @@ var useGetChannelCollections = (channelId, params = {}, options = {}) => {
|
|
|
3020
3020
|
CHANNEL_COLLECTIONS_QUERY_KEY(channelId),
|
|
3021
3021
|
(params2) => GetChannelCollections({ channelId, ...params2 }),
|
|
3022
3022
|
params,
|
|
3023
|
-
options
|
|
3023
|
+
{ ...options, enabled: !!channelId && (options?.enabled ?? true) }
|
|
3024
3024
|
);
|
|
3025
3025
|
};
|
|
3026
3026
|
|
|
@@ -3501,7 +3501,10 @@ var useGetChannelCollectionContents = (channelId, collectionId, params = {}, opt
|
|
|
3501
3501
|
CHANNEL_COLLECTION_CONTENTS_QUERY_KEY(channelId, collectionId),
|
|
3502
3502
|
(params2) => GetChannelCollectionContents({ channelId, collectionId, ...params2 }),
|
|
3503
3503
|
params,
|
|
3504
|
-
|
|
3504
|
+
{
|
|
3505
|
+
...options,
|
|
3506
|
+
enabled: !!channelId && !!collectionId && (options?.enabled ?? true)
|
|
3507
|
+
}
|
|
3505
3508
|
);
|
|
3506
3509
|
};
|
|
3507
3510
|
|
|
@@ -3637,7 +3640,7 @@ var useGetManagedChannelCollections = (channelId, params = {}, options = {}) =>
|
|
|
3637
3640
|
MANAGED_CHANNEL_COLLECTIONS_QUERY_KEY(channelId),
|
|
3638
3641
|
(params2) => GetManagedChannelCollections({ channelId, ...params2 }),
|
|
3639
3642
|
params,
|
|
3640
|
-
options
|
|
3643
|
+
{ ...options, enabled: !!channelId && (options?.enabled ?? true) }
|
|
3641
3644
|
);
|
|
3642
3645
|
};
|
|
3643
3646
|
|
|
@@ -3760,7 +3763,7 @@ var useGetManagedChannelContent = (channelId = "", contentId = "", options = {})
|
|
|
3760
3763
|
(params) => GetManagedChannelContent({ contentId, channelId, ...params }),
|
|
3761
3764
|
{
|
|
3762
3765
|
...options,
|
|
3763
|
-
enabled: !!channelId && !!contentId && options
|
|
3766
|
+
enabled: !!channelId && !!contentId && (options?.enabled ?? true)
|
|
3764
3767
|
}
|
|
3765
3768
|
);
|
|
3766
3769
|
};
|
|
@@ -3957,7 +3960,10 @@ var useGetManagedChannelCollectionContents = (channelId, collectionId, params =
|
|
|
3957
3960
|
...params2
|
|
3958
3961
|
}),
|
|
3959
3962
|
params,
|
|
3960
|
-
|
|
3963
|
+
{
|
|
3964
|
+
...options,
|
|
3965
|
+
enabled: !!channelId && !!collectionId && (options?.enabled ?? true)
|
|
3966
|
+
}
|
|
3961
3967
|
);
|
|
3962
3968
|
};
|
|
3963
3969
|
|
|
@@ -9092,7 +9098,7 @@ var TransferPass = async ({
|
|
|
9092
9098
|
}) => {
|
|
9093
9099
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
9094
9100
|
const { data } = await clientApi.post(
|
|
9095
|
-
`/self/events/${eventId}/
|
|
9101
|
+
`/self/events/${eventId}/attendee/passes/${passId}/transfer`,
|
|
9096
9102
|
{
|
|
9097
9103
|
receiverId
|
|
9098
9104
|
}
|