@parra/parra-js-sdk 0.3.564 → 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.
@@ -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;
@@ -6370,9 +6410,13 @@ declare class ParraAPI {
6370
6410
  }, options?: Options) => Promise<UserInfoResponse>;
6371
6411
  getParraAuthToken: (options?: Options) => Promise<AuthToken>;
6372
6412
  listImageAssetsForTenantById: (tenant_id: string, query?: {
6413
+ limit?: number;
6414
+ offset?: number;
6373
6415
  ids?: string;
6416
+ group?: string;
6417
+ file_type?: string;
6374
6418
  }, options?: Options) => Promise<Array<ImageAsset>>;
6375
- uploadImageAssetForTenantById: (tenant_id: string, body: UploadImageWithGroupRequestBody, options?: Options) => Promise<ImageAsset>;
6419
+ uploadImageAssetForTenantById: (tenant_id: string, body?: UploadImageAssetRequestBody, options?: Options) => Promise<ImageAsset>;
6376
6420
  uploadAvatarForUser: (body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
6377
6421
  uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
6378
6422
  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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.564",
3
+ "version": "0.3.565",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",