@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.
@@ -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");