@azure/arm-customerinsights 4.1.1-alpha.20250619.1 → 4.1.1-alpha.20250729.1
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/customerInsightsManagementClient.js +30 -5
- package/dist/browser/customerInsightsManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +479 -230
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/authorizationPolicies.js +23 -40
- package/dist/browser/operations/authorizationPolicies.js.map +1 -1
- package/dist/browser/operations/connectorMappings.js +23 -40
- package/dist/browser/operations/connectorMappings.js.map +1 -1
- package/dist/browser/operations/connectors.js +45 -52
- package/dist/browser/operations/connectors.js.map +1 -1
- package/dist/browser/operations/hubs.js +56 -85
- package/dist/browser/operations/hubs.js.map +1 -1
- package/dist/browser/operations/images.js +1 -0
- package/dist/browser/operations/images.js.map +1 -1
- package/dist/browser/operations/interactions.js +34 -46
- package/dist/browser/operations/interactions.js.map +1 -1
- package/dist/browser/operations/kpi.js +45 -52
- package/dist/browser/operations/kpi.js.map +1 -1
- package/dist/browser/operations/links.js +34 -46
- package/dist/browser/operations/links.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/predictions.js +45 -52
- package/dist/browser/operations/predictions.js.map +1 -1
- package/dist/browser/operations/profiles.js +45 -52
- package/dist/browser/operations/profiles.js.map +1 -1
- package/dist/browser/operations/relationshipLinks.js +45 -52
- package/dist/browser/operations/relationshipLinks.js.map +1 -1
- package/dist/browser/operations/relationships.js +45 -52
- package/dist/browser/operations/relationships.js.map +1 -1
- package/dist/browser/operations/roleAssignments.js +34 -46
- package/dist/browser/operations/roleAssignments.js.map +1 -1
- package/dist/browser/operations/roles.js +23 -40
- package/dist/browser/operations/roles.js.map +1 -1
- package/dist/browser/operations/views.js +23 -40
- package/dist/browser/operations/views.js.map +1 -1
- package/dist/browser/operations/widgetTypes.js +23 -40
- package/dist/browser/operations/widgetTypes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/customerInsightsManagementClient.js +30 -5
- package/dist/commonjs/customerInsightsManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +479 -230
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/authorizationPolicies.js +23 -39
- package/dist/commonjs/operations/authorizationPolicies.js.map +1 -1
- package/dist/commonjs/operations/connectorMappings.js +23 -39
- package/dist/commonjs/operations/connectorMappings.js.map +1 -1
- package/dist/commonjs/operations/connectors.js +45 -51
- package/dist/commonjs/operations/connectors.js.map +1 -1
- package/dist/commonjs/operations/hubs.js +56 -84
- package/dist/commonjs/operations/hubs.js.map +1 -1
- package/dist/commonjs/operations/images.js +1 -0
- package/dist/commonjs/operations/images.js.map +1 -1
- package/dist/commonjs/operations/interactions.js +34 -45
- package/dist/commonjs/operations/interactions.js.map +1 -1
- package/dist/commonjs/operations/kpi.js +45 -51
- package/dist/commonjs/operations/kpi.js.map +1 -1
- package/dist/commonjs/operations/links.js +34 -45
- package/dist/commonjs/operations/links.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/predictions.js +45 -51
- package/dist/commonjs/operations/predictions.js.map +1 -1
- package/dist/commonjs/operations/profiles.js +45 -51
- package/dist/commonjs/operations/profiles.js.map +1 -1
- package/dist/commonjs/operations/relationshipLinks.js +45 -51
- package/dist/commonjs/operations/relationshipLinks.js.map +1 -1
- package/dist/commonjs/operations/relationships.js +45 -51
- package/dist/commonjs/operations/relationships.js.map +1 -1
- package/dist/commonjs/operations/roleAssignments.js +34 -45
- package/dist/commonjs/operations/roleAssignments.js.map +1 -1
- package/dist/commonjs/operations/roles.js +23 -39
- package/dist/commonjs/operations/roles.js.map +1 -1
- package/dist/commonjs/operations/views.js +23 -39
- package/dist/commonjs/operations/views.js.map +1 -1
- package/dist/commonjs/operations/widgetTypes.js +23 -39
- package/dist/commonjs/operations/widgetTypes.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/customerInsightsManagementClient.js +30 -5
- package/dist/esm/customerInsightsManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +479 -230
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/authorizationPolicies.js +23 -40
- package/dist/esm/operations/authorizationPolicies.js.map +1 -1
- package/dist/esm/operations/connectorMappings.js +23 -40
- package/dist/esm/operations/connectorMappings.js.map +1 -1
- package/dist/esm/operations/connectors.js +45 -52
- package/dist/esm/operations/connectors.js.map +1 -1
- package/dist/esm/operations/hubs.js +56 -85
- package/dist/esm/operations/hubs.js.map +1 -1
- package/dist/esm/operations/images.js +1 -0
- package/dist/esm/operations/images.js.map +1 -1
- package/dist/esm/operations/interactions.js +34 -46
- package/dist/esm/operations/interactions.js.map +1 -1
- package/dist/esm/operations/kpi.js +45 -52
- package/dist/esm/operations/kpi.js.map +1 -1
- package/dist/esm/operations/links.js +34 -46
- package/dist/esm/operations/links.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/predictions.js +45 -52
- package/dist/esm/operations/predictions.js.map +1 -1
- package/dist/esm/operations/profiles.js +45 -52
- package/dist/esm/operations/profiles.js.map +1 -1
- package/dist/esm/operations/relationshipLinks.js +45 -52
- package/dist/esm/operations/relationshipLinks.js.map +1 -1
- package/dist/esm/operations/relationships.js +45 -52
- package/dist/esm/operations/relationships.js.map +1 -1
- package/dist/esm/operations/roleAssignments.js +34 -46
- package/dist/esm/operations/roleAssignments.js.map +1 -1
- package/dist/esm/operations/roles.js +23 -40
- package/dist/esm/operations/roles.js.map +1 -1
- package/dist/esm/operations/views.js +23 -40
- package/dist/esm/operations/views.js.map +1 -1
- package/dist/esm/operations/widgetTypes.js +23 -40
- package/dist/esm/operations/widgetTypes.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/customerInsightsManagementClient.js +30 -5
- package/dist/react-native/customerInsightsManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +479 -230
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/authorizationPolicies.js +23 -40
- package/dist/react-native/operations/authorizationPolicies.js.map +1 -1
- package/dist/react-native/operations/connectorMappings.js +23 -40
- package/dist/react-native/operations/connectorMappings.js.map +1 -1
- package/dist/react-native/operations/connectors.js +45 -52
- package/dist/react-native/operations/connectors.js.map +1 -1
- package/dist/react-native/operations/hubs.js +56 -85
- package/dist/react-native/operations/hubs.js.map +1 -1
- package/dist/react-native/operations/images.js +1 -0
- package/dist/react-native/operations/images.js.map +1 -1
- package/dist/react-native/operations/interactions.js +34 -46
- package/dist/react-native/operations/interactions.js.map +1 -1
- package/dist/react-native/operations/kpi.js +45 -52
- package/dist/react-native/operations/kpi.js.map +1 -1
- package/dist/react-native/operations/links.js +34 -46
- package/dist/react-native/operations/links.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/predictions.js +45 -52
- package/dist/react-native/operations/predictions.js.map +1 -1
- package/dist/react-native/operations/profiles.js +45 -52
- package/dist/react-native/operations/profiles.js.map +1 -1
- package/dist/react-native/operations/relationshipLinks.js +45 -52
- package/dist/react-native/operations/relationshipLinks.js.map +1 -1
- package/dist/react-native/operations/relationships.js +45 -52
- package/dist/react-native/operations/relationships.js.map +1 -1
- package/dist/react-native/operations/roleAssignments.js +34 -46
- package/dist/react-native/operations/roleAssignments.js.map +1 -1
- package/dist/react-native/operations/roles.js +23 -40
- package/dist/react-native/operations/roles.js.map +1 -1
- package/dist/react-native/operations/views.js +23 -40
- package/dist/react-native/operations/views.js.map +1 -1
- package/dist/react-native/operations/widgetTypes.js +23 -40
- package/dist/react-native/operations/widgetTypes.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-customerinsights.api.md → arm-customerinsights-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../../src/operations/views.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,SAAS,CACd,iBAAyB,EACzB,OAAe,EACf,MAAc,EACd,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAClC,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QA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;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Views } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CustomerInsightsManagementClient } from \"../customerInsightsManagementClient.js\";\nimport {\n ViewResourceFormat,\n ViewsListByHubNextOptionalParams,\n ViewsListByHubOptionalParams,\n ViewsListByHubResponse,\n ViewsCreateOrUpdateOptionalParams,\n ViewsCreateOrUpdateResponse,\n ViewsGetOptionalParams,\n ViewsGetResponse,\n ViewsDeleteOptionalParams,\n ViewsListByHubNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Views operations. */\nexport class ViewsImpl implements Views {\n private readonly client: CustomerInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Views class.\n * @param client Reference to the service client\n */\n constructor(client: CustomerInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all available views for given user in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param userId The user ID. Use * to retrieve hub level views.\n * @param options The options parameters.\n */\n public listByHub(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams\n ): PagedAsyncIterableIterator<ViewResourceFormat> {\n const iter = this.listByHubPagingAll(\n resourceGroupName,\n hubName,\n userId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n userId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByHubPagingPage(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ViewResourceFormat[]> {\n let result: ViewsListByHubResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByHub(\n resourceGroupName,\n hubName,\n userId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByHubNext(\n resourceGroupName,\n hubName,\n userId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByHubPagingAll(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams\n ): AsyncIterableIterator<ViewResourceFormat> {\n for await (const page of this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n userId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all available views for given user in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param userId The user ID. Use * to retrieve hub level views.\n * @param options The options parameters.\n */\n private _listByHub(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams\n ): Promise<ViewsListByHubResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, userId, options },\n listByHubOperationSpec\n );\n }\n\n /**\n * Creates a view or updates an existing view in the hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param viewName The name of the view.\n * @param parameters Parameters supplied to the CreateOrUpdate View operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n hubName: string,\n viewName: string,\n parameters: ViewResourceFormat,\n options?: ViewsCreateOrUpdateOptionalParams\n ): Promise<ViewsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, viewName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a view in the hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param viewName The name of the view.\n * @param userId The user ID. Use * to retrieve hub level view.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n hubName: string,\n viewName: string,\n userId: string,\n options?: ViewsGetOptionalParams\n ): Promise<ViewsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, viewName, userId, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a view in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param viewName The name of the view.\n * @param userId The user ID. Use * to retrieve hub level view.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n hubName: string,\n viewName: string,\n userId: string,\n options?: ViewsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, viewName, userId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListByHubNext\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param userId The user ID. Use * to retrieve hub level views.\n * @param nextLink The nextLink from the previous successful call to the ListByHub method.\n * @param options The options parameters.\n */\n private _listByHubNext(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n nextLink: string,\n options?: ViewsListByHubNextOptionalParams\n ): Promise<ViewsListByHubNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, userId, nextLink, options },\n listByHubNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByHubOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewResourceFormat\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.viewName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewResourceFormat\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.viewName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.viewName1\n ],\n serializer\n};\nconst listByHubNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../../src/operations/views.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAmC;IAE1D;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,SAAS,CACd,iBAAyB,EACzB,OAAe,EACf,MAAc,EACd,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAClC,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK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.\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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Views } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CustomerInsightsManagementClient } from \"../customerInsightsManagementClient.js\";\nimport {\n ViewResourceFormat,\n ViewsListByHubNextOptionalParams,\n ViewsListByHubOptionalParams,\n ViewsListByHubResponse,\n ViewsCreateOrUpdateOptionalParams,\n ViewsCreateOrUpdateResponse,\n ViewsGetOptionalParams,\n ViewsGetResponse,\n ViewsDeleteOptionalParams,\n ViewsListByHubNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Views operations. */\nexport class ViewsImpl implements Views {\n private readonly client: CustomerInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Views class.\n * @param client Reference to the service client\n */\n constructor(client: CustomerInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all available views for given user in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param userId The user ID. Use * to retrieve hub level views.\n * @param options The options parameters.\n */\n public listByHub(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams\n ): PagedAsyncIterableIterator<ViewResourceFormat> {\n const iter = this.listByHubPagingAll(\n resourceGroupName,\n hubName,\n userId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n userId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByHubPagingPage(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ViewResourceFormat[]> {\n let result: ViewsListByHubResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByHub(\n resourceGroupName,\n hubName,\n userId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByHubNext(\n resourceGroupName,\n hubName,\n userId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByHubPagingAll(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams\n ): AsyncIterableIterator<ViewResourceFormat> {\n for await (const page of this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n userId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all available views for given user in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param userId The user ID. Use * to retrieve hub level views.\n * @param options The options parameters.\n */\n private _listByHub(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n options?: ViewsListByHubOptionalParams\n ): Promise<ViewsListByHubResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, userId, options },\n listByHubOperationSpec\n );\n }\n\n /**\n * Creates a view or updates an existing view in the hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param viewName The name of the view.\n * @param parameters Parameters supplied to the CreateOrUpdate View operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n hubName: string,\n viewName: string,\n parameters: ViewResourceFormat,\n options?: ViewsCreateOrUpdateOptionalParams\n ): Promise<ViewsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, viewName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a view in the hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param viewName The name of the view.\n * @param userId The user ID. Use * to retrieve hub level view.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n hubName: string,\n viewName: string,\n userId: string,\n options?: ViewsGetOptionalParams\n ): Promise<ViewsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, viewName, userId, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a view in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param viewName The name of the view.\n * @param userId The user ID. Use * to retrieve hub level view.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n hubName: string,\n viewName: string,\n userId: string,\n options?: ViewsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, viewName, userId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListByHubNext\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param userId The user ID. Use * to retrieve hub level views.\n * @param nextLink The nextLink from the previous successful call to the ListByHub method.\n * @param options The options parameters.\n */\n private _listByHubNext(\n resourceGroupName: string,\n hubName: string,\n userId: string,\n nextLink: string,\n options?: ViewsListByHubNextOptionalParams\n ): Promise<ViewsListByHubNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, userId, nextLink, options },\n listByHubNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByHubOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewResourceFormat\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.viewName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewResourceFormat\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.viewName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.viewName1\n ],\n serializer\n};\nconst listByHubNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViewListResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.userId],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing WidgetTypes operations. */
|
|
15
14
|
export class WidgetTypesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class WidgetTypes class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class WidgetTypesImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByHubPagingPage(resourceGroupName, hubName, options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByHubPagingPage(resourceGroupName, hubName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByHubPagingPage(resourceGroupName, hubName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByHub(resourceGroupName, hubName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByHubNext(resourceGroupName, hubName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByHubPagingAll(resourceGroupName, hubName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByHubPagingPage(resourceGroupName, hubName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByHubPagingAll(resourceGroupName, hubName, options) {
|
|
65
|
+
for await (const page of this.listByHubPagingPage(resourceGroupName, hubName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Gets all available widget types in the specified hub.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetTypes.js","s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AU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { WidgetTypes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CustomerInsightsManagementClient } from \"../customerInsightsManagementClient.js\";\nimport {\n WidgetTypeResourceFormat,\n WidgetTypesListByHubNextOptionalParams,\n WidgetTypesListByHubOptionalParams,\n WidgetTypesListByHubResponse,\n WidgetTypesGetOptionalParams,\n WidgetTypesGetResponse,\n WidgetTypesListByHubNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WidgetTypes operations. */\nexport class WidgetTypesImpl implements WidgetTypes {\n private readonly client: CustomerInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WidgetTypes class.\n * @param client Reference to the service client\n */\n constructor(client: CustomerInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all available widget types in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param options The options parameters.\n */\n public listByHub(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams\n ): PagedAsyncIterableIterator<WidgetTypeResourceFormat> {\n const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByHubPagingPage(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<WidgetTypeResourceFormat[]> {\n let result: WidgetTypesListByHubResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByHub(resourceGroupName, hubName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByHubNext(\n resourceGroupName,\n hubName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByHubPagingAll(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams\n ): AsyncIterableIterator<WidgetTypeResourceFormat> {\n for await (const page of this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all available widget types in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param options The options parameters.\n */\n private _listByHub(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams\n ): Promise<WidgetTypesListByHubResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, options },\n listByHubOperationSpec\n );\n }\n\n /**\n * Gets a widget type in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param widgetTypeName The name of the widget type.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n hubName: string,\n widgetTypeName: string,\n options?: WidgetTypesGetOptionalParams\n ): Promise<WidgetTypesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, widgetTypeName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListByHubNext\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param nextLink The nextLink from the previous successful call to the ListByHub method.\n * @param options The options parameters.\n */\n private _listByHubNext(\n resourceGroupName: string,\n hubName: string,\n nextLink: string,\n options?: WidgetTypesListByHubNextOptionalParams\n ): Promise<WidgetTypesListByHubNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, nextLink, options },\n listByHubNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByHubOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WidgetTypeListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes/{widgetTypeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WidgetTypeResourceFormat\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.widgetTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByHubNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WidgetTypeListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"widgetTypes.js","sourceRoot":"","sources":["../../../src/operations/widgetTypes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAmC;IAE1D;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,SAAS,CACd,iBAAyB,EACzB,OAAe,EACf,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC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Q;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,qJAAqJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { WidgetTypes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CustomerInsightsManagementClient } from \"../customerInsightsManagementClient.js\";\nimport {\n WidgetTypeResourceFormat,\n WidgetTypesListByHubNextOptionalParams,\n WidgetTypesListByHubOptionalParams,\n WidgetTypesListByHubResponse,\n WidgetTypesGetOptionalParams,\n WidgetTypesGetResponse,\n WidgetTypesListByHubNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WidgetTypes operations. */\nexport class WidgetTypesImpl implements WidgetTypes {\n private readonly client: CustomerInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WidgetTypes class.\n * @param client Reference to the service client\n */\n constructor(client: CustomerInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all available widget types in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param options The options parameters.\n */\n public listByHub(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams\n ): PagedAsyncIterableIterator<WidgetTypeResourceFormat> {\n const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByHubPagingPage(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<WidgetTypeResourceFormat[]> {\n let result: WidgetTypesListByHubResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByHub(resourceGroupName, hubName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByHubNext(\n resourceGroupName,\n hubName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByHubPagingAll(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams\n ): AsyncIterableIterator<WidgetTypeResourceFormat> {\n for await (const page of this.listByHubPagingPage(\n resourceGroupName,\n hubName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all available widget types in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param options The options parameters.\n */\n private _listByHub(\n resourceGroupName: string,\n hubName: string,\n options?: WidgetTypesListByHubOptionalParams\n ): Promise<WidgetTypesListByHubResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, options },\n listByHubOperationSpec\n );\n }\n\n /**\n * Gets a widget type in the specified hub.\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param widgetTypeName The name of the widget type.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n hubName: string,\n widgetTypeName: string,\n options?: WidgetTypesGetOptionalParams\n ): Promise<WidgetTypesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, widgetTypeName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListByHubNext\n * @param resourceGroupName The name of the resource group.\n * @param hubName The name of the hub.\n * @param nextLink The nextLink from the previous successful call to the ListByHub method.\n * @param options The options parameters.\n */\n private _listByHubNext(\n resourceGroupName: string,\n hubName: string,\n nextLink: string,\n options?: WidgetTypesListByHubNextOptionalParams\n ): Promise<WidgetTypesListByHubNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, hubName, nextLink, options },\n listByHubNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByHubOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WidgetTypeListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes/{widgetTypeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WidgetTypeResourceFormat\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1,\n Parameters.widgetTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByHubNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WidgetTypeListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.hubName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage().
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +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
|
|
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,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,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,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,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"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for CustomerInsightsManagementClient.",
|
|
6
|
-
"version": "4.1.1-alpha.
|
|
6
|
+
"version": "4.1.1-alpha.20250729.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.0.0"
|
|
9
9
|
},
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"type": "module",
|
|
93
93
|
"tshy": {
|
|
94
|
-
"project": "
|
|
94
|
+
"project": "../../../tsconfig.src.build.json",
|
|
95
95
|
"exports": {
|
|
96
96
|
"./package.json": "./package.json",
|
|
97
97
|
".": "./src/index.ts"
|
|
File without changes
|