@opexa/portal-sdk 0.59.85 → 0.59.86
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/{chunk-IT7ND6PF.js → chunk-KTIDTIQ6.js} +23 -2
- package/dist/chunk-KTIDTIQ6.js.map +1 -0
- package/dist/index.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +21 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +4 -3
- package/dist/services/index.d.ts +4 -3
- package/dist/services/index.js +1 -1
- package/dist/{types-BBo3Cpm5.d.cts → types-CHjedE6P.d.cts} +13 -1
- package/dist/{types-D67kK6qx.d.ts → types-yuha_bQI.d.ts} +13 -1
- package/package.json +1 -1
- package/dist/chunk-IT7ND6PF.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2129,6 +2129,11 @@ var RESET_PASSWORD_MUTATION = gql`
|
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
`;
|
|
2132
|
+
var UPDATE_PASSWORD_MUTATION = gql`
|
|
2133
|
+
mutation UpdatePassword($input: UpdatePasswordInput!) {
|
|
2134
|
+
updatePassword(input: $input)
|
|
2135
|
+
}
|
|
2136
|
+
`;
|
|
2132
2137
|
var DELETE_MEMBER_ACCOUNT_MUTATION = gql`
|
|
2133
2138
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
2134
2139
|
deleteMemberAccount(input: $input)
|
|
@@ -4155,6 +4160,22 @@ var AccountService = class {
|
|
|
4155
4160
|
ok: true
|
|
4156
4161
|
};
|
|
4157
4162
|
}
|
|
4163
|
+
async updatePassword(variables) {
|
|
4164
|
+
const res = await this.client.request(UPDATE_PASSWORD_MUTATION, variables);
|
|
4165
|
+
if (!res.ok) return res;
|
|
4166
|
+
if (!res.data.updatePassword) {
|
|
4167
|
+
return {
|
|
4168
|
+
ok: false,
|
|
4169
|
+
error: {
|
|
4170
|
+
name: "UnknownError",
|
|
4171
|
+
message: "Something went wrong."
|
|
4172
|
+
}
|
|
4173
|
+
};
|
|
4174
|
+
}
|
|
4175
|
+
return {
|
|
4176
|
+
ok: true
|
|
4177
|
+
};
|
|
4178
|
+
}
|
|
4158
4179
|
async profileCompletion() {
|
|
4159
4180
|
const res = await this.client.request(
|
|
4160
4181
|
PROFILE_COMPLETION_QUERY
|
|
@@ -10873,6 +10894,13 @@ var Sdk = class {
|
|
|
10873
10894
|
verificationCode: input.verificationCode
|
|
10874
10895
|
});
|
|
10875
10896
|
}
|
|
10897
|
+
async updatePassword(input) {
|
|
10898
|
+
return await this.accountService.updatePassword({
|
|
10899
|
+
input: {
|
|
10900
|
+
password: await sha256(input.password)
|
|
10901
|
+
}
|
|
10902
|
+
});
|
|
10903
|
+
}
|
|
10876
10904
|
async verifyMobileNumber(verificationCode) {
|
|
10877
10905
|
return await this.accountService.verifyMobileNumber({
|
|
10878
10906
|
input: {
|