@azure-rest/communication-job-router 1.1.0-beta.1 → 1.1.0-beta.3

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 (205) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/LICENSE +21 -0
  3. package/README.md +168 -115
  4. package/dist/browser/azureCommunicationRoutingServiceClient.d.ts +14 -0
  5. package/dist/browser/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  6. package/dist/browser/azureCommunicationRoutingServiceClient.js +41 -0
  7. package/dist/browser/azureCommunicationRoutingServiceClient.js.map +1 -0
  8. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  9. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  10. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.js +29 -0
  11. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  12. package/dist/browser/clientDefinitions.d.ts +159 -0
  13. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  14. package/dist/browser/clientDefinitions.js +4 -0
  15. package/dist/browser/clientDefinitions.js.map +1 -0
  16. package/dist/browser/index.d.ts +11 -0
  17. package/dist/browser/index.d.ts.map +1 -0
  18. package/dist/browser/index.js +13 -0
  19. package/dist/browser/index.js.map +1 -0
  20. package/dist/browser/isUnexpected.d.ts +35 -0
  21. package/dist/browser/isUnexpected.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/isUnexpected.js +5 -6
  23. package/dist/browser/isUnexpected.js.map +1 -0
  24. package/dist/browser/logger.d.ts +2 -0
  25. package/dist/browser/logger.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/logger.js +1 -1
  27. package/{dist-esm/src → dist/browser}/logger.js.map +1 -1
  28. package/dist/browser/models.d.ts +562 -0
  29. package/dist/browser/models.d.ts.map +1 -0
  30. package/dist/browser/models.js +4 -0
  31. package/dist/browser/models.js.map +1 -0
  32. package/dist/browser/outputModels.d.ts +683 -0
  33. package/dist/browser/outputModels.d.ts.map +1 -0
  34. package/dist/browser/outputModels.js +4 -0
  35. package/dist/browser/outputModels.js.map +1 -0
  36. package/dist/browser/package.json +3 -0
  37. package/dist/browser/paginateHelper.d.ts +68 -0
  38. package/dist/browser/paginateHelper.d.ts.map +1 -0
  39. package/{dist-esm/src → dist/browser}/paginateHelper.js +70 -3
  40. package/dist/browser/paginateHelper.js.map +1 -0
  41. package/dist/browser/parameters.d.ts +245 -0
  42. package/dist/browser/parameters.d.ts.map +1 -0
  43. package/dist/browser/parameters.js +4 -0
  44. package/dist/browser/parameters.js.map +1 -0
  45. package/dist/browser/responses.d.ts +616 -0
  46. package/dist/browser/responses.d.ts.map +1 -0
  47. package/dist/browser/responses.js +4 -0
  48. package/dist/browser/responses.js.map +1 -0
  49. package/dist/commonjs/azureCommunicationRoutingServiceClient.d.ts +14 -0
  50. package/dist/commonjs/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  51. package/dist/commonjs/azureCommunicationRoutingServiceClient.js +44 -0
  52. package/dist/commonjs/azureCommunicationRoutingServiceClient.js.map +1 -0
  53. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  54. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  55. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.js +33 -0
  56. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  57. package/dist/commonjs/clientDefinitions.d.ts +159 -0
  58. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  59. package/dist/commonjs/clientDefinitions.js +5 -0
  60. package/dist/commonjs/clientDefinitions.js.map +1 -0
  61. package/dist/commonjs/index.d.ts +11 -0
  62. package/dist/commonjs/index.d.ts.map +1 -0
  63. package/dist/commonjs/index.js +16 -0
  64. package/dist/commonjs/index.js.map +1 -0
  65. package/dist/commonjs/isUnexpected.d.ts +35 -0
  66. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  67. package/dist/commonjs/isUnexpected.js +104 -0
  68. package/dist/commonjs/isUnexpected.js.map +1 -0
  69. package/dist/commonjs/logger.d.ts +2 -0
  70. package/dist/commonjs/logger.d.ts.map +1 -0
  71. package/dist/commonjs/logger.js +8 -0
  72. package/dist/commonjs/logger.js.map +1 -0
  73. package/dist/commonjs/models.d.ts +562 -0
  74. package/dist/commonjs/models.d.ts.map +1 -0
  75. package/dist/commonjs/models.js +5 -0
  76. package/dist/commonjs/models.js.map +1 -0
  77. package/dist/commonjs/outputModels.d.ts +683 -0
  78. package/dist/commonjs/outputModels.d.ts.map +1 -0
  79. package/dist/commonjs/outputModels.js +5 -0
  80. package/dist/commonjs/outputModels.js.map +1 -0
  81. package/dist/commonjs/package.json +3 -0
  82. package/dist/commonjs/paginateHelper.d.ts +68 -0
  83. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  84. package/dist/commonjs/paginateHelper.js +140 -0
  85. package/dist/commonjs/paginateHelper.js.map +1 -0
  86. package/dist/commonjs/parameters.d.ts +245 -0
  87. package/dist/commonjs/parameters.d.ts.map +1 -0
  88. package/dist/commonjs/parameters.js +5 -0
  89. package/dist/commonjs/parameters.js.map +1 -0
  90. package/dist/commonjs/responses.d.ts +616 -0
  91. package/dist/commonjs/responses.d.ts.map +1 -0
  92. package/dist/commonjs/responses.js +5 -0
  93. package/dist/commonjs/responses.js.map +1 -0
  94. package/dist/commonjs/tsdoc-metadata.json +11 -0
  95. package/dist/esm/azureCommunicationRoutingServiceClient.d.ts +14 -0
  96. package/dist/esm/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  97. package/dist/esm/azureCommunicationRoutingServiceClient.js +41 -0
  98. package/dist/esm/azureCommunicationRoutingServiceClient.js.map +1 -0
  99. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  100. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  101. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.js +29 -0
  102. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  103. package/dist/esm/clientDefinitions.d.ts +159 -0
  104. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  105. package/dist/esm/clientDefinitions.js +4 -0
  106. package/dist/esm/clientDefinitions.js.map +1 -0
  107. package/dist/esm/index.d.ts +11 -0
  108. package/dist/esm/index.d.ts.map +1 -0
  109. package/dist/esm/index.js +13 -0
  110. package/dist/esm/index.js.map +1 -0
  111. package/dist/esm/isUnexpected.d.ts +35 -0
  112. package/dist/esm/isUnexpected.d.ts.map +1 -0
  113. package/dist/esm/isUnexpected.js +101 -0
  114. package/dist/esm/isUnexpected.js.map +1 -0
  115. package/dist/esm/logger.d.ts +2 -0
  116. package/dist/esm/logger.d.ts.map +1 -0
  117. package/dist/esm/logger.js +5 -0
  118. package/dist/esm/logger.js.map +1 -0
  119. package/dist/esm/models.d.ts +562 -0
  120. package/dist/esm/models.d.ts.map +1 -0
  121. package/dist/esm/models.js +4 -0
  122. package/dist/esm/models.js.map +1 -0
  123. package/dist/esm/outputModels.d.ts +683 -0
  124. package/dist/esm/outputModels.d.ts.map +1 -0
  125. package/dist/esm/outputModels.js +4 -0
  126. package/dist/esm/outputModels.js.map +1 -0
  127. package/dist/esm/package.json +3 -0
  128. package/dist/esm/paginateHelper.d.ts +68 -0
  129. package/dist/esm/paginateHelper.d.ts.map +1 -0
  130. package/dist/esm/paginateHelper.js +137 -0
  131. package/dist/esm/paginateHelper.js.map +1 -0
  132. package/dist/esm/parameters.d.ts +245 -0
  133. package/dist/esm/parameters.d.ts.map +1 -0
  134. package/dist/esm/parameters.js +4 -0
  135. package/dist/esm/parameters.js.map +1 -0
  136. package/dist/esm/responses.d.ts +616 -0
  137. package/dist/esm/responses.d.ts.map +1 -0
  138. package/dist/esm/responses.js +4 -0
  139. package/dist/esm/responses.js.map +1 -0
  140. package/dist/react-native/azureCommunicationRoutingServiceClient.d.ts +14 -0
  141. package/dist/react-native/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  142. package/dist/react-native/azureCommunicationRoutingServiceClient.js +41 -0
  143. package/dist/react-native/azureCommunicationRoutingServiceClient.js.map +1 -0
  144. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  145. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  146. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.js +29 -0
  147. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  148. package/dist/react-native/clientDefinitions.d.ts +159 -0
  149. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  150. package/dist/react-native/clientDefinitions.js +4 -0
  151. package/dist/react-native/clientDefinitions.js.map +1 -0
  152. package/dist/react-native/index.d.ts +11 -0
  153. package/dist/react-native/index.d.ts.map +1 -0
  154. package/dist/react-native/index.js +13 -0
  155. package/dist/react-native/index.js.map +1 -0
  156. package/dist/react-native/isUnexpected.d.ts +35 -0
  157. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  158. package/dist/react-native/isUnexpected.js +101 -0
  159. package/dist/react-native/isUnexpected.js.map +1 -0
  160. package/dist/react-native/logger.d.ts +2 -0
  161. package/dist/react-native/logger.d.ts.map +1 -0
  162. package/dist/react-native/logger.js +5 -0
  163. package/dist/react-native/logger.js.map +1 -0
  164. package/dist/react-native/models.d.ts +562 -0
  165. package/dist/react-native/models.d.ts.map +1 -0
  166. package/dist/react-native/models.js +4 -0
  167. package/dist/react-native/models.js.map +1 -0
  168. package/dist/react-native/outputModels.d.ts +683 -0
  169. package/dist/react-native/outputModels.d.ts.map +1 -0
  170. package/dist/react-native/outputModels.js +4 -0
  171. package/dist/react-native/outputModels.js.map +1 -0
  172. package/dist/react-native/package.json +3 -0
  173. package/dist/react-native/paginateHelper.d.ts +68 -0
  174. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  175. package/dist/react-native/paginateHelper.js +137 -0
  176. package/dist/react-native/paginateHelper.js.map +1 -0
  177. package/dist/react-native/parameters.d.ts +245 -0
  178. package/dist/react-native/parameters.d.ts.map +1 -0
  179. package/dist/react-native/parameters.js +4 -0
  180. package/dist/react-native/parameters.js.map +1 -0
  181. package/dist/react-native/responses.d.ts +616 -0
  182. package/dist/react-native/responses.d.ts.map +1 -0
  183. package/dist/react-native/responses.js +4 -0
  184. package/dist/react-native/responses.js.map +1 -0
  185. package/package.json +84 -75
  186. package/review/{communication-job-router.api.md → communication-job-router-node.api.md} +168 -55
  187. package/dist/index.js +0 -229
  188. package/dist/index.js.map +0 -1
  189. package/dist-esm/src/azureCommunicationRoutingServiceClient.js +0 -42
  190. package/dist-esm/src/azureCommunicationRoutingServiceClient.js.map +0 -1
  191. package/dist-esm/src/clientDefinitions.js +0 -4
  192. package/dist-esm/src/clientDefinitions.js.map +0 -1
  193. package/dist-esm/src/index.js +0 -13
  194. package/dist-esm/src/index.js.map +0 -1
  195. package/dist-esm/src/isUnexpected.js.map +0 -1
  196. package/dist-esm/src/models.js +0 -4
  197. package/dist-esm/src/models.js.map +0 -1
  198. package/dist-esm/src/outputModels.js +0 -4
  199. package/dist-esm/src/outputModels.js.map +0 -1
  200. package/dist-esm/src/paginateHelper.js.map +0 -1
  201. package/dist-esm/src/parameters.js +0 -4
  202. package/dist-esm/src/parameters.js.map +0 -1
  203. package/dist-esm/src/responses.js +0 -4
  204. package/dist-esm/src/responses.js.map +0 -1
  205. package/types/communication-job-router.d.ts +0 -2677
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse, ErrorResponse } from \"@azure-rest/core-client\";\nimport type {\n ClassificationPolicyOutput,\n PagedClassificationPolicyOutput,\n DistributionPolicyOutput,\n PagedDistributionPolicyOutput,\n ExceptionPolicyOutput,\n PagedExceptionPolicyOutput,\n RouterQueueOutput,\n PagedRouterQueueOutput,\n RouterJobOutput,\n ReclassifyJobResultOutput,\n CancelJobResultOutput,\n CompleteJobResultOutput,\n CloseJobResultOutput,\n PagedRouterJobOutput,\n RouterJobPositionDetailsOutput,\n UnassignJobResultOutput,\n AcceptJobOfferResultOutput,\n DeclineJobOfferResultOutput,\n RouterQueueStatisticsOutput,\n RouterWorkerOutput,\n PagedRouterWorkerOutput,\n} from \"./outputModels.js\";\n\nexport interface UpsertClassificationPolicy200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface UpsertClassificationPolicy200Response extends HttpResponse {\n status: \"200\";\n body: ClassificationPolicyOutput;\n headers: RawHttpHeaders & UpsertClassificationPolicy200Headers;\n}\n\nexport interface UpsertClassificationPolicy201Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface UpsertClassificationPolicy201Response extends HttpResponse {\n status: \"201\";\n body: ClassificationPolicyOutput;\n headers: RawHttpHeaders & UpsertClassificationPolicy201Headers;\n}\n\nexport interface UpsertClassificationPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface UpsertClassificationPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & UpsertClassificationPolicyDefaultHeaders;\n}\n\nexport interface GetClassificationPolicy200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetClassificationPolicy200Response extends HttpResponse {\n status: \"200\";\n body: ClassificationPolicyOutput;\n headers: RawHttpHeaders & GetClassificationPolicy200Headers;\n}\n\nexport interface GetClassificationPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetClassificationPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetClassificationPolicyDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteClassificationPolicy204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteClassificationPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeleteClassificationPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeleteClassificationPolicyDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface ListClassificationPolicies200Response extends HttpResponse {\n status: \"200\";\n body: PagedClassificationPolicyOutput;\n}\n\nexport interface ListClassificationPoliciesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListClassificationPoliciesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListClassificationPoliciesDefaultHeaders;\n}\n\nexport interface UpsertDistributionPolicy200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface UpsertDistributionPolicy200Response extends HttpResponse {\n status: \"200\";\n body: DistributionPolicyOutput;\n headers: RawHttpHeaders & UpsertDistributionPolicy200Headers;\n}\n\nexport interface UpsertDistributionPolicy201Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface UpsertDistributionPolicy201Response extends HttpResponse {\n status: \"201\";\n body: DistributionPolicyOutput;\n headers: RawHttpHeaders & UpsertDistributionPolicy201Headers;\n}\n\nexport interface UpsertDistributionPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface UpsertDistributionPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & UpsertDistributionPolicyDefaultHeaders;\n}\n\nexport interface GetDistributionPolicy200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetDistributionPolicy200Response extends HttpResponse {\n status: \"200\";\n body: DistributionPolicyOutput;\n headers: RawHttpHeaders & GetDistributionPolicy200Headers;\n}\n\nexport interface GetDistributionPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetDistributionPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetDistributionPolicyDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteDistributionPolicy204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteDistributionPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeleteDistributionPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeleteDistributionPolicyDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface ListDistributionPolicies200Response extends HttpResponse {\n status: \"200\";\n body: PagedDistributionPolicyOutput;\n}\n\nexport interface ListDistributionPoliciesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListDistributionPoliciesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListDistributionPoliciesDefaultHeaders;\n}\n\nexport interface UpsertExceptionPolicy200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface UpsertExceptionPolicy200Response extends HttpResponse {\n status: \"200\";\n body: ExceptionPolicyOutput;\n headers: RawHttpHeaders & UpsertExceptionPolicy200Headers;\n}\n\nexport interface UpsertExceptionPolicy201Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface UpsertExceptionPolicy201Response extends HttpResponse {\n status: \"201\";\n body: ExceptionPolicyOutput;\n headers: RawHttpHeaders & UpsertExceptionPolicy201Headers;\n}\n\nexport interface UpsertExceptionPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface UpsertExceptionPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & UpsertExceptionPolicyDefaultHeaders;\n}\n\nexport interface GetExceptionPolicy200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetExceptionPolicy200Response extends HttpResponse {\n status: \"200\";\n body: ExceptionPolicyOutput;\n headers: RawHttpHeaders & GetExceptionPolicy200Headers;\n}\n\nexport interface GetExceptionPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetExceptionPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetExceptionPolicyDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteExceptionPolicy204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteExceptionPolicyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeleteExceptionPolicyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeleteExceptionPolicyDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface ListExceptionPolicies200Response extends HttpResponse {\n status: \"200\";\n body: PagedExceptionPolicyOutput;\n}\n\nexport interface ListExceptionPoliciesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListExceptionPoliciesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListExceptionPoliciesDefaultHeaders;\n}\n\nexport interface UpsertQueue200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface UpsertQueue200Response extends HttpResponse {\n status: \"200\";\n body: RouterQueueOutput;\n headers: RawHttpHeaders & UpsertQueue200Headers;\n}\n\nexport interface UpsertQueue201Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface UpsertQueue201Response extends HttpResponse {\n status: \"201\";\n body: RouterQueueOutput;\n headers: RawHttpHeaders & UpsertQueue201Headers;\n}\n\nexport interface UpsertQueueDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface UpsertQueueDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & UpsertQueueDefaultHeaders;\n}\n\nexport interface GetQueue200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetQueue200Response extends HttpResponse {\n status: \"200\";\n body: RouterQueueOutput;\n headers: RawHttpHeaders & GetQueue200Headers;\n}\n\nexport interface GetQueueDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetQueueDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetQueueDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteQueue204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteQueueDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeleteQueueDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeleteQueueDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface ListQueues200Response extends HttpResponse {\n status: \"200\";\n body: PagedRouterQueueOutput;\n}\n\nexport interface ListQueuesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListQueuesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListQueuesDefaultHeaders;\n}\n\nexport interface UpsertJob200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface UpsertJob200Response extends HttpResponse {\n status: \"200\";\n body: RouterJobOutput;\n headers: RawHttpHeaders & UpsertJob200Headers;\n}\n\nexport interface UpsertJob201Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface UpsertJob201Response extends HttpResponse {\n status: \"201\";\n body: RouterJobOutput;\n headers: RawHttpHeaders & UpsertJob201Headers;\n}\n\nexport interface UpsertJobDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface UpsertJobDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & UpsertJobDefaultHeaders;\n}\n\nexport interface GetJob200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetJob200Response extends HttpResponse {\n status: \"200\";\n body: RouterJobOutput;\n headers: RawHttpHeaders & GetJob200Headers;\n}\n\nexport interface GetJobDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetJobDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetJobDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteJob204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteJobDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeleteJobDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeleteJobDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface Reclassify200Response extends HttpResponse {\n status: \"200\";\n body: ReclassifyJobResultOutput;\n}\n\nexport interface ReclassifyDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ReclassifyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ReclassifyDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface Cancel200Response extends HttpResponse {\n status: \"200\";\n body: CancelJobResultOutput;\n}\n\nexport interface CancelDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface CancelDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & CancelDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface Complete200Response extends HttpResponse {\n status: \"200\";\n body: CompleteJobResultOutput;\n}\n\nexport interface CompleteDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface CompleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & CompleteDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface Close200Response extends HttpResponse {\n status: \"200\";\n body: CloseJobResultOutput;\n}\n\nexport interface CloseDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface CloseDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & CloseDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface ListJobs200Response extends HttpResponse {\n status: \"200\";\n body: PagedRouterJobOutput;\n}\n\nexport interface ListJobsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListJobsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListJobsDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface GetInQueuePosition200Response extends HttpResponse {\n status: \"200\";\n body: RouterJobPositionDetailsOutput;\n}\n\nexport interface GetInQueuePositionDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetInQueuePositionDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetInQueuePositionDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface Unassign200Response extends HttpResponse {\n status: \"200\";\n body: UnassignJobResultOutput;\n}\n\nexport interface UnassignDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface UnassignDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & UnassignDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface Accept200Response extends HttpResponse {\n status: \"200\";\n body: AcceptJobOfferResultOutput;\n}\n\nexport interface AcceptDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface AcceptDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & AcceptDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface Decline200Response extends HttpResponse {\n status: \"200\";\n body: DeclineJobOfferResultOutput;\n}\n\nexport interface DeclineDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeclineDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeclineDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface GetQueueStatistics200Response extends HttpResponse {\n status: \"200\";\n body: RouterQueueStatisticsOutput;\n}\n\nexport interface GetQueueStatisticsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetQueueStatisticsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetQueueStatisticsDefaultHeaders;\n}\n\nexport interface UpsertWorker200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface UpsertWorker200Response extends HttpResponse {\n status: \"200\";\n body: RouterWorkerOutput;\n headers: RawHttpHeaders & UpsertWorker200Headers;\n}\n\nexport interface UpsertWorker201Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface UpsertWorker201Response extends HttpResponse {\n status: \"201\";\n body: RouterWorkerOutput;\n headers: RawHttpHeaders & UpsertWorker201Headers;\n}\n\nexport interface UpsertWorkerDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface UpsertWorkerDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & UpsertWorkerDefaultHeaders;\n}\n\nexport interface GetWorker200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** The last modified timestamp. */\n \"last-modified\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetWorker200Response extends HttpResponse {\n status: \"200\";\n body: RouterWorkerOutput;\n headers: RawHttpHeaders & GetWorker200Headers;\n}\n\nexport interface GetWorkerDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetWorkerDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetWorkerDefaultHeaders;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteWorker204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteWorkerDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeleteWorkerDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeleteWorkerDefaultHeaders;\n}\n\n/** The request has succeeded. */\nexport interface ListWorkers200Response extends HttpResponse {\n status: \"200\";\n body: PagedRouterWorkerOutput;\n}\n\nexport interface ListWorkersDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListWorkersDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListWorkersDefaultHeaders;\n}\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@azure-rest/communication-job-router",
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
- "version": "1.1.0-beta.1",
5
+ "version": "1.1.0-beta.3",
6
6
  "description": "Azure client library for Azure Communication Job Router services",
7
7
  "keywords": [
8
8
  "node",
@@ -13,95 +13,50 @@
13
13
  "isomorphic"
14
14
  ],
15
15
  "license": "MIT",
16
- "main": "dist/index.js",
17
- "module": "./dist-esm/src/index.js",
18
- "types": "./types/communication-job-router.d.ts",
16
+ "main": "./dist/commonjs/index.js",
17
+ "module": "./dist/esm/index.js",
18
+ "types": "./dist/commonjs/index.d.ts",
19
19
  "repository": "github:Azure/azure-sdk-for-js",
20
20
  "bugs": {
21
21
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
22
22
  },
23
23
  "files": [
24
24
  "dist/",
25
- "dist-esm/src/",
26
- "types/communication-job-router.d.ts",
27
25
  "README.md",
28
26
  "LICENSE",
29
- "review/*"
27
+ "review/",
28
+ "CHANGELOG.md"
30
29
  ],
31
30
  "engines": {
32
- "node": ">=18.0.0"
33
- },
34
- "scripts": {
35
- "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
36
- "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
37
- "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
38
- "build:samples": "dev-tool samples publish --force",
39
- "build:test": "tsc -p . && dev-tool run bundle",
40
- "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local",
41
- "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
42
- "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
43
- "execute:samples": "dev-tool samples run samples-dev",
44
- "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local",
45
- "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
46
- "generate:client": "echo skipped",
47
- "integration-test:browser": "dev-tool run test:browser",
48
- "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
49
- "integration-test": "npm run integration-test:node && npm run integration-test:browser",
50
- "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
51
- "lint": "eslint package.json api-extractor.json src test --ext .ts",
52
- "pack": "npm pack 2>&1",
53
- "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
54
- "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
55
- "test": "npm rdddun clean && npm run build:test && npm run unit-test",
56
- "unit-test": "npm run unit-test:node && npm run unit-test:browser",
57
- "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
58
- "unit-test:browser": "dev-tool run test:browser",
59
- "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && api-extractor run --local"
31
+ "node": ">=20.0.0"
60
32
  },
61
33
  "sideEffects": false,
62
34
  "autoPublish": false,
63
35
  "dependencies": {
64
- "@azure/core-auth": "^1.3.0",
65
- "@azure-rest/core-client": "^1.1.4",
66
- "@azure/core-rest-pipeline": "^1.12.0",
67
- "@azure/communication-common": "^2.2.0",
68
- "@azure/logger": "^1.0.0",
69
- "tslib": "^2.2.0",
70
- "@azure/core-paging": "^1.5.0"
36
+ "@azure-rest/core-client": "^2.3.1",
37
+ "@azure/communication-common": "^2.3.1",
38
+ "@azure/core-auth": "^1.9.0",
39
+ "@azure/core-rest-pipeline": "^1.18.0",
40
+ "@azure/logger": "^1.1.4",
41
+ "tslib": "^2.8.1"
71
42
  },
72
43
  "devDependencies": {
73
- "@microsoft/api-extractor": "^7.31.1",
44
+ "@azure/identity": "4.11.1",
45
+ "@types/node": "^20.19.0",
46
+ "@vitest/browser": "^3.2.3",
47
+ "@vitest/coverage-istanbul": "^3.2.3",
74
48
  "autorest": "latest",
75
- "@types/node": "^18.0.0",
76
- "c8": "^9.1.0",
77
49
  "dotenv": "^16.0.0",
78
- "eslint": "^8.0.0",
79
- "mkdirp": "^2.1.2",
80
- "rimraf": "^5.0.0",
81
- "source-map-support": "^0.5.9",
82
- "typescript": "~5.4.5",
83
- "@azure/dev-tool": "^1.0.0",
50
+ "eslint": "^9.33.0",
51
+ "playwright": "^1.50.1",
52
+ "typescript": "~5.8.3",
53
+ "vitest": "^3.2.3",
54
+ "@azure-tools/test-recorder": "^4.1.0",
55
+ "@azure/core-util": "^1.13.1",
56
+ "@azure-tools/test-utils-vitest": "^1.0.0",
57
+ "@azure-tools/test-credential": "^2.1.1",
84
58
  "@azure/eslint-plugin-azure-sdk": "^3.0.0",
85
- "@azure-tools/test-credential": "^1.0.0",
86
- "@azure/identity": "^4.0.1",
87
- "@azure-tools/test-recorder": "^3.0.0",
88
- "@azure/core-util": "^1.0.0",
89
- "mocha": "^10.0.0",
90
- "@types/mocha": "^10.0.0",
91
- "cross-env": "^7.0.2",
92
- "@types/chai": "^4.2.8",
93
- "chai": "^4.2.0",
94
- "karma-chrome-launcher": "^3.0.0",
95
- "karma-coverage": "^2.0.0",
96
- "karma-env-preprocessor": "^0.1.1",
97
- "karma-firefox-launcher": "^2.1.2",
98
- "karma-junit-reporter": "^2.0.1",
99
- "karma-mocha-reporter": "^2.2.5",
100
- "karma-mocha": "^2.0.1",
101
- "karma-source-map-support": "~1.4.0",
102
- "karma-sourcemap-loader": "^0.4.0",
103
- "karma": "^6.2.0",
104
- "ts-node": "^10.0.0"
59
+ "@azure/dev-tool": "^1.0.0"
105
60
  },
106
61
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-job-router-rest/README.md",
107
62
  "//metadata": {
@@ -112,14 +67,68 @@
112
67
  }
113
68
  ]
114
69
  },
115
- "browser": {
116
- "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
117
- },
70
+ "browser": "./dist/browser/index.js",
118
71
  "//sampleConfiguration": {
119
72
  "productName": "Azure client library for Azure Communication Job Router services",
120
73
  "productSlugs": [
121
74
  "azure",
122
75
  "azure-communication-services"
123
76
  ]
77
+ },
78
+ "type": "module",
79
+ "tshy": {
80
+ "exports": {
81
+ "./package.json": "./package.json",
82
+ ".": "./src/index.ts"
83
+ },
84
+ "dialects": [
85
+ "esm",
86
+ "commonjs"
87
+ ],
88
+ "esmDialects": [
89
+ "browser",
90
+ "react-native"
91
+ ],
92
+ "selfLink": false,
93
+ "project": "../../../tsconfig.src.build.json"
94
+ },
95
+ "exports": {
96
+ "./package.json": "./package.json",
97
+ ".": {
98
+ "browser": {
99
+ "types": "./dist/browser/index.d.ts",
100
+ "default": "./dist/browser/index.js"
101
+ },
102
+ "react-native": {
103
+ "types": "./dist/react-native/index.d.ts",
104
+ "default": "./dist/react-native/index.js"
105
+ },
106
+ "import": {
107
+ "types": "./dist/esm/index.d.ts",
108
+ "default": "./dist/esm/index.js"
109
+ },
110
+ "require": {
111
+ "types": "./dist/commonjs/index.d.ts",
112
+ "default": "./dist/commonjs/index.js"
113
+ }
114
+ }
115
+ },
116
+ "scripts": {
117
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
118
+ "build:samples": "tsc -p tsconfig.samples.json",
119
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
120
+ "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
121
+ "execute:samples": "dev-tool samples run samples-dev",
122
+ "extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
123
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
124
+ "generate:client": "echo skipped",
125
+ "lint": "eslint package.json src test",
126
+ "lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]",
127
+ "pack": "pnpm pack 2>&1",
128
+ "test": "npm run test:node && npm run test:browser",
129
+ "test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
130
+ "test:node": "dev-tool run test:vitest",
131
+ "test:node:esm": "dev-tool run test:vitest --esm",
132
+ "update-snippets": "dev-tool run update-snippets"
124
133
  }
125
- }
134
+ }