@spritz-finance/service-client 0.2.68 → 0.2.69

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.d.ts CHANGED
@@ -9,6 +9,7 @@ interface GraphClientConfig {
9
9
  payableAccountsServiceEndpoint: string;
10
10
  growthServiceEndpoint: string;
11
11
  exchangeRatesServiceEndpoint: string;
12
+ web3ServiceEndpoint: string;
12
13
  }
13
14
  export declare const config: GraphClientConfig;
14
15
  export {};
package/lib/config.js CHANGED
@@ -15,6 +15,7 @@ const envConfigs = {
15
15
  payableAccountsServiceEndpoint: 'https://api-dev.spritz.finance/payable-accounts',
16
16
  growthServiceEndpoint: 'https://api-dev.spritz.finance/growth',
17
17
  exchangeRatesServiceEndpoint: 'https://api-dev.spritz.finance/exchange-rates',
18
+ web3ServiceEndpoint: 'https://api-dev.spritz.finance/web3',
18
19
  },
19
20
  test: {
20
21
  env: 'staging',
@@ -27,6 +28,7 @@ const envConfigs = {
27
28
  payableAccountsServiceEndpoint: 'https://api-staging.spritz.finance/payable-accounts',
28
29
  growthServiceEndpoint: 'https://api-staging.spritz.finance/growth',
29
30
  exchangeRatesServiceEndpoint: 'https://api-staging.spritz.finance/exchange-rates',
31
+ web3ServiceEndpoint: 'https://api-staging.spritz.finance/web3',
30
32
  },
31
33
  staging: {
32
34
  authEndpoint: 'https://auth-staging.spritz.finance/oauth2/token',
@@ -38,6 +40,7 @@ const envConfigs = {
38
40
  payableAccountsServiceEndpoint: 'https://api-staging.spritz.finance/payable-accounts',
39
41
  growthServiceEndpoint: 'https://api-staging.spritz.finance/growth',
40
42
  exchangeRatesServiceEndpoint: 'https://api-staging.spritz.finance/exchange-rates',
43
+ web3ServiceEndpoint: 'https://api-staging.spritz.finance/web3',
41
44
  },
42
45
  production: {
43
46
  authEndpoint: 'https://auth.spritz.finance/oauth2/token',
@@ -49,6 +52,7 @@ const envConfigs = {
49
52
  payableAccountsServiceEndpoint: 'https://api.spritz.finance/payable-accounts',
50
53
  growthServiceEndpoint: 'https://api.spritz.finance/growth',
51
54
  exchangeRatesServiceEndpoint: 'https://api.spritz.finance/exchange-rates',
55
+ web3ServiceEndpoint: 'https://api.spritz.finance/web3',
52
56
  },
53
57
  };
54
58
  exports.config = (0, config_1.setupEnvConfig)(envConfigs);
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './growthServiceClient';
8
8
  export * from './liabilitiesServiceClient';
9
9
  export * from './payableAccountsServiceClient';
10
10
  export * from './exchangeRatesServiceClient';
11
+ export * from './web3ServiceClient';
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -20,3 +24,4 @@ __exportStar(require("./growthServiceClient"), exports);
20
24
  __exportStar(require("./liabilitiesServiceClient"), exports);
21
25
  __exportStar(require("./payableAccountsServiceClient"), exports);
22
26
  __exportStar(require("./exchangeRatesServiceClient"), exports);
27
+ __exportStar(require("./web3ServiceClient"), exports);
@@ -18,7 +18,7 @@ export declare enum RewardCreditSource {
18
18
  OTHER = "OTHER",
19
19
  REVENUE_SHARE = "REVENUE_SHARE"
20
20
  }
21
- declare type Payment = {
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 declare type CheckbookCardResponse = {
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
- declare type TEntityTypes = 'individual' | 'c_corporation' | 's_corporation' | 'llc' | 'partnership' | 'sole_proprietorship' | 'receive_only';
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
- declare type CardTransaction = {
161
+ type CardTransaction = {
162
162
  amount: number;
163
163
  timestamp: Date;
164
164
  description: string;
165
165
  };
166
- export declare type CreateEntityParams = Pick<IEntity, 'type' | 'individual' | 'corporation' | 'address'> & {
166
+ export type CreateEntityParams = Pick<IEntity, 'type' | 'individual' | 'corporation' | 'address'> & {
167
167
  userId: string;
168
168
  };
169
- export declare type CreateCheckbookUserParams = {
169
+ export type CreateCheckbookUserParams = {
170
170
  email: string;
171
171
  firstName: string;
172
172
  lastName: string;
@@ -189,12 +189,12 @@ export declare enum PaymentSource {
189
189
  PaymentAddress = "PaymentAddress",
190
190
  Subscription = "Subscription"
191
191
  }
192
- declare type GetUsersTransactionVolumeBody = {
192
+ type GetUsersTransactionVolumeBody = {
193
193
  userIds: string[];
194
194
  monthsBack?: number;
195
195
  paymentDateThreshold?: string;
196
196
  };
197
- declare type GetUserRewardFeeAmountBody = {
197
+ type GetUserRewardFeeAmountBody = {
198
198
  userId: string;
199
199
  monthsBack?: number;
200
200
  excludeDaysSinceUserCreated?: number;
@@ -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 = exports.RewardProvider || (exports.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 = exports.RewardTransactionType || (exports.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 = exports.RewardCreditSource || (exports.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 = exports.PaymentSource || (exports.PaymentSource = {}));
33
+ })(PaymentSource || (exports.PaymentSource = PaymentSource = {}));
34
34
  class LiabilitiesServiceClient {
35
35
  constructor() {
36
36
  this.client = (0, serviceClient_1.createServiceClient)({