@parra/parra-js-sdk 0.3.612 → 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 +142 -51
- package/dist/ParraAPI.js +8 -8
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1064,13 +1064,19 @@ export interface Cta {
|
|
1064
1064
|
title: string;
|
1065
1065
|
type: CtaType;
|
1066
1066
|
}
|
1067
|
-
export interface
|
1067
|
+
export interface AppProductStub {
|
1068
1068
|
id: string;
|
1069
|
-
|
1070
|
-
|
1069
|
+
created_at: string;
|
1070
|
+
updated_at: string;
|
1071
|
+
deleted_at?: string | null;
|
1072
|
+
tenant_id: string;
|
1073
|
+
title: string;
|
1074
|
+
key: string;
|
1071
1075
|
description?: string | null;
|
1076
|
+
image?: ImageAssetStub | null;
|
1077
|
+
icon?: ImageAssetStub | null;
|
1072
1078
|
price?: AnyPrice | null;
|
1073
|
-
cta
|
1079
|
+
cta?: Cta | null;
|
1074
1080
|
}
|
1075
1081
|
export interface AppSponsor {
|
1076
1082
|
id: string;
|
@@ -1202,7 +1208,7 @@ export interface AppArticle {
|
|
1202
1208
|
json_content: ArticleContent;
|
1203
1209
|
html_content: string;
|
1204
1210
|
text_content: string;
|
1205
|
-
products?: Array<
|
1211
|
+
products?: Array<AppProductStub>;
|
1206
1212
|
sponsors?: Array<AppSponsor>;
|
1207
1213
|
content?: Content;
|
1208
1214
|
}
|
@@ -1402,9 +1408,14 @@ export interface ProductStub {
|
|
1402
1408
|
deleted_at?: string | null;
|
1403
1409
|
tenant_id: string;
|
1404
1410
|
title: string;
|
1405
|
-
key: string;
|
1411
|
+
key: string | null;
|
1406
1412
|
description?: string | null;
|
1407
1413
|
disabled: boolean;
|
1414
|
+
image?: ImageAssetStub | null;
|
1415
|
+
icon?: ImageAssetStub | null;
|
1416
|
+
price?: AnyPrice | null;
|
1417
|
+
cta?: Cta | null;
|
1418
|
+
sort_order?: number;
|
1408
1419
|
}
|
1409
1420
|
export interface AppleInAppPurchase {
|
1410
1421
|
id: string;
|
@@ -1676,16 +1687,25 @@ export interface Entitlement {
|
|
1676
1687
|
is_consumable: boolean;
|
1677
1688
|
products?: Array<ProductEntitlementProductStub> | null;
|
1678
1689
|
}
|
1679
|
-
export interface
|
1680
|
-
|
1690
|
+
export interface CreateDigitalProductRequestBody {
|
1691
|
+
type: string;
|
1692
|
+
title: string;
|
1681
1693
|
key?: string;
|
1682
1694
|
description?: string | null;
|
1695
|
+
icon_asset_id?: string | null;
|
1696
|
+
image_asset_id?: string | null;
|
1683
1697
|
}
|
1684
|
-
export interface
|
1685
|
-
|
1698
|
+
export interface CreateExternalProductRequestBody {
|
1699
|
+
type: string;
|
1700
|
+
title: string;
|
1686
1701
|
key?: string;
|
1687
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;
|
1688
1707
|
}
|
1708
|
+
export type CreateProductRequestBody = CreateDigitalProductRequestBody | CreateExternalProductRequestBody;
|
1689
1709
|
export interface ProductEntitlement {
|
1690
1710
|
id: string;
|
1691
1711
|
title: string;
|
@@ -1703,11 +1723,21 @@ export interface Product {
|
|
1703
1723
|
deleted_at?: string | null;
|
1704
1724
|
tenant_id: string;
|
1705
1725
|
title: string;
|
1706
|
-
key: string;
|
1726
|
+
key: string | null;
|
1707
1727
|
description?: string | null;
|
1708
1728
|
disabled: boolean;
|
1729
|
+
image?: ImageAssetStub | null;
|
1730
|
+
icon?: ImageAssetStub | null;
|
1731
|
+
price?: AnyPrice | null;
|
1732
|
+
cta?: Cta | null;
|
1733
|
+
sort_order?: number;
|
1709
1734
|
entitlements?: Array<ProductEntitlement> | null;
|
1710
1735
|
}
|
1736
|
+
export interface UpdateProductRequestBody {
|
1737
|
+
title?: string;
|
1738
|
+
key?: string;
|
1739
|
+
description?: string | null;
|
1740
|
+
}
|
1711
1741
|
export interface CreateProductEntitlementRequestBody {
|
1712
1742
|
entitlement_id: string;
|
1713
1743
|
consumable_quantity?: number | null;
|
@@ -1984,6 +2014,8 @@ export interface Ref {
|
|
1984
2014
|
}
|
1985
2015
|
export type FontSize = FontSizeType | FontSizeToken | Ref;
|
1986
2016
|
export interface FontSizes {
|
2017
|
+
"3xs"?: FontSizeType | FontSizeToken | Ref;
|
2018
|
+
"2xs"?: FontSizeType | FontSizeToken | Ref;
|
1987
2019
|
xs?: FontSizeType | FontSizeToken | Ref;
|
1988
2020
|
sm?: FontSizeType | FontSizeToken | Ref;
|
1989
2021
|
md?: FontSizeType | FontSizeToken | Ref;
|
@@ -2049,11 +2081,63 @@ export interface ResolvedColor {
|
|
2049
2081
|
hex_value: string;
|
2050
2082
|
ref?: string;
|
2051
2083
|
}
|
2052
|
-
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 {
|
2053
2091
|
none = "none",
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
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;
|
2057
2141
|
}
|
2058
2142
|
export interface ResolvedRemValue {
|
2059
2143
|
ref?: string;
|
@@ -2072,6 +2156,30 @@ export interface ResolvedFontWeight {
|
|
2072
2156
|
ref?: string;
|
2073
2157
|
value: number;
|
2074
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
|
+
}
|
2075
2183
|
export interface ResolvedMarginToken {
|
2076
2184
|
ref?: string;
|
2077
2185
|
px_value: number;
|
@@ -2090,24 +2198,6 @@ export interface ResolvedMarginDirectional {
|
|
2090
2198
|
horizontal: ResolvedMarginToken;
|
2091
2199
|
}
|
2092
2200
|
export type ResolvedMargin = ResolvedMarginAll | ResolvedMarginEdges | ResolvedMarginDirectional;
|
2093
|
-
export interface ResolvedPaddingToken {
|
2094
|
-
ref?: string;
|
2095
|
-
px_value: number;
|
2096
|
-
}
|
2097
|
-
export interface ResolvedPaddingAll {
|
2098
|
-
all: ResolvedPaddingToken;
|
2099
|
-
}
|
2100
|
-
export interface ResolvedPaddingEdges {
|
2101
|
-
top?: ResolvedPaddingToken;
|
2102
|
-
right?: ResolvedPaddingToken;
|
2103
|
-
bottom?: ResolvedPaddingToken;
|
2104
|
-
left?: ResolvedPaddingToken;
|
2105
|
-
}
|
2106
|
-
export interface ResolvedPaddingDirectional {
|
2107
|
-
vertical: ResolvedPaddingToken;
|
2108
|
-
horizontal: ResolvedPaddingToken;
|
2109
|
-
}
|
2110
|
-
export type ResolvedPadding = ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2111
2201
|
export interface FormLabelTheme {
|
2112
2202
|
font_family?: FontFamilyType | FontFamilyToken | Ref;
|
2113
2203
|
color?: ResolvedColor;
|
@@ -2126,22 +2216,6 @@ export interface BackgroundTheme {
|
|
2126
2216
|
primary: ResolvedColor;
|
2127
2217
|
secondary: ResolvedColor;
|
2128
2218
|
}
|
2129
|
-
export declare enum BorderStyle {
|
2130
|
-
solid = "solid",
|
2131
|
-
dashed = "dashed",
|
2132
|
-
dotted = "dotted"
|
2133
|
-
}
|
2134
|
-
export type BorderWidth = CssValue | Ref;
|
2135
|
-
export declare enum BorderRadiusType {
|
2136
|
-
none = "none",
|
2137
|
-
sm = "sm",
|
2138
|
-
md = "md",
|
2139
|
-
lg = "lg",
|
2140
|
-
xl = "xl",
|
2141
|
-
"2xl" = "2xl",
|
2142
|
-
full = "full"
|
2143
|
-
}
|
2144
|
-
export type BorderRadius = BorderRadiusType | CssValue | Ref;
|
2145
2219
|
export interface BadgeSize {
|
2146
2220
|
font_size?: ResolvedRemValue | ResolvedPxValue | ResolvedEmValue;
|
2147
2221
|
font_weight?: ResolvedFontWeight;
|
@@ -2360,7 +2434,7 @@ export interface ResolvedZIndex {
|
|
2360
2434
|
}
|
2361
2435
|
export interface DialogBase {
|
2362
2436
|
background_color: ResolvedColor;
|
2363
|
-
padding
|
2437
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2364
2438
|
margin?: ResolvedMarginAll | ResolvedMarginEdges | ResolvedMarginDirectional;
|
2365
2439
|
border_width?: CssValue | Ref;
|
2366
2440
|
border_style?: BorderStyle;
|
@@ -2373,6 +2447,8 @@ export interface DialogSize {
|
|
2373
2447
|
width: string | number;
|
2374
2448
|
max_width?: string | number;
|
2375
2449
|
max_height?: string | number;
|
2450
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
2451
|
+
margin?: ResolvedMarginAll | ResolvedMarginEdges | ResolvedMarginDirectional;
|
2376
2452
|
}
|
2377
2453
|
export interface DialogSizes {
|
2378
2454
|
xs: DialogSize;
|
@@ -2485,12 +2561,26 @@ export interface NavItemVariants {
|
|
2485
2561
|
secondary: NavItemVariant;
|
2486
2562
|
}
|
2487
2563
|
export interface NavItemTheme {
|
2564
|
+
base?: NavItemBase;
|
2488
2565
|
variants: NavItemVariants;
|
2489
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
|
+
}
|
2490
2579
|
export interface NavTheme {
|
2491
2580
|
base: NavBase;
|
2492
2581
|
states: NavStates;
|
2493
2582
|
items: NavItemTheme;
|
2583
|
+
dropdown?: NavDropdownTheme;
|
2494
2584
|
}
|
2495
2585
|
export interface MenuBase {
|
2496
2586
|
background_color?: ResolvedColor;
|
@@ -2713,6 +2803,7 @@ export interface TypographyTheme {
|
|
2713
2803
|
sizes: TypographySizes;
|
2714
2804
|
}
|
2715
2805
|
export interface ResolvedComponents {
|
2806
|
+
emoji: EmojiTheme;
|
2716
2807
|
form: FormTheme;
|
2717
2808
|
background: BackgroundTheme;
|
2718
2809
|
badge: BadgeTheme;
|
@@ -3835,7 +3926,7 @@ export interface AppVideo {
|
|
3835
3926
|
reaction_options?: Array<ReactionOptionGroup>;
|
3836
3927
|
reactions?: Array<ReactionSummary>;
|
3837
3928
|
comments?: CommentSummary;
|
3838
|
-
products?: Array<
|
3929
|
+
products?: Array<AppProductStub>;
|
3839
3930
|
sponsors?: Array<AppSponsor>;
|
3840
3931
|
content?: Content;
|
3841
3932
|
}
|
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.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.
|
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
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
16
|
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = void 0;
|
17
17
|
var TicketType;
|
@@ -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";
|