@blockscout/autoscout-types 1.4.3 → 1.5.0-alpha.0

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.
@@ -31,6 +31,7 @@ export declare enum DepositType {
31
31
  UNSPECIFIED_DEPOSIT_TYPE = "UNSPECIFIED_DEPOSIT_TYPE",
32
32
  DEPOSIT_TYPE_STRIPE = "DEPOSIT_TYPE_STRIPE",
33
33
  DEPOSIT_TYPE_COINBASE = "DEPOSIT_TYPE_COINBASE",
34
+ DEPOSIT_TYPE_DAIMO = "DEPOSIT_TYPE_DAIMO",
34
35
  UNRECOGNIZED = "UNRECOGNIZED"
35
36
  }
36
37
  export interface HealthStatus {
@@ -308,20 +309,19 @@ export interface DeleteCoinbaseDepositRequest {
308
309
  }
309
310
  export interface DeleteCoinbaseDepositResponse {
310
311
  }
311
- export interface PreviewStripeDepositRequest {
312
+ export interface CreateStripeDepositRequest {
312
313
  amount_cents: number;
313
314
  promocode?: string | undefined;
314
315
  }
315
- export interface PreviewStripeDepositResponse {
316
- top_up_amount: string;
317
- total_deposit_amount: string;
318
- promotion_effect?: PromotionEffect | undefined;
316
+ export interface CreateStripeDepositResponse {
317
+ id: string;
318
+ url: string;
319
319
  }
320
- export interface CreateStripeDepositRequest {
320
+ export interface CreateDaimoDepositRequest {
321
321
  amount_cents: number;
322
322
  promocode?: string | undefined;
323
323
  }
324
- export interface CreateStripeDepositResponse {
324
+ export interface CreateDaimoDepositResponse {
325
325
  id: string;
326
326
  url: string;
327
327
  }
@@ -333,6 +333,15 @@ export interface ListExternalDepositsResponse {
333
333
  items: Deposit[];
334
334
  pagination: PaginationResult | undefined;
335
335
  }
336
+ export interface PreviewDepositRequest {
337
+ amount_cents: number;
338
+ promocode?: string | undefined;
339
+ }
340
+ export interface PreviewDepositResponse {
341
+ top_up_amount: string;
342
+ total_deposit_amount: string;
343
+ promotion_effect?: PromotionEffect | undefined;
344
+ }
336
345
  export interface Autoscout {
337
346
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
338
347
  /** Creating blockscout instance with config */
@@ -373,10 +382,11 @@ export interface Autoscout {
373
382
  AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
374
383
  ActivatePromocode(request: ActivatePromocodeRequest): Promise<ActivatePromocodeResponse>;
375
384
  ListExternalDeposits(request: ListExternalDepositsRequest): Promise<ListExternalDepositsResponse>;
385
+ PreviewDeposit(request: PreviewDepositRequest): Promise<PreviewDepositResponse>;
376
386
  CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
377
387
  GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
378
388
  ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
379
389
  DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
380
- PreviewStripeDeposit(request: PreviewStripeDepositRequest): Promise<PreviewStripeDepositResponse>;
390
+ CreateDaimoDeposit(request: CreateDaimoDepositRequest): Promise<CreateDaimoDepositResponse>;
381
391
  CreateStripeDeposit(request: CreateStripeDepositRequest): Promise<CreateStripeDepositResponse>;
382
392
  }
@@ -41,5 +41,6 @@ var DepositType;
41
41
  DepositType["UNSPECIFIED_DEPOSIT_TYPE"] = "UNSPECIFIED_DEPOSIT_TYPE";
42
42
  DepositType["DEPOSIT_TYPE_STRIPE"] = "DEPOSIT_TYPE_STRIPE";
43
43
  DepositType["DEPOSIT_TYPE_COINBASE"] = "DEPOSIT_TYPE_COINBASE";
44
+ DepositType["DEPOSIT_TYPE_DAIMO"] = "DEPOSIT_TYPE_DAIMO";
44
45
  DepositType["UNRECOGNIZED"] = "UNRECOGNIZED";
45
46
  })(DepositType || (exports.DepositType = DepositType = {}));
@@ -42,6 +42,7 @@ export enum DepositType {
42
42
  UNSPECIFIED_DEPOSIT_TYPE = "UNSPECIFIED_DEPOSIT_TYPE",
43
43
  DEPOSIT_TYPE_STRIPE = "DEPOSIT_TYPE_STRIPE",
44
44
  DEPOSIT_TYPE_COINBASE = "DEPOSIT_TYPE_COINBASE",
45
+ DEPOSIT_TYPE_DAIMO = "DEPOSIT_TYPE_DAIMO",
45
46
  UNRECOGNIZED = "UNRECOGNIZED",
46
47
  }
47
48
 
@@ -375,23 +376,22 @@ export interface DeleteCoinbaseDepositRequest {
375
376
  export interface DeleteCoinbaseDepositResponse {
376
377
  }
377
378
 
378
- export interface PreviewStripeDepositRequest {
379
+ export interface CreateStripeDepositRequest {
379
380
  amount_cents: number;
380
381
  promocode?: string | undefined;
381
382
  }
382
383
 
383
- export interface PreviewStripeDepositResponse {
384
- top_up_amount: string;
385
- total_deposit_amount: string;
386
- promotion_effect?: PromotionEffect | undefined;
384
+ export interface CreateStripeDepositResponse {
385
+ id: string;
386
+ url: string;
387
387
  }
388
388
 
389
- export interface CreateStripeDepositRequest {
389
+ export interface CreateDaimoDepositRequest {
390
390
  amount_cents: number;
391
391
  promocode?: string | undefined;
392
392
  }
393
393
 
394
- export interface CreateStripeDepositResponse {
394
+ export interface CreateDaimoDepositResponse {
395
395
  id: string;
396
396
  url: string;
397
397
  }
@@ -406,6 +406,17 @@ export interface ListExternalDepositsResponse {
406
406
  pagination: PaginationResult | undefined;
407
407
  }
408
408
 
409
+ export interface PreviewDepositRequest {
410
+ amount_cents: number;
411
+ promocode?: string | undefined;
412
+ }
413
+
414
+ export interface PreviewDepositResponse {
415
+ top_up_amount: string;
416
+ total_deposit_amount: string;
417
+ promotion_effect?: PromotionEffect | undefined;
418
+ }
419
+
409
420
  export interface Autoscout {
410
421
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
411
422
  /** Creating blockscout instance with config */
@@ -446,10 +457,11 @@ export interface Autoscout {
446
457
  AcceptTermsOfService(request: AcceptTermsOfServiceRequest): Promise<TermsOfService>;
447
458
  ActivatePromocode(request: ActivatePromocodeRequest): Promise<ActivatePromocodeResponse>;
448
459
  ListExternalDeposits(request: ListExternalDepositsRequest): Promise<ListExternalDepositsResponse>;
460
+ PreviewDeposit(request: PreviewDepositRequest): Promise<PreviewDepositResponse>;
449
461
  CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
450
462
  GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
451
463
  ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
452
464
  DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
453
- PreviewStripeDeposit(request: PreviewStripeDepositRequest): Promise<PreviewStripeDepositResponse>;
465
+ CreateDaimoDeposit(request: CreateDaimoDepositRequest): Promise<CreateDaimoDepositResponse>;
454
466
  CreateStripeDeposit(request: CreateStripeDepositRequest): Promise<CreateStripeDepositResponse>;
455
467
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "1.4.3",
3
+ "version": "1.5.0-alpha.0",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",