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

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 (204) hide show
  1. package/README.md +168 -115
  2. package/dist/browser/azureCommunicationRoutingServiceClient.d.ts +14 -0
  3. package/dist/browser/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  4. package/dist/browser/azureCommunicationRoutingServiceClient.js +40 -0
  5. package/dist/browser/azureCommunicationRoutingServiceClient.js.map +1 -0
  6. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  7. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  8. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.js +29 -0
  9. package/dist/browser/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  10. package/dist/browser/clientDefinitions.d.ts +159 -0
  11. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  12. package/dist/browser/clientDefinitions.js +4 -0
  13. package/dist/browser/clientDefinitions.js.map +1 -0
  14. package/dist/browser/index.d.ts +11 -0
  15. package/dist/browser/index.d.ts.map +1 -0
  16. package/dist/browser/index.js +13 -0
  17. package/dist/browser/index.js.map +1 -0
  18. package/dist/browser/isUnexpected.d.ts +35 -0
  19. package/dist/browser/isUnexpected.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/isUnexpected.js +1 -1
  21. package/dist/browser/isUnexpected.js.map +1 -0
  22. package/dist/browser/logger.d.ts +2 -0
  23. package/dist/browser/logger.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/logger.js +1 -1
  25. package/{dist-esm/src → dist/browser}/logger.js.map +1 -1
  26. package/dist/browser/models.d.ts +562 -0
  27. package/dist/browser/models.d.ts.map +1 -0
  28. package/dist/browser/models.js +4 -0
  29. package/dist/browser/models.js.map +1 -0
  30. package/dist/browser/outputModels.d.ts +683 -0
  31. package/dist/browser/outputModels.d.ts.map +1 -0
  32. package/dist/browser/outputModels.js +4 -0
  33. package/dist/browser/outputModels.js.map +1 -0
  34. package/dist/browser/package.json +3 -0
  35. package/dist/browser/paginateHelper.d.ts +68 -0
  36. package/dist/browser/paginateHelper.d.ts.map +1 -0
  37. package/dist/browser/paginateHelper.js +167 -0
  38. package/dist/browser/paginateHelper.js.map +1 -0
  39. package/dist/browser/parameters.d.ts +245 -0
  40. package/dist/browser/parameters.d.ts.map +1 -0
  41. package/dist/browser/parameters.js +4 -0
  42. package/dist/browser/parameters.js.map +1 -0
  43. package/dist/browser/responses.d.ts +616 -0
  44. package/dist/browser/responses.d.ts.map +1 -0
  45. package/dist/browser/responses.js +4 -0
  46. package/dist/browser/responses.js.map +1 -0
  47. package/dist/commonjs/azureCommunicationRoutingServiceClient.d.ts +14 -0
  48. package/dist/commonjs/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  49. package/dist/commonjs/azureCommunicationRoutingServiceClient.js +43 -0
  50. package/dist/commonjs/azureCommunicationRoutingServiceClient.js.map +1 -0
  51. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  52. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  53. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.js +33 -0
  54. package/dist/commonjs/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  55. package/dist/commonjs/clientDefinitions.d.ts +159 -0
  56. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  57. package/dist/commonjs/clientDefinitions.js +5 -0
  58. package/dist/commonjs/clientDefinitions.js.map +1 -0
  59. package/dist/commonjs/index.d.ts +11 -0
  60. package/dist/commonjs/index.d.ts.map +1 -0
  61. package/dist/commonjs/index.js +16 -0
  62. package/dist/commonjs/index.js.map +1 -0
  63. package/dist/commonjs/isUnexpected.d.ts +35 -0
  64. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  65. package/dist/commonjs/isUnexpected.js +105 -0
  66. package/dist/commonjs/isUnexpected.js.map +1 -0
  67. package/dist/commonjs/logger.d.ts +2 -0
  68. package/dist/commonjs/logger.d.ts.map +1 -0
  69. package/dist/commonjs/logger.js +8 -0
  70. package/dist/commonjs/logger.js.map +1 -0
  71. package/dist/commonjs/models.d.ts +562 -0
  72. package/dist/commonjs/models.d.ts.map +1 -0
  73. package/dist/commonjs/models.js +5 -0
  74. package/dist/commonjs/models.js.map +1 -0
  75. package/dist/commonjs/outputModels.d.ts +683 -0
  76. package/dist/commonjs/outputModels.d.ts.map +1 -0
  77. package/dist/commonjs/outputModels.js +5 -0
  78. package/dist/commonjs/outputModels.js.map +1 -0
  79. package/dist/commonjs/package.json +3 -0
  80. package/dist/commonjs/paginateHelper.d.ts +68 -0
  81. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  82. package/dist/commonjs/paginateHelper.js +170 -0
  83. package/dist/commonjs/paginateHelper.js.map +1 -0
  84. package/dist/commonjs/parameters.d.ts +245 -0
  85. package/dist/commonjs/parameters.d.ts.map +1 -0
  86. package/dist/commonjs/parameters.js +5 -0
  87. package/dist/commonjs/parameters.js.map +1 -0
  88. package/dist/commonjs/responses.d.ts +616 -0
  89. package/dist/commonjs/responses.d.ts.map +1 -0
  90. package/dist/commonjs/responses.js +5 -0
  91. package/dist/commonjs/responses.js.map +1 -0
  92. package/dist/commonjs/tsdoc-metadata.json +11 -0
  93. package/dist/esm/azureCommunicationRoutingServiceClient.d.ts +14 -0
  94. package/dist/esm/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  95. package/dist/esm/azureCommunicationRoutingServiceClient.js +40 -0
  96. package/dist/esm/azureCommunicationRoutingServiceClient.js.map +1 -0
  97. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  98. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  99. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.js +29 -0
  100. package/dist/esm/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  101. package/dist/esm/clientDefinitions.d.ts +159 -0
  102. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  103. package/dist/esm/clientDefinitions.js +4 -0
  104. package/dist/esm/clientDefinitions.js.map +1 -0
  105. package/dist/esm/index.d.ts +11 -0
  106. package/dist/esm/index.d.ts.map +1 -0
  107. package/dist/esm/index.js +13 -0
  108. package/dist/esm/index.js.map +1 -0
  109. package/dist/esm/isUnexpected.d.ts +35 -0
  110. package/dist/esm/isUnexpected.d.ts.map +1 -0
  111. package/dist/esm/isUnexpected.js +102 -0
  112. package/dist/esm/isUnexpected.js.map +1 -0
  113. package/dist/esm/logger.d.ts +2 -0
  114. package/dist/esm/logger.d.ts.map +1 -0
  115. package/dist/esm/logger.js +5 -0
  116. package/dist/esm/logger.js.map +1 -0
  117. package/dist/esm/models.d.ts +562 -0
  118. package/dist/esm/models.d.ts.map +1 -0
  119. package/dist/esm/models.js +4 -0
  120. package/dist/esm/models.js.map +1 -0
  121. package/dist/esm/outputModels.d.ts +683 -0
  122. package/dist/esm/outputModels.d.ts.map +1 -0
  123. package/dist/esm/outputModels.js +4 -0
  124. package/dist/esm/outputModels.js.map +1 -0
  125. package/dist/esm/package.json +3 -0
  126. package/dist/esm/paginateHelper.d.ts +68 -0
  127. package/dist/esm/paginateHelper.d.ts.map +1 -0
  128. package/dist/esm/paginateHelper.js +167 -0
  129. package/dist/esm/paginateHelper.js.map +1 -0
  130. package/dist/esm/parameters.d.ts +245 -0
  131. package/dist/esm/parameters.d.ts.map +1 -0
  132. package/dist/esm/parameters.js +4 -0
  133. package/dist/esm/parameters.js.map +1 -0
  134. package/dist/esm/responses.d.ts +616 -0
  135. package/dist/esm/responses.d.ts.map +1 -0
  136. package/dist/esm/responses.js +4 -0
  137. package/dist/esm/responses.js.map +1 -0
  138. package/dist/react-native/azureCommunicationRoutingServiceClient.d.ts +14 -0
  139. package/dist/react-native/azureCommunicationRoutingServiceClient.d.ts.map +1 -0
  140. package/dist/react-native/azureCommunicationRoutingServiceClient.js +40 -0
  141. package/dist/react-native/azureCommunicationRoutingServiceClient.js.map +1 -0
  142. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.d.ts +17 -0
  143. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.d.ts.map +1 -0
  144. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.js +29 -0
  145. package/dist/react-native/azureCommunicationRoutingServiceCustmizedClient.js.map +1 -0
  146. package/dist/react-native/clientDefinitions.d.ts +159 -0
  147. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  148. package/dist/react-native/clientDefinitions.js +4 -0
  149. package/dist/react-native/clientDefinitions.js.map +1 -0
  150. package/dist/react-native/index.d.ts +11 -0
  151. package/dist/react-native/index.d.ts.map +1 -0
  152. package/dist/react-native/index.js +13 -0
  153. package/dist/react-native/index.js.map +1 -0
  154. package/dist/react-native/isUnexpected.d.ts +35 -0
  155. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  156. package/dist/react-native/isUnexpected.js +102 -0
  157. package/dist/react-native/isUnexpected.js.map +1 -0
  158. package/dist/react-native/logger.d.ts +2 -0
  159. package/dist/react-native/logger.d.ts.map +1 -0
  160. package/dist/react-native/logger.js +5 -0
  161. package/dist/react-native/logger.js.map +1 -0
  162. package/dist/react-native/models.d.ts +562 -0
  163. package/dist/react-native/models.d.ts.map +1 -0
  164. package/dist/react-native/models.js +4 -0
  165. package/dist/react-native/models.js.map +1 -0
  166. package/dist/react-native/outputModels.d.ts +683 -0
  167. package/dist/react-native/outputModels.d.ts.map +1 -0
  168. package/dist/react-native/outputModels.js +4 -0
  169. package/dist/react-native/outputModels.js.map +1 -0
  170. package/dist/react-native/package.json +3 -0
  171. package/dist/react-native/paginateHelper.d.ts +68 -0
  172. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  173. package/dist/react-native/paginateHelper.js +167 -0
  174. package/dist/react-native/paginateHelper.js.map +1 -0
  175. package/dist/react-native/parameters.d.ts +245 -0
  176. package/dist/react-native/parameters.d.ts.map +1 -0
  177. package/dist/react-native/parameters.js +4 -0
  178. package/dist/react-native/parameters.js.map +1 -0
  179. package/dist/react-native/responses.d.ts +616 -0
  180. package/dist/react-native/responses.d.ts.map +1 -0
  181. package/dist/react-native/responses.js +4 -0
  182. package/dist/react-native/responses.js.map +1 -0
  183. package/package.json +79 -63
  184. package/dist/index.js +0 -229
  185. package/dist/index.js.map +0 -1
  186. package/dist-esm/src/azureCommunicationRoutingServiceClient.js +0 -42
  187. package/dist-esm/src/azureCommunicationRoutingServiceClient.js.map +0 -1
  188. package/dist-esm/src/clientDefinitions.js +0 -4
  189. package/dist-esm/src/clientDefinitions.js.map +0 -1
  190. package/dist-esm/src/index.js +0 -13
  191. package/dist-esm/src/index.js.map +0 -1
  192. package/dist-esm/src/isUnexpected.js.map +0 -1
  193. package/dist-esm/src/models.js +0 -4
  194. package/dist-esm/src/models.js.map +0 -1
  195. package/dist-esm/src/outputModels.js +0 -4
  196. package/dist-esm/src/outputModels.js.map +0 -1
  197. package/dist-esm/src/paginateHelper.js +0 -70
  198. package/dist-esm/src/paginateHelper.js.map +0 -1
  199. package/dist-esm/src/parameters.js +0 -4
  200. package/dist-esm/src/parameters.js.map +0 -1
  201. package/dist-esm/src/responses.js +0 -4
  202. package/dist-esm/src/responses.js.map +0 -1
  203. package/review/communication-job-router.api.md +0 -2485
  204. package/types/communication-job-router.d.ts +0 -2677
@@ -0,0 +1,159 @@
1
+ import type { UpsertClassificationPolicyParameters, GetClassificationPolicyParameters, DeleteClassificationPolicyParameters, ListClassificationPoliciesParameters, UpsertDistributionPolicyParameters, GetDistributionPolicyParameters, DeleteDistributionPolicyParameters, ListDistributionPoliciesParameters, UpsertExceptionPolicyParameters, GetExceptionPolicyParameters, DeleteExceptionPolicyParameters, ListExceptionPoliciesParameters, UpsertQueueParameters, GetQueueParameters, DeleteQueueParameters, ListQueuesParameters, UpsertJobParameters, GetJobParameters, DeleteJobParameters, ReclassifyParameters, CancelParameters, CompleteParameters, CloseParameters, ListJobsParameters, GetInQueuePositionParameters, UnassignParameters, AcceptParameters, DeclineParameters, GetQueueStatisticsParameters, UpsertWorkerParameters, GetWorkerParameters, DeleteWorkerParameters, ListWorkersParameters } from "./parameters.js";
2
+ import type { UpsertClassificationPolicy200Response, UpsertClassificationPolicy201Response, UpsertClassificationPolicyDefaultResponse, GetClassificationPolicy200Response, GetClassificationPolicyDefaultResponse, DeleteClassificationPolicy204Response, DeleteClassificationPolicyDefaultResponse, ListClassificationPolicies200Response, ListClassificationPoliciesDefaultResponse, UpsertDistributionPolicy200Response, UpsertDistributionPolicy201Response, UpsertDistributionPolicyDefaultResponse, GetDistributionPolicy200Response, GetDistributionPolicyDefaultResponse, DeleteDistributionPolicy204Response, DeleteDistributionPolicyDefaultResponse, ListDistributionPolicies200Response, ListDistributionPoliciesDefaultResponse, UpsertExceptionPolicy200Response, UpsertExceptionPolicy201Response, UpsertExceptionPolicyDefaultResponse, GetExceptionPolicy200Response, GetExceptionPolicyDefaultResponse, DeleteExceptionPolicy204Response, DeleteExceptionPolicyDefaultResponse, ListExceptionPolicies200Response, ListExceptionPoliciesDefaultResponse, UpsertQueue200Response, UpsertQueue201Response, UpsertQueueDefaultResponse, GetQueue200Response, GetQueueDefaultResponse, DeleteQueue204Response, DeleteQueueDefaultResponse, ListQueues200Response, ListQueuesDefaultResponse, UpsertJob200Response, UpsertJob201Response, UpsertJobDefaultResponse, GetJob200Response, GetJobDefaultResponse, DeleteJob204Response, DeleteJobDefaultResponse, Reclassify200Response, ReclassifyDefaultResponse, Cancel200Response, CancelDefaultResponse, Complete200Response, CompleteDefaultResponse, Close200Response, CloseDefaultResponse, ListJobs200Response, ListJobsDefaultResponse, GetInQueuePosition200Response, GetInQueuePositionDefaultResponse, Unassign200Response, UnassignDefaultResponse, Accept200Response, AcceptDefaultResponse, Decline200Response, DeclineDefaultResponse, GetQueueStatistics200Response, GetQueueStatisticsDefaultResponse, UpsertWorker200Response, UpsertWorker201Response, UpsertWorkerDefaultResponse, GetWorker200Response, GetWorkerDefaultResponse, DeleteWorker204Response, DeleteWorkerDefaultResponse, ListWorkers200Response, ListWorkersDefaultResponse } from "./responses.js";
3
+ import type { Client, StreamableMethod } from "@azure-rest/core-client";
4
+ export interface UpsertClassificationPolicy {
5
+ /** Creates or updates a classification policy. */
6
+ patch(options: UpsertClassificationPolicyParameters): StreamableMethod<UpsertClassificationPolicy200Response | UpsertClassificationPolicy201Response | UpsertClassificationPolicyDefaultResponse>;
7
+ /** Retrieves an existing classification policy by Id. */
8
+ get(options?: GetClassificationPolicyParameters): StreamableMethod<GetClassificationPolicy200Response | GetClassificationPolicyDefaultResponse>;
9
+ /** Delete a classification policy by Id. */
10
+ delete(options?: DeleteClassificationPolicyParameters): StreamableMethod<DeleteClassificationPolicy204Response | DeleteClassificationPolicyDefaultResponse>;
11
+ }
12
+ export interface ListClassificationPolicies {
13
+ /** Retrieves existing classification policies. */
14
+ get(options?: ListClassificationPoliciesParameters): StreamableMethod<ListClassificationPolicies200Response | ListClassificationPoliciesDefaultResponse>;
15
+ }
16
+ export interface UpsertDistributionPolicy {
17
+ /** Creates or updates a distribution policy. */
18
+ patch(options: UpsertDistributionPolicyParameters): StreamableMethod<UpsertDistributionPolicy200Response | UpsertDistributionPolicy201Response | UpsertDistributionPolicyDefaultResponse>;
19
+ /** Retrieves an existing distribution policy by Id. */
20
+ get(options?: GetDistributionPolicyParameters): StreamableMethod<GetDistributionPolicy200Response | GetDistributionPolicyDefaultResponse>;
21
+ /** Delete a distribution policy by Id. */
22
+ delete(options?: DeleteDistributionPolicyParameters): StreamableMethod<DeleteDistributionPolicy204Response | DeleteDistributionPolicyDefaultResponse>;
23
+ }
24
+ export interface ListDistributionPolicies {
25
+ /** Retrieves existing distribution policies. */
26
+ get(options?: ListDistributionPoliciesParameters): StreamableMethod<ListDistributionPolicies200Response | ListDistributionPoliciesDefaultResponse>;
27
+ }
28
+ export interface UpsertExceptionPolicy {
29
+ /** Creates or updates a exception policy. */
30
+ patch(options: UpsertExceptionPolicyParameters): StreamableMethod<UpsertExceptionPolicy200Response | UpsertExceptionPolicy201Response | UpsertExceptionPolicyDefaultResponse>;
31
+ /** Retrieves an existing exception policy by Id. */
32
+ get(options?: GetExceptionPolicyParameters): StreamableMethod<GetExceptionPolicy200Response | GetExceptionPolicyDefaultResponse>;
33
+ /** Deletes a exception policy by Id. */
34
+ delete(options?: DeleteExceptionPolicyParameters): StreamableMethod<DeleteExceptionPolicy204Response | DeleteExceptionPolicyDefaultResponse>;
35
+ }
36
+ export interface ListExceptionPolicies {
37
+ /** Retrieves existing exception policies. */
38
+ get(options?: ListExceptionPoliciesParameters): StreamableMethod<ListExceptionPolicies200Response | ListExceptionPoliciesDefaultResponse>;
39
+ }
40
+ export interface UpsertQueue {
41
+ /** Creates or updates a queue. */
42
+ patch(options: UpsertQueueParameters): StreamableMethod<UpsertQueue200Response | UpsertQueue201Response | UpsertQueueDefaultResponse>;
43
+ /** Retrieves an existing queue by Id. */
44
+ get(options?: GetQueueParameters): StreamableMethod<GetQueue200Response | GetQueueDefaultResponse>;
45
+ /** Deletes a queue by Id. */
46
+ delete(options?: DeleteQueueParameters): StreamableMethod<DeleteQueue204Response | DeleteQueueDefaultResponse>;
47
+ }
48
+ export interface ListQueues {
49
+ /** Retrieves existing queues. */
50
+ get(options?: ListQueuesParameters): StreamableMethod<ListQueues200Response | ListQueuesDefaultResponse>;
51
+ }
52
+ export interface UpsertJob {
53
+ /** Creates or updates a router job. */
54
+ patch(options: UpsertJobParameters): StreamableMethod<UpsertJob200Response | UpsertJob201Response | UpsertJobDefaultResponse>;
55
+ /** Retrieves an existing job by Id. */
56
+ get(options?: GetJobParameters): StreamableMethod<GetJob200Response | GetJobDefaultResponse>;
57
+ /** Deletes a job and all of its traces. */
58
+ delete(options?: DeleteJobParameters): StreamableMethod<DeleteJob204Response | DeleteJobDefaultResponse>;
59
+ }
60
+ export interface Reclassify {
61
+ /** Reclassify a job. */
62
+ post(options?: ReclassifyParameters): StreamableMethod<Reclassify200Response | ReclassifyDefaultResponse>;
63
+ }
64
+ export interface Cancel {
65
+ /** Submits request to cancel an existing job by Id while supplying free-form cancellation reason. */
66
+ post(options?: CancelParameters): StreamableMethod<Cancel200Response | CancelDefaultResponse>;
67
+ }
68
+ export interface Complete {
69
+ /** Completes an assigned job. */
70
+ post(options?: CompleteParameters): StreamableMethod<Complete200Response | CompleteDefaultResponse>;
71
+ }
72
+ export interface Close {
73
+ /** Closes a completed job. */
74
+ post(options?: CloseParameters): StreamableMethod<Close200Response | CloseDefaultResponse>;
75
+ }
76
+ export interface ListJobs {
77
+ /** Retrieves list of jobs based on filter parameters. */
78
+ get(options?: ListJobsParameters): StreamableMethod<ListJobs200Response | ListJobsDefaultResponse>;
79
+ }
80
+ export interface GetInQueuePosition {
81
+ /** Gets a job's position details. */
82
+ get(options?: GetInQueuePositionParameters): StreamableMethod<GetInQueuePosition200Response | GetInQueuePositionDefaultResponse>;
83
+ }
84
+ export interface Unassign {
85
+ /** Unassign a job. */
86
+ post(options?: UnassignParameters): StreamableMethod<Unassign200Response | UnassignDefaultResponse>;
87
+ }
88
+ export interface Accept {
89
+ /** Accepts an offer to work on a job and returns a 409/Conflict if another agent accepted the job already. */
90
+ post(options?: AcceptParameters): StreamableMethod<Accept200Response | AcceptDefaultResponse>;
91
+ }
92
+ export interface Decline {
93
+ /** Declines an offer to work on a job. */
94
+ post(options?: DeclineParameters): StreamableMethod<Decline200Response | DeclineDefaultResponse>;
95
+ }
96
+ export interface GetQueueStatistics {
97
+ /** Retrieves a queue's statistics. */
98
+ get(options?: GetQueueStatisticsParameters): StreamableMethod<GetQueueStatistics200Response | GetQueueStatisticsDefaultResponse>;
99
+ }
100
+ export interface UpsertWorker {
101
+ /** Creates or updates a worker. */
102
+ patch(options: UpsertWorkerParameters): StreamableMethod<UpsertWorker200Response | UpsertWorker201Response | UpsertWorkerDefaultResponse>;
103
+ /** Retrieves an existing worker by Id. */
104
+ get(options?: GetWorkerParameters): StreamableMethod<GetWorker200Response | GetWorkerDefaultResponse>;
105
+ /** Deletes a worker and all of its traces. */
106
+ delete(options?: DeleteWorkerParameters): StreamableMethod<DeleteWorker204Response | DeleteWorkerDefaultResponse>;
107
+ }
108
+ export interface ListWorkers {
109
+ /** Retrieves existing workers. */
110
+ get(options?: ListWorkersParameters): StreamableMethod<ListWorkers200Response | ListWorkersDefaultResponse>;
111
+ }
112
+ export interface Routes {
113
+ /** Resource for '/routing/classificationPolicies/\{classificationPolicyId\}' has methods for the following verbs: patch, get, delete */
114
+ (path: "/routing/classificationPolicies/{classificationPolicyId}", classificationPolicyId: string): UpsertClassificationPolicy;
115
+ /** Resource for '/routing/classificationPolicies' has methods for the following verbs: get */
116
+ (path: "/routing/classificationPolicies"): ListClassificationPolicies;
117
+ /** Resource for '/routing/distributionPolicies/\{distributionPolicyId\}' has methods for the following verbs: patch, get, delete */
118
+ (path: "/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId: string): UpsertDistributionPolicy;
119
+ /** Resource for '/routing/distributionPolicies' has methods for the following verbs: get */
120
+ (path: "/routing/distributionPolicies"): ListDistributionPolicies;
121
+ /** Resource for '/routing/exceptionPolicies/\{exceptionPolicyId\}' has methods for the following verbs: patch, get, delete */
122
+ (path: "/routing/exceptionPolicies/{exceptionPolicyId}", exceptionPolicyId: string): UpsertExceptionPolicy;
123
+ /** Resource for '/routing/exceptionPolicies' has methods for the following verbs: get */
124
+ (path: "/routing/exceptionPolicies"): ListExceptionPolicies;
125
+ /** Resource for '/routing/queues/\{queueId\}' has methods for the following verbs: patch, get, delete */
126
+ (path: "/routing/queues/{queueId}", queueId: string): UpsertQueue;
127
+ /** Resource for '/routing/queues' has methods for the following verbs: get */
128
+ (path: "/routing/queues"): ListQueues;
129
+ /** Resource for '/routing/jobs/\{jobId\}' has methods for the following verbs: patch, get, delete */
130
+ (path: "/routing/jobs/{jobId}", jobId: string): UpsertJob;
131
+ /** Resource for '/routing/jobs/\{jobId\}:reclassify' has methods for the following verbs: post */
132
+ (path: "/routing/jobs/{jobId}:reclassify", jobId: string): Reclassify;
133
+ /** Resource for '/routing/jobs/\{jobId\}:cancel' has methods for the following verbs: post */
134
+ (path: "/routing/jobs/{jobId}:cancel", jobId: string): Cancel;
135
+ /** Resource for '/routing/jobs/\{jobId\}/assignments/\{assignmentId\}:complete' has methods for the following verbs: post */
136
+ (path: "/routing/jobs/{jobId}/assignments/{assignmentId}:complete", jobId: string, assignmentId: string): Complete;
137
+ /** Resource for '/routing/jobs/\{jobId\}/assignments/\{assignmentId\}:close' has methods for the following verbs: post */
138
+ (path: "/routing/jobs/{jobId}/assignments/{assignmentId}:close", jobId: string, assignmentId: string): Close;
139
+ /** Resource for '/routing/jobs' has methods for the following verbs: get */
140
+ (path: "/routing/jobs"): ListJobs;
141
+ /** Resource for '/routing/jobs/\{jobId\}/position' has methods for the following verbs: get */
142
+ (path: "/routing/jobs/{jobId}/position", jobId: string): GetInQueuePosition;
143
+ /** Resource for '/routing/jobs/\{jobId\}/assignments/\{assignmentId\}:unassign' has methods for the following verbs: post */
144
+ (path: "/routing/jobs/{jobId}/assignments/{assignmentId}:unassign", jobId: string, assignmentId: string): Unassign;
145
+ /** Resource for '/routing/workers/\{workerId\}/offers/\{offerId\}:accept' has methods for the following verbs: post */
146
+ (path: "/routing/workers/{workerId}/offers/{offerId}:accept", workerId: string, offerId: string): Accept;
147
+ /** Resource for '/routing/workers/\{workerId\}/offers/\{offerId\}:decline' has methods for the following verbs: post */
148
+ (path: "/routing/workers/{workerId}/offers/{offerId}:decline", workerId: string, offerId: string): Decline;
149
+ /** Resource for '/routing/queues/\{queueId\}/statistics' has methods for the following verbs: get */
150
+ (path: "/routing/queues/{queueId}/statistics", queueId: string): GetQueueStatistics;
151
+ /** Resource for '/routing/workers/\{workerId\}' has methods for the following verbs: patch, get, delete */
152
+ (path: "/routing/workers/{workerId}", workerId: string): UpsertWorker;
153
+ /** Resource for '/routing/workers' has methods for the following verbs: get */
154
+ (path: "/routing/workers"): ListWorkers;
155
+ }
156
+ export type AzureCommunicationRoutingServiceClient = Client & {
157
+ path: Routes;
158
+ };
159
+ //# sourceMappingURL=clientDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oCAAoC,EACpC,iCAAiC,EACjC,oCAAoC,EACpC,oCAAoC,EACpC,kCAAkC,EAClC,+BAA+B,EAC/B,kCAAkC,EAClC,kCAAkC,EAClC,+BAA+B,EAC/B,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,qCAAqC,EACrC,qCAAqC,EACrC,yCAAyC,EACzC,kCAAkC,EAClC,sCAAsC,EACtC,qCAAqC,EACrC,yCAAyC,EACzC,qCAAqC,EACrC,yCAAyC,EACzC,mCAAmC,EACnC,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,EAChC,oCAAoC,EACpC,mCAAmC,EACnC,uCAAuC,EACvC,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,EAChC,gCAAgC,EAChC,oCAAoC,EACpC,6BAA6B,EAC7B,iCAAiC,EACjC,gCAAgC,EAChC,oCAAoC,EACpC,gCAAgC,EAChC,oCAAoC,EACpC,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,uBAAuB,EACvB,sBA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AAY,EAAE,MAAM,GACnB,QAAQ,CAAC;IACZ,0HAA0H;IAC1H,CACE,IAAI,EAAE,wDAAwD,EAC9D,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,GACnB,KAAK,CAAC;IACT,4EAA4E;IAC5E,CAAC,IAAI,EAAE,eAAe,GAAG,QAAQ,CAAC;IAClC,+FAA+F;IAC/F,CAAC,IAAI,EAAE,gCAAgC,EAAE,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAAC;IAC5E,6HAA6H;IAC7H,CACE,IAAI,EAAE,2DAA2D,EACjE,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,GACnB,QAAQ,CAAC;IACZ,uHAAuH;IACvH,CACE,IAAI,EAAE,qDAAqD,EAC3D,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,MAAM,CAAC;IACV,wHAAwH;IACxH,CACE,IAAI,EAAE,sDAAsD,EAC5D,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC;IACX,qGAAqG;IACrG,CAAC,IAAI,EAAE,sCAAsC,EAAE,OAAO,EAAE,MAAM,GAAG,kBAAkB,CAAC;IACpF,2GAA2G;IAC3G,CAAC,IAAI,EAAE,6BAA6B,EAAE,QAAQ,EAAE,MAAM,GAAG,YAAY,CAAC;IACtE,+EAA+E;IAC/E,CAAC,IAAI,EAAE,kBAAkB,GAAG,WAAW,CAAC;CACzC;AAED,MAAM,MAAM,sCAAsC,GAAG,MAAM,GAAG;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=clientDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n UpsertClassificationPolicyParameters,\n GetClassificationPolicyParameters,\n DeleteClassificationPolicyParameters,\n ListClassificationPoliciesParameters,\n UpsertDistributionPolicyParameters,\n GetDistributionPolicyParameters,\n DeleteDistributionPolicyParameters,\n ListDistributionPoliciesParameters,\n UpsertExceptionPolicyParameters,\n GetExceptionPolicyParameters,\n DeleteExceptionPolicyParameters,\n ListExceptionPoliciesParameters,\n UpsertQueueParameters,\n GetQueueParameters,\n DeleteQueueParameters,\n ListQueuesParameters,\n UpsertJobParameters,\n GetJobParameters,\n DeleteJobParameters,\n ReclassifyParameters,\n CancelParameters,\n CompleteParameters,\n CloseParameters,\n ListJobsParameters,\n GetInQueuePositionParameters,\n UnassignParameters,\n AcceptParameters,\n DeclineParameters,\n GetQueueStatisticsParameters,\n UpsertWorkerParameters,\n GetWorkerParameters,\n DeleteWorkerParameters,\n ListWorkersParameters,\n} from \"./parameters.js\";\nimport type {\n UpsertClassificationPolicy200Response,\n UpsertClassificationPolicy201Response,\n UpsertClassificationPolicyDefaultResponse,\n GetClassificationPolicy200Response,\n GetClassificationPolicyDefaultResponse,\n DeleteClassificationPolicy204Response,\n DeleteClassificationPolicyDefaultResponse,\n ListClassificationPolicies200Response,\n ListClassificationPoliciesDefaultResponse,\n UpsertDistributionPolicy200Response,\n UpsertDistributionPolicy201Response,\n UpsertDistributionPolicyDefaultResponse,\n GetDistributionPolicy200Response,\n GetDistributionPolicyDefaultResponse,\n DeleteDistributionPolicy204Response,\n DeleteDistributionPolicyDefaultResponse,\n ListDistributionPolicies200Response,\n ListDistributionPoliciesDefaultResponse,\n UpsertExceptionPolicy200Response,\n UpsertExceptionPolicy201Response,\n UpsertExceptionPolicyDefaultResponse,\n GetExceptionPolicy200Response,\n GetExceptionPolicyDefaultResponse,\n DeleteExceptionPolicy204Response,\n DeleteExceptionPolicyDefaultResponse,\n ListExceptionPolicies200Response,\n ListExceptionPoliciesDefaultResponse,\n UpsertQueue200Response,\n UpsertQueue201Response,\n UpsertQueueDefaultResponse,\n GetQueue200Response,\n GetQueueDefaultResponse,\n DeleteQueue204Response,\n DeleteQueueDefaultResponse,\n ListQueues200Response,\n ListQueuesDefaultResponse,\n UpsertJob200Response,\n UpsertJob201Response,\n UpsertJobDefaultResponse,\n GetJob200Response,\n GetJobDefaultResponse,\n DeleteJob204Response,\n DeleteJobDefaultResponse,\n Reclassify200Response,\n ReclassifyDefaultResponse,\n Cancel200Response,\n CancelDefaultResponse,\n Complete200Response,\n CompleteDefaultResponse,\n Close200Response,\n CloseDefaultResponse,\n ListJobs200Response,\n ListJobsDefaultResponse,\n GetInQueuePosition200Response,\n GetInQueuePositionDefaultResponse,\n Unassign200Response,\n UnassignDefaultResponse,\n Accept200Response,\n AcceptDefaultResponse,\n Decline200Response,\n DeclineDefaultResponse,\n GetQueueStatistics200Response,\n GetQueueStatisticsDefaultResponse,\n UpsertWorker200Response,\n UpsertWorker201Response,\n UpsertWorkerDefaultResponse,\n GetWorker200Response,\n GetWorkerDefaultResponse,\n DeleteWorker204Response,\n DeleteWorkerDefaultResponse,\n ListWorkers200Response,\n ListWorkersDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface UpsertClassificationPolicy {\n /** Creates or updates a classification policy. */\n patch(\n options: UpsertClassificationPolicyParameters,\n ): StreamableMethod<\n | UpsertClassificationPolicy200Response\n | UpsertClassificationPolicy201Response\n | UpsertClassificationPolicyDefaultResponse\n >;\n /** Retrieves an existing classification policy by Id. */\n get(\n options?: GetClassificationPolicyParameters,\n ): StreamableMethod<GetClassificationPolicy200Response | GetClassificationPolicyDefaultResponse>;\n /** Delete a classification policy by Id. */\n delete(\n options?: DeleteClassificationPolicyParameters,\n ): StreamableMethod<\n DeleteClassificationPolicy204Response | DeleteClassificationPolicyDefaultResponse\n >;\n}\n\nexport interface ListClassificationPolicies {\n /** Retrieves existing classification policies. */\n get(\n options?: ListClassificationPoliciesParameters,\n ): StreamableMethod<\n ListClassificationPolicies200Response | ListClassificationPoliciesDefaultResponse\n >;\n}\n\nexport interface UpsertDistributionPolicy {\n /** Creates or updates a distribution policy. */\n patch(\n options: UpsertDistributionPolicyParameters,\n ): StreamableMethod<\n | UpsertDistributionPolicy200Response\n | UpsertDistributionPolicy201Response\n | UpsertDistributionPolicyDefaultResponse\n >;\n /** Retrieves an existing distribution policy by Id. */\n get(\n options?: GetDistributionPolicyParameters,\n ): StreamableMethod<GetDistributionPolicy200Response | GetDistributionPolicyDefaultResponse>;\n /** Delete a distribution policy by Id. */\n delete(\n options?: DeleteDistributionPolicyParameters,\n ): StreamableMethod<\n DeleteDistributionPolicy204Response | DeleteDistributionPolicyDefaultResponse\n >;\n}\n\nexport interface ListDistributionPolicies {\n /** Retrieves existing distribution policies. */\n get(\n options?: ListDistributionPoliciesParameters,\n ): StreamableMethod<\n ListDistributionPolicies200Response | ListDistributionPoliciesDefaultResponse\n >;\n}\n\nexport interface UpsertExceptionPolicy {\n /** Creates or updates a exception policy. */\n patch(\n options: UpsertExceptionPolicyParameters,\n ): StreamableMethod<\n | UpsertExceptionPolicy200Response\n | UpsertExceptionPolicy201Response\n | UpsertExceptionPolicyDefaultResponse\n >;\n /** Retrieves an existing exception policy by Id. */\n get(\n options?: GetExceptionPolicyParameters,\n ): StreamableMethod<GetExceptionPolicy200Response | GetExceptionPolicyDefaultResponse>;\n /** Deletes a exception policy by Id. */\n delete(\n options?: DeleteExceptionPolicyParameters,\n ): StreamableMethod<DeleteExceptionPolicy204Response | DeleteExceptionPolicyDefaultResponse>;\n}\n\nexport interface ListExceptionPolicies {\n /** Retrieves existing exception policies. */\n get(\n options?: ListExceptionPoliciesParameters,\n ): StreamableMethod<ListExceptionPolicies200Response | ListExceptionPoliciesDefaultResponse>;\n}\n\nexport interface UpsertQueue {\n /** Creates or updates a queue. */\n patch(\n options: UpsertQueueParameters,\n ): StreamableMethod<UpsertQueue200Response | UpsertQueue201Response | UpsertQueueDefaultResponse>;\n /** Retrieves an existing queue by Id. */\n get(\n options?: GetQueueParameters,\n ): StreamableMethod<GetQueue200Response | GetQueueDefaultResponse>;\n /** Deletes a queue by Id. */\n delete(\n options?: DeleteQueueParameters,\n ): StreamableMethod<DeleteQueue204Response | DeleteQueueDefaultResponse>;\n}\n\nexport interface ListQueues {\n /** Retrieves existing queues. */\n get(\n options?: ListQueuesParameters,\n ): StreamableMethod<ListQueues200Response | ListQueuesDefaultResponse>;\n}\n\nexport interface UpsertJob {\n /** Creates or updates a router job. */\n patch(\n options: UpsertJobParameters,\n ): StreamableMethod<UpsertJob200Response | UpsertJob201Response | UpsertJobDefaultResponse>;\n /** Retrieves an existing job by Id. */\n get(options?: GetJobParameters): StreamableMethod<GetJob200Response | GetJobDefaultResponse>;\n /** Deletes a job and all of its traces. */\n delete(\n options?: DeleteJobParameters,\n ): StreamableMethod<DeleteJob204Response | DeleteJobDefaultResponse>;\n}\n\nexport interface Reclassify {\n /** Reclassify a job. */\n post(\n options?: ReclassifyParameters,\n ): StreamableMethod<Reclassify200Response | ReclassifyDefaultResponse>;\n}\n\nexport interface Cancel {\n /** Submits request to cancel an existing job by Id while supplying free-form cancellation reason. */\n post(options?: CancelParameters): StreamableMethod<Cancel200Response | CancelDefaultResponse>;\n}\n\nexport interface Complete {\n /** Completes an assigned job. */\n post(\n options?: CompleteParameters,\n ): StreamableMethod<Complete200Response | CompleteDefaultResponse>;\n}\n\nexport interface Close {\n /** Closes a completed job. */\n post(options?: CloseParameters): StreamableMethod<Close200Response | CloseDefaultResponse>;\n}\n\nexport interface ListJobs {\n /** Retrieves list of jobs based on filter parameters. */\n get(\n options?: ListJobsParameters,\n ): StreamableMethod<ListJobs200Response | ListJobsDefaultResponse>;\n}\n\nexport interface GetInQueuePosition {\n /** Gets a job's position details. */\n get(\n options?: GetInQueuePositionParameters,\n ): StreamableMethod<GetInQueuePosition200Response | GetInQueuePositionDefaultResponse>;\n}\n\nexport interface Unassign {\n /** Unassign a job. */\n post(\n options?: UnassignParameters,\n ): StreamableMethod<Unassign200Response | UnassignDefaultResponse>;\n}\n\nexport interface Accept {\n /** Accepts an offer to work on a job and returns a 409/Conflict if another agent accepted the job already. */\n post(options?: AcceptParameters): StreamableMethod<Accept200Response | AcceptDefaultResponse>;\n}\n\nexport interface Decline {\n /** Declines an offer to work on a job. */\n post(options?: DeclineParameters): StreamableMethod<Decline200Response | DeclineDefaultResponse>;\n}\n\nexport interface GetQueueStatistics {\n /** Retrieves a queue's statistics. */\n get(\n options?: GetQueueStatisticsParameters,\n ): StreamableMethod<GetQueueStatistics200Response | GetQueueStatisticsDefaultResponse>;\n}\n\nexport interface UpsertWorker {\n /** Creates or updates a worker. */\n patch(\n options: UpsertWorkerParameters,\n ): StreamableMethod<\n UpsertWorker200Response | UpsertWorker201Response | UpsertWorkerDefaultResponse\n >;\n /** Retrieves an existing worker by Id. */\n get(\n options?: GetWorkerParameters,\n ): StreamableMethod<GetWorker200Response | GetWorkerDefaultResponse>;\n /** Deletes a worker and all of its traces. */\n delete(\n options?: DeleteWorkerParameters,\n ): StreamableMethod<DeleteWorker204Response | DeleteWorkerDefaultResponse>;\n}\n\nexport interface ListWorkers {\n /** Retrieves existing workers. */\n get(\n options?: ListWorkersParameters,\n ): StreamableMethod<ListWorkers200Response | ListWorkersDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/routing/classificationPolicies/\\{classificationPolicyId\\}' has methods for the following verbs: patch, get, delete */\n (\n path: \"/routing/classificationPolicies/{classificationPolicyId}\",\n classificationPolicyId: string,\n ): UpsertClassificationPolicy;\n /** Resource for '/routing/classificationPolicies' has methods for the following verbs: get */\n (path: \"/routing/classificationPolicies\"): ListClassificationPolicies;\n /** Resource for '/routing/distributionPolicies/\\{distributionPolicyId\\}' has methods for the following verbs: patch, get, delete */\n (\n path: \"/routing/distributionPolicies/{distributionPolicyId}\",\n distributionPolicyId: string,\n ): UpsertDistributionPolicy;\n /** Resource for '/routing/distributionPolicies' has methods for the following verbs: get */\n (path: \"/routing/distributionPolicies\"): ListDistributionPolicies;\n /** Resource for '/routing/exceptionPolicies/\\{exceptionPolicyId\\}' has methods for the following verbs: patch, get, delete */\n (\n path: \"/routing/exceptionPolicies/{exceptionPolicyId}\",\n exceptionPolicyId: string,\n ): UpsertExceptionPolicy;\n /** Resource for '/routing/exceptionPolicies' has methods for the following verbs: get */\n (path: \"/routing/exceptionPolicies\"): ListExceptionPolicies;\n /** Resource for '/routing/queues/\\{queueId\\}' has methods for the following verbs: patch, get, delete */\n (path: \"/routing/queues/{queueId}\", queueId: string): UpsertQueue;\n /** Resource for '/routing/queues' has methods for the following verbs: get */\n (path: \"/routing/queues\"): ListQueues;\n /** Resource for '/routing/jobs/\\{jobId\\}' has methods for the following verbs: patch, get, delete */\n (path: \"/routing/jobs/{jobId}\", jobId: string): UpsertJob;\n /** Resource for '/routing/jobs/\\{jobId\\}:reclassify' has methods for the following verbs: post */\n (path: \"/routing/jobs/{jobId}:reclassify\", jobId: string): Reclassify;\n /** Resource for '/routing/jobs/\\{jobId\\}:cancel' has methods for the following verbs: post */\n (path: \"/routing/jobs/{jobId}:cancel\", jobId: string): Cancel;\n /** Resource for '/routing/jobs/\\{jobId\\}/assignments/\\{assignmentId\\}:complete' has methods for the following verbs: post */\n (\n path: \"/routing/jobs/{jobId}/assignments/{assignmentId}:complete\",\n jobId: string,\n assignmentId: string,\n ): Complete;\n /** Resource for '/routing/jobs/\\{jobId\\}/assignments/\\{assignmentId\\}:close' has methods for the following verbs: post */\n (\n path: \"/routing/jobs/{jobId}/assignments/{assignmentId}:close\",\n jobId: string,\n assignmentId: string,\n ): Close;\n /** Resource for '/routing/jobs' has methods for the following verbs: get */\n (path: \"/routing/jobs\"): ListJobs;\n /** Resource for '/routing/jobs/\\{jobId\\}/position' has methods for the following verbs: get */\n (path: \"/routing/jobs/{jobId}/position\", jobId: string): GetInQueuePosition;\n /** Resource for '/routing/jobs/\\{jobId\\}/assignments/\\{assignmentId\\}:unassign' has methods for the following verbs: post */\n (\n path: \"/routing/jobs/{jobId}/assignments/{assignmentId}:unassign\",\n jobId: string,\n assignmentId: string,\n ): Unassign;\n /** Resource for '/routing/workers/\\{workerId\\}/offers/\\{offerId\\}:accept' has methods for the following verbs: post */\n (\n path: \"/routing/workers/{workerId}/offers/{offerId}:accept\",\n workerId: string,\n offerId: string,\n ): Accept;\n /** Resource for '/routing/workers/\\{workerId\\}/offers/\\{offerId\\}:decline' has methods for the following verbs: post */\n (\n path: \"/routing/workers/{workerId}/offers/{offerId}:decline\",\n workerId: string,\n offerId: string,\n ): Decline;\n /** Resource for '/routing/queues/\\{queueId\\}/statistics' has methods for the following verbs: get */\n (path: \"/routing/queues/{queueId}/statistics\", queueId: string): GetQueueStatistics;\n /** Resource for '/routing/workers/\\{workerId\\}' has methods for the following verbs: patch, get, delete */\n (path: \"/routing/workers/{workerId}\", workerId: string): UpsertWorker;\n /** Resource for '/routing/workers' has methods for the following verbs: get */\n (path: \"/routing/workers\"): ListWorkers;\n}\n\nexport type AzureCommunicationRoutingServiceClient = Client & {\n path: Routes;\n};\n"]}
@@ -0,0 +1,11 @@
1
+ import AzureCommunicationRoutingServiceClient from "./azureCommunicationRoutingServiceCustmizedClient.js";
2
+ export * from "./azureCommunicationRoutingServiceClient.js";
3
+ export * from "./parameters.js";
4
+ export * from "./responses.js";
5
+ export * from "./clientDefinitions.js";
6
+ export * from "./isUnexpected.js";
7
+ export * from "./models.js";
8
+ export * from "./outputModels.js";
9
+ export * from "./paginateHelper.js";
10
+ export default AzureCommunicationRoutingServiceClient;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,sCAAsC,MAAM,sDAAsD,CAAC;AAE1G,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,eAAe,sCAAsC,CAAC"}
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import AzureCommunicationRoutingServiceClient from "./azureCommunicationRoutingServiceCustmizedClient.js";
4
+ export * from "./azureCommunicationRoutingServiceClient.js";
5
+ export * from "./parameters.js";
6
+ export * from "./responses.js";
7
+ export * from "./clientDefinitions.js";
8
+ export * from "./isUnexpected.js";
9
+ export * from "./models.js";
10
+ export * from "./outputModels.js";
11
+ export * from "./paginateHelper.js";
12
+ export default AzureCommunicationRoutingServiceClient;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,sCAAsC,MAAM,sDAAsD,CAAC;AAE1G,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,eAAe,sCAAsC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport AzureCommunicationRoutingServiceClient from \"./azureCommunicationRoutingServiceCustmizedClient.js\";\n\nexport * from \"./azureCommunicationRoutingServiceClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./models.js\";\nexport * from \"./outputModels.js\";\nexport * from \"./paginateHelper.js\";\n\nexport default AzureCommunicationRoutingServiceClient;\n"]}
@@ -0,0 +1,35 @@
1
+ import type { UpsertClassificationPolicy200Response, UpsertClassificationPolicy201Response, UpsertClassificationPolicyDefaultResponse, GetClassificationPolicy200Response, GetClassificationPolicyDefaultResponse, DeleteClassificationPolicy204Response, DeleteClassificationPolicyDefaultResponse, ListClassificationPolicies200Response, ListClassificationPoliciesDefaultResponse, UpsertDistributionPolicy200Response, UpsertDistributionPolicy201Response, UpsertDistributionPolicyDefaultResponse, GetDistributionPolicy200Response, GetDistributionPolicyDefaultResponse, DeleteDistributionPolicy204Response, DeleteDistributionPolicyDefaultResponse, ListDistributionPolicies200Response, ListDistributionPoliciesDefaultResponse, UpsertExceptionPolicy200Response, UpsertExceptionPolicy201Response, UpsertExceptionPolicyDefaultResponse, GetExceptionPolicy200Response, GetExceptionPolicyDefaultResponse, DeleteExceptionPolicy204Response, DeleteExceptionPolicyDefaultResponse, ListExceptionPolicies200Response, ListExceptionPoliciesDefaultResponse, UpsertQueue200Response, UpsertQueue201Response, UpsertQueueDefaultResponse, GetQueue200Response, GetQueueDefaultResponse, DeleteQueue204Response, DeleteQueueDefaultResponse, ListQueues200Response, ListQueuesDefaultResponse, UpsertJob200Response, UpsertJob201Response, UpsertJobDefaultResponse, GetJob200Response, GetJobDefaultResponse, DeleteJob204Response, DeleteJobDefaultResponse, Reclassify200Response, ReclassifyDefaultResponse, Cancel200Response, CancelDefaultResponse, Complete200Response, CompleteDefaultResponse, Close200Response, CloseDefaultResponse, ListJobs200Response, ListJobsDefaultResponse, GetInQueuePosition200Response, GetInQueuePositionDefaultResponse, Unassign200Response, UnassignDefaultResponse, Accept200Response, AcceptDefaultResponse, Decline200Response, DeclineDefaultResponse, GetQueueStatistics200Response, GetQueueStatisticsDefaultResponse, UpsertWorker200Response, UpsertWorker201Response, UpsertWorkerDefaultResponse, GetWorker200Response, GetWorkerDefaultResponse, DeleteWorker204Response, DeleteWorkerDefaultResponse, ListWorkers200Response, ListWorkersDefaultResponse } from "./responses.js";
2
+ export declare function isUnexpected(response: UpsertClassificationPolicy200Response | UpsertClassificationPolicy201Response | UpsertClassificationPolicyDefaultResponse): response is UpsertClassificationPolicyDefaultResponse;
3
+ export declare function isUnexpected(response: GetClassificationPolicy200Response | GetClassificationPolicyDefaultResponse): response is GetClassificationPolicyDefaultResponse;
4
+ export declare function isUnexpected(response: DeleteClassificationPolicy204Response | DeleteClassificationPolicyDefaultResponse): response is DeleteClassificationPolicyDefaultResponse;
5
+ export declare function isUnexpected(response: ListClassificationPolicies200Response | ListClassificationPoliciesDefaultResponse): response is ListClassificationPoliciesDefaultResponse;
6
+ export declare function isUnexpected(response: UpsertDistributionPolicy200Response | UpsertDistributionPolicy201Response | UpsertDistributionPolicyDefaultResponse): response is UpsertDistributionPolicyDefaultResponse;
7
+ export declare function isUnexpected(response: GetDistributionPolicy200Response | GetDistributionPolicyDefaultResponse): response is GetDistributionPolicyDefaultResponse;
8
+ export declare function isUnexpected(response: DeleteDistributionPolicy204Response | DeleteDistributionPolicyDefaultResponse): response is DeleteDistributionPolicyDefaultResponse;
9
+ export declare function isUnexpected(response: ListDistributionPolicies200Response | ListDistributionPoliciesDefaultResponse): response is ListDistributionPoliciesDefaultResponse;
10
+ export declare function isUnexpected(response: UpsertExceptionPolicy200Response | UpsertExceptionPolicy201Response | UpsertExceptionPolicyDefaultResponse): response is UpsertExceptionPolicyDefaultResponse;
11
+ export declare function isUnexpected(response: GetExceptionPolicy200Response | GetExceptionPolicyDefaultResponse): response is GetExceptionPolicyDefaultResponse;
12
+ export declare function isUnexpected(response: DeleteExceptionPolicy204Response | DeleteExceptionPolicyDefaultResponse): response is DeleteExceptionPolicyDefaultResponse;
13
+ export declare function isUnexpected(response: ListExceptionPolicies200Response | ListExceptionPoliciesDefaultResponse): response is ListExceptionPoliciesDefaultResponse;
14
+ export declare function isUnexpected(response: UpsertQueue200Response | UpsertQueue201Response | UpsertQueueDefaultResponse): response is UpsertQueueDefaultResponse;
15
+ export declare function isUnexpected(response: GetQueue200Response | GetQueueDefaultResponse): response is GetQueueDefaultResponse;
16
+ export declare function isUnexpected(response: DeleteQueue204Response | DeleteQueueDefaultResponse): response is DeleteQueueDefaultResponse;
17
+ export declare function isUnexpected(response: ListQueues200Response | ListQueuesDefaultResponse): response is ListQueuesDefaultResponse;
18
+ export declare function isUnexpected(response: UpsertJob200Response | UpsertJob201Response | UpsertJobDefaultResponse): response is UpsertJobDefaultResponse;
19
+ export declare function isUnexpected(response: GetJob200Response | GetJobDefaultResponse): response is GetJobDefaultResponse;
20
+ export declare function isUnexpected(response: DeleteJob204Response | DeleteJobDefaultResponse): response is DeleteJobDefaultResponse;
21
+ export declare function isUnexpected(response: Reclassify200Response | ReclassifyDefaultResponse): response is ReclassifyDefaultResponse;
22
+ export declare function isUnexpected(response: Cancel200Response | CancelDefaultResponse): response is CancelDefaultResponse;
23
+ export declare function isUnexpected(response: Complete200Response | CompleteDefaultResponse): response is CompleteDefaultResponse;
24
+ export declare function isUnexpected(response: Close200Response | CloseDefaultResponse): response is CloseDefaultResponse;
25
+ export declare function isUnexpected(response: ListJobs200Response | ListJobsDefaultResponse): response is ListJobsDefaultResponse;
26
+ export declare function isUnexpected(response: GetInQueuePosition200Response | GetInQueuePositionDefaultResponse): response is GetInQueuePositionDefaultResponse;
27
+ export declare function isUnexpected(response: Unassign200Response | UnassignDefaultResponse): response is UnassignDefaultResponse;
28
+ export declare function isUnexpected(response: Accept200Response | AcceptDefaultResponse): response is AcceptDefaultResponse;
29
+ export declare function isUnexpected(response: Decline200Response | DeclineDefaultResponse): response is DeclineDefaultResponse;
30
+ export declare function isUnexpected(response: GetQueueStatistics200Response | GetQueueStatisticsDefaultResponse): response is GetQueueStatisticsDefaultResponse;
31
+ export declare function isUnexpected(response: UpsertWorker200Response | UpsertWorker201Response | UpsertWorkerDefaultResponse): response is UpsertWorkerDefaultResponse;
32
+ export declare function isUnexpected(response: GetWorker200Response | GetWorkerDefaultResponse): response is GetWorkerDefaultResponse;
33
+ export declare function isUnexpected(response: DeleteWorker204Response | DeleteWorkerDefaultResponse): response is DeleteWorkerDefaultResponse;
34
+ export declare function isUnexpected(response: ListWorkers200Response | ListWorkersDefaultResponse): response is ListWorkersDefaultResponse;
35
+ //# sourceMappingURL=isUnexpected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,qCAAqC,EACrC,qCAAqC,EACrC,yCAAyC,EACzC,kCAAkC,EAClC,sCAAsC,EACtC,qCAAqC,EACrC,yCAAyC,EACzC,qCAAqC,EACrC,yCAAyC,EACzC,mCAAmC,EACnC,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,EAChC,oCAAoC,EACpC,mCAAmC,EACnC,uCAAuC,EACvC,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,EAChC,gCAAgC,EAChC,oCAAoC,EACpC,6BAA6B,EAC7B,iCAAiC,EACjC,gCAAgC,EAChC,oCAAoC,EACpC,gCAAgC,EAChC,oCAAoC,EACpC,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,6BAA6B,EAC7B,iCAAiC,EACjC,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,6BAA6B,EAC7B,iCAAiC,EACjC,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBA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AAmB,GAAG,uBAAuB,GACtD,QAAQ,IAAI,uBAAuB,CAAC;AACvC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,6BAA6B,GAAG,iCAAiC,GAC1E,QAAQ,IAAI,iCAAiC,CAAC;AACjD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,mBAAmB,GAAG,uBAAuB,GACtD,QAAQ,IAAI,uBAAuB,CAAC;AACvC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,iBAAiB,GAAG,qBAAqB,GAClD,QAAQ,IAAI,qBAAqB,CAAC;AACrC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,kBAAkB,GAAG,sBAAsB,GACpD,QAAQ,IAAI,sBAAsB,CAAC;AACtC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,6BAA6B,GAAG,iCAAiC,GAC1E,QAAQ,IAAI,iCAAiC,CAAC;AACjD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,uBAAuB,GAAG,2BAA2B,GACxF,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,sBAAsB,GAAG,0BAA0B,GAC5D,QAAQ,IAAI,0BAA0B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  const responseMap = {
4
4
  "PATCH /routing/classificationPolicies/{classificationPolicyId}": ["200", "201"],
5
5
  "GET /routing/classificationPolicies/{classificationPolicyId}": ["200"],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],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CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n UpsertClassificationPolicy200Response,\n UpsertClassificationPolicy201Response,\n UpsertClassificationPolicyDefaultResponse,\n GetClassificationPolicy200Response,\n GetClassificationPolicyDefaultResponse,\n DeleteClassificationPolicy204Response,\n DeleteClassificationPolicyDefaultResponse,\n ListClassificationPolicies200Response,\n ListClassificationPoliciesDefaultResponse,\n UpsertDistributionPolicy200Response,\n UpsertDistributionPolicy201Response,\n UpsertDistributionPolicyDefaultResponse,\n GetDistributionPolicy200Response,\n GetDistributionPolicyDefaultResponse,\n DeleteDistributionPolicy204Response,\n DeleteDistributionPolicyDefaultResponse,\n ListDistributionPolicies200Response,\n ListDistributionPoliciesDefaultResponse,\n UpsertExceptionPolicy200Response,\n UpsertExceptionPolicy201Response,\n UpsertExceptionPolicyDefaultResponse,\n GetExceptionPolicy200Response,\n GetExceptionPolicyDefaultResponse,\n DeleteExceptionPolicy204Response,\n DeleteExceptionPolicyDefaultResponse,\n ListExceptionPolicies200Response,\n ListExceptionPoliciesDefaultResponse,\n UpsertQueue200Response,\n UpsertQueue201Response,\n UpsertQueueDefaultResponse,\n GetQueue200Response,\n GetQueueDefaultResponse,\n DeleteQueue204Response,\n DeleteQueueDefaultResponse,\n ListQueues200Response,\n ListQueuesDefaultResponse,\n UpsertJob200Response,\n UpsertJob201Response,\n UpsertJobDefaultResponse,\n GetJob200Response,\n GetJobDefaultResponse,\n DeleteJob204Response,\n DeleteJobDefaultResponse,\n Reclassify200Response,\n ReclassifyDefaultResponse,\n Cancel200Response,\n CancelDefaultResponse,\n Complete200Response,\n CompleteDefaultResponse,\n Close200Response,\n CloseDefaultResponse,\n ListJobs200Response,\n ListJobsDefaultResponse,\n GetInQueuePosition200Response,\n GetInQueuePositionDefaultResponse,\n Unassign200Response,\n UnassignDefaultResponse,\n Accept200Response,\n AcceptDefaultResponse,\n Decline200Response,\n DeclineDefaultResponse,\n GetQueueStatistics200Response,\n GetQueueStatisticsDefaultResponse,\n UpsertWorker200Response,\n UpsertWorker201Response,\n UpsertWorkerDefaultResponse,\n GetWorker200Response,\n GetWorkerDefaultResponse,\n DeleteWorker204Response,\n DeleteWorkerDefaultResponse,\n ListWorkers200Response,\n ListWorkersDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"PATCH /routing/classificationPolicies/{classificationPolicyId}\": [\"200\", \"201\"],\n \"GET /routing/classificationPolicies/{classificationPolicyId}\": [\"200\"],\n \"DELETE /routing/classificationPolicies/{classificationPolicyId}\": [\"204\"],\n \"GET /routing/classificationPolicies\": [\"200\"],\n \"PATCH /routing/distributionPolicies/{distributionPolicyId}\": [\"200\", \"201\"],\n \"GET /routing/distributionPolicies/{distributionPolicyId}\": [\"200\"],\n \"DELETE /routing/distributionPolicies/{distributionPolicyId}\": [\"204\"],\n \"GET /routing/distributionPolicies\": [\"200\"],\n \"PATCH /routing/exceptionPolicies/{exceptionPolicyId}\": [\"200\", \"201\"],\n \"GET /routing/exceptionPolicies/{exceptionPolicyId}\": [\"200\"],\n \"DELETE /routing/exceptionPolicies/{exceptionPolicyId}\": [\"204\"],\n \"GET /routing/exceptionPolicies\": [\"200\"],\n \"PATCH /routing/queues/{queueId}\": [\"200\", \"201\"],\n \"GET /routing/queues/{queueId}\": [\"200\"],\n \"DELETE /routing/queues/{queueId}\": [\"204\"],\n \"GET /routing/queues\": [\"200\"],\n \"PATCH /routing/jobs/{jobId}\": [\"200\", \"201\"],\n \"GET /routing/jobs/{jobId}\": [\"200\"],\n \"DELETE /routing/jobs/{jobId}\": [\"204\"],\n \"POST /routing/jobs/{jobId}:reclassify\": [\"200\"],\n \"POST /routing/jobs/{jobId}:cancel\": [\"200\"],\n \"POST /routing/jobs/{jobId}/assignments/{assignmentId}:complete\": [\"200\"],\n \"POST /routing/jobs/{jobId}/assignments/{assignmentId}:close\": [\"200\"],\n \"GET /routing/jobs\": [\"200\"],\n \"GET /routing/jobs/{jobId}/position\": [\"200\"],\n \"POST /routing/jobs/{jobId}/assignments/{assignmentId}:unassign\": [\"200\"],\n \"POST /routing/workers/{workerId}/offers/{offerId}:accept\": [\"200\"],\n \"POST /routing/workers/{workerId}/offers/{offerId}:decline\": [\"200\"],\n \"GET /routing/queues/{queueId}/statistics\": [\"200\"],\n \"PATCH /routing/workers/{workerId}\": [\"200\", \"201\"],\n \"GET /routing/workers/{workerId}\": [\"200\"],\n \"DELETE /routing/workers/{workerId}\": [\"204\"],\n \"GET /routing/workers\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | UpsertClassificationPolicy200Response\n | UpsertClassificationPolicy201Response\n | UpsertClassificationPolicyDefaultResponse,\n): response is UpsertClassificationPolicyDefaultResponse;\nexport function isUnexpected(\n response: GetClassificationPolicy200Response | GetClassificationPolicyDefaultResponse,\n): response is GetClassificationPolicyDefaultResponse;\nexport function isUnexpected(\n response: DeleteClassificationPolicy204Response | DeleteClassificationPolicyDefaultResponse,\n): response is DeleteClassificationPolicyDefaultResponse;\nexport function isUnexpected(\n response: ListClassificationPolicies200Response | ListClassificationPoliciesDefaultResponse,\n): response is ListClassificationPoliciesDefaultResponse;\nexport function isUnexpected(\n response:\n | UpsertDistributionPolicy200Response\n | UpsertDistributionPolicy201Response\n | UpsertDistributionPolicyDefaultResponse,\n): response is UpsertDistributionPolicyDefaultResponse;\nexport function isUnexpected(\n response: GetDistributionPolicy200Response | GetDistributionPolicyDefaultResponse,\n): response is GetDistributionPolicyDefaultResponse;\nexport function isUnexpected(\n response: DeleteDistributionPolicy204Response | DeleteDistributionPolicyDefaultResponse,\n): response is DeleteDistributionPolicyDefaultResponse;\nexport function isUnexpected(\n response: ListDistributionPolicies200Response | ListDistributionPoliciesDefaultResponse,\n): response is ListDistributionPoliciesDefaultResponse;\nexport function isUnexpected(\n response:\n | UpsertExceptionPolicy200Response\n | UpsertExceptionPolicy201Response\n | UpsertExceptionPolicyDefaultResponse,\n): response is UpsertExceptionPolicyDefaultResponse;\nexport function isUnexpected(\n response: GetExceptionPolicy200Response | GetExceptionPolicyDefaultResponse,\n): response is GetExceptionPolicyDefaultResponse;\nexport function isUnexpected(\n response: DeleteExceptionPolicy204Response | DeleteExceptionPolicyDefaultResponse,\n): response is DeleteExceptionPolicyDefaultResponse;\nexport function isUnexpected(\n response: ListExceptionPolicies200Response | ListExceptionPoliciesDefaultResponse,\n): response is ListExceptionPoliciesDefaultResponse;\nexport function isUnexpected(\n response: UpsertQueue200Response | UpsertQueue201Response | UpsertQueueDefaultResponse,\n): response is UpsertQueueDefaultResponse;\nexport function isUnexpected(\n response: GetQueue200Response | GetQueueDefaultResponse,\n): response is GetQueueDefaultResponse;\nexport function isUnexpected(\n response: DeleteQueue204Response | DeleteQueueDefaultResponse,\n): response is DeleteQueueDefaultResponse;\nexport function isUnexpected(\n response: ListQueues200Response | ListQueuesDefaultResponse,\n): response is ListQueuesDefaultResponse;\nexport function isUnexpected(\n response: UpsertJob200Response | UpsertJob201Response | UpsertJobDefaultResponse,\n): response is UpsertJobDefaultResponse;\nexport function isUnexpected(\n response: GetJob200Response | GetJobDefaultResponse,\n): response is GetJobDefaultResponse;\nexport function isUnexpected(\n response: DeleteJob204Response | DeleteJobDefaultResponse,\n): response is DeleteJobDefaultResponse;\nexport function isUnexpected(\n response: Reclassify200Response | ReclassifyDefaultResponse,\n): response is ReclassifyDefaultResponse;\nexport function isUnexpected(\n response: Cancel200Response | CancelDefaultResponse,\n): response is CancelDefaultResponse;\nexport function isUnexpected(\n response: Complete200Response | CompleteDefaultResponse,\n): response is CompleteDefaultResponse;\nexport function isUnexpected(\n response: Close200Response | CloseDefaultResponse,\n): response is CloseDefaultResponse;\nexport function isUnexpected(\n response: ListJobs200Response | ListJobsDefaultResponse,\n): response is ListJobsDefaultResponse;\nexport function isUnexpected(\n response: GetInQueuePosition200Response | GetInQueuePositionDefaultResponse,\n): response is GetInQueuePositionDefaultResponse;\nexport function isUnexpected(\n response: Unassign200Response | UnassignDefaultResponse,\n): response is UnassignDefaultResponse;\nexport function isUnexpected(\n response: Accept200Response | AcceptDefaultResponse,\n): response is AcceptDefaultResponse;\nexport function isUnexpected(\n response: Decline200Response | DeclineDefaultResponse,\n): response is DeclineDefaultResponse;\nexport function isUnexpected(\n response: GetQueueStatistics200Response | GetQueueStatisticsDefaultResponse,\n): response is GetQueueStatisticsDefaultResponse;\nexport function isUnexpected(\n response: UpsertWorker200Response | UpsertWorker201Response | UpsertWorkerDefaultResponse,\n): response is UpsertWorkerDefaultResponse;\nexport function isUnexpected(\n response: GetWorker200Response | GetWorkerDefaultResponse,\n): response is GetWorkerDefaultResponse;\nexport function isUnexpected(\n response: DeleteWorker204Response | DeleteWorkerDefaultResponse,\n): response is DeleteWorkerDefaultResponse;\nexport function isUnexpected(\n response: ListWorkers200Response | ListWorkersDefaultResponse,\n): response is ListWorkersDefaultResponse;\nexport function isUnexpected(\n response:\n | UpsertClassificationPolicy200Response\n | UpsertClassificationPolicy201Response\n | UpsertClassificationPolicyDefaultResponse\n | GetClassificationPolicy200Response\n | GetClassificationPolicyDefaultResponse\n | DeleteClassificationPolicy204Response\n | DeleteClassificationPolicyDefaultResponse\n | ListClassificationPolicies200Response\n | ListClassificationPoliciesDefaultResponse\n | UpsertDistributionPolicy200Response\n | UpsertDistributionPolicy201Response\n | UpsertDistributionPolicyDefaultResponse\n | GetDistributionPolicy200Response\n | GetDistributionPolicyDefaultResponse\n | DeleteDistributionPolicy204Response\n | DeleteDistributionPolicyDefaultResponse\n | ListDistributionPolicies200Response\n | ListDistributionPoliciesDefaultResponse\n | UpsertExceptionPolicy200Response\n | UpsertExceptionPolicy201Response\n | UpsertExceptionPolicyDefaultResponse\n | GetExceptionPolicy200Response\n | GetExceptionPolicyDefaultResponse\n | DeleteExceptionPolicy204Response\n | DeleteExceptionPolicyDefaultResponse\n | ListExceptionPolicies200Response\n | ListExceptionPoliciesDefaultResponse\n | UpsertQueue200Response\n | UpsertQueue201Response\n | UpsertQueueDefaultResponse\n | GetQueue200Response\n | GetQueueDefaultResponse\n | DeleteQueue204Response\n | DeleteQueueDefaultResponse\n | ListQueues200Response\n | ListQueuesDefaultResponse\n | UpsertJob200Response\n | UpsertJob201Response\n | UpsertJobDefaultResponse\n | GetJob200Response\n | GetJobDefaultResponse\n | DeleteJob204Response\n | DeleteJobDefaultResponse\n | Reclassify200Response\n | ReclassifyDefaultResponse\n | Cancel200Response\n | CancelDefaultResponse\n | Complete200Response\n | CompleteDefaultResponse\n | Close200Response\n | CloseDefaultResponse\n | ListJobs200Response\n | ListJobsDefaultResponse\n | GetInQueuePosition200Response\n | GetInQueuePositionDefaultResponse\n | Unassign200Response\n | UnassignDefaultResponse\n | Accept200Response\n | AcceptDefaultResponse\n | Decline200Response\n | DeclineDefaultResponse\n | GetQueueStatistics200Response\n | GetQueueStatisticsDefaultResponse\n | UpsertWorker200Response\n | UpsertWorker201Response\n | UpsertWorkerDefaultResponse\n | GetWorker200Response\n | GetWorkerDefaultResponse\n | DeleteWorker204Response\n | DeleteWorkerDefaultResponse\n | ListWorkers200Response\n | ListWorkersDefaultResponse,\n): response is\n | UpsertClassificationPolicyDefaultResponse\n | GetClassificationPolicyDefaultResponse\n | DeleteClassificationPolicyDefaultResponse\n | ListClassificationPoliciesDefaultResponse\n | UpsertDistributionPolicyDefaultResponse\n | GetDistributionPolicyDefaultResponse\n | DeleteDistributionPolicyDefaultResponse\n | ListDistributionPoliciesDefaultResponse\n | UpsertExceptionPolicyDefaultResponse\n | GetExceptionPolicyDefaultResponse\n | DeleteExceptionPolicyDefaultResponse\n | ListExceptionPoliciesDefaultResponse\n | UpsertQueueDefaultResponse\n | GetQueueDefaultResponse\n | DeleteQueueDefaultResponse\n | ListQueuesDefaultResponse\n | UpsertJobDefaultResponse\n | GetJobDefaultResponse\n | DeleteJobDefaultResponse\n | ReclassifyDefaultResponse\n | CancelDefaultResponse\n | CompleteDefaultResponse\n | CloseDefaultResponse\n | ListJobsDefaultResponse\n | GetInQueuePositionDefaultResponse\n | UnassignDefaultResponse\n | AcceptDefaultResponse\n | DeclineDefaultResponse\n | GetQueueStatisticsDefaultResponse\n | UpsertWorkerDefaultResponse\n | GetWorkerDefaultResponse\n | DeleteWorkerDefaultResponse\n | ListWorkersDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAiD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  import { createClientLogger } from "@azure/logger";
4
4
  export const logger = createClientLogger("communication-job-router");
5
5
  //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"communication-job-router\");\n"]}
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"communication-job-router\");\n"]}