@metamask-previews/ramps-controller 29.0.0-preview-77efa7863 → 29.0.0-preview-0439f4dd7

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/CHANGELOG.md CHANGED
@@ -7,33 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ### Added
11
-
12
- - Add `RampsServiceInvalidateQueriesAction`, `RampsServiceCacheUpdatedEvent` and `RampsServiceGranularCacheUpdatedEvent`, also included in `RampsServiceActions` and `RampsServiceEvents` ([#11214](https://github.com/MetaMask/core/pull/11214))
13
- - Add `NeoBankServiceInvalidateQueriesAction`, `NeoBankServiceCacheUpdatedEvent` and `NeoBankServiceGranularCacheUpdatedEvent`, also included in `NeoBankServiceActions` and `NeoBankServiceEvents` ([#10882](https://github.com/MetaMask/core/pull/10882))
14
-
15
- ### Changed
16
-
17
- - **BREAKING:** `RampsService` now extends `BaseDataService` from `@metamask/base-data-service` ([#11214](https://github.com/MetaMask/core/pull/11214))
18
- - This is breaking because `RampsService` no longer has public `onRetry`, `onBreak` and `onDegraded` methods (see Removed), and `RampsServiceMessenger` has new required actions and events. Pass `policyOptions` to the constructor to configure retries and the circuit breaker.
19
- - `RampsServiceMessenger` now includes the `RampsService:invalidateQueries` action and the `RampsService:cacheUpdated` events. Messengers built from `RampsServiceActions` and `RampsServiceEvents` pick these up automatically.
20
- - **BREAKING:** `NeoBankService` now extends `BaseDataService` from `@metamask/base-data-service`, so reads and writes share one circuit breaker (previously each had its own) and repeated read failures can now block writes ([#10882](https://github.com/MetaMask/core/pull/10882))
21
- - `NeoBankServiceMessenger` now includes the `NeoBankService:invalidateQueries` action and `NeoBankService:cacheUpdated` events. Messengers built from `NeoBankServiceActions` / `NeoBankServiceEvents` pick these up automatically.
22
- - Concurrent identical `RampsService` calls are now deduplicated: while one request is in flight, calls with the same method and arguments reuse it instead of sending another. Sequential calls still always hit the API ([#11214](https://github.com/MetaMask/core/pull/11214))
23
- - Responses that do not match the expected shape now throw `Query function for "RampsService:<method>" returned an unexpected response: ...`, instead of `Malformed response received from <api name>` ([#11214](https://github.com/MetaMask/core/pull/11214))
24
- - `NeoBankService.getAutorampQuote`, `getAutorampQuoteForAutoramp`, `getCustomerByExternalId`, `registerPixAddress` and `attachAutorampQuote` now return `Promise<Json>` instead of `Promise<unknown>` ([#10882](https://github.com/MetaMask/core/pull/10882))
25
- - Concurrent identical NeoBank reads (`getAutoramp`, `getAutoramps`, `getPixDepositInstructions`, `getDepositInstructions`, `getMicrodeposits`, `getCustomerAbilities`, `listAutorampTransactions`, `getAutorampQuote`, `getAutorampQuoteForAutoramp`, `getCustomerByExternalId`) are now deduplicated: while one request is in flight, identical calls reuse it instead of sending another. Sequential reads still always hit the API ([#10882](https://github.com/MetaMask/core/pull/10882))
26
- - `getAutoramps` fetches each cursor page as its own query, so a failed page is retried on its own and concurrent calls with the same `customerId` reuse each in flight page request.
27
- - Malformed NeoBank responses now throw `Query function for "NeoBankService:<method>" returned an unexpected response: …` (or `Mutation function for "NeoBankService:createAutoramp" …`) instead of `Malformed response received from neo-bank …` ([#10882](https://github.com/MetaMask/core/pull/10882))
28
- - This applies to `getAutoramp`, `getAutoramps`, `getPixDepositInstructions`, `getDepositInstructions`, `getMicrodeposits`, `getCustomerAbilities`, `listAutorampTransactions` and `createAutoramp`.
29
- - Add dependency `@metamask/base-data-service` ([#10882](https://github.com/MetaMask/core/pull/10882))
30
- - Add dependency `@metamask/superstruct` ([#10882](https://github.com/MetaMask/core/pull/10882))
31
-
32
- ### Removed
33
-
34
- - **BREAKING:** Remove `onRetry`, `onBreak` and `onDegraded` from `RampsService` ([#11214](https://github.com/MetaMask/core/pull/11214))
35
- - **BREAKING:** Remove `onRetry`, `onBreak` and `onDegraded` from `NeoBankService` ([#10882](https://github.com/MetaMask/core/pull/10882))
36
-
37
10
  ## [29.0.0]
38
11
 
39
12
  ### Added
@@ -1,8 +1,6 @@
1
- import { BaseDataService } from '@metamask/base-data-service';
2
- import type { CreateServicePolicyOptions, DataServiceCacheUpdatedEvent, DataServiceGranularCacheUpdatedEvent, DataServiceInvalidateQueriesAction } from '@metamask/base-data-service';
1
+ import type { CreateServicePolicyOptions, ServicePolicy } from '@metamask/controller-utils';
3
2
  import type { Messenger } from '@metamask/messenger';
4
3
  import type { AuthenticationController } from '@metamask/profile-sync-controller';
5
- import type { Json } from '@metamask/utils';
6
4
  import type { AutorampDepositInstructions, AutorampRemoteSnapshot, AutorampTransactionSummary, PixDepositInstructions, UsBankDepositInstructions } from './autoramp-types.js';
7
5
  import type { NeoBankServiceMethodActions } from './NeoBankService-method-action-types.js';
8
6
  import { RampsEnvironment } from './RampsService.js';
@@ -124,27 +122,12 @@ export type RegisterSelfHostedWalletParams = {
124
122
  */
125
123
  idempotencyKey?: string;
126
124
  };
127
- /**
128
- * Invalidates cached queries for {@link NeoBankService}.
129
- */
130
- export type NeoBankServiceInvalidateQueriesAction = DataServiceInvalidateQueriesAction<typeof serviceName>;
131
125
  /**
132
126
  * Actions that {@link NeoBankService} exposes to other consumers.
133
127
  */
134
- export type NeoBankServiceActions = NeoBankServiceMethodActions | NeoBankServiceInvalidateQueriesAction;
128
+ export type NeoBankServiceActions = NeoBankServiceMethodActions;
135
129
  type AllowedActions = AuthenticationController.AuthenticationControllerGetBearerTokenAction | AuthenticationController.AuthenticationControllerGetSessionProfileAction;
136
- /**
137
- * Published when {@link NeoBankService}'s cache is updated.
138
- */
139
- export type NeoBankServiceCacheUpdatedEvent = DataServiceCacheUpdatedEvent<typeof serviceName>;
140
- /**
141
- * Published when a key within {@link NeoBankService}'s cache is updated.
142
- */
143
- export type NeoBankServiceGranularCacheUpdatedEvent = DataServiceGranularCacheUpdatedEvent<typeof serviceName>;
144
- /**
145
- * Events that {@link NeoBankService} exposes to other consumers.
146
- */
147
- export type NeoBankServiceEvents = NeoBankServiceCacheUpdatedEvent | NeoBankServiceGranularCacheUpdatedEvent;
130
+ export type NeoBankServiceEvents = never;
148
131
  type AllowedEvents = never;
149
132
  /**
150
133
  * The messenger restricted to actions and events accessed by
@@ -182,8 +165,9 @@ export declare function extractUsBankDepositInstructions(depositRails: unknown):
182
165
  *
183
166
  * Paths use the neobank-proxy `/neobank` prefix on the on-ramp.api host.
184
167
  */
185
- export declare class NeoBankService extends BaseDataService<typeof serviceName, NeoBankServiceMessenger> {
168
+ export declare class NeoBankService {
186
169
  #private;
170
+ readonly name: typeof serviceName;
187
171
  constructor({ messenger, environment, context, fetch: fetchFunction, policyOptions, baseUrlOverride, }: {
188
172
  messenger: NeoBankServiceMessenger;
189
173
  environment?: RampsEnvironment;
@@ -263,14 +247,14 @@ export declare class NeoBankService extends BaseDataService<typeof serviceName,
263
247
  * @param options - Optional idempotency key.
264
248
  * @returns Parsed proxy JSON response.
265
249
  */
266
- registerPixAddress(body: Record<string, unknown>, options?: NeoBankRequestOptions): Promise<Json>;
250
+ registerPixAddress(body: Record<string, unknown>, options?: NeoBankRequestOptions): Promise<unknown>;
267
251
  /**
268
252
  * Fetches an autoramp quote via neobank-proxy `GET /neobank/autoramps/quote`.
269
253
  *
270
254
  * @param query - Quote query params (forwarded as-is).
271
255
  * @returns Parsed proxy JSON response.
272
256
  */
273
- getAutorampQuote(query?: NeoBankQueryParams): Promise<Json>;
257
+ getAutorampQuote(query?: NeoBankQueryParams): Promise<unknown>;
274
258
  /**
275
259
  * Creates an autoramp from a signed quote via neobank-proxy
276
260
  * `POST /neobank/autoramps` (MoonPay `POST /api/autoramps`).
@@ -288,7 +272,7 @@ export declare class NeoBankService extends BaseDataService<typeof serviceName,
288
272
  * @param query - Quote query params (forwarded as-is).
289
273
  * @returns Parsed proxy JSON response.
290
274
  */
291
- getAutorampQuoteForAutoramp(autorampId: string, query?: NeoBankQueryParams): Promise<Json>;
275
+ getAutorampQuoteForAutoramp(autorampId: string, query?: NeoBankQueryParams): Promise<unknown>;
292
276
  /**
293
277
  * Attaches a signed quote to an autoramp via neobank-proxy
294
278
  * `POST /neobank/autoramps/{autoramp_id}/quotes`.
@@ -298,7 +282,7 @@ export declare class NeoBankService extends BaseDataService<typeof serviceName,
298
282
  * @param options - Optional idempotency key.
299
283
  * @returns Parsed proxy JSON response.
300
284
  */
301
- attachAutorampQuote(autorampId: string, body: Record<string, unknown>, options?: NeoBankRequestOptions): Promise<Json>;
285
+ attachAutorampQuote(autorampId: string, body: Record<string, unknown>, options?: NeoBankRequestOptions): Promise<unknown>;
302
286
  /**
303
287
  * Fetches a customer by partner external id via neobank-proxy
304
288
  * `GET /neobank/customers/{external_id}/external`.
@@ -306,7 +290,7 @@ export declare class NeoBankService extends BaseDataService<typeof serviceName,
306
290
  * @param externalId - Partner-assigned external customer id.
307
291
  * @returns Parsed proxy JSON response.
308
292
  */
309
- getCustomerByExternalId(externalId: string): Promise<Json>;
293
+ getCustomerByExternalId(externalId: string): Promise<unknown>;
310
294
  /**
311
295
  * Resolves Iron's internal customer id via neobank-proxy customer lookup,
312
296
  * using the MetaMask canonical profile id as the partner `external_id`.
@@ -361,6 +345,9 @@ export declare class NeoBankService extends BaseDataService<typeof serviceName,
361
345
  * @returns Registered wallet record.
362
346
  */
363
347
  registerSelfHostedWallet(params: RegisterSelfHostedWalletParams): Promise<RegistrationOutcome>;
348
+ onRetry(listener: Parameters<ServicePolicy['onRetry']>[0]): ReturnType<ServicePolicy['onRetry']>;
349
+ onBreak(listener: Parameters<ServicePolicy['onBreak']>[0]): ReturnType<ServicePolicy['onBreak']>;
350
+ onDegraded(listener: Parameters<ServicePolicy['onDegraded']>[0]): ReturnType<ServicePolicy['onDegraded']>;
364
351
  }
365
352
  export {};
366
353
  //# sourceMappingURL=NeoBankService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeoBankService.d.ts","sourceRoot":"","sources":["../src/NeoBankService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EACV,0BAA0B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