@iterable/api 0.4.0 → 0.5.1
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/client/export.d.ts +1 -2
- package/dist/client/export.d.ts.map +1 -1
- package/dist/client/export.js +4 -4
- package/dist/client/export.js.map +1 -1
- package/dist/client/index.d.ts +9 -9
- package/dist/client/journeys.d.ts +1 -2
- package/dist/client/journeys.d.ts.map +1 -1
- package/dist/client/journeys.js +2 -1
- package/dist/client/journeys.js.map +1 -1
- package/dist/client/messaging.d.ts.map +1 -1
- package/dist/client/messaging.js +3 -3
- package/dist/client/messaging.js.map +1 -1
- package/dist/client/snippets.d.ts +3 -3
- package/dist/client/snippets.d.ts.map +1 -1
- package/dist/client/snippets.js +5 -4
- package/dist/client/snippets.js.map +1 -1
- package/dist/client/subscriptions.d.ts +1 -2
- package/dist/client/subscriptions.d.ts.map +1 -1
- package/dist/client/subscriptions.js +6 -5
- package/dist/client/subscriptions.js.map +1 -1
- package/dist/client/templates.d.ts +12 -8
- package/dist/client/templates.d.ts.map +1 -1
- package/dist/client/templates.js +8 -8
- package/dist/client/templates.js.map +1 -1
- package/dist/client/users.d.ts +1 -2
- package/dist/client/users.d.ts.map +1 -1
- package/dist/client/users.js +9 -11
- package/dist/client/users.js.map +1 -1
- package/dist/types/export.d.ts +69 -24
- package/dist/types/export.d.ts.map +1 -1
- package/dist/types/export.js +49 -0
- package/dist/types/export.js.map +1 -1
- package/dist/types/messaging.d.ts +159 -1
- package/dist/types/messaging.d.ts.map +1 -1
- package/dist/types/messaging.js +83 -1
- package/dist/types/messaging.js.map +1 -1
- package/dist/types/snippets.d.ts +6 -9
- package/dist/types/snippets.d.ts.map +1 -1
- package/dist/types/snippets.js +15 -17
- package/dist/types/snippets.js.map +1 -1
- package/dist/types/templates.d.ts +2 -2
- package/dist/types/templates.d.ts.map +1 -1
- package/dist/types/templates.js +1 -1
- package/dist/types/templates.js.map +1 -1
- package/dist/types/users.d.ts +2 -2
- package/dist/types/users.d.ts.map +1 -1
- package/dist/types/users.js +4 -2
- package/dist/types/users.js.map +1 -1
- package/package.json +1 -1
package/dist/client/export.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CancelExportJobParams, CancelExportJobResponse, GetExportFilesParams, GetExportFilesResponse, GetExportJobsParams, GetExportJobsResponse, StartExportJobParams, StartExportJobResponse } from "../types/export.js";
|
|
2
|
-
import type { Constructor } from "./base.js";
|
|
3
|
-
import type { BaseIterableClient } from "./base.js";
|
|
2
|
+
import type { BaseIterableClient, Constructor } from "./base.js";
|
|
4
3
|
/**
|
|
5
4
|
* Export operations mixin
|
|
6
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/client/export.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/client/export.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EAEvB,oBAAoB,EACpB,sBAAsB,EAEtB,mBAAmB,EACnB,qBAAqB,EAErB,oBAAoB,EACpB,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEjE;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;;+BAG1D,mBAAmB,GAC3B,OAAO,CAAC,qBAAqB,CAAC;+BAWvB,oBAAoB,GAC3B,OAAO,CAAC,sBAAsB,CAAC;+BAWxB,oBAAoB,GAC3B,OAAO,CAAC,sBAAsB,CAAC;gCAMxB,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC;;;;;;;;kBAM83H,CAAC;mBAAO,CAAC;;;;;MAD76H"}
|
package/dist/client/export.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StartExportJobResponseSchema, } from "../types/export.js";
|
|
1
|
+
import { CancelExportJobResponseSchema, GetExportFilesResponseSchema, GetExportJobsResponseSchema, StartExportJobResponseSchema, } from "../types/export.js";
|
|
2
2
|
/**
|
|
3
3
|
* Export operations mixin
|
|
4
4
|
*/
|
|
@@ -9,14 +9,14 @@ export function Export(Base) {
|
|
|
9
9
|
if (params?.jobState)
|
|
10
10
|
urlParams.append("jobState", params.jobState);
|
|
11
11
|
const response = await this.client.get(`/api/export/jobs?${urlParams.toString()}`);
|
|
12
|
-
return response
|
|
12
|
+
return this.validateResponse(response, GetExportJobsResponseSchema);
|
|
13
13
|
}
|
|
14
14
|
async getExportFiles(params) {
|
|
15
15
|
const urlParams = new URLSearchParams();
|
|
16
16
|
if (params.startAfter)
|
|
17
17
|
urlParams.append("startAfter", params.startAfter);
|
|
18
18
|
const response = await this.client.get(`/api/export/${params.jobId}/files?${urlParams.toString()}`);
|
|
19
|
-
return response
|
|
19
|
+
return this.validateResponse(response, GetExportFilesResponseSchema);
|
|
20
20
|
}
|
|
21
21
|
async startExportJob(params) {
|
|
22
22
|
const response = await this.client.post("/api/export/start", params);
|
|
@@ -24,7 +24,7 @@ export function Export(Base) {
|
|
|
24
24
|
}
|
|
25
25
|
async cancelExportJob(params) {
|
|
26
26
|
const response = await this.client.delete(`/api/export/${params.jobId}`);
|
|
27
|
-
return response
|
|
27
|
+
return this.validateResponse(response, CancelExportJobResponseSchema);
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/client/export.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/client/export.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,6BAA6B,EAG7B,4BAA4B,EAG5B,2BAA2B,EAG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AC,MAAM,CAAC,MAAM,CAAC,eAAe,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;YACzE,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QACxE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/client/index.d.ts
CHANGED
|
@@ -181,13 +181,13 @@ declare const IterableClient_base: new (...args: any[]) => BaseIterableClient &
|
|
|
181
181
|
getSnippets(opts?: {
|
|
182
182
|
signal?: AbortSignal;
|
|
183
183
|
} | undefined): Promise<import("../index.js").GetSnippetsResponse>;
|
|
184
|
-
createSnippet(params: import("../index.js").
|
|
184
|
+
createSnippet(params: import("../index.js").CreateSnippetParams, opts?: {
|
|
185
185
|
signal?: AbortSignal;
|
|
186
186
|
} | undefined): Promise<import("../index.js").CreateSnippetResponse>;
|
|
187
187
|
getSnippet(params: import("../index.js").GetSnippetParams, opts?: {
|
|
188
188
|
signal?: AbortSignal;
|
|
189
189
|
} | undefined): Promise<import("../index.js").GetSnippetResponse>;
|
|
190
|
-
updateSnippet(params: import("../index.js").UpdateSnippetParams,
|
|
190
|
+
updateSnippet(params: import("../index.js").UpdateSnippetParams, opts?: {
|
|
191
191
|
signal?: AbortSignal;
|
|
192
192
|
} | undefined): Promise<import("../index.js").UpdateSnippetResponse>;
|
|
193
193
|
deleteSnippet(params: import("../index.js").DeleteSnippetParams, opts?: {
|
|
@@ -227,29 +227,29 @@ declare const IterableClient_base: new (...args: any[]) => BaseIterableClient &
|
|
|
227
227
|
"__#private@#getTemplateByType"<T>(pathSegment: string, params: import("../index.js").GetTemplateParams, schema: import("zod").ZodType<T, unknown, import("zod/v4/core").$ZodTypeInternals<T, unknown>>): Promise<T>;
|
|
228
228
|
"__#private@#createTemplateByType"<T>(pathSegment: string, template: T): Promise<import("../index.js").IterableSuccessResponse>;
|
|
229
229
|
"__#private@#updateTemplateByType"<T>(pathSegment: string, options: T): Promise<import("../index.js").IterableSuccessResponse>;
|
|
230
|
-
|
|
231
|
-
"__#private@#sendTemplateProof"(pathSegment: string, request: import("../index.js").TemplateProofRequest): Promise<import("../index.js").IterableSuccessResponse>;
|
|
230
|
+
"__#private@#sendTemplateProof"(pathSegment: string, request: import("../index.js").SendTemplateProofParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
232
231
|
"__#private@#previewTemplate"(pathSegment: string, params: import("../index.js").PreviewTemplateParams): Promise<string>;
|
|
233
232
|
getTemplates(options?: import("../index.js").GetTemplatesParams): Promise<import("../index.js").GetTemplatesResponse>;
|
|
234
233
|
getTemplateByClientId(clientTemplateId: string): Promise<import("../index.js").GetTemplateByClientIdResponse>;
|
|
235
|
-
bulkDeleteTemplates(params: import("../index.js").BulkDeleteTemplatesParams): Promise<import("../index.js").
|
|
234
|
+
bulkDeleteTemplates(params: import("../index.js").BulkDeleteTemplatesParams): Promise<import("../index.js").BulkDeleteTemplatesResponse>;
|
|
235
|
+
deleteTemplates(templateIds: number[]): Promise<import("../index.js").BulkDeleteTemplatesResponse>;
|
|
236
236
|
getEmailTemplate(params: import("../index.js").GetTemplateParams): Promise<import("../index.js").EmailTemplate>;
|
|
237
237
|
upsertEmailTemplate(template: import("../index.js").UpsertEmailTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
238
238
|
updateEmailTemplate(options: import("../index.js").UpdateEmailTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
239
|
-
sendEmailTemplateProof(request: import("../index.js").
|
|
239
|
+
sendEmailTemplateProof(request: import("../index.js").SendTemplateProofParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
240
240
|
previewEmailTemplate(params: import("../index.js").PreviewTemplateParams): Promise<string>;
|
|
241
241
|
getSMSTemplate(params: import("../index.js").GetTemplateParams): Promise<import("../index.js").SMSTemplate>;
|
|
242
242
|
upsertSMSTemplate(template: import("../index.js").UpsertSMSTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
243
243
|
updateSMSTemplate(options: import("../index.js").UpdateSMSTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
244
|
-
sendSMSTemplateProof(request: import("../index.js").
|
|
244
|
+
sendSMSTemplateProof(request: import("../index.js").SendTemplateProofParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
245
245
|
getPushTemplate(params: import("../index.js").GetTemplateParams): Promise<import("../index.js").PushTemplate>;
|
|
246
246
|
upsertPushTemplate(template: import("../index.js").UpsertPushTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
247
247
|
updatePushTemplate(options: import("../index.js").UpdatePushTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
248
|
-
sendPushTemplateProof(request: import("../index.js").
|
|
248
|
+
sendPushTemplateProof(request: import("../index.js").SendTemplateProofParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
249
249
|
getInAppTemplate(params: import("../index.js").GetTemplateParams): Promise<import("../index.js").InAppTemplate>;
|
|
250
250
|
upsertInAppTemplate(template: import("../index.js").UpsertInAppTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
251
251
|
updateInAppTemplate(options: import("../index.js").UpdateInAppTemplateParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
252
|
-
sendInAppTemplateProof(request: import("../index.js").
|
|
252
|
+
sendInAppTemplateProof(request: import("../index.js").SendTemplateProofParams): Promise<import("../index.js").IterableSuccessResponse>;
|
|
253
253
|
previewInAppTemplate(params: import("../index.js").PreviewTemplateParams): Promise<string>;
|
|
254
254
|
client: AxiosInstance;
|
|
255
255
|
"__#private@#httpAgent"?: import("http").Agent;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IterableSuccessResponse } from "../types/common.js";
|
|
2
2
|
import { GetJourneysParams, GetJourneysResponse, TriggerJourneyParams } from "../types/journeys.js";
|
|
3
|
-
import type { Constructor } from "./base.js";
|
|
4
|
-
import type { BaseIterableClient } from "./base.js";
|
|
3
|
+
import type { BaseIterableClient, Constructor } from "./base.js";
|
|
5
4
|
/**
|
|
6
5
|
* Journeys operations mixin
|
|
7
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journeys.d.ts","sourceRoot":"","sources":["../../src/client/journeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"journeys.d.ts","sourceRoot":"","sources":["../../src/client/journeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAEnB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEjE;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;;gCAG5D,oBAAoB,GAC5B,OAAO,CAAC,uBAAuB,CAAC;6BASxB,iBAAiB,GACzB,OAAO,CAAC,mBAAmB,CAAC;;;;;;;;kBAwB4qI,CAAC;mBAAO,CAAC;;;;;MADvtI"}
|
package/dist/client/journeys.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { formatSortParam, IterableSuccessResponseSchema, } from "../types/common.js";
|
|
2
|
+
import { GetJourneysResponseSchema, } from "../types/journeys.js";
|
|
2
3
|
/**
|
|
3
4
|
* Journeys operations mixin
|
|
4
5
|
*/
|
|
@@ -25,7 +26,7 @@ export function Journeys(Base) {
|
|
|
25
26
|
}
|
|
26
27
|
const url = `/api/journeys?${queryParams.toString()}`;
|
|
27
28
|
const response = await this.client.get(url);
|
|
28
|
-
return response
|
|
29
|
+
return this.validateResponse(response, GetJourneysResponseSchema);
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journeys.js","sourceRoot":"","sources":["../../src/client/journeys.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"journeys.js","sourceRoot":"","sources":["../../src/client/journeys.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,yBAAyB,GAE1B,MAAM,sBAAsB,CAAC;AAG9B;;GAEG;AACH,MAAM,UAAU,QAAQ,CAA4C,IAAO;IACzE,OAAO,KAAM,SAAQ,IAAI;QACvB,KAAK,CAAC,cAAc,CAClB,OAA6B;YAE7B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACrC,gCAAgC,EAChC,OAAO,CACR,CAAC;YACF,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QACxE,CAAC;QAED,KAAK,CAAC,WAAW,CACf,MAA0B;YAE1B,wEAAwE;YACxE,MAAM,IAAI,GAAG,MAAM,EAAE,IAAI,IAAI,CAAC,CAAC;YAC/B,MAAM,QAAQ,GAAG,MAAM,EAAE,QAAQ,IAAI,EAAE,CAAC;YACxC,MAAM,IAAI,GAAG,MAAM,EAAE,IAAI,CAAC;YAE1B,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;YAC1C,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC5C,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;YAEpD,MAAM,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;YACzC,IAAI,UAAU,EAAE,CAAC;gBACf,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;YACzC,CAAC;YACD,IAAI,MAAM,EAAE,KAAK,EAAE,CAAC;gBAClB,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;YACtE,CAAC;YAED,MAAM,GAAG,GAAG,iBAAiB,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC;YACtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC5C,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,yBAAyB,CAAC,CAAC;QACpE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/client/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/client/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAEhB,wBAAwB,EAExB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EAExB,oBAAoB,EAEpB,eAAe,EACf,eAAe,EACf,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEjE;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;;2BAI7D,eAAe,GACvB,OAAO,CAAC,uBAAuB,CAAC;6BAMxB,iBAAiB,GACzB,OAAO,CAAC,uBAAuB,CAAC;yBAMZ,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC;2BAM5D,eAAe,GACvB,OAAO,CAAC,uBAAuB,CAAC;0BAMX,cAAc,GAAG,OAAO,CAAC,uBAAuB,CAAC;4BAM9D,gBAAgB,GACxB,OAAO,CAAC,uBAAuB,CAAC;6BAOxB,iBAAiB,GACzB,OAAO,CAAC,uBAAuB,CAAC;+BAMxB,mBAAmB,GAC3B,OAAO,CAAC,uBAAuB,CAAC;8BAOxB,kBAAkB,GAC1B,OAAO,CAAC,uBAAuB,CAAC;gCAMxB,oBAAoB,GAC5B,OAAO,CAAC,uBAAuB,CAAC;kCAOxB,sBAAsB,GAC9B,OAAO,CAAC,wBAAwB,CAAC;2BAczB,eAAe,GACvB,OAAO,CAAC,uBAAuB,CAAC;4BAMzB,iBAAiB,GACxB,OAAO,CAAC,uBAAuB,CAAC;oCAOzB,yBAAyB,GAChC,OAAO,CAAC,wBAAwB,CAAC;uBA8Bf,OAAO,CAAC,gBAAgB,CAAC;2BAMrB,OAAO,CAAC,oBAAoB,CAAC;;;;;;;;kBALlC,CAAC;mBAAO,CAAC;;;;;MAUhC"}
|
package/dist/client/messaging.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IterableSuccessResponseSchema } from "../types/common.js";
|
|
2
|
-
import { ChannelsResponseSchema, GetInAppMessagesResponseSchema, MessageTypesResponseSchema, } from "../types/messaging.js";
|
|
1
|
+
import { IterableSuccessResponseSchema, } from "../types/common.js";
|
|
2
|
+
import { ChannelsResponseSchema, EmbeddedMessagesResponseSchema, GetInAppMessagesResponseSchema, MessageTypesResponseSchema, } from "../types/messaging.js";
|
|
3
3
|
/**
|
|
4
4
|
* Messaging operations mixin
|
|
5
5
|
*/
|
|
@@ -93,7 +93,7 @@ export function Messaging(Base) {
|
|
|
93
93
|
params.currentMessageIds.forEach((id) => queryParams.append("currentMessageIds", id));
|
|
94
94
|
}
|
|
95
95
|
const response = await this.client.get(`/api/embedded-messaging/messages?${queryParams.toString()}`);
|
|
96
|
-
return response
|
|
96
|
+
return this.validateResponse(response, EmbeddedMessagesResponseSchema);
|
|
97
97
|
}
|
|
98
98
|
// get available message channels
|
|
99
99
|
async getChannels() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.js","sourceRoot":"","sources":["../../src/client/messaging.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messaging.js","sourceRoot":"","sources":["../../src/client/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAQL,sBAAsB,EAEtB,8BAA8B,EAI9B,8BAA8B,EAE9B,0BAA0B,GAO3B,MAAM,uBAAuB,CAAC;AAG/B;;GAEG;AACH,MAAM,UAAU,SAAS,CAA4C,IAAO;IAC1E,OAAO,KAAM,SAAQ,IAAI;QACvB,gBAAgB;QAChB,KAAK,CAAC,SAAS,CACb,OAAwB;YAExB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;YACtE,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QACxE,CAAC;QAED,KAAK,CAAC,WAAW,CACf,OAA0B;YAE1B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;YACtE,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QACxE,CAAC;QAED,MAAM;QACN,KAAK,CAAC,OAAO,CAAC,OAAsB;YAClC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC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,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CACtC,WAAW,CAAC,MAAM,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAC5C,CAAC;YACJ,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,oCAAoC,WAAW,CAAC,QAAQ,EAAE,EAAE,CAC7D,CAAC;YACF,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,8BAA8B,CAAC,CAAC;QACzE,CAAC;QAED,iCAAiC;QACjC,KAAK,CAAC,WAAW;YACf,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YACxD,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;QACjE,CAAC;QAED,2CAA2C;QAC3C,KAAK,CAAC,eAAe;YACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;YAC5D,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,0BAA0B,CAAC,CAAC;QACrE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateSnippetParams, CreateSnippetResponse, DeleteSnippetParams, DeleteSnippetResponse, GetSnippetParams, GetSnippetResponse, GetSnippetsResponse, UpdateSnippetParams, UpdateSnippetResponse } from "../types/snippets.js";
|
|
2
2
|
import type { BaseIterableClient, Constructor } from "./base.js";
|
|
3
3
|
/**
|
|
4
4
|
* Snippets operations mixin
|
|
@@ -8,13 +8,13 @@ export declare function Snippets<T extends Constructor<BaseIterableClient>>(Base
|
|
|
8
8
|
getSnippets(opts?: {
|
|
9
9
|
signal?: AbortSignal;
|
|
10
10
|
}): Promise<GetSnippetsResponse>;
|
|
11
|
-
createSnippet(params:
|
|
11
|
+
createSnippet(params: CreateSnippetParams, opts?: {
|
|
12
12
|
signal?: AbortSignal;
|
|
13
13
|
}): Promise<CreateSnippetResponse>;
|
|
14
14
|
getSnippet(params: GetSnippetParams, opts?: {
|
|
15
15
|
signal?: AbortSignal;
|
|
16
16
|
}): Promise<GetSnippetResponse>;
|
|
17
|
-
updateSnippet(params: UpdateSnippetParams,
|
|
17
|
+
updateSnippet(params: UpdateSnippetParams, opts?: {
|
|
18
18
|
signal?: AbortSignal;
|
|
19
19
|
}): Promise<UpdateSnippetResponse>;
|
|
20
20
|
deleteSnippet(params: DeleteSnippetParams, opts?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../src/client/snippets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../src/client/snippets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EAErB,mBAAmB,EACnB,qBAAqB,EAErB,gBAAgB,EAChB,kBAAkB,EAElB,mBAAmB,EAEnB,mBAAmB,EACnB,qBAAqB,EAEtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEjE;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;;2BAE9C;YACvB,MAAM,CAAC,EAAE,WAAW,CAAC;SACtB,GAAG,OAAO,CAAC,mBAAmB,CAAC;8BAStB,mBAAmB,SACpB;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,GAC9B,OAAO,CAAC,qBAAqB,CAAC;2BAMvB,gBAAgB,SACjB;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,GAC9B,OAAO,CAAC,kBAAkB,CAAC;8BASpB,mBAAmB,SACpB;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,GAC9B,OAAO,CAAC,qBAAqB,CAAC;8BAWvB,mBAAmB,SACpB;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,GAC9B,OAAO,CAAC,qBAAqB,CAAC;;;;;;;;kBASo6G,CAAC;mBAAO,CAAC;;;;;MADj9G"}
|
package/dist/client/snippets.js
CHANGED
|
@@ -13,15 +13,16 @@ export function Snippets(Base) {
|
|
|
13
13
|
return this.validateResponse(response, CreateSnippetResponseSchema);
|
|
14
14
|
}
|
|
15
15
|
async getSnippet(params, opts) {
|
|
16
|
-
const response = await this.client.get(`/api/snippets/${params.identifier}`, opts?.signal ? { signal: opts.signal } : {});
|
|
16
|
+
const response = await this.client.get(`/api/snippets/${encodeURIComponent(String(params.identifier))}`, opts?.signal ? { signal: opts.signal } : {});
|
|
17
17
|
return this.validateResponse(response, GetSnippetResponseSchema);
|
|
18
18
|
}
|
|
19
|
-
async updateSnippet(params,
|
|
20
|
-
const
|
|
19
|
+
async updateSnippet(params, opts) {
|
|
20
|
+
const { identifier, ...body } = params;
|
|
21
|
+
const response = await this.client.put(`/api/snippets/${encodeURIComponent(String(identifier))}`, body, opts);
|
|
21
22
|
return this.validateResponse(response, UpdateSnippetResponseSchema);
|
|
22
23
|
}
|
|
23
24
|
async deleteSnippet(params, opts) {
|
|
24
|
-
const response = await this.client.delete(`/api/snippets/${params.identifier}`, opts?.signal ? { signal: opts.signal } : {});
|
|
25
|
+
const response = await this.client.delete(`/api/snippets/${encodeURIComponent(String(params.identifier))}`, opts?.signal ? { signal: opts.signal } : {});
|
|
25
26
|
return this.validateResponse(response, DeleteSnippetResponseSchema);
|
|
26
27
|
}
|
|
27
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippets.js","sourceRoot":"","sources":["../../src/client/snippets.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,2BAA2B,EAG3B,2BAA2B,EAG3B,wBAAwB,E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E,CAAC;QAED,KAAK,CAAC,aAAa,CACjB,MAA2B,EAC3B,IAA+B;YAE/B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;YACvC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,EACzD,IAAI,EACJ,IAAI,CACL,CAAC;YACF,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;QACtE,CAAC;QAED,KAAK,CAAC,aAAa,CACjB,MAA2B,EAC3B,IAA+B;YAE/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACvC,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,EAChE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAC5C,CAAC;YACF,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;QACtE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IterableSuccessResponse } from "../types/common.js";
|
|
2
2
|
import { BulkUpdateSubscriptionsParams, SubscribeUserByEmailParams, SubscribeUserByUserIdParams, UnsubscribeUserByEmailParams, UnsubscribeUserByUserIdParams } from "../types/subscriptions.js";
|
|
3
|
-
import type { Constructor } from "./base.js";
|
|
4
|
-
import type { BaseIterableClient } from "./base.js";
|
|
3
|
+
import type { BaseIterableClient, Constructor } from "./base.js";
|
|
5
4
|
export declare function Subscriptions<T extends Constructor<BaseIterableClient>>(Base: T): {
|
|
6
5
|
new (...args: any[]): {
|
|
7
6
|
bulkUpdateSubscriptions(params: BulkUpdateSubscriptionsParams): Promise<IterableSuccessResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/client/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/client/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEjE,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,CAAC,kBAAkB,CAAC,EACrE,IAAI,EAAE,CAAC;;wCAIK,6BAA6B,GACpC,OAAO,CAAC,uBAAuB,CAAC;qCAmBzB,0BAA0B,GACjC,OAAO,CAAC,uBAAuB,CAAC;sCAUzB,2BAA2B,GAClC,OAAO,CAAC,uBAAuB,CAAC;uCAUzB,4BAA4B,GACnC,OAAO,CAAC,uBAAuB,CAAC;wCAUzB,6BAA6B,GACpC,OAAO,CAAC,uBAAuB,CAAC;;;;;;;;kBAUk6F,CAAC;mBAAO,CAAC;;;;;MADj9F"}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
+
import { IterableSuccessResponseSchema, } from "../types/common.js";
|
|
1
2
|
export function Subscriptions(Base) {
|
|
2
3
|
return class extends Base {
|
|
3
4
|
async bulkUpdateSubscriptions(params) {
|
|
4
5
|
const { subscriptionGroup, subscriptionGroupId, action, users, usersByUserId, } = params;
|
|
5
6
|
const requestBody = { users, usersByUserId };
|
|
6
7
|
const response = await this.client.put(`/api/subscriptions/${encodeURIComponent(subscriptionGroup)}/${subscriptionGroupId}?action=${action}`, requestBody);
|
|
7
|
-
return response
|
|
8
|
+
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
8
9
|
}
|
|
9
10
|
async subscribeUserByEmail(params) {
|
|
10
11
|
const { subscriptionGroup, subscriptionGroupId, userEmail } = params;
|
|
11
12
|
const response = await this.client.patch(`/api/subscriptions/${encodeURIComponent(subscriptionGroup)}/${subscriptionGroupId}/user/${encodeURIComponent(userEmail)}`);
|
|
12
|
-
return response
|
|
13
|
+
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
13
14
|
}
|
|
14
15
|
async subscribeUserByUserId(params) {
|
|
15
16
|
const { subscriptionGroup, subscriptionGroupId, userId } = params;
|
|
16
17
|
const response = await this.client.patch(`/api/subscriptions/${encodeURIComponent(subscriptionGroup)}/${subscriptionGroupId}/byUserId/${encodeURIComponent(userId)}`);
|
|
17
|
-
return response
|
|
18
|
+
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
18
19
|
}
|
|
19
20
|
async unsubscribeUserByEmail(params) {
|
|
20
21
|
const { subscriptionGroup, subscriptionGroupId, userEmail } = params;
|
|
21
22
|
const response = await this.client.delete(`/api/subscriptions/${encodeURIComponent(subscriptionGroup)}/${subscriptionGroupId}/user/${encodeURIComponent(userEmail)}`);
|
|
22
|
-
return response
|
|
23
|
+
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
23
24
|
}
|
|
24
25
|
async unsubscribeUserByUserId(params) {
|
|
25
26
|
const { subscriptionGroup, subscriptionGroupId, userId } = params;
|
|
26
27
|
const response = await this.client.delete(`/api/subscriptions/${encodeURIComponent(subscriptionGroup)}/${subscriptionGroupId}/byUserId/${encodeURIComponent(userId)}`);
|
|
27
|
-
return response
|
|
28
|
+
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/client/subscriptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../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AAC,EAAE,CAC5H,CAAC;YACF,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QACxE,CAAC;QAED,KAAK,CAAC,sBAAsB,CAC1B,MAAoC;YAEpC,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;YAErE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACvC,sBAAsB,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,mBAAmB,SAAS,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAC3H,CAAC;YACF,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QACxE,CAAC;QAED,KAAK,CAAC,uBAAuB,CAC3B,MAAqC;YAErC,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;YAElE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACvC,sBAAsB,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,mBAAmB,aAAa,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAC5H,CAAC;YACF,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QACxE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { IterableSuccessResponse } from "../types/common.js";
|
|
3
|
-
import { BulkDeleteTemplatesParams, BulkDeleteTemplatesResponse, EmailTemplate, GetTemplateByClientIdResponse, GetTemplateParams, GetTemplatesParams, GetTemplatesResponse, InAppTemplate, PreviewTemplateParams, PushTemplate,
|
|
3
|
+
import { BulkDeleteTemplatesParams, BulkDeleteTemplatesResponse, EmailTemplate, GetTemplateByClientIdResponse, GetTemplateParams, GetTemplatesParams, GetTemplatesResponse, InAppTemplate, PreviewTemplateParams, PushTemplate, SendTemplateProofParams, SMSTemplate, UpdateEmailTemplateParams, UpdateInAppTemplateParams, UpdatePushTemplateParams, UpdateSMSTemplateParams, UpsertEmailTemplateParams, UpsertInAppTemplateParams, UpsertPushTemplateParams, UpsertSMSTemplateParams } from "../types/templates.js";
|
|
4
4
|
import type { Constructor } from "./base.js";
|
|
5
5
|
import type { BaseIterableClient } from "./base.js";
|
|
6
6
|
/**
|
|
@@ -11,29 +11,33 @@ export declare function Templates<T extends Constructor<BaseIterableClient>>(Bas
|
|
|
11
11
|
"__#private@#getTemplateByType"<T_1>(pathSegment: string, params: GetTemplateParams, schema: z.ZodSchema<T_1>): Promise<T_1>;
|
|
12
12
|
"__#private@#createTemplateByType"<T_1>(pathSegment: string, template: T_1): Promise<IterableSuccessResponse>;
|
|
13
13
|
"__#private@#updateTemplateByType"<T_1>(pathSegment: string, options: T_1): Promise<IterableSuccessResponse>;
|
|
14
|
-
|
|
15
|
-
"__#private@#sendTemplateProof"(pathSegment: string, request: TemplateProofRequest): Promise<IterableSuccessResponse>;
|
|
14
|
+
"__#private@#sendTemplateProof"(pathSegment: string, request: SendTemplateProofParams): Promise<IterableSuccessResponse>;
|
|
16
15
|
"__#private@#previewTemplate"(pathSegment: string, params: PreviewTemplateParams): Promise<string>;
|
|
17
16
|
getTemplates(options?: GetTemplatesParams): Promise<GetTemplatesResponse>;
|
|
18
17
|
getTemplateByClientId(clientTemplateId: string): Promise<GetTemplateByClientIdResponse>;
|
|
19
|
-
bulkDeleteTemplates(params: BulkDeleteTemplatesParams): Promise<
|
|
18
|
+
bulkDeleteTemplates(params: BulkDeleteTemplatesParams): Promise<BulkDeleteTemplatesResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete one or more templates by ID
|
|
21
|
+
* @deprecated Use {@link bulkDeleteTemplates} instead
|
|
22
|
+
*/
|
|
23
|
+
deleteTemplates(templateIds: number[]): Promise<BulkDeleteTemplatesResponse>;
|
|
20
24
|
getEmailTemplate(params: GetTemplateParams): Promise<EmailTemplate>;
|
|
21
25
|
upsertEmailTemplate(template: UpsertEmailTemplateParams): Promise<IterableSuccessResponse>;
|
|
22
26
|
updateEmailTemplate(options: UpdateEmailTemplateParams): Promise<IterableSuccessResponse>;
|
|
23
|
-
sendEmailTemplateProof(request:
|
|
27
|
+
sendEmailTemplateProof(request: SendTemplateProofParams): Promise<IterableSuccessResponse>;
|
|
24
28
|
previewEmailTemplate(params: PreviewTemplateParams): Promise<string>;
|
|
25
29
|
getSMSTemplate(params: GetTemplateParams): Promise<SMSTemplate>;
|
|
26
30
|
upsertSMSTemplate(template: UpsertSMSTemplateParams): Promise<IterableSuccessResponse>;
|
|
27
31
|
updateSMSTemplate(options: UpdateSMSTemplateParams): Promise<IterableSuccessResponse>;
|
|
28
|
-
sendSMSTemplateProof(request:
|
|
32
|
+
sendSMSTemplateProof(request: SendTemplateProofParams): Promise<IterableSuccessResponse>;
|
|
29
33
|
getPushTemplate(params: GetTemplateParams): Promise<PushTemplate>;
|
|
30
34
|
upsertPushTemplate(template: UpsertPushTemplateParams): Promise<IterableSuccessResponse>;
|
|
31
35
|
updatePushTemplate(options: UpdatePushTemplateParams): Promise<IterableSuccessResponse>;
|
|
32
|
-
sendPushTemplateProof(request:
|
|
36
|
+
sendPushTemplateProof(request: SendTemplateProofParams): Promise<IterableSuccessResponse>;
|
|
33
37
|
getInAppTemplate(params: GetTemplateParams): Promise<InAppTemplate>;
|
|
34
38
|
upsertInAppTemplate(template: UpsertInAppTemplateParams): Promise<IterableSuccessResponse>;
|
|
35
39
|
updateInAppTemplate(options: UpdateInAppTemplateParams): Promise<IterableSuccessResponse>;
|
|
36
|
-
sendInAppTemplateProof(request:
|
|
40
|
+
sendInAppTemplateProof(request: SendTemplateProofParams): Promise<IterableSuccessResponse>;
|
|
37
41
|
previewInAppTemplate(params: PreviewTemplateParams): Promise<string>;
|
|
38
42
|
client: import("axios").AxiosInstance;
|
|
39
43
|
"__#private@#httpAgent"?: import("http").Agent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/client/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAE3B,aAAa,EAEb,6BAA6B,EAE7B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EAEpB,aAAa,EAEb,qBAAqB,EACrB,YAAY,EAEZ,WAAW,EAEX,
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/client/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAE3B,aAAa,EAEb,6BAA6B,EAE7B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EAEpB,aAAa,EAEb,qBAAqB,EACrB,YAAY,EAEZ,uBAAuB,EACvB,WAAW,EAEX,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;;0DAIzD,MAAM,UACX,iBAAiB,UACjB,CAAC,CAAC,SAAS,CAAC,GAAC,CAAC,GACrB,OAAO,CAAC,GAAC,CAAC;6DAcE,MAAM,YACT,GAAC,GACV,OA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uB,CAAC;qCAIA,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;;;;;;;;kBApEtC,CAAC;mBAAO,CAAC;;;;;MAwEhD"}
|
package/dist/client/templates.js
CHANGED
|
@@ -24,13 +24,6 @@ export function Templates(Base) {
|
|
|
24
24
|
const response = await this.client.post(`/api/templates/${pathSegment}/update`, options);
|
|
25
25
|
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
26
26
|
}
|
|
27
|
-
// Template deletion - works for all template types
|
|
28
|
-
async deleteTemplates(templateIds) {
|
|
29
|
-
const response = await this.client.post(`/api/templates/bulkDelete`, {
|
|
30
|
-
ids: templateIds,
|
|
31
|
-
});
|
|
32
|
-
return this.validateResponse(response, BulkDeleteTemplatesResponseSchema);
|
|
33
|
-
}
|
|
34
27
|
async #sendTemplateProof(pathSegment, request) {
|
|
35
28
|
const response = await this.client.post(`/api/templates/${pathSegment}/proof`, request);
|
|
36
29
|
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
@@ -67,7 +60,14 @@ export function Templates(Base) {
|
|
|
67
60
|
}
|
|
68
61
|
async bulkDeleteTemplates(params) {
|
|
69
62
|
const response = await this.client.post(`/api/templates/bulkDelete`, params);
|
|
70
|
-
return this.validateResponse(response,
|
|
63
|
+
return this.validateResponse(response, BulkDeleteTemplatesResponseSchema);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Delete one or more templates by ID
|
|
67
|
+
* @deprecated Use {@link bulkDeleteTemplates} instead
|
|
68
|
+
*/
|
|
69
|
+
async deleteTemplates(templateIds) {
|
|
70
|
+
return this.bulkDeleteTemplates({ ids: templateIds });
|
|
71
71
|
}
|
|
72
72
|
// Email Template Management
|
|
73
73
|
async getEmailTemplate(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/client/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,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|
|
|
1
1
|
import { IterableSuccessResponse } from "../types/common.js";
|
|
2
2
|
import { UserBulkUpdateListResponse } from "../types/lists.js";
|
|
3
3
|
import { BulkUpdateUsersParams, GetSentMessagesParams, GetSentMessagesResponse, GetUserFieldsResponse, UpdateEmailParams, UpdateUserParams, UpdateUserSubscriptionsParams, UserResponse } from "../types/users.js";
|
|
4
|
-
import type { Constructor } from "./base.js";
|
|
5
|
-
import type { BaseIterableClient } from "./base.js";
|
|
4
|
+
import type { BaseIterableClient, Constructor } from "./base.js";
|
|
6
5
|
/**
|
|
7
6
|
* User management operations mixin
|
|
8
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/client/users.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/client/users.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,0BAA0B,EAE3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EAEvB,qBAAqB,EAErB,iBAAiB,EACjB,gBAAgB,EAChB,6BAA6B,EAC7B,YAAY,EAEb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEjE;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;;QAEpE;;WAEG;8BAEM,MAAM,SACN;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,GAC9B,OAAO,CAAC,YAAY,CAAC;QAQxB;;WAEG;gCAEO,MAAM,SACP;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,GAC9B,OAAO,CAAC,YAAY,CAAC;QAQxB;;;WAGG;gCAEY,gBAAgB,GAC5B,OAAO,CAAC,uBAAuB,CAAC;QAKnC;;;WAGG;iCAC4B,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;QAOxE;;;;WAIG;mCAC8B,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;QAO1E;;;;WAIG;4BAEO,iBAAiB,GACxB,OAAO,CAAC,uBAAuB,CAAC;QAKnC;;;WAGG;wCAEO,6BAA6B,GACpC,OAAO,CAAC,uBAAuB,CAAC;QAQnC;;WAEG;gCAEO,qBAAqB,GAC5B,OAAO,CAAC,0BAA0B,CAAC;QAKtC;;WAEG;gCAEO,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC;QAuCnC;;WAEG;yBACoB,OAAO,CAAC,qBAAqB,CAAC;;;;;;;;kBAMmJ,CAAC;mBAAO,CAAC;;;;;MADpN"}
|
package/dist/client/users.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IterableSuccessResponseSchema } from "../types/common.js";
|
|
2
|
-
import { UserBulkUpdateListResponseSchema } from "../types/lists.js";
|
|
3
|
-
import { GetUserFieldsResponseSchema, } from "../types/users.js";
|
|
1
|
+
import { IterableSuccessResponseSchema, } from "../types/common.js";
|
|
2
|
+
import { UserBulkUpdateListResponseSchema, } from "../types/lists.js";
|
|
3
|
+
import { GetSentMessagesResponseSchema, GetUserFieldsResponseSchema, UserResponseSchema, } from "../types/users.js";
|
|
4
4
|
/**
|
|
5
5
|
* User management operations mixin
|
|
6
6
|
*/
|
|
@@ -11,16 +11,14 @@ export function Users(Base) {
|
|
|
11
11
|
*/
|
|
12
12
|
async getUserByEmail(email, opts) {
|
|
13
13
|
const response = await this.client.get(`/api/users/${encodeURIComponent(email)}`, opts?.signal ? { signal: opts.signal } : {});
|
|
14
|
-
return response
|
|
14
|
+
return this.validateResponse(response, UserResponseSchema);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Get a user by userId
|
|
18
18
|
*/
|
|
19
19
|
async getUserByUserId(userId, opts) {
|
|
20
|
-
const response = await this.client.get(`/api/users/byUserId/${userId}`, {
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
return response.data;
|
|
20
|
+
const response = await this.client.get(`/api/users/byUserId/${encodeURIComponent(userId)}`, opts?.signal ? { signal: opts.signal } : {});
|
|
21
|
+
return this.validateResponse(response, UserResponseSchema);
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* Update user data or add a user if none exists
|
|
@@ -36,7 +34,7 @@ export function Users(Base) {
|
|
|
36
34
|
*/
|
|
37
35
|
async deleteUserByEmail(email) {
|
|
38
36
|
const response = await this.client.delete(`/api/users/${encodeURIComponent(email)}`);
|
|
39
|
-
return response
|
|
37
|
+
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
40
38
|
}
|
|
41
39
|
/**
|
|
42
40
|
* Delete a user by userId
|
|
@@ -45,7 +43,7 @@ export function Users(Base) {
|
|
|
45
43
|
*/
|
|
46
44
|
async deleteUserByUserId(userId) {
|
|
47
45
|
const response = await this.client.delete(`/api/users/byUserId/${encodeURIComponent(userId)}`);
|
|
48
|
-
return response
|
|
46
|
+
return this.validateResponse(response, IterableSuccessResponseSchema);
|
|
49
47
|
}
|
|
50
48
|
/**
|
|
51
49
|
* Update a user's email address
|
|
@@ -101,7 +99,7 @@ export function Users(Base) {
|
|
|
101
99
|
queryParams.append("messageMedium", params.messageMedium);
|
|
102
100
|
}
|
|
103
101
|
const response = await this.client.get(`/api/users/getSentMessages?${queryParams.toString()}`);
|
|
104
|
-
return response
|
|
102
|
+
return this.validateResponse(response, GetSentMessagesResponseSchema);
|
|
105
103
|
}
|
|
106
104
|
/**
|
|
107
105
|
* Get all user profile field definitions
|
package/dist/client/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/client/users.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/client/users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