@parra/parra-js-sdk 0.3.611 → 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 +35 -1
- 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;
|
@@ -5822,6 +5823,9 @@ export interface LinkAppStoreConnectAppRequestBody {
|
|
5822
5823
|
app_store_connect_connection_id: string;
|
5823
5824
|
app_id: string;
|
5824
5825
|
}
|
5826
|
+
export interface ValidateApiKeyRequestBody {
|
5827
|
+
secret?: string | null;
|
5828
|
+
}
|
5825
5829
|
export declare enum TenantOnboardingGoal {
|
5826
5830
|
newProject = "new_project",
|
5827
5831
|
existingProject = "existing_project"
|
@@ -5843,12 +5847,27 @@ export interface TenantOnboardingIntegrationIntent {
|
|
5843
5847
|
complete?: boolean | null;
|
5844
5848
|
skipped?: boolean | null;
|
5845
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
|
+
}
|
5846
5862
|
export interface TenantOnboarding {
|
5847
5863
|
skipped?: boolean | null;
|
5848
5864
|
goal?: TenantOnboardingGoal | null;
|
5849
5865
|
application_intent?: TenantOnboardingApplicationIntent | null;
|
5850
5866
|
domain?: TenantOnboardingDomainIntent | null;
|
5851
5867
|
integration?: TenantOnboardingIntegrationIntent | null;
|
5868
|
+
video_intent?: TenantOnboardingVideoIntent | null;
|
5869
|
+
product_intent?: TenantOnboardingProductIntent | null;
|
5870
|
+
theme_intent?: TenantOnboardingThemeIntent | null;
|
5852
5871
|
}
|
5853
5872
|
export interface TenantMetrics {
|
5854
5873
|
application_count: number;
|
@@ -5881,6 +5900,16 @@ export interface Tenant {
|
|
5881
5900
|
onboarding?: TenantOnboarding | null;
|
5882
5901
|
metrics?: TenantMetrics | null;
|
5883
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
|
+
}
|
5884
5913
|
export interface TenantInvitation {
|
5885
5914
|
id: string;
|
5886
5915
|
created_at: string;
|
@@ -6449,6 +6478,11 @@ export interface UpdateTenantRequestBody {
|
|
6449
6478
|
onboarding_application_intent_should_notify?: boolean | null;
|
6450
6479
|
onboarding_application_intent_app_store_connect_setup?: boolean | null;
|
6451
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;
|
6452
6486
|
onboarding_integration_complete?: boolean | null;
|
6453
6487
|
onboarding_integration_skipped?: boolean | null;
|
6454
6488
|
}
|
@@ -7370,7 +7404,7 @@ declare class ParraAPI {
|
|
7370
7404
|
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody, options?: Options) => Promise<Application>;
|
7371
7405
|
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
|
7372
7406
|
linkAppStoreConnectAppForApplication: (tenant_id: string, application_id: string, body: LinkAppStoreConnectAppRequestBody, options?: Options) => Promise<Application>;
|
7373
|
-
|
7407
|
+
validateApiKey: (api_key_id: string, body?: ValidateApiKeyRequestBody, options?: Options) => Promise<ValidateApiKeyResponseBody>;
|
7374
7408
|
acceptInvitationByCode: (invitation_code: string, options?: Options) => Promise<TenantInvitation>;
|
7375
7409
|
deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string, options?: Options) => Promise<Response>;
|
7376
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 = {}; }
|