@connectedxm/admin 6.9.5 → 6.9.6
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 +151 -0
- package/dist/index.d.cts +117 -1
- package/dist/index.d.ts +117 -1
- package/dist/index.js +139 -0
- package/openapi.json +116 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17674,6 +17674,79 @@ var useGetSeriesRegistrationPayments = (seriesId = "", registrationId = "", para
|
|
|
17674
17674
|
);
|
|
17675
17675
|
};
|
|
17676
17676
|
|
|
17677
|
+
// src/queries/series/translations/useGetSeriesTranslations.ts
|
|
17678
|
+
var SERIES_TRANSLATIONS_QUERY_KEY = (seriesId) => [
|
|
17679
|
+
...SERIES_QUERY_KEY(seriesId),
|
|
17680
|
+
"TRANSLATIONS"
|
|
17681
|
+
];
|
|
17682
|
+
var SET_SERIES_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
|
|
17683
|
+
client.setQueryData(SERIES_TRANSLATIONS_QUERY_KEY(...keyParams), response);
|
|
17684
|
+
};
|
|
17685
|
+
var GetSeriesTranslations = async ({
|
|
17686
|
+
pageParam,
|
|
17687
|
+
pageSize,
|
|
17688
|
+
orderBy,
|
|
17689
|
+
search,
|
|
17690
|
+
seriesId,
|
|
17691
|
+
adminApiParams
|
|
17692
|
+
}) => {
|
|
17693
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17694
|
+
const { data } = await adminApi.get(`/series/${seriesId}/translations`, {
|
|
17695
|
+
params: {
|
|
17696
|
+
page: pageParam || void 0,
|
|
17697
|
+
pageSize: pageSize || void 0,
|
|
17698
|
+
orderBy: orderBy || void 0,
|
|
17699
|
+
search: search || void 0
|
|
17700
|
+
}
|
|
17701
|
+
});
|
|
17702
|
+
return data;
|
|
17703
|
+
};
|
|
17704
|
+
var useGetSeriesTranslations = (seriesId = "", params = {}, options = {}) => {
|
|
17705
|
+
return useConnectedInfiniteQuery(
|
|
17706
|
+
SERIES_TRANSLATIONS_QUERY_KEY(seriesId),
|
|
17707
|
+
(params2) => GetSeriesTranslations({
|
|
17708
|
+
...params2,
|
|
17709
|
+
seriesId
|
|
17710
|
+
}),
|
|
17711
|
+
params,
|
|
17712
|
+
{
|
|
17713
|
+
...options,
|
|
17714
|
+
enabled: !!seriesId && (options.enabled ?? true)
|
|
17715
|
+
}
|
|
17716
|
+
);
|
|
17717
|
+
};
|
|
17718
|
+
|
|
17719
|
+
// src/queries/series/translations/useGetSeriesTranslation.ts
|
|
17720
|
+
var SERIES_TRANSLATION_QUERY_KEY = (seriesId, locale) => [...SERIES_TRANSLATIONS_QUERY_KEY(seriesId), locale];
|
|
17721
|
+
var SET_SERIES_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
|
|
17722
|
+
client.setQueryData(SERIES_TRANSLATION_QUERY_KEY(...keyParams), response);
|
|
17723
|
+
};
|
|
17724
|
+
var GetSeriesTranslation = async ({
|
|
17725
|
+
seriesId,
|
|
17726
|
+
locale,
|
|
17727
|
+
adminApiParams
|
|
17728
|
+
}) => {
|
|
17729
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
17730
|
+
const { data } = await adminApi.get(
|
|
17731
|
+
`/series/${seriesId}/translations/${locale}`
|
|
17732
|
+
);
|
|
17733
|
+
return data;
|
|
17734
|
+
};
|
|
17735
|
+
var useGetSeriesTranslation = (seriesId = "", locale = "", options = {}) => {
|
|
17736
|
+
return useConnectedSingleQuery(
|
|
17737
|
+
SERIES_TRANSLATION_QUERY_KEY(seriesId, locale),
|
|
17738
|
+
(params) => GetSeriesTranslation({
|
|
17739
|
+
seriesId,
|
|
17740
|
+
locale,
|
|
17741
|
+
...params
|
|
17742
|
+
}),
|
|
17743
|
+
{
|
|
17744
|
+
...options,
|
|
17745
|
+
enabled: !!seriesId && !!locale && locale !== "en" && (options?.enabled ?? true)
|
|
17746
|
+
}
|
|
17747
|
+
);
|
|
17748
|
+
};
|
|
17749
|
+
|
|
17677
17750
|
// src/queries/series/useGetSeriesEvents.ts
|
|
17678
17751
|
var SERIES_EVENTS_QUERY_KEY = (seriesId) => [
|
|
17679
17752
|
...EVENT_QUERY_KEY(seriesId),
|
|
@@ -34195,6 +34268,60 @@ var useUpdateSeriesRegistration = (options = {}) => {
|
|
|
34195
34268
|
return useConnectedMutation(UpdateSeriesRegistration, options);
|
|
34196
34269
|
};
|
|
34197
34270
|
|
|
34271
|
+
// src/mutations/series/translations/useDeleteSeriesTranslation.ts
|
|
34272
|
+
var DeleteSeriesTranslation = async ({
|
|
34273
|
+
seriesId,
|
|
34274
|
+
locale,
|
|
34275
|
+
adminApiParams,
|
|
34276
|
+
queryClient
|
|
34277
|
+
}) => {
|
|
34278
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
34279
|
+
const { data } = await connectedXM.delete(
|
|
34280
|
+
`/series/${seriesId}/translations/${locale}`
|
|
34281
|
+
);
|
|
34282
|
+
if (queryClient && data.status === "ok") {
|
|
34283
|
+
queryClient.invalidateQueries({
|
|
34284
|
+
queryKey: SERIES_TRANSLATIONS_QUERY_KEY(seriesId)
|
|
34285
|
+
});
|
|
34286
|
+
queryClient.invalidateQueries({
|
|
34287
|
+
queryKey: SERIES_TRANSLATION_QUERY_KEY(seriesId, locale)
|
|
34288
|
+
});
|
|
34289
|
+
}
|
|
34290
|
+
return data;
|
|
34291
|
+
};
|
|
34292
|
+
var useDeleteSeriesTranslation = (options = {}) => {
|
|
34293
|
+
return useConnectedMutation(DeleteSeriesTranslation, options);
|
|
34294
|
+
};
|
|
34295
|
+
|
|
34296
|
+
// src/mutations/series/translations/useUpdateSeriesTranslation.ts
|
|
34297
|
+
var UpdateSeriesTranslation = async ({
|
|
34298
|
+
seriesId,
|
|
34299
|
+
seriesTranslation,
|
|
34300
|
+
adminApiParams,
|
|
34301
|
+
locale,
|
|
34302
|
+
queryClient
|
|
34303
|
+
}) => {
|
|
34304
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
34305
|
+
const { data } = await connectedXM.put(
|
|
34306
|
+
`/series/${seriesId}/translations/${locale}`,
|
|
34307
|
+
seriesTranslation
|
|
34308
|
+
);
|
|
34309
|
+
if (queryClient && data.status === "ok") {
|
|
34310
|
+
queryClient.invalidateQueries({
|
|
34311
|
+
queryKey: SERIES_TRANSLATIONS_QUERY_KEY(seriesId)
|
|
34312
|
+
});
|
|
34313
|
+
SET_SERIES_TRANSLATION_QUERY_DATA(
|
|
34314
|
+
queryClient,
|
|
34315
|
+
[seriesId, locale],
|
|
34316
|
+
data
|
|
34317
|
+
);
|
|
34318
|
+
}
|
|
34319
|
+
return data;
|
|
34320
|
+
};
|
|
34321
|
+
var useUpdateSeriesTranslation = (options = {}) => {
|
|
34322
|
+
return useConnectedMutation(UpdateSeriesTranslation, options);
|
|
34323
|
+
};
|
|
34324
|
+
|
|
34198
34325
|
// src/mutations/series/useAddSeriesEvent.ts
|
|
34199
34326
|
var AddSeriesEvent = async ({
|
|
34200
34327
|
seriesId,
|
|
@@ -37221,6 +37348,7 @@ export {
|
|
|
37221
37348
|
DeleteSelfApiKey,
|
|
37222
37349
|
DeleteSeries,
|
|
37223
37350
|
DeleteSeriesRegistration,
|
|
37351
|
+
DeleteSeriesTranslation,
|
|
37224
37352
|
DeleteStreamInput,
|
|
37225
37353
|
DeleteStreamInputOutput,
|
|
37226
37354
|
DeleteSupportTicket,
|
|
@@ -37932,6 +38060,8 @@ export {
|
|
|
37932
38060
|
GetSeriesRegistrationPasses,
|
|
37933
38061
|
GetSeriesRegistrationPayments,
|
|
37934
38062
|
GetSeriesRegistrations,
|
|
38063
|
+
GetSeriesTranslation,
|
|
38064
|
+
GetSeriesTranslations,
|
|
37935
38065
|
GetStreamInput,
|
|
37936
38066
|
GetStreamInputOutput,
|
|
37937
38067
|
GetStreamInputOutputs,
|
|
@@ -38225,6 +38355,8 @@ export {
|
|
|
38225
38355
|
SERIES_REGISTRATION_PASSES_QUERY_KEY,
|
|
38226
38356
|
SERIES_REGISTRATION_PAYMENTS_QUERY_KEY,
|
|
38227
38357
|
SERIES_REGISTRATION_QUERY_KEY,
|
|
38358
|
+
SERIES_TRANSLATIONS_QUERY_KEY,
|
|
38359
|
+
SERIES_TRANSLATION_QUERY_KEY,
|
|
38228
38360
|
SET_ACCOUNTS_QUERY_DATA,
|
|
38229
38361
|
SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
|
|
38230
38362
|
SET_ACCOUNT_ADDRESSES_QUERY_DATA,
|
|
@@ -38642,6 +38774,8 @@ export {
|
|
|
38642
38774
|
SET_SERIES_LIST_QUERY_DATA,
|
|
38643
38775
|
SET_SERIES_QUERY_DATA,
|
|
38644
38776
|
SET_SERIES_REGISTRATION_QUERY_DATA,
|
|
38777
|
+
SET_SERIES_TRANSLATIONS_QUERY_DATA,
|
|
38778
|
+
SET_SERIES_TRANSLATION_QUERY_DATA,
|
|
38645
38779
|
SET_STREAM_INPUTS_QUERY_DATA,
|
|
38646
38780
|
SET_STREAM_INPUT_OUTPUTS_QUERY_DATA,
|
|
38647
38781
|
SET_STREAM_INPUT_OUTPUT_QUERY_DATA,
|
|
@@ -38949,6 +39083,7 @@ export {
|
|
|
38949
39083
|
UpdateSelf,
|
|
38950
39084
|
UpdateSeries,
|
|
38951
39085
|
UpdateSeriesRegistration,
|
|
39086
|
+
UpdateSeriesTranslation,
|
|
38952
39087
|
UpdateStream,
|
|
38953
39088
|
UpdateStreamInputConfig,
|
|
38954
39089
|
UpdateStreamInputOutput,
|
|
@@ -39300,6 +39435,7 @@ export {
|
|
|
39300
39435
|
useDeleteSelfApiKey,
|
|
39301
39436
|
useDeleteSeries,
|
|
39302
39437
|
useDeleteSeriesRegistration,
|
|
39438
|
+
useDeleteSeriesTranslation,
|
|
39303
39439
|
useDeleteStreamInput,
|
|
39304
39440
|
useDeleteStreamInputOutput,
|
|
39305
39441
|
useDeleteSupportTicket,
|
|
@@ -39765,6 +39901,8 @@ export {
|
|
|
39765
39901
|
useGetSeriesRegistrationPasses,
|
|
39766
39902
|
useGetSeriesRegistrationPayments,
|
|
39767
39903
|
useGetSeriesRegistrations,
|
|
39904
|
+
useGetSeriesTranslation,
|
|
39905
|
+
useGetSeriesTranslations,
|
|
39768
39906
|
useGetStreamInput,
|
|
39769
39907
|
useGetStreamInputOutput,
|
|
39770
39908
|
useGetStreamInputOutputs,
|
|
@@ -40080,6 +40218,7 @@ export {
|
|
|
40080
40218
|
useUpdateSelf,
|
|
40081
40219
|
useUpdateSeries,
|
|
40082
40220
|
useUpdateSeriesRegistration,
|
|
40221
|
+
useUpdateSeriesTranslation,
|
|
40083
40222
|
useUpdateStreamInput,
|
|
40084
40223
|
useUpdateStreamInputConfig,
|
|
40085
40224
|
useUpdateStreamInputOutput,
|
package/openapi.json
CHANGED
|
@@ -81468,6 +81468,18 @@
|
|
|
81468
81468
|
"taxLocation": {
|
|
81469
81469
|
"$ref": "#/components/schemas/TaxLocationType"
|
|
81470
81470
|
},
|
|
81471
|
+
"subject": {
|
|
81472
|
+
"type": "string",
|
|
81473
|
+
"nullable": true
|
|
81474
|
+
},
|
|
81475
|
+
"replyTo": {
|
|
81476
|
+
"type": "string",
|
|
81477
|
+
"nullable": true
|
|
81478
|
+
},
|
|
81479
|
+
"body": {
|
|
81480
|
+
"type": "string",
|
|
81481
|
+
"nullable": true
|
|
81482
|
+
},
|
|
81471
81483
|
"createdAt": {
|
|
81472
81484
|
"type": "string"
|
|
81473
81485
|
},
|
|
@@ -81483,12 +81495,67 @@
|
|
|
81483
81495
|
"taxCode",
|
|
81484
81496
|
"taxIncluded",
|
|
81485
81497
|
"taxLocation",
|
|
81498
|
+
"subject",
|
|
81499
|
+
"replyTo",
|
|
81500
|
+
"body",
|
|
81486
81501
|
"createdAt",
|
|
81487
81502
|
"updatedAt"
|
|
81488
81503
|
]
|
|
81489
81504
|
}
|
|
81490
81505
|
]
|
|
81491
81506
|
},
|
|
81507
|
+
"SeriesTranslation": {
|
|
81508
|
+
"type": "object",
|
|
81509
|
+
"properties": {
|
|
81510
|
+
"id": {
|
|
81511
|
+
"type": "number"
|
|
81512
|
+
},
|
|
81513
|
+
"locale": {
|
|
81514
|
+
"type": "string"
|
|
81515
|
+
},
|
|
81516
|
+
"name": {
|
|
81517
|
+
"type": "string"
|
|
81518
|
+
},
|
|
81519
|
+
"description": {
|
|
81520
|
+
"type": "string",
|
|
81521
|
+
"nullable": true
|
|
81522
|
+
},
|
|
81523
|
+
"longDescription": {
|
|
81524
|
+
"type": "string",
|
|
81525
|
+
"nullable": true
|
|
81526
|
+
},
|
|
81527
|
+
"subject": {
|
|
81528
|
+
"type": "string",
|
|
81529
|
+
"nullable": true
|
|
81530
|
+
},
|
|
81531
|
+
"replyTo": {
|
|
81532
|
+
"type": "string",
|
|
81533
|
+
"nullable": true
|
|
81534
|
+
},
|
|
81535
|
+
"body": {
|
|
81536
|
+
"type": "string",
|
|
81537
|
+
"nullable": true
|
|
81538
|
+
},
|
|
81539
|
+
"createdAt": {
|
|
81540
|
+
"type": "string"
|
|
81541
|
+
},
|
|
81542
|
+
"updatedAt": {
|
|
81543
|
+
"type": "string"
|
|
81544
|
+
}
|
|
81545
|
+
},
|
|
81546
|
+
"required": [
|
|
81547
|
+
"id",
|
|
81548
|
+
"locale",
|
|
81549
|
+
"name",
|
|
81550
|
+
"description",
|
|
81551
|
+
"longDescription",
|
|
81552
|
+
"subject",
|
|
81553
|
+
"replyTo",
|
|
81554
|
+
"body",
|
|
81555
|
+
"createdAt",
|
|
81556
|
+
"updatedAt"
|
|
81557
|
+
]
|
|
81558
|
+
},
|
|
81492
81559
|
"BaseSeriesRegistration": {
|
|
81493
81560
|
"type": "object",
|
|
81494
81561
|
"properties": {
|
|
@@ -96067,6 +96134,18 @@
|
|
|
96067
96134
|
},
|
|
96068
96135
|
"taxLocation": {
|
|
96069
96136
|
"$ref": "#/components/schemas/TaxLocationType"
|
|
96137
|
+
},
|
|
96138
|
+
"subject": {
|
|
96139
|
+
"type": "string",
|
|
96140
|
+
"nullable": true
|
|
96141
|
+
},
|
|
96142
|
+
"replyTo": {
|
|
96143
|
+
"type": "string",
|
|
96144
|
+
"nullable": true
|
|
96145
|
+
},
|
|
96146
|
+
"body": {
|
|
96147
|
+
"type": "string",
|
|
96148
|
+
"nullable": true
|
|
96070
96149
|
}
|
|
96071
96150
|
},
|
|
96072
96151
|
"required": [
|
|
@@ -96123,6 +96202,43 @@
|
|
|
96123
96202
|
},
|
|
96124
96203
|
"taxLocation": {
|
|
96125
96204
|
"$ref": "#/components/schemas/TaxLocationType"
|
|
96205
|
+
},
|
|
96206
|
+
"subject": {
|
|
96207
|
+
"type": "string",
|
|
96208
|
+
"nullable": true
|
|
96209
|
+
},
|
|
96210
|
+
"replyTo": {
|
|
96211
|
+
"type": "string",
|
|
96212
|
+
"nullable": true
|
|
96213
|
+
},
|
|
96214
|
+
"body": {
|
|
96215
|
+
"type": "string",
|
|
96216
|
+
"nullable": true
|
|
96217
|
+
}
|
|
96218
|
+
}
|
|
96219
|
+
},
|
|
96220
|
+
"SeriesTranslationUpdateInputs": {
|
|
96221
|
+
"type": "object",
|
|
96222
|
+
"properties": {
|
|
96223
|
+
"name": {
|
|
96224
|
+
"type": "string",
|
|
96225
|
+
"nullable": true
|
|
96226
|
+
},
|
|
96227
|
+
"description": {
|
|
96228
|
+
"type": "string",
|
|
96229
|
+
"nullable": true
|
|
96230
|
+
},
|
|
96231
|
+
"longDescription": {
|
|
96232
|
+
"type": "string",
|
|
96233
|
+
"nullable": true
|
|
96234
|
+
},
|
|
96235
|
+
"subject": {
|
|
96236
|
+
"type": "string",
|
|
96237
|
+
"nullable": true
|
|
96238
|
+
},
|
|
96239
|
+
"body": {
|
|
96240
|
+
"type": "string",
|
|
96241
|
+
"nullable": true
|
|
96126
96242
|
}
|
|
96127
96243
|
}
|
|
96128
96244
|
},
|