@parra/parra-js-sdk 0.3.564 → 0.3.566
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 +59 -8
- package/dist/ParraAPI.js +1 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -613,6 +613,19 @@ export interface ImageAsset {
|
|
613
613
|
blur_hash?: string | null;
|
614
614
|
thumbnails?: ImageAssetThumbnails | null;
|
615
615
|
}
|
616
|
+
export interface CollectionResponse {
|
617
|
+
page: number;
|
618
|
+
page_count: number;
|
619
|
+
page_size: number;
|
620
|
+
total_count: number;
|
621
|
+
}
|
622
|
+
export interface ImageAssetCollectionResponse {
|
623
|
+
page: number;
|
624
|
+
page_count: number;
|
625
|
+
page_size: number;
|
626
|
+
total_count: number;
|
627
|
+
data: Array<ImageAsset>;
|
628
|
+
}
|
616
629
|
export interface UploadImageRequestBody {
|
617
630
|
image: File;
|
618
631
|
}
|
@@ -620,6 +633,7 @@ export interface UploadImageWithGroupRequestBody {
|
|
620
633
|
image: File;
|
621
634
|
group: string;
|
622
635
|
}
|
636
|
+
export type UploadImageAssetRequestBody = UploadImageWithGroupRequestBody;
|
623
637
|
export declare enum ContentCardActionType {
|
624
638
|
link = "link",
|
625
639
|
feedbackForm = "feedback_form"
|
@@ -706,12 +720,6 @@ export interface ContentCard {
|
|
706
720
|
badge?: string | null;
|
707
721
|
action?: ContentCardAction | null;
|
708
722
|
}
|
709
|
-
export interface CollectionResponse {
|
710
|
-
page: number;
|
711
|
-
page_count: number;
|
712
|
-
page_size: number;
|
713
|
-
total_count: number;
|
714
|
-
}
|
715
723
|
export interface ContentCardCollectionResponse {
|
716
724
|
page: number;
|
717
725
|
page_count: number;
|
@@ -1931,6 +1939,43 @@ export interface CardTheme {
|
|
1931
1939
|
base: CardBase;
|
1932
1940
|
variants: CardVariants;
|
1933
1941
|
}
|
1942
|
+
export interface ChipBase {
|
1943
|
+
background_color?: ResolvedColor;
|
1944
|
+
color?: ResolvedColor;
|
1945
|
+
border_width?: CssValue | Ref;
|
1946
|
+
border_style?: BorderStyle;
|
1947
|
+
border_color?: ResolvedColor;
|
1948
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
1949
|
+
}
|
1950
|
+
export interface ChipVariant {
|
1951
|
+
background_color?: ResolvedColor;
|
1952
|
+
color?: ResolvedColor;
|
1953
|
+
border_width?: CssValue | Ref;
|
1954
|
+
border_style?: BorderStyle;
|
1955
|
+
border_color?: ResolvedColor;
|
1956
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
1957
|
+
}
|
1958
|
+
export interface ChipVariants {
|
1959
|
+
primary: ChipVariant;
|
1960
|
+
secondary: ChipVariant;
|
1961
|
+
}
|
1962
|
+
export interface ChipSize {
|
1963
|
+
font_size?: ResolvedRemValue | ResolvedPxValue | ResolvedEmValue;
|
1964
|
+
padding?: ResolvedPaddingAll | ResolvedPaddingEdges | ResolvedPaddingDirectional;
|
1965
|
+
border_radius?: BorderRadiusType | CssValue | Ref;
|
1966
|
+
}
|
1967
|
+
export interface ChipSizes {
|
1968
|
+
xs: ChipSize;
|
1969
|
+
sm: ChipSize;
|
1970
|
+
md: ChipSize;
|
1971
|
+
lg: ChipSize;
|
1972
|
+
xl: ChipSize;
|
1973
|
+
}
|
1974
|
+
export interface ChipTheme {
|
1975
|
+
base: ChipBase;
|
1976
|
+
variants: ChipVariants;
|
1977
|
+
sizes: ChipSizes;
|
1978
|
+
}
|
1934
1979
|
export interface InputBase {
|
1935
1980
|
background_color?: ResolvedColor;
|
1936
1981
|
color?: ResolvedColor;
|
@@ -1994,6 +2039,7 @@ export interface DialogSize {
|
|
1994
2039
|
max_height?: string | number;
|
1995
2040
|
}
|
1996
2041
|
export interface DialogSizes {
|
2042
|
+
xs: DialogSize;
|
1997
2043
|
sm: DialogSize;
|
1998
2044
|
md: DialogSize;
|
1999
2045
|
lg: DialogSize;
|
@@ -2337,6 +2383,7 @@ export interface ResolvedComponents {
|
|
2337
2383
|
button: ButtonTheme;
|
2338
2384
|
icon_button: IconButtonTheme;
|
2339
2385
|
card: CardTheme;
|
2386
|
+
chip?: ChipTheme;
|
2340
2387
|
input: InputTheme;
|
2341
2388
|
dialog: DialogTheme;
|
2342
2389
|
tabs: TabsTheme;
|
@@ -6370,9 +6417,13 @@ declare class ParraAPI {
|
|
6370
6417
|
}, options?: Options) => Promise<UserInfoResponse>;
|
6371
6418
|
getParraAuthToken: (options?: Options) => Promise<AuthToken>;
|
6372
6419
|
listImageAssetsForTenantById: (tenant_id: string, query?: {
|
6420
|
+
limit?: number;
|
6421
|
+
offset?: number;
|
6373
6422
|
ids?: string;
|
6374
|
-
|
6375
|
-
|
6423
|
+
group?: string;
|
6424
|
+
file_type?: string;
|
6425
|
+
}, options?: Options) => Promise<ImageAssetCollectionResponse>;
|
6426
|
+
uploadImageAssetForTenantById: (tenant_id: string, body?: UploadImageAssetRequestBody, options?: Options) => Promise<ImageAsset>;
|
6376
6427
|
uploadAvatarForUser: (body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
6377
6428
|
uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
|
6378
6429
|
uploadIconForTenantApplication: (tenant_id: string, application_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
package/dist/ParraAPI.js
CHANGED
@@ -697,7 +697,7 @@ var ParraAPI = /** @class */ (function () {
|
|
697
697
|
this.uploadImageAssetForTenantById = function (tenant_id, body, options) {
|
698
698
|
if (options === void 0) { options = {}; }
|
699
699
|
var formData = new FormData();
|
700
|
-
Object.entries(body).forEach(function (_a) {
|
700
|
+
Object.entries(body || {}).forEach(function (_a) {
|
701
701
|
var key = _a[0], value = _a[1];
|
702
702
|
formData.append(key, value);
|
703
703
|
});
|