@rabby-wallet/rabby-api 0.9.63-0 → 0.9.63-1

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/index.d.ts CHANGED
@@ -1288,7 +1288,7 @@ export declare class OpenApiService {
1288
1288
  postClientFeedbackMessage: (data: PostClientFeedbackMessageParams) => Promise<PostClientFeedbackMessageResponse>;
1289
1289
  getClientFeedbackMessages: (params: GetClientFeedbackMessagesParams) => Promise<GetClientFeedbackMessagesResponse>;
1290
1290
  getClientFeedbackUnread: (params: GetClientFeedbackUnreadParams) => Promise<GetClientFeedbackUnreadResponse>;
1291
- uploadClientFeedback: (params: UploadClientFeedbackParams) => Promise<UploadClientFeedbackResponse>;
1291
+ uploadClientFeedback: (formData: UploadClientFeedbackParams, isRN?: boolean) => Promise<UploadClientFeedbackResponse>;
1292
1292
  /**
1293
1293
  * @deprecated
1294
1294
  */
package/dist/index.js CHANGED
@@ -1666,19 +1666,18 @@ export class OpenApiService {
1666
1666
  });
1667
1667
  return data;
1668
1668
  });
1669
- this.uploadClientFeedback = (params) => __awaiter(this, void 0, void 0, function* () {
1670
- const isFormData = typeof FormData !== 'undefined' && params instanceof FormData;
1671
- const formData = isFormData ? params : new FormData();
1672
- if (!isFormData) {
1673
- const { file, filename } = params;
1674
- if (filename) {
1675
- formData.append('file', file, filename);
1669
+ this.uploadClientFeedback = (formData, isRN = false) => __awaiter(this, void 0, void 0, function* () {
1670
+ const config = isRN
1671
+ ? {
1672
+ headers: {
1673
+ 'Content-Type': 'multipart/form-data',
1674
+ },
1675
+ transformRequest: (data) => data,
1676
1676
  }
1677
- else {
1678
- formData.append('file', file);
1679
- }
1680
- }
1681
- const { data } = yield this.request.post('/v1/client_feedback/upload', formData);
1677
+ : undefined;
1678
+ const { data } = config
1679
+ ? yield this.request.post('/v1/client_feedback/upload', formData, config)
1680
+ : yield this.request.post('/v1/client_feedback/upload', formData);
1682
1681
  return data;
1683
1682
  });
1684
1683
  /**
package/dist/types.d.ts CHANGED
@@ -1793,10 +1793,7 @@ export interface GetClientFeedbackUnreadResponse {
1793
1793
  unread_count: number;
1794
1794
  status: ClientFeedbackStatus | null;
1795
1795
  }
1796
- export declare type UploadClientFeedbackParams = FormData | {
1797
- file: Blob;
1798
- filename?: string;
1799
- };
1796
+ export declare type UploadClientFeedbackParams = FormData;
1800
1797
  export declare type UploadClientFeedbackResponse = {
1801
1798
  image_url: string;
1802
1799
  video_url?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.63-0",
3
+ "version": "0.9.63-1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [