@connectedxm/admin 6.33.0 → 6.33.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 +32 -0
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +29 -0
- package/openapi.json +77 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -342,6 +342,11 @@ var EventActivationType = /* @__PURE__ */ ((EventActivationType2) => {
|
|
|
342
342
|
EventActivationType2["protected"] = "protected";
|
|
343
343
|
return EventActivationType2;
|
|
344
344
|
})(EventActivationType || {});
|
|
345
|
+
var EventActivationRewardType = /* @__PURE__ */ ((EventActivationRewardType2) => {
|
|
346
|
+
EventActivationRewardType2["max"] = "max";
|
|
347
|
+
EventActivationRewardType2["input"] = "input";
|
|
348
|
+
return EventActivationRewardType2;
|
|
349
|
+
})(EventActivationRewardType || {});
|
|
345
350
|
var ModerationStatus = /* @__PURE__ */ ((ModerationStatus2) => {
|
|
346
351
|
ModerationStatus2["none"] = "none";
|
|
347
352
|
ModerationStatus2["reported"] = "reported";
|
|
@@ -24931,6 +24936,27 @@ var useAddEventActivationSession = (options = {}) => {
|
|
|
24931
24936
|
return useConnectedMutation(AddEventActivationSession, options);
|
|
24932
24937
|
};
|
|
24933
24938
|
|
|
24939
|
+
// src/mutations/events/activations/sessions/useRemoveEventActivationSessions.ts
|
|
24940
|
+
var RemoveEventActivationSessions = async ({
|
|
24941
|
+
eventId,
|
|
24942
|
+
activationId,
|
|
24943
|
+
adminApiParams,
|
|
24944
|
+
queryClient
|
|
24945
|
+
}) => {
|
|
24946
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
24947
|
+
const { data } = await connectedXM.delete(`/events/${eventId}/activations/${activationId}/sessions`);
|
|
24948
|
+
if (queryClient && data.status === "ok") {
|
|
24949
|
+
queryClient.invalidateQueries({
|
|
24950
|
+
queryKey: EVENT_ACTIVATION_SESSIONS_QUERY_KEY(eventId, activationId)
|
|
24951
|
+
});
|
|
24952
|
+
SET_EVENT_ACTIVATION_QUERY_DATA(queryClient, [eventId, activationId], data);
|
|
24953
|
+
}
|
|
24954
|
+
return data;
|
|
24955
|
+
};
|
|
24956
|
+
var useRemoveEventActivationSessions = (options = {}) => {
|
|
24957
|
+
return useConnectedMutation(RemoveEventActivationSessions, options);
|
|
24958
|
+
};
|
|
24959
|
+
|
|
24934
24960
|
// src/mutations/events/activations/sessions/useRemoveEventActivationSession.ts
|
|
24935
24961
|
var RemoveEventActivationSession = async ({
|
|
24936
24962
|
eventId,
|
|
@@ -40719,6 +40745,7 @@ export {
|
|
|
40719
40745
|
EmailReceiptStatus,
|
|
40720
40746
|
EnableEventBuildMode,
|
|
40721
40747
|
EnableLivestream,
|
|
40748
|
+
EventActivationRewardType,
|
|
40722
40749
|
EventActivationType,
|
|
40723
40750
|
EventAgendaVisibility,
|
|
40724
40751
|
EventEmailType,
|
|
@@ -41428,6 +41455,7 @@ export {
|
|
|
41428
41455
|
RemoveCustomReportUser,
|
|
41429
41456
|
RemoveEventAccessUser,
|
|
41430
41457
|
RemoveEventActivationSession,
|
|
41458
|
+
RemoveEventActivationSessions,
|
|
41431
41459
|
RemoveEventAddOnPassType,
|
|
41432
41460
|
RemoveEventAddOnTier,
|
|
41433
41461
|
RemoveEventBenefit,
|
|
@@ -43285,6 +43313,7 @@ export {
|
|
|
43285
43313
|
useRemoveCustomReportUser,
|
|
43286
43314
|
useRemoveEventAccessUser,
|
|
43287
43315
|
useRemoveEventActivationSession,
|
|
43316
|
+
useRemoveEventActivationSessions,
|
|
43288
43317
|
useRemoveEventAddOnPassType,
|
|
43289
43318
|
useRemoveEventAddOnTier,
|
|
43290
43319
|
useRemoveEventBenefit,
|
package/openapi.json
CHANGED
|
@@ -17537,6 +17537,66 @@
|
|
|
17537
17537
|
"tags": [
|
|
17538
17538
|
"Events::Activations"
|
|
17539
17539
|
]
|
|
17540
|
+
},
|
|
17541
|
+
"delete": {
|
|
17542
|
+
"operationId": "RemoveEventActivationSessions",
|
|
17543
|
+
"summary": "Remove Event Activation Sessions",
|
|
17544
|
+
"description": "Remove Event Activation Sessions endpoint",
|
|
17545
|
+
"parameters": [
|
|
17546
|
+
{
|
|
17547
|
+
"in": "path",
|
|
17548
|
+
"name": "eventId",
|
|
17549
|
+
"schema": {
|
|
17550
|
+
"type": "string"
|
|
17551
|
+
},
|
|
17552
|
+
"description": "The event identifier",
|
|
17553
|
+
"required": true
|
|
17554
|
+
},
|
|
17555
|
+
{
|
|
17556
|
+
"in": "path",
|
|
17557
|
+
"name": "activationId",
|
|
17558
|
+
"schema": {
|
|
17559
|
+
"type": "string"
|
|
17560
|
+
},
|
|
17561
|
+
"description": "The activation identifier",
|
|
17562
|
+
"required": true
|
|
17563
|
+
}
|
|
17564
|
+
],
|
|
17565
|
+
"responses": {
|
|
17566
|
+
"200": {
|
|
17567
|
+
"description": "Successful response",
|
|
17568
|
+
"content": {
|
|
17569
|
+
"application/json": {
|
|
17570
|
+
"schema": {
|
|
17571
|
+
"type": "object",
|
|
17572
|
+
"properties": {
|
|
17573
|
+
"status": {
|
|
17574
|
+
"type": "string",
|
|
17575
|
+
"enum": [
|
|
17576
|
+
"ok"
|
|
17577
|
+
]
|
|
17578
|
+
},
|
|
17579
|
+
"message": {
|
|
17580
|
+
"type": "string",
|
|
17581
|
+
"example": "Success message."
|
|
17582
|
+
},
|
|
17583
|
+
"data": {
|
|
17584
|
+
"$ref": "#/components/schemas/EventActivation"
|
|
17585
|
+
}
|
|
17586
|
+
},
|
|
17587
|
+
"required": [
|
|
17588
|
+
"status",
|
|
17589
|
+
"message",
|
|
17590
|
+
"data"
|
|
17591
|
+
]
|
|
17592
|
+
}
|
|
17593
|
+
}
|
|
17594
|
+
}
|
|
17595
|
+
}
|
|
17596
|
+
},
|
|
17597
|
+
"tags": [
|
|
17598
|
+
"Events::Activations::Sessions"
|
|
17599
|
+
]
|
|
17540
17600
|
}
|
|
17541
17601
|
},
|
|
17542
17602
|
"/events/{eventId}/activations/{activationId}/sessions/{sessionId}": {
|
|
@@ -94162,6 +94222,13 @@
|
|
|
94162
94222
|
"protected"
|
|
94163
94223
|
]
|
|
94164
94224
|
},
|
|
94225
|
+
"EventActivationRewardType": {
|
|
94226
|
+
"type": "string",
|
|
94227
|
+
"enum": [
|
|
94228
|
+
"max",
|
|
94229
|
+
"input"
|
|
94230
|
+
]
|
|
94231
|
+
},
|
|
94165
94232
|
"BaseEventActivation": {
|
|
94166
94233
|
"type": "object",
|
|
94167
94234
|
"properties": {
|
|
@@ -94190,6 +94257,9 @@
|
|
|
94190
94257
|
"type": {
|
|
94191
94258
|
"$ref": "#/components/schemas/EventActivationType"
|
|
94192
94259
|
},
|
|
94260
|
+
"rewardType": {
|
|
94261
|
+
"$ref": "#/components/schemas/EventActivationRewardType"
|
|
94262
|
+
},
|
|
94193
94263
|
"accessLevel": {
|
|
94194
94264
|
"$ref": "#/components/schemas/PassTypeAccessLevel"
|
|
94195
94265
|
},
|
|
@@ -94228,6 +94298,7 @@
|
|
|
94228
94298
|
"maxPoints",
|
|
94229
94299
|
"startAfter",
|
|
94230
94300
|
"type",
|
|
94301
|
+
"rewardType",
|
|
94231
94302
|
"accessLevel",
|
|
94232
94303
|
"sortOrder",
|
|
94233
94304
|
"survey",
|
|
@@ -114055,6 +114126,9 @@
|
|
|
114055
114126
|
"type": {
|
|
114056
114127
|
"$ref": "#/components/schemas/EventActivationType"
|
|
114057
114128
|
},
|
|
114129
|
+
"rewardType": {
|
|
114130
|
+
"$ref": "#/components/schemas/EventActivationRewardType"
|
|
114131
|
+
},
|
|
114058
114132
|
"protectionCode": {
|
|
114059
114133
|
"oneOf": [
|
|
114060
114134
|
{
|
|
@@ -114167,6 +114241,9 @@
|
|
|
114167
114241
|
"type": {
|
|
114168
114242
|
"$ref": "#/components/schemas/EventActivationType"
|
|
114169
114243
|
},
|
|
114244
|
+
"rewardType": {
|
|
114245
|
+
"$ref": "#/components/schemas/EventActivationRewardType"
|
|
114246
|
+
},
|
|
114170
114247
|
"protectionCode": {
|
|
114171
114248
|
"oneOf": [
|
|
114172
114249
|
{
|