New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@guardian/bridget

Package Overview
Dependencies
Maintainers
6
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/bridget - npm Package Compare versions

Comparing version 0.0.0-2024-02-28 to 0.0.0-2024-02-28-SNAPSHOT-DISC

DiscussionApiResponse.d.ts

1

Acquisitions.d.ts
/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ import * as PurchaseScreenReason from "./PurchaseScreenReason";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.EpicSeen__Result = exports.EpicSeen__ResultCodec = exports.GetEpics__Result = exports.GetEpics__ResultCodec = exports.LaunchPurchaseScreen__Result = exports.LaunchPurchaseScreen__ResultCodec = exports.EpicSeen__Args = exports.EpicSeen__ArgsCodec = exports.GetEpics__Args = exports.GetEpics__ArgsCodec = exports.LaunchPurchaseScreen__Args = exports.LaunchPurchaseScreen__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdSlot = exports.AdSlotCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ export declare const serviceName: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.SendTargetingParams__Result = exports.SendTargetingParams__ResultCodec = exports.SendTargetingParams__Args = exports.SendTargetingParams__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ import * as AdSlot from "./AdSlot";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.UpdateAdverts__Result = exports.UpdateAdverts__ResultCodec = exports.InsertAdverts__Result = exports.InsertAdverts__ResultCodec = exports.UpdateAdverts__Args = exports.UpdateAdverts__ArgsCodec = exports.InsertAdverts__Args = exports.InsertAdverts__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";
import * as CommentResponse from "./CommentResponse";
import * as GetUserProfileResponse from "./GetUserProfileResponse";
import * as DiscussionResponse from "./DiscussionResponse";
import * as ReportAbuseParameters from "./ReportAbuseParameters";
export declare const serviceName: string;

@@ -12,47 +13,15 @@ export declare const annotations: thrift.IThriftAnnotations;

};
export interface IPreview__Args {
body: string;
export interface IGetUserProfile__Args {
}
export interface IPreview__ArgsArgs {
body: string;
export interface IGetUserProfile__ArgsArgs {
}
export declare const Preview__ArgsCodec: thrift.IStructCodec<IPreview__ArgsArgs, IPreview__Args>;
export declare class Preview__Args extends thrift.StructLike implements IPreview__Args {
body: string;
export declare const GetUserProfile__ArgsCodec: thrift.IStructCodec<IGetUserProfile__ArgsArgs, IGetUserProfile__Args>;
export declare class GetUserProfile__Args extends thrift.StructLike implements IGetUserProfile__Args {
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IPreview__ArgsArgs);
static read(input: thrift.TProtocol): Preview__Args;
static write(args: IPreview__ArgsArgs, output: thrift.TProtocol): void;
constructor(args?: IGetUserProfile__ArgsArgs);
static read(input: thrift.TProtocol): GetUserProfile__Args;
static write(args: IGetUserProfile__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IIsDiscussionEnabled__Args {
}
export interface IIsDiscussionEnabled__ArgsArgs {
}
export declare const IsDiscussionEnabled__ArgsCodec: thrift.IStructCodec<IIsDiscussionEnabled__ArgsArgs, IIsDiscussionEnabled__Args>;
export declare class IsDiscussionEnabled__Args extends thrift.StructLike implements IIsDiscussionEnabled__Args {
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IIsDiscussionEnabled__ArgsArgs);
static read(input: thrift.TProtocol): IsDiscussionEnabled__Args;
static write(args: IIsDiscussionEnabled__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IRecommend__Args {
commentId: number;
}
export interface IRecommend__ArgsArgs {
commentId: number;
}
export declare const Recommend__ArgsCodec: thrift.IStructCodec<IRecommend__ArgsArgs, IRecommend__Args>;
export declare class Recommend__Args extends thrift.StructLike implements IRecommend__Args {
commentId: number;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IRecommend__ArgsArgs);
static read(input: thrift.TProtocol): Recommend__Args;
static write(args: IRecommend__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IComment__Args {

@@ -80,3 +49,3 @@ shortUrl: string;

body: string;
parentCommentId: number;
parentCommentId: string;
}

@@ -86,3 +55,3 @@ export interface IReply__ArgsArgs {

body: string;
parentCommentId: number;
parentCommentId: string;
}

@@ -93,3 +62,3 @@ export declare const Reply__ArgsCodec: thrift.IStructCodec<IReply__ArgsArgs, IReply__Args>;

body: string;
parentCommentId: number;
parentCommentId: string;
readonly _annotations: thrift.IThriftAnnotations;

@@ -102,59 +71,75 @@ readonly _fieldAnnotations: thrift.IFieldAnnotations;

}
export interface IPreview__Result {
success?: string;
export interface IRecommend__Args {
commentId: string;
}
export interface IPreview__ResultArgs {
success?: string;
export interface IRecommend__ArgsArgs {
commentId: string;
}
export declare const Preview__ResultCodec: thrift.IStructCodec<IPreview__ResultArgs, IPreview__Result>;
export declare class Preview__Result extends thrift.StructLike implements IPreview__Result {
success?: string;
export declare const Recommend__ArgsCodec: thrift.IStructCodec<IRecommend__ArgsArgs, IRecommend__Args>;
export declare class Recommend__Args extends thrift.StructLike implements IRecommend__Args {
commentId: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IPreview__ResultArgs);
static read(input: thrift.TProtocol): Preview__Result;
static write(args: IPreview__ResultArgs, output: thrift.TProtocol): void;
constructor(args: IRecommend__ArgsArgs);
static read(input: thrift.TProtocol): Recommend__Args;
static write(args: IRecommend__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IIsDiscussionEnabled__Result {
success?: boolean;
export interface IAddUsername__Args {
username: string;
}
export interface IIsDiscussionEnabled__ResultArgs {
success?: boolean;
export interface IAddUsername__ArgsArgs {
username: string;
}
export declare const IsDiscussionEnabled__ResultCodec: thrift.IStructCodec<IIsDiscussionEnabled__ResultArgs, IIsDiscussionEnabled__Result>;
export declare class IsDiscussionEnabled__Result extends thrift.StructLike implements IIsDiscussionEnabled__Result {
success?: boolean;
export declare const AddUsername__ArgsCodec: thrift.IStructCodec<IAddUsername__ArgsArgs, IAddUsername__Args>;
export declare class AddUsername__Args extends thrift.StructLike implements IAddUsername__Args {
username: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IIsDiscussionEnabled__ResultArgs);
static read(input: thrift.TProtocol): IsDiscussionEnabled__Result;
static write(args: IIsDiscussionEnabled__ResultArgs, output: thrift.TProtocol): void;
constructor(args: IAddUsername__ArgsArgs);
static read(input: thrift.TProtocol): AddUsername__Args;
static write(args: IAddUsername__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IRecommend__Result {
success?: boolean;
export interface IReportAbuse__Args {
parameters: ReportAbuseParameters.IReportAbuseParameters;
}
export interface IRecommend__ResultArgs {
success?: boolean;
export interface IReportAbuse__ArgsArgs {
parameters: ReportAbuseParameters.IReportAbuseParametersArgs;
}
export declare const Recommend__ResultCodec: thrift.IStructCodec<IRecommend__ResultArgs, IRecommend__Result>;
export declare class Recommend__Result extends thrift.StructLike implements IRecommend__Result {
success?: boolean;
export declare const ReportAbuse__ArgsCodec: thrift.IStructCodec<IReportAbuse__ArgsArgs, IReportAbuse__Args>;
export declare class ReportAbuse__Args extends thrift.StructLike implements IReportAbuse__Args {
parameters: ReportAbuseParameters.IReportAbuseParameters;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IRecommend__ResultArgs);
static read(input: thrift.TProtocol): Recommend__Result;
static write(args: IRecommend__ResultArgs, output: thrift.TProtocol): void;
constructor(args: IReportAbuse__ArgsArgs);
static read(input: thrift.TProtocol): ReportAbuse__Args;
static write(args: IReportAbuse__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IGetUserProfile__Result {
success?: GetUserProfileResponse.GetUserProfileResponse;
}
export interface IGetUserProfile__ResultArgs {
success?: GetUserProfileResponse.GetUserProfileResponseArgs;
}
export declare const GetUserProfile__ResultCodec: thrift.IStructCodec<IGetUserProfile__ResultArgs, IGetUserProfile__Result>;
export declare class GetUserProfile__Result extends thrift.StructLike implements IGetUserProfile__Result {
success?: GetUserProfileResponse.GetUserProfileResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IGetUserProfile__ResultArgs);
static read(input: thrift.TProtocol): GetUserProfile__Result;
static write(args: IGetUserProfile__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IComment__Result {
success?: CommentResponse.ICommentResponse;
success?: DiscussionResponse.DiscussionResponse;
}
export interface IComment__ResultArgs {
success?: CommentResponse.ICommentResponseArgs;
success?: DiscussionResponse.DiscussionResponseArgs;
}
export declare const Comment__ResultCodec: thrift.IStructCodec<IComment__ResultArgs, IComment__Result>;
export declare class Comment__Result extends thrift.StructLike implements IComment__Result {
success?: CommentResponse.ICommentResponse;
success?: DiscussionResponse.DiscussionResponse;
readonly _annotations: thrift.IThriftAnnotations;

@@ -168,10 +153,10 @@ readonly _fieldAnnotations: thrift.IFieldAnnotations;

export interface IReply__Result {
success?: CommentResponse.ICommentResponse;
success?: DiscussionResponse.DiscussionResponse;
}
export interface IReply__ResultArgs {
success?: CommentResponse.ICommentResponseArgs;
success?: DiscussionResponse.DiscussionResponseArgs;
}
export declare const Reply__ResultCodec: thrift.IStructCodec<IReply__ResultArgs, IReply__Result>;
export declare class Reply__Result extends thrift.StructLike implements IReply__Result {
success?: CommentResponse.ICommentResponse;
success?: DiscussionResponse.DiscussionResponse;
readonly _annotations: thrift.IThriftAnnotations;

@@ -184,2 +169,50 @@ readonly _fieldAnnotations: thrift.IFieldAnnotations;

}
export interface IRecommend__Result {
success?: DiscussionResponse.DiscussionResponse;
}
export interface IRecommend__ResultArgs {
success?: DiscussionResponse.DiscussionResponseArgs;
}
export declare const Recommend__ResultCodec: thrift.IStructCodec<IRecommend__ResultArgs, IRecommend__Result>;
export declare class Recommend__Result extends thrift.StructLike implements IRecommend__Result {
success?: DiscussionResponse.DiscussionResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IRecommend__ResultArgs);
static read(input: thrift.TProtocol): Recommend__Result;
static write(args: IRecommend__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IAddUsername__Result {
success?: DiscussionResponse.DiscussionResponse;
}
export interface IAddUsername__ResultArgs {
success?: DiscussionResponse.DiscussionResponseArgs;
}
export declare const AddUsername__ResultCodec: thrift.IStructCodec<IAddUsername__ResultArgs, IAddUsername__Result>;
export declare class AddUsername__Result extends thrift.StructLike implements IAddUsername__Result {
success?: DiscussionResponse.DiscussionResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IAddUsername__ResultArgs);
static read(input: thrift.TProtocol): AddUsername__Result;
static write(args: IAddUsername__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IReportAbuse__Result {
success?: DiscussionResponse.DiscussionResponse;
}
export interface IReportAbuse__ResultArgs {
success?: DiscussionResponse.DiscussionResponseArgs;
}
export declare const ReportAbuse__ResultCodec: thrift.IStructCodec<IReportAbuse__ResultArgs, IReportAbuse__Result>;
export declare class ReportAbuse__Result extends thrift.StructLike implements IReportAbuse__Result {
success?: DiscussionResponse.DiscussionResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IReportAbuse__ResultArgs);
static read(input: thrift.TProtocol): ReportAbuse__Result;
static write(args: IReportAbuse__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export declare class Client<Context = any> extends thrift.ThriftClient<Context> {

@@ -197,14 +230,16 @@ static readonly serviceName: string;

};
preview(body: string, context?: Context): Promise<string>;
isDiscussionEnabled(context?: Context): Promise<boolean>;
recommend(commentId: number, context?: Context): Promise<boolean>;
comment(shortUrl: string, body: string, context?: Context): Promise<CommentResponse.ICommentResponse>;
reply(shortUrl: string, body: string, parentCommentId: number, context?: Context): Promise<CommentResponse.ICommentResponse>;
getUserProfile(context?: Context): Promise<GetUserProfileResponse.GetUserProfileResponse>;
comment(shortUrl: string, body: string, context?: Context): Promise<DiscussionResponse.DiscussionResponse>;
reply(shortUrl: string, body: string, parentCommentId: string, context?: Context): Promise<DiscussionResponse.DiscussionResponse>;
recommend(commentId: string, context?: Context): Promise<DiscussionResponse.DiscussionResponse>;
addUsername(username: string, context?: Context): Promise<DiscussionResponse.DiscussionResponse>;
reportAbuse(parameters: ReportAbuseParameters.IReportAbuseParametersArgs, context?: Context): Promise<DiscussionResponse.DiscussionResponse>;
}
export interface IHandler<Context = any> {
preview(body: string, context?: Context): string | Promise<string>;
isDiscussionEnabled(context?: Context): boolean | Promise<boolean>;
recommend(commentId: number, context?: Context): boolean | Promise<boolean>;
comment(shortUrl: string, body: string, context?: Context): CommentResponse.ICommentResponseArgs | Promise<CommentResponse.ICommentResponseArgs>;
reply(shortUrl: string, body: string, parentCommentId: number, context?: Context): CommentResponse.ICommentResponseArgs | Promise<CommentResponse.ICommentResponseArgs>;
getUserProfile(context?: Context): GetUserProfileResponse.GetUserProfileResponseArgs | Promise<GetUserProfileResponse.GetUserProfileResponseArgs>;
comment(shortUrl: string, body: string, context?: Context): DiscussionResponse.DiscussionResponseArgs | Promise<DiscussionResponse.DiscussionResponseArgs>;
reply(shortUrl: string, body: string, parentCommentId: string, context?: Context): DiscussionResponse.DiscussionResponseArgs | Promise<DiscussionResponse.DiscussionResponseArgs>;
recommend(commentId: string, context?: Context): DiscussionResponse.DiscussionResponseArgs | Promise<DiscussionResponse.DiscussionResponseArgs>;
addUsername(username: string, context?: Context): DiscussionResponse.DiscussionResponseArgs | Promise<DiscussionResponse.DiscussionResponseArgs>;
reportAbuse(parameters: ReportAbuseParameters.IReportAbuseParameters, context?: Context): DiscussionResponse.DiscussionResponseArgs | Promise<DiscussionResponse.DiscussionResponseArgs>;
}

@@ -223,7 +258,8 @@ export declare class Processor<Context = any> extends thrift.ThriftProcessor<Context, IHandler<Context>> {

process(input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_preview(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_isDiscussionEnabled(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_recommend(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_getUserProfile(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_comment(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_reply(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_recommend(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_addUsername(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_reportAbuse(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
}
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.Reply__Result = exports.Reply__ResultCodec = exports.Comment__Result = exports.Comment__ResultCodec = exports.Recommend__Result = exports.Recommend__ResultCodec = exports.IsDiscussionEnabled__Result = exports.IsDiscussionEnabled__ResultCodec = exports.Preview__Result = exports.Preview__ResultCodec = exports.Reply__Args = exports.Reply__ArgsCodec = exports.Comment__Args = exports.Comment__ArgsCodec = exports.Recommend__Args = exports.Recommend__ArgsCodec = exports.IsDiscussionEnabled__Args = exports.IsDiscussionEnabled__ArgsCodec = exports.Preview__Args = exports.Preview__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -34,14 +17,20 @@ /* eslint-disable */

const thrift = __importStar(require("@creditkarma/thrift-server-core"));
const CommentResponse = __importStar(require("./CommentResponse"));
const GetUserProfileResponse = __importStar(require("./GetUserProfileResponse"));
const DiscussionResponse = __importStar(require("./DiscussionResponse"));
const ReportAbuseParameters = __importStar(require("./ReportAbuseParameters"));
exports.serviceName = "Discussion";
exports.annotations = {};
exports.methodAnnotations = {
preview: {
getUserProfile: {
annotations: {},
fieldAnnotations: {}
},
isDiscussionEnabled: {
comment: {
annotations: {},
fieldAnnotations: {}
},
reply: {
annotations: {},
fieldAnnotations: {}
},
recommend: {

@@ -51,7 +40,7 @@ annotations: {},

},
comment: {
addUsername: {
annotations: {},
fieldAnnotations: {}
},
reply: {
reportAbuse: {
annotations: {},

@@ -61,18 +50,72 @@ fieldAnnotations: {}

};
exports.methodNames = ["preview", "isDiscussionEnabled", "recommend", "comment", "reply"];
exports.methodNames = ["getUserProfile", "comment", "reply", "recommend", "addUsername", "reportAbuse"];
exports.methodParameters = {
preview: 2,
isDiscussionEnabled: 1,
getUserProfile: 1,
comment: 3,
reply: 4,
recommend: 2,
comment: 3,
reply: 4
addUsername: 2,
reportAbuse: 2
};
exports.Preview__ArgsCodec = {
exports.GetUserProfile__ArgsCodec = {
encode(args, output) {
output.writeStructBegin("GetUserProfile__Args");
output.writeFieldStop();
output.writeStructEnd();
return;
},
decode(input) {
input.readStructBegin();
while (true) {
const ret = input.readFieldBegin();
const fieldType = ret.fieldType;
const fieldId = ret.fieldId;
if (fieldType === thrift.TType.STOP) {
break;
}
switch (fieldId) {
default: {
input.skip(fieldType);
}
}
input.readFieldEnd();
}
input.readStructEnd();
return {};
}
};
class GetUserProfile__Args extends thrift.StructLike {
constructor(args = {}) {
super();
this._annotations = {};
this._fieldAnnotations = {};
}
static read(input) {
return new GetUserProfile__Args(exports.GetUserProfile__ArgsCodec.decode(input));
}
static write(args, output) {
return exports.GetUserProfile__ArgsCodec.encode(args, output);
}
write(output) {
return exports.GetUserProfile__ArgsCodec.encode(this, output);
}
}
exports.GetUserProfile__Args = GetUserProfile__Args;
exports.Comment__ArgsCodec = {
encode(args, output) {
const obj = {
shortUrl: args.shortUrl,
body: args.body
};
output.writeStructBegin("Preview__Args");
output.writeStructBegin("Comment__Args");
if (obj.shortUrl != null) {
output.writeFieldBegin("shortUrl", thrift.TType.STRING, 1);
output.writeString(obj.shortUrl);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
}
if (obj.body != null) {
output.writeFieldBegin("body", thrift.TType.STRING, 1);
output.writeFieldBegin("body", thrift.TType.STRING, 2);
output.writeString(obj.body);

@@ -102,3 +145,3 @@ output.writeFieldEnd();

const value_1 = input.readString();
_args.body = value_1;
_args.shortUrl = value_1;
}

@@ -109,2 +152,11 @@ else {

break;
case 2:
if (fieldType === thrift.TType.STRING) {
const value_2 = input.readString();
_args.body = value_2;
}
else {
input.skip(fieldType);
}
break;
default: {

@@ -117,4 +169,5 @@ input.skip(fieldType);

input.readStructEnd();
if (_args.body !== undefined) {
if (_args.shortUrl !== undefined && _args.body !== undefined) {
return {
shortUrl: _args.shortUrl,
body: _args.body

@@ -124,7 +177,7 @@ };

else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read Preview__Args from input");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read Comment__Args from input");
}
}
};
class Preview__Args extends thrift.StructLike {
class Comment__Args extends thrift.StructLike {
constructor(args) {

@@ -134,5 +187,12 @@ super();

this._fieldAnnotations = {};
if (args.shortUrl != null) {
const value_3 = args.shortUrl;
this.shortUrl = value_3;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
}
if (args.body != null) {
const value_2 = args.body;
this.body = value_2;
const value_4 = args.body;
this.body = value_4;
}

@@ -144,15 +204,44 @@ else {

static read(input) {
return new Preview__Args(exports.Preview__ArgsCodec.decode(input));
return new Comment__Args(exports.Comment__ArgsCodec.decode(input));
}
static write(args, output) {
return exports.Preview__ArgsCodec.encode(args, output);
return exports.Comment__ArgsCodec.encode(args, output);
}
write(output) {
return exports.Preview__ArgsCodec.encode(this, output);
return exports.Comment__ArgsCodec.encode(this, output);
}
}
exports.Preview__Args = Preview__Args;
exports.IsDiscussionEnabled__ArgsCodec = {
exports.Comment__Args = Comment__Args;
exports.Reply__ArgsCodec = {
encode(args, output) {
output.writeStructBegin("IsDiscussionEnabled__Args");
const obj = {
shortUrl: args.shortUrl,
body: args.body,
parentCommentId: args.parentCommentId
};
output.writeStructBegin("Reply__Args");
if (obj.shortUrl != null) {
output.writeFieldBegin("shortUrl", thrift.TType.STRING, 1);
output.writeString(obj.shortUrl);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
}
if (obj.body != null) {
output.writeFieldBegin("body", thrift.TType.STRING, 2);
output.writeString(obj.body);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[body] is unset!");
}
if (obj.parentCommentId != null) {
output.writeFieldBegin("parentCommentId", thrift.TType.STRING, 3);
output.writeString(obj.parentCommentId);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[parentCommentId] is unset!");
}
output.writeFieldStop();

@@ -163,2 +252,3 @@ output.writeStructEnd();

decode(input) {
let _args = {};
input.readStructBegin();

@@ -173,2 +263,29 @@ while (true) {

switch (fieldId) {
case 1:
if (fieldType === thrift.TType.STRING) {
const value_5 = input.readString();
_args.shortUrl = value_5;
}
else {
input.skip(fieldType);
}
break;
case 2:
if (fieldType === thrift.TType.STRING) {
const value_6 = input.readString();
_args.body = value_6;
}
else {
input.skip(fieldType);
}
break;
case 3:
if (fieldType === thrift.TType.STRING) {
const value_7 = input.readString();
_args.parentCommentId = value_7;
}
else {
input.skip(fieldType);
}
break;
default: {

@@ -181,22 +298,52 @@ input.skip(fieldType);

input.readStructEnd();
return {};
if (_args.shortUrl !== undefined && _args.body !== undefined && _args.parentCommentId !== undefined) {
return {
shortUrl: _args.shortUrl,
body: _args.body,
parentCommentId: _args.parentCommentId
};
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read Reply__Args from input");
}
}
};
class IsDiscussionEnabled__Args extends thrift.StructLike {
constructor(args = {}) {
class Reply__Args extends thrift.StructLike {
constructor(args) {
super();
this._annotations = {};
this._fieldAnnotations = {};
if (args.shortUrl != null) {
const value_8 = args.shortUrl;
this.shortUrl = value_8;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
}
if (args.body != null) {
const value_9 = args.body;
this.body = value_9;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[body] is unset!");
}
if (args.parentCommentId != null) {
const value_10 = args.parentCommentId;
this.parentCommentId = value_10;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[parentCommentId] is unset!");
}
}
static read(input) {
return new IsDiscussionEnabled__Args(exports.IsDiscussionEnabled__ArgsCodec.decode(input));
return new Reply__Args(exports.Reply__ArgsCodec.decode(input));
}
static write(args, output) {
return exports.IsDiscussionEnabled__ArgsCodec.encode(args, output);
return exports.Reply__ArgsCodec.encode(args, output);
}
write(output) {
return exports.IsDiscussionEnabled__ArgsCodec.encode(this, output);
return exports.Reply__ArgsCodec.encode(this, output);
}
}
exports.IsDiscussionEnabled__Args = IsDiscussionEnabled__Args;
exports.Reply__Args = Reply__Args;
exports.Recommend__ArgsCodec = {

@@ -209,4 +356,4 @@ encode(args, output) {

if (obj.commentId != null) {
output.writeFieldBegin("commentId", thrift.TType.I32, 1);
output.writeI32(obj.commentId);
output.writeFieldBegin("commentId", thrift.TType.STRING, 1);
output.writeString(obj.commentId);
output.writeFieldEnd();

@@ -233,5 +380,5 @@ }

case 1:
if (fieldType === thrift.TType.I32) {
const value_3 = input.readI32();
_args.commentId = value_3;
if (fieldType === thrift.TType.STRING) {
const value_11 = input.readString();
_args.commentId = value_11;
}

@@ -265,4 +412,4 @@ else {

if (args.commentId != null) {
const value_4 = args.commentId;
this.commentId = value_4;
const value_12 = args.commentId;
this.commentId = value_12;
}

@@ -284,25 +431,16 @@ else {

exports.Recommend__Args = Recommend__Args;
exports.Comment__ArgsCodec = {
exports.AddUsername__ArgsCodec = {
encode(args, output) {
const obj = {
shortUrl: args.shortUrl,
body: args.body
username: args.username
};
output.writeStructBegin("Comment__Args");
if (obj.shortUrl != null) {
output.writeFieldBegin("shortUrl", thrift.TType.STRING, 1);
output.writeString(obj.shortUrl);
output.writeStructBegin("AddUsername__Args");
if (obj.username != null) {
output.writeFieldBegin("username", thrift.TType.STRING, 1);
output.writeString(obj.username);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[username] is unset!");
}
if (obj.body != null) {
output.writeFieldBegin("body", thrift.TType.STRING, 2);
output.writeString(obj.body);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[body] is unset!");
}
output.writeFieldStop();

@@ -325,4 +463,4 @@ output.writeStructEnd();

if (fieldType === thrift.TType.STRING) {
const value_5 = input.readString();
_args.shortUrl = value_5;
const value_13 = input.readString();
_args.username = value_13;
}

@@ -333,11 +471,2 @@ else {

break;
case 2:
if (fieldType === thrift.TType.STRING) {
const value_6 = input.readString();
_args.body = value_6;
}
else {
input.skip(fieldType);
}
break;
default: {

@@ -350,14 +479,13 @@ input.skip(fieldType);

input.readStructEnd();
if (_args.shortUrl !== undefined && _args.body !== undefined) {
if (_args.username !== undefined) {
return {
shortUrl: _args.shortUrl,
body: _args.body
username: _args.username
};
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read Comment__Args from input");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read AddUsername__Args from input");
}
}
};
class Comment__Args extends thrift.StructLike {
class AddUsername__Args extends thrift.StructLike {
constructor(args) {

@@ -367,60 +495,35 @@ super();

this._fieldAnnotations = {};
if (args.shortUrl != null) {
const value_7 = args.shortUrl;
this.shortUrl = value_7;
if (args.username != null) {
const value_14 = args.username;
this.username = value_14;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[username] is unset!");
}
if (args.body != null) {
const value_8 = args.body;
this.body = value_8;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[body] is unset!");
}
}
static read(input) {
return new Comment__Args(exports.Comment__ArgsCodec.decode(input));
return new AddUsername__Args(exports.AddUsername__ArgsCodec.decode(input));
}
static write(args, output) {
return exports.Comment__ArgsCodec.encode(args, output);
return exports.AddUsername__ArgsCodec.encode(args, output);
}
write(output) {
return exports.Comment__ArgsCodec.encode(this, output);
return exports.AddUsername__ArgsCodec.encode(this, output);
}
}
exports.Comment__Args = Comment__Args;
exports.Reply__ArgsCodec = {
exports.AddUsername__Args = AddUsername__Args;
exports.ReportAbuse__ArgsCodec = {
encode(args, output) {
const obj = {
shortUrl: args.shortUrl,
body: args.body,
parentCommentId: args.parentCommentId
parameters: args.parameters
};
output.writeStructBegin("Reply__Args");
if (obj.shortUrl != null) {
output.writeFieldBegin("shortUrl", thrift.TType.STRING, 1);
output.writeString(obj.shortUrl);
output.writeStructBegin("ReportAbuse__Args");
if (obj.parameters != null) {
output.writeFieldBegin("parameters", thrift.TType.STRUCT, 1);
ReportAbuseParameters.ReportAbuseParametersCodec.encode(obj.parameters, output);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[parameters] is unset!");
}
if (obj.body != null) {
output.writeFieldBegin("body", thrift.TType.STRING, 2);
output.writeString(obj.body);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[body] is unset!");
}
if (obj.parentCommentId != null) {
output.writeFieldBegin("parentCommentId", thrift.TType.I32, 3);
output.writeI32(obj.parentCommentId);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[parentCommentId] is unset!");
}
output.writeFieldStop();

@@ -442,5 +545,5 @@ output.writeStructEnd();

case 1:
if (fieldType === thrift.TType.STRING) {
const value_9 = input.readString();
_args.shortUrl = value_9;
if (fieldType === thrift.TType.STRUCT) {
const value_15 = ReportAbuseParameters.ReportAbuseParametersCodec.decode(input);
_args.parameters = value_15;
}

@@ -451,20 +554,2 @@ else {

break;
case 2:
if (fieldType === thrift.TType.STRING) {
const value_10 = input.readString();
_args.body = value_10;
}
else {
input.skip(fieldType);
}
break;
case 3:
if (fieldType === thrift.TType.I32) {
const value_11 = input.readI32();
_args.parentCommentId = value_11;
}
else {
input.skip(fieldType);
}
break;
default: {

@@ -477,15 +562,13 @@ input.skip(fieldType);

input.readStructEnd();
if (_args.shortUrl !== undefined && _args.body !== undefined && _args.parentCommentId !== undefined) {
if (_args.parameters !== undefined) {
return {
shortUrl: _args.shortUrl,
body: _args.body,
parentCommentId: _args.parentCommentId
parameters: _args.parameters
};
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read Reply__Args from input");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read ReportAbuse__Args from input");
}
}
};
class Reply__Args extends thrift.StructLike {
class ReportAbuse__Args extends thrift.StructLike {
constructor(args) {

@@ -495,36 +578,90 @@ super();

this._fieldAnnotations = {};
if (args.shortUrl != null) {
const value_12 = args.shortUrl;
this.shortUrl = value_12;
if (args.parameters != null) {
const value_16 = new ReportAbuseParameters.ReportAbuseParameters(args.parameters);
this.parameters = value_16;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[shortUrl] is unset!");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[parameters] is unset!");
}
if (args.body != null) {
const value_13 = args.body;
this.body = value_13;
}
static read(input) {
return new ReportAbuse__Args(exports.ReportAbuse__ArgsCodec.decode(input));
}
static write(args, output) {
return exports.ReportAbuse__ArgsCodec.encode(args, output);
}
write(output) {
return exports.ReportAbuse__ArgsCodec.encode(this, output);
}
}
exports.ReportAbuse__Args = ReportAbuse__Args;
exports.GetUserProfile__ResultCodec = {
encode(args, output) {
const obj = {
success: args.success
};
output.writeStructBegin("GetUserProfile__Result");
if (obj.success != null) {
output.writeFieldBegin("success", thrift.TType.STRUCT, 0);
GetUserProfileResponse.GetUserProfileResponseCodec.encode(obj.success, output);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[body] is unset!");
output.writeFieldStop();
output.writeStructEnd();
return;
},
decode(input) {
let _args = {};
input.readStructBegin();
while (true) {
const ret = input.readFieldBegin();
const fieldType = ret.fieldType;
const fieldId = ret.fieldId;
if (fieldType === thrift.TType.STOP) {
break;
}
switch (fieldId) {
case 0:
if (fieldType === thrift.TType.STRUCT) {
const value_17 = GetUserProfileResponse.GetUserProfileResponseCodec.decode(input);
_args.success = value_17;
}
else {
input.skip(fieldType);
}
break;
default: {
input.skip(fieldType);
}
}
input.readFieldEnd();
}
if (args.parentCommentId != null) {
const value_14 = args.parentCommentId;
this.parentCommentId = value_14;
input.readStructEnd();
return {
success: _args.success
};
}
};
class GetUserProfile__Result extends thrift.StructLike {
constructor(args = {}) {
super();
this._annotations = {};
this._fieldAnnotations = {};
if (args.success != null) {
const value_18 = GetUserProfileResponse.GetUserProfileResponseCodec.create(args.success);
this.success = value_18;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[parentCommentId] is unset!");
}
}
static read(input) {
return new Reply__Args(exports.Reply__ArgsCodec.decode(input));
return new GetUserProfile__Result(exports.GetUserProfile__ResultCodec.decode(input));
}
static write(args, output) {
return exports.Reply__ArgsCodec.encode(args, output);
return exports.GetUserProfile__ResultCodec.encode(args, output);
}
write(output) {
return exports.Reply__ArgsCodec.encode(this, output);
return exports.GetUserProfile__ResultCodec.encode(this, output);
}
}
exports.Reply__Args = Reply__Args;
exports.Preview__ResultCodec = {
exports.GetUserProfile__Result = GetUserProfile__Result;
exports.Comment__ResultCodec = {
encode(args, output) {

@@ -534,6 +671,6 @@ const obj = {

};
output.writeStructBegin("Preview__Result");
output.writeStructBegin("Comment__Result");
if (obj.success != null) {
output.writeFieldBegin("success", thrift.TType.STRING, 0);
output.writeString(obj.success);
output.writeFieldBegin("success", thrift.TType.STRUCT, 0);
DiscussionResponse.DiscussionResponseCodec.encode(obj.success, output);
output.writeFieldEnd();

@@ -557,5 +694,5 @@ }

case 0:
if (fieldType === thrift.TType.STRING) {
const value_15 = input.readString();
_args.success = value_15;
if (fieldType === thrift.TType.STRUCT) {
const value_19 = DiscussionResponse.DiscussionResponseCodec.decode(input);
_args.success = value_19;
}

@@ -578,3 +715,3 @@ else {

};
class Preview__Result extends thrift.StructLike {
class Comment__Result extends thrift.StructLike {
constructor(args = {}) {

@@ -585,18 +722,18 @@ super();

if (args.success != null) {
const value_16 = args.success;
this.success = value_16;
const value_20 = DiscussionResponse.DiscussionResponseCodec.create(args.success);
this.success = value_20;
}
}
static read(input) {
return new Preview__Result(exports.Preview__ResultCodec.decode(input));
return new Comment__Result(exports.Comment__ResultCodec.decode(input));
}
static write(args, output) {
return exports.Preview__ResultCodec.encode(args, output);
return exports.Comment__ResultCodec.encode(args, output);
}
write(output) {
return exports.Preview__ResultCodec.encode(this, output);
return exports.Comment__ResultCodec.encode(this, output);
}
}
exports.Preview__Result = Preview__Result;
exports.IsDiscussionEnabled__ResultCodec = {
exports.Comment__Result = Comment__Result;
exports.Reply__ResultCodec = {
encode(args, output) {

@@ -606,6 +743,6 @@ const obj = {

};
output.writeStructBegin("IsDiscussionEnabled__Result");
output.writeStructBegin("Reply__Result");
if (obj.success != null) {
output.writeFieldBegin("success", thrift.TType.BOOL, 0);
output.writeBool(obj.success);
output.writeFieldBegin("success", thrift.TType.STRUCT, 0);
DiscussionResponse.DiscussionResponseCodec.encode(obj.success, output);
output.writeFieldEnd();

@@ -629,5 +766,5 @@ }

case 0:
if (fieldType === thrift.TType.BOOL) {
const value_17 = input.readBool();
_args.success = value_17;
if (fieldType === thrift.TType.STRUCT) {
const value_21 = DiscussionResponse.DiscussionResponseCodec.decode(input);
_args.success = value_21;
}

@@ -650,3 +787,3 @@ else {

};
class IsDiscussionEnabled__Result extends thrift.StructLike {
class Reply__Result extends thrift.StructLike {
constructor(args = {}) {

@@ -657,17 +794,17 @@ super();

if (args.success != null) {
const value_18 = args.success;
this.success = value_18;
const value_22 = DiscussionResponse.DiscussionResponseCodec.create(args.success);
this.success = value_22;
}
}
static read(input) {
return new IsDiscussionEnabled__Result(exports.IsDiscussionEnabled__ResultCodec.decode(input));
return new Reply__Result(exports.Reply__ResultCodec.decode(input));
}
static write(args, output) {
return exports.IsDiscussionEnabled__ResultCodec.encode(args, output);
return exports.Reply__ResultCodec.encode(args, output);
}
write(output) {
return exports.IsDiscussionEnabled__ResultCodec.encode(this, output);
return exports.Reply__ResultCodec.encode(this, output);
}
}
exports.IsDiscussionEnabled__Result = IsDiscussionEnabled__Result;
exports.Reply__Result = Reply__Result;
exports.Recommend__ResultCodec = {

@@ -680,4 +817,4 @@ encode(args, output) {

if (obj.success != null) {
output.writeFieldBegin("success", thrift.TType.BOOL, 0);
output.writeBool(obj.success);
output.writeFieldBegin("success", thrift.TType.STRUCT, 0);
DiscussionResponse.DiscussionResponseCodec.encode(obj.success, output);
output.writeFieldEnd();

@@ -701,5 +838,5 @@ }

case 0:
if (fieldType === thrift.TType.BOOL) {
const value_19 = input.readBool();
_args.success = value_19;
if (fieldType === thrift.TType.STRUCT) {
const value_23 = DiscussionResponse.DiscussionResponseCodec.decode(input);
_args.success = value_23;
}

@@ -728,4 +865,4 @@ else {

if (args.success != null) {
const value_20 = args.success;
this.success = value_20;
const value_24 = DiscussionResponse.DiscussionResponseCodec.create(args.success);
this.success = value_24;
}

@@ -744,3 +881,3 @@ }

exports.Recommend__Result = Recommend__Result;
exports.Comment__ResultCodec = {
exports.AddUsername__ResultCodec = {
encode(args, output) {

@@ -750,6 +887,6 @@ const obj = {

};
output.writeStructBegin("Comment__Result");
output.writeStructBegin("AddUsername__Result");
if (obj.success != null) {
output.writeFieldBegin("success", thrift.TType.STRUCT, 0);
CommentResponse.CommentResponseCodec.encode(obj.success, output);
DiscussionResponse.DiscussionResponseCodec.encode(obj.success, output);
output.writeFieldEnd();

@@ -774,4 +911,4 @@ }

if (fieldType === thrift.TType.STRUCT) {
const value_21 = CommentResponse.CommentResponseCodec.decode(input);
_args.success = value_21;
const value_25 = DiscussionResponse.DiscussionResponseCodec.decode(input);
_args.success = value_25;
}

@@ -794,3 +931,3 @@ else {

};
class Comment__Result extends thrift.StructLike {
class AddUsername__Result extends thrift.StructLike {
constructor(args = {}) {

@@ -801,18 +938,18 @@ super();

if (args.success != null) {
const value_22 = new CommentResponse.CommentResponse(args.success);
this.success = value_22;
const value_26 = DiscussionResponse.DiscussionResponseCodec.create(args.success);
this.success = value_26;
}
}
static read(input) {
return new Comment__Result(exports.Comment__ResultCodec.decode(input));
return new AddUsername__Result(exports.AddUsername__ResultCodec.decode(input));
}
static write(args, output) {
return exports.Comment__ResultCodec.encode(args, output);
return exports.AddUsername__ResultCodec.encode(args, output);
}
write(output) {
return exports.Comment__ResultCodec.encode(this, output);
return exports.AddUsername__ResultCodec.encode(this, output);
}
}
exports.Comment__Result = Comment__Result;
exports.Reply__ResultCodec = {
exports.AddUsername__Result = AddUsername__Result;
exports.ReportAbuse__ResultCodec = {
encode(args, output) {

@@ -822,6 +959,6 @@ const obj = {

};
output.writeStructBegin("Reply__Result");
output.writeStructBegin("ReportAbuse__Result");
if (obj.success != null) {
output.writeFieldBegin("success", thrift.TType.STRUCT, 0);
CommentResponse.CommentResponseCodec.encode(obj.success, output);
DiscussionResponse.DiscussionResponseCodec.encode(obj.success, output);
output.writeFieldEnd();

@@ -846,4 +983,4 @@ }

if (fieldType === thrift.TType.STRUCT) {
const value_23 = CommentResponse.CommentResponseCodec.decode(input);
_args.success = value_23;
const value_27 = DiscussionResponse.DiscussionResponseCodec.decode(input);
_args.success = value_27;
}

@@ -866,3 +1003,3 @@ else {

};
class Reply__Result extends thrift.StructLike {
class ReportAbuse__Result extends thrift.StructLike {
constructor(args = {}) {

@@ -873,17 +1010,17 @@ super();

if (args.success != null) {
const value_24 = new CommentResponse.CommentResponse(args.success);
this.success = value_24;
const value_28 = DiscussionResponse.DiscussionResponseCodec.create(args.success);
this.success = value_28;
}
}
static read(input) {
return new Reply__Result(exports.Reply__ResultCodec.decode(input));
return new ReportAbuse__Result(exports.ReportAbuse__ResultCodec.decode(input));
}
static write(args, output) {
return exports.Reply__ResultCodec.encode(args, output);
return exports.ReportAbuse__ResultCodec.encode(args, output);
}
write(output) {
return exports.Reply__ResultCodec.encode(this, output);
return exports.ReportAbuse__ResultCodec.encode(this, output);
}
}
exports.Reply__Result = Reply__Result;
exports.ReportAbuse__Result = ReportAbuse__Result;
class Client extends thrift.ThriftClient {

@@ -898,8 +1035,8 @@ constructor() {

}
preview(body, context) {
getUserProfile(context) {
const writer = new this.transport();
const output = new this.protocol(writer);
output.writeMessageBegin("preview", thrift.MessageType.CALL, this.incrementRequestId());
const args = { body };
exports.Preview__ArgsCodec.encode(args, output);
output.writeMessageBegin("getUserProfile", thrift.MessageType.CALL, this.incrementRequestId());
const args = {};
exports.GetUserProfile__ArgsCodec.encode(args, output);
output.writeMessageEnd();

@@ -911,3 +1048,3 @@ return this.connection.send(writer.flush(), context).then((data) => {

const { fieldName: fieldName, messageType: messageType } = input.readMessageBegin();
if (fieldName === "preview") {
if (fieldName === "getUserProfile") {
if (messageType === thrift.MessageType.EXCEPTION) {

@@ -919,3 +1056,3 @@ const err = thrift.TApplicationExceptionCodec.decode(input);

else {
const result = exports.Preview__ResultCodec.decode(input);
const result = exports.GetUserProfile__ResultCodec.decode(input);
input.readMessageEnd();

@@ -926,3 +1063,3 @@ if (result.success != null) {

else {
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "preview failed: unknown result"));
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "getUserProfile failed: unknown result"));
}

@@ -940,8 +1077,8 @@ }

}
isDiscussionEnabled(context) {
comment(shortUrl, body, context) {
const writer = new this.transport();
const output = new this.protocol(writer);
output.writeMessageBegin("isDiscussionEnabled", thrift.MessageType.CALL, this.incrementRequestId());
const args = {};
exports.IsDiscussionEnabled__ArgsCodec.encode(args, output);
output.writeMessageBegin("comment", thrift.MessageType.CALL, this.incrementRequestId());
const args = { shortUrl, body };
exports.Comment__ArgsCodec.encode(args, output);
output.writeMessageEnd();

@@ -953,3 +1090,3 @@ return this.connection.send(writer.flush(), context).then((data) => {

const { fieldName: fieldName, messageType: messageType } = input.readMessageBegin();
if (fieldName === "isDiscussionEnabled") {
if (fieldName === "comment") {
if (messageType === thrift.MessageType.EXCEPTION) {

@@ -961,3 +1098,3 @@ const err = thrift.TApplicationExceptionCodec.decode(input);

else {
const result = exports.IsDiscussionEnabled__ResultCodec.decode(input);
const result = exports.Comment__ResultCodec.decode(input);
input.readMessageEnd();

@@ -968,3 +1105,3 @@ if (result.success != null) {

else {
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "isDiscussionEnabled failed: unknown result"));
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "comment failed: unknown result"));
}

@@ -982,2 +1119,40 @@ }

}
reply(shortUrl, body, parentCommentId, context) {
const writer = new this.transport();
const output = new this.protocol(writer);
output.writeMessageBegin("reply", thrift.MessageType.CALL, this.incrementRequestId());
const args = { shortUrl, body, parentCommentId };
exports.Reply__ArgsCodec.encode(args, output);
output.writeMessageEnd();
return this.connection.send(writer.flush(), context).then((data) => {
const reader = this.transport.receiver(data);
const input = new this.protocol(reader);
try {
const { fieldName: fieldName, messageType: messageType } = input.readMessageBegin();
if (fieldName === "reply") {
if (messageType === thrift.MessageType.EXCEPTION) {
const err = thrift.TApplicationExceptionCodec.decode(input);
input.readMessageEnd();
return Promise.reject(err);
}
else {
const result = exports.Reply__ResultCodec.decode(input);
input.readMessageEnd();
if (result.success != null) {
return Promise.resolve(result.success);
}
else {
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "reply failed: unknown result"));
}
}
}
else {
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.WRONG_METHOD_NAME, "Received a response to an unknown RPC function: " + fieldName));
}
}
catch (err) {
return Promise.reject(err);
}
});
}
recommend(commentId, context) {

@@ -1021,8 +1196,8 @@ const writer = new this.transport();

}
comment(shortUrl, body, context) {
addUsername(username, context) {
const writer = new this.transport();
const output = new this.protocol(writer);
output.writeMessageBegin("comment", thrift.MessageType.CALL, this.incrementRequestId());
const args = { shortUrl, body };
exports.Comment__ArgsCodec.encode(args, output);
output.writeMessageBegin("addUsername", thrift.MessageType.CALL, this.incrementRequestId());
const args = { username };
exports.AddUsername__ArgsCodec.encode(args, output);
output.writeMessageEnd();

@@ -1034,3 +1209,3 @@ return this.connection.send(writer.flush(), context).then((data) => {

const { fieldName: fieldName, messageType: messageType } = input.readMessageBegin();
if (fieldName === "comment") {
if (fieldName === "addUsername") {
if (messageType === thrift.MessageType.EXCEPTION) {

@@ -1042,3 +1217,3 @@ const err = thrift.TApplicationExceptionCodec.decode(input);

else {
const result = exports.Comment__ResultCodec.decode(input);
const result = exports.AddUsername__ResultCodec.decode(input);
input.readMessageEnd();

@@ -1049,3 +1224,3 @@ if (result.success != null) {

else {
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "comment failed: unknown result"));
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "addUsername failed: unknown result"));
}

@@ -1063,8 +1238,8 @@ }

}
reply(shortUrl, body, parentCommentId, context) {
reportAbuse(parameters, context) {
const writer = new this.transport();
const output = new this.protocol(writer);
output.writeMessageBegin("reply", thrift.MessageType.CALL, this.incrementRequestId());
const args = { shortUrl, body, parentCommentId };
exports.Reply__ArgsCodec.encode(args, output);
output.writeMessageBegin("reportAbuse", thrift.MessageType.CALL, this.incrementRequestId());
const args = { parameters };
exports.ReportAbuse__ArgsCodec.encode(args, output);
output.writeMessageEnd();

@@ -1076,3 +1251,3 @@ return this.connection.send(writer.flush(), context).then((data) => {

const { fieldName: fieldName, messageType: messageType } = input.readMessageBegin();
if (fieldName === "reply") {
if (fieldName === "reportAbuse") {
if (messageType === thrift.MessageType.EXCEPTION) {

@@ -1084,3 +1259,3 @@ const err = thrift.TApplicationExceptionCodec.decode(input);

else {
const result = exports.Reply__ResultCodec.decode(input);
const result = exports.ReportAbuse__ResultCodec.decode(input);
input.readMessageEnd();

@@ -1091,3 +1266,3 @@ if (result.success != null) {

else {
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "reply failed: unknown result"));
return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "reportAbuse failed: unknown result"));
}

@@ -1127,10 +1302,14 @@ }

switch (methodName) {
case "process_preview": {
resolve(this.process_preview(requestId, input, output, context));
case "process_getUserProfile": {
resolve(this.process_getUserProfile(requestId, input, output, context));
break;
}
case "process_isDiscussionEnabled": {
resolve(this.process_isDiscussionEnabled(requestId, input, output, context));
case "process_comment": {
resolve(this.process_comment(requestId, input, output, context));
break;
}
case "process_reply": {
resolve(this.process_reply(requestId, input, output, context));
break;
}
case "process_recommend": {

@@ -1140,8 +1319,8 @@ resolve(this.process_recommend(requestId, input, output, context));

}
case "process_comment": {
resolve(this.process_comment(requestId, input, output, context));
case "process_addUsername": {
resolve(this.process_addUsername(requestId, input, output, context));
break;
}
case "process_reply": {
resolve(this.process_reply(requestId, input, output, context));
case "process_reportAbuse": {
resolve(this.process_reportAbuse(requestId, input, output, context));
break;

@@ -1163,8 +1342,7 @@ }

}
process_preview(requestId, input, output, context) {
process_getUserProfile(requestId, input, output, context) {
return new Promise((resolve, reject) => {
try {
const args = exports.Preview__ArgsCodec.decode(input);
input.readMessageEnd();
resolve(this._handler.preview(args.body, context));
resolve(this._handler.getUserProfile(context));
}

@@ -1176,4 +1354,4 @@ catch (err) {

const result = { success: data };
output.writeMessageBegin("preview", thrift.MessageType.REPLY, requestId);
exports.Preview__ResultCodec.encode(result, output);
output.writeMessageBegin("getUserProfile", thrift.MessageType.REPLY, requestId);
exports.GetUserProfile__ResultCodec.encode(result, output);
output.writeMessageEnd();

@@ -1183,3 +1361,3 @@ return output.flush();

const result = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("preview", thrift.MessageType.EXCEPTION, requestId);
output.writeMessageBegin("getUserProfile", thrift.MessageType.EXCEPTION, requestId);
thrift.TApplicationExceptionCodec.encode(result, output);

@@ -1190,7 +1368,8 @@ output.writeMessageEnd();

}
process_isDiscussionEnabled(requestId, input, output, context) {
process_comment(requestId, input, output, context) {
return new Promise((resolve, reject) => {
try {
const args = exports.Comment__ArgsCodec.decode(input);
input.readMessageEnd();
resolve(this._handler.isDiscussionEnabled(context));
resolve(this._handler.comment(args.shortUrl, args.body, context));
}

@@ -1202,4 +1381,4 @@ catch (err) {

const result = { success: data };
output.writeMessageBegin("isDiscussionEnabled", thrift.MessageType.REPLY, requestId);
exports.IsDiscussionEnabled__ResultCodec.encode(result, output);
output.writeMessageBegin("comment", thrift.MessageType.REPLY, requestId);
exports.Comment__ResultCodec.encode(result, output);
output.writeMessageEnd();

@@ -1209,3 +1388,3 @@ return output.flush();

const result = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("isDiscussionEnabled", thrift.MessageType.EXCEPTION, requestId);
output.writeMessageBegin("comment", thrift.MessageType.EXCEPTION, requestId);
thrift.TApplicationExceptionCodec.encode(result, output);

@@ -1216,2 +1395,26 @@ output.writeMessageEnd();

}
process_reply(requestId, input, output, context) {
return new Promise((resolve, reject) => {
try {
const args = exports.Reply__ArgsCodec.decode(input);
input.readMessageEnd();
resolve(this._handler.reply(args.shortUrl, args.body, args.parentCommentId, context));
}
catch (err) {
reject(err);
}
}).then((data) => {
const result = { success: data };
output.writeMessageBegin("reply", thrift.MessageType.REPLY, requestId);
exports.Reply__ResultCodec.encode(result, output);
output.writeMessageEnd();
return output.flush();
}).catch((err) => {
const result = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("reply", thrift.MessageType.EXCEPTION, requestId);
thrift.TApplicationExceptionCodec.encode(result, output);
output.writeMessageEnd();
return output.flush();
});
}
process_recommend(requestId, input, output, context) {

@@ -1241,8 +1444,8 @@ return new Promise((resolve, reject) => {

}
process_comment(requestId, input, output, context) {
process_addUsername(requestId, input, output, context) {
return new Promise((resolve, reject) => {
try {
const args = exports.Comment__ArgsCodec.decode(input);
const args = exports.AddUsername__ArgsCodec.decode(input);
input.readMessageEnd();
resolve(this._handler.comment(args.shortUrl, args.body, context));
resolve(this._handler.addUsername(args.username, context));
}

@@ -1254,4 +1457,4 @@ catch (err) {

const result = { success: data };
output.writeMessageBegin("comment", thrift.MessageType.REPLY, requestId);
exports.Comment__ResultCodec.encode(result, output);
output.writeMessageBegin("addUsername", thrift.MessageType.REPLY, requestId);
exports.AddUsername__ResultCodec.encode(result, output);
output.writeMessageEnd();

@@ -1261,3 +1464,3 @@ return output.flush();

const result = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("comment", thrift.MessageType.EXCEPTION, requestId);
output.writeMessageBegin("addUsername", thrift.MessageType.EXCEPTION, requestId);
thrift.TApplicationExceptionCodec.encode(result, output);

@@ -1268,8 +1471,8 @@ output.writeMessageEnd();

}
process_reply(requestId, input, output, context) {
process_reportAbuse(requestId, input, output, context) {
return new Promise((resolve, reject) => {
try {
const args = exports.Reply__ArgsCodec.decode(input);
const args = exports.ReportAbuse__ArgsCodec.decode(input);
input.readMessageEnd();
resolve(this._handler.reply(args.shortUrl, args.body, args.parentCommentId, context));
resolve(this._handler.reportAbuse(args.parameters, context));
}

@@ -1281,4 +1484,4 @@ catch (err) {

const result = { success: data };
output.writeMessageBegin("reply", thrift.MessageType.REPLY, requestId);
exports.Reply__ResultCodec.encode(result, output);
output.writeMessageBegin("reportAbuse", thrift.MessageType.REPLY, requestId);
exports.ReportAbuse__ResultCodec.encode(result, output);
output.writeMessageEnd();

@@ -1288,3 +1491,3 @@ return output.flush();

const result = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("reply", thrift.MessageType.EXCEPTION, requestId);
output.writeMessageBegin("reportAbuse", thrift.MessageType.EXCEPTION, requestId);
thrift.TApplicationExceptionCodec.encode(result, output);

@@ -1291,0 +1494,0 @@ output.writeMessageEnd();

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ export declare const serviceName: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.IsMyGuardianEnabled__Result = exports.IsMyGuardianEnabled__ResultCodec = exports.NativeThriftPackageVersion__Result = exports.NativeThriftPackageVersion__ResultCodec = exports.IsMyGuardianEnabled__Args = exports.IsMyGuardianEnabled__ArgsCodec = exports.NativeThriftPackageVersion__Args = exports.NativeThriftPackageVersion__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Epic = exports.EpicCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ import * as Image from "./Image";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.LaunchSlideshow__Result = exports.LaunchSlideshow__ResultCodec = exports.LaunchSlideshow__Args = exports.LaunchSlideshow__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Image = exports.ImageCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

export * from "./PurchaseScreenReason";
export * from "./DiscussionNativeError";
export * from "./Rect";

@@ -11,4 +12,9 @@ export * from "./AdSlot";

export * from "./MetricFont";
export * from "./CommentResponse";
export * from "./DiscussionBadge";
export * from "./DiscussionUserProfile";
export * from "./DiscussionApiResponse";
export * from "./ReportAbuseParameters";
export * from "./Metric";
export * from "./DiscussionResponse";
export * from "./GetUserProfileResponse";
import * as Environment from "./Environment";

@@ -15,0 +21,0 @@ export { Environment as Environment };

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Newsletters = exports.Navigation = exports.Analytics = exports.Discussion = exports.Metrics = exports.Videos = exports.Gallery = exports.User = exports.Notifications = exports.Tag = exports.Acquisitions = exports.Commercial = exports.Environment = void 0;
/* tslint:disable */

@@ -36,14 +19,20 @@ /* eslint-disable */

*/
__exportStar(require("./PurchaseScreenReason"), exports);
__exportStar(require("./Rect"), exports);
__exportStar(require("./AdSlot"), exports);
__exportStar(require("./Topic"), exports);
__exportStar(require("./Image"), exports);
__exportStar(require("./Epic"), exports);
__exportStar(require("./MaybeEpic"), exports);
__exportStar(require("./VideoSlot"), exports);
__exportStar(require("./MetricPaint"), exports);
__exportStar(require("./MetricFont"), exports);
__exportStar(require("./CommentResponse"), exports);
__exportStar(require("./Metric"), exports);
__export(require("./PurchaseScreenReason"));
__export(require("./DiscussionNativeError"));
__export(require("./Rect"));
__export(require("./AdSlot"));
__export(require("./Topic"));
__export(require("./Image"));
__export(require("./Epic"));
__export(require("./MaybeEpic"));
__export(require("./VideoSlot"));
__export(require("./MetricPaint"));
__export(require("./MetricFont"));
__export(require("./DiscussionBadge"));
__export(require("./DiscussionUserProfile"));
__export(require("./DiscussionApiResponse"));
__export(require("./ReportAbuseParameters"));
__export(require("./Metric"));
__export(require("./DiscussionResponse"));
__export(require("./GetUserProfileResponse"));
const Environment = __importStar(require("./Environment"));

@@ -50,0 +39,0 @@ exports.Environment = Environment;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaybeEpic = exports.MaybeEpicCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

@@ -9,3 +9,3 @@ import * as thrift from "@creditkarma/thrift-server-core";

}
export type Metric = IMetricWithFirstPaint | IMetricWithFirstContentfulPaint | IMetricWithFont;
export declare type Metric = IMetricWithFirstPaint | IMetricWithFirstContentfulPaint | IMetricWithFont;
export interface IMetricWithFirstPaint {

@@ -29,3 +29,3 @@ __type: MetricType.MetricWithFirstPaint;

}
export type MetricArgs = IMetricWithFirstPaintArgs | IMetricWithFirstContentfulPaintArgs | IMetricWithFontArgs;
export declare type MetricArgs = IMetricWithFirstPaintArgs | IMetricWithFirstContentfulPaintArgs | IMetricWithFontArgs;
export interface IMetricWithFirstPaintArgs {

@@ -32,0 +32,0 @@ firstPaint: MetricPaint.IMetricPaintArgs;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetricCodec = exports.MetricType = void 0;
/* tslint:disable */

@@ -41,3 +24,3 @@ /* eslint-disable */

MetricType["MetricWithFont"] = "font";
})(MetricType || (exports.MetricType = MetricType = {}));
})(MetricType = exports.MetricType || (exports.MetricType = {}));
exports.MetricCodec = {

@@ -44,0 +27,0 @@ create(args) {

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetricFont = exports.MetricFontCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetricPaint = exports.MetricPaintCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ import * as Metric from "./Metric";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.SendMetrics__Result = exports.SendMetrics__ResultCodec = exports.SendMetrics__Args = exports.SendMetrics__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ export declare const serviceName: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.OpenPrivacyPolicy__Result = exports.OpenPrivacyPolicy__ResultCodec = exports.OpenPrivacySettings__Result = exports.OpenPrivacySettings__ResultCodec = exports.OpenPrivacyPolicy__Args = exports.OpenPrivacyPolicy__ArgsCodec = exports.OpenPrivacySettings__Args = exports.OpenPrivacySettings__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ export declare const serviceName: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.RequestSignUp__Result = exports.RequestSignUp__ResultCodec = exports.RequestSignUp__Args = exports.RequestSignUp__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ import * as Topic from "./Topic";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.IsFollowing__Result = exports.IsFollowing__ResultCodec = exports.Unfollow__Result = exports.Unfollow__ResultCodec = exports.Follow__Result = exports.Follow__ResultCodec = exports.IsFollowing__Args = exports.IsFollowing__ArgsCodec = exports.Unfollow__Args = exports.Unfollow__ArgsCodec = exports.Follow__Args = exports.Follow__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

{
"name": "@guardian/bridget",
"version": "0.0.0-2024-02-28",
"version": "0.0.0-2024-02-28-SNAPSHOT-DISC",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PurchaseScreenReason = void 0;
/* tslint:disable */

@@ -14,2 +13,2 @@ /* eslint-disable */

PurchaseScreenReason[PurchaseScreenReason["epic"] = 1] = "epic";
})(PurchaseScreenReason || (exports.PurchaseScreenReason = PurchaseScreenReason = {}));
})(PurchaseScreenReason = exports.PurchaseScreenReason || (exports.PurchaseScreenReason = {}));
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Rect = exports.RectCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ import * as Topic from "./Topic";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.IsFollowing__Result = exports.IsFollowing__ResultCodec = exports.Unfollow__Result = exports.Unfollow__ResultCodec = exports.Follow__Result = exports.Follow__ResultCodec = exports.IsFollowing__Args = exports.IsFollowing__ArgsCodec = exports.Unfollow__Args = exports.Unfollow__ArgsCodec = exports.Follow__Args = exports.Follow__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Topic = exports.TopicCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es2016", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Projects */
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Language and Environment */
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Modules */
"module": "commonjs", /* Specify what module code is generated. */
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
// "resolveJsonModule": true, /* Enable importing .json files. */
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
/* JavaScript Support */
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Emit */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
// "outDir": "./", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
// "newLine": "crlf", /* Set the newline character for emitting files. */
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
/* Interop Constraints */
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
/* Advanced Options */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
}
}
/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ export declare const serviceName: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.DoesCcpaApply__Result = exports.DoesCcpaApply__ResultCodec = exports.DiscussionId__Result = exports.DiscussionId__ResultCodec = exports.FilterSeenArticles__Result = exports.FilterSeenArticles__ResultCodec = exports.IsPremium__Result = exports.IsPremium__ResultCodec = exports.DoesCcpaApply__Args = exports.DoesCcpaApply__ArgsCodec = exports.DiscussionId__Args = exports.DiscussionId__ArgsCodec = exports.FilterSeenArticles__Args = exports.FilterSeenArticles__ArgsCodec = exports.IsPremium__Args = exports.IsPremium__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

/// <reference types="node" />
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";

@@ -4,0 +3,0 @@ import * as VideoSlot from "./VideoSlot";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Processor = exports.Client = exports.UpdateVideos__Result = exports.UpdateVideos__ResultCodec = exports.InsertVideos__Result = exports.InsertVideos__ResultCodec = exports.UpdateVideos__Args = exports.UpdateVideos__ArgsCodec = exports.InsertVideos__Args = exports.InsertVideos__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.VideoSlot = exports.VideoSlotCodec = void 0;
/* tslint:disable */

@@ -28,0 +11,0 @@ /* eslint-disable */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc