@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.cjs
CHANGED
|
@@ -792,6 +792,33 @@ var CREATE_AIO_QRPH_DEPOSIT_MUTATION = gql`
|
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
`;
|
|
795
|
+
var CREATE_AIO_GCASH_DEPOSIT_MUTATION = gql`
|
|
796
|
+
mutation CreateAIOGCashDeposit($input: CreateAiOGCashDepositInput!) {
|
|
797
|
+
createAiOGCashDeposit(input: $input) {
|
|
798
|
+
... on DepositPromoMaximumAmountExceededError {
|
|
799
|
+
__typename
|
|
800
|
+
}
|
|
801
|
+
... on DepositPromoMinimumAmountNotMetError {
|
|
802
|
+
__typename
|
|
803
|
+
}
|
|
804
|
+
... on MaximumDepositAmountExceededError {
|
|
805
|
+
__typename
|
|
806
|
+
}
|
|
807
|
+
... on MinimumDepositAmountNotMetError {
|
|
808
|
+
__typename
|
|
809
|
+
}
|
|
810
|
+
... on MinimumFirstDepositAmountNotMetError {
|
|
811
|
+
__typename
|
|
812
|
+
}
|
|
813
|
+
... on PromoNotEnabledError {
|
|
814
|
+
__typename
|
|
815
|
+
}
|
|
816
|
+
... on WalletDoesNotExistError {
|
|
817
|
+
__typename
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
`;
|
|
795
822
|
var CREATE_AIO_ONLINE_BANK_DEPOSIT_MUTATION = gql`
|
|
796
823
|
mutation CreateAIOOnlineBankDeposit(
|
|
797
824
|
$input: CreateAIOOnlineBankDepositInput!
|
|
@@ -1685,6 +1712,9 @@ var PLATFORM_QUERY = gql`
|
|
|
1685
1712
|
gcashDepositGatewaySettings: depositGatewaySettings(gateway: GCASH) {
|
|
1686
1713
|
...DepositGatewaySettingsCoreData
|
|
1687
1714
|
}
|
|
1715
|
+
aioGcashDepositGatewaySettings: depositGatewaySettings(gateway: AIO_GCASH) {
|
|
1716
|
+
...DepositGatewaySettingsCoreData
|
|
1717
|
+
}
|
|
1688
1718
|
mayaDepositGatewaySettings: depositGatewaySettings(gateway: MAYA) {
|
|
1689
1719
|
...DepositGatewaySettingsCoreData
|
|
1690
1720
|
}
|
|
@@ -1888,6 +1918,9 @@ var PAYMENT_SETTINGS_QUERY = gql`
|
|
|
1888
1918
|
gcashDepositGatewaySettings: depositGatewaySettings(gateway: GCASH) {
|
|
1889
1919
|
...DepositGatewaySettingsCoreData
|
|
1890
1920
|
}
|
|
1921
|
+
aioGcashDepositGatewaySettings: depositGatewaySettings(gateway: AIO_GCASH) {
|
|
1922
|
+
...DepositGatewaySettingsCoreData
|
|
1923
|
+
}
|
|
1891
1924
|
mayaDepositGatewaySettings: depositGatewaySettings(gateway: MAYA) {
|
|
1892
1925
|
...DepositGatewaySettingsCoreData
|
|
1893
1926
|
}
|
|
@@ -4054,6 +4087,26 @@ var WalletService = class {
|
|
|
4054
4087
|
ok: true
|
|
4055
4088
|
};
|
|
4056
4089
|
}
|
|
4090
|
+
async createAIOGcashDeposit(variables) {
|
|
4091
|
+
const { reCAPTCHAResponse, ...others } = variables;
|
|
4092
|
+
const res = await this.client.request(CREATE_AIO_GCASH_DEPOSIT_MUTATION, others, {
|
|
4093
|
+
headers: {
|
|
4094
|
+
...reCAPTCHAResponse && {
|
|
4095
|
+
"google-recaptcha-response": reCAPTCHAResponse
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
});
|
|
4099
|
+
if (!res.ok) return res;
|
|
4100
|
+
if (res.data.createAIOGcashDeposit) {
|
|
4101
|
+
return {
|
|
4102
|
+
ok: false,
|
|
4103
|
+
error: createOperationError(res.data.createAIOGcashDeposit.__typename)
|
|
4104
|
+
};
|
|
4105
|
+
}
|
|
4106
|
+
return {
|
|
4107
|
+
ok: true
|
|
4108
|
+
};
|
|
4109
|
+
}
|
|
4057
4110
|
async createAIOOnlineBankDeposit(variables) {
|
|
4058
4111
|
const { reCAPTCHAResponse, ...others } = variables;
|
|
4059
4112
|
const res = await this.client.request(CREATE_AIO_ONLINE_BANK_DEPOSIT_MUTATION, others, {
|
|
@@ -5933,6 +5986,18 @@ var Transformer = class {
|
|
|
5933
5986
|
data.gcashDepositGatewaySettings?.maximumAmount
|
|
5934
5987
|
)
|
|
5935
5988
|
},
|
|
5989
|
+
aioGcash: {
|
|
5990
|
+
androidEnabled: data.aioGcashDepositGatewaySettings?.androidEnabled ?? false,
|
|
5991
|
+
iosEnabled: data.aioGcashDepositGatewaySettings?.iosEnabled ?? false,
|
|
5992
|
+
webEnabled: data.aioGcashDepositGatewaySettings?.webEnabled ?? false,
|
|
5993
|
+
mobileWebEnabled: data.aioGcashDepositGatewaySettings?.mobileWebEnabled ?? false,
|
|
5994
|
+
minimumAmount: parseDecimal(
|
|
5995
|
+
data.aioGcashDepositGatewaySettings?.minimumAmount
|
|
5996
|
+
),
|
|
5997
|
+
maximumAmount: parseDecimal(
|
|
5998
|
+
data.aioGcashDepositGatewaySettings?.maximumAmount
|
|
5999
|
+
)
|
|
6000
|
+
},
|
|
5936
6001
|
maya: {
|
|
5937
6002
|
androidEnabled: data.mayaDepositGatewaySettings?.androidEnabled ?? false,
|
|
5938
6003
|
iosEnabled: data.mayaDepositGatewaySettings?.iosEnabled ?? false,
|
|
@@ -6335,6 +6400,18 @@ var Transformer = class {
|
|
|
6335
6400
|
data.gcashDepositGatewaySettings?.maximumAmount
|
|
6336
6401
|
)
|
|
6337
6402
|
},
|
|
6403
|
+
aioGcash: {
|
|
6404
|
+
androidEnabled: data.aioGcashDepositGatewaySettings?.androidEnabled ?? false,
|
|
6405
|
+
iosEnabled: data.aioGcashDepositGatewaySettings?.iosEnabled ?? false,
|
|
6406
|
+
webEnabled: data.aioGcashDepositGatewaySettings?.webEnabled ?? false,
|
|
6407
|
+
mobileWebEnabled: data.aioGcashDepositGatewaySettings?.mobileWebEnabled ?? false,
|
|
6408
|
+
minimumAmount: parseDecimal(
|
|
6409
|
+
data.aioGcashDepositGatewaySettings?.minimumAmount
|
|
6410
|
+
),
|
|
6411
|
+
maximumAmount: parseDecimal(
|
|
6412
|
+
data.aioGcashDepositGatewaySettings?.maximumAmount
|
|
6413
|
+
)
|
|
6414
|
+
},
|
|
6338
6415
|
maya: {
|
|
6339
6416
|
androidEnabled: data.mayaDepositGatewaySettings?.androidEnabled ?? false,
|
|
6340
6417
|
iosEnabled: data.mayaDepositGatewaySettings?.iosEnabled ?? false,
|