@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/services/index.cjs
CHANGED
|
@@ -2108,6 +2108,11 @@ var RESET_PASSWORD_MUTATION = gql`
|
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
`;
|
|
2111
|
+
var UPDATE_PASSWORD_MUTATION = gql`
|
|
2112
|
+
mutation UpdatePassword($input: UpdatePasswordInput!) {
|
|
2113
|
+
updatePassword(input: $input)
|
|
2114
|
+
}
|
|
2115
|
+
`;
|
|
2111
2116
|
var DELETE_MEMBER_ACCOUNT_MUTATION = gql`
|
|
2112
2117
|
mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
|
|
2113
2118
|
deleteMemberAccount(input: $input)
|
|
@@ -4134,6 +4139,22 @@ var AccountService = class {
|
|
|
4134
4139
|
ok: true
|
|
4135
4140
|
};
|
|
4136
4141
|
}
|
|
4142
|
+
async updatePassword(variables) {
|
|
4143
|
+
const res = await this.client.request(UPDATE_PASSWORD_MUTATION, variables);
|
|
4144
|
+
if (!res.ok) return res;
|
|
4145
|
+
if (!res.data.updatePassword) {
|
|
4146
|
+
return {
|
|
4147
|
+
ok: false,
|
|
4148
|
+
error: {
|
|
4149
|
+
name: "UnknownError",
|
|
4150
|
+
message: "Something went wrong."
|
|
4151
|
+
}
|
|
4152
|
+
};
|
|
4153
|
+
}
|
|
4154
|
+
return {
|
|
4155
|
+
ok: true
|
|
4156
|
+
};
|
|
4157
|
+
}
|
|
4137
4158
|
async profileCompletion() {
|
|
4138
4159
|
const res = await this.client.request(
|
|
4139
4160
|
PROFILE_COMPLETION_QUERY
|