@microsoft/typespec-msgraph 0.0.1-Preview.16 → 0.0.1-Preview.17
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.
- package/dist/src/components/operation-element.js +1 -1
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/property-element.js +1 -1
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/decorators/index.d.ts +2 -0
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +2 -0
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/limited-charset.d.ts +9 -0
- package/dist/src/decorators/limited-charset.d.ts.map +1 -0
- package/dist/src/decorators/limited-charset.js +13 -0
- package/dist/src/decorators/limited-charset.js.map +1 -0
- package/dist/src/decorators/workload-namespace.d.ts +10 -0
- package/dist/src/decorators/workload-namespace.d.ts.map +1 -0
- package/dist/src/decorators/workload-namespace.js +19 -0
- package/dist/src/decorators/workload-namespace.js.map +1 -0
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +26 -20
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/model.d.ts +1 -0
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +5 -3
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/namespace.js +3 -3
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +1 -0
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +3 -2
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/lib.d.ts +2 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +1 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/src/rules/computed.d.ts +0 -2
- package/dist/src/rules/computed.d.ts.map +1 -1
- package/dist/src/rules/computed.js +5 -8
- package/dist/src/rules/computed.js.map +1 -1
- package/dist/src/rules/filter.d.ts.map +1 -1
- package/dist/src/rules/filter.js +15 -3
- package/dist/src/rules/filter.js.map +1 -1
- package/dist/src/rules/index.d.ts +1 -0
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +1 -0
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/limited-charset.d.ts +3 -0
- package/dist/src/rules/limited-charset.d.ts.map +1 -0
- package/dist/src/rules/limited-charset.js +42 -0
- package/dist/src/rules/limited-charset.js.map +1 -0
- package/dist/src/rules/namespace.d.ts +1 -0
- package/dist/src/rules/namespace.d.ts.map +1 -1
- package/dist/src/rules/namespace.js +21 -0
- package/dist/src/rules/namespace.js.map +1 -1
- package/dist/src/rules/required-for-create.d.ts.map +1 -1
- package/dist/src/rules/required-for-create.js +3 -2
- package/dist/src/rules/required-for-create.js.map +1 -1
- package/dist/src/utils.d.ts +3 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +81 -1
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts.map +1 -1
- package/dist/src/validate.js +2 -0
- package/dist/src/validate.js.map +1 -1
- package/lib/decorators.tsp +20 -6
- package/package.json +1 -1
package/lib/decorators.tsp
CHANGED
|
@@ -225,18 +225,25 @@ extern dec graphRoute(
|
|
|
225
225
|
);
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
|
-
* `@
|
|
228
|
+
* `@immutable` - mark a model property as immutable.
|
|
229
229
|
*
|
|
230
|
-
* `
|
|
230
|
+
* `@immutable` can only be applied to model properties.
|
|
231
231
|
*/
|
|
232
|
-
extern dec
|
|
232
|
+
extern dec immutable(target: ModelProperty);
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* `@
|
|
235
|
+
* `@limitedCharset` - indicates that the full unicode character set is not supported by the underlying back-end service that implements the API.
|
|
236
236
|
*
|
|
237
|
-
* `@
|
|
237
|
+
* `@limitedCharset` can only be applied to string models properties, string parameters or their collections.
|
|
238
238
|
*/
|
|
239
|
-
extern dec
|
|
239
|
+
extern dec limitedCharset(target: ModelProperty);
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* `@media` - indicates that an `@entity` model is a media entity.
|
|
243
|
+
*
|
|
244
|
+
* `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
|
|
245
|
+
*/
|
|
246
|
+
extern dec media(target: Model, ...mediaTypes: valueof string[]);
|
|
240
247
|
|
|
241
248
|
/**
|
|
242
249
|
* `@ownerless` - mark an interface as ownerless.
|
|
@@ -411,6 +418,13 @@ extern dec term(
|
|
|
411
418
|
*/
|
|
412
419
|
extern dec top(target: Operation);
|
|
413
420
|
|
|
421
|
+
/**
|
|
422
|
+
* `@workloadNamespace` - overrideds the namespace to be used in generating CSDL output for all elements contained within the namespace
|
|
423
|
+
*
|
|
424
|
+
* `@workloadNamespace` can only be applied to namespaces.
|
|
425
|
+
*/
|
|
426
|
+
extern dec workloadNamespace(target: Namespace, name: valueof string);
|
|
427
|
+
|
|
414
428
|
/**
|
|
415
429
|
* `@writeOnly` - mark a model property as writeOnly property
|
|
416
430
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/typespec-msgraph",
|
|
3
|
-
"version": "0.0.1-Preview.
|
|
3
|
+
"version": "0.0.1-Preview.17",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec for Microsoft Graph provides a description of the Microsoft Graph APIs. It is used for generating API description languages, client and service code, documentation, and other assets.",
|
|
6
6
|
"homepage": "https://github.com/microsoftgraph/typespec-msgraph",
|