@azure-tools/typespec-ts 0.55.0-dev.5 → 0.55.0-dev.7

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 (172) hide show
  1. package/README.md +3 -24
  2. package/dist/src/framework/hooks/binder.d.ts +1 -1
  3. package/dist/src/framework/hooks/binder.d.ts.map +1 -1
  4. package/dist/src/framework/load-static-helpers.d.ts.map +1 -1
  5. package/dist/src/framework/load-static-helpers.js +6 -8
  6. package/dist/src/framework/load-static-helpers.js.map +1 -1
  7. package/dist/src/index.d.ts.map +1 -1
  8. package/dist/src/index.js +20 -29
  9. package/dist/src/index.js.map +1 -1
  10. package/dist/src/lib.d.ts +0 -4
  11. package/dist/src/lib.d.ts.map +1 -1
  12. package/dist/src/lib.js +3 -21
  13. package/dist/src/lib.js.map +1 -1
  14. package/dist/src/rlc-common/build-client-definitions.d.ts.map +1 -1
  15. package/dist/src/rlc-common/build-client-definitions.js +4 -4
  16. package/dist/src/rlc-common/build-client-definitions.js.map +1 -1
  17. package/dist/src/rlc-common/build-client.d.ts.map +1 -1
  18. package/dist/src/rlc-common/build-client.js +4 -13
  19. package/dist/src/rlc-common/build-client.js.map +1 -1
  20. package/dist/src/rlc-common/build-index-file.d.ts.map +1 -1
  21. package/dist/src/rlc-common/build-index-file.js +21 -79
  22. package/dist/src/rlc-common/build-index-file.js.map +1 -1
  23. package/dist/src/rlc-common/build-is-unexpected-helper.d.ts.map +1 -1
  24. package/dist/src/rlc-common/build-is-unexpected-helper.js +1 -5
  25. package/dist/src/rlc-common/build-is-unexpected-helper.js.map +1 -1
  26. package/dist/src/rlc-common/build-logger.d.ts.map +1 -1
  27. package/dist/src/rlc-common/build-logger.js +2 -6
  28. package/dist/src/rlc-common/build-logger.js.map +1 -1
  29. package/dist/src/rlc-common/build-object-types.d.ts +1 -1
  30. package/dist/src/rlc-common/build-object-types.d.ts.map +1 -1
  31. package/dist/src/rlc-common/build-object-types.js +9 -11
  32. package/dist/src/rlc-common/build-object-types.js.map +1 -1
  33. package/dist/src/rlc-common/build-parameter-types.d.ts.map +1 -1
  34. package/dist/src/rlc-common/build-parameter-types.js +13 -66
  35. package/dist/src/rlc-common/build-parameter-types.js.map +1 -1
  36. package/dist/src/rlc-common/build-polling-helper.d.ts.map +1 -1
  37. package/dist/src/rlc-common/build-polling-helper.js +0 -2
  38. package/dist/src/rlc-common/build-polling-helper.js.map +1 -1
  39. package/dist/src/rlc-common/build-response-types.d.ts.map +1 -1
  40. package/dist/src/rlc-common/build-response-types.js +2 -5
  41. package/dist/src/rlc-common/build-response-types.js.map +1 -1
  42. package/dist/src/rlc-common/build-schema-type.d.ts.map +1 -1
  43. package/dist/src/rlc-common/build-schema-type.js +1 -8
  44. package/dist/src/rlc-common/build-schema-type.js.map +1 -1
  45. package/dist/src/rlc-common/build-top-level-index-file.d.ts.map +1 -1
  46. package/dist/src/rlc-common/build-top-level-index-file.js +1 -5
  47. package/dist/src/rlc-common/build-top-level-index-file.js.map +1 -1
  48. package/dist/src/rlc-common/helpers/name-constructors.d.ts +0 -9
  49. package/dist/src/rlc-common/helpers/name-constructors.d.ts.map +1 -1
  50. package/dist/src/rlc-common/helpers/name-constructors.js +0 -10
  51. package/dist/src/rlc-common/helpers/name-constructors.js.map +1 -1
  52. package/dist/src/rlc-common/index.d.ts +0 -2
  53. package/dist/src/rlc-common/index.d.ts.map +1 -1
  54. package/dist/src/rlc-common/index.js +0 -2
  55. package/dist/src/rlc-common/index.js.map +1 -1
  56. package/dist/src/rlc-common/interfaces.d.ts +1 -4
  57. package/dist/src/rlc-common/interfaces.d.ts.map +1 -1
  58. package/dist/src/rlc-common/interfaces.js.map +1 -1
  59. package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts +1 -1
  60. package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts.map +1 -1
  61. package/dist/src/rlc-common/metadata/build-api-extractor-config.js +4 -41
  62. package/dist/src/rlc-common/metadata/build-api-extractor-config.js.map +1 -1
  63. package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts +1 -1
  64. package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts.map +1 -1
  65. package/dist/src/rlc-common/metadata/build-es-lint-config.js +2 -37
  66. package/dist/src/rlc-common/metadata/build-es-lint-config.js.map +1 -1
  67. package/dist/src/rlc-common/metadata/build-package-file.d.ts.map +1 -1
  68. package/dist/src/rlc-common/metadata/build-package-file.js +22 -52
  69. package/dist/src/rlc-common/metadata/build-package-file.js.map +1 -1
  70. package/dist/src/rlc-common/metadata/build-readme-file.d.ts.map +1 -1
  71. package/dist/src/rlc-common/metadata/build-readme-file.js +6 -7
  72. package/dist/src/rlc-common/metadata/build-readme-file.js.map +1 -1
  73. package/dist/src/rlc-common/metadata/build-test-config.d.ts.map +1 -1
  74. package/dist/src/rlc-common/metadata/build-test-config.js +1 -4
  75. package/dist/src/rlc-common/metadata/build-test-config.js.map +1 -1
  76. package/dist/src/rlc-common/metadata/build-ts-config.d.ts +2 -2
  77. package/dist/src/rlc-common/metadata/build-ts-config.d.ts.map +1 -1
  78. package/dist/src/rlc-common/metadata/build-ts-config.js +18 -59
  79. package/dist/src/rlc-common/metadata/build-ts-config.js.map +1 -1
  80. package/dist/src/rlc-common/metadata/build-warp-config.d.ts +1 -1
  81. package/dist/src/rlc-common/metadata/build-warp-config.d.ts.map +1 -1
  82. package/dist/src/rlc-common/metadata/build-warp-config.js +0 -3
  83. package/dist/src/rlc-common/metadata/build-warp-config.js.map +1 -1
  84. package/dist/src/rlc-common/metadata/package-json/azure-package-common.d.ts +1 -38
  85. package/dist/src/rlc-common/metadata/package-json/azure-package-common.d.ts.map +1 -1
  86. package/dist/src/rlc-common/metadata/package-json/azure-package-common.js +1 -108
  87. package/dist/src/rlc-common/metadata/package-json/azure-package-common.js.map +1 -1
  88. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.d.ts +0 -38
  89. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.d.ts.map +1 -1
  90. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.js +2 -18
  91. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.js.map +1 -1
  92. package/dist/src/rlc-common/metadata/package-json/package-common.d.ts +1 -18
  93. package/dist/src/rlc-common/metadata/package-json/package-common.d.ts.map +1 -1
  94. package/dist/src/rlc-common/metadata/package-json/package-common.js +20 -94
  95. package/dist/src/rlc-common/metadata/package-json/package-common.js.map +1 -1
  96. package/dist/src/rlc-common/static/polling-content.d.ts +1 -1
  97. package/dist/src/rlc-common/static/polling-content.d.ts.map +1 -1
  98. package/dist/src/rlc-common/static/polling-content.js +1 -1
  99. package/dist/src/rlc-common/test/build-recorded-client.d.ts +1 -1
  100. package/dist/src/rlc-common/test/build-recorded-client.d.ts.map +1 -1
  101. package/dist/src/rlc-common/test/build-recorded-client.js +2 -5
  102. package/dist/src/rlc-common/test/build-recorded-client.js.map +1 -1
  103. package/dist/src/rlc-common/test/build-sample-test.d.ts +1 -1
  104. package/dist/src/rlc-common/test/build-sample-test.d.ts.map +1 -1
  105. package/dist/src/rlc-common/test/build-sample-test.js +2 -5
  106. package/dist/src/rlc-common/test/build-sample-test.js.map +1 -1
  107. package/dist/src/rlc-common/test/build-snippets.d.ts +1 -1
  108. package/dist/src/rlc-common/test/build-snippets.d.ts.map +1 -1
  109. package/dist/src/rlc-common/test/build-snippets.js +2 -5
  110. package/dist/src/rlc-common/test/build-snippets.js.map +1 -1
  111. package/dist/src/rlc-common/test/template.d.ts +2 -2
  112. package/dist/src/rlc-common/test/template.d.ts.map +1 -1
  113. package/dist/src/rlc-common/test/template.js +1 -31
  114. package/dist/src/rlc-common/test/template.js.map +1 -1
  115. package/dist/src/rlc-common/transform-sample-groups.d.ts.map +1 -1
  116. package/dist/src/rlc-common/transform-sample-groups.js +4 -8
  117. package/dist/src/rlc-common/transform-sample-groups.js.map +1 -1
  118. package/dist/src/transform/transfrom-rlc-options.d.ts.map +1 -1
  119. package/dist/src/transform/transfrom-rlc-options.js +0 -18
  120. package/dist/src/transform/transfrom-rlc-options.js.map +1 -1
  121. package/dist/tsconfig.tsbuildinfo +1 -1
  122. package/package.json +1 -1
  123. package/src/framework/hooks/binder.ts +1 -1
  124. package/src/framework/load-static-helpers.ts +8 -10
  125. package/src/index.ts +19 -31
  126. package/src/lib.ts +3 -26
  127. package/src/rlc-common/build-client-definitions.ts +4 -13
  128. package/src/rlc-common/build-client.ts +4 -22
  129. package/src/rlc-common/build-index-file.ts +21 -142
  130. package/src/rlc-common/build-is-unexpected-helper.ts +1 -8
  131. package/src/rlc-common/build-logger.ts +2 -12
  132. package/src/rlc-common/build-object-types.ts +5 -17
  133. package/src/rlc-common/build-parameter-types.ts +9 -103
  134. package/src/rlc-common/build-polling-helper.ts +0 -3
  135. package/src/rlc-common/build-response-types.ts +2 -12
  136. package/src/rlc-common/build-schema-type.ts +1 -11
  137. package/src/rlc-common/build-top-level-index-file.ts +1 -8
  138. package/src/rlc-common/helpers/name-constructors.ts +0 -15
  139. package/src/rlc-common/index.ts +0 -2
  140. package/src/rlc-common/interfaces.ts +1 -4
  141. package/src/rlc-common/metadata/build-api-extractor-config.ts +4 -46
  142. package/src/rlc-common/metadata/build-es-lint-config.ts +2 -38
  143. package/src/rlc-common/metadata/build-package-file.ts +21 -58
  144. package/src/rlc-common/metadata/build-readme-file.ts +6 -9
  145. package/src/rlc-common/metadata/build-test-config.ts +1 -6
  146. package/src/rlc-common/metadata/build-ts-config.ts +28 -70
  147. package/src/rlc-common/metadata/build-warp-config.ts +0 -4
  148. package/src/rlc-common/metadata/package-json/azure-package-common.ts +2 -134
  149. package/src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts +2 -21
  150. package/src/rlc-common/metadata/package-json/package-common.ts +21 -114
  151. package/src/rlc-common/static/polling-content.ts +1 -1
  152. package/src/rlc-common/test/build-recorded-client.ts +2 -5
  153. package/src/rlc-common/test/build-sample-test.ts +2 -5
  154. package/src/rlc-common/test/build-snippets.ts +2 -5
  155. package/src/rlc-common/test/template.ts +1 -31
  156. package/src/rlc-common/transform-sample-groups.ts +3 -12
  157. package/src/transform/transfrom-rlc-options.ts +0 -20
  158. package/dist/src/rlc-common/helpers/package-util.d.ts +0 -4
  159. package/dist/src/rlc-common/helpers/package-util.d.ts.map +0 -1
  160. package/dist/src/rlc-common/helpers/package-util.js +0 -7
  161. package/dist/src/rlc-common/helpers/package-util.js.map +0 -1
  162. package/dist/src/rlc-common/metadata/build-rollup-config.d.ts +0 -6
  163. package/dist/src/rlc-common/metadata/build-rollup-config.d.ts.map +0 -1
  164. package/dist/src/rlc-common/metadata/build-rollup-config.js +0 -139
  165. package/dist/src/rlc-common/metadata/build-rollup-config.js.map +0 -1
  166. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.d.ts +0 -8
  167. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.d.ts.map +0 -1
  168. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.js +0 -101
  169. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.js.map +0 -1
  170. package/src/rlc-common/helpers/package-util.ts +0 -9
  171. package/src/rlc-common/metadata/build-rollup-config.ts +0 -146
  172. package/src/rlc-common/metadata/package-json/build-azure-standalone-package.ts +0 -123
@@ -1,51 +1,14 @@
1
1
  import { PackageCommonInfoConfig } from "./package-common.js";
2
2
  export interface AzurePackageInfoConfig extends PackageCommonInfoConfig {
3
3
  hasLro: boolean;
4
- specSource: "Swagger" | "TypeSpec";
5
4
  }
6
5
  /**
7
6
  * Build the common package.json config for an Azure package.
8
7
  */
9
- export declare function getAzureCommonPackageInfo(config: AzurePackageInfoConfig): {
10
- files?: undefined;
8
+ export declare function getAzureCommonPackageInfo(_config: AzurePackageInfoConfig): {
11
9
  keywords: string[];
12
10
  author: string;
13
11
  license: string;
14
- } | {
15
12
  files: string[];
16
- keywords: string[];
17
- author: string;
18
- license: string;
19
- } | {
20
- files: string[];
21
- keywords: string[];
22
- author: string;
23
- license: string;
24
- } | {
25
- files: string[];
26
- keywords: string[];
27
- author: string;
28
- license: string;
29
- };
30
- /**
31
- * Builds the common dependencies for an Azure package.
32
- */
33
- export declare function getAzurePackageDependencies({ hasLro, specSource, dependencies, }: AzurePackageInfoConfig): Record<string, string>;
34
- export declare function getAzurePackageDevDependencies(config: AzurePackageInfoConfig): {
35
- autorest?: string | undefined;
36
- "@azure/identity"?: string | undefined;
37
- tshy?: undefined;
38
- "@types/node": string;
39
- eslint: string;
40
- typescript: string;
41
- dotenv: string;
42
- } | {
43
- autorest?: string | undefined;
44
- "@azure/identity"?: string | undefined;
45
- tshy: string;
46
- "@types/node": string;
47
- eslint: string;
48
- typescript: string;
49
- dotenv: string;
50
13
  };
51
14
  //# sourceMappingURL=azure-package-common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"azure-package-common.d.ts","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/azure-package-common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAmC,MAAM,qBAAqB,CAAC;AAE/F,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,SAAS,GAAG,UAAU,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;EAQvE;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,MAAM,EACN,UAAU,EACV,YAAY,GACb,EAAE,sBAAsB,0BAmBxB;AAsFD,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,sBAAsB;;;;;;;;;;;;;;;;EAgB5E"}
1
+ {"version":3,"file":"azure-package-common.d.ts","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/azure-package-common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,sBAAsB;;;;;EAOxE"}
@@ -1,121 +1,14 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { getCommonPackageDevDependencies } from "./package-common.js";
4
3
  /**
5
4
  * Build the common package.json config for an Azure package.
6
5
  */
7
- export function getAzureCommonPackageInfo(config) {
6
+ export function getAzureCommonPackageInfo(_config) {
8
7
  return {
9
8
  keywords: ["node", "azure", "cloud", "typescript", "browser", "isomorphic"],
10
9
  author: "Microsoft Corporation",
11
10
  license: "MIT",
12
- ...getAzureCjsCommonInfo(config),
13
- ...getAzureEsmCommonInfo(config),
14
- };
15
- }
16
- /**
17
- * Builds the common dependencies for an Azure package.
18
- */
19
- export function getAzurePackageDependencies({ hasLro, specSource, dependencies, }) {
20
- let azureDependencies = {
21
- ...dependencies,
22
- "@azure-rest/core-client": specSource === "Swagger" ? "^1.4.0" : "^2.3.1",
23
- "@azure/core-auth": "^1.6.0",
24
- "@azure/core-rest-pipeline": "^1.5.0",
25
- "@azure/logger": "^1.0.0",
26
- tslib: "^2.6.2",
27
- };
28
- if (hasLro) {
29
- azureDependencies = {
30
- ...azureDependencies,
31
- "@azure/core-lro": "^3.1.0",
32
- "@azure/abort-controller": "^2.1.2",
33
- };
34
- }
35
- return azureDependencies;
36
- }
37
- function getAzureCjsCommonInfo({ withTests, withSamples, name, nameWithoutScope, moduleKind, }) {
38
- if (moduleKind !== "cjs") {
39
- return {};
40
- }
41
- return {
42
- files: [
43
- "dist/",
44
- "!dist/**/*.d.*ts.map",
45
- withTests || withSamples ? "dist-esm/src/" : "dist-esm/",
46
- `types/${nameWithoutScope ?? name}.d.ts`,
47
- "README.md",
48
- "LICENSE",
49
- ],
50
- };
51
- }
52
- function getAzureEsmCommonInfo({ moduleKind }) {
53
- if (moduleKind !== "esm") {
54
- return {};
55
- }
56
- return {
57
11
  files: ["dist/", "!dist/**/*.d.*ts.map", "README.md", "LICENSE"],
58
12
  };
59
13
  }
60
- function getAzurePackageCjsDevDependencies({ moduleKind, withTests }) {
61
- if (moduleKind !== "cjs") {
62
- return {};
63
- }
64
- const testDevDependencies = {
65
- "@azure-tools/test-credential": "^1.1.0",
66
- "@azure-tools/test-recorder": "^3.0.0",
67
- nyc: "^15.1.0",
68
- mocha: "^11.0.2",
69
- "@types/mocha": "^10.0.0",
70
- "@types/chai": "^4.2.8",
71
- chai: "^4.2.0",
72
- "karma-chrome-launcher": "^3.0.0",
73
- "karma-coverage": "^2.0.0",
74
- "karma-env-preprocessor": "^0.1.1",
75
- "karma-firefox-launcher": "^2.1.3",
76
- "karma-junit-reporter": "^2.0.1",
77
- "karma-mocha-reporter": "^2.2.5",
78
- "karma-mocha": "^2.0.1",
79
- "karma-source-map-support": "~1.4.0",
80
- "karma-sourcemap-loader": "^0.4.0",
81
- karma: "^6.2.0",
82
- };
83
- return {
84
- ...(withTests && testDevDependencies),
85
- "source-map-support": "^0.5.9",
86
- };
87
- }
88
- function getAzurePackageEsmDevDependencies({ moduleKind, withTests }) {
89
- if (moduleKind !== "esm") {
90
- return {};
91
- }
92
- let devDependencies = {};
93
- if (withTests) {
94
- devDependencies = {
95
- ...devDependencies,
96
- "@vitest/browser-playwright": "^4.0.6",
97
- "@vitest/coverage-istanbul": "^4.0.6",
98
- playwright: "^1.41.2",
99
- vitest: "^4.0.6",
100
- "@azure-tools/test-credential": "^2.0.0",
101
- "@azure-tools/test-recorder": "^4.0.0",
102
- };
103
- }
104
- return devDependencies;
105
- }
106
- export function getAzurePackageDevDependencies(config) {
107
- const esmDevDependencies = getAzurePackageEsmDevDependencies(config);
108
- const cjsDevDependencies = getAzurePackageCjsDevDependencies(config);
109
- const testDevDependencies = {
110
- "@azure/identity": "^4.2.1",
111
- };
112
- return {
113
- dotenv: "^16.0.0",
114
- ...getCommonPackageDevDependencies(config),
115
- ...(config.withTests && testDevDependencies),
116
- ...(config.specSource === "Swagger" && { autorest: "latest" }),
117
- ...esmDevDependencies,
118
- ...cjsDevDependencies,
119
- };
120
- }
121
14
  //# sourceMappingURL=azure-package-common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"azure-package-common.js","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/azure-package-common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA2B,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAO/F;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAA8B;IACtE,OAAO;QACL,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC;QAC3E,MAAM,EAAE,uBAAuB;QAC/B,OAAO,EAAE,KAAK;QACd,GAAG,qBAAqB,CAAC,MAAM,CAAC;QAChC,GAAG,qBAAqB,CAAC,MAAM,CAAC;KACjC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,EAC1C,MAAM,EACN,UAAU,EACV,YAAY,GACW;IACvB,IAAI,iBAAiB,GAA2B;QAC9C,GAAG,YAAY;QACf,yBAAyB,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QACzE,kBAAkB,EAAE,QAAQ;QAC5B,2BAA2B,EAAE,QAAQ;QACrC,eAAe,EAAE,QAAQ;QACzB,KAAK,EAAE,QAAQ;KAChB,CAAC;IAEF,IAAI,MAAM,EAAE,CAAC;QACX,iBAAiB,GAAG;YAClB,GAAG,iBAAiB;YACpB,iBAAiB,EAAE,QAAQ;YAC3B,yBAAyB,EAAE,QAAQ;SACpC,CAAC;IACJ,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,SAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,UAAU,GACa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C/B,CAAC;AACJ,CAAC;AAED,SAAS,iCAAiC,CAAC,EAAE,UAAU,EAAE,SAAS,EAA0B;IAC1F,IAAI,UAAU,KAAK,KAAK,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,eAAe,GAA2B,EAAE,CAAC;IAEjD,IAAI,SAAS,EAAE,CAAC;QACd,eAAe,GAAG;YAChB,GAAG,eAAe;YAClB,4BAA4B,EAAE,QAAQ;YACtC,2BAA2B,EAAE,QAAQ;YACrC,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;YAChB,8BAA8B,EAAE,QAAQ;YACxC,4BAA4B,EAAE,QAAQ;SACvC,CAAC;IACJ,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,MAA8B;IAC3E,MAAM,kBAAkB,GAAG,iCAAiC,CAAC,MAAM,CAAC,CAAC;IACrE,MAAM,kBAAkB,GAAG,iCAAiC,CAAC,MAAM,CAAC,CAAC;IAErE,MAAM,mBAAmB,GAAG;QAC1B,iBAAiB,EAAE,QAAQ;KAC5B,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,GAAG,+BAA+B,CAAC,MAAM,CAAC;QAC1C,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,mBAAmB,CAAC;QAC5C,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC9D,GAAG,kBAAkB;QACrB,GAAG,kBAAkB;KACtB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"azure-package-common.js","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/azure-package-common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAA+B;IACvE,OAAO;QACL,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC;QAC3E,MAAM,EAAE,uBAAuB;QAC/B,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,CAAC,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,SAAS,CAAC;KACjE,CAAC;AACJ,CAAC"}
@@ -10,22 +10,6 @@ export interface AzureMonorepoInfoConfig extends AzurePackageInfoConfig {
10
10
  export declare function buildAzureMonorepoPackage(config: AzureMonorepoInfoConfig): {
11
11
  "//sampleConfiguration"?: undefined;
12
12
  scripts: {
13
- "update-snippets": string;
14
- build?: undefined;
15
- "test:node"?: undefined;
16
- test?: undefined;
17
- "build:samples": string;
18
- "check-format": string;
19
- clean: string;
20
- "execute:samples": string;
21
- "extract-api": string;
22
- format: string;
23
- "generate:client": string;
24
- "test:browser": string;
25
- "lint:fix": string;
26
- lint: string;
27
- pack: string;
28
- } | {
29
13
  "update-snippets": string;
30
14
  build: string;
31
15
  "test:node": string;
@@ -59,7 +43,6 @@ export declare function buildAzureMonorepoPackage(config: AzureMonorepoInfoConfi
59
43
  playwright: string;
60
44
  typescript: string;
61
45
  vitest: string;
62
- autorest?: string | undefined;
63
46
  "@azure-tools/test-credential": string;
64
47
  "@azure-tools/test-recorder": string;
65
48
  "@azure-tools/test-utils-vitest": string;
@@ -78,7 +61,6 @@ export declare function buildAzureMonorepoPackage(config: AzureMonorepoInfoConfi
78
61
  dotenv?: undefined;
79
62
  playwright?: undefined;
80
63
  vitest?: undefined;
81
- autorest?: string | undefined;
82
64
  "@azure-tools/test-credential": string;
83
65
  "@azure-tools/test-recorder": string;
84
66
  "@azure-tools/test-utils-vitest": string;
@@ -99,22 +81,6 @@ export declare function buildAzureMonorepoPackage(config: AzureMonorepoInfoConfi
99
81
  apiRefLink: string;
100
82
  };
101
83
  scripts: {
102
- "update-snippets": string;
103
- build?: undefined;
104
- "test:node"?: undefined;
105
- test?: undefined;
106
- "build:samples": string;
107
- "check-format": string;
108
- clean: string;
109
- "execute:samples": string;
110
- "extract-api": string;
111
- format: string;
112
- "generate:client": string;
113
- "test:browser": string;
114
- "lint:fix": string;
115
- lint: string;
116
- pack: string;
117
- } | {
118
84
  "update-snippets": string;
119
85
  build: string;
120
86
  "test:node": string;
@@ -148,7 +114,6 @@ export declare function buildAzureMonorepoPackage(config: AzureMonorepoInfoConfi
148
114
  playwright: string;
149
115
  typescript: string;
150
116
  vitest: string;
151
- autorest?: string | undefined;
152
117
  "@azure-tools/test-credential": string;
153
118
  "@azure-tools/test-recorder": string;
154
119
  "@azure-tools/test-utils-vitest": string;
@@ -167,7 +132,6 @@ export declare function buildAzureMonorepoPackage(config: AzureMonorepoInfoConfi
167
132
  dotenv?: undefined;
168
133
  playwright?: undefined;
169
134
  vitest?: undefined;
170
- autorest?: string | undefined;
171
135
  "@azure-tools/test-credential": string;
172
136
  "@azure-tools/test-recorder": string;
173
137
  "@azure-tools/test-utils-vitest": string;
@@ -202,7 +166,6 @@ export declare function getAzureMonorepoDependencies(config: AzureMonorepoInfoCo
202
166
  playwright: string;
203
167
  typescript: string;
204
168
  vitest: string;
205
- autorest?: string | undefined;
206
169
  "@azure-tools/test-credential": string;
207
170
  "@azure-tools/test-recorder": string;
208
171
  "@azure-tools/test-utils-vitest": string;
@@ -221,7 +184,6 @@ export declare function getAzureMonorepoDependencies(config: AzureMonorepoInfoCo
221
184
  dotenv?: undefined;
222
185
  playwright?: undefined;
223
186
  vitest?: undefined;
224
- autorest?: string | undefined;
225
187
  "@azure-tools/test-credential": string;
226
188
  "@azure-tools/test-recorder": string;
227
189
  "@azure-tools/test-utils-vitest": string;
@@ -1 +1 @@
1
- {"version":3,"file":"build-azure-monorepo-package.d.ts","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,2BAA2B,CAAC;AAG9F,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqD3E;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAsBhG"}
1
+ {"version":3,"file":"build-azure-monorepo-package.d.ts","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,2BAA2B,CAAC;AAG9F,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkD3E;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAsBhG"}
@@ -61,9 +61,6 @@ export function getAzureMonorepoDependencies(config) {
61
61
  eslint: "catalog:",
62
62
  prettier: "catalog:",
63
63
  rimraf: "catalog:",
64
- ...(config.specSource === "Swagger" && {
65
- autorest: "catalog:",
66
- }),
67
64
  ...testDeps,
68
65
  },
69
66
  };
@@ -110,17 +107,8 @@ function getSampleMetadata({ name, version, withSamples }) {
110
107
  },
111
108
  };
112
109
  }
113
- function addSwaggerMetadata(metadata, specSource) {
114
- if (specSource !== "Swagger") {
115
- return;
116
- }
117
- metadata["constantPaths"].push({
118
- path: "swagger/README.md",
119
- prefix: "package-version",
120
- });
121
- }
122
110
  function getAzureMonorepoScripts(config) {
123
- const esmScripts = getEsmScripts(config);
111
+ const esmScripts = getEsmScripts();
124
112
  const skipLinting = config.azureArm && config.isModularLibrary;
125
113
  const buildSampleScripts = config.azureArm
126
114
  ? "tsc -p config/tsconfig.samples.json && dev-tool samples publish -f"
@@ -144,10 +132,7 @@ function getAzureMonorepoScripts(config) {
144
132
  "update-snippets": "dev-tool run update-snippets",
145
133
  };
146
134
  }
147
- function getEsmScripts({ moduleKind }) {
148
- if (moduleKind !== "esm") {
149
- return {};
150
- }
135
+ function getEsmScripts() {
151
136
  return {
152
137
  build: "npm run clean && dev-tool run build-package && dev-tool run extract-api",
153
138
  "test:node": "dev-tool run test:vitest",
@@ -159,7 +144,6 @@ function getMetadataInfo(config) {
159
144
  constantPaths: [],
160
145
  };
161
146
  const paths = config.isModularLibrary ? config.clientContextPaths : config.clientFilePaths;
162
- addSwaggerMetadata(metadata, config.specSource);
163
147
  for (const path of paths ?? []) {
164
148
  metadata["constantPaths"].push({
165
149
  path: path,
@@ -1 +1 @@
1
- {"version":3,"file":"build-azure-monorepo-package.js","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA0B,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAQpF;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAA+B;IACvE,MAAM,WAAW,GAAG;QAClB,GAAG,2BAA2B,CAAC,MAAM,CAAC;QACtC,GAAG,4BAA4B,CAAC,MAAM,CAAC;QACvC,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC;QACxC,GAAG,iBAAiB,CAAC,MAAM,CAAC;KAC7B,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,MAA+B;IAC1E,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAEnD,4CAA4C;IAC5C,MAAM,WAAW,GAAG;QAClB,GAAG,YAAY;QACf,yBAAyB,EAAE,QAAQ;QACnC,GAAG,CAAC,MAAM,IAAI;YACZ,yBAAyB,EAAE,QAAQ;SACpC,CAAC;QACF,kBAAkB,EAAE,QAAQ;QAC5B,GAAG,CAAC,MAAM,IAAI;YACZ,iBAAiB,EAAE,QAAQ;SAC5B,CAAC;QACF,2BAA2B,EAAE,SAAS;QACtC,kBAAkB,EAAE,SAAS;QAC7B,eAAe,EAAE,QAAQ;QACzB,KAAK,EAAE,QAAQ;KAChB,CAAC;IAEF,MAAM,QAAQ,GAAG,SAAS;QACxB,CAAC,CAAC;YACE,4BAA4B,EAAE,iBAAiB;YAC/C,2BAA2B,EAAE,iBAAiB;YAC9C,MAAM,EAAE,iBAAiB;YACzB,UAAU,EAAE,iBAAiB;YAC7B,UAAU,EAAE,UA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AE,eAAe;SACxB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"build-azure-monorepo-package.js","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA0B,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAQpF;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAA+B;IACvE,MAAM,WAAW,GAAG;QAClB,GAAG,2BAA2B,CAAC,MAAM,CAAC;QACtC,GAAG,4BAA4B,CAAC,MAAM,CAAC;QACvC,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC;QACxC,GAAG,iBAAiB,CAAC,MAAM,CAAC;KAC7B,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,MAA+B;IAC1E,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAEnD,4CAA4C;IAC5C,MAAM,WAAW,GAAG;QAClB,GAAG,YAAY;QACf,yBAAyB,EAAE,QAAQ;QACnC,GAAG,CAAC,MAAM,IAAI;YACZ,yBAAyB,EAAE,QAAQ;SACpC,CAAC;QACF,kBAAkB,EAAE,QAAQ;QAC5B,GAAG,CAAC,MAAM,IAAI;YACZ,iBAAiB,EAAE,QAAQ;SAC5B,CAAC;QACF,2BAA2B,EAAE,SAAS;QACtC,kBAAkB,EAAE,SAAS;QAC7B,eAAe,EAAE,QAAQ;QACzB,KAAK,EAAE,QAAQ;KAChB,CAAC;IAEF,MAAM,QAAQ,GAAG,SAAS;QACxB,CAAC,CAAC;YACE,4BAA4B,EAAE,iBAAiB;YAC/C,2BAA2B,EAAE,iBAAiB;YAC9C,MA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EAAE,cAAc;QACjC,cAAc,EAAE,oCAAoC;QACpD,UAAU,EAAE,WAAW;YACrB,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,oEAAoE;QACxE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,8BAA8B;QACnE,IAAI,EAAE,gBAAgB;QACtB,GAAG,UAAU;QACb,iBAAiB,EAAE,8BAA8B;KAClD,CAAC;AACJ,CAAC;AAED,SAAS,aAAa;IACpB,OAAO;QACL,KAAK,EAAE,yEAAyE;QAChF,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,8DAA8D;KACrE,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,MAA+B;IACtD,MAAM,QAAQ,GAAwB;QACpC,aAAa,EAAE,EAAE;KAClB,CAAC;IACF,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC;IAC3F,KAAK,MAAM,IAAI,IAAI,KAAK,IAAI,EAAE,EAAE,CAAC;QAC/B,QAAQ,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC;YAC7B,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,eAAe;SACxB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -3,17 +3,15 @@ export interface PackageCommonInfoConfig {
3
3
  nameWithoutScope?: string;
4
4
  version: string;
5
5
  description: string;
6
- moduleKind: "esm" | "cjs";
7
6
  withTests: boolean;
8
7
  withSamples: boolean;
9
8
  exports?: Record<string, any>;
10
9
  dependencies?: Record<string, string>;
11
10
  azureArm?: boolean;
12
11
  isModularLibrary?: boolean;
13
- azureSdkForJs?: boolean;
14
12
  /**
15
13
  * When true, generates React Native build targets (dist/react-native, exports condition).
16
- * Defaults to false. Only applicable when azureSdkForJs is true.
14
+ * Defaults to false.
17
15
  */
18
16
  generateReactNativeTarget?: boolean;
19
17
  }
@@ -21,9 +19,6 @@ export interface PackageCommonInfoConfig {
21
19
  * Common package.json config for a package.
22
20
  */
23
21
  export declare function getPackageCommonInfo(config: PackageCommonInfoConfig): {
24
- main?: string | undefined;
25
- module?: string | undefined;
26
- types?: string | undefined;
27
22
  name: string;
28
23
  version: string;
29
24
  description: string;
@@ -33,24 +28,12 @@ export declare function getPackageCommonInfo(config: PackageCommonInfoConfig): {
33
28
  sideEffects: boolean;
34
29
  autoPublish: boolean;
35
30
  };
36
- export declare function getCommonPackageDevDependencies(config: PackageCommonInfoConfig): {
37
- tshy?: undefined;
38
- "@types/node": string;
39
- eslint: string;
40
- typescript: string;
41
- } | {
42
- tshy: string;
43
- "@types/node": string;
44
- eslint: string;
45
- typescript: string;
46
- };
47
31
  /**
48
32
  * Resolve source-level exports to dist-level exports for warp.
49
33
  * Converts { ".": "./src/index.ts" } to the nested condition map with
50
34
  * browser/import/require conditions pointing to dist/ paths.
51
35
  */
52
36
  export declare function resolveWarpExports(sourceExports?: Record<string, any>, includeReactNative?: boolean): Record<string, any>;
53
- export declare function getTshyConfig(config: PackageCommonInfoConfig): Record<string, any>;
54
37
  export declare function getCommonPackageScripts(): {
55
38
  clean: string;
56
39
  "extract-api": string;
@@ -1 +1 @@
1
- {"version":3,"file":"package-common.d.ts","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/package-common.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,KAAK,GAAG,KAAK,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,uBAAuB;;;;;;;;;;;;EAcnE;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,uBAAuB;;;;;;;;;;EAO9E;AAkGD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnC,kBAAkB,CAAC,EAAE,OAAO,GAC3B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA8CrB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,uBAAuB,uBAiB5D;AAED,wBAAgB,uBAAuB;;;;;;EAQtC"}
1
+ {"version":3,"file":"package-common.d.ts","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/package-common.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,uBAAuB;;;;;;;;;EAcnE;AAmCD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnC,kBAAkB,CAAC,EAAE,OAAO,GAC3B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA8CrB;AAED,wBAAgB,uBAAuB;;;;;;EAQtC"}
@@ -17,89 +17,33 @@ export function getPackageCommonInfo(config) {
17
17
  ...getEntryPointInformation(config),
18
18
  };
19
19
  }
20
- export function getCommonPackageDevDependencies(config) {
21
- return {
22
- "@types/node": "^20.0.0",
23
- eslint: "^9.9.0",
24
- typescript: "~5.8.2",
25
- ...getEsmDevDependencies(config),
26
- };
27
- }
28
- function getEsmDevDependencies({ moduleKind, azureSdkForJs }) {
29
- if (moduleKind !== "esm") {
30
- return {};
31
- }
32
- // Azure monorepo packages use warp (invoked via dev-tool), no tshy needed
33
- if (azureSdkForJs) {
34
- return {};
35
- }
36
- return {
37
- tshy: "^2.0.0",
38
- };
39
- }
40
20
  function getEntryPointInformation(config) {
41
- return {
42
- ...getCjsEntrypointInformation(config),
43
- ...getEsmEntrypointInformation(config),
44
- };
45
- }
46
- function getCjsEntrypointInformation({ name, nameWithoutScope, moduleKind, withTests, withSamples, }) {
47
- if (moduleKind !== "cjs") {
48
- return;
49
- }
50
- const types = withTests || withSamples
51
- ? `./types/src/${nameWithoutScope ?? name}.d.ts`
52
- : `./types/${nameWithoutScope ?? name}.d.ts`;
53
- const main = withTests || withSamples ? "dist/src/index.js" : "dist/index.js";
54
- return {
55
- main,
56
- module: withTests || withSamples ? "./dist-esm/src/index.js" : "./dist-esm/index.js",
57
- types,
58
- };
59
- }
60
- function getEsmEntrypointInformation(config) {
61
- if (config.moduleKind !== "esm") {
62
- return;
63
- }
64
- // Azure monorepo packages use warp instead of tshy
65
- if (config.azureSdkForJs) {
66
- const result = {
67
- type: "module",
68
- main: "./dist/commonjs/index.js",
69
- module: "./dist/esm/index.js",
70
- types: "./dist/commonjs/index.d.ts",
71
- browser: "./dist/browser/index.js",
72
- imports: {
73
- "#platform/*": {
74
- browser: "./src/*-browser.mts",
75
- default: "./src/*.ts",
76
- },
77
- },
78
- exports: resolveWarpExports(config.exports, config.generateReactNativeTarget),
79
- };
80
- if (config.generateReactNativeTarget) {
81
- result["react-native"] = "./dist/react-native/index.js";
82
- result["imports"]["#platform/*"]["react-native"] =
83
- "./src/*-react-native.mts";
84
- // Reorder so react-native comes before default
85
- const importsEntry = result["imports"]["#platform/*"];
86
- result["imports"]["#platform/*"] = {
87
- browser: importsEntry["browser"],
88
- "react-native": importsEntry["react-native"],
89
- default: importsEntry["default"],
90
- };
91
- }
92
- return result;
93
- }
94
- // Non-monorepo packages use tshy which manages polyfill resolution
95
- // via esmDialects — do NOT add imports here.
21
+ // Azure monorepo packages use warp.
96
22
  const result = {
97
- tshy: getTshyConfig(config),
98
23
  type: "module",
24
+ main: "./dist/commonjs/index.js",
25
+ module: "./dist/esm/index.js",
26
+ types: "./dist/commonjs/index.d.ts",
99
27
  browser: "./dist/browser/index.js",
28
+ imports: {
29
+ "#platform/*": {
30
+ browser: "./src/*-browser.mts",
31
+ default: "./src/*.ts",
32
+ },
33
+ },
34
+ exports: resolveWarpExports(config.exports, config.generateReactNativeTarget),
100
35
  };
101
36
  if (config.generateReactNativeTarget) {
102
37
  result["react-native"] = "./dist/react-native/index.js";
38
+ result["imports"]["#platform/*"]["react-native"] =
39
+ "./src/*-react-native.mts";
40
+ // Reorder so react-native comes before default
41
+ const importsEntry = result["imports"]["#platform/*"];
42
+ result["imports"]["#platform/*"] = {
43
+ browser: importsEntry["browser"],
44
+ "react-native": importsEntry["react-native"],
45
+ default: importsEntry["default"],
46
+ };
103
47
  }
104
48
  return result;
105
49
  }
@@ -147,24 +91,6 @@ export function resolveWarpExports(sourceExports, includeReactNative) {
147
91
  }
148
92
  return exports;
149
93
  }
150
- export function getTshyConfig(config) {
151
- const { exports = {} } = config;
152
- const esmDialects = config.generateReactNativeTarget ? ["browser", "react-native"] : ["browser"];
153
- const tshyConfig = {
154
- exports: {
155
- "./package.json": "./package.json",
156
- ".": "./src/index.ts",
157
- ...exports,
158
- },
159
- dialects: ["esm", "commonjs"],
160
- esmDialects,
161
- selfLink: false,
162
- };
163
- if (config.azureSdkForJs) {
164
- tshyConfig["project"] = "../../../tsconfig.src.build.json";
165
- }
166
- return tshyConfig;
167
- }
168
94
  export function getCommonPackageScripts() {
169
95
  return {
170
96
  clean: "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
@@ -1 +1 @@
1
- {"version":3,"file":"package-common.js","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/package-common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAsBlC;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAA+B;IAClE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAE9C,OAAO;QACL,IAAI;QACJ,OAAO;QACP,WAAW;QACX,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;SACjB;QACD,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,KAAK;QAClB,GAAG,wBAAwB,CAAC,MAAM,CAAC;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,MAA+B;IAC7E,OAAO;QACL,aAAa,EAAE,SAAS;QACxB,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,QAAQ;QACpB,GAAG,qBAAqB,CAAC,MAAM,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,EAAE,UAAU,EAAE,aAAa,EAA2B;IACnF,IAAI,UAAU,KAAK,KAAK,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,0EAA0E;IAC1E,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACZ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ACrB,GAAG,OAAO;SACX;QACD,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;QAC7B,WAAW;QACX,QAAQ,EAAE,KAAK;KAChB,CAAC;IACF,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;QACzB,UAAU,CAAC,SAAS,CAAC,GAAG,kCAAkC,CAAC;IAC7D,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,OAAO;QACL,KAAK,EAAE,2EAA2E;QAClF,aAAa,EAAE,+DAA+D;QAC9E,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,4CAA4C;QAClD,UAAU,EAAE,kFAAkF;KAC/F,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"package-common.js","sourceRoot":"","sources":["../../../../../src/rlc-common/metadata/package-json/package-common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAoBlC;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAA+B;IAClE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAE9C,OAAO;QACL,IAAI;QACJ,OAAO;QACP,WAAW;QACX,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;SACjB;QACD,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,KAAK;QAClB,GAAG,wBAAwB,CAAC,MAAM,CAAC;KACpC,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAAC,MAA+B;IAC/D,oCAAoC;IACpC,MAAM,MAAM,GAAwB;QAClC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,0BAA0B;QAChC,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,4BAA4B;QACnC,OAAO,EAAE,yBAAyB;QAClC,OAAO,EAAE;YACP,aAAa,EAAE;gBACb,OAAO,EAAE,qBAAqB;gBAC9B,OAAO,EAAE,YAAY;aACI;SAC5B;QACD,OAAO,EAAE,kBAAkB,CAA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;gBACP,KAAK,EAAE,kBAAkB,OAAO,OAAO;gBACvC,OAAO,EAAE,kBAAkB,OAAO,KAAK;aACxC;SACF,CAAC;QAEF,IAAI,kBAAkB,EAAE,CAAC;YACvB,WAAW,CAAC,cAAc,CAAC,GAAG;gBAC5B,KAAK,EAAE,uBAAuB,OAAO,OAAO;gBAC5C,OAAO,EAAE,uBAAuB,OAAO,KAAK;aAC7C,CAAC;QACJ,CAAC;QAED,WAAW,CAAC,QAAQ,CAAC,GAAG;YACtB,KAAK,EAAE,cAAc,OAAO,OAAO;YACnC,OAAO,EAAE,cAAc,OAAO,KAAK;SACpC,CAAC;QAEF,WAAW,CAAC,SAAS,CAAC,GAAG;YACvB,KAAK,EAAE,mBAAmB,OAAO,OAAO;YACxC,OAAO,EAAE,mBAAmB,OAAO,KAAK;SACzC,CAAC;QAEF,OAAO,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,OAAO;QACL,KAAK,EAAE,2EAA2E;QAClF,aAAa,EAAE,+DAA+D;QAC9E,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,4CAA4C;QAClD,UAAU,EAAE,kFAAkF;KAC/F,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const pollingContent = "\nimport type { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n} from \"@azure/core-lro\";\n import { createHttpPoller } from \"@azure/core-lro\";\n{{#if clientOverload}}\nimport type {\n {{#each importedResponses}}\n {{this}},\n {{/each}}\n} from \"./responses{{#if isEsm}}.js{{/if}}\";\n{{/if}}\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<\n TState extends OperationState<TResult>,\n TResult\n> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: {\n abortSignal?: AbortSignalLike;\n }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\n{{#if clientOverload}}\n{{#each overloadMap}}\nexport async function getLongRunningPoller<\n TResult extends {{ this.finalResponses }}\n>(\n client: Client,\n initialResponse: {{ this.initialResponses }},\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\n{{/each}}\n{{/if}}\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {}\n ): Promise<SimplePollerLike<OperationState<TResult>, TResult>> { \n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: { abortSignal?: AbortSignalLike }\n ) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] =\n initialResponse.request.url;\n return lroResponse;\n }\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n const httpPoller = createHttpPoller(poller, options);\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\"\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\"\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted\n };\n return simplePoller;\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(\n `Status code of the response is not a number. Value: ${response.status}`\n );\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body\n }\n };\n}\n";
1
+ export declare const pollingContent = "\nimport type { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n} from \"@azure/core-lro\";\n import { createHttpPoller } from \"@azure/core-lro\";\n{{#if clientOverload}}\nimport type {\n {{#each importedResponses}}\n {{this}},\n {{/each}}\n} from \"./responses.js\";\n{{/if}}\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<\n TState extends OperationState<TResult>,\n TResult\n> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: {\n abortSignal?: AbortSignalLike;\n }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\n{{#if clientOverload}}\n{{#each overloadMap}}\nexport async function getLongRunningPoller<\n TResult extends {{ this.finalResponses }}\n>(\n client: Client,\n initialResponse: {{ this.initialResponses }},\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\n{{/each}}\n{{/if}}\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {}\n ): Promise<SimplePollerLike<OperationState<TResult>, TResult>> { \n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: { abortSignal?: AbortSignalLike }\n ) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] =\n initialResponse.request.url;\n return lroResponse;\n }\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n const httpPoller = createHttpPoller(poller, options);\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\"\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\"\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted\n };\n return simplePoller;\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(\n `Status code of the response is not a number. Value: ${response.status}`\n );\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body\n }\n };\n}\n";
2
2
  //# sourceMappingURL=polling-content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"polling-content.d.ts","sourceRoot":"","sources":["../../../../src/rlc-common/static/polling-content.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,ygPA6N1B,CAAC"}
1
+ {"version":3,"file":"polling-content.d.ts","sourceRoot":"","sources":["../../../../src/rlc-common/static/polling-content.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,q/OA6N1B,CAAC"}
@@ -16,7 +16,7 @@ import type {
16
16
  {{#each importedResponses}}
17
17
  {{this}},
18
18
  {{/each}}
19
- } from "./responses{{#if isEsm}}.js{{/if}}";
19
+ } from "./responses.js";
20
20
  {{/if}}
21
21
 
22
22
  /**
@@ -1,5 +1,5 @@
1
1
  import { RLCModel } from "../interfaces.js";
2
- export declare function buildRecordedClientFile(model: RLCModel): {
2
+ export declare function buildRecordedClientFile(_model: RLCModel): {
3
3
  path: string;
4
4
  content: string;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"build-recorded-client.d.ts","sourceRoot":"","sources":["../../../../src/rlc-common/test/build-recorded-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,QAAQ;;;EAWtD"}
1
+ {"version":3,"file":"build-recorded-client.d.ts","sourceRoot":"","sources":["../../../../src/rlc-common/test/build-recorded-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,QAAQ;;;EAQvD"}