@connectedxm/admin 3.2.2 → 3.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 +161 -117
- package/dist/index.d.cts +92 -70
- package/dist/index.d.ts +92 -70
- package/dist/index.js +149 -108
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -49,8 +49,6 @@ __export(index_exports, {
|
|
|
49
49
|
ACCOUNT_LIKES_QUERY_KEY: () => ACCOUNT_LIKES_QUERY_KEY,
|
|
50
50
|
ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY: () => ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY,
|
|
51
51
|
ACCOUNT_PAYMENTS_QUERY_KEY: () => ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
52
|
-
ACCOUNT_PUSH_DEVICES_QUERY_KEY: () => ACCOUNT_PUSH_DEVICES_QUERY_KEY,
|
|
53
|
-
ACCOUNT_PUSH_DEVICE_QUERY_KEY: () => ACCOUNT_PUSH_DEVICE_QUERY_KEY,
|
|
54
52
|
ACCOUNT_QUERY_KEY: () => ACCOUNT_QUERY_KEY,
|
|
55
53
|
ACCOUNT_SUBSCRIPTIONS_QUERY_KEY: () => ACCOUNT_SUBSCRIPTIONS_QUERY_KEY,
|
|
56
54
|
ACCOUNT_THREADS_QUERY_KEY: () => ACCOUNT_THREADS_QUERY_KEY,
|
|
@@ -344,7 +342,6 @@ __export(index_exports, {
|
|
|
344
342
|
DeleteAccountAddress: () => DeleteAccountAddress,
|
|
345
343
|
DeleteAccountInvitation: () => DeleteAccountInvitation,
|
|
346
344
|
DeleteAccountLead: () => DeleteAccountLead,
|
|
347
|
-
DeleteAccountPushDevice: () => DeleteAccountPushDevice,
|
|
348
345
|
DeleteActivity: () => DeleteActivity,
|
|
349
346
|
DeleteAdvertisement: () => DeleteAdvertisement,
|
|
350
347
|
DeleteAnnouncement: () => DeleteAnnouncement,
|
|
@@ -457,6 +454,7 @@ __export(index_exports, {
|
|
|
457
454
|
DeleteOrganizationTeamMember: () => DeleteOrganizationTeamMember,
|
|
458
455
|
DeleteOrganizationUser: () => DeleteOrganizationUser,
|
|
459
456
|
DeleteOrganizationWebhook: () => DeleteOrganizationWebhook,
|
|
457
|
+
DeletePushDevice: () => DeletePushDevice,
|
|
460
458
|
DeleteSelfApiKey: () => DeleteSelfApiKey,
|
|
461
459
|
DeleteSeries: () => DeleteSeries,
|
|
462
460
|
DeleteStreamInput: () => DeleteStreamInput,
|
|
@@ -746,8 +744,6 @@ __export(index_exports, {
|
|
|
746
744
|
GetAccountLikes: () => GetAccountLikes,
|
|
747
745
|
GetAccountNotificationPreferences: () => GetAccountNotificationPreferences,
|
|
748
746
|
GetAccountPayments: () => GetAccountPayments,
|
|
749
|
-
GetAccountPushDevice: () => GetAccountPushDevice,
|
|
750
|
-
GetAccountPushDevices: () => GetAccountPushDevices,
|
|
751
747
|
GetAccountSubscriptions: () => GetAccountSubscriptions,
|
|
752
748
|
GetAccountThreads: () => GetAccountThreads,
|
|
753
749
|
GetAccountTiers: () => GetAccountTiers,
|
|
@@ -1075,6 +1071,7 @@ __export(index_exports, {
|
|
|
1075
1071
|
GetLinkPreview: () => GetLinkPreview,
|
|
1076
1072
|
GetLogin: () => GetLogin,
|
|
1077
1073
|
GetLoginAccounts: () => GetLoginAccounts,
|
|
1074
|
+
GetLoginDevices: () => GetLoginDevices,
|
|
1078
1075
|
GetLogins: () => GetLogins,
|
|
1079
1076
|
GetMembership: () => GetMembership,
|
|
1080
1077
|
GetMembershipPrice: () => GetMembershipPrice,
|
|
@@ -1103,6 +1100,8 @@ __export(index_exports, {
|
|
|
1103
1100
|
GetOrganizationWebhooks: () => GetOrganizationWebhooks,
|
|
1104
1101
|
GetPayment: () => GetPayment,
|
|
1105
1102
|
GetPayments: () => GetPayments,
|
|
1103
|
+
GetPushDevice: () => GetPushDevice,
|
|
1104
|
+
GetPushDevices: () => GetPushDevices,
|
|
1106
1105
|
GetReport: () => GetReport,
|
|
1107
1106
|
GetReports: () => GetReports,
|
|
1108
1107
|
GetSelf: () => GetSelf,
|
|
@@ -1218,6 +1217,7 @@ __export(index_exports, {
|
|
|
1218
1217
|
LINK_PREVIEW_QUERY_KEY: () => LINK_PREVIEW_QUERY_KEY,
|
|
1219
1218
|
LOGINS_QUERY_KEY: () => LOGINS_QUERY_KEY,
|
|
1220
1219
|
LOGIN_ACCOUNTS_QUERY_KEY: () => LOGIN_ACCOUNTS_QUERY_KEY,
|
|
1220
|
+
LOGIN_DEVICES_QUERY_KEY: () => LOGIN_DEVICES_QUERY_KEY,
|
|
1221
1221
|
LOGIN_QUERY_KEY: () => LOGIN_QUERY_KEY,
|
|
1222
1222
|
LeadStatus: () => LeadStatus,
|
|
1223
1223
|
MEMBERSHIPS_QUERY_KEY: () => MEMBERSHIPS_QUERY_KEY,
|
|
@@ -1256,6 +1256,8 @@ __export(index_exports, {
|
|
|
1256
1256
|
OrganizationTriggerType: () => OrganizationTriggerType,
|
|
1257
1257
|
PAYMENTS_QUERY_KEY: () => PAYMENTS_QUERY_KEY,
|
|
1258
1258
|
PAYMENT_QUERY_KEY: () => PAYMENT_QUERY_KEY,
|
|
1259
|
+
PUSH_DEVICES_QUERY_KEY: () => PUSH_DEVICES_QUERY_KEY,
|
|
1260
|
+
PUSH_DEVICE_QUERY_KEY: () => PUSH_DEVICE_QUERY_KEY,
|
|
1259
1261
|
PageType: () => PageType,
|
|
1260
1262
|
PassTypeAccessLevel: () => PassTypeAccessLevel,
|
|
1261
1263
|
PassTypeVisibility: () => PassTypeVisibility,
|
|
@@ -1369,7 +1371,6 @@ __export(index_exports, {
|
|
|
1369
1371
|
SET_ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_DATA: () => SET_ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_DATA,
|
|
1370
1372
|
SET_ACCOUNT_PAYMENTS_QUERY_DATA: () => SET_ACCOUNT_PAYMENTS_QUERY_DATA,
|
|
1371
1373
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA: () => SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
1372
|
-
SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA: () => SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA,
|
|
1373
1374
|
SET_ACCOUNT_QUERY_DATA: () => SET_ACCOUNT_QUERY_DATA,
|
|
1374
1375
|
SET_ACCOUNT_SUBSCRIPTIONS_QUERY_DATA: () => SET_ACCOUNT_SUBSCRIPTIONS_QUERY_DATA,
|
|
1375
1376
|
SET_ACCOUNT_THREADS_QUERY_DATA: () => SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
@@ -1717,6 +1718,7 @@ __export(index_exports, {
|
|
|
1717
1718
|
SET_PASS_TYPE_COUPONS_QUERY_DATA: () => SET_PASS_TYPE_COUPONS_QUERY_DATA,
|
|
1718
1719
|
SET_PAYMENTS_QUERY_DATA: () => SET_PAYMENTS_QUERY_DATA,
|
|
1719
1720
|
SET_PAYMENT_QUERY_DATA: () => SET_PAYMENT_QUERY_DATA,
|
|
1721
|
+
SET_PUSH_DEVICE_QUERY_DATA: () => SET_PUSH_DEVICE_QUERY_DATA,
|
|
1720
1722
|
SET_REPORTS_QUERY_DATA: () => SET_REPORTS_QUERY_DATA,
|
|
1721
1723
|
SET_REPORT_QUERY_DATA: () => SET_REPORT_QUERY_DATA,
|
|
1722
1724
|
SET_SEARCH_ORGANIZATION_QUERY_DATA: () => SET_SEARCH_ORGANIZATION_QUERY_DATA,
|
|
@@ -2256,7 +2258,6 @@ __export(index_exports, {
|
|
|
2256
2258
|
useDeleteAccountAddress: () => useDeleteAccountAddress,
|
|
2257
2259
|
useDeleteAccountInvitation: () => useDeleteAccountInvitation,
|
|
2258
2260
|
useDeleteAccountLead: () => useDeleteAccountLead,
|
|
2259
|
-
useDeleteAccountPushDevice: () => useDeleteAccountPushDevice,
|
|
2260
2261
|
useDeleteActivity: () => useDeleteActivity,
|
|
2261
2262
|
useDeleteAdvertisement: () => useDeleteAdvertisement,
|
|
2262
2263
|
useDeleteAnnouncement: () => useDeleteAnnouncement,
|
|
@@ -2369,6 +2370,7 @@ __export(index_exports, {
|
|
|
2369
2370
|
useDeleteOrganizationTeamMember: () => useDeleteOrganizationTeamMember,
|
|
2370
2371
|
useDeleteOrganizationUser: () => useDeleteOrganizationUser,
|
|
2371
2372
|
useDeleteOrganizationWebhook: () => useDeleteOrganizationWebhook,
|
|
2373
|
+
useDeletePushDevice: () => useDeletePushDevice,
|
|
2372
2374
|
useDeleteSelfApiKey: () => useDeleteSelfApiKey,
|
|
2373
2375
|
useDeleteSeries: () => useDeleteSeries,
|
|
2374
2376
|
useDeleteStreamInput: () => useDeleteStreamInput,
|
|
@@ -2424,8 +2426,6 @@ __export(index_exports, {
|
|
|
2424
2426
|
useGetAccountLikes: () => useGetAccountLikes,
|
|
2425
2427
|
useGetAccountNotificationPreferences: () => useGetAccountNotificationPreferences,
|
|
2426
2428
|
useGetAccountPayments: () => useGetAccountPayments,
|
|
2427
|
-
useGetAccountPushDevice: () => useGetAccountPushDevice,
|
|
2428
|
-
useGetAccountPushDevices: () => useGetAccountPushDevices,
|
|
2429
2429
|
useGetAccountSubscriptions: () => useGetAccountSubscriptions,
|
|
2430
2430
|
useGetAccountThreads: () => useGetAccountThreads,
|
|
2431
2431
|
useGetAccountTiers: () => useGetAccountTiers,
|
|
@@ -2749,6 +2749,7 @@ __export(index_exports, {
|
|
|
2749
2749
|
useGetLinkPreview: () => useGetLinkPreview,
|
|
2750
2750
|
useGetLogin: () => useGetLogin,
|
|
2751
2751
|
useGetLoginAccounts: () => useGetLoginAccounts,
|
|
2752
|
+
useGetLoginDevices: () => useGetLoginDevices,
|
|
2752
2753
|
useGetLogins: () => useGetLogins,
|
|
2753
2754
|
useGetMembership: () => useGetMembership,
|
|
2754
2755
|
useGetMembershipPrice: () => useGetMembershipPrice,
|
|
@@ -2777,6 +2778,8 @@ __export(index_exports, {
|
|
|
2777
2778
|
useGetOrganizationWebhooks: () => useGetOrganizationWebhooks,
|
|
2778
2779
|
useGetPayment: () => useGetPayment,
|
|
2779
2780
|
useGetPayments: () => useGetPayments,
|
|
2781
|
+
useGetPushDevice: () => useGetPushDevice,
|
|
2782
|
+
useGetPushDevices: () => useGetPushDevices,
|
|
2780
2783
|
useGetReport: () => useGetReport,
|
|
2781
2784
|
useGetReports: () => useGetReports,
|
|
2782
2785
|
useGetSelf: () => useGetSelf,
|
|
@@ -4075,77 +4078,6 @@ var useGetAccountPayments = (accountId = "", params = {}, options = {}) => {
|
|
|
4075
4078
|
);
|
|
4076
4079
|
};
|
|
4077
4080
|
|
|
4078
|
-
// src/queries/accounts/useGetAccountPushDevices.ts
|
|
4079
|
-
var ACCOUNT_PUSH_DEVICES_QUERY_KEY = (accountId) => {
|
|
4080
|
-
const key = [...ACCOUNT_QUERY_KEY(accountId), "PUSH_DEVICES"];
|
|
4081
|
-
return key;
|
|
4082
|
-
};
|
|
4083
|
-
var SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA = (client, keyParams, response) => {
|
|
4084
|
-
client.setQueryData(ACCOUNT_PUSH_DEVICES_QUERY_KEY(...keyParams), response);
|
|
4085
|
-
};
|
|
4086
|
-
var GetAccountPushDevices = async ({
|
|
4087
|
-
accountId,
|
|
4088
|
-
pageParam,
|
|
4089
|
-
pageSize,
|
|
4090
|
-
orderBy,
|
|
4091
|
-
search,
|
|
4092
|
-
adminApiParams
|
|
4093
|
-
}) => {
|
|
4094
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
4095
|
-
const { data } = await adminApi.get(`/accounts/${accountId}/push-devices`, {
|
|
4096
|
-
params: {
|
|
4097
|
-
page: pageParam || void 0,
|
|
4098
|
-
pageSize: pageSize || void 0,
|
|
4099
|
-
orderBy: orderBy || void 0,
|
|
4100
|
-
search: search || void 0
|
|
4101
|
-
}
|
|
4102
|
-
});
|
|
4103
|
-
return data;
|
|
4104
|
-
};
|
|
4105
|
-
var useGetAccountPushDevices = (accountId = "", params = {}, options = {}) => {
|
|
4106
|
-
return useConnectedInfiniteQuery(
|
|
4107
|
-
ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId),
|
|
4108
|
-
(params2) => GetAccountPushDevices({
|
|
4109
|
-
...params2,
|
|
4110
|
-
accountId
|
|
4111
|
-
}),
|
|
4112
|
-
params,
|
|
4113
|
-
{
|
|
4114
|
-
...options,
|
|
4115
|
-
enabled: !!accountId && (options?.enabled ?? true)
|
|
4116
|
-
},
|
|
4117
|
-
"accounts"
|
|
4118
|
-
);
|
|
4119
|
-
};
|
|
4120
|
-
|
|
4121
|
-
// src/queries/accounts/useGetAccountPushDevice.ts
|
|
4122
|
-
var ACCOUNT_PUSH_DEVICE_QUERY_KEY = (accountId, pushDeviceId) => [...ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId), pushDeviceId];
|
|
4123
|
-
var SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA = (client, keyParams, response) => {
|
|
4124
|
-
client.setQueryData(ACCOUNT_PUSH_DEVICE_QUERY_KEY(...keyParams), response);
|
|
4125
|
-
};
|
|
4126
|
-
var GetAccountPushDevice = async ({
|
|
4127
|
-
accountId = "",
|
|
4128
|
-
pushDeviceId = "",
|
|
4129
|
-
adminApiParams
|
|
4130
|
-
}) => {
|
|
4131
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
4132
|
-
const { data } = await adminApi.get(
|
|
4133
|
-
`/accounts/${accountId}/push-devices/${pushDeviceId}`
|
|
4134
|
-
);
|
|
4135
|
-
return data;
|
|
4136
|
-
};
|
|
4137
|
-
var useGetAccountPushDevice = (accountId = "", pushDeviceId = "", options = {}) => {
|
|
4138
|
-
return useConnectedSingleQuery(
|
|
4139
|
-
ACCOUNT_PUSH_DEVICE_QUERY_KEY(accountId, pushDeviceId),
|
|
4140
|
-
(params) => GetAccountPushDevice({ accountId, pushDeviceId, ...params }),
|
|
4141
|
-
{
|
|
4142
|
-
...options,
|
|
4143
|
-
enabled: !!accountId && !!pushDeviceId && (options?.enabled ?? true)
|
|
4144
|
-
},
|
|
4145
|
-
"accounts"
|
|
4146
|
-
);
|
|
4147
|
-
};
|
|
4148
|
-
|
|
4149
4081
|
// src/queries/accounts/useGetAccountSubscriptions.ts
|
|
4150
4082
|
var ACCOUNT_SUBSCRIPTIONS_QUERY_KEY = (accountId) => [
|
|
4151
4083
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
@@ -17975,6 +17907,43 @@ var useGetLoginAccounts = (username = "", params = {}, options = {}) => {
|
|
|
17975
17907
|
);
|
|
17976
17908
|
};
|
|
17977
17909
|
|
|
17910
|
+
// src/queries/logins/useGetLoginDevices.ts
|
|
17911
|
+
var LOGIN_DEVICES_QUERY_KEY = (username) => [
|
|
17912
|
+
...LOGIN_QUERY_KEY(username),
|
|
17913
|
+
"DEVICES"
|
|
17914
|
+
];
|
|
17915
|
+
var GetLoginDevices = async ({
|
|
17916
|
+
username,
|
|
17917
|
+
pageParam,
|
|
17918
|
+
pageSize,
|
|
17919
|
+
orderBy,
|
|
17920
|
+
search,
|
|
17921
|
+
adminApiParams
|
|
17922
|
+
}) => {
|
|
17923
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17924
|
+
const { data } = await adminApi.get(`/logins/${username}/devices`, {
|
|
17925
|
+
params: {
|
|
17926
|
+
page: pageParam || void 0,
|
|
17927
|
+
pageSize: pageSize || void 0,
|
|
17928
|
+
orderBy: orderBy || void 0,
|
|
17929
|
+
search: search || void 0
|
|
17930
|
+
}
|
|
17931
|
+
});
|
|
17932
|
+
return data;
|
|
17933
|
+
};
|
|
17934
|
+
var useGetLoginDevices = (username = "", params = {}, options = {}) => {
|
|
17935
|
+
return useConnectedInfiniteQuery(
|
|
17936
|
+
LOGIN_DEVICES_QUERY_KEY(username),
|
|
17937
|
+
(queryParams) => GetLoginDevices({ username, ...queryParams }),
|
|
17938
|
+
params,
|
|
17939
|
+
{
|
|
17940
|
+
...options,
|
|
17941
|
+
enabled: !!username && (options.enabled ?? true)
|
|
17942
|
+
},
|
|
17943
|
+
"accounts"
|
|
17944
|
+
);
|
|
17945
|
+
};
|
|
17946
|
+
|
|
17978
17947
|
// src/queries/memberships/useGetMemberships.ts
|
|
17979
17948
|
var MEMBERSHIPS_QUERY_KEY = () => ["MEMBERSHIPS"];
|
|
17980
17949
|
var SET_MEMBERSHIPS_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -19315,6 +19284,79 @@ var useSearchOrganization = (search, filters, options = {}) => {
|
|
|
19315
19284
|
);
|
|
19316
19285
|
};
|
|
19317
19286
|
|
|
19287
|
+
// src/queries/push-devices/useGetPushDevices.ts
|
|
19288
|
+
var PUSH_DEVICES_QUERY_KEY = (accountId) => {
|
|
19289
|
+
const key = ["PUSH_DEVICES"];
|
|
19290
|
+
if (accountId) key.push(accountId);
|
|
19291
|
+
return key;
|
|
19292
|
+
};
|
|
19293
|
+
var SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA = (client, keyParams, response) => {
|
|
19294
|
+
client.setQueryData(PUSH_DEVICES_QUERY_KEY(...keyParams), response);
|
|
19295
|
+
};
|
|
19296
|
+
var GetPushDevices = async ({
|
|
19297
|
+
accountId,
|
|
19298
|
+
pageParam,
|
|
19299
|
+
pageSize,
|
|
19300
|
+
orderBy,
|
|
19301
|
+
search,
|
|
19302
|
+
adminApiParams
|
|
19303
|
+
}) => {
|
|
19304
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
19305
|
+
const { data } = await adminApi.get(`/push-devices`, {
|
|
19306
|
+
params: {
|
|
19307
|
+
page: pageParam || void 0,
|
|
19308
|
+
pageSize: pageSize || void 0,
|
|
19309
|
+
orderBy: orderBy || void 0,
|
|
19310
|
+
search: search || void 0,
|
|
19311
|
+
accountId: accountId || void 0
|
|
19312
|
+
}
|
|
19313
|
+
});
|
|
19314
|
+
return data;
|
|
19315
|
+
};
|
|
19316
|
+
var useGetPushDevices = (accountId = "", params = {}, options = {}) => {
|
|
19317
|
+
return useConnectedInfiniteQuery(
|
|
19318
|
+
PUSH_DEVICES_QUERY_KEY(accountId),
|
|
19319
|
+
(params2) => GetPushDevices({
|
|
19320
|
+
...params2,
|
|
19321
|
+
accountId
|
|
19322
|
+
}),
|
|
19323
|
+
params,
|
|
19324
|
+
{
|
|
19325
|
+
...options,
|
|
19326
|
+
enabled: options?.enabled ?? true
|
|
19327
|
+
},
|
|
19328
|
+
"accounts"
|
|
19329
|
+
);
|
|
19330
|
+
};
|
|
19331
|
+
|
|
19332
|
+
// src/queries/push-devices/useGetPushDevice.ts
|
|
19333
|
+
var PUSH_DEVICE_QUERY_KEY = (pushDeviceId) => [
|
|
19334
|
+
...PUSH_DEVICES_QUERY_KEY(),
|
|
19335
|
+
pushDeviceId
|
|
19336
|
+
];
|
|
19337
|
+
var SET_PUSH_DEVICE_QUERY_DATA = (client, keyParams, response) => {
|
|
19338
|
+
client.setQueryData(PUSH_DEVICE_QUERY_KEY(...keyParams), response);
|
|
19339
|
+
};
|
|
19340
|
+
var GetPushDevice = async ({
|
|
19341
|
+
pushDeviceId = "",
|
|
19342
|
+
adminApiParams
|
|
19343
|
+
}) => {
|
|
19344
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
19345
|
+
const { data } = await adminApi.get(`/push-devices/${pushDeviceId}`);
|
|
19346
|
+
return data;
|
|
19347
|
+
};
|
|
19348
|
+
var useGetPushDevice = (pushDeviceId = "", options = {}) => {
|
|
19349
|
+
return useConnectedSingleQuery(
|
|
19350
|
+
PUSH_DEVICE_QUERY_KEY(pushDeviceId),
|
|
19351
|
+
(params) => GetPushDevice({ pushDeviceId, ...params }),
|
|
19352
|
+
{
|
|
19353
|
+
...options,
|
|
19354
|
+
enabled: !!pushDeviceId && (options?.enabled ?? true)
|
|
19355
|
+
},
|
|
19356
|
+
"accounts"
|
|
19357
|
+
);
|
|
19358
|
+
};
|
|
19359
|
+
|
|
19318
19360
|
// src/queries/reports/useGetCustomReports.ts
|
|
19319
19361
|
var CUSTOM_REPORTS_QUERY_KEY = (filters = {}) => [
|
|
19320
19362
|
"CUSTOM_REPORTS",
|
|
@@ -22750,34 +22792,6 @@ var useDeleteAccountLead = (options = {}) => {
|
|
|
22750
22792
|
});
|
|
22751
22793
|
};
|
|
22752
22794
|
|
|
22753
|
-
// src/mutations/account/useDeleteAccountPushDevice.ts
|
|
22754
|
-
var DeleteAccountPushDevice = async ({
|
|
22755
|
-
accountId,
|
|
22756
|
-
pushDeviceId,
|
|
22757
|
-
adminApiParams,
|
|
22758
|
-
queryClient
|
|
22759
|
-
}) => {
|
|
22760
|
-
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
22761
|
-
const { data } = await connectedXM.delete(
|
|
22762
|
-
`/accounts/${accountId}/push-devices/${pushDeviceId}`
|
|
22763
|
-
);
|
|
22764
|
-
if (queryClient && data.status === "ok") {
|
|
22765
|
-
queryClient.invalidateQueries({
|
|
22766
|
-
queryKey: ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId)
|
|
22767
|
-
});
|
|
22768
|
-
queryClient.invalidateQueries({
|
|
22769
|
-
queryKey: ACCOUNT_PUSH_DEVICE_QUERY_KEY(accountId, pushDeviceId)
|
|
22770
|
-
});
|
|
22771
|
-
}
|
|
22772
|
-
return data;
|
|
22773
|
-
};
|
|
22774
|
-
var useDeleteAccountPushDevice = (options = {}) => {
|
|
22775
|
-
return useConnectedMutation(DeleteAccountPushDevice, options, {
|
|
22776
|
-
domain: "accounts",
|
|
22777
|
-
type: "update"
|
|
22778
|
-
});
|
|
22779
|
-
};
|
|
22780
|
-
|
|
22781
22795
|
// src/mutations/account/useExportAccount.ts
|
|
22782
22796
|
var ExportAccount = async ({
|
|
22783
22797
|
accountId,
|
|
@@ -37203,6 +37217,33 @@ var useUpdatePayment = (options = {}) => {
|
|
|
37203
37217
|
});
|
|
37204
37218
|
};
|
|
37205
37219
|
|
|
37220
|
+
// src/mutations/push-devices/useDeletePushDevice.ts
|
|
37221
|
+
var DeletePushDevice = async ({
|
|
37222
|
+
pushDeviceId,
|
|
37223
|
+
adminApiParams,
|
|
37224
|
+
queryClient
|
|
37225
|
+
}) => {
|
|
37226
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37227
|
+
const { data } = await connectedXM.delete(
|
|
37228
|
+
`/push-devices/${pushDeviceId}`
|
|
37229
|
+
);
|
|
37230
|
+
if (queryClient && data.status === "ok") {
|
|
37231
|
+
queryClient.invalidateQueries({
|
|
37232
|
+
queryKey: PUSH_DEVICES_QUERY_KEY()
|
|
37233
|
+
});
|
|
37234
|
+
queryClient.removeQueries({
|
|
37235
|
+
queryKey: PUSH_DEVICE_QUERY_KEY(pushDeviceId)
|
|
37236
|
+
});
|
|
37237
|
+
}
|
|
37238
|
+
return data;
|
|
37239
|
+
};
|
|
37240
|
+
var useDeletePushDevice = (options = {}) => {
|
|
37241
|
+
return useConnectedMutation(DeletePushDevice, options, {
|
|
37242
|
+
domain: "accounts",
|
|
37243
|
+
type: "update"
|
|
37244
|
+
});
|
|
37245
|
+
};
|
|
37246
|
+
|
|
37206
37247
|
// src/mutations/reports/useAddCustomReportUser.ts
|
|
37207
37248
|
var AddCustomReportUser = async ({
|
|
37208
37249
|
reportId,
|
|
@@ -40111,8 +40152,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40111
40152
|
ACCOUNT_LIKES_QUERY_KEY,
|
|
40112
40153
|
ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY,
|
|
40113
40154
|
ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
40114
|
-
ACCOUNT_PUSH_DEVICES_QUERY_KEY,
|
|
40115
|
-
ACCOUNT_PUSH_DEVICE_QUERY_KEY,
|
|
40116
40155
|
ACCOUNT_QUERY_KEY,
|
|
40117
40156
|
ACCOUNT_SUBSCRIPTIONS_QUERY_KEY,
|
|
40118
40157
|
ACCOUNT_THREADS_QUERY_KEY,
|
|
@@ -40406,7 +40445,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40406
40445
|
DeleteAccountAddress,
|
|
40407
40446
|
DeleteAccountInvitation,
|
|
40408
40447
|
DeleteAccountLead,
|
|
40409
|
-
DeleteAccountPushDevice,
|
|
40410
40448
|
DeleteActivity,
|
|
40411
40449
|
DeleteAdvertisement,
|
|
40412
40450
|
DeleteAnnouncement,
|
|
@@ -40519,6 +40557,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40519
40557
|
DeleteOrganizationTeamMember,
|
|
40520
40558
|
DeleteOrganizationUser,
|
|
40521
40559
|
DeleteOrganizationWebhook,
|
|
40560
|
+
DeletePushDevice,
|
|
40522
40561
|
DeleteSelfApiKey,
|
|
40523
40562
|
DeleteSeries,
|
|
40524
40563
|
DeleteStreamInput,
|
|
@@ -40808,8 +40847,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40808
40847
|
GetAccountLikes,
|
|
40809
40848
|
GetAccountNotificationPreferences,
|
|
40810
40849
|
GetAccountPayments,
|
|
40811
|
-
GetAccountPushDevice,
|
|
40812
|
-
GetAccountPushDevices,
|
|
40813
40850
|
GetAccountSubscriptions,
|
|
40814
40851
|
GetAccountThreads,
|
|
40815
40852
|
GetAccountTiers,
|
|
@@ -41137,6 +41174,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41137
41174
|
GetLinkPreview,
|
|
41138
41175
|
GetLogin,
|
|
41139
41176
|
GetLoginAccounts,
|
|
41177
|
+
GetLoginDevices,
|
|
41140
41178
|
GetLogins,
|
|
41141
41179
|
GetMembership,
|
|
41142
41180
|
GetMembershipPrice,
|
|
@@ -41165,6 +41203,8 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41165
41203
|
GetOrganizationWebhooks,
|
|
41166
41204
|
GetPayment,
|
|
41167
41205
|
GetPayments,
|
|
41206
|
+
GetPushDevice,
|
|
41207
|
+
GetPushDevices,
|
|
41168
41208
|
GetReport,
|
|
41169
41209
|
GetReports,
|
|
41170
41210
|
GetSelf,
|
|
@@ -41280,6 +41320,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41280
41320
|
LINK_PREVIEW_QUERY_KEY,
|
|
41281
41321
|
LOGINS_QUERY_KEY,
|
|
41282
41322
|
LOGIN_ACCOUNTS_QUERY_KEY,
|
|
41323
|
+
LOGIN_DEVICES_QUERY_KEY,
|
|
41283
41324
|
LOGIN_QUERY_KEY,
|
|
41284
41325
|
LeadStatus,
|
|
41285
41326
|
MEMBERSHIPS_QUERY_KEY,
|
|
@@ -41318,6 +41359,8 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41318
41359
|
OrganizationTriggerType,
|
|
41319
41360
|
PAYMENTS_QUERY_KEY,
|
|
41320
41361
|
PAYMENT_QUERY_KEY,
|
|
41362
|
+
PUSH_DEVICES_QUERY_KEY,
|
|
41363
|
+
PUSH_DEVICE_QUERY_KEY,
|
|
41321
41364
|
PageType,
|
|
41322
41365
|
PassTypeAccessLevel,
|
|
41323
41366
|
PassTypeVisibility,
|
|
@@ -41431,7 +41474,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41431
41474
|
SET_ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_DATA,
|
|
41432
41475
|
SET_ACCOUNT_PAYMENTS_QUERY_DATA,
|
|
41433
41476
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
41434
|
-
SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA,
|
|
41435
41477
|
SET_ACCOUNT_QUERY_DATA,
|
|
41436
41478
|
SET_ACCOUNT_SUBSCRIPTIONS_QUERY_DATA,
|
|
41437
41479
|
SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
@@ -41779,6 +41821,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41779
41821
|
SET_PASS_TYPE_COUPONS_QUERY_DATA,
|
|
41780
41822
|
SET_PAYMENTS_QUERY_DATA,
|
|
41781
41823
|
SET_PAYMENT_QUERY_DATA,
|
|
41824
|
+
SET_PUSH_DEVICE_QUERY_DATA,
|
|
41782
41825
|
SET_REPORTS_QUERY_DATA,
|
|
41783
41826
|
SET_REPORT_QUERY_DATA,
|
|
41784
41827
|
SET_SEARCH_ORGANIZATION_QUERY_DATA,
|
|
@@ -42318,7 +42361,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42318
42361
|
useDeleteAccountAddress,
|
|
42319
42362
|
useDeleteAccountInvitation,
|
|
42320
42363
|
useDeleteAccountLead,
|
|
42321
|
-
useDeleteAccountPushDevice,
|
|
42322
42364
|
useDeleteActivity,
|
|
42323
42365
|
useDeleteAdvertisement,
|
|
42324
42366
|
useDeleteAnnouncement,
|
|
@@ -42431,6 +42473,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42431
42473
|
useDeleteOrganizationTeamMember,
|
|
42432
42474
|
useDeleteOrganizationUser,
|
|
42433
42475
|
useDeleteOrganizationWebhook,
|
|
42476
|
+
useDeletePushDevice,
|
|
42434
42477
|
useDeleteSelfApiKey,
|
|
42435
42478
|
useDeleteSeries,
|
|
42436
42479
|
useDeleteStreamInput,
|
|
@@ -42486,8 +42529,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42486
42529
|
useGetAccountLikes,
|
|
42487
42530
|
useGetAccountNotificationPreferences,
|
|
42488
42531
|
useGetAccountPayments,
|
|
42489
|
-
useGetAccountPushDevice,
|
|
42490
|
-
useGetAccountPushDevices,
|
|
42491
42532
|
useGetAccountSubscriptions,
|
|
42492
42533
|
useGetAccountThreads,
|
|
42493
42534
|
useGetAccountTiers,
|
|
@@ -42811,6 +42852,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42811
42852
|
useGetLinkPreview,
|
|
42812
42853
|
useGetLogin,
|
|
42813
42854
|
useGetLoginAccounts,
|
|
42855
|
+
useGetLoginDevices,
|
|
42814
42856
|
useGetLogins,
|
|
42815
42857
|
useGetMembership,
|
|
42816
42858
|
useGetMembershipPrice,
|
|
@@ -42839,6 +42881,8 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42839
42881
|
useGetOrganizationWebhooks,
|
|
42840
42882
|
useGetPayment,
|
|
42841
42883
|
useGetPayments,
|
|
42884
|
+
useGetPushDevice,
|
|
42885
|
+
useGetPushDevices,
|
|
42842
42886
|
useGetReport,
|
|
42843
42887
|
useGetReports,
|
|
42844
42888
|
useGetSelf,
|