@parra/parra-js-sdk 0.3.184 → 0.3.186

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.
@@ -2367,6 +2367,7 @@ export interface MailTemplateStub {
2367
2367
  tenant_id: string;
2368
2368
  sender_id: string;
2369
2369
  connected_app_connection_id: string;
2370
+ active_version_id?: string | null;
2370
2371
  type?: MailTemplateType | null;
2371
2372
  title: string;
2372
2373
  description?: string | null;
@@ -2383,6 +2384,7 @@ export interface MailTemplateCollectionStub {
2383
2384
  tenant_id: string;
2384
2385
  sender_id: string;
2385
2386
  connected_app_connection_id: string;
2387
+ active_version_id?: string | null;
2386
2388
  type?: MailTemplateType | null;
2387
2389
  title: string;
2388
2390
  description?: string | null;
@@ -2400,6 +2402,7 @@ export interface MailTemplate {
2400
2402
  tenant_id: string;
2401
2403
  sender_id: string;
2402
2404
  connected_app_connection_id: string;
2405
+ active_version_id?: string | null;
2403
2406
  type?: MailTemplateType | null;
2404
2407
  title: string;
2405
2408
  description?: string | null;
@@ -2937,7 +2940,7 @@ declare class ParraAPI {
2937
2940
  getMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, options?: Options) => Promise<MailTemplateVersion>;
2938
2941
  updateMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body?: UpdateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
2939
2942
  deleteMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, options?: Options) => Promise<Response>;
2940
- publishMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body?: UpdateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
2943
+ activateMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body?: UpdateMailTemplateVersionRequestBody, options?: Options) => Promise<MailTemplateVersion>;
2941
2944
  testMailTemplateVersionForTenantById: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body: TestMailTemplateVersionRequestBody, options?: Options) => Promise<Response>;
2942
2945
  generateContentForMailTemplateVersion: (tenant_id: string, mail_template_id: string, mail_template_version_id: string, body: GenerateMailTemplateVersionContentRequestBody, options?: Options) => Promise<GenerateMailTemplateVersionContentResponseBody>;
2943
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.publishMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, body, options) {
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, "/publish"), __assign({ method: "post", body: JSON.stringify(body), headers: {
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.184",
3
+ "version": "0.3.186",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",