@opexa/portal-sdk 0.59.90 → 0.59.91
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-HJSVCLHQ.js → chunk-5DPGJBK3.js} +3 -3
- package/dist/chunk-5DPGJBK3.js.map +1 -0
- package/dist/{chunk-7APXFZ5G.js → chunk-5WRVWQBT.js} +3 -3
- package/dist/chunk-5WRVWQBT.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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +2 -2
- 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-HJSVCLHQ.js.map +0 -1
- package/dist/chunk-WVFSGB7Y.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -23,6 +23,11 @@ interface SdkConfig {
|
|
|
23
23
|
site: string;
|
|
24
24
|
sitePlatform: string;
|
|
25
25
|
platform: string;
|
|
26
|
+
/**
|
|
27
|
+
* Overrides the auth service base URL for all environments, taking
|
|
28
|
+
* precedence over `ENDPOINTS[environment].auth`.
|
|
29
|
+
*/
|
|
30
|
+
authApiBaseUrl?: string;
|
|
26
31
|
logs?: boolean;
|
|
27
32
|
sessionStorage?: 'cookie' | 'localStorage';
|
|
28
33
|
middleware?: GraphQLClientMiddleware;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ interface SdkConfig {
|
|
|
23
23
|
site: string;
|
|
24
24
|
sitePlatform: string;
|
|
25
25
|
platform: string;
|
|
26
|
+
/**
|
|
27
|
+
* Overrides the auth service base URL for all environments, taking
|
|
28
|
+
* precedence over `ENDPOINTS[environment].auth`.
|
|
29
|
+
*/
|
|
30
|
+
authApiBaseUrl?: string;
|
|
26
31
|
logs?: boolean;
|
|
27
32
|
sessionStorage?: 'cookie' | 'localStorage';
|
|
28
33
|
middleware?: GraphQLClientMiddleware;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-
|
|
2
|
-
import { GraphQLClient, isPlainObject } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-5DPGJBK3.js';
|
|
2
|
+
import { GraphQLClient, isPlainObject } from './chunk-5WRVWQBT.js';
|
|
3
|
+
import './chunk-ROBGEUSE.js';
|
|
4
4
|
import { ObjectId } from '@opexa/object-id';
|
|
5
5
|
export { ObjectId } from '@opexa/object-id';
|
|
6
6
|
import { App } from '@capacitor/app';
|
|
@@ -3109,6 +3109,7 @@ var Sdk = class {
|
|
|
3109
3109
|
sitePlatform,
|
|
3110
3110
|
platform,
|
|
3111
3111
|
environment,
|
|
3112
|
+
authApiBaseUrl,
|
|
3112
3113
|
logs
|
|
3113
3114
|
} = Object.assign(defaultConfig, config);
|
|
3114
3115
|
const production = environment === "production";
|
|
@@ -3118,7 +3119,7 @@ var Sdk = class {
|
|
|
3118
3119
|
const adManager = new AdManager({ logger });
|
|
3119
3120
|
const cellexpertManager = new CellexpertManager({ logger });
|
|
3120
3121
|
const transformer = new Transformer();
|
|
3121
|
-
const authUrl = ENDPOINTS[environment].auth;
|
|
3122
|
+
const authUrl = authApiBaseUrl || ENDPOINTS[environment].auth;
|
|
3122
3123
|
const walletUrl = ENDPOINTS[environment].wallet;
|
|
3123
3124
|
const extensionUrl = ENDPOINTS[environment].extension;
|
|
3124
3125
|
const reportUrl = ENDPOINTS[environment].report;
|