@spritz-finance/service-client 0.3.119 → 0.3.120
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/lib/graphClient/generated.d.ts +46 -11
- package/lib/users/types.d.ts +9 -0
- package/lib/users/types.js +6 -0
- package/package.json +1 -1
|
@@ -674,10 +674,8 @@ export type CreateDirectPaymentInput = {
|
|
|
674
674
|
/** Strategy to use for payment processing */
|
|
675
675
|
paymentStrategy?: InputMaybe<Scalars['String']['input']>;
|
|
676
676
|
pointsRedemptionId?: InputMaybe<Scalars['String']['input']>;
|
|
677
|
-
provider?: InputMaybe<AccountProvider>;
|
|
678
677
|
/** The amount of rewards balance to apply to the payment */
|
|
679
678
|
rewardsAmount?: InputMaybe<Scalars['Float']['input']>;
|
|
680
|
-
subscriptionId?: InputMaybe<Scalars['String']['input']>;
|
|
681
679
|
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
682
680
|
};
|
|
683
681
|
export type CreateOnrampPaymentInput = {
|
|
@@ -816,7 +814,6 @@ export type DirectPayment = {
|
|
|
816
814
|
toAddress?: Maybe<Scalars['String']['output']>;
|
|
817
815
|
tokenAddress: Scalars['String']['output'];
|
|
818
816
|
totalAmount: Scalars['Float']['output'];
|
|
819
|
-
totalTargetCurrencyAmount: Scalars['Float']['output'];
|
|
820
817
|
transaction?: Maybe<DirectPaymentTransactionReference>;
|
|
821
818
|
transactionFee: Scalars['Float']['output'];
|
|
822
819
|
transactionReferences: Array<DirectPaymentTransactionReference>;
|
|
@@ -953,12 +950,6 @@ export type Integrator = {
|
|
|
953
950
|
integrationTokens: Array<IntegrationToken>;
|
|
954
951
|
name: Scalars['String']['output'];
|
|
955
952
|
};
|
|
956
|
-
export type KycStatus = {
|
|
957
|
-
__typename?: 'KycStatus';
|
|
958
|
-
cognitoKycFlow?: Maybe<CognitoKycFlow>;
|
|
959
|
-
id: Scalars['ID']['output'];
|
|
960
|
-
signature: Scalars['String']['output'];
|
|
961
|
-
};
|
|
962
953
|
export type LiquidityLimits = {
|
|
963
954
|
__typename?: 'LiquidityLimits';
|
|
964
955
|
checkbookHighWaterMark: Scalars['Float']['output'];
|
|
@@ -1153,6 +1144,7 @@ export type Mutation = {
|
|
|
1153
1144
|
activateRecoveryProgram: Scalars['Boolean']['output'];
|
|
1154
1145
|
addAssociatedWallet: Scalars['Boolean']['output'];
|
|
1155
1146
|
addBICToIBANAccount: BankAccount;
|
|
1147
|
+
addCardActivationCode?: Maybe<UserPromotionCode>;
|
|
1156
1148
|
addPromotionCode?: Maybe<UserPromotionCode>;
|
|
1157
1149
|
addSignupCode: Scalars['Boolean']['output'];
|
|
1158
1150
|
addUSBill: Bill;
|
|
@@ -1230,6 +1222,7 @@ export type Mutation = {
|
|
|
1230
1222
|
setIntegrator: Scalars['Boolean']['output'];
|
|
1231
1223
|
setLiquidityLimits: LiquidityLimits;
|
|
1232
1224
|
setUserAccountType: User;
|
|
1225
|
+
setUserAvatarNumber: Scalars['Boolean']['output'];
|
|
1233
1226
|
setUserDeleted: User;
|
|
1234
1227
|
setUserLimits: PricingUser;
|
|
1235
1228
|
setUserPricing: PricingUser;
|
|
@@ -1249,6 +1242,7 @@ export type Mutation = {
|
|
|
1249
1242
|
updateAttributionSource?: Maybe<User>;
|
|
1250
1243
|
updateCurrentUser: User;
|
|
1251
1244
|
updateEntityAuthentication?: Maybe<MethodFiEntity>;
|
|
1245
|
+
updateNotificationPreferences: User;
|
|
1252
1246
|
updateReferralCode: Referral;
|
|
1253
1247
|
updateTokenPreferences: Scalars['Boolean']['output'];
|
|
1254
1248
|
updateUnblockUser: Scalars['Boolean']['output'];
|
|
@@ -1262,6 +1256,9 @@ export type MutationAddBicToIbanAccountArgs = {
|
|
|
1262
1256
|
accountId: Scalars['String']['input'];
|
|
1263
1257
|
bic: Scalars['String']['input'];
|
|
1264
1258
|
};
|
|
1259
|
+
export type MutationAddCardActivationCodeArgs = {
|
|
1260
|
+
signupCode: Scalars['String']['input'];
|
|
1261
|
+
};
|
|
1265
1262
|
export type MutationAddPromotionCodeArgs = {
|
|
1266
1263
|
identifiers?: InputMaybe<AdIdentifierInput>;
|
|
1267
1264
|
signupCode: Scalars['String']['input'];
|
|
@@ -1493,6 +1490,9 @@ export type MutationSetUserAccountTypeArgs = {
|
|
|
1493
1490
|
accountType: Scalars['String']['input'];
|
|
1494
1491
|
userId: Scalars['String']['input'];
|
|
1495
1492
|
};
|
|
1493
|
+
export type MutationSetUserAvatarNumberArgs = {
|
|
1494
|
+
avatarNumber: Scalars['Float']['input'];
|
|
1495
|
+
};
|
|
1496
1496
|
export type MutationSetUserDeletedArgs = {
|
|
1497
1497
|
deleted: Scalars['Boolean']['input'];
|
|
1498
1498
|
userId: Scalars['String']['input'];
|
|
@@ -1557,6 +1557,9 @@ export type MutationUpdateCurrentUserArgs = {
|
|
|
1557
1557
|
export type MutationUpdateEntityAuthenticationArgs = {
|
|
1558
1558
|
connectionId?: InputMaybe<Scalars['String']['input']>;
|
|
1559
1559
|
};
|
|
1560
|
+
export type MutationUpdateNotificationPreferencesArgs = {
|
|
1561
|
+
input: UpdateNotificationPreferencesInput;
|
|
1562
|
+
};
|
|
1560
1563
|
export type MutationUpdateReferralCodeArgs = {
|
|
1561
1564
|
referralCode: Scalars['String']['input'];
|
|
1562
1565
|
};
|
|
@@ -1587,6 +1590,17 @@ export declare enum Network {
|
|
|
1587
1590
|
Sui = "Sui",
|
|
1588
1591
|
Tron = "Tron"
|
|
1589
1592
|
}
|
|
1593
|
+
export type NotificationPreference = {
|
|
1594
|
+
__typename?: 'NotificationPreference';
|
|
1595
|
+
email: Scalars['Boolean']['output'];
|
|
1596
|
+
mobile: Scalars['Boolean']['output'];
|
|
1597
|
+
type: Scalars['String']['output'];
|
|
1598
|
+
};
|
|
1599
|
+
export type NotificationPreferenceInput = {
|
|
1600
|
+
email?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1601
|
+
mobile?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1602
|
+
type: Scalars['String']['input'];
|
|
1603
|
+
};
|
|
1590
1604
|
export type OnRampPayment = {
|
|
1591
1605
|
__typename?: 'OnRampPayment';
|
|
1592
1606
|
address: Scalars['String']['output'];
|
|
@@ -1972,6 +1986,7 @@ export type Query = {
|
|
|
1972
1986
|
methodFiACHReport: Array<MethodFiAchPull>;
|
|
1973
1987
|
methodFiEntity?: Maybe<MethodFiEntity>;
|
|
1974
1988
|
methodFiWebhooks: Array<MethodFiWebhook>;
|
|
1989
|
+
multichainBalances: Array<TokenBalance>;
|
|
1975
1990
|
notificationTokens: Array<UserNotificationToken>;
|
|
1976
1991
|
notifications: Array<UserNotification>;
|
|
1977
1992
|
onrampPayments: Array<OnRampPayment>;
|
|
@@ -2012,7 +2027,7 @@ export type Query = {
|
|
|
2012
2027
|
spritzPayParams: PaymentParams;
|
|
2013
2028
|
tokenBalances: Array<TokenBalance>;
|
|
2014
2029
|
totalTokenBalance: Scalars['Float']['output'];
|
|
2015
|
-
transactionPrice:
|
|
2030
|
+
transactionPrice: TransactionPrice;
|
|
2016
2031
|
transactionPriceWithDiscount: TransactionPriceWithDiscount;
|
|
2017
2032
|
tronBalance: Array<TronBalance>;
|
|
2018
2033
|
unblockExchangeRates: Array<UnblockExchangeRateResponse>;
|
|
@@ -2174,6 +2189,9 @@ export type QueryMerkleCheckAddressArgs = {
|
|
|
2174
2189
|
address: Scalars['String']['input'];
|
|
2175
2190
|
network: Scalars['String']['input'];
|
|
2176
2191
|
};
|
|
2192
|
+
export type QueryMultichainBalancesArgs = {
|
|
2193
|
+
address: Scalars['String']['input'];
|
|
2194
|
+
};
|
|
2177
2195
|
export type QueryOutstandingDirectPaymentsArgs = {
|
|
2178
2196
|
accountId?: InputMaybe<Scalars['String']['input']>;
|
|
2179
2197
|
};
|
|
@@ -2257,6 +2275,8 @@ export type QueryTransactionPriceArgs = {
|
|
|
2257
2275
|
amount: Scalars['Float']['input'];
|
|
2258
2276
|
deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
|
|
2259
2277
|
network: Scalars['String']['input'];
|
|
2278
|
+
pointsRedemptionId?: InputMaybe<Scalars['String']['input']>;
|
|
2279
|
+
rewardsAmount?: InputMaybe<Scalars['Float']['input']>;
|
|
2260
2280
|
token?: InputMaybe<Scalars['String']['input']>;
|
|
2261
2281
|
};
|
|
2262
2282
|
export type QueryTransactionPriceWithDiscountArgs = {
|
|
@@ -2531,6 +2551,17 @@ export type TokenPreferencesInput = {
|
|
|
2531
2551
|
targetAddressVasp?: InputMaybe<Scalars['String']['input']>;
|
|
2532
2552
|
token?: InputMaybe<Scalars['String']['input']>;
|
|
2533
2553
|
};
|
|
2554
|
+
export type TransactionPrice = {
|
|
2555
|
+
__typename?: 'TransactionPrice';
|
|
2556
|
+
feeBeforeDiscount: Scalars['Float']['output'];
|
|
2557
|
+
feeDiscount: Scalars['Float']['output'];
|
|
2558
|
+
feePaid: Scalars['Float']['output'];
|
|
2559
|
+
owedByUser: Scalars['Float']['output'];
|
|
2560
|
+
pointsRedemptionAmount: Scalars['Float']['output'];
|
|
2561
|
+
receivedAmount: Scalars['Float']['output'];
|
|
2562
|
+
rewardsUsed: Scalars['Float']['output'];
|
|
2563
|
+
targetCurrencyRate: Scalars['Float']['output'];
|
|
2564
|
+
};
|
|
2534
2565
|
export type TransactionPriceWithDiscount = {
|
|
2535
2566
|
__typename?: 'TransactionPriceWithDiscount';
|
|
2536
2567
|
feeAmount: Scalars['Float']['output'];
|
|
@@ -2626,6 +2657,9 @@ export type UpdateCurrentUserInput = {
|
|
|
2626
2657
|
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
2627
2658
|
phone?: InputMaybe<Scalars['String']['input']>;
|
|
2628
2659
|
};
|
|
2660
|
+
export type UpdateNotificationPreferencesInput = {
|
|
2661
|
+
preferences: Array<NotificationPreferenceInput>;
|
|
2662
|
+
};
|
|
2629
2663
|
export type User = {
|
|
2630
2664
|
__typename?: 'User';
|
|
2631
2665
|
accountType?: Maybe<Scalars['String']['output']>;
|
|
@@ -2634,6 +2668,7 @@ export type User = {
|
|
|
2634
2668
|
attributionSource?: Maybe<Scalars['String']['output']>;
|
|
2635
2669
|
attributionSurvey?: Maybe<AttributionSurvey>;
|
|
2636
2670
|
authenticatedWallets: Array<Scalars['String']['output']>;
|
|
2671
|
+
avatarNumber?: Maybe<Scalars['Float']['output']>;
|
|
2637
2672
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
2638
2673
|
deleted?: Maybe<Scalars['Boolean']['output']>;
|
|
2639
2674
|
dismissedItems?: Maybe<DismissedItems>;
|
|
@@ -2641,12 +2676,12 @@ export type User = {
|
|
|
2641
2676
|
email?: Maybe<Scalars['String']['output']>;
|
|
2642
2677
|
firstName?: Maybe<Scalars['String']['output']>;
|
|
2643
2678
|
id: Scalars['ID']['output'];
|
|
2644
|
-
kycStatus: KycStatus;
|
|
2645
2679
|
lastActivity?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2646
2680
|
lastName?: Maybe<Scalars['String']['output']>;
|
|
2647
2681
|
latestSessionId?: Maybe<Scalars['String']['output']>;
|
|
2648
2682
|
membership?: Maybe<Scalars['String']['output']>;
|
|
2649
2683
|
methodFiEntity?: Maybe<MethodFiEntity>;
|
|
2684
|
+
notificationPreferences: Array<NotificationPreference>;
|
|
2650
2685
|
onboardingJourney?: Maybe<Scalars['String']['output']>;
|
|
2651
2686
|
phone?: Maybe<Scalars['String']['output']>;
|
|
2652
2687
|
picture?: Maybe<Scalars['String']['output']>;
|
package/lib/users/types.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare enum NotificationType {
|
|
2
|
+
CardTransactionApproved = "cardTransaction.approved",
|
|
3
|
+
CardTransactionDeclined = "cardTransaction.declined"
|
|
4
|
+
}
|
|
1
5
|
export interface User {
|
|
2
6
|
id: string;
|
|
3
7
|
email?: string;
|
|
@@ -7,6 +11,11 @@ export interface User {
|
|
|
7
11
|
attributionSource?: string;
|
|
8
12
|
createdAt: string;
|
|
9
13
|
deleted: boolean;
|
|
14
|
+
notificationPreferences: {
|
|
15
|
+
type: NotificationType;
|
|
16
|
+
email: boolean;
|
|
17
|
+
mobile: boolean;
|
|
18
|
+
}[];
|
|
10
19
|
}
|
|
11
20
|
export type IntegratorWebhook = {
|
|
12
21
|
id: string;
|
package/lib/users/types.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["CardTransactionApproved"] = "cardTransaction.approved";
|
|
7
|
+
NotificationType["CardTransactionDeclined"] = "cardTransaction.declined";
|
|
8
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|