@connectedxm/admin 7.5.1 → 7.8.1
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 +50 -0
- package/dist/index.d.cts +71 -15
- package/dist/index.d.ts +71 -15
- package/dist/index.js +46 -0
- package/openapi.json +236 -56
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34105,6 +34105,26 @@ var useDeleteEvent = (options = {}) => {
|
|
|
34105
34105
|
return useConnectedMutation(DeleteEvent, options);
|
|
34106
34106
|
};
|
|
34107
34107
|
|
|
34108
|
+
// src/mutations/events/useDeleteEventLocation.ts
|
|
34109
|
+
var DeleteEventLocation = async ({
|
|
34110
|
+
eventId,
|
|
34111
|
+
adminApiParams,
|
|
34112
|
+
queryClient
|
|
34113
|
+
}) => {
|
|
34114
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
34115
|
+
const { data } = await connectedXM.delete(
|
|
34116
|
+
`/events/${eventId}/location`
|
|
34117
|
+
);
|
|
34118
|
+
if (queryClient && data.status === "ok") {
|
|
34119
|
+
queryClient.invalidateQueries({ queryKey: EVENTS_QUERY_KEY() });
|
|
34120
|
+
SET_EVENT_QUERY_DATA(queryClient, [data.data?.id], data);
|
|
34121
|
+
}
|
|
34122
|
+
return data;
|
|
34123
|
+
};
|
|
34124
|
+
var useDeleteEventLocation = (options = {}) => {
|
|
34125
|
+
return useConnectedMutation(DeleteEventLocation, options);
|
|
34126
|
+
};
|
|
34127
|
+
|
|
34108
34128
|
// src/mutations/events/useDisableEventBuildMode.ts
|
|
34109
34129
|
var DisableEventBuildMode = async ({
|
|
34110
34130
|
eventId,
|
|
@@ -34139,6 +34159,28 @@ var useEnableEventBuildMode = (options = {}) => {
|
|
|
34139
34159
|
return useConnectedMutation(EnableEventBuildMode, options);
|
|
34140
34160
|
};
|
|
34141
34161
|
|
|
34162
|
+
// src/mutations/events/useSetEventLocation.ts
|
|
34163
|
+
var SetEventLocation = async ({
|
|
34164
|
+
eventId,
|
|
34165
|
+
location,
|
|
34166
|
+
adminApiParams,
|
|
34167
|
+
queryClient
|
|
34168
|
+
}) => {
|
|
34169
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
34170
|
+
const { data } = await connectedXM.put(
|
|
34171
|
+
`/events/${eventId}/location`,
|
|
34172
|
+
location
|
|
34173
|
+
);
|
|
34174
|
+
if (queryClient && data.status === "ok") {
|
|
34175
|
+
queryClient.invalidateQueries({ queryKey: EVENTS_QUERY_KEY() });
|
|
34176
|
+
SET_EVENT_QUERY_DATA(queryClient, [data.data?.id], data);
|
|
34177
|
+
}
|
|
34178
|
+
return data;
|
|
34179
|
+
};
|
|
34180
|
+
var useSetEventLocation = (options = {}) => {
|
|
34181
|
+
return useConnectedMutation(SetEventLocation, options);
|
|
34182
|
+
};
|
|
34183
|
+
|
|
34142
34184
|
// src/mutations/events/useUpdateEvent.ts
|
|
34143
34185
|
var UpdateEvent = async ({
|
|
34144
34186
|
eventId,
|
|
@@ -40526,6 +40568,7 @@ export {
|
|
|
40526
40568
|
DeleteEventFaqSectionTranslation,
|
|
40527
40569
|
DeleteEventFollowup,
|
|
40528
40570
|
DeleteEventFollowupTranslation,
|
|
40571
|
+
DeleteEventLocation,
|
|
40529
40572
|
DeleteEventMatch,
|
|
40530
40573
|
DeleteEventMediaItem,
|
|
40531
40574
|
DeleteEventMediaItemTranslation,
|
|
@@ -42248,6 +42291,7 @@ export {
|
|
|
42248
42291
|
SendAnnouncementPreview,
|
|
42249
42292
|
SendInvoice,
|
|
42250
42293
|
SeriesQuestionType,
|
|
42294
|
+
SetEventLocation,
|
|
42251
42295
|
SideEffectActionType,
|
|
42252
42296
|
SideEffectTriggerType,
|
|
42253
42297
|
StartEventRoundMatchmaking,
|
|
@@ -42759,6 +42803,7 @@ export {
|
|
|
42759
42803
|
useDeleteEventFaqSectionTranslation,
|
|
42760
42804
|
useDeleteEventFollowup,
|
|
42761
42805
|
useDeleteEventFollowupTranslation,
|
|
42806
|
+
useDeleteEventLocation,
|
|
42762
42807
|
useDeleteEventMatch,
|
|
42763
42808
|
useDeleteEventMediaItem,
|
|
42764
42809
|
useDeleteEventMediaItemTranslation,
|
|
@@ -43521,6 +43566,7 @@ export {
|
|
|
43521
43566
|
useSelfLeaveOrganization,
|
|
43522
43567
|
useSendAnnouncementPreview,
|
|
43523
43568
|
useSendInvoice,
|
|
43569
|
+
useSetEventLocation,
|
|
43524
43570
|
useStartEventRoundMatchmaking,
|
|
43525
43571
|
useStartEventSessionRoundMatchmaking,
|
|
43526
43572
|
useSwitchImage,
|
package/openapi.json
CHANGED
|
@@ -29204,6 +29204,120 @@
|
|
|
29204
29204
|
]
|
|
29205
29205
|
}
|
|
29206
29206
|
},
|
|
29207
|
+
"/events/{eventId}/location": {
|
|
29208
|
+
"put": {
|
|
29209
|
+
"operationId": "SetEventLocation",
|
|
29210
|
+
"summary": "Set an event's location",
|
|
29211
|
+
"description": "Sets or updates the location details of an existing event, requiring the update events permission.",
|
|
29212
|
+
"parameters": [
|
|
29213
|
+
{
|
|
29214
|
+
"in": "path",
|
|
29215
|
+
"name": "eventId",
|
|
29216
|
+
"schema": {
|
|
29217
|
+
"type": "string"
|
|
29218
|
+
},
|
|
29219
|
+
"description": "The event identifier",
|
|
29220
|
+
"required": true
|
|
29221
|
+
}
|
|
29222
|
+
],
|
|
29223
|
+
"requestBody": {
|
|
29224
|
+
"required": true,
|
|
29225
|
+
"content": {
|
|
29226
|
+
"application/json": {
|
|
29227
|
+
"schema": {
|
|
29228
|
+
"$ref": "#/components/schemas/EventLocationInputs"
|
|
29229
|
+
}
|
|
29230
|
+
}
|
|
29231
|
+
}
|
|
29232
|
+
},
|
|
29233
|
+
"responses": {
|
|
29234
|
+
"200": {
|
|
29235
|
+
"description": "Successful response",
|
|
29236
|
+
"content": {
|
|
29237
|
+
"application/json": {
|
|
29238
|
+
"schema": {
|
|
29239
|
+
"type": "object",
|
|
29240
|
+
"properties": {
|
|
29241
|
+
"status": {
|
|
29242
|
+
"type": "string",
|
|
29243
|
+
"enum": [
|
|
29244
|
+
"ok"
|
|
29245
|
+
]
|
|
29246
|
+
},
|
|
29247
|
+
"message": {
|
|
29248
|
+
"type": "string",
|
|
29249
|
+
"example": "Success message."
|
|
29250
|
+
},
|
|
29251
|
+
"data": {
|
|
29252
|
+
"$ref": "#/components/schemas/Event"
|
|
29253
|
+
}
|
|
29254
|
+
},
|
|
29255
|
+
"required": [
|
|
29256
|
+
"status",
|
|
29257
|
+
"message",
|
|
29258
|
+
"data"
|
|
29259
|
+
]
|
|
29260
|
+
}
|
|
29261
|
+
}
|
|
29262
|
+
}
|
|
29263
|
+
}
|
|
29264
|
+
},
|
|
29265
|
+
"tags": [
|
|
29266
|
+
"Events"
|
|
29267
|
+
]
|
|
29268
|
+
},
|
|
29269
|
+
"delete": {
|
|
29270
|
+
"operationId": "DeleteEventLocation",
|
|
29271
|
+
"summary": "Delete an event's location",
|
|
29272
|
+
"description": "Clears the location details of an existing event, requiring the update events permission.",
|
|
29273
|
+
"parameters": [
|
|
29274
|
+
{
|
|
29275
|
+
"in": "path",
|
|
29276
|
+
"name": "eventId",
|
|
29277
|
+
"schema": {
|
|
29278
|
+
"type": "string"
|
|
29279
|
+
},
|
|
29280
|
+
"description": "The event identifier",
|
|
29281
|
+
"required": true
|
|
29282
|
+
}
|
|
29283
|
+
],
|
|
29284
|
+
"responses": {
|
|
29285
|
+
"200": {
|
|
29286
|
+
"description": "Successful response",
|
|
29287
|
+
"content": {
|
|
29288
|
+
"application/json": {
|
|
29289
|
+
"schema": {
|
|
29290
|
+
"type": "object",
|
|
29291
|
+
"properties": {
|
|
29292
|
+
"status": {
|
|
29293
|
+
"type": "string",
|
|
29294
|
+
"enum": [
|
|
29295
|
+
"ok"
|
|
29296
|
+
]
|
|
29297
|
+
},
|
|
29298
|
+
"message": {
|
|
29299
|
+
"type": "string",
|
|
29300
|
+
"example": "Success message."
|
|
29301
|
+
},
|
|
29302
|
+
"data": {
|
|
29303
|
+
"$ref": "#/components/schemas/Event"
|
|
29304
|
+
}
|
|
29305
|
+
},
|
|
29306
|
+
"required": [
|
|
29307
|
+
"status",
|
|
29308
|
+
"message",
|
|
29309
|
+
"data"
|
|
29310
|
+
]
|
|
29311
|
+
}
|
|
29312
|
+
}
|
|
29313
|
+
}
|
|
29314
|
+
}
|
|
29315
|
+
},
|
|
29316
|
+
"tags": [
|
|
29317
|
+
"Events"
|
|
29318
|
+
]
|
|
29319
|
+
}
|
|
29320
|
+
},
|
|
29207
29321
|
"/events/{eventId}/media": {
|
|
29208
29322
|
"get": {
|
|
29209
29323
|
"operationId": "GetEventMediaItems",
|
|
@@ -97337,6 +97451,18 @@
|
|
|
97337
97451
|
"type": "string",
|
|
97338
97452
|
"nullable": true
|
|
97339
97453
|
},
|
|
97454
|
+
"location": {
|
|
97455
|
+
"type": "string",
|
|
97456
|
+
"nullable": true
|
|
97457
|
+
},
|
|
97458
|
+
"latitude": {
|
|
97459
|
+
"type": "number",
|
|
97460
|
+
"nullable": true
|
|
97461
|
+
},
|
|
97462
|
+
"longitude": {
|
|
97463
|
+
"type": "number",
|
|
97464
|
+
"nullable": true
|
|
97465
|
+
},
|
|
97340
97466
|
"imageId": {
|
|
97341
97467
|
"type": "string",
|
|
97342
97468
|
"nullable": true
|
|
@@ -97428,6 +97554,9 @@
|
|
|
97428
97554
|
"state",
|
|
97429
97555
|
"country",
|
|
97430
97556
|
"zip",
|
|
97557
|
+
"location",
|
|
97558
|
+
"latitude",
|
|
97559
|
+
"longitude",
|
|
97431
97560
|
"imageId",
|
|
97432
97561
|
"image",
|
|
97433
97562
|
"squareImageId",
|
|
@@ -97452,6 +97581,14 @@
|
|
|
97452
97581
|
{
|
|
97453
97582
|
"type": "object",
|
|
97454
97583
|
"properties": {
|
|
97584
|
+
"mapImageLightUrl": {
|
|
97585
|
+
"type": "string",
|
|
97586
|
+
"nullable": true
|
|
97587
|
+
},
|
|
97588
|
+
"mapImageDarkUrl": {
|
|
97589
|
+
"type": "string",
|
|
97590
|
+
"nullable": true
|
|
97591
|
+
},
|
|
97455
97592
|
"roundName": {
|
|
97456
97593
|
"type": "string",
|
|
97457
97594
|
"nullable": true
|
|
@@ -97644,6 +97781,8 @@
|
|
|
97644
97781
|
}
|
|
97645
97782
|
},
|
|
97646
97783
|
"required": [
|
|
97784
|
+
"mapImageLightUrl",
|
|
97785
|
+
"mapImageDarkUrl",
|
|
97647
97786
|
"roundName",
|
|
97648
97787
|
"matchName",
|
|
97649
97788
|
"passSupply",
|
|
@@ -103771,6 +103910,10 @@
|
|
|
103771
103910
|
"name": {
|
|
103772
103911
|
"type": "string"
|
|
103773
103912
|
},
|
|
103913
|
+
"room": {
|
|
103914
|
+
"type": "string",
|
|
103915
|
+
"nullable": true
|
|
103916
|
+
},
|
|
103774
103917
|
"address1": {
|
|
103775
103918
|
"type": "string",
|
|
103776
103919
|
"nullable": true
|
|
@@ -103795,6 +103938,10 @@
|
|
|
103795
103938
|
"type": "string",
|
|
103796
103939
|
"nullable": true
|
|
103797
103940
|
},
|
|
103941
|
+
"location": {
|
|
103942
|
+
"type": "string",
|
|
103943
|
+
"nullable": true
|
|
103944
|
+
},
|
|
103798
103945
|
"image": {
|
|
103799
103946
|
"allOf": [
|
|
103800
103947
|
{
|
|
@@ -103807,12 +103954,14 @@
|
|
|
103807
103954
|
"required": [
|
|
103808
103955
|
"id",
|
|
103809
103956
|
"name",
|
|
103957
|
+
"room",
|
|
103810
103958
|
"address1",
|
|
103811
103959
|
"address2",
|
|
103812
103960
|
"zip",
|
|
103813
103961
|
"city",
|
|
103814
103962
|
"state",
|
|
103815
103963
|
"country",
|
|
103964
|
+
"location",
|
|
103816
103965
|
"image"
|
|
103817
103966
|
]
|
|
103818
103967
|
},
|
|
@@ -103824,6 +103973,14 @@
|
|
|
103824
103973
|
{
|
|
103825
103974
|
"type": "object",
|
|
103826
103975
|
"properties": {
|
|
103976
|
+
"latitude": {
|
|
103977
|
+
"type": "number",
|
|
103978
|
+
"nullable": true
|
|
103979
|
+
},
|
|
103980
|
+
"longitude": {
|
|
103981
|
+
"type": "number",
|
|
103982
|
+
"nullable": true
|
|
103983
|
+
},
|
|
103827
103984
|
"description": {
|
|
103828
103985
|
"type": "string",
|
|
103829
103986
|
"nullable": true
|
|
@@ -103836,6 +103993,8 @@
|
|
|
103836
103993
|
}
|
|
103837
103994
|
},
|
|
103838
103995
|
"required": [
|
|
103996
|
+
"latitude",
|
|
103997
|
+
"longitude",
|
|
103839
103998
|
"description",
|
|
103840
103999
|
"createdAt",
|
|
103841
104000
|
"updatedAt"
|
|
@@ -115269,6 +115428,51 @@
|
|
|
115269
115428
|
}
|
|
115270
115429
|
}
|
|
115271
115430
|
},
|
|
115431
|
+
"EventLocationInputs": {
|
|
115432
|
+
"type": "object",
|
|
115433
|
+
"properties": {
|
|
115434
|
+
"venue": {
|
|
115435
|
+
"type": "string",
|
|
115436
|
+
"nullable": true
|
|
115437
|
+
},
|
|
115438
|
+
"location": {
|
|
115439
|
+
"type": "string",
|
|
115440
|
+
"nullable": true
|
|
115441
|
+
},
|
|
115442
|
+
"address1": {
|
|
115443
|
+
"type": "string",
|
|
115444
|
+
"nullable": true
|
|
115445
|
+
},
|
|
115446
|
+
"address2": {
|
|
115447
|
+
"type": "string",
|
|
115448
|
+
"nullable": true
|
|
115449
|
+
},
|
|
115450
|
+
"city": {
|
|
115451
|
+
"type": "string",
|
|
115452
|
+
"nullable": true
|
|
115453
|
+
},
|
|
115454
|
+
"state": {
|
|
115455
|
+
"type": "string",
|
|
115456
|
+
"nullable": true
|
|
115457
|
+
},
|
|
115458
|
+
"country": {
|
|
115459
|
+
"type": "string",
|
|
115460
|
+
"nullable": true
|
|
115461
|
+
},
|
|
115462
|
+
"zip": {
|
|
115463
|
+
"type": "string",
|
|
115464
|
+
"nullable": true
|
|
115465
|
+
},
|
|
115466
|
+
"latitude": {
|
|
115467
|
+
"type": "number",
|
|
115468
|
+
"nullable": true
|
|
115469
|
+
},
|
|
115470
|
+
"longitude": {
|
|
115471
|
+
"type": "number",
|
|
115472
|
+
"nullable": true
|
|
115473
|
+
}
|
|
115474
|
+
}
|
|
115475
|
+
},
|
|
115272
115476
|
"EventCreateInputs": {
|
|
115273
115477
|
"type": "object",
|
|
115274
115478
|
"properties": {
|
|
@@ -115335,34 +115539,6 @@
|
|
|
115335
115539
|
"type": "string",
|
|
115336
115540
|
"nullable": true
|
|
115337
115541
|
},
|
|
115338
|
-
"venue": {
|
|
115339
|
-
"type": "string",
|
|
115340
|
-
"nullable": true
|
|
115341
|
-
},
|
|
115342
|
-
"address1": {
|
|
115343
|
-
"type": "string",
|
|
115344
|
-
"nullable": true
|
|
115345
|
-
},
|
|
115346
|
-
"address2": {
|
|
115347
|
-
"type": "string",
|
|
115348
|
-
"nullable": true
|
|
115349
|
-
},
|
|
115350
|
-
"city": {
|
|
115351
|
-
"type": "string",
|
|
115352
|
-
"nullable": true
|
|
115353
|
-
},
|
|
115354
|
-
"state": {
|
|
115355
|
-
"type": "string",
|
|
115356
|
-
"nullable": true
|
|
115357
|
-
},
|
|
115358
|
-
"country": {
|
|
115359
|
-
"type": "string",
|
|
115360
|
-
"nullable": true
|
|
115361
|
-
},
|
|
115362
|
-
"zip": {
|
|
115363
|
-
"type": "string",
|
|
115364
|
-
"nullable": true
|
|
115365
|
-
},
|
|
115366
115542
|
"creatorId": {
|
|
115367
115543
|
"type": "string",
|
|
115368
115544
|
"nullable": true
|
|
@@ -115621,34 +115797,6 @@
|
|
|
115621
115797
|
"type": "string",
|
|
115622
115798
|
"nullable": true
|
|
115623
115799
|
},
|
|
115624
|
-
"venue": {
|
|
115625
|
-
"type": "string",
|
|
115626
|
-
"nullable": true
|
|
115627
|
-
},
|
|
115628
|
-
"address1": {
|
|
115629
|
-
"type": "string",
|
|
115630
|
-
"nullable": true
|
|
115631
|
-
},
|
|
115632
|
-
"address2": {
|
|
115633
|
-
"type": "string",
|
|
115634
|
-
"nullable": true
|
|
115635
|
-
},
|
|
115636
|
-
"city": {
|
|
115637
|
-
"type": "string",
|
|
115638
|
-
"nullable": true
|
|
115639
|
-
},
|
|
115640
|
-
"state": {
|
|
115641
|
-
"type": "string",
|
|
115642
|
-
"nullable": true
|
|
115643
|
-
},
|
|
115644
|
-
"country": {
|
|
115645
|
-
"type": "string",
|
|
115646
|
-
"nullable": true
|
|
115647
|
-
},
|
|
115648
|
-
"zip": {
|
|
115649
|
-
"type": "string",
|
|
115650
|
-
"nullable": true
|
|
115651
|
-
},
|
|
115652
115800
|
"creatorId": {
|
|
115653
115801
|
"type": "string",
|
|
115654
115802
|
"nullable": true
|
|
@@ -116803,9 +116951,17 @@
|
|
|
116803
116951
|
"EventSessionLocationCreateInputs": {
|
|
116804
116952
|
"type": "object",
|
|
116805
116953
|
"properties": {
|
|
116954
|
+
"location": {
|
|
116955
|
+
"type": "string",
|
|
116956
|
+
"nullable": true
|
|
116957
|
+
},
|
|
116806
116958
|
"name": {
|
|
116807
116959
|
"type": "string"
|
|
116808
116960
|
},
|
|
116961
|
+
"room": {
|
|
116962
|
+
"type": "string",
|
|
116963
|
+
"nullable": true
|
|
116964
|
+
},
|
|
116809
116965
|
"description": {
|
|
116810
116966
|
"type": "string",
|
|
116811
116967
|
"nullable": true
|
|
@@ -116837,6 +116993,14 @@
|
|
|
116837
116993
|
"zip": {
|
|
116838
116994
|
"type": "string",
|
|
116839
116995
|
"nullable": true
|
|
116996
|
+
},
|
|
116997
|
+
"latitude": {
|
|
116998
|
+
"type": "number",
|
|
116999
|
+
"nullable": true
|
|
117000
|
+
},
|
|
117001
|
+
"longitude": {
|
|
117002
|
+
"type": "number",
|
|
117003
|
+
"nullable": true
|
|
116840
117004
|
}
|
|
116841
117005
|
},
|
|
116842
117006
|
"required": [
|
|
@@ -116859,9 +117023,17 @@
|
|
|
116859
117023
|
"EventSessionLocationUpdateInputs": {
|
|
116860
117024
|
"type": "object",
|
|
116861
117025
|
"properties": {
|
|
117026
|
+
"location": {
|
|
117027
|
+
"type": "string",
|
|
117028
|
+
"nullable": true
|
|
117029
|
+
},
|
|
116862
117030
|
"name": {
|
|
116863
117031
|
"type": "string"
|
|
116864
117032
|
},
|
|
117033
|
+
"room": {
|
|
117034
|
+
"type": "string",
|
|
117035
|
+
"nullable": true
|
|
117036
|
+
},
|
|
116865
117037
|
"description": {
|
|
116866
117038
|
"type": "string",
|
|
116867
117039
|
"nullable": true
|
|
@@ -116893,6 +117065,14 @@
|
|
|
116893
117065
|
"zip": {
|
|
116894
117066
|
"type": "string",
|
|
116895
117067
|
"nullable": true
|
|
117068
|
+
},
|
|
117069
|
+
"latitude": {
|
|
117070
|
+
"type": "number",
|
|
117071
|
+
"nullable": true
|
|
117072
|
+
},
|
|
117073
|
+
"longitude": {
|
|
117074
|
+
"type": "number",
|
|
117075
|
+
"nullable": true
|
|
116896
117076
|
}
|
|
116897
117077
|
}
|
|
116898
117078
|
},
|