@parra/parra-js-sdk 0.3.221 → 0.3.223
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 +35 -15
- package/dist/ParraAPI.js +12 -5
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -176,7 +176,14 @@ export interface AppInfo {
|
|
|
176
176
|
legal: AppLegalInfo;
|
|
177
177
|
}
|
|
178
178
|
export declare enum ApplicationType {
|
|
179
|
-
ios = "ios"
|
|
179
|
+
ios = "ios",
|
|
180
|
+
android = "android",
|
|
181
|
+
web = "web",
|
|
182
|
+
cli = "cli",
|
|
183
|
+
sdk = "sdk",
|
|
184
|
+
api = "api",
|
|
185
|
+
desktop = "desktop",
|
|
186
|
+
other = "other"
|
|
180
187
|
}
|
|
181
188
|
export interface ApplicationIosConfig {
|
|
182
189
|
app_id?: string | null;
|
|
@@ -254,16 +261,18 @@ export interface TenantAppInfoStub {
|
|
|
254
261
|
is_test: boolean;
|
|
255
262
|
parent_tenant_id?: string | null;
|
|
256
263
|
logo?: ImageAssetStub | null;
|
|
257
|
-
issuer
|
|
258
|
-
domains
|
|
259
|
-
urls
|
|
260
|
-
entitlements
|
|
264
|
+
issuer: string;
|
|
265
|
+
domains: Array<Domain> | null;
|
|
266
|
+
urls: Array<string> | null;
|
|
267
|
+
entitlements: Array<Entitlement> | null;
|
|
268
|
+
hide_branding: boolean;
|
|
261
269
|
}
|
|
262
270
|
export interface PasswordRule {
|
|
263
271
|
regular_expression?: string;
|
|
264
272
|
error_message?: string;
|
|
265
273
|
}
|
|
266
274
|
export interface AppInfoPasswordConfig {
|
|
275
|
+
password_reset_disabled: boolean;
|
|
267
276
|
ios_password_rules_descriptor?: string | null;
|
|
268
277
|
rules: Array<PasswordRule>;
|
|
269
278
|
}
|
|
@@ -468,7 +477,11 @@ export interface UserInfoResponse {
|
|
|
468
477
|
tenant_user?: TenantUser | null;
|
|
469
478
|
}
|
|
470
479
|
export interface AuthToken {
|
|
480
|
+
token_type: string;
|
|
471
481
|
access_token: string;
|
|
482
|
+
expires_in?: number;
|
|
483
|
+
refresh_token?: string;
|
|
484
|
+
scope?: string;
|
|
472
485
|
}
|
|
473
486
|
export interface UploadImageRequestBody {
|
|
474
487
|
image: File;
|
|
@@ -492,14 +505,12 @@ export interface ImageAsset {
|
|
|
492
505
|
}
|
|
493
506
|
export interface CreateCheckoutSessionRequestBody {
|
|
494
507
|
plan_id: string;
|
|
508
|
+
success_url?: string | null;
|
|
509
|
+
cancel_url?: string | null;
|
|
495
510
|
}
|
|
496
511
|
export interface CheckoutSession {
|
|
497
512
|
url: string;
|
|
498
513
|
}
|
|
499
|
-
export declare enum Interval {
|
|
500
|
-
monthly = "monthly",
|
|
501
|
-
annual = "annual"
|
|
502
|
-
}
|
|
503
514
|
export declare enum Currency {
|
|
504
515
|
usd = "usd"
|
|
505
516
|
}
|
|
@@ -507,6 +518,10 @@ export interface Price {
|
|
|
507
518
|
currency: Currency;
|
|
508
519
|
amount: number;
|
|
509
520
|
}
|
|
521
|
+
export declare enum Interval {
|
|
522
|
+
monthly = "monthly",
|
|
523
|
+
annual = "annual"
|
|
524
|
+
}
|
|
510
525
|
export interface UnitPrice {
|
|
511
526
|
currency: Currency;
|
|
512
527
|
amount: number;
|
|
@@ -519,7 +534,7 @@ export interface Plan {
|
|
|
519
534
|
deleted_at?: string | null;
|
|
520
535
|
tier: string;
|
|
521
536
|
interval: string;
|
|
522
|
-
price:
|
|
537
|
+
price: Price;
|
|
523
538
|
discounted_price?: Price;
|
|
524
539
|
unit_price: UnitPrice;
|
|
525
540
|
context?: string | null;
|
|
@@ -1643,6 +1658,10 @@ export interface TenantUserInfo {
|
|
|
1643
1658
|
scopes: Array<string>;
|
|
1644
1659
|
user: TenantUser;
|
|
1645
1660
|
}
|
|
1661
|
+
export interface AuthLogoutResponseBody {
|
|
1662
|
+
anonymous_token?: AuthToken;
|
|
1663
|
+
guest_token?: AuthToken;
|
|
1664
|
+
}
|
|
1646
1665
|
export interface AccountConfig {
|
|
1647
1666
|
account_created_mail_template_id?: string | null;
|
|
1648
1667
|
}
|
|
@@ -2062,10 +2081,11 @@ export interface Tenant {
|
|
|
2062
2081
|
is_test: boolean;
|
|
2063
2082
|
parent_tenant_id?: string | null;
|
|
2064
2083
|
logo?: ImageAssetStub | null;
|
|
2065
|
-
issuer
|
|
2066
|
-
domains
|
|
2067
|
-
urls
|
|
2068
|
-
entitlements
|
|
2084
|
+
issuer: string;
|
|
2085
|
+
domains: Array<Domain> | null;
|
|
2086
|
+
urls: Array<string> | null;
|
|
2087
|
+
entitlements: Array<Entitlement> | null;
|
|
2088
|
+
hide_branding: boolean;
|
|
2069
2089
|
onboarding?: TenantOnboarding | null;
|
|
2070
2090
|
metrics?: TenantMetrics | null;
|
|
2071
2091
|
}
|
|
@@ -2977,7 +2997,7 @@ declare class ParraAPI {
|
|
|
2977
2997
|
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
|
|
2978
2998
|
loginUserForTenant: (tenant_id: string, body?: LoginTenantUserRequestBody, options?: Options) => Promise<TenantUserInfo>;
|
|
2979
2999
|
getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
|
2980
|
-
logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<
|
|
3000
|
+
logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<AuthLogoutResponseBody>;
|
|
2981
3001
|
getAuthDatabaseConnectionForTenant: (tenant_id: string, options?: Options) => Promise<AuthDatabaseConnection>;
|
|
2982
3002
|
updateAuthDatabaseConnectionForTenant: (tenant_id: string, body?: UpdateAuthDatabaseConnection, options?: Options) => Promise<AuthDatabaseConnection>;
|
|
2983
3003
|
createPasswordlessSmsConnectionForTenant: (tenant_id: string, body: CreatePasswordlessSmsConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
|
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.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = 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.
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = 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.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = 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";
|
|
@@ -55,6 +55,13 @@ var ReleaseType;
|
|
|
55
55
|
var ApplicationType;
|
|
56
56
|
(function (ApplicationType) {
|
|
57
57
|
ApplicationType["ios"] = "ios";
|
|
58
|
+
ApplicationType["android"] = "android";
|
|
59
|
+
ApplicationType["web"] = "web";
|
|
60
|
+
ApplicationType["cli"] = "cli";
|
|
61
|
+
ApplicationType["sdk"] = "sdk";
|
|
62
|
+
ApplicationType["api"] = "api";
|
|
63
|
+
ApplicationType["desktop"] = "desktop";
|
|
64
|
+
ApplicationType["other"] = "other";
|
|
58
65
|
})(ApplicationType || (exports.ApplicationType = ApplicationType = {}));
|
|
59
66
|
var DomainType;
|
|
60
67
|
(function (DomainType) {
|
|
@@ -85,15 +92,15 @@ var IdentityType;
|
|
|
85
92
|
IdentityType["phoneNumber"] = "phone_number";
|
|
86
93
|
IdentityType["externalId"] = "external_id";
|
|
87
94
|
})(IdentityType || (exports.IdentityType = IdentityType = {}));
|
|
95
|
+
var Currency;
|
|
96
|
+
(function (Currency) {
|
|
97
|
+
Currency["usd"] = "usd";
|
|
98
|
+
})(Currency || (exports.Currency = Currency = {}));
|
|
88
99
|
var Interval;
|
|
89
100
|
(function (Interval) {
|
|
90
101
|
Interval["monthly"] = "monthly";
|
|
91
102
|
Interval["annual"] = "annual";
|
|
92
103
|
})(Interval || (exports.Interval = Interval = {}));
|
|
93
|
-
var Currency;
|
|
94
|
-
(function (Currency) {
|
|
95
|
-
Currency["usd"] = "usd";
|
|
96
|
-
})(Currency || (exports.Currency = Currency = {}));
|
|
97
104
|
var SubscriptionStatus;
|
|
98
105
|
(function (SubscriptionStatus) {
|
|
99
106
|
SubscriptionStatus["incomplete"] = "incomplete";
|