@connectedxm/admin 6.9.5 → 6.9.7
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 +163 -0
- package/dist/index.d.cts +132 -3
- package/dist/index.d.ts +132 -3
- package/dist/index.js +150 -0
- package/openapi.json +152 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -74,6 +74,7 @@ __export(index_exports, {
|
|
|
74
74
|
AUTH_SESSION_QUERY_KEY: () => AUTH_SESSION_QUERY_KEY,
|
|
75
75
|
AcceptGroupRequest: () => AcceptGroupRequest,
|
|
76
76
|
AccountAccess: () => AccountAccess,
|
|
77
|
+
AccountAttributeType: () => AccountAttributeType,
|
|
77
78
|
ActivityEntityType: () => ActivityEntityType,
|
|
78
79
|
ActivityPreference: () => ActivityPreference,
|
|
79
80
|
ActivityStatus: () => ActivityStatus,
|
|
@@ -448,6 +449,7 @@ __export(index_exports, {
|
|
|
448
449
|
DeleteSelfApiKey: () => DeleteSelfApiKey,
|
|
449
450
|
DeleteSeries: () => DeleteSeries,
|
|
450
451
|
DeleteSeriesRegistration: () => DeleteSeriesRegistration,
|
|
452
|
+
DeleteSeriesTranslation: () => DeleteSeriesTranslation,
|
|
451
453
|
DeleteStreamInput: () => DeleteStreamInput,
|
|
452
454
|
DeleteStreamInputOutput: () => DeleteStreamInputOutput,
|
|
453
455
|
DeleteSupportTicket: () => DeleteSupportTicket,
|
|
@@ -1159,6 +1161,8 @@ __export(index_exports, {
|
|
|
1159
1161
|
GetSeriesRegistrationPasses: () => GetSeriesRegistrationPasses,
|
|
1160
1162
|
GetSeriesRegistrationPayments: () => GetSeriesRegistrationPayments,
|
|
1161
1163
|
GetSeriesRegistrations: () => GetSeriesRegistrations,
|
|
1164
|
+
GetSeriesTranslation: () => GetSeriesTranslation,
|
|
1165
|
+
GetSeriesTranslations: () => GetSeriesTranslations,
|
|
1162
1166
|
GetStreamInput: () => GetStreamInput,
|
|
1163
1167
|
GetStreamInputOutput: () => GetStreamInputOutput,
|
|
1164
1168
|
GetStreamInputOutputs: () => GetStreamInputOutputs,
|
|
@@ -1452,6 +1456,8 @@ __export(index_exports, {
|
|
|
1452
1456
|
SERIES_REGISTRATION_PASSES_QUERY_KEY: () => SERIES_REGISTRATION_PASSES_QUERY_KEY,
|
|
1453
1457
|
SERIES_REGISTRATION_PAYMENTS_QUERY_KEY: () => SERIES_REGISTRATION_PAYMENTS_QUERY_KEY,
|
|
1454
1458
|
SERIES_REGISTRATION_QUERY_KEY: () => SERIES_REGISTRATION_QUERY_KEY,
|
|
1459
|
+
SERIES_TRANSLATIONS_QUERY_KEY: () => SERIES_TRANSLATIONS_QUERY_KEY,
|
|
1460
|
+
SERIES_TRANSLATION_QUERY_KEY: () => SERIES_TRANSLATION_QUERY_KEY,
|
|
1455
1461
|
SET_ACCOUNTS_QUERY_DATA: () => SET_ACCOUNTS_QUERY_DATA,
|
|
1456
1462
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA: () => SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
1457
1463
|
SET_ACCOUNT_ADDRESSES_QUERY_DATA: () => SET_ACCOUNT_ADDRESSES_QUERY_DATA,
|
|
@@ -1869,6 +1875,8 @@ __export(index_exports, {
|
|
|
1869
1875
|
SET_SERIES_LIST_QUERY_DATA: () => SET_SERIES_LIST_QUERY_DATA,
|
|
1870
1876
|
SET_SERIES_QUERY_DATA: () => SET_SERIES_QUERY_DATA,
|
|
1871
1877
|
SET_SERIES_REGISTRATION_QUERY_DATA: () => SET_SERIES_REGISTRATION_QUERY_DATA,
|
|
1878
|
+
SET_SERIES_TRANSLATIONS_QUERY_DATA: () => SET_SERIES_TRANSLATIONS_QUERY_DATA,
|
|
1879
|
+
SET_SERIES_TRANSLATION_QUERY_DATA: () => SET_SERIES_TRANSLATION_QUERY_DATA,
|
|
1872
1880
|
SET_STREAM_INPUTS_QUERY_DATA: () => SET_STREAM_INPUTS_QUERY_DATA,
|
|
1873
1881
|
SET_STREAM_INPUT_OUTPUTS_QUERY_DATA: () => SET_STREAM_INPUT_OUTPUTS_QUERY_DATA,
|
|
1874
1882
|
SET_STREAM_INPUT_OUTPUT_QUERY_DATA: () => SET_STREAM_INPUT_OUTPUT_QUERY_DATA,
|
|
@@ -2176,6 +2184,7 @@ __export(index_exports, {
|
|
|
2176
2184
|
UpdateSelf: () => UpdateSelf,
|
|
2177
2185
|
UpdateSeries: () => UpdateSeries,
|
|
2178
2186
|
UpdateSeriesRegistration: () => UpdateSeriesRegistration,
|
|
2187
|
+
UpdateSeriesTranslation: () => UpdateSeriesTranslation,
|
|
2179
2188
|
UpdateStream: () => UpdateStream,
|
|
2180
2189
|
UpdateStreamInputConfig: () => UpdateStreamInputConfig,
|
|
2181
2190
|
UpdateStreamInputOutput: () => UpdateStreamInputOutput,
|
|
@@ -2527,6 +2536,7 @@ __export(index_exports, {
|
|
|
2527
2536
|
useDeleteSelfApiKey: () => useDeleteSelfApiKey,
|
|
2528
2537
|
useDeleteSeries: () => useDeleteSeries,
|
|
2529
2538
|
useDeleteSeriesRegistration: () => useDeleteSeriesRegistration,
|
|
2539
|
+
useDeleteSeriesTranslation: () => useDeleteSeriesTranslation,
|
|
2530
2540
|
useDeleteStreamInput: () => useDeleteStreamInput,
|
|
2531
2541
|
useDeleteStreamInputOutput: () => useDeleteStreamInputOutput,
|
|
2532
2542
|
useDeleteSupportTicket: () => useDeleteSupportTicket,
|
|
@@ -2992,6 +3002,8 @@ __export(index_exports, {
|
|
|
2992
3002
|
useGetSeriesRegistrationPasses: () => useGetSeriesRegistrationPasses,
|
|
2993
3003
|
useGetSeriesRegistrationPayments: () => useGetSeriesRegistrationPayments,
|
|
2994
3004
|
useGetSeriesRegistrations: () => useGetSeriesRegistrations,
|
|
3005
|
+
useGetSeriesTranslation: () => useGetSeriesTranslation,
|
|
3006
|
+
useGetSeriesTranslations: () => useGetSeriesTranslations,
|
|
2995
3007
|
useGetStreamInput: () => useGetStreamInput,
|
|
2996
3008
|
useGetStreamInputOutput: () => useGetStreamInputOutput,
|
|
2997
3009
|
useGetStreamInputOutputs: () => useGetStreamInputOutputs,
|
|
@@ -3307,6 +3319,7 @@ __export(index_exports, {
|
|
|
3307
3319
|
useUpdateSelf: () => useUpdateSelf,
|
|
3308
3320
|
useUpdateSeries: () => useUpdateSeries,
|
|
3309
3321
|
useUpdateSeriesRegistration: () => useUpdateSeriesRegistration,
|
|
3322
|
+
useUpdateSeriesTranslation: () => useUpdateSeriesTranslation,
|
|
3310
3323
|
useUpdateStreamInput: () => useUpdateStreamInput,
|
|
3311
3324
|
useUpdateStreamInputConfig: () => useUpdateStreamInputConfig,
|
|
3312
3325
|
useUpdateStreamInputOutput: () => useUpdateStreamInputOutput,
|
|
@@ -3663,6 +3676,16 @@ var SessionAccess = /* @__PURE__ */ ((SessionAccess2) => {
|
|
|
3663
3676
|
SessionAccess2["private"] = "PRIVATE";
|
|
3664
3677
|
return SessionAccess2;
|
|
3665
3678
|
})(SessionAccess || {});
|
|
3679
|
+
var AccountAttributeType = /* @__PURE__ */ ((AccountAttributeType2) => {
|
|
3680
|
+
AccountAttributeType2["text"] = "text";
|
|
3681
|
+
AccountAttributeType2["number"] = "number";
|
|
3682
|
+
AccountAttributeType2["date"] = "date";
|
|
3683
|
+
AccountAttributeType2["boolean"] = "boolean";
|
|
3684
|
+
AccountAttributeType2["search"] = "search";
|
|
3685
|
+
AccountAttributeType2["select"] = "select";
|
|
3686
|
+
AccountAttributeType2["location"] = "location";
|
|
3687
|
+
return AccountAttributeType2;
|
|
3688
|
+
})(AccountAttributeType || {});
|
|
3666
3689
|
var EventActivationType = /* @__PURE__ */ ((EventActivationType2) => {
|
|
3667
3690
|
EventActivationType2["public"] = "public";
|
|
3668
3691
|
EventActivationType2["private"] = "private";
|
|
@@ -21010,6 +21033,79 @@ var useGetSeriesRegistrationPayments = (seriesId = "", registrationId = "", para
|
|
|
21010
21033
|
);
|
|
21011
21034
|
};
|
|
21012
21035
|
|
|
21036
|
+
// src/queries/series/translations/useGetSeriesTranslations.ts
|
|
21037
|
+
var SERIES_TRANSLATIONS_QUERY_KEY = (seriesId) => [
|
|
21038
|
+
...SERIES_QUERY_KEY(seriesId),
|
|
21039
|
+
"TRANSLATIONS"
|
|
21040
|
+
];
|
|
21041
|
+
var SET_SERIES_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
|
|
21042
|
+
client.setQueryData(SERIES_TRANSLATIONS_QUERY_KEY(...keyParams), response);
|
|
21043
|
+
};
|
|
21044
|
+
var GetSeriesTranslations = async ({
|
|
21045
|
+
pageParam,
|
|
21046
|
+
pageSize,
|
|
21047
|
+
orderBy,
|
|
21048
|
+
search,
|
|
21049
|
+
seriesId,
|
|
21050
|
+
adminApiParams
|
|
21051
|
+
}) => {
|
|
21052
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
21053
|
+
const { data } = await adminApi.get(`/series/${seriesId}/translations`, {
|
|
21054
|
+
params: {
|
|
21055
|
+
page: pageParam || void 0,
|
|
21056
|
+
pageSize: pageSize || void 0,
|
|
21057
|
+
orderBy: orderBy || void 0,
|
|
21058
|
+
search: search || void 0
|
|
21059
|
+
}
|
|
21060
|
+
});
|
|
21061
|
+
return data;
|
|
21062
|
+
};
|
|
21063
|
+
var useGetSeriesTranslations = (seriesId = "", params = {}, options = {}) => {
|
|
21064
|
+
return useConnectedInfiniteQuery(
|
|
21065
|
+
SERIES_TRANSLATIONS_QUERY_KEY(seriesId),
|
|
21066
|
+
(params2) => GetSeriesTranslations({
|
|
21067
|
+
...params2,
|
|
21068
|
+
seriesId
|
|
21069
|
+
}),
|
|
21070
|
+
params,
|
|
21071
|
+
{
|
|
21072
|
+
...options,
|
|
21073
|
+
enabled: !!seriesId && (options.enabled ?? true)
|
|
21074
|
+
}
|
|
21075
|
+
);
|
|
21076
|
+
};
|
|
21077
|
+
|
|
21078
|
+
// src/queries/series/translations/useGetSeriesTranslation.ts
|
|
21079
|
+
var SERIES_TRANSLATION_QUERY_KEY = (seriesId, locale) => [...SERIES_TRANSLATIONS_QUERY_KEY(seriesId), locale];
|
|
21080
|
+
var SET_SERIES_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
|
|
21081
|
+
client.setQueryData(SERIES_TRANSLATION_QUERY_KEY(...keyParams), response);
|
|
21082
|
+
};
|
|
21083
|
+
var GetSeriesTranslation = async ({
|
|
21084
|
+
seriesId,
|
|
21085
|
+
locale,
|
|
21086
|
+
adminApiParams
|
|
21087
|
+
}) => {
|
|
21088
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
21089
|
+
const { data } = await adminApi.get(
|
|
21090
|
+
`/series/${seriesId}/translations/${locale}`
|
|
21091
|
+
);
|
|
21092
|
+
return data;
|
|
21093
|
+
};
|
|
21094
|
+
var useGetSeriesTranslation = (seriesId = "", locale = "", options = {}) => {
|
|
21095
|
+
return useConnectedSingleQuery(
|
|
21096
|
+
SERIES_TRANSLATION_QUERY_KEY(seriesId, locale),
|
|
21097
|
+
(params) => GetSeriesTranslation({
|
|
21098
|
+
seriesId,
|
|
21099
|
+
locale,
|
|
21100
|
+
...params
|
|
21101
|
+
}),
|
|
21102
|
+
{
|
|
21103
|
+
...options,
|
|
21104
|
+
enabled: !!seriesId && !!locale && locale !== "en" && (options?.enabled ?? true)
|
|
21105
|
+
}
|
|
21106
|
+
);
|
|
21107
|
+
};
|
|
21108
|
+
|
|
21013
21109
|
// src/queries/series/useGetSeriesEvents.ts
|
|
21014
21110
|
var SERIES_EVENTS_QUERY_KEY = (seriesId) => [
|
|
21015
21111
|
...EVENT_QUERY_KEY(seriesId),
|
|
@@ -37528,6 +37624,60 @@ var useUpdateSeriesRegistration = (options = {}) => {
|
|
|
37528
37624
|
return useConnectedMutation(UpdateSeriesRegistration, options);
|
|
37529
37625
|
};
|
|
37530
37626
|
|
|
37627
|
+
// src/mutations/series/translations/useDeleteSeriesTranslation.ts
|
|
37628
|
+
var DeleteSeriesTranslation = async ({
|
|
37629
|
+
seriesId,
|
|
37630
|
+
locale,
|
|
37631
|
+
adminApiParams,
|
|
37632
|
+
queryClient
|
|
37633
|
+
}) => {
|
|
37634
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37635
|
+
const { data } = await connectedXM.delete(
|
|
37636
|
+
`/series/${seriesId}/translations/${locale}`
|
|
37637
|
+
);
|
|
37638
|
+
if (queryClient && data.status === "ok") {
|
|
37639
|
+
queryClient.invalidateQueries({
|
|
37640
|
+
queryKey: SERIES_TRANSLATIONS_QUERY_KEY(seriesId)
|
|
37641
|
+
});
|
|
37642
|
+
queryClient.invalidateQueries({
|
|
37643
|
+
queryKey: SERIES_TRANSLATION_QUERY_KEY(seriesId, locale)
|
|
37644
|
+
});
|
|
37645
|
+
}
|
|
37646
|
+
return data;
|
|
37647
|
+
};
|
|
37648
|
+
var useDeleteSeriesTranslation = (options = {}) => {
|
|
37649
|
+
return useConnectedMutation(DeleteSeriesTranslation, options);
|
|
37650
|
+
};
|
|
37651
|
+
|
|
37652
|
+
// src/mutations/series/translations/useUpdateSeriesTranslation.ts
|
|
37653
|
+
var UpdateSeriesTranslation = async ({
|
|
37654
|
+
seriesId,
|
|
37655
|
+
seriesTranslation,
|
|
37656
|
+
adminApiParams,
|
|
37657
|
+
locale,
|
|
37658
|
+
queryClient
|
|
37659
|
+
}) => {
|
|
37660
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37661
|
+
const { data } = await connectedXM.put(
|
|
37662
|
+
`/series/${seriesId}/translations/${locale}`,
|
|
37663
|
+
seriesTranslation
|
|
37664
|
+
);
|
|
37665
|
+
if (queryClient && data.status === "ok") {
|
|
37666
|
+
queryClient.invalidateQueries({
|
|
37667
|
+
queryKey: SERIES_TRANSLATIONS_QUERY_KEY(seriesId)
|
|
37668
|
+
});
|
|
37669
|
+
SET_SERIES_TRANSLATION_QUERY_DATA(
|
|
37670
|
+
queryClient,
|
|
37671
|
+
[seriesId, locale],
|
|
37672
|
+
data
|
|
37673
|
+
);
|
|
37674
|
+
}
|
|
37675
|
+
return data;
|
|
37676
|
+
};
|
|
37677
|
+
var useUpdateSeriesTranslation = (options = {}) => {
|
|
37678
|
+
return useConnectedMutation(UpdateSeriesTranslation, options);
|
|
37679
|
+
};
|
|
37680
|
+
|
|
37531
37681
|
// src/mutations/series/useAddSeriesEvent.ts
|
|
37532
37682
|
var AddSeriesEvent = async ({
|
|
37533
37683
|
seriesId,
|
|
@@ -40181,6 +40331,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
40181
40331
|
AUTH_SESSION_QUERY_KEY,
|
|
40182
40332
|
AcceptGroupRequest,
|
|
40183
40333
|
AccountAccess,
|
|
40334
|
+
AccountAttributeType,
|
|
40184
40335
|
ActivityEntityType,
|
|
40185
40336
|
ActivityPreference,
|
|
40186
40337
|
ActivityStatus,
|
|
@@ -40555,6 +40706,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
40555
40706
|
DeleteSelfApiKey,
|
|
40556
40707
|
DeleteSeries,
|
|
40557
40708
|
DeleteSeriesRegistration,
|
|
40709
|
+
DeleteSeriesTranslation,
|
|
40558
40710
|
DeleteStreamInput,
|
|
40559
40711
|
DeleteStreamInputOutput,
|
|
40560
40712
|
DeleteSupportTicket,
|
|
@@ -41266,6 +41418,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
41266
41418
|
GetSeriesRegistrationPasses,
|
|
41267
41419
|
GetSeriesRegistrationPayments,
|
|
41268
41420
|
GetSeriesRegistrations,
|
|
41421
|
+
GetSeriesTranslation,
|
|
41422
|
+
GetSeriesTranslations,
|
|
41269
41423
|
GetStreamInput,
|
|
41270
41424
|
GetStreamInputOutput,
|
|
41271
41425
|
GetStreamInputOutputs,
|
|
@@ -41559,6 +41713,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
41559
41713
|
SERIES_REGISTRATION_PASSES_QUERY_KEY,
|
|
41560
41714
|
SERIES_REGISTRATION_PAYMENTS_QUERY_KEY,
|
|
41561
41715
|
SERIES_REGISTRATION_QUERY_KEY,
|
|
41716
|
+
SERIES_TRANSLATIONS_QUERY_KEY,
|
|
41717
|
+
SERIES_TRANSLATION_QUERY_KEY,
|
|
41562
41718
|
SET_ACCOUNTS_QUERY_DATA,
|
|
41563
41719
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
41564
41720
|
SET_ACCOUNT_ADDRESSES_QUERY_DATA,
|
|
@@ -41976,6 +42132,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
41976
42132
|
SET_SERIES_LIST_QUERY_DATA,
|
|
41977
42133
|
SET_SERIES_QUERY_DATA,
|
|
41978
42134
|
SET_SERIES_REGISTRATION_QUERY_DATA,
|
|
42135
|
+
SET_SERIES_TRANSLATIONS_QUERY_DATA,
|
|
42136
|
+
SET_SERIES_TRANSLATION_QUERY_DATA,
|
|
41979
42137
|
SET_STREAM_INPUTS_QUERY_DATA,
|
|
41980
42138
|
SET_STREAM_INPUT_OUTPUTS_QUERY_DATA,
|
|
41981
42139
|
SET_STREAM_INPUT_OUTPUT_QUERY_DATA,
|
|
@@ -42283,6 +42441,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
42283
42441
|
UpdateSelf,
|
|
42284
42442
|
UpdateSeries,
|
|
42285
42443
|
UpdateSeriesRegistration,
|
|
42444
|
+
UpdateSeriesTranslation,
|
|
42286
42445
|
UpdateStream,
|
|
42287
42446
|
UpdateStreamInputConfig,
|
|
42288
42447
|
UpdateStreamInputOutput,
|
|
@@ -42634,6 +42793,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
42634
42793
|
useDeleteSelfApiKey,
|
|
42635
42794
|
useDeleteSeries,
|
|
42636
42795
|
useDeleteSeriesRegistration,
|
|
42796
|
+
useDeleteSeriesTranslation,
|
|
42637
42797
|
useDeleteStreamInput,
|
|
42638
42798
|
useDeleteStreamInputOutput,
|
|
42639
42799
|
useDeleteSupportTicket,
|
|
@@ -43099,6 +43259,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
43099
43259
|
useGetSeriesRegistrationPasses,
|
|
43100
43260
|
useGetSeriesRegistrationPayments,
|
|
43101
43261
|
useGetSeriesRegistrations,
|
|
43262
|
+
useGetSeriesTranslation,
|
|
43263
|
+
useGetSeriesTranslations,
|
|
43102
43264
|
useGetStreamInput,
|
|
43103
43265
|
useGetStreamInputOutput,
|
|
43104
43266
|
useGetStreamInputOutputs,
|
|
@@ -43414,6 +43576,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43414
43576
|
useUpdateSelf,
|
|
43415
43577
|
useUpdateSeries,
|
|
43416
43578
|
useUpdateSeriesRegistration,
|
|
43579
|
+
useUpdateSeriesTranslation,
|
|
43417
43580
|
useUpdateStreamInput,
|
|
43418
43581
|
useUpdateStreamInputConfig,
|
|
43419
43582
|
useUpdateStreamInputOutput,
|