@parra/parra-js-sdk 0.3.183 → 0.3.185

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.
@@ -2319,7 +2319,12 @@ export interface UpdateMailSenderRequestBody {
2319
2319
  from_address?: string;
2320
2320
  reply_to?: string | null;
2321
2321
  }
2322
+ export declare enum MailTemplateType {
2323
+ passwordReset = "password-reset",
2324
+ accountVerification = "account-verification"
2325
+ }
2322
2326
  export interface CreateMailTemplateRequestBody {
2327
+ type?: MailTemplateType | null;
2323
2328
  title: string;
2324
2329
  description?: string | null;
2325
2330
  slug?: string | null;
@@ -2329,7 +2334,7 @@ export interface CreateMailTemplateRequestBody {
2329
2334
  export declare enum MailTemplateVersionStatus {
2330
2335
  pristine = "pristine",
2331
2336
  draft = "draft",
2332
- published = "published"
2337
+ active = "active"
2333
2338
  }
2334
2339
  export interface MailTemplateVersionStub {
2335
2340
  id: string;
@@ -2344,6 +2349,7 @@ export interface MailTemplateVersionStub {
2344
2349
  title: string | null;
2345
2350
  automatically_generate_text_content: boolean;
2346
2351
  description?: string | null;
2352
+ active: boolean;
2347
2353
  slug?: string | null;
2348
2354
  test_data?: object | null;
2349
2355
  test_subject?: string | null;
@@ -2361,6 +2367,8 @@ export interface MailTemplateStub {
2361
2367
  tenant_id: string;
2362
2368
  sender_id: string;
2363
2369
  connected_app_connection_id: string;
2370
+ active_version_id?: string | null;
2371
+ type?: MailTemplateType | null;
2364
2372
  title: string;
2365
2373
  description?: string | null;
2366
2374
  slug?: string | null;
@@ -2376,6 +2384,8 @@ export interface MailTemplateCollectionStub {
2376
2384
  tenant_id: string;
2377
2385
  sender_id: string;
2378
2386
  connected_app_connection_id: string;
2387
+ active_version_id?: string | null;
2388
+ type?: MailTemplateType | null;
2379
2389
  title: string;
2380
2390
  description?: string | null;
2381
2391
  slug?: string | null;
@@ -2392,6 +2402,8 @@ export interface MailTemplate {
2392
2402
  tenant_id: string;
2393
2403
  sender_id: string;
2394
2404
  connected_app_connection_id: string;
2405
+ active_version_id?: string | null;
2406
+ type?: MailTemplateType | null;
2395
2407
  title: string;
2396
2408
  description?: string | null;
2397
2409
  slug?: string | null;
@@ -2410,6 +2422,7 @@ export interface MailTemplateCollectionResponse {
2410
2422
  export interface UpdateMailTemplateRequestBody {
2411
2423
  title?: string;
2412
2424
  description?: string | null;
2425
+ type?: MailTemplateType | null;
2413
2426
  slug?: string | null;
2414
2427
  sender_id?: string;
2415
2428
  connected_app_connection_id?: string;
@@ -2434,6 +2447,7 @@ export interface MailTemplateVersion {
2434
2447
  title: string | null;
2435
2448
  automatically_generate_text_content: boolean;
2436
2449
  description?: string | null;
2450
+ active: boolean;
2437
2451
  slug?: string | null;
2438
2452
  test_data?: object | null;
2439
2453
  test_subject?: string | null;
package/dist/ParraAPI.js CHANGED
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
14
+ exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
15
  var TicketType;
16
16
  (function (TicketType) {
17
17
  TicketType["bug"] = "bug";
@@ -278,11 +278,16 @@ var IntegrationScope;
278
278
  IntegrationScope["collection"] = "collection";
279
279
  IntegrationScope["resource"] = "resource";
280
280
  })(IntegrationScope || (exports.IntegrationScope = IntegrationScope = {}));
281
+ var MailTemplateType;
282
+ (function (MailTemplateType) {
283
+ MailTemplateType["passwordReset"] = "password-reset";
284
+ MailTemplateType["accountVerification"] = "account-verification";
285
+ })(MailTemplateType || (exports.MailTemplateType = MailTemplateType = {}));
281
286
  var MailTemplateVersionStatus;
282
287
  (function (MailTemplateVersionStatus) {
283
288
  MailTemplateVersionStatus["pristine"] = "pristine";
284
289
  MailTemplateVersionStatus["draft"] = "draft";
285
- MailTemplateVersionStatus["published"] = "published";
290
+ MailTemplateVersionStatus["active"] = "active";
286
291
  })(MailTemplateVersionStatus || (exports.MailTemplateVersionStatus = MailTemplateVersionStatus = {}));
287
292
  var MailTemplateStatus;
288
293
  (function (MailTemplateStatus) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.183",
3
+ "version": "0.3.185",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",