@connectedxm/client 8.1.5 → 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 +11 -5
- package/dist/index.js +8 -4
- package/package.json +1 -1
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
|
-
|
|
82
|
-
|
|
81
|
+
account = "account",
|
|
82
|
+
thread = "thread",
|
|
83
|
+
content = "content",
|
|
83
84
|
activity = "activity",
|
|
84
|
-
|
|
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;
|
|
@@ -3550,8 +3555,9 @@ interface CompleteEventActivationParams extends MutationParams {
|
|
|
3550
3555
|
passId: string;
|
|
3551
3556
|
activationId: string;
|
|
3552
3557
|
code?: string;
|
|
3558
|
+
imageId?: string;
|
|
3553
3559
|
}
|
|
3554
|
-
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>>;
|
|
3555
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>;
|
|
3556
3562
|
|
|
3557
3563
|
interface BookmarkEventAttendeePassSessionParams extends MutationParams {
|
|
@@ -4538,7 +4544,7 @@ declare const UploadFile: ({ clientApiParams, dataUri, name, }: UploadFileParams
|
|
|
4538
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>;
|
|
4539
4545
|
|
|
4540
4546
|
interface ImageCreateParams {
|
|
4541
|
-
type:
|
|
4547
|
+
type: ImageType;
|
|
4542
4548
|
dataUri: string;
|
|
4543
4549
|
name?: string;
|
|
4544
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["
|
|
8286
|
-
ImageType2["
|
|
8285
|
+
ImageType2["account"] = "account";
|
|
8286
|
+
ImageType2["thread"] = "thread";
|
|
8287
|
+
ImageType2["content"] = "content";
|
|
8287
8288
|
ImageType2["activity"] = "activity";
|
|
8288
|
-
ImageType2["
|
|
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") {
|