@azure-rest/developer-devcenter 1.0.1-alpha.20241218.1 → 1.0.1-alpha.20241219.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 (72) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/LICENSE +1 -1
  3. package/dist/browser/azureDeveloperDevCenter.d.ts +6 -1
  4. package/dist/browser/azureDeveloperDevCenter.d.ts.map +1 -1
  5. package/dist/browser/azureDeveloperDevCenter.js +19 -5
  6. package/dist/browser/azureDeveloperDevCenter.js.map +1 -1
  7. package/dist/browser/models.d.ts +12 -8
  8. package/dist/browser/models.d.ts.map +1 -1
  9. package/dist/browser/models.js.map +1 -1
  10. package/dist/browser/outputModels.d.ts +176 -59
  11. package/dist/browser/outputModels.d.ts.map +1 -1
  12. package/dist/browser/outputModels.js.map +1 -1
  13. package/dist/browser/paginateHelper.d.ts +27 -2
  14. package/dist/browser/paginateHelper.d.ts.map +1 -1
  15. package/dist/browser/paginateHelper.js +98 -1
  16. package/dist/browser/paginateHelper.js.map +1 -1
  17. package/dist/browser/parameters.d.ts +2 -2
  18. package/dist/browser/parameters.d.ts.map +1 -1
  19. package/dist/browser/parameters.js.map +1 -1
  20. package/dist/commonjs/azureDeveloperDevCenter.d.ts +6 -1
  21. package/dist/commonjs/azureDeveloperDevCenter.d.ts.map +1 -1
  22. package/dist/commonjs/azureDeveloperDevCenter.js +19 -5
  23. package/dist/commonjs/azureDeveloperDevCenter.js.map +1 -1
  24. package/dist/commonjs/models.d.ts +12 -8
  25. package/dist/commonjs/models.d.ts.map +1 -1
  26. package/dist/commonjs/models.js.map +1 -1
  27. package/dist/commonjs/outputModels.d.ts +176 -59
  28. package/dist/commonjs/outputModels.d.ts.map +1 -1
  29. package/dist/commonjs/outputModels.js.map +1 -1
  30. package/dist/commonjs/paginateHelper.d.ts +27 -2
  31. package/dist/commonjs/paginateHelper.d.ts.map +1 -1
  32. package/dist/commonjs/paginateHelper.js +99 -2
  33. package/dist/commonjs/paginateHelper.js.map +1 -1
  34. package/dist/commonjs/parameters.d.ts +2 -2
  35. package/dist/commonjs/parameters.d.ts.map +1 -1
  36. package/dist/commonjs/parameters.js.map +1 -1
  37. package/dist/esm/azureDeveloperDevCenter.d.ts +6 -1
  38. package/dist/esm/azureDeveloperDevCenter.d.ts.map +1 -1
  39. package/dist/esm/azureDeveloperDevCenter.js +19 -5
  40. package/dist/esm/azureDeveloperDevCenter.js.map +1 -1
  41. package/dist/esm/models.d.ts +12 -8
  42. package/dist/esm/models.d.ts.map +1 -1
  43. package/dist/esm/models.js.map +1 -1
  44. package/dist/esm/outputModels.d.ts +176 -59
  45. package/dist/esm/outputModels.d.ts.map +1 -1
  46. package/dist/esm/outputModels.js.map +1 -1
  47. package/dist/esm/paginateHelper.d.ts +27 -2
  48. package/dist/esm/paginateHelper.d.ts.map +1 -1
  49. package/dist/esm/paginateHelper.js +98 -1
  50. package/dist/esm/paginateHelper.js.map +1 -1
  51. package/dist/esm/parameters.d.ts +2 -2
  52. package/dist/esm/parameters.d.ts.map +1 -1
  53. package/dist/esm/parameters.js.map +1 -1
  54. package/dist/react-native/azureDeveloperDevCenter.d.ts +6 -1
  55. package/dist/react-native/azureDeveloperDevCenter.d.ts.map +1 -1
  56. package/dist/react-native/azureDeveloperDevCenter.js +19 -5
  57. package/dist/react-native/azureDeveloperDevCenter.js.map +1 -1
  58. package/dist/react-native/models.d.ts +12 -8
  59. package/dist/react-native/models.d.ts.map +1 -1
  60. package/dist/react-native/models.js.map +1 -1
  61. package/dist/react-native/outputModels.d.ts +176 -59
  62. package/dist/react-native/outputModels.d.ts.map +1 -1
  63. package/dist/react-native/outputModels.js.map +1 -1
  64. package/dist/react-native/paginateHelper.d.ts +27 -2
  65. package/dist/react-native/paginateHelper.d.ts.map +1 -1
  66. package/dist/react-native/paginateHelper.js +98 -1
  67. package/dist/react-native/paginateHelper.js.map +1 -1
  68. package/dist/react-native/parameters.d.ts +2 -2
  69. package/dist/react-native/parameters.d.ts.map +1 -1
  70. package/dist/react-native/parameters.js.map +1 -1
  71. package/package.json +34 -40
  72. package/review/developer-devcenter.api.md +82 -37
@@ -1,7 +1,104 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { getPagedAsyncIterator } from "@azure/core-paging";
3
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
4
4
  import { createRestError } from "@azure-rest/core-client";
5
+ /**
6
+ * returns an async iterator that iterates over results. It also has a `byPage`
7
+ * method that returns pages of items at once.
8
+ *
9
+ * @param pagedResult - an object that specifies how to get pages.
10
+ * @returns a paged async iterator that iterates over results.
11
+ */
12
+ function getPagedAsyncIterator(pagedResult) {
13
+ var _a;
14
+ const iter = getItemAsyncIterator(pagedResult);
15
+ return {
16
+ next() {
17
+ return iter.next();
18
+ },
19
+ [Symbol.asyncIterator]() {
20
+ return this;
21
+ },
22
+ byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
23
+ const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
24
+ return getPageAsyncIterator(pagedResult, {
25
+ pageLink: continuationToken,
26
+ });
27
+ }),
28
+ };
29
+ }
30
+ function getItemAsyncIterator(pagedResult) {
31
+ return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
32
+ var _a, e_1, _b, _c, _d, e_2, _e, _f;
33
+ const pages = getPageAsyncIterator(pagedResult);
34
+ const firstVal = yield __await(pages.next());
35
+ // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is
36
+ if (!Array.isArray(firstVal.value)) {
37
+ // can extract elements from this page
38
+ const { toElements } = pagedResult;
39
+ if (toElements) {
40
+ yield __await(yield* __asyncDelegator(__asyncValues(toElements(firstVal.value))));
41
+ try {
42
+ for (var _g = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _g = true) {
43
+ _c = pages_1_1.value;
44
+ _g = false;
45
+ const page = _c;
46
+ yield __await(yield* __asyncDelegator(__asyncValues(toElements(page))));
47
+ }
48
+ }
49
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
50
+ finally {
51
+ try {
52
+ if (!_g && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
53
+ }
54
+ finally { if (e_1) throw e_1.error; }
55
+ }
56
+ }
57
+ else {
58
+ yield yield __await(firstVal.value);
59
+ // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case
60
+ yield __await(yield* __asyncDelegator(__asyncValues(pages)));
61
+ }
62
+ }
63
+ else {
64
+ yield __await(yield* __asyncDelegator(__asyncValues(firstVal.value)));
65
+ try {
66
+ for (var _h = true, pages_2 = __asyncValues(pages), pages_2_1; pages_2_1 = yield __await(pages_2.next()), _d = pages_2_1.done, !_d; _h = true) {
67
+ _f = pages_2_1.value;
68
+ _h = false;
69
+ const page = _f;
70
+ // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,
71
+ // it must be the case that `TPage = TElement[]`
72
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
+ }
74
+ }
75
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
76
+ finally {
77
+ try {
78
+ if (!_h && !_d && (_e = pages_2.return)) yield __await(_e.call(pages_2));
79
+ }
80
+ finally { if (e_2) throw e_2.error; }
81
+ }
82
+ }
83
+ });
84
+ }
85
+ function getPageAsyncIterator(pagedResult_1) {
86
+ return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
87
+ const { pageLink } = options;
88
+ let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
89
+ if (!response) {
90
+ return yield __await(void 0);
91
+ }
92
+ yield yield __await(response.page);
93
+ while (response.nextPageLink) {
94
+ response = yield __await(pagedResult.getPage(response.nextPageLink));
95
+ if (!response) {
96
+ return yield __await(void 0);
97
+ }
98
+ yield yield __await(response.page);
99
+ }
100
+ });
101
+ }
5
102
  /**
6
103
  * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
7
104
  * @param client - Client to use for sending the next page requests
@@ -1 +1 @@
1
- {"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAyC1D;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvF,QAAQ,GAAG,KAAK,CAAC;gBACjB,kBAAkB,CAAC,MAAM,CAAC,CAAC;gBAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;gBACxD,MAAM,MAAM,GAAG,WAAW,CAAW,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC5D,OAAO;oBACL,IAAI,EAAE,MAAM;oBACZ,YAAY,EAAE,QAAQ;iBACvB,CAAC;YACJ,CAAC;KAC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Corporation.\n// Licensed under the MIT License.\n\nimport type { PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { getPagedAsyncIterator } from \"@azure/core-paging\";\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
1
+ {"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;GAMG;AACH,SAAS,qBAAqB,CAM5B,WAAqD;;IAErD,MAAM,IAAI,GAAG,oBAAoB,CAAwC,WAAW,CAAC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Ac,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IAEjE,qEAAqE;IACrE,qEAAqE;IACrE,iDAAiD;IACjD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n TLink = string,\n>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n (((settings?: PageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken as unknown as TLink | undefined,\n });\n }) as unknown as (settings?: TPageSettings) => AsyncIterableIterator<TPage>),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = await pages.next();\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield* toElements(firstVal.value) as TElement[];\n for await (const page of pages) {\n yield* toElements(page) as TElement[];\n }\n } else {\n yield firstVal.value;\n // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case\n yield* pages as unknown as AsyncIterableIterator<TElement>;\n }\n } else {\n yield* firstVal.value;\n for await (const page of pages) {\n // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield* page as unknown as TElement[];\n }\n }\n}\n\nasync function* getPageAsyncIterator<TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n options: {\n pageLink?: TLink;\n } = {},\n): AsyncIterableIterator<TPage> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n }\n}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\ninterface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {\n /**\n * Link to the first page of results.\n */\n firstPageLink: TLink;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink: TLink) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => unknown[];\n}\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (pageLink: string) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
@@ -32,7 +32,7 @@ export type ListActionsParameters = RequestParameters;
32
32
  export type GetActionParameters = RequestParameters;
33
33
  export type SkipActionParameters = RequestParameters;
34
34
  export interface DelayActionQueryParamProperties {
35
- /** The time to delay the Dev Box action or actions until. */
35
+ /** The time to delay the Dev Box action or actions until, in RFC3339 format. */
36
36
  until: Date | string;
37
37
  }
38
38
  export interface DelayActionQueryParam {
@@ -40,7 +40,7 @@ export interface DelayActionQueryParam {
40
40
  }
41
41
  export type DelayActionParameters = DelayActionQueryParam & RequestParameters;
42
42
  export interface DelayActionsQueryParamProperties {
43
- /** The time to delay the Dev Box action or actions until. */
43
+ /** The time to delay the Dev Box action or actions until, in RFC3339 format. */
44
44
  until: Date | string;
45
45
  }
46
46
  export interface DelayActionsQueryParam {
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AACvD,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAC9C,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AACpD,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAClD,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAC1D,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;AAChE,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,CAAC;AAC9D,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAC5D,MAAM,MAAM,4BAA4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M,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;AACjE,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;AAE/D,MAAM,WAAW,mCAAmC;IAClD,iCAAiC;IACjC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,oCAAoC,GAAG,mCAAmC,GACpF,iBAAiB,CAAC;AACpB,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAC5D,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AACrD,MAAM,MAAM,6CAA6C,GAAG,iBAAiB,CAAC;AAC9E,MAAM,MAAM,6CAA6C,GAAG,iBAAiB,CAAC;AAC9E,MAAM,MAAM,kCAAkC,GAAG,iBAAiB,CAAC;AACnE,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type { DevBox, Environment } from \"./models.js\";\n\nexport type ListProjectsParameters = RequestParameters;\nexport type GetProjectParameters = RequestParameters;\nexport type GetParameters = RequestParameters;\nexport type ListPoolsParameters = RequestParameters;\nexport type GetPoolParameters = RequestParameters;\nexport type ListAllDevBoxesParameters = RequestParameters;\nexport type ListAllDevBoxesByUserParameters = RequestParameters;\nexport type ListSchedulesByPoolParameters = RequestParameters;\nexport type GetScheduleByPoolParameters = RequestParameters;\nexport type ListDevBoxesByUserParameters = RequestParameters;\nexport type GetDevBoxByUserParameters = RequestParameters;\n\nexport interface CreateDevBoxBodyParam {\n /** Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator */\n body: DevBox;\n}\n\nexport type CreateDevBoxParameters = CreateDevBoxBodyParam & RequestParameters;\nexport type DeleteDevBoxParameters = RequestParameters;\nexport type StartDevBoxParameters = RequestParameters;\n\nexport interface StopDevBoxQueryParamProperties {\n /** Optional parameter to hibernate the dev box. */\n hibernate?: boolean;\n}\n\nexport interface StopDevBoxQueryParam {\n queryParameters?: StopDevBoxQueryParamProperties;\n}\n\nexport type StopDevBoxParameters = StopDevBoxQueryParam & RequestParameters;\nexport type RestartDevBoxParameters = RequestParameters;\nexport type GetRemoteConnectionParameters = RequestParameters;\nexport type ListActionsParameters = RequestParameters;\nexport type GetActionParameters = RequestParameters;\nexport type SkipActionParameters = RequestParameters;\n\nexport interface DelayActionQueryParamProperties {\n /** The time to delay the Dev Box action or actions until. */\n until: Date | string;\n}\n\nexport interface DelayActionQueryParam {\n queryParameters: DelayActionQueryParamProperties;\n}\n\nexport type DelayActionParameters = DelayActionQueryParam & RequestParameters;\n\nexport interface DelayActionsQueryParamProperties {\n /** The time to delay the Dev Box action or actions until. */\n until: Date | string;\n}\n\nexport interface DelayActionsQueryParam {\n queryParameters: DelayActionsQueryParamProperties;\n}\n\nexport type DelayActionsParameters = DelayActionsQueryParam & RequestParameters;\nexport type ListEnvironmentsParameters = RequestParameters;\nexport type ListEnvironmentsByUserParameters = RequestParameters;\nexport type GetEnvironmentByUserParameters = RequestParameters;\n\nexport interface CreateOrReplaceEnvironmentBodyParam {\n /** Represents an environment. */\n body: Environment;\n}\n\nexport type CreateOrReplaceEnvironmentParameters = CreateOrReplaceEnvironmentBodyParam &\n RequestParameters;\nexport type DeleteEnvironmentParameters = RequestParameters;\nexport type ListCatalogsByProjectParameters = RequestParameters;\nexport type GetCatalogParameters = RequestParameters;\nexport type ListEnvironmentDefinitionsByProjectParameters = RequestParameters;\nexport type ListEnvironmentDefinitionsByCatalogParameters = RequestParameters;\nexport type GetEnvironmentDefinitionParameters = RequestParameters;\nexport type ListEnvironmentTypesParameters = RequestParameters;\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type { DevBox, Environment } from \"./models.js\";\n\nexport type ListProjectsParameters = RequestParameters;\nexport type GetProjectParameters = RequestParameters;\nexport type GetParameters = RequestParameters;\nexport type ListPoolsParameters = RequestParameters;\nexport type GetPoolParameters = RequestParameters;\nexport type ListAllDevBoxesParameters = RequestParameters;\nexport type ListAllDevBoxesByUserParameters = RequestParameters;\nexport type ListSchedulesByPoolParameters = RequestParameters;\nexport type GetScheduleByPoolParameters = RequestParameters;\nexport type ListDevBoxesByUserParameters = RequestParameters;\nexport type GetDevBoxByUserParameters = RequestParameters;\n\nexport interface CreateDevBoxBodyParam {\n /** Represents the body request of a Dev Box creation. Dev Box Pool name is required. Optionally set the owner of the Dev Box as local administrator */\n body: DevBox;\n}\n\nexport type CreateDevBoxParameters = CreateDevBoxBodyParam & RequestParameters;\nexport type DeleteDevBoxParameters = RequestParameters;\nexport type StartDevBoxParameters = RequestParameters;\n\nexport interface StopDevBoxQueryParamProperties {\n /** Optional parameter to hibernate the dev box. */\n hibernate?: boolean;\n}\n\nexport interface StopDevBoxQueryParam {\n queryParameters?: StopDevBoxQueryParamProperties;\n}\n\nexport type StopDevBoxParameters = StopDevBoxQueryParam & RequestParameters;\nexport type RestartDevBoxParameters = RequestParameters;\nexport type GetRemoteConnectionParameters = RequestParameters;\nexport type ListActionsParameters = RequestParameters;\nexport type GetActionParameters = RequestParameters;\nexport type SkipActionParameters = RequestParameters;\n\nexport interface DelayActionQueryParamProperties {\n /** The time to delay the Dev Box action or actions until, in RFC3339 format. */\n until: Date | string;\n}\n\nexport interface DelayActionQueryParam {\n queryParameters: DelayActionQueryParamProperties;\n}\n\nexport type DelayActionParameters = DelayActionQueryParam & RequestParameters;\n\nexport interface DelayActionsQueryParamProperties {\n /** The time to delay the Dev Box action or actions until, in RFC3339 format. */\n until: Date | string;\n}\n\nexport interface DelayActionsQueryParam {\n queryParameters: DelayActionsQueryParamProperties;\n}\n\nexport type DelayActionsParameters = DelayActionsQueryParam & RequestParameters;\nexport type ListEnvironmentsParameters = RequestParameters;\nexport type ListEnvironmentsByUserParameters = RequestParameters;\nexport type GetEnvironmentByUserParameters = RequestParameters;\n\nexport interface CreateOrReplaceEnvironmentBodyParam {\n /** Represents an environment. */\n body: Environment;\n}\n\nexport type CreateOrReplaceEnvironmentParameters = CreateOrReplaceEnvironmentBodyParam &\n RequestParameters;\nexport type DeleteEnvironmentParameters = RequestParameters;\nexport type ListCatalogsByProjectParameters = RequestParameters;\nexport type GetCatalogParameters = RequestParameters;\nexport type ListEnvironmentDefinitionsByProjectParameters = RequestParameters;\nexport type ListEnvironmentDefinitionsByCatalogParameters = RequestParameters;\nexport type GetEnvironmentDefinitionParameters = RequestParameters;\nexport type ListEnvironmentTypesParameters = RequestParameters;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-rest/developer-devcenter",
3
- "version": "1.0.1-alpha.20241218.1",
3
+ "version": "1.0.1-alpha.20241219.2",
4
4
  "description": "Azure Developer DevCenter Client",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -38,7 +38,8 @@
38
38
  "dist",
39
39
  "README.md",
40
40
  "LICENSE",
41
- "review/*"
41
+ "review/*",
42
+ "CHANGELOG.md"
42
43
  ],
43
44
  "sdk-type": "client",
44
45
  "repository": "github:Azure/azure-sdk-for-js",
@@ -51,59 +52,59 @@
51
52
  "constantPaths": [
52
53
  {
53
54
  "path": "src/azureDeveloperDevCenter.ts",
54
- "prefix": "package-version"
55
+ "prefix": "userAgentInfo"
55
56
  }
56
57
  ]
57
58
  },
58
59
  "dependencies": {
59
- "@azure-rest/core-client": "^2.0.0",
60
- "@azure/abort-controller": "^2.0.0",
60
+ "@azure-rest/core-client": "^2.3.1",
61
61
  "@azure/core-auth": "^1.6.0",
62
- "@azure/core-lro": "3.0.0",
63
- "@azure/core-paging": "^1.5.0",
64
62
  "@azure/core-rest-pipeline": "^1.5.0",
65
63
  "@azure/logger": "^1.0.0",
66
- "tslib": "^2.6.2"
64
+ "tslib": "^2.6.2",
65
+ "@azure/core-lro": "^3.1.0",
66
+ "@azure/abort-controller": "^2.1.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@azure-tools/test-credential": "^2.0.0",
70
- "@azure-tools/test-recorder": "^4.0.0",
71
- "@azure/core-util": "^1.0.0",
72
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
73
- "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
74
- "@azure/identity": "^4.0.1",
69
+ "dotenv": "^16.0.0",
70
+ "@microsoft/api-extractor": "^7.40.3",
75
71
  "@types/node": "^18.0.0",
72
+ "eslint": "^8.55.0",
73
+ "typescript": "~5.7.2",
74
+ "tshy": "^2.0.0",
75
+ "@azure/identity": "^4.2.1",
76
76
  "@vitest/browser": "^2.0.5",
77
77
  "@vitest/coverage-istanbul": "^2.0.5",
78
- "dotenv": "^16.0.0",
79
- "eslint": "^9.9.0",
80
78
  "playwright": "^1.41.2",
81
- "typescript": "~5.7.2",
82
- "vitest": "^2.0.5"
79
+ "vitest": "^2.0.5",
80
+ "@azure-tools/test-credential": "^2.0.0",
81
+ "@azure-tools/test-recorder": "^4.0.0",
82
+ "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
83
+ "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb"
83
84
  },
84
85
  "scripts": {
85
- "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
86
- "build:samples": "dev-tool samples publish --force",
87
- "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
88
- "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
89
86
  "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
90
- "execute:samples": "dev-tool samples run samples-dev",
91
87
  "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
92
- "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
93
- "generate:client": "echo skipped",
88
+ "pack": "npm pack 2>&1",
89
+ "lint": "eslint package.json api-extractor.json src test",
90
+ "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
91
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
92
+ "unit-test:browser": "echo skipped",
93
+ "unit-test:node": "dev-tool run test:vitest",
94
94
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
95
95
  "integration-test:browser": "echo skipped",
96
96
  "integration-test:node": "echo skipped",
97
- "lint": "eslint package.json api-extractor.json src test",
98
- "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
99
- "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
100
- "pack": "npm pack 2>&1",
101
- "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
97
+ "build:samples": "echo skipped",
98
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
99
+ "execute:samples": "echo skipped",
100
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
101
+ "generate:client": "echo skipped",
102
102
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
103
+ "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
104
+ "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
105
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
103
106
  "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
104
- "unit-test": "npm run unit-test:node && npm run unit-test:browser",
105
- "unit-test:browser": "echo skipped",
106
- "unit-test:node": "dev-tool run test:vitest -- -c vitest.config.ts",
107
+ "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
107
108
  "update-snippets": "echo skipped"
108
109
  },
109
110
  "exports": {
@@ -129,12 +130,5 @@
129
130
  },
130
131
  "main": "./dist/commonjs/index.js",
131
132
  "types": "./dist/commonjs/index.d.ts",
132
- "//sampleConfiguration": {
133
- "productName": "Azure DevCenter",
134
- "productSlugs": [
135
- "azure"
136
- ],
137
- "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/developer-devcenter"
138
- },
139
133
  "module": "./dist/esm/index.js"
140
134
  }
@@ -13,8 +13,6 @@ import type { ErrorModel } from '@azure-rest/core-client';
13
13
  import type { ErrorResponse } from '@azure-rest/core-client';
14
14
  import type { HttpResponse } from '@azure-rest/core-client';
15
15
  import type { OperationState } from '@azure/core-lro';
16
- import type { Paged } from '@azure/core-paging';
17
- import type { PagedAsyncIterableIterator } from '@azure/core-paging';
18
16
  import type { PathUncheckedResponse } from '@azure-rest/core-client';
19
17
  import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
20
18
  import type { RequestParameters } from '@azure-rest/core-client';
@@ -26,13 +24,18 @@ export type AzureDeveloperDevCenterClient = Client & {
26
24
  path: Routes;
27
25
  };
28
26
 
27
+ // @public
28
+ export interface AzureDeveloperDevCenterClientOptions extends ClientOptions {
29
+ apiVersion?: string;
30
+ }
31
+
29
32
  // @public
30
33
  export interface CatalogOutput {
31
34
  readonly name: string;
32
35
  }
33
36
 
34
37
  // @public
35
- function createClient(endpointParam: string, credentials: TokenCredential, options?: ClientOptions): AzureDeveloperDevCenterClient;
38
+ function createClient(endpointParam: string, credentials: TokenCredential, { apiVersion, ...options }?: AzureDeveloperDevCenterClientOptions): AzureDeveloperDevCenterClient;
36
39
  export default createClient;
37
40
 
38
41
  // @public
@@ -338,7 +341,7 @@ export interface DevBoxActionDelayResultOutput {
338
341
  }
339
342
 
340
343
  // @public
341
- export type DevBoxActionDelayResultStatusOutput = "Succeeded" | "Failed" | string;
344
+ export type DevBoxActionDelayResultStatusOutput = string;
342
345
 
343
346
  // @public
344
347
  export interface DevBoxActionOutput {
@@ -350,7 +353,7 @@ export interface DevBoxActionOutput {
350
353
  }
351
354
 
352
355
  // @public
353
- export type DevBoxActionTypeOutput = "Stop" | string;
356
+ export type DevBoxActionTypeOutput = string;
354
357
 
355
358
  // @public
356
359
  export interface DevBoxNextActionOutput {
@@ -379,10 +382,10 @@ export interface DevBoxOutput {
379
382
  }
380
383
 
381
384
  // @public
382
- export type DevBoxProvisioningState = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Deleting" | "Updating" | "Starting" | "Stopping" | "Provisioning" | "ProvisionedWithWarning" | "InGracePeriod" | "NotProvisioned" | string;
385
+ export type DevBoxProvisioningState = string;
383
386
 
384
387
  // @public
385
- export type DevBoxProvisioningStateOutput = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Deleting" | "Updating" | "Starting" | "Stopping" | "Provisioning" | "ProvisionedWithWarning" | "InGracePeriod" | "NotProvisioned" | string;
388
+ export type DevBoxProvisioningStateOutput = string;
386
389
 
387
390
  // @public
388
391
  export interface Environment {
@@ -429,13 +432,13 @@ export interface EnvironmentOutput {
429
432
  }
430
433
 
431
434
  // @public
432
- export type EnvironmentProvisioningState = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Accepted" | "Deleting" | "Updating" | "Preparing" | "Running" | "Syncing" | "MovingResources" | "TransientFailure" | "StorageProvisioningFailed" | string;
435
+ export type EnvironmentProvisioningState = string;
433
436
 
434
437
  // @public
435
- export type EnvironmentProvisioningStateOutput = "Succeeded" | "Failed" | "Canceled" | "Creating" | "Accepted" | "Deleting" | "Updating" | "Preparing" | "Running" | "Syncing" | "MovingResources" | "TransientFailure" | "StorageProvisioningFailed" | string;
438
+ export type EnvironmentProvisioningStateOutput = string;
436
439
 
437
440
  // @public
438
- export type EnvironmentTypeEnableStatusOutput = "Enabled" | "Disabled" | string;
441
+ export type EnvironmentTypeEnableStatusOutput = string;
439
442
 
440
443
  // @public
441
444
  export interface EnvironmentTypeOutput {
@@ -656,7 +659,7 @@ export function getLongRunningPoller<TResult extends CreateOrReplaceEnvironmentL
656
659
  export function getLongRunningPoller<TResult extends DeleteEnvironmentLogicalResponse | DeleteEnvironmentDefaultResponse>(client: Client, initialResponse: DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
657
660
 
658
661
  // @public
659
- export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
662
+ export type GetPage<TPage> = (pageLink: string) => Promise<{
660
663
  page: TPage;
661
664
  nextPageLink?: string;
662
665
  }>;
@@ -800,10 +803,10 @@ export interface HardwareProfileOutput {
800
803
  }
801
804
 
802
805
  // @public
803
- export type HibernateSupport = "Enabled" | "Disabled" | "OsUnsupported" | string;
806
+ export type HibernateSupport = string;
804
807
 
805
808
  // @public
806
- export type HibernateSupportOutput = "Enabled" | "Disabled" | "OsUnsupported" | string;
809
+ export type HibernateSupportOutput = string;
807
810
 
808
811
  // @public
809
812
  export interface ImageReference {
@@ -1321,13 +1324,13 @@ export interface ListSchedulesByPoolDefaultResponse extends HttpResponse {
1321
1324
  export type ListSchedulesByPoolParameters = RequestParameters;
1322
1325
 
1323
1326
  // @public
1324
- export type LocalAdminStatus = "Enabled" | "Disabled" | string;
1327
+ export type LocalAdminStatus = string;
1325
1328
 
1326
1329
  // @public
1327
- export type LocalAdminStatusOutput = "Enabled" | "Disabled" | string;
1330
+ export type LocalAdminStatusOutput = string;
1328
1331
 
1329
1332
  // @public
1330
- export type OperationStateOutput = "NotStarted" | "Running" | "Succeeded" | "Failed" | "Canceled";
1333
+ export type OperationStateOutput = string;
1331
1334
 
1332
1335
  // @public
1333
1336
  export interface OperationStatusOutput {
@@ -1352,40 +1355,82 @@ export interface OsDiskOutput {
1352
1355
  }
1353
1356
 
1354
1357
  // @public
1355
- export type OsType = "Windows" | string;
1358
+ export type OsType = string;
1356
1359
 
1357
1360
  // @public
1358
- export type OsTypeOutput = "Windows" | string;
1361
+ export type OsTypeOutput = string;
1359
1362
 
1360
1363
  // @public
1361
- export type PagedCatalogOutput = Paged<CatalogOutput>;
1364
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
1365
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
1366
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
1367
+ next(): Promise<IteratorResult<TElement>>;
1368
+ }
1362
1369
 
1363
1370
  // @public
1364
- export type PagedDevBoxActionDelayResultOutput = Paged<DevBoxActionDelayResultOutput>;
1371
+ export interface PagedCatalogOutput {
1372
+ nextLink?: string;
1373
+ value: Array<CatalogOutput>;
1374
+ }
1365
1375
 
1366
1376
  // @public
1367
- export type PagedDevBoxActionOutput = Paged<DevBoxActionOutput>;
1377
+ export interface PagedDevBoxActionDelayResultOutput {
1378
+ nextLink?: string;
1379
+ value: Array<DevBoxActionDelayResultOutput>;
1380
+ }
1368
1381
 
1369
1382
  // @public
1370
- export type PagedDevBoxOutput = Paged<DevBoxOutput>;
1383
+ export interface PagedDevBoxActionOutput {
1384
+ nextLink?: string;
1385
+ value: Array<DevBoxActionOutput>;
1386
+ }
1371
1387
 
1372
1388
  // @public
1373
- export type PagedEnvironmentDefinitionOutput = Paged<EnvironmentDefinitionOutput>;
1389
+ export interface PagedDevBoxOutput {
1390
+ nextLink?: string;
1391
+ value: Array<DevBoxOutput>;
1392
+ }
1374
1393
 
1375
1394
  // @public
1376
- export type PagedEnvironmentOutput = Paged<EnvironmentOutput>;
1395
+ export interface PagedEnvironmentDefinitionOutput {
1396
+ nextLink?: string;
1397
+ value: Array<EnvironmentDefinitionOutput>;
1398
+ }
1377
1399
 
1378
1400
  // @public
1379
- export type PagedEnvironmentTypeOutput = Paged<EnvironmentTypeOutput>;
1401
+ export interface PagedEnvironmentOutput {
1402
+ nextLink?: string;
1403
+ value: Array<EnvironmentOutput>;
1404
+ }
1380
1405
 
1381
1406
  // @public
1382
- export type PagedPoolOutput = Paged<PoolOutput>;
1407
+ export interface PagedEnvironmentTypeOutput {
1408
+ nextLink?: string;
1409
+ value: Array<EnvironmentTypeOutput>;
1410
+ }
1383
1411
 
1384
1412
  // @public
1385
- export type PagedProjectOutput = Paged<ProjectOutput>;
1413
+ export interface PagedPoolOutput {
1414
+ nextLink?: string;
1415
+ value: Array<PoolOutput>;
1416
+ }
1417
+
1418
+ // @public
1419
+ export interface PagedProjectOutput {
1420
+ nextLink?: string;
1421
+ value: Array<ProjectOutput>;
1422
+ }
1386
1423
 
1387
1424
  // @public
1388
- export type PagedScheduleOutput = Paged<ScheduleOutput>;
1425
+ export interface PagedScheduleOutput {
1426
+ nextLink?: string;
1427
+ value: Array<ScheduleOutput>;
1428
+ }
1429
+
1430
+ // @public
1431
+ export interface PageSettings {
1432
+ continuationToken?: string;
1433
+ }
1389
1434
 
1390
1435
  // @public
1391
1436
  export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
@@ -1403,10 +1448,10 @@ export interface PagingOptions<TResponse> {
1403
1448
  }
1404
1449
 
1405
1450
  // @public
1406
- export type ParameterTypeOutput = "array" | "boolean" | "integer" | "number" | "object" | "string" | string;
1451
+ export type ParameterTypeOutput = string;
1407
1452
 
1408
1453
  // @public
1409
- export type PoolHealthStatusOutput = "Unknown" | "Pending" | "Healthy" | "Warning" | "Unhealthy" | string;
1454
+ export type PoolHealthStatusOutput = string;
1410
1455
 
1411
1456
  // @public
1412
1457
  export interface PoolOutput {
@@ -1423,10 +1468,10 @@ export interface PoolOutput {
1423
1468
  }
1424
1469
 
1425
1470
  // @public
1426
- export type PowerState = "Unknown" | "Running" | "Deallocated" | "PoweredOff" | "Hibernated" | string;
1471
+ export type PowerState = string;
1427
1472
 
1428
1473
  // @public
1429
- export type PowerStateOutput = "Unknown" | "Running" | "Deallocated" | "PoweredOff" | "Hibernated" | string;
1474
+ export type PowerStateOutput = string;
1430
1475
 
1431
1476
  // @public
1432
1477
  export interface ProjectOutput {
@@ -1521,10 +1566,10 @@ export interface Routes {
1521
1566
  }
1522
1567
 
1523
1568
  // @public
1524
- export type ScheduledFrequencyOutput = "Daily" | string;
1569
+ export type ScheduledFrequencyOutput = string;
1525
1570
 
1526
1571
  // @public
1527
- export type ScheduledTypeOutput = "StopDevBox" | string;
1572
+ export type ScheduledTypeOutput = string;
1528
1573
 
1529
1574
  // @public
1530
1575
  export interface ScheduleOutput {
@@ -1587,10 +1632,10 @@ export interface SkipActionDefaultResponse extends HttpResponse {
1587
1632
  export type SkipActionParameters = RequestParameters;
1588
1633
 
1589
1634
  // @public
1590
- export type SkuName = "general_i_8c32gb256ssd_v2" | "general_i_8c32gb512ssd_v2" | "general_i_8c32gb1024ssd_v2" | "general_i_8c32gb2048ssd_v2" | "general_i_16c64gb256ssd_v2" | "general_i_16c64gb512ssd_v2" | "general_i_16c64gb1024ssd_v2" | "general_i_16c64gb2048ssd_v2" | "general_i_32c128gb512ssd_v2" | "general_i_32c128gb1024ssd_v2" | "general_i_32c128gb2048ssd_v2" | "general_a_8c32gb256ssd_v2" | "general_a_8c32gb512ssd_v2" | "general_a_8c32gb1024ssd_v2" | "general_a_8c32gb2048ssd_v2" | "general_a_16c64gb256ssd_v2" | "general_a_16c64gb512ssd_v2" | "general_a_16c64gb1024ssd_v2" | "general_a_16c64gb2048ssd_v2" | "general_a_32c128gb512ssd_v2" | "general_a_32c128gb1024ssd_v2" | "general_a_32c128gb2048ssd_v2" | string;
1635
+ export type SkuName = string;
1591
1636
 
1592
1637
  // @public
1593
- export type SkuNameOutput = "general_i_8c32gb256ssd_v2" | "general_i_8c32gb512ssd_v2" | "general_i_8c32gb1024ssd_v2" | "general_i_8c32gb2048ssd_v2" | "general_i_16c64gb256ssd_v2" | "general_i_16c64gb512ssd_v2" | "general_i_16c64gb1024ssd_v2" | "general_i_16c64gb2048ssd_v2" | "general_i_32c128gb512ssd_v2" | "general_i_32c128gb1024ssd_v2" | "general_i_32c128gb2048ssd_v2" | "general_a_8c32gb256ssd_v2" | "general_a_8c32gb512ssd_v2" | "general_a_8c32gb1024ssd_v2" | "general_a_8c32gb2048ssd_v2" | "general_a_16c64gb256ssd_v2" | "general_a_16c64gb512ssd_v2" | "general_a_16c64gb1024ssd_v2" | "general_a_16c64gb2048ssd_v2" | "general_a_32c128gb512ssd_v2" | "general_a_32c128gb1024ssd_v2" | "general_a_32c128gb2048ssd_v2" | string;
1638
+ export type SkuNameOutput = string;
1594
1639
 
1595
1640
  // @public (undocumented)
1596
1641
  export interface StartDevBox {
@@ -1702,7 +1747,7 @@ export interface StopOnDisconnectConfigurationOutput {
1702
1747
  }
1703
1748
 
1704
1749
  // @public
1705
- export type StopOnDisconnectEnableStatusOutput = "Enabled" | "Disabled" | string;
1750
+ export type StopOnDisconnectEnableStatusOutput = string;
1706
1751
 
1707
1752
  // @public
1708
1753
  export interface StorageProfile {