@opexa/portal-sdk 0.57.12 → 0.57.14
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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -672,6 +672,7 @@ interface Account {
|
|
|
672
672
|
branchCode?: string;
|
|
673
673
|
agent?: Agent | null;
|
|
674
674
|
level: number;
|
|
675
|
+
partition?: number | null;
|
|
675
676
|
dateTimeLastActive?: Date;
|
|
676
677
|
}
|
|
677
678
|
type AccountReturn = OperationResult<never, Account>;
|
|
@@ -2168,7 +2169,7 @@ declare class Sdk {
|
|
|
2168
2169
|
private get locale();
|
|
2169
2170
|
private get authMiddleware();
|
|
2170
2171
|
private get fingerprintMiddleware();
|
|
2171
|
-
|
|
2172
|
+
fingerprint(): Promise<string | null>;
|
|
2172
2173
|
private get domainMiddleware();
|
|
2173
2174
|
private get miscMiddleware();
|
|
2174
2175
|
signIn(input: NameAndPasswordSignInInput): Promise<NameAndPasswordSignInReturn>;
|
package/dist/index.d.ts
CHANGED
|
@@ -672,6 +672,7 @@ interface Account {
|
|
|
672
672
|
branchCode?: string;
|
|
673
673
|
agent?: Agent | null;
|
|
674
674
|
level: number;
|
|
675
|
+
partition?: number | null;
|
|
675
676
|
dateTimeLastActive?: Date;
|
|
676
677
|
}
|
|
677
678
|
type AccountReturn = OperationResult<never, Account>;
|
|
@@ -2168,7 +2169,7 @@ declare class Sdk {
|
|
|
2168
2169
|
private get locale();
|
|
2169
2170
|
private get authMiddleware();
|
|
2170
2171
|
private get fingerprintMiddleware();
|
|
2171
|
-
|
|
2172
|
+
fingerprint(): Promise<string | null>;
|
|
2172
2173
|
private get domainMiddleware();
|
|
2173
2174
|
private get miscMiddleware();
|
|
2174
2175
|
signIn(input: NameAndPasswordSignInInput): Promise<NameAndPasswordSignInReturn>;
|
package/dist/index.js
CHANGED
|
@@ -1633,6 +1633,7 @@ var MEMBER_ACCOUNT_QUERY_DEVELOPMENT = gql`
|
|
|
1633
1633
|
dateTimeLastUpdated
|
|
1634
1634
|
domain
|
|
1635
1635
|
branchCode
|
|
1636
|
+
partition
|
|
1636
1637
|
agent {
|
|
1637
1638
|
code
|
|
1638
1639
|
}
|
|
@@ -8001,7 +8002,8 @@ var Transformer = class {
|
|
|
8001
8002
|
branchCode: data.branchCode ?? void 0,
|
|
8002
8003
|
agent: data.agent ?? null,
|
|
8003
8004
|
level: data.level ?? 0,
|
|
8004
|
-
dateTimeLastActive: data.dateTimeLastActive ? new Date(data.dateTimeLastActive) : void 0
|
|
8005
|
+
dateTimeLastActive: data.dateTimeLastActive ? new Date(data.dateTimeLastActive) : void 0,
|
|
8006
|
+
partition: data.partition
|
|
8005
8007
|
};
|
|
8006
8008
|
return compact(o);
|
|
8007
8009
|
}
|
|
@@ -8290,6 +8292,7 @@ var Transformer = class {
|
|
|
8290
8292
|
data.currentTurnoverRequirementContributionPercentage,
|
|
8291
8293
|
0
|
|
8292
8294
|
),
|
|
8295
|
+
// @ts-expect-error ""
|
|
8293
8296
|
turnoverRequirementContributionPercentagePerGameProvider: data.turnoverRequirementContributionPercentagePerGameProvider,
|
|
8294
8297
|
enabledGameProviders: data.enabledGameProviders,
|
|
8295
8298
|
dateTimeCreated: new Date(data.dateTimeCreated),
|
|
@@ -8986,14 +8989,14 @@ var Sdk = class {
|
|
|
8986
8989
|
*/
|
|
8987
8990
|
get fingerprintMiddleware() {
|
|
8988
8991
|
return async (request) => {
|
|
8989
|
-
const fingerprint = await this.
|
|
8992
|
+
const fingerprint = await this.fingerprint();
|
|
8990
8993
|
if (fingerprint) {
|
|
8991
8994
|
request.headers.set("Fingerprint", fingerprint);
|
|
8992
8995
|
}
|
|
8993
8996
|
return request;
|
|
8994
8997
|
};
|
|
8995
8998
|
}
|
|
8996
|
-
async
|
|
8999
|
+
async fingerprint() {
|
|
8997
9000
|
return await getFingerprint();
|
|
8998
9001
|
}
|
|
8999
9002
|
/*
|