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

281 Коммитов

Автор SHA1 Сообщение Дата
Ramya Rao 5a7c129972
Update engines, @types/node to Node.js v12 (#15996) 2021-06-28 15:54:47 -07:00
Jose Manuel Heredia Hidalgo cbaa410a49
[Tables] Expose client option allowInsecureConnection (#15938)
In order for Tables to connect to Azurite and Storage emulator, the client needs to accept `allowInsecureConnection`. Also when using the emulator connection string shortcut, setting it by default.
2021-06-24 18:46:20 +00:00
Jose Manuel Heredia Hidalgo 1f6b914ee2
[Tables] Add missing browser mappings (#15944)
* Add missing browser mappings

* Update changelog
2021-06-24 10:30:18 -07:00
Jose Manuel Heredia Hidalgo 2d2c6561ca
[Tables] Support AAD Authentication (#15852)
* Support AAD Authentication

* Update changelog

* Update recordings

* fix format

* Update sdk/tables/data-tables/README.md

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>

* Address comments and add test

* Update release version

* Add Acknowledgments to changelog

* Fix link

* Remove breaking changes section

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>
2021-06-23 15:49:17 -07:00
Maor Leger 99d53b6b85
[core] - GA core-rest-pipeline 1.1.0 (#15923)
## What

- Update `@azure/core-rest-pipeline` to 1.1.0 from beta
- Update dependencies to the latest version
- Update everyone to the same version of `@azure/core-tracing`

## Why

Now that we used the CAE capabilities added in core-rest-pipeline in both container registry and key vault it's time to GA this version! It also unblocks our efforts to get everyone upgraded to the latest core-tracing (and OTel by extension) versions.
2021-06-23 13:49:36 -07:00
Jose Manuel Heredia Hidalgo 65a90e57bc
[Tables] Migration Guide (#15857)
* Migration Guide

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Update sdk/tables/data-tables/MigrationGuide.md

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Fix typos

* Apply suggestions from code review

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>

* Address comments

Co-authored-by: Christopher Scott <chriscott@hotmail.com>
Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>
2021-06-23 13:35:24 -07:00
Will Temple c7f3a2a70b Replace master with main in homepage links. 2021-06-22 16:09:11 -07:00
Chidozie Ononiwu a64747cf6a Rename hardcoded master links to use main 2021-06-22 15:51:16 -07:00
praveenkuttappan d769b84431
Change default branch name to main (#15840) 2021-06-18 14:27:11 -04:00
Jeremy Meng 11e2a4bdd4
Remove IE related doc and tests (#15760)
As we are ending the support for IE 11, this PR remove doc and test logic that
handle IE.

- Remove commented polyfill from karma configs
- Remove IE compatibility section from Stroage README files
- Remove IE specific logic from storage tests.
- Remove Storage TODO comments for IE.

* format

* run format on core-client-rest
2021-06-16 14:20:49 -07:00
Deyaaeldeen Almahallawi d3f0285339
[tslib] Upgrade from 2.0 to 2.2 (#15702) 2021-06-11 16:09:45 -04:00
Eros Stein b4e906ca56
Fixes #15664 (#15698) 2021-06-11 11:01:13 -07:00
Azure SDK Bot 89f74ab486
Increment package version after release of azure-data-tables (#15651) 2021-06-09 15:59:59 -07:00
Jose Manuel Heredia Hidalgo 540791d0af
[Tables] Fix setting access policy and add test (#15633)
* Re-generate and Custom serialization for ACL

* format

* update readme

* format readme

* Update changelog

* set swagger package-version

* Update format script

* Fix test and update changelog

* update recorder and recordings

* fix test and changelog

* use deterministic date for test

* update format

* fix lint

* return await

* Update TSDoc samples

* Add additional samples to TSDoc
2021-06-09 13:36:52 -07:00
Jose Manuel Heredia Hidalgo 60d4d5b47c
[Tables] Support SAS Credential and SAS generation (#15564) 2021-06-07 19:55:02 -07:00
Azure SDK Bot 73661c9a80
Increment package version after release of azure-data-tables (#15319) 2021-06-04 16:33:19 -07:00
Jose Manuel Heredia Hidalgo 60f5b7ae02
[Tables] Drop TablesSharedKeyCredential in favor of core-auth NamedKeyCredential (#15529) 2021-06-03 15:31:08 -07:00
Jeremy Meng 744f9f2872
[tables] fix CI failure Node v8 (#15535) 2021-06-03 13:45:45 -04:00
Jose Manuel Heredia Hidalgo 5701967370
Refactor SubmitTransaction to fix multiple send issue (#15493)
* Refactor SubmitTransaction to fix multiple send issue

* Browser recording

* fix lint

* Address PR comments

* Make reset-able state an object
2021-06-02 15:48:57 -07:00
Richard Park 4cc4db1216
[data-tables] Fixing spelling error. (#15411)
`Ommited` should be `Omitted`
2021-05-25 16:41:07 -07:00
Deyaaeldeen Almahallawi 6968df58cc
Upgrade core v2 dep to ^1.0.3 (#15318)
* [Text Analytics] Upgrade core v2 dep to ^1.0.3

* update all other packages

* remove exception
2021-05-19 12:10:57 -04:00
Harsha Nalluru c1e9148189
[Tables] Fix core-ci <=> skip int64 tests in node 8 (#15323)
core - ci was failing for the following two tests in node 8 since bigint is being used.
![image](https://user-images.githubusercontent.com/10452642/118705419-0da49280-b7cd-11eb-8a2e-b456f997c3ae.png)

Talked to @joheredi and decided to skip these tests in node 8 to unblock.
2021-05-18 21:24:18 +00:00
Jose Manuel Heredia Hidalgo 39591c2c4c
[Tables] Skip Node8 for Live Test Validation (#15307)
Node8 Validation was dropped for Tables CI. Live tests need to drop Node8 validation as well as it is not compatible with bigint
2021-05-17 19:58:10 +00:00
Jose Manuel Heredia Hidalgo c44cfc8bce
[Tables] Support bigint (#15275)
* First stab at supporting bigint

* Address PR comments

* Fix lint issues

* expose pipeline

* Update CI and API Surface

* Try excluding node8

* TestType filter

* Display name filter

* Remove variables

* Keep jobMatrixFilter
2021-05-17 09:37:06 -07:00
Jose Manuel Heredia Hidalgo 044d139da2
[Tables] Refactor Tables transaction (#15250)
* Refactor Transaction

* Add TableTransaction helper

* update changelog

* fix lint

* update docstring

* Update jsdocs and cache interceptClient

* Fix lint
2021-05-13 13:07:05 -07:00
Jose Manuel Heredia Hidalgo 29d1a7d806
[Tables] Add createIfNotExists and deleteIfExists (#14956)
* Add createIfNotExists and deleteIfExists. Loosen Entity output type

* Rename property tableName to name

* update samples

* Cleanup models

* more type cleanup

* remove un-used request options

* Remove next prefixed properties from public types

* Add date samples

* Update batch sample

* Publish samples

* Remove ifNotExist and ifExist
2021-05-11 17:11:31 -07:00
Azure SDK Bot 45c1fdf027
Increment package version after release of azure-data-tables (#14764) 2021-04-22 18:50:56 -07:00
Jose Manuel Heredia Hidalgo b8c4ac2f09
Add upsert operation to BatchClient and upgrade samples (#14799)
* Add upsert operation to BatchClient and upgrade samples

* delete legacy samples

* Remove locale

* Fix links

* Fix samples logger issue

* Re-publish samples
2021-04-13 18:32:50 -07:00
Jose Manuel Heredia Hidalgo 4bd620afe1
[Tables] Update changelog for April 2021 release (#14712)
* Update changelog

* Format

* Update sdk/tables/data-tables/CHANGELOG.md
2021-04-06 13:11:40 -07:00
Richard Park f1054c3076
[tracing] updating to opentelemetry 1.0.0-rc.0 (#14208)
* Upgrading to opentelemetry 1.0.0 (rc.0)

Did a few things that made this MUCH easier.

Now that everyone is using the createSpan from @azure/core-tracing we
no longer need _every_ project to reference opentelemetry/api! That has
been removed as part of this PR.

Unfortunately, the leaky nature of JS means that packages still need to
worry about opentelemetry when they build their browser bundle for
testing. To make that simpler I've added a common function to dev-tool
that everyone can call in their rollup that will give them the correct
named exports. This is hooked up for everyone at this point, so the next
time something like this happens I should be able to control it
centrally.

Now for the API breaking changes that I had to fix:
- CanonicalCode is gone and is replaced with SpanStatusCode.
  SpanStatusCode has a much smaller set of codes (literally: ERROR, OK
  or UNSET) so that simplified most of the way we were handling setting
  a span status on error.
- There is a new field (`tracingContext`) that contains `Context`. You
  now pass a context, not a span, to indicate what your "parent" is.
  You'll see this where I've removed `SpanOptions.parentSpan`. Mostly
  it's a simple replacement.
2021-03-29 15:18:40 -07:00
Deyaaeldeen Almahallawi 1f06810067
Use TS ESLint's no-invalid-this instead (#14458)
Implements the approach described here: https://github.com/Azure/azure-sdk-for-js/pull/14406#issuecomment-805869359 to linting `this` references. Reminder to myself: look for typescript-eslint alternatives when the behavior of eslint is not satisfactory.
2021-03-25 19:19:59 +00:00
Will Temple a22db68cc5
[dev-tool] `samples publish` command and changes to samples workflow (#13960)
* [dev-tool] Experimental samples publish command

* Updated template samples structure

* First generation of template samples

* Update to ts-node 9 and use transpilation mode for speed.

* Many improvements and fixes.

- Fixed several bugs with generation.
- Added environment variable analysis.
- Refactored modules for code organization.
- Added azsdk- JSDoc tags for weighting and ignoring samples.
- Made almost all illogical situations yield errors instead of warnings.

* Rework text analytics

* Fixed a bug in the README template saying something about the Template package

* Regenerate text analytics samples

* Consistency changes to dev-tool/register

* Updated TA and Template package.json

* Fixed a couple of file name rendering bugs in the template

* Added API ref link override and regenerated Template samples

* Format

* Fix broken link

* Made typescript version reflect dev-tool ts dependency

* Revert weird change to cosmosdb package.json

* Alpha sort template deps

* Added MIN_SUPPORTED_NODE_VERSION

* Tweaked default tsconfig.

* Use version 1.0.0 instead of 0.1.0

* Pull sample generation info types into their own module.

* Added resource creation link generation.

* Regenerate template samples

* Regenerate text analytics samples

* Regenerate text analytics samples

* Regenerate template samples

* Fix bug in TA samples
2021-03-22 19:05:13 -07:00
Deyaaeldeen Almahallawi 18b3f30602
Use @this to satisfy ESLint's no-invalid-this (#14406)
# Problem

`no-invalid-this` makes sure uses of `this` are valid (see [docs](https://eslint.org/docs/rules/no-invalid-this) and [implementation](8984c91372/lib/rules/utils/ast-utils.js (L900))). However, uses of `this` are rampant in our test suites because this is how mocha unit tests are structured, the Mocha context can be accessed only through `this`. 

# Fix

So instead of disabling `no-invalid-this` in our test suites, this PR tags functions that reference `this` with `@this` and that satisfies the rule requirements (see [docs](https://eslint.org/docs/rules/no-invalid-this)).

# Discussion

It could be argued that this work just replaces one comment annotation with another so we did not really solve the underlying problem. However, the inherent problem lies in how mocha itself works and there is nothing we can do other than probably migrating to another framework that is more sane/type-safe. One minor improvement we get is we now have slightly less syntactic overhead because we need to tag just the function instead of individual lines in its body that violate the rule.

# Trade-offs

Pros:
- function tags are less than line tags

Cons:
- whitelisting one more tag with the tsdoc linter that our devs need to learn about
- still having rampant tags everywhere

Fixes https://github.com/Azure/azure-sdk-for-js/issues/11404
2021-03-23 00:51:54 +00:00
Deyaaeldeen Almahallawi a26462540e
Upgrade Typescript version to 4.2 (#14402)
Upgrade to the next minor version. See the release notes here: https://www.typescriptlang.org/docs/handbook/release-notes/overview.html#typescript-42.
2021-03-22 21:10:07 +00:00
Deyaaeldeen Almahallawi 5bf75f6185
Update TypeScript version to use ~ (#14387)
I confirmed with the TypeScript team that patch releases should not introduce breaking changes. This PR uses tilde in TypeScript version we use so get the latest patch releases for v4.1.
2021-03-22 02:26:08 +00:00
Matt Ellis eb8e07804c
[EventGrid] Prepare for GA Release (#14318)
* [EventGrid] Update to {core-client,core-rest-pipeline}@^1.0.0

* [EventGrid] Prepare for GA Release

- Update version to `4.0.0` from `3.0.0-preview.4`.  The move to
  `4.0.0` is to align our version with the new SDKs for EventGrid from
  the other languages.
- Update CHANGELOG.md
2021-03-17 20:46:06 +00:00
Ramya Rao c2c0ab0e94
[AppConfig, EventGrid, KeyVault, Tables] Run format (#14326) 2021-03-16 22:10:14 -07:00
Azure SDK Bot 8b95220ece
Increment package version after release of azure-data-tables (#14235) 2021-03-11 10:19:31 -08:00
chradek 2660692aff
upgrade karma from ^5.1.0 to ^6.2.0 (#14238)
* upgrade karma from ^5.1.0 to ^6.2.0

* rush update --full
2021-03-11 10:12:31 -08:00
Jeremy Meng 7e71194c95
[Core v2] Revert GA version bump and release another preview (#14188)
* Revert "[core v2] prepare for GA release (#14170)"

This reverts commit 0e06e728d6.

* [Core v2] Revert GA version bump and release another preview

* Not releasing core-xml

* Update release date
2021-03-10 13:32:55 -08:00
Jose Manuel Heredia Hidalgo 6b25f8171f
[Tables] Update changelog (#14197)
* Update changelog

* formatting
2021-03-09 14:42:42 -08:00
Jeremy Meng 0e06e728d6
[core v2] prepare for GA release (#14170)
* [core v2] prepare for GA release

- core-rest-pipeline. Update version and release date

* - core-xml. update version and release date

* - core-client. update version and release date
2021-03-08 12:33:18 -08:00
KarishmaGhiya a3ab0248e5
update version for @azure/data-tables (#14105) 2021-03-04 14:38:55 -08:00
Richard Park a6ebd85fde
[tracing] Moving spanOptions to `tracingOptions` in PipelineRequest (#14094)
Creating a `tracingOptions` property on PipelineRequest and using createSpan internally rather than starting spans directly.

Also, allows callers to use createSpanFunction() without a package prefix or namespace (needed for core-http and lower level libraries).
2021-03-04 20:08:33 +00:00
Jose Manuel Heredia Hidalgo 96fe07ef95
[Tables] Fix docs and case-insensitive ConnectionString (#13954)
* Fix docs and case-insensitive CS

* Hide top query option

* Keep default empty object

* address feedback

* Fix connection string

* test cs with = in value
2021-03-03 19:12:51 -08:00
Jose Manuel Heredia Hidalgo 0941b23115
[Device Update] Release of Device Update for IoT Hub SDK for JavaScript (#14066)
* Initial commit

* update package.json

* Add first sample

* Format

* Add simple sample

* Update samples metadata

* Formatting

* Enalbe build and execute samples scripts

* UPDATE LOCK

* update ci

* update scripts

* update test

* don't throw

* Update readme

* Fix readmes

* Update types destination

* Update package

* Update credential scope

* Add changelog

* Update package.json

* Skip lint

* Update dependencies

* Fix readme

* fix tables broken references

* Update release date
2021-03-03 19:11:57 -08:00
Jose Manuel Heredia Hidalgo 10e4017ab0
Fix and enable Batch browser tests (#13955) 2021-03-03 16:07:51 -08:00
Richard Park cf99c3efa9
[core-tracing] In-place change of the version for core-tracing from -beta to -preview and compatible type change (#14082)
- Making some changes to simplify the "duplicate" models that we're exporting to mirror the opentelemetry models (addresses feedback from @xirzec and @bterlson)
- Switch core-tracing back to the `-preview` version naming style. Changing it mid-stream like we did breaks internal tooling.
2021-03-03 22:31:15 +00:00
Jeff Fisher e4838de481
[core-https] Rename core-https to core-rest-pipeline (#14042) 2021-03-03 12:11:11 -08:00
Ben Broderick Phillips 1d3632650c
Update live test yaml to use cloud and matrix configuration (#13886)
* Update live test templates to use matrix generation

* Update sdk live tests to use matrix generation, cloud config stages

* Fix live test matrix filter parity errors

* Remove matrix filters. Opt-in most tests to samples and min/max testing

* Fix post step template parameter in monitor live tests

* Filter dependency version for live tests that don't support it

* Only publish test results for browser and node tests
2021-03-01 19:25:57 -05:00
Richard Park 82c42a2512
[telemetry] Centralize (as much as is practical) the creation of spans to ease upgrades (#13887)
As part of prepping for the next release of OpenTelemetry we found some code patterns that were going to become a large maintenance burden for us, primarily around the parenting of spans. To make this easier I've removed as many duplicate implementation of createSpan and tried to centralize everything into core-tracing instead. 

This won't completely remove changes needed for a newer version of OpenTelemetry but it'll eliminate one of the bigger bottlenecks.
2021-02-25 21:36:47 -08:00
Sima Zhu 349613a6bd
Added main branch in ci yaml files (#13926) 2021-02-25 09:17:54 -08:00
Jeff Fisher 7d9c3dd890
[core-client] Unify PipelineOptions and ServiceClientOptions (#13928)
* Clean up high level client options story

* Update dependant clients

* Remove unnecessary properties

* fixup XML imports
2021-02-24 14:01:03 -08:00
Sarangan Rajamanickam d2b586b3c7
Fix the links of API Reference Documentation (#13878)
* Fix the links of API Reference Documentation

* Update sdk/eventgrid/eventgrid/README.md

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
2021-02-19 21:22:38 +00:00
Jeff Fisher 7a7c17370e
[core-https] Hide client constructors (#13859)
Migrate DefaultHttpsClient from a constructor pattern to a factory.
2021-02-18 16:35:03 -08:00
Azure SDK Bot 66216c09da
Increment version for tables releases (#13717)
Increment package version after release of azure-data-tables
2021-02-12 19:08:03 +00:00
Jose Manuel Heredia Hidalgo e830313a89
Update release notes for beta.5 (#13706) 2021-02-09 11:53:57 -08:00
Jeff Fisher 959a8c9b96
[data-tables] Manual port of data-tables package to corev2 (#12548)
* Move tables to new core packages
2021-02-01 15:06:48 -08:00
Deyaaeldeen Almahallawi f9d1c248b8
[Docs] Fix the double tagging issue (#13411)
* [Docs] Fix the double tagging issue

* fix triple tagging!
2021-01-26 21:06:05 -05:00
Sarangan Rajamanickam d122851b03
Upgrade V6 SDK Generator Version for Tables (#13362)
* Upgrade V6 SDK Generator Version for Tables

* Hide the clients
2021-01-25 10:07:12 -08:00
Jeff Fisher 40b027df46
Update karma test configuration for track2 packages (#13309)
This PR removes our dependency on the unmaintained package "karma-remap-istanbul" and replaces it with a smaller karma plugin ("karma-sourcemap-loader") that allows karma-coverage to load source maps from the disk correctly.

I tested and confirmed that the generated coverage data has the correct source TS files.
2021-01-22 19:42:51 +00:00
Deyaaeldeen Almahallawi 78e55c88a8
[Docs] Upgrade typedoc to v0.15.2 to match that used by docs team (#13250)
* [Docs] Upgrade typedoc to v0.15.2 to match that used by docs team

* standardize the docs script for cosmos, kv-admin, comm-common, and storage-internal-avro
2021-01-15 16:24:16 -05:00
Azure SDK Bot ccfa05ddc0
Increment package version after release of azure-data-tables (#13195) 2021-01-13 14:47:04 -06:00
Jose Manuel Heredia Hidalgo aba4101f91
[Tables] Support Emulator and Azurite (#13165)
* Support Emulator and Azurite

* Support UseDevelopmentStorage connection string

* make usedevelopmentstorage case-insensitive

* Use toLowerCase
2021-01-12 18:37:57 -06:00
Jose Manuel Heredia Hidalgo 758107b048
Increase timeout (#13108) 2021-01-11 13:53:01 -06:00
Jose Manuel Heredia Hidalgo 859913d019
[Tables] Fix typos in samples (#13072)
Fixes #12914 . Also adding a sample on how to query topN items
2021-01-06 22:11:22 +00:00
Josue(MSFT) 1c7e43a98f
add the environment variable (#12934) 2021-01-04 13:51:52 -06:00
KarishmaGhiya 6c09edddb5
[tables] Code coverage tables (#12976)
Co-authored-by: HarshaNalluru <sanallur@microsoft.com>
2020-12-28 03:05:59 -08:00
Deyaaeldeen Almahallawi 8ab8d4cbf7
[Docs] Add --excludeExternals to rushx docs command (#12987) 2020-12-23 14:18:07 -08:00
Deyaaeldeen Almahallawi be0e8353f5
Remove @param and @returns tags if they have no description (#12943)
Address feedback for https://github.com/Azure/azure-sdk-for-js/pull/12912.
2020-12-17 22:59:32 +00:00
Deyaaeldeen Almahallawi 7e0bd75263
[Docs] Adding docs npm script (#12941)
This newly added command `docs` can help increase the quality of our documentation comments. It enables us to have a tight feedback loop on what is being generated as a documentation of our packages. I am pinning `typedoc` to v0.15.0 for now because this is the version being used for generating docs at `docs.microsoft.com`. This version should be updated when that team updates theirs.

Fixes https://github.com/Azure/azure-sdk-for-js/issues/12928
2020-12-17 22:03:10 +00:00
Deyaaeldeen Almahallawi 78db83fe14
Standardization of our documentation comments (#12912)
# Status quo
Some of our documentation comments are [TypeDoc](http://typedoc.org/guides/doccomments/) and some of them are JSDoc with type description in the comments even though it is for typed TS code.

# Standardization
I decided the best way to go about this is to migrate to [TSDoc](https://github.com/Microsoft/tsdoc) and enforcing it using the [tsdoc eslint plugin](https://www.npmjs.com/package/eslint-plugin-tsdoc).

Pros:
- TSDoc is a proposal to standardize the doc comments used in TypeScript code, so that different tools can extract content without getting confused by each other’s markup.
- It is being developed at Microsoft, with the TypeScript team.
- It has an ESLint plugin that enforces it and will error when it sees unsupported tags (e.g. `@memberof`, `@class`, `@constructor`, `@type`, etc).

Cons:
- It is still in early stages (adoption is ongoing though, e.g. it is being used by the API extractor tool).
- TSDoc != TypeDoc (the tool we currently use for generating our documentation). However, TypeDoc plans to officially support TSDoc in v1.1 (see https://github.com/TypeStrong/typedoc/issues/1266).

# Notable tag changes
- `@ignore` is a JSDoc tag and was used in conjunction with `@internal`. These tags were needed because [TypeDoc does not yet support documenting only definitions exported by the entry point](https://github.com/TypeStrong/typedoc/pull/1184#issuecomment-650809143) and still documents everything exported from all files. I removed `@ignore` because [`@internal`](https://tsdoc.org/pages/tags/internal) only should suffice
- `@ignore` when used alone is replaced with TypeDoc's [`hidden`](http://typedoc.org/guides/doccomments/#hidden-and-ignore). EDIT: I replaced `@ignore` with [`@hidden`](https://github.com/TypeStrong/typedoc/releases/tag/v0.12.0) because the TypeDoc version used for `docs.microsoft.com` is v0.15.0 which does not support `--stripInternal`. After, they upgrade, I will remove all `@hidden` tags. 
- `@summary` is gone because it is not part of TSDoc or TypeDoc

This PR applies the changes to packages that respect our linting rules. Ones that do not yet will be migrated later when we start fixing their linting issues.

Here are vanilla examples of TypeDoc 0.18.0 (version used by our EngSys) after the changes here as a sanity check:
- random method:
![typedoc](https://user-images.githubusercontent.com/6074665/102302881-f6186380-3f27-11eb-8cc6-93e4c8f7d42d.PNG)
- a class constructor that used to have type information in the documentation comments:
![constructor](https://user-images.githubusercontent.com/6074665/102357078-f8a4a880-3f7b-11eb-92d1-c086ecc39c0b.PNG)

# `@hidden` works the same way as `@ignore`
Here are the list of documented functions generated by `TypeDoc v0.15.0` for the text analytics package and there is no function that was marked `@hidden`, e.g. `combineSuccessfulAndErroneousDocumentsWithStatisticsAndModelVersion`
![image](https://user-images.githubusercontent.com/6074665/102426196-e018aa80-3fdc-11eb-8b69-1ac265391fad.png)

# Things to consider
- Our documentation must be generated using the TypeDoc flag [`--stripInternal`](http://typedoc.org/guides/options/#stripinternal)
- Should we add a `docs` npm script to our `package.json`s (similar to [Cosmos's](2424b74f02/sdk/cosmosdb/cosmos/package.json (L60))) so that we can see how our docs are generated as we write our comments?

Fixes https://github.com/Azure/azure-sdk-for-js/issues/3027.
2020-12-17 02:01:34 +00:00
Deyaaeldeen Almahallawi 6b838b852d
Upgrade ESLint version to 7.15.0 (#12894)
All the heavy lifting for upgrading our linting packages has been already done here https://github.com/Azure/azure-sdk-for-js/pull/12770. This PR upgrades ESLint only and fixes https://github.com/Azure/azure-sdk-for-js/issues/9050.
2020-12-15 15:17:43 +00:00
Deyaaeldeen Almahallawi 79be172c74
Upgrade TypeScript compiler version to 4.1.2 (#12770)
* upgrade TS version and fix compilation issues

* upgrade the linting parser version and fix new linting issues

* fix cosmos sample

* address feedback

* fix linting issues in formrecognizer tests

* use unknown instead of any across our code

* address more issues

* cleanup package.json in core-http

* revert noisy linting changes caused by vanilla eslint rules not TS aware

* allow the poller to have results of type void

* fixing samples

* fix keyvault-certificates' sample
2020-12-14 17:03:55 -05:00
Shuang Jiang 9ce5dbc4ee
update invalid sample products (#12849)
Co-authored-by: Shuang Jiang <shujia@microsoft.com>
2020-12-11 13:01:33 -05:00
Will Temple 6ffd578ecd
Add PR CI step to build samples (#12715)
* Add PR CI step to build samples

* Made a change to rush-runner

* Fixed an issue with rush-runner patch

* Repaired metricsadvisor and anomalydetector samples builds

* Repaired storage samples build scripts, added skip to storage-internal-avro

* Added skips to core packages without samples

* Resolved conflicting options in identity samples

* Skipped broken test scripts

* pnpm-lock

* [eventhubs-checkpointstore-blob] fix build:samples script (#3)

* [event-processor-host] fix build:samples script

* Revert sorting of package.json script entries

* Fixed merge artifact in dev-tool package.json

* pnpm-lock

* Revert formatting changes to anomalydetector

* Run build phase with transitive dependencies.

* Add stub build:samples commands for synapse

* Added samples build setup for tables

* Repaired two broken links in EPH

Co-authored-by: chradek <51000525+chradek@users.noreply.github.com>
Co-authored-by: chradek <chradek@microsoft.com>
2020-12-11 11:22:12 -05:00
Will Temple 1cc6607d8f
Add export to sample main functions where missing (#12792)
* Added export to typescript main declarations where missing

* Minor commit formatting changes
2020-12-07 13:05:42 -05:00
Jose Manuel Heredia Hidalgo 1810528404
[Tables] Don't deserialize DateTime to avoid losing precision (#12650)
Fixes #12646

Tables service supports ns precision DateTime however JavaScript doesn't. As part of entity deserialization, whenever we get a property with type Edm.DateTime we parse it into a JavaScript Date object, which can lead to losing precision.

To fix this we need to disable the default deserialization for Edm.DateTime and give the user an "edm" object, similar to what we do for Guid and Int64

```typescript
{
partitionKey: "p1",
rowKey: "r1",
blahblah: {type: "DateTime", value:"the date"}
}
```
2020-11-20 23:27:00 +00:00
Azure SDK Bot 13d712aaf8
Increment version for tables releases (#12528)
Increment package version after release of azure-data-tables
2020-11-13 02:58:00 +00:00
Jose Manuel Heredia Hidalgo 266f9f3d6f
update changelog (#12522) 2020-11-12 13:58:06 -08:00
Deyaaeldeen Almahallawi ae4d38476c
bump core-http version to 1.2.0 across the board (#12151) 2020-10-30 15:21:24 -04:00
Jose Manuel Heredia Hidalgo 8e16eed9e3
[Tables] Rename etag and timestamp system properties (#12060)
* Rename etag and timestamp system properties

* Add test
2020-10-29 14:03:53 -07:00
Azure SDK Bot b3a396f74d
Increment package version after release of azure-data-tables (#11683) 2020-10-07 09:51:59 -07:00
Raul Piraces Alastuey 2fc97d901b
Fix typos in README.md and Javascript samples for Azure Tables (#11632)
Closes https://github.com/Azure/azure-sdk-for-js/issues/11489

- As the issue states, there are some unneeded exports in the Javascript samples for Azure Tables that have been removed.
- As reported by @joheredi , the following replacements in the `README.md` have been done (identified as a bug): `entity.PartitionKey` to `entity.partitionKey` and `entity.RowKey` to `entity.rowKey`.
- Also a little typo in the `README.md` in the same section has been fixed.
2020-10-06 17:11:06 +00:00
Jose Manuel Heredia Hidalgo 241e5fd7e8
[Tables] Update changelog and port Batch TS sample to JS (#11636)
* Update changlog date and port TS sample to JS

* Update stale package versions

* Return type

* Update sdk/tables/data-tables/samples/javascript/src/batchOperations.js

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>

* Update sdk/tables/data-tables/samples/typescript/src/batchOperations.ts

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>

Co-authored-by: Matt Ellis <matt.ellis@microsoft.com>
2020-10-05 13:22:35 -07:00
Jose Manuel Heredia Hidalgo 88d5134b72
[Tables] Tables batch (#11551)
* Prototype batch

* Format

* Support SharedKey auth

* Formatting

* Add comments

* Take InnerBatchRequest

* Address some comments

* Fix circular dependency

* Hide internalBatchRequest

* Parse sub responses

* rename subResponses

* Update import

* move sample interface to the top

* Fix eslint

* Add span

* Split tests

* Fix lint

* undo changes in tableclient test

* Use the right URL

* Hide BatchOptions and mock guid

* Format

* Workaround generateUuid stub issue

* format
2020-10-03 14:04:20 -07:00
Jose Manuel Heredia Hidalgo d6ce59ed86
[Tables] Setup Storage CORS in post-deployment script (#11612)
* Add post ps1 script

* Add account key

* Use variable

* remove disableSecurity

* Format
2020-10-02 11:31:21 -07:00
Jose Manuel Heredia Hidalgo da70cd92e5
[Tables] Enable live tests (#11579)
* Enable live tests

* Formatting

* Update tests.yml for Azure Pipelines

* Update script

* Update ARM

* Format

* disable cors
2020-10-01 10:40:55 -07:00
Deyaaeldeen Almahallawi 1ca2c43d6a
ESLint configuration cleanup (#11528) 2020-09-28 20:30:21 -07:00
Deyaaeldeen Almahallawi 2eb426037f
[Tables] Remove some of the ignoring comments of ts-naming-options (#11507)
* [Tables] Remove some of the ignoring comments of ts-naming-options

* remove some more
2020-09-25 16:40:03 -04:00
Jose Manuel Heredia Hidalgo dcc7761639
[Tables] Enable recorded tests in CI (#11238)
* Enable recorded tests in CI

* Update test script

* Add pollyfill
2020-09-18 10:01:29 -05:00
Jose Manuel Heredia Hidalgo d0edb5d480
[Tables] Add samples (#11057)
* Add samples

* Addressing Brian's feedback

* Add readme

* Update dependency in samples

* Add note about existing table assumption
2020-09-13 11:21:01 -05:00
Jose Manuel Heredia Hidalgo 040bed1273
Fix readme, version and useragent (#11151) 2020-09-09 15:19:30 -05:00
Azure SDK Bot ccf6bea512
Increment package version after release of azure-data-tables (#11130) 2020-09-09 12:24:20 -05:00
Jose Manuel Heredia Hidalgo 06690c3203
Add release date (#11125) 2020-09-09 00:14:51 +00:00
Jose Manuel Heredia Hidalgo 4b60329abf
Update changelog (#11111) 2020-09-08 14:45:51 -05:00
Deyaaeldeen Almahallawi 72b06cee42
[Tables] prettying (#11104) 2020-09-08 14:40:05 -04:00
Jose Manuel Heredia Hidalgo 89c6f1bf2b
[Tables] Tables serialization fixes (#11052)
* Fix serialization of null and undefined and add missing queryOptions

* Add test for null and undefined
2020-09-04 17:11:22 -05:00
Jose Manuel Heredia Hidalgo ac742c3bb7
[Tables] make PartitionKey and RowKey camel case (#10990)
* Initial changes for casing

* update surface

* Update readme

* Update missing instances of RowKey and PartitionKey

* Use maps

* update

* Use native Map

* remove unused properties

* fix typo
2020-09-04 15:16:27 -05:00
Matt Ellis 8c42ffa836
[Tables] Change prerelease tag (#11047)
We have decided to use `beta` instead of `preview` going forward.
2020-09-04 13:09:10 -07:00
Jose Manuel Heredia Hidalgo 5c7d58e570
[Tables] Fix Shared Key auth and update Readme (#10988)
* Fix Shared Key auth and update Readme

* Use SharedKeyLite

* formatting

* remove double quote

* Escape quotes before signing and add test

* formatting

* Test SharedKey signing

* Remove not needed recordings

* Remove un-needed changes

* Fix test guard
2020-09-04 10:34:31 -05:00
Jose Manuel Heredia Hidalgo b4c49f8267
[Tables] Update README (#10964)
* Fill out README

* Note about AAD

* Add table and entity to Key Concepts

* Remove extra sample

* Address feedback

* update logger import

* Fix typo and add browser support info
2020-09-01 17:55:00 -05:00
Jose Manuel Heredia Hidalgo f57a7c0c0a
[Tables] Add tracing pipelines (#10941)
* Add tracing

* Address feedback
2020-09-01 09:11:54 -05:00
Jose Manuel Heredia Hidalgo 83c1da1b4b
[Tables] Implement PagableAsyncIterators for listEnitites and listTables operations (#10884)
* Implement async iterators for listEntity

* Add list table

* Fix extra request

* Update API surface

* update samples and rollup externals

* Add create operation

* Update api surface

* Clean up

* Add details for running tests locally

* Make _response non-enumerable

* Fix lint errors
2020-08-28 19:08:33 -05:00
Jose Manuel Heredia Hidalgo 1f22653d2b
[Tables] CreateEntity and CreateTable tests (#10755)
* Add integration tests for Create Table and Table Entity

* Format

* rename azure-tables to azure-data-tables

* int and float test

* Address PR comments

* Fix folder name

* azure-data-tables

* Remove stale api surface

* rename to data-tables

* update sample ur;

* Rename in ci
2020-08-22 00:27:00 -05:00
Mitch Denny 2a62f1a27b
Adjust CI YAML headers (#10607) 2020-08-19 13:51:36 +10:00
Jose Manuel Heredia Hidalgo ff8e8a04d4
[Tables] Re generate tables library with latest Autorest (#10663)
* Re generate tables library with latest Autorest

* Add missing docs
2020-08-18 22:34:57 -05:00
Jose Manuel Heredia Hidalgo 65211ef34d
[Tables] Flatten responses (#10635)
* Flatten responses and replace index properties for generics

* Update sample

* Update return type
2020-08-17 16:30:18 -05:00
Jose Manuel Heredia Hidalgo d3f008cc5c
Move all optional parameters to options bag (#10618) 2020-08-14 09:39:39 -05:00
Mahdi Varposhti dcd91bb9ec
[Tables] Helper functions for Query options (#10499)
* Accept arrays for select in query options

* Add odata helper function for escaping filter expressions

* Add odata tests

Co-authored-by: Jose Manuel Heredia Hidalgo <joheredi@microsoft.com>
2020-08-13 16:40:22 -05:00
Mahdi Varposhti c57c09ee1c
[Tables] Add Replace and Merge Update Modes (#10502)
* Add Replace and Merge update modes

* Remove default mode values

Co-authored-by: Jose Manuel Heredia Hidalgo <joheredi@microsoft.com>
2020-08-13 12:10:16 -05:00
Mahdi Varposhti 822b6020d2
[Tables] Add Entity Serialization/Deserialization & Generics (#10207)
* Add an EdmGUID class

* Add an EdmInt64 class

* Add serialization.ts file

* Make client methods public

* Serialize entities in TableServiceClient

* Deserialize entities in TableServiceClient

* Add support for Binary data serialization

* Fix deserialization for getEntity

* Fix deserialize return type

* Fix getEntity return type

* Include other EDM types for serialization

* Remove isUint8Array method

* Rename econde and decode functions to include base64

* use isValidUuid from core-http

* Add isSafeInteger to Int64 class

* Convert scientific notation to standard notation

* Regenerate using the new swagger

* Add generic types to entity operations

* Use types instead of interfaces

* Update serializer

* Add unit tests for serialization/deserialization

* Fix PR comments

* Add unit tests for bufferSerializer utility function

* Fix PR comments
2020-08-12 10:35:08 -05:00
Deyaaeldeen Almahallawi 6531b9b85a
Verifying VS Code debugger with default configuration works on tests in our SDKs (#10145)
* update the CONTRIBUTING.md guide to point to the automatic debug configuration feature in vscode

* delete all custome vscode configs

* factoring out coverage scripts so that mocha with ts-node can work with vscode debugger
2020-08-11 14:24:30 -04:00
Jeremy Meng 0d36626e3d
Set docModel to true in api-extractor.json config (#10509)
The only effect is an extra json file is generated into ./temp folder
which is already in .gitignore list. This file is useful in doing api reviews.
2020-08-10 10:42:04 -07:00
Jeremy Meng 0308ae2167
Bump core-http dependency version to v 1.1.6 (#10487) 2020-08-07 14:10:17 -07:00
Deyaaeldeen Almahallawi ed31f889cc
Lower case keywords in package.json across packages (#10480)
* lower case Azure in package.json across packages

* remove redundancies

* camel case to lower case

* remove more redundancies

* Fix broken link schema registry samples

Co-authored-by: Ramya Achutha Rao <ramyar@microsoft.com>
2020-08-06 23:32:22 -07:00
Mahdi Varposhti 41b0515647
[Tables] Add delete method to TableClient (#10417)
* Add eslint ignore for clientOptions naming

* Add delete method to TableClient
2020-08-06 10:02:45 -06:00
Ramya Rao 6557ded074
Update @opentelemetry/api to latest version (#10393)
* Update @opentelemetry/api to latest version
2020-08-04 14:28:54 -07:00
Deyaaeldeen Almahallawi c88451d95c
Standardize prettier configurations across the repo (#10416)
* Standardize prettier configurations across the repo

* update relative paths

* rushx format text analytics

* ignore api.md files

* adding ignore-path parameter to the check-format and format scripts in keyvault-admin
2020-08-04 16:31:27 -04:00
Deyaaeldeen Almahallawi 0e431a9c69
[ESLint] Stop linting tsconfig.json (#10361) 2020-08-03 09:27:54 -04:00
Jose Manuel Heredia Hidalgo 5245f7e99b
[Tables] Create clients from connectionString (#10292)
* Initial changes to support SharedKey auth

* Add test for utility helpers

* re-enable pipeline validation on PR

* Add javascript samples

* update sample require

* Address PR comments

* Add url to externalNodeBuiltins

* Support SharedKeyCredential

* Rename ShareKeyCredential to TablesSharedKeyCredential

* Address PR comments

* Fix file name TablesShredKeyCredential
2020-07-30 17:39:05 -07:00
Daniel Rodríguez 857f355fd9
updated karma-mocha (#10303) 2020-07-28 13:21:10 -04:00
Daniel Rodríguez de585c8675
upgraded to karma 5.1.0 (#10190) 2020-07-27 12:06:12 -04:00
Deyaaeldeen Almahallawi c6d3e631e9
change the npm format script to use our .prettierignore file (#10272) 2020-07-27 11:53:59 -04:00
Mahdi Varposhti ed0ad2b508
[Tables] Create the TableClient (#10133)
* Add TableClient.ts file

* Move all options models to models.ts

* Fix missing exports

* Fix description for entity parameter

* Make tableName public readonly
2020-07-22 14:31:16 -06:00
Jose Manuel Heredia Hidalgo adfb18aae9
[Tables] Disable test step (#10143)
* Skip tests

* skip unit-tests
2020-07-20 16:08:18 -07:00
Mahdi Varposhti a8c83252fb
[Tables] Create the Autorest generated layer (#9916)
* Add Autorest generated files

* Implement TableServiceClient methods

* Remove the customizations from the swagger readme file

* Update Autorest generated files to fix function docs and header names

* Add models.ts file for all named exports

* Export the missing models

* Remove the unused test files

* Fix the comments for the constructor
2020-07-17 14:02:12 -06:00
KarishmaGhiya 9176059b93
Preventing dev feed for private package on script level and with artifact parameter option in pipeline (#9948) 2020-07-10 11:05:00 -07:00
Chidozie Ononiwu 6e8653ff3c
Clean up Changelog and ci files (#9915) 2020-07-07 16:42:18 -07:00
Jeremy Meng c28358b846
[keyvault-common,table] bump core-http dep version to 1.1.4 (#9739)
* [keyvault-common,table] bump core-http dep version to 1.1.4

These two libraries were not updated in #9539, possibly due to the exception and
tables change comes after the the exception was made.

* Disable PR validation for Tables for now
2020-06-26 13:44:47 -07:00
Mahdi Varposhti e257985c17
[Tables] Add the initial files for the track 2 Tables library (#9565)
* Add the initial files for the track 2 tables library

* Update the package.json file

* Update pnpm-lock.yaml file

* Fix small nits

* Remove articats from ci.yml

* Add downlevel types

Co-authored-by: Mahdi Varposhti <t-mavar@microsoft.com>
2020-06-24 14:26:23 -06:00