@spritz-finance/service-client 0.2.91 → 0.2.93

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/lib/config.js CHANGED
@@ -5,19 +5,19 @@ exports.config = void 0;
5
5
  const config_1 = require("@spritz-finance/config");
6
6
  const envConfigs = {
7
7
  base: {
8
- env: (_b = (_a = process.env.STAGE) !== null && _a !== void 0 ? _a : process.env.NODE_ENV) !== null && _b !== void 0 ? _b : 'dev',
9
- authEndpoint: 'https://auth-dev.spritz.finance/oauth2/token',
10
- graphEndpoint: 'https://api-dev.spritz.finance/graphql',
11
- verificationServiceEndpoint: 'https://api-dev.spritz.finance/verification',
12
- transactionsServiceEndpoint: 'https://api-dev.spritz.finance/transactions',
13
- usersServiceEndpoint: 'https://api-dev.spritz.finance/users',
14
- liabilitiesServiceEndpoint: 'https://api-dev.spritz.finance/liabilities',
15
- payableAccountsServiceEndpoint: 'https://api-dev.spritz.finance/payable-accounts',
16
- growthServiceEndpoint: 'https://api-dev.spritz.finance/growth',
17
- exchangeRatesServiceEndpoint: 'https://api-dev.spritz.finance/exchange-rates',
18
- web3ServiceEndpoint: 'https://api-dev.spritz.finance/web3',
19
- unblockServiceEndpoint: 'https://api-dev.spritz.finance/unblock',
20
- onrampServiceEndpoint: 'https://api-dev.spritz.finance/bridge',
8
+ env: (_b = (_a = process.env.STAGE) !== null && _a !== void 0 ? _a : process.env.NODE_ENV) !== null && _b !== void 0 ? _b : 'staging',
9
+ authEndpoint: 'https://auth-staging.spritz.finance/oauth2/token',
10
+ graphEndpoint: 'https://api-staging.spritz.finance/graphql',
11
+ verificationServiceEndpoint: 'https://api-staging.spritz.finance/verification',
12
+ transactionsServiceEndpoint: 'https://api-staging.spritz.finance/transactions',
13
+ usersServiceEndpoint: 'https://api-staging.spritz.finance/users',
14
+ liabilitiesServiceEndpoint: 'https://api-staging.spritz.finance/liabilities',
15
+ payableAccountsServiceEndpoint: 'https://api-staging.spritz.finance/payable-accounts',
16
+ growthServiceEndpoint: 'https://api-staging.spritz.finance/growth',
17
+ exchangeRatesServiceEndpoint: 'https://api-staging.spritz.finance/exchange-rates',
18
+ web3ServiceEndpoint: 'https://api-staging.spritz.finance/web3',
19
+ unblockServiceEndpoint: 'https://api-staging.spritz.finance/unblock',
20
+ onrampServiceEndpoint: 'https://api-staging.spritz.finance/bridge',
21
21
  },
22
22
  test: {
23
23
  env: 'staging',
@@ -254,5 +254,6 @@ export declare class LiabilitiesServiceClient {
254
254
  initializeExternalPayment(args: ExternalPaymentInput): Promise<Payment>;
255
255
  scheduleExternalPayment(args: ExternalPaymentInput): Promise<Payment>;
256
256
  updateExternalPaymentStatus(paymentId: string, status: PaymentStatus): Promise<Payment>;
257
+ getDirectPaymentToken(directPaymentId: string): Promise<string | null>;
257
258
  }
258
259
  export {};
@@ -144,5 +144,10 @@ class LiabilitiesServiceClient {
144
144
  .post(`/external-payment/status/${paymentId}`, { status })
145
145
  .then((res) => res.data);
146
146
  }
147
+ async getDirectPaymentToken(directPaymentId) {
148
+ return this.client
149
+ .get(`/direct-payments/${directPaymentId}/token`)
150
+ .then((res) => res.data);
151
+ }
147
152
  }
148
153
  exports.LiabilitiesServiceClient = LiabilitiesServiceClient;
@@ -86,7 +86,6 @@ export type Address = {
86
86
  export type AdminIssuePaymentInput = {
87
87
  accountId: Scalars['String']['input'];
88
88
  amount: Scalars['Float']['input'];
89
- paymentProvider: PaymentProvider;
90
89
  userId: Scalars['String']['input'];
91
90
  };
92
91
  export type ApiToken = {
@@ -146,7 +145,6 @@ export type BankAccount = PayableAccount & {
146
145
  paymentCount: Scalars['Int']['output'];
147
146
  paymentVolume: Scalars['Float']['output'];
148
147
  provider: Scalars['String']['output'];
149
- testPaymentAvailable: Scalars['Boolean']['output'];
150
148
  type: PayableAccountType;
151
149
  user: User;
152
150
  userId: Scalars['String']['output'];
@@ -214,6 +212,7 @@ export type BasicPayableAccount = {
214
212
  export declare enum BasicPayableAccountType {
215
213
  BankAccount = "BANK_ACCOUNT",
216
214
  Bill = "BILL",
215
+ DebitCard = "DEBIT_CARD",
217
216
  PayOthers = "PAY_OTHERS",
218
217
  SpritzCard = "SPRITZ_CARD"
219
218
  }
@@ -238,7 +237,6 @@ export type Bill = PayableAccount & {
238
237
  paymentCount: Scalars['Int']['output'];
239
238
  paymentVolume: Scalars['Float']['output'];
240
239
  provider: Scalars['String']['output'];
241
- testPaymentAvailable: Scalars['Boolean']['output'];
242
240
  type: PayableAccountType;
243
241
  user: User;
244
242
  userId: Scalars['String']['output'];
@@ -293,6 +291,26 @@ export type BillingInfo = {
293
291
  holder: Scalars['String']['output'];
294
292
  phone: Scalars['String']['output'];
295
293
  };
294
+ export type BlockchainTransaction = {
295
+ __typename?: 'BlockchainTransaction';
296
+ asset?: Maybe<Scalars['String']['output']>;
297
+ from?: Maybe<Scalars['String']['output']>;
298
+ hash: Scalars['String']['output'];
299
+ link: Scalars['String']['output'];
300
+ network: Scalars['String']['output'];
301
+ paymentToken?: Maybe<BlockchainTransactionToken>;
302
+ sourceToken?: Maybe<BlockchainTransactionToken>;
303
+ to?: Maybe<Scalars['String']['output']>;
304
+ value?: Maybe<Scalars['Float']['output']>;
305
+ };
306
+ export type BlockchainTransactionToken = {
307
+ __typename?: 'BlockchainTransactionToken';
308
+ address: Scalars['String']['output'];
309
+ amount: Scalars['Float']['output'];
310
+ amountRaw: Scalars['String']['output'];
311
+ decimals: Scalars['Float']['output'];
312
+ symbol: Scalars['String']['output'];
313
+ };
296
314
  export type BrexBalance = {
297
315
  __typename?: 'BrexBalance';
298
316
  available: Scalars['Float']['output'];
@@ -310,6 +328,20 @@ export type BridgeUser = {
310
328
  type?: Maybe<Scalars['String']['output']>;
311
329
  userId: Scalars['ObjectID']['output'];
312
330
  };
331
+ export type BridgeVirtualAccount = {
332
+ __typename?: 'BridgeVirtualAccount';
333
+ address: Scalars['String']['output'];
334
+ createdAt: Scalars['DateTimeISO']['output'];
335
+ currency: Scalars['String']['output'];
336
+ depositInstructions?: Maybe<VirtualAccountDepositInstructions>;
337
+ deposited: Scalars['Boolean']['output'];
338
+ externalId: Scalars['String']['output'];
339
+ id: Scalars['ID']['output'];
340
+ microdeposits?: Maybe<Array<Scalars['Float']['output']>>;
341
+ network: Scalars['String']['output'];
342
+ token: Scalars['String']['output'];
343
+ userId: Scalars['ObjectID']['output'];
344
+ };
313
345
  export type BusinessIdentity = {
314
346
  __typename?: 'BusinessIdentity';
315
347
  address?: Maybe<Address>;
@@ -411,6 +443,11 @@ export type CognitoKycFlowTemplate = {
411
443
  id: Scalars['ID']['output'];
412
444
  version: Scalars['Int']['output'];
413
445
  };
446
+ export type CreateBridgeVirtualAccountInput = {
447
+ address: Scalars['String']['input'];
448
+ network: Scalars['String']['input'];
449
+ token: Scalars['String']['input'];
450
+ };
414
451
  export type CreateDirectPaymentInput = {
415
452
  accountId: Scalars['String']['input'];
416
453
  amount: Scalars['Float']['input'];
@@ -420,8 +457,6 @@ export type CreateDirectPaymentInput = {
420
457
  /** The amount of rewards balance to apply to the payment */
421
458
  rewardsAmount?: InputMaybe<Scalars['Float']['input']>;
422
459
  subscriptionId?: InputMaybe<Scalars['String']['input']>;
423
- /** Whether to apply testPayment rewards */
424
- testPayment?: InputMaybe<Scalars['Boolean']['input']>;
425
460
  tokenAddress?: InputMaybe<Scalars['String']['input']>;
426
461
  };
427
462
  export type CreateOnrampPaymentInput = {
@@ -477,10 +512,10 @@ export type DebitCard = PayableAccount & {
477
512
  originalName?: Maybe<Scalars['String']['output']>;
478
513
  originator: PayableAccountOriginator;
479
514
  payable: Scalars['Boolean']['output'];
515
+ paymentAddresses: Array<PaymentAddress>;
480
516
  paymentCount: Scalars['Int']['output'];
481
517
  paymentVolume: Scalars['Float']['output'];
482
518
  provider: Scalars['String']['output'];
483
- testPaymentAvailable: Scalars['Boolean']['output'];
484
519
  type: PayableAccountType;
485
520
  user: User;
486
521
  userId: Scalars['String']['output'];
@@ -529,7 +564,6 @@ export type DirectPayment = {
529
564
  targetCurrencyAmount: Scalars['Float']['output'];
530
565
  targetCurrencyFee: Scalars['Float']['output'];
531
566
  targetCurrencyRate: Scalars['Float']['output'];
532
- testPayment?: Maybe<Scalars['Boolean']['output']>;
533
567
  toAddress?: Maybe<Scalars['String']['output']>;
534
568
  tokenAddress: Scalars['String']['output'];
535
569
  totalAmount: Scalars['Float']['output'];
@@ -568,6 +602,10 @@ export declare enum DirectPaymentTransactionReferenceStatus {
568
602
  Confirmed = "CONFIRMED",
569
603
  Pending = "PENDING"
570
604
  }
605
+ export type DismissedItems = {
606
+ __typename?: 'DismissedItems';
607
+ onboardingChecklist?: Maybe<Scalars['DateTimeISO']['output']>;
608
+ };
571
609
  export type ExchangeRate = {
572
610
  __typename?: 'ExchangeRate';
573
611
  base: Scalars['String']['output'];
@@ -735,7 +773,7 @@ export type MethodFiEntity = {
735
773
  individual?: Maybe<MethodFiEntityIndividual>;
736
774
  locked: Scalars['Boolean']['output'];
737
775
  status: Scalars['String']['output'];
738
- type: Scalars['String']['output'];
776
+ type?: Maybe<Scalars['String']['output']>;
739
777
  updatedAt: Scalars['DateTimeISO']['output'];
740
778
  userId: Scalars['ObjectID']['output'];
741
779
  };
@@ -859,10 +897,12 @@ export type Mutation = {
859
897
  createUSBankAccount: BankAccount;
860
898
  createUSVirtualDebitCard: VirtualCard;
861
899
  createUser: User;
900
+ createVirtualAccount: BridgeVirtualAccount;
862
901
  deleteDirectPayment: Scalars['Boolean']['output'];
863
902
  deletePayableAccount: PayableAccount;
864
903
  deleteSubscription: Scalars['Boolean']['output'];
865
904
  disableUser?: Maybe<Verification>;
905
+ dismissItem: Scalars['Boolean']['output'];
866
906
  finishBridgeUserSetup: BridgeUser;
867
907
  flushBalances: Array<TokenBalance>;
868
908
  forcePayment: Payment;
@@ -874,6 +914,8 @@ export type Mutation = {
874
914
  markNotificationAsRead?: Maybe<UserNotification>;
875
915
  methodFiUpdateSSN: MethodFiEntity;
876
916
  moveMoney: Scalars['Boolean']['output'];
917
+ paymentAddressForceWithdrawal: Scalars['String']['output'];
918
+ paymentAddressRescueNative: Scalars['String']['output'];
877
919
  refreshEntities: Scalars['Boolean']['output'];
878
920
  refundPayment: Payment;
879
921
  refundPaymentWithCredits: Payment;
@@ -910,6 +952,7 @@ export type Mutation = {
910
952
  updateEntityAuthentication?: Maybe<MethodFiEntity>;
911
953
  updateReferralCode: Referral;
912
954
  updateTokenPreferences: Scalars['Boolean']['output'];
955
+ updateUnblockUser: Scalars['Boolean']['output'];
913
956
  updateUserTimezone: User;
914
957
  };
915
958
  export type MutationAddAssociatedWalletArgs = {
@@ -997,6 +1040,9 @@ export type MutationCreateUsVirtualDebitCardArgs = {
997
1040
  export type MutationCreateUserArgs = {
998
1041
  createUser: CreateUserInput;
999
1042
  };
1043
+ export type MutationCreateVirtualAccountArgs = {
1044
+ createBridgeVirtualAccountInput: CreateBridgeVirtualAccountInput;
1045
+ };
1000
1046
  export type MutationDeleteDirectPaymentArgs = {
1001
1047
  directPaymentId: Scalars['String']['input'];
1002
1048
  };
@@ -1009,6 +1055,9 @@ export type MutationDeleteSubscriptionArgs = {
1009
1055
  export type MutationDisableUserArgs = {
1010
1056
  userId: Scalars['String']['input'];
1011
1057
  };
1058
+ export type MutationDismissItemArgs = {
1059
+ property: Scalars['String']['input'];
1060
+ };
1012
1061
  export type MutationFinishBridgeUserSetupArgs = {
1013
1062
  ssn: Scalars['String']['input'];
1014
1063
  };
@@ -1042,6 +1091,17 @@ export type MutationMoveMoneyArgs = {
1042
1091
  from: Scalars['String']['input'];
1043
1092
  to: Scalars['String']['input'];
1044
1093
  };
1094
+ export type MutationPaymentAddressForceWithdrawalArgs = {
1095
+ address: Scalars['String']['input'];
1096
+ network: Scalars['String']['input'];
1097
+ token: Scalars['String']['input'];
1098
+ validate: Scalars['Boolean']['input'];
1099
+ };
1100
+ export type MutationPaymentAddressRescueNativeArgs = {
1101
+ address: Scalars['String']['input'];
1102
+ network: Scalars['String']['input'];
1103
+ to: Scalars['String']['input'];
1104
+ };
1045
1105
  export type MutationRefundPaymentArgs = {
1046
1106
  refundPaymentInput: RefundPaymentInput;
1047
1107
  };
@@ -1129,6 +1189,7 @@ export type MutationSubmitBankAccountVerificationArgs = {
1129
1189
  otp: Scalars['String']['input'];
1130
1190
  };
1131
1191
  export type MutationUpdateAnalyticsSessionArgs = {
1192
+ gclid?: InputMaybe<Scalars['String']['input']>;
1132
1193
  sessionId: Scalars['String']['input'];
1133
1194
  };
1134
1195
  export type MutationUpdateAppDomainArgs = {
@@ -1149,6 +1210,9 @@ export type MutationUpdateReferralCodeArgs = {
1149
1210
  export type MutationUpdateTokenPreferencesArgs = {
1150
1211
  tokenPreferencesInput: TokenPreferencesInput;
1151
1212
  };
1213
+ export type MutationUpdateUnblockUserArgs = {
1214
+ unblockUserInput: UnblockUserInput;
1215
+ };
1152
1216
  export type MutationUpdateUserTimezoneArgs = {
1153
1217
  timezone: Scalars['String']['input'];
1154
1218
  };
@@ -1181,7 +1245,9 @@ export type OnRampPayment = {
1181
1245
  status: OnrampPaymentStatus;
1182
1246
  token: Scalars['String']['output'];
1183
1247
  totalAmount: Scalars['Float']['output'];
1248
+ transactionHash?: Maybe<Scalars['String']['output']>;
1184
1249
  userId: Scalars['ObjectID']['output'];
1250
+ virtualAccountId?: Maybe<Scalars['ObjectID']['output']>;
1185
1251
  };
1186
1252
  export type OnrampPaymentDepositInstructions = {
1187
1253
  __typename?: 'OnrampPaymentDepositInstructions';
@@ -1252,7 +1318,6 @@ export type PayableAccount = {
1252
1318
  paymentCount: Scalars['Int']['output'];
1253
1319
  paymentVolume: Scalars['Float']['output'];
1254
1320
  provider: Scalars['String']['output'];
1255
- testPaymentAvailable: Scalars['Boolean']['output'];
1256
1321
  type: PayableAccountType;
1257
1322
  user: User;
1258
1323
  userId: Scalars['String']['output'];
@@ -1306,6 +1371,7 @@ export type Payment = {
1306
1371
  targetCurrencyFee: Scalars['Float']['output'];
1307
1372
  targetCurrencyRate?: Maybe<Scalars['Float']['output']>;
1308
1373
  targetCurrencyTransactionFee: Scalars['Float']['output'];
1374
+ transaction?: Maybe<BlockchainTransaction>;
1309
1375
  type: Scalars['String']['output'];
1310
1376
  user: User;
1311
1377
  userId: Scalars['ObjectID']['output'];
@@ -1361,6 +1427,7 @@ export type PaymentRefund = {
1361
1427
  to?: Maybe<Scalars['String']['output']>;
1362
1428
  };
1363
1429
  export declare enum PaymentSource {
1430
+ Admin = "Admin",
1364
1431
  External = "External",
1365
1432
  Integrator = "Integrator",
1366
1433
  Mobile = "Mobile",
@@ -1368,7 +1435,8 @@ export declare enum PaymentSource {
1368
1435
  MobileIos = "MobileIOS",
1369
1436
  PaymentAddress = "PaymentAddress",
1370
1437
  Subscription = "Subscription",
1371
- Web = "Web"
1438
+ Web = "Web",
1439
+ Widget = "Widget"
1372
1440
  }
1373
1441
  export declare enum PaymentStatus {
1374
1442
  Cancelled = "CANCELLED",
@@ -1431,24 +1499,30 @@ export type PricingUser = {
1431
1499
  };
1432
1500
  export type Query = {
1433
1501
  __typename?: 'Query';
1502
+ adminBridgeUser: BridgeUser;
1434
1503
  adminDirectPayment?: Maybe<DirectPayment>;
1435
1504
  adminDirectPayments: Array<DirectPayment>;
1505
+ adminOnrampPayments: Array<OnRampPayment>;
1506
+ adminPaginatedReferrals: PaginatedReferral;
1436
1507
  adminPayments: Array<Payment>;
1437
1508
  adminPaymentsCount: Scalars['Int']['output'];
1438
1509
  adminRecentPayments: Array<Payment>;
1439
- adminTransactionPrice: Scalars['Float']['output'];
1510
+ adminReferralParticipant?: Maybe<Referral>;
1440
1511
  adminUtxoInvoices: Array<UtxoInvoice>;
1512
+ adminVirtualAccounts: Array<BridgeVirtualAccount>;
1441
1513
  apiTokens: Array<ApiToken>;
1442
1514
  bankAccounts: Array<BankAccount>;
1443
1515
  bills: Array<Bill>;
1444
1516
  brexBalance: BrexBalance;
1445
1517
  bridgeUser: BridgeUser;
1518
+ btcCashValue: UtxoBalance;
1446
1519
  checkPayment?: Maybe<UtxoInvoice>;
1447
1520
  checkbookBatchSize: Scalars['Float']['output'];
1448
1521
  checkbookPrefundedAccountBalance?: Maybe<Scalars['Float']['output']>;
1449
1522
  circleBalances: CircleBalances;
1450
1523
  coinbaseBalance: Scalars['Float']['output'];
1451
1524
  cryptoExchangeRate: CryptoExchangeRate;
1525
+ dashCashValue: UtxoBalance;
1452
1526
  debitCards: Array<DebitCard>;
1453
1527
  /** @deprecated no longer in use */
1454
1528
  directPayment?: Maybe<DirectPayment>;
@@ -1499,6 +1573,7 @@ export type Query = {
1499
1573
  paymentsForAccount: Array<Payment>;
1500
1574
  paymentsInProgress: Array<Payment>;
1501
1575
  pendingVerificationBills: Array<Bill>;
1576
+ points: Scalars['Int']['output'];
1502
1577
  popularUSBillInstitutions: Array<PayableAccountInstitution>;
1503
1578
  referralParticipant?: Maybe<Referral>;
1504
1579
  reversals: MethodFiReversal;
@@ -1513,8 +1588,6 @@ export type Query = {
1513
1588
  tokenBalances: Array<TokenBalance>;
1514
1589
  totalTokenBalance: Scalars['Float']['output'];
1515
1590
  transactionPrice: Scalars['Float']['output'];
1516
- transactionVolume: Scalars['Float']['output'];
1517
- transactions: Array<Transaction>;
1518
1591
  tronBalance: Array<TronBalance>;
1519
1592
  unblockKycToken?: Maybe<Scalars['String']['output']>;
1520
1593
  unblockPortal?: Maybe<UnblockVirtualAccount>;
@@ -1527,22 +1600,35 @@ export type Query = {
1527
1600
  userPayableAccounts: Array<PayableAccount>;
1528
1601
  userPayment: Payment;
1529
1602
  userPayments: Array<Payment>;
1603
+ userPoints: Scalars['Int']['output'];
1530
1604
  userUpcomingPayments: Array<Payment>;
1531
1605
  userVerification?: Maybe<Verification>;
1532
1606
  userVirtualDebitCard?: Maybe<VirtualCard>;
1533
1607
  utxoBalance: UtxoBalance;
1534
1608
  verification?: Maybe<Verification>;
1535
1609
  verificationFlow: CognitoKycFlow;
1610
+ virtualAccounts: Array<BridgeVirtualAccount>;
1536
1611
  virtualCardDetails?: Maybe<Scalars['String']['output']>;
1537
1612
  virtualDebitCard?: Maybe<VirtualCard>;
1538
1613
  virtualDebitCards: Array<VirtualCard>;
1539
1614
  };
1615
+ export type QueryAdminBridgeUserArgs = {
1616
+ userId: Scalars['String']['input'];
1617
+ };
1540
1618
  export type QueryAdminDirectPaymentArgs = {
1541
1619
  directPaymentId: Scalars['String']['input'];
1542
1620
  };
1543
1621
  export type QueryAdminDirectPaymentsArgs = {
1544
1622
  userId?: InputMaybe<Scalars['String']['input']>;
1545
1623
  };
1624
+ export type QueryAdminOnrampPaymentsArgs = {
1625
+ userId: Scalars['String']['input'];
1626
+ };
1627
+ export type QueryAdminPaginatedReferralsArgs = {
1628
+ page?: Scalars['Int']['input'];
1629
+ perPage?: Scalars['Int']['input'];
1630
+ userId: Scalars['String']['input'];
1631
+ };
1546
1632
  export type QueryAdminPaymentsArgs = {
1547
1633
  filter?: InputMaybe<PaymentsFilter>;
1548
1634
  pagination?: InputMaybe<Pagination>;
@@ -1555,10 +1641,15 @@ export type QueryAdminPaymentsCountArgs = {
1555
1641
  export type QueryAdminRecentPaymentsArgs = {
1556
1642
  userId: Scalars['String']['input'];
1557
1643
  };
1558
- export type QueryAdminTransactionPriceArgs = {
1559
- amount: Scalars['Float']['input'];
1644
+ export type QueryAdminReferralParticipantArgs = {
1645
+ userId: Scalars['String']['input'];
1646
+ };
1647
+ export type QueryAdminVirtualAccountsArgs = {
1560
1648
  userId: Scalars['String']['input'];
1561
1649
  };
1650
+ export type QueryBtcCashValueArgs = {
1651
+ address: Scalars['String']['input'];
1652
+ };
1562
1653
  export type QueryCheckPaymentArgs = {
1563
1654
  address: Scalars['String']['input'];
1564
1655
  };
@@ -1573,6 +1664,9 @@ export type QueryCryptoExchangeRateArgs = {
1573
1664
  base?: InputMaybe<Scalars['String']['input']>;
1574
1665
  symbol: Scalars['String']['input'];
1575
1666
  };
1667
+ export type QueryDashCashValueArgs = {
1668
+ address: Scalars['String']['input'];
1669
+ };
1576
1670
  export type QueryDirectPaymentArgs = {
1577
1671
  paymentId: Scalars['String']['input'];
1578
1672
  };
@@ -1593,7 +1687,7 @@ export type QueryFeeCalculatorArgs = {
1593
1687
  currency: Scalars['String']['input'];
1594
1688
  deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
1595
1689
  network: Scalars['String']['input'];
1596
- usdc: Scalars['Boolean']['input'];
1690
+ token: Scalars['String']['input'];
1597
1691
  };
1598
1692
  export type QueryFindByWalletAddressArgs = {
1599
1693
  address: Scalars['String']['input'];
@@ -1684,15 +1778,12 @@ export type QueryTotalTokenBalanceArgs = {
1684
1778
  networks?: InputMaybe<Array<Network>>;
1685
1779
  };
1686
1780
  export type QueryTransactionPriceArgs = {
1687
- accountId?: InputMaybe<Scalars['String']['input']>;
1781
+ accountId: Scalars['String']['input'];
1688
1782
  amount: Scalars['Float']['input'];
1689
1783
  deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
1690
- network?: InputMaybe<Scalars['String']['input']>;
1784
+ network: Scalars['String']['input'];
1691
1785
  token?: InputMaybe<Scalars['String']['input']>;
1692
1786
  };
1693
- export type QueryTransactionsArgs = {
1694
- address: Scalars['String']['input'];
1695
- };
1696
1787
  export type QueryTronBalanceArgs = {
1697
1788
  address: Scalars['String']['input'];
1698
1789
  };
@@ -1711,6 +1802,9 @@ export type QueryUserPaymentArgs = {
1711
1802
  export type QueryUserPaymentsArgs = {
1712
1803
  userId: Scalars['String']['input'];
1713
1804
  };
1805
+ export type QueryUserPointsArgs = {
1806
+ userId: Scalars['String']['input'];
1807
+ };
1714
1808
  export type QueryUserUpcomingPaymentsArgs = {
1715
1809
  userId: Scalars['String']['input'];
1716
1810
  };
@@ -1728,18 +1822,13 @@ export type QueryVirtualCardDetailsArgs = {
1728
1822
  key: Scalars['String']['input'];
1729
1823
  renderSecret: Scalars['String']['input'];
1730
1824
  };
1731
- export type RawContract = {
1732
- __typename?: 'RawContract';
1733
- address?: Maybe<Scalars['String']['output']>;
1734
- decimals?: Maybe<Scalars['Float']['output']>;
1735
- rawValue?: Maybe<Scalars['String']['output']>;
1736
- };
1737
1825
  export type Referral = {
1738
1826
  __typename?: 'Referral';
1739
1827
  createdAt: Scalars['DateTimeISO']['output'];
1740
1828
  id: Scalars['ID']['output'];
1741
1829
  maskedEmail: Scalars['String']['output'];
1742
1830
  note?: Maybe<Scalars['String']['output']>;
1831
+ pendingVolume: Scalars['Float']['output'];
1743
1832
  referralClubRewards: Scalars['Float']['output'];
1744
1833
  referralClubStatus?: Maybe<ReferralClubStatus>;
1745
1834
  referralClubTransactionVolume: Scalars['Float']['output'];
@@ -1907,8 +1996,10 @@ export type TokenBalance = {
1907
1996
  balance: Scalars['Float']['output'];
1908
1997
  balanceRaw: Scalars['String']['output'];
1909
1998
  balanceUSD: Scalars['Float']['output'];
1999
+ coinGeckoId: Scalars['String']['output'];
1910
2000
  /** ERC20 decimals */
1911
2001
  decimals: Scalars['Float']['output'];
2002
+ name: Scalars['String']['output'];
1912
2003
  network: Scalars['String']['output'];
1913
2004
  price: Scalars['Float']['output'];
1914
2005
  symbol: Scalars['String']['output'];
@@ -1922,35 +2013,6 @@ export type TokenPreferencesInput = {
1922
2013
  targetAddress?: InputMaybe<Scalars['String']['input']>;
1923
2014
  token?: InputMaybe<Scalars['String']['input']>;
1924
2015
  };
1925
- export type Transaction = {
1926
- __typename?: 'Transaction';
1927
- /** @deprecated Unused */
1928
- address: Scalars['String']['output'];
1929
- asset?: Maybe<Scalars['String']['output']>;
1930
- blockNum: Scalars['String']['output'];
1931
- category: Scalars['String']['output'];
1932
- from?: Maybe<Scalars['String']['output']>;
1933
- hash: Scalars['String']['output'];
1934
- id: Scalars['ID']['output'];
1935
- log?: Maybe<TransactionLog>;
1936
- /** Network that the transaction takes place on */
1937
- network: Scalars['String']['output'];
1938
- rawContract?: Maybe<RawContract>;
1939
- to?: Maybe<Scalars['String']['output']>;
1940
- value?: Maybe<Scalars['Float']['output']>;
1941
- };
1942
- export type TransactionLog = {
1943
- __typename?: 'TransactionLog';
1944
- address?: Maybe<Scalars['String']['output']>;
1945
- blockHash?: Maybe<Scalars['String']['output']>;
1946
- blockNumber?: Maybe<Scalars['String']['output']>;
1947
- data?: Maybe<Scalars['String']['output']>;
1948
- logIndex?: Maybe<Scalars['String']['output']>;
1949
- removed?: Maybe<Scalars['Boolean']['output']>;
1950
- topics?: Maybe<Array<Scalars['String']['output']>>;
1951
- transactionHash?: Maybe<Scalars['String']['output']>;
1952
- transactionIndex?: Maybe<Scalars['String']['output']>;
1953
- };
1954
2016
  export type TronBalance = {
1955
2017
  __typename?: 'TronBalance';
1956
2018
  address: Scalars['String']['output'];
@@ -1991,6 +2053,7 @@ export type UnblockPreference = {
1991
2053
  export type UnblockUser = {
1992
2054
  __typename?: 'UnblockUser';
1993
2055
  country: Scalars['String']['output'];
2056
+ date_of_birth: Scalars['String']['output'];
1994
2057
  externalId: Scalars['String']['output'];
1995
2058
  first_name: Scalars['String']['output'];
1996
2059
  id: Scalars['ID']['output'];
@@ -2000,6 +2063,12 @@ export type UnblockUser = {
2000
2063
  status: Scalars['String']['output'];
2001
2064
  userId: Scalars['ObjectID']['output'];
2002
2065
  };
2066
+ export type UnblockUserInput = {
2067
+ dob?: InputMaybe<Scalars['String']['input']>;
2068
+ firstName?: InputMaybe<Scalars['String']['input']>;
2069
+ lastName?: InputMaybe<Scalars['String']['input']>;
2070
+ otp: Scalars['String']['input'];
2071
+ };
2003
2072
  export type UnblockVirtualAccount = {
2004
2073
  __typename?: 'UnblockVirtualAccount';
2005
2074
  account_number?: Maybe<Scalars['String']['output']>;
@@ -2034,13 +2103,14 @@ export type User = {
2034
2103
  attributionSurvey?: Maybe<AttributionSurvey>;
2035
2104
  createdAt: Scalars['DateTimeISO']['output'];
2036
2105
  deleted?: Maybe<Scalars['Boolean']['output']>;
2106
+ dismissedItems?: Maybe<DismissedItems>;
2037
2107
  dob?: Maybe<Scalars['String']['output']>;
2038
2108
  email: Scalars['String']['output'];
2039
2109
  firstName?: Maybe<Scalars['String']['output']>;
2040
2110
  growsurfId?: Maybe<Scalars['String']['output']>;
2041
2111
  id: Scalars['ID']['output'];
2042
2112
  kycStatus: KycStatus;
2043
- lastLogin?: Maybe<Scalars['DateTimeISO']['output']>;
2113
+ lastActivity?: Maybe<Scalars['DateTimeISO']['output']>;
2044
2114
  lastName?: Maybe<Scalars['String']['output']>;
2045
2115
  latestSessionId?: Maybe<Scalars['String']['output']>;
2046
2116
  membership?: Maybe<Scalars['String']['output']>;
@@ -2123,9 +2193,20 @@ export type Verification = {
2123
2193
  identity: IdentityModule;
2124
2194
  methodFiEntity?: Maybe<MethodFiEntity>;
2125
2195
  signature: Scalars['String']['output'];
2196
+ unblockUser?: Maybe<UnblockUser>;
2126
2197
  userId: Scalars['ObjectID']['output'];
2127
2198
  virtualCard: VirtualCardModule;
2128
2199
  };
2200
+ export type VirtualAccountDepositInstructions = {
2201
+ __typename?: 'VirtualAccountDepositInstructions';
2202
+ bankAccountNumber: Scalars['String']['output'];
2203
+ bankAddress: Scalars['String']['output'];
2204
+ bankBeneficiaryName: Scalars['String']['output'];
2205
+ bankName: Scalars['String']['output'];
2206
+ bankRoutingNumber: Scalars['String']['output'];
2207
+ currency: Scalars['String']['output'];
2208
+ paymentMethod: Scalars['String']['output'];
2209
+ };
2129
2210
  export type VirtualCard = PayableAccount & {
2130
2211
  __typename?: 'VirtualCard';
2131
2212
  balance: Scalars['Float']['output'];
@@ -2148,7 +2229,6 @@ export type VirtualCard = PayableAccount & {
2148
2229
  paymentVolume: Scalars['Float']['output'];
2149
2230
  provider: Scalars['String']['output'];
2150
2231
  renderSecret?: Maybe<Scalars['String']['output']>;
2151
- testPaymentAvailable: Scalars['Boolean']['output'];
2152
2232
  transactions?: Maybe<Array<SimpleCardTransaction>>;
2153
2233
  type: PayableAccountType;
2154
2234
  user: User;
@@ -43,6 +43,7 @@ var BasicPayableAccountType;
43
43
  (function (BasicPayableAccountType) {
44
44
  BasicPayableAccountType["BankAccount"] = "BANK_ACCOUNT";
45
45
  BasicPayableAccountType["Bill"] = "BILL";
46
+ BasicPayableAccountType["DebitCard"] = "DEBIT_CARD";
46
47
  BasicPayableAccountType["PayOthers"] = "PAY_OTHERS";
47
48
  BasicPayableAccountType["SpritzCard"] = "SPRITZ_CARD";
48
49
  })(BasicPayableAccountType || (exports.BasicPayableAccountType = BasicPayableAccountType = {}));
@@ -150,6 +151,7 @@ var PaymentProvider;
150
151
  })(PaymentProvider || (exports.PaymentProvider = PaymentProvider = {}));
151
152
  var PaymentSource;
152
153
  (function (PaymentSource) {
154
+ PaymentSource["Admin"] = "Admin";
153
155
  PaymentSource["External"] = "External";
154
156
  PaymentSource["Integrator"] = "Integrator";
155
157
  PaymentSource["Mobile"] = "Mobile";
@@ -158,6 +160,7 @@ var PaymentSource;
158
160
  PaymentSource["PaymentAddress"] = "PaymentAddress";
159
161
  PaymentSource["Subscription"] = "Subscription";
160
162
  PaymentSource["Web"] = "Web";
163
+ PaymentSource["Widget"] = "Widget";
161
164
  })(PaymentSource || (exports.PaymentSource = PaymentSource = {}));
162
165
  var PaymentStatus;
163
166
  (function (PaymentStatus) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.91",
3
+ "version": "0.2.93",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",