@guardian/bridget 0.0.0-2022-10-27-SNAPSHOT
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/Acquisitions.d.ts +138 -0
- package/Acquisitions.js +629 -0
- package/AdSlot.d.ts +24 -0
- package/AdSlot.js +160 -0
- package/Analytics.d.ts +72 -0
- package/Analytics.js +296 -0
- package/CommentResponse.d.ts +26 -0
- package/CommentResponse.js +167 -0
- package/Commercial.d.ts +108 -0
- package/Commercial.js +513 -0
- package/Discussion.d.ts +219 -0
- package/Discussion.js +1207 -0
- package/Environment.d.ts +69 -0
- package/Environment.js +256 -0
- package/Epic.d.ts +26 -0
- package/Epic.js +167 -0
- package/Gallery.d.ts +79 -0
- package/Gallery.js +346 -0
- package/Image.d.ts +29 -0
- package/Image.js +187 -0
- package/MaybeEpic.d.ts +18 -0
- package/MaybeEpic.js +85 -0
- package/Metric.d.ts +44 -0
- package/Metric.js +193 -0
- package/MetricFont.d.ts +23 -0
- package/MetricFont.js +135 -0
- package/MetricPaint.d.ts +17 -0
- package/MetricPaint.js +95 -0
- package/Metrics.d.ts +73 -0
- package/Metrics.js +294 -0
- package/Navigation.d.ts +101 -0
- package/Navigation.js +410 -0
- package/Notifications.d.ts +143 -0
- package/Notifications.js +729 -0
- package/PurchaseScreenReason.d.ts +4 -0
- package/PurchaseScreenReason.js +13 -0
- package/Rect.d.ts +26 -0
- package/Rect.js +173 -0
- package/Topic.d.ts +23 -0
- package/Topic.js +147 -0
- package/User.d.ts +168 -0
- package/User.js +868 -0
- package/VideoSlot.d.ts +27 -0
- package/VideoSlot.js +168 -0
- package/Videos.d.ts +108 -0
- package/Videos.js +513 -0
- package/index.d.ts +34 -0
- package/index.js +52 -0
- package/package.json +13 -0
- package/tsconfig.json +66 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as thrift from "@creditkarma/thrift-server-core";
|
|
3
|
+
import * as PurchaseScreenReason from "./PurchaseScreenReason";
|
|
4
|
+
import * as MaybeEpic from "./MaybeEpic";
|
|
5
|
+
export declare const serviceName: string;
|
|
6
|
+
export declare const annotations: thrift.IThriftAnnotations;
|
|
7
|
+
export declare const methodAnnotations: thrift.IMethodAnnotations;
|
|
8
|
+
export declare const methodNames: Array<string>;
|
|
9
|
+
export declare const methodParameters: {
|
|
10
|
+
[methodName: string]: number;
|
|
11
|
+
};
|
|
12
|
+
export interface ILaunchPurchaseScreen__Args {
|
|
13
|
+
reason: PurchaseScreenReason.PurchaseScreenReason;
|
|
14
|
+
}
|
|
15
|
+
export interface ILaunchPurchaseScreen__ArgsArgs {
|
|
16
|
+
reason: PurchaseScreenReason.PurchaseScreenReason;
|
|
17
|
+
}
|
|
18
|
+
export declare const LaunchPurchaseScreen__ArgsCodec: thrift.IStructCodec<ILaunchPurchaseScreen__ArgsArgs, ILaunchPurchaseScreen__Args>;
|
|
19
|
+
export declare class LaunchPurchaseScreen__Args extends thrift.StructLike implements ILaunchPurchaseScreen__Args {
|
|
20
|
+
reason: PurchaseScreenReason.PurchaseScreenReason;
|
|
21
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
22
|
+
readonly _fieldAnnotations: thrift.IFieldAnnotations;
|
|
23
|
+
constructor(args: ILaunchPurchaseScreen__ArgsArgs);
|
|
24
|
+
static read(input: thrift.TProtocol): LaunchPurchaseScreen__Args;
|
|
25
|
+
static write(args: ILaunchPurchaseScreen__ArgsArgs, output: thrift.TProtocol): void;
|
|
26
|
+
write(output: thrift.TProtocol): void;
|
|
27
|
+
}
|
|
28
|
+
export interface IGetEpics__Args {
|
|
29
|
+
}
|
|
30
|
+
export interface IGetEpics__ArgsArgs {
|
|
31
|
+
}
|
|
32
|
+
export declare const GetEpics__ArgsCodec: thrift.IStructCodec<IGetEpics__ArgsArgs, IGetEpics__Args>;
|
|
33
|
+
export declare class GetEpics__Args extends thrift.StructLike implements IGetEpics__Args {
|
|
34
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
35
|
+
readonly _fieldAnnotations: thrift.IFieldAnnotations;
|
|
36
|
+
constructor(args?: IGetEpics__ArgsArgs);
|
|
37
|
+
static read(input: thrift.TProtocol): GetEpics__Args;
|
|
38
|
+
static write(args: IGetEpics__ArgsArgs, output: thrift.TProtocol): void;
|
|
39
|
+
write(output: thrift.TProtocol): void;
|
|
40
|
+
}
|
|
41
|
+
export interface IEpicSeen__Args {
|
|
42
|
+
}
|
|
43
|
+
export interface IEpicSeen__ArgsArgs {
|
|
44
|
+
}
|
|
45
|
+
export declare const EpicSeen__ArgsCodec: thrift.IStructCodec<IEpicSeen__ArgsArgs, IEpicSeen__Args>;
|
|
46
|
+
export declare class EpicSeen__Args extends thrift.StructLike implements IEpicSeen__Args {
|
|
47
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
48
|
+
readonly _fieldAnnotations: thrift.IFieldAnnotations;
|
|
49
|
+
constructor(args?: IEpicSeen__ArgsArgs);
|
|
50
|
+
static read(input: thrift.TProtocol): EpicSeen__Args;
|
|
51
|
+
static write(args: IEpicSeen__ArgsArgs, output: thrift.TProtocol): void;
|
|
52
|
+
write(output: thrift.TProtocol): void;
|
|
53
|
+
}
|
|
54
|
+
export interface ILaunchPurchaseScreen__Result {
|
|
55
|
+
success?: void;
|
|
56
|
+
}
|
|
57
|
+
export interface ILaunchPurchaseScreen__ResultArgs {
|
|
58
|
+
success?: void;
|
|
59
|
+
}
|
|
60
|
+
export declare const LaunchPurchaseScreen__ResultCodec: thrift.IStructCodec<ILaunchPurchaseScreen__ResultArgs, ILaunchPurchaseScreen__Result>;
|
|
61
|
+
export declare class LaunchPurchaseScreen__Result extends thrift.StructLike implements ILaunchPurchaseScreen__Result {
|
|
62
|
+
success?: void;
|
|
63
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
64
|
+
readonly _fieldAnnotations: thrift.IFieldAnnotations;
|
|
65
|
+
constructor(args?: ILaunchPurchaseScreen__ResultArgs);
|
|
66
|
+
static read(input: thrift.TProtocol): LaunchPurchaseScreen__Result;
|
|
67
|
+
static write(args: ILaunchPurchaseScreen__ResultArgs, output: thrift.TProtocol): void;
|
|
68
|
+
write(output: thrift.TProtocol): void;
|
|
69
|
+
}
|
|
70
|
+
export interface IGetEpics__Result {
|
|
71
|
+
success?: MaybeEpic.IMaybeEpic;
|
|
72
|
+
}
|
|
73
|
+
export interface IGetEpics__ResultArgs {
|
|
74
|
+
success?: MaybeEpic.IMaybeEpicArgs;
|
|
75
|
+
}
|
|
76
|
+
export declare const GetEpics__ResultCodec: thrift.IStructCodec<IGetEpics__ResultArgs, IGetEpics__Result>;
|
|
77
|
+
export declare class GetEpics__Result extends thrift.StructLike implements IGetEpics__Result {
|
|
78
|
+
success?: MaybeEpic.IMaybeEpic;
|
|
79
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
80
|
+
readonly _fieldAnnotations: thrift.IFieldAnnotations;
|
|
81
|
+
constructor(args?: IGetEpics__ResultArgs);
|
|
82
|
+
static read(input: thrift.TProtocol): GetEpics__Result;
|
|
83
|
+
static write(args: IGetEpics__ResultArgs, output: thrift.TProtocol): void;
|
|
84
|
+
write(output: thrift.TProtocol): void;
|
|
85
|
+
}
|
|
86
|
+
export interface IEpicSeen__Result {
|
|
87
|
+
success?: void;
|
|
88
|
+
}
|
|
89
|
+
export interface IEpicSeen__ResultArgs {
|
|
90
|
+
success?: void;
|
|
91
|
+
}
|
|
92
|
+
export declare const EpicSeen__ResultCodec: thrift.IStructCodec<IEpicSeen__ResultArgs, IEpicSeen__Result>;
|
|
93
|
+
export declare class EpicSeen__Result extends thrift.StructLike implements IEpicSeen__Result {
|
|
94
|
+
success?: void;
|
|
95
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
96
|
+
readonly _fieldAnnotations: thrift.IFieldAnnotations;
|
|
97
|
+
constructor(args?: IEpicSeen__ResultArgs);
|
|
98
|
+
static read(input: thrift.TProtocol): EpicSeen__Result;
|
|
99
|
+
static write(args: IEpicSeen__ResultArgs, output: thrift.TProtocol): void;
|
|
100
|
+
write(output: thrift.TProtocol): void;
|
|
101
|
+
}
|
|
102
|
+
export declare class Client<Context = any> extends thrift.ThriftClient<Context> {
|
|
103
|
+
static readonly serviceName: string;
|
|
104
|
+
static readonly annotations: thrift.IThriftAnnotations;
|
|
105
|
+
static readonly methodAnnotations: thrift.IMethodAnnotations;
|
|
106
|
+
static readonly methodNames: Array<string>;
|
|
107
|
+
readonly _serviceName: string;
|
|
108
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
109
|
+
readonly _methodAnnotations: thrift.IMethodAnnotations;
|
|
110
|
+
readonly _methodNames: Array<string>;
|
|
111
|
+
readonly _methodParameters?: {
|
|
112
|
+
[methodName: string]: number;
|
|
113
|
+
};
|
|
114
|
+
launchPurchaseScreen(reason: PurchaseScreenReason.PurchaseScreenReason, context?: Context): Promise<void>;
|
|
115
|
+
getEpics(context?: Context): Promise<MaybeEpic.IMaybeEpic>;
|
|
116
|
+
epicSeen(context?: Context): Promise<void>;
|
|
117
|
+
}
|
|
118
|
+
export interface IHandler<Context = any> {
|
|
119
|
+
launchPurchaseScreen(reason: PurchaseScreenReason.PurchaseScreenReason, context?: Context): void | Promise<void>;
|
|
120
|
+
getEpics(context?: Context): MaybeEpic.IMaybeEpicArgs | Promise<MaybeEpic.IMaybeEpicArgs>;
|
|
121
|
+
epicSeen(context?: Context): void | Promise<void>;
|
|
122
|
+
}
|
|
123
|
+
export declare class Processor<Context = any> extends thrift.ThriftProcessor<Context, IHandler<Context>> {
|
|
124
|
+
protected readonly _handler: IHandler<Context>;
|
|
125
|
+
static readonly serviceName: string;
|
|
126
|
+
static readonly annotations: thrift.IThriftAnnotations;
|
|
127
|
+
static readonly methodAnnotations: thrift.IMethodAnnotations;
|
|
128
|
+
static readonly methodNames: Array<string>;
|
|
129
|
+
readonly _serviceName: string;
|
|
130
|
+
readonly _annotations: thrift.IThriftAnnotations;
|
|
131
|
+
readonly _methodAnnotations: thrift.IMethodAnnotations;
|
|
132
|
+
readonly _methodNames: Array<string>;
|
|
133
|
+
constructor(handler: IHandler<Context>);
|
|
134
|
+
process(input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
|
|
135
|
+
process_launchPurchaseScreen(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
|
|
136
|
+
process_getEpics(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
|
|
137
|
+
process_epicSeen(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
|
|
138
|
+
}
|