@connectedxm/admin 6.9.0 → 6.9.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.js CHANGED
@@ -17595,12 +17595,15 @@ var useGetSeriesRegistration = (seriesId = "", registrationId = "", options = {}
17595
17595
  );
17596
17596
  };
17597
17597
 
17598
- // src/queries/series/registrations/useGetSeriesRegistrationPasses.ts
17599
- var SERIES_REGISTRATION_PASSES_QUERY_KEY = (seriesId, registrationId) => [...SERIES_REGISTRATION_QUERY_KEY(seriesId, registrationId), "PASSES"];
17600
- var GetSeriesRegistrationPasses = async ({
17598
+ // src/queries/series/registrations/useGetSeriesRegistrationRegistrations.ts
17599
+ var SERIES_REGISTRATION_REGISTRATIONS_QUERY_KEY = (seriesId, registrationId) => [
17600
+ ...SERIES_REGISTRATION_QUERY_KEY(seriesId, registrationId),
17601
+ "REGISTRATIONS"
17602
+ ];
17603
+ var GetSeriesRegistrationRegistrations = async ({
17601
17604
  seriesId,
17602
17605
  registrationId,
17603
- cursor,
17606
+ pageParam,
17604
17607
  pageSize,
17605
17608
  orderBy,
17606
17609
  search,
@@ -17608,10 +17611,10 @@ var GetSeriesRegistrationPasses = async ({
17608
17611
  }) => {
17609
17612
  const adminApi = await GetAdminAPI(adminApiParams);
17610
17613
  const { data } = await adminApi.get(
17611
- `/series/${seriesId}/registrations/${registrationId}/passes`,
17614
+ `/series/${seriesId}/registrations/${registrationId}/registrations`,
17612
17615
  {
17613
17616
  params: {
17614
- cursor: cursor || void 0,
17617
+ page: pageParam || void 0,
17615
17618
  pageSize: pageSize || void 0,
17616
17619
  orderBy: orderBy || void 0,
17617
17620
  search: search || void 0
@@ -17620,10 +17623,10 @@ var GetSeriesRegistrationPasses = async ({
17620
17623
  );
17621
17624
  return data;
17622
17625
  };
17623
- var useGetSeriesRegistrationPasses = (seriesId = "", registrationId = "", params = {}, options = {}) => {
17624
- return useConnectedCursorQuery(
17625
- SERIES_REGISTRATION_PASSES_QUERY_KEY(seriesId, registrationId),
17626
- (params2) => GetSeriesRegistrationPasses({
17626
+ var useGetSeriesRegistrationRegistrations = (seriesId = "", registrationId = "", params = {}, options = {}) => {
17627
+ return useConnectedInfiniteQuery(
17628
+ SERIES_REGISTRATION_REGISTRATIONS_QUERY_KEY(seriesId, registrationId),
17629
+ (params2) => GetSeriesRegistrationRegistrations({
17627
17630
  ...params2,
17628
17631
  seriesId,
17629
17632
  registrationId
@@ -29843,6 +29846,31 @@ var useAddEventSessionTrack = (options = {}) => {
29843
29846
  return useConnectedMutation(AddEventSessionTrack, options);
29844
29847
  };
29845
29848
 
29849
+ // src/mutations/events/sessions/useCloneEventSession.ts
29850
+ var CloneEventSession = async ({
29851
+ eventId,
29852
+ sessionId,
29853
+ options = {},
29854
+ adminApiParams,
29855
+ queryClient
29856
+ }) => {
29857
+ const connectedXM = await GetAdminAPI(adminApiParams);
29858
+ const { data } = await connectedXM.post(
29859
+ `/events/${eventId}/sessions/${sessionId}/clone`,
29860
+ options
29861
+ );
29862
+ if (queryClient && data.status === "ok") {
29863
+ queryClient.invalidateQueries({
29864
+ queryKey: EVENT_SESSIONS_QUERY_KEY(eventId)
29865
+ });
29866
+ SET_EVENT_SESSION_QUERY_DATA(queryClient, [eventId, data.data.id], data);
29867
+ }
29868
+ return data;
29869
+ };
29870
+ var useCloneEventSession = (options = {}) => {
29871
+ return useConnectedMutation(CloneEventSession, options);
29872
+ };
29873
+
29846
29874
  // src/mutations/events/sessions/useCreateEventSession.ts
29847
29875
  var CreateEventSession = async ({
29848
29876
  eventId,
@@ -36878,6 +36906,7 @@ export {
36878
36906
  ChannelFormat,
36879
36907
  CheckinEventPass,
36880
36908
  CloneEvent,
36909
+ CloneEventSession,
36881
36910
  CloseStreamSession,
36882
36911
  ConfirmLogin,
36883
36912
  ConnectedXMProvider,
@@ -37825,7 +37854,7 @@ export {
37825
37854
  GetSeriesEvents,
37826
37855
  GetSeriesList,
37827
37856
  GetSeriesRegistration,
37828
- GetSeriesRegistrationPasses,
37857
+ GetSeriesRegistrationRegistrations,
37829
37858
  GetSeriesRegistrations,
37830
37859
  GetStreamInput,
37831
37860
  GetStreamInputOutput,
@@ -38116,8 +38145,8 @@ export {
38116
38145
  SERIES_LIST_QUERY_KEY,
38117
38146
  SERIES_QUERY_KEY,
38118
38147
  SERIES_REGISTRATIONS_QUERY_KEY,
38119
- SERIES_REGISTRATION_PASSES_QUERY_KEY,
38120
38148
  SERIES_REGISTRATION_QUERY_KEY,
38149
+ SERIES_REGISTRATION_REGISTRATIONS_QUERY_KEY,
38121
38150
  SET_ACCOUNTS_QUERY_DATA,
38122
38151
  SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
38123
38152
  SET_ACCOUNT_ADDRESSES_QUERY_DATA,
@@ -38959,6 +38988,7 @@ export {
38959
38988
  useCancelGroupInvitation,
38960
38989
  useCheckinEventPass,
38961
38990
  useCloneEvent,
38991
+ useCloneEventSession,
38962
38992
  useCloseStreamSession,
38963
38993
  useConfirmLogin,
38964
38994
  useConnectedCursorQuery,
@@ -39653,7 +39683,7 @@ export {
39653
39683
  useGetSeriesEvents,
39654
39684
  useGetSeriesList,
39655
39685
  useGetSeriesRegistration,
39656
- useGetSeriesRegistrationPasses,
39686
+ useGetSeriesRegistrationRegistrations,
39657
39687
  useGetSeriesRegistrations,
39658
39688
  useGetStreamInput,
39659
39689
  useGetStreamInputOutput,
package/openapi.json CHANGED
@@ -35317,6 +35317,78 @@
35317
35317
  ]
35318
35318
  }
35319
35319
  },
35320
+ "/events/{eventId}/sessions/{sessionId}/clone": {
35321
+ "post": {
35322
+ "operationId": "CloneEventSession",
35323
+ "summary": "Clone Event Session",
35324
+ "description": "Clone Event Session endpoint",
35325
+ "parameters": [
35326
+ {
35327
+ "in": "path",
35328
+ "name": "eventId",
35329
+ "schema": {
35330
+ "type": "string"
35331
+ },
35332
+ "description": "The event identifier",
35333
+ "required": true
35334
+ },
35335
+ {
35336
+ "in": "path",
35337
+ "name": "sessionId",
35338
+ "schema": {
35339
+ "type": "string"
35340
+ },
35341
+ "description": "The session identifier",
35342
+ "required": true
35343
+ }
35344
+ ],
35345
+ "requestBody": {
35346
+ "required": true,
35347
+ "content": {
35348
+ "application/json": {
35349
+ "schema": {
35350
+ "$ref": "#/components/schemas/EventSessionCloneOptions"
35351
+ }
35352
+ }
35353
+ }
35354
+ },
35355
+ "responses": {
35356
+ "200": {
35357
+ "description": "Successful response",
35358
+ "content": {
35359
+ "application/json": {
35360
+ "schema": {
35361
+ "type": "object",
35362
+ "properties": {
35363
+ "status": {
35364
+ "type": "string",
35365
+ "enum": [
35366
+ "ok"
35367
+ ]
35368
+ },
35369
+ "message": {
35370
+ "type": "string",
35371
+ "example": "Success message."
35372
+ },
35373
+ "data": {
35374
+ "$ref": "#/components/schemas/EventSession"
35375
+ }
35376
+ },
35377
+ "required": [
35378
+ "status",
35379
+ "message",
35380
+ "data"
35381
+ ]
35382
+ }
35383
+ }
35384
+ }
35385
+ }
35386
+ },
35387
+ "tags": [
35388
+ "Events::Sessions"
35389
+ ]
35390
+ }
35391
+ },
35320
35392
  "/events/{eventId}/sessions/{sessionId}/passTypes": {
35321
35393
  "get": {
35322
35394
  "operationId": "GetEventSessionPassTypes",
@@ -62302,11 +62374,11 @@
62302
62374
  ]
62303
62375
  }
62304
62376
  },
62305
- "/series/{seriesId}/registrations/{registrationId}/passes": {
62377
+ "/series/{seriesId}/registrations/{registrationId}/registrations": {
62306
62378
  "get": {
62307
- "operationId": "GetSeriesRegistrationPasses",
62308
- "summary": "Get Series Registration Passes",
62309
- "description": "Get Series Registration Passes endpoint",
62379
+ "operationId": "GetSeriesRegistrationRegistrations",
62380
+ "summary": "Get Series Registration Registrations",
62381
+ "description": "Get Series Registration Registrations endpoint",
62310
62382
  "parameters": [
62311
62383
  {
62312
62384
  "in": "path",
@@ -62325,6 +62397,47 @@
62325
62397
  },
62326
62398
  "description": "The registration identifier",
62327
62399
  "required": true
62400
+ },
62401
+ {
62402
+ "in": "query",
62403
+ "name": "page",
62404
+ "schema": {
62405
+ "type": "integer",
62406
+ "minimum": 1,
62407
+ "default": 1
62408
+ },
62409
+ "description": "Page number",
62410
+ "required": false
62411
+ },
62412
+ {
62413
+ "in": "query",
62414
+ "name": "pageSize",
62415
+ "schema": {
62416
+ "type": "integer",
62417
+ "minimum": 1,
62418
+ "maximum": 100,
62419
+ "default": 25
62420
+ },
62421
+ "description": "Number of items per page",
62422
+ "required": false
62423
+ },
62424
+ {
62425
+ "in": "query",
62426
+ "name": "orderBy",
62427
+ "schema": {
62428
+ "type": "string"
62429
+ },
62430
+ "description": "Field to order by",
62431
+ "required": false
62432
+ },
62433
+ {
62434
+ "in": "query",
62435
+ "name": "search",
62436
+ "schema": {
62437
+ "type": "string"
62438
+ },
62439
+ "description": "Search query",
62440
+ "required": false
62328
62441
  }
62329
62442
  ],
62330
62443
  "responses": {
@@ -62347,6 +62460,10 @@
62347
62460
  },
62348
62461
  "data": {
62349
62462
  "type": "object"
62463
+ },
62464
+ "count": {
62465
+ "type": "integer",
62466
+ "example": 100
62350
62467
  }
62351
62468
  },
62352
62469
  "required": [
@@ -80711,6 +80828,22 @@
80711
80828
  "$ref": "#/components/schemas/BaseAttendeePackage"
80712
80829
  }
80713
80830
  },
80831
+ "seriesId": {
80832
+ "type": "string",
80833
+ "nullable": true
80834
+ },
80835
+ "seriesRegistrationId": {
80836
+ "type": "string",
80837
+ "nullable": true
80838
+ },
80839
+ "seriesRegistration": {
80840
+ "allOf": [
80841
+ {
80842
+ "$ref": "#/components/schemas/BaseSeriesRegistration"
80843
+ }
80844
+ ],
80845
+ "nullable": true
80846
+ },
80714
80847
  "createdAt": {
80715
80848
  "type": "string"
80716
80849
  },
@@ -80736,6 +80869,9 @@
80736
80869
  "required": [
80737
80870
  "passes",
80738
80871
  "packages",
80872
+ "seriesId",
80873
+ "seriesRegistrationId",
80874
+ "seriesRegistration",
80739
80875
  "createdAt",
80740
80876
  "updatedAt",
80741
80877
  "_count"
@@ -93316,6 +93452,17 @@
93316
93452
  }
93317
93453
  }
93318
93454
  },
93455
+ "EventSessionCloneOptions": {
93456
+ "type": "object",
93457
+ "properties": {
93458
+ "name": {
93459
+ "type": "string"
93460
+ },
93461
+ "startTime": {
93462
+ "type": "string"
93463
+ }
93464
+ }
93465
+ },
93319
93466
  "EventSessionUpdateInputs": {
93320
93467
  "type": "object",
93321
93468
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.9.0",
3
+ "version": "6.9.2",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",