@opexa/portal-sdk 0.59.124 → 0.59.125
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 +1698 -1698
- package/dist/{chunk-5WRVWQBT.js → chunk-7APXFZ5G.js} +3 -3
- package/dist/chunk-7APXFZ5G.js.map +1 -0
- package/dist/{chunk-TLSIHIY2.js → chunk-JPJWVATW.js} +27 -3
- package/dist/chunk-JPJWVATW.js.map +1 -0
- package/dist/{chunk-ROBGEUSE.js → chunk-WVFSGB7Y.js} +2 -2
- package/dist/chunk-WVFSGB7Y.js.map +1 -0
- package/dist/index.cjs +40 -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 +19 -3
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +24 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +6 -3
- package/dist/services/index.d.ts +6 -3
- package/dist/services/index.js +2 -2
- package/dist/{types-DVgdaYUD.d.cts → types-B-Y3xNfe.d.cts} +20 -1
- package/dist/{types-CBin14X0.d.ts → types-EDjOGXkh.d.ts} +20 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-5WRVWQBT.js.map +0 -1
- package/dist/chunk-ROBGEUSE.js.map +0 -1
- package/dist/chunk-TLSIHIY2.js.map +0 -1
package/dist/services/index.cjs
CHANGED
|
@@ -14,6 +14,16 @@ function gql(strings, ...values) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// src/services/queries.ts
|
|
17
|
+
var GENERATE_OUTBOUND_SINGLE_SIGN_ON_REDIRECT_URL_MUTATION = gql`
|
|
18
|
+
mutation GenerateOutboundSingleSignOnRedirectUrl(
|
|
19
|
+
$input: GenerateOutboundSingleSignOnRedirectUrlInput!
|
|
20
|
+
) {
|
|
21
|
+
generateOutboundSingleSignOnRedirectUrl(input: $input) {
|
|
22
|
+
token
|
|
23
|
+
url
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
17
27
|
var FILE_FRAGMENT = gql`
|
|
18
28
|
fragment FileFragment on File {
|
|
19
29
|
id
|
|
@@ -4847,11 +4857,25 @@ var ERROR_MAP = {
|
|
|
4847
4857
|
// src/services/auth.service.ts
|
|
4848
4858
|
var AuthService = class {
|
|
4849
4859
|
url;
|
|
4860
|
+
graphqlClient;
|
|
4850
4861
|
options;
|
|
4851
4862
|
constructor(config) {
|
|
4852
4863
|
this.url = config.url;
|
|
4864
|
+
this.graphqlClient = config.graphqlClient;
|
|
4853
4865
|
this.options = config.fetchOptions ?? {};
|
|
4854
4866
|
}
|
|
4867
|
+
async generateOutboundSingleSignOnRedirectUrl(variables) {
|
|
4868
|
+
if (!this.graphqlClient) {
|
|
4869
|
+
return {
|
|
4870
|
+
ok: false,
|
|
4871
|
+
error: {
|
|
4872
|
+
name: "UnknownError",
|
|
4873
|
+
message: "Something went wrong"
|
|
4874
|
+
}
|
|
4875
|
+
};
|
|
4876
|
+
}
|
|
4877
|
+
return await this.graphqlClient.request(GENERATE_OUTBOUND_SINGLE_SIGN_ON_REDIRECT_URL_MUTATION, variables);
|
|
4878
|
+
}
|
|
4855
4879
|
get headers() {
|
|
4856
4880
|
const headers = new Headers(this.options.headers);
|
|
4857
4881
|
headers.append("Accept", "application/json, text/plain");
|