@azure/arm-powerbiembedded 2.0.3-alpha.20250218.1 → 2.0.3-alpha.20250219.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/README.md +21 -15
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js +25 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaceCollections.d.ts +3 -3
- package/dist/browser/operations/workspaceCollections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaceCollections.js +36 -40
- package/dist/browser/operations/workspaceCollections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +3 -3
- package/dist/browser/operations/workspaces.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaces.js +2 -2
- package/dist/browser/operations/workspaces.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaceCollections.d.ts +1 -1
- package/dist/browser/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +1 -1
- package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/powerBIEmbeddedManagementClient.d.ts +2 -2
- package/dist/browser/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/powerBIEmbeddedManagementClient.js +17 -20
- package/dist/browser/powerBIEmbeddedManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +230 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +31 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +19 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +459 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +116 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/workspaceCollections.d.ts +110 -0
- package/dist/commonjs/operations/workspaceCollections.d.ts.map +1 -0
- package/dist/commonjs/operations/workspaceCollections.js +470 -0
- package/dist/commonjs/operations/workspaceCollections.js.map +1 -0
- package/dist/commonjs/operations/workspaces.d.ts +30 -0
- package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operations/workspaces.js +109 -0
- package/dist/commonjs/operations/workspaces.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.d.ts +87 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.js +10 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts +13 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.d.ts +27 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.js +131 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +230 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +28 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +19 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +456 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +113 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/workspaceCollections.d.ts +110 -0
- package/dist/esm/operations/workspaceCollections.d.ts.map +1 -0
- package/dist/esm/operations/workspaceCollections.js +466 -0
- package/dist/esm/operations/workspaceCollections.js.map +1 -0
- package/dist/esm/operations/workspaces.d.ts +30 -0
- package/dist/esm/operations/workspaces.d.ts.map +1 -0
- package/dist/esm/operations/workspaces.js +105 -0
- package/dist/esm/operations/workspaces.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/workspaceCollections.d.ts +87 -0
- package/dist/esm/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/workspaceCollections.js} +2 -3
- package/dist/esm/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts +13 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/workspaces.js} +2 -3
- package/dist/esm/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/powerBIEmbeddedManagementClient.d.ts +27 -0
- package/dist/esm/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/dist/esm/powerBIEmbeddedManagementClient.js +126 -0
- package/dist/esm/powerBIEmbeddedManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +230 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +28 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +19 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +456 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +113 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/workspaceCollections.d.ts +110 -0
- package/dist/react-native/operations/workspaceCollections.d.ts.map +1 -0
- package/dist/react-native/operations/workspaceCollections.js +466 -0
- package/dist/react-native/operations/workspaceCollections.js.map +1 -0
- package/dist/react-native/operations/workspaces.d.ts +30 -0
- package/dist/react-native/operations/workspaces.d.ts.map +1 -0
- package/dist/react-native/operations/workspaces.js +105 -0
- package/dist/react-native/operations/workspaces.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.d.ts +87 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.js +9 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts +13 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
- package/dist/react-native/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.d.ts +27 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.js +126 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.js.map +1 -0
- package/package.json +68 -37
- package/dist/index.js +0 -1388
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/workspaceCollections.d.ts.map +0 -1
- package/dist-esm/src/operations/workspaceCollections.js.map +0 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operations/workspaces.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaceCollections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaceCollections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/powerBIEmbeddedManagementClient.d.ts.map +0 -1
- package/dist-esm/src/powerBIEmbeddedManagementClient.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -279
- package/src/models/mappers.ts +0 -474
- package/src/models/parameters.ts +0 -137
- package/src/operations/workspaceCollections.ts +0 -611
- package/src/operations/workspaces.ts +0 -141
- package/src/operationsInterfaces/workspaceCollections.ts +0 -163
- package/src/operationsInterfaces/workspaces.ts +0 -26
- package/src/pagingHelper.ts +0 -39
- package/src/powerBIEmbeddedManagementClient.ts +0 -181
- package/tsconfig.json +0 -33
- package/types/arm-powerbiembedded.d.ts +0 -409
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaceCollections.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { WorkspaceCollections, Workspaces } from "./operationsInterfaces";
|
|
4
|
-
import { PowerBIEmbeddedManagementClientOptionalParams, GetAvailableOperationsOptionalParams, GetAvailableOperationsResponse } from "./models";
|
|
3
|
+
import { WorkspaceCollections, Workspaces } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { PowerBIEmbeddedManagementClientOptionalParams, GetAvailableOperationsOptionalParams, GetAvailableOperationsResponse } from "./models/index.js";
|
|
5
5
|
export declare class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
7
|
subscriptionId: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powerBIEmbeddedManagementClient.d.ts","sourceRoot":"","sources":["../../src/powerBIEmbeddedManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAGnF,OAAO,EACL,6CAA6C,EAC7C,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6CAA6C;IA6EzD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;OAGG;IACH,sBAAsB,CACpB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { WorkspaceCollectionsImpl, WorkspacesImpl } from "./operations";
|
|
12
|
-
import * as Parameters from "./models/parameters";
|
|
13
|
-
import * as Mappers from "./models/mappers";
|
|
10
|
+
import { WorkspaceCollectionsImpl, WorkspacesImpl } from "./operations/index.js";
|
|
11
|
+
import * as Parameters from "./models/parameters.js";
|
|
12
|
+
import * as Mappers from "./models/mappers.js";
|
|
14
13
|
export class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {
|
|
15
14
|
/**
|
|
16
15
|
* Initializes a new instance of the PowerBIEmbeddedManagementClient class.
|
|
@@ -80,22 +79,20 @@ export class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {
|
|
|
80
79
|
}
|
|
81
80
|
const apiVersionPolicy = {
|
|
82
81
|
name: "CustomApiVersionPolicy",
|
|
83
|
-
sendRequest(request, next) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
return next(request);
|
|
98
|
-
});
|
|
82
|
+
async sendRequest(request, next) {
|
|
83
|
+
const param = request.url.split("?");
|
|
84
|
+
if (param.length > 1) {
|
|
85
|
+
const newParams = param[1].split("&").map((item) => {
|
|
86
|
+
if (item.indexOf("api-version") > -1) {
|
|
87
|
+
return "api-version=" + apiVersion;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return item;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
94
|
+
}
|
|
95
|
+
return next(request);
|
|
99
96
|
}
|
|
100
97
|
};
|
|
101
98
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powerBIEmbeddedManagementClient.js","sourceRoot":"","sources":["../../src/powerBIEmbeddedManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAO/C,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IA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ACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { WorkspaceCollectionsImpl, WorkspacesImpl } from \"./operations/index.js\";\nimport { WorkspaceCollections, Workspaces } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n PowerBIEmbeddedManagementClientOptionalParams,\n GetAvailableOperationsOptionalParams,\n GetAvailableOperationsResponse\n} from \"./models/index.js\";\n\nexport class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the PowerBIEmbeddedManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: PowerBIEmbeddedManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: PowerBIEmbeddedManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-powerbiembedded/2.0.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-01-29\";\n this.workspaceCollections = new WorkspaceCollectionsImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Indicates which operations can be performed by the Power BI Resource Provider.\n * @param options The options parameters.\n */\n getAvailableOperations(\n options?: GetAvailableOperationsOptionalParams\n ): Promise<GetAvailableOperationsResponse> {\n return this.sendOperationRequest(\n { options },\n getAvailableOperationsOperationSpec\n );\n }\n\n workspaceCollections: WorkspaceCollections;\n workspaces: Workspaces;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getAvailableOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.PowerBI/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
2
|
+
export * from "./models/index.js";
|
|
3
|
+
export { PowerBIEmbeddedManagementClient } from "./powerBIEmbeddedManagementClient.js";
|
|
4
|
+
export * from "./operationsInterfaces/index.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.PowerBIEmbeddedManagementClient = exports.getContinuationToken = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
var pagingHelper_js_1 = require("./pagingHelper.js");
|
|
14
|
+
Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
|
|
15
|
+
tslib_1.__exportStar(require("./models/index.js"), exports);
|
|
16
|
+
var powerBIEmbeddedManagementClient_js_1 = require("./powerBIEmbeddedManagementClient.js");
|
|
17
|
+
Object.defineProperty(exports, "PowerBIEmbeddedManagementClient", { enumerable: true, get: function () { return powerBIEmbeddedManagementClient_js_1.PowerBIEmbeddedManagementClient; } });
|
|
18
|
+
tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,2FAAuF;AAA9E,qJAAA,+BAA+B,OAAA;AACxC,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { PowerBIEmbeddedManagementClient } from \"./powerBIEmbeddedManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare class LroImpl<T> implements LongRunningOperation<T> {
|
|
3
|
+
private sendOperationFn;
|
|
4
|
+
private args;
|
|
5
|
+
private spec;
|
|
6
|
+
requestPath: string;
|
|
7
|
+
requestMethod: string;
|
|
8
|
+
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
9
|
+
readonly requestBody?: unknown;
|
|
10
|
+
readonly path?: string;
|
|
11
|
+
readonly httpMethod: string;
|
|
12
|
+
} & Record<string, any>, requestPath?: string, requestMethod?: string);
|
|
13
|
+
sendInitialRequest(): Promise<LroResponse<T>>;
|
|
14
|
+
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.LroImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
class LroImpl {
|
|
13
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
14
|
+
this.sendOperationFn = sendOperationFn;
|
|
15
|
+
this.args = args;
|
|
16
|
+
this.spec = spec;
|
|
17
|
+
this.requestPath = requestPath;
|
|
18
|
+
this.requestMethod = requestMethod;
|
|
19
|
+
}
|
|
20
|
+
async sendInitialRequest() {
|
|
21
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
22
|
+
}
|
|
23
|
+
async sendPollRequest(path) {
|
|
24
|
+
const _a = this.spec, { requestBody } = _a, restSpec = tslib_1.__rest(_a, ["requestBody"]);
|
|
25
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.LroImpl = LroImpl;
|
|
29
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,MAAa,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,sBAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
export interface WorkspaceCollection {
|
|
3
|
+
/** Resource id */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** Workspace collection name */
|
|
6
|
+
name?: string;
|
|
7
|
+
/** Resource type */
|
|
8
|
+
type?: string;
|
|
9
|
+
/** Azure location */
|
|
10
|
+
location?: string;
|
|
11
|
+
/** Dictionary of <string> */
|
|
12
|
+
tags?: {
|
|
13
|
+
[propertyName: string]: string;
|
|
14
|
+
};
|
|
15
|
+
sku?: AzureSku;
|
|
16
|
+
/** Properties */
|
|
17
|
+
properties?: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export interface AzureSku {
|
|
20
|
+
/** SKU name */
|
|
21
|
+
name: AzureSkuName;
|
|
22
|
+
/** SKU tier */
|
|
23
|
+
tier: AzureSkuTier;
|
|
24
|
+
}
|
|
25
|
+
export interface ErrorModel {
|
|
26
|
+
code?: string;
|
|
27
|
+
message?: string;
|
|
28
|
+
target?: string;
|
|
29
|
+
details?: ErrorDetail[];
|
|
30
|
+
}
|
|
31
|
+
export interface ErrorDetail {
|
|
32
|
+
code?: string;
|
|
33
|
+
message?: string;
|
|
34
|
+
target?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface CreateWorkspaceCollectionRequest {
|
|
37
|
+
/** Azure location */
|
|
38
|
+
location?: string;
|
|
39
|
+
/** Dictionary of <string> */
|
|
40
|
+
tags?: {
|
|
41
|
+
[propertyName: string]: string;
|
|
42
|
+
};
|
|
43
|
+
sku?: AzureSku;
|
|
44
|
+
}
|
|
45
|
+
export interface UpdateWorkspaceCollectionRequest {
|
|
46
|
+
/** Dictionary of <string> */
|
|
47
|
+
tags?: {
|
|
48
|
+
[propertyName: string]: string;
|
|
49
|
+
};
|
|
50
|
+
sku?: AzureSku;
|
|
51
|
+
}
|
|
52
|
+
export interface CheckNameRequest {
|
|
53
|
+
/** Workspace collection name */
|
|
54
|
+
name?: string;
|
|
55
|
+
/** Resource type */
|
|
56
|
+
type?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface CheckNameResponse {
|
|
59
|
+
/** Specifies a Boolean value that indicates whether the specified Power BI Workspace Collection name is available to use. */
|
|
60
|
+
nameAvailable?: boolean;
|
|
61
|
+
/** Reason why the workspace collection name cannot be used. */
|
|
62
|
+
reason?: CheckNameReason;
|
|
63
|
+
/** Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. */
|
|
64
|
+
message?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface WorkspaceCollectionList {
|
|
67
|
+
value?: WorkspaceCollection[];
|
|
68
|
+
}
|
|
69
|
+
export interface WorkspaceCollectionAccessKeys {
|
|
70
|
+
/** Access key 1 */
|
|
71
|
+
key1?: string;
|
|
72
|
+
/** Access key 2 */
|
|
73
|
+
key2?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface WorkspaceCollectionAccessKey {
|
|
76
|
+
/** Key name */
|
|
77
|
+
keyName?: AccessKeyName;
|
|
78
|
+
}
|
|
79
|
+
export interface OperationList {
|
|
80
|
+
value?: Operation[];
|
|
81
|
+
}
|
|
82
|
+
export interface Operation {
|
|
83
|
+
/** The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service. */
|
|
84
|
+
name?: string;
|
|
85
|
+
display?: Display;
|
|
86
|
+
}
|
|
87
|
+
export interface Display {
|
|
88
|
+
/** The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with "Microsoft" for 1st party services. */
|
|
89
|
+
provider?: string;
|
|
90
|
+
/** The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the "name" section. */
|
|
91
|
+
resource?: string;
|
|
92
|
+
/** The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies. */
|
|
93
|
+
operation?: string;
|
|
94
|
+
/** The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views. */
|
|
95
|
+
description?: string;
|
|
96
|
+
/** The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system' */
|
|
97
|
+
origin?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface WorkspaceList {
|
|
100
|
+
value?: Workspace[];
|
|
101
|
+
}
|
|
102
|
+
export interface Workspace {
|
|
103
|
+
/** Workspace id */
|
|
104
|
+
id?: string;
|
|
105
|
+
/** Workspace name */
|
|
106
|
+
name?: string;
|
|
107
|
+
/** Resource type */
|
|
108
|
+
type?: string;
|
|
109
|
+
/** Property bag */
|
|
110
|
+
properties?: Record<string, unknown>;
|
|
111
|
+
}
|
|
112
|
+
export interface MigrateWorkspaceCollectionRequest {
|
|
113
|
+
/** Name of the resource group the Power BI workspace collections will be migrated to. */
|
|
114
|
+
targetResourceGroup?: string;
|
|
115
|
+
resources?: string[];
|
|
116
|
+
}
|
|
117
|
+
/** Known values of {@link AzureSkuName} that the service accepts. */
|
|
118
|
+
export declare enum KnownAzureSkuName {
|
|
119
|
+
/** S1 */
|
|
120
|
+
S1 = "S1"
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Defines values for AzureSkuName. \
|
|
124
|
+
* {@link KnownAzureSkuName} can be used interchangeably with AzureSkuName,
|
|
125
|
+
* this enum contains the known values that the service supports.
|
|
126
|
+
* ### Known values supported by the service
|
|
127
|
+
* **S1**
|
|
128
|
+
*/
|
|
129
|
+
export type AzureSkuName = string;
|
|
130
|
+
/** Known values of {@link AzureSkuTier} that the service accepts. */
|
|
131
|
+
export declare enum KnownAzureSkuTier {
|
|
132
|
+
/** Standard */
|
|
133
|
+
Standard = "Standard"
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Defines values for AzureSkuTier. \
|
|
137
|
+
* {@link KnownAzureSkuTier} can be used interchangeably with AzureSkuTier,
|
|
138
|
+
* this enum contains the known values that the service supports.
|
|
139
|
+
* ### Known values supported by the service
|
|
140
|
+
* **Standard**
|
|
141
|
+
*/
|
|
142
|
+
export type AzureSkuTier = string;
|
|
143
|
+
/** Known values of {@link CheckNameReason} that the service accepts. */
|
|
144
|
+
export declare enum KnownCheckNameReason {
|
|
145
|
+
/** Unavailable */
|
|
146
|
+
Unavailable = "Unavailable",
|
|
147
|
+
/** Invalid */
|
|
148
|
+
Invalid = "Invalid"
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Defines values for CheckNameReason. \
|
|
152
|
+
* {@link KnownCheckNameReason} can be used interchangeably with CheckNameReason,
|
|
153
|
+
* this enum contains the known values that the service supports.
|
|
154
|
+
* ### Known values supported by the service
|
|
155
|
+
* **Unavailable** \
|
|
156
|
+
* **Invalid**
|
|
157
|
+
*/
|
|
158
|
+
export type CheckNameReason = string;
|
|
159
|
+
/** Defines values for AccessKeyName. */
|
|
160
|
+
export type AccessKeyName = "key1" | "key2";
|
|
161
|
+
/** Optional parameters. */
|
|
162
|
+
export interface WorkspaceCollectionsGetByNameOptionalParams extends coreClient.OperationOptions {
|
|
163
|
+
}
|
|
164
|
+
/** Contains response data for the getByName operation. */
|
|
165
|
+
export type WorkspaceCollectionsGetByNameResponse = WorkspaceCollection;
|
|
166
|
+
/** Optional parameters. */
|
|
167
|
+
export interface WorkspaceCollectionsCreateOptionalParams extends coreClient.OperationOptions {
|
|
168
|
+
}
|
|
169
|
+
/** Contains response data for the create operation. */
|
|
170
|
+
export type WorkspaceCollectionsCreateResponse = WorkspaceCollection;
|
|
171
|
+
/** Optional parameters. */
|
|
172
|
+
export interface WorkspaceCollectionsUpdateOptionalParams extends coreClient.OperationOptions {
|
|
173
|
+
}
|
|
174
|
+
/** Contains response data for the update operation. */
|
|
175
|
+
export type WorkspaceCollectionsUpdateResponse = WorkspaceCollection;
|
|
176
|
+
/** Optional parameters. */
|
|
177
|
+
export interface WorkspaceCollectionsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
178
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
179
|
+
updateIntervalInMs?: number;
|
|
180
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
181
|
+
resumeFrom?: string;
|
|
182
|
+
}
|
|
183
|
+
/** Optional parameters. */
|
|
184
|
+
export interface WorkspaceCollectionsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
|
|
185
|
+
}
|
|
186
|
+
/** Contains response data for the checkNameAvailability operation. */
|
|
187
|
+
export type WorkspaceCollectionsCheckNameAvailabilityResponse = CheckNameResponse;
|
|
188
|
+
/** Optional parameters. */
|
|
189
|
+
export interface WorkspaceCollectionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
190
|
+
}
|
|
191
|
+
/** Contains response data for the listByResourceGroup operation. */
|
|
192
|
+
export type WorkspaceCollectionsListByResourceGroupResponse = WorkspaceCollectionList;
|
|
193
|
+
/** Optional parameters. */
|
|
194
|
+
export interface WorkspaceCollectionsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
195
|
+
}
|
|
196
|
+
/** Contains response data for the listBySubscription operation. */
|
|
197
|
+
export type WorkspaceCollectionsListBySubscriptionResponse = WorkspaceCollectionList;
|
|
198
|
+
/** Optional parameters. */
|
|
199
|
+
export interface WorkspaceCollectionsGetAccessKeysOptionalParams extends coreClient.OperationOptions {
|
|
200
|
+
}
|
|
201
|
+
/** Contains response data for the getAccessKeys operation. */
|
|
202
|
+
export type WorkspaceCollectionsGetAccessKeysResponse = WorkspaceCollectionAccessKeys;
|
|
203
|
+
/** Optional parameters. */
|
|
204
|
+
export interface WorkspaceCollectionsRegenerateKeyOptionalParams extends coreClient.OperationOptions {
|
|
205
|
+
}
|
|
206
|
+
/** Contains response data for the regenerateKey operation. */
|
|
207
|
+
export type WorkspaceCollectionsRegenerateKeyResponse = WorkspaceCollectionAccessKeys;
|
|
208
|
+
/** Optional parameters. */
|
|
209
|
+
export interface WorkspaceCollectionsMigrateOptionalParams extends coreClient.OperationOptions {
|
|
210
|
+
}
|
|
211
|
+
/** Optional parameters. */
|
|
212
|
+
export interface GetAvailableOperationsOptionalParams extends coreClient.OperationOptions {
|
|
213
|
+
}
|
|
214
|
+
/** Contains response data for the getAvailableOperations operation. */
|
|
215
|
+
export type GetAvailableOperationsResponse = OperationList;
|
|
216
|
+
/** Optional parameters. */
|
|
217
|
+
export interface WorkspacesListOptionalParams extends coreClient.OperationOptions {
|
|
218
|
+
}
|
|
219
|
+
/** Contains response data for the list operation. */
|
|
220
|
+
export type WorkspacesListResponse = WorkspaceList;
|
|
221
|
+
/** Optional parameters. */
|
|
222
|
+
export interface PowerBIEmbeddedManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
223
|
+
/** server parameter */
|
|
224
|
+
$host?: string;
|
|
225
|
+
/** Api Version */
|
|
226
|
+
apiVersion?: string;
|
|
227
|
+
/** Overrides client endpoint. */
|
|
228
|
+
endpoint?: string;
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ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AE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.KnownCheckNameReason = exports.KnownAzureSkuTier = exports.KnownAzureSkuName = void 0;
|
|
11
|
+
/** Known values of {@link AzureSkuName} that the service accepts. */
|
|
12
|
+
var KnownAzureSkuName;
|
|
13
|
+
(function (KnownAzureSkuName) {
|
|
14
|
+
/** S1 */
|
|
15
|
+
KnownAzureSkuName["S1"] = "S1";
|
|
16
|
+
})(KnownAzureSkuName || (exports.KnownAzureSkuName = KnownAzureSkuName = {}));
|
|
17
|
+
/** Known values of {@link AzureSkuTier} that the service accepts. */
|
|
18
|
+
var KnownAzureSkuTier;
|
|
19
|
+
(function (KnownAzureSkuTier) {
|
|
20
|
+
/** Standard */
|
|
21
|
+
KnownAzureSkuTier["Standard"] = "Standard";
|
|
22
|
+
})(KnownAzureSkuTier || (exports.KnownAzureSkuTier = KnownAzureSkuTier = {}));
|
|
23
|
+
/** Known values of {@link CheckNameReason} that the service accepts. */
|
|
24
|
+
var KnownCheckNameReason;
|
|
25
|
+
(function (KnownCheckNameReason) {
|
|
26
|
+
/** Unavailable */
|
|
27
|
+
KnownCheckNameReason["Unavailable"] = "Unavailable";
|
|
28
|
+
/** Invalid */
|
|
29
|
+
KnownCheckNameReason["Invalid"] = "Invalid";
|
|
30
|
+
})(KnownCheckNameReason || (exports.KnownCheckNameReason = KnownCheckNameReason = {}));
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkIH,qEAAqE;AACrE,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,SAAS;IACT,8BAAS,CAAA;AACX,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAWD,qEAAqE;AACrE,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,eAAe;IACf,0CAAqB,CAAA;AACvB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAWD,wEAAwE;AACxE,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,kBAAkB;IAClB,mDAA2B,CAAA;IAC3B,cAAc;IACd,2CAAmB,CAAA;AACrB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport interface WorkspaceCollection {\n /** Resource id */\n id?: string;\n /** Workspace collection name */\n name?: string;\n /** Resource type */\n type?: string;\n /** Azure location */\n location?: string;\n /** Dictionary of <string> */\n tags?: { [propertyName: string]: string };\n sku?: AzureSku;\n /** Properties */\n properties?: Record<string, unknown>;\n}\n\nexport interface AzureSku {\n /** SKU name */\n name: AzureSkuName;\n /** SKU tier */\n tier: AzureSkuTier;\n}\n\nexport interface ErrorModel {\n code?: string;\n message?: string;\n target?: string;\n details?: ErrorDetail[];\n}\n\nexport interface ErrorDetail {\n code?: string;\n message?: string;\n target?: string;\n}\n\nexport interface CreateWorkspaceCollectionRequest {\n /** Azure location */\n location?: string;\n /** Dictionary of <string> */\n tags?: { [propertyName: string]: string };\n sku?: AzureSku;\n}\n\nexport interface UpdateWorkspaceCollectionRequest {\n /** Dictionary of <string> */\n tags?: { [propertyName: string]: string };\n sku?: AzureSku;\n}\n\nexport interface CheckNameRequest {\n /** Workspace collection name */\n name?: string;\n /** Resource type */\n type?: string;\n}\n\nexport interface CheckNameResponse {\n /** Specifies a Boolean value that indicates whether the specified Power BI Workspace Collection name is available to use. */\n nameAvailable?: boolean;\n /** Reason why the workspace collection name cannot be used. */\n reason?: CheckNameReason;\n /** Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. */\n message?: string;\n}\n\nexport interface WorkspaceCollectionList {\n value?: WorkspaceCollection[];\n}\n\nexport interface WorkspaceCollectionAccessKeys {\n /** Access key 1 */\n key1?: string;\n /** Access key 2 */\n key2?: string;\n}\n\nexport interface WorkspaceCollectionAccessKey {\n /** Key name */\n keyName?: AccessKeyName;\n}\n\nexport interface OperationList {\n value?: Operation[];\n}\n\nexport interface Operation {\n /** The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service. */\n name?: string;\n display?: Display;\n}\n\nexport interface Display {\n /** The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with \"Microsoft\" for 1st party services. */\n provider?: string;\n /** The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the \"name\" section. */\n resource?: string;\n /** The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies. */\n operation?: string;\n /** The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views. */\n description?: string;\n /** The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system' */\n origin?: string;\n}\n\nexport interface WorkspaceList {\n value?: Workspace[];\n}\n\nexport interface Workspace {\n /** Workspace id */\n id?: string;\n /** Workspace name */\n name?: string;\n /** Resource type */\n type?: string;\n /** Property bag */\n properties?: Record<string, unknown>;\n}\n\nexport interface MigrateWorkspaceCollectionRequest {\n /** Name of the resource group the Power BI workspace collections will be migrated to. */\n targetResourceGroup?: string;\n resources?: string[];\n}\n\n/** Known values of {@link AzureSkuName} that the service accepts. */\nexport enum KnownAzureSkuName {\n /** S1 */\n S1 = \"S1\"\n}\n\n/**\n * Defines values for AzureSkuName. \\\n * {@link KnownAzureSkuName} can be used interchangeably with AzureSkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **S1**\n */\nexport type AzureSkuName = string;\n\n/** Known values of {@link AzureSkuTier} that the service accepts. */\nexport enum KnownAzureSkuTier {\n /** Standard */\n Standard = \"Standard\"\n}\n\n/**\n * Defines values for AzureSkuTier. \\\n * {@link KnownAzureSkuTier} can be used interchangeably with AzureSkuTier,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard**\n */\nexport type AzureSkuTier = string;\n\n/** Known values of {@link CheckNameReason} that the service accepts. */\nexport enum KnownCheckNameReason {\n /** Unavailable */\n Unavailable = \"Unavailable\",\n /** Invalid */\n Invalid = \"Invalid\"\n}\n\n/**\n * Defines values for CheckNameReason. \\\n * {@link KnownCheckNameReason} can be used interchangeably with CheckNameReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Unavailable** \\\n * **Invalid**\n */\nexport type CheckNameReason = string;\n/** Defines values for AccessKeyName. */\nexport type AccessKeyName = \"key1\" | \"key2\";\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsGetByNameOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getByName operation. */\nexport type WorkspaceCollectionsGetByNameResponse = WorkspaceCollection;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type WorkspaceCollectionsCreateResponse = WorkspaceCollection;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type WorkspaceCollectionsUpdateResponse = WorkspaceCollection;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsCheckNameAvailabilityOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the checkNameAvailability operation. */\nexport type WorkspaceCollectionsCheckNameAvailabilityResponse = CheckNameResponse;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type WorkspaceCollectionsListByResourceGroupResponse = WorkspaceCollectionList;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type WorkspaceCollectionsListBySubscriptionResponse = WorkspaceCollectionList;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsGetAccessKeysOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getAccessKeys operation. */\nexport type WorkspaceCollectionsGetAccessKeysResponse = WorkspaceCollectionAccessKeys;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsRegenerateKeyOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the regenerateKey operation. */\nexport type WorkspaceCollectionsRegenerateKeyResponse = WorkspaceCollectionAccessKeys;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsMigrateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetAvailableOperationsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getAvailableOperations operation. */\nexport type GetAvailableOperationsResponse = OperationList;\n\n/** Optional parameters. */\nexport interface WorkspacesListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type WorkspacesListResponse = WorkspaceList;\n\n/** Optional parameters. */\nexport interface PowerBIEmbeddedManagementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
export declare const WorkspaceCollection: coreClient.CompositeMapper;
|
|
3
|
+
export declare const AzureSku: coreClient.CompositeMapper;
|
|
4
|
+
export declare const ErrorModel: coreClient.CompositeMapper;
|
|
5
|
+
export declare const ErrorDetail: coreClient.CompositeMapper;
|
|
6
|
+
export declare const CreateWorkspaceCollectionRequest: coreClient.CompositeMapper;
|
|
7
|
+
export declare const UpdateWorkspaceCollectionRequest: coreClient.CompositeMapper;
|
|
8
|
+
export declare const CheckNameRequest: coreClient.CompositeMapper;
|
|
9
|
+
export declare const CheckNameResponse: coreClient.CompositeMapper;
|
|
10
|
+
export declare const WorkspaceCollectionList: coreClient.CompositeMapper;
|
|
11
|
+
export declare const WorkspaceCollectionAccessKeys: coreClient.CompositeMapper;
|
|
12
|
+
export declare const WorkspaceCollectionAccessKey: coreClient.CompositeMapper;
|
|
13
|
+
export declare const OperationList: coreClient.CompositeMapper;
|
|
14
|
+
export declare const Operation: coreClient.CompositeMapper;
|
|
15
|
+
export declare const Display: coreClient.CompositeMapper;
|
|
16
|
+
export declare const WorkspaceList: coreClient.CompositeMapper;
|
|
17
|
+
export declare const Workspace: coreClient.CompositeMapper;
|
|
18
|
+
export declare const MigrateWorkspaceCollectionRequest: coreClient.CompositeMapper;
|
|
19
|
+
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAoD5C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eAqBjC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAqCnC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAyBpC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,eA2BzD,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,eAqBzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eAoBzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,eAyB1C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eAmBhD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,UAAU,CAAC,eAmBtD,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,eAcrD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAmBtC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAoBlC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,UAAU,CAAC,eAqChC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAmBtC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAgClC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,UAAU,CAAC,eAwB1D,CAAC"}
|