@opexa/portal-sdk 0.11.2 → 0.12.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.cjs +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2033,6 +2033,11 @@ var FAVORITE_GAMES_QUERY = gql`
|
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
`;
|
|
2036
|
+
var GOOGLE_CLIEND_ID_QUERY = gql`
|
|
2037
|
+
query GoogleClientId {
|
|
2038
|
+
googleClientId
|
|
2039
|
+
}
|
|
2040
|
+
`;
|
|
2036
2041
|
|
|
2037
2042
|
// src/services/utils.ts
|
|
2038
2043
|
function createOperationError(code) {
|
|
@@ -2384,6 +2389,14 @@ var AccountService = class {
|
|
|
2384
2389
|
ok: true
|
|
2385
2390
|
};
|
|
2386
2391
|
}
|
|
2392
|
+
async googleClientId() {
|
|
2393
|
+
const res = await this.client.request(GOOGLE_CLIEND_ID_QUERY);
|
|
2394
|
+
if (!res.ok) return res;
|
|
2395
|
+
return {
|
|
2396
|
+
ok: true,
|
|
2397
|
+
data: res.data.googleClientId
|
|
2398
|
+
};
|
|
2399
|
+
}
|
|
2387
2400
|
};
|
|
2388
2401
|
|
|
2389
2402
|
// src/utils/status-code-to-operation-error.ts
|
|
@@ -6863,6 +6876,19 @@ var Sdk = class {
|
|
|
6863
6876
|
async unregisterFCMDevice(input) {
|
|
6864
6877
|
return await this.triggerService.unregisterFCMDevice({ input });
|
|
6865
6878
|
}
|
|
6879
|
+
/*
|
|
6880
|
+
*=============================================
|
|
6881
|
+
* THIRD PARTY
|
|
6882
|
+
*=============================================
|
|
6883
|
+
*/
|
|
6884
|
+
async googleClientId() {
|
|
6885
|
+
const res = await this.accountService.googleClientId();
|
|
6886
|
+
if (!res.ok) return res;
|
|
6887
|
+
return {
|
|
6888
|
+
ok: true,
|
|
6889
|
+
data: res.data ?? null
|
|
6890
|
+
};
|
|
6891
|
+
}
|
|
6866
6892
|
/*
|
|
6867
6893
|
*=============================================
|
|
6868
6894
|
* UTILS
|