@azure/arm-agrifood 1.0.0-beta.2 → 1.0.0-beta.4

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 (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/index.js +143 -47
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/agriFoodMgmtClient.d.ts.map +1 -1
  7. package/dist-esm/src/agriFoodMgmtClient.js +4 -4
  8. package/dist-esm/src/agriFoodMgmtClient.js.map +1 -1
  9. package/dist-esm/src/index.d.ts +1 -0
  10. package/dist-esm/src/index.d.ts.map +1 -1
  11. package/dist-esm/src/index.js +1 -0
  12. package/dist-esm/src/index.js.map +1 -1
  13. package/dist-esm/src/operations/extensions.d.ts.map +1 -1
  14. package/dist-esm/src/operations/extensions.js +19 -7
  15. package/dist-esm/src/operations/extensions.js.map +1 -1
  16. package/dist-esm/src/operations/farmBeatsExtensions.d.ts.map +1 -1
  17. package/dist-esm/src/operations/farmBeatsExtensions.js +19 -7
  18. package/dist-esm/src/operations/farmBeatsExtensions.js.map +1 -1
  19. package/dist-esm/src/operations/farmBeatsModels.d.ts.map +1 -1
  20. package/dist-esm/src/operations/farmBeatsModels.js +37 -14
  21. package/dist-esm/src/operations/farmBeatsModels.js.map +1 -1
  22. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  23. package/dist-esm/src/operations/operations.js +19 -7
  24. package/dist-esm/src/operations/operations.js.map +1 -1
  25. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  26. package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
  27. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  28. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  29. package/dist-esm/src/operations/privateLinkResources.js +8 -4
  30. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  31. package/dist-esm/src/pagingHelper.d.ts +13 -0
  32. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  33. package/dist-esm/src/pagingHelper.js +32 -0
  34. package/dist-esm/src/pagingHelper.js.map +1 -0
  35. package/package.json +6 -5
  36. package/review/arm-agrifood.api.md +3 -0
  37. package/src/agriFoodMgmtClient.ts +5 -3
  38. package/src/index.ts +1 -0
  39. package/src/operations/extensions.ts +27 -13
  40. package/src/operations/farmBeatsExtensions.ts +21 -8
  41. package/src/operations/farmBeatsModels.ts +46 -17
  42. package/src/operations/operations.ts +21 -8
  43. package/src/operations/privateEndpointConnections.ts +13 -7
  44. package/src/operations/privateLinkResources.ts +11 -5
  45. package/src/pagingHelper.ts +39 -0
  46. package/types/arm-agrifood.d.ts +9 -0
  47. package/types/tsdoc-metadata.json +1 -1
@@ -66,7 +66,7 @@ export class AgriFoodMgmtClient extends coreClient.ServiceClient {
66
66
  credential: credentials
67
67
  };
68
68
 
69
- const packageDetails = `azsdk-js-arm-agrifood/1.0.0-beta.2`;
69
+ const packageDetails = `azsdk-js-arm-agrifood/1.0.0-beta.4`;
70
70
  const userAgentPrefix =
71
71
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
72
72
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -78,7 +78,7 @@ export class AgriFoodMgmtClient extends coreClient.ServiceClient {
78
78
  userAgentOptions: {
79
79
  userAgentPrefix
80
80
  },
81
- baseUri:
81
+ endpoint:
82
82
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
83
83
  };
84
84
  super(optionsWithDefaults);
@@ -104,7 +104,9 @@ export class AgriFoodMgmtClient extends coreClient.ServiceClient {
104
104
  this.pipeline.addPolicy(
105
105
  coreRestPipeline.bearerTokenAuthenticationPolicy({
106
106
  credential: credentials,
107
- scopes: `${optionsWithDefaults.credentialScopes}`,
107
+ scopes:
108
+ optionsWithDefaults.credentialScopes ??
109
+ `${optionsWithDefaults.endpoint}/.default`,
108
110
  challengeCallbacks: {
109
111
  authorizeRequestOnChallenge:
110
112
  coreClient.authorizeRequestOnClaimChallenge
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
10
11
  export * from "./models";
11
12
  export { AgriFoodMgmtClient } from "./agriFoodMgmtClient";
12
13
  export * from "./operationsInterfaces";
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Extensions } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,6 +17,7 @@ import {
16
17
  Extension,
17
18
  ExtensionsListByFarmBeatsNextOptionalParams,
18
19
  ExtensionsListByFarmBeatsOptionalParams,
20
+ ExtensionsListByFarmBeatsResponse,
19
21
  ExtensionsCreateOptionalParams,
20
22
  ExtensionsCreateResponse,
21
23
  ExtensionsGetOptionalParams,
@@ -23,7 +25,6 @@ import {
23
25
  ExtensionsUpdateOptionalParams,
24
26
  ExtensionsUpdateResponse,
25
27
  ExtensionsDeleteOptionalParams,
26
- ExtensionsListByFarmBeatsResponse,
27
28
  ExtensionsListByFarmBeatsNextResponse
28
29
  } from "../models";
29
30
 
@@ -63,11 +64,15 @@ export class ExtensionsImpl implements Extensions {
63
64
  [Symbol.asyncIterator]() {
64
65
  return this;
65
66
  },
66
- byPage: () => {
67
+ byPage: (settings?: PageSettings) => {
68
+ if (settings?.maxPageSize) {
69
+ throw new Error("maxPageSize is not supported by this operation.");
70
+ }
67
71
  return this.listByFarmBeatsPagingPage(
68
72
  resourceGroupName,
69
73
  farmBeatsResourceName,
70
- options
74
+ options,
75
+ settings
71
76
  );
72
77
  }
73
78
  };
@@ -76,15 +81,22 @@ export class ExtensionsImpl implements Extensions {
76
81
  private async *listByFarmBeatsPagingPage(
77
82
  resourceGroupName: string,
78
83
  farmBeatsResourceName: string,
79
- options?: ExtensionsListByFarmBeatsOptionalParams
84
+ options?: ExtensionsListByFarmBeatsOptionalParams,
85
+ settings?: PageSettings
80
86
  ): AsyncIterableIterator<Extension[]> {
81
- let result = await this._listByFarmBeats(
82
- resourceGroupName,
83
- farmBeatsResourceName,
84
- options
85
- );
86
- yield result.value || [];
87
- let continuationToken = result.nextLink;
87
+ let result: ExtensionsListByFarmBeatsResponse;
88
+ let continuationToken = settings?.continuationToken;
89
+ if (!continuationToken) {
90
+ result = await this._listByFarmBeats(
91
+ resourceGroupName,
92
+ farmBeatsResourceName,
93
+ options
94
+ );
95
+ let page = result.value || [];
96
+ continuationToken = result.nextLink;
97
+ setContinuationToken(page, continuationToken);
98
+ yield page;
99
+ }
88
100
  while (continuationToken) {
89
101
  result = await this._listByFarmBeatsNext(
90
102
  resourceGroupName,
@@ -93,7 +105,9 @@ export class ExtensionsImpl implements Extensions {
93
105
  options
94
106
  );
95
107
  continuationToken = result.nextLink;
96
- yield result.value || [];
108
+ let page = result.value || [];
109
+ setContinuationToken(page, continuationToken);
110
+ yield page;
97
111
  }
98
112
  }
99
113
 
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { FarmBeatsExtensions } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -50,22 +51,34 @@ export class FarmBeatsExtensionsImpl implements FarmBeatsExtensions {
50
51
  [Symbol.asyncIterator]() {
51
52
  return this;
52
53
  },
53
- byPage: () => {
54
- return this.listPagingPage(options);
54
+ byPage: (settings?: PageSettings) => {
55
+ if (settings?.maxPageSize) {
56
+ throw new Error("maxPageSize is not supported by this operation.");
57
+ }
58
+ return this.listPagingPage(options, settings);
55
59
  }
56
60
  };
57
61
  }
58
62
 
59
63
  private async *listPagingPage(
60
- options?: FarmBeatsExtensionsListOptionalParams
64
+ options?: FarmBeatsExtensionsListOptionalParams,
65
+ settings?: PageSettings
61
66
  ): AsyncIterableIterator<FarmBeatsExtension[]> {
62
- let result = await this._list(options);
63
- yield result.value || [];
64
- let continuationToken = result.nextLink;
67
+ let result: FarmBeatsExtensionsListResponse;
68
+ let continuationToken = settings?.continuationToken;
69
+ if (!continuationToken) {
70
+ result = await this._list(options);
71
+ let page = result.value || [];
72
+ continuationToken = result.nextLink;
73
+ setContinuationToken(page, continuationToken);
74
+ yield page;
75
+ }
65
76
  while (continuationToken) {
66
77
  result = await this._listNext(continuationToken, options);
67
78
  continuationToken = result.nextLink;
68
- yield result.value || [];
79
+ let page = result.value || [];
80
+ setContinuationToken(page, continuationToken);
81
+ yield page;
69
82
  }
70
83
  }
71
84
 
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { FarmBeatsModels } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -18,8 +19,10 @@ import {
18
19
  FarmBeats,
19
20
  FarmBeatsModelsListBySubscriptionNextOptionalParams,
20
21
  FarmBeatsModelsListBySubscriptionOptionalParams,
22
+ FarmBeatsModelsListBySubscriptionResponse,
21
23
  FarmBeatsModelsListByResourceGroupNextOptionalParams,
22
24
  FarmBeatsModelsListByResourceGroupOptionalParams,
25
+ FarmBeatsModelsListByResourceGroupResponse,
23
26
  FarmBeatsModelsGetOptionalParams,
24
27
  FarmBeatsModelsGetResponse,
25
28
  FarmBeatsModelsCreateOrUpdateOptionalParams,
@@ -28,8 +31,6 @@ import {
28
31
  FarmBeatsModelsUpdateOptionalParams,
29
32
  FarmBeatsModelsUpdateResponse,
30
33
  FarmBeatsModelsDeleteOptionalParams,
31
- FarmBeatsModelsListBySubscriptionResponse,
32
- FarmBeatsModelsListByResourceGroupResponse,
33
34
  FarmBeatsModelsGetOperationResultOptionalParams,
34
35
  FarmBeatsModelsGetOperationResultResponse,
35
36
  FarmBeatsModelsListBySubscriptionNextResponse,
@@ -64,22 +65,34 @@ export class FarmBeatsModelsImpl implements FarmBeatsModels {
64
65
  [Symbol.asyncIterator]() {
65
66
  return this;
66
67
  },
67
- byPage: () => {
68
- return this.listBySubscriptionPagingPage(options);
68
+ byPage: (settings?: PageSettings) => {
69
+ if (settings?.maxPageSize) {
70
+ throw new Error("maxPageSize is not supported by this operation.");
71
+ }
72
+ return this.listBySubscriptionPagingPage(options, settings);
69
73
  }
70
74
  };
71
75
  }
72
76
 
73
77
  private async *listBySubscriptionPagingPage(
74
- options?: FarmBeatsModelsListBySubscriptionOptionalParams
78
+ options?: FarmBeatsModelsListBySubscriptionOptionalParams,
79
+ settings?: PageSettings
75
80
  ): AsyncIterableIterator<FarmBeats[]> {
76
- let result = await this._listBySubscription(options);
77
- yield result.value || [];
78
- let continuationToken = result.nextLink;
81
+ let result: FarmBeatsModelsListBySubscriptionResponse;
82
+ let continuationToken = settings?.continuationToken;
83
+ if (!continuationToken) {
84
+ result = await this._listBySubscription(options);
85
+ let page = result.value || [];
86
+ continuationToken = result.nextLink;
87
+ setContinuationToken(page, continuationToken);
88
+ yield page;
89
+ }
79
90
  while (continuationToken) {
80
91
  result = await this._listBySubscriptionNext(continuationToken, options);
81
92
  continuationToken = result.nextLink;
82
- yield result.value || [];
93
+ let page = result.value || [];
94
+ setContinuationToken(page, continuationToken);
95
+ yield page;
83
96
  }
84
97
  }
85
98
 
@@ -108,19 +121,33 @@ export class FarmBeatsModelsImpl implements FarmBeatsModels {
108
121
  [Symbol.asyncIterator]() {
109
122
  return this;
110
123
  },
111
- byPage: () => {
112
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
124
+ byPage: (settings?: PageSettings) => {
125
+ if (settings?.maxPageSize) {
126
+ throw new Error("maxPageSize is not supported by this operation.");
127
+ }
128
+ return this.listByResourceGroupPagingPage(
129
+ resourceGroupName,
130
+ options,
131
+ settings
132
+ );
113
133
  }
114
134
  };
115
135
  }
116
136
 
117
137
  private async *listByResourceGroupPagingPage(
118
138
  resourceGroupName: string,
119
- options?: FarmBeatsModelsListByResourceGroupOptionalParams
139
+ options?: FarmBeatsModelsListByResourceGroupOptionalParams,
140
+ settings?: PageSettings
120
141
  ): AsyncIterableIterator<FarmBeats[]> {
121
- let result = await this._listByResourceGroup(resourceGroupName, options);
122
- yield result.value || [];
123
- let continuationToken = result.nextLink;
142
+ let result: FarmBeatsModelsListByResourceGroupResponse;
143
+ let continuationToken = settings?.continuationToken;
144
+ if (!continuationToken) {
145
+ result = await this._listByResourceGroup(resourceGroupName, options);
146
+ let page = result.value || [];
147
+ continuationToken = result.nextLink;
148
+ setContinuationToken(page, continuationToken);
149
+ yield page;
150
+ }
124
151
  while (continuationToken) {
125
152
  result = await this._listByResourceGroupNext(
126
153
  resourceGroupName,
@@ -128,7 +155,9 @@ export class FarmBeatsModelsImpl implements FarmBeatsModels {
128
155
  options
129
156
  );
130
157
  continuationToken = result.nextLink;
131
- yield result.value || [];
158
+ let page = result.value || [];
159
+ setContinuationToken(page, continuationToken);
160
+ yield page;
132
161
  }
133
162
  }
134
163
 
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Operations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
48
49
  [Symbol.asyncIterator]() {
49
50
  return this;
50
51
  },
51
- byPage: () => {
52
- return this.listPagingPage(options);
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listPagingPage(options, settings);
53
57
  }
54
58
  };
55
59
  }
56
60
 
57
61
  private async *listPagingPage(
58
- options?: OperationsListOptionalParams
62
+ options?: OperationsListOptionalParams,
63
+ settings?: PageSettings
59
64
  ): AsyncIterableIterator<Operation[]> {
60
- let result = await this._list(options);
61
- yield result.value || [];
62
- let continuationToken = result.nextLink;
65
+ let result: OperationsListResponse;
66
+ let continuationToken = settings?.continuationToken;
67
+ if (!continuationToken) {
68
+ result = await this._list(options);
69
+ let page = result.value || [];
70
+ continuationToken = result.nextLink;
71
+ setContinuationToken(page, continuationToken);
72
+ yield page;
73
+ }
63
74
  while (continuationToken) {
64
75
  result = await this._listNext(continuationToken, options);
65
76
  continuationToken = result.nextLink;
66
- yield result.value || [];
77
+ let page = result.value || [];
78
+ setContinuationToken(page, continuationToken);
79
+ yield page;
67
80
  }
68
81
  }
69
82
 
@@ -6,7 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
10
  import { PrivateEndpointConnections } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -17,12 +17,12 @@ import { LroImpl } from "../lroImpl";
17
17
  import {
18
18
  PrivateEndpointConnection,
19
19
  PrivateEndpointConnectionsListByResourceOptionalParams,
20
+ PrivateEndpointConnectionsListByResourceResponse,
20
21
  PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
21
22
  PrivateEndpointConnectionsCreateOrUpdateResponse,
22
23
  PrivateEndpointConnectionsGetOptionalParams,
23
24
  PrivateEndpointConnectionsGetResponse,
24
- PrivateEndpointConnectionsDeleteOptionalParams,
25
- PrivateEndpointConnectionsListByResourceResponse
25
+ PrivateEndpointConnectionsDeleteOptionalParams
26
26
  } from "../models";
27
27
 
28
28
  /// <reference lib="esnext.asynciterable" />
@@ -62,11 +62,15 @@ export class PrivateEndpointConnectionsImpl
62
62
  [Symbol.asyncIterator]() {
63
63
  return this;
64
64
  },
65
- byPage: () => {
65
+ byPage: (settings?: PageSettings) => {
66
+ if (settings?.maxPageSize) {
67
+ throw new Error("maxPageSize is not supported by this operation.");
68
+ }
66
69
  return this.listByResourcePagingPage(
67
70
  resourceGroupName,
68
71
  farmBeatsResourceName,
69
- options
72
+ options,
73
+ settings
70
74
  );
71
75
  }
72
76
  };
@@ -75,9 +79,11 @@ export class PrivateEndpointConnectionsImpl
75
79
  private async *listByResourcePagingPage(
76
80
  resourceGroupName: string,
77
81
  farmBeatsResourceName: string,
78
- options?: PrivateEndpointConnectionsListByResourceOptionalParams
82
+ options?: PrivateEndpointConnectionsListByResourceOptionalParams,
83
+ _settings?: PageSettings
79
84
  ): AsyncIterableIterator<PrivateEndpointConnection[]> {
80
- let result = await this._listByResource(
85
+ let result: PrivateEndpointConnectionsListByResourceResponse;
86
+ result = await this._listByResource(
81
87
  resourceGroupName,
82
88
  farmBeatsResourceName,
83
89
  options
@@ -6,7 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
10
  import { PrivateLinkResources } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -56,11 +56,15 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
56
56
  [Symbol.asyncIterator]() {
57
57
  return this;
58
58
  },
59
- byPage: () => {
59
+ byPage: (settings?: PageSettings) => {
60
+ if (settings?.maxPageSize) {
61
+ throw new Error("maxPageSize is not supported by this operation.");
62
+ }
60
63
  return this.listByResourcePagingPage(
61
64
  resourceGroupName,
62
65
  farmBeatsResourceName,
63
- options
66
+ options,
67
+ settings
64
68
  );
65
69
  }
66
70
  };
@@ -69,9 +73,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
69
73
  private async *listByResourcePagingPage(
70
74
  resourceGroupName: string,
71
75
  farmBeatsResourceName: string,
72
- options?: PrivateLinkResourcesListByResourceOptionalParams
76
+ options?: PrivateLinkResourcesListByResourceOptionalParams,
77
+ _settings?: PageSettings
73
78
  ): AsyncIterableIterator<PrivateLinkResource[]> {
74
- let result = await this._listByResource(
79
+ let result: PrivateLinkResourcesListByResourceResponse;
80
+ result = await this._listByResource(
75
81
  resourceGroupName,
76
82
  farmBeatsResourceName,
77
83
  options
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given a result page from a pageable operation, returns a
17
+ * continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page A result object from calling .byPage() on a paged operation.
20
+ * @returns The continuation token that can be passed into byPage().
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }
@@ -652,6 +652,15 @@ export declare interface FarmBeatsUpdateRequestModel {
652
652
  };
653
653
  }
654
654
 
655
+ /**
656
+ * Given a result page from a pageable operation, returns a
657
+ * continuation token that can be used to begin paging from
658
+ * that point later.
659
+ * @param page A result object from calling .byPage() on a paged operation.
660
+ * @returns The continuation token that can be passed into byPage().
661
+ */
662
+ export declare function getContinuationToken(page: unknown): string | undefined;
663
+
655
664
  /** Identity for the resource. */
656
665
  export declare interface Identity {
657
666
  /**
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.31.2"
8
+ "packageVersion": "7.33.5"
9
9
  }
10
10
  ]
11
11
  }