@connectedxm/admin 6.32.2 → 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 +82 -0
- package/dist/index.d.cts +98 -1
- package/dist/index.d.ts +98 -1
- package/dist/index.js +73 -0
- package/openapi.json +225 -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";
|
|
@@ -22548,6 +22553,31 @@ var useImpersonateAccount = (options = {}) => {
|
|
|
22548
22553
|
return useConnectedMutation(ImpersonateAccount, options);
|
|
22549
22554
|
};
|
|
22550
22555
|
|
|
22556
|
+
// src/mutations/accounts/useSyncAccount.ts
|
|
22557
|
+
var SyncAccount = async ({
|
|
22558
|
+
accountId,
|
|
22559
|
+
adminApiParams
|
|
22560
|
+
}) => {
|
|
22561
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
22562
|
+
const { data } = await connectedXM.post(`/accounts/${accountId}/sync`);
|
|
22563
|
+
return data;
|
|
22564
|
+
};
|
|
22565
|
+
var useSyncAccount = (options = {}) => {
|
|
22566
|
+
return useConnectedMutation(SyncAccount, options);
|
|
22567
|
+
};
|
|
22568
|
+
|
|
22569
|
+
// src/mutations/accounts/useSyncAccounts.ts
|
|
22570
|
+
var SyncAccounts = async ({
|
|
22571
|
+
adminApiParams
|
|
22572
|
+
}) => {
|
|
22573
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
22574
|
+
const { data } = await connectedXM.post(`/accounts/sync`);
|
|
22575
|
+
return data;
|
|
22576
|
+
};
|
|
22577
|
+
var useSyncAccounts = (options = {}) => {
|
|
22578
|
+
return useConnectedMutation(SyncAccounts, options);
|
|
22579
|
+
};
|
|
22580
|
+
|
|
22551
22581
|
// src/mutations/accounts/useUpdateAccount.ts
|
|
22552
22582
|
var UpdateAccount = async ({
|
|
22553
22583
|
accountId,
|
|
@@ -24906,6 +24936,27 @@ var useAddEventActivationSession = (options = {}) => {
|
|
|
24906
24936
|
return useConnectedMutation(AddEventActivationSession, options);
|
|
24907
24937
|
};
|
|
24908
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
|
+
|
|
24909
24960
|
// src/mutations/events/activations/sessions/useRemoveEventActivationSession.ts
|
|
24910
24961
|
var RemoveEventActivationSession = async ({
|
|
24911
24962
|
eventId,
|
|
@@ -25701,6 +25752,19 @@ var useResendRegistrationConfirmationEmail = (options = {}) => {
|
|
|
25701
25752
|
return useConnectedMutation(ResendRegistrationConfirmationEmail, options);
|
|
25702
25753
|
};
|
|
25703
25754
|
|
|
25755
|
+
// src/mutations/events/attendees/useSyncEventAttendees.ts
|
|
25756
|
+
var SyncEventAttendees = async ({
|
|
25757
|
+
eventId,
|
|
25758
|
+
adminApiParams
|
|
25759
|
+
}) => {
|
|
25760
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
25761
|
+
const { data } = await connectedXM.post(`/events/${eventId}/attendees/sync`);
|
|
25762
|
+
return data;
|
|
25763
|
+
};
|
|
25764
|
+
var useSyncEventAttendees = (options = {}) => {
|
|
25765
|
+
return useConnectedMutation(SyncEventAttendees, options);
|
|
25766
|
+
};
|
|
25767
|
+
|
|
25704
25768
|
// src/mutations/events/attendees/useUpdateEventAttendee.ts
|
|
25705
25769
|
var UpdateEventAttendee = async ({
|
|
25706
25770
|
eventId,
|
|
@@ -40681,6 +40745,7 @@ export {
|
|
|
40681
40745
|
EmailReceiptStatus,
|
|
40682
40746
|
EnableEventBuildMode,
|
|
40683
40747
|
EnableLivestream,
|
|
40748
|
+
EventActivationRewardType,
|
|
40684
40749
|
EventActivationType,
|
|
40685
40750
|
EventAgendaVisibility,
|
|
40686
40751
|
EventEmailType,
|
|
@@ -41390,6 +41455,7 @@ export {
|
|
|
41390
41455
|
RemoveCustomReportUser,
|
|
41391
41456
|
RemoveEventAccessUser,
|
|
41392
41457
|
RemoveEventActivationSession,
|
|
41458
|
+
RemoveEventActivationSessions,
|
|
41393
41459
|
RemoveEventAddOnPassType,
|
|
41394
41460
|
RemoveEventAddOnTier,
|
|
41395
41461
|
RemoveEventBenefit,
|
|
@@ -42064,6 +42130,9 @@ export {
|
|
|
42064
42130
|
SurveyQuestionType,
|
|
42065
42131
|
SurveyStatus,
|
|
42066
42132
|
SwitchImage,
|
|
42133
|
+
SyncAccount,
|
|
42134
|
+
SyncAccounts,
|
|
42135
|
+
SyncEventAttendees,
|
|
42067
42136
|
SyncEventCouponToVariants,
|
|
42068
42137
|
SystemEventLogStatus,
|
|
42069
42138
|
TAX_CODES_QUERY_KEY,
|
|
@@ -43244,6 +43313,7 @@ export {
|
|
|
43244
43313
|
useRemoveCustomReportUser,
|
|
43245
43314
|
useRemoveEventAccessUser,
|
|
43246
43315
|
useRemoveEventActivationSession,
|
|
43316
|
+
useRemoveEventActivationSessions,
|
|
43247
43317
|
useRemoveEventAddOnPassType,
|
|
43248
43318
|
useRemoveEventAddOnTier,
|
|
43249
43319
|
useRemoveEventBenefit,
|
|
@@ -43327,6 +43397,9 @@ export {
|
|
|
43327
43397
|
useStartEventRoundMatchmaking,
|
|
43328
43398
|
useStartEventSessionRoundMatchmaking,
|
|
43329
43399
|
useSwitchImage,
|
|
43400
|
+
useSyncAccount,
|
|
43401
|
+
useSyncAccounts,
|
|
43402
|
+
useSyncEventAttendees,
|
|
43330
43403
|
useSyncEventCouponToVariants,
|
|
43331
43404
|
useTestTaxIntegration,
|
|
43332
43405
|
useToggleOrganizationPaymentIntegration,
|
package/openapi.json
CHANGED
|
@@ -1208,6 +1208,48 @@
|
|
|
1208
1208
|
]
|
|
1209
1209
|
}
|
|
1210
1210
|
},
|
|
1211
|
+
"/accounts/sync": {
|
|
1212
|
+
"post": {
|
|
1213
|
+
"operationId": "SyncAccounts",
|
|
1214
|
+
"summary": "Sync Accounts",
|
|
1215
|
+
"description": "Sync Accounts endpoint",
|
|
1216
|
+
"responses": {
|
|
1217
|
+
"200": {
|
|
1218
|
+
"description": "Successful response",
|
|
1219
|
+
"content": {
|
|
1220
|
+
"application/json": {
|
|
1221
|
+
"schema": {
|
|
1222
|
+
"type": "object",
|
|
1223
|
+
"properties": {
|
|
1224
|
+
"status": {
|
|
1225
|
+
"type": "string",
|
|
1226
|
+
"enum": [
|
|
1227
|
+
"ok"
|
|
1228
|
+
]
|
|
1229
|
+
},
|
|
1230
|
+
"message": {
|
|
1231
|
+
"type": "string",
|
|
1232
|
+
"example": "Success message."
|
|
1233
|
+
},
|
|
1234
|
+
"data": {
|
|
1235
|
+
"type": "object"
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
"required": [
|
|
1239
|
+
"status",
|
|
1240
|
+
"message",
|
|
1241
|
+
"data"
|
|
1242
|
+
]
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
"tags": [
|
|
1249
|
+
"Accounts"
|
|
1250
|
+
]
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1211
1253
|
"/accounts/{accountId}": {
|
|
1212
1254
|
"get": {
|
|
1213
1255
|
"operationId": "GetAccount",
|
|
@@ -3933,6 +3975,59 @@
|
|
|
3933
3975
|
]
|
|
3934
3976
|
}
|
|
3935
3977
|
},
|
|
3978
|
+
"/accounts/{accountId}/sync": {
|
|
3979
|
+
"post": {
|
|
3980
|
+
"operationId": "SyncAccount",
|
|
3981
|
+
"summary": "Sync Account",
|
|
3982
|
+
"description": "Sync Account endpoint",
|
|
3983
|
+
"parameters": [
|
|
3984
|
+
{
|
|
3985
|
+
"in": "path",
|
|
3986
|
+
"name": "accountId",
|
|
3987
|
+
"schema": {
|
|
3988
|
+
"type": "string"
|
|
3989
|
+
},
|
|
3990
|
+
"description": "The account identifier",
|
|
3991
|
+
"required": true
|
|
3992
|
+
}
|
|
3993
|
+
],
|
|
3994
|
+
"responses": {
|
|
3995
|
+
"200": {
|
|
3996
|
+
"description": "Successful response",
|
|
3997
|
+
"content": {
|
|
3998
|
+
"application/json": {
|
|
3999
|
+
"schema": {
|
|
4000
|
+
"type": "object",
|
|
4001
|
+
"properties": {
|
|
4002
|
+
"status": {
|
|
4003
|
+
"type": "string",
|
|
4004
|
+
"enum": [
|
|
4005
|
+
"ok"
|
|
4006
|
+
]
|
|
4007
|
+
},
|
|
4008
|
+
"message": {
|
|
4009
|
+
"type": "string",
|
|
4010
|
+
"example": "Success message."
|
|
4011
|
+
},
|
|
4012
|
+
"data": {
|
|
4013
|
+
"type": "object"
|
|
4014
|
+
}
|
|
4015
|
+
},
|
|
4016
|
+
"required": [
|
|
4017
|
+
"status",
|
|
4018
|
+
"message",
|
|
4019
|
+
"data"
|
|
4020
|
+
]
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
},
|
|
4026
|
+
"tags": [
|
|
4027
|
+
"Accounts"
|
|
4028
|
+
]
|
|
4029
|
+
}
|
|
4030
|
+
},
|
|
3936
4031
|
"/accounts/{accountId}/threads": {
|
|
3937
4032
|
"get": {
|
|
3938
4033
|
"operationId": "GetAccountThreads",
|
|
@@ -17442,6 +17537,66 @@
|
|
|
17442
17537
|
"tags": [
|
|
17443
17538
|
"Events::Activations"
|
|
17444
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
|
+
]
|
|
17445
17600
|
}
|
|
17446
17601
|
},
|
|
17447
17602
|
"/events/{eventId}/activations/{activationId}/sessions/{sessionId}": {
|
|
@@ -19591,6 +19746,59 @@
|
|
|
19591
19746
|
]
|
|
19592
19747
|
}
|
|
19593
19748
|
},
|
|
19749
|
+
"/events/{eventId}/attendees/sync": {
|
|
19750
|
+
"post": {
|
|
19751
|
+
"operationId": "SyncEventAttendees",
|
|
19752
|
+
"summary": "Sync Event Attendees",
|
|
19753
|
+
"description": "Sync Event Attendees endpoint",
|
|
19754
|
+
"parameters": [
|
|
19755
|
+
{
|
|
19756
|
+
"in": "path",
|
|
19757
|
+
"name": "eventId",
|
|
19758
|
+
"schema": {
|
|
19759
|
+
"type": "string"
|
|
19760
|
+
},
|
|
19761
|
+
"description": "The event identifier",
|
|
19762
|
+
"required": true
|
|
19763
|
+
}
|
|
19764
|
+
],
|
|
19765
|
+
"responses": {
|
|
19766
|
+
"200": {
|
|
19767
|
+
"description": "Successful response",
|
|
19768
|
+
"content": {
|
|
19769
|
+
"application/json": {
|
|
19770
|
+
"schema": {
|
|
19771
|
+
"type": "object",
|
|
19772
|
+
"properties": {
|
|
19773
|
+
"status": {
|
|
19774
|
+
"type": "string",
|
|
19775
|
+
"enum": [
|
|
19776
|
+
"ok"
|
|
19777
|
+
]
|
|
19778
|
+
},
|
|
19779
|
+
"message": {
|
|
19780
|
+
"type": "string",
|
|
19781
|
+
"example": "Success message."
|
|
19782
|
+
},
|
|
19783
|
+
"data": {
|
|
19784
|
+
"type": "object"
|
|
19785
|
+
}
|
|
19786
|
+
},
|
|
19787
|
+
"required": [
|
|
19788
|
+
"status",
|
|
19789
|
+
"message",
|
|
19790
|
+
"data"
|
|
19791
|
+
]
|
|
19792
|
+
}
|
|
19793
|
+
}
|
|
19794
|
+
}
|
|
19795
|
+
}
|
|
19796
|
+
},
|
|
19797
|
+
"tags": [
|
|
19798
|
+
"Events::Attendees"
|
|
19799
|
+
]
|
|
19800
|
+
}
|
|
19801
|
+
},
|
|
19594
19802
|
"/events/{eventId}/attendees/{accountId}": {
|
|
19595
19803
|
"get": {
|
|
19596
19804
|
"operationId": "GetEventAttendee",
|
|
@@ -94014,6 +94222,13 @@
|
|
|
94014
94222
|
"protected"
|
|
94015
94223
|
]
|
|
94016
94224
|
},
|
|
94225
|
+
"EventActivationRewardType": {
|
|
94226
|
+
"type": "string",
|
|
94227
|
+
"enum": [
|
|
94228
|
+
"max",
|
|
94229
|
+
"input"
|
|
94230
|
+
]
|
|
94231
|
+
},
|
|
94017
94232
|
"BaseEventActivation": {
|
|
94018
94233
|
"type": "object",
|
|
94019
94234
|
"properties": {
|
|
@@ -94042,6 +94257,9 @@
|
|
|
94042
94257
|
"type": {
|
|
94043
94258
|
"$ref": "#/components/schemas/EventActivationType"
|
|
94044
94259
|
},
|
|
94260
|
+
"rewardType": {
|
|
94261
|
+
"$ref": "#/components/schemas/EventActivationRewardType"
|
|
94262
|
+
},
|
|
94045
94263
|
"accessLevel": {
|
|
94046
94264
|
"$ref": "#/components/schemas/PassTypeAccessLevel"
|
|
94047
94265
|
},
|
|
@@ -94080,6 +94298,7 @@
|
|
|
94080
94298
|
"maxPoints",
|
|
94081
94299
|
"startAfter",
|
|
94082
94300
|
"type",
|
|
94301
|
+
"rewardType",
|
|
94083
94302
|
"accessLevel",
|
|
94084
94303
|
"sortOrder",
|
|
94085
94304
|
"survey",
|
|
@@ -113907,6 +114126,9 @@
|
|
|
113907
114126
|
"type": {
|
|
113908
114127
|
"$ref": "#/components/schemas/EventActivationType"
|
|
113909
114128
|
},
|
|
114129
|
+
"rewardType": {
|
|
114130
|
+
"$ref": "#/components/schemas/EventActivationRewardType"
|
|
114131
|
+
},
|
|
113910
114132
|
"protectionCode": {
|
|
113911
114133
|
"oneOf": [
|
|
113912
114134
|
{
|
|
@@ -114019,6 +114241,9 @@
|
|
|
114019
114241
|
"type": {
|
|
114020
114242
|
"$ref": "#/components/schemas/EventActivationType"
|
|
114021
114243
|
},
|
|
114244
|
+
"rewardType": {
|
|
114245
|
+
"$ref": "#/components/schemas/EventActivationRewardType"
|
|
114246
|
+
},
|
|
114022
114247
|
"protectionCode": {
|
|
114023
114248
|
"oneOf": [
|
|
114024
114249
|
{
|