@parra/parra-js-sdk 0.3.610 → 0.3.612
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 +37 -10
- package/dist/ParraAPI.js +11 -4
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -422,6 +422,7 @@ export interface UserResponse {
|
|
422
422
|
email_verified?: boolean;
|
423
423
|
locale?: string | null;
|
424
424
|
type: string;
|
425
|
+
brand?: string | null;
|
425
426
|
role?: string | null;
|
426
427
|
role_other_description?: string | null;
|
427
428
|
avatar?: ImageAssetStub;
|
@@ -438,14 +439,6 @@ export interface TenantMemberTeamMemberStub {
|
|
438
439
|
admin?: boolean | null;
|
439
440
|
roles?: Array<string> | null;
|
440
441
|
}
|
441
|
-
export interface TenantMember {
|
442
|
-
tenant: TenantMemberTenantStub;
|
443
|
-
team_member: TenantMemberTeamMemberStub;
|
444
|
-
}
|
445
|
-
export interface MemberResponse {
|
446
|
-
tenant: TenantMemberTenantStub;
|
447
|
-
team_member: TenantMemberTeamMemberStub;
|
448
|
-
}
|
449
442
|
export declare enum IdentityType {
|
450
443
|
anonymous = "anonymous",
|
451
444
|
username = "username",
|
@@ -596,7 +589,8 @@ export interface TenantUser {
|
|
596
589
|
export interface UserInfoResponse {
|
597
590
|
roles?: Array<string>;
|
598
591
|
user?: UserResponse | null;
|
599
|
-
|
592
|
+
tenant?: TenantMemberTenantStub | null;
|
593
|
+
team_member?: TenantMemberTeamMemberStub | null;
|
600
594
|
tenant_user?: TenantUser | null;
|
601
595
|
}
|
602
596
|
export interface AuthToken {
|
@@ -5829,6 +5823,9 @@ export interface LinkAppStoreConnectAppRequestBody {
|
|
5829
5823
|
app_store_connect_connection_id: string;
|
5830
5824
|
app_id: string;
|
5831
5825
|
}
|
5826
|
+
export interface ValidateApiKeyRequestBody {
|
5827
|
+
secret?: string | null;
|
5828
|
+
}
|
5832
5829
|
export declare enum TenantOnboardingGoal {
|
5833
5830
|
newProject = "new_project",
|
5834
5831
|
existingProject = "existing_project"
|
@@ -5850,12 +5847,27 @@ export interface TenantOnboardingIntegrationIntent {
|
|
5850
5847
|
complete?: boolean | null;
|
5851
5848
|
skipped?: boolean | null;
|
5852
5849
|
}
|
5850
|
+
export interface TenantOnboardingVideoIntent {
|
5851
|
+
skipped?: boolean | null;
|
5852
|
+
connected_app_connection_id?: string | null;
|
5853
|
+
}
|
5854
|
+
export interface TenantOnboardingProductIntent {
|
5855
|
+
skipped?: boolean | null;
|
5856
|
+
complete?: boolean | null;
|
5857
|
+
}
|
5858
|
+
export interface TenantOnboardingThemeIntent {
|
5859
|
+
skipped?: boolean | null;
|
5860
|
+
complete?: boolean | null;
|
5861
|
+
}
|
5853
5862
|
export interface TenantOnboarding {
|
5854
5863
|
skipped?: boolean | null;
|
5855
5864
|
goal?: TenantOnboardingGoal | null;
|
5856
5865
|
application_intent?: TenantOnboardingApplicationIntent | null;
|
5857
5866
|
domain?: TenantOnboardingDomainIntent | null;
|
5858
5867
|
integration?: TenantOnboardingIntegrationIntent | null;
|
5868
|
+
video_intent?: TenantOnboardingVideoIntent | null;
|
5869
|
+
product_intent?: TenantOnboardingProductIntent | null;
|
5870
|
+
theme_intent?: TenantOnboardingThemeIntent | null;
|
5859
5871
|
}
|
5860
5872
|
export interface TenantMetrics {
|
5861
5873
|
application_count: number;
|
@@ -5888,6 +5900,16 @@ export interface Tenant {
|
|
5888
5900
|
onboarding?: TenantOnboarding | null;
|
5889
5901
|
metrics?: TenantMetrics | null;
|
5890
5902
|
}
|
5903
|
+
export declare enum ApiKeyType {
|
5904
|
+
public = "public",
|
5905
|
+
secret = "secret"
|
5906
|
+
}
|
5907
|
+
export interface ValidateApiKeyResponseBody {
|
5908
|
+
id: string;
|
5909
|
+
tenant_id: string;
|
5910
|
+
tenant: Tenant;
|
5911
|
+
type: ApiKeyType;
|
5912
|
+
}
|
5891
5913
|
export interface TenantInvitation {
|
5892
5914
|
id: string;
|
5893
5915
|
created_at: string;
|
@@ -6456,6 +6478,11 @@ export interface UpdateTenantRequestBody {
|
|
6456
6478
|
onboarding_application_intent_should_notify?: boolean | null;
|
6457
6479
|
onboarding_application_intent_app_store_connect_setup?: boolean | null;
|
6458
6480
|
onboarding_application_intent_app_store_connect_skipped?: boolean | null;
|
6481
|
+
onboarding_video_intent_skipped?: boolean | null;
|
6482
|
+
onboarding_product_intent_skipped?: boolean | null;
|
6483
|
+
onboarding_product_intent_complete?: boolean | null;
|
6484
|
+
onboarding_theme_intent_skipped?: boolean | null;
|
6485
|
+
onboarding_theme_intent_complete?: boolean | null;
|
6459
6486
|
onboarding_integration_complete?: boolean | null;
|
6460
6487
|
onboarding_integration_skipped?: boolean | null;
|
6461
6488
|
}
|
@@ -7377,7 +7404,7 @@ declare class ParraAPI {
|
|
7377
7404
|
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody, options?: Options) => Promise<Application>;
|
7378
7405
|
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
|
7379
7406
|
linkAppStoreConnectAppForApplication: (tenant_id: string, application_id: string, body: LinkAppStoreConnectAppRequestBody, options?: Options) => Promise<Application>;
|
7380
|
-
|
7407
|
+
validateApiKey: (api_key_id: string, body?: ValidateApiKeyRequestBody, options?: Options) => Promise<ValidateApiKeyResponseBody>;
|
7381
7408
|
acceptInvitationByCode: (invitation_code: string, options?: Options) => Promise<TenantInvitation>;
|
7382
7409
|
deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string, options?: Options) => Promise<Response>;
|
7383
7410
|
createApiKeyForTenantById: (tenant_id: string, body: CreateApiKeyRequestBody, options?: Options) => Promise<ApiKeyWithSecretResponse>;
|
package/dist/ParraAPI.js
CHANGED
@@ -12,8 +12,8 @@ var __assign = (this && this.__assign) || function () {
|
|
12
12
|
};
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
14
|
exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseStatus = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = exports.ShareAssetType = exports.DesignTokenType = exports.ThemeCornerRadiusStyle = exports.ContentType = exports.CtaType = exports.Interval = exports.Currency = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantBrand = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
15
|
-
exports.
|
16
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = void 0;
|
15
|
+
exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApiKeyType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.SubscriptionStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = exports.HeadingTag = void 0;
|
16
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = void 0;
|
17
17
|
var TicketType;
|
18
18
|
(function (TicketType) {
|
19
19
|
TicketType["bug"] = "bug";
|
@@ -606,6 +606,11 @@ var TenantOnboardingGoal;
|
|
606
606
|
TenantOnboardingGoal["newProject"] = "new_project";
|
607
607
|
TenantOnboardingGoal["existingProject"] = "existing_project";
|
608
608
|
})(TenantOnboardingGoal || (exports.TenantOnboardingGoal = TenantOnboardingGoal = {}));
|
609
|
+
var ApiKeyType;
|
610
|
+
(function (ApiKeyType) {
|
611
|
+
ApiKeyType["public"] = "public";
|
612
|
+
ApiKeyType["secret"] = "secret";
|
613
|
+
})(ApiKeyType || (exports.ApiKeyType = ApiKeyType = {}));
|
609
614
|
var ConnectedAppType;
|
610
615
|
(function (ConnectedAppType) {
|
611
616
|
ConnectedAppType["parra"] = "parra";
|
@@ -2546,9 +2551,11 @@ var ParraAPI = /** @class */ (function () {
|
|
2546
2551
|
"content-type": "application/json",
|
2547
2552
|
} }, options));
|
2548
2553
|
};
|
2549
|
-
this.
|
2554
|
+
this.validateApiKey = function (api_key_id, body, options) {
|
2550
2555
|
if (options === void 0) { options = {}; }
|
2551
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/api-keys/").concat(api_key_id, "/
|
2556
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/api-keys/").concat(api_key_id, "/validate"), method: "post", body: JSON.stringify(body), headers: {
|
2557
|
+
"content-type": "application/json",
|
2558
|
+
} }, options));
|
2552
2559
|
};
|
2553
2560
|
this.acceptInvitationByCode = function (invitation_code, options) {
|
2554
2561
|
if (options === void 0) { options = {}; }
|