@opexa/portal-sdk 0.59.85 → 0.59.87
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/README.md +1634 -1634
- package/dist/{chunk-7APXFZ5G.js → chunk-5WRVWQBT.js} +3 -3
- package/dist/chunk-5WRVWQBT.js.map +1 -0
- package/dist/{chunk-IT7ND6PF.js → chunk-QIUE5GTM.js} +30 -9
- package/dist/chunk-QIUE5GTM.js.map +1 -0
- package/dist/{chunk-WVFSGB7Y.js → chunk-ROBGEUSE.js} +2 -2
- package/dist/chunk-ROBGEUSE.js.map +1 -0
- package/dist/index.cjs +41 -8
- 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 +17 -5
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +27 -6
- 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 +2 -2
- 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/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-7APXFZ5G.js.map +0 -1
- package/dist/chunk-IT7ND6PF.js.map +0 -1
- package/dist/chunk-WVFSGB7Y.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
|
|
@@ -4687,13 +4708,13 @@ var AuthService = class {
|
|
|
4687
4708
|
if (version !== 4) {
|
|
4688
4709
|
headers.append("Authorization", `Bearer ${refreshToken}`);
|
|
4689
4710
|
}
|
|
4690
|
-
if (version === 3 || version === 4) {
|
|
4691
|
-
const fingerprint = await getFingerPrint();
|
|
4692
|
-
if (fingerprint) {
|
|
4693
|
-
headers.append("Fingerprint", fingerprint);
|
|
4694
|
-
}
|
|
4695
|
-
}
|
|
4696
4711
|
try {
|
|
4712
|
+
if (version === 3 || version === 4) {
|
|
4713
|
+
const fingerprint = await getFingerPrint();
|
|
4714
|
+
if (fingerprint) {
|
|
4715
|
+
headers.append("Fingerprint", fingerprint);
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4697
4718
|
const isWeb = isWebPlatform();
|
|
4698
4719
|
const queryParam = isWeb && version === 4 ? "?type=web" : "";
|
|
4699
4720
|
const res = await fetch(
|