@connectedxm/client 8.1.4 → 8.1.6

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;
@@ -1650,6 +1652,7 @@ interface BaseEventActivation {
1650
1652
  type: EventActivationType;
1651
1653
  accessLevel: TicketEventAccessLevel;
1652
1654
  sortOrder: number;
1655
+ imageUpload: boolean;
1653
1656
  }
1654
1657
  interface EventActivation extends BaseEventActivation {
1655
1658
  event: BaseEvent;
@@ -1665,6 +1668,8 @@ interface BaseEventActivationCompletion {
1665
1668
  id: string;
1666
1669
  earnedPoints: number;
1667
1670
  createdAt: string;
1671
+ imageId: string | null;
1672
+ image: BaseImage | null;
1668
1673
  }
1669
1674
  interface EventActivationCompletion extends BaseEventActivationCompletion {
1670
1675
  eventId: string;
@@ -3094,6 +3099,7 @@ interface EventConfig {
3094
3099
  }[];
3095
3100
  }[];
3096
3101
  OPTIONS: Record<string, any> | null;
3102
+ BUILD_MODE: boolean;
3097
3103
  }
3098
3104
 
3099
3105
  interface ClientApiParams {
@@ -3549,8 +3555,9 @@ interface CompleteEventActivationParams extends MutationParams {
3549
3555
  passId: string;
3550
3556
  activationId: string;
3551
3557
  code?: string;
3558
+ imageId?: string;
3552
3559
  }
3553
- declare const CompleteEventActivation: ({ eventId, passId, activationId, code, clientApiParams, queryClient, }: CompleteEventActivationParams) => Promise<ConnectedXMResponse<EventActivation>>;
3560
+ declare const CompleteEventActivation: ({ eventId, passId, activationId, code, imageId, clientApiParams, queryClient, }: CompleteEventActivationParams) => Promise<ConnectedXMResponse<EventActivation>>;
3554
3561
  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>;
3555
3562
 
3556
3563
  interface BookmarkEventAttendeePassSessionParams extends MutationParams {
@@ -4537,7 +4544,7 @@ declare const UploadFile: ({ clientApiParams, dataUri, name, }: UploadFileParams
4537
4544
  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>;
4538
4545
 
4539
4546
  interface ImageCreateParams {
4540
- type: "activity" | "thread" | "content";
4547
+ type: ImageType;
4541
4548
  dataUri: string;
4542
4549
  name?: string;
4543
4550
  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.4",
3
+ "version": "8.1.6",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",