This commit is contained in:
Sharad Agarwal 2016-03-14 17:57:25 -07:00
Родитель 5ed6165630
Коммит 4c3d548f29
87 изменённых файлов: 7680 добавлений и 8285 удалений

Просмотреть файл

@ -1,154 +1,154 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{57144b52-38fb-449b-881a-c4e24f27977e}</ProjectGuid> <ProjectGuid>{57144b52-38fb-449b-881a-c4e24f27977e}</ProjectGuid>
<ProjectHome /> <ProjectHome />
<ProjectView>ShowAllFiles</ProjectView> <ProjectView>ShowAllFiles</ProjectView>
<StartupFile>socialPlusClient.js</StartupFile> <StartupFile>socialPlusClient.js</StartupFile>
<WorkingDirectory>.</WorkingDirectory> <WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath> <OutputPath>.</OutputPath>
<ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids> <ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids>
<TypeScriptSourceMap>true</TypeScriptSourceMap> <TypeScriptSourceMap>true</TypeScriptSourceMap>
<TypeScriptModuleKind>CommonJS</TypeScriptModuleKind> <TypeScriptModuleKind>CommonJS</TypeScriptModuleKind>
<EnableTypeScript>true</EnableTypeScript> <EnableTypeScript>true</EnableTypeScript>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" /> <PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
<PropertyGroup Condition="'$(Configuration)' == 'Release'" /> <PropertyGroup Condition="'$(Configuration)' == 'Release'" />
<ItemGroup> <ItemGroup>
<Content Include="Microsoft.licenseheader" /> <Content Include="swagger.json" />
<Content Include="swagger.json" /> <Content Include="swagger2.json" />
<TypeScriptCompile Include="socialPlusClient.d.ts" /> <TypeScriptCompile Include="socialPlusClient.d.ts" />
<Compile Include="socialPlusClient.js" /> <Compile Include="socialPlusClient.js" />
<TypeScriptCompile Include="models\index.d.ts" /> <TypeScriptCompile Include="models\index.d.ts" />
<Compile Include="models\activityView.js" /> <Compile Include="models\activityView.js" />
<Compile Include="models\appCompactView.js" /> <Compile Include="models\appCompactView.js" />
<Compile Include="models\buildsCurrentResponse.js" /> <Compile Include="models\buildsCurrentResponse.js" />
<Compile Include="models\commentView.js" /> <Compile Include="models\commentView.js" />
<Compile Include="models\contentCompactView.js" /> <Compile Include="models\contentCompactView.js" />
<Compile Include="models\countResponse.js" /> <Compile Include="models\countResponse.js" />
<Compile Include="models\feedResponseActivityView.js" /> <Compile Include="models\feedResponseActivityView.js" />
<Compile Include="models\feedResponseCommentView.js" /> <Compile Include="models\feedResponseCommentView.js" />
<Compile Include="models\feedResponseReplyView.js" /> <Compile Include="models\feedResponseReplyView.js" />
<Compile Include="models\feedResponseTopicView.js" /> <Compile Include="models\feedResponseTopicView.js" />
<Compile Include="models\feedResponseUserCompactView.js" /> <Compile Include="models\feedResponseUserCompactView.js" />
<Compile Include="models\feedResponseUserProfileView.js" /> <Compile Include="models\feedResponseUserProfileView.js" />
<Compile Include="models\getRequestTokenResponse.js" /> <Compile Include="models\getRequestTokenResponse.js" />
<Compile Include="models\index.js" /> <Compile Include="models\index.js" />
<Compile Include="models\linkedAccountView.js" /> <Compile Include="models\linkedAccountView.js" />
<Compile Include="models\postBlobResponse.js" /> <Compile Include="models\postBlobResponse.js" />
<Compile Include="models\postBlockedUserRequest.js" /> <Compile Include="models\postBlockedUserRequest.js" />
<Compile Include="models\postCommentRequest.js" /> <Compile Include="models\postCommentRequest.js" />
<Compile Include="models\postCommentResponse.js" /> <Compile Include="models\postCommentResponse.js" />
<Compile Include="models\postFollowerRequest.js" /> <Compile Include="models\postFollowerRequest.js" />
<Compile Include="models\postFollowingRequest.js" /> <Compile Include="models\postFollowingRequest.js" />
<Compile Include="models\postImageResponse.js" /> <Compile Include="models\postImageResponse.js" />
<Compile Include="models\postLinkedAccountRequest.js" /> <Compile Include="models\postLinkedAccountRequest.js" />
<Compile Include="models\postPinRequest.js" /> <Compile Include="models\postPinRequest.js" />
<Compile Include="models\postReplyRequest.js" /> <Compile Include="models\postReplyRequest.js" />
<Compile Include="models\postReplyResponse.js" /> <Compile Include="models\postReplyResponse.js" />
<Compile Include="models\postReportRequest.js" /> <Compile Include="models\postReportRequest.js" />
<Compile Include="models\postSessionRequest.js" /> <Compile Include="models\postSessionRequest.js" />
<Compile Include="models\postSessionResponse.js" /> <Compile Include="models\postSessionResponse.js" />
<Compile Include="models\postTopicRequest.js" /> <Compile Include="models\postTopicRequest.js" />
<Compile Include="models\postTopicResponse.js" /> <Compile Include="models\postTopicResponse.js" />
<Compile Include="models\postUserRequest.js" /> <Compile Include="models\postUserRequest.js" />
<Compile Include="models\postUserResponse.js" /> <Compile Include="models\postUserResponse.js" />
<Compile Include="models\putNotificationsStatusRequest.js" /> <Compile Include="models\putNotificationsStatusRequest.js" />
<Compile Include="models\putPushRegistrationRequest.js" /> <Compile Include="models\putPushRegistrationRequest.js" />
<Compile Include="models\putTopicRequest.js" /> <Compile Include="models\putTopicRequest.js" />
<Compile Include="models\putUserInfoRequest.js" /> <Compile Include="models\putUserInfoRequest.js" />
<Compile Include="models\putUserPhotoRequest.js" /> <Compile Include="models\putUserPhotoRequest.js" />
<Compile Include="models\putUserVisibilityRequest.js" /> <Compile Include="models\putUserVisibilityRequest.js" />
<Compile Include="models\replyView.js" /> <Compile Include="models\replyView.js" />
<Compile Include="models\topicView.js" /> <Compile Include="models\topicView.js" />
<Compile Include="models\userCompactView.js" /> <Compile Include="models\userCompactView.js" />
<Compile Include="models\userProfileView.js" /> <Compile Include="models\userProfileView.js" />
<TypeScriptCompile Include="operations\index.d.ts" /> <TypeScriptCompile Include="operations\index.d.ts" />
<Compile Include="operations\blobs.js" /> <Compile Include="operations\blobs.js" />
<Compile Include="operations\builds.js" /> <Compile Include="operations\builds.js" />
<Compile Include="operations\commentLikes.js" /> <Compile Include="operations\commentLikes.js" />
<Compile Include="operations\commentReplies.js" /> <Compile Include="operations\commentReplies.js" />
<Compile Include="operations\commentReports.js" /> <Compile Include="operations\commentReports.js" />
<Compile Include="operations\comments.js" /> <Compile Include="operations\comments.js" />
<Compile Include="operations\hashtags.js" /> <Compile Include="operations\hashtags.js" />
<Compile Include="operations\images.js" /> <Compile Include="operations\images.js" />
<Compile Include="operations\index.js" /> <Compile Include="operations\index.js" />
<Compile Include="operations\myAppFollowing.js" /> <Compile Include="operations\myAppFollowing.js" />
<Compile Include="operations\myApps.js" /> <Compile Include="operations\myApps.js" />
<Compile Include="operations\myBlockedUsers.js" /> <Compile Include="operations\myBlockedUsers.js" />
<Compile Include="operations\myFollowers.js" /> <Compile Include="operations\myFollowers.js" />
<Compile Include="operations\myFollowing.js" /> <Compile Include="operations\myFollowing.js" />
<Compile Include="operations\myLikes.js" /> <Compile Include="operations\myLikes.js" />
<Compile Include="operations\myLinkedAccounts.js" /> <Compile Include="operations\myLinkedAccounts.js" />
<Compile Include="operations\myNotifications.js" /> <Compile Include="operations\myNotifications.js" />
<Compile Include="operations\myPendingUsers.js" /> <Compile Include="operations\myPendingUsers.js" />
<Compile Include="operations\myPins.js" /> <Compile Include="operations\myPins.js" />
<Compile Include="operations\myPushRegistrations.js" /> <Compile Include="operations\myPushRegistrations.js" />
<Compile Include="operations\myTopics.js" /> <Compile Include="operations\myTopics.js" />
<Compile Include="operations\replies.js" /> <Compile Include="operations\replies.js" />
<Compile Include="operations\replyLikes.js" /> <Compile Include="operations\replyLikes.js" />
<Compile Include="operations\replyReports.js" /> <Compile Include="operations\replyReports.js" />
<Compile Include="operations\requestTokens.js" /> <Compile Include="operations\requestTokens.js" />
<Compile Include="operations\search.js" /> <Compile Include="operations\search.js" />
<Compile Include="operations\sessions.js" /> <Compile Include="operations\sessions.js" />
<Compile Include="operations\topicComments.js" /> <Compile Include="operations\topicComments.js" />
<Compile Include="operations\topicLikes.js" /> <Compile Include="operations\topicLikes.js" />
<Compile Include="operations\topicReports.js" /> <Compile Include="operations\topicReports.js" />
<Compile Include="operations\topics.js" /> <Compile Include="operations\topics.js" />
<Compile Include="operations\userFollowers.js" /> <Compile Include="operations\userFollowers.js" />
<Compile Include="operations\userFollowing.js" /> <Compile Include="operations\userFollowing.js" />
<Compile Include="operations\userReports.js" /> <Compile Include="operations\userReports.js" />
<Compile Include="operations\users.js" /> <Compile Include="operations\users.js" />
<Compile Include="operations\userTopics.js" /> <Compile Include="operations\userTopics.js" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="models" /> <Folder Include="models" />
<Folder Include="operations" /> <Folder Include="operations" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<!--Do not delete the following Import Project. While this appears to do nothing it is a marker for setting TypeScript properties before our import that depends on them.--> <!--Do not delete the following Import Project. While this appears to do nothing it is a marker for setting TypeScript properties before our import that depends on them.-->
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="False" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="False" />
<Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsTools.targets" /> <Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsTools.targets" />
<ProjectExtensions> <ProjectExtensions>
<VisualStudio> <VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties> <WebProjectProperties>
<UseIIS>False</UseIIS> <UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort> <AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort> <DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath> <DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:48022/</IISUrl> <IISUrl>http://localhost:48022/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication> <NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>True</UseCustomServer> <UseCustomServer>True</UseCustomServer>
<CustomServerUrl>http://localhost:1337</CustomServerUrl> <CustomServerUrl>http://localhost:1337</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties> </WebProjectProperties>
</FlavorProperties> </FlavorProperties>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" User=""> <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" User="">
<WebProjectProperties> <WebProjectProperties>
<StartPageUrl> <StartPageUrl>
</StartPageUrl> </StartPageUrl>
<StartAction>CurrentPage</StartAction> <StartAction>CurrentPage</StartAction>
<AspNetDebugging>True</AspNetDebugging> <AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging> <SilverlightDebugging>False</SilverlightDebugging>
<NativeDebugging>False</NativeDebugging> <NativeDebugging>False</NativeDebugging>
<SQLDebugging>False</SQLDebugging> <SQLDebugging>False</SQLDebugging>
<ExternalProgram> <ExternalProgram>
</ExternalProgram> </ExternalProgram>
<StartExternalURL> <StartExternalURL>
</StartExternalURL> </StartExternalURL>
<StartCmdLineArguments> <StartCmdLineArguments>
</StartCmdLineArguments> </StartCmdLineArguments>
<StartWorkingDirectory> <StartWorkingDirectory>
</StartWorkingDirectory> </StartWorkingDirectory>
<EnableENC>False</EnableENC> <EnableENC>False</EnableENC>
<AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug> <AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug>
</WebProjectProperties> </WebProjectProperties>
</FlavorProperties> </FlavorProperties>
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
</Project> </Project>

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -25,8 +19,8 @@ var util = require('util');
* @member {date} createdTime Gets or sets created time * @member {date} createdTime Gets or sets created time
* *
* @member {string} activityType Gets or sets activity type. Possible values * @member {string} activityType Gets or sets activity type. Possible values
* for this property include: 'Like', 'Comment', 'Reply', 'CommentPeer', * include: 'Like', 'Comment', 'Reply', 'CommentPeer', 'ReplyPeer',
* 'ReplyPeer', 'Following', 'FollowRequest', 'FollowAccept'. * 'Following', 'FollowRequest', 'FollowAccept'
* *
* @member {array} actorUsers Gets or sets actor users * @member {array} actorUsers Gets or sets actor users
* *
@ -44,17 +38,16 @@ var util = require('util');
* @member {string} [actedOnUser.photoUrl] Gets or sets photo url of the user * @member {string} [actedOnUser.photoUrl] Gets or sets photo url of the user
* *
* @member {string} [actedOnUser.visibility] Gets or sets visibility of the * @member {string} [actedOnUser.visibility] Gets or sets visibility of the
* user. Possible values for this property include: 'Public', 'Private'. * user. Possible values include: 'Public', 'Private'
* *
* @member {string} [actedOnUser.followerStatus] Gets or sets follower * @member {string} [actedOnUser.followerStatus] Gets or sets follower
* relationship status of the querying user. Possible values for this * relationship status of the querying user. Possible values include: 'None',
* property include: 'None', 'Follow', 'Pending', 'Blocked'. * 'Follow', 'Pending', 'Blocked'
* *
* @member {object} [actedOnContent] Gets or sets acted on content * @member {object} [actedOnContent] Gets or sets acted on content
* *
* @member {string} [actedOnContent.contentType] Gets or sets content type. * @member {string} [actedOnContent.contentType] Gets or sets content type.
* Possible values for this property include: 'Unknown', 'Topic', 'Comment', * Possible values include: 'Unknown', 'Topic', 'Comment', 'Reply'
* 'Reply'.
* *
* @member {string} [actedOnContent.contentHandle] Gets or sets content handle * @member {string} [actedOnContent.contentHandle] Gets or sets content handle
* *
@ -65,8 +58,7 @@ var util = require('util');
* @member {string} [actedOnContent.text] Gets or sets content text * @member {string} [actedOnContent.text] Gets or sets content text
* *
* @member {string} [actedOnContent.blobType] Gets or sets content blob type. * @member {string} [actedOnContent.blobType] Gets or sets content blob type.
* Possible values for this property include: 'Unknown', 'Image', 'Video', * Possible values include: 'Unknown', 'Image', 'Video', 'Custom'
* 'Custom'.
* *
* @member {string} [actedOnContent.blobHandle] Gets or sets content blob * @member {string} [actedOnContent.blobHandle] Gets or sets content blob
* handle * handle
@ -89,7 +81,7 @@ var util = require('util');
* @member {string} [app.iconUrl] Gets or sets app icon url * @member {string} [app.iconUrl] Gets or sets app icon url
* *
* @member {string} [app.platformType] Gets or sets platform type. Possible * @member {string} [app.platformType] Gets or sets platform type. Possible
* values for this property include: 'Windows', 'Android', 'IOS'. * values include: 'Windows', 'Android', 'IOS'
* *
* @member {string} [app.deepLink] Gets or sets app deep link * @member {string} [app.deepLink] Gets or sets app deep link
* *

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -25,7 +19,7 @@
* @member {string} [iconUrl] Gets or sets app icon url * @member {string} [iconUrl] Gets or sets app icon url
* *
* @member {string} platformType Gets or sets platform type. Possible values * @member {string} platformType Gets or sets platform type. Possible values
* for this property include: 'Windows', 'Android', 'IOS'. * include: 'Windows', 'Android', 'IOS'
* *
* @member {string} [deepLink] Gets or sets app deep link * @member {string} [deepLink] Gets or sets app deep link
* *

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -37,16 +31,16 @@ var models = require('./index');
* @member {string} [user.photoUrl] Gets or sets photo url of the user * @member {string} [user.photoUrl] Gets or sets photo url of the user
* *
* @member {string} [user.visibility] Gets or sets visibility of the user. * @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values for this property include: 'Public', 'Private'. * Possible values include: 'Public', 'Private'
* *
* @member {string} [user.followerStatus] Gets or sets follower relationship * @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values for this property include: * status of the querying user. Possible values include: 'None', 'Follow',
* 'None', 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} text Gets or sets comment text * @member {string} text Gets or sets comment text
* *
* @member {string} [blobType] Gets or sets comment blob type. Possible values * @member {string} [blobType] Gets or sets comment blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets comment blob handle * @member {string} [blobHandle] Gets or sets comment blob handle
* *
@ -62,7 +56,7 @@ var models = require('./index');
* querying user has liked the comment * querying user has liked the comment
* *
* @member {string} [contentStatus] Gets or sets content status. Possible * @member {string} [contentStatus] Gets or sets content status. Possible
* values for this property include: 'Active', 'Banned'. * values include: 'Active', 'Banned'
* *
*/ */
function CommentView() { function CommentView() {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -16,8 +10,8 @@
* Initializes a new instance of the ContentCompactView class. * Initializes a new instance of the ContentCompactView class.
* @constructor * @constructor
* Content compact view * Content compact view
* @member {string} contentType Gets or sets content type. Possible values for * @member {string} contentType Gets or sets content type. Possible values
* this property include: 'Unknown', 'Topic', 'Comment', 'Reply'. * include: 'Unknown', 'Topic', 'Comment', 'Reply'
* *
* @member {string} contentHandle Gets or sets content handle * @member {string} contentHandle Gets or sets content handle
* *
@ -28,7 +22,7 @@
* @member {string} text Gets or sets content text * @member {string} text Gets or sets content text
* *
* @member {string} [blobType] Gets or sets content blob type. Possible values * @member {string} [blobType] Gets or sets content blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets content blob handle * @member {string} [blobHandle] Gets or sets content blob handle
* *

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

507
models/index.d.ts поставляемый
Просмотреть файл

@ -1,7 +1,6 @@
/* /*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Changes may cause incorrect behavior and will be lost if the code is * the MIT License. See LICENSE in the project root for license information.
* regenerated.
*/ */
@ -45,107 +44,6 @@ export interface BuildsCurrentResponse {
dirtyFiles?: string[]; dirtyFiles?: string[];
} }
/**
* @class
* Initializes a new instance of the CommentView class.
* @constructor
* Comment view
* @member {string} commentHandle Gets or sets comment handle
*
* @member {string} topicHandle Gets or sets parent topic handle
*
* @member {date} createdTime Gets or sets created time
*
* @member {object} user Gets or sets owner of the comment
*
* @member {string} [user.userHandle] Gets or sets user handle
*
* @member {string} [user.firstName] Gets or sets first name of the user
*
* @member {string} [user.lastName] Gets or sets last name of the user
*
* @member {string} [user.photoHandle] Gets or sets photo handle of the user
*
* @member {string} [user.photoUrl] Gets or sets photo url of the user
*
* @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values for this property include: 'Public', 'Private'.
*
* @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values for this property include:
* 'None', 'Follow', 'Pending', 'Blocked'.
*
* @member {string} text Gets or sets comment text
*
* @member {string} [blobType] Gets or sets comment blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'.
*
* @member {string} [blobHandle] Gets or sets comment blob handle
*
* @member {string} [blobUrl] Gets or sets comment blob url
*
* @member {string} [language] Gets or sets comment language
*
* @member {number} totalLikes Gets or sets total likes for the comment
*
* @member {number} totalReplies Gets or sets total replies for the comment
*
* @member {boolean} liked Gets or sets a value indicating whether the
* querying user has liked the comment
*
* @member {string} [contentStatus] Gets or sets content status. Possible
* values for this property include: 'Active', 'Banned'.
*
*/
export interface CommentView {
commentHandle: string;
topicHandle: string;
createdTime: Date;
user: UserCompactView;
text: string;
blobType?: string;
blobHandle?: string;
blobUrl?: string;
language?: string;
totalLikes: number;
totalReplies: number;
liked: boolean;
contentStatus?: string;
}
/**
* @class
* Initializes a new instance of the UserCompactView class.
* @constructor
* User compact view
* @member {string} userHandle Gets or sets user handle
*
* @member {string} firstName Gets or sets first name of the user
*
* @member {string} lastName Gets or sets last name of the user
*
* @member {string} [photoHandle] Gets or sets photo handle of the user
*
* @member {string} [photoUrl] Gets or sets photo url of the user
*
* @member {string} visibility Gets or sets visibility of the user. Possible
* values for this property include: 'Public', 'Private'.
*
* @member {string} followerStatus Gets or sets follower relationship status
* of the querying user. Possible values for this property include: 'None',
* 'Follow', 'Pending', 'Blocked'.
*
*/
export interface UserCompactView {
userHandle: string;
firstName: string;
lastName: string;
photoHandle?: string;
photoUrl?: string;
visibility: string;
followerStatus: string;
}
/** /**
* @class * @class
* Initializes a new instance of the PostCommentRequest class. * Initializes a new instance of the PostCommentRequest class.
@ -154,7 +52,7 @@ export interface UserCompactView {
* @member {string} text Gets or sets comment text * @member {string} text Gets or sets comment text
* *
* @member {string} [blobType] Gets or sets comment blob type. Possible values * @member {string} [blobType] Gets or sets comment blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets comment blob handle * @member {string} [blobHandle] Gets or sets comment blob handle
* *
@ -195,6 +93,107 @@ export interface FeedResponseCommentView {
cursor: string; cursor: string;
} }
/**
* @class
* Initializes a new instance of the CommentView class.
* @constructor
* Comment view
* @member {string} commentHandle Gets or sets comment handle
*
* @member {string} topicHandle Gets or sets parent topic handle
*
* @member {date} createdTime Gets or sets created time
*
* @member {object} user Gets or sets owner of the comment
*
* @member {string} [user.userHandle] Gets or sets user handle
*
* @member {string} [user.firstName] Gets or sets first name of the user
*
* @member {string} [user.lastName] Gets or sets last name of the user
*
* @member {string} [user.photoHandle] Gets or sets photo handle of the user
*
* @member {string} [user.photoUrl] Gets or sets photo url of the user
*
* @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values include: 'Public', 'Private'
*
* @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values include: 'None', 'Follow',
* 'Pending', 'Blocked'
*
* @member {string} text Gets or sets comment text
*
* @member {string} [blobType] Gets or sets comment blob type. Possible values
* include: 'Unknown', 'Image', 'Video', 'Custom'
*
* @member {string} [blobHandle] Gets or sets comment blob handle
*
* @member {string} [blobUrl] Gets or sets comment blob url
*
* @member {string} [language] Gets or sets comment language
*
* @member {number} totalLikes Gets or sets total likes for the comment
*
* @member {number} totalReplies Gets or sets total replies for the comment
*
* @member {boolean} liked Gets or sets a value indicating whether the
* querying user has liked the comment
*
* @member {string} [contentStatus] Gets or sets content status. Possible
* values include: 'Active', 'Banned'
*
*/
export interface CommentView {
commentHandle: string;
topicHandle: string;
createdTime: Date;
user: UserCompactView;
text: string;
blobType?: string;
blobHandle?: string;
blobUrl?: string;
language?: string;
totalLikes: number;
totalReplies: number;
liked: boolean;
contentStatus?: string;
}
/**
* @class
* Initializes a new instance of the UserCompactView class.
* @constructor
* User compact view
* @member {string} userHandle Gets or sets user handle
*
* @member {string} firstName Gets or sets first name of the user
*
* @member {string} lastName Gets or sets last name of the user
*
* @member {string} [photoHandle] Gets or sets photo handle of the user
*
* @member {string} [photoUrl] Gets or sets photo url of the user
*
* @member {string} visibility Gets or sets visibility of the user. Possible
* values include: 'Public', 'Private'
*
* @member {string} followerStatus Gets or sets follower relationship status
* of the querying user. Possible values include: 'None', 'Follow',
* 'Pending', 'Blocked'
*
*/
export interface UserCompactView {
userHandle: string;
firstName: string;
lastName: string;
photoHandle?: string;
photoUrl?: string;
visibility: string;
followerStatus: string;
}
/** /**
* @class * @class
* Initializes a new instance of the PostImageResponse class. * Initializes a new instance of the PostImageResponse class.
@ -259,8 +258,8 @@ export interface FeedResponseActivityView {
* @member {date} createdTime Gets or sets created time * @member {date} createdTime Gets or sets created time
* *
* @member {string} activityType Gets or sets activity type. Possible values * @member {string} activityType Gets or sets activity type. Possible values
* for this property include: 'Like', 'Comment', 'Reply', 'CommentPeer', * include: 'Like', 'Comment', 'Reply', 'CommentPeer', 'ReplyPeer',
* 'ReplyPeer', 'Following', 'FollowRequest', 'FollowAccept'. * 'Following', 'FollowRequest', 'FollowAccept'
* *
* @member {array} actorUsers Gets or sets actor users * @member {array} actorUsers Gets or sets actor users
* *
@ -278,17 +277,16 @@ export interface FeedResponseActivityView {
* @member {string} [actedOnUser.photoUrl] Gets or sets photo url of the user * @member {string} [actedOnUser.photoUrl] Gets or sets photo url of the user
* *
* @member {string} [actedOnUser.visibility] Gets or sets visibility of the * @member {string} [actedOnUser.visibility] Gets or sets visibility of the
* user. Possible values for this property include: 'Public', 'Private'. * user. Possible values include: 'Public', 'Private'
* *
* @member {string} [actedOnUser.followerStatus] Gets or sets follower * @member {string} [actedOnUser.followerStatus] Gets or sets follower
* relationship status of the querying user. Possible values for this * relationship status of the querying user. Possible values include: 'None',
* property include: 'None', 'Follow', 'Pending', 'Blocked'. * 'Follow', 'Pending', 'Blocked'
* *
* @member {object} [actedOnContent] Gets or sets acted on content * @member {object} [actedOnContent] Gets or sets acted on content
* *
* @member {string} [actedOnContent.contentType] Gets or sets content type. * @member {string} [actedOnContent.contentType] Gets or sets content type.
* Possible values for this property include: 'Unknown', 'Topic', 'Comment', * Possible values include: 'Unknown', 'Topic', 'Comment', 'Reply'
* 'Reply'.
* *
* @member {string} [actedOnContent.contentHandle] Gets or sets content handle * @member {string} [actedOnContent.contentHandle] Gets or sets content handle
* *
@ -299,8 +297,7 @@ export interface FeedResponseActivityView {
* @member {string} [actedOnContent.text] Gets or sets content text * @member {string} [actedOnContent.text] Gets or sets content text
* *
* @member {string} [actedOnContent.blobType] Gets or sets content blob type. * @member {string} [actedOnContent.blobType] Gets or sets content blob type.
* Possible values for this property include: 'Unknown', 'Image', 'Video', * Possible values include: 'Unknown', 'Image', 'Video', 'Custom'
* 'Custom'.
* *
* @member {string} [actedOnContent.blobHandle] Gets or sets content blob * @member {string} [actedOnContent.blobHandle] Gets or sets content blob
* handle * handle
@ -323,7 +320,7 @@ export interface FeedResponseActivityView {
* @member {string} [app.iconUrl] Gets or sets app icon url * @member {string} [app.iconUrl] Gets or sets app icon url
* *
* @member {string} [app.platformType] Gets or sets platform type. Possible * @member {string} [app.platformType] Gets or sets platform type. Possible
* values for this property include: 'Windows', 'Android', 'IOS'. * values include: 'Windows', 'Android', 'IOS'
* *
* @member {string} [app.deepLink] Gets or sets app deep link * @member {string} [app.deepLink] Gets or sets app deep link
* *
@ -347,8 +344,8 @@ export interface ActivityView {
* Initializes a new instance of the ContentCompactView class. * Initializes a new instance of the ContentCompactView class.
* @constructor * @constructor
* Content compact view * Content compact view
* @member {string} contentType Gets or sets content type. Possible values for * @member {string} contentType Gets or sets content type. Possible values
* this property include: 'Unknown', 'Topic', 'Comment', 'Reply'. * include: 'Unknown', 'Topic', 'Comment', 'Reply'
* *
* @member {string} contentHandle Gets or sets content handle * @member {string} contentHandle Gets or sets content handle
* *
@ -359,7 +356,7 @@ export interface ActivityView {
* @member {string} text Gets or sets content text * @member {string} text Gets or sets content text
* *
* @member {string} [blobType] Gets or sets content blob type. Possible values * @member {string} [blobType] Gets or sets content blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets content blob handle * @member {string} [blobHandle] Gets or sets content blob handle
* *
@ -391,7 +388,7 @@ export interface ContentCompactView {
* @member {string} [iconUrl] Gets or sets app icon url * @member {string} [iconUrl] Gets or sets app icon url
* *
* @member {string} platformType Gets or sets platform type. Possible values * @member {string} platformType Gets or sets platform type. Possible values
* for this property include: 'Windows', 'Android', 'IOS'. * include: 'Windows', 'Android', 'IOS'
* *
* @member {string} [deepLink] Gets or sets app deep link * @member {string} [deepLink] Gets or sets app deep link
* *
@ -459,7 +456,7 @@ export interface FeedResponseTopicView {
* @member {date} lastUpdatedTime Gets or sets last updated time * @member {date} lastUpdatedTime Gets or sets last updated time
* *
* @member {string} publisherType Gets or sets publisher type. Possible values * @member {string} publisherType Gets or sets publisher type. Possible values
* for this property include: 'User', 'App'. * include: 'User', 'App'
* *
* @member {object} user Gets or sets owner of the topic * @member {object} user Gets or sets owner of the topic
* *
@ -474,18 +471,18 @@ export interface FeedResponseTopicView {
* @member {string} [user.photoUrl] Gets or sets photo url of the user * @member {string} [user.photoUrl] Gets or sets photo url of the user
* *
* @member {string} [user.visibility] Gets or sets visibility of the user. * @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values for this property include: 'Public', 'Private'. * Possible values include: 'Public', 'Private'
* *
* @member {string} [user.followerStatus] Gets or sets follower relationship * @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values for this property include: * status of the querying user. Possible values include: 'None', 'Follow',
* 'None', 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} [title] Gets or sets topic title * @member {string} [title] Gets or sets topic title
* *
* @member {string} text Gets or sets topic text * @member {string} text Gets or sets topic text
* *
* @member {string} [blobType] Gets or sets topic blob type. Possible values * @member {string} [blobType] Gets or sets topic blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets topic blob handle * @member {string} [blobHandle] Gets or sets topic blob handle
* *
@ -512,7 +509,7 @@ export interface FeedResponseTopicView {
* querying user has pinned the topic * querying user has pinned the topic
* *
* @member {string} [contentStatus] Gets or sets content status. Possible * @member {string} [contentStatus] Gets or sets content status. Possible
* values for this property include: 'Active', 'Banned'. * values include: 'Active', 'Banned'
* *
* @member {object} [app] Gets or sets the containing app * @member {object} [app] Gets or sets the containing app
* *
@ -525,7 +522,7 @@ export interface FeedResponseTopicView {
* @member {string} [app.iconUrl] Gets or sets app icon url * @member {string} [app.iconUrl] Gets or sets app icon url
* *
* @member {string} [app.platformType] Gets or sets platform type. Possible * @member {string} [app.platformType] Gets or sets platform type. Possible
* values for this property include: 'Windows', 'Android', 'IOS'. * values include: 'Windows', 'Android', 'IOS'
* *
* @member {string} [app.deepLink] Gets or sets app deep link * @member {string} [app.deepLink] Gets or sets app deep link
* *
@ -573,64 +570,6 @@ export interface PutPushRegistrationRequest {
language: string; language: string;
} }
/**
* @class
* Initializes a new instance of the ReplyView class.
* @constructor
* Reply view
* @member {string} replyHandle Gets or sets reply handle
*
* @member {string} commentHandle Gets or sets parent comment handle
*
* @member {string} topicHandle Gets or sets root topic handle
*
* @member {date} createdTime Gets or sets created time
*
* @member {object} user Gets or sets owner of the reply
*
* @member {string} [user.userHandle] Gets or sets user handle
*
* @member {string} [user.firstName] Gets or sets first name of the user
*
* @member {string} [user.lastName] Gets or sets last name of the user
*
* @member {string} [user.photoHandle] Gets or sets photo handle of the user
*
* @member {string} [user.photoUrl] Gets or sets photo url of the user
*
* @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values for this property include: 'Public', 'Private'.
*
* @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values for this property include:
* 'None', 'Follow', 'Pending', 'Blocked'.
*
* @member {string} text Gets or sets reply text
*
* @member {string} [language] Gets or sets reply language
*
* @member {number} totalLikes Gets or sets total likes for the reply
*
* @member {boolean} liked Gets or sets a value indicating whether the
* querying user has liked the reply
*
* @member {string} [contentStatus] Gets or sets content status. Possible
* values for this property include: 'Active', 'Banned'.
*
*/
export interface ReplyView {
replyHandle: string;
commentHandle: string;
topicHandle: string;
createdTime: Date;
user: UserCompactView;
text: string;
language?: string;
totalLikes: number;
liked: boolean;
contentStatus?: string;
}
/** /**
* @class * @class
* Initializes a new instance of the PostReplyRequest class. * Initializes a new instance of the PostReplyRequest class.
@ -673,14 +612,72 @@ export interface FeedResponseReplyView {
cursor: string; cursor: string;
} }
/**
* @class
* Initializes a new instance of the ReplyView class.
* @constructor
* Reply view
* @member {string} replyHandle Gets or sets reply handle
*
* @member {string} commentHandle Gets or sets parent comment handle
*
* @member {string} topicHandle Gets or sets root topic handle
*
* @member {date} createdTime Gets or sets created time
*
* @member {object} user Gets or sets owner of the reply
*
* @member {string} [user.userHandle] Gets or sets user handle
*
* @member {string} [user.firstName] Gets or sets first name of the user
*
* @member {string} [user.lastName] Gets or sets last name of the user
*
* @member {string} [user.photoHandle] Gets or sets photo handle of the user
*
* @member {string} [user.photoUrl] Gets or sets photo url of the user
*
* @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values include: 'Public', 'Private'
*
* @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values include: 'None', 'Follow',
* 'Pending', 'Blocked'
*
* @member {string} text Gets or sets reply text
*
* @member {string} [language] Gets or sets reply language
*
* @member {number} totalLikes Gets or sets total likes for the reply
*
* @member {boolean} liked Gets or sets a value indicating whether the
* querying user has liked the reply
*
* @member {string} [contentStatus] Gets or sets content status. Possible
* values include: 'Active', 'Banned'
*
*/
export interface ReplyView {
replyHandle: string;
commentHandle: string;
topicHandle: string;
createdTime: Date;
user: UserCompactView;
text: string;
language?: string;
totalLikes: number;
liked: boolean;
contentStatus?: string;
}
/** /**
* @class * @class
* Initializes a new instance of the PostReportRequest class. * Initializes a new instance of the PostReportRequest class.
* @constructor * @constructor
* Request to post (create) a report for user or content * Request to post (create) a report for user or content
* @member {string} reason Gets or sets report reason. Possible values for * @member {string} reason Gets or sets report reason. Possible values
* this property include: 'Spam', 'Cyberbullying', 'ChildEndangerment', * include: 'Spam', 'Cyberbullying', 'ChildEndangerment', 'Offensive',
* 'Offensive', 'ContentInfringement', 'Other'. * 'ContentInfringement', 'Other'
* *
*/ */
export interface PostReportRequest { export interface PostReportRequest {
@ -693,8 +690,7 @@ export interface PostReportRequest {
* @constructor * @constructor
* Request to post (create) session * Request to post (create) session
* @member {string} identityProvider Gets or sets identity provider type. * @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft', * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @member {string} [accessToken] Gets or sets access or authentication token, * @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider. * user code, or verifier obtained from third-party provider.
@ -753,18 +749,6 @@ export interface GetRequestTokenResponse {
requestToken: string; requestToken: string;
} }
/**
* @class
* Initializes a new instance of the PostFollowerRequest class.
* @constructor
* Request to post (accept) a follower
* @member {string} userHandle Gets or sets user handle
*
*/
export interface PostFollowerRequest {
userHandle: string;
}
/** /**
* @class * @class
* Initializes a new instance of the PostFollowingRequest class. * Initializes a new instance of the PostFollowingRequest class.
@ -777,6 +761,18 @@ export interface PostFollowingRequest {
userHandle: string; userHandle: string;
} }
/**
* @class
* Initializes a new instance of the PostFollowerRequest class.
* @constructor
* Request to post (accept) a follower
* @member {string} userHandle Gets or sets user handle
*
*/
export interface PostFollowerRequest {
userHandle: string;
}
/** /**
* @class * @class
* Initializes a new instance of the PostBlockedUserRequest class. * Initializes a new instance of the PostBlockedUserRequest class.
@ -795,14 +791,14 @@ export interface PostBlockedUserRequest {
* @constructor * @constructor
* Request to post (create) topic * Request to post (create) topic
* @member {string} publisherType Gets or sets publisher type. Possible values * @member {string} publisherType Gets or sets publisher type. Possible values
* for this property include: 'User', 'App'. * include: 'User', 'App'
* *
* @member {string} [title] Gets or sets topic title * @member {string} [title] Gets or sets topic title
* *
* @member {string} text Gets or sets topic text * @member {string} text Gets or sets topic text
* *
* @member {string} [blobType] Gets or sets topic blob type. Possible values * @member {string} [blobType] Gets or sets topic blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets topic blob handle * @member {string} [blobHandle] Gets or sets topic blob handle
* *
@ -860,59 +856,13 @@ export interface PutTopicRequest {
categories?: string; categories?: string;
} }
/**
* @class
* Initializes a new instance of the PostLinkedAccountRequest class.
* @constructor
* Request to post (create) linked account
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft',
* 'Google', 'Twitter'.
*
* @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider.
* The server contacts the third-party provider to use the token
* (or user code, or verifier) for discover the user's identity.
*
* @member {string} [requestToken] Gets or sets request token obtained from
* third-party provider.
* Some providers do not issue authentication or access tokens,
* but they issue request tokens
* and verifiers.
*
*/
export interface PostLinkedAccountRequest {
identityProvider: string;
accessToken?: string;
requestToken?: string;
}
/**
* @class
* Initializes a new instance of the LinkedAccountView class.
* @constructor
* Linked account view
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft',
* 'Google', 'Twitter'.
*
* @member {string} accountId Gets or sets third party account id -- Unique
* user id provided by the third-party identity provider
*
*/
export interface LinkedAccountView {
identityProvider: string;
accountId: string;
}
/** /**
* @class * @class
* Initializes a new instance of the PostUserRequest class. * Initializes a new instance of the PostUserRequest class.
* @constructor * @constructor
* Request to post (create) user * Request to post (create) user
* @member {string} identityProvider Gets or sets identity provider type. * @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft', * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @member {string} [accessToken] Gets or sets access or authentication token * @member {string} [accessToken] Gets or sets access or authentication token
* obtained from third-party provider. * obtained from third-party provider.
@ -986,7 +936,7 @@ export interface PostUserResponse {
* @member {string} photoUrl Gets or sets photo url of the user * @member {string} photoUrl Gets or sets photo url of the user
* *
* @member {string} visibility Gets or sets visibility of the user. Possible * @member {string} visibility Gets or sets visibility of the user. Possible
* values for this property include: 'Public', 'Private'. * values include: 'Public', 'Private'
* *
* @member {number} totalTopics Gets or sets total topics posted by user * @member {number} totalTopics Gets or sets total topics posted by user
* *
@ -995,15 +945,15 @@ export interface PostUserResponse {
* @member {number} totalFollowing Gets or sets total following users * @member {number} totalFollowing Gets or sets total following users
* *
* @member {string} followerStatus Gets or sets follower relationship status * @member {string} followerStatus Gets or sets follower relationship status
* of the querying user. Possible values for this property include: 'None', * of the querying user. Possible values include: 'None', 'Follow',
* 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} followingStatus Gets or sets following relationship status * @member {string} followingStatus Gets or sets following relationship status
* of the querying user. Possible values for this property include: 'None', * of the querying user. Possible values include: 'None', 'Follow',
* 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} profileStatus Gets or sets user profile status. Possible * @member {string} profileStatus Gets or sets user profile status. Possible
* values for this property include: 'Active', 'Banned'. * values include: 'Active', 'Banned'
* *
*/ */
export interface UserProfileView { export interface UserProfileView {
@ -1059,7 +1009,7 @@ export interface PutUserPhotoRequest {
* @constructor * @constructor
* Request to put (update) user visibility * Request to put (update) user visibility
* @member {string} visibility Gets or sets visibility of the user. Possible * @member {string} visibility Gets or sets visibility of the user. Possible
* values for this property include: 'Public', 'Private'. * values include: 'Public', 'Private'
* *
*/ */
export interface PutUserVisibilityRequest { export interface PutUserVisibilityRequest {
@ -1080,3 +1030,46 @@ export interface FeedResponseUserProfileView {
data: UserProfileView[]; data: UserProfileView[];
cursor: string; cursor: string;
} }
/**
* @class
* Initializes a new instance of the PostLinkedAccountRequest class.
* @constructor
* Request to post (create) linked account
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
*
* @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider.
* The server contacts the third-party provider to use the token
* (or user code, or verifier) for discover the user's identity.
*
* @member {string} [requestToken] Gets or sets request token obtained from
* third-party provider.
* Some providers do not issue authentication or access tokens,
* but they issue request tokens
* and verifiers.
*
*/
export interface PostLinkedAccountRequest {
identityProvider: string;
accessToken?: string;
requestToken?: string;
}
/**
* @class
* Initializes a new instance of the LinkedAccountView class.
* @constructor
* Linked account view
* @member {string} identityProvider Gets or sets identity provider type.
* Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
*
* @member {string} accountId Gets or sets third party account id -- Unique
* user id provided by the third-party identity provider
*
*/
export interface LinkedAccountView {
identityProvider: string;
accountId: string;
}

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
/* jshint latedef:false */ /* jshint latedef:false */
@ -17,11 +11,11 @@
exports.PostBlobResponse = require('./postBlobResponse'); exports.PostBlobResponse = require('./postBlobResponse');
exports.BuildsCurrentResponse = require('./buildsCurrentResponse'); exports.BuildsCurrentResponse = require('./buildsCurrentResponse');
exports.CommentView = require('./commentView');
exports.UserCompactView = require('./userCompactView');
exports.PostCommentRequest = require('./postCommentRequest'); exports.PostCommentRequest = require('./postCommentRequest');
exports.PostCommentResponse = require('./postCommentResponse'); exports.PostCommentResponse = require('./postCommentResponse');
exports.FeedResponseCommentView = require('./feedResponseCommentView'); exports.FeedResponseCommentView = require('./feedResponseCommentView');
exports.CommentView = require('./commentView');
exports.UserCompactView = require('./userCompactView');
exports.PostImageResponse = require('./postImageResponse'); exports.PostImageResponse = require('./postImageResponse');
exports.FeedResponseUserCompactView = require('./feedResponseUserCompactView'); exports.FeedResponseUserCompactView = require('./feedResponseUserCompactView');
exports.PutNotificationsStatusRequest = require('./putNotificationsStatusRequest'); exports.PutNotificationsStatusRequest = require('./putNotificationsStatusRequest');
@ -34,22 +28,20 @@ exports.PostPinRequest = require('./postPinRequest');
exports.FeedResponseTopicView = require('./feedResponseTopicView'); exports.FeedResponseTopicView = require('./feedResponseTopicView');
exports.TopicView = require('./topicView'); exports.TopicView = require('./topicView');
exports.PutPushRegistrationRequest = require('./putPushRegistrationRequest'); exports.PutPushRegistrationRequest = require('./putPushRegistrationRequest');
exports.ReplyView = require('./replyView');
exports.PostReplyRequest = require('./postReplyRequest'); exports.PostReplyRequest = require('./postReplyRequest');
exports.PostReplyResponse = require('./postReplyResponse'); exports.PostReplyResponse = require('./postReplyResponse');
exports.FeedResponseReplyView = require('./feedResponseReplyView'); exports.FeedResponseReplyView = require('./feedResponseReplyView');
exports.ReplyView = require('./replyView');
exports.PostReportRequest = require('./postReportRequest'); exports.PostReportRequest = require('./postReportRequest');
exports.PostSessionRequest = require('./postSessionRequest'); exports.PostSessionRequest = require('./postSessionRequest');
exports.PostSessionResponse = require('./postSessionResponse'); exports.PostSessionResponse = require('./postSessionResponse');
exports.GetRequestTokenResponse = require('./getRequestTokenResponse'); exports.GetRequestTokenResponse = require('./getRequestTokenResponse');
exports.PostFollowerRequest = require('./postFollowerRequest');
exports.PostFollowingRequest = require('./postFollowingRequest'); exports.PostFollowingRequest = require('./postFollowingRequest');
exports.PostFollowerRequest = require('./postFollowerRequest');
exports.PostBlockedUserRequest = require('./postBlockedUserRequest'); exports.PostBlockedUserRequest = require('./postBlockedUserRequest');
exports.PostTopicRequest = require('./postTopicRequest'); exports.PostTopicRequest = require('./postTopicRequest');
exports.PostTopicResponse = require('./postTopicResponse'); exports.PostTopicResponse = require('./postTopicResponse');
exports.PutTopicRequest = require('./putTopicRequest'); exports.PutTopicRequest = require('./putTopicRequest');
exports.PostLinkedAccountRequest = require('./postLinkedAccountRequest');
exports.LinkedAccountView = require('./linkedAccountView');
exports.PostUserRequest = require('./postUserRequest'); exports.PostUserRequest = require('./postUserRequest');
exports.PostUserResponse = require('./postUserResponse'); exports.PostUserResponse = require('./postUserResponse');
exports.UserProfileView = require('./userProfileView'); exports.UserProfileView = require('./userProfileView');
@ -57,3 +49,5 @@ exports.PutUserInfoRequest = require('./putUserInfoRequest');
exports.PutUserPhotoRequest = require('./putUserPhotoRequest'); exports.PutUserPhotoRequest = require('./putUserPhotoRequest');
exports.PutUserVisibilityRequest = require('./putUserVisibilityRequest'); exports.PutUserVisibilityRequest = require('./putUserVisibilityRequest');
exports.FeedResponseUserProfileView = require('./feedResponseUserProfileView'); exports.FeedResponseUserProfileView = require('./feedResponseUserProfileView');
exports.PostLinkedAccountRequest = require('./postLinkedAccountRequest');
exports.LinkedAccountView = require('./linkedAccountView');

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -17,8 +11,7 @@
* @constructor * @constructor
* Linked account view * Linked account view
* @member {string} identityProvider Gets or sets identity provider type. * @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft', * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @member {string} accountId Gets or sets third party account id -- Unique * @member {string} accountId Gets or sets third party account id -- Unique
* user id provided by the third-party identity provider * user id provided by the third-party identity provider

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -19,7 +13,7 @@
* @member {string} text Gets or sets comment text * @member {string} text Gets or sets comment text
* *
* @member {string} [blobType] Gets or sets comment blob type. Possible values * @member {string} [blobType] Gets or sets comment blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets comment blob handle * @member {string} [blobHandle] Gets or sets comment blob handle
* *

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -17,8 +11,7 @@
* @constructor * @constructor
* Request to post (create) linked account * Request to post (create) linked account
* @member {string} identityProvider Gets or sets identity provider type. * @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft', * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @member {string} [accessToken] Gets or sets access or authentication token, * @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider. * user code, or verifier obtained from third-party provider.

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -16,9 +10,9 @@
* Initializes a new instance of the PostReportRequest class. * Initializes a new instance of the PostReportRequest class.
* @constructor * @constructor
* Request to post (create) a report for user or content * Request to post (create) a report for user or content
* @member {string} reason Gets or sets report reason. Possible values for * @member {string} reason Gets or sets report reason. Possible values
* this property include: 'Spam', 'Cyberbullying', 'ChildEndangerment', * include: 'Spam', 'Cyberbullying', 'ChildEndangerment', 'Offensive',
* 'Offensive', 'ContentInfringement', 'Other'. * 'ContentInfringement', 'Other'
* *
*/ */
function PostReportRequest() { function PostReportRequest() {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -17,8 +11,7 @@
* @constructor * @constructor
* Request to post (create) session * Request to post (create) session
* @member {string} identityProvider Gets or sets identity provider type. * @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft', * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @member {string} [accessToken] Gets or sets access or authentication token, * @member {string} [accessToken] Gets or sets access or authentication token,
* user code, or verifier obtained from third-party provider. * user code, or verifier obtained from third-party provider.

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -17,14 +11,14 @@
* @constructor * @constructor
* Request to post (create) topic * Request to post (create) topic
* @member {string} publisherType Gets or sets publisher type. Possible values * @member {string} publisherType Gets or sets publisher type. Possible values
* for this property include: 'User', 'App'. * include: 'User', 'App'
* *
* @member {string} [title] Gets or sets topic title * @member {string} [title] Gets or sets topic title
* *
* @member {string} text Gets or sets topic text * @member {string} text Gets or sets topic text
* *
* @member {string} [blobType] Gets or sets topic blob type. Possible values * @member {string} [blobType] Gets or sets topic blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets topic blob handle * @member {string} [blobHandle] Gets or sets topic blob handle
* *

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -17,8 +11,7 @@
* @constructor * @constructor
* Request to post (create) user * Request to post (create) user
* @member {string} identityProvider Gets or sets identity provider type. * @member {string} identityProvider Gets or sets identity provider type.
* Possible values for this property include: 'Facebook', 'Microsoft', * Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @member {string} [accessToken] Gets or sets access or authentication token * @member {string} [accessToken] Gets or sets access or authentication token
* obtained from third-party provider. * obtained from third-party provider.

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -17,7 +11,7 @@
* @constructor * @constructor
* Request to put (update) user visibility * Request to put (update) user visibility
* @member {string} visibility Gets or sets visibility of the user. Possible * @member {string} visibility Gets or sets visibility of the user. Possible
* values for this property include: 'Public', 'Private'. * values include: 'Public', 'Private'
* *
*/ */
function PutUserVisibilityRequest() { function PutUserVisibilityRequest() {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -39,11 +33,11 @@ var models = require('./index');
* @member {string} [user.photoUrl] Gets or sets photo url of the user * @member {string} [user.photoUrl] Gets or sets photo url of the user
* *
* @member {string} [user.visibility] Gets or sets visibility of the user. * @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values for this property include: 'Public', 'Private'. * Possible values include: 'Public', 'Private'
* *
* @member {string} [user.followerStatus] Gets or sets follower relationship * @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values for this property include: * status of the querying user. Possible values include: 'None', 'Follow',
* 'None', 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} text Gets or sets reply text * @member {string} text Gets or sets reply text
* *
@ -55,7 +49,7 @@ var models = require('./index');
* querying user has liked the reply * querying user has liked the reply
* *
* @member {string} [contentStatus] Gets or sets content status. Possible * @member {string} [contentStatus] Gets or sets content status. Possible
* values for this property include: 'Active', 'Banned'. * values include: 'Active', 'Banned'
* *
*/ */
function ReplyView() { function ReplyView() {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -25,7 +19,7 @@ var models = require('./index');
* @member {date} lastUpdatedTime Gets or sets last updated time * @member {date} lastUpdatedTime Gets or sets last updated time
* *
* @member {string} publisherType Gets or sets publisher type. Possible values * @member {string} publisherType Gets or sets publisher type. Possible values
* for this property include: 'User', 'App'. * include: 'User', 'App'
* *
* @member {object} user Gets or sets owner of the topic * @member {object} user Gets or sets owner of the topic
* *
@ -40,18 +34,18 @@ var models = require('./index');
* @member {string} [user.photoUrl] Gets or sets photo url of the user * @member {string} [user.photoUrl] Gets or sets photo url of the user
* *
* @member {string} [user.visibility] Gets or sets visibility of the user. * @member {string} [user.visibility] Gets or sets visibility of the user.
* Possible values for this property include: 'Public', 'Private'. * Possible values include: 'Public', 'Private'
* *
* @member {string} [user.followerStatus] Gets or sets follower relationship * @member {string} [user.followerStatus] Gets or sets follower relationship
* status of the querying user. Possible values for this property include: * status of the querying user. Possible values include: 'None', 'Follow',
* 'None', 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} [title] Gets or sets topic title * @member {string} [title] Gets or sets topic title
* *
* @member {string} text Gets or sets topic text * @member {string} text Gets or sets topic text
* *
* @member {string} [blobType] Gets or sets topic blob type. Possible values * @member {string} [blobType] Gets or sets topic blob type. Possible values
* for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @member {string} [blobHandle] Gets or sets topic blob handle * @member {string} [blobHandle] Gets or sets topic blob handle
* *
@ -78,7 +72,7 @@ var models = require('./index');
* querying user has pinned the topic * querying user has pinned the topic
* *
* @member {string} [contentStatus] Gets or sets content status. Possible * @member {string} [contentStatus] Gets or sets content status. Possible
* values for this property include: 'Active', 'Banned'. * values include: 'Active', 'Banned'
* *
* @member {object} [app] Gets or sets the containing app * @member {object} [app] Gets or sets the containing app
* *
@ -91,7 +85,7 @@ var models = require('./index');
* @member {string} [app.iconUrl] Gets or sets app icon url * @member {string} [app.iconUrl] Gets or sets app icon url
* *
* @member {string} [app.platformType] Gets or sets platform type. Possible * @member {string} [app.platformType] Gets or sets platform type. Possible
* values for this property include: 'Windows', 'Android', 'IOS'. * values include: 'Windows', 'Android', 'IOS'
* *
* @member {string} [app.deepLink] Gets or sets app deep link * @member {string} [app.deepLink] Gets or sets app deep link
* *

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -27,11 +21,11 @@
* @member {string} [photoUrl] Gets or sets photo url of the user * @member {string} [photoUrl] Gets or sets photo url of the user
* *
* @member {string} visibility Gets or sets visibility of the user. Possible * @member {string} visibility Gets or sets visibility of the user. Possible
* values for this property include: 'Public', 'Private'. * values include: 'Public', 'Private'
* *
* @member {string} followerStatus Gets or sets follower relationship status * @member {string} followerStatus Gets or sets follower relationship status
* of the querying user. Possible values for this property include: 'None', * of the querying user. Possible values include: 'None', 'Follow',
* 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
*/ */
function UserCompactView() { function UserCompactView() {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -31,7 +25,7 @@
* @member {string} photoUrl Gets or sets photo url of the user * @member {string} photoUrl Gets or sets photo url of the user
* *
* @member {string} visibility Gets or sets visibility of the user. Possible * @member {string} visibility Gets or sets visibility of the user. Possible
* values for this property include: 'Public', 'Private'. * values include: 'Public', 'Private'
* *
* @member {number} totalTopics Gets or sets total topics posted by user * @member {number} totalTopics Gets or sets total topics posted by user
* *
@ -40,15 +34,15 @@
* @member {number} totalFollowing Gets or sets total following users * @member {number} totalFollowing Gets or sets total following users
* *
* @member {string} followerStatus Gets or sets follower relationship status * @member {string} followerStatus Gets or sets follower relationship status
* of the querying user. Possible values for this property include: 'None', * of the querying user. Possible values include: 'None', 'Follow',
* 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} followingStatus Gets or sets following relationship status * @member {string} followingStatus Gets or sets following relationship status
* of the querying user. Possible values for this property include: 'None', * of the querying user. Possible values include: 'None', 'Follow',
* 'Follow', 'Pending', 'Blocked'. * 'Pending', 'Blocked'
* *
* @member {string} profileStatus Gets or sets user profile status. Possible * @member {string} profileStatus Gets or sets user profile status. Possible
* values for this property include: 'Active', 'Banned'. * values include: 'Active', 'Banned'
* *
*/ */
function UserProfileView() { function UserProfileView() {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -38,6 +32,8 @@ function Blobs(client) {
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
* *
* @param {object} blob MIME encoded contents of the blob
*
* @param {object} [options] Optional Parameters. * @param {object} [options] Optional Parameters.
* *
* @param {object} [options.customHeaders] Headers that will be added to the * @param {object} [options.customHeaders] Headers that will be added to the
@ -56,7 +52,7 @@ function Blobs(client) {
* *
* {stream} [response] - The HTTP Response stream if an error did not occur. * {stream} [response] - The HTTP Response stream if an error did not occur.
*/ */
Blobs.prototype.postBlob = function (authorization, options, callback) { Blobs.prototype.postBlob = function (authorization, blob, options, callback) {
var client = this.client; var client = this.client;
if(!callback && typeof options === 'function') { if(!callback && typeof options === 'function') {
callback = options; callback = options;
@ -70,6 +66,9 @@ Blobs.prototype.postBlob = function (authorization, options, callback) {
if (authorization === null || authorization === undefined || typeof authorization.valueOf() !== 'string') { if (authorization === null || authorization === undefined || typeof authorization.valueOf() !== 'string') {
throw new Error('authorization cannot be null or undefined and it must be of type string.'); throw new Error('authorization cannot be null or undefined and it must be of type string.');
} }
if (blob === null || blob === undefined) {
throw new Error('blob cannot be null or undefined and it must be of type object.');
}
} catch (error) { } catch (error) {
return callback(error); return callback(error);
} }
@ -97,9 +96,10 @@ Blobs.prototype.postBlob = function (authorization, options, callback) {
} }
} }
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/octet-stream';
httpRequest.body = null; // Serialize Request
httpRequest.headers['Content-Length'] = 0; var requestContent = blob;
httpRequest.body = requestContent;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -224,61 +224,24 @@ Blobs.prototype.getBlob = function (blobHandle, authorization, options, callback
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { httpRequest.streamedResponse = true;
return client.pipeline(httpRequest, function (err, response) {
if (err) { if (err) {
return callback(err); return callback(err);
} }
var statusCode = response.statusCode; var statusCode = response.statusCode;
if (statusCode !== 200 && statusCode !== 400 && statusCode !== 401 && statusCode !== 404 && statusCode !== 500) { if (statusCode !== 200 && statusCode !== 400 && statusCode !== 401 && statusCode !== 404 && statusCode !== 500) {
var error = new Error(responseBody); var error = new Error(util.format('Unexpected status code: %s', statusCode));
error.statusCode = response.statusCode; error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest); error.request = httpRequest;
error.response = msRest.stripResponse(response); error.response = response;
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error); return callback(error);
} }
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = {
required: false,
serializedName: 'parsedResponse',
type: {
name: 'Object'
}
};
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
// Create Result
var result = response;
return callback(null, result, httpRequest, response); return callback(null, result, httpRequest, response);
}); });
}; };

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -108,7 +102,6 @@ Builds.prototype.getBuildsCurrent = function (options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -135,7 +129,6 @@ CommentLikes.prototype.getLikes = function (commentHandle, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -260,7 +253,6 @@ CommentLikes.prototype.postLike = function (commentHandle, authorization, option
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -391,7 +383,6 @@ CommentLikes.prototype.deleteLike = function (commentHandle, authorization, opti
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -124,7 +118,6 @@ CommentReplies.prototype.getReplies = function (commentHandle, authorization, op
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -273,9 +266,6 @@ CommentReplies.prototype.postReply = function (commentHandle, request, authoriza
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -37,8 +31,8 @@ function CommentReports(client) {
* @param {object} postReportRequest Post report request * @param {object} postReportRequest Post report request
* *
* @param {string} [postReportRequest.reason] Gets or sets report reason. * @param {string} [postReportRequest.reason] Gets or sets report reason.
* Possible values for this property include: 'Spam', 'Cyberbullying', * Possible values include: 'Spam', 'Cyberbullying', 'ChildEndangerment',
* 'ChildEndangerment', 'Offensive', 'ContentInfringement', 'Other'. * 'Offensive', 'ContentInfringement', 'Other'
* *
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
@ -124,9 +118,6 @@ CommentReports.prototype.postReport = function (commentHandle, postReportRequest
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -102,7 +96,6 @@ Comments.prototype.getComment = function (commentHandle, authorization, options,
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -227,7 +220,6 @@ Comments.prototype.deleteComment = function (commentHandle, authorization, optio
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -105,7 +99,6 @@ Hashtags.prototype.getTrendingHashtags = function (options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -257,7 +250,6 @@ Hashtags.prototype.getAutocompletedHashtags = function (query, options, callback
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -46,12 +40,14 @@ function Images(client) {
* <para>All resized images will maintain their aspect ratio. Any orientation * <para>All resized images will maintain their aspect ratio. Any orientation
* specified in the EXIF headers will be honored.</para> * specified in the EXIF headers will be honored.</para>
* *
* @param {string} imageType Image type. Possible values for this parameter * @param {string} imageType Image type. Possible values include: 'UserPhoto',
* include: 'UserPhoto', 'ContentBlob', 'AppIcon' * 'ContentBlob', 'AppIcon'
* *
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
* *
* @param {object} image MIME encoded contents of the image
*
* @param {object} [options] Optional Parameters. * @param {object} [options] Optional Parameters.
* *
* @param {object} [options.customHeaders] Headers that will be added to the * @param {object} [options.customHeaders] Headers that will be added to the
@ -70,7 +66,7 @@ function Images(client) {
* *
* {stream} [response] - The HTTP Response stream if an error did not occur. * {stream} [response] - The HTTP Response stream if an error did not occur.
*/ */
Images.prototype.postImage = function (imageType, authorization, options, callback) { Images.prototype.postImage = function (imageType, authorization, image, options, callback) {
var client = this.client; var client = this.client;
if(!callback && typeof options === 'function') { if(!callback && typeof options === 'function') {
callback = options; callback = options;
@ -81,12 +77,20 @@ Images.prototype.postImage = function (imageType, authorization, options, callba
} }
// Validate // Validate
try { try {
if (imageType === null || imageType === undefined || typeof imageType.valueOf() !== 'string') { if (imageType) {
throw new Error('imageType cannot be null or undefined and it must be of type string.'); var allowedValues = [ 'UserPhoto', 'ContentBlob', 'AppIcon' ];
if (!allowedValues.some( function(item) { return item === imageType; })) {
throw new Error(imageType + ' is not a valid value. The valid values are: ' + allowedValues);
}
} else {
throw new Error('imageType cannot be null or undefined.');
} }
if (authorization === null || authorization === undefined || typeof authorization.valueOf() !== 'string') { if (authorization === null || authorization === undefined || typeof authorization.valueOf() !== 'string') {
throw new Error('authorization cannot be null or undefined and it must be of type string.'); throw new Error('authorization cannot be null or undefined and it must be of type string.');
} }
if (image === null || image === undefined) {
throw new Error('image cannot be null or undefined and it must be of type object.');
}
} catch (error) { } catch (error) {
return callback(error); return callback(error);
} }
@ -115,9 +119,10 @@ Images.prototype.postImage = function (imageType, authorization, options, callba
} }
} }
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'image';
httpRequest.body = null; // Serialize Request
httpRequest.headers['Content-Length'] = 0; var requestContent = image;
httpRequest.body = requestContent;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -252,61 +257,24 @@ Images.prototype.getImage = function (blobHandle, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { httpRequest.streamedResponse = true;
return client.pipeline(httpRequest, function (err, response) {
if (err) { if (err) {
return callback(err); return callback(err);
} }
var statusCode = response.statusCode; var statusCode = response.statusCode;
if (statusCode !== 200 && statusCode !== 400 && statusCode !== 401 && statusCode !== 404 && statusCode !== 500) { if (statusCode !== 200 && statusCode !== 400 && statusCode !== 401 && statusCode !== 404 && statusCode !== 500) {
var error = new Error(responseBody); var error = new Error(util.format('Unexpected status code: %s', statusCode));
error.statusCode = response.statusCode; error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest); error.request = httpRequest;
error.response = msRest.stripResponse(response); error.response = response;
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error); return callback(error);
} }
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = {
required: false,
serializedName: 'parsedResponse',
type: {
name: 'Object'
}
};
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
// Create Result
var result = response;
return callback(null, result, httpRequest, response); return callback(null, result, httpRequest, response);
}); });
}; };

1091
operations/index.d.ts поставляемый

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
/* jshint latedef:false */ /* jshint latedef:false */
@ -17,36 +11,36 @@
exports.Blobs = require('./blobs'); exports.Blobs = require('./blobs');
exports.Builds = require('./builds'); exports.Builds = require('./builds');
exports.Comments = require('./comments');
exports.TopicComments = require('./topicComments'); exports.TopicComments = require('./topicComments');
exports.Comments = require('./comments');
exports.Hashtags = require('./hashtags'); exports.Hashtags = require('./hashtags');
exports.Images = require('./images'); exports.Images = require('./images');
exports.TopicLikes = require('./topicLikes');
exports.ReplyLikes = require('./replyLikes');
exports.CommentLikes = require('./commentLikes'); exports.CommentLikes = require('./commentLikes');
exports.ReplyLikes = require('./replyLikes');
exports.TopicLikes = require('./topicLikes');
exports.MyNotifications = require('./myNotifications'); exports.MyNotifications = require('./myNotifications');
exports.MyPins = require('./myPins'); exports.MyPins = require('./myPins');
exports.MyPushRegistrations = require('./myPushRegistrations'); exports.MyPushRegistrations = require('./myPushRegistrations');
exports.Replies = require('./replies');
exports.CommentReplies = require('./commentReplies'); exports.CommentReplies = require('./commentReplies');
exports.Replies = require('./replies');
exports.UserReports = require('./userReports'); exports.UserReports = require('./userReports');
exports.TopicReports = require('./topicReports');
exports.ReplyReports = require('./replyReports'); exports.ReplyReports = require('./replyReports');
exports.CommentReports = require('./commentReports'); exports.CommentReports = require('./commentReports');
exports.TopicReports = require('./topicReports');
exports.Search = require('./search'); exports.Search = require('./search');
exports.Sessions = require('./sessions'); exports.Sessions = require('./sessions');
exports.RequestTokens = require('./requestTokens'); exports.RequestTokens = require('./requestTokens');
exports.UserFollowers = require('./userFollowers');
exports.MyPendingUsers = require('./myPendingUsers');
exports.MyFollowers = require('./myFollowers');
exports.MyFollowing = require('./myFollowing'); exports.MyFollowing = require('./myFollowing');
exports.MyBlockedUsers = require('./myBlockedUsers'); exports.UserFollowers = require('./userFollowers');
exports.MyFollowers = require('./myFollowers');
exports.UserFollowing = require('./userFollowing'); exports.UserFollowing = require('./userFollowing');
exports.MyPendingUsers = require('./myPendingUsers');
exports.MyBlockedUsers = require('./myBlockedUsers');
exports.Topics = require('./topics'); exports.Topics = require('./topics');
exports.MyTopics = require('./myTopics');
exports.MyAppFollowing = require('./myAppFollowing'); exports.MyAppFollowing = require('./myAppFollowing');
exports.MyTopics = require('./myTopics');
exports.MyApps = require('./myApps'); exports.MyApps = require('./myApps');
exports.Users = require('./users');
exports.MyLikes = require('./myLikes'); exports.MyLikes = require('./myLikes');
exports.MyLinkedAccounts = require('./myLinkedAccounts'); exports.MyLinkedAccounts = require('./myLinkedAccounts');
exports.Users = require('./users');
exports.UserTopics = require('./userTopics'); exports.UserTopics = require('./userTopics');

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -117,7 +111,6 @@ MyAppFollowing.prototype.getUsers = function (appHandle, authorization, options,
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -95,7 +89,6 @@ MyApps.prototype.getApps = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -119,7 +113,6 @@ MyBlockedUsers.prototype.getBlockedUsers = function (authorization, options, cal
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -259,9 +252,6 @@ MyBlockedUsers.prototype.postBlockedUser = function (request, authorization, opt
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -392,7 +382,6 @@ MyBlockedUsers.prototype.deleteBlockedUser = function (userHandle, authorization
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -119,7 +113,6 @@ MyFollowers.prototype.getFollowers = function (authorization, options, callback)
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -259,9 +252,6 @@ MyFollowers.prototype.postFollower = function (request, authorization, options,
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -392,7 +382,6 @@ MyFollowers.prototype.deleteFollower = function (userHandle, authorization, opti
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -119,7 +113,6 @@ MyFollowing.prototype.getFollowing = function (authorization, options, callback)
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -259,9 +252,6 @@ MyFollowing.prototype.postFollowing = function (request, authorization, options,
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -392,7 +382,6 @@ MyFollowing.prototype.deleteFollowing = function (userHandle, authorization, opt
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -523,7 +512,6 @@ MyFollowing.prototype.deleteTopic = function (topicHandle, authorization, option
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -671,7 +659,6 @@ MyFollowing.prototype.getTopics = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -814,7 +801,6 @@ MyFollowing.prototype.getActivities = function (authorization, options, callback
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -118,7 +112,6 @@ MyLikes.prototype.getLikedTopics = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -95,7 +89,6 @@ MyLinkedAccounts.prototype.getLinkedAccounts = function (authorization, options,
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -168,8 +161,7 @@ MyLinkedAccounts.prototype.getLinkedAccounts = function (authorization, options,
* @param {object} request Post linked account request * @param {object} request Post linked account request
* *
* @param {string} [request.identityProvider] Gets or sets identity provider * @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values for this property include: 'Facebook', 'Microsoft', * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @param {string} [request.accessToken] Gets or sets access or authentication * @param {string} [request.accessToken] Gets or sets access or authentication
* token, user code, or verifier obtained from third-party provider. * token, user code, or verifier obtained from third-party provider.
@ -262,9 +254,6 @@ MyLinkedAccounts.prototype.postLinkedAccount = function (request, authorization,
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -327,7 +316,7 @@ MyLinkedAccounts.prototype.postLinkedAccount = function (request, authorization,
* @summary Delete linked account * @summary Delete linked account
* *
* @param {string} identityProvider Identity provider type. Possible values * @param {string} identityProvider Identity provider type. Possible values
* for this parameter include: 'Facebook', 'Microsoft', 'Google', 'Twitter' * include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* *
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
@ -360,8 +349,13 @@ MyLinkedAccounts.prototype.deleteLinkedAccount = function (identityProvider, aut
} }
// Validate // Validate
try { try {
if (identityProvider === null || identityProvider === undefined || typeof identityProvider.valueOf() !== 'string') { if (identityProvider) {
throw new Error('identityProvider cannot be null or undefined and it must be of type string.'); var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ];
if (!allowedValues.some( function(item) { return item === identityProvider; })) {
throw new Error(identityProvider + ' is not a valid value. The valid values are: ' + allowedValues);
}
} else {
throw new Error('identityProvider cannot be null or undefined.');
} }
if (authorization === null || authorization === undefined || typeof authorization.valueOf() !== 'string') { if (authorization === null || authorization === undefined || typeof authorization.valueOf() !== 'string') {
throw new Error('authorization cannot be null or undefined and it must be of type string.'); throw new Error('authorization cannot be null or undefined and it must be of type string.');
@ -396,7 +390,6 @@ MyLinkedAccounts.prototype.deleteLinkedAccount = function (identityProvider, aut
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -117,9 +111,6 @@ MyNotifications.prototype.putNotificationsStatus = function (request, authorizat
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -268,7 +259,6 @@ MyNotifications.prototype.getNotifications = function (authorization, options, c
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -388,7 +378,6 @@ MyNotifications.prototype.getNotificationsCount = function (authorization, optio
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -101,7 +95,6 @@ MyPendingUsers.prototype.deletePendingUser = function (userHandle, authorization
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -250,7 +243,6 @@ MyPendingUsers.prototype.getPendingUsers = function (authorization, options, cal
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -370,7 +362,6 @@ MyPendingUsers.prototype.getPendingUsersCount = function (authorization, options
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -118,7 +112,6 @@ MyPins.prototype.getPins = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -258,9 +251,6 @@ MyPins.prototype.postPin = function (request, authorization, options, callback)
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -391,7 +381,6 @@ MyPins.prototype.deletePin = function (topicHandle, authorization, options, call
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -32,8 +26,8 @@ function MyPushRegistrations(client) {
/** /**
* @summary Register for push notifications or update existing registration * @summary Register for push notifications or update existing registration
* *
* @param {string} platform Platform type. Possible values for this parameter * @param {string} platform Platform type. Possible values include: 'Windows',
* include: 'Windows', 'Android', 'IOS' * 'Android', 'IOS'
* *
* @param {string} registrationId Unique registration id provided by the * @param {string} registrationId Unique registration id provided by the
* mobile OS. * mobile OS.
@ -81,8 +75,13 @@ MyPushRegistrations.prototype.putPushRegistration = function (platform, registra
} }
// Validate // Validate
try { try {
if (platform === null || platform === undefined || typeof platform.valueOf() !== 'string') { if (platform) {
throw new Error('platform cannot be null or undefined and it must be of type string.'); var allowedValues = [ 'Windows', 'Android', 'IOS' ];
if (!allowedValues.some( function(item) { return item === platform; })) {
throw new Error(platform + ' is not a valid value. The valid values are: ' + allowedValues);
}
} else {
throw new Error('platform cannot be null or undefined.');
} }
if (registrationId === null || registrationId === undefined || typeof registrationId.valueOf() !== 'string') { if (registrationId === null || registrationId === undefined || typeof registrationId.valueOf() !== 'string') {
throw new Error('registrationId cannot be null or undefined and it must be of type string.'); throw new Error('registrationId cannot be null or undefined and it must be of type string.');
@ -138,9 +137,6 @@ MyPushRegistrations.prototype.putPushRegistration = function (platform, registra
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -202,8 +198,8 @@ MyPushRegistrations.prototype.putPushRegistration = function (platform, registra
/** /**
* @summary Unregister from push notifications * @summary Unregister from push notifications
* *
* @param {string} platform Platform type. Possible values for this parameter * @param {string} platform Platform type. Possible values include: 'Windows',
* include: 'Windows', 'Android', 'IOS' * 'Android', 'IOS'
* *
* @param {string} registrationId Unique registration id provided by the * @param {string} registrationId Unique registration id provided by the
* mobile OS. * mobile OS.
@ -242,8 +238,13 @@ MyPushRegistrations.prototype.deletePushRegistration = function (platform, regis
} }
// Validate // Validate
try { try {
if (platform === null || platform === undefined || typeof platform.valueOf() !== 'string') { if (platform) {
throw new Error('platform cannot be null or undefined and it must be of type string.'); var allowedValues = [ 'Windows', 'Android', 'IOS' ];
if (!allowedValues.some( function(item) { return item === platform; })) {
throw new Error(platform + ' is not a valid value. The valid values are: ' + allowedValues);
}
} else {
throw new Error('platform cannot be null or undefined.');
} }
if (registrationId === null || registrationId === undefined || typeof registrationId.valueOf() !== 'string') { if (registrationId === null || registrationId === undefined || typeof registrationId.valueOf() !== 'string') {
throw new Error('registrationId cannot be null or undefined and it must be of type string.'); throw new Error('registrationId cannot be null or undefined and it must be of type string.');
@ -282,7 +283,6 @@ MyPushRegistrations.prototype.deletePushRegistration = function (platform, regis
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -118,7 +112,6 @@ MyTopics.prototype.getTopics = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -260,7 +253,6 @@ MyTopics.prototype.getPopularTopics = function (authorization, options, callback
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -102,7 +96,6 @@ Replies.prototype.getReply = function (replyHandle, authorization, options, call
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -227,7 +220,6 @@ Replies.prototype.deleteReply = function (replyHandle, authorization, options, c
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -135,7 +129,6 @@ ReplyLikes.prototype.getLikes = function (replyHandle, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -260,7 +253,6 @@ ReplyLikes.prototype.postLike = function (replyHandle, authorization, options, c
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -391,7 +383,6 @@ ReplyLikes.prototype.deleteLike = function (replyHandle, authorization, options,
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -37,8 +31,8 @@ function ReplyReports(client) {
* @param {object} postReportRequest Post report request * @param {object} postReportRequest Post report request
* *
* @param {string} [postReportRequest.reason] Gets or sets report reason. * @param {string} [postReportRequest.reason] Gets or sets report reason.
* Possible values for this property include: 'Spam', 'Cyberbullying', * Possible values include: 'Spam', 'Cyberbullying', 'ChildEndangerment',
* 'ChildEndangerment', 'Offensive', 'ContentInfringement', 'Other'. * 'Offensive', 'ContentInfringement', 'Other'
* *
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
@ -124,9 +118,6 @@ ReplyReports.prototype.postReport = function (replyHandle, postReportRequest, au
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -33,7 +27,7 @@ function RequestTokens(client) {
* @summary Get request token * @summary Get request token
* *
* @param {string} identityProvider Identity provider type. Possible values * @param {string} identityProvider Identity provider type. Possible values
* for this parameter include: 'Facebook', 'Microsoft', 'Google', 'Twitter' * include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* *
* @param {object} [options] Optional Parameters. * @param {object} [options] Optional Parameters.
* *
@ -72,8 +66,13 @@ RequestTokens.prototype.getRequestToken = function (identityProvider, options, c
var authorization = (options && options.authorization !== undefined) ? options.authorization : undefined; var authorization = (options && options.authorization !== undefined) ? options.authorization : undefined;
// Validate // Validate
try { try {
if (identityProvider === null || identityProvider === undefined || typeof identityProvider.valueOf() !== 'string') { if (identityProvider) {
throw new Error('identityProvider cannot be null or undefined and it must be of type string.'); var allowedValues = [ 'Facebook', 'Microsoft', 'Google', 'Twitter' ];
if (!allowedValues.some( function(item) { return item === identityProvider; })) {
throw new Error(identityProvider + ' is not a valid value. The valid values are: ' + allowedValues);
}
} else {
throw new Error('identityProvider cannot be null or undefined.');
} }
if (appkey !== null && appkey !== undefined && typeof appkey.valueOf() !== 'string') { if (appkey !== null && appkey !== undefined && typeof appkey.valueOf() !== 'string') {
throw new Error('appkey must be of type string.'); throw new Error('appkey must be of type string.');
@ -114,7 +113,6 @@ RequestTokens.prototype.getRequestToken = function (identityProvider, options, c
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -134,7 +128,6 @@ Search.prototype.getTopics = function (query, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -293,7 +286,6 @@ Search.prototype.getUsers = function (query, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -35,8 +29,7 @@ function Sessions(client) {
* @param {object} request Post session request * @param {object} request Post session request
* *
* @param {string} [request.identityProvider] Gets or sets identity provider * @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values for this property include: 'Facebook', 'Microsoft', * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @param {string} [request.accessToken] Gets or sets access or authentication * @param {string} [request.accessToken] Gets or sets access or authentication
* token, user code, or verifier obtained from third-party provider. * token, user code, or verifier obtained from third-party provider.
@ -146,9 +139,6 @@ Sessions.prototype.postSession = function (request, options, callback) {
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -267,7 +257,6 @@ Sessions.prototype.deleteSession = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -125,7 +119,6 @@ TopicComments.prototype.getTopicComments = function (topicHandle, authorization,
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -188,7 +181,7 @@ TopicComments.prototype.getTopicComments = function (topicHandle, authorization,
* @param {string} [request.text] Gets or sets comment text * @param {string} [request.text] Gets or sets comment text
* *
* @param {string} [request.blobType] Gets or sets comment blob type. Possible * @param {string} [request.blobType] Gets or sets comment blob type. Possible
* values for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * values include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @param {string} [request.blobHandle] Gets or sets comment blob handle * @param {string} [request.blobHandle] Gets or sets comment blob handle
* *
@ -279,9 +272,6 @@ TopicComments.prototype.postComment = function (topicHandle, request, authorizat
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -135,7 +129,6 @@ TopicLikes.prototype.getLikes = function (topicHandle, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -260,7 +253,6 @@ TopicLikes.prototype.postLike = function (topicHandle, authorization, options, c
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -391,7 +383,6 @@ TopicLikes.prototype.deleteLike = function (topicHandle, authorization, options,
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -37,8 +31,8 @@ function TopicReports(client) {
* @param {object} postReportRequest Post report request * @param {object} postReportRequest Post report request
* *
* @param {string} [postReportRequest.reason] Gets or sets report reason. * @param {string} [postReportRequest.reason] Gets or sets report reason.
* Possible values for this property include: 'Spam', 'Cyberbullying', * Possible values include: 'Spam', 'Cyberbullying', 'ChildEndangerment',
* 'ChildEndangerment', 'Offensive', 'ContentInfringement', 'Other'. * 'Offensive', 'ContentInfringement', 'Other'
* *
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
@ -124,9 +118,6 @@ TopicReports.prototype.postReport = function (topicHandle, postReportRequest, au
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -128,7 +122,6 @@ Topics.prototype.getTopics = function (options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -187,14 +180,14 @@ Topics.prototype.getTopics = function (options, callback) {
* @param {object} request Post topic request * @param {object} request Post topic request
* *
* @param {string} [request.publisherType] Gets or sets publisher type. * @param {string} [request.publisherType] Gets or sets publisher type.
* Possible values for this property include: 'User', 'App'. * Possible values include: 'User', 'App'
* *
* @param {string} [request.title] Gets or sets topic title * @param {string} [request.title] Gets or sets topic title
* *
* @param {string} [request.text] Gets or sets topic text * @param {string} [request.text] Gets or sets topic text
* *
* @param {string} [request.blobType] Gets or sets topic blob type. Possible * @param {string} [request.blobType] Gets or sets topic blob type. Possible
* values for this property include: 'Unknown', 'Image', 'Video', 'Custom'. * values include: 'Unknown', 'Image', 'Video', 'Custom'
* *
* @param {string} [request.blobHandle] Gets or sets topic blob handle * @param {string} [request.blobHandle] Gets or sets topic blob handle
* *
@ -289,9 +282,6 @@ Topics.prototype.postTopic = function (request, authorization, options, callback
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -427,7 +417,6 @@ Topics.prototype.getTopic = function (topicHandle, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -577,9 +566,6 @@ Topics.prototype.putTopic = function (topicHandle, request, authorization, optio
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -710,7 +696,6 @@ Topics.prototype.deleteTopic = function (topicHandle, authorization, options, ca
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -772,8 +757,8 @@ Topics.prototype.deleteTopic = function (topicHandle, authorization, options, ca
/** /**
* @summary Get popular topics today * @summary Get popular topics today
* *
* @param {string} timeRange Time range. Possible values for this parameter * @param {string} timeRange Time range. Possible values include: 'Today',
* include: 'Today', 'ThisWeek', 'ThisMonth', 'AllTime' * 'ThisWeek', 'ThisMonth', 'AllTime'
* *
* @param {object} [options] Optional Parameters. * @param {object} [options] Optional Parameters.
* *
@ -817,8 +802,13 @@ Topics.prototype.getPopularTopics = function (timeRange, options, callback) {
var authorization = (options && options.authorization !== undefined) ? options.authorization : undefined; var authorization = (options && options.authorization !== undefined) ? options.authorization : undefined;
// Validate // Validate
try { try {
if (timeRange === null || timeRange === undefined || typeof timeRange.valueOf() !== 'string') { if (timeRange) {
throw new Error('timeRange cannot be null or undefined and it must be of type string.'); var allowedValues = [ 'Today', 'ThisWeek', 'ThisMonth', 'AllTime' ];
if (!allowedValues.some( function(item) { return item === timeRange; })) {
throw new Error(timeRange + ' is not a valid value. The valid values are: ' + allowedValues);
}
} else {
throw new Error('timeRange cannot be null or undefined.');
} }
if (cursor !== null && cursor !== undefined && typeof cursor !== 'number') { if (cursor !== null && cursor !== undefined && typeof cursor !== 'number') {
throw new Error('cursor must be of type number.'); throw new Error('cursor must be of type number.');
@ -875,7 +865,6 @@ Topics.prototype.getPopularTopics = function (timeRange, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -1027,7 +1016,6 @@ Topics.prototype.getFeaturedTopics = function (options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -125,7 +119,6 @@ UserFollowers.prototype.getFollowers = function (userHandle, authorization, opti
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -125,7 +119,6 @@ UserFollowing.prototype.getFollowing = function (userHandle, authorization, opti
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -37,8 +31,8 @@ function UserReports(client) {
* @param {object} postReportRequest Post report request * @param {object} postReportRequest Post report request
* *
* @param {string} [postReportRequest.reason] Gets or sets report reason. * @param {string} [postReportRequest.reason] Gets or sets report reason.
* Possible values for this property include: 'Spam', 'Cyberbullying', * Possible values include: 'Spam', 'Cyberbullying', 'ChildEndangerment',
* 'ChildEndangerment', 'Offensive', 'ContentInfringement', 'Other'. * 'Offensive', 'ContentInfringement', 'Other'
* *
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
@ -124,9 +118,6 @@ UserReports.prototype.postReport = function (userHandle, postReportRequest, auth
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -134,7 +128,6 @@ UserTopics.prototype.getTopics = function (userHandle, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -292,7 +285,6 @@ UserTopics.prototype.getPopularTopics = function (userHandle, options, callback)
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
'use strict'; 'use strict';
@ -35,8 +29,7 @@ function Users(client) {
* @param {object} request Post user request * @param {object} request Post user request
* *
* @param {string} [request.identityProvider] Gets or sets identity provider * @param {string} [request.identityProvider] Gets or sets identity provider
* type. Possible values for this property include: 'Facebook', 'Microsoft', * type. Possible values include: 'Facebook', 'Microsoft', 'Google', 'Twitter'
* 'Google', 'Twitter'.
* *
* @param {string} [request.accessToken] Gets or sets access or authentication * @param {string} [request.accessToken] Gets or sets access or authentication
* token obtained from third-party provider. * token obtained from third-party provider.
@ -151,9 +144,6 @@ Users.prototype.postUser = function (request, options, callback) {
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -273,7 +263,6 @@ Users.prototype.getMyProfile = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -392,7 +381,6 @@ Users.prototype.deleteUser = function (authorization, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -542,9 +530,6 @@ Users.prototype.putUserInfo = function (request, authorization, options, callbac
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -690,9 +675,6 @@ Users.prototype.putUserPhoto = function (request, authorization, options, callba
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -757,7 +739,7 @@ Users.prototype.putUserPhoto = function (request, authorization, options, callba
* @param {object} request Put user visibility request * @param {object} request Put user visibility request
* *
* @param {string} [request.visibility] Gets or sets visibility of the user. * @param {string} [request.visibility] Gets or sets visibility of the user.
* Possible values for this property include: 'Public', 'Private'. * Possible values include: 'Public', 'Private'
* *
* @param {string} authorization Authenication (must begin with string "Bearer * @param {string} authorization Authenication (must begin with string "Bearer
* ") * ")
@ -839,9 +821,6 @@ Users.prototype.putUserVisibility = function (request, authorization, options, c
return callback(serializationError); return callback(serializationError);
} }
httpRequest.body = requestContent; httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ?
requestContent.length :
Buffer.byteLength(requestContent, 'UTF8');
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -983,7 +962,6 @@ Users.prototype.getUser = function (userHandle, options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {
@ -1136,7 +1114,6 @@ Users.prototype.getPopularUsers = function (options, callback) {
} }
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null; httpRequest.body = null;
httpRequest.headers['Content-Length'] = 0;
// Send Request // Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) { return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) { if (err) {

Просмотреть файл

@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "socialPlusClient.js", "main": "socialPlusClient.js",
"dependencies": { "dependencies": {
"ms-rest": "^1.9.0" "ms-rest": "^1.10.0"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {

27
socialPlusClient.d.ts поставляемый
Просмотреть файл

@ -1,7 +1,6 @@
/* /*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Changes may cause incorrect behavior and will be lost if the code is * the MIT License. See LICENSE in the project root for license information.
* regenerated.
*/ */
import { ServiceClientOptions, RequestOptions, ServiceCallback } from 'ms-rest'; import { ServiceClientOptions, RequestOptions, ServiceCallback } from 'ms-rest';
@ -30,38 +29,38 @@ declare class SocialPlusClient {
// Operation groups // Operation groups
blobs: operations.Blobs; blobs: operations.Blobs;
builds: operations.Builds; builds: operations.Builds;
comments: operations.Comments;
topicComments: operations.TopicComments; topicComments: operations.TopicComments;
comments: operations.Comments;
hashtags: operations.Hashtags; hashtags: operations.Hashtags;
images: operations.Images; images: operations.Images;
topicLikes: operations.TopicLikes;
replyLikes: operations.ReplyLikes;
commentLikes: operations.CommentLikes; commentLikes: operations.CommentLikes;
replyLikes: operations.ReplyLikes;
topicLikes: operations.TopicLikes;
myNotifications: operations.MyNotifications; myNotifications: operations.MyNotifications;
myPins: operations.MyPins; myPins: operations.MyPins;
myPushRegistrations: operations.MyPushRegistrations; myPushRegistrations: operations.MyPushRegistrations;
replies: operations.Replies;
commentReplies: operations.CommentReplies; commentReplies: operations.CommentReplies;
replies: operations.Replies;
userReports: operations.UserReports; userReports: operations.UserReports;
topicReports: operations.TopicReports;
replyReports: operations.ReplyReports; replyReports: operations.ReplyReports;
commentReports: operations.CommentReports; commentReports: operations.CommentReports;
topicReports: operations.TopicReports;
search: operations.Search; search: operations.Search;
sessions: operations.Sessions; sessions: operations.Sessions;
requestTokens: operations.RequestTokens; requestTokens: operations.RequestTokens;
userFollowers: operations.UserFollowers;
myPendingUsers: operations.MyPendingUsers;
myFollowers: operations.MyFollowers;
myFollowing: operations.MyFollowing; myFollowing: operations.MyFollowing;
myBlockedUsers: operations.MyBlockedUsers; userFollowers: operations.UserFollowers;
myFollowers: operations.MyFollowers;
userFollowing: operations.UserFollowing; userFollowing: operations.UserFollowing;
myPendingUsers: operations.MyPendingUsers;
myBlockedUsers: operations.MyBlockedUsers;
topics: operations.Topics; topics: operations.Topics;
myTopics: operations.MyTopics;
myAppFollowing: operations.MyAppFollowing; myAppFollowing: operations.MyAppFollowing;
myTopics: operations.MyTopics;
myApps: operations.MyApps; myApps: operations.MyApps;
users: operations.Users;
myLikes: operations.MyLikes; myLikes: operations.MyLikes;
myLinkedAccounts: operations.MyLinkedAccounts; myLinkedAccounts: operations.MyLinkedAccounts;
users: operations.Users;
userTopics: operations.UserTopics; userTopics: operations.UserTopics;
} }

Просмотреть файл

@ -1,12 +1,6 @@
/* /*
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
* Licensed under the MIT License. See LICENSE in the project root for license information. * the MIT License. See LICENSE in the project root for license information.
*/
/*
* Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/ */
/* jshint latedef:false */ /* jshint latedef:false */
@ -46,43 +40,43 @@ function SocialPlusClient(baseUri, options) {
SocialPlusClient['super_'].call(this, null, options); SocialPlusClient['super_'].call(this, null, options);
this.baseUri = baseUri; this.baseUri = baseUri;
if (!this.baseUri) { if (!this.baseUri) {
this.baseUri = 'http://sp-dev-restapi.cloudapp.net'; this.baseUri = 'http://localhost:1324';
} }
this.blobs = new operations.Blobs(this); this.blobs = new operations.Blobs(this);
this.builds = new operations.Builds(this); this.builds = new operations.Builds(this);
this.comments = new operations.Comments(this);
this.topicComments = new operations.TopicComments(this); this.topicComments = new operations.TopicComments(this);
this.comments = new operations.Comments(this);
this.hashtags = new operations.Hashtags(this); this.hashtags = new operations.Hashtags(this);
this.images = new operations.Images(this); this.images = new operations.Images(this);
this.topicLikes = new operations.TopicLikes(this);
this.replyLikes = new operations.ReplyLikes(this);
this.commentLikes = new operations.CommentLikes(this); this.commentLikes = new operations.CommentLikes(this);
this.replyLikes = new operations.ReplyLikes(this);
this.topicLikes = new operations.TopicLikes(this);
this.myNotifications = new operations.MyNotifications(this); this.myNotifications = new operations.MyNotifications(this);
this.myPins = new operations.MyPins(this); this.myPins = new operations.MyPins(this);
this.myPushRegistrations = new operations.MyPushRegistrations(this); this.myPushRegistrations = new operations.MyPushRegistrations(this);
this.replies = new operations.Replies(this);
this.commentReplies = new operations.CommentReplies(this); this.commentReplies = new operations.CommentReplies(this);
this.replies = new operations.Replies(this);
this.userReports = new operations.UserReports(this); this.userReports = new operations.UserReports(this);
this.topicReports = new operations.TopicReports(this);
this.replyReports = new operations.ReplyReports(this); this.replyReports = new operations.ReplyReports(this);
this.commentReports = new operations.CommentReports(this); this.commentReports = new operations.CommentReports(this);
this.topicReports = new operations.TopicReports(this);
this.search = new operations.Search(this); this.search = new operations.Search(this);
this.sessions = new operations.Sessions(this); this.sessions = new operations.Sessions(this);
this.requestTokens = new operations.RequestTokens(this); this.requestTokens = new operations.RequestTokens(this);
this.userFollowers = new operations.UserFollowers(this);
this.myPendingUsers = new operations.MyPendingUsers(this);
this.myFollowers = new operations.MyFollowers(this);
this.myFollowing = new operations.MyFollowing(this); this.myFollowing = new operations.MyFollowing(this);
this.myBlockedUsers = new operations.MyBlockedUsers(this); this.userFollowers = new operations.UserFollowers(this);
this.myFollowers = new operations.MyFollowers(this);
this.userFollowing = new operations.UserFollowing(this); this.userFollowing = new operations.UserFollowing(this);
this.myPendingUsers = new operations.MyPendingUsers(this);
this.myBlockedUsers = new operations.MyBlockedUsers(this);
this.topics = new operations.Topics(this); this.topics = new operations.Topics(this);
this.myTopics = new operations.MyTopics(this);
this.myAppFollowing = new operations.MyAppFollowing(this); this.myAppFollowing = new operations.MyAppFollowing(this);
this.myTopics = new operations.MyTopics(this);
this.myApps = new operations.MyApps(this); this.myApps = new operations.MyApps(this);
this.users = new operations.Users(this);
this.myLikes = new operations.MyLikes(this); this.myLikes = new operations.MyLikes(this);
this.myLinkedAccounts = new operations.MyLinkedAccounts(this); this.myLinkedAccounts = new operations.MyLinkedAccounts(this);
this.users = new operations.Users(this);
this.userTopics = new operations.UserTopics(this); this.userTopics = new operations.UserTopics(this);
this.models = models; this.models = models;
msRest.addSerializationMixin(this); msRest.addSerializationMixin(this);

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

6378
swagger2.json Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу