@parra/parra-js-sdk 0.3.182 → 0.3.184

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,7 @@ export interface MailTemplateStub {
2361
2367
  tenant_id: string;
2362
2368
  sender_id: string;
2363
2369
  connected_app_connection_id: string;
2370
+ type?: MailTemplateType | null;
2364
2371
  title: string;
2365
2372
  description?: string | null;
2366
2373
  slug?: string | null;
@@ -2376,6 +2383,7 @@ export interface MailTemplateCollectionStub {
2376
2383
  tenant_id: string;
2377
2384
  sender_id: string;
2378
2385
  connected_app_connection_id: string;
2386
+ type?: MailTemplateType | null;
2379
2387
  title: string;
2380
2388
  description?: string | null;
2381
2389
  slug?: string | null;
@@ -2392,6 +2400,7 @@ export interface MailTemplate {
2392
2400
  tenant_id: string;
2393
2401
  sender_id: string;
2394
2402
  connected_app_connection_id: string;
2403
+ type?: MailTemplateType | null;
2395
2404
  title: string;
2396
2405
  description?: string | null;
2397
2406
  slug?: string | null;
@@ -2410,6 +2419,7 @@ export interface MailTemplateCollectionResponse {
2410
2419
  export interface UpdateMailTemplateRequestBody {
2411
2420
  title?: string;
2412
2421
  description?: string | null;
2422
+ type?: MailTemplateType | null;
2413
2423
  slug?: string | null;
2414
2424
  sender_id?: string;
2415
2425
  connected_app_connection_id?: string;
@@ -2434,6 +2444,7 @@ export interface MailTemplateVersion {
2434
2444
  title: string | null;
2435
2445
  automatically_generate_text_content: boolean;
2436
2446
  description?: string | null;
2447
+ active: boolean;
2437
2448
  slug?: string | null;
2438
2449
  test_data?: object | null;
2439
2450
  test_subject?: string | null;
@@ -2456,9 +2467,9 @@ export interface UpdateMailTemplateVersionRequestBody {
2456
2467
  export interface TestMailTemplateVersionRequestBody {
2457
2468
  title?: string;
2458
2469
  version?: string;
2459
- subject: string;
2470
+ subject?: string;
2460
2471
  automatically_generate_text_content?: boolean;
2461
- test_data: object | null;
2472
+ test_data?: object | null;
2462
2473
  test_subject?: string | null;
2463
2474
  test_recipient?: string | null;
2464
2475
  text_content?: 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.182",
3
+ "version": "0.3.184",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",