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