Граф коммитов

112 Коммитов

Автор SHA1 Сообщение Дата
Kamil Pajdzik 91fce83166
Fix (de)serializing polymorphic elements in an array (#262)
* Prepare additional test case

* Fix array element's name

* Fix serializing polymorphic elements in array

* Address code review comments
2018-11-07 10:55:35 -08:00
Kamil Pajdzik 059c685e07
Fix deserializing nested composite types with no polymorphic discriminator specified (#258) 2018-11-05 13:55:00 -08:00
Kamil Pajdzik 2bbdcf857f Revert "Fix missing renaming in ServiceClient (#256)"
This reverts commit 576e7f791a.
2018-11-02 13:05:44 -07:00
Kamil Pajdzik 576e7f791a
Fix missing renaming in ServiceClient (#256)
* Fix missing renaming in ServiceClient

* Rename references in unit tests

* Fix failing test
2018-11-02 12:06:59 -07:00
Kamil Pajdzik 1ea02dac61
Reorganize user agent telemetry construction (#254)
* Restructure value of user agent telemetry

* Add option to set empty telemetry

* Simplify if condition
2018-11-01 09:26:55 -07:00
Kamil Pajdzik 523b891b4d
Add browser telemetry (#252) 2018-10-26 13:59:05 -07:00
Dan Schulte 33a44e4dcb Apply ignore headers scenario to numbers 2018-10-17 09:30:42 -07:00
Dan Schulte fc4fab8fea Add another test 2018-10-16 19:59:32 -07:00
Dan Schulte c8ed724a4c Ignore XML headers when deserializing XML elements with headers and text 2018-10-16 18:49:18 -07:00
Dan Schulte 2b2fb53eb6 Change arrow functions in tests back to regular functions 2018-10-15 15:47:42 -07:00
Dan Schulte 27275da3e4 Add ability to set the content types that map to JSON and XML deserialization 2018-10-15 15:40:40 -07:00
Dan Schulte 6c4e1be904 Make xml parsing more consistent and add tests 2018-10-15 15:16:41 -07:00
Kamil Pajdzik f64878f3d8
Update User-Agent (#239)
* Update User-Agent

This reverts commit 02cfece80a.

* Make User-Agent lowercase

* Update unit tests
2018-10-01 14:35:53 -07:00
Dan Schulte d188f4a1fd Add URLBuilder.appendPath() 2018-10-01 13:55:56 -07:00
Rikki Gibson 3c131b37f7
Es interop (#232)
* Update tsconfig

* Update library code usages

* Update test code usages

* Update testserver
2018-09-20 10:02:51 -07:00
Rikki Gibson 47f5a8fb72
Check instanceof RestError in test (#229) 2018-09-12 14:58:42 -07:00
Rikki Gibson ed41e39d6e
Simplify polymorphic serialization (#222)
* remove old version of polymorphic discriminator

* reduce some null/undefined checks

* Further condense getPolymorphicMapper

* Remove string polymorphic discriminator test
2018-09-11 15:04:02 -07:00
Kamil Pajdzik 9cd19888a4
Added support for EventGrid TopicCredentials object (#216)
* Add support for EventGrid TopicCredentials
2018-09-05 12:25:08 -07:00
Rikki Gibson 77d134fa12
Change Object.values to Object.keys (#215)
* Add test for deserializing response bodies

* Use Object.keys instead of Object.values

* Check the actual value of the body in test
2018-09-05 10:00:56 -07:00
Rikki Gibson c8ed5b1c42
Fix for IE 11 undefined body (#213) 2018-09-04 09:36:49 -07:00
Rikki Gibson 75a8b39713
IE fixes (#211)
* Catch exception when parsing invalid XML document

* xhr.open() before setting xhr.timeout

* Fix linter error
2018-08-31 15:52:25 -07:00
Rikki Gibson 86836d2443
Use Object.defineProperty for _response property (#209)
* Add test

* Use Object.defineProperty to add _response property
2018-08-31 10:30:38 -07:00
Rikki Gibson 16f681cd64
Add RestResponse type and more runtime deserialization features (#205)
* Add RestResponse type and more runtime deserialization features

* _response should always win in name conflicts

* Fix linter errors

* Make blobBody just a Promise, not a function. Resolves #192

* Fix tests

* Remove utils.responseToBody

* Update RestResponse doc

* Add default error to retry policy. Move error codes to RestError static properties.

* Bump to v0.21
2018-08-29 10:16:55 -07:00
Dan Schulte 57e1c579c2 Merge branch 'master' into daschult/skipdeserialization 2018-08-24 13:34:31 -07:00
Dan Schulte 1bdefe3539 Changes needed for LRO support 2018-08-24 13:20:24 -07:00
Rikki Gibson 6a66832cb7
Headers fix (#199)
* Fix axios type errors

* Lowercase header names in .rawHeaders()

* Fix Firefox headers deserialization for empty string header value

* Add xhr parseHeaders tests

* Fix linter error
2018-08-23 13:13:48 -07:00
Rikki Gibson c5d54d7e63
Typescript 3 (#182)
* Add module field referencing esm code. Update typescript and ts-node.

* Update package-lock.json

* Use <reference lib=dom /> to solve #157

* Add simple test for nonexistent host

* Use -T with ts-node

* Use forward declaration instead of reference lib directive
2018-08-22 16:16:40 -07:00
Rikki Gibson e240203ca0
RequestPolicyCreator -> RequestPolicyFactory (#184)
* RequestPolicyCreator -> RequestPolicyFactory

* Bump to v0.18

* Update changelog for 0.18
2018-08-08 17:00:35 -07:00
Rikki Gibson 5bd7b67e4d
Mapper interfaces (#180)
* Update mapper type definitions

* Fix tests

* Fix CompositeType className and modelProperties

* Bump to v0.17.0
2018-07-31 13:08:24 -07:00
Rikki Gibson bfeb1adfc9
Call progress callbacks in nodejs streams (#177)
* Call progress callbacks in nodejs streams

* Use tough-cookie instead of isomorphic-tough-cookie

* Support progress reporting for non-stream scenarios

* Add separate blob/stream and buffer/string progress tests
2018-07-26 09:23:42 -07:00
Rikki Gibson 648d4ccf84 Fix log filter test 2018-07-17 13:47:21 -07:00
Rikki Gibson 33e446c44e Add test 2018-07-17 13:35:55 -07:00
Dan Schulte 3e09095403
Merge pull request #173 from Azure/daschult/optionalparameters
Simplify OperationArguments
2018-07-16 13:12:18 -07:00
Dan Schulte 6adb071586 Add tests for getting operation arguments 2018-07-16 09:52:39 -07:00
Rikki Gibson 324f200ab0 Fix bug and add tests 2018-07-16 09:06:43 -07:00
Dan Schulte 1317489974 Working on failing autorest.typescript tests 2018-07-12 10:34:17 -07:00
Dan Schulte 971617eece Get client properties from ServiceClient instead of OperationArguments 2018-07-11 10:42:51 -07:00
Dan Schulte d3d1e89a2b Fix tests 2018-07-09 13:32:30 -07:00
Dan Schulte d22849a6fd Fix bug where we were stringifying XML stream request bodies 2018-07-09 13:22:39 -07:00
Rikki Gibson a16d3dd725 Add test to ServiceClient 2018-07-09 11:20:23 -07:00
Gneev Roland aa3a31f175 Test actualization 2018-07-09 11:19:09 -07:00
Gneev Roland 98107b1ebd withCredentials option in WebResource 2018-07-09 11:19:09 -07:00
Rikki Gibson c072b42420
Merge pull request #159 from RikkiGibson/x-nullable
Support x-nullable
2018-07-09 11:17:48 -07:00
Gneev Roland 7cc550e780 Added support for array-typed query parameters with collectionFormat:multi 2018-07-04 15:34:53 +03:00
Rikki Gibson 13da6db58b Support x-nullable 2018-06-28 12:17:31 -07:00
Dan Schulte f19a1755d5 Move request body serialization into ServiceClient.sendOperationRequest() 2018-06-25 15:51:07 -07:00
Dan Schulte 5447985a2b
Merge pull request #149 from Azure/daschult/deserializeSuccessResponses
Move successful response deserialization to runtime
2018-06-25 14:55:59 -07:00
Dan Schulte 4acf583487 Move successful response deserialization to runtime 2018-06-25 14:45:39 -07:00
Rikki Gibson 23356e4e71 Fix remaining CI errors 2018-06-22 16:47:39 -07:00
Rikki Gibson c2dc0ae912 Handle abort, progress, and fix webpack configs 2018-06-22 14:38:37 -07:00