@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 +1 -1
- package/dist/index.js +11 -12
- package/dist/types.d.ts +1 -4
- package/package.json +1 -1
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: (
|
|
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 = (
|
|
1670
|
-
const
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
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
|
-
|
|
1678
|
-
|
|
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;
|