1- /*
1+ /*
22 * ---------------------------------------------------------
33 * Copyright(C) Microsoft Corporation. All rights reserved.
44 * ---------------------------------------------------------
1111// Licensed under the MIT license. See LICENSE file in the project root for full license information.
1212
1313import * as restm from 'typed-rest-client/RestClient' ;
14- import * as httpm from 'typed-rest-client/HttpClient' ;
1514import vsom = require( './VsoClient' ) ;
1615import basem = require( './ClientApiBases' ) ;
17- import serm = require( './Serialization' ) ;
1816import VsoBaseInterfaces = require( './interfaces/common/VsoBaseInterfaces' ) ;
1917import CoreInterfaces = require( "./interfaces/CoreInterfaces" ) ;
2018import OperationsInterfaces = require( "./interfaces/common/OperationsInterfaces" ) ;
@@ -75,7 +73,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
7573
7674 try {
7775 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
78- "4.1 -preview.1" ,
76+ "5.0 -preview.1" ,
7977 "core" ,
8078 "b4f70219-e18b-42c5-abe3-98b07d35525e" ,
8179 routeValues ) ;
@@ -117,7 +115,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
117115
118116 try {
119117 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
120- "4.1 -preview.1" ,
118+ "5.0 -preview.1" ,
121119 "core" ,
122120 "b4f70219-e18b-42c5-abe3-98b07d35525e" ,
123121 routeValues ) ;
@@ -162,7 +160,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
162160
163161 try {
164162 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
165- "4.1 -preview.1" ,
163+ "5.0 -preview.1" ,
166164 "core" ,
167165 "b4f70219-e18b-42c5-abe3-98b07d35525e" ,
168166 routeValues ,
@@ -204,7 +202,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
204202
205203 try {
206204 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
207- "4.1 -preview.1" ,
205+ "5.0 -preview.1" ,
208206 "core" ,
209207 "5ead0b70-2572-4697-97e9-f341069a783a" ,
210208 routeValues ) ;
@@ -245,7 +243,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
245243
246244 try {
247245 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
248- "4.1 -preview.1" ,
246+ "5.0 -preview.1" ,
249247 "core" ,
250248 "5ead0b70-2572-4697-97e9-f341069a783a" ,
251249 routeValues ) ;
@@ -284,7 +282,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
284282
285283 try {
286284 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
287- "4.1 -preview.1" ,
285+ "5.0 -preview.1" ,
288286 "core" ,
289287 "5ead0b70-2572-4697-97e9-f341069a783a" ,
290288 routeValues ) ;
@@ -325,7 +323,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
325323
326324 try {
327325 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
328- "4.1 -preview.1" ,
326+ "5.0 -preview.1" ,
329327 "core" ,
330328 "5ead0b70-2572-4697-97e9-f341069a783a" ,
331329 routeValues ) ;
@@ -378,7 +376,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
378376
379377 try {
380378 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
381- "4.1 -preview.2" ,
379+ "5.0 -preview.2" ,
382380 "core" ,
383381 "294c494c-2600-4d7e-b76c-3dd50c3c95be" ,
384382 routeValues ,
@@ -420,7 +418,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
420418
421419 try {
422420 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
423- "4.1 -preview.1" ,
421+ "5.0 -preview.1" ,
424422 "core" ,
425423 "93878975-88c5-4e6a-8abb-7ddd77a8a7d8" ,
426424 routeValues ) ;
@@ -458,7 +456,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
458456
459457 try {
460458 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
461- "4.1 -preview.1" ,
459+ "5.0 -preview.1" ,
462460 "core" ,
463461 "93878975-88c5-4e6a-8abb-7ddd77a8a7d8" ,
464462 routeValues ) ;
@@ -499,7 +497,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
499497
500498 try {
501499 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
502- "4.1 -preview.2" ,
500+ "5.0 -preview.2" ,
503501 "core" ,
504502 "8031090f-ef1d-4af6-85fc-698cd75d42bf" ,
505503 routeValues ) ;
@@ -546,7 +544,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
546544
547545 try {
548546 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
549- "4.1 -preview.2" ,
547+ "5.0 -preview.2" ,
550548 "core" ,
551549 "8031090f-ef1d-4af6-85fc-698cd75d42bf" ,
552550 routeValues ,
@@ -589,7 +587,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
589587
590588 try {
591589 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
592- "4.1 -preview.2" ,
590+ "5.0 -preview.2" ,
593591 "core" ,
594592 "6488a877-4749-4954-82ea-7340d36be9f2" ,
595593 routeValues ,
@@ -640,7 +638,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
640638
641639 try {
642640 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
643- "4.1 -preview.3" ,
641+ "5.0 -preview.3" ,
644642 "core" ,
645643 "603fe2ac-9723-48b9-88ad-09305aa6c6e1" ,
646644 routeValues ,
@@ -667,7 +665,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
667665 }
668666
669667 /**
670- * Get project references with the specified state
668+ * Get all projects in the organization that the authenticated user has access to.
671669 *
672670 * @param {any } stateFilter - Filter on team projects in a specific team project state (default: WellFormed).
673671 * @param {number } top
@@ -694,7 +692,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
694692
695693 try {
696694 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
697- "4.1 -preview.3" ,
695+ "5.0 -preview.3" ,
698696 "core" ,
699697 "603fe2ac-9723-48b9-88ad-09305aa6c6e1" ,
700698 routeValues ,
@@ -721,7 +719,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
721719 }
722720
723721 /**
724- * Queue a project creation .
722+ * Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status .
725723 *
726724 * @param {CoreInterfaces.TeamProject } projectToCreate - The project to create.
727725 */
@@ -735,7 +733,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
735733
736734 try {
737735 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
738- "4.1 -preview.3" ,
736+ "5.0 -preview.3" ,
739737 "core" ,
740738 "603fe2ac-9723-48b9-88ad-09305aa6c6e1" ,
741739 routeValues ) ;
@@ -761,7 +759,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
761759 }
762760
763761 /**
764- * Queue a project deletion .
762+ * Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status .
765763 *
766764 * @param {string } projectId - The project id of the project to delete.
767765 */
@@ -776,7 +774,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
776774
777775 try {
778776 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
779- "4.1 -preview.3" ,
777+ "5.0 -preview.3" ,
780778 "core" ,
781779 "603fe2ac-9723-48b9-88ad-09305aa6c6e1" ,
782780 routeValues ) ;
@@ -819,7 +817,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
819817
820818 try {
821819 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
822- "4.1 -preview.3" ,
820+ "5.0 -preview.3" ,
823821 "core" ,
824822 "603fe2ac-9723-48b9-88ad-09305aa6c6e1" ,
825823 routeValues ) ;
@@ -866,7 +864,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
866864
867865 try {
868866 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
869- "4.1 -preview.1" ,
867+ "5.0 -preview.1" ,
870868 "core" ,
871869 "4976a71a-4487-49aa-8aab-a1eda469037a" ,
872870 routeValues ,
@@ -914,7 +912,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
914912
915913 try {
916914 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
917- "4.1 -preview.1" ,
915+ "5.0 -preview.1" ,
918916 "core" ,
919917 "4976a71a-4487-49aa-8aab-a1eda469037a" ,
920918 routeValues ) ;
@@ -953,7 +951,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
953951
954952 try {
955953 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
956- "4.1 -preview.2" ,
954+ "5.0 -preview.2" ,
957955 "core" ,
958956 "ec1f4311-f2b4-4c15-b2b8-8990b80d2908" ,
959957 routeValues ) ;
@@ -986,6 +984,9 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
986984 proxyUrl : string ,
987985 site ?: string
988986 ) : Promise < void > {
987+ if ( proxyUrl == null ) {
988+ throw new TypeError ( 'proxyUrl can not be null or undefined' ) ;
989+ }
989990
990991 return new Promise < void > ( async ( resolve , reject ) => {
991992 let routeValues : any = {
@@ -998,7 +999,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
998999
9991000 try {
10001001 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1001- "4.1 -preview.2" ,
1002+ "5.0 -preview.2" ,
10021003 "core" ,
10031004 "ec1f4311-f2b4-4c15-b2b8-8990b80d2908" ,
10041005 routeValues ,
@@ -1041,7 +1042,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
10411042
10421043 try {
10431044 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1044- "4.1 -preview.2" ,
1045+ "5.0 -preview.2" ,
10451046 "core" ,
10461047 "ec1f4311-f2b4-4c15-b2b8-8990b80d2908" ,
10471048 routeValues ,
@@ -1092,7 +1093,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
10921093
10931094 try {
10941095 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1095- "4.1 -preview.2" ,
1096+ "5.0 -preview.2" ,
10961097 "core" ,
10971098 "7a4d9ee9-3433-4347-b47a-7a80f1cf307e" ,
10981099 routeValues ,
@@ -1136,7 +1137,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
11361137
11371138 try {
11381139 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1139- "4.1 -preview.2" ,
1140+ "5.0 -preview.2" ,
11401141 "core" ,
11411142 "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59" ,
11421143 routeValues ) ;
@@ -1180,7 +1181,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
11801181
11811182 try {
11821183 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1183- "4.1 -preview.2" ,
1184+ "5.0 -preview.2" ,
11841185 "core" ,
11851186 "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59" ,
11861187 routeValues ) ;
@@ -1224,7 +1225,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
12241225
12251226 try {
12261227 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1227- "4.1 -preview.2" ,
1228+ "5.0 -preview.2" ,
12281229 "core" ,
12291230 "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59" ,
12301231 routeValues ) ;
@@ -1277,7 +1278,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
12771278
12781279 try {
12791280 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1280- "4.1 -preview.2" ,
1281+ "5.0 -preview.2" ,
12811282 "core" ,
12821283 "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59" ,
12831284 routeValues ,
@@ -1324,7 +1325,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
13241325
13251326 try {
13261327 let verData : vsom . ClientVersioningData = await this . vsoClient . getVersioningData (
1327- "4.1 -preview.2" ,
1328+ "5.0 -preview.2" ,
13281329 "core" ,
13291330 "d30a3dd1-f8ba-442a-b86a-bd0c0c383e59" ,
13301331 routeValues ) ;
0 commit comments