@opexa/portal-sdk 0.32.0 → 0.34.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/README.md +1624 -1624
- package/dist/index.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -385,6 +385,7 @@ interface JackpotPayoutsQueryVariables {
|
|
|
385
385
|
}
|
|
386
386
|
type FCMDeviceType$1 = 'IOS' | 'ANDROID';
|
|
387
387
|
|
|
388
|
+
type Environment = 'production' | 'development';
|
|
388
389
|
type WithCursor<T> = T & {
|
|
389
390
|
cursor: string;
|
|
390
391
|
};
|
|
@@ -1459,7 +1460,6 @@ interface UnregisterFCMDeviceInput {
|
|
|
1459
1460
|
type UnregisterFCMDeviceReturn = OperationResult;
|
|
1460
1461
|
type GoogleClientIdReturn = OperationResult<never, string | null>;
|
|
1461
1462
|
|
|
1462
|
-
type Environment = 'production' | 'development';
|
|
1463
1463
|
interface SdkConfig {
|
|
1464
1464
|
/**
|
|
1465
1465
|
* @default 'development'
|
package/dist/index.d.ts
CHANGED
|
@@ -385,6 +385,7 @@ interface JackpotPayoutsQueryVariables {
|
|
|
385
385
|
}
|
|
386
386
|
type FCMDeviceType$1 = 'IOS' | 'ANDROID';
|
|
387
387
|
|
|
388
|
+
type Environment = 'production' | 'development';
|
|
388
389
|
type WithCursor<T> = T & {
|
|
389
390
|
cursor: string;
|
|
390
391
|
};
|
|
@@ -1459,7 +1460,6 @@ interface UnregisterFCMDeviceInput {
|
|
|
1459
1460
|
type UnregisterFCMDeviceReturn = OperationResult;
|
|
1460
1461
|
type GoogleClientIdReturn = OperationResult<never, string | null>;
|
|
1461
1462
|
|
|
1462
|
-
type Environment = 'production' | 'development';
|
|
1463
1463
|
interface SdkConfig {
|
|
1464
1464
|
/**
|
|
1465
1465
|
* @default 'development'
|
package/dist/index.js
CHANGED
|
@@ -1029,6 +1029,7 @@ var BONUS_QUERY = gql`
|
|
|
1029
1029
|
amount
|
|
1030
1030
|
balance
|
|
1031
1031
|
turnoverRequirement
|
|
1032
|
+
turnoverRequirementContributionPercentagePerGameProvider
|
|
1032
1033
|
currentTurnoverRequirementContribution
|
|
1033
1034
|
currentTurnoverRequirementContributionPercentage
|
|
1034
1035
|
expiration
|
|
@@ -4141,9 +4142,11 @@ var AdManager = class {
|
|
|
4141
4142
|
var DomainManager = class {
|
|
4142
4143
|
logger;
|
|
4143
4144
|
platform;
|
|
4145
|
+
environment;
|
|
4144
4146
|
constructor(config) {
|
|
4145
4147
|
this.logger = config.logger;
|
|
4146
4148
|
this.platform = config.platform;
|
|
4149
|
+
this.environment = config.environment;
|
|
4147
4150
|
}
|
|
4148
4151
|
get domain() {
|
|
4149
4152
|
if (this.isServer) {
|
|
@@ -4157,7 +4160,10 @@ var DomainManager = class {
|
|
|
4157
4160
|
const map = {
|
|
4158
4161
|
"crazywin.ph": "587374767622209",
|
|
4159
4162
|
"crazywin.asia": "587374767622209",
|
|
4160
|
-
"happybingo.ph": "617045164450475"
|
|
4163
|
+
"happybingo.ph": "617045164450475",
|
|
4164
|
+
...this.environment === "production" && {
|
|
4165
|
+
"crazywinph.ph": "587374767622209"
|
|
4166
|
+
}
|
|
4161
4167
|
};
|
|
4162
4168
|
const domain = map[url.hostname] ? map[url.hostname] : url.hostname;
|
|
4163
4169
|
return domain.toLowerCase();
|
|
@@ -5504,7 +5510,8 @@ var Sdk = class {
|
|
|
5504
5510
|
const adManager = new AdManager({ logger });
|
|
5505
5511
|
const domainManager = new DomainManager({
|
|
5506
5512
|
logger,
|
|
5507
|
-
platform
|
|
5513
|
+
platform,
|
|
5514
|
+
environment
|
|
5508
5515
|
});
|
|
5509
5516
|
const transformer = new Transformer();
|
|
5510
5517
|
const authUrl = ENDPOINTS[environment].auth;
|