@connectedxm/client 8.1.5 → 8.1.7

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.d.ts CHANGED
@@ -78,10 +78,12 @@ interface BaseImage {
78
78
  moderation: "safe" | "warning";
79
79
  }
80
80
  declare enum ImageType {
81
- admin = "admin",
82
- people = "people",
81
+ account = "account",
82
+ thread = "thread",
83
+ content = "content",
83
84
  activity = "activity",
84
- banner = "banner"
85
+ event = "event",
86
+ activation = "activation"
85
87
  }
86
88
  interface Image extends BaseImage {
87
89
  type: ImageType;
@@ -280,6 +282,7 @@ interface BaseActivity {
280
282
  eventId: string | null;
281
283
  meetingId: string | null;
282
284
  pinned: boolean;
285
+ pinnedExplore: boolean;
283
286
  contentId: string | null;
284
287
  commentedId: string | null;
285
288
  createdAt: string;
@@ -1650,6 +1653,7 @@ interface BaseEventActivation {
1650
1653
  type: EventActivationType;
1651
1654
  accessLevel: TicketEventAccessLevel;
1652
1655
  sortOrder: number;
1656
+ imageUpload: boolean;
1653
1657
  }
1654
1658
  interface EventActivation extends BaseEventActivation {
1655
1659
  event: BaseEvent;
@@ -1665,6 +1669,8 @@ interface BaseEventActivationCompletion {
1665
1669
  id: string;
1666
1670
  earnedPoints: number;
1667
1671
  createdAt: string;
1672
+ imageId: string | null;
1673
+ image: BaseImage | null;
1668
1674
  }
1669
1675
  interface EventActivationCompletion extends BaseEventActivationCompletion {
1670
1676
  eventId: string;
@@ -3550,8 +3556,9 @@ interface CompleteEventActivationParams extends MutationParams {
3550
3556
  passId: string;
3551
3557
  activationId: string;
3552
3558
  code?: string;
3559
+ imageId?: string;
3553
3560
  }
3554
- declare const CompleteEventActivation: ({ eventId, passId, activationId, code, clientApiParams, queryClient, }: CompleteEventActivationParams) => Promise<ConnectedXMResponse<EventActivation>>;
3561
+ declare const CompleteEventActivation: ({ eventId, passId, activationId, code, imageId, clientApiParams, queryClient, }: CompleteEventActivationParams) => Promise<ConnectedXMResponse<EventActivation>>;
3555
3562
  declare const useCompleteEventActivation: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof CompleteEventActivation>>, Omit<CompleteEventActivationParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<EventActivation>, axios.AxiosError<ConnectedXMResponse<ConnectedXMError | null>, any>, Omit<CompleteEventActivationParams, "queryClient" | "clientApiParams">, unknown>;
3556
3563
 
3557
3564
  interface BookmarkEventAttendeePassSessionParams extends MutationParams {
@@ -4538,7 +4545,7 @@ declare const UploadFile: ({ clientApiParams, dataUri, name, }: UploadFileParams
4538
4545
  declare const useUploadFile: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof UploadFile>>, Omit<UploadFileParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<File>, axios.AxiosError<ConnectedXMResponse<ConnectedXMError | null>, any>, Omit<UploadFileParams, "queryClient" | "clientApiParams">, unknown>;
4539
4546
 
4540
4547
  interface ImageCreateParams {
4541
- type: "activity" | "thread" | "content";
4548
+ type: ImageType;
4542
4549
  dataUri: string;
4543
4550
  name?: string;
4544
4551
  description?: string;
package/dist/index.js CHANGED
@@ -8282,10 +8282,12 @@ var OrganizationActivityPreference = /* @__PURE__ */ ((OrganizationActivityPrefe
8282
8282
  return OrganizationActivityPreference2;
8283
8283
  })(OrganizationActivityPreference || {});
8284
8284
  var ImageType = /* @__PURE__ */ ((ImageType2) => {
8285
- ImageType2["admin"] = "admin";
8286
- ImageType2["people"] = "people";
8285
+ ImageType2["account"] = "account";
8286
+ ImageType2["thread"] = "thread";
8287
+ ImageType2["content"] = "content";
8287
8288
  ImageType2["activity"] = "activity";
8288
- ImageType2["banner"] = "banner";
8289
+ ImageType2["event"] = "event";
8290
+ ImageType2["activation"] = "activation";
8289
8291
  return ImageType2;
8290
8292
  })(ImageType || {});
8291
8293
  var isTypeImage = (image) => {
@@ -9980,6 +9982,7 @@ var CompleteEventActivation = async ({
9980
9982
  passId,
9981
9983
  activationId,
9982
9984
  code,
9985
+ imageId,
9983
9986
  clientApiParams,
9984
9987
  queryClient
9985
9988
  }) => {
@@ -9987,7 +9990,8 @@ var CompleteEventActivation = async ({
9987
9990
  const { data } = await clientApi.post(
9988
9991
  `/events/${eventId}/activations/${passId}/${activationId}`,
9989
9992
  {
9990
- code: code || void 0
9993
+ code: code || void 0,
9994
+ imageId: imageId || void 0
9991
9995
  }
9992
9996
  );
9993
9997
  if (queryClient && data.status === "ok") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "8.1.5",
3
+ "version": "8.1.7",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",