@parra/parra-js-sdk 0.3.185 → 0.3.187
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 +1 -1
- package/dist/ParraAPI.js +2 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -2940,7 +2940,7 @@ declare class ParraAPI {
|
|
|
2940
2940
|
getMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, options?: Options) => Promise<MailTemplateVersion>;
|
|
2941
2941
|
updateMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body?: UpdateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
|
|
2942
2942
|
deleteMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, options?: Options) => Promise<Response>;
|
|
2943
|
-
|
|
2943
|
+
activateMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body?: UpdateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
|
|
2944
2944
|
testMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body: TestMailTemplateVersionRequestBody, options?: Options) => Promise<Response>;
|
|
2945
2945
|
generateContentForMailTemplateVersion: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body: GenerateMailTemplateVersionContentRequestBody, options?: Options) => Promise<GenerateMailTemplateVersionContentResponseBody>;
|
|
2946
2946
|
createPolicyDocumentForTenantById: (tenant_id: string, body: CreatePolicyDocumentRequestBody, options?: Options) => Promise<PolicyDocument>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1154,9 +1154,9 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1154
1154
|
if (options === void 0) { options = {}; }
|
|
1155
1155
|
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));
|
|
1156
1156
|
};
|
|
1157
|
-
this.
|
|
1157
|
+
this.activateMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, body, options) {
|
|
1158
1158
|
if (options === void 0) { options = {}; }
|
|
1159
|
-
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, "/
|
|
1159
|
+
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, "/activate"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
1160
1160
|
"content-type": "application/json",
|
|
1161
1161
|
} }, options));
|
|
1162
1162
|
};
|