@connectedxm/admin 3.2.1 → 3.2.3
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 +118 -124
- package/dist/index.d.cts +71 -77
- package/dist/index.d.ts +71 -77
- package/dist/index.js +109 -114
- 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,
|
|
@@ -1103,6 +1099,8 @@ __export(index_exports, {
|
|
|
1103
1099
|
GetOrganizationWebhooks: () => GetOrganizationWebhooks,
|
|
1104
1100
|
GetPayment: () => GetPayment,
|
|
1105
1101
|
GetPayments: () => GetPayments,
|
|
1102
|
+
GetPushDevice: () => GetPushDevice,
|
|
1103
|
+
GetPushDevices: () => GetPushDevices,
|
|
1106
1104
|
GetReport: () => GetReport,
|
|
1107
1105
|
GetReports: () => GetReports,
|
|
1108
1106
|
GetSelf: () => GetSelf,
|
|
@@ -1256,6 +1254,8 @@ __export(index_exports, {
|
|
|
1256
1254
|
OrganizationTriggerType: () => OrganizationTriggerType,
|
|
1257
1255
|
PAYMENTS_QUERY_KEY: () => PAYMENTS_QUERY_KEY,
|
|
1258
1256
|
PAYMENT_QUERY_KEY: () => PAYMENT_QUERY_KEY,
|
|
1257
|
+
PUSH_DEVICES_QUERY_KEY: () => PUSH_DEVICES_QUERY_KEY,
|
|
1258
|
+
PUSH_DEVICE_QUERY_KEY: () => PUSH_DEVICE_QUERY_KEY,
|
|
1259
1259
|
PageType: () => PageType,
|
|
1260
1260
|
PassTypeAccessLevel: () => PassTypeAccessLevel,
|
|
1261
1261
|
PassTypeVisibility: () => PassTypeVisibility,
|
|
@@ -1263,7 +1263,6 @@ __export(index_exports, {
|
|
|
1263
1263
|
PaymentLineItemType: () => PaymentLineItemType,
|
|
1264
1264
|
PaymentType: () => PaymentType,
|
|
1265
1265
|
PurchaseStatus: () => PurchaseStatus,
|
|
1266
|
-
PushDeviceAppType: () => PushDeviceAppType,
|
|
1267
1266
|
PushService: () => PushService,
|
|
1268
1267
|
REPORTS_QUERY_KEY: () => REPORTS_QUERY_KEY,
|
|
1269
1268
|
REPORT_QUERY_KEY: () => REPORT_QUERY_KEY,
|
|
@@ -1370,7 +1369,6 @@ __export(index_exports, {
|
|
|
1370
1369
|
SET_ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_DATA: () => SET_ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_DATA,
|
|
1371
1370
|
SET_ACCOUNT_PAYMENTS_QUERY_DATA: () => SET_ACCOUNT_PAYMENTS_QUERY_DATA,
|
|
1372
1371
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA: () => SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
1373
|
-
SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA: () => SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA,
|
|
1374
1372
|
SET_ACCOUNT_QUERY_DATA: () => SET_ACCOUNT_QUERY_DATA,
|
|
1375
1373
|
SET_ACCOUNT_SUBSCRIPTIONS_QUERY_DATA: () => SET_ACCOUNT_SUBSCRIPTIONS_QUERY_DATA,
|
|
1376
1374
|
SET_ACCOUNT_THREADS_QUERY_DATA: () => SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
@@ -1718,6 +1716,7 @@ __export(index_exports, {
|
|
|
1718
1716
|
SET_PASS_TYPE_COUPONS_QUERY_DATA: () => SET_PASS_TYPE_COUPONS_QUERY_DATA,
|
|
1719
1717
|
SET_PAYMENTS_QUERY_DATA: () => SET_PAYMENTS_QUERY_DATA,
|
|
1720
1718
|
SET_PAYMENT_QUERY_DATA: () => SET_PAYMENT_QUERY_DATA,
|
|
1719
|
+
SET_PUSH_DEVICE_QUERY_DATA: () => SET_PUSH_DEVICE_QUERY_DATA,
|
|
1721
1720
|
SET_REPORTS_QUERY_DATA: () => SET_REPORTS_QUERY_DATA,
|
|
1722
1721
|
SET_REPORT_QUERY_DATA: () => SET_REPORT_QUERY_DATA,
|
|
1723
1722
|
SET_SEARCH_ORGANIZATION_QUERY_DATA: () => SET_SEARCH_ORGANIZATION_QUERY_DATA,
|
|
@@ -2257,7 +2256,6 @@ __export(index_exports, {
|
|
|
2257
2256
|
useDeleteAccountAddress: () => useDeleteAccountAddress,
|
|
2258
2257
|
useDeleteAccountInvitation: () => useDeleteAccountInvitation,
|
|
2259
2258
|
useDeleteAccountLead: () => useDeleteAccountLead,
|
|
2260
|
-
useDeleteAccountPushDevice: () => useDeleteAccountPushDevice,
|
|
2261
2259
|
useDeleteActivity: () => useDeleteActivity,
|
|
2262
2260
|
useDeleteAdvertisement: () => useDeleteAdvertisement,
|
|
2263
2261
|
useDeleteAnnouncement: () => useDeleteAnnouncement,
|
|
@@ -2370,6 +2368,7 @@ __export(index_exports, {
|
|
|
2370
2368
|
useDeleteOrganizationTeamMember: () => useDeleteOrganizationTeamMember,
|
|
2371
2369
|
useDeleteOrganizationUser: () => useDeleteOrganizationUser,
|
|
2372
2370
|
useDeleteOrganizationWebhook: () => useDeleteOrganizationWebhook,
|
|
2371
|
+
useDeletePushDevice: () => useDeletePushDevice,
|
|
2373
2372
|
useDeleteSelfApiKey: () => useDeleteSelfApiKey,
|
|
2374
2373
|
useDeleteSeries: () => useDeleteSeries,
|
|
2375
2374
|
useDeleteStreamInput: () => useDeleteStreamInput,
|
|
@@ -2425,8 +2424,6 @@ __export(index_exports, {
|
|
|
2425
2424
|
useGetAccountLikes: () => useGetAccountLikes,
|
|
2426
2425
|
useGetAccountNotificationPreferences: () => useGetAccountNotificationPreferences,
|
|
2427
2426
|
useGetAccountPayments: () => useGetAccountPayments,
|
|
2428
|
-
useGetAccountPushDevice: () => useGetAccountPushDevice,
|
|
2429
|
-
useGetAccountPushDevices: () => useGetAccountPushDevices,
|
|
2430
2427
|
useGetAccountSubscriptions: () => useGetAccountSubscriptions,
|
|
2431
2428
|
useGetAccountThreads: () => useGetAccountThreads,
|
|
2432
2429
|
useGetAccountTiers: () => useGetAccountTiers,
|
|
@@ -2778,6 +2775,8 @@ __export(index_exports, {
|
|
|
2778
2775
|
useGetOrganizationWebhooks: () => useGetOrganizationWebhooks,
|
|
2779
2776
|
useGetPayment: () => useGetPayment,
|
|
2780
2777
|
useGetPayments: () => useGetPayments,
|
|
2778
|
+
useGetPushDevice: () => useGetPushDevice,
|
|
2779
|
+
useGetPushDevices: () => useGetPushDevices,
|
|
2781
2780
|
useGetReport: () => useGetReport,
|
|
2782
2781
|
useGetReports: () => useGetReports,
|
|
2783
2782
|
useGetSelf: () => useGetSelf,
|
|
@@ -4076,77 +4075,6 @@ var useGetAccountPayments = (accountId = "", params = {}, options = {}) => {
|
|
|
4076
4075
|
);
|
|
4077
4076
|
};
|
|
4078
4077
|
|
|
4079
|
-
// src/queries/accounts/useGetAccountPushDevices.ts
|
|
4080
|
-
var ACCOUNT_PUSH_DEVICES_QUERY_KEY = (accountId) => {
|
|
4081
|
-
const key = [...ACCOUNT_QUERY_KEY(accountId), "PUSH_DEVICES"];
|
|
4082
|
-
return key;
|
|
4083
|
-
};
|
|
4084
|
-
var SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA = (client, keyParams, response) => {
|
|
4085
|
-
client.setQueryData(ACCOUNT_PUSH_DEVICES_QUERY_KEY(...keyParams), response);
|
|
4086
|
-
};
|
|
4087
|
-
var GetAccountPushDevices = async ({
|
|
4088
|
-
accountId,
|
|
4089
|
-
pageParam,
|
|
4090
|
-
pageSize,
|
|
4091
|
-
orderBy,
|
|
4092
|
-
search,
|
|
4093
|
-
adminApiParams
|
|
4094
|
-
}) => {
|
|
4095
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
4096
|
-
const { data } = await adminApi.get(`/accounts/${accountId}/push-devices`, {
|
|
4097
|
-
params: {
|
|
4098
|
-
page: pageParam || void 0,
|
|
4099
|
-
pageSize: pageSize || void 0,
|
|
4100
|
-
orderBy: orderBy || void 0,
|
|
4101
|
-
search: search || void 0
|
|
4102
|
-
}
|
|
4103
|
-
});
|
|
4104
|
-
return data;
|
|
4105
|
-
};
|
|
4106
|
-
var useGetAccountPushDevices = (accountId = "", params = {}, options = {}) => {
|
|
4107
|
-
return useConnectedInfiniteQuery(
|
|
4108
|
-
ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId),
|
|
4109
|
-
(params2) => GetAccountPushDevices({
|
|
4110
|
-
...params2,
|
|
4111
|
-
accountId
|
|
4112
|
-
}),
|
|
4113
|
-
params,
|
|
4114
|
-
{
|
|
4115
|
-
...options,
|
|
4116
|
-
enabled: !!accountId && (options?.enabled ?? true)
|
|
4117
|
-
},
|
|
4118
|
-
"accounts"
|
|
4119
|
-
);
|
|
4120
|
-
};
|
|
4121
|
-
|
|
4122
|
-
// src/queries/accounts/useGetAccountPushDevice.ts
|
|
4123
|
-
var ACCOUNT_PUSH_DEVICE_QUERY_KEY = (accountId, pushDeviceId) => [...ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId), pushDeviceId];
|
|
4124
|
-
var SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA = (client, keyParams, response) => {
|
|
4125
|
-
client.setQueryData(ACCOUNT_PUSH_DEVICE_QUERY_KEY(...keyParams), response);
|
|
4126
|
-
};
|
|
4127
|
-
var GetAccountPushDevice = async ({
|
|
4128
|
-
accountId = "",
|
|
4129
|
-
pushDeviceId = "",
|
|
4130
|
-
adminApiParams
|
|
4131
|
-
}) => {
|
|
4132
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
4133
|
-
const { data } = await adminApi.get(
|
|
4134
|
-
`/accounts/${accountId}/push-devices/${pushDeviceId}`
|
|
4135
|
-
);
|
|
4136
|
-
return data;
|
|
4137
|
-
};
|
|
4138
|
-
var useGetAccountPushDevice = (accountId = "", pushDeviceId = "", options = {}) => {
|
|
4139
|
-
return useConnectedSingleQuery(
|
|
4140
|
-
ACCOUNT_PUSH_DEVICE_QUERY_KEY(accountId, pushDeviceId),
|
|
4141
|
-
(params) => GetAccountPushDevice({ accountId, pushDeviceId, ...params }),
|
|
4142
|
-
{
|
|
4143
|
-
...options,
|
|
4144
|
-
enabled: !!accountId && !!pushDeviceId && (options?.enabled ?? true)
|
|
4145
|
-
},
|
|
4146
|
-
"accounts"
|
|
4147
|
-
);
|
|
4148
|
-
};
|
|
4149
|
-
|
|
4150
4078
|
// src/queries/accounts/useGetAccountSubscriptions.ts
|
|
4151
4079
|
var ACCOUNT_SUBSCRIPTIONS_QUERY_KEY = (accountId) => [
|
|
4152
4080
|
...ACCOUNT_QUERY_KEY(accountId),
|
|
@@ -16179,11 +16107,6 @@ var AccountAccess = /* @__PURE__ */ ((AccountAccess2) => {
|
|
|
16179
16107
|
AccountAccess2["BANNED"] = "BANNED";
|
|
16180
16108
|
return AccountAccess2;
|
|
16181
16109
|
})(AccountAccess || {});
|
|
16182
|
-
var PushDeviceAppType = /* @__PURE__ */ ((PushDeviceAppType2) => {
|
|
16183
|
-
PushDeviceAppType2["EVENTXM"] = "EVENTXM";
|
|
16184
|
-
PushDeviceAppType2["COMMUNITYXM"] = "COMMUNITYXM";
|
|
16185
|
-
return PushDeviceAppType2;
|
|
16186
|
-
})(PushDeviceAppType || {});
|
|
16187
16110
|
var PushService = /* @__PURE__ */ ((PushService2) => {
|
|
16188
16111
|
PushService2["apn"] = "apn";
|
|
16189
16112
|
PushService2["firebase"] = "firebase";
|
|
@@ -19321,6 +19244,79 @@ var useSearchOrganization = (search, filters, options = {}) => {
|
|
|
19321
19244
|
);
|
|
19322
19245
|
};
|
|
19323
19246
|
|
|
19247
|
+
// src/queries/push-devices/useGetPushDevices.ts
|
|
19248
|
+
var PUSH_DEVICES_QUERY_KEY = (accountId) => {
|
|
19249
|
+
const key = ["PUSH_DEVICES"];
|
|
19250
|
+
if (accountId) key.push(accountId);
|
|
19251
|
+
return key;
|
|
19252
|
+
};
|
|
19253
|
+
var SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA = (client, keyParams, response) => {
|
|
19254
|
+
client.setQueryData(PUSH_DEVICES_QUERY_KEY(...keyParams), response);
|
|
19255
|
+
};
|
|
19256
|
+
var GetPushDevices = async ({
|
|
19257
|
+
accountId,
|
|
19258
|
+
pageParam,
|
|
19259
|
+
pageSize,
|
|
19260
|
+
orderBy,
|
|
19261
|
+
search,
|
|
19262
|
+
adminApiParams
|
|
19263
|
+
}) => {
|
|
19264
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
19265
|
+
const { data } = await adminApi.get(`/push-devices`, {
|
|
19266
|
+
params: {
|
|
19267
|
+
page: pageParam || void 0,
|
|
19268
|
+
pageSize: pageSize || void 0,
|
|
19269
|
+
orderBy: orderBy || void 0,
|
|
19270
|
+
search: search || void 0,
|
|
19271
|
+
accountId: accountId || void 0
|
|
19272
|
+
}
|
|
19273
|
+
});
|
|
19274
|
+
return data;
|
|
19275
|
+
};
|
|
19276
|
+
var useGetPushDevices = (accountId = "", params = {}, options = {}) => {
|
|
19277
|
+
return useConnectedInfiniteQuery(
|
|
19278
|
+
PUSH_DEVICES_QUERY_KEY(accountId),
|
|
19279
|
+
(params2) => GetPushDevices({
|
|
19280
|
+
...params2,
|
|
19281
|
+
accountId
|
|
19282
|
+
}),
|
|
19283
|
+
params,
|
|
19284
|
+
{
|
|
19285
|
+
...options,
|
|
19286
|
+
enabled: options?.enabled ?? true
|
|
19287
|
+
},
|
|
19288
|
+
"accounts"
|
|
19289
|
+
);
|
|
19290
|
+
};
|
|
19291
|
+
|
|
19292
|
+
// src/queries/push-devices/useGetPushDevice.ts
|
|
19293
|
+
var PUSH_DEVICE_QUERY_KEY = (pushDeviceId) => [
|
|
19294
|
+
...PUSH_DEVICES_QUERY_KEY(),
|
|
19295
|
+
pushDeviceId
|
|
19296
|
+
];
|
|
19297
|
+
var SET_PUSH_DEVICE_QUERY_DATA = (client, keyParams, response) => {
|
|
19298
|
+
client.setQueryData(PUSH_DEVICE_QUERY_KEY(...keyParams), response);
|
|
19299
|
+
};
|
|
19300
|
+
var GetPushDevice = async ({
|
|
19301
|
+
pushDeviceId = "",
|
|
19302
|
+
adminApiParams
|
|
19303
|
+
}) => {
|
|
19304
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
19305
|
+
const { data } = await adminApi.get(`/push-devices/${pushDeviceId}`);
|
|
19306
|
+
return data;
|
|
19307
|
+
};
|
|
19308
|
+
var useGetPushDevice = (pushDeviceId = "", options = {}) => {
|
|
19309
|
+
return useConnectedSingleQuery(
|
|
19310
|
+
PUSH_DEVICE_QUERY_KEY(pushDeviceId),
|
|
19311
|
+
(params) => GetPushDevice({ pushDeviceId, ...params }),
|
|
19312
|
+
{
|
|
19313
|
+
...options,
|
|
19314
|
+
enabled: !!pushDeviceId && (options?.enabled ?? true)
|
|
19315
|
+
},
|
|
19316
|
+
"accounts"
|
|
19317
|
+
);
|
|
19318
|
+
};
|
|
19319
|
+
|
|
19324
19320
|
// src/queries/reports/useGetCustomReports.ts
|
|
19325
19321
|
var CUSTOM_REPORTS_QUERY_KEY = (filters = {}) => [
|
|
19326
19322
|
"CUSTOM_REPORTS",
|
|
@@ -22756,34 +22752,6 @@ var useDeleteAccountLead = (options = {}) => {
|
|
|
22756
22752
|
});
|
|
22757
22753
|
};
|
|
22758
22754
|
|
|
22759
|
-
// src/mutations/account/useDeleteAccountPushDevice.ts
|
|
22760
|
-
var DeleteAccountPushDevice = async ({
|
|
22761
|
-
accountId,
|
|
22762
|
-
pushDeviceId,
|
|
22763
|
-
adminApiParams,
|
|
22764
|
-
queryClient
|
|
22765
|
-
}) => {
|
|
22766
|
-
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
22767
|
-
const { data } = await connectedXM.delete(
|
|
22768
|
-
`/accounts/${accountId}/push-devices/${pushDeviceId}`
|
|
22769
|
-
);
|
|
22770
|
-
if (queryClient && data.status === "ok") {
|
|
22771
|
-
queryClient.invalidateQueries({
|
|
22772
|
-
queryKey: ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId)
|
|
22773
|
-
});
|
|
22774
|
-
queryClient.invalidateQueries({
|
|
22775
|
-
queryKey: ACCOUNT_PUSH_DEVICE_QUERY_KEY(accountId, pushDeviceId)
|
|
22776
|
-
});
|
|
22777
|
-
}
|
|
22778
|
-
return data;
|
|
22779
|
-
};
|
|
22780
|
-
var useDeleteAccountPushDevice = (options = {}) => {
|
|
22781
|
-
return useConnectedMutation(DeleteAccountPushDevice, options, {
|
|
22782
|
-
domain: "accounts",
|
|
22783
|
-
type: "update"
|
|
22784
|
-
});
|
|
22785
|
-
};
|
|
22786
|
-
|
|
22787
22755
|
// src/mutations/account/useExportAccount.ts
|
|
22788
22756
|
var ExportAccount = async ({
|
|
22789
22757
|
accountId,
|
|
@@ -37209,6 +37177,33 @@ var useUpdatePayment = (options = {}) => {
|
|
|
37209
37177
|
});
|
|
37210
37178
|
};
|
|
37211
37179
|
|
|
37180
|
+
// src/mutations/push-devices/useDeletePushDevice.ts
|
|
37181
|
+
var DeletePushDevice = async ({
|
|
37182
|
+
pushDeviceId,
|
|
37183
|
+
adminApiParams,
|
|
37184
|
+
queryClient
|
|
37185
|
+
}) => {
|
|
37186
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37187
|
+
const { data } = await connectedXM.delete(
|
|
37188
|
+
`/push-devices/${pushDeviceId}`
|
|
37189
|
+
);
|
|
37190
|
+
if (queryClient && data.status === "ok") {
|
|
37191
|
+
queryClient.invalidateQueries({
|
|
37192
|
+
queryKey: PUSH_DEVICES_QUERY_KEY()
|
|
37193
|
+
});
|
|
37194
|
+
queryClient.removeQueries({
|
|
37195
|
+
queryKey: PUSH_DEVICE_QUERY_KEY(pushDeviceId)
|
|
37196
|
+
});
|
|
37197
|
+
}
|
|
37198
|
+
return data;
|
|
37199
|
+
};
|
|
37200
|
+
var useDeletePushDevice = (options = {}) => {
|
|
37201
|
+
return useConnectedMutation(DeletePushDevice, options, {
|
|
37202
|
+
domain: "accounts",
|
|
37203
|
+
type: "update"
|
|
37204
|
+
});
|
|
37205
|
+
};
|
|
37206
|
+
|
|
37212
37207
|
// src/mutations/reports/useAddCustomReportUser.ts
|
|
37213
37208
|
var AddCustomReportUser = async ({
|
|
37214
37209
|
reportId,
|
|
@@ -40117,8 +40112,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40117
40112
|
ACCOUNT_LIKES_QUERY_KEY,
|
|
40118
40113
|
ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_KEY,
|
|
40119
40114
|
ACCOUNT_PAYMENTS_QUERY_KEY,
|
|
40120
|
-
ACCOUNT_PUSH_DEVICES_QUERY_KEY,
|
|
40121
|
-
ACCOUNT_PUSH_DEVICE_QUERY_KEY,
|
|
40122
40115
|
ACCOUNT_QUERY_KEY,
|
|
40123
40116
|
ACCOUNT_SUBSCRIPTIONS_QUERY_KEY,
|
|
40124
40117
|
ACCOUNT_THREADS_QUERY_KEY,
|
|
@@ -40412,7 +40405,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40412
40405
|
DeleteAccountAddress,
|
|
40413
40406
|
DeleteAccountInvitation,
|
|
40414
40407
|
DeleteAccountLead,
|
|
40415
|
-
DeleteAccountPushDevice,
|
|
40416
40408
|
DeleteActivity,
|
|
40417
40409
|
DeleteAdvertisement,
|
|
40418
40410
|
DeleteAnnouncement,
|
|
@@ -40525,6 +40517,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40525
40517
|
DeleteOrganizationTeamMember,
|
|
40526
40518
|
DeleteOrganizationUser,
|
|
40527
40519
|
DeleteOrganizationWebhook,
|
|
40520
|
+
DeletePushDevice,
|
|
40528
40521
|
DeleteSelfApiKey,
|
|
40529
40522
|
DeleteSeries,
|
|
40530
40523
|
DeleteStreamInput,
|
|
@@ -40814,8 +40807,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40814
40807
|
GetAccountLikes,
|
|
40815
40808
|
GetAccountNotificationPreferences,
|
|
40816
40809
|
GetAccountPayments,
|
|
40817
|
-
GetAccountPushDevice,
|
|
40818
|
-
GetAccountPushDevices,
|
|
40819
40810
|
GetAccountSubscriptions,
|
|
40820
40811
|
GetAccountThreads,
|
|
40821
40812
|
GetAccountTiers,
|
|
@@ -41171,6 +41162,8 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41171
41162
|
GetOrganizationWebhooks,
|
|
41172
41163
|
GetPayment,
|
|
41173
41164
|
GetPayments,
|
|
41165
|
+
GetPushDevice,
|
|
41166
|
+
GetPushDevices,
|
|
41174
41167
|
GetReport,
|
|
41175
41168
|
GetReports,
|
|
41176
41169
|
GetSelf,
|
|
@@ -41324,6 +41317,8 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41324
41317
|
OrganizationTriggerType,
|
|
41325
41318
|
PAYMENTS_QUERY_KEY,
|
|
41326
41319
|
PAYMENT_QUERY_KEY,
|
|
41320
|
+
PUSH_DEVICES_QUERY_KEY,
|
|
41321
|
+
PUSH_DEVICE_QUERY_KEY,
|
|
41327
41322
|
PageType,
|
|
41328
41323
|
PassTypeAccessLevel,
|
|
41329
41324
|
PassTypeVisibility,
|
|
@@ -41331,7 +41326,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41331
41326
|
PaymentLineItemType,
|
|
41332
41327
|
PaymentType,
|
|
41333
41328
|
PurchaseStatus,
|
|
41334
|
-
PushDeviceAppType,
|
|
41335
41329
|
PushService,
|
|
41336
41330
|
REPORTS_QUERY_KEY,
|
|
41337
41331
|
REPORT_QUERY_KEY,
|
|
@@ -41438,7 +41432,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41438
41432
|
SET_ACCOUNT_NOTIFICATION_PREFERENCES_QUERY_DATA,
|
|
41439
41433
|
SET_ACCOUNT_PAYMENTS_QUERY_DATA,
|
|
41440
41434
|
SET_ACCOUNT_PUSH_DEVICES_QUERY_DATA,
|
|
41441
|
-
SET_ACCOUNT_PUSH_DEVICE_QUERY_DATA,
|
|
41442
41435
|
SET_ACCOUNT_QUERY_DATA,
|
|
41443
41436
|
SET_ACCOUNT_SUBSCRIPTIONS_QUERY_DATA,
|
|
41444
41437
|
SET_ACCOUNT_THREADS_QUERY_DATA,
|
|
@@ -41786,6 +41779,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41786
41779
|
SET_PASS_TYPE_COUPONS_QUERY_DATA,
|
|
41787
41780
|
SET_PAYMENTS_QUERY_DATA,
|
|
41788
41781
|
SET_PAYMENT_QUERY_DATA,
|
|
41782
|
+
SET_PUSH_DEVICE_QUERY_DATA,
|
|
41789
41783
|
SET_REPORTS_QUERY_DATA,
|
|
41790
41784
|
SET_REPORT_QUERY_DATA,
|
|
41791
41785
|
SET_SEARCH_ORGANIZATION_QUERY_DATA,
|
|
@@ -42325,7 +42319,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42325
42319
|
useDeleteAccountAddress,
|
|
42326
42320
|
useDeleteAccountInvitation,
|
|
42327
42321
|
useDeleteAccountLead,
|
|
42328
|
-
useDeleteAccountPushDevice,
|
|
42329
42322
|
useDeleteActivity,
|
|
42330
42323
|
useDeleteAdvertisement,
|
|
42331
42324
|
useDeleteAnnouncement,
|
|
@@ -42438,6 +42431,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42438
42431
|
useDeleteOrganizationTeamMember,
|
|
42439
42432
|
useDeleteOrganizationUser,
|
|
42440
42433
|
useDeleteOrganizationWebhook,
|
|
42434
|
+
useDeletePushDevice,
|
|
42441
42435
|
useDeleteSelfApiKey,
|
|
42442
42436
|
useDeleteSeries,
|
|
42443
42437
|
useDeleteStreamInput,
|
|
@@ -42493,8 +42487,6 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42493
42487
|
useGetAccountLikes,
|
|
42494
42488
|
useGetAccountNotificationPreferences,
|
|
42495
42489
|
useGetAccountPayments,
|
|
42496
|
-
useGetAccountPushDevice,
|
|
42497
|
-
useGetAccountPushDevices,
|
|
42498
42490
|
useGetAccountSubscriptions,
|
|
42499
42491
|
useGetAccountThreads,
|
|
42500
42492
|
useGetAccountTiers,
|
|
@@ -42846,6 +42838,8 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
42846
42838
|
useGetOrganizationWebhooks,
|
|
42847
42839
|
useGetPayment,
|
|
42848
42840
|
useGetPayments,
|
|
42841
|
+
useGetPushDevice,
|
|
42842
|
+
useGetPushDevices,
|
|
42849
42843
|
useGetReport,
|
|
42850
42844
|
useGetReports,
|
|
42851
42845
|
useGetSelf,
|