@azure/arm-maps 3.1.0-beta.1 → 3.1.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +5 -4
  2. package/README.md +1 -1
  3. package/dist/index.js +185 -54
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/azureMapsManagementClient.d.ts +2 -0
  8. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
  9. package/dist-esm/src/azureMapsManagementClient.js +49 -18
  10. package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
  11. package/dist-esm/src/index.d.ts +1 -0
  12. package/dist-esm/src/index.d.ts.map +1 -1
  13. package/dist-esm/src/index.js +1 -0
  14. package/dist-esm/src/index.js.map +1 -1
  15. package/dist-esm/src/models/index.d.ts +19 -6
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/index.js +13 -0
  18. package/dist-esm/src/models/index.js.map +1 -1
  19. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  20. package/dist-esm/src/operations/accounts.js +37 -14
  21. package/dist-esm/src/operations/accounts.js.map +1 -1
  22. package/dist-esm/src/operations/creators.d.ts.map +1 -1
  23. package/dist-esm/src/operations/creators.js +19 -7
  24. package/dist-esm/src/operations/creators.js.map +1 -1
  25. package/dist-esm/src/operations/maps.d.ts.map +1 -1
  26. package/dist-esm/src/operations/maps.js +37 -14
  27. package/dist-esm/src/operations/maps.js.map +1 -1
  28. package/dist-esm/src/pagingHelper.d.ts +13 -0
  29. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  30. package/dist-esm/src/pagingHelper.js +32 -0
  31. package/dist-esm/src/pagingHelper.js.map +1 -0
  32. package/dist-esm/test/sampleTest.js +11 -13
  33. package/dist-esm/test/sampleTest.js.map +1 -1
  34. package/package.json +15 -11
  35. package/review/arm-maps.api.md +13 -23
  36. package/src/azureMapsManagementClient.ts +60 -20
  37. package/src/index.ts +1 -0
  38. package/src/models/index.ts +19 -6
  39. package/src/operations/accounts.ts +46 -17
  40. package/src/operations/creators.ts +26 -12
  41. package/src/operations/maps.ts +41 -16
  42. package/src/pagingHelper.ts +39 -0
  43. package/types/arm-maps.d.ts +30 -6
  44. package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Release History
2
2
 
3
- ## 3.1.0-beta.1 (2022-04-25)
3
+ ## 3.1.0-beta.2 (2022-11-29)
4
4
 
5
5
  **Features**
6
6
 
@@ -10,9 +10,12 @@
10
10
  - Added Interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties
11
11
  - Added Interface CorsRule
12
12
  - Added Interface CorsRules
13
+ - Added Interface Creator
13
14
  - Added Interface LinkedResource
14
15
  - Added Interface ManagedServiceIdentity
16
+ - Added Interface MapsAccount
15
17
  - Added Interface MapsAccountSasToken
18
+ - Added Interface TrackedResource
16
19
  - Added Type Alias AccountsListSasResponse
17
20
  - Added Type Alias ResourceIdentityType
18
21
  - Added Type Alias SigningKey
@@ -23,10 +26,8 @@
23
26
  - Interface MapsAccountUpdateParameters has a new optional parameter linkedResources
24
27
  - Interface MetricSpecification has a new optional parameter internalMetricName
25
28
  - Interface MetricSpecification has a new optional parameter sourceMdmAccount
26
- - Type Alias Creator has a new parameter systemData
27
- - Type Alias MapsAccount has a new parameter identity
28
29
  - Added Enum KnownSigningKey
29
- - Bug fix
30
+
30
31
 
31
32
  ## 3.0.0 (2022-01-19)
32
33
 
package/README.md CHANGED
@@ -13,7 +13,7 @@ Azure Maps
13
13
 
14
14
  ### Currently supported environments
15
15
 
16
- - [LTS versions of Node.js](https://nodejs.org/about/releases/)
16
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
19
  See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var tslib = require('tslib');
5
6
  var coreClient = require('@azure/core-client');
6
7
  var coreRestPipeline = require('@azure/core-rest-pipeline');
7
- var tslib = require('tslib');
8
8
 
9
9
  function _interopNamespace(e) {
10
10
  if (e && e.__esModule) return e;
@@ -27,6 +27,38 @@ function _interopNamespace(e) {
27
27
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
28
  var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
29
29
 
30
+ /*
31
+ * Copyright (c) Microsoft Corporation.
32
+ * Licensed under the MIT License.
33
+ *
34
+ * Code generated by Microsoft (R) AutoRest Code Generator.
35
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
+ */
37
+ const pageMap = new WeakMap();
38
+ /**
39
+ * Given a result page from a pageable operation, returns a
40
+ * continuation token that can be used to begin paging from
41
+ * that point later.
42
+ * @param page A result object from calling .byPage() on a paged operation.
43
+ * @returns The continuation token that can be passed into byPage().
44
+ */
45
+ function getContinuationToken(page) {
46
+ var _a;
47
+ if (typeof page !== "object" || page === null) {
48
+ return undefined;
49
+ }
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
+ }
52
+ function setContinuationToken(page, continuationToken) {
53
+ var _a;
54
+ if (typeof page !== "object" || page === null || !continuationToken) {
55
+ return;
56
+ }
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
+ pageInfo.continuationToken = continuationToken;
59
+ pageMap.set(page, pageInfo);
60
+ }
61
+
30
62
  /*
31
63
  * Copyright (c) Microsoft Corporation.
32
64
  * Licensed under the MIT License.
@@ -37,34 +69,47 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
37
69
  /** Known values of {@link Name} that the service accepts. */
38
70
  exports.KnownName = void 0;
39
71
  (function (KnownName) {
72
+ /** S0 */
40
73
  KnownName["S0"] = "S0";
74
+ /** S1 */
41
75
  KnownName["S1"] = "S1";
76
+ /** G2 */
42
77
  KnownName["G2"] = "G2";
43
78
  })(exports.KnownName || (exports.KnownName = {}));
44
79
  /** Known values of {@link Kind} that the service accepts. */
45
80
  exports.KnownKind = void 0;
46
81
  (function (KnownKind) {
82
+ /** Gen1 */
47
83
  KnownKind["Gen1"] = "Gen1";
84
+ /** Gen2 */
48
85
  KnownKind["Gen2"] = "Gen2";
49
86
  })(exports.KnownKind || (exports.KnownKind = {}));
50
87
  /** Known values of {@link CreatedByType} that the service accepts. */
51
88
  exports.KnownCreatedByType = void 0;
52
89
  (function (KnownCreatedByType) {
90
+ /** User */
53
91
  KnownCreatedByType["User"] = "User";
92
+ /** Application */
54
93
  KnownCreatedByType["Application"] = "Application";
94
+ /** ManagedIdentity */
55
95
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
96
+ /** Key */
56
97
  KnownCreatedByType["Key"] = "Key";
57
98
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
58
99
  /** Known values of {@link SigningKey} that the service accepts. */
59
100
  exports.KnownSigningKey = void 0;
60
101
  (function (KnownSigningKey) {
102
+ /** PrimaryKey */
61
103
  KnownSigningKey["PrimaryKey"] = "primaryKey";
104
+ /** SecondaryKey */
62
105
  KnownSigningKey["SecondaryKey"] = "secondaryKey";
63
106
  })(exports.KnownSigningKey || (exports.KnownSigningKey = {}));
64
107
  /** Known values of {@link KeyType} that the service accepts. */
65
108
  exports.KnownKeyType = void 0;
66
109
  (function (KnownKeyType) {
110
+ /** Primary */
67
111
  KnownKeyType["Primary"] = "primary";
112
+ /** Secondary */
68
113
  KnownKeyType["Secondary"] = "secondary";
69
114
  })(exports.KnownKeyType || (exports.KnownKeyType = {}));
70
115
 
@@ -1281,20 +1326,31 @@ class AccountsImpl {
1281
1326
  [Symbol.asyncIterator]() {
1282
1327
  return this;
1283
1328
  },
1284
- byPage: () => {
1285
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
1329
+ byPage: (settings) => {
1330
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1331
+ throw new Error("maxPageSize is not supported by this operation.");
1332
+ }
1333
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1286
1334
  }
1287
1335
  };
1288
1336
  }
1289
- listByResourceGroupPagingPage(resourceGroupName, options) {
1337
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1290
1338
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1291
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1292
- yield yield tslib.__await(result.value || []);
1293
- let continuationToken = result.nextLink;
1339
+ let result;
1340
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1341
+ if (!continuationToken) {
1342
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1343
+ let page = result.value || [];
1344
+ continuationToken = result.nextLink;
1345
+ setContinuationToken(page, continuationToken);
1346
+ yield yield tslib.__await(page);
1347
+ }
1294
1348
  while (continuationToken) {
1295
1349
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1296
1350
  continuationToken = result.nextLink;
1297
- yield yield tslib.__await(result.value || []);
1351
+ let page = result.value || [];
1352
+ setContinuationToken(page, continuationToken);
1353
+ yield yield tslib.__await(page);
1298
1354
  }
1299
1355
  });
1300
1356
  }
@@ -1329,20 +1385,31 @@ class AccountsImpl {
1329
1385
  [Symbol.asyncIterator]() {
1330
1386
  return this;
1331
1387
  },
1332
- byPage: () => {
1333
- return this.listBySubscriptionPagingPage(options);
1388
+ byPage: (settings) => {
1389
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1390
+ throw new Error("maxPageSize is not supported by this operation.");
1391
+ }
1392
+ return this.listBySubscriptionPagingPage(options, settings);
1334
1393
  }
1335
1394
  };
1336
1395
  }
1337
- listBySubscriptionPagingPage(options) {
1396
+ listBySubscriptionPagingPage(options, settings) {
1338
1397
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1339
- let result = yield tslib.__await(this._listBySubscription(options));
1340
- yield yield tslib.__await(result.value || []);
1341
- let continuationToken = result.nextLink;
1398
+ let result;
1399
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1400
+ if (!continuationToken) {
1401
+ result = yield tslib.__await(this._listBySubscription(options));
1402
+ let page = result.value || [];
1403
+ continuationToken = result.nextLink;
1404
+ setContinuationToken(page, continuationToken);
1405
+ yield yield tslib.__await(page);
1406
+ }
1342
1407
  while (continuationToken) {
1343
1408
  result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1344
1409
  continuationToken = result.nextLink;
1345
- yield yield tslib.__await(result.value || []);
1410
+ let page = result.value || [];
1411
+ setContinuationToken(page, continuationToken);
1412
+ yield yield tslib.__await(page);
1346
1413
  }
1347
1414
  });
1348
1415
  }
@@ -1743,20 +1810,31 @@ class MapsImpl {
1743
1810
  [Symbol.asyncIterator]() {
1744
1811
  return this;
1745
1812
  },
1746
- byPage: () => {
1747
- return this.listOperationsPagingPage(options);
1813
+ byPage: (settings) => {
1814
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1815
+ throw new Error("maxPageSize is not supported by this operation.");
1816
+ }
1817
+ return this.listOperationsPagingPage(options, settings);
1748
1818
  }
1749
1819
  };
1750
1820
  }
1751
- listOperationsPagingPage(options) {
1821
+ listOperationsPagingPage(options, settings) {
1752
1822
  return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
1753
- let result = yield tslib.__await(this._listOperations(options));
1754
- yield yield tslib.__await(result.value || []);
1755
- let continuationToken = result.nextLink;
1823
+ let result;
1824
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1825
+ if (!continuationToken) {
1826
+ result = yield tslib.__await(this._listOperations(options));
1827
+ let page = result.value || [];
1828
+ continuationToken = result.nextLink;
1829
+ setContinuationToken(page, continuationToken);
1830
+ yield yield tslib.__await(page);
1831
+ }
1756
1832
  while (continuationToken) {
1757
1833
  result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
1758
1834
  continuationToken = result.nextLink;
1759
- yield yield tslib.__await(result.value || []);
1835
+ let page = result.value || [];
1836
+ setContinuationToken(page, continuationToken);
1837
+ yield yield tslib.__await(page);
1760
1838
  }
1761
1839
  });
1762
1840
  }
@@ -1791,20 +1869,31 @@ class MapsImpl {
1791
1869
  [Symbol.asyncIterator]() {
1792
1870
  return this;
1793
1871
  },
1794
- byPage: () => {
1795
- return this.listSubscriptionOperationsPagingPage(options);
1872
+ byPage: (settings) => {
1873
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1874
+ throw new Error("maxPageSize is not supported by this operation.");
1875
+ }
1876
+ return this.listSubscriptionOperationsPagingPage(options, settings);
1796
1877
  }
1797
1878
  };
1798
1879
  }
1799
- listSubscriptionOperationsPagingPage(options) {
1880
+ listSubscriptionOperationsPagingPage(options, settings) {
1800
1881
  return tslib.__asyncGenerator(this, arguments, function* listSubscriptionOperationsPagingPage_1() {
1801
- let result = yield tslib.__await(this._listSubscriptionOperations(options));
1802
- yield yield tslib.__await(result.value || []);
1803
- let continuationToken = result.nextLink;
1882
+ let result;
1883
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1884
+ if (!continuationToken) {
1885
+ result = yield tslib.__await(this._listSubscriptionOperations(options));
1886
+ let page = result.value || [];
1887
+ continuationToken = result.nextLink;
1888
+ setContinuationToken(page, continuationToken);
1889
+ yield yield tslib.__await(page);
1890
+ }
1804
1891
  while (continuationToken) {
1805
1892
  result = yield tslib.__await(this._listSubscriptionOperationsNext(continuationToken, options));
1806
1893
  continuationToken = result.nextLink;
1807
- yield yield tslib.__await(result.value || []);
1894
+ let page = result.value || [];
1895
+ setContinuationToken(page, continuationToken);
1896
+ yield yield tslib.__await(page);
1808
1897
  }
1809
1898
  });
1810
1899
  }
@@ -1961,20 +2050,31 @@ class CreatorsImpl {
1961
2050
  [Symbol.asyncIterator]() {
1962
2051
  return this;
1963
2052
  },
1964
- byPage: () => {
1965
- return this.listByAccountPagingPage(resourceGroupName, accountName, options);
2053
+ byPage: (settings) => {
2054
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2055
+ throw new Error("maxPageSize is not supported by this operation.");
2056
+ }
2057
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options, settings);
1966
2058
  }
1967
2059
  };
1968
2060
  }
1969
- listByAccountPagingPage(resourceGroupName, accountName, options) {
2061
+ listByAccountPagingPage(resourceGroupName, accountName, options, settings) {
1970
2062
  return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
1971
- let result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
1972
- yield yield tslib.__await(result.value || []);
1973
- let continuationToken = result.nextLink;
2063
+ let result;
2064
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2065
+ if (!continuationToken) {
2066
+ result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
2067
+ let page = result.value || [];
2068
+ continuationToken = result.nextLink;
2069
+ setContinuationToken(page, continuationToken);
2070
+ yield yield tslib.__await(page);
2071
+ }
1974
2072
  while (continuationToken) {
1975
2073
  result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
1976
2074
  continuationToken = result.nextLink;
1977
- yield yield tslib.__await(result.value || []);
2075
+ let page = result.value || [];
2076
+ setContinuationToken(page, continuationToken);
2077
+ yield yield tslib.__await(page);
1978
2078
  }
1979
2079
  });
1980
2080
  }
@@ -2221,7 +2321,7 @@ class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
2221
2321
  * @param options The parameter options
2222
2322
  */
2223
2323
  constructor(credentials, subscriptionId, options) {
2224
- var _a, _b;
2324
+ var _a, _b, _c;
2225
2325
  if (credentials === undefined) {
2226
2326
  throw new Error("'credentials' cannot be null");
2227
2327
  }
@@ -2236,32 +2336,34 @@ class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
2236
2336
  requestContentType: "application/json; charset=utf-8",
2237
2337
  credential: credentials
2238
2338
  };
2239
- const packageDetails = `azsdk-js-arm-maps/3.1.0-beta.1`;
2339
+ const packageDetails = `azsdk-js-arm-maps/3.1.0-beta.2`;
2240
2340
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2241
2341
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2242
2342
  : `${packageDetails}`;
2243
- if (!options.credentialScopes) {
2244
- options.credentialScopes = ["https://management.azure.com/.default"];
2245
- }
2246
2343
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2247
2344
  userAgentPrefix
2248
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2345
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2249
2346
  super(optionsWithDefaults);
2347
+ let bearerTokenAuthenticationPolicyFound = false;
2250
2348
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2251
2349
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
2252
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2350
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2253
2351
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2254
- if (!bearerTokenAuthenticationPolicyFound) {
2255
- this.pipeline.removePolicy({
2256
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2257
- });
2258
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2259
- scopes: `${optionsWithDefaults.baseUri}/.default`,
2260
- challengeCallbacks: {
2261
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2262
- }
2263
- }));
2264
- }
2352
+ }
2353
+ if (!options ||
2354
+ !options.pipeline ||
2355
+ options.pipeline.getOrderedPolicies().length == 0 ||
2356
+ !bearerTokenAuthenticationPolicyFound) {
2357
+ this.pipeline.removePolicy({
2358
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2359
+ });
2360
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2361
+ credential: credentials,
2362
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
2363
+ challengeCallbacks: {
2364
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2365
+ }
2366
+ }));
2265
2367
  }
2266
2368
  // Parameter assignments
2267
2369
  this.subscriptionId = subscriptionId;
@@ -2271,8 +2373,37 @@ class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
2271
2373
  this.accounts = new AccountsImpl(this);
2272
2374
  this.maps = new MapsImpl(this);
2273
2375
  this.creators = new CreatorsImpl(this);
2376
+ this.addCustomApiVersionPolicy(options.apiVersion);
2377
+ }
2378
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2379
+ addCustomApiVersionPolicy(apiVersion) {
2380
+ if (!apiVersion) {
2381
+ return;
2382
+ }
2383
+ const apiVersionPolicy = {
2384
+ name: "CustomApiVersionPolicy",
2385
+ sendRequest(request, next) {
2386
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2387
+ const param = request.url.split("?");
2388
+ if (param.length > 1) {
2389
+ const newParams = param[1].split("&").map((item) => {
2390
+ if (item.indexOf("api-version") > -1) {
2391
+ return "api-version=" + apiVersion;
2392
+ }
2393
+ else {
2394
+ return item;
2395
+ }
2396
+ });
2397
+ request.url = param[0] + "?" + newParams.join("&");
2398
+ }
2399
+ return next(request);
2400
+ });
2401
+ }
2402
+ };
2403
+ this.pipeline.addPolicy(apiVersionPolicy);
2274
2404
  }
2275
2405
  }
2276
2406
 
2277
2407
  exports.AzureMapsManagementClient = AzureMapsManagementClient;
2408
+ exports.getContinuationToken = getContinuationToken;
2278
2409
  //# sourceMappingURL=index.js.map