@opexa/portal-sdk 0.34.0 → 0.34.2
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/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -874,6 +874,7 @@ var TRANSACTION_RECORDS_QUERY = gql`
|
|
|
874
874
|
amount
|
|
875
875
|
content
|
|
876
876
|
currentBalance
|
|
877
|
+
currentBonusBalance
|
|
877
878
|
referenceNumber
|
|
878
879
|
dateTimeCreated
|
|
879
880
|
}
|
|
@@ -4157,7 +4158,12 @@ var DomainManager = class {
|
|
|
4157
4158
|
if (this.isIOSApp) return `ios/${this.platform}`.toLowerCase();
|
|
4158
4159
|
if (this.isAndroidApp) return `android/${this.platform}`.toLowerCase();
|
|
4159
4160
|
const url = new URL(window.location.href);
|
|
4160
|
-
|
|
4161
|
+
const rootDomain = url.hostname;
|
|
4162
|
+
const mParam = url.searchParams.get("m");
|
|
4163
|
+
return mParam ? `${rootDomain}/${mParam}` : rootDomain;
|
|
4164
|
+
}
|
|
4165
|
+
get metaPixelId() {
|
|
4166
|
+
const url = new URL(window.location.href);
|
|
4161
4167
|
const map = {
|
|
4162
4168
|
"crazywin.ph": "587374767622209",
|
|
4163
4169
|
"crazywin.asia": "587374767622209",
|
|
@@ -4166,8 +4172,8 @@ var DomainManager = class {
|
|
|
4166
4172
|
"crazywinph.ph": "587374767622209"
|
|
4167
4173
|
}
|
|
4168
4174
|
};
|
|
4169
|
-
const
|
|
4170
|
-
return
|
|
4175
|
+
const metaPixelId = map[url.hostname] ? map[url.hostname] : url.hostname;
|
|
4176
|
+
return metaPixelId.toLowerCase();
|
|
4171
4177
|
}
|
|
4172
4178
|
get isServer() {
|
|
4173
4179
|
return typeof window === "undefined";
|
|
@@ -5141,6 +5147,7 @@ var Transformer = class {
|
|
|
5141
5147
|
amount: parseDecimal(data.amount, 0),
|
|
5142
5148
|
content: data.content ?? undefined,
|
|
5143
5149
|
currentBalance: parseDecimal(data.currentBalance, 0),
|
|
5150
|
+
currentBonusBalance: parseDecimal(data.currentBonusBalance, 0),
|
|
5144
5151
|
referenceNumber: data.referenceNumber,
|
|
5145
5152
|
dateTimeCreated: new Date(data.dateTimeCreated)
|
|
5146
5153
|
};
|