@connectedxm/admin 7.2.3 → 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 +69 -16
- package/dist/index.d.cts +30 -6
- package/dist/index.d.ts +30 -6
- package/dist/index.js +65 -16
- package/openapi.json +101 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
ACCOUNT_PAYMENTS_QUERY_KEY: () => ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
53
53
|
ACCOUNT_QUERY_KEY: () => ACCOUNT_QUERY_KEY,
|
|
54
54
|
ACCOUNT_REGISTRATIONS_QUERY_KEY: () => ACCOUNT_REGISTRATIONS_QUERY_KEY,
|
|
55
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY: () => ACCOUNT_SUPPORT_TICKETS_QUERY_KEY,
|
|
55
56
|
ACCOUNT_THREADS_QUERY_KEY: () => ACCOUNT_THREADS_QUERY_KEY,
|
|
56
57
|
ACCOUNT_TIERS_QUERY_KEY: () => ACCOUNT_TIERS_QUERY_KEY,
|
|
57
58
|
ACTIVITIES_QUERY_KEY: () => ACTIVITIES_QUERY_KEY,
|
|
@@ -809,6 +810,7 @@ __export(index_exports, {
|
|
|
809
810
|
GetAccountNotificationPreferences: () => GetAccountNotificationPreferences,
|
|
810
811
|
GetAccountPayments: () => GetAccountPayments,
|
|
811
812
|
GetAccountRegistrations: () => GetAccountRegistrations,
|
|
813
|
+
GetAccountSupportTickets: () => GetAccountSupportTickets,
|
|
812
814
|
GetAccountThreads: () => GetAccountThreads,
|
|
813
815
|
GetAccountTiers: () => GetAccountTiers,
|
|
814
816
|
GetAccounts: () => GetAccounts,
|
|
@@ -1587,6 +1589,7 @@ __export(index_exports, {
|
|
|
1587
1589
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA: () => SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
1588
1590
|
SET_ACCOUNT_QUERY_DATA: () => SET_ACCOUNT_QUERY_DATA,
|
|
1589
1591
|
SET_ACCOUNT_REGISTRATIONS_QUERY_DATA: () => SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
|
|
1592
|
+
SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA: () => SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA,
|
|
1590
1593
|
SET_ACCOUNT_THREADS_QUERY_DATA: () => SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
1591
1594
|
SET_ACCOUNT_TIERS_QUERY_DATA: () => SET_ACCOUNT_TIERS_QUERY_DATA,
|
|
1592
1595
|
SET_ACTIVITIES_QUERY_DATA: () => SET_ACTIVITIES_QUERY_DATA,
|
|
@@ -2776,6 +2779,7 @@ __export(index_exports, {
|
|
|
2776
2779
|
useGetAccountNotificationPreferences: () => useGetAccountNotificationPreferences,
|
|
2777
2780
|
useGetAccountPayments: () => useGetAccountPayments,
|
|
2778
2781
|
useGetAccountRegistrations: () => useGetAccountRegistrations,
|
|
2782
|
+
useGetAccountSupportTickets: () => useGetAccountSupportTickets,
|
|
2779
2783
|
useGetAccountThreads: () => useGetAccountThreads,
|
|
2780
2784
|
useGetAccountTiers: () => useGetAccountTiers,
|
|
2781
2785
|
useGetAccounts: () => useGetAccounts,
|
|
@@ -5181,6 +5185,45 @@ var useGetAccountActivities = (accountId = "", status, params = {}, options = {}
|
|
|
5181
5185
|
);
|
|
5182
5186
|
};
|
|
5183
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
|
+
|
|
5184
5227
|
// src/queries/accounts/useGetAccountComments.ts
|
|
5185
5228
|
var ACCOUNT_COMMENTS_QUERY_KEY = (accountId) => [
|
|
5186
5229
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
@@ -5457,15 +5500,18 @@ var useGetAccountRegistrations = (accountId = "", params = {}, options = {}) =>
|
|
|
5457
5500
|
);
|
|
5458
5501
|
};
|
|
5459
5502
|
|
|
5460
|
-
// src/queries/accounts/
|
|
5461
|
-
var
|
|
5503
|
+
// src/queries/accounts/useGetAccountSupportTickets.ts
|
|
5504
|
+
var ACCOUNT_SUPPORT_TICKETS_QUERY_KEY = (accountId) => [
|
|
5462
5505
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
5463
|
-
"
|
|
5506
|
+
"SUPPORT_TICKETS"
|
|
5464
5507
|
];
|
|
5465
|
-
var
|
|
5466
|
-
client.setQueryData(
|
|
5508
|
+
var SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA = (client, keyParams, response) => {
|
|
5509
|
+
client.setQueryData(
|
|
5510
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY(...keyParams),
|
|
5511
|
+
response
|
|
5512
|
+
);
|
|
5467
5513
|
};
|
|
5468
|
-
var
|
|
5514
|
+
var GetAccountSupportTickets = async ({
|
|
5469
5515
|
accountId,
|
|
5470
5516
|
pageParam,
|
|
5471
5517
|
pageSize,
|
|
@@ -5474,20 +5520,23 @@ var GetAccountBookings = async ({
|
|
|
5474
5520
|
adminApiParams
|
|
5475
5521
|
}) => {
|
|
5476
5522
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
5477
|
-
const { data } = await adminApi.get(
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
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
|
+
}
|
|
5483
5532
|
}
|
|
5484
|
-
|
|
5533
|
+
);
|
|
5485
5534
|
return data;
|
|
5486
5535
|
};
|
|
5487
|
-
var
|
|
5536
|
+
var useGetAccountSupportTickets = (accountId = "", params = {}, options = {}) => {
|
|
5488
5537
|
return useConnectedInfiniteQuery(
|
|
5489
|
-
|
|
5490
|
-
(params2) =>
|
|
5538
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY(accountId),
|
|
5539
|
+
(params2) => GetAccountSupportTickets({ accountId, ...params2 }),
|
|
5491
5540
|
params,
|
|
5492
5541
|
{
|
|
5493
5542
|
...options,
|
|
@@ -43533,6 +43582,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43533
43582
|
ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
43534
43583
|
ACCOUNT_QUERY_KEY,
|
|
43535
43584
|
ACCOUNT_REGISTRATIONS_QUERY_KEY,
|
|
43585
|
+
ACCOUNT_SUPPORT_TICKETS_QUERY_KEY,
|
|
43536
43586
|
ACCOUNT_THREADS_QUERY_KEY,
|
|
43537
43587
|
ACCOUNT_TIERS_QUERY_KEY,
|
|
43538
43588
|
ACTIVITIES_QUERY_KEY,
|
|
@@ -44290,6 +44340,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44290
44340
|
GetAccountNotificationPreferences,
|
|
44291
44341
|
GetAccountPayments,
|
|
44292
44342
|
GetAccountRegistrations,
|
|
44343
|
+
GetAccountSupportTickets,
|
|
44293
44344
|
GetAccountThreads,
|
|
44294
44345
|
GetAccountTiers,
|
|
44295
44346
|
GetAccounts,
|
|
@@ -45068,6 +45119,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
45068
45119
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
45069
45120
|
SET_ACCOUNT_QUERY_DATA,
|
|
45070
45121
|
SET_ACCOUNT_REGISTRATIONS_QUERY_DATA,
|
|
45122
|
+
SET_ACCOUNT_SUPPORT_TICKETS_QUERY_DATA,
|
|
45071
45123
|
SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
45072
45124
|
SET_ACCOUNT_TIERS_QUERY_DATA,
|
|
45073
45125
|
SET_ACTIVITIES_QUERY_DATA,
|
|
@@ -46257,6 +46309,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
46257
46309
|
useGetAccountNotificationPreferences,
|
|
46258
46310
|
useGetAccountPayments,
|
|
46259
46311
|
useGetAccountRegistrations,
|
|
46312
|
+
useGetAccountSupportTickets,
|
|
46260
46313
|
useGetAccountThreads,
|
|
46261
46314
|
useGetAccountTiers,
|
|
46262
46315
|
useGetAccounts,
|