@dev-crew-berlin/enter-js-utils 0.90.0 → 0.91.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/api-client/index.js
CHANGED
|
@@ -207,7 +207,12 @@ class API extends APIBase {
|
|
|
207
207
|
const instanceName = args.instanceName;
|
|
208
208
|
const attendeeId = args.attendeeId;
|
|
209
209
|
const emailName = args.emailName;
|
|
210
|
-
|
|
210
|
+
const query = new URLSearchParams();
|
|
211
|
+
if (args.mailingId) {
|
|
212
|
+
query.append('mailing_id', args.mailingId);
|
|
213
|
+
}
|
|
214
|
+
const queryString = `?${query.toString()}`;
|
|
215
|
+
return this.get(`/instances/${instanceName}/attendees/${attendeeId}/emails/${emailName}/render${queryString}`, options);
|
|
211
216
|
}
|
|
212
217
|
|
|
213
218
|
/**
|
package/dist/lib/tokens.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function parseUnsubscribeToken(tokenString: string | undefined, o
|
|
|
33
33
|
export declare function parseEmailHtmlToken(tokenString: string | undefined, options: TokenOptions): Result<TokenValidationError, {
|
|
34
34
|
attendeeId: string;
|
|
35
35
|
emailName: string;
|
|
36
|
-
mailingId
|
|
36
|
+
mailingId?: string;
|
|
37
37
|
}>;
|
|
38
38
|
export declare function readRegistrationToken(getCookie: CookieGetter, options: TokenOptions & RegistrationTokenOptions): Result<TokenValidationError, RegistrationToken>;
|
|
39
39
|
export declare function storeRegistrationToken(token: string, setCookie: CookieSetter, options?: RegistrationTokenOptions): void;
|
package/dist/lib/tokens.js
CHANGED
|
@@ -68,7 +68,7 @@ export function parseEmailHtmlToken(tokenString, options) {
|
|
|
68
68
|
return success({
|
|
69
69
|
attendeeId: payload.attendee_id,
|
|
70
70
|
emailName: payload.email_name,
|
|
71
|
-
mailingId: payload.mailing_id ??
|
|
71
|
+
mailingId: payload.mailing_id ?? undefined
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
export function readRegistrationToken(getCookie, options) {
|