@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.
Files changed (64) hide show
  1. package/dist/src/components/operation-element.js +1 -1
  2. package/dist/src/components/operation-element.js.map +1 -1
  3. package/dist/src/components/property-element.js +1 -1
  4. package/dist/src/components/property-element.js.map +1 -1
  5. package/dist/src/decorators/index.d.ts +2 -0
  6. package/dist/src/decorators/index.d.ts.map +1 -1
  7. package/dist/src/decorators/index.js +2 -0
  8. package/dist/src/decorators/index.js.map +1 -1
  9. package/dist/src/decorators/limited-charset.d.ts +9 -0
  10. package/dist/src/decorators/limited-charset.d.ts.map +1 -0
  11. package/dist/src/decorators/limited-charset.js +13 -0
  12. package/dist/src/decorators/limited-charset.js.map +1 -0
  13. package/dist/src/decorators/workload-namespace.d.ts +10 -0
  14. package/dist/src/decorators/workload-namespace.d.ts.map +1 -0
  15. package/dist/src/decorators/workload-namespace.js +19 -0
  16. package/dist/src/decorators/workload-namespace.js.map +1 -0
  17. package/dist/src/entities/annotations.d.ts.map +1 -1
  18. package/dist/src/entities/annotations.js +26 -20
  19. package/dist/src/entities/annotations.js.map +1 -1
  20. package/dist/src/entities/model.d.ts +1 -0
  21. package/dist/src/entities/model.d.ts.map +1 -1
  22. package/dist/src/entities/model.js +5 -3
  23. package/dist/src/entities/model.js.map +1 -1
  24. package/dist/src/entities/namespace.js +3 -3
  25. package/dist/src/entities/namespace.js.map +1 -1
  26. package/dist/src/entities/operation.d.ts +1 -0
  27. package/dist/src/entities/operation.d.ts.map +1 -1
  28. package/dist/src/entities/operation.js +3 -2
  29. package/dist/src/entities/operation.js.map +1 -1
  30. package/dist/src/lib.d.ts +2 -0
  31. package/dist/src/lib.d.ts.map +1 -1
  32. package/dist/src/lib.js +1 -0
  33. package/dist/src/lib.js.map +1 -1
  34. package/dist/src/rules/computed.d.ts +0 -2
  35. package/dist/src/rules/computed.d.ts.map +1 -1
  36. package/dist/src/rules/computed.js +5 -8
  37. package/dist/src/rules/computed.js.map +1 -1
  38. package/dist/src/rules/filter.d.ts.map +1 -1
  39. package/dist/src/rules/filter.js +15 -3
  40. package/dist/src/rules/filter.js.map +1 -1
  41. package/dist/src/rules/index.d.ts +1 -0
  42. package/dist/src/rules/index.d.ts.map +1 -1
  43. package/dist/src/rules/index.js +1 -0
  44. package/dist/src/rules/index.js.map +1 -1
  45. package/dist/src/rules/limited-charset.d.ts +3 -0
  46. package/dist/src/rules/limited-charset.d.ts.map +1 -0
  47. package/dist/src/rules/limited-charset.js +42 -0
  48. package/dist/src/rules/limited-charset.js.map +1 -0
  49. package/dist/src/rules/namespace.d.ts +1 -0
  50. package/dist/src/rules/namespace.d.ts.map +1 -1
  51. package/dist/src/rules/namespace.js +21 -0
  52. package/dist/src/rules/namespace.js.map +1 -1
  53. package/dist/src/rules/required-for-create.d.ts.map +1 -1
  54. package/dist/src/rules/required-for-create.js +3 -2
  55. package/dist/src/rules/required-for-create.js.map +1 -1
  56. package/dist/src/utils.d.ts +3 -0
  57. package/dist/src/utils.d.ts.map +1 -1
  58. package/dist/src/utils.js +81 -1
  59. package/dist/src/utils.js.map +1 -1
  60. package/dist/src/validate.d.ts.map +1 -1
  61. package/dist/src/validate.js +2 -0
  62. package/dist/src/validate.js.map +1 -1
  63. package/lib/decorators.tsp +20 -6
  64. package/package.json +1 -1
@@ -225,18 +225,25 @@ extern dec graphRoute(
225
225
  );
226
226
 
227
227
  /**
228
- * `@media` - indicates that an `@entity` model is a media entity.
228
+ * `@immutable` - mark a model property as immutable.
229
229
  *
230
- * `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
230
+ * `@immutable` can only be applied to model properties.
231
231
  */
232
- extern dec media(target: Model, ...mediaTypes: valueof string[]);
232
+ extern dec immutable(target: ModelProperty);
233
233
 
234
234
  /**
235
- * `@immutable` - mark a model property as immutable.
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
- * `@immutable` can only be applied to model properties.
237
+ * `@limitedCharset` can only be applied to string models properties, string parameters or their collections.
238
238
  */
239
- extern dec immutable(target: ModelProperty);
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.16",
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",