@parra/parra-js-sdk 0.3.173 → 0.3.174
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/ParraAPI.d.ts +11 -2
- package/dist/ParraAPI.js +10 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -2375,6 +2375,13 @@ export interface UpdateMailTemplateRequestBody {
|
|
|
2375
2375
|
sender_id?: string;
|
|
2376
2376
|
connected_app_connection_id?: string;
|
|
2377
2377
|
}
|
|
2378
|
+
export interface CreateMailTemplateVersionRequestBody {
|
|
2379
|
+
title: string;
|
|
2380
|
+
version: string;
|
|
2381
|
+
text_content?: string | null;
|
|
2382
|
+
json_content?: string | null;
|
|
2383
|
+
html_content?: string | null;
|
|
2384
|
+
}
|
|
2378
2385
|
export interface MailTemplateVersion {
|
|
2379
2386
|
id: string;
|
|
2380
2387
|
created_at: string;
|
|
@@ -2392,8 +2399,8 @@ export interface MailTemplateVersion {
|
|
|
2392
2399
|
html_content?: string | null;
|
|
2393
2400
|
}
|
|
2394
2401
|
export interface UpdateMailTemplateVersionRequestBody {
|
|
2395
|
-
title?: string
|
|
2396
|
-
version?: string
|
|
2402
|
+
title?: string;
|
|
2403
|
+
version?: string;
|
|
2397
2404
|
text_content?: string | null;
|
|
2398
2405
|
json_content?: string | null;
|
|
2399
2406
|
html_content?: string | null;
|
|
@@ -2841,8 +2848,10 @@ declare class ParraAPI {
|
|
|
2841
2848
|
getMailTemplateByIdForTenantById: (tenant_id: string, mail_template_id: string, options?: Options) => Promise<MailTemplate>;
|
|
2842
2849
|
updateMailTemplateByIdForTenantById: (tenant_id: string, mail_template_id: string, body?: UpdateMailTemplateRequestBody, options?: Options) => Promise<MailTemplate>;
|
|
2843
2850
|
deleteMailTemplateByIdForTenantById: (tenant_id: string, mail_template_id: string, options?: Options) => Promise<Response>;
|
|
2851
|
+
createVersionForMailTemplateByIdForTenantById: (tenant_id: string, mail_template_id: string, body: CreateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
|
|
2844
2852
|
getMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, options?: Options) => Promise<MailTemplateVersion>;
|
|
2845
2853
|
updateMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body?: UpdateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
|
|
2854
|
+
deleteMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, options?: Options) => Promise<Response>;
|
|
2846
2855
|
publishMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body?: UpdateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
|
|
2847
2856
|
createPolicyDocumentForTenantById: (tenant_id: string, body: CreatePolicyDocumentRequestBody, options?: Options) => Promise<PolicyDocument>;
|
|
2848
2857
|
paginatePolicyDocumentsForTenantById: (tenant_id: string, query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1129,6 +1129,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1129
1129
|
if (options === void 0) { options = {}; }
|
|
1130
1130
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id), __assign({ method: "delete" }, options));
|
|
1131
1131
|
};
|
|
1132
|
+
this.createVersionForMailTemplateByIdForTenantById = function (tenant_id, mail_template_id, body, options) {
|
|
1133
|
+
if (options === void 0) { options = {}; }
|
|
1134
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
1135
|
+
"content-type": "application/json",
|
|
1136
|
+
} }, options));
|
|
1137
|
+
};
|
|
1132
1138
|
this.getMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, options) {
|
|
1133
1139
|
if (options === void 0) { options = {}; }
|
|
1134
1140
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), __assign({ method: "get" }, options));
|
|
@@ -1139,6 +1145,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1139
1145
|
"content-type": "application/json",
|
|
1140
1146
|
} }, options));
|
|
1141
1147
|
};
|
|
1148
|
+
this.deleteMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, options) {
|
|
1149
|
+
if (options === void 0) { options = {}; }
|
|
1150
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), __assign({ method: "delete" }, options));
|
|
1151
|
+
};
|
|
1142
1152
|
this.publishMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, body, options) {
|
|
1143
1153
|
if (options === void 0) { options = {}; }
|
|
1144
1154
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id, "/publish"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|