Skip to content

Commit

Permalink
Update thrift bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
HampusAdolfsson committed Nov 6, 2023
1 parent 86909f2 commit ed57502
Show file tree
Hide file tree
Showing 27 changed files with 4,753 additions and 1,074 deletions.
1 change: 1 addition & 0 deletions src/thrift/bindings/CPUStatusPollControl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult
import WhatNext = ttypes.WhatNext
import CoreStatus = ttypes.CoreStatus
import Tools = ttypes.Tools
import AMP_VERSION = ttypes.AMP_VERSION
import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE
import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE
import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE
Expand Down
1 change: 1 addition & 0 deletions src/thrift/bindings/CoresRegistry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult
import WhatNext = ttypes.WhatNext
import CoreStatus = ttypes.CoreStatus
import Tools = ttypes.Tools
import AMP_VERSION = ttypes.AMP_VERSION
import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE
import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE
import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE
Expand Down
1 change: 1 addition & 0 deletions src/thrift/bindings/DebuggerStarter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult
import WhatNext = ttypes.WhatNext
import CoreStatus = ttypes.CoreStatus
import Tools = ttypes.Tools
import AMP_VERSION = ttypes.AMP_VERSION
import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE
import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE
import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE
Expand Down
6 changes: 6 additions & 0 deletions src/thrift/bindings/EventBus.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult
import WhatNext = ttypes.WhatNext
import CoreStatus = ttypes.CoreStatus
import Tools = ttypes.Tools
import AMP_VERSION = ttypes.AMP_VERSION
import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE
import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE
import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE
Expand Down Expand Up @@ -87,6 +88,10 @@ declare class Client extends HeartbeatService.Client {

Fire(toBeFired: Event, callback?: (error: void, response: void)=>void): void;

RegisterWithVersion(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number, ampVersion: number): Q.Promise<void>;

RegisterWithVersion(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number, ampVersion: number, callback?: (error: ttypes.EventBusRegistrationFailed, response: void)=>void): void;

Register(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number): Q.Promise<void>;

Register(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number, callback?: (error: ttypes.EventBusRegistrationFailed, response: void)=>void): void;
Expand All @@ -98,5 +103,6 @@ declare class Processor extends HeartbeatService.Processor {
constructor(handler: object);
process(input: thrift.TProtocol, output: thrift.TProtocol): void;
process_Fire(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
process_RegisterWithVersion(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
process_Register(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
}
240 changes: 240 additions & 0 deletions src/thrift/bindings/EventBus.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/thrift/bindings/ExecutionControl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult
import WhatNext = ttypes.WhatNext
import CoreStatus = ttypes.CoreStatus
import Tools = ttypes.Tools
import AMP_VERSION = ttypes.AMP_VERSION
import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE
import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE
import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE
Expand Down
12 changes: 12 additions & 0 deletions src/thrift/bindings/Frontend.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Thrift = thrift.Thrift;
import Q = thrift.Q;
import Int64 = require('node-int64');
import shared_ttypes = require('./shared_types');
import themes_ttypes = require('./themes_types');


import ttypes = require('./frontend_types');
Expand Down Expand Up @@ -259,6 +260,16 @@ declare class Client extends HeartbeatService.Client {
* specified alias id.
*/
resolveAliasForFile(fileName: string, suggestedFile: string, callback?: (error: void, response: string)=>void): void;

/**
* Resolve the current theme that is used by the client.
*/
getActiveTheme(): Q.Promise<{ [k: number /*themes_ttypes.ThriftDisplayElement*/]: themes_ttypes.ColorSchema; }>;

/**
* Resolve the current theme that is used by the client.
*/
getActiveTheme(callback?: (error: void, response: { [k: number /*themes_ttypes.ThriftDisplayElement*/]: themes_ttypes.ColorSchema; })=>void): void;
}

declare class Processor extends HeartbeatService.Processor {
Expand All @@ -283,4 +294,5 @@ declare class Processor extends HeartbeatService.Processor {
process_openMultipleElementSelectionDialog(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
process_editSourceLocation(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
process_resolveAliasForFile(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
process_getActiveTheme(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void;
}
Loading

0 comments on commit ed57502

Please sign in to comment.