Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix schema issues #751

Merged
merged 1 commit into from
Feb 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "botframework-schema";
import { ConnectorClientContext } from "./connectorClientContext";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
import { ConnectorClientContext } from "./connectorClientContext";

class ConnectorClient extends ConnectorClientContext {
// Operation groups
Expand All @@ -29,10 +29,6 @@ class ConnectorClient extends ConnectorClientContext {

// Operation Specifications

export {
ConnectorClient,
ConnectorClientContext,
Models as ConnectorModels,
Mappers as ConnectorMappers
};
export * from "./operations";
export { ConnectorClient, ConnectorClientContext, Models as ConnectorModels, Mappers as ConnectorMappers };

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "botframework-schema";
import * as Models from "./models";

const packageName = "botframework-connector";
const packageVersion = "4.0.0";
Expand Down
281 changes: 281 additions & 0 deletions libraries/botframework-connector/src/connectorApi/models/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
import * as msRest from "@azure/ms-rest-js";
import { ServiceClientOptions } from "@azure/ms-rest-js";
import { AttachmentInfo, ChannelAccount, ConversationResourceResponse, ConversationsResult, PagedMembersResult, ResourceResponse } from "botframework-schema";
export * from "botframework-schema";

/**
* An interface representing ConnectorClientOptions.
*/
export interface ConnectorClientOptions extends ServiceClientOptions {
baseUri: string;
}

/**
* Optional Parameters.
*/
export interface ConversationsGetConversationsOptionalParams extends msRest.RequestOptionsBase {
/**
* skip or continuation token
*/
continuationToken: string;
}

/**
* Optional Parameters.
*/
export interface ConversationsGetConversationPagedMembersOptionalParams extends msRest.RequestOptionsBase {
/**
* Suggested page size
*/
pageSize: number;
/**
* Continuation Token
*/
continuationToken: string;
}

/**
* Contains response data for the getAttachmentInfo operation.
*/
export type AttachmentsGetAttachmentInfoResponse = AttachmentInfo & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AttachmentInfo;
};
};

/**
* Contains response data for the getAttachment operation.
*/
export type AttachmentsGetAttachmentResponse = {
/**
* BROWSER ONLY
*
* The response body as a browser Blob.
* Always undefined in node.js.
*/
blobBody: Promise<Blob>;

/**
* NODEJS ONLY
*
* The response body as a node.js Readable stream.
* Always undefined in the browser.
*/
readableStreamBody: NodeJS.ReadableStream;

/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse;
};

/**
* Contains response data for the getConversations operation.
*/
export type ConversationsGetConversationsResponse = ConversationsResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ConversationsResult;
};
};

/**
* Contains response data for the createConversation operation.
*/
export type ConversationsCreateConversationResponse = ConversationResourceResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ConversationResourceResponse;
};
};

/**
* Contains response data for the sendToConversation operation.
*/
export type ConversationsSendToConversationResponse = ResourceResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ResourceResponse;
};
};

/**
* Contains response data for the sendConversationHistory operation.
*/
export type ConversationsSendConversationHistoryResponse = ResourceResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ResourceResponse;
};
};

/**
* Contains response data for the updateActivity operation.
*/
export type ConversationsUpdateActivityResponse = ResourceResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ResourceResponse;
};
};

/**
* Contains response data for the replyToActivity operation.
*/
export type ConversationsReplyToActivityResponse = ResourceResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ResourceResponse;
};
};

/**
* Contains response data for the getConversationMembers operation.
*/
export type ConversationsGetConversationMembersResponse = Array<ChannelAccount> & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ChannelAccount[];
};
};

/**
* Contains response data for the getConversationPagedMembers operation.
*/
export type ConversationsGetConversationPagedMembersResponse = PagedMembersResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: PagedMembersResult;
};
};

/**
* Contains response data for the getActivityMembers operation.
*/
export type ConversationsGetActivityMembersResponse = Array<ChannelAccount> & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ChannelAccount[];
};
};

/**
* Contains response data for the uploadAttachment operation.
*/
export type ConversationsUploadAttachmentResponse = ResourceResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ResourceResponse;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "botframework-schema";
import { ConnectorClientContext } from "../connectorClientContext";
import * as Models from "../models";
import * as Mappers from "../models/attachmentsMappers";
import * as Parameters from "../models/parameters";
import { ConnectorClientContext } from "../connectorClientContext";

/** Class representing a Attachments. */
export class Attachments {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "botframework-schema";
import { ConnectorClientContext } from "../connectorClientContext";
import * as Models from "../models";
import * as Mappers from "../models/conversationsMappers";
import * as Parameters from "../models/parameters";
import { ConnectorClientContext } from "../connectorClientContext";

/** Class representing a Conversations. */
export class Conversations {
Expand Down
Loading