@opexa/portal-sdk 0.46.0 → 0.46.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/README.md +1634 -1634
- package/dist/index.cjs +17 -6
- 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 +17 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -277,6 +277,7 @@ var WITHDRAWAL_RECORDS_QUERY = gql`
|
|
|
277
277
|
status
|
|
278
278
|
error
|
|
279
279
|
withdrawalNumber
|
|
280
|
+
serialCode
|
|
280
281
|
dateTimeCreated
|
|
281
282
|
dateTimeLastUpdated
|
|
282
283
|
}
|
|
@@ -290,6 +291,7 @@ var WITHDRAWAL_RECORDS_QUERY = gql`
|
|
|
290
291
|
status
|
|
291
292
|
error
|
|
292
293
|
withdrawalNumber
|
|
294
|
+
serialCode
|
|
293
295
|
recipientMobileNumber
|
|
294
296
|
dateTimeCreated
|
|
295
297
|
dateTimeLastUpdated
|
|
@@ -304,6 +306,7 @@ var WITHDRAWAL_RECORDS_QUERY = gql`
|
|
|
304
306
|
status
|
|
305
307
|
error
|
|
306
308
|
withdrawalNumber
|
|
309
|
+
serialCode
|
|
307
310
|
dateTimeCreated
|
|
308
311
|
dateTimeLastUpdated
|
|
309
312
|
}
|
|
@@ -317,6 +320,7 @@ var WITHDRAWAL_RECORDS_QUERY = gql`
|
|
|
317
320
|
status
|
|
318
321
|
error
|
|
319
322
|
withdrawalNumber
|
|
323
|
+
serialCode
|
|
320
324
|
dateTimeCreated
|
|
321
325
|
dateTimeLastUpdated
|
|
322
326
|
}
|
|
@@ -331,6 +335,7 @@ var WITHDRAWAL_RECORDS_QUERY = gql`
|
|
|
331
335
|
status
|
|
332
336
|
error
|
|
333
337
|
withdrawalNumber
|
|
338
|
+
serialCode
|
|
334
339
|
dateTimeCreated
|
|
335
340
|
dateTimeLastUpdated
|
|
336
341
|
bankName
|
|
@@ -345,6 +350,7 @@ var WITHDRAWAL_RECORDS_QUERY = gql`
|
|
|
345
350
|
status
|
|
346
351
|
error
|
|
347
352
|
withdrawalNumber
|
|
353
|
+
serialCode
|
|
348
354
|
dateTimeCreated
|
|
349
355
|
dateTimeLastUpdated
|
|
350
356
|
}
|
|
@@ -358,6 +364,7 @@ var WITHDRAWAL_RECORDS_QUERY = gql`
|
|
|
358
364
|
status
|
|
359
365
|
error
|
|
360
366
|
withdrawalNumber
|
|
367
|
+
serialCode
|
|
361
368
|
dateTimeCreated
|
|
362
369
|
dateTimeLastUpdated
|
|
363
370
|
}
|
|
@@ -6965,6 +6972,7 @@ var Transformer = class {
|
|
|
6965
6972
|
accountName: data.accountName ?? void 0,
|
|
6966
6973
|
error: data.error ?? void 0,
|
|
6967
6974
|
withdrawalNumber: data.withdrawalNumber,
|
|
6975
|
+
serialCode: data.serialCode,
|
|
6968
6976
|
recipientMobileNumber: data.recipientMobileNumber ?? void 0,
|
|
6969
6977
|
dateTimeConfirmed: data.dateTimeConfirmed ? new Date(data.dateTimeConfirmed) : void 0,
|
|
6970
6978
|
dateTimeCreated: new Date(data.dateTimeCreated),
|
|
@@ -8422,6 +8430,7 @@ var Sdk = class {
|
|
|
8422
8430
|
*/
|
|
8423
8431
|
async createDeposit(input) {
|
|
8424
8432
|
const id = input.id ?? objectId.ObjectId.generate(ObjectType.Deposit).toString();
|
|
8433
|
+
const environment = this.config.environment ?? "development";
|
|
8425
8434
|
if (input.type === "MAYA") {
|
|
8426
8435
|
const res = await this.walletService.createMayaDeposit({
|
|
8427
8436
|
input: {
|
|
@@ -8461,7 +8470,7 @@ var Sdk = class {
|
|
|
8461
8470
|
id,
|
|
8462
8471
|
amount: input.amount.toString(),
|
|
8463
8472
|
promo: input.promo,
|
|
8464
|
-
redirectUrl: input.redirectUrl
|
|
8473
|
+
redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
|
|
8465
8474
|
},
|
|
8466
8475
|
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
8467
8476
|
});
|
|
@@ -8473,7 +8482,7 @@ var Sdk = class {
|
|
|
8473
8482
|
id,
|
|
8474
8483
|
amount: input.amount.toString(),
|
|
8475
8484
|
promo: input.promo,
|
|
8476
|
-
redirectUrl: input.redirectUrl
|
|
8485
|
+
redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
|
|
8477
8486
|
},
|
|
8478
8487
|
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
8479
8488
|
});
|
|
@@ -8485,7 +8494,7 @@ var Sdk = class {
|
|
|
8485
8494
|
id,
|
|
8486
8495
|
amount: input.amount.toString(),
|
|
8487
8496
|
promo: input.promo,
|
|
8488
|
-
redirectUrl: input.redirectUrl
|
|
8497
|
+
redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
|
|
8489
8498
|
},
|
|
8490
8499
|
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
8491
8500
|
});
|
|
@@ -8497,7 +8506,7 @@ var Sdk = class {
|
|
|
8497
8506
|
id,
|
|
8498
8507
|
amount: input.amount.toString(),
|
|
8499
8508
|
promo: input.promo,
|
|
8500
|
-
redirectUrl: input.redirectUrl
|
|
8509
|
+
redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
|
|
8501
8510
|
},
|
|
8502
8511
|
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
8503
8512
|
});
|
|
@@ -9411,7 +9420,8 @@ var ENDPOINTS = {
|
|
|
9411
9420
|
portal: "https://portal.development.opexa.io/graphql",
|
|
9412
9421
|
trigger: "https://trigger.development.opexa.io/graphql",
|
|
9413
9422
|
static: "https://static.development.opexa.io",
|
|
9414
|
-
cmsPortal: "https://portal-api.opexacms.io"
|
|
9423
|
+
cmsPortal: "https://portal-api.opexacms.io",
|
|
9424
|
+
opexapay: "https://external.opexapay.development.opexa.io"
|
|
9415
9425
|
},
|
|
9416
9426
|
production: {
|
|
9417
9427
|
auth: "https://auth.opexa.io",
|
|
@@ -9423,7 +9433,8 @@ var ENDPOINTS = {
|
|
|
9423
9433
|
portal: "https://portal.opexa.io/graphql",
|
|
9424
9434
|
trigger: "https://trigger.opexa.io/graphql",
|
|
9425
9435
|
static: "https://static.atalos.io",
|
|
9426
|
-
cmsPortal: "https://portal-api.opexacms.io"
|
|
9436
|
+
cmsPortal: "https://portal-api.opexacms.io",
|
|
9437
|
+
opexapay: "https://external.opexapay.opexa.io"
|
|
9427
9438
|
}
|
|
9428
9439
|
};
|
|
9429
9440
|
|