@opexa/portal-sdk 0.45.0 → 0.45.1
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 +1634 -1634
- package/dist/index.cjs +77 -0
- 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 +77 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -787,6 +787,33 @@ var CREATE_AIO_QRPH_DEPOSIT_MUTATION = gql`
|
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
`;
|
|
790
|
+
var CREATE_AIO_GCASH_DEPOSIT_MUTATION = gql`
|
|
791
|
+
mutation CreateAIOGCashDeposit($input: CreateAiOGCashDepositInput!) {
|
|
792
|
+
createAiOGCashDeposit(input: $input) {
|
|
793
|
+
... on DepositPromoMaximumAmountExceededError {
|
|
794
|
+
__typename
|
|
795
|
+
}
|
|
796
|
+
... on DepositPromoMinimumAmountNotMetError {
|
|
797
|
+
__typename
|
|
798
|
+
}
|
|
799
|
+
... on MaximumDepositAmountExceededError {
|
|
800
|
+
__typename
|
|
801
|
+
}
|
|
802
|
+
... on MinimumDepositAmountNotMetError {
|
|
803
|
+
__typename
|
|
804
|
+
}
|
|
805
|
+
... on MinimumFirstDepositAmountNotMetError {
|
|
806
|
+
__typename
|
|
807
|
+
}
|
|
808
|
+
... on PromoNotEnabledError {
|
|
809
|
+
__typename
|
|
810
|
+
}
|
|
811
|
+
... on WalletDoesNotExistError {
|
|
812
|
+
__typename
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
`;
|
|
790
817
|
var CREATE_AIO_ONLINE_BANK_DEPOSIT_MUTATION = gql`
|
|
791
818
|
mutation CreateAIOOnlineBankDeposit(
|
|
792
819
|
$input: CreateAIOOnlineBankDepositInput!
|
|
@@ -1680,6 +1707,9 @@ var PLATFORM_QUERY = gql`
|
|
|
1680
1707
|
gcashDepositGatewaySettings: depositGatewaySettings(gateway: GCASH) {
|
|
1681
1708
|
...DepositGatewaySettingsCoreData
|
|
1682
1709
|
}
|
|
1710
|
+
aioGcashDepositGatewaySettings: depositGatewaySettings(gateway: AIO_GCASH) {
|
|
1711
|
+
...DepositGatewaySettingsCoreData
|
|
1712
|
+
}
|
|
1683
1713
|
mayaDepositGatewaySettings: depositGatewaySettings(gateway: MAYA) {
|
|
1684
1714
|
...DepositGatewaySettingsCoreData
|
|
1685
1715
|
}
|
|
@@ -1883,6 +1913,9 @@ var PAYMENT_SETTINGS_QUERY = gql`
|
|
|
1883
1913
|
gcashDepositGatewaySettings: depositGatewaySettings(gateway: GCASH) {
|
|
1884
1914
|
...DepositGatewaySettingsCoreData
|
|
1885
1915
|
}
|
|
1916
|
+
aioGcashDepositGatewaySettings: depositGatewaySettings(gateway: AIO_GCASH) {
|
|
1917
|
+
...DepositGatewaySettingsCoreData
|
|
1918
|
+
}
|
|
1886
1919
|
mayaDepositGatewaySettings: depositGatewaySettings(gateway: MAYA) {
|
|
1887
1920
|
...DepositGatewaySettingsCoreData
|
|
1888
1921
|
}
|
|
@@ -4049,6 +4082,26 @@ var WalletService = class {
|
|
|
4049
4082
|
ok: true
|
|
4050
4083
|
};
|
|
4051
4084
|
}
|
|
4085
|
+
async createAIOGcashDeposit(variables) {
|
|
4086
|
+
const { reCAPTCHAResponse, ...others } = variables;
|
|
4087
|
+
const res = await this.client.request(CREATE_AIO_GCASH_DEPOSIT_MUTATION, others, {
|
|
4088
|
+
headers: {
|
|
4089
|
+
...reCAPTCHAResponse && {
|
|
4090
|
+
"google-recaptcha-response": reCAPTCHAResponse
|
|
4091
|
+
}
|
|
4092
|
+
}
|
|
4093
|
+
});
|
|
4094
|
+
if (!res.ok) return res;
|
|
4095
|
+
if (res.data.createAIOGcashDeposit) {
|
|
4096
|
+
return {
|
|
4097
|
+
ok: false,
|
|
4098
|
+
error: createOperationError(res.data.createAIOGcashDeposit.__typename)
|
|
4099
|
+
};
|
|
4100
|
+
}
|
|
4101
|
+
return {
|
|
4102
|
+
ok: true
|
|
4103
|
+
};
|
|
4104
|
+
}
|
|
4052
4105
|
async createAIOOnlineBankDeposit(variables) {
|
|
4053
4106
|
const { reCAPTCHAResponse, ...others } = variables;
|
|
4054
4107
|
const res = await this.client.request(CREATE_AIO_ONLINE_BANK_DEPOSIT_MUTATION, others, {
|
|
@@ -5928,6 +5981,18 @@ var Transformer = class {
|
|
|
5928
5981
|
data.gcashDepositGatewaySettings?.maximumAmount
|
|
5929
5982
|
)
|
|
5930
5983
|
},
|
|
5984
|
+
aioGcash: {
|
|
5985
|
+
androidEnabled: data.aioGcashDepositGatewaySettings?.androidEnabled ?? false,
|
|
5986
|
+
iosEnabled: data.aioGcashDepositGatewaySettings?.iosEnabled ?? false,
|
|
5987
|
+
webEnabled: data.aioGcashDepositGatewaySettings?.webEnabled ?? false,
|
|
5988
|
+
mobileWebEnabled: data.aioGcashDepositGatewaySettings?.mobileWebEnabled ?? false,
|
|
5989
|
+
minimumAmount: parseDecimal(
|
|
5990
|
+
data.aioGcashDepositGatewaySettings?.minimumAmount
|
|
5991
|
+
),
|
|
5992
|
+
maximumAmount: parseDecimal(
|
|
5993
|
+
data.aioGcashDepositGatewaySettings?.maximumAmount
|
|
5994
|
+
)
|
|
5995
|
+
},
|
|
5931
5996
|
maya: {
|
|
5932
5997
|
androidEnabled: data.mayaDepositGatewaySettings?.androidEnabled ?? false,
|
|
5933
5998
|
iosEnabled: data.mayaDepositGatewaySettings?.iosEnabled ?? false,
|
|
@@ -6330,6 +6395,18 @@ var Transformer = class {
|
|
|
6330
6395
|
data.gcashDepositGatewaySettings?.maximumAmount
|
|
6331
6396
|
)
|
|
6332
6397
|
},
|
|
6398
|
+
aioGcash: {
|
|
6399
|
+
androidEnabled: data.aioGcashDepositGatewaySettings?.androidEnabled ?? false,
|
|
6400
|
+
iosEnabled: data.aioGcashDepositGatewaySettings?.iosEnabled ?? false,
|
|
6401
|
+
webEnabled: data.aioGcashDepositGatewaySettings?.webEnabled ?? false,
|
|
6402
|
+
mobileWebEnabled: data.aioGcashDepositGatewaySettings?.mobileWebEnabled ?? false,
|
|
6403
|
+
minimumAmount: parseDecimal(
|
|
6404
|
+
data.aioGcashDepositGatewaySettings?.minimumAmount
|
|
6405
|
+
),
|
|
6406
|
+
maximumAmount: parseDecimal(
|
|
6407
|
+
data.aioGcashDepositGatewaySettings?.maximumAmount
|
|
6408
|
+
)
|
|
6409
|
+
},
|
|
6333
6410
|
maya: {
|
|
6334
6411
|
androidEnabled: data.mayaDepositGatewaySettings?.androidEnabled ?? false,
|
|
6335
6412
|
iosEnabled: data.mayaDepositGatewaySettings?.iosEnabled ?? false,
|