@connectedxm/admin 7.3.0 → 7.4.0
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 +81 -0
- package/dist/index.d.cts +67 -16
- package/dist/index.d.ts +67 -16
- package/dist/index.js +75 -0
- package/openapi.json +208 -45
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14301,6 +14301,48 @@ var useGetEventTrackSponsors = (eventId = "", trackId = "", params = {}, options
|
|
|
14301
14301
|
);
|
|
14302
14302
|
};
|
|
14303
14303
|
|
|
14304
|
+
// src/queries/events/transfers/useGetEventPassTransfers.ts
|
|
14305
|
+
var EVENT_PASS_TRANSFERS_QUERY_KEY = (eventId) => [
|
|
14306
|
+
...EVENT_QUERY_KEY(eventId),
|
|
14307
|
+
"PASS_TRANSFERS"
|
|
14308
|
+
];
|
|
14309
|
+
var SET_EVENT_PASS_TRANSFERS_QUERY_DATA = (client, keyParams, response) => {
|
|
14310
|
+
client.setQueryData(EVENT_PASS_TRANSFERS_QUERY_KEY(...keyParams), response);
|
|
14311
|
+
};
|
|
14312
|
+
var GetEventPassTransfers = async ({
|
|
14313
|
+
eventId,
|
|
14314
|
+
pageParam,
|
|
14315
|
+
pageSize,
|
|
14316
|
+
orderBy,
|
|
14317
|
+
search,
|
|
14318
|
+
adminApiParams
|
|
14319
|
+
}) => {
|
|
14320
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
14321
|
+
const { data } = await adminApi.get(`/events/${eventId}/transfers`, {
|
|
14322
|
+
params: {
|
|
14323
|
+
page: pageParam || void 0,
|
|
14324
|
+
pageSize: pageSize || void 0,
|
|
14325
|
+
orderBy: orderBy || void 0,
|
|
14326
|
+
search: search || void 0
|
|
14327
|
+
}
|
|
14328
|
+
});
|
|
14329
|
+
return data;
|
|
14330
|
+
};
|
|
14331
|
+
var useGetEventPassTransfers = (eventId = "", params = {}, options = {}) => {
|
|
14332
|
+
return useConnectedInfiniteQuery(
|
|
14333
|
+
EVENT_PASS_TRANSFERS_QUERY_KEY(eventId),
|
|
14334
|
+
(params2) => GetEventPassTransfers({
|
|
14335
|
+
...params2,
|
|
14336
|
+
eventId
|
|
14337
|
+
}),
|
|
14338
|
+
params,
|
|
14339
|
+
{
|
|
14340
|
+
...options,
|
|
14341
|
+
enabled: !!eventId && (options.enabled ?? true)
|
|
14342
|
+
}
|
|
14343
|
+
);
|
|
14344
|
+
};
|
|
14345
|
+
|
|
14304
14346
|
// src/queries/events/translations/useGetEventTranslations.ts
|
|
14305
14347
|
var EVENT_TRANSLATIONS_QUERY_KEY = (eventId) => [
|
|
14306
14348
|
...EVENT_QUERY_KEY(eventId),
|
|
@@ -29152,6 +29194,10 @@ var TransferEventPass = async ({
|
|
|
29152
29194
|
queryClient.invalidateQueries({
|
|
29153
29195
|
queryKey: EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY(eventId, accountId)
|
|
29154
29196
|
});
|
|
29197
|
+
queryClient.invalidateQueries({
|
|
29198
|
+
queryKey: EVENT_PASS_TRANSFERS_QUERY_KEY(eventId),
|
|
29199
|
+
exact: false
|
|
29200
|
+
});
|
|
29155
29201
|
}
|
|
29156
29202
|
return data;
|
|
29157
29203
|
};
|
|
@@ -33834,6 +33880,29 @@ var useUpdateEventTrack = (options = {}) => {
|
|
|
33834
33880
|
return useConnectedMutation(UpdateEventTrack, options);
|
|
33835
33881
|
};
|
|
33836
33882
|
|
|
33883
|
+
// src/mutations/events/transfers/useCancelEventPassTransfer.ts
|
|
33884
|
+
var CancelEventPassTransfer = async ({
|
|
33885
|
+
eventId,
|
|
33886
|
+
transferId,
|
|
33887
|
+
adminApiParams,
|
|
33888
|
+
queryClient
|
|
33889
|
+
}) => {
|
|
33890
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
33891
|
+
const { data } = await connectedXM.delete(
|
|
33892
|
+
`/events/${eventId}/transfers/${transferId}`
|
|
33893
|
+
);
|
|
33894
|
+
if (queryClient && data.status === "ok") {
|
|
33895
|
+
queryClient.invalidateQueries({
|
|
33896
|
+
queryKey: EVENT_PASS_TRANSFERS_QUERY_KEY(eventId),
|
|
33897
|
+
exact: false
|
|
33898
|
+
});
|
|
33899
|
+
}
|
|
33900
|
+
return data;
|
|
33901
|
+
};
|
|
33902
|
+
var useCancelEventPassTransfer = (options = {}) => {
|
|
33903
|
+
return useConnectedMutation(CancelEventPassTransfer, options);
|
|
33904
|
+
};
|
|
33905
|
+
|
|
33837
33906
|
// src/mutations/events/translations/useDeleteEventTranslation.ts
|
|
33838
33907
|
var DeleteEventTranslation = async ({
|
|
33839
33908
|
eventId,
|
|
@@ -40182,6 +40251,7 @@ export {
|
|
|
40182
40251
|
CancelBooking,
|
|
40183
40252
|
CancelChannelContentPublishSchedule,
|
|
40184
40253
|
CancelEventPass,
|
|
40254
|
+
CancelEventPassTransfer,
|
|
40185
40255
|
CancelGroupInvitation,
|
|
40186
40256
|
ChannelFormat,
|
|
40187
40257
|
CheckInBooking,
|
|
@@ -40569,6 +40639,7 @@ export {
|
|
|
40569
40639
|
EVENT_PASS_RESPONSES_QUERY_KEY,
|
|
40570
40640
|
EVENT_PASS_RESPONSE_CHANGES_QUERY_KEY,
|
|
40571
40641
|
EVENT_PASS_RESPONSE_QUERY_KEY,
|
|
40642
|
+
EVENT_PASS_TRANSFERS_QUERY_KEY,
|
|
40572
40643
|
EVENT_PASS_TRANSFER_LOGS_QUERY_KEY,
|
|
40573
40644
|
EVENT_PASS_TYPES_QUERY_KEY,
|
|
40574
40645
|
EVENT_PASS_TYPE_ADD_ONS_QUERY_KEY,
|
|
@@ -40943,6 +41014,7 @@ export {
|
|
|
40943
41014
|
GetEventPassResponseChanges,
|
|
40944
41015
|
GetEventPassResponses,
|
|
40945
41016
|
GetEventPassTransferLogs,
|
|
41017
|
+
GetEventPassTransfers,
|
|
40946
41018
|
GetEventPassType,
|
|
40947
41019
|
GetEventPassTypeAddOns,
|
|
40948
41020
|
GetEventPassTypeGroupPassTiers,
|
|
@@ -41717,6 +41789,7 @@ export {
|
|
|
41717
41789
|
SET_EVENT_PASS_RESPONSES_QUERY_DATA,
|
|
41718
41790
|
SET_EVENT_PASS_RESPONSE_CHANGES_QUERY_DATA,
|
|
41719
41791
|
SET_EVENT_PASS_RESPONSE_QUERY_DATA,
|
|
41792
|
+
SET_EVENT_PASS_TRANSFERS_QUERY_DATA,
|
|
41720
41793
|
SET_EVENT_PASS_TRANSFER_LOGS_QUERY_DATA,
|
|
41721
41794
|
SET_EVENT_PASS_TYPES_QUERY_DATA,
|
|
41722
41795
|
SET_EVENT_PASS_TYPE_ADD_ONS_QUERY_DATA,
|
|
@@ -42415,6 +42488,7 @@ export {
|
|
|
42415
42488
|
useCancelBooking,
|
|
42416
42489
|
useCancelChannelContentPublishSchedule,
|
|
42417
42490
|
useCancelEventPass,
|
|
42491
|
+
useCancelEventPassTransfer,
|
|
42418
42492
|
useCancelGroupInvitation,
|
|
42419
42493
|
useCheckInBooking,
|
|
42420
42494
|
useCheckinEventPass,
|
|
@@ -42910,6 +42984,7 @@ export {
|
|
|
42910
42984
|
useGetEventPassResponseChanges,
|
|
42911
42985
|
useGetEventPassResponses,
|
|
42912
42986
|
useGetEventPassTransferLogs,
|
|
42987
|
+
useGetEventPassTransfers,
|
|
42913
42988
|
useGetEventPassType,
|
|
42914
42989
|
useGetEventPassTypeAddOns,
|
|
42915
42990
|
useGetEventPassTypeGroupPassTiers,
|
package/openapi.json
CHANGED
|
@@ -440,6 +440,10 @@
|
|
|
440
440
|
"name": "Events::Tracks::Translations",
|
|
441
441
|
"description": "Operations for events::tracks::translations"
|
|
442
442
|
},
|
|
443
|
+
{
|
|
444
|
+
"name": "Events::Transfers",
|
|
445
|
+
"description": "Operations for events::transfers"
|
|
446
|
+
},
|
|
443
447
|
{
|
|
444
448
|
"name": "Events::Translations",
|
|
445
449
|
"description": "Operations for events::translations"
|
|
@@ -60572,6 +60576,169 @@
|
|
|
60572
60576
|
]
|
|
60573
60577
|
}
|
|
60574
60578
|
},
|
|
60579
|
+
"/events/{eventId}/transfers": {
|
|
60580
|
+
"get": {
|
|
60581
|
+
"operationId": "GetEventPassTransfers",
|
|
60582
|
+
"summary": "Get Event Pass Transfers",
|
|
60583
|
+
"description": "Get Event Pass Transfers endpoint",
|
|
60584
|
+
"parameters": [
|
|
60585
|
+
{
|
|
60586
|
+
"in": "path",
|
|
60587
|
+
"name": "eventId",
|
|
60588
|
+
"schema": {
|
|
60589
|
+
"type": "string"
|
|
60590
|
+
},
|
|
60591
|
+
"description": "The event identifier",
|
|
60592
|
+
"required": true
|
|
60593
|
+
},
|
|
60594
|
+
{
|
|
60595
|
+
"in": "query",
|
|
60596
|
+
"name": "page",
|
|
60597
|
+
"schema": {
|
|
60598
|
+
"type": "integer",
|
|
60599
|
+
"minimum": 1,
|
|
60600
|
+
"default": 1
|
|
60601
|
+
},
|
|
60602
|
+
"description": "Page number",
|
|
60603
|
+
"required": false
|
|
60604
|
+
},
|
|
60605
|
+
{
|
|
60606
|
+
"in": "query",
|
|
60607
|
+
"name": "pageSize",
|
|
60608
|
+
"schema": {
|
|
60609
|
+
"type": "integer",
|
|
60610
|
+
"minimum": 1,
|
|
60611
|
+
"maximum": 100,
|
|
60612
|
+
"default": 25
|
|
60613
|
+
},
|
|
60614
|
+
"description": "Number of items per page",
|
|
60615
|
+
"required": false
|
|
60616
|
+
},
|
|
60617
|
+
{
|
|
60618
|
+
"in": "query",
|
|
60619
|
+
"name": "orderBy",
|
|
60620
|
+
"schema": {
|
|
60621
|
+
"type": "string"
|
|
60622
|
+
},
|
|
60623
|
+
"description": "Field to order by",
|
|
60624
|
+
"required": false
|
|
60625
|
+
},
|
|
60626
|
+
{
|
|
60627
|
+
"in": "query",
|
|
60628
|
+
"name": "search",
|
|
60629
|
+
"schema": {
|
|
60630
|
+
"type": "string"
|
|
60631
|
+
},
|
|
60632
|
+
"description": "Search query",
|
|
60633
|
+
"required": false
|
|
60634
|
+
}
|
|
60635
|
+
],
|
|
60636
|
+
"responses": {
|
|
60637
|
+
"200": {
|
|
60638
|
+
"description": "Successful response",
|
|
60639
|
+
"content": {
|
|
60640
|
+
"application/json": {
|
|
60641
|
+
"schema": {
|
|
60642
|
+
"type": "object",
|
|
60643
|
+
"properties": {
|
|
60644
|
+
"status": {
|
|
60645
|
+
"type": "string",
|
|
60646
|
+
"enum": [
|
|
60647
|
+
"ok"
|
|
60648
|
+
]
|
|
60649
|
+
},
|
|
60650
|
+
"message": {
|
|
60651
|
+
"type": "string",
|
|
60652
|
+
"example": "Success message."
|
|
60653
|
+
},
|
|
60654
|
+
"data": {
|
|
60655
|
+
"type": "array",
|
|
60656
|
+
"items": {
|
|
60657
|
+
"$ref": "#/components/schemas/Transfer"
|
|
60658
|
+
}
|
|
60659
|
+
},
|
|
60660
|
+
"count": {
|
|
60661
|
+
"type": "integer",
|
|
60662
|
+
"example": 100
|
|
60663
|
+
}
|
|
60664
|
+
},
|
|
60665
|
+
"required": [
|
|
60666
|
+
"status",
|
|
60667
|
+
"message",
|
|
60668
|
+
"data"
|
|
60669
|
+
]
|
|
60670
|
+
}
|
|
60671
|
+
}
|
|
60672
|
+
}
|
|
60673
|
+
}
|
|
60674
|
+
},
|
|
60675
|
+
"tags": [
|
|
60676
|
+
"Events::Transfers"
|
|
60677
|
+
]
|
|
60678
|
+
}
|
|
60679
|
+
},
|
|
60680
|
+
"/events/{eventId}/transfers/{transferId}": {
|
|
60681
|
+
"delete": {
|
|
60682
|
+
"operationId": "CancelEventPassTransfer",
|
|
60683
|
+
"summary": "Cancel Event Pass Transfer",
|
|
60684
|
+
"description": "Cancel Event Pass Transfer endpoint",
|
|
60685
|
+
"parameters": [
|
|
60686
|
+
{
|
|
60687
|
+
"in": "path",
|
|
60688
|
+
"name": "eventId",
|
|
60689
|
+
"schema": {
|
|
60690
|
+
"type": "string"
|
|
60691
|
+
},
|
|
60692
|
+
"description": "The event identifier",
|
|
60693
|
+
"required": true
|
|
60694
|
+
},
|
|
60695
|
+
{
|
|
60696
|
+
"in": "path",
|
|
60697
|
+
"name": "transferId",
|
|
60698
|
+
"schema": {
|
|
60699
|
+
"type": "string"
|
|
60700
|
+
},
|
|
60701
|
+
"description": "The transfer identifier",
|
|
60702
|
+
"required": true
|
|
60703
|
+
}
|
|
60704
|
+
],
|
|
60705
|
+
"responses": {
|
|
60706
|
+
"200": {
|
|
60707
|
+
"description": "Successful response",
|
|
60708
|
+
"content": {
|
|
60709
|
+
"application/json": {
|
|
60710
|
+
"schema": {
|
|
60711
|
+
"type": "object",
|
|
60712
|
+
"properties": {
|
|
60713
|
+
"status": {
|
|
60714
|
+
"type": "string",
|
|
60715
|
+
"enum": [
|
|
60716
|
+
"ok"
|
|
60717
|
+
]
|
|
60718
|
+
},
|
|
60719
|
+
"message": {
|
|
60720
|
+
"type": "string",
|
|
60721
|
+
"example": "Success message."
|
|
60722
|
+
},
|
|
60723
|
+
"data": {
|
|
60724
|
+
"type": "object"
|
|
60725
|
+
}
|
|
60726
|
+
},
|
|
60727
|
+
"required": [
|
|
60728
|
+
"status",
|
|
60729
|
+
"message",
|
|
60730
|
+
"data"
|
|
60731
|
+
]
|
|
60732
|
+
}
|
|
60733
|
+
}
|
|
60734
|
+
}
|
|
60735
|
+
}
|
|
60736
|
+
},
|
|
60737
|
+
"tags": [
|
|
60738
|
+
"Events::Transfers"
|
|
60739
|
+
]
|
|
60740
|
+
}
|
|
60741
|
+
},
|
|
60575
60742
|
"/events/{eventId}/translations": {
|
|
60576
60743
|
"get": {
|
|
60577
60744
|
"operationId": "GetEventTranslations",
|
|
@@ -99931,19 +100098,12 @@
|
|
|
99931
100098
|
"properties": {
|
|
99932
100099
|
"id": {
|
|
99933
100100
|
"type": "string"
|
|
99934
|
-
},
|
|
99935
|
-
"email": {
|
|
99936
|
-
"type": "string"
|
|
99937
|
-
},
|
|
99938
|
-
"createdAt": {
|
|
99939
|
-
"type": "string"
|
|
99940
100101
|
}
|
|
99941
100102
|
},
|
|
99942
100103
|
"required": [
|
|
99943
|
-
"id"
|
|
99944
|
-
|
|
99945
|
-
|
|
99946
|
-
]
|
|
100104
|
+
"id"
|
|
100105
|
+
],
|
|
100106
|
+
"nullable": true
|
|
99947
100107
|
},
|
|
99948
100108
|
"responses": {
|
|
99949
100109
|
"type": "array",
|
|
@@ -105236,11 +105396,7 @@
|
|
|
105236
105396
|
"chat_download_url_expiry": {
|
|
105237
105397
|
"type": "string"
|
|
105238
105398
|
}
|
|
105239
|
-
}
|
|
105240
|
-
"required": [
|
|
105241
|
-
"chat_download_url",
|
|
105242
|
-
"chat_download_url_expiry"
|
|
105243
|
-
]
|
|
105399
|
+
}
|
|
105244
105400
|
},
|
|
105245
105401
|
"MeetingSessionTranscriptDownload": {
|
|
105246
105402
|
"type": "object",
|
|
@@ -105256,9 +105412,7 @@
|
|
|
105256
105412
|
}
|
|
105257
105413
|
},
|
|
105258
105414
|
"required": [
|
|
105259
|
-
"sessionId"
|
|
105260
|
-
"transcript_download_url",
|
|
105261
|
-
"transcript_download_url_expiry"
|
|
105415
|
+
"sessionId"
|
|
105262
105416
|
]
|
|
105263
105417
|
},
|
|
105264
105418
|
"MeetingSessionSummaryDownload": {
|
|
@@ -105275,9 +105429,7 @@
|
|
|
105275
105429
|
}
|
|
105276
105430
|
},
|
|
105277
105431
|
"required": [
|
|
105278
|
-
"sessionId"
|
|
105279
|
-
"summary_download_url",
|
|
105280
|
-
"summary_download_url_expiry"
|
|
105432
|
+
"sessionId"
|
|
105281
105433
|
]
|
|
105282
105434
|
},
|
|
105283
105435
|
"Livestream": {
|
|
@@ -106584,49 +106736,60 @@
|
|
|
106584
106736
|
}
|
|
106585
106737
|
]
|
|
106586
106738
|
},
|
|
106587
|
-
"
|
|
106739
|
+
"Transfer": {
|
|
106588
106740
|
"type": "object",
|
|
106589
106741
|
"properties": {
|
|
106590
106742
|
"id": {
|
|
106591
106743
|
"type": "string"
|
|
106592
106744
|
},
|
|
106745
|
+
"passId": {
|
|
106746
|
+
"type": "string"
|
|
106747
|
+
},
|
|
106593
106748
|
"email": {
|
|
106594
106749
|
"type": "string"
|
|
106595
106750
|
},
|
|
106596
|
-
"
|
|
106751
|
+
"message": {
|
|
106752
|
+
"type": "string",
|
|
106753
|
+
"nullable": true
|
|
106754
|
+
},
|
|
106755
|
+
"createdAt": {
|
|
106597
106756
|
"type": "string"
|
|
106598
106757
|
},
|
|
106599
|
-
"
|
|
106600
|
-
"
|
|
106601
|
-
}
|
|
106602
|
-
},
|
|
106603
|
-
"required": [
|
|
106604
|
-
"id",
|
|
106605
|
-
"email",
|
|
106606
|
-
"purchaseId",
|
|
106607
|
-
"purchase"
|
|
106608
|
-
]
|
|
106609
|
-
},
|
|
106610
|
-
"Transfer": {
|
|
106611
|
-
"allOf": [
|
|
106612
|
-
{
|
|
106613
|
-
"$ref": "#/components/schemas/BaseTransfer"
|
|
106758
|
+
"eventId": {
|
|
106759
|
+
"type": "string"
|
|
106614
106760
|
},
|
|
106615
|
-
{
|
|
106761
|
+
"event": {
|
|
106762
|
+
"$ref": "#/components/schemas/BaseEvent"
|
|
106763
|
+
},
|
|
106764
|
+
"fromAccountId": {
|
|
106765
|
+
"type": "string"
|
|
106766
|
+
},
|
|
106767
|
+
"fromAccount": {
|
|
106616
106768
|
"type": "object",
|
|
106617
106769
|
"properties": {
|
|
106618
|
-
"
|
|
106619
|
-
"type": "string"
|
|
106620
|
-
},
|
|
106621
|
-
"updatedAt": {
|
|
106770
|
+
"id": {
|
|
106622
106771
|
"type": "string"
|
|
106623
106772
|
}
|
|
106624
106773
|
},
|
|
106625
106774
|
"required": [
|
|
106626
|
-
"
|
|
106627
|
-
"updatedAt"
|
|
106775
|
+
"id"
|
|
106628
106776
|
]
|
|
106777
|
+
},
|
|
106778
|
+
"pass": {
|
|
106779
|
+
"$ref": "#/components/schemas/BaseEventPass"
|
|
106629
106780
|
}
|
|
106781
|
+
},
|
|
106782
|
+
"required": [
|
|
106783
|
+
"id",
|
|
106784
|
+
"passId",
|
|
106785
|
+
"email",
|
|
106786
|
+
"message",
|
|
106787
|
+
"createdAt",
|
|
106788
|
+
"eventId",
|
|
106789
|
+
"event",
|
|
106790
|
+
"fromAccountId",
|
|
106791
|
+
"fromAccount",
|
|
106792
|
+
"pass"
|
|
106630
106793
|
]
|
|
106631
106794
|
},
|
|
106632
106795
|
"BaseUser": {
|