@connectedxm/admin 7.2.2 → 7.2.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.cjs +100 -0
- package/dist/index.d.cts +50 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +92 -0
- package/openapi.json +205 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
ACCOUNT_ACTIVITIES_QUERY_KEY: () => ACCOUNT_ACTIVITIES_QUERY_KEY,
|
|
36
36
|
ACCOUNT_ADDRESSES_QUERY_KEY: () => ACCOUNT_ADDRESSES_QUERY_KEY,
|
|
37
37
|
ACCOUNT_ADDRESS_QUERY_KEY: () => ACCOUNT_ADDRESS_QUERY_KEY,
|
|
38
|
+
ACCOUNT_BOOKINGS_QUERY_KEY: () => ACCOUNT_BOOKINGS_QUERY_KEY,
|
|
38
39
|
ACCOUNT_COMMENTS_QUERY_KEY: () => ACCOUNT_COMMENTS_QUERY_KEY,
|
|
39
40
|
ACCOUNT_EMAILS_QUERY_KEY: () => ACCOUNT_EMAILS_QUERY_KEY,
|
|
40
41
|
ACCOUNT_EVENTS_QUERY_KEY: () => ACCOUNT_EVENTS_QUERY_KEY,
|
|
@@ -51,6 +52,7 @@ __export(index_exports, {
|
|
|
51
52
|
ACCOUNT_PAYMENTS_QUERY_KEY: () => ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
52
53
|
ACCOUNT_QUERY_KEY: () => ACCOUNT_QUERY_KEY,
|
|
53
54
|
ACCOUNT_REGISTRATIONS_QUERY_KEY: () => ACCOUNT_REGISTRATIONS_QUERY_KEY,
|
|
55
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY: () => ACCOUNT_SUPPORT_TICKETS_QUERY_KEY,
|
|
54
56
|
ACCOUNT_THREADS_QUERY_KEY: () => ACCOUNT_THREADS_QUERY_KEY,
|
|
55
57
|
ACCOUNT_TIERS_QUERY_KEY: () => ACCOUNT_TIERS_QUERY_KEY,
|
|
56
58
|
ACTIVITIES_QUERY_KEY: () => ACTIVITIES_QUERY_KEY,
|
|
@@ -793,6 +795,7 @@ __export(index_exports, {
|
|
|
793
795
|
GetAccountActivities: () => GetAccountActivities,
|
|
794
796
|
GetAccountAddress: () => GetAccountAddress,
|
|
795
797
|
GetAccountAddresses: () => GetAccountAddresses,
|
|
798
|
+
GetAccountBookings: () => GetAccountBookings,
|
|
796
799
|
GetAccountComments: () => GetAccountComments,
|
|
797
800
|
GetAccountEvents: () => GetAccountEvents,
|
|
798
801
|
GetAccountFollowers: () => GetAccountFollowers,
|
|
@@ -807,6 +810,7 @@ __export(index_exports, {
|
|
|
807
810
|
GetAccountNotificationPreferences: () => GetAccountNotificationPreferences,
|
|
808
811
|
GetAccountPayments: () => GetAccountPayments,
|
|
809
812
|
GetAccountRegistrations: () => GetAccountRegistrations,
|
|
813
|
+
GetAccountSupportTickets: () => GetAccountSupportTickets,
|
|
810
814
|
GetAccountThreads: () => GetAccountThreads,
|
|
811
815
|
GetAccountTiers: () => GetAccountTiers,
|
|
812
816
|
GetAccounts: () => GetAccounts,
|
|
@@ -1567,6 +1571,7 @@ __export(index_exports, {
|
|
|
1567
1571
|
SET_ACCOUNTS_QUERY_DATA: () => SET_ACCOUNTS_QUERY_DATA,
|
|
1568
1572
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA: () => SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
1569
1573
|
SET_ACCOUNT_ADDRESSES_QUERY_DATA: () => SET_ACCOUNT_ADDRESSES_QUERY_DATA,
|
|
1574
|
+
SET_ACCOUNT_BOOKINGS_QUERY_DATA: () => SET_ACCOUNT_BOOKINGS_QUERY_DATA,
|
|
1570
1575
|
SET_ACCOUNT_COMMENTS_QUERY_DATA: () => SET_ACCOUNT_COMMENTS_QUERY_DATA,
|
|
1571
1576
|
SET_ACCOUNT_EMAILS_QUERY_DATA: () => SET_ACCOUNT_EMAILS_QUERY_DATA,
|
|
1572
1577
|
SET_ACCOUNT_EVENTS_QUERY_DATA: () => SET_ACCOUNT_EVENTS_QUERY_DATA,
|
|
@@ -1584,6 +1589,7 @@ __export(index_exports, {
|
|
|
1584
1589
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA: () => SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
1585
1590
|
SET_ACCOUNT_QUERY_DATA: () => SET_ACCOUNT_QUERY_DATA,
|
|
1586
1591
|
SET_ACCOUNT_REGISTRATIONS_QUERY_DATA: () => SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
|
|
1592
|
+
SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA: () => SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA,
|
|
1587
1593
|
SET_ACCOUNT_THREADS_QUERY_DATA: () => SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
1588
1594
|
SET_ACCOUNT_TIERS_QUERY_DATA: () => SET_ACCOUNT_TIERS_QUERY_DATA,
|
|
1589
1595
|
SET_ACTIVITIES_QUERY_DATA: () => SET_ACTIVITIES_QUERY_DATA,
|
|
@@ -2758,6 +2764,7 @@ __export(index_exports, {
|
|
|
2758
2764
|
useGetAccountActivities: () => useGetAccountActivities,
|
|
2759
2765
|
useGetAccountAddress: () => useGetAccountAddress,
|
|
2760
2766
|
useGetAccountAddresses: () => useGetAccountAddresses,
|
|
2767
|
+
useGetAccountBookings: () => useGetAccountBookings,
|
|
2761
2768
|
useGetAccountComments: () => useGetAccountComments,
|
|
2762
2769
|
useGetAccountEvents: () => useGetAccountEvents,
|
|
2763
2770
|
useGetAccountFollowers: () => useGetAccountFollowers,
|
|
@@ -2772,6 +2779,7 @@ __export(index_exports, {
|
|
|
2772
2779
|
useGetAccountNotificationPreferences: () => useGetAccountNotificationPreferences,
|
|
2773
2780
|
useGetAccountPayments: () => useGetAccountPayments,
|
|
2774
2781
|
useGetAccountRegistrations: () => useGetAccountRegistrations,
|
|
2782
|
+
useGetAccountSupportTickets: () => useGetAccountSupportTickets,
|
|
2775
2783
|
useGetAccountThreads: () => useGetAccountThreads,
|
|
2776
2784
|
useGetAccountTiers: () => useGetAccountTiers,
|
|
2777
2785
|
useGetAccounts: () => useGetAccounts,
|
|
@@ -5177,6 +5185,45 @@ var useGetAccountActivities = (accountId = "", status, params = {}, options = {}
|
|
|
5177
5185
|
);
|
|
5178
5186
|
};
|
|
5179
5187
|
|
|
5188
|
+
// src/queries/accounts/useGetAccountBookings.ts
|
|
5189
|
+
var ACCOUNT_BOOKINGS_QUERY_KEY = (accountId) => [
|
|
5190
|
+
...ACCOUNT_QUERY_KEY(accountId),
|
|
5191
|
+
"BOOKINGS"
|
|
5192
|
+
];
|
|
5193
|
+
var SET_ACCOUNT_BOOKINGS_QUERY_DATA = (client, keyParams, response) => {
|
|
5194
|
+
client.setQueryData(ACCOUNT_BOOKINGS_QUERY_KEY(...keyParams), response);
|
|
5195
|
+
};
|
|
5196
|
+
var GetAccountBookings = async ({
|
|
5197
|
+
accountId,
|
|
5198
|
+
pageParam,
|
|
5199
|
+
pageSize,
|
|
5200
|
+
orderBy,
|
|
5201
|
+
search,
|
|
5202
|
+
adminApiParams
|
|
5203
|
+
}) => {
|
|
5204
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5205
|
+
const { data } = await adminApi.get(`/accounts/${accountId}/bookings`, {
|
|
5206
|
+
params: {
|
|
5207
|
+
page: pageParam || void 0,
|
|
5208
|
+
pageSize: pageSize || void 0,
|
|
5209
|
+
orderBy: orderBy || void 0,
|
|
5210
|
+
search: search || void 0
|
|
5211
|
+
}
|
|
5212
|
+
});
|
|
5213
|
+
return data;
|
|
5214
|
+
};
|
|
5215
|
+
var useGetAccountBookings = (accountId = "", params = {}, options = {}) => {
|
|
5216
|
+
return useConnectedInfiniteQuery(
|
|
5217
|
+
ACCOUNT_BOOKINGS_QUERY_KEY(accountId),
|
|
5218
|
+
(params2) => GetAccountBookings({ accountId, ...params2 }),
|
|
5219
|
+
params,
|
|
5220
|
+
{
|
|
5221
|
+
...options,
|
|
5222
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
5223
|
+
}
|
|
5224
|
+
);
|
|
5225
|
+
};
|
|
5226
|
+
|
|
5180
5227
|
// src/queries/accounts/useGetAccountComments.ts
|
|
5181
5228
|
var ACCOUNT_COMMENTS_QUERY_KEY = (accountId) => [
|
|
5182
5229
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
@@ -5453,6 +5500,51 @@ var useGetAccountRegistrations = (accountId = "", params = {}, options = {}) =>
|
|
|
5453
5500
|
);
|
|
5454
5501
|
};
|
|
5455
5502
|
|
|
5503
|
+
// src/queries/accounts/useGetAccountSupportTickets.ts
|
|
5504
|
+
var ACCOUNT_SUPPORT_TICKETS_QUERY_KEY = (accountId) => [
|
|
5505
|
+
...ACCOUNT_QUERY_KEY(accountId),
|
|
5506
|
+
"SUPPORT_TICKETS"
|
|
5507
|
+
];
|
|
5508
|
+
var SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA = (client, keyParams, response) => {
|
|
5509
|
+
client.setQueryData(
|
|
5510
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY(...keyParams),
|
|
5511
|
+
response
|
|
5512
|
+
);
|
|
5513
|
+
};
|
|
5514
|
+
var GetAccountSupportTickets = async ({
|
|
5515
|
+
accountId,
|
|
5516
|
+
pageParam,
|
|
5517
|
+
pageSize,
|
|
5518
|
+
orderBy,
|
|
5519
|
+
search,
|
|
5520
|
+
adminApiParams
|
|
5521
|
+
}) => {
|
|
5522
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5523
|
+
const { data } = await adminApi.get(
|
|
5524
|
+
`/accounts/${accountId}/supportTickets`,
|
|
5525
|
+
{
|
|
5526
|
+
params: {
|
|
5527
|
+
page: pageParam || void 0,
|
|
5528
|
+
pageSize: pageSize || void 0,
|
|
5529
|
+
orderBy: orderBy || void 0,
|
|
5530
|
+
search: search || void 0
|
|
5531
|
+
}
|
|
5532
|
+
}
|
|
5533
|
+
);
|
|
5534
|
+
return data;
|
|
5535
|
+
};
|
|
5536
|
+
var useGetAccountSupportTickets = (accountId = "", params = {}, options = {}) => {
|
|
5537
|
+
return useConnectedInfiniteQuery(
|
|
5538
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY(accountId),
|
|
5539
|
+
(params2) => GetAccountSupportTickets({ accountId, ...params2 }),
|
|
5540
|
+
params,
|
|
5541
|
+
{
|
|
5542
|
+
...options,
|
|
5543
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
5544
|
+
}
|
|
5545
|
+
);
|
|
5546
|
+
};
|
|
5547
|
+
|
|
5456
5548
|
// src/queries/accounts/useGetAccountThreads.ts
|
|
5457
5549
|
var ACCOUNT_THREADS_QUERY_KEY = (accountId) => {
|
|
5458
5550
|
const keys = ["THREADS", "ACCOUNT", accountId];
|
|
@@ -43473,6 +43565,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43473
43565
|
ACCOUNT_ACTIVITIES_QUERY_KEY,
|
|
43474
43566
|
ACCOUNT_ADDRESSES_QUERY_KEY,
|
|
43475
43567
|
ACCOUNT_ADDRESS_QUERY_KEY,
|
|
43568
|
+
ACCOUNT_BOOKINGS_QUERY_KEY,
|
|
43476
43569
|
ACCOUNT_COMMENTS_QUERY_KEY,
|
|
43477
43570
|
ACCOUNT_EMAILS_QUERY_KEY,
|
|
43478
43571
|
ACCOUNT_EVENTS_QUERY_KEY,
|
|
@@ -43489,6 +43582,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43489
43582
|
ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
43490
43583
|
ACCOUNT_QUERY_KEY,
|
|
43491
43584
|
ACCOUNT_REGISTRATIONS_QUERY_KEY,
|
|
43585
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY,
|
|
43492
43586
|
ACCOUNT_THREADS_QUERY_KEY,
|
|
43493
43587
|
ACCOUNT_TIERS_QUERY_KEY,
|
|
43494
43588
|
ACTIVITIES_QUERY_KEY,
|
|
@@ -44231,6 +44325,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44231
44325
|
GetAccountActivities,
|
|
44232
44326
|
GetAccountAddress,
|
|
44233
44327
|
GetAccountAddresses,
|
|
44328
|
+
GetAccountBookings,
|
|
44234
44329
|
GetAccountComments,
|
|
44235
44330
|
GetAccountEvents,
|
|
44236
44331
|
GetAccountFollowers,
|
|
@@ -44245,6 +44340,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44245
44340
|
GetAccountNotificationPreferences,
|
|
44246
44341
|
GetAccountPayments,
|
|
44247
44342
|
GetAccountRegistrations,
|
|
44343
|
+
GetAccountSupportTickets,
|
|
44248
44344
|
GetAccountThreads,
|
|
44249
44345
|
GetAccountTiers,
|
|
44250
44346
|
GetAccounts,
|
|
@@ -45005,6 +45101,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45005
45101
|
SET_ACCOUNTS_QUERY_DATA,
|
|
45006
45102
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
45007
45103
|
SET_ACCOUNT_ADDRESSES_QUERY_DATA,
|
|
45104
|
+
SET_ACCOUNT_BOOKINGS_QUERY_DATA,
|
|
45008
45105
|
SET_ACCOUNT_COMMENTS_QUERY_DATA,
|
|
45009
45106
|
SET_ACCOUNT_EMAILS_QUERY_DATA,
|
|
45010
45107
|
SET_ACCOUNT_EVENTS_QUERY_DATA,
|
|
@@ -45022,6 +45119,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45022
45119
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
45023
45120
|
SET_ACCOUNT_QUERY_DATA,
|
|
45024
45121
|
SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
|
|
45122
|
+
SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA,
|
|
45025
45123
|
SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
45026
45124
|
SET_ACCOUNT_TIERS_QUERY_DATA,
|
|
45027
45125
|
SET_ACTIVITIES_QUERY_DATA,
|
|
@@ -46196,6 +46294,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
46196
46294
|
useGetAccountActivities,
|
|
46197
46295
|
useGetAccountAddress,
|
|
46198
46296
|
useGetAccountAddresses,
|
|
46297
|
+
useGetAccountBookings,
|
|
46199
46298
|
useGetAccountComments,
|
|
46200
46299
|
useGetAccountEvents,
|
|
46201
46300
|
useGetAccountFollowers,
|
|
@@ -46210,6 +46309,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
46210
46309
|
useGetAccountNotificationPreferences,
|
|
46211
46310
|
useGetAccountPayments,
|
|
46212
46311
|
useGetAccountRegistrations,
|
|
46312
|
+
useGetAccountSupportTickets,
|
|
46213
46313
|
useGetAccountThreads,
|
|
46214
46314
|
useGetAccountTiers,
|
|
46215
46315
|
useGetAccounts,
|