@guardian/bridget 8.11.0 → 8.13.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.
@@ -0,0 +1,190 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import * as thrift from "@creditkarma/thrift-server-core";
4
+ export declare const serviceName: string;
5
+ export declare const annotations: thrift.IThriftAnnotations;
6
+ export declare const methodAnnotations: thrift.IMethodAnnotations;
7
+ export declare const methodNames: Array<string>;
8
+ export declare const methodParameters: {
9
+ [methodName: string]: number;
10
+ };
11
+ export interface IIsAvailable__Args {
12
+ activityType: string;
13
+ activityId: string;
14
+ }
15
+ export interface IIsAvailable__ArgsArgs {
16
+ activityType: string;
17
+ activityId: string;
18
+ }
19
+ export declare const IsAvailable__ArgsCodec: thrift.IStructCodec<IIsAvailable__ArgsArgs, IIsAvailable__Args>;
20
+ export declare class IsAvailable__Args extends thrift.StructLike implements IIsAvailable__Args {
21
+ activityType: string;
22
+ activityId: string;
23
+ readonly _annotations: thrift.IThriftAnnotations;
24
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
25
+ constructor(args: IIsAvailable__ArgsArgs);
26
+ static read(input: thrift.TProtocol): IsAvailable__Args;
27
+ static write(args: IIsAvailable__ArgsArgs, output: thrift.TProtocol): void;
28
+ write(output: thrift.TProtocol): void;
29
+ }
30
+ export interface IFollow__Args {
31
+ activityType: string;
32
+ activityId: string;
33
+ }
34
+ export interface IFollow__ArgsArgs {
35
+ activityType: string;
36
+ activityId: string;
37
+ }
38
+ export declare const Follow__ArgsCodec: thrift.IStructCodec<IFollow__ArgsArgs, IFollow__Args>;
39
+ export declare class Follow__Args extends thrift.StructLike implements IFollow__Args {
40
+ activityType: string;
41
+ activityId: string;
42
+ readonly _annotations: thrift.IThriftAnnotations;
43
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
44
+ constructor(args: IFollow__ArgsArgs);
45
+ static read(input: thrift.TProtocol): Follow__Args;
46
+ static write(args: IFollow__ArgsArgs, output: thrift.TProtocol): void;
47
+ write(output: thrift.TProtocol): void;
48
+ }
49
+ export interface IUnfollow__Args {
50
+ activityType: string;
51
+ activityId: string;
52
+ }
53
+ export interface IUnfollow__ArgsArgs {
54
+ activityType: string;
55
+ activityId: string;
56
+ }
57
+ export declare const Unfollow__ArgsCodec: thrift.IStructCodec<IUnfollow__ArgsArgs, IUnfollow__Args>;
58
+ export declare class Unfollow__Args extends thrift.StructLike implements IUnfollow__Args {
59
+ activityType: string;
60
+ activityId: string;
61
+ readonly _annotations: thrift.IThriftAnnotations;
62
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
63
+ constructor(args: IUnfollow__ArgsArgs);
64
+ static read(input: thrift.TProtocol): Unfollow__Args;
65
+ static write(args: IUnfollow__ArgsArgs, output: thrift.TProtocol): void;
66
+ write(output: thrift.TProtocol): void;
67
+ }
68
+ export interface IIsFollowing__Args {
69
+ activityType: string;
70
+ activityId: string;
71
+ }
72
+ export interface IIsFollowing__ArgsArgs {
73
+ activityType: string;
74
+ activityId: string;
75
+ }
76
+ export declare const IsFollowing__ArgsCodec: thrift.IStructCodec<IIsFollowing__ArgsArgs, IIsFollowing__Args>;
77
+ export declare class IsFollowing__Args extends thrift.StructLike implements IIsFollowing__Args {
78
+ activityType: string;
79
+ activityId: string;
80
+ readonly _annotations: thrift.IThriftAnnotations;
81
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
82
+ constructor(args: IIsFollowing__ArgsArgs);
83
+ static read(input: thrift.TProtocol): IsFollowing__Args;
84
+ static write(args: IIsFollowing__ArgsArgs, output: thrift.TProtocol): void;
85
+ write(output: thrift.TProtocol): void;
86
+ }
87
+ export interface IIsAvailable__Result {
88
+ success?: boolean;
89
+ }
90
+ export interface IIsAvailable__ResultArgs {
91
+ success?: boolean;
92
+ }
93
+ export declare const IsAvailable__ResultCodec: thrift.IStructCodec<IIsAvailable__ResultArgs, IIsAvailable__Result>;
94
+ export declare class IsAvailable__Result extends thrift.StructLike implements IIsAvailable__Result {
95
+ success?: boolean;
96
+ readonly _annotations: thrift.IThriftAnnotations;
97
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
98
+ constructor(args?: IIsAvailable__ResultArgs);
99
+ static read(input: thrift.TProtocol): IsAvailable__Result;
100
+ static write(args: IIsAvailable__ResultArgs, output: thrift.TProtocol): void;
101
+ write(output: thrift.TProtocol): void;
102
+ }
103
+ export interface IFollow__Result {
104
+ success?: boolean;
105
+ }
106
+ export interface IFollow__ResultArgs {
107
+ success?: boolean;
108
+ }
109
+ export declare const Follow__ResultCodec: thrift.IStructCodec<IFollow__ResultArgs, IFollow__Result>;
110
+ export declare class Follow__Result extends thrift.StructLike implements IFollow__Result {
111
+ success?: boolean;
112
+ readonly _annotations: thrift.IThriftAnnotations;
113
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
114
+ constructor(args?: IFollow__ResultArgs);
115
+ static read(input: thrift.TProtocol): Follow__Result;
116
+ static write(args: IFollow__ResultArgs, output: thrift.TProtocol): void;
117
+ write(output: thrift.TProtocol): void;
118
+ }
119
+ export interface IUnfollow__Result {
120
+ success?: boolean;
121
+ }
122
+ export interface IUnfollow__ResultArgs {
123
+ success?: boolean;
124
+ }
125
+ export declare const Unfollow__ResultCodec: thrift.IStructCodec<IUnfollow__ResultArgs, IUnfollow__Result>;
126
+ export declare class Unfollow__Result extends thrift.StructLike implements IUnfollow__Result {
127
+ success?: boolean;
128
+ readonly _annotations: thrift.IThriftAnnotations;
129
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
130
+ constructor(args?: IUnfollow__ResultArgs);
131
+ static read(input: thrift.TProtocol): Unfollow__Result;
132
+ static write(args: IUnfollow__ResultArgs, output: thrift.TProtocol): void;
133
+ write(output: thrift.TProtocol): void;
134
+ }
135
+ export interface IIsFollowing__Result {
136
+ success?: boolean;
137
+ }
138
+ export interface IIsFollowing__ResultArgs {
139
+ success?: boolean;
140
+ }
141
+ export declare const IsFollowing__ResultCodec: thrift.IStructCodec<IIsFollowing__ResultArgs, IIsFollowing__Result>;
142
+ export declare class IsFollowing__Result extends thrift.StructLike implements IIsFollowing__Result {
143
+ success?: boolean;
144
+ readonly _annotations: thrift.IThriftAnnotations;
145
+ readonly _fieldAnnotations: thrift.IFieldAnnotations;
146
+ constructor(args?: IIsFollowing__ResultArgs);
147
+ static read(input: thrift.TProtocol): IsFollowing__Result;
148
+ static write(args: IIsFollowing__ResultArgs, output: thrift.TProtocol): void;
149
+ write(output: thrift.TProtocol): void;
150
+ }
151
+ export declare class Client<Context = any> extends thrift.ThriftClient<Context> {
152
+ static readonly serviceName: string;
153
+ static readonly annotations: thrift.IThriftAnnotations;
154
+ static readonly methodAnnotations: thrift.IMethodAnnotations;
155
+ static readonly methodNames: Array<string>;
156
+ readonly _serviceName: string;
157
+ readonly _annotations: thrift.IThriftAnnotations;
158
+ readonly _methodAnnotations: thrift.IMethodAnnotations;
159
+ readonly _methodNames: Array<string>;
160
+ readonly _methodParameters?: {
161
+ [methodName: string]: number;
162
+ };
163
+ isAvailable(activityType: string, activityId: string, context?: Context): Promise<boolean>;
164
+ follow(activityType: string, activityId: string, context?: Context): Promise<boolean>;
165
+ unfollow(activityType: string, activityId: string, context?: Context): Promise<boolean>;
166
+ isFollowing(activityType: string, activityId: string, context?: Context): Promise<boolean>;
167
+ }
168
+ export interface IHandler<Context = any> {
169
+ isAvailable(activityType: string, activityId: string, context?: Context): boolean | Promise<boolean>;
170
+ follow(activityType: string, activityId: string, context?: Context): boolean | Promise<boolean>;
171
+ unfollow(activityType: string, activityId: string, context?: Context): boolean | Promise<boolean>;
172
+ isFollowing(activityType: string, activityId: string, context?: Context): boolean | Promise<boolean>;
173
+ }
174
+ export declare class Processor<Context = any> extends thrift.ThriftProcessor<Context, IHandler<Context>> {
175
+ protected readonly _handler: IHandler<Context>;
176
+ static readonly serviceName: string;
177
+ static readonly annotations: thrift.IThriftAnnotations;
178
+ static readonly methodAnnotations: thrift.IMethodAnnotations;
179
+ static readonly methodNames: Array<string>;
180
+ readonly _serviceName: string;
181
+ readonly _annotations: thrift.IThriftAnnotations;
182
+ readonly _methodAnnotations: thrift.IMethodAnnotations;
183
+ readonly _methodNames: Array<string>;
184
+ constructor(handler: IHandler<Context>);
185
+ process(input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
186
+ process_isAvailable(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
187
+ process_follow(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
188
+ process_unfollow(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
189
+ process_isFollowing(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
190
+ }