@azure-rest/maps-render 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -4
- package/README.md +48 -34
- package/dist/browser/createMultiCollection.d.ts +7 -0
- package/dist/browser/createMultiCollection.d.ts.map +1 -0
- package/dist/browser/createPathQuery.d.ts +117 -0
- package/dist/browser/createPathQuery.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/createPathQuery.js +41 -24
- package/dist/browser/createPathQuery.js.map +1 -0
- package/dist/browser/createPinsQuery.d.ts +102 -0
- package/dist/browser/createPinsQuery.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/createPinsQuery.js +44 -25
- package/dist/browser/createPinsQuery.js.map +1 -0
- package/dist/browser/generated/clientDefinitions.d.ts +131 -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 +9 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +11 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/isUnexpected.d.ts +11 -0
- package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
- package/dist/browser/generated/isUnexpected.js +79 -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/mapsRenderClient.d.ts +15 -0
- package/dist/browser/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/browser/generated/mapsRenderClient.js +42 -0
- package/dist/browser/generated/mapsRenderClient.js.map +1 -0
- package/dist/browser/generated/outputModels.d.ts +93 -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 +384 -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/responses.d.ts +248 -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/index.d.ts +7 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +9 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/mapsRender.d.ts +53 -0
- package/dist/browser/mapsRender.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/mapsRender.js +1 -1
- package/dist/browser/mapsRender.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/positionToTileXY.d.ts +47 -0
- package/dist/browser/positionToTileXY.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/positionToTileXY.js +23 -2
- package/dist/browser/positionToTileXY.js.map +1 -0
- package/dist/commonjs/createMultiCollection.d.ts +7 -0
- package/dist/commonjs/createMultiCollection.d.ts.map +1 -0
- package/dist/commonjs/createMultiCollection.js +16 -0
- package/dist/commonjs/createMultiCollection.js.map +1 -0
- package/dist/commonjs/createPathQuery.d.ts +117 -0
- package/dist/commonjs/createPathQuery.d.ts.map +1 -0
- package/dist/commonjs/createPathQuery.js +117 -0
- package/dist/commonjs/createPathQuery.js.map +1 -0
- package/dist/commonjs/createPinsQuery.d.ts +102 -0
- package/dist/commonjs/createPinsQuery.d.ts.map +1 -0
- package/dist/commonjs/createPinsQuery.js +96 -0
- package/dist/commonjs/createPinsQuery.js.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts +131 -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 +9 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +14 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/isUnexpected.d.ts +11 -0
- package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/generated/isUnexpected.js +82 -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/mapsRenderClient.d.ts +15 -0
- package/dist/commonjs/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/commonjs/generated/mapsRenderClient.js +45 -0
- package/dist/commonjs/generated/mapsRenderClient.js.map +1 -0
- package/dist/commonjs/generated/outputModels.d.ts +93 -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 +384 -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/responses.d.ts +248 -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/index.d.ts +7 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/mapsRender.d.ts +53 -0
- package/dist/commonjs/mapsRender.d.ts.map +1 -0
- package/dist/commonjs/mapsRender.js +44 -0
- package/dist/commonjs/mapsRender.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/positionToTileXY.d.ts +47 -0
- package/dist/commonjs/positionToTileXY.d.ts.map +1 -0
- package/dist/commonjs/positionToTileXY.js +68 -0
- package/dist/commonjs/positionToTileXY.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/createMultiCollection.d.ts +7 -0
- package/dist/esm/createMultiCollection.d.ts.map +1 -0
- package/dist/esm/createMultiCollection.js +13 -0
- package/dist/esm/createMultiCollection.js.map +1 -0
- package/dist/esm/createPathQuery.d.ts +117 -0
- package/dist/esm/createPathQuery.d.ts.map +1 -0
- package/dist/esm/createPathQuery.js +114 -0
- package/dist/esm/createPathQuery.js.map +1 -0
- package/dist/esm/createPinsQuery.d.ts +102 -0
- package/dist/esm/createPinsQuery.d.ts.map +1 -0
- package/dist/esm/createPinsQuery.js +93 -0
- package/dist/esm/createPinsQuery.js.map +1 -0
- package/dist/esm/generated/clientDefinitions.d.ts +131 -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 +9 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +11 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/isUnexpected.d.ts +11 -0
- package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
- package/dist/esm/generated/isUnexpected.js +79 -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/mapsRenderClient.d.ts +15 -0
- package/dist/esm/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/esm/generated/mapsRenderClient.js +42 -0
- package/dist/esm/generated/mapsRenderClient.js.map +1 -0
- package/dist/esm/generated/outputModels.d.ts +93 -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 +384 -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/responses.d.ts +248 -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/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/mapsRender.d.ts +53 -0
- package/dist/esm/mapsRender.d.ts.map +1 -0
- package/dist/esm/mapsRender.js +40 -0
- package/dist/esm/mapsRender.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/positionToTileXY.d.ts +47 -0
- package/dist/esm/positionToTileXY.d.ts.map +1 -0
- package/dist/esm/positionToTileXY.js +65 -0
- package/dist/esm/positionToTileXY.js.map +1 -0
- package/dist/react-native/createMultiCollection.d.ts +7 -0
- package/dist/react-native/createMultiCollection.d.ts.map +1 -0
- package/dist/react-native/createMultiCollection.js +13 -0
- package/dist/react-native/createMultiCollection.js.map +1 -0
- package/dist/react-native/createPathQuery.d.ts +117 -0
- package/dist/react-native/createPathQuery.d.ts.map +1 -0
- package/dist/react-native/createPathQuery.js +114 -0
- package/dist/react-native/createPathQuery.js.map +1 -0
- package/dist/react-native/createPinsQuery.d.ts +102 -0
- package/dist/react-native/createPinsQuery.d.ts.map +1 -0
- package/dist/react-native/createPinsQuery.js +93 -0
- package/dist/react-native/createPinsQuery.js.map +1 -0
- package/dist/react-native/generated/clientDefinitions.d.ts +131 -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 +9 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/isUnexpected.d.ts +11 -0
- package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/generated/isUnexpected.js +79 -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/mapsRenderClient.d.ts +15 -0
- package/dist/react-native/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/react-native/generated/mapsRenderClient.js +42 -0
- package/dist/react-native/generated/mapsRenderClient.js.map +1 -0
- package/dist/react-native/generated/outputModels.d.ts +93 -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 +384 -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/responses.d.ts +248 -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/index.d.ts +7 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +9 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/mapsRender.d.ts +53 -0
- package/dist/react-native/mapsRender.d.ts.map +1 -0
- package/dist/react-native/mapsRender.js +40 -0
- package/dist/react-native/mapsRender.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/positionToTileXY.d.ts +47 -0
- package/dist/react-native/positionToTileXY.d.ts.map +1 -0
- package/dist/react-native/positionToTileXY.js +65 -0
- package/dist/react-native/positionToTileXY.js.map +1 -0
- package/package.json +73 -52
- package/dist/index.js +0 -404
- package/dist/index.js.map +0 -1
- package/dist-esm/src/createPathQuery.js.map +0 -1
- package/dist-esm/src/createPinsQuery.js.map +0 -1
- package/dist-esm/src/index.js +0 -9
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/mapsRender.js.map +0 -1
- package/dist-esm/src/positionToTileXY.js.map +0 -1
- package/review/maps-render.api.md +0 -564
- package/types/maps-render-rest.d.ts +0 -1212
- /package/{dist-esm/src → dist/browser}/createMultiCollection.js +0 -0
- /package/{dist-esm/src → dist/browser}/createMultiCollection.js.map +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPinsQuery.js","sourceRoot":"","sources":["../../src/createPinsQuery.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA2CnE,MAAM,YAAY,GAAqC;IACrD,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,IAAI;IACvB,SAAS,EAAE,IAAI;IACf,gBAAgB,EAAE,IAAI;IACtB,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,SAAS,cAAc,CAAC,GAAQ;IAC9B,OAAO,GAAG,IAAI,YAAY,CAAC;AAC7B,CAAC;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,MAAM,UAAU,eAAe,CAAC,OAAiB;IAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE;QAC/E,0CAA0C;QAC1C,MAAM,YAAY,GAAG,IAAI;aACtB,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;aACvF,IAAI,CAAC,GAAG,CAAC,CAAC;QACb,mCAAmC;QACnC,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAS,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE;YACtF,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC;gBAAE,MAAM,KAAK,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;YACnE,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;gBAAE,OAAO,CAAC,QAAQ,IAAI,IAAI,YAAY,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACxF,OAAO,CAAC,QAAQ,IAAI,IAAI,YAAY,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;QACrD,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,IAAI,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAClD,OAAO,GAAG,QAAQ,GAAG,eAAe,KAAK,YAAY,EAAE,CAAC;QAC1D,CAAC;QACD,OAAO,SAAS,eAAe,KAAK,YAAY,KAAK,QAAQ,EAAE,CAAC;IAClE,CAAC,CAAC,CAAC;IACH,OAAO,qBAAqB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { LatLon } from \"@azure/maps-common\";\nimport { createMultiCollection } from \"./createMultiCollection.js\";\n\n/**\n * Specify how the pin's position and label text.\n */\nexport interface Pin {\n /** The coordinate of the pin. */\n coordinate: LatLon;\n /** The label text for the pin. */\n label?: string;\n}\n\n/**\n * The pin options for default/none image style..\n */\nexport interface PinOptions {\n /** The opacity of the pin. Range from 0 to 1 */\n opacity?: number;\n /**\n * The labels are centered at the pushpin 'label anchor.' The anchor location is predefined for built-in pushpins and is at the top center of custom pushpins (see below).\n * To override the label anchor, using the _labelAnchor_ option and provide X and Y pixel coordinates for the anchor.\n * These coordinates are relative to the top left corner of the pushpin image. Positive X values move the anchor to the right, and positive Y values move the anchor down.\n * For example, to position the label anchor 10 pixels right and 4 pixels above the top left corner of the pushpin image, use \\{labelAnchor: [10, -4]\\}\n * */\n labelAnchor?: [number, number];\n /** Color of the label. Range from 000000 to FFFFFF */\n labelColor?: string;\n /** Size of the label in pixels. */\n labelSizeInPixels?: number;\n /**\n * By default, custom pushpin images are drawn centered at the pin coordinates. This usually isn't ideal as it obscures the location that you're trying to highlight.\n * To override the anchor location of the pin image, use the _pinAnchor_ option. This uses the same format as the _labelAnchor_ options.\n * For example, if your custom pin image has the tip of the pin at the top left corner of the image, you can set the anchor to that spot by using \\{pinAnchor: [0, 0]\\}\n */\n pinAnchor?: [number, number];\n /** The ration of the pin. Range from -360 to 360*/\n rotationInDegree?: number;\n /** The scale of the pin. Should be greater than 0. */\n scale?: number;\n /** Color of the pin. Range from 000000 to FFFFFF */\n pinColor?: string;\n}\n\nconst optionKeyMap: Record<keyof PinOptions, string> = {\n opacity: \"al\",\n labelAnchor: \"la\",\n labelColor: \"lc\",\n labelSizeInPixels: \"ls\",\n pinAnchor: \"an\",\n rotationInDegree: \"ro\",\n scale: \"sc\",\n pinColor: \"co\",\n};\n\nfunction isOptionKeyMap(key: any): key is keyof PinOptions {\n return key in optionKeyMap;\n}\n\nexport interface PinSet {\n pins: Pin[];\n pinImage?: \"default\" | \"none\" | string;\n options?: PinOptions;\n}\n/**\n * Create a pin query string for _get map static image_\n *\n * @example\n * ```ts snippet:ReadmeSampleCreatePinsQuery\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import MapsRender, { PinSet, createPinsQuery } from \"@azure-rest/maps-render\";\n * import { createWriteStream } from \"node:fs\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = MapsRender(credential, \"<maps-account-client-id>\");\n *\n * const pins: PinSet[] = [\n * {\n * pins: [\n * { coordinate: [52.577, 13.35], label: \"Label start\" },\n * { coordinate: [52.6, 13.2988], label: \"Label end\" },\n * ],\n * pinImage: \"default\",\n * options: {\n * scale: 0.9,\n * pinColor: \"FF0000\",\n * labelColor: \"0000FF\",\n * labelSizeInPixels: 18,\n * },\n * },\n * ];\n *\n * const path = createPinsQuery(pins);\n *\n * const response = await client\n * .path(\"/map/static\")\n * .get({\n * queryParameters: {\n * bbox: [13.228, 52.4559, 13.5794, 52.62],\n * zoom: 10,\n * path,\n * },\n * skipUrlEncoding: true,\n * })\n * .asNodeStream();\n *\n * // Handle the error.\n * if (!response.body) {\n * throw Error(\"No response body\");\n * }\n *\n * response.body.pipe(createWriteStream(\"pin.png\"));\n * ```\n *\n * @param pins - An array of {@link Pin} that specify the positions and label text of each pin.\n * @param pinImage - Specify the image source for custom pin. Set this to \"none\" if you don't want to show a pin image.\n * @param options - The style options of the pins. See {@link PinOptions}\n * @returns - The composed query string.\n */\n\nexport function createPinsQuery(pinSets: PinSet[]): string {\n const pinsQueries = pinSets.map(({ pins, pinImage = \"default\", options = {} }) => {\n // compose the pins' position query string\n const pinsQueryStr = pins\n .map(({ coordinate: [lat, lon], label }) => `${label ? `'${label}'` : \"\"}${lon} ${lat}`)\n .join(\"|\");\n // compose the options query string\n const optionsQueryStr = Object.entries(options).reduce<string>((queryStr, [key, val]) => {\n if (!isOptionKeyMap(key)) throw Error(`Unexpected option: ${key}`);\n if (Array.isArray(val)) return (queryStr += `|${optionKeyMap[key]}${val[0]} ${val[1]}`);\n return (queryStr += `|${optionKeyMap[key]}${val}`);\n }, \"\");\n if (pinImage === \"none\" || pinImage === \"default\") {\n return `${pinImage}${optionsQueryStr}||${pinsQueryStr}`;\n }\n return `custom${optionsQueryStr}||${pinsQueryStr}||${pinImage}`;\n });\n return createMultiCollection(\"pins\", pinsQueries);\n}\n"]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { RenderGetMapTileParameters, RenderGetMapTilesetParameters, RenderGetMapAttributionParameters, RenderGetMapStateTileParameters, RenderGetCopyrightCaptionParameters, RenderGetMapStaticImageParameters, RenderGetCopyrightFromBoundingBoxParameters, RenderGetCopyrightForTileParameters, RenderGetCopyrightForWorldParameters } from "./parameters.js";
|
|
2
|
+
import { RenderGetMapTile200Response, RenderGetMapTileDefaultResponse, RenderGetMapTileset200Response, RenderGetMapTilesetDefaultResponse, RenderGetMapAttribution200Response, RenderGetMapAttributionDefaultResponse, RenderGetMapStateTile200Response, RenderGetMapStateTileDefaultResponse, RenderGetCopyrightCaption200Response, RenderGetCopyrightCaptionDefaultResponse, RenderGetMapStaticImage200Response, RenderGetMapStaticImageDefaultResponse, RenderGetCopyrightFromBoundingBox200Response, RenderGetCopyrightFromBoundingBoxDefaultResponse, RenderGetCopyrightForTile200Response, RenderGetCopyrightForTileDefaultResponse, RenderGetCopyrightForWorld200Response, RenderGetCopyrightForWorldDefaultResponse } from "./responses.js";
|
|
3
|
+
import { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
4
|
+
export interface GetMapTile {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk).
|
|
8
|
+
*/
|
|
9
|
+
get(options: RenderGetMapTileParameters): StreamableMethod<RenderGetMapTile200Response | RenderGetMapTileDefaultResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface GetMapTileset {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* The Get Map Tileset API allows users to request metadata for a tileset.
|
|
15
|
+
*/
|
|
16
|
+
get(options: RenderGetMapTilesetParameters): StreamableMethod<RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface GetMapAttribution {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.
|
|
22
|
+
*/
|
|
23
|
+
get(options: RenderGetMapAttributionParameters): StreamableMethod<RenderGetMapAttribution200Response | RenderGetMapAttributionDefaultResponse>;
|
|
24
|
+
}
|
|
25
|
+
export interface GetMapStateTile {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid).
|
|
29
|
+
*/
|
|
30
|
+
get(options: RenderGetMapStateTileParameters): StreamableMethod<RenderGetMapStateTile200Response | RenderGetMapStateTileDefaultResponse>;
|
|
31
|
+
}
|
|
32
|
+
export interface GetCopyrightCaption {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions.
|
|
36
|
+
*
|
|
37
|
+
* As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.
|
|
38
|
+
*/
|
|
39
|
+
get(options?: RenderGetCopyrightCaptionParameters): StreamableMethod<RenderGetCopyrightCaption200Response | RenderGetCopyrightCaptionDefaultResponse>;
|
|
40
|
+
}
|
|
41
|
+
export interface GetMapStaticImage {
|
|
42
|
+
/**
|
|
43
|
+
* This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications.
|
|
44
|
+
*
|
|
45
|
+
* This API includes parameters for basic data visualization:
|
|
46
|
+
*
|
|
47
|
+
* - Labeled pushpins in multiple styles.
|
|
48
|
+
* - Render circle, path, and polygon geometry types.
|
|
49
|
+
*
|
|
50
|
+
* For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).
|
|
51
|
+
* <br><br>
|
|
52
|
+
* The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.
|
|
53
|
+
* <br><br>
|
|
54
|
+
*
|
|
55
|
+
* |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|
|
|
56
|
+
* |:----------|:----------------|:----------------|:----------------|:-------------|
|
|
57
|
+
* |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |
|
|
58
|
+
* |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |
|
|
59
|
+
* |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |
|
|
60
|
+
* |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |
|
|
61
|
+
* |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |
|
|
62
|
+
* |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |
|
|
63
|
+
* |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |
|
|
64
|
+
* |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |
|
|
65
|
+
* |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |
|
|
66
|
+
* |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |
|
|
67
|
+
* |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |
|
|
68
|
+
* |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |
|
|
69
|
+
* |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |
|
|
70
|
+
* |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |
|
|
71
|
+
* |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |
|
|
72
|
+
* |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |
|
|
73
|
+
* |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |
|
|
74
|
+
* |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |
|
|
75
|
+
* |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |
|
|
76
|
+
* |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |
|
|
77
|
+
* |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |
|
|
78
|
+
*
|
|
79
|
+
* _Note_ : Either **center** or **bbox** parameter must be supplied to the API.
|
|
80
|
+
*/
|
|
81
|
+
get(options?: RenderGetMapStaticImageParameters): StreamableMethod<RenderGetMapStaticImage200Response | RenderGetMapStaticImageDefaultResponse>;
|
|
82
|
+
}
|
|
83
|
+
export interface GetCopyrightFromBoundingBox {
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates
|
|
87
|
+
*/
|
|
88
|
+
get(options: RenderGetCopyrightFromBoundingBoxParameters): StreamableMethod<RenderGetCopyrightFromBoundingBox200Response | RenderGetCopyrightFromBoundingBoxDefaultResponse>;
|
|
89
|
+
}
|
|
90
|
+
export interface GetCopyrightForTile {
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid).
|
|
94
|
+
*
|
|
95
|
+
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
96
|
+
*/
|
|
97
|
+
get(options: RenderGetCopyrightForTileParameters): StreamableMethod<RenderGetCopyrightForTile200Response | RenderGetCopyrightForTileDefaultResponse>;
|
|
98
|
+
}
|
|
99
|
+
export interface GetCopyrightForWorld {
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box.
|
|
103
|
+
*
|
|
104
|
+
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
105
|
+
*/
|
|
106
|
+
get(options?: RenderGetCopyrightForWorldParameters): StreamableMethod<RenderGetCopyrightForWorld200Response | RenderGetCopyrightForWorldDefaultResponse>;
|
|
107
|
+
}
|
|
108
|
+
export interface Routes {
|
|
109
|
+
/** Resource for '/map/tile' has methods for the following verbs: get */
|
|
110
|
+
(path: "/map/tile"): GetMapTile;
|
|
111
|
+
/** Resource for '/map/tileset' has methods for the following verbs: get */
|
|
112
|
+
(path: "/map/tileset"): GetMapTileset;
|
|
113
|
+
/** Resource for '/map/attribution' has methods for the following verbs: get */
|
|
114
|
+
(path: "/map/attribution"): GetMapAttribution;
|
|
115
|
+
/** Resource for '/map/statetile' has methods for the following verbs: get */
|
|
116
|
+
(path: "/map/statetile"): GetMapStateTile;
|
|
117
|
+
/** Resource for '/map/copyright/caption/\{format\}' has methods for the following verbs: get */
|
|
118
|
+
(path: "/map/copyright/caption/{format}", format: "json" | "xml"): GetCopyrightCaption;
|
|
119
|
+
/** Resource for '/map/static' has methods for the following verbs: get */
|
|
120
|
+
(path: "/map/static"): GetMapStaticImage;
|
|
121
|
+
/** Resource for '/map/copyright/bounding/\{format\}' has methods for the following verbs: get */
|
|
122
|
+
(path: "/map/copyright/bounding/{format}", format: "json" | "xml"): GetCopyrightFromBoundingBox;
|
|
123
|
+
/** Resource for '/map/copyright/tile/\{format\}' has methods for the following verbs: get */
|
|
124
|
+
(path: "/map/copyright/tile/{format}", format: "json" | "xml"): GetCopyrightForTile;
|
|
125
|
+
/** Resource for '/map/copyright/world/\{format\}' has methods for the following verbs: get */
|
|
126
|
+
(path: "/map/copyright/world/{format}", format: "json" | "xml"): GetCopyrightForWorld;
|
|
127
|
+
}
|
|
128
|
+
export type MapsRenderClient = Client & {
|
|
129
|
+
path: Routes;
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=clientDefinitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../src/generated/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,iCAAiC,EACjC,+BAA+B,EAC/B,mCAAmC,EACnC,iCAAiC,EACjC,2CAA2C,EAC3C,mCAAmC,EACnC,oCAAoC,EACrC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,sCAAsC,EACtC,gCAAgC,EAChC,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,gDAAgD,EAChD,oCAAoC,EACpC,wCAAwC,EACxC,qCAAqC,EACrC,yCAAyC,EAC1C,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,GAAG,CACD,OAAO,EAAE,0BAA0B,GAClC,gBAAgB,CACjB,2BAA2B,GAAG,+BAA+B,CAC9D,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B;;;OA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E,CAAC,IAAI,EAAE,cAAc,GAAG,aAAa,CAAC;IACtC,+EAA+E;IAC/E,CAAC,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,CAAC;IAC9C,6EAA6E;IAC7E,CAAC,IAAI,EAAE,gBAAgB,GAAG,eAAe,CAAC;IAC1C,gGAAgG;IAChG,CACE,IAAI,EAAE,iCAAiC,EACvC,MAAM,EAAE,MAAM,GAAG,KAAK,GACrB,mBAAmB,CAAC;IACvB,0EAA0E;IAC1E,CAAC,IAAI,EAAE,aAAa,GAAG,iBAAiB,CAAC;IACzC,iGAAiG;IACjG,CACE,IAAI,EAAE,kCAAkC,EACxC,MAAM,EAAE,MAAM,GAAG,KAAK,GACrB,2BAA2B,CAAC;IAC/B,6FAA6F;IAC7F,CACE,IAAI,EAAE,8BAA8B,EACpC,MAAM,EAAE,MAAM,GAAG,KAAK,GACrB,mBAAmB,CAAC;IACvB,8FAA8F;IAC9F,CACE,IAAI,EAAE,+BAA+B,EACrC,MAAM,EAAE,MAAM,GAAG,KAAK,GACrB,oBAAoB,CAAC;CACzB;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../../src/generated/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n RenderGetMapTileParameters,\n RenderGetMapTilesetParameters,\n RenderGetMapAttributionParameters,\n RenderGetMapStateTileParameters,\n RenderGetCopyrightCaptionParameters,\n RenderGetMapStaticImageParameters,\n RenderGetCopyrightFromBoundingBoxParameters,\n RenderGetCopyrightForTileParameters,\n RenderGetCopyrightForWorldParameters,\n} from \"./parameters.js\";\nimport {\n RenderGetMapTile200Response,\n RenderGetMapTileDefaultResponse,\n RenderGetMapTileset200Response,\n RenderGetMapTilesetDefaultResponse,\n RenderGetMapAttribution200Response,\n RenderGetMapAttributionDefaultResponse,\n RenderGetMapStateTile200Response,\n RenderGetMapStateTileDefaultResponse,\n RenderGetCopyrightCaption200Response,\n RenderGetCopyrightCaptionDefaultResponse,\n RenderGetMapStaticImage200Response,\n RenderGetMapStaticImageDefaultResponse,\n RenderGetCopyrightFromBoundingBox200Response,\n RenderGetCopyrightFromBoundingBoxDefaultResponse,\n RenderGetCopyrightForTile200Response,\n RenderGetCopyrightForTileDefaultResponse,\n RenderGetCopyrightForWorld200Response,\n RenderGetCopyrightForWorldDefaultResponse,\n} from \"./responses.js\";\nimport { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface GetMapTile {\n /**\n *\n * The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk).\n */\n get(\n options: RenderGetMapTileParameters,\n ): StreamableMethod<\n RenderGetMapTile200Response | RenderGetMapTileDefaultResponse\n >;\n}\n\nexport interface GetMapTileset {\n /**\n *\n * The Get Map Tileset API allows users to request metadata for a tileset.\n */\n get(\n options: RenderGetMapTilesetParameters,\n ): StreamableMethod<\n RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse\n >;\n}\n\nexport interface GetMapAttribution {\n /**\n *\n * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.\n */\n get(\n options: RenderGetMapAttributionParameters,\n ): StreamableMethod<\n RenderGetMapAttribution200Response | RenderGetMapAttributionDefaultResponse\n >;\n}\n\nexport interface GetMapStateTile {\n /**\n *\n * Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid).\n */\n get(\n options: RenderGetMapStateTileParameters,\n ): StreamableMethod<\n RenderGetMapStateTile200Response | RenderGetMapStateTileDefaultResponse\n >;\n}\n\nexport interface GetCopyrightCaption {\n /**\n *\n * The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions.\n *\n * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.\n */\n get(\n options?: RenderGetCopyrightCaptionParameters,\n ): StreamableMethod<\n | RenderGetCopyrightCaption200Response\n | RenderGetCopyrightCaptionDefaultResponse\n >;\n}\n\nexport interface GetMapStaticImage {\n /**\n * This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications.\n *\n * This API includes parameters for basic data visualization:\n *\n * - Labeled pushpins in multiple styles.\n * - Render circle, path, and polygon geometry types.\n *\n * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).\n * <br><br>\n * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.\n * <br><br>\n *\n * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|\n * |:----------|:----------------|:----------------|:----------------|:-------------|\n * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |\n * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |\n * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |\n * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |\n * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |\n * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |\n * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |\n * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |\n * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |\n * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |\n * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |\n * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |\n * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |\n * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |\n * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |\n * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |\n * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |\n * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |\n * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |\n * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |\n * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |\n *\n * _Note_ : Either **center** or **bbox** parameter must be supplied to the API.\n */\n get(\n options?: RenderGetMapStaticImageParameters,\n ): StreamableMethod<\n RenderGetMapStaticImage200Response | RenderGetMapStaticImageDefaultResponse\n >;\n}\n\nexport interface GetCopyrightFromBoundingBox {\n /**\n *\n * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates\n */\n get(\n options: RenderGetCopyrightFromBoundingBoxParameters,\n ): StreamableMethod<\n | RenderGetCopyrightFromBoundingBox200Response\n | RenderGetCopyrightFromBoundingBoxDefaultResponse\n >;\n}\n\nexport interface GetCopyrightForTile {\n /**\n *\n * To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid).\n *\n * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.\n */\n get(\n options: RenderGetCopyrightForTileParameters,\n ): StreamableMethod<\n | RenderGetCopyrightForTile200Response\n | RenderGetCopyrightForTileDefaultResponse\n >;\n}\n\nexport interface GetCopyrightForWorld {\n /**\n *\n * Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box.\n *\n * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.\n */\n get(\n options?: RenderGetCopyrightForWorldParameters,\n ): StreamableMethod<\n | RenderGetCopyrightForWorld200Response\n | RenderGetCopyrightForWorldDefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/map/tile' has methods for the following verbs: get */\n (path: \"/map/tile\"): GetMapTile;\n /** Resource for '/map/tileset' has methods for the following verbs: get */\n (path: \"/map/tileset\"): GetMapTileset;\n /** Resource for '/map/attribution' has methods for the following verbs: get */\n (path: \"/map/attribution\"): GetMapAttribution;\n /** Resource for '/map/statetile' has methods for the following verbs: get */\n (path: \"/map/statetile\"): GetMapStateTile;\n /** Resource for '/map/copyright/caption/\\{format\\}' has methods for the following verbs: get */\n (\n path: \"/map/copyright/caption/{format}\",\n format: \"json\" | \"xml\",\n ): GetCopyrightCaption;\n /** Resource for '/map/static' has methods for the following verbs: get */\n (path: \"/map/static\"): GetMapStaticImage;\n /** Resource for '/map/copyright/bounding/\\{format\\}' has methods for the following verbs: get */\n (\n path: \"/map/copyright/bounding/{format}\",\n format: \"json\" | \"xml\",\n ): GetCopyrightFromBoundingBox;\n /** Resource for '/map/copyright/tile/\\{format\\}' has methods for the following verbs: get */\n (\n path: \"/map/copyright/tile/{format}\",\n format: \"json\" | \"xml\",\n ): GetCopyrightForTile;\n /** Resource for '/map/copyright/world/\\{format\\}' has methods for the following verbs: get */\n (\n path: \"/map/copyright/world/{format}\",\n format: \"json\" | \"xml\",\n ): GetCopyrightForWorld;\n}\n\nexport type MapsRenderClient = Client & {\n path: Routes;\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import MapsRenderClient from "./mapsRenderClient.js";
|
|
2
|
+
export * from "./mapsRenderClient.js";
|
|
3
|
+
export * from "./parameters.js";
|
|
4
|
+
export * from "./responses.js";
|
|
5
|
+
export * from "./clientDefinitions.js";
|
|
6
|
+
export * from "./isUnexpected.js";
|
|
7
|
+
export * from "./outputModels.js";
|
|
8
|
+
export default MapsRenderClient;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAGA,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AAErD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAElC,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import MapsRenderClient from "./mapsRenderClient.js";
|
|
4
|
+
export * from "./mapsRenderClient.js";
|
|
5
|
+
export * from "./parameters.js";
|
|
6
|
+
export * from "./responses.js";
|
|
7
|
+
export * from "./clientDefinitions.js";
|
|
8
|
+
export * from "./isUnexpected.js";
|
|
9
|
+
export * from "./outputModels.js";
|
|
10
|
+
export default MapsRenderClient;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AAErD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAElC,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport MapsRenderClient from \"./mapsRenderClient.js\";\n\nexport * from \"./mapsRenderClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./outputModels.js\";\n\nexport default MapsRenderClient;\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RenderGetMapTile200Response, RenderGetMapTileDefaultResponse, RenderGetMapTileset200Response, RenderGetMapTilesetDefaultResponse, RenderGetMapAttribution200Response, RenderGetMapAttributionDefaultResponse, RenderGetMapStateTile200Response, RenderGetMapStateTileDefaultResponse, RenderGetCopyrightCaption200Response, RenderGetCopyrightCaptionDefaultResponse, RenderGetMapStaticImage200Response, RenderGetMapStaticImageDefaultResponse, RenderGetCopyrightFromBoundingBox200Response, RenderGetCopyrightFromBoundingBoxDefaultResponse, RenderGetCopyrightForTile200Response, RenderGetCopyrightForTileDefaultResponse, RenderGetCopyrightForWorld200Response, RenderGetCopyrightForWorldDefaultResponse } from "./responses.js";
|
|
2
|
+
export declare function isUnexpected(response: RenderGetMapTile200Response | RenderGetMapTileDefaultResponse): response is RenderGetMapTileDefaultResponse;
|
|
3
|
+
export declare function isUnexpected(response: RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse): response is RenderGetMapTilesetDefaultResponse;
|
|
4
|
+
export declare function isUnexpected(response: RenderGetMapAttribution200Response | RenderGetMapAttributionDefaultResponse): response is RenderGetMapAttributionDefaultResponse;
|
|
5
|
+
export declare function isUnexpected(response: RenderGetMapStateTile200Response | RenderGetMapStateTileDefaultResponse): response is RenderGetMapStateTileDefaultResponse;
|
|
6
|
+
export declare function isUnexpected(response: RenderGetCopyrightCaption200Response | RenderGetCopyrightCaptionDefaultResponse): response is RenderGetCopyrightCaptionDefaultResponse;
|
|
7
|
+
export declare function isUnexpected(response: RenderGetMapStaticImage200Response | RenderGetMapStaticImageDefaultResponse): response is RenderGetMapStaticImageDefaultResponse;
|
|
8
|
+
export declare function isUnexpected(response: RenderGetCopyrightFromBoundingBox200Response | RenderGetCopyrightFromBoundingBoxDefaultResponse): response is RenderGetCopyrightFromBoundingBoxDefaultResponse;
|
|
9
|
+
export declare function isUnexpected(response: RenderGetCopyrightForTile200Response | RenderGetCopyrightForTileDefaultResponse): response is RenderGetCopyrightForTileDefaultResponse;
|
|
10
|
+
export declare function isUnexpected(response: RenderGetCopyrightForWorld200Response | RenderGetCopyrightForWorldDefaultResponse): response is RenderGetCopyrightForWorldDefaultResponse;
|
|
11
|
+
//# sourceMappingURL=isUnexpected.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../../src/generated/isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EAClC,sCAAsC,EACtC,gCAAgC,EAChC,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,gDAAgD,EAChD,oCAAoC,EACpC,wCAAwC,EACxC,qCAAqC,EACrC,yCAAyC,EAC1C,MAAM,gBAAgB,CAAC;AAcxB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,2BAA2B,GAAG,+BAA+B,GACtE,QAAQ,IAAI,+BAA+B,CAAC;AAC/C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,8BAA8B,GAAG,kCAAkC,GAC5E,QAAQ,IAAI,kCAAkC,CAAC;AAClD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,kCAAkC,GAClC,sCAAsC,GACzC,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,gCAAgC,GAChC,oCAAoC,GACvC,QAAQ,IAAI,oCAAoC,CAAC;AACpD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,oCAAoC,GACpC,wCAAwC,GAC3C,QAAQ,IAAI,wCAAwC,CAAC;AACxD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,kCAAkC,GAClC,sCAAsC,GACzC,QAAQ,IAAI,sCAAsC,CAAC;AACtD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,4CAA4C,GAC5C,gDAAgD,GACnD,QAAQ,IAAI,gDAAgD,CAAC;AAChE,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,oCAAoC,GACpC,wCAAwC,GAC3C,QAAQ,IAAI,wCAAwC,CAAC;AACxD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,qCAAqC,GACrC,yCAAyC,GAC5C,QAAQ,IAAI,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
const responseMap = {
|
|
4
|
+
"GET /map/tile": ["200"],
|
|
5
|
+
"GET /map/tileset": ["200"],
|
|
6
|
+
"GET /map/attribution": ["200"],
|
|
7
|
+
"GET /map/statetile": ["200"],
|
|
8
|
+
"GET /map/copyright/caption/{format}": ["200"],
|
|
9
|
+
"GET /map/static": ["200"],
|
|
10
|
+
"GET /map/copyright/bounding/{format}": ["200"],
|
|
11
|
+
"GET /map/copyright/tile/{format}": ["200"],
|
|
12
|
+
"GET /map/copyright/world/{format}": ["200"],
|
|
13
|
+
};
|
|
14
|
+
export function isUnexpected(response) {
|
|
15
|
+
const lroOriginal = response.headers["x-ms-original-url"];
|
|
16
|
+
const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
|
|
17
|
+
const method = response.request.method;
|
|
18
|
+
let pathDetails = responseMap[`${method} ${url.pathname}`];
|
|
19
|
+
if (!pathDetails) {
|
|
20
|
+
pathDetails = getParametrizedPathSuccess(method, url.pathname);
|
|
21
|
+
}
|
|
22
|
+
return !pathDetails.includes(response.status);
|
|
23
|
+
}
|
|
24
|
+
function getParametrizedPathSuccess(method, path) {
|
|
25
|
+
var _a, _b, _c, _d;
|
|
26
|
+
const pathParts = path.split("/");
|
|
27
|
+
// Traverse list to match the longest candidate
|
|
28
|
+
// matchedLen: the length of candidate path
|
|
29
|
+
// matchedValue: the matched status code array
|
|
30
|
+
let matchedLen = -1, matchedValue = [];
|
|
31
|
+
// Iterate the responseMap to find a match
|
|
32
|
+
for (const [key, value] of Object.entries(responseMap)) {
|
|
33
|
+
// Extracting the path from the map key which is in format
|
|
34
|
+
// GET /path/foo
|
|
35
|
+
if (!key.startsWith(method)) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
const candidatePath = getPathFromMapKey(key);
|
|
39
|
+
// Get each part of the url path
|
|
40
|
+
const candidateParts = candidatePath.split("/");
|
|
41
|
+
// track if we have found a match to return the values found.
|
|
42
|
+
let found = true;
|
|
43
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
44
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) &&
|
|
45
|
+
((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
46
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
47
|
+
// If the current part of the candidate is a "template" part
|
|
48
|
+
// Try to use the suffix of pattern to match the path
|
|
49
|
+
// {guid} ==> $
|
|
50
|
+
// {guid}:export ==> :export$
|
|
51
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
52
|
+
if (!isMatched) {
|
|
53
|
+
found = false;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
// If the candidate part is not a template and
|
|
59
|
+
// the parts don't match mark the candidate as not found
|
|
60
|
+
// to move on with the next candidate path.
|
|
61
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
62
|
+
found = false;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
// We finished evaluating the current candidate parts
|
|
67
|
+
// Update the matched value if and only if we found the longer pattern
|
|
68
|
+
if (found && candidatePath.length > matchedLen) {
|
|
69
|
+
matchedLen = candidatePath.length;
|
|
70
|
+
matchedValue = value;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return matchedValue;
|
|
74
|
+
}
|
|
75
|
+
function getPathFromMapKey(mapKey) {
|
|
76
|
+
const pathStart = mapKey.indexOf("/");
|
|
77
|
+
return mapKey.slice(pathStart);
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=isUnexpected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../../src/generated/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuBlC,MAAM,WAAW,GAA6B;IAC5C,eAAe,EAAE,CAAC,KAAK,CAAC;IACxB,kBAAkB,EAAE,CAAC,KAAK,CAAC;IAC3B,sBAAsB,EAAE,CAAC,KAAK,CAAC;IAC/B,oBAAoB,EAAE,CAAC,KAAK,CAAC;IAC7B,qCAAqC,EAAE,CAAC,KAAK,CAAC;IAC9C,iBAAiB,EAAE,CAAC,KAAK,CAAC;IAC1B,sCAAsC,EAAE,CAAC,KAAK,CAAC;IAC/C,kCAAkC,EAAE,CAAC,KAAK,CAAC;IAC3C,mCAAmC,EAAE,CAAC,KAAK,CAAC;CAC7C,CAAC;AA2CF,MAAM,UAAU,YAAY,C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AAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n RenderGetMapTile200Response,\n RenderGetMapTileDefaultResponse,\n RenderGetMapTileset200Response,\n RenderGetMapTilesetDefaultResponse,\n RenderGetMapAttribution200Response,\n RenderGetMapAttributionDefaultResponse,\n RenderGetMapStateTile200Response,\n RenderGetMapStateTileDefaultResponse,\n RenderGetCopyrightCaption200Response,\n RenderGetCopyrightCaptionDefaultResponse,\n RenderGetMapStaticImage200Response,\n RenderGetMapStaticImageDefaultResponse,\n RenderGetCopyrightFromBoundingBox200Response,\n RenderGetCopyrightFromBoundingBoxDefaultResponse,\n RenderGetCopyrightForTile200Response,\n RenderGetCopyrightForTileDefaultResponse,\n RenderGetCopyrightForWorld200Response,\n RenderGetCopyrightForWorldDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /map/tile\": [\"200\"],\n \"GET /map/tileset\": [\"200\"],\n \"GET /map/attribution\": [\"200\"],\n \"GET /map/statetile\": [\"200\"],\n \"GET /map/copyright/caption/{format}\": [\"200\"],\n \"GET /map/static\": [\"200\"],\n \"GET /map/copyright/bounding/{format}\": [\"200\"],\n \"GET /map/copyright/tile/{format}\": [\"200\"],\n \"GET /map/copyright/world/{format}\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: RenderGetMapTile200Response | RenderGetMapTileDefaultResponse,\n): response is RenderGetMapTileDefaultResponse;\nexport function isUnexpected(\n response: RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse,\n): response is RenderGetMapTilesetDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetMapAttribution200Response\n | RenderGetMapAttributionDefaultResponse,\n): response is RenderGetMapAttributionDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetMapStateTile200Response\n | RenderGetMapStateTileDefaultResponse,\n): response is RenderGetMapStateTileDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetCopyrightCaption200Response\n | RenderGetCopyrightCaptionDefaultResponse,\n): response is RenderGetCopyrightCaptionDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetMapStaticImage200Response\n | RenderGetMapStaticImageDefaultResponse,\n): response is RenderGetMapStaticImageDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetCopyrightFromBoundingBox200Response\n | RenderGetCopyrightFromBoundingBoxDefaultResponse,\n): response is RenderGetCopyrightFromBoundingBoxDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetCopyrightForTile200Response\n | RenderGetCopyrightForTileDefaultResponse,\n): response is RenderGetCopyrightForTileDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetCopyrightForWorld200Response\n | RenderGetCopyrightForWorldDefaultResponse,\n): response is RenderGetCopyrightForWorldDefaultResponse;\nexport function isUnexpected(\n response:\n | RenderGetMapTile200Response\n | RenderGetMapTileDefaultResponse\n | RenderGetMapTileset200Response\n | RenderGetMapTilesetDefaultResponse\n | RenderGetMapAttribution200Response\n | RenderGetMapAttributionDefaultResponse\n | RenderGetMapStateTile200Response\n | RenderGetMapStateTileDefaultResponse\n | RenderGetCopyrightCaption200Response\n | RenderGetCopyrightCaptionDefaultResponse\n | RenderGetMapStaticImage200Response\n | RenderGetMapStaticImageDefaultResponse\n | RenderGetCopyrightFromBoundingBox200Response\n | RenderGetCopyrightFromBoundingBoxDefaultResponse\n | RenderGetCopyrightForTile200Response\n | RenderGetCopyrightForTileDefaultResponse\n | RenderGetCopyrightForWorld200Response\n | RenderGetCopyrightForWorldDefaultResponse,\n): response is\n | RenderGetMapTileDefaultResponse\n | RenderGetMapTilesetDefaultResponse\n | RenderGetMapAttributionDefaultResponse\n | RenderGetMapStateTileDefaultResponse\n | RenderGetCopyrightCaptionDefaultResponse\n | RenderGetMapStaticImageDefaultResponse\n | RenderGetCopyrightFromBoundingBoxDefaultResponse\n | RenderGetCopyrightForTileDefaultResponse\n | RenderGetCopyrightForWorldDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (\n let i = candidateParts.length - 1, j = pathParts.length - 1;\n i >= 1 && j >= 1;\n i--, j--\n ) {\n if (\n candidateParts[i]?.startsWith(\"{\") &&\n candidateParts[i]?.indexOf(\"}\") !== -1\n ) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(\n `${candidateParts[i]?.slice(start, end)}`,\n ).test(pathParts[j] || \"\");\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"maps-render\");\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import { KeyCredential } from "@azure/core-auth";
|
|
3
|
+
import { MapsRenderClient } from "./clientDefinitions.js";
|
|
4
|
+
/** The optional parameters for the client */
|
|
5
|
+
export interface MapsRenderClientOptions extends ClientOptions {
|
|
6
|
+
/** The api version option of the client */
|
|
7
|
+
apiVersion?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of `MapsRenderClient`
|
|
11
|
+
* @param credentials - uniquely identify client credential
|
|
12
|
+
* @param options - the parameter for all optional parameters
|
|
13
|
+
*/
|
|
14
|
+
export default function createClient(credentials: KeyCredential, { apiVersion, ...options }?: MapsRenderClientOptions): MapsRenderClient;
|
|
15
|
+
//# sourceMappingURL=mapsRenderClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapsRenderClient.d.ts","sourceRoot":"","sources":["../../../src/generated/mapsRenderClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,6CAA6C;AAC7C,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,aAAa,EAC1B,EAAE,UAAyB,EAAE,GAAG,OAAO,EAAE,GAAE,uBAA4B,GACtE,gBAAgB,CA6ClB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { __rest } from "tslib";
|
|
4
|
+
import { getClient } from "@azure-rest/core-client";
|
|
5
|
+
import { logger } from "./logger.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialize a new instance of `MapsRenderClient`
|
|
8
|
+
* @param credentials - uniquely identify client credential
|
|
9
|
+
* @param options - the parameter for all optional parameters
|
|
10
|
+
*/
|
|
11
|
+
export default function createClient(credentials, _a = {}) {
|
|
12
|
+
var _b, _c, _d, _e, _f, _g;
|
|
13
|
+
var { apiVersion = "2024-04-01" } = _a, options = __rest(_a, ["apiVersion"]);
|
|
14
|
+
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `https://atlas.microsoft.com`;
|
|
15
|
+
const userAgentInfo = `azsdk-js-maps-render-rest/2.0.0-beta.1`;
|
|
16
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
17
|
+
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
18
|
+
: `${userAgentInfo}`;
|
|
19
|
+
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
|
20
|
+
userAgentPrefix,
|
|
21
|
+
}, loggingOptions: {
|
|
22
|
+
logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info,
|
|
23
|
+
}, credentials: {
|
|
24
|
+
apiKeyHeaderName: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.apiKeyHeaderName) !== null && _g !== void 0 ? _g : "subscription-key",
|
|
25
|
+
} });
|
|
26
|
+
const client = getClient(endpointUrl, credentials, options);
|
|
27
|
+
client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
28
|
+
client.pipeline.addPolicy({
|
|
29
|
+
name: "ClientApiVersionPolicy",
|
|
30
|
+
sendRequest: (req, next) => {
|
|
31
|
+
// Use the apiVersion defined in request url directly
|
|
32
|
+
// Append one if there is no apiVersion and we have one at client options
|
|
33
|
+
const url = new URL(req.url);
|
|
34
|
+
if (!url.searchParams.get("api-version") && apiVersion) {
|
|
35
|
+
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
36
|
+
}
|
|
37
|
+
return next(req);
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
return client;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=mapsRenderClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapsRenderClient.js","sourceRoot":"","sources":["../../../src/generated/mapsRenderClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,SAAS,EAAiB,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;GAI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,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport { KeyCredential } from \"@azure/core-auth\";\nimport { MapsRenderClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface MapsRenderClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `MapsRenderClient`\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n credentials: KeyCredential,\n { apiVersion = \"2024-04-01\", ...options }: MapsRenderClientOptions = {},\n): MapsRenderClient {\n const endpointUrl =\n options.endpoint ?? options.baseUrl ?? `https://atlas.microsoft.com`;\n const userAgentInfo = `azsdk-js-maps-render-rest/2.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n apiKeyHeaderName:\n options.credentials?.apiKeyHeaderName ?? \"subscription-key\",\n },\n };\n const client = getClient(\n endpointUrl,\n credentials,\n options,\n ) as MapsRenderClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
2
|
+
export interface ErrorResponseOutput {
|
|
3
|
+
/** The error object. */
|
|
4
|
+
error?: ErrorDetailOutput;
|
|
5
|
+
}
|
|
6
|
+
/** The error detail. */
|
|
7
|
+
export interface ErrorDetailOutput {
|
|
8
|
+
/** The error code. */
|
|
9
|
+
readonly code?: string;
|
|
10
|
+
/** The error message. */
|
|
11
|
+
readonly message?: string;
|
|
12
|
+
/** The error target. */
|
|
13
|
+
readonly target?: string;
|
|
14
|
+
/** The error details. */
|
|
15
|
+
readonly details?: Array<ErrorDetailOutput>;
|
|
16
|
+
/** The error additional info. */
|
|
17
|
+
readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
|
|
18
|
+
}
|
|
19
|
+
/** The resource management error additional info. */
|
|
20
|
+
export interface ErrorAdditionalInfoOutput {
|
|
21
|
+
/** The additional info type. */
|
|
22
|
+
readonly type?: string;
|
|
23
|
+
/** The additional info. */
|
|
24
|
+
readonly info?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
/** Metadata for a tileset in the TileJSON format. */
|
|
27
|
+
export interface MapTilesetOutput {
|
|
28
|
+
/** Describes the version of the TileJSON spec that is implemented by this JSON object. */
|
|
29
|
+
tilejson: string;
|
|
30
|
+
/** A name describing the tileset. The name can contain any legal character. Implementations SHOULD NOT interpret the name as HTML. */
|
|
31
|
+
name?: string;
|
|
32
|
+
/** Text description of the tileset. The description can contain any legal character. Implementations SHOULD NOT interpret the description as HTML. */
|
|
33
|
+
description?: string;
|
|
34
|
+
/** A semver.org style version number for the tiles contained within the tileset. When changes across tiles are introduced, the minor version MUST change. */
|
|
35
|
+
version?: string;
|
|
36
|
+
/** Copyright attribution to be displayed on the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. */
|
|
37
|
+
attribution?: string;
|
|
38
|
+
/** A mustache template to be used to format data from grids for interaction. */
|
|
39
|
+
template?: string;
|
|
40
|
+
/** A legend to be displayed with the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. */
|
|
41
|
+
legend?: string;
|
|
42
|
+
/** Default: "xyz". Either "xyz" or "tms". Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. */
|
|
43
|
+
scheme?: string;
|
|
44
|
+
/** An array of tile endpoints. If multiple endpoints are specified, clients may use any combination of endpoints. All endpoints MUST return the same content for the same URL. The array MUST contain at least one endpoint. */
|
|
45
|
+
tiles: Array<string>;
|
|
46
|
+
/** An array of interactivity endpoints. */
|
|
47
|
+
grids?: Array<string>;
|
|
48
|
+
/** An array of data files in GeoJSON format. */
|
|
49
|
+
data?: Array<string>;
|
|
50
|
+
/** The minimum zoom level. */
|
|
51
|
+
minzoom?: number;
|
|
52
|
+
/** The maximum zoom level. */
|
|
53
|
+
maxzoom?: number;
|
|
54
|
+
/** The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, in the order left, bottom, right, top. Values may be integers or floating point numbers. */
|
|
55
|
+
bounds?: Array<number>;
|
|
56
|
+
/** The default location of the tileset in the form [longitude, latitude, zoom]. The zoom level MUST be between minzoom and maxzoom. Implementations can use this value to set the default location. */
|
|
57
|
+
center?: Array<number>;
|
|
58
|
+
}
|
|
59
|
+
/** Copyright attribution for the requested section of a tileset. */
|
|
60
|
+
export interface MapAttributionOutput {
|
|
61
|
+
/** A list of copyright strings. */
|
|
62
|
+
copyrights: Array<string>;
|
|
63
|
+
}
|
|
64
|
+
/** This object is returned from a successful copyright call */
|
|
65
|
+
export interface CopyrightCaptionOutput {
|
|
66
|
+
/** Format Version property */
|
|
67
|
+
readonly formatVersion?: string;
|
|
68
|
+
/** Copyrights Caption property */
|
|
69
|
+
readonly copyrightsCaption: string;
|
|
70
|
+
}
|
|
71
|
+
/** This object is returned from a successful copyright request */
|
|
72
|
+
export interface CopyrightOutput {
|
|
73
|
+
/** Format Version property */
|
|
74
|
+
readonly formatVersion?: string;
|
|
75
|
+
/** General Copyrights array */
|
|
76
|
+
readonly generalCopyrights?: Array<string>;
|
|
77
|
+
/** Regions array */
|
|
78
|
+
readonly regions?: Array<RegionCopyrightsOutput>;
|
|
79
|
+
}
|
|
80
|
+
export interface RegionCopyrightsOutput {
|
|
81
|
+
/** Copyrights array */
|
|
82
|
+
readonly copyrights: Array<string>;
|
|
83
|
+
/** Country property */
|
|
84
|
+
readonly country: RegionCopyrightsCountryOutput;
|
|
85
|
+
}
|
|
86
|
+
/** Country property */
|
|
87
|
+
export interface RegionCopyrightsCountryOutput {
|
|
88
|
+
/** ISO3 property */
|
|
89
|
+
readonly ISO3: string;
|
|
90
|
+
/** Label property */
|
|
91
|
+
readonly label: string;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=outputModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAGA,qKAAqK;AACrK,MAAM,WAAW,mBAAmB;IAClC,wBAAwB;IACxB,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,wBAAwB;AACxB,MAAM,WAAW,iBAAiB;IAChC,sBAAsB;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB;IAC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MAAM,CAAC;IACjB,qQAAqQ;IACrQ,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,uMAAuM;IACvM,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,oEAAoE;AACpE,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,+DAA+D;AAC/D,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,kCAAkC;IAClC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC;AAED,kEAAkE;AAClE,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,+BAA+B;IAC/B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C,oBAAoB;IACpB,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB;IACrC,uBAAuB;IACvB,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,uBAAuB;IACvB,QAAQ,CAAC,OAAO,EAAE,6BAA6B,CAAC;CACjD;AAED,uBAAuB;AACvB,MAAM,WAAW,6BAA6B;IAC5C,oBAAoB;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponseOutput {\n /** The error object. */\n error?: ErrorDetailOutput;\n}\n\n/** The error detail. */\nexport interface ErrorDetailOutput {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: Array<ErrorDetailOutput>;\n /** The error additional info. */\n readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfoOutput {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, unknown>;\n}\n\n/** Metadata for a tileset in the TileJSON format. */\nexport interface MapTilesetOutput {\n /** Describes the version of the TileJSON spec that is implemented by this JSON object. */\n tilejson: string;\n /** A name describing the tileset. The name can contain any legal character. Implementations SHOULD NOT interpret the name as HTML. */\n name?: string;\n /** Text description of the tileset. The description can contain any legal character. Implementations SHOULD NOT interpret the description as HTML. */\n description?: string;\n /** A semver.org style version number for the tiles contained within the tileset. When changes across tiles are introduced, the minor version MUST change. */\n version?: string;\n /** Copyright attribution to be displayed on the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. */\n attribution?: string;\n /** A mustache template to be used to format data from grids for interaction. */\n template?: string;\n /** A legend to be displayed with the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. */\n legend?: string;\n /** Default: \"xyz\". Either \"xyz\" or \"tms\". Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. */\n scheme?: string;\n /** An array of tile endpoints. If multiple endpoints are specified, clients may use any combination of endpoints. All endpoints MUST return the same content for the same URL. The array MUST contain at least one endpoint. */\n tiles: Array<string>;\n /** An array of interactivity endpoints. */\n grids?: Array<string>;\n /** An array of data files in GeoJSON format. */\n data?: Array<string>;\n /** The minimum zoom level. */\n minzoom?: number;\n /** The maximum zoom level. */\n maxzoom?: number;\n /** The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, in the order left, bottom, right, top. Values may be integers or floating point numbers. */\n bounds?: Array<number>;\n /** The default location of the tileset in the form [longitude, latitude, zoom]. The zoom level MUST be between minzoom and maxzoom. Implementations can use this value to set the default location. */\n center?: Array<number>;\n}\n\n/** Copyright attribution for the requested section of a tileset. */\nexport interface MapAttributionOutput {\n /** A list of copyright strings. */\n copyrights: Array<string>;\n}\n\n/** This object is returned from a successful copyright call */\nexport interface CopyrightCaptionOutput {\n /** Format Version property */\n readonly formatVersion?: string;\n /** Copyrights Caption property */\n readonly copyrightsCaption: string;\n}\n\n/** This object is returned from a successful copyright request */\nexport interface CopyrightOutput {\n /** Format Version property */\n readonly formatVersion?: string;\n /** General Copyrights array */\n readonly generalCopyrights?: Array<string>;\n /** Regions array */\n readonly regions?: Array<RegionCopyrightsOutput>;\n}\n\nexport interface RegionCopyrightsOutput {\n /** Copyrights array */\n readonly copyrights: Array<string>;\n /** Country property */\n readonly country: RegionCopyrightsCountryOutput;\n}\n\n/** Country property */\nexport interface RegionCopyrightsCountryOutput {\n /** ISO3 property */\n readonly ISO3: string;\n /** Label property */\n readonly label: string;\n}\n"]}
|