@parra/parra-js-sdk 0.3.176 → 0.3.178
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 +61 -22
- package/dist/ParraAPI.js +6 -6
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -2002,21 +2002,6 @@ export interface ApiKeyCollectionResponse {
|
|
|
2002
2002
|
total_count: number;
|
|
2003
2003
|
data: Array<ApiKey>;
|
|
2004
2004
|
}
|
|
2005
|
-
export declare enum ConnectedAppType {
|
|
2006
|
-
parra = "parra",
|
|
2007
|
-
appStoreConnectApi = "app-store-connect-api",
|
|
2008
|
-
resend = "resend",
|
|
2009
|
-
sendgrid = "sendgrid",
|
|
2010
|
-
slack = "slack",
|
|
2011
|
-
twilio = "twilio",
|
|
2012
|
-
x = "x"
|
|
2013
|
-
}
|
|
2014
|
-
export declare enum ConnectedAppConnectionStatus {
|
|
2015
|
-
pending = "pending",
|
|
2016
|
-
live = "live",
|
|
2017
|
-
error = "error",
|
|
2018
|
-
disabled = "disabled"
|
|
2019
|
-
}
|
|
2020
2005
|
export interface ConnectedAppAppStoreConnectApiConnectionData {
|
|
2021
2006
|
issuer: string;
|
|
2022
2007
|
key_id: string;
|
|
@@ -2045,6 +2030,31 @@ export interface ConnectedAppXConnectionData {
|
|
|
2045
2030
|
name: string;
|
|
2046
2031
|
}
|
|
2047
2032
|
export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
|
|
2033
|
+
export declare enum ConnectedAppType {
|
|
2034
|
+
parra = "parra",
|
|
2035
|
+
appStoreConnectApi = "app-store-connect-api",
|
|
2036
|
+
resend = "resend",
|
|
2037
|
+
sendgrid = "sendgrid",
|
|
2038
|
+
slack = "slack",
|
|
2039
|
+
twilio = "twilio",
|
|
2040
|
+
x = "x"
|
|
2041
|
+
}
|
|
2042
|
+
export declare enum ConnectedAppConnectionStatus {
|
|
2043
|
+
pending = "pending",
|
|
2044
|
+
live = "live",
|
|
2045
|
+
error = "error",
|
|
2046
|
+
disabled = "disabled"
|
|
2047
|
+
}
|
|
2048
|
+
export interface ConnectedAppConnectionStub {
|
|
2049
|
+
id: string;
|
|
2050
|
+
created_at: string;
|
|
2051
|
+
updated_at: string;
|
|
2052
|
+
deleted_at?: string | null;
|
|
2053
|
+
tenant_id: string;
|
|
2054
|
+
active: boolean;
|
|
2055
|
+
type: ConnectedAppType;
|
|
2056
|
+
status: ConnectedAppConnectionStatus;
|
|
2057
|
+
}
|
|
2048
2058
|
export interface ConnectedAppConnection {
|
|
2049
2059
|
id: string;
|
|
2050
2060
|
created_at: string;
|
|
@@ -2316,10 +2326,6 @@ export interface CreateMailTemplateRequestBody {
|
|
|
2316
2326
|
sender_id: string;
|
|
2317
2327
|
connected_app_connection_id: string;
|
|
2318
2328
|
}
|
|
2319
|
-
export declare enum MailTemplateStatus {
|
|
2320
|
-
live = "live",
|
|
2321
|
-
draft = "draft"
|
|
2322
|
-
}
|
|
2323
2329
|
export declare enum MailTemplateVersionStatus {
|
|
2324
2330
|
pristine = "pristine",
|
|
2325
2331
|
draft = "draft",
|
|
@@ -2335,8 +2341,31 @@ export interface MailTemplateVersionStub {
|
|
|
2335
2341
|
status: MailTemplateVersionStatus;
|
|
2336
2342
|
version: string;
|
|
2337
2343
|
title: string | null;
|
|
2344
|
+
automatically_generate_text_content: boolean;
|
|
2338
2345
|
description?: string | null;
|
|
2339
2346
|
slug?: string | null;
|
|
2347
|
+
test_data?: object | null;
|
|
2348
|
+
test_subject?: string | null;
|
|
2349
|
+
test_recipient?: string | null;
|
|
2350
|
+
}
|
|
2351
|
+
export declare enum MailTemplateStatus {
|
|
2352
|
+
live = "live",
|
|
2353
|
+
draft = "draft"
|
|
2354
|
+
}
|
|
2355
|
+
export interface MailTemplateStub {
|
|
2356
|
+
id: string;
|
|
2357
|
+
created_at: string;
|
|
2358
|
+
updated_at: string;
|
|
2359
|
+
deleted_at?: string | null;
|
|
2360
|
+
tenant_id: string;
|
|
2361
|
+
sender_id: string;
|
|
2362
|
+
connected_app_connection_id: string;
|
|
2363
|
+
title: string;
|
|
2364
|
+
description?: string | null;
|
|
2365
|
+
slug?: string | null;
|
|
2366
|
+
status: MailTemplateStatus;
|
|
2367
|
+
sender: MailSender;
|
|
2368
|
+
connected_app_connection?: ConnectedAppConnectionStub;
|
|
2340
2369
|
}
|
|
2341
2370
|
export interface MailTemplateCollectionStub {
|
|
2342
2371
|
id: string;
|
|
@@ -2350,6 +2379,8 @@ export interface MailTemplateCollectionStub {
|
|
|
2350
2379
|
description?: string | null;
|
|
2351
2380
|
slug?: string | null;
|
|
2352
2381
|
status: MailTemplateStatus;
|
|
2382
|
+
sender: MailSender;
|
|
2383
|
+
connected_app_connection?: ConnectedAppConnectionStub;
|
|
2353
2384
|
versions: Array<MailTemplateVersionStub>;
|
|
2354
2385
|
}
|
|
2355
2386
|
export interface MailTemplate {
|
|
@@ -2364,6 +2395,8 @@ export interface MailTemplate {
|
|
|
2364
2395
|
description?: string | null;
|
|
2365
2396
|
slug?: string | null;
|
|
2366
2397
|
status: MailTemplateStatus;
|
|
2398
|
+
sender: MailSender;
|
|
2399
|
+
connected_app_connection?: ConnectedAppConnectionStub;
|
|
2367
2400
|
versions: Array<MailTemplateVersionStub>;
|
|
2368
2401
|
}
|
|
2369
2402
|
export interface MailTemplateCollectionResponse {
|
|
@@ -2384,7 +2417,6 @@ export interface CreateMailTemplateVersionRequestBody {
|
|
|
2384
2417
|
title: string;
|
|
2385
2418
|
version: string;
|
|
2386
2419
|
text_content?: string | null;
|
|
2387
|
-
json_content?: string | null;
|
|
2388
2420
|
html_content?: string | null;
|
|
2389
2421
|
}
|
|
2390
2422
|
export interface MailTemplateVersion {
|
|
@@ -2397,17 +2429,24 @@ export interface MailTemplateVersion {
|
|
|
2397
2429
|
status: MailTemplateVersionStatus;
|
|
2398
2430
|
version: string;
|
|
2399
2431
|
title: string | null;
|
|
2432
|
+
automatically_generate_text_content: boolean;
|
|
2400
2433
|
description?: string | null;
|
|
2401
2434
|
slug?: string | null;
|
|
2435
|
+
test_data?: object | null;
|
|
2436
|
+
test_subject?: string | null;
|
|
2437
|
+
test_recipient?: string | null;
|
|
2402
2438
|
text_content?: string | null;
|
|
2403
|
-
json_content?: string | null;
|
|
2404
2439
|
html_content?: string | null;
|
|
2440
|
+
template: MailTemplateStub;
|
|
2405
2441
|
}
|
|
2406
2442
|
export interface UpdateMailTemplateVersionRequestBody {
|
|
2407
2443
|
title?: string;
|
|
2408
2444
|
version?: string;
|
|
2445
|
+
automatically_generate_text_content?: boolean;
|
|
2446
|
+
test_data?: object | null;
|
|
2447
|
+
test_subject?: string | null;
|
|
2448
|
+
test_recipient?: string | null;
|
|
2409
2449
|
text_content?: string | null;
|
|
2410
|
-
json_content?: string | null;
|
|
2411
2450
|
html_content?: string | null;
|
|
2412
2451
|
}
|
|
2413
2452
|
export interface UpdatePolicyDocumentRequestBody {
|
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.
|
|
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;
|
|
15
15
|
var TicketType;
|
|
16
16
|
(function (TicketType) {
|
|
17
17
|
TicketType["bug"] = "bug";
|
|
@@ -278,17 +278,17 @@ var IntegrationScope;
|
|
|
278
278
|
IntegrationScope["collection"] = "collection";
|
|
279
279
|
IntegrationScope["resource"] = "resource";
|
|
280
280
|
})(IntegrationScope || (exports.IntegrationScope = IntegrationScope = {}));
|
|
281
|
-
var MailTemplateStatus;
|
|
282
|
-
(function (MailTemplateStatus) {
|
|
283
|
-
MailTemplateStatus["live"] = "live";
|
|
284
|
-
MailTemplateStatus["draft"] = "draft";
|
|
285
|
-
})(MailTemplateStatus || (exports.MailTemplateStatus = MailTemplateStatus = {}));
|
|
286
281
|
var MailTemplateVersionStatus;
|
|
287
282
|
(function (MailTemplateVersionStatus) {
|
|
288
283
|
MailTemplateVersionStatus["pristine"] = "pristine";
|
|
289
284
|
MailTemplateVersionStatus["draft"] = "draft";
|
|
290
285
|
MailTemplateVersionStatus["published"] = "published";
|
|
291
286
|
})(MailTemplateVersionStatus || (exports.MailTemplateVersionStatus = MailTemplateVersionStatus = {}));
|
|
287
|
+
var MailTemplateStatus;
|
|
288
|
+
(function (MailTemplateStatus) {
|
|
289
|
+
MailTemplateStatus["live"] = "live";
|
|
290
|
+
MailTemplateStatus["draft"] = "draft";
|
|
291
|
+
})(MailTemplateStatus || (exports.MailTemplateStatus = MailTemplateStatus = {}));
|
|
292
292
|
var PolicyDocumentStatus;
|
|
293
293
|
(function (PolicyDocumentStatus) {
|
|
294
294
|
PolicyDocumentStatus["live"] = "live";
|