@azure-rest/maps-route 1.0.0-beta.4 → 1.0.0-beta.6
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/CHANGELOG.md +45 -0
- package/LICENSE +4 -4
- package/README.md +49 -35
- package/dist/browser/generated/clientDefinitions.d.ts +617 -0
- package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/generated/clientDefinitions.js +4 -0
- package/dist/browser/generated/clientDefinitions.js.map +1 -0
- package/dist/browser/generated/index.d.ts +12 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +14 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/isUnexpected.d.ts +7 -0
- package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
- package/dist/browser/generated/isUnexpected.js +78 -0
- package/dist/browser/generated/isUnexpected.js.map +1 -0
- package/dist/browser/generated/logger.d.ts +2 -0
- package/dist/browser/generated/logger.d.ts.map +1 -0
- package/dist/browser/generated/logger.js +5 -0
- package/dist/browser/generated/logger.js.map +1 -0
- package/dist/browser/generated/mapsRouteClient.d.ts +15 -0
- package/dist/browser/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/browser/generated/mapsRouteClient.js +44 -0
- package/dist/browser/generated/mapsRouteClient.js.map +1 -0
- package/dist/browser/generated/models.d.ts +130 -0
- package/dist/browser/generated/models.d.ts.map +1 -0
- package/dist/browser/generated/models.js +4 -0
- package/dist/browser/generated/models.js.map +1 -0
- package/dist/browser/generated/outputModels.d.ts +286 -0
- package/dist/browser/generated/outputModels.d.ts.map +1 -0
- package/dist/browser/generated/outputModels.js +4 -0
- package/dist/browser/generated/outputModels.js.map +1 -0
- package/dist/browser/generated/parameters.d.ts +937 -0
- package/dist/browser/generated/parameters.d.ts.map +1 -0
- package/dist/browser/generated/parameters.js +4 -0
- package/dist/browser/generated/parameters.js.map +1 -0
- package/dist/browser/generated/pollingHelper.d.ts +76 -0
- package/dist/browser/generated/pollingHelper.d.ts.map +1 -0
- package/dist/browser/generated/pollingHelper.js +108 -0
- package/dist/browser/generated/pollingHelper.js.map +1 -0
- package/dist/browser/generated/responses.d.ts +1409 -0
- package/dist/browser/generated/responses.d.ts.map +1 -0
- package/dist/browser/generated/responses.js +4 -0
- package/dist/browser/generated/responses.js.map +1 -0
- package/dist/browser/generated/serializeHelper.d.ts +2 -0
- package/dist/browser/generated/serializeHelper.d.ts.map +1 -0
- package/dist/browser/generated/serializeHelper.js +13 -0
- package/dist/browser/generated/serializeHelper.js.map +1 -0
- package/dist/browser/helpers.d.ts +18 -0
- package/dist/browser/helpers.d.ts.map +1 -0
- package/dist/browser/helpers.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +7 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/mapsRoute.d.ts +53 -0
- package/dist/browser/mapsRoute.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/mapsRoute.js +1 -1
- package/dist/browser/mapsRoute.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts +617 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.js +5 -0
- package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +12 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +17 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/isUnexpected.d.ts +7 -0
- package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/generated/isUnexpected.js +81 -0
- package/dist/commonjs/generated/isUnexpected.js.map +1 -0
- package/dist/commonjs/generated/logger.d.ts +2 -0
- package/dist/commonjs/generated/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/logger.js +8 -0
- package/dist/commonjs/generated/logger.js.map +1 -0
- package/dist/commonjs/generated/mapsRouteClient.d.ts +15 -0
- package/dist/commonjs/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/commonjs/generated/mapsRouteClient.js +47 -0
- package/dist/commonjs/generated/mapsRouteClient.js.map +1 -0
- package/dist/commonjs/generated/models.d.ts +130 -0
- package/dist/commonjs/generated/models.d.ts.map +1 -0
- package/dist/commonjs/generated/models.js +5 -0
- package/dist/commonjs/generated/models.js.map +1 -0
- package/dist/commonjs/generated/outputModels.d.ts +286 -0
- package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
- package/dist/commonjs/generated/outputModels.js +5 -0
- package/dist/commonjs/generated/outputModels.js.map +1 -0
- package/dist/commonjs/generated/parameters.d.ts +937 -0
- package/dist/commonjs/generated/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/parameters.js +5 -0
- package/dist/commonjs/generated/parameters.js.map +1 -0
- package/dist/commonjs/generated/pollingHelper.d.ts +76 -0
- package/dist/commonjs/generated/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/generated/pollingHelper.js +111 -0
- package/dist/commonjs/generated/pollingHelper.js.map +1 -0
- package/dist/commonjs/generated/responses.d.ts +1409 -0
- package/dist/commonjs/generated/responses.d.ts.map +1 -0
- package/dist/commonjs/generated/responses.js +5 -0
- package/dist/commonjs/generated/responses.js.map +1 -0
- package/dist/commonjs/generated/serializeHelper.d.ts +2 -0
- package/dist/commonjs/generated/serializeHelper.d.ts.map +1 -0
- package/dist/commonjs/generated/serializeHelper.js +16 -0
- package/dist/commonjs/generated/serializeHelper.js.map +1 -0
- package/dist/commonjs/helpers.d.ts +18 -0
- package/dist/commonjs/helpers.d.ts.map +1 -0
- package/dist/commonjs/helpers.js +47 -0
- package/dist/commonjs/helpers.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 +10 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/mapsRoute.d.ts +53 -0
- package/dist/commonjs/mapsRoute.d.ts.map +1 -0
- package/dist/commonjs/mapsRoute.js +44 -0
- package/dist/commonjs/mapsRoute.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/generated/clientDefinitions.d.ts +617 -0
- package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/generated/clientDefinitions.js +4 -0
- package/dist/esm/generated/clientDefinitions.js.map +1 -0
- package/dist/esm/generated/index.d.ts +12 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +14 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/isUnexpected.d.ts +7 -0
- package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
- package/dist/esm/generated/isUnexpected.js +78 -0
- package/dist/esm/generated/isUnexpected.js.map +1 -0
- package/dist/esm/generated/logger.d.ts +2 -0
- package/dist/esm/generated/logger.d.ts.map +1 -0
- package/dist/esm/generated/logger.js +5 -0
- package/dist/esm/generated/logger.js.map +1 -0
- package/dist/esm/generated/mapsRouteClient.d.ts +15 -0
- package/dist/esm/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/esm/generated/mapsRouteClient.js +44 -0
- package/dist/esm/generated/mapsRouteClient.js.map +1 -0
- package/dist/esm/generated/models.d.ts +130 -0
- package/dist/esm/generated/models.d.ts.map +1 -0
- package/dist/esm/generated/models.js +4 -0
- package/dist/esm/generated/models.js.map +1 -0
- package/dist/esm/generated/outputModels.d.ts +286 -0
- package/dist/esm/generated/outputModels.d.ts.map +1 -0
- package/dist/esm/generated/outputModels.js +4 -0
- package/dist/esm/generated/outputModels.js.map +1 -0
- package/dist/esm/generated/parameters.d.ts +937 -0
- package/dist/esm/generated/parameters.d.ts.map +1 -0
- package/dist/esm/generated/parameters.js +4 -0
- package/dist/esm/generated/parameters.js.map +1 -0
- package/dist/esm/generated/pollingHelper.d.ts +76 -0
- package/dist/esm/generated/pollingHelper.d.ts.map +1 -0
- package/dist/esm/generated/pollingHelper.js +108 -0
- package/dist/esm/generated/pollingHelper.js.map +1 -0
- package/dist/esm/generated/responses.d.ts +1409 -0
- package/dist/esm/generated/responses.d.ts.map +1 -0
- package/dist/esm/generated/responses.js +4 -0
- package/dist/esm/generated/responses.js.map +1 -0
- package/dist/esm/generated/serializeHelper.d.ts +2 -0
- package/dist/esm/generated/serializeHelper.d.ts.map +1 -0
- package/dist/esm/generated/serializeHelper.js +13 -0
- package/dist/esm/generated/serializeHelper.js.map +1 -0
- package/dist/esm/helpers.d.ts +18 -0
- package/dist/esm/helpers.d.ts.map +1 -0
- package/dist/esm/helpers.js +43 -0
- package/dist/esm/helpers.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/mapsRoute.d.ts +53 -0
- package/dist/esm/mapsRoute.d.ts.map +1 -0
- package/dist/esm/mapsRoute.js +40 -0
- package/dist/esm/mapsRoute.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/generated/clientDefinitions.d.ts +617 -0
- package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/generated/clientDefinitions.js +4 -0
- package/dist/react-native/generated/clientDefinitions.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +12 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +14 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/isUnexpected.d.ts +7 -0
- package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/generated/isUnexpected.js +78 -0
- package/dist/react-native/generated/isUnexpected.js.map +1 -0
- package/dist/react-native/generated/logger.d.ts +2 -0
- package/dist/react-native/generated/logger.d.ts.map +1 -0
- package/dist/react-native/generated/logger.js +5 -0
- package/dist/react-native/generated/logger.js.map +1 -0
- package/dist/react-native/generated/mapsRouteClient.d.ts +15 -0
- package/dist/react-native/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/react-native/generated/mapsRouteClient.js +44 -0
- package/dist/react-native/generated/mapsRouteClient.js.map +1 -0
- package/dist/react-native/generated/models.d.ts +130 -0
- package/dist/react-native/generated/models.d.ts.map +1 -0
- package/dist/react-native/generated/models.js +4 -0
- package/dist/react-native/generated/models.js.map +1 -0
- package/dist/react-native/generated/outputModels.d.ts +286 -0
- package/dist/react-native/generated/outputModels.d.ts.map +1 -0
- package/dist/react-native/generated/outputModels.js +4 -0
- package/dist/react-native/generated/outputModels.js.map +1 -0
- package/dist/react-native/generated/parameters.d.ts +937 -0
- package/dist/react-native/generated/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/parameters.js +4 -0
- package/dist/react-native/generated/parameters.js.map +1 -0
- package/dist/react-native/generated/pollingHelper.d.ts +76 -0
- package/dist/react-native/generated/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/generated/pollingHelper.js +108 -0
- package/dist/react-native/generated/pollingHelper.js.map +1 -0
- package/dist/react-native/generated/responses.d.ts +1409 -0
- package/dist/react-native/generated/responses.d.ts.map +1 -0
- package/dist/react-native/generated/responses.js +4 -0
- package/dist/react-native/generated/responses.js.map +1 -0
- package/dist/react-native/generated/serializeHelper.d.ts +2 -0
- package/dist/react-native/generated/serializeHelper.d.ts.map +1 -0
- package/dist/react-native/generated/serializeHelper.js +13 -0
- package/dist/react-native/generated/serializeHelper.js.map +1 -0
- package/dist/react-native/helpers.d.ts +18 -0
- package/dist/react-native/helpers.d.ts.map +1 -0
- package/dist/react-native/helpers.js +43 -0
- package/dist/react-native/helpers.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 +7 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/mapsRoute.d.ts +53 -0
- package/dist/react-native/mapsRoute.d.ts.map +1 -0
- package/dist/react-native/mapsRoute.js +40 -0
- package/dist/react-native/mapsRoute.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +84 -70
- package/dist/index.js +0 -340
- package/dist/index.js.map +0 -1
- package/dist-esm/src/helpers.js.map +0 -1
- package/dist-esm/src/index.js +0 -7
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/mapsRoute.js.map +0 -1
- package/types/maps-route-rest.d.ts +0 -3659
- /package/{dist-esm/src → dist/browser}/helpers.js +0 -0
- /package/review/{maps-route.api.md → maps-route-node.api.md} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,gCAAgC;IAC/C,sYAAsY;IACtY,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,2CAA2C;IAC1D,mUAAmU;IACnU,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gLAAgL;IAChL,oBAAoB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACtC,6ZAA6Z;IAC7Z,WAAW,CAAC,EAAE,KAAK,CACf,UAAU,GACV,SAAS,GACT,OAAO,GACP,UAAU,GACV,YAAY,GACZ,UAAU,GACV,cAAc,GACd,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,OAAO,CACV,CAAC;IACF;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,qHAAqH;IACrH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,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AAiB,CAAC;AACtB,MAAM,MAAM,sCAAsC,GAAG,iBAAiB,CAAC;AAEvE,MAAM,WAAW,6CAA6C;IAC5D,yLAAyL;IACzL,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,mDAAmD;IAClE,2BAA2B;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,MAAM,8CAA8C,GACxD,mDAAmD,GACjD,6CAA6C,GAC7C,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n RouteMatrixQuery,\n RouteDirectionParameters,\n BatchRequest,\n} from \"./models.js\";\n\nexport interface RouteRequestRouteMatrixBodyParam {\n /** The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API. */\n body: RouteMatrixQuery;\n}\n\nexport interface RouteRequestRouteMatrixQueryParamProperties {\n /** Boolean to indicate whether to execute the request synchronously. If set to true, user will get a 200 response if the request is finished under 120 seconds. Otherwise, user will get a 202 response right away. Please refer to the API description for more details on 202 response. **Supported only for async request**. */\n waitForResults?: boolean;\n /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */\n computeTravelTimeFor?: \"none\" | \"all\";\n /** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */\n sectionType?: Array<\n | \"carTrain\"\n | \"country\"\n | \"ferry\"\n | \"motorway\"\n | \"pedestrian\"\n | \"tollRoad\"\n | \"tollVignette\"\n | \"traffic\"\n | \"travelMode\"\n | \"tunnel\"\n | \"carpool\"\n | \"urban\"\n >;\n /**\n * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.\n */\n arriveAt?: Date | string;\n /**\n * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.\n * * Default value: now\n * * Other value: `dateTime`\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `departAt` parameter cannot be used in conjunction with `arriveAt`.\n */\n departAt?: Date | string;\n /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */\n vehicleAxleWeight?: number;\n /** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */\n vehicleLength?: number;\n /** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */\n vehicleHeight?: number;\n /** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */\n vehicleWidth?: number;\n /**\n * Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.\n *\n * * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n *\n * * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.\n */\n vehicleMaxSpeed?: number;\n /** Weight of the vehicle in kilograms. */\n vehicleWeight?: number;\n /** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n windingness?: \"low\" | \"normal\" | \"high\";\n /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n hilliness?: \"low\" | \"normal\" | \"high\";\n /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be \"other\". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */\n travelMode?:\n | \"car\"\n | \"truck\"\n | \"taxi\"\n | \"bus\"\n | \"van\"\n | \"motorcycle\"\n | \"bicycle\"\n | \"pedestrian\";\n /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */\n avoid?: Array<\n | \"tollRoads\"\n | \"motorways\"\n | \"ferries\"\n | \"unpavedRoads\"\n | \"carpools\"\n | \"alreadyUsedRoads\"\n | \"borderCrossings\"\n >;\n /**\n * Possible values:\n * * true - Do consider all available traffic information during routing\n * * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored\n * during routing, the effect of historic traffic on effective road speeds is still incorporated.\n */\n traffic?: boolean;\n /** The type of route requested. */\n routeType?: \"fastest\" | \"shortest\" | \"eco\" | \"thrilling\";\n /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */\n vehicleLoadType?:\n | \"USHazmatClass1\"\n | \"USHazmatClass2\"\n | \"USHazmatClass3\"\n | \"USHazmatClass4\"\n | \"USHazmatClass5\"\n | \"USHazmatClass6\"\n | \"USHazmatClass7\"\n | \"USHazmatClass8\"\n | \"USHazmatClass9\"\n | \"otherHazmatExplosive\"\n | \"otherHazmatGeneral\"\n | \"otherHazmatHarmfulToWater\";\n}\n\nexport interface RouteRequestRouteMatrixQueryParam {\n queryParameters?: RouteRequestRouteMatrixQueryParamProperties;\n}\n\nexport interface RouteRequestRouteMatrixMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type RouteRequestRouteMatrixParameters =\n RouteRequestRouteMatrixQueryParam &\n RouteRequestRouteMatrixMediaTypesParam &\n RouteRequestRouteMatrixBodyParam &\n RequestParameters;\nexport type RouteGetRouteMatrixParameters = RequestParameters;\n\nexport interface RouteRequestRouteMatrixSyncBodyParam {\n /** The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API. */\n body: RouteMatrixQuery;\n}\n\nexport interface RouteRequestRouteMatrixSyncQueryParamProperties {\n /** Boolean to indicate whether to execute the request synchronously. If set to true, user will get a 200 response if the request is finished under 120 seconds. Otherwise, user will get a 202 response right away. Please refer to the API description for more details on 202 response. **Supported only for async request**. */\n waitForResults?: boolean;\n /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */\n computeTravelTimeFor?: \"none\" | \"all\";\n /** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */\n sectionType?: Array<\n | \"carTrain\"\n | \"country\"\n | \"ferry\"\n | \"motorway\"\n | \"pedestrian\"\n | \"tollRoad\"\n | \"tollVignette\"\n | \"traffic\"\n | \"travelMode\"\n | \"tunnel\"\n | \"carpool\"\n | \"urban\"\n >;\n /**\n * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.\n */\n arriveAt?: Date | string;\n /**\n * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.\n * * Default value: now\n * * Other value: `dateTime`\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `departAt` parameter cannot be used in conjunction with `arriveAt`.\n */\n departAt?: Date | string;\n /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */\n vehicleAxleWeight?: number;\n /** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */\n vehicleLength?: number;\n /** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */\n vehicleHeight?: number;\n /** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */\n vehicleWidth?: number;\n /**\n * Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.\n *\n * * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n *\n * * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.\n */\n vehicleMaxSpeed?: number;\n /** Weight of the vehicle in kilograms. */\n vehicleWeight?: number;\n /** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n windingness?: \"low\" | \"normal\" | \"high\";\n /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n hilliness?: \"low\" | \"normal\" | \"high\";\n /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be \"other\". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */\n travelMode?:\n | \"car\"\n | \"truck\"\n | \"taxi\"\n | \"bus\"\n | \"van\"\n | \"motorcycle\"\n | \"bicycle\"\n | \"pedestrian\";\n /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */\n avoid?: Array<\n | \"tollRoads\"\n | \"motorways\"\n | \"ferries\"\n | \"unpavedRoads\"\n | \"carpools\"\n | \"alreadyUsedRoads\"\n | \"borderCrossings\"\n >;\n /**\n * Possible values:\n * * true - Do consider all available traffic information during routing\n * * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored\n * during routing, the effect of historic traffic on effective road speeds is still incorporated.\n */\n traffic?: boolean;\n /** The type of route requested. */\n routeType?: \"fastest\" | \"shortest\" | \"eco\" | \"thrilling\";\n /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */\n vehicleLoadType?:\n | \"USHazmatClass1\"\n | \"USHazmatClass2\"\n | \"USHazmatClass3\"\n | \"USHazmatClass4\"\n | \"USHazmatClass5\"\n | \"USHazmatClass6\"\n | \"USHazmatClass7\"\n | \"USHazmatClass8\"\n | \"USHazmatClass9\"\n | \"otherHazmatExplosive\"\n | \"otherHazmatGeneral\"\n | \"otherHazmatHarmfulToWater\";\n}\n\nexport interface RouteRequestRouteMatrixSyncQueryParam {\n queryParameters?: RouteRequestRouteMatrixSyncQueryParamProperties;\n}\n\nexport interface RouteRequestRouteMatrixSyncMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type RouteRequestRouteMatrixSyncParameters =\n RouteRequestRouteMatrixSyncQueryParam &\n RouteRequestRouteMatrixSyncMediaTypesParam &\n RouteRequestRouteMatrixSyncBodyParam &\n RequestParameters;\n\nexport interface RouteGetRouteDirectionsQueryParamProperties {\n /** The Coordinates through which the route is calculated, delimited by a colon. A minimum of two coordinates is required. The first one is the origin and the last is the destination of the route. Optional coordinates in-between act as WayPoints in the route. You can pass up to 150 WayPoints. */\n query: string;\n /** Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5 */\n maxAlternatives?: number;\n /** Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route. */\n alternativeType?: \"anyRoute\" | \"betterRoute\";\n /** All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt */\n minDeviationDistance?: number;\n /**\n * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.\n */\n arriveAt?: Date | string;\n /**\n * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.\n * * Default value: now\n * * Other value: `dateTime`\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `departAt` parameter cannot be used in conjunction with `arriveAt`.\n */\n departAt?: Date | string;\n /**\n * All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:\n * - The origin point of the _calculateRoute_ Request must be on\n * (or very near) the input reference route.\n * - If this is not the case, an error is returned.\n * - However, the origin point does not need to be at the beginning\n * of the input reference route (it can be thought of as the current\n * vehicle position on the reference route).\n * - The reference route, returned as the first route in the _calculateRoute_\n * Response, will start at the origin point specified in the _calculateRoute_\n * Request. The initial part of the input reference route up until the origin\n * point will be excluded from the Response.\n * - The values of _minDeviationDistance_ and _minDeviationTime_ determine\n * how far alternative routes will be guaranteed to follow the reference\n * route from the origin point onwards.\n * - The route must use _departAt_.\n * - The _vehicleHeading_ is ignored.\n */\n minDeviationTime?: number;\n /** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none. */\n instructionsType?: \"coded\" | \"text\" | \"tagged\";\n /**\n * The language parameter determines the language of the guidance messages. Proper nouns (the names of streets, plazas, etc.) are returned in the specified language, or if that is not available, they are returned in an available language that is close to it. Allowed values are (a subset of) the IETF language tags. The currently supported languages are listed in the [Supported languages section](https://docs.microsoft.com/azure/azure-maps/supported-languages).\n *\n * Default value: en-GB\n */\n language?: string;\n /** Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_. */\n computeBestOrder?: boolean;\n /** Specifies the representation of the set of routes provided as response. */\n routeRepresentation?: \"polyline\" | \"summaryOnly\" | \"none\";\n /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */\n computeTravelTimeFor?: \"none\" | \"all\";\n /** The directional heading of the vehicle in degrees starting at true North and continuing in clockwise direction. North is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees. Possible values 0-359 */\n vehicleHeading?: number;\n /** Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. Reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller. */\n report?: \"effectiveSettings\";\n /** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */\n sectionType?: Array<\n | \"carTrain\"\n | \"country\"\n | \"ferry\"\n | \"motorway\"\n | \"pedestrian\"\n | \"tollRoad\"\n | \"tollVignette\"\n | \"traffic\"\n | \"travelMode\"\n | \"tunnel\"\n | \"carpool\"\n | \"urban\"\n >;\n /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */\n vehicleAxleWeight?: number;\n /** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */\n vehicleWidth?: number;\n /** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */\n vehicleHeight?: number;\n /** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */\n vehicleLength?: number;\n /**\n * Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.\n *\n * * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n *\n * * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.\n */\n vehicleMaxSpeed?: number;\n /**\n * Weight of the vehicle in kilograms.\n *\n * * It is mandatory if any of the *Efficiency parameters are set.\n *\n * * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.\n *\n * * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.\n *\n * * In all other cases, this parameter is ignored.\n *\n * Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900\n */\n vehicleWeight?: number;\n /** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */\n vehicleCommercial?: boolean;\n /** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n windingness?: \"low\" | \"normal\" | \"high\";\n /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n hilliness?: \"low\" | \"normal\" | \"high\";\n /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be \"other\". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */\n travelMode?:\n | \"car\"\n | \"truck\"\n | \"taxi\"\n | \"bus\"\n | \"van\"\n | \"motorcycle\"\n | \"bicycle\"\n | \"pedestrian\";\n /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */\n avoid?: Array<\n | \"tollRoads\"\n | \"motorways\"\n | \"ferries\"\n | \"unpavedRoads\"\n | \"carpools\"\n | \"alreadyUsedRoads\"\n | \"borderCrossings\"\n >;\n /**\n * Possible values:\n * * true - Do consider all available traffic information during routing\n * * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored\n * during routing, the effect of historic traffic on effective road speeds is still incorporated.\n */\n traffic?: boolean;\n /** The type of route requested. */\n routeType?: \"fastest\" | \"shortest\" | \"eco\" | \"thrilling\";\n /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */\n vehicleLoadType?:\n | \"USHazmatClass1\"\n | \"USHazmatClass2\"\n | \"USHazmatClass3\"\n | \"USHazmatClass4\"\n | \"USHazmatClass5\"\n | \"USHazmatClass6\"\n | \"USHazmatClass7\"\n | \"USHazmatClass8\"\n | \"USHazmatClass9\"\n | \"otherHazmatExplosive\"\n | \"otherHazmatGeneral\"\n | \"otherHazmatHarmfulToWater\";\n /** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */\n vehicleEngineType?: \"combustion\" | \"electric\";\n /**\n *\n * Specifies the speed-dependent component of consumption.\n *\n * Provided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n *\n * * by linear interpolation, if the given speed lies in between two speeds in the list\n *\n * * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n *\n * The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n *\n * Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n *\n * Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n *\n * The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.\n *\n * Sensible Values : 50,6.3:130,11.5\n *\n * **Note** : This parameter is required for **The Combustion Consumption Model**.\n */\n constantSpeedConsumptionInLitersPerHundredkm?: string;\n /**\n * Specifies the current supply of fuel in liters.\n *\n * Sensible Values : 55\n */\n currentFuelInLiters?: number;\n /**\n * Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.\n *\n * It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n *\n * Sensible Values : 0.2\n */\n auxiliaryPowerInLitersPerHour?: number;\n /**\n * Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.\n *\n * This parameter is required if any ***Efficiency** parameter is set.\n *\n * Sensible Values : 34.2\n */\n fuelEnergyDensityInMJoulesPerLiter?: number;\n /**\n * Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates _(i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **decelerationEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**decelerationEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66\n */\n accelerationEfficiency?: number;\n /**\n * Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates _(i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **accelerationEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**accelerationEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91\n */\n decelerationEfficiency?: number;\n /**\n * Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation _(i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **downhillEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**downhillEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74\n */\n uphillEfficiency?: number;\n /**\n * Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation _(i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **uphillEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**uphillEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73\n */\n downhillEfficiency?: number;\n /**\n * Specifies the speed-dependent component of consumption.\n *\n * Provided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n *\n * * by linear interpolation, if the given speed lies in between two speeds in the list\n *\n * * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n *\n * The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n *\n * Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n *\n * Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n *\n * The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.\n *\n * Sensible Values : 50,8.2:130,21.3\n *\n * This parameter is required for **Electric consumption model**.\n */\n constantSpeedConsumptionInkWhPerHundredkm?: string;\n /**\n * Specifies the current electric energy supply in kilowatt hours (kWh).\n *\n * This parameter co-exists with **maxChargeInkWh** parameter.\n *\n * The range of values allowed are 0.0 to **maxChargeInkWh**.\n *\n * Sensible Values : 43\n */\n currentChargeInkWh?: number;\n /**\n * Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.\n *\n * This parameter co-exists with **currentChargeInkWh** parameter.\n *\n * Minimum value has to be greater than or equal to **currentChargeInkWh**.\n *\n * Sensible Values : 85\n */\n maxChargeInkWh?: number;\n /**\n * Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).\n *\n * It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n *\n * Sensible Values : 1.7\n */\n auxiliaryPowerInkW?: number;\n}\n\nexport interface RouteGetRouteDirectionsQueryParam {\n queryParameters: RouteGetRouteDirectionsQueryParamProperties;\n}\n\nexport type RouteGetRouteDirectionsParameters =\n RouteGetRouteDirectionsQueryParam & RequestParameters;\n\nexport interface RouteGetRouteDirectionsWithAdditionalParametersBodyParam {\n /**\n * Used for reconstructing a route and for calculating zero or more alternative routes to this reference route. The provided sequence of coordinates is used as input for route reconstruction. The alternative routes are calculated between the origin and destination points specified in the base path parameter locations. If both minDeviationDistance and minDeviationTime are set to zero, then these origin and destination points are expected to be at (or very near) the beginning and end of the reference route, respectively. Intermediate locations (waypoints) are not supported when using supportingPoints.\n *\n * Setting at least one of minDeviationDistance or minDeviationTime to a value greater than zero has the following consequences:\n *\n * * The origin point of the calculateRoute request must be on (or very near) the input reference route. If this is not the case, an error is returned. However, the origin point does not need to be at the beginning of the input reference route (it can be thought of as the current vehicle position on the reference route).\n * * The reference route, returned as the first route in the calculateRoute response, will start at the origin point specified in the calculateRoute request. The initial part of the input reference route up until the origin point will be excluded from the response.\n * * The values of minDeviationDistance and minDeviationTime determine how far alternative routes will be guaranteed to follow the reference route from the origin point onwards.\n * * The route must use departAt.\n * * The vehicleHeading is ignored.\n */\n body: RouteDirectionParameters;\n}\n\nexport interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties {\n /** The Coordinates through which the route is calculated, delimited by a colon. A minimum of two coordinates is required. The first one is the origin and the last is the destination of the route. Optional coordinates in-between act as WayPoints in the route. You can pass up to 150 WayPoints. */\n query: string;\n /** Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5 */\n maxAlternatives?: number;\n /** Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route. */\n alternativeType?: \"anyRoute\" | \"betterRoute\";\n /** All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt */\n minDeviationDistance?: number;\n /**\n * All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:\n * - The origin point of the _calculateRoute_ Request must be on\n * (or very near) the input reference route.\n * - If this is not the case, an error is returned.\n * - However, the origin point does not need to be at the beginning\n * of the input reference route (it can be thought of as the current\n * vehicle position on the reference route).\n * - The reference route, returned as the first route in the _calculateRoute_\n * Response, will start at the origin point specified in the _calculateRoute_\n * Request. The initial part of the input reference route up until the origin\n * point will be excluded from the Response.\n * - The values of _minDeviationDistance_ and _minDeviationTime_ determine\n * how far alternative routes will be guaranteed to follow the reference\n * route from the origin point onwards.\n * - The route must use _departAt_.\n * - The _vehicleHeading_ is ignored.\n */\n minDeviationTime?: number;\n /** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none. */\n instructionsType?: \"coded\" | \"text\" | \"tagged\";\n /** The language parameter determines the language of the guidance messages. It does not affect proper nouns (the names of streets, plazas, etc.) It has no effect when instructionsType=coded. Allowed values are (a subset of) the IETF language tags described */\n language?: string;\n /** Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_. */\n computeBestOrder?: boolean;\n /** Specifies the representation of the set of routes provided as response. */\n routeRepresentation?: \"polyline\" | \"summaryOnly\" | \"none\";\n /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */\n computeTravelTimeFor?: \"none\" | \"all\";\n /** The directional heading of the vehicle in degrees starting at true North and continuing in clockwise direction. North is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees. Possible values 0-359 */\n vehicleHeading?: number;\n /** Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. Reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller. */\n report?: \"effectiveSettings\";\n /** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */\n sectionType?: Array<\n | \"carTrain\"\n | \"country\"\n | \"ferry\"\n | \"motorway\"\n | \"pedestrian\"\n | \"tollRoad\"\n | \"tollVignette\"\n | \"traffic\"\n | \"travelMode\"\n | \"tunnel\"\n | \"carpool\"\n | \"urban\"\n >;\n /**\n * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.\n */\n arriveAt?: Date | string;\n /**\n * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.\n * * Default value: now\n * * Other value: `dateTime`\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `departAt` parameter cannot be used in conjunction with `arriveAt`.\n */\n departAt?: Date | string;\n /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */\n vehicleAxleWeight?: number;\n /** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */\n vehicleLength?: number;\n /** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */\n vehicleHeight?: number;\n /** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */\n vehicleWidth?: number;\n /**\n * Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.\n *\n * * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n *\n * * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.\n */\n vehicleMaxSpeed?: number;\n /**\n * Weight of the vehicle in kilograms.\n *\n * * It is mandatory if any of the *Efficiency parameters are set.\n *\n * * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.\n *\n * * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.\n *\n * * In all other cases, this parameter is ignored.\n *\n * Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900\n */\n vehicleWeight?: number;\n /** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */\n vehicleCommercial?: boolean;\n /** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n windingness?: \"low\" | \"normal\" | \"high\";\n /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n hilliness?: \"low\" | \"normal\" | \"high\";\n /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be \"other\". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */\n travelMode?:\n | \"car\"\n | \"truck\"\n | \"taxi\"\n | \"bus\"\n | \"van\"\n | \"motorcycle\"\n | \"bicycle\"\n | \"pedestrian\";\n /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */\n avoid?: Array<\n | \"tollRoads\"\n | \"motorways\"\n | \"ferries\"\n | \"unpavedRoads\"\n | \"carpools\"\n | \"alreadyUsedRoads\"\n | \"borderCrossings\"\n >;\n /**\n * Possible values:\n * * true - Do consider all available traffic information during routing\n * * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored\n * during routing, the effect of historic traffic on effective road speeds is still incorporated.\n */\n traffic?: boolean;\n /** The type of route requested. */\n routeType?: \"fastest\" | \"shortest\" | \"eco\" | \"thrilling\";\n /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */\n vehicleLoadType?:\n | \"USHazmatClass1\"\n | \"USHazmatClass2\"\n | \"USHazmatClass3\"\n | \"USHazmatClass4\"\n | \"USHazmatClass5\"\n | \"USHazmatClass6\"\n | \"USHazmatClass7\"\n | \"USHazmatClass8\"\n | \"USHazmatClass9\"\n | \"otherHazmatExplosive\"\n | \"otherHazmatGeneral\"\n | \"otherHazmatHarmfulToWater\";\n /** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */\n vehicleEngineType?: \"combustion\" | \"electric\";\n /**\n *\n * Specifies the speed-dependent component of consumption.\n *\n * Provided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n *\n * * by linear interpolation, if the given speed lies in between two speeds in the list\n *\n * * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n *\n * The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n *\n * Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n *\n * Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n *\n * The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.\n *\n * Sensible Values : 50,6.3:130,11.5\n *\n * **Note** : This parameter is required for **The Combustion Consumption Model**.\n */\n constantSpeedConsumptionInLitersPerHundredkm?: string;\n /**\n * Specifies the current supply of fuel in liters.\n *\n * Sensible Values : 55\n */\n currentFuelInLiters?: number;\n /**\n * Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.\n *\n * It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n *\n * Sensible Values : 0.2\n */\n auxiliaryPowerInLitersPerHour?: number;\n /**\n * Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.\n *\n * This parameter is required if any ***Efficiency** parameter is set.\n *\n * Sensible Values : 34.2\n */\n fuelEnergyDensityInMJoulesPerLiter?: number;\n /**\n * Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates _(i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **decelerationEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**decelerationEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66\n */\n accelerationEfficiency?: number;\n /**\n * Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates _(i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **accelerationEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**accelerationEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91\n */\n decelerationEfficiency?: number;\n /**\n * Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation _(i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **downhillEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**downhillEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74\n */\n uphillEfficiency?: number;\n /**\n * Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation _(i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **uphillEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**uphillEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73\n */\n downhillEfficiency?: number;\n /**\n * Specifies the speed-dependent component of consumption.\n *\n * Provided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n *\n * * by linear interpolation, if the given speed lies in between two speeds in the list\n *\n * * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n *\n * The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n *\n * Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n *\n * Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n *\n * The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.\n *\n * Sensible Values : 50,8.2:130,21.3\n *\n * This parameter is required for **Electric consumption model**.\n */\n constantSpeedConsumptionInkWhPerHundredkm?: string;\n /**\n * Specifies the current electric energy supply in kilowatt hours (kWh).\n *\n * This parameter co-exists with **maxChargeInkWh** parameter.\n *\n * The range of values allowed are 0.0 to **maxChargeInkWh**.\n *\n * Sensible Values : 43\n */\n currentChargeInkWh?: number;\n /**\n * Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.\n *\n * This parameter co-exists with **currentChargeInkWh** parameter.\n *\n * Minimum value has to be greater than or equal to **currentChargeInkWh**.\n *\n * Sensible Values : 85\n */\n maxChargeInkWh?: number;\n /**\n * Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).\n *\n * It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n *\n * Sensible Values : 1.7\n */\n auxiliaryPowerInkW?: number;\n}\n\nexport interface RouteGetRouteDirectionsWithAdditionalParametersQueryParam {\n queryParameters: RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties;\n}\n\nexport interface RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type RouteGetRouteDirectionsWithAdditionalParametersParameters =\n RouteGetRouteDirectionsWithAdditionalParametersQueryParam &\n RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam &\n RouteGetRouteDirectionsWithAdditionalParametersBodyParam &\n RequestParameters;\n\nexport interface RouteGetRouteRangeQueryParamProperties {\n /** The Coordinate from which the range calculation should start. */\n query: Array<number>;\n /** Fuel budget in liters that determines maximal range which can be travelled using the specified Combustion Consumption Model.<br> When fuelBudgetInLiters is used, it is mandatory to specify a detailed Combustion Consumption Model.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */\n fuelBudgetInLiters?: number;\n /** Electric energy budget in kilowatt hours (kWh) that determines maximal range which can be travelled using the specified Electric Consumption Model.<br> When energyBudgetInkWh is used, it is mandatory to specify a detailed Electric Consumption Model.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */\n energyBudgetInkWh?: number;\n /** Time budget in seconds that determines maximal range which can be travelled using driving time. The Consumption Model will only affect the range when routeType is eco.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */\n timeBudgetInSec?: number;\n /** Distance budget in meters that determines maximal range which can be travelled using driving distance. The Consumption Model will only affect the range when routeType is eco.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */\n distanceBudgetInMeters?: number;\n /**\n * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.\n * * Default value: now\n * * Other value: `dateTime`\n *\n * Examples:\n * * 2023-12-19T16:39:57\n * * 2023-12-19T16:39:57-08:00\n *\n * The `departAt` parameter cannot be used in conjunction with `arriveAt`.\n */\n departAt?: Date | string;\n /** The type of route requested. */\n routeType?: \"fastest\" | \"shortest\" | \"eco\" | \"thrilling\";\n /**\n * Possible values:\n * * true - Do consider all available traffic information during routing\n * * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored\n * during routing, the effect of historic traffic on effective road speeds is still incorporated.\n */\n traffic?: boolean;\n /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */\n avoid?: Array<\n | \"tollRoads\"\n | \"motorways\"\n | \"ferries\"\n | \"unpavedRoads\"\n | \"carpools\"\n | \"alreadyUsedRoads\"\n | \"borderCrossings\"\n >;\n /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be \"other\". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */\n travelMode?:\n | \"car\"\n | \"truck\"\n | \"taxi\"\n | \"bus\"\n | \"van\"\n | \"motorcycle\"\n | \"bicycle\"\n | \"pedestrian\";\n /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n hilliness?: \"low\" | \"normal\" | \"high\";\n /** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */\n windingness?: \"low\" | \"normal\" | \"high\";\n /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */\n vehicleAxleWeight?: number;\n /** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */\n vehicleWidth?: number;\n /** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */\n vehicleHeight?: number;\n /** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */\n vehicleLength?: number;\n /**\n * Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.\n *\n * * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.\n *\n * * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.\n */\n vehicleMaxSpeed?: number;\n /**\n * Weight of the vehicle in kilograms.\n *\n * * It is mandatory if any of the *Efficiency parameters are set.\n *\n * * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.\n *\n * * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.\n *\n * * In all other cases, this parameter is ignored.\n *\n * Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900\n */\n vehicleWeight?: number;\n /** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */\n vehicleCommercial?: boolean;\n /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */\n vehicleLoadType?:\n | \"USHazmatClass1\"\n | \"USHazmatClass2\"\n | \"USHazmatClass3\"\n | \"USHazmatClass4\"\n | \"USHazmatClass5\"\n | \"USHazmatClass6\"\n | \"USHazmatClass7\"\n | \"USHazmatClass8\"\n | \"USHazmatClass9\"\n | \"otherHazmatExplosive\"\n | \"otherHazmatGeneral\"\n | \"otherHazmatHarmfulToWater\";\n /** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */\n vehicleEngineType?: \"combustion\" | \"electric\";\n /**\n *\n * Specifies the speed-dependent component of consumption.\n *\n * Provided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n *\n * * by linear interpolation, if the given speed lies in between two speeds in the list\n *\n * * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n *\n * The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n *\n * Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n *\n * Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n *\n * The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.\n *\n * Sensible Values : 50,6.3:130,11.5\n *\n * **Note** : This parameter is required for **The Combustion Consumption Model**.\n */\n constantSpeedConsumptionInLitersPerHundredkm?: string;\n /**\n * Specifies the current supply of fuel in liters.\n *\n * Sensible Values : 55\n */\n currentFuelInLiters?: number;\n /**\n * Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.\n *\n * It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n *\n * Sensible Values : 0.2\n */\n auxiliaryPowerInLitersPerHour?: number;\n /**\n * Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.\n *\n * This parameter is required if any ***Efficiency** parameter is set.\n *\n * Sensible Values : 34.2\n */\n fuelEnergyDensityInMJoulesPerLiter?: number;\n /**\n * Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates _(i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **decelerationEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**decelerationEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66\n */\n accelerationEfficiency?: number;\n /**\n * Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates _(i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **accelerationEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**accelerationEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91\n */\n decelerationEfficiency?: number;\n /**\n * Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation _(i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **downhillEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**downhillEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74\n */\n uphillEfficiency?: number;\n /**\n * Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation _(i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.\n *\n * Must be paired with **uphillEfficiency**.\n *\n * The range of values allowed are 0.0 to 1/**uphillEfficiency**.\n *\n * Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73\n */\n downhillEfficiency?: number;\n /**\n * Specifies the speed-dependent component of consumption.\n *\n * Provided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:\n *\n * * by linear interpolation, if the given speed lies in between two speeds in the list\n *\n * * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list\n *\n * The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.\n *\n * Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.\n *\n * Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.\n *\n * The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.\n *\n * Sensible Values : 50,8.2:130,21.3\n *\n * This parameter is required for **Electric consumption model**.\n */\n constantSpeedConsumptionInkWhPerHundredkm?: string;\n /**\n * Specifies the current electric energy supply in kilowatt hours (kWh).\n *\n * This parameter co-exists with **maxChargeInkWh** parameter.\n *\n * The range of values allowed are 0.0 to **maxChargeInkWh**.\n *\n * Sensible Values : 43\n */\n currentChargeInkWh?: number;\n /**\n * Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.\n *\n * This parameter co-exists with **currentChargeInkWh** parameter.\n *\n * Minimum value has to be greater than or equal to **currentChargeInkWh**.\n *\n * Sensible Values : 85\n */\n maxChargeInkWh?: number;\n /**\n * Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).\n *\n * It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.\n *\n * Sensible Values : 1.7\n */\n auxiliaryPowerInkW?: number;\n}\n\nexport interface RouteGetRouteRangeQueryParam {\n queryParameters: RouteGetRouteRangeQueryParamProperties;\n}\n\nexport type RouteGetRouteRangeParameters = RouteGetRouteRangeQueryParam &\n RequestParameters;\n\nexport interface RouteRequestRouteDirectionsBatchBodyParam {\n /** The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query. */\n body: BatchRequest;\n}\n\nexport interface RouteRequestRouteDirectionsBatchMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type RouteRequestRouteDirectionsBatchParameters =\n RouteRequestRouteDirectionsBatchMediaTypesParam &\n RouteRequestRouteDirectionsBatchBodyParam &\n RequestParameters;\nexport type RouteGetRouteDirectionsBatchParameters = RequestParameters;\n\nexport interface RouteRequestRouteDirectionsBatchSyncBodyParam {\n /** The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query. */\n body: BatchRequest;\n}\n\nexport interface RouteRequestRouteDirectionsBatchSyncMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type RouteRequestRouteDirectionsBatchSyncParameters =\n RouteRequestRouteDirectionsBatchSyncMediaTypesParam &\n RouteRequestRouteDirectionsBatchSyncBodyParam &\n RequestParameters;\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Client, HttpResponse } from "@azure-rest/core-client";
|
|
2
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
3
|
+
import { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
|
|
4
|
+
/**
|
|
5
|
+
* A simple poller that can be used to poll a long running operation.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if the poller has finished polling.
|
|
10
|
+
*/
|
|
11
|
+
isDone(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the state of the operation.
|
|
14
|
+
*/
|
|
15
|
+
getOperationState(): TState;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the result value of the operation,
|
|
18
|
+
* regardless of the state of the poller.
|
|
19
|
+
* It can return undefined or an incomplete form of the final TResult value
|
|
20
|
+
* depending on the implementation.
|
|
21
|
+
*/
|
|
22
|
+
getResult(): TResult | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Returns a promise that will resolve once a single polling request finishes.
|
|
25
|
+
* It does this by calling the update method of the Poller's operation.
|
|
26
|
+
*/
|
|
27
|
+
poll(options?: {
|
|
28
|
+
abortSignal?: AbortSignalLike;
|
|
29
|
+
}): Promise<TState>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a promise that will resolve once the underlying operation is completed.
|
|
32
|
+
*/
|
|
33
|
+
pollUntilDone(pollOptions?: {
|
|
34
|
+
abortSignal?: AbortSignalLike;
|
|
35
|
+
}): Promise<TResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Invokes the provided callback after each polling is completed,
|
|
38
|
+
* sending the current state of the poller's operation.
|
|
39
|
+
*
|
|
40
|
+
* It returns a method that can be used to stop receiving updates on the given callback function.
|
|
41
|
+
*/
|
|
42
|
+
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
|
43
|
+
/**
|
|
44
|
+
* Returns a promise that could be used for serialized version of the poller's operation
|
|
45
|
+
* by invoking the operation's serialize method.
|
|
46
|
+
*/
|
|
47
|
+
serialize(): Promise<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Wait the poller to be submitted.
|
|
50
|
+
*/
|
|
51
|
+
submitted(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a string representation of the poller's operation. Similar to serialize but returns a string.
|
|
54
|
+
* @deprecated Use serialize() instead.
|
|
55
|
+
*/
|
|
56
|
+
toString(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Stops the poller from continuing to poll. Please note this will only stop the client-side polling
|
|
59
|
+
* @deprecated Use abortSignal to stop polling instead.
|
|
60
|
+
*/
|
|
61
|
+
stopPolling(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the poller is stopped.
|
|
64
|
+
* @deprecated Use abortSignal status to track this instead.
|
|
65
|
+
*/
|
|
66
|
+
isStopped(): boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Helper function that builds a Poller object to help polling a long running operation.
|
|
70
|
+
* @param client - Client to use for sending the request to get additional pages.
|
|
71
|
+
* @param initialResponse - The initial response.
|
|
72
|
+
* @param options - Options to set a resume state or custom polling interval.
|
|
73
|
+
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
74
|
+
*/
|
|
75
|
+
export declare function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
76
|
+
//# sourceMappingURL=pollingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["../../../src/generated/pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EAGvB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAC/B,MAAM,SAAS,cAAc,CAAC,OAAO,CAAC,EACtC,OAAO;IAEP;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAClB;;OAEG;IACH,iBAAiB,IAAI,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACnE;;OAEG;IACH,aAAa,CAAC,WAAW,CAAC,EAAE;QAC1B,WAAW,CAAC,EAAE,eAAe,CAAC;KAC/B,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,gBAAgB,CAAC;IAEhE;;;OAGG;IACH,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE7B;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B;;;OAGG;IACH,QAAQ,IAAI,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,IAAI,IAAI,CAAC;IAEpB;;;OAGG;IACH,SAAS,IAAI,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,SAAS,YAAY,EACrE,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,OAAO,EACxB,OAAO,GAAE,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAM,GACtE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAoF7D"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
4
|
+
/**
|
|
5
|
+
* Helper function that builds a Poller object to help polling a long running operation.
|
|
6
|
+
* @param client - Client to use for sending the request to get additional pages.
|
|
7
|
+
* @param initialResponse - The initial response.
|
|
8
|
+
* @param options - Options to set a resume state or custom polling interval.
|
|
9
|
+
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
10
|
+
*/
|
|
11
|
+
export async function getLongRunningPoller(client, initialResponse, options = {}) {
|
|
12
|
+
const abortController = new AbortController();
|
|
13
|
+
const poller = {
|
|
14
|
+
sendInitialRequest: async () => {
|
|
15
|
+
// In the case of Rest Clients we are building the LRO poller object from a response that's the reason
|
|
16
|
+
// we are not triggering the initial request here, just extracting the information from the
|
|
17
|
+
// response we were provided.
|
|
18
|
+
return getLroResponse(initialResponse);
|
|
19
|
+
},
|
|
20
|
+
sendPollRequest: async (path, pollOptions) => {
|
|
21
|
+
// This is the callback that is going to be called to poll the service
|
|
22
|
+
// to get the latest status. We use the client provided and the polling path
|
|
23
|
+
// which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
|
|
24
|
+
// depending on the lro pattern that the service implements. If non is provided we default to the initial path.
|
|
25
|
+
function abortListener() {
|
|
26
|
+
abortController.abort();
|
|
27
|
+
}
|
|
28
|
+
const inputAbortSignal = pollOptions?.abortSignal;
|
|
29
|
+
const abortSignal = abortController.signal;
|
|
30
|
+
if (inputAbortSignal?.aborted) {
|
|
31
|
+
abortController.abort();
|
|
32
|
+
}
|
|
33
|
+
else if (!abortSignal.aborted) {
|
|
34
|
+
inputAbortSignal?.addEventListener("abort", abortListener, {
|
|
35
|
+
once: true,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
let response;
|
|
39
|
+
try {
|
|
40
|
+
response = await client
|
|
41
|
+
.pathUnchecked(path ?? initialResponse.request.url)
|
|
42
|
+
.get({ abortSignal });
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
inputAbortSignal?.removeEventListener("abort", abortListener);
|
|
46
|
+
}
|
|
47
|
+
const lroResponse = getLroResponse(response);
|
|
48
|
+
lroResponse.rawResponse.headers["x-ms-original-url"] =
|
|
49
|
+
initialResponse.request.url;
|
|
50
|
+
return lroResponse;
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;
|
|
54
|
+
const httpPoller = createHttpPoller(poller, options);
|
|
55
|
+
const simplePoller = {
|
|
56
|
+
isDone() {
|
|
57
|
+
return httpPoller.isDone;
|
|
58
|
+
},
|
|
59
|
+
isStopped() {
|
|
60
|
+
return abortController.signal.aborted;
|
|
61
|
+
},
|
|
62
|
+
getOperationState() {
|
|
63
|
+
if (!httpPoller.operationState) {
|
|
64
|
+
throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
|
|
65
|
+
}
|
|
66
|
+
return httpPoller.operationState;
|
|
67
|
+
},
|
|
68
|
+
getResult() {
|
|
69
|
+
return httpPoller.result;
|
|
70
|
+
},
|
|
71
|
+
toString() {
|
|
72
|
+
if (!httpPoller.operationState) {
|
|
73
|
+
throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
|
|
74
|
+
}
|
|
75
|
+
return JSON.stringify({
|
|
76
|
+
state: httpPoller.operationState,
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
stopPolling() {
|
|
80
|
+
abortController.abort();
|
|
81
|
+
},
|
|
82
|
+
onProgress: httpPoller.onProgress,
|
|
83
|
+
poll: httpPoller.poll,
|
|
84
|
+
pollUntilDone: httpPoller.pollUntilDone,
|
|
85
|
+
serialize: httpPoller.serialize,
|
|
86
|
+
submitted: httpPoller.submitted,
|
|
87
|
+
};
|
|
88
|
+
return simplePoller;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Converts a Rest Client response to a response that the LRO implementation understands
|
|
92
|
+
* @param response - a rest client http response
|
|
93
|
+
* @returns - An LRO response that the LRO implementation understands
|
|
94
|
+
*/
|
|
95
|
+
function getLroResponse(response) {
|
|
96
|
+
if (Number.isNaN(response.status)) {
|
|
97
|
+
throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
flatResponse: response,
|
|
101
|
+
rawResponse: {
|
|
102
|
+
...response,
|
|
103
|
+
statusCode: Number.parseInt(response.status),
|
|
104
|
+
body: response.body,
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=pollingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../../src/generated/pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAML,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAyEzB;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,eAAwB,EACxB,UAAqE,EAAE;IAEvE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,MAAM,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EACpB,IAAY,EACZ,WAA+C,EAC/C,EAAE;YACF,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,SAAS,aAAa;gBACpB,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;YACD,MAAM,gBAAgB,GAAG,WAAW,EAAE,WAAW,CAAC;YAClD,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC;YAC3C,IAAI,gBAAgB,EAAE,OAAO,EAAE,CAAC;gBAC9B,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;iBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;gBAChC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE;oBACzD,IAAI,EAAE,IAAI;iBACX,CAAC,CAAC;YACL,CAAC;YACD,IAAI,QAAQ,CAAC;YACb,IAAI,CAAC;gBACH,QAAQ,GAAG,MAAM,MAAM;qBACpB,aAAa,CAAC,IAAI,IAAI,eAAe,CAAC,OAAO,CAAC,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AAU,CAAC,IAAI;QACrB,aAAa,EAAE,UAAU,CAAC,aAAa;QACvC,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC,CAAC;IACF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CACjB,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CACzE,CAAC;IACJ,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE;YACX,GAAG,QAAQ;YACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<\n TState extends OperationState<TResult>,\n TResult,\n> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: {\n abortSignal?: AbortSignalLike;\n }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {},\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>> {\n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: { abortSignal?: AbortSignalLike },\n ) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] =\n initialResponse.request.url;\n return lroResponse;\n },\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n const httpPoller = createHttpPoller(poller, options);\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState,\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted,\n };\n return simplePoller;\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult,\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(\n `Status code of the response is not a number. Value: ${response.status}`,\n );\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
|