Skip to content

Commit

Permalink
Migrate @ignore to @hidden and adding in tsdoc.json to activate Deya'…
Browse files Browse the repository at this point in the history
…s workaround.
  • Loading branch information
richardpark-msft committed Jan 5, 2021
1 parent 7bc065a commit c32d325
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { sha256Digest, sha256Hmac } from "./internal/cryptoHelpers";

/**
* @internal
* @hidden
*/
export class AppConfigCredential implements ServiceClientCredentials {
private credential: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const packageName = "azsdk-js-app-configuration";
* This constant should always be the same as the package.json's version - we use it when forming the
* User - Agent header. There's a unit test that makes sure it always stays in sync.
* @internal
* @hidden
*/
export const packageVersion = "1.1.1";
const apiVersion = "1.0";
Expand Down Expand Up @@ -101,6 +102,7 @@ export interface AppConfigurationClientOptions {
/**
* Provides internal configuration options for AppConfigurationClient.
* @internal
* @hidden
*/
export interface InternalAppConfigurationClientOptions extends AppConfigurationClientOptions {
/**
Expand Down Expand Up @@ -507,6 +509,7 @@ export class AppConfigurationClient {
/**
* Gets the options for the generated AppConfigurationClient
* @internal
* @hidden
*/
export function getGeneratedClientOptions(
baseUri: string,
Expand Down Expand Up @@ -542,6 +545,7 @@ export function getGeneratedClientOptions(

/**
* @internal
* @hidden
*/
export function getUserAgentPrefix(userSuppliedUserAgent: string | undefined): string {
const appConfigDefaultUserAgent = `${packageName}/${packageVersion} ${getCoreHttpDefaultUserAgentValue()}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/**
* @internal
* @hidden
*/
export async function sha256Digest(body: string | undefined): Promise<string> {
const digest = await self.crypto.subtle.digest("SHA-256", new TextEncoder().encode(body || ""));
Expand All @@ -16,6 +17,7 @@ export async function sha256Digest(body: string | undefined): Promise<string> {

/**
* @internal
* @hidden
*/
export async function sha256Hmac(secret: string, stringToSign: string): Promise<string> {
const key = await self.crypto.subtle.importKey(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createHash, createHmac } from "crypto";

/**
* @internal
* @hidden
*/
export async function sha256Digest(body: string | undefined): Promise<string> {
return createHash("sha256")
Expand All @@ -14,6 +15,7 @@ export async function sha256Digest(body: string | undefined): Promise<string> {

/**
* @internal
* @hidden
*/
export async function sha256Hmac(secret: string, stringToSign: string): Promise<string> {
const decodedSecret = Buffer.from(secret, "base64");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { AppConfigurationGetKeyValuesOptionalParams, KeyValue } from "../generat
/**
* Formats the etag so it can be used with a If-Match/If-None-Match header
* @internal
* @hidden
*/
export function quoteETag(etag: string | undefined): string | undefined {
// https://tools.ietf.org/html/rfc7232#section-3.1
Expand All @@ -40,6 +41,7 @@ export function quoteETag(etag: string | undefined): string | undefined {
* and throws an Error. Otherwise, returns the properties properly quoted.
* @param options - An options object with onlyIfChanged/onlyIfUnchanged fields
* @internal
* @hidden
*/
export function checkAndFormatIfAndIfNoneMatch(
configurationSetting: ConfigurationSettingId,
Expand Down Expand Up @@ -71,6 +73,7 @@ export function checkAndFormatIfAndIfNoneMatch(
* into the format the REST call will need.
*
* @internal
* @hidden
*/
export function formatWildcards(
listConfigOptions: ListConfigurationSettingsOptions | ListRevisionsOptions
Expand Down Expand Up @@ -105,6 +108,7 @@ export function formatWildcards(
* Handles translating a Date acceptDateTime into a string as needed by the API
* @param newOptions - A newer style options with acceptDateTime as a date (and with proper casing!)
* @internal
* @hidden
*/
export function formatAcceptDateTime(newOptions: {
acceptDateTime?: Date;
Expand All @@ -118,6 +122,7 @@ export function formatAcceptDateTime(newOptions: {
* Take the URL that gets returned from next link and extract the 'after' token needed
* to get the next page of results.
* @internal
* @hidden
*/
export function extractAfterTokenFromNextLink(nextLink: string) {
const parsedLink = URLBuilder.parse(nextLink);
Expand Down Expand Up @@ -157,6 +162,7 @@ export function makeConfigurationSettingEmpty(

/**
* @internal
* @hidden
*/
export function transformKeyValue(kvp: KeyValue): ConfigurationSetting {
const obj: ConfigurationSetting & KeyValue = {
Expand All @@ -170,6 +176,7 @@ export function transformKeyValue(kvp: KeyValue): ConfigurationSetting {

/**
* @internal
* @hidden
*/
export function transformKeyValueResponseWithStatusCode<
T extends KeyValue & HttpResponseField<any>
Expand All @@ -184,6 +191,7 @@ export function transformKeyValueResponseWithStatusCode<

/**
* @internal
* @hidden
*/
export function transformKeyValueResponse<
T extends KeyValue & { eTag?: string } & HttpResponseField<any>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ import {
* The sync token header, as described here:
* https://github.com/Azure/AppConfiguration/blob/master/docs/REST/consistency.md
* @internal
* @hidden
*/
export const SyncTokenHeaderName = "sync-token";

/**
* A policy factory for injecting sync tokens properly into outgoing requests.
* @param syncTokens - the sync tokens store to be used across requests.
* @internal
* @hidden
*/
export function syncTokenPolicy(syncTokens: SyncTokens): RequestPolicyFactory {
return {
Expand Down Expand Up @@ -60,6 +62,7 @@ class SyncTokenPolicy extends BaseRequestPolicy {
* https://github.com/Azure/AppConfiguration/blob/master/docs/REST/consistency.md
*
* @internal
* @hidden
*/
export class SyncTokens {
private _currentSyncTokens = new Map<string, SyncToken>();
Expand Down Expand Up @@ -137,6 +140,7 @@ interface SyncToken {
* @param syncToken - A single sync token.
*
* @internal
* @hidden
*/
export function parseSyncToken(syncToken: string): SyncToken {
const matches = syncToken.match(syncTokenRegex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import { RestError } from "@azure/core-http";

/**
* @internal
* @hidden
*/
export interface Spannable {
spanOptions?: SpanOptions;
}

/**
* @internal
* @hidden
*/
export class Spanner<TClient> {
constructor(private baseOperationName: string) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {

/**
* @internal
* @hidden
*/
export function throttlingRetryPolicy(): RequestPolicyFactory {
return {
Expand All @@ -30,6 +31,7 @@ export function throttlingRetryPolicy(): RequestPolicyFactory {
* responding to 429 responses (which is to throw a RestError).
*
* @internal
* @hidden
*/
export class ThrottlingRetryPolicy extends BaseRequestPolicy {
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions) {
Expand Down Expand Up @@ -84,6 +86,7 @@ const RetryAfterMillisecondsHeaders: string[] = ["retry-after-ms", "x-ms-retry-a
* Extracts the retry response header, checking against several
* header names.
* @internal
* @hidden
*/
export function getDelayInMs(responseHeaders: {
get: (headerName: string) => string | undefined;
Expand Down
6 changes: 6 additions & 0 deletions sdk/appconfiguration/app-configuration/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": [
"../../../tsdoc.json"
]
}

0 comments on commit c32d325

Please sign in to comment.