@parra/parra-js-sdk 0.3.563 → 0.3.565
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 +50 -3
- package/dist/ParraAPI.js +4 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -620,6 +620,7 @@ export interface UploadImageWithGroupRequestBody {
|
|
620
620
|
image: File;
|
621
621
|
group: string;
|
622
622
|
}
|
623
|
+
export type UploadImageAssetRequestBody = UploadImageWithGroupRequestBody;
|
623
624
|
export declare enum ContentCardActionType {
|
624
625
|
link = "link",
|
625
626
|
feedbackForm = "feedback_form"
|
@@ -1931,6 +1932,43 @@ export interface CardTheme {
|
|
1931
1932
|
base: CardBase;
|
1932
1933
|
variants: CardVariants;
|
1933
1934
|
}
|
1935
|
+
export interface ChipBase {
|
1936
|
+
background_color?: ResolvedColor;
|
1937
|
+
color?: ResolvedColor;
|
1938
|
+
border_width?: CssValue | Ref;
|
1939
|
+
border_style?: BorderStyle;
|
1940
|
+
border_color?: ResolvedColor;
|
1941
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
1942
|
+
}
|
1943
|
+
export interface ChipVariant {
|
1944
|
+
background_color?: ResolvedColor;
|
1945
|
+
color?: ResolvedColor;
|
1946
|
+
border_width?: CssValue | Ref;
|
1947
|
+
border_style?: BorderStyle;
|
1948
|
+
border_color?: ResolvedColor;
|
1949
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
1950
|
+
}
|
1951
|
+
export interface ChipVariants {
|
1952
|
+
primary: ChipVariant;
|
1953
|
+
secondary: ChipVariant;
|
1954
|
+
}
|
1955
|
+
export interface ChipSize {
|
1956
|
+
font_size?: ResolvedRemValue | ResolvedPxValue | ResolvedEmValue;
|
1957
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
1958
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
1959
|
+
}
|
1960
|
+
export interface ChipSizes {
|
1961
|
+
xs: ChipSize;
|
1962
|
+
sm: ChipSize;
|
1963
|
+
md: ChipSize;
|
1964
|
+
lg: ChipSize;
|
1965
|
+
xl: ChipSize;
|
1966
|
+
}
|
1967
|
+
export interface ChipTheme {
|
1968
|
+
base: ChipBase;
|
1969
|
+
variants: ChipVariants;
|
1970
|
+
sizes: ChipSizes;
|
1971
|
+
}
|
1934
1972
|
export interface InputBase {
|
1935
1973
|
background_color?: ResolvedColor;
|
1936
1974
|
color?: ResolvedColor;
|
@@ -1994,6 +2032,7 @@ export interface DialogSize {
|
|
1994
2032
|
max_height?: string | number;
|
1995
2033
|
}
|
1996
2034
|
export interface DialogSizes {
|
2035
|
+
xs: DialogSize;
|
1997
2036
|
sm: DialogSize;
|
1998
2037
|
md: DialogSize;
|
1999
2038
|
lg: DialogSize;
|
@@ -2337,6 +2376,7 @@ export interface ResolvedComponents {
|
|
2337
2376
|
button: ButtonTheme;
|
2338
2377
|
icon_button: IconButtonTheme;
|
2339
2378
|
card: CardTheme;
|
2379
|
+
chip?: ChipTheme;
|
2340
2380
|
input: InputTheme;
|
2341
2381
|
dialog: DialogTheme;
|
2342
2382
|
tabs: TabsTheme;
|
@@ -2387,6 +2427,7 @@ export interface AppSampleTab {
|
|
2387
2427
|
export interface AppFeedTab {
|
2388
2428
|
title: string;
|
2389
2429
|
type: string;
|
2430
|
+
content_type?: string | null;
|
2390
2431
|
feed_id?: string;
|
2391
2432
|
tab: AppTabDescriptor;
|
2392
2433
|
empty_state?: AppTabEmptyState | null;
|
@@ -3090,7 +3131,10 @@ export declare enum SocialAccountType {
|
|
3090
3131
|
facebook = "facebook",
|
3091
3132
|
twitch = "twitch",
|
3092
3133
|
linkedin = "linkedin",
|
3093
|
-
shopify = "shopify"
|
3134
|
+
shopify = "shopify",
|
3135
|
+
website = "website",
|
3136
|
+
rss = "rss",
|
3137
|
+
custom = "custom"
|
3094
3138
|
}
|
3095
3139
|
export interface SocialAccountYoutubeData {
|
3096
3140
|
channel_handle: string;
|
@@ -3148,7 +3192,6 @@ export interface SocialAccountRssData {
|
|
3148
3192
|
rss_feed_id: string;
|
3149
3193
|
}
|
3150
3194
|
export interface SocialAccountCustomData {
|
3151
|
-
type: string;
|
3152
3195
|
slug?: string | null;
|
3153
3196
|
handle?: string | null;
|
3154
3197
|
url?: string | null;
|
@@ -6367,9 +6410,13 @@ declare class ParraAPI {
|
|
6367
6410
|
}, options?: Options) => Promise<UserInfoResponse>;
|
6368
6411
|
getParraAuthToken: (options?: Options) => Promise<AuthToken>;
|
6369
6412
|
listImageAssetsForTenantById: (tenant_id: string, query?: {
|
6413
|
+
limit?: number;
|
6414
|
+
offset?: number;
|
6370
6415
|
ids?: string;
|
6416
|
+
group?: string;
|
6417
|
+
file_type?: string;
|
6371
6418
|
}, options?: Options) => Promise<Array<ImageAsset>>;
|
6372
|
-
uploadImageAssetForTenantById: (tenant_id: string, body
|
6419
|
+
uploadImageAssetForTenantById: (tenant_id: string, body?: UploadImageAssetRequestBody, options?: Options) => Promise<ImageAsset>;
|
6373
6420
|
uploadAvatarForUser: (body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
6374
6421
|
uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
6375
6422
|
uploadIconForTenantApplication: (tenant_id: string, application_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
package/dist/ParraAPI.js
CHANGED
@@ -367,6 +367,9 @@ var SocialAccountType;
|
|
367
367
|
SocialAccountType["twitch"] = "twitch";
|
368
368
|
SocialAccountType["linkedin"] = "linkedin";
|
369
369
|
SocialAccountType["shopify"] = "shopify";
|
370
|
+
SocialAccountType["website"] = "website";
|
371
|
+
SocialAccountType["rss"] = "rss";
|
372
|
+
SocialAccountType["custom"] = "custom";
|
370
373
|
})(SocialAccountType || (exports.SocialAccountType = SocialAccountType = {}));
|
371
374
|
var FeedItemType;
|
372
375
|
(function (FeedItemType) {
|
@@ -694,7 +697,7 @@ var ParraAPI = /** @class */ (function () {
|
|
694
697
|
this.uploadImageAssetForTenantById = function (tenant_id, body, options) {
|
695
698
|
if (options === void 0) { options = {}; }
|
696
699
|
var formData = new FormData();
|
697
|
-
Object.entries(body).forEach(function (_a) {
|
700
|
+
Object.entries(body || {}).forEach(function (_a) {
|
698
701
|
var key = _a[0], value = _a[1];
|
699
702
|
formData.append(key, value);
|
700
703
|
});
|