@temporalio/cloud-api-definitions
Advanced tools
Comparing version 0.0.1-alpha.1 to 0.0.1-alpha.2
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UiClient = void 0; | ||
class UiClient { | ||
constructor(hostname) { | ||
this.hostname = hostname; | ||
} | ||
getUsersWithAccountRoles() { | ||
console.log("yoooo"); | ||
} | ||
} | ||
exports.UiClient = UiClient; | ||
exports.UIService = void 0; | ||
const grpc_js_1 = __importDefault(require("@grpc/grpc-js")); | ||
const proto_loader_1 = __importDefault(require("@grpc/proto-loader")); | ||
const PROTO_PATH = "../../proto/ui-api/api/ui-service/service.proto"; | ||
const options = { | ||
keepCase: true, | ||
longs: String, | ||
enums: String, | ||
defaults: true, | ||
oneofs: true, | ||
}; | ||
var packageDefinition = proto_loader_1.default.loadSync(PROTO_PATH, options); | ||
exports.UIService = grpc_js_1.default.loadPackageDefinition(packageDefinition).UIService; |
@@ -1,10 +0,17 @@ | ||
export class UiClient { | ||
private hostname: string; | ||
constructor(hostname: string) { | ||
this.hostname = hostname; | ||
} | ||
import grpc from "@grpc/grpc-js"; | ||
import protoLoader from "@grpc/proto-loader"; | ||
public getUsersWithAccountRoles() { | ||
console.log("yoooo"); | ||
} | ||
} | ||
const PROTO_PATH = "../../proto/ui-api/api/ui-service/service.proto"; | ||
const options = { | ||
keepCase: true, | ||
longs: String, | ||
enums: String, | ||
defaults: true, | ||
oneofs: true, | ||
}; | ||
var packageDefinition = protoLoader.loadSync(PROTO_PATH, options); | ||
export const UIService = | ||
grpc.loadPackageDefinition(packageDefinition).UIService; |
{ | ||
"name": "@temporalio/cloud-api-definitions", | ||
"version": "0.0.1-alpha.1", | ||
"version": "0.0.1-alpha.2", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "/api/**/*", |
775330
19125