@connectedxm/admin 6.13.1 → 6.13.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
@@ -25803,43 +25803,44 @@ var useUpdateEventMediaItem = (options = {}) => {
25803
25803
  return useConnectedMutation(UpdateEventMediaItem, options);
25804
25804
  };
25805
25805
 
25806
- // src/mutations/events/on-site/useUpdateEventCheckinCode.ts
25807
- var UpdateEventCheckinCode = async ({
25806
+ // src/mutations/events/on-site/useUpdateEventBadgeTemplate.ts
25807
+ var UpdateEventBadgeTemplate = async ({
25808
25808
  eventId,
25809
+ badgeTemplate,
25809
25810
  adminApiParams,
25810
25811
  queryClient
25811
25812
  }) => {
25812
25813
  const connectedXM = await GetAdminAPI(adminApiParams);
25813
- const { data } = await connectedXM.post(
25814
- `/events/${eventId}/on-site`
25814
+ const { data } = await connectedXM.put(
25815
+ `/events/${eventId}/template`,
25816
+ badgeTemplate
25815
25817
  );
25816
25818
  if (queryClient && data.status === "ok") {
25817
25819
  SET_EVENT_ON_SITE_QUERY_DATA(queryClient, [eventId], data);
25818
25820
  }
25819
25821
  return data;
25820
25822
  };
25821
- var useUpdateEventCheckinCode = (options = {}) => {
25822
- return useConnectedMutation(UpdateEventCheckinCode, options);
25823
+ var useUpdateEventBadgeTemplate = (options = {}) => {
25824
+ return useConnectedMutation(UpdateEventBadgeTemplate, options);
25823
25825
  };
25824
25826
 
25825
- // src/mutations/events/on-site/useUpdateEventZplTemplate.ts
25826
- var UpdateEventZplTemplate = async ({
25827
+ // src/mutations/events/on-site/useUpdateEventCheckinCode.ts
25828
+ var UpdateEventCheckinCode = async ({
25827
25829
  eventId,
25828
- zplTemplate,
25829
25830
  adminApiParams,
25830
25831
  queryClient
25831
25832
  }) => {
25832
25833
  const connectedXM = await GetAdminAPI(adminApiParams);
25833
- const { data } = await connectedXM.put(`/events/${eventId}/zpl-template`, {
25834
- zplTemplate
25835
- });
25834
+ const { data } = await connectedXM.post(
25835
+ `/events/${eventId}/on-site`
25836
+ );
25836
25837
  if (queryClient && data.status === "ok") {
25837
25838
  SET_EVENT_ON_SITE_QUERY_DATA(queryClient, [eventId], data);
25838
25839
  }
25839
25840
  return data;
25840
25841
  };
25841
- var useUpdateEventZplTemplate = (options = {}) => {
25842
- return useConnectedMutation(UpdateEventZplTemplate, options);
25842
+ var useUpdateEventCheckinCode = (options = {}) => {
25843
+ return useConnectedMutation(UpdateEventCheckinCode, options);
25843
25844
  };
25844
25845
 
25845
25846
  // src/mutations/events/packages/passes/useCreateEventPackagePass.ts
@@ -39703,6 +39704,7 @@ export {
39703
39704
  UpdateEventAttendee,
39704
39705
  UpdateEventAttendeePackage,
39705
39706
  UpdateEventAttribute,
39707
+ UpdateEventBadgeTemplate,
39706
39708
  UpdateEventBlock,
39707
39709
  UpdateEventCheckinCode,
39708
39710
  UpdateEventCoupon,
@@ -39772,7 +39774,6 @@ export {
39772
39774
  UpdateEventTrack,
39773
39775
  UpdateEventTrackTranslation,
39774
39776
  UpdateEventTranslation,
39775
- UpdateEventZplTemplate,
39776
39777
  UpdateFile,
39777
39778
  UpdateGroup,
39778
39779
  UpdateGroupTranslation,
@@ -40861,6 +40862,7 @@ export {
40861
40862
  useUpdateEventAttendee,
40862
40863
  useUpdateEventAttendeePackage,
40863
40864
  useUpdateEventAttribute,
40865
+ useUpdateEventBadgeTemplate,
40864
40866
  useUpdateEventBlock,
40865
40867
  useUpdateEventCheckinCode,
40866
40868
  useUpdateEventCoupon,
@@ -40930,7 +40932,6 @@ export {
40930
40932
  useUpdateEventTrack,
40931
40933
  useUpdateEventTrackTranslation,
40932
40934
  useUpdateEventTranslation,
40933
- useUpdateEventZplTemplate,
40934
40935
  useUpdateFile,
40935
40936
  useUpdateGroup,
40936
40937
  useUpdateGroupTranslation,
package/openapi.json CHANGED
@@ -43713,6 +43713,69 @@
43713
43713
  ]
43714
43714
  }
43715
43715
  },
43716
+ "/events/{eventId}/template": {
43717
+ "put": {
43718
+ "operationId": "UpdateEventBadgeTemplate",
43719
+ "summary": "Update Event Badge Template",
43720
+ "description": "Update Event Badge Template endpoint",
43721
+ "parameters": [
43722
+ {
43723
+ "in": "path",
43724
+ "name": "eventId",
43725
+ "schema": {
43726
+ "type": "string"
43727
+ },
43728
+ "description": "The event identifier",
43729
+ "required": true
43730
+ }
43731
+ ],
43732
+ "requestBody": {
43733
+ "required": true,
43734
+ "content": {
43735
+ "application/json": {
43736
+ "schema": {
43737
+ "type": "object"
43738
+ }
43739
+ }
43740
+ }
43741
+ },
43742
+ "responses": {
43743
+ "200": {
43744
+ "description": "Successful response",
43745
+ "content": {
43746
+ "application/json": {
43747
+ "schema": {
43748
+ "type": "object",
43749
+ "properties": {
43750
+ "status": {
43751
+ "type": "string",
43752
+ "enum": [
43753
+ "ok"
43754
+ ]
43755
+ },
43756
+ "message": {
43757
+ "type": "string",
43758
+ "example": "Success message."
43759
+ },
43760
+ "data": {
43761
+ "type": "object"
43762
+ }
43763
+ },
43764
+ "required": [
43765
+ "status",
43766
+ "message",
43767
+ "data"
43768
+ ]
43769
+ }
43770
+ }
43771
+ }
43772
+ }
43773
+ },
43774
+ "tags": [
43775
+ "Events::OnSite"
43776
+ ]
43777
+ }
43778
+ },
43716
43779
  "/events/{eventId}/threads": {
43717
43780
  "get": {
43718
43781
  "operationId": "GetEventThreads",
@@ -44721,68 +44784,6 @@
44721
44784
  ]
44722
44785
  }
44723
44786
  },
44724
- "/events/{eventId}/zpl-template": {
44725
- "put": {
44726
- "operationId": "UpdateEventZplTemplate",
44727
- "summary": "Update Event Zpl Template",
44728
- "description": "Update Event Zpl Template endpoint",
44729
- "parameters": [
44730
- {
44731
- "in": "path",
44732
- "name": "eventId",
44733
- "schema": {
44734
- "type": "string"
44735
- },
44736
- "description": "The event identifier",
44737
- "required": true
44738
- },
44739
- {
44740
- "in": "query",
44741
- "name": "zplTemplate",
44742
- "schema": {
44743
- "type": "string"
44744
- },
44745
- "description": "Filter by zplTemplate",
44746
- "required": true
44747
- }
44748
- ],
44749
- "responses": {
44750
- "200": {
44751
- "description": "Successful response",
44752
- "content": {
44753
- "application/json": {
44754
- "schema": {
44755
- "type": "object",
44756
- "properties": {
44757
- "status": {
44758
- "type": "string",
44759
- "enum": [
44760
- "ok"
44761
- ]
44762
- },
44763
- "message": {
44764
- "type": "string",
44765
- "example": "Success message."
44766
- },
44767
- "data": {
44768
- "$ref": "#/components/schemas/EventOnSite"
44769
- }
44770
- },
44771
- "required": [
44772
- "status",
44773
- "message",
44774
- "data"
44775
- ]
44776
- }
44777
- }
44778
- }
44779
- }
44780
- },
44781
- "tags": [
44782
- "Events::OnSite"
44783
- ]
44784
- }
44785
- },
44786
44787
  "/files": {
44787
44788
  "get": {
44788
44789
  "operationId": "GetFiles",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.13.1",
3
+ "version": "6.13.2",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",