@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.cjs
CHANGED
|
@@ -1030,6 +1030,7 @@ var BONUS_QUERY = gql`
|
|
|
1030
1030
|
amount
|
|
1031
1031
|
balance
|
|
1032
1032
|
turnoverRequirement
|
|
1033
|
+
turnoverRequirementContributionPercentagePerGameProvider
|
|
1033
1034
|
currentTurnoverRequirementContribution
|
|
1034
1035
|
currentTurnoverRequirementContributionPercentage
|
|
1035
1036
|
expiration
|
|
@@ -4142,9 +4143,11 @@ var AdManager = class {
|
|
|
4142
4143
|
var DomainManager = class {
|
|
4143
4144
|
logger;
|
|
4144
4145
|
platform;
|
|
4146
|
+
environment;
|
|
4145
4147
|
constructor(config) {
|
|
4146
4148
|
this.logger = config.logger;
|
|
4147
4149
|
this.platform = config.platform;
|
|
4150
|
+
this.environment = config.environment;
|
|
4148
4151
|
}
|
|
4149
4152
|
get domain() {
|
|
4150
4153
|
if (this.isServer) {
|
|
@@ -4158,7 +4161,10 @@ var DomainManager = class {
|
|
|
4158
4161
|
const map = {
|
|
4159
4162
|
"crazywin.ph": "587374767622209",
|
|
4160
4163
|
"crazywin.asia": "587374767622209",
|
|
4161
|
-
"happybingo.ph": "617045164450475"
|
|
4164
|
+
"happybingo.ph": "617045164450475",
|
|
4165
|
+
...this.environment === "production" && {
|
|
4166
|
+
"crazywinph.ph": "587374767622209"
|
|
4167
|
+
}
|
|
4162
4168
|
};
|
|
4163
4169
|
const domain = map[url.hostname] ? map[url.hostname] : url.hostname;
|
|
4164
4170
|
return domain.toLowerCase();
|
|
@@ -5505,7 +5511,8 @@ var Sdk = class {
|
|
|
5505
5511
|
const adManager = new AdManager({ logger });
|
|
5506
5512
|
const domainManager = new DomainManager({
|
|
5507
5513
|
logger,
|
|
5508
|
-
platform
|
|
5514
|
+
platform,
|
|
5515
|
+
environment
|
|
5509
5516
|
});
|
|
5510
5517
|
const transformer = new Transformer();
|
|
5511
5518
|
const authUrl = ENDPOINTS[environment].auth;
|