@azure-rest/purview-datamap 1.0.0-alpha.20250213.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/purviewDataMapClient.js +1 -1
- package/dist/browser/purviewDataMapClient.js.map +1 -1
- package/dist/commonjs/purviewDataMapClient.js +1 -1
- package/dist/commonjs/purviewDataMapClient.js.map +1 -1
- package/dist/esm/purviewDataMapClient.js +1 -1
- package/dist/esm/purviewDataMapClient.js.map +1 -1
- package/dist/react-native/purviewDataMapClient.js +1 -1
- package/dist/react-native/purviewDataMapClient.js.map +1 -1
- package/package.json +5 -5
|
@@ -11,7 +11,7 @@ import { logger } from "./logger.js";
|
|
|
11
11
|
export default function createClient(endpointParam, credentials, options = {}) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f;
|
|
13
13
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `${endpointParam}/datamap/api`;
|
|
14
|
-
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
14
|
+
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;
|
|
15
15
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
16
16
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
17
17
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
1
|
+
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://purview.azure.net/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as PurviewDataMapClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n if (options.apiVersion) {\n logger.warning(\n \"This client does not support client api-version, please change it at the operation level\",\n );\n }\n\n return client;\n}\n"]}
|
|
@@ -14,7 +14,7 @@ const logger_js_1 = require("./logger.js");
|
|
|
14
14
|
function createClient(endpointParam, credentials, options = {}) {
|
|
15
15
|
var _a, _b, _c, _d, _e, _f;
|
|
16
16
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `${endpointParam}/datamap/api`;
|
|
17
|
-
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
17
|
+
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;
|
|
18
18
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
19
19
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
20
20
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiBlC,+BAiCC;AA/CD,yDAAoD;AACpD,2CAAqC;AAOrC;;;;;GAKG;AACH,SAAwB,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,kBAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,kBAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
1
|
+
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiBlC,+BAiCC;AA/CD,yDAAoD;AACpD,2CAAqC;AAOrC;;;;;GAKG;AACH,SAAwB,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,kBAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,kBAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://purview.azure.net/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as PurviewDataMapClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n if (options.apiVersion) {\n logger.warning(\n \"This client does not support client api-version, please change it at the operation level\",\n );\n }\n\n return client;\n}\n"]}
|
|
@@ -11,7 +11,7 @@ import { logger } from "./logger.js";
|
|
|
11
11
|
export default function createClient(endpointParam, credentials, options = {}) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f;
|
|
13
13
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `${endpointParam}/datamap/api`;
|
|
14
|
-
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
14
|
+
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;
|
|
15
15
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
16
16
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
17
17
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
1
|
+
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://purview.azure.net/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as PurviewDataMapClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n if (options.apiVersion) {\n logger.warning(\n \"This client does not support client api-version, please change it at the operation level\",\n );\n }\n\n return client;\n}\n"]}
|
|
@@ -11,7 +11,7 @@ import { logger } from "./logger.js";
|
|
|
11
11
|
export default function createClient(endpointParam, credentials, options = {}) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f;
|
|
13
13
|
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `${endpointParam}/datamap/api`;
|
|
14
|
-
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
14
|
+
const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;
|
|
15
15
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
16
16
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
17
17
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.
|
|
1
|
+
{"version":3,"file":"purviewDataMapClient.js","sourceRoot":"","sources":["../../src/purviewDataMapClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,UAAuC,EAAE;;IAEzC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,cAAc,CAAC;IAC1F,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,oCAAoC,CAAC;SAC9E,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEpF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,MAAM,CAAC,OAAO,CACZ,0FAA0F,CAC3F,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PurviewDataMapClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface PurviewDataMapClientOptions extends ClientOptions {}\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpointParam - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n options: PurviewDataMapClientOptions = {},\n): PurviewDataMapClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/datamap/api`;\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://purview.azure.net/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as PurviewDataMapClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n if (options.apiVersion) {\n logger.warning(\n \"This client does not support client api-version, please change it at the operation level\",\n );\n }\n\n return client;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure-rest/purview-datamap",
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "1.0.0-
|
|
5
|
+
"version": "1.0.0-beta.2",
|
|
6
6
|
"description": "Purview DataMap Service\"",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@azure-tools/test-credential": "^2.0.0",
|
|
69
|
-
"@azure-tools/test-recorder": "
|
|
70
|
-
"@azure-tools/test-utils-vitest": "
|
|
71
|
-
"@azure/dev-tool": "
|
|
72
|
-
"@azure/eslint-plugin-azure-sdk": "
|
|
69
|
+
"@azure-tools/test-recorder": "^4.1.0",
|
|
70
|
+
"@azure-tools/test-utils-vitest": "^1.0.0",
|
|
71
|
+
"@azure/dev-tool": "^1.0.0",
|
|
72
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
73
73
|
"@azure/identity": "^4.0.1",
|
|
74
74
|
"@types/node": "^18.0.0",
|
|
75
75
|
"@vitest/browser": "^3.0.3",
|