@rabby-wallet/rabby-api 0.9.24 → 0.9.25-alpha.0
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 +10 -0
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1054,6 +1054,16 @@ export declare class OpenApiService {
|
|
|
1054
1054
|
aggregator_id: string;
|
|
1055
1055
|
}[]>;
|
|
1056
1056
|
getBridgeSupportChainV2: () => Promise<string[]>;
|
|
1057
|
+
submitFeedback: ({ text, usage, }: {
|
|
1058
|
+
text: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* @description 'usage' is used to submit feedback on rate scene.
|
|
1061
|
+
* by default, it means 'uninstall' scene.
|
|
1062
|
+
*/
|
|
1063
|
+
usage?: "rate" | undefined;
|
|
1064
|
+
}) => Promise<{
|
|
1065
|
+
success: boolean;
|
|
1066
|
+
}>;
|
|
1057
1067
|
uninstalledFeedback: ({ text, }: {
|
|
1058
1068
|
text: string;
|
|
1059
1069
|
}) => Promise<{
|
package/dist/index.js
CHANGED
|
@@ -1417,11 +1417,14 @@ export class OpenApiService {
|
|
|
1417
1417
|
const { data } = yield this.request.get('/v2/bridge/supported_chains');
|
|
1418
1418
|
return data;
|
|
1419
1419
|
});
|
|
1420
|
+
this.submitFeedback = ({ text, usage, }) => __awaiter(this, void 0, void 0, function* () {
|
|
1421
|
+
const { data } = yield this.request.post('v1/feedback', Object.assign({ text }, (usage && { usage })));
|
|
1422
|
+
return data;
|
|
1423
|
+
});
|
|
1420
1424
|
this.uninstalledFeedback = ({ text, }) => __awaiter(this, void 0, void 0, function* () {
|
|
1421
|
-
|
|
1425
|
+
return this.submitFeedback({
|
|
1422
1426
|
text,
|
|
1423
1427
|
});
|
|
1424
|
-
return data;
|
|
1425
1428
|
});
|
|
1426
1429
|
/**
|
|
1427
1430
|
* @deprecated
|