@connectedxm/admin 7.3.1 → 7.4.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
@@ -14301,6 +14301,48 @@ var useGetEventTrackSponsors = (eventId = "", trackId = "", params = {}, options
14301
14301
  );
14302
14302
  };
14303
14303
 
14304
+ // src/queries/events/transfers/useGetEventPassTransfers.ts
14305
+ var EVENT_PASS_TRANSFERS_QUERY_KEY = (eventId) => [
14306
+ ...EVENT_QUERY_KEY(eventId),
14307
+ "PASS_TRANSFERS"
14308
+ ];
14309
+ var SET_EVENT_PASS_TRANSFERS_QUERY_DATA = (client, keyParams, response) => {
14310
+ client.setQueryData(EVENT_PASS_TRANSFERS_QUERY_KEY(...keyParams), response);
14311
+ };
14312
+ var GetEventPassTransfers = async ({
14313
+ eventId,
14314
+ pageParam,
14315
+ pageSize,
14316
+ orderBy,
14317
+ search,
14318
+ adminApiParams
14319
+ }) => {
14320
+ const adminApi = await GetAdminAPI(adminApiParams);
14321
+ const { data } = await adminApi.get(`/events/${eventId}/transfers`, {
14322
+ params: {
14323
+ page: pageParam || void 0,
14324
+ pageSize: pageSize || void 0,
14325
+ orderBy: orderBy || void 0,
14326
+ search: search || void 0
14327
+ }
14328
+ });
14329
+ return data;
14330
+ };
14331
+ var useGetEventPassTransfers = (eventId = "", params = {}, options = {}) => {
14332
+ return useConnectedInfiniteQuery(
14333
+ EVENT_PASS_TRANSFERS_QUERY_KEY(eventId),
14334
+ (params2) => GetEventPassTransfers({
14335
+ ...params2,
14336
+ eventId
14337
+ }),
14338
+ params,
14339
+ {
14340
+ ...options,
14341
+ enabled: !!eventId && (options.enabled ?? true)
14342
+ }
14343
+ );
14344
+ };
14345
+
14304
14346
  // src/queries/events/translations/useGetEventTranslations.ts
14305
14347
  var EVENT_TRANSLATIONS_QUERY_KEY = (eventId) => [
14306
14348
  ...EVENT_QUERY_KEY(eventId),
@@ -29152,6 +29194,10 @@ var TransferEventPass = async ({
29152
29194
  queryClient.invalidateQueries({
29153
29195
  queryKey: EVENT_ATTENDEE_TRANSFER_LOGS_QUERY_KEY(eventId, accountId)
29154
29196
  });
29197
+ queryClient.invalidateQueries({
29198
+ queryKey: EVENT_PASS_TRANSFERS_QUERY_KEY(eventId),
29199
+ exact: false
29200
+ });
29155
29201
  }
29156
29202
  return data;
29157
29203
  };
@@ -33834,6 +33880,29 @@ var useUpdateEventTrack = (options = {}) => {
33834
33880
  return useConnectedMutation(UpdateEventTrack, options);
33835
33881
  };
33836
33882
 
33883
+ // src/mutations/events/transfers/useCancelEventPassTransfer.ts
33884
+ var CancelEventPassTransfer = async ({
33885
+ eventId,
33886
+ transferId,
33887
+ adminApiParams,
33888
+ queryClient
33889
+ }) => {
33890
+ const connectedXM = await GetAdminAPI(adminApiParams);
33891
+ const { data } = await connectedXM.delete(
33892
+ `/events/${eventId}/transfers/${transferId}`
33893
+ );
33894
+ if (queryClient && data.status === "ok") {
33895
+ queryClient.invalidateQueries({
33896
+ queryKey: EVENT_PASS_TRANSFERS_QUERY_KEY(eventId),
33897
+ exact: false
33898
+ });
33899
+ }
33900
+ return data;
33901
+ };
33902
+ var useCancelEventPassTransfer = (options = {}) => {
33903
+ return useConnectedMutation(CancelEventPassTransfer, options);
33904
+ };
33905
+
33837
33906
  // src/mutations/events/translations/useDeleteEventTranslation.ts
33838
33907
  var DeleteEventTranslation = async ({
33839
33908
  eventId,
@@ -40182,6 +40251,7 @@ export {
40182
40251
  CancelBooking,
40183
40252
  CancelChannelContentPublishSchedule,
40184
40253
  CancelEventPass,
40254
+ CancelEventPassTransfer,
40185
40255
  CancelGroupInvitation,
40186
40256
  ChannelFormat,
40187
40257
  CheckInBooking,
@@ -40569,6 +40639,7 @@ export {
40569
40639
  EVENT_PASS_RESPONSES_QUERY_KEY,
40570
40640
  EVENT_PASS_RESPONSE_CHANGES_QUERY_KEY,
40571
40641
  EVENT_PASS_RESPONSE_QUERY_KEY,
40642
+ EVENT_PASS_TRANSFERS_QUERY_KEY,
40572
40643
  EVENT_PASS_TRANSFER_LOGS_QUERY_KEY,
40573
40644
  EVENT_PASS_TYPES_QUERY_KEY,
40574
40645
  EVENT_PASS_TYPE_ADD_ONS_QUERY_KEY,
@@ -40943,6 +41014,7 @@ export {
40943
41014
  GetEventPassResponseChanges,
40944
41015
  GetEventPassResponses,
40945
41016
  GetEventPassTransferLogs,
41017
+ GetEventPassTransfers,
40946
41018
  GetEventPassType,
40947
41019
  GetEventPassTypeAddOns,
40948
41020
  GetEventPassTypeGroupPassTiers,
@@ -41717,6 +41789,7 @@ export {
41717
41789
  SET_EVENT_PASS_RESPONSES_QUERY_DATA,
41718
41790
  SET_EVENT_PASS_RESPONSE_CHANGES_QUERY_DATA,
41719
41791
  SET_EVENT_PASS_RESPONSE_QUERY_DATA,
41792
+ SET_EVENT_PASS_TRANSFERS_QUERY_DATA,
41720
41793
  SET_EVENT_PASS_TRANSFER_LOGS_QUERY_DATA,
41721
41794
  SET_EVENT_PASS_TYPES_QUERY_DATA,
41722
41795
  SET_EVENT_PASS_TYPE_ADD_ONS_QUERY_DATA,
@@ -42415,6 +42488,7 @@ export {
42415
42488
  useCancelBooking,
42416
42489
  useCancelChannelContentPublishSchedule,
42417
42490
  useCancelEventPass,
42491
+ useCancelEventPassTransfer,
42418
42492
  useCancelGroupInvitation,
42419
42493
  useCheckInBooking,
42420
42494
  useCheckinEventPass,
@@ -42910,6 +42984,7 @@ export {
42910
42984
  useGetEventPassResponseChanges,
42911
42985
  useGetEventPassResponses,
42912
42986
  useGetEventPassTransferLogs,
42987
+ useGetEventPassTransfers,
42913
42988
  useGetEventPassType,
42914
42989
  useGetEventPassTypeAddOns,
42915
42990
  useGetEventPassTypeGroupPassTiers,
package/openapi.json CHANGED
@@ -440,6 +440,10 @@
440
440
  "name": "Events::Tracks::Translations",
441
441
  "description": "Operations for events::tracks::translations"
442
442
  },
443
+ {
444
+ "name": "Events::Transfers",
445
+ "description": "Operations for events::transfers"
446
+ },
443
447
  {
444
448
  "name": "Events::Translations",
445
449
  "description": "Operations for events::translations"
@@ -60572,6 +60576,169 @@
60572
60576
  ]
60573
60577
  }
60574
60578
  },
60579
+ "/events/{eventId}/transfers": {
60580
+ "get": {
60581
+ "operationId": "GetEventPassTransfers",
60582
+ "summary": "Get Event Pass Transfers",
60583
+ "description": "Get Event Pass Transfers endpoint",
60584
+ "parameters": [
60585
+ {
60586
+ "in": "path",
60587
+ "name": "eventId",
60588
+ "schema": {
60589
+ "type": "string"
60590
+ },
60591
+ "description": "The event identifier",
60592
+ "required": true
60593
+ },
60594
+ {
60595
+ "in": "query",
60596
+ "name": "page",
60597
+ "schema": {
60598
+ "type": "integer",
60599
+ "minimum": 1,
60600
+ "default": 1
60601
+ },
60602
+ "description": "Page number",
60603
+ "required": false
60604
+ },
60605
+ {
60606
+ "in": "query",
60607
+ "name": "pageSize",
60608
+ "schema": {
60609
+ "type": "integer",
60610
+ "minimum": 1,
60611
+ "maximum": 100,
60612
+ "default": 25
60613
+ },
60614
+ "description": "Number of items per page",
60615
+ "required": false
60616
+ },
60617
+ {
60618
+ "in": "query",
60619
+ "name": "orderBy",
60620
+ "schema": {
60621
+ "type": "string"
60622
+ },
60623
+ "description": "Field to order by",
60624
+ "required": false
60625
+ },
60626
+ {
60627
+ "in": "query",
60628
+ "name": "search",
60629
+ "schema": {
60630
+ "type": "string"
60631
+ },
60632
+ "description": "Search query",
60633
+ "required": false
60634
+ }
60635
+ ],
60636
+ "responses": {
60637
+ "200": {
60638
+ "description": "Successful response",
60639
+ "content": {
60640
+ "application/json": {
60641
+ "schema": {
60642
+ "type": "object",
60643
+ "properties": {
60644
+ "status": {
60645
+ "type": "string",
60646
+ "enum": [
60647
+ "ok"
60648
+ ]
60649
+ },
60650
+ "message": {
60651
+ "type": "string",
60652
+ "example": "Success message."
60653
+ },
60654
+ "data": {
60655
+ "type": "array",
60656
+ "items": {
60657
+ "$ref": "#/components/schemas/Transfer"
60658
+ }
60659
+ },
60660
+ "count": {
60661
+ "type": "integer",
60662
+ "example": 100
60663
+ }
60664
+ },
60665
+ "required": [
60666
+ "status",
60667
+ "message",
60668
+ "data"
60669
+ ]
60670
+ }
60671
+ }
60672
+ }
60673
+ }
60674
+ },
60675
+ "tags": [
60676
+ "Events::Transfers"
60677
+ ]
60678
+ }
60679
+ },
60680
+ "/events/{eventId}/transfers/{transferId}": {
60681
+ "delete": {
60682
+ "operationId": "CancelEventPassTransfer",
60683
+ "summary": "Cancel Event Pass Transfer",
60684
+ "description": "Cancel Event Pass Transfer endpoint",
60685
+ "parameters": [
60686
+ {
60687
+ "in": "path",
60688
+ "name": "eventId",
60689
+ "schema": {
60690
+ "type": "string"
60691
+ },
60692
+ "description": "The event identifier",
60693
+ "required": true
60694
+ },
60695
+ {
60696
+ "in": "path",
60697
+ "name": "transferId",
60698
+ "schema": {
60699
+ "type": "string"
60700
+ },
60701
+ "description": "The transfer identifier",
60702
+ "required": true
60703
+ }
60704
+ ],
60705
+ "responses": {
60706
+ "200": {
60707
+ "description": "Successful response",
60708
+ "content": {
60709
+ "application/json": {
60710
+ "schema": {
60711
+ "type": "object",
60712
+ "properties": {
60713
+ "status": {
60714
+ "type": "string",
60715
+ "enum": [
60716
+ "ok"
60717
+ ]
60718
+ },
60719
+ "message": {
60720
+ "type": "string",
60721
+ "example": "Success message."
60722
+ },
60723
+ "data": {
60724
+ "type": "object"
60725
+ }
60726
+ },
60727
+ "required": [
60728
+ "status",
60729
+ "message",
60730
+ "data"
60731
+ ]
60732
+ }
60733
+ }
60734
+ }
60735
+ }
60736
+ },
60737
+ "tags": [
60738
+ "Events::Transfers"
60739
+ ]
60740
+ }
60741
+ },
60575
60742
  "/events/{eventId}/translations": {
60576
60743
  "get": {
60577
60744
  "operationId": "GetEventTranslations",
@@ -99931,19 +100098,12 @@
99931
100098
  "properties": {
99932
100099
  "id": {
99933
100100
  "type": "string"
99934
- },
99935
- "email": {
99936
- "type": "string"
99937
- },
99938
- "createdAt": {
99939
- "type": "string"
99940
100101
  }
99941
100102
  },
99942
100103
  "required": [
99943
- "id",
99944
- "email",
99945
- "createdAt"
99946
- ]
100104
+ "id"
100105
+ ],
100106
+ "nullable": true
99947
100107
  },
99948
100108
  "responses": {
99949
100109
  "type": "array",
@@ -106576,49 +106736,60 @@
106576
106736
  }
106577
106737
  ]
106578
106738
  },
106579
- "BaseTransfer": {
106739
+ "Transfer": {
106580
106740
  "type": "object",
106581
106741
  "properties": {
106582
106742
  "id": {
106583
106743
  "type": "string"
106584
106744
  },
106745
+ "passId": {
106746
+ "type": "string"
106747
+ },
106585
106748
  "email": {
106586
106749
  "type": "string"
106587
106750
  },
106588
- "purchaseId": {
106751
+ "message": {
106752
+ "type": "string",
106753
+ "nullable": true
106754
+ },
106755
+ "createdAt": {
106589
106756
  "type": "string"
106590
106757
  },
106591
- "purchase": {
106592
- "$ref": "#/components/schemas/BaseEventPass"
106593
- }
106594
- },
106595
- "required": [
106596
- "id",
106597
- "email",
106598
- "purchaseId",
106599
- "purchase"
106600
- ]
106601
- },
106602
- "Transfer": {
106603
- "allOf": [
106604
- {
106605
- "$ref": "#/components/schemas/BaseTransfer"
106758
+ "eventId": {
106759
+ "type": "string"
106606
106760
  },
106607
- {
106761
+ "event": {
106762
+ "$ref": "#/components/schemas/BaseEvent"
106763
+ },
106764
+ "fromAccountId": {
106765
+ "type": "string"
106766
+ },
106767
+ "fromAccount": {
106608
106768
  "type": "object",
106609
106769
  "properties": {
106610
- "createdAt": {
106611
- "type": "string"
106612
- },
106613
- "updatedAt": {
106770
+ "id": {
106614
106771
  "type": "string"
106615
106772
  }
106616
106773
  },
106617
106774
  "required": [
106618
- "createdAt",
106619
- "updatedAt"
106775
+ "id"
106620
106776
  ]
106777
+ },
106778
+ "pass": {
106779
+ "$ref": "#/components/schemas/BaseEventPass"
106621
106780
  }
106781
+ },
106782
+ "required": [
106783
+ "id",
106784
+ "passId",
106785
+ "email",
106786
+ "message",
106787
+ "createdAt",
106788
+ "eventId",
106789
+ "event",
106790
+ "fromAccountId",
106791
+ "fromAccount",
106792
+ "pass"
106622
106793
  ]
106623
106794
  },
106624
106795
  "BaseUser": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "7.3.1",
3
+ "version": "7.4.0",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",