@spritz-finance/service-client 0.2.65 → 0.2.67
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 +1 -1
- package/lib/credentials.js +5 -1
- package/lib/index.js +5 -1
- package/lib/liabilitiesServiceClient.d.ts +6 -6
- package/lib/liabilitiesServiceClient.js +4 -4
- package/lib/lib/graphClient/generated.d.ts +212 -282
- package/lib/lib/graphClient/generated.js +28 -28
- package/lib/payableAccountsServiceClient.d.ts +11 -11
- package/lib/payableAccountsServiceClient.js +1 -1
- package/lib/usersServiceClient.d.ts +1 -1
- package/lib/verificationServiceClient.d.ts +6 -6
- package/package.json +5 -5
package/lib/config.js
CHANGED
|
@@ -41,7 +41,7 @@ const envConfigs = {
|
|
|
41
41
|
},
|
|
42
42
|
production: {
|
|
43
43
|
authEndpoint: 'https://auth.spritz.finance/oauth2/token',
|
|
44
|
-
graphEndpoint: 'https://api.spritz.finance/
|
|
44
|
+
graphEndpoint: 'https://api.spritz.finance/router/graph',
|
|
45
45
|
verificationServiceEndpoint: 'https://api.spritz.finance/verification',
|
|
46
46
|
transactionsServiceEndpoint: 'https://api.spritz.finance/transactions',
|
|
47
47
|
usersServiceEndpoint: 'https://api.spritz.finance/users',
|
package/lib/credentials.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -18,7 +18,7 @@ export declare enum RewardCreditSource {
|
|
|
18
18
|
OTHER = "OTHER",
|
|
19
19
|
REVENUE_SHARE = "REVENUE_SHARE"
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
type Payment = {
|
|
22
22
|
_id: string;
|
|
23
23
|
accountId: string;
|
|
24
24
|
amount: number;
|
|
@@ -34,7 +34,7 @@ declare type Payment = {
|
|
|
34
34
|
updatedAt: string;
|
|
35
35
|
userId: string;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type CheckbookCardResponse = {
|
|
38
38
|
userId: string;
|
|
39
39
|
externalId: string;
|
|
40
40
|
mask: string;
|
|
@@ -73,7 +73,7 @@ export interface RewardTransaction {
|
|
|
73
73
|
userId: string;
|
|
74
74
|
context?: string;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
type TEntityTypes = 'individual' | 'c_corporation' | 's_corporation' | 'llc' | 'partnership' | 'sole_proprietorship' | 'receive_only';
|
|
77
77
|
interface IEntityIndividual {
|
|
78
78
|
first_name: string | null;
|
|
79
79
|
last_name: string | null;
|
|
@@ -158,15 +158,15 @@ export interface ICorporationCreateOpts extends IEntityCreateOpts {
|
|
|
158
158
|
type: 'c_corporation' | 's_corporation' | 'llc' | 'partnership' | 'sole_proprietorship';
|
|
159
159
|
corporation: Partial<IEntityCorporation>;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
type CardTransaction = {
|
|
162
162
|
amount: number;
|
|
163
163
|
timestamp: Date;
|
|
164
164
|
description: string;
|
|
165
165
|
};
|
|
166
|
-
export
|
|
166
|
+
export type CreateEntityParams = Pick<IEntity, 'type' | 'individual' | 'corporation' | 'address'> & {
|
|
167
167
|
userId: string;
|
|
168
168
|
};
|
|
169
|
-
export
|
|
169
|
+
export type CreateCheckbookUserParams = {
|
|
170
170
|
email: string;
|
|
171
171
|
firstName: string;
|
|
172
172
|
lastName: string;
|
|
@@ -8,12 +8,12 @@ var RewardProvider;
|
|
|
8
8
|
RewardProvider["INTERNAL"] = "INTERNAL";
|
|
9
9
|
RewardProvider["REFERRAL_ROCK"] = "REFERRAL_ROCK";
|
|
10
10
|
RewardProvider["GROWSURF"] = "GROWSURF";
|
|
11
|
-
})(RewardProvider
|
|
11
|
+
})(RewardProvider || (exports.RewardProvider = RewardProvider = {}));
|
|
12
12
|
var RewardTransactionType;
|
|
13
13
|
(function (RewardTransactionType) {
|
|
14
14
|
RewardTransactionType["CREDIT"] = "CREDIT";
|
|
15
15
|
RewardTransactionType["DEBIT"] = "DEBIT";
|
|
16
|
-
})(RewardTransactionType
|
|
16
|
+
})(RewardTransactionType || (exports.RewardTransactionType = RewardTransactionType = {}));
|
|
17
17
|
var RewardCreditSource;
|
|
18
18
|
(function (RewardCreditSource) {
|
|
19
19
|
RewardCreditSource["REFERRER_REWARD"] = "REFERRER_REWARD";
|
|
@@ -22,7 +22,7 @@ var RewardCreditSource;
|
|
|
22
22
|
RewardCreditSource["REFUND"] = "REFUND";
|
|
23
23
|
RewardCreditSource["OTHER"] = "OTHER";
|
|
24
24
|
RewardCreditSource["REVENUE_SHARE"] = "REVENUE_SHARE";
|
|
25
|
-
})(RewardCreditSource
|
|
25
|
+
})(RewardCreditSource || (exports.RewardCreditSource = RewardCreditSource = {}));
|
|
26
26
|
var PaymentSource;
|
|
27
27
|
(function (PaymentSource) {
|
|
28
28
|
PaymentSource["Web"] = "Web";
|
|
@@ -30,7 +30,7 @@ var PaymentSource;
|
|
|
30
30
|
PaymentSource["Integrator"] = "Integrator";
|
|
31
31
|
PaymentSource["PaymentAddress"] = "PaymentAddress";
|
|
32
32
|
PaymentSource["Subscription"] = "Subscription";
|
|
33
|
-
})(PaymentSource
|
|
33
|
+
})(PaymentSource || (exports.PaymentSource = PaymentSource = {}));
|
|
34
34
|
class LiabilitiesServiceClient {
|
|
35
35
|
constructor() {
|
|
36
36
|
this.client = (0, serviceClient_1.createServiceClient)({
|