MCPcopy Create free account
hub / github.com/OneSignal/onesignal-node-api / Middleware

Interface Middleware

middleware.ts:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 *
9 */
10export interface Middleware {
11 /**
12 * Modifies the request before the request is sent.
13 *
14 * @param context RequestContext of a request which is about to be sent to the server
15 * @returns an observable of the updated request context
16 *
17 */
18 pre(context: RequestContext): Observable<RequestContext>;
19 /**
20 * Modifies the returned response before it is deserialized.
21 *
22 * @param context ResponseContext of a sent request
23 * @returns an observable of the modified response context
24 */
25 post(context: ResponseContext): Observable<ResponseContext>;
26}
27
28export class PromiseMiddlewareWrapper implements Middleware {
29

Callers 16

preMethod · 0.65
cancelNotificationMethod · 0.65
copyTemplateToAppMethod · 0.65
createAliasMethod · 0.65
createApiKeyMethod · 0.65
createAppMethod · 0.65
createCustomEventsMethod · 0.65
postMethod · 0.65
cancelNotificationMethod · 0.65
copyTemplateToAppMethod · 0.65
createAliasMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected