@connectedxm/admin 6.32.2 → 6.33.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.js CHANGED
@@ -22548,6 +22548,31 @@ var useImpersonateAccount = (options = {}) => {
22548
22548
  return useConnectedMutation(ImpersonateAccount, options);
22549
22549
  };
22550
22550
 
22551
+ // src/mutations/accounts/useSyncAccount.ts
22552
+ var SyncAccount = async ({
22553
+ accountId,
22554
+ adminApiParams
22555
+ }) => {
22556
+ const connectedXM = await GetAdminAPI(adminApiParams);
22557
+ const { data } = await connectedXM.post(`/accounts/${accountId}/sync`);
22558
+ return data;
22559
+ };
22560
+ var useSyncAccount = (options = {}) => {
22561
+ return useConnectedMutation(SyncAccount, options);
22562
+ };
22563
+
22564
+ // src/mutations/accounts/useSyncAccounts.ts
22565
+ var SyncAccounts = async ({
22566
+ adminApiParams
22567
+ }) => {
22568
+ const connectedXM = await GetAdminAPI(adminApiParams);
22569
+ const { data } = await connectedXM.post(`/accounts/sync`);
22570
+ return data;
22571
+ };
22572
+ var useSyncAccounts = (options = {}) => {
22573
+ return useConnectedMutation(SyncAccounts, options);
22574
+ };
22575
+
22551
22576
  // src/mutations/accounts/useUpdateAccount.ts
22552
22577
  var UpdateAccount = async ({
22553
22578
  accountId,
@@ -25701,6 +25726,19 @@ var useResendRegistrationConfirmationEmail = (options = {}) => {
25701
25726
  return useConnectedMutation(ResendRegistrationConfirmationEmail, options);
25702
25727
  };
25703
25728
 
25729
+ // src/mutations/events/attendees/useSyncEventAttendees.ts
25730
+ var SyncEventAttendees = async ({
25731
+ eventId,
25732
+ adminApiParams
25733
+ }) => {
25734
+ const connectedXM = await GetAdminAPI(adminApiParams);
25735
+ const { data } = await connectedXM.post(`/events/${eventId}/attendees/sync`);
25736
+ return data;
25737
+ };
25738
+ var useSyncEventAttendees = (options = {}) => {
25739
+ return useConnectedMutation(SyncEventAttendees, options);
25740
+ };
25741
+
25704
25742
  // src/mutations/events/attendees/useUpdateEventAttendee.ts
25705
25743
  var UpdateEventAttendee = async ({
25706
25744
  eventId,
@@ -42064,6 +42102,9 @@ export {
42064
42102
  SurveyQuestionType,
42065
42103
  SurveyStatus,
42066
42104
  SwitchImage,
42105
+ SyncAccount,
42106
+ SyncAccounts,
42107
+ SyncEventAttendees,
42067
42108
  SyncEventCouponToVariants,
42068
42109
  SystemEventLogStatus,
42069
42110
  TAX_CODES_QUERY_KEY,
@@ -43327,6 +43368,9 @@ export {
43327
43368
  useStartEventRoundMatchmaking,
43328
43369
  useStartEventSessionRoundMatchmaking,
43329
43370
  useSwitchImage,
43371
+ useSyncAccount,
43372
+ useSyncAccounts,
43373
+ useSyncEventAttendees,
43330
43374
  useSyncEventCouponToVariants,
43331
43375
  useTestTaxIntegration,
43332
43376
  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",
@@ -19591,6 +19686,59 @@
19591
19686
  ]
19592
19687
  }
19593
19688
  },
19689
+ "/events/{eventId}/attendees/sync": {
19690
+ "post": {
19691
+ "operationId": "SyncEventAttendees",
19692
+ "summary": "Sync Event Attendees",
19693
+ "description": "Sync Event Attendees endpoint",
19694
+ "parameters": [
19695
+ {
19696
+ "in": "path",
19697
+ "name": "eventId",
19698
+ "schema": {
19699
+ "type": "string"
19700
+ },
19701
+ "description": "The event identifier",
19702
+ "required": true
19703
+ }
19704
+ ],
19705
+ "responses": {
19706
+ "200": {
19707
+ "description": "Successful response",
19708
+ "content": {
19709
+ "application/json": {
19710
+ "schema": {
19711
+ "type": "object",
19712
+ "properties": {
19713
+ "status": {
19714
+ "type": "string",
19715
+ "enum": [
19716
+ "ok"
19717
+ ]
19718
+ },
19719
+ "message": {
19720
+ "type": "string",
19721
+ "example": "Success message."
19722
+ },
19723
+ "data": {
19724
+ "type": "object"
19725
+ }
19726
+ },
19727
+ "required": [
19728
+ "status",
19729
+ "message",
19730
+ "data"
19731
+ ]
19732
+ }
19733
+ }
19734
+ }
19735
+ }
19736
+ },
19737
+ "tags": [
19738
+ "Events::Attendees"
19739
+ ]
19740
+ }
19741
+ },
19594
19742
  "/events/{eventId}/attendees/{accountId}": {
19595
19743
  "get": {
19596
19744
  "operationId": "GetEventAttendee",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.32.2",
3
+ "version": "6.33.0",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",