@connectedxm/admin 6.27.1 → 6.27.2
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 +101 -0
- package/dist/index.d.cts +70 -1
- package/dist/index.d.ts +70 -1
- package/dist/index.js +95 -0
- package/openapi.json +268 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31001,6 +31001,95 @@ var useUpdateEventSessionRoundQuestion = (options = {}) => {
|
|
|
31001
31001
|
return useConnectedMutation(UpdateEventSessionRoundQuestion, options);
|
|
31002
31002
|
};
|
|
31003
31003
|
|
|
31004
|
+
// src/mutations/events/sessions/prices/useCreateEventSessionPrice.ts
|
|
31005
|
+
var CreateEventSessionPrice = async ({
|
|
31006
|
+
eventId,
|
|
31007
|
+
sessionId,
|
|
31008
|
+
passTypeId,
|
|
31009
|
+
price,
|
|
31010
|
+
adminApiParams,
|
|
31011
|
+
queryClient
|
|
31012
|
+
}) => {
|
|
31013
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31014
|
+
const { data } = await connectedXM.post(
|
|
31015
|
+
`/events/${eventId}/sessions/${sessionId}/prices`,
|
|
31016
|
+
{
|
|
31017
|
+
passTypeId,
|
|
31018
|
+
price
|
|
31019
|
+
}
|
|
31020
|
+
);
|
|
31021
|
+
if (queryClient && data.status === "ok") {
|
|
31022
|
+
queryClient.invalidateQueries({
|
|
31023
|
+
queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
|
|
31024
|
+
});
|
|
31025
|
+
queryClient.invalidateQueries({
|
|
31026
|
+
queryKey: EVENT_SESSION_QUERY_KEY(eventId, sessionId)
|
|
31027
|
+
});
|
|
31028
|
+
}
|
|
31029
|
+
return data;
|
|
31030
|
+
};
|
|
31031
|
+
var useCreateEventSessionPrice = (options = {}) => {
|
|
31032
|
+
return useConnectedMutation(CreateEventSessionPrice, options);
|
|
31033
|
+
};
|
|
31034
|
+
|
|
31035
|
+
// src/mutations/events/sessions/prices/useDeleteEventSessionPrice.ts
|
|
31036
|
+
var DeleteEventSessionPrice = async ({
|
|
31037
|
+
eventId,
|
|
31038
|
+
sessionId,
|
|
31039
|
+
priceId,
|
|
31040
|
+
adminApiParams,
|
|
31041
|
+
queryClient
|
|
31042
|
+
}) => {
|
|
31043
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31044
|
+
const { data } = await connectedXM.delete(
|
|
31045
|
+
`/events/${eventId}/sessions/${sessionId}/prices/${priceId}`
|
|
31046
|
+
);
|
|
31047
|
+
if (queryClient && data.status === "ok") {
|
|
31048
|
+
queryClient.invalidateQueries({
|
|
31049
|
+
queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
|
|
31050
|
+
});
|
|
31051
|
+
queryClient.invalidateQueries({
|
|
31052
|
+
queryKey: EVENT_SESSION_QUERY_KEY(eventId, sessionId)
|
|
31053
|
+
});
|
|
31054
|
+
}
|
|
31055
|
+
return data;
|
|
31056
|
+
};
|
|
31057
|
+
var useDeleteEventSessionPrice = (options = {}) => {
|
|
31058
|
+
return useConnectedMutation(DeleteEventSessionPrice, options);
|
|
31059
|
+
};
|
|
31060
|
+
|
|
31061
|
+
// src/mutations/events/sessions/prices/useUpdateEventSessionPrice.ts
|
|
31062
|
+
var UpdateEventSessionPrice = async ({
|
|
31063
|
+
eventId,
|
|
31064
|
+
sessionId,
|
|
31065
|
+
priceId,
|
|
31066
|
+
passTypeId,
|
|
31067
|
+
price,
|
|
31068
|
+
adminApiParams,
|
|
31069
|
+
queryClient
|
|
31070
|
+
}) => {
|
|
31071
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
31072
|
+
const { data } = await connectedXM.put(
|
|
31073
|
+
`/events/${eventId}/sessions/${sessionId}/prices/${priceId}`,
|
|
31074
|
+
{
|
|
31075
|
+
passTypeId,
|
|
31076
|
+
price
|
|
31077
|
+
}
|
|
31078
|
+
);
|
|
31079
|
+
if (queryClient && data.status === "ok") {
|
|
31080
|
+
queryClient.invalidateQueries({
|
|
31081
|
+
queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
|
|
31082
|
+
});
|
|
31083
|
+
queryClient.invalidateQueries({
|
|
31084
|
+
queryKey: EVENT_SESSION_QUERY_KEY(eventId, sessionId)
|
|
31085
|
+
});
|
|
31086
|
+
}
|
|
31087
|
+
return data;
|
|
31088
|
+
};
|
|
31089
|
+
var useUpdateEventSessionPrice = (options = {}) => {
|
|
31090
|
+
return useConnectedMutation(UpdateEventSessionPrice, options);
|
|
31091
|
+
};
|
|
31092
|
+
|
|
31004
31093
|
// src/mutations/events/sessions/questions/translations/useDeleteEventSessionQuestionChoiceTranslation.ts
|
|
31005
31094
|
var DeleteEventSessionQuestionChoiceTranslation = async ({
|
|
31006
31095
|
eventId,
|
|
@@ -40060,6 +40149,7 @@ export {
|
|
|
40060
40149
|
CreateEventSessionAccess,
|
|
40061
40150
|
CreateEventSessionLocation,
|
|
40062
40151
|
CreateEventSessionMatch,
|
|
40152
|
+
CreateEventSessionPrice,
|
|
40063
40153
|
CreateEventSessionQuestion,
|
|
40064
40154
|
CreateEventSessionQuestionChoice,
|
|
40065
40155
|
CreateEventSessionRound,
|
|
@@ -40204,6 +40294,7 @@ export {
|
|
|
40204
40294
|
DeleteEventSessionLocation,
|
|
40205
40295
|
DeleteEventSessionLocationTranslation,
|
|
40206
40296
|
DeleteEventSessionMatch,
|
|
40297
|
+
DeleteEventSessionPrice,
|
|
40207
40298
|
DeleteEventSessionQuestion,
|
|
40208
40299
|
DeleteEventSessionQuestionChoice,
|
|
40209
40300
|
DeleteEventSessionQuestionChoiceTranslation,
|
|
@@ -42042,6 +42133,7 @@ export {
|
|
|
42042
42133
|
UpdateEventSessionLocation,
|
|
42043
42134
|
UpdateEventSessionLocationTranslation,
|
|
42044
42135
|
UpdateEventSessionMatch,
|
|
42136
|
+
UpdateEventSessionPrice,
|
|
42045
42137
|
UpdateEventSessionQuestion,
|
|
42046
42138
|
UpdateEventSessionQuestionChoice,
|
|
42047
42139
|
UpdateEventSessionQuestionChoiceSubQuestion,
|
|
@@ -42292,6 +42384,7 @@ export {
|
|
|
42292
42384
|
useCreateEventSessionAccess,
|
|
42293
42385
|
useCreateEventSessionLocation,
|
|
42294
42386
|
useCreateEventSessionMatch,
|
|
42387
|
+
useCreateEventSessionPrice,
|
|
42295
42388
|
useCreateEventSessionQuestion,
|
|
42296
42389
|
useCreateEventSessionQuestionChoice,
|
|
42297
42390
|
useCreateEventSessionRound,
|
|
@@ -42427,6 +42520,7 @@ export {
|
|
|
42427
42520
|
useDeleteEventSessionLocation,
|
|
42428
42521
|
useDeleteEventSessionLocationTranslation,
|
|
42429
42522
|
useDeleteEventSessionMatch,
|
|
42523
|
+
useDeleteEventSessionPrice,
|
|
42430
42524
|
useDeleteEventSessionQuestion,
|
|
42431
42525
|
useDeleteEventSessionQuestionChoice,
|
|
42432
42526
|
useDeleteEventSessionQuestionChoiceTranslation,
|
|
@@ -43261,6 +43355,7 @@ export {
|
|
|
43261
43355
|
useUpdateEventSessionLocation,
|
|
43262
43356
|
useUpdateEventSessionLocationTranslation,
|
|
43263
43357
|
useUpdateEventSessionMatch,
|
|
43358
|
+
useUpdateEventSessionPrice,
|
|
43264
43359
|
useUpdateEventSessionQuestion,
|
|
43265
43360
|
useUpdateEventSessionQuestionChoice,
|
|
43266
43361
|
useUpdateEventSessionQuestionChoiceSubQuestion,
|
package/openapi.json
CHANGED
|
@@ -368,6 +368,10 @@
|
|
|
368
368
|
"name": "Events::Sessions::Matches",
|
|
369
369
|
"description": "Create matchmaking pairings for session-specific activities, grouping attendees together for networking or collaborative sessions"
|
|
370
370
|
},
|
|
371
|
+
{
|
|
372
|
+
"name": "Events::Sessions::Prices",
|
|
373
|
+
"description": "Operations for events::sessions::prices"
|
|
374
|
+
},
|
|
371
375
|
{
|
|
372
376
|
"name": "Events::Sessions::Questions",
|
|
373
377
|
"description": "Add custom questions to session registration, collecting additional information from attendees who register for specific sessions"
|
|
@@ -47259,6 +47263,244 @@
|
|
|
47259
47263
|
]
|
|
47260
47264
|
}
|
|
47261
47265
|
},
|
|
47266
|
+
"/events/{eventId}/sessions/{sessionId}/prices": {
|
|
47267
|
+
"post": {
|
|
47268
|
+
"operationId": "CreateEventSessionPrice",
|
|
47269
|
+
"summary": "Create Event Session Price",
|
|
47270
|
+
"description": "Create Event Session Price endpoint",
|
|
47271
|
+
"parameters": [
|
|
47272
|
+
{
|
|
47273
|
+
"in": "path",
|
|
47274
|
+
"name": "eventId",
|
|
47275
|
+
"schema": {
|
|
47276
|
+
"type": "string"
|
|
47277
|
+
},
|
|
47278
|
+
"description": "The event identifier",
|
|
47279
|
+
"required": true
|
|
47280
|
+
},
|
|
47281
|
+
{
|
|
47282
|
+
"in": "path",
|
|
47283
|
+
"name": "sessionId",
|
|
47284
|
+
"schema": {
|
|
47285
|
+
"type": "string"
|
|
47286
|
+
},
|
|
47287
|
+
"description": "The session identifier",
|
|
47288
|
+
"required": true
|
|
47289
|
+
},
|
|
47290
|
+
{
|
|
47291
|
+
"in": "query",
|
|
47292
|
+
"name": "passTypeId",
|
|
47293
|
+
"schema": {
|
|
47294
|
+
"type": "string"
|
|
47295
|
+
},
|
|
47296
|
+
"description": "Filter by passTypeId",
|
|
47297
|
+
"required": true
|
|
47298
|
+
},
|
|
47299
|
+
{
|
|
47300
|
+
"in": "query",
|
|
47301
|
+
"name": "price",
|
|
47302
|
+
"schema": {
|
|
47303
|
+
"type": "number"
|
|
47304
|
+
},
|
|
47305
|
+
"description": "Filter by price",
|
|
47306
|
+
"required": true
|
|
47307
|
+
}
|
|
47308
|
+
],
|
|
47309
|
+
"responses": {
|
|
47310
|
+
"200": {
|
|
47311
|
+
"description": "Successful response",
|
|
47312
|
+
"content": {
|
|
47313
|
+
"application/json": {
|
|
47314
|
+
"schema": {
|
|
47315
|
+
"type": "object",
|
|
47316
|
+
"properties": {
|
|
47317
|
+
"status": {
|
|
47318
|
+
"type": "string",
|
|
47319
|
+
"enum": [
|
|
47320
|
+
"ok"
|
|
47321
|
+
]
|
|
47322
|
+
},
|
|
47323
|
+
"message": {
|
|
47324
|
+
"type": "string",
|
|
47325
|
+
"example": "Success message."
|
|
47326
|
+
},
|
|
47327
|
+
"data": {
|
|
47328
|
+
"$ref": "#/components/schemas/EventSession"
|
|
47329
|
+
}
|
|
47330
|
+
},
|
|
47331
|
+
"required": [
|
|
47332
|
+
"status",
|
|
47333
|
+
"message",
|
|
47334
|
+
"data"
|
|
47335
|
+
]
|
|
47336
|
+
}
|
|
47337
|
+
}
|
|
47338
|
+
}
|
|
47339
|
+
}
|
|
47340
|
+
},
|
|
47341
|
+
"tags": [
|
|
47342
|
+
"Events::Sessions::Prices"
|
|
47343
|
+
]
|
|
47344
|
+
}
|
|
47345
|
+
},
|
|
47346
|
+
"/events/{eventId}/sessions/{sessionId}/prices/{priceId}": {
|
|
47347
|
+
"put": {
|
|
47348
|
+
"operationId": "UpdateEventSessionPrice",
|
|
47349
|
+
"summary": "Update Event Session Price",
|
|
47350
|
+
"description": "Update Event Session Price endpoint",
|
|
47351
|
+
"parameters": [
|
|
47352
|
+
{
|
|
47353
|
+
"in": "path",
|
|
47354
|
+
"name": "eventId",
|
|
47355
|
+
"schema": {
|
|
47356
|
+
"type": "string"
|
|
47357
|
+
},
|
|
47358
|
+
"description": "The event identifier",
|
|
47359
|
+
"required": true
|
|
47360
|
+
},
|
|
47361
|
+
{
|
|
47362
|
+
"in": "path",
|
|
47363
|
+
"name": "sessionId",
|
|
47364
|
+
"schema": {
|
|
47365
|
+
"type": "string"
|
|
47366
|
+
},
|
|
47367
|
+
"description": "The session identifier",
|
|
47368
|
+
"required": true
|
|
47369
|
+
},
|
|
47370
|
+
{
|
|
47371
|
+
"in": "path",
|
|
47372
|
+
"name": "priceId",
|
|
47373
|
+
"schema": {
|
|
47374
|
+
"type": "string"
|
|
47375
|
+
},
|
|
47376
|
+
"description": "The price identifier",
|
|
47377
|
+
"required": true
|
|
47378
|
+
},
|
|
47379
|
+
{
|
|
47380
|
+
"in": "query",
|
|
47381
|
+
"name": "passTypeId",
|
|
47382
|
+
"schema": {
|
|
47383
|
+
"type": "string"
|
|
47384
|
+
},
|
|
47385
|
+
"description": "Filter by passTypeId",
|
|
47386
|
+
"required": false
|
|
47387
|
+
},
|
|
47388
|
+
{
|
|
47389
|
+
"in": "query",
|
|
47390
|
+
"name": "price",
|
|
47391
|
+
"schema": {
|
|
47392
|
+
"type": "number"
|
|
47393
|
+
},
|
|
47394
|
+
"description": "Filter by price",
|
|
47395
|
+
"required": false
|
|
47396
|
+
}
|
|
47397
|
+
],
|
|
47398
|
+
"responses": {
|
|
47399
|
+
"200": {
|
|
47400
|
+
"description": "Successful response",
|
|
47401
|
+
"content": {
|
|
47402
|
+
"application/json": {
|
|
47403
|
+
"schema": {
|
|
47404
|
+
"type": "object",
|
|
47405
|
+
"properties": {
|
|
47406
|
+
"status": {
|
|
47407
|
+
"type": "string",
|
|
47408
|
+
"enum": [
|
|
47409
|
+
"ok"
|
|
47410
|
+
]
|
|
47411
|
+
},
|
|
47412
|
+
"message": {
|
|
47413
|
+
"type": "string",
|
|
47414
|
+
"example": "Success message."
|
|
47415
|
+
},
|
|
47416
|
+
"data": {
|
|
47417
|
+
"$ref": "#/components/schemas/EventSession"
|
|
47418
|
+
}
|
|
47419
|
+
},
|
|
47420
|
+
"required": [
|
|
47421
|
+
"status",
|
|
47422
|
+
"message",
|
|
47423
|
+
"data"
|
|
47424
|
+
]
|
|
47425
|
+
}
|
|
47426
|
+
}
|
|
47427
|
+
}
|
|
47428
|
+
}
|
|
47429
|
+
},
|
|
47430
|
+
"tags": [
|
|
47431
|
+
"Events::Sessions::Prices"
|
|
47432
|
+
]
|
|
47433
|
+
},
|
|
47434
|
+
"delete": {
|
|
47435
|
+
"operationId": "DeleteEventSessionPrice",
|
|
47436
|
+
"summary": "Delete Event Session Price",
|
|
47437
|
+
"description": "Delete Event Session Price endpoint",
|
|
47438
|
+
"parameters": [
|
|
47439
|
+
{
|
|
47440
|
+
"in": "path",
|
|
47441
|
+
"name": "eventId",
|
|
47442
|
+
"schema": {
|
|
47443
|
+
"type": "string"
|
|
47444
|
+
},
|
|
47445
|
+
"description": "The event identifier",
|
|
47446
|
+
"required": true
|
|
47447
|
+
},
|
|
47448
|
+
{
|
|
47449
|
+
"in": "path",
|
|
47450
|
+
"name": "sessionId",
|
|
47451
|
+
"schema": {
|
|
47452
|
+
"type": "string"
|
|
47453
|
+
},
|
|
47454
|
+
"description": "The session identifier",
|
|
47455
|
+
"required": true
|
|
47456
|
+
},
|
|
47457
|
+
{
|
|
47458
|
+
"in": "path",
|
|
47459
|
+
"name": "priceId",
|
|
47460
|
+
"schema": {
|
|
47461
|
+
"type": "string"
|
|
47462
|
+
},
|
|
47463
|
+
"description": "The price identifier",
|
|
47464
|
+
"required": true
|
|
47465
|
+
}
|
|
47466
|
+
],
|
|
47467
|
+
"responses": {
|
|
47468
|
+
"200": {
|
|
47469
|
+
"description": "Successful response",
|
|
47470
|
+
"content": {
|
|
47471
|
+
"application/json": {
|
|
47472
|
+
"schema": {
|
|
47473
|
+
"type": "object",
|
|
47474
|
+
"properties": {
|
|
47475
|
+
"status": {
|
|
47476
|
+
"type": "string",
|
|
47477
|
+
"enum": [
|
|
47478
|
+
"ok"
|
|
47479
|
+
]
|
|
47480
|
+
},
|
|
47481
|
+
"message": {
|
|
47482
|
+
"type": "string",
|
|
47483
|
+
"example": "Success message."
|
|
47484
|
+
},
|
|
47485
|
+
"data": {
|
|
47486
|
+
"$ref": "#/components/schemas/EventSession"
|
|
47487
|
+
}
|
|
47488
|
+
},
|
|
47489
|
+
"required": [
|
|
47490
|
+
"status",
|
|
47491
|
+
"message",
|
|
47492
|
+
"data"
|
|
47493
|
+
]
|
|
47494
|
+
}
|
|
47495
|
+
}
|
|
47496
|
+
}
|
|
47497
|
+
}
|
|
47498
|
+
},
|
|
47499
|
+
"tags": [
|
|
47500
|
+
"Events::Sessions::Prices"
|
|
47501
|
+
]
|
|
47502
|
+
}
|
|
47503
|
+
},
|
|
47262
47504
|
"/events/{eventId}/sessions/{sessionId}/questions": {
|
|
47263
47505
|
"get": {
|
|
47264
47506
|
"operationId": "GetEventSessionQuestions",
|
|
@@ -102282,6 +102524,25 @@
|
|
|
102282
102524
|
}
|
|
102283
102525
|
]
|
|
102284
102526
|
},
|
|
102527
|
+
"EventSessionPrice": {
|
|
102528
|
+
"type": "object",
|
|
102529
|
+
"properties": {
|
|
102530
|
+
"id": {
|
|
102531
|
+
"type": "string"
|
|
102532
|
+
},
|
|
102533
|
+
"passTypeId": {
|
|
102534
|
+
"type": "string"
|
|
102535
|
+
},
|
|
102536
|
+
"price": {
|
|
102537
|
+
"type": "number"
|
|
102538
|
+
}
|
|
102539
|
+
},
|
|
102540
|
+
"required": [
|
|
102541
|
+
"id",
|
|
102542
|
+
"passTypeId",
|
|
102543
|
+
"price"
|
|
102544
|
+
]
|
|
102545
|
+
},
|
|
102285
102546
|
"EventSessionVisibility": {
|
|
102286
102547
|
"type": "string",
|
|
102287
102548
|
"enum": [
|
|
@@ -102366,6 +102627,12 @@
|
|
|
102366
102627
|
"type": "number",
|
|
102367
102628
|
"nullable": true
|
|
102368
102629
|
},
|
|
102630
|
+
"prices": {
|
|
102631
|
+
"type": "array",
|
|
102632
|
+
"items": {
|
|
102633
|
+
"$ref": "#/components/schemas/EventSessionPrice"
|
|
102634
|
+
}
|
|
102635
|
+
},
|
|
102369
102636
|
"limit": {
|
|
102370
102637
|
"type": "number",
|
|
102371
102638
|
"nullable": true
|
|
@@ -102405,6 +102672,7 @@
|
|
|
102405
102672
|
"location",
|
|
102406
102673
|
"registrationEnabled",
|
|
102407
102674
|
"price",
|
|
102675
|
+
"prices",
|
|
102408
102676
|
"limit",
|
|
102409
102677
|
"taxCode",
|
|
102410
102678
|
"taxIncluded",
|