@spritz-finance/service-client 0.3.89 → 0.3.90
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.
|
@@ -11,6 +11,7 @@ export declare function validateContractAddress(input: {
|
|
|
11
11
|
contractAddress: string;
|
|
12
12
|
}): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<boolean>>;
|
|
13
13
|
export declare function getApplicationStatus(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<ApplicationStatus>>;
|
|
14
|
-
export declare function createRainCard({ userId }: {
|
|
14
|
+
export declare function createRainCard({ userId, nickname, }: {
|
|
15
15
|
userId: string;
|
|
16
|
+
nickname?: string;
|
|
16
17
|
}): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<RainCard>>;
|
|
@@ -51,9 +51,9 @@ async function getApplicationStatus(userId) {
|
|
|
51
51
|
.then((res) => res.data);
|
|
52
52
|
}
|
|
53
53
|
exports.getApplicationStatus = getApplicationStatus;
|
|
54
|
-
async function createRainCard({ userId }) {
|
|
54
|
+
async function createRainCard({ userId, nickname, }) {
|
|
55
55
|
return serviceClient_1.baseClient
|
|
56
|
-
.post(`${RAIN_ENDPOINT}/card`, { userId })
|
|
56
|
+
.post(`${RAIN_ENDPOINT}/card`, { userId, nickname })
|
|
57
57
|
.then((res) => res.data);
|
|
58
58
|
}
|
|
59
59
|
exports.createRainCard = createRainCard;
|
package/lib/rain/types.d.ts
CHANGED