Skip to content

Commit 3b5a635

Browse files
qiaozhaQiaoqiao Zhang
andauthored
Sdk package methods adoption (#2943)
* sdkPackage-methods-adoption * remove client server * reserve work * sdk client type * sdk client type * Modular Emitter Options * encode and format etc * add initial network analytics generation * hierarchies fixes * generate subscriptionId at client level * subscription id fix * fix options and headers map * create client fix * fix paging return type * restore poller fix * fix deserialize func return type * fix unit test * to not include extra body parameters * fix serialize and deser for spread * fix parameter name normalization * Update packages/typespec-ts/test/modularUnit/scenarios/operations/cookieParam/ignoreCookieParam.md * fix encoding * fix collection format * fix paging item name and next link name * fix path constant param * remove some unnecessary as any * fix nullable param serialize and deserialize * fix constant content-type header and optional spread body ser/deser * add option? * fix content type * fix endpoint request url * fix hierarchies * fix a bunch issues in smoke test * fix endpoint undefined case * fix default encoding as base64 * fix unit test * fix paging helper missing * fix restorePollingHelper non lro deser map * reserve work * fix hierarchies in modular * fix group name empty string * fix unit test * fix modular integration test * fix operation name normalize * remove api version and send api version when build request * fix server integration test * fix parameter order change * fix namespace renamed * rlc common format * fix model being used in both spread and unspread operations * reserve work * fix spread ser/deser * fix createContext with fixed enum param * fix path api version has default value * fix param name and operation name conflict * fix content type and optional params * fix revert bytes logic * revert api version as context property change * add apiVersion in the client level but remove the policy in operation level if not query * fix hasCollectionFormat * fix removePolicy and datetime nullable ser/der * fix ci * clean up unused modular models code * fix ci * fix ci * fix ci * resolve comments * fix paging in unbranding * revert client method map * to not expose contentType and accept as parameter or optional parameter and spread optional headers * remove optional contentType with guessed value for optional body --------- Co-authored-by: Qiaoqiao Zhang <qiaoqiaozhang@Qiaoqiaos-MacBook-Pro.local>
1 parent 8210d5b commit 3b5a635

334 files changed

Lines changed: 18701 additions & 17956 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/typespec-test/test/NetworkAnalytics.Management/generated/typespec-ts/sdk/test/arm-test/package.json

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"./package.json": "./package.json",
1313
".": "./src/index.ts",
1414
"./models": "./src/models/index.ts",
15-
"./api/operations": "./src/api/operations/index.ts",
16-
"./api/dataProductsCatalogs": "./src/api/dataProductsCatalogs/index.ts",
15+
"./api/dataProducts": "./src/api/dataProducts/index.ts",
1716
"./api/dataTypes": "./src/api/dataTypes/index.ts",
18-
"./api/dataProducts": "./src/api/dataProducts/index.ts"
17+
"./api/dataProductsCatalogs": "./src/api/dataProductsCatalogs/index.ts",
18+
"./api/operations": "./src/api/operations/index.ts"
1919
},
2020
"dialects": [
2121
"esm",
@@ -127,40 +127,22 @@
127127
"default": "./dist/commonjs/models/index.js"
128128
}
129129
},
130-
"./api/operations": {
131-
"browser": {
132-
"types": "./dist/browser/api/operations/index.d.ts",
133-
"default": "./dist/browser/api/operations/index.js"
134-
},
135-
"react-native": {
136-
"types": "./dist/react-native/api/operations/index.d.ts",
137-
"default": "./dist/react-native/api/operations/index.js"
138-
},
139-
"import": {
140-
"types": "./dist/esm/api/operations/index.d.ts",
141-
"default": "./dist/esm/api/operations/index.js"
142-
},
143-
"require": {
144-
"types": "./dist/commonjs/api/operations/index.d.ts",
145-
"default": "./dist/commonjs/api/operations/index.js"
146-
}
147-
},
148-
"./api/dataProductsCatalogs": {
130+
"./api/dataProducts": {
149131
"browser": {
150-
"types": "./dist/browser/api/dataProductsCatalogs/index.d.ts",
151-
"default": "./dist/browser/api/dataProductsCatalogs/index.js"
132+
"types": "./dist/browser/api/dataProducts/index.d.ts",
133+
"default": "./dist/browser/api/dataProducts/index.js"
152134
},
153135
"react-native": {
154-
"types": "./dist/react-native/api/dataProductsCatalogs/index.d.ts",
155-
"default": "./dist/react-native/api/dataProductsCatalogs/index.js"
136+
"types": "./dist/react-native/api/dataProducts/index.d.ts",
137+
"default": "./dist/react-native/api/dataProducts/index.js"
156138
},
157139
"import": {
158-
"types": "./dist/esm/api/dataProductsCatalogs/index.d.ts",
159-
"default": "./dist/esm/api/dataProductsCatalogs/index.js"
140+
"types": "./dist/esm/api/dataProducts/index.d.ts",
141+
"default": "./dist/esm/api/dataProducts/index.js"
160142
},
161143
"require": {
162-
"types": "./dist/commonjs/api/dataProductsCatalogs/index.d.ts",
163-
"default": "./dist/commonjs/api/dataProductsCatalogs/index.js"
144+
"types": "./dist/commonjs/api/dataProducts/index.d.ts",
145+
"default": "./dist/commonjs/api/dataProducts/index.js"
164146
}
165147
},
166148
"./api/dataTypes": {
@@ -181,22 +163,40 @@
181163
"default": "./dist/commonjs/api/dataTypes/index.js"
182164
}
183165
},
184-
"./api/dataProducts": {
166+
"./api/dataProductsCatalogs": {
185167
"browser": {
186-
"types": "./dist/browser/api/dataProducts/index.d.ts",
187-
"default": "./dist/browser/api/dataProducts/index.js"
168+
"types": "./dist/browser/api/dataProductsCatalogs/index.d.ts",
169+
"default": "./dist/browser/api/dataProductsCatalogs/index.js"
188170
},
189171
"react-native": {
190-
"types": "./dist/react-native/api/dataProducts/index.d.ts",
191-
"default": "./dist/react-native/api/dataProducts/index.js"
172+
"types": "./dist/react-native/api/dataProductsCatalogs/index.d.ts",
173+
"default": "./dist/react-native/api/dataProductsCatalogs/index.js"
192174
},
193175
"import": {
194-
"types": "./dist/esm/api/dataProducts/index.d.ts",
195-
"default": "./dist/esm/api/dataProducts/index.js"
176+
"types": "./dist/esm/api/dataProductsCatalogs/index.d.ts",
177+
"default": "./dist/esm/api/dataProductsCatalogs/index.js"
196178
},
197179
"require": {
198-
"types": "./dist/commonjs/api/dataProducts/index.d.ts",
199-
"default": "./dist/commonjs/api/dataProducts/index.js"
180+
"types": "./dist/commonjs/api/dataProductsCatalogs/index.d.ts",
181+
"default": "./dist/commonjs/api/dataProductsCatalogs/index.js"
182+
}
183+
},
184+
"./api/operations": {
185+
"browser": {
186+
"types": "./dist/browser/api/operations/index.d.ts",
187+
"default": "./dist/browser/api/operations/index.js"
188+
},
189+
"react-native": {
190+
"types": "./dist/react-native/api/operations/index.d.ts",
191+
"default": "./dist/react-native/api/operations/index.js"
192+
},
193+
"import": {
194+
"types": "./dist/esm/api/operations/index.d.ts",
195+
"default": "./dist/esm/api/operations/index.js"
196+
},
197+
"require": {
198+
"types": "./dist/commonjs/api/operations/index.d.ts",
199+
"default": "./dist/commonjs/api/operations/index.js"
200200
}
201201
}
202202
},

0 commit comments

Comments
 (0)