@parra/parra-js-sdk 0.3.611 → 0.3.613
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 +177 -52
- package/dist/ParraAPI.js +19 -12
- 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;
|
@@ -1063,13 +1064,19 @@ export interface Cta {
|
|
1063
1064
|
title: string;
|
1064
1065
|
type: CtaType;
|
1065
1066
|
}
|
1066
|
-
export interface
|
1067
|
+
export interface AppProductStub {
|
1067
1068
|
id: string;
|
1068
|
-
|
1069
|
-
|
1069
|
+
created_at: string;
|
1070
|
+
updated_at: string;
|
1071
|
+
deleted_at?: string | null;
|
1072
|
+
tenant_id: string;
|
1073
|
+
title: string;
|
1074
|
+
key: string;
|
1070
1075
|
description?: string | null;
|
1076
|
+
image?: ImageAssetStub | null;
|
1077
|
+
icon?: ImageAssetStub | null;
|
1071
1078
|
price?: AnyPrice | null;
|
1072
|
-
cta
|
1079
|
+
cta?: Cta | null;
|
1073
1080
|
}
|
1074
1081
|
export interface AppSponsor {
|
1075
1082
|
id: string;
|
@@ -1201,7 +1208,7 @@ export interface AppArticle {
|
|
1201
1208
|
json_content: ArticleContent;
|
1202
1209
|
html_content: string;
|
1203
1210
|
text_content: string;
|
1204
|
-
products?: Array<
|
1211
|
+
products?: Array<AppProductStub>;
|
1205
1212
|
sponsors?: Array<AppSponsor>;
|
1206
1213
|
content?: Content;
|
1207
1214
|
}
|
@@ -1401,9 +1408,14 @@ export interface ProductStub {
|
|
1401
1408
|
deleted_at?: string | null;
|
1402
1409
|
tenant_id: string;
|
1403
1410
|
title: string;
|
1404
|
-
key: string;
|
1411
|
+
key: string | null;
|
1405
1412
|
description?: string | null;
|
1406
1413
|
disabled: boolean;
|
1414
|
+
image?: ImageAssetStub | null;
|
1415
|
+
icon?: ImageAssetStub | null;
|
1416
|
+
price?: AnyPrice | null;
|
1417
|
+
cta?: Cta | null;
|
1418
|
+
sort_order?: number;
|
1407
1419
|
}
|
1408
1420
|
export interface AppleInAppPurchase {
|
1409
1421
|
id: string;
|
@@ -1675,16 +1687,25 @@ export interface Entitlement {
|
|
1675
1687
|
is_consumable: boolean;
|
1676
1688
|
products?: Array<ProductEntitlementProductStub> | null;
|
1677
1689
|
}
|
1678
|
-
export interface
|
1679
|
-
|
1690
|
+
export interface CreateDigitalProductRequestBody {
|
1691
|
+
type: string;
|
1692
|
+
title: string;
|
1680
1693
|
key?: string;
|
1681
1694
|
description?: string | null;
|
1695
|
+
icon_asset_id?: string | null;
|
1696
|
+
image_asset_id?: string | null;
|
1682
1697
|
}
|
1683
|
-
export interface
|
1684
|
-
|
1698
|
+
export interface CreateExternalProductRequestBody {
|
1699
|
+
type: string;
|
1700
|
+
title: string;
|
1685
1701
|
key?: string;
|
1686
1702
|
description?: string | null;
|
1703
|
+
icon_asset_id?: string | null;
|
1704
|
+
image_asset_id?: string | null;
|
1705
|
+
cta_title: string;
|
1706
|
+
cta_url: string | null;
|
1687
1707
|
}
|
1708
|
+
export type CreateProductRequestBody = CreateDigitalProductRequestBody | CreateExternalProductRequestBody;
|
1688
1709
|
export interface ProductEntitlement {
|
1689
1710
|
id: string;
|
1690
1711
|
title: string;
|
@@ -1702,11 +1723,21 @@ export interface Product {
|
|
1702
1723
|
deleted_at?: string | null;
|
1703
1724
|
tenant_id: string;
|
1704
1725
|
title: string;
|
1705
|
-
key: string;
|
1726
|
+
key: string | null;
|
1706
1727
|
description?: string | null;
|
1707
1728
|
disabled: boolean;
|
1729
|
+
image?: ImageAssetStub | null;
|
1730
|
+
icon?: ImageAssetStub | null;
|
1731
|
+
price?: AnyPrice | null;
|
1732
|
+
cta?: Cta | null;
|
1733
|
+
sort_order?: number;
|
1708
1734
|
entitlements?: Array<ProductEntitlement> | null;
|
1709
1735
|
}
|
1736
|
+
export interface UpdateProductRequestBody {
|
1737
|
+
title?: string;
|
1738
|
+
key?: string;
|
1739
|
+
description?: string | null;
|
1740
|
+
}
|
1710
1741
|
export interface CreateProductEntitlementRequestBody {
|
1711
1742
|
entitlement_id: string;
|
1712
1743
|
consumable_quantity?: number | null;
|
@@ -1983,6 +2014,8 @@ export interface Ref {
|
|
1983
2014
|
}
|
1984
2015
|
export type FontSize = FontSizeType | FontSizeToken | Ref;
|
1985
2016
|
export interface FontSizes {
|
2017
|
+
"3xs"?: FontSizeType | FontSizeToken | Ref;
|
2018
|
+
"2xs"?: FontSizeType | FontSizeToken | Ref;
|
1986
2019
|
xs?: FontSizeType | FontSizeToken | Ref;
|
1987
2020
|
sm?: FontSizeType | FontSizeToken | Ref;
|
1988
2021
|
md?: FontSizeType | FontSizeToken | Ref;
|
@@ -2048,11 +2081,63 @@ export interface ResolvedColor {
|
|
2048
2081
|
hex_value: string;
|
2049
2082
|
ref?: string;
|
2050
2083
|
}
|
2051
|
-
export
|
2084
|
+
export type BorderWidth = CssValue | Ref;
|
2085
|
+
export declare enum BorderStyle {
|
2086
|
+
solid = "solid",
|
2087
|
+
dashed = "dashed",
|
2088
|
+
dotted = "dotted"
|
2089
|
+
}
|
2090
|
+
export declare enum BorderRadiusType {
|
2052
2091
|
none = "none",
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2092
|
+
sm = "sm",
|
2093
|
+
md = "md",
|
2094
|
+
lg = "lg",
|
2095
|
+
xl = "xl",
|
2096
|
+
"2xl" = "2xl",
|
2097
|
+
full = "full"
|
2098
|
+
}
|
2099
|
+
export type BorderRadius = BorderRadiusType | CssValue | Ref;
|
2100
|
+
export interface ResolvedPaddingToken {
|
2101
|
+
ref?: string;
|
2102
|
+
px_value: number;
|
2103
|
+
}
|
2104
|
+
export interface ResolvedPaddingAll {
|
2105
|
+
all: ResolvedPaddingToken;
|
2106
|
+
}
|
2107
|
+
export interface ResolvedPaddingEdges {
|
2108
|
+
top?: ResolvedPaddingToken;
|
2109
|
+
right?: ResolvedPaddingToken;
|
2110
|
+
bottom?: ResolvedPaddingToken;
|
2111
|
+
left?: ResolvedPaddingToken;
|
2112
|
+
}
|
2113
|
+
export interface ResolvedPaddingDirectional {
|
2114
|
+
vertical: ResolvedPaddingToken;
|
2115
|
+
horizontal: ResolvedPaddingToken;
|
2116
|
+
}
|
2117
|
+
export type ResolvedPadding = ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2118
|
+
export interface EmojiBase {
|
2119
|
+
background_color?: ResolvedColor;
|
2120
|
+
color?: ResolvedColor;
|
2121
|
+
border_width?: CssValue | Ref;
|
2122
|
+
border_style?: BorderStyle;
|
2123
|
+
border_color?: ResolvedColor;
|
2124
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
2125
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2126
|
+
alpha?: number;
|
2127
|
+
}
|
2128
|
+
export interface EmojiVariantStates {
|
2129
|
+
hover: EmojiBase;
|
2130
|
+
active: EmojiBase;
|
2131
|
+
focus: EmojiBase;
|
2132
|
+
disabled: EmojiBase;
|
2133
|
+
}
|
2134
|
+
export interface EmojiVariant {
|
2135
|
+
base?: EmojiBase;
|
2136
|
+
states: EmojiVariantStates;
|
2137
|
+
}
|
2138
|
+
export interface EmojiVariants {
|
2139
|
+
primary: EmojiVariant;
|
2140
|
+
secondary: EmojiVariant;
|
2056
2141
|
}
|
2057
2142
|
export interface ResolvedRemValue {
|
2058
2143
|
ref?: string;
|
@@ -2071,6 +2156,30 @@ export interface ResolvedFontWeight {
|
|
2071
2156
|
ref?: string;
|
2072
2157
|
value: number;
|
2073
2158
|
}
|
2159
|
+
export interface EmojiSize {
|
2160
|
+
font_size?: ResolvedRemValue | ResolvedPxValue | ResolvedEmValue;
|
2161
|
+
font_weight?: ResolvedFontWeight;
|
2162
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2163
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
2164
|
+
}
|
2165
|
+
export interface EmojiSizes {
|
2166
|
+
xs: EmojiSize;
|
2167
|
+
sm: EmojiSize;
|
2168
|
+
md: EmojiSize;
|
2169
|
+
lg: EmojiSize;
|
2170
|
+
xl: EmojiSize;
|
2171
|
+
}
|
2172
|
+
export interface EmojiTheme {
|
2173
|
+
base: EmojiBase;
|
2174
|
+
variants: EmojiVariants;
|
2175
|
+
sizes: EmojiSizes;
|
2176
|
+
}
|
2177
|
+
export declare enum TextTransform {
|
2178
|
+
none = "none",
|
2179
|
+
uppercase = "uppercase",
|
2180
|
+
lowercase = "lowercase",
|
2181
|
+
capitalize = "capitalize"
|
2182
|
+
}
|
2074
2183
|
export interface ResolvedMarginToken {
|
2075
2184
|
ref?: string;
|
2076
2185
|
px_value: number;
|
@@ -2089,24 +2198,6 @@ export interface ResolvedMarginDirectional {
|
|
2089
2198
|
horizontal: ResolvedMarginToken;
|
2090
2199
|
}
|
2091
2200
|
export type ResolvedMargin = ResolvedMarginAll | ResolvedMarginEdges | ResolvedMarginDirectional;
|
2092
|
-
export interface ResolvedPaddingToken {
|
2093
|
-
ref?: string;
|
2094
|
-
px_value: number;
|
2095
|
-
}
|
2096
|
-
export interface ResolvedPaddingAll {
|
2097
|
-
all: ResolvedPaddingToken;
|
2098
|
-
}
|
2099
|
-
export interface ResolvedPaddingEdges {
|
2100
|
-
top?: ResolvedPaddingToken;
|
2101
|
-
right?: ResolvedPaddingToken;
|
2102
|
-
bottom?: ResolvedPaddingToken;
|
2103
|
-
left?: ResolvedPaddingToken;
|
2104
|
-
}
|
2105
|
-
export interface ResolvedPaddingDirectional {
|
2106
|
-
vertical: ResolvedPaddingToken;
|
2107
|
-
horizontal: ResolvedPaddingToken;
|
2108
|
-
}
|
2109
|
-
export type ResolvedPadding = ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2110
2201
|
export interface FormLabelTheme {
|
2111
2202
|
font_family?: FontFamilyType | FontFamilyToken | Ref;
|
2112
2203
|
color?: ResolvedColor;
|
@@ -2125,22 +2216,6 @@ export interface BackgroundTheme {
|
|
2125
2216
|
primary: ResolvedColor;
|
2126
2217
|
secondary: ResolvedColor;
|
2127
2218
|
}
|
2128
|
-
export declare enum BorderStyle {
|
2129
|
-
solid = "solid",
|
2130
|
-
dashed = "dashed",
|
2131
|
-
dotted = "dotted"
|
2132
|
-
}
|
2133
|
-
export type BorderWidth = CssValue | Ref;
|
2134
|
-
export declare enum BorderRadiusType {
|
2135
|
-
none = "none",
|
2136
|
-
sm = "sm",
|
2137
|
-
md = "md",
|
2138
|
-
lg = "lg",
|
2139
|
-
xl = "xl",
|
2140
|
-
"2xl" = "2xl",
|
2141
|
-
full = "full"
|
2142
|
-
}
|
2143
|
-
export type BorderRadius = BorderRadiusType | CssValue | Ref;
|
2144
2219
|
export interface BadgeSize {
|
2145
2220
|
font_size?: ResolvedRemValue | ResolvedPxValue | ResolvedEmValue;
|
2146
2221
|
font_weight?: ResolvedFontWeight;
|
@@ -2359,7 +2434,7 @@ export interface ResolvedZIndex {
|
|
2359
2434
|
}
|
2360
2435
|
export interface DialogBase {
|
2361
2436
|
background_color: ResolvedColor;
|
2362
|
-
padding
|
2437
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2363
2438
|
margin?: ResolvedMarginAll | ResolvedMarginEdges | ResolvedMarginDirectional;
|
2364
2439
|
border_width?: CssValue | Ref;
|
2365
2440
|
border_style?: BorderStyle;
|
@@ -2372,6 +2447,8 @@ export interface DialogSize {
|
|
2372
2447
|
width: string | number;
|
2373
2448
|
max_width?: string | number;
|
2374
2449
|
max_height?: string | number;
|
2450
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2451
|
+
margin?: ResolvedMarginAll | ResolvedMarginEdges | ResolvedMarginDirectional;
|
2375
2452
|
}
|
2376
2453
|
export interface DialogSizes {
|
2377
2454
|
xs: DialogSize;
|
@@ -2484,12 +2561,26 @@ export interface NavItemVariants {
|
|
2484
2561
|
secondary: NavItemVariant;
|
2485
2562
|
}
|
2486
2563
|
export interface NavItemTheme {
|
2564
|
+
base?: NavItemBase;
|
2487
2565
|
variants: NavItemVariants;
|
2488
2566
|
}
|
2567
|
+
export interface NavDropdownBase {
|
2568
|
+
background_color?: ResolvedColor;
|
2569
|
+
color?: ResolvedColor;
|
2570
|
+
border_width?: CssValue | Ref;
|
2571
|
+
border_style?: BorderStyle;
|
2572
|
+
border_color?: ResolvedColor;
|
2573
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
2574
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2575
|
+
}
|
2576
|
+
export interface NavDropdownTheme {
|
2577
|
+
base: NavDropdownBase;
|
2578
|
+
}
|
2489
2579
|
export interface NavTheme {
|
2490
2580
|
base: NavBase;
|
2491
2581
|
states: NavStates;
|
2492
2582
|
items: NavItemTheme;
|
2583
|
+
dropdown?: NavDropdownTheme;
|
2493
2584
|
}
|
2494
2585
|
export interface MenuBase {
|
2495
2586
|
background_color?: ResolvedColor;
|
@@ -2712,6 +2803,7 @@ export interface TypographyTheme {
|
|
2712
2803
|
sizes: TypographySizes;
|
2713
2804
|
}
|
2714
2805
|
export interface ResolvedComponents {
|
2806
|
+
emoji: EmojiTheme;
|
2715
2807
|
form: FormTheme;
|
2716
2808
|
background: BackgroundTheme;
|
2717
2809
|
badge: BadgeTheme;
|
@@ -3834,7 +3926,7 @@ export interface AppVideo {
|
|
3834
3926
|
reaction_options?: Array<ReactionOptionGroup>;
|
3835
3927
|
reactions?: Array<ReactionSummary>;
|
3836
3928
|
comments?: CommentSummary;
|
3837
|
-
products?: Array<
|
3929
|
+
products?: Array<AppProductStub>;
|
3838
3930
|
sponsors?: Array<AppSponsor>;
|
3839
3931
|
content?: Content;
|
3840
3932
|
}
|
@@ -5822,6 +5914,9 @@ export interface LinkAppStoreConnectAppRequestBody {
|
|
5822
5914
|
app_store_connect_connection_id: string;
|
5823
5915
|
app_id: string;
|
5824
5916
|
}
|
5917
|
+
export interface ValidateApiKeyRequestBody {
|
5918
|
+
secret?: string | null;
|
5919
|
+
}
|
5825
5920
|
export declare enum TenantOnboardingGoal {
|
5826
5921
|
newProject = "new_project",
|
5827
5922
|
existingProject = "existing_project"
|
@@ -5843,12 +5938,27 @@ export interface TenantOnboardingIntegrationIntent {
|
|
5843
5938
|
complete?: boolean | null;
|
5844
5939
|
skipped?: boolean | null;
|
5845
5940
|
}
|
5941
|
+
export interface TenantOnboardingVideoIntent {
|
5942
|
+
skipped?: boolean | null;
|
5943
|
+
connected_app_connection_id?: string | null;
|
5944
|
+
}
|
5945
|
+
export interface TenantOnboardingProductIntent {
|
5946
|
+
skipped?: boolean | null;
|
5947
|
+
complete?: boolean | null;
|
5948
|
+
}
|
5949
|
+
export interface TenantOnboardingThemeIntent {
|
5950
|
+
skipped?: boolean | null;
|
5951
|
+
complete?: boolean | null;
|
5952
|
+
}
|
5846
5953
|
export interface TenantOnboarding {
|
5847
5954
|
skipped?: boolean | null;
|
5848
5955
|
goal?: TenantOnboardingGoal | null;
|
5849
5956
|
application_intent?: TenantOnboardingApplicationIntent | null;
|
5850
5957
|
domain?: TenantOnboardingDomainIntent | null;
|
5851
5958
|
integration?: TenantOnboardingIntegrationIntent | null;
|
5959
|
+
video_intent?: TenantOnboardingVideoIntent | null;
|
5960
|
+
product_intent?: TenantOnboardingProductIntent | null;
|
5961
|
+
theme_intent?: TenantOnboardingThemeIntent | null;
|
5852
5962
|
}
|
5853
5963
|
export interface TenantMetrics {
|
5854
5964
|
application_count: number;
|
@@ -5881,6 +5991,16 @@ export interface Tenant {
|
|
5881
5991
|
onboarding?: TenantOnboarding | null;
|
5882
5992
|
metrics?: TenantMetrics | null;
|
5883
5993
|
}
|
5994
|
+
export declare enum ApiKeyType {
|
5995
|
+
public = "public",
|
5996
|
+
secret = "secret"
|
5997
|
+
}
|
5998
|
+
export interface ValidateApiKeyResponseBody {
|
5999
|
+
id: string;
|
6000
|
+
tenant_id: string;
|
6001
|
+
tenant: Tenant;
|
6002
|
+
type: ApiKeyType;
|
6003
|
+
}
|
5884
6004
|
export interface TenantInvitation {
|
5885
6005
|
id: string;
|
5886
6006
|
created_at: string;
|
@@ -6449,6 +6569,11 @@ export interface UpdateTenantRequestBody {
|
|
6449
6569
|
onboarding_application_intent_should_notify?: boolean | null;
|
6450
6570
|
onboarding_application_intent_app_store_connect_setup?: boolean | null;
|
6451
6571
|
onboarding_application_intent_app_store_connect_skipped?: boolean | null;
|
6572
|
+
onboarding_video_intent_skipped?: boolean | null;
|
6573
|
+
onboarding_product_intent_skipped?: boolean | null;
|
6574
|
+
onboarding_product_intent_complete?: boolean | null;
|
6575
|
+
onboarding_theme_intent_skipped?: boolean | null;
|
6576
|
+
onboarding_theme_intent_complete?: boolean | null;
|
6452
6577
|
onboarding_integration_complete?: boolean | null;
|
6453
6578
|
onboarding_integration_skipped?: boolean | null;
|
6454
6579
|
}
|
@@ -7370,7 +7495,7 @@ declare class ParraAPI {
|
|
7370
7495
|
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody, options?: Options) => Promise<Application>;
|
7371
7496
|
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
|
7372
7497
|
linkAppStoreConnectAppForApplication: (tenant_id: string, application_id: string, body: LinkAppStoreConnectAppRequestBody, options?: Options) => Promise<Application>;
|
7373
|
-
|
7498
|
+
validateApiKey: (api_key_id: string, body?: ValidateApiKeyRequestBody, options?: Options) => Promise<ValidateApiKeyResponseBody>;
|
7374
7499
|
acceptInvitationByCode: (invitation_code: string, options?: Options) => Promise<TenantInvitation>;
|
7375
7500
|
deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string, options?: Options) => Promise<Response>;
|
7376
7501
|
createApiKeyForTenantById: (tenant_id: string, body: CreateApiKeyRequestBody, options?: Options) => Promise<ApiKeyWithSecretResponse>;
|
package/dist/ParraAPI.js
CHANGED
@@ -11,9 +11,9 @@ 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.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.
|
15
|
-
exports.
|
16
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = void 0;
|
14
|
+
exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.TextTransform = exports.BorderRadiusType = exports.BorderStyle = 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.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";
|
@@ -292,13 +292,6 @@ var FontFamilyType;
|
|
292
292
|
FontFamilyType["heading"] = "heading";
|
293
293
|
FontFamilyType["monospace"] = "monospace";
|
294
294
|
})(FontFamilyType || (exports.FontFamilyType = FontFamilyType = {}));
|
295
|
-
var TextTransform;
|
296
|
-
(function (TextTransform) {
|
297
|
-
TextTransform["none"] = "none";
|
298
|
-
TextTransform["uppercase"] = "uppercase";
|
299
|
-
TextTransform["lowercase"] = "lowercase";
|
300
|
-
TextTransform["capitalize"] = "capitalize";
|
301
|
-
})(TextTransform || (exports.TextTransform = TextTransform = {}));
|
302
295
|
var BorderStyle;
|
303
296
|
(function (BorderStyle) {
|
304
297
|
BorderStyle["solid"] = "solid";
|
@@ -315,6 +308,13 @@ var BorderRadiusType;
|
|
315
308
|
BorderRadiusType["2xl"] = "2xl";
|
316
309
|
BorderRadiusType["full"] = "full";
|
317
310
|
})(BorderRadiusType || (exports.BorderRadiusType = BorderRadiusType = {}));
|
311
|
+
var TextTransform;
|
312
|
+
(function (TextTransform) {
|
313
|
+
TextTransform["none"] = "none";
|
314
|
+
TextTransform["uppercase"] = "uppercase";
|
315
|
+
TextTransform["lowercase"] = "lowercase";
|
316
|
+
TextTransform["capitalize"] = "capitalize";
|
317
|
+
})(TextTransform || (exports.TextTransform = TextTransform = {}));
|
318
318
|
var QrCodeLogoPaddingStyle;
|
319
319
|
(function (QrCodeLogoPaddingStyle) {
|
320
320
|
QrCodeLogoPaddingStyle["square"] = "square";
|
@@ -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 = {}; }
|