@azure-rest/communication-messages 2.0.1-alpha.20241113.1 → 2.0.1-alpha.20241119.1

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 (212) hide show
  1. package/dist/browser/generated/src/clientDefinitions.d.ts +27 -0
  2. package/dist/browser/generated/src/clientDefinitions.d.ts.map +1 -0
  3. package/dist/browser/generated/src/clientDefinitions.js.map +1 -0
  4. package/dist/browser/generated/src/index.d.ts +11 -0
  5. package/dist/browser/generated/src/index.d.ts.map +1 -0
  6. package/dist/browser/generated/src/index.js +13 -0
  7. package/dist/browser/generated/src/index.js.map +1 -0
  8. package/dist/browser/generated/src/isUnexpected.d.ts +5 -0
  9. package/dist/browser/generated/src/isUnexpected.d.ts.map +1 -0
  10. package/dist/browser/generated/src/isUnexpected.js.map +1 -0
  11. package/dist/browser/generated/src/logger.d.ts +2 -0
  12. package/dist/browser/generated/src/logger.d.ts.map +1 -0
  13. package/dist/browser/generated/src/messagesServiceClient.d.ts +16 -0
  14. package/dist/browser/generated/src/messagesServiceClient.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/generated/src/messagesServiceClient.js +1 -1
  16. package/dist/browser/generated/src/messagesServiceClient.js.map +1 -0
  17. package/dist/browser/generated/src/models.d.ts +194 -0
  18. package/dist/browser/generated/src/models.d.ts.map +1 -0
  19. package/dist/browser/generated/src/outputModels.d.ts +45 -0
  20. package/dist/browser/generated/src/outputModels.d.ts.map +1 -0
  21. package/dist/browser/generated/src/paginateHelper.d.ts +43 -0
  22. package/dist/browser/generated/src/paginateHelper.d.ts.map +1 -0
  23. package/dist/browser/generated/src/parameters.d.ts +43 -0
  24. package/dist/browser/generated/src/parameters.d.ts.map +1 -0
  25. package/dist/browser/generated/src/parameters.js.map +1 -0
  26. package/dist/browser/generated/src/responses.d.ts +66 -0
  27. package/dist/browser/generated/src/responses.d.ts.map +1 -0
  28. package/dist/browser/generated/src/responses.js.map +1 -0
  29. package/dist/browser/index.d.ts +11 -0
  30. package/dist/browser/index.d.ts.map +1 -0
  31. package/dist/browser/index.js +13 -0
  32. package/dist/browser/index.js.map +1 -0
  33. package/dist/browser/messagesServiceClient.d.ts +17 -0
  34. package/dist/browser/messagesServiceClient.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/messagesServiceClient.js +1 -1
  36. package/dist/browser/messagesServiceClient.js.map +1 -0
  37. package/dist/browser/package.json +3 -0
  38. package/dist/commonjs/generated/src/clientDefinitions.d.ts +27 -0
  39. package/dist/commonjs/generated/src/clientDefinitions.d.ts.map +1 -0
  40. package/dist/commonjs/generated/src/clientDefinitions.js +5 -0
  41. package/dist/commonjs/generated/src/clientDefinitions.js.map +1 -0
  42. package/dist/commonjs/generated/src/index.d.ts +11 -0
  43. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  44. package/dist/commonjs/generated/src/index.js +16 -0
  45. package/dist/commonjs/generated/src/index.js.map +1 -0
  46. package/dist/commonjs/generated/src/isUnexpected.d.ts +5 -0
  47. package/dist/commonjs/generated/src/isUnexpected.d.ts.map +1 -0
  48. package/dist/commonjs/generated/src/isUnexpected.js +76 -0
  49. package/dist/commonjs/generated/src/isUnexpected.js.map +1 -0
  50. package/dist/commonjs/generated/src/logger.d.ts +2 -0
  51. package/dist/commonjs/generated/src/logger.d.ts.map +1 -0
  52. package/dist/commonjs/generated/src/logger.js +8 -0
  53. package/dist/commonjs/generated/src/logger.js.map +1 -0
  54. package/dist/commonjs/generated/src/messagesServiceClient.d.ts +16 -0
  55. package/dist/commonjs/generated/src/messagesServiceClient.d.ts.map +1 -0
  56. package/dist/commonjs/generated/src/messagesServiceClient.js +49 -0
  57. package/dist/commonjs/generated/src/messagesServiceClient.js.map +1 -0
  58. package/dist/commonjs/generated/src/models.d.ts +194 -0
  59. package/dist/commonjs/generated/src/models.d.ts.map +1 -0
  60. package/dist/commonjs/generated/src/models.js +5 -0
  61. package/dist/commonjs/generated/src/models.js.map +1 -0
  62. package/dist/commonjs/generated/src/outputModels.d.ts +45 -0
  63. package/dist/commonjs/generated/src/outputModels.d.ts.map +1 -0
  64. package/dist/commonjs/generated/src/outputModels.js +5 -0
  65. package/dist/commonjs/generated/src/outputModels.js.map +1 -0
  66. package/dist/commonjs/generated/src/paginateHelper.d.ts +43 -0
  67. package/dist/commonjs/generated/src/paginateHelper.d.ts.map +1 -0
  68. package/dist/commonjs/generated/src/paginateHelper.js +86 -0
  69. package/dist/commonjs/generated/src/paginateHelper.js.map +1 -0
  70. package/dist/commonjs/generated/src/parameters.d.ts +43 -0
  71. package/dist/commonjs/generated/src/parameters.d.ts.map +1 -0
  72. package/dist/commonjs/generated/src/parameters.js +5 -0
  73. package/dist/commonjs/generated/src/parameters.js.map +1 -0
  74. package/dist/commonjs/generated/src/responses.d.ts +66 -0
  75. package/dist/commonjs/generated/src/responses.d.ts.map +1 -0
  76. package/dist/commonjs/generated/src/responses.js +5 -0
  77. package/dist/commonjs/generated/src/responses.js.map +1 -0
  78. package/dist/commonjs/index.d.ts +11 -0
  79. package/dist/commonjs/index.d.ts.map +1 -0
  80. package/dist/commonjs/index.js +16 -0
  81. package/dist/commonjs/index.js.map +1 -0
  82. package/dist/commonjs/messagesServiceClient.d.ts +17 -0
  83. package/dist/commonjs/messagesServiceClient.d.ts.map +1 -0
  84. package/dist/commonjs/messagesServiceClient.js +31 -0
  85. package/dist/commonjs/messagesServiceClient.js.map +1 -0
  86. package/dist/commonjs/package.json +3 -0
  87. package/dist/commonjs/tsdoc-metadata.json +11 -0
  88. package/dist/esm/generated/src/clientDefinitions.d.ts +27 -0
  89. package/dist/esm/generated/src/clientDefinitions.d.ts.map +1 -0
  90. package/dist/esm/generated/src/clientDefinitions.js +4 -0
  91. package/dist/esm/generated/src/clientDefinitions.js.map +1 -0
  92. package/dist/esm/generated/src/index.d.ts +11 -0
  93. package/dist/esm/generated/src/index.d.ts.map +1 -0
  94. package/dist/esm/generated/src/index.js +13 -0
  95. package/dist/esm/generated/src/index.js.map +1 -0
  96. package/dist/esm/generated/src/isUnexpected.d.ts +5 -0
  97. package/dist/esm/generated/src/isUnexpected.d.ts.map +1 -0
  98. package/dist/esm/generated/src/isUnexpected.js +73 -0
  99. package/dist/esm/generated/src/isUnexpected.js.map +1 -0
  100. package/dist/esm/generated/src/logger.d.ts +2 -0
  101. package/dist/esm/generated/src/logger.d.ts.map +1 -0
  102. package/dist/esm/generated/src/logger.js +5 -0
  103. package/dist/esm/generated/src/logger.js.map +1 -0
  104. package/dist/esm/generated/src/messagesServiceClient.d.ts +16 -0
  105. package/dist/esm/generated/src/messagesServiceClient.d.ts.map +1 -0
  106. package/dist/esm/generated/src/messagesServiceClient.js +46 -0
  107. package/dist/esm/generated/src/messagesServiceClient.js.map +1 -0
  108. package/dist/esm/generated/src/models.d.ts +194 -0
  109. package/dist/esm/generated/src/models.d.ts.map +1 -0
  110. package/dist/esm/generated/src/models.js +4 -0
  111. package/dist/esm/generated/src/models.js.map +1 -0
  112. package/dist/esm/generated/src/outputModels.d.ts +45 -0
  113. package/dist/esm/generated/src/outputModels.d.ts.map +1 -0
  114. package/dist/esm/generated/src/outputModels.js +4 -0
  115. package/dist/esm/generated/src/outputModels.js.map +1 -0
  116. package/dist/esm/generated/src/paginateHelper.d.ts +43 -0
  117. package/dist/esm/generated/src/paginateHelper.d.ts.map +1 -0
  118. package/dist/esm/generated/src/paginateHelper.js +83 -0
  119. package/dist/esm/generated/src/paginateHelper.js.map +1 -0
  120. package/dist/esm/generated/src/parameters.d.ts +43 -0
  121. package/dist/esm/generated/src/parameters.d.ts.map +1 -0
  122. package/dist/esm/generated/src/parameters.js +4 -0
  123. package/dist/esm/generated/src/parameters.js.map +1 -0
  124. package/dist/esm/generated/src/responses.d.ts +66 -0
  125. package/dist/esm/generated/src/responses.d.ts.map +1 -0
  126. package/dist/esm/generated/src/responses.js +4 -0
  127. package/dist/esm/generated/src/responses.js.map +1 -0
  128. package/dist/esm/index.d.ts +11 -0
  129. package/dist/esm/index.d.ts.map +1 -0
  130. package/dist/esm/index.js +13 -0
  131. package/dist/esm/index.js.map +1 -0
  132. package/dist/esm/messagesServiceClient.d.ts +17 -0
  133. package/dist/esm/messagesServiceClient.d.ts.map +1 -0
  134. package/dist/esm/messagesServiceClient.js +27 -0
  135. package/dist/esm/messagesServiceClient.js.map +1 -0
  136. package/dist/esm/package.json +3 -0
  137. package/dist/react-native/generated/src/clientDefinitions.d.ts +27 -0
  138. package/dist/react-native/generated/src/clientDefinitions.d.ts.map +1 -0
  139. package/dist/react-native/generated/src/clientDefinitions.js +4 -0
  140. package/dist/react-native/generated/src/clientDefinitions.js.map +1 -0
  141. package/dist/react-native/generated/src/index.d.ts +11 -0
  142. package/dist/react-native/generated/src/index.d.ts.map +1 -0
  143. package/dist/react-native/generated/src/index.js +13 -0
  144. package/dist/react-native/generated/src/index.js.map +1 -0
  145. package/dist/react-native/generated/src/isUnexpected.d.ts +5 -0
  146. package/dist/react-native/generated/src/isUnexpected.d.ts.map +1 -0
  147. package/dist/react-native/generated/src/isUnexpected.js +73 -0
  148. package/dist/react-native/generated/src/isUnexpected.js.map +1 -0
  149. package/dist/react-native/generated/src/logger.d.ts +2 -0
  150. package/dist/react-native/generated/src/logger.d.ts.map +1 -0
  151. package/dist/react-native/generated/src/logger.js +5 -0
  152. package/dist/react-native/generated/src/logger.js.map +1 -0
  153. package/dist/react-native/generated/src/messagesServiceClient.d.ts +16 -0
  154. package/dist/react-native/generated/src/messagesServiceClient.d.ts.map +1 -0
  155. package/dist/react-native/generated/src/messagesServiceClient.js +46 -0
  156. package/dist/react-native/generated/src/messagesServiceClient.js.map +1 -0
  157. package/dist/react-native/generated/src/models.d.ts +194 -0
  158. package/dist/react-native/generated/src/models.d.ts.map +1 -0
  159. package/dist/react-native/generated/src/models.js +4 -0
  160. package/dist/react-native/generated/src/models.js.map +1 -0
  161. package/dist/react-native/generated/src/outputModels.d.ts +45 -0
  162. package/dist/react-native/generated/src/outputModels.d.ts.map +1 -0
  163. package/dist/react-native/generated/src/outputModels.js +4 -0
  164. package/dist/react-native/generated/src/outputModels.js.map +1 -0
  165. package/dist/react-native/generated/src/paginateHelper.d.ts +43 -0
  166. package/dist/react-native/generated/src/paginateHelper.d.ts.map +1 -0
  167. package/dist/react-native/generated/src/paginateHelper.js +83 -0
  168. package/dist/react-native/generated/src/paginateHelper.js.map +1 -0
  169. package/dist/react-native/generated/src/parameters.d.ts +43 -0
  170. package/dist/react-native/generated/src/parameters.d.ts.map +1 -0
  171. package/dist/react-native/generated/src/parameters.js +4 -0
  172. package/dist/react-native/generated/src/parameters.js.map +1 -0
  173. package/dist/react-native/generated/src/responses.d.ts +66 -0
  174. package/dist/react-native/generated/src/responses.d.ts.map +1 -0
  175. package/dist/react-native/generated/src/responses.js +4 -0
  176. package/dist/react-native/generated/src/responses.js.map +1 -0
  177. package/dist/react-native/index.d.ts +11 -0
  178. package/dist/react-native/index.d.ts.map +1 -0
  179. package/dist/react-native/index.js +13 -0
  180. package/dist/react-native/index.js.map +1 -0
  181. package/dist/react-native/messagesServiceClient.d.ts +17 -0
  182. package/dist/react-native/messagesServiceClient.d.ts.map +1 -0
  183. package/dist/react-native/messagesServiceClient.js +27 -0
  184. package/dist/react-native/messagesServiceClient.js.map +1 -0
  185. package/dist/react-native/package.json +3 -0
  186. package/package.json +60 -39
  187. package/dist/index.js +0 -243
  188. package/dist/index.js.map +0 -1
  189. package/dist-esm/src/generated/src/clientDefinitions.js.map +0 -1
  190. package/dist-esm/src/generated/src/index.js +0 -13
  191. package/dist-esm/src/generated/src/index.js.map +0 -1
  192. package/dist-esm/src/generated/src/isUnexpected.js.map +0 -1
  193. package/dist-esm/src/generated/src/messagesServiceClient.js.map +0 -1
  194. package/dist-esm/src/generated/src/parameters.js.map +0 -1
  195. package/dist-esm/src/generated/src/responses.js.map +0 -1
  196. package/dist-esm/src/index.js +0 -13
  197. package/dist-esm/src/index.js.map +0 -1
  198. package/dist-esm/src/messagesServiceClient.js.map +0 -1
  199. package/review/communication-messages.api.md +0 -450
  200. /package/{dist-esm/src → dist/browser}/generated/src/clientDefinitions.js +0 -0
  201. /package/{dist-esm/src → dist/browser}/generated/src/isUnexpected.js +0 -0
  202. /package/{dist-esm/src → dist/browser}/generated/src/logger.js +0 -0
  203. /package/{dist-esm/src → dist/browser}/generated/src/logger.js.map +0 -0
  204. /package/{dist-esm/src → dist/browser}/generated/src/models.js +0 -0
  205. /package/{dist-esm/src → dist/browser}/generated/src/models.js.map +0 -0
  206. /package/{dist-esm/src → dist/browser}/generated/src/outputModels.js +0 -0
  207. /package/{dist-esm/src → dist/browser}/generated/src/outputModels.js.map +0 -0
  208. /package/{dist-esm/src → dist/browser}/generated/src/paginateHelper.js +0 -0
  209. /package/{dist-esm/src → dist/browser}/generated/src/paginateHelper.js.map +0 -0
  210. /package/{dist-esm/src → dist/browser}/generated/src/parameters.js +0 -0
  211. /package/{dist-esm/src → dist/browser}/generated/src/responses.js +0 -0
  212. /package/{types → dist}/communication-messages.d.ts +0 -0
@@ -0,0 +1,194 @@
1
+ /** Details of the message to send. */
2
+ export interface NotificationContentParent {
3
+ /** The Channel Registration ID for the Business Identifier. */
4
+ channelRegistrationId: string;
5
+ /** The native external platform user identifiers of the recipient. */
6
+ to: string[];
7
+ kind: CommunicationMessageKind;
8
+ }
9
+ /** A request to send a text notification. */
10
+ export interface TextNotificationContent extends NotificationContentParent {
11
+ /** Message notification type is text. */
12
+ kind: "text";
13
+ /** Message content. */
14
+ content: string;
15
+ }
16
+ /** @deprecated A request to send an image notification. */
17
+ export interface MediaNotificationContent extends NotificationContentParent {
18
+ /** Message notification type is image. */
19
+ kind: "image_v0";
20
+ /** Optional text content. */
21
+ content?: string;
22
+ /** A media url for the file. Required if the type is one of the supported media types, e.g. image */
23
+ mediaUri: string;
24
+ }
25
+ /** A request to send an image notification. */
26
+ export interface ImageNotificationContent extends NotificationContentParent {
27
+ /** Message notification type is image. */
28
+ kind: "image";
29
+ /** Optional text content. */
30
+ caption?: string;
31
+ /** A media url for the file. Required if the type is one of the supported media types, e.g. image */
32
+ mediaUri: string;
33
+ }
34
+ /** A request to send a document notification. */
35
+ export interface DocumentNotificationContent extends NotificationContentParent {
36
+ /** Message notification type is image. */
37
+ kind: "document";
38
+ /** Optional text content. */
39
+ caption?: string;
40
+ /** Optional name for the file. */
41
+ fileName?: string;
42
+ /** A media url for the file. Required if the type is one of the supported media types, e.g. image */
43
+ mediaUri: string;
44
+ }
45
+ /** A request to send a video notification. */
46
+ export interface VideoNotificationContent extends NotificationContentParent {
47
+ /** Message notification type is image. */
48
+ kind: "video";
49
+ /** Optional text content. */
50
+ caption?: string;
51
+ /** A media url for the file. Required if the type is one of the supported media types, e.g. image */
52
+ mediaUri: string;
53
+ }
54
+ /** A request to send an audio notification. */
55
+ export interface AudioNotificationContent extends NotificationContentParent {
56
+ /** Message notification type is audio. */
57
+ kind: "audio";
58
+ /** A media url for the file. Required if the type is one of the supported media types, e.g. image */
59
+ mediaUri: string;
60
+ }
61
+ /** A request to send a template notification. */
62
+ export interface TemplateNotificationContent extends NotificationContentParent {
63
+ /** Message notification type is template. */
64
+ kind: "template";
65
+ /** The template object used to create templates. */
66
+ template: MessageTemplate;
67
+ }
68
+ /** The template object used to create templates. */
69
+ export interface MessageTemplate {
70
+ /** Name of the template. */
71
+ name: string;
72
+ /** The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'. */
73
+ language: string;
74
+ /** The template values. */
75
+ values?: Array<MessageTemplateValue>;
76
+ /** The binding object to link values to the template specific locations */
77
+ bindings?: MessageTemplateBindings;
78
+ }
79
+ /** The class describes a parameter of a template. */
80
+ export interface MessageTemplateValueParent {
81
+ /** Template binding reference name */
82
+ name: string;
83
+ kind: MessageTemplateValueKind;
84
+ }
85
+ /** The message template's text value information. */
86
+ export interface MessageTemplateText extends MessageTemplateValueParent {
87
+ /** Message parameter type is text. */
88
+ kind: "text";
89
+ /** The text value. */
90
+ text: string;
91
+ }
92
+ /** The message template's image value information. */
93
+ export interface MessageTemplateImage extends MessageTemplateValueParent {
94
+ /** Message parameter type is image. */
95
+ kind: "image";
96
+ /** The (public) URL of the media. */
97
+ url: string;
98
+ /** The [optional] caption of the media object. */
99
+ caption?: string;
100
+ /** The [optional] filename of the media file. */
101
+ fileName?: string;
102
+ }
103
+ /** The message template's document value information. */
104
+ export interface MessageTemplateDocument extends MessageTemplateValueParent {
105
+ /** Message parameter type is document. */
106
+ kind: "document";
107
+ /** The (public) URL of the media. */
108
+ url: string;
109
+ /** The [optional] caption of the media object. */
110
+ caption?: string;
111
+ /** The [optional] filename of the media file. */
112
+ fileName?: string;
113
+ }
114
+ /** The message template's video value information. */
115
+ export interface MessageTemplateVideo extends MessageTemplateValueParent {
116
+ /** Message parameter type is video. */
117
+ kind: "video";
118
+ /** The (public) URL of the media. */
119
+ url: string;
120
+ /** The [optional] caption of the media object. */
121
+ caption?: string;
122
+ /** The [optional] filename of the media file. */
123
+ fileName?: string;
124
+ }
125
+ /** The message template's location value information. */
126
+ export interface MessageTemplateLocation extends MessageTemplateValueParent {
127
+ /** Message parameter type is location. */
128
+ kind: "location";
129
+ /** The [Optional] name of the location. */
130
+ locationName?: string;
131
+ /** The [Optional] address of the location. */
132
+ address?: string;
133
+ /** The latitude of the location. */
134
+ latitude: number;
135
+ /** The longitude of the location. */
136
+ longitude: number;
137
+ }
138
+ /** The message template's quick action value information. */
139
+ export interface MessageTemplateQuickAction extends MessageTemplateValueParent {
140
+ /** Message parameter type is quick action. */
141
+ kind: "quickAction";
142
+ /** The [Optional] quick action text */
143
+ text?: string;
144
+ /** The [Optional] quick action payload */
145
+ payload?: string;
146
+ }
147
+ /** The binding object to link values to the template specific locations */
148
+ export interface MessageTemplateBindingsParent {
149
+ kind: MessageTemplateBindingsKind;
150
+ }
151
+ /** The template bindings for WhatsApp */
152
+ export interface WhatsAppMessageTemplateBindings extends MessageTemplateBindingsParent {
153
+ /** MessageTemplateBindings is whatsApp */
154
+ kind: "whatsApp";
155
+ /** The header template bindings */
156
+ header?: Array<WhatsAppMessageTemplateBindingsComponent>;
157
+ /** The body template bindings */
158
+ body?: Array<WhatsAppMessageTemplateBindingsComponent>;
159
+ /** The footer template bindings */
160
+ footer?: Array<WhatsAppMessageTemplateBindingsComponent>;
161
+ /** The button template bindings */
162
+ buttons?: Array<WhatsAppMessageTemplateBindingsButton>;
163
+ }
164
+ /** The template bindings component for WhatsApp */
165
+ export interface WhatsAppMessageTemplateBindingsComponent {
166
+ /** The name of the referenced item in the template values. */
167
+ refValue: string;
168
+ }
169
+ /** The template bindings component button for WhatsApp */
170
+ export interface WhatsAppMessageTemplateBindingsButton {
171
+ /**
172
+ * The WhatsApp button sub type
173
+ *
174
+ * Possible values: "quickReply", "url"
175
+ */
176
+ subType: WhatsAppMessageButtonSubType;
177
+ /** The name of the referenced item in the template values. */
178
+ refValue: string;
179
+ }
180
+ /** Details of the message to send. */
181
+ export type NotificationContent = NotificationContentParent | TextNotificationContent | MediaNotificationContent | ImageNotificationContent | DocumentNotificationContent | VideoNotificationContent | AudioNotificationContent | TemplateNotificationContent;
182
+ /** The class describes a parameter of a template. */
183
+ export type MessageTemplateValue = MessageTemplateValueParent | MessageTemplateText | MessageTemplateImage | MessageTemplateDocument | MessageTemplateVideo | MessageTemplateLocation | MessageTemplateQuickAction;
184
+ /** The binding object to link values to the template specific locations */
185
+ export type MessageTemplateBindings = MessageTemplateBindingsParent | WhatsAppMessageTemplateBindings;
186
+ /** Alias for CommunicationMessageKind */
187
+ export type CommunicationMessageKind = string;
188
+ /** Alias for MessageTemplateValueKind */
189
+ export type MessageTemplateValueKind = string;
190
+ /** Alias for MessageTemplateBindingsKind */
191
+ export type MessageTemplateBindingsKind = string;
192
+ /** Alias for WhatsAppMessageButtonSubType */
193
+ export type WhatsAppMessageButtonSubType = string;
194
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/models.ts"],"names":[],"mappings":"AAG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;IACzD,mCAAmC;IACnC,OAAO,CAAC,EAAE,KAAK,CAAC,qCAAqC,CAAC,CAAC;CACxD;AAED,mDAAmD;AACnD,MAAM,WAAW,wCAAwC;IACvD,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,0DAA0D;AAC1D,MAAM,WAAW,qCAAqC;IACpD;;;;OAIG;IACH,OAAO,EAAE,4BAA4B,CAAC;IACtC,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,sCAAsC;AACtC,MAAM,MAAM,mBAAmB,GAC3B,yBAAyB,GACzB,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,2BAA2B,GAC3B,wBAAwB,GACxB,wBAAwB,GACxB,2BAA2B,CAAC;AAChC,qDAAqD;AACrD,MAAM,MAAM,oBAAoB,GAC5B,0BAA0B,GAC1B,mBAAmB,GACnB,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,uBAAuB,GACvB,0BAA0B,CAAC;AAC/B,2EAA2E;AAC3E,MAAM,MAAM,uBAAuB,GAC/B,6BAA6B,GAC7B,+BAA+B,CAAC;AACpC,yCAAyC;AACzC,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAC9C,yCAAyC;AACzC,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAC9C,4CAA4C;AAC5C,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AACjD,6CAA6C;AAC7C,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/generated/src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Details of the message to send. */\nexport interface NotificationContentParent {\n /** The Channel Registration ID for the Business Identifier. */\n channelRegistrationId: string;\n /** The native external platform user identifiers of the recipient. */\n to: string[];\n kind: CommunicationMessageKind;\n}\n\n/** A request to send a text notification. */\nexport interface TextNotificationContent extends NotificationContentParent {\n /** Message notification type is text. */\n kind: \"text\";\n /** Message content. */\n content: string;\n}\n\n/** @deprecated A request to send an image notification. */\nexport interface MediaNotificationContent extends NotificationContentParent {\n /** Message notification type is image. */\n kind: \"image_v0\";\n /** Optional text content. */\n content?: string;\n /** A media url for the file. Required if the type is one of the supported media types, e.g. image */\n mediaUri: string;\n}\n\n/** A request to send an image notification. */\nexport interface ImageNotificationContent extends NotificationContentParent {\n /** Message notification type is image. */\n kind: \"image\";\n /** Optional text content. */\n caption?: string;\n /** A media url for the file. Required if the type is one of the supported media types, e.g. image */\n mediaUri: string;\n}\n\n/** A request to send a document notification. */\nexport interface DocumentNotificationContent extends NotificationContentParent {\n /** Message notification type is image. */\n kind: \"document\";\n /** Optional text content. */\n caption?: string;\n /** Optional name for the file. */\n fileName?: string;\n /** A media url for the file. Required if the type is one of the supported media types, e.g. image */\n mediaUri: string;\n}\n\n/** A request to send a video notification. */\nexport interface VideoNotificationContent extends NotificationContentParent {\n /** Message notification type is image. */\n kind: \"video\";\n /** Optional text content. */\n caption?: string;\n /** A media url for the file. Required if the type is one of the supported media types, e.g. image */\n mediaUri: string;\n}\n\n/** A request to send an audio notification. */\nexport interface AudioNotificationContent extends NotificationContentParent {\n /** Message notification type is audio. */\n kind: \"audio\";\n /** A media url for the file. Required if the type is one of the supported media types, e.g. image */\n mediaUri: string;\n}\n\n/** A request to send a template notification. */\nexport interface TemplateNotificationContent extends NotificationContentParent {\n /** Message notification type is template. */\n kind: \"template\";\n /** The template object used to create templates. */\n template: MessageTemplate;\n}\n\n/** The template object used to create templates. */\nexport interface MessageTemplate {\n /** Name of the template. */\n name: string;\n /** The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'. */\n language: string;\n /** The template values. */\n values?: Array<MessageTemplateValue>;\n /** The binding object to link values to the template specific locations */\n bindings?: MessageTemplateBindings;\n}\n\n/** The class describes a parameter of a template. */\nexport interface MessageTemplateValueParent {\n /** Template binding reference name */\n name: string;\n kind: MessageTemplateValueKind;\n}\n\n/** The message template's text value information. */\nexport interface MessageTemplateText extends MessageTemplateValueParent {\n /** Message parameter type is text. */\n kind: \"text\";\n /** The text value. */\n text: string;\n}\n\n/** The message template's image value information. */\nexport interface MessageTemplateImage extends MessageTemplateValueParent {\n /** Message parameter type is image. */\n kind: \"image\";\n /** The (public) URL of the media. */\n url: string;\n /** The [optional] caption of the media object. */\n caption?: string;\n /** The [optional] filename of the media file. */\n fileName?: string;\n}\n\n/** The message template's document value information. */\nexport interface MessageTemplateDocument extends MessageTemplateValueParent {\n /** Message parameter type is document. */\n kind: \"document\";\n /** The (public) URL of the media. */\n url: string;\n /** The [optional] caption of the media object. */\n caption?: string;\n /** The [optional] filename of the media file. */\n fileName?: string;\n}\n\n/** The message template's video value information. */\nexport interface MessageTemplateVideo extends MessageTemplateValueParent {\n /** Message parameter type is video. */\n kind: \"video\";\n /** The (public) URL of the media. */\n url: string;\n /** The [optional] caption of the media object. */\n caption?: string;\n /** The [optional] filename of the media file. */\n fileName?: string;\n}\n\n/** The message template's location value information. */\nexport interface MessageTemplateLocation extends MessageTemplateValueParent {\n /** Message parameter type is location. */\n kind: \"location\";\n /** The [Optional] name of the location. */\n locationName?: string;\n /** The [Optional] address of the location. */\n address?: string;\n /** The latitude of the location. */\n latitude: number;\n /** The longitude of the location. */\n longitude: number;\n}\n\n/** The message template's quick action value information. */\nexport interface MessageTemplateQuickAction extends MessageTemplateValueParent {\n /** Message parameter type is quick action. */\n kind: \"quickAction\";\n /** The [Optional] quick action text */\n text?: string;\n /** The [Optional] quick action payload */\n payload?: string;\n}\n\n/** The binding object to link values to the template specific locations */\nexport interface MessageTemplateBindingsParent {\n kind: MessageTemplateBindingsKind;\n}\n\n/** The template bindings for WhatsApp */\nexport interface WhatsAppMessageTemplateBindings\n extends MessageTemplateBindingsParent {\n /** MessageTemplateBindings is whatsApp */\n kind: \"whatsApp\";\n /** The header template bindings */\n header?: Array<WhatsAppMessageTemplateBindingsComponent>;\n /** The body template bindings */\n body?: Array<WhatsAppMessageTemplateBindingsComponent>;\n /** The footer template bindings */\n footer?: Array<WhatsAppMessageTemplateBindingsComponent>;\n /** The button template bindings */\n buttons?: Array<WhatsAppMessageTemplateBindingsButton>;\n}\n\n/** The template bindings component for WhatsApp */\nexport interface WhatsAppMessageTemplateBindingsComponent {\n /** The name of the referenced item in the template values. */\n refValue: string;\n}\n\n/** The template bindings component button for WhatsApp */\nexport interface WhatsAppMessageTemplateBindingsButton {\n /**\n * The WhatsApp button sub type\n *\n * Possible values: \"quickReply\", \"url\"\n */\n subType: WhatsAppMessageButtonSubType;\n /** The name of the referenced item in the template values. */\n refValue: string;\n}\n\n/** Details of the message to send. */\nexport type NotificationContent =\n | NotificationContentParent\n | TextNotificationContent\n | MediaNotificationContent\n | ImageNotificationContent\n | DocumentNotificationContent\n | VideoNotificationContent\n | AudioNotificationContent\n | TemplateNotificationContent;\n/** The class describes a parameter of a template. */\nexport type MessageTemplateValue =\n | MessageTemplateValueParent\n | MessageTemplateText\n | MessageTemplateImage\n | MessageTemplateDocument\n | MessageTemplateVideo\n | MessageTemplateLocation\n | MessageTemplateQuickAction;\n/** The binding object to link values to the template specific locations */\nexport type MessageTemplateBindings =\n | MessageTemplateBindingsParent\n | WhatsAppMessageTemplateBindings;\n/** Alias for CommunicationMessageKind */\nexport type CommunicationMessageKind = string;\n/** Alias for MessageTemplateValueKind */\nexport type MessageTemplateValueKind = string;\n/** Alias for MessageTemplateBindingsKind */\nexport type MessageTemplateBindingsKind = string;\n/** Alias for WhatsAppMessageButtonSubType */\nexport type WhatsAppMessageButtonSubType = string;\n"]}
@@ -0,0 +1,45 @@
1
+ import { Paged } from "@azure/core-paging";
2
+ /** Result of the send message operation. */
3
+ export interface SendMessageResultOutput {
4
+ /** Receipts of the send message operation. */
5
+ receipts: Array<MessageReceiptOutput>;
6
+ }
7
+ /** Receipt of the sending one message. */
8
+ export interface MessageReceiptOutput {
9
+ /** The message id. */
10
+ messageId: string;
11
+ /** The native external platform user identifier of the recipient. */
12
+ to: string;
13
+ }
14
+ /** The message template as returned from the service. */
15
+ export interface MessageTemplateItemOutputParent {
16
+ /** The template's name. */
17
+ readonly name: string;
18
+ /** The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'. */
19
+ language: string;
20
+ /**
21
+ * The aggregated template status.
22
+ *
23
+ * Possible values: "approved", "rejected", "pending", "paused"
24
+ */
25
+ status: MessageTemplateStatusOutput;
26
+ kind: CommunicationMessagesChannelOutput;
27
+ }
28
+ /** The WhatsApp-specific template response contract */
29
+ export interface WhatsAppMessageTemplateItemOutput extends MessageTemplateItemOutputParent {
30
+ /** WhatsApp platform's template content. This is the payload returned from WhatsApp API. */
31
+ content?: any;
32
+ /** Message template response type is whatsApp. */
33
+ kind: "whatsApp";
34
+ }
35
+ /** The message template as returned from the service. */
36
+ export type MessageTemplateItemOutput = MessageTemplateItemOutputParent | WhatsAppMessageTemplateItemOutput;
37
+ /** Alias for RepeatabilityResultOutput */
38
+ export type RepeatabilityResultOutput = "accepted" | "rejected";
39
+ /** Paged collection of MessageTemplateItem items */
40
+ export type PagedMessageTemplateItemOutput = Paged<MessageTemplateItemOutput>;
41
+ /** Alias for MessageTemplateStatusOutput */
42
+ export type MessageTemplateStatusOutput = string;
43
+ /** Alias for CommunicationMessagesChannelOutput */
44
+ export type CommunicationMessagesChannelOutput = string;
45
+ //# sourceMappingURL=outputModels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/outputModels.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,8CAA8C;IAC9C,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACvC;AAED,0CAA0C;AAC1C,MAAM,WAAW,oBAAoB;IACnC,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,yDAAyD;AACzD,MAAM,WAAW,+BAA+B;IAC9C,2BAA2B;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oKAAoK;IACpK,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,2BAA2B,CAAC;IACpC,IAAI,EAAE,kCAAkC,CAAC;CAC1C;AAED,uDAAuD;AACvD,MAAM,WAAW,iCACf,SAAQ,+BAA+B;IACvC,4FAA4F;IAC5F,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,kDAAkD;IAClD,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,yDAAyD;AACzD,MAAM,MAAM,yBAAyB,GACjC,+BAA+B,GAC/B,iCAAiC,CAAC;AACtC,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,UAAU,CAAC;AAChE,oDAAoD;AACpD,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,yBAAyB,CAAC,CAAC;AAC9E,4CAA4C;AAC5C,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AACjD,mDAAmD;AACnD,MAAM,MAAM,kCAAkC,GAAG,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=outputModels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../../src/generated/src/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Paged } from \"@azure/core-paging\";\n\n/** Result of the send message operation. */\nexport interface SendMessageResultOutput {\n /** Receipts of the send message operation. */\n receipts: Array<MessageReceiptOutput>;\n}\n\n/** Receipt of the sending one message. */\nexport interface MessageReceiptOutput {\n /** The message id. */\n messageId: string;\n /** The native external platform user identifier of the recipient. */\n to: string;\n}\n\n/** The message template as returned from the service. */\nexport interface MessageTemplateItemOutputParent {\n /** The template's name. */\n readonly name: string;\n /** The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'. */\n language: string;\n /**\n * The aggregated template status.\n *\n * Possible values: \"approved\", \"rejected\", \"pending\", \"paused\"\n */\n status: MessageTemplateStatusOutput;\n kind: CommunicationMessagesChannelOutput;\n}\n\n/** The WhatsApp-specific template response contract */\nexport interface WhatsAppMessageTemplateItemOutput\n extends MessageTemplateItemOutputParent {\n /** WhatsApp platform's template content. This is the payload returned from WhatsApp API. */\n content?: any;\n /** Message template response type is whatsApp. */\n kind: \"whatsApp\";\n}\n\n/** The message template as returned from the service. */\nexport type MessageTemplateItemOutput =\n | MessageTemplateItemOutputParent\n | WhatsAppMessageTemplateItemOutput;\n/** Alias for RepeatabilityResultOutput */\nexport type RepeatabilityResultOutput = \"accepted\" | \"rejected\";\n/** Paged collection of MessageTemplateItem items */\nexport type PagedMessageTemplateItemOutput = Paged<MessageTemplateItemOutput>;\n/** Alias for MessageTemplateStatusOutput */\nexport type MessageTemplateStatusOutput = string;\n/** Alias for CommunicationMessagesChannelOutput */\nexport type CommunicationMessagesChannelOutput = string;\n"]}
@@ -0,0 +1,43 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ /**
4
+ * Helper type to extract the type of an array
5
+ */
6
+ export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
7
+ /**
8
+ * The type of a custom function that defines how to get a page and a link to the next one if any.
9
+ */
10
+ export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
11
+ page: TPage;
12
+ nextPageLink?: string;
13
+ }>;
14
+ /**
15
+ * Options for the paging helper
16
+ */
17
+ export interface PagingOptions<TResponse> {
18
+ /**
19
+ * Custom function to extract pagination details for crating the PagedAsyncIterableIterator
20
+ */
21
+ customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
22
+ }
23
+ /**
24
+ * Helper type to infer the Type of the paged elements from the response type
25
+ * This type is generated based on the swagger information for x-ms-pageable
26
+ * specifically on the itemName property which indicates the property of the response
27
+ * where the page items are found. The default value is `value`.
28
+ * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
29
+ */
30
+ export type PaginateReturn<TResult> = TResult extends {
31
+ body: {
32
+ value?: infer TPage;
33
+ };
34
+ } ? GetArrayType<TPage> : Array<unknown>;
35
+ /**
36
+ * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
37
+ * @param client - Client to use for sending the next page requests
38
+ * @param initialResponse - Initial response containing the nextLink and current page of elements
39
+ * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
40
+ * @returns - PagedAsyncIterableIterator to iterate the elements
41
+ */
42
+ export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
43
+ //# sourceMappingURL=paginateHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,0BAA0B,EAE3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,MAAM,EAEN,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA4BvD"}
@@ -0,0 +1,83 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { getPagedAsyncIterator, } from "@azure/core-paging";
4
+ import { createRestError, } from "@azure-rest/core-client";
5
+ /**
6
+ * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
7
+ * @param client - Client to use for sending the next page requests
8
+ * @param initialResponse - Initial response containing the nextLink and current page of elements
9
+ * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
10
+ * @returns - PagedAsyncIterableIterator to iterate the elements
11
+ */
12
+ export function paginate(client, initialResponse, options = {}) {
13
+ let firstRun = true;
14
+ const itemName = "value";
15
+ const nextLinkName = "nextLink";
16
+ const { customGetPage } = options;
17
+ const pagedResult = {
18
+ firstPageLink: "",
19
+ getPage: typeof customGetPage === "function"
20
+ ? customGetPage
21
+ : async (pageLink) => {
22
+ const result = firstRun
23
+ ? initialResponse
24
+ : await client.pathUnchecked(pageLink).get();
25
+ firstRun = false;
26
+ checkPagingRequest(result);
27
+ const nextLink = getNextLink(result.body, nextLinkName);
28
+ const values = getElements(result.body, itemName);
29
+ return {
30
+ page: values,
31
+ nextPageLink: nextLink,
32
+ };
33
+ },
34
+ };
35
+ return getPagedAsyncIterator(pagedResult);
36
+ }
37
+ /**
38
+ * Gets for the value of nextLink in the body
39
+ */
40
+ function getNextLink(body, nextLinkName) {
41
+ if (!nextLinkName) {
42
+ return undefined;
43
+ }
44
+ const nextLink = body[nextLinkName];
45
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined") {
46
+ throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);
47
+ }
48
+ return nextLink;
49
+ }
50
+ /**
51
+ * Gets the elements of the current request in the body.
52
+ */
53
+ function getElements(body, itemName) {
54
+ const value = body[itemName];
55
+ // value has to be an array according to the x-ms-pageable extension.
56
+ // The fact that this must be an array is used above to calculate the
57
+ // type of elements in the page in PaginateReturn
58
+ if (!Array.isArray(value)) {
59
+ throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
60
+ }
61
+ return value !== null && value !== void 0 ? value : [];
62
+ }
63
+ /**
64
+ * Checks if a request failed
65
+ */
66
+ function checkPagingRequest(response) {
67
+ const Http2xxStatusCodes = [
68
+ "200",
69
+ "201",
70
+ "202",
71
+ "203",
72
+ "204",
73
+ "205",
74
+ "206",
75
+ "207",
76
+ "208",
77
+ "226",
78
+ ];
79
+ if (!Http2xxStatusCodes.includes(response.status)) {
80
+ throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
81
+ }
82
+ }
83
+ //# sourceMappingURL=paginateHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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AE,CAAC;QAClB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAI,IAAgC,CAAC,YAAY,CAAC,CAAC;IAEjE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CACb,iBAAiB,YAAY,kCAAkC,CAChE,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IAEjE,qEAAqE;IACrE,qEAAqE;IACrE,iDAAiD;IACjD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG;QACzB,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;KACN,CAAC;IACF,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n getPagedAsyncIterator,\n PagedAsyncIterableIterator,\n PagedResult,\n} from \"@azure/core-paging\";\nimport {\n Client,\n createRestError,\n PathUncheckedResponse,\n} from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun\n ? initialResponse\n : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(\n `Body Property ${nextLinkName} should be a string or undefined`,\n );\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\n \"200\",\n \"201\",\n \"202\",\n \"203\",\n \"204\",\n \"205\",\n \"206\",\n \"207\",\n \"208\",\n \"226\",\n ];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
@@ -0,0 +1,43 @@
1
+ import { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
2
+ import { RequestParameters } from "@azure-rest/core-client";
3
+ import { NotificationContent } from "./models.js";
4
+ export interface GetMediaHeaders {
5
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
6
+ "x-ms-client-request-id"?: string;
7
+ }
8
+ export interface GetMediaHeaderParam {
9
+ headers?: RawHttpHeadersInput & GetMediaHeaders;
10
+ }
11
+ export type GetMediaParameters = GetMediaHeaderParam & RequestParameters;
12
+ export interface SendHeaders {
13
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
14
+ "Repeatability-Request-ID"?: string;
15
+ /** Specifies the date and time at which the request was first created. */
16
+ "Repeatability-First-Sent"?: string;
17
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
18
+ "x-ms-client-request-id"?: string;
19
+ }
20
+ export interface SendBodyParam {
21
+ /** Details of the message to send. */
22
+ body: NotificationContent;
23
+ }
24
+ export interface SendHeaderParam {
25
+ headers?: RawHttpHeadersInput & SendHeaders;
26
+ }
27
+ export type SendParameters = SendHeaderParam & SendBodyParam & RequestParameters;
28
+ export interface ListTemplatesHeaders {
29
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
30
+ "x-ms-client-request-id"?: string;
31
+ }
32
+ export interface ListTemplatesQueryParamProperties {
33
+ /** Number of objects to return per page. */
34
+ maxpagesize?: number;
35
+ }
36
+ export interface ListTemplatesQueryParam {
37
+ queryParameters?: ListTemplatesQueryParamProperties;
38
+ }
39
+ export interface ListTemplatesHeaderParam {
40
+ headers?: RawHttpHeadersInput & ListTemplatesHeaders;
41
+ }
42
+ export type ListTemplatesParameters = ListTemplatesQueryParam & ListTemplatesHeaderParam & RequestParameters;
43
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,mBAAmB,GAAG,eAAe,CAAC;CACjD;AAED,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,0EAA0E;IAC1E,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,mBAAmB,GAAG,WAAW,CAAC;CAC7C;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,GAC1C,aAAa,GACb,iBAAiB,CAAC;AAEpB,MAAM,WAAW,oBAAoB;IACnC,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,iCAAiC;IAChD,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,EAAE,iCAAiC,CAAC;CACrD;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,mBAAmB,GAAG,oBAAoB,CAAC;CACtD;AAED,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAC3D,wBAAwB,GACxB,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport { NotificationContent } from \"./models.js\";\n\nexport interface GetMediaHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetMediaHeaderParam {\n headers?: RawHttpHeadersInput & GetMediaHeaders;\n}\n\nexport type GetMediaParameters = GetMediaHeaderParam & RequestParameters;\n\nexport interface SendHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"Repeatability-Request-ID\"?: string;\n /** Specifies the date and time at which the request was first created. */\n \"Repeatability-First-Sent\"?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface SendBodyParam {\n /** Details of the message to send. */\n body: NotificationContent;\n}\n\nexport interface SendHeaderParam {\n headers?: RawHttpHeadersInput & SendHeaders;\n}\n\nexport type SendParameters = SendHeaderParam &\n SendBodyParam &\n RequestParameters;\n\nexport interface ListTemplatesHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListTemplatesQueryParamProperties {\n /** Number of objects to return per page. */\n maxpagesize?: number;\n}\n\nexport interface ListTemplatesQueryParam {\n queryParameters?: ListTemplatesQueryParamProperties;\n}\n\nexport interface ListTemplatesHeaderParam {\n headers?: RawHttpHeadersInput & ListTemplatesHeaders;\n}\n\nexport type ListTemplatesParameters = ListTemplatesQueryParam &\n ListTemplatesHeaderParam &\n RequestParameters;\n"]}
@@ -0,0 +1,66 @@
1
+ import { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
+ import { HttpResponse, ErrorResponse } from "@azure-rest/core-client";
3
+ import { RepeatabilityResultOutput, SendMessageResultOutput, PagedMessageTemplateItemOutput } from "./outputModels.js";
4
+ export interface GetMedia200Headers {
5
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
6
+ "x-ms-client-request-id"?: string;
7
+ /** The stream content type. */
8
+ "content-type": "application/octet-stream";
9
+ }
10
+ /** The request has succeeded. */
11
+ export interface GetMedia200Response extends HttpResponse {
12
+ status: "200";
13
+ /** Value may contain any sequence of octets */
14
+ body: Uint8Array;
15
+ headers: RawHttpHeaders & GetMedia200Headers;
16
+ }
17
+ export interface GetMediaDefaultHeaders {
18
+ /** String error code indicating what went wrong. */
19
+ "x-ms-error-code"?: string;
20
+ }
21
+ export interface GetMediaDefaultResponse extends HttpResponse {
22
+ status: string;
23
+ body: ErrorResponse;
24
+ headers: RawHttpHeaders & GetMediaDefaultHeaders;
25
+ }
26
+ export interface Send202Headers {
27
+ /** Indicates whether the repeatable request was accepted or rejected. */
28
+ "repeatability-result"?: RepeatabilityResultOutput;
29
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
30
+ "x-ms-client-request-id"?: string;
31
+ }
32
+ /** The request has been accepted for processing, but processing has not yet completed. */
33
+ export interface Send202Response extends HttpResponse {
34
+ status: "202";
35
+ body: SendMessageResultOutput;
36
+ headers: RawHttpHeaders & Send202Headers;
37
+ }
38
+ export interface SendDefaultHeaders {
39
+ /** String error code indicating what went wrong. */
40
+ "x-ms-error-code"?: string;
41
+ }
42
+ export interface SendDefaultResponse extends HttpResponse {
43
+ status: string;
44
+ body: ErrorResponse;
45
+ headers: RawHttpHeaders & SendDefaultHeaders;
46
+ }
47
+ export interface ListTemplates200Headers {
48
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
49
+ "x-ms-client-request-id"?: string;
50
+ }
51
+ /** The request has succeeded. */
52
+ export interface ListTemplates200Response extends HttpResponse {
53
+ status: "200";
54
+ body: PagedMessageTemplateItemOutput;
55
+ headers: RawHttpHeaders & ListTemplates200Headers;
56
+ }
57
+ export interface ListTemplatesDefaultHeaders {
58
+ /** String error code indicating what went wrong. */
59
+ "x-ms-error-code"?: string;
60
+ }
61
+ export interface ListTemplatesDefaultResponse extends HttpResponse {
62
+ status: string;
63
+ body: ErrorResponse;
64
+ headers: RawHttpHeaders & ListTemplatesDefaultHeaders;
65
+ }
66
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,M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BAAkB,CAAC;CAC9C;AAED,MAAM,WAAW,uBAAuB;IACtC,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,iCAAiC;AACjC,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,8BAA8B,CAAC;IACrC,OAAO,EAAE,cAAc,GAAG,uBAAuB,CAAC;CACnD;AAED,MAAM,WAAW,2BAA2B;IAC1C,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,4BAA6B,SAAQ,YAAY;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,cAAc,GAAG,2BAA2B,CAAC;CACvD"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=responses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../src/generated/src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse, ErrorResponse } from \"@azure-rest/core-client\";\nimport {\n RepeatabilityResultOutput,\n SendMessageResultOutput,\n PagedMessageTemplateItemOutput,\n} from \"./outputModels.js\";\n\nexport interface GetMedia200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n /** The stream content type. */\n \"content-type\": \"application/octet-stream\";\n}\n\n/** The request has succeeded. */\nexport interface GetMedia200Response extends HttpResponse {\n status: \"200\";\n /** Value may contain any sequence of octets */\n body: Uint8Array;\n headers: RawHttpHeaders & GetMedia200Headers;\n}\n\nexport interface GetMediaDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetMediaDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetMediaDefaultHeaders;\n}\n\nexport interface Send202Headers {\n /** Indicates whether the repeatable request was accepted or rejected. */\n \"repeatability-result\"?: RepeatabilityResultOutput;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface Send202Response extends HttpResponse {\n status: \"202\";\n body: SendMessageResultOutput;\n headers: RawHttpHeaders & Send202Headers;\n}\n\nexport interface SendDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface SendDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & SendDefaultHeaders;\n}\n\nexport interface ListTemplates200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface ListTemplates200Response extends HttpResponse {\n status: \"200\";\n body: PagedMessageTemplateItemOutput;\n headers: RawHttpHeaders & ListTemplates200Headers;\n}\n\nexport interface ListTemplatesDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListTemplatesDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListTemplatesDefaultHeaders;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import MessagesServiceClient from "./messagesServiceClient.js";
2
+ export * from "./generated/src/messagesServiceClient.js";
3
+ export * from "./generated/src/parameters.js";
4
+ export * from "./generated/src/responses.js";
5
+ export * from "./generated/src/clientDefinitions.js";
6
+ export * from "./generated/src/isUnexpected.js";
7
+ export * from "./generated/src/models.js";
8
+ export * from "./generated/src/outputModels.js";
9
+ export * from "./generated/src/paginateHelper.js";
10
+ export default MessagesServiceClient;
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,qBAAqB,MAAM,4BAA4B,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import MessagesServiceClient from "./messagesServiceClient.js";
4
+ export * from "./generated/src/messagesServiceClient.js";
5
+ export * from "./generated/src/parameters.js";
6
+ export * from "./generated/src/responses.js";
7
+ export * from "./generated/src/clientDefinitions.js";
8
+ export * from "./generated/src/isUnexpected.js";
9
+ export * from "./generated/src/models.js";
10
+ export * from "./generated/src/outputModels.js";
11
+ export * from "./generated/src/paginateHelper.js";
12
+ export default MessagesServiceClient;
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,qBAAqB,MAAM,4BAA4B,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,eAAe,qBAAqB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport MessagesServiceClient from \"./messagesServiceClient.js\";\nexport * from \"./generated/src/messagesServiceClient.js\";\nexport * from \"./generated/src/parameters.js\";\nexport * from \"./generated/src/responses.js\";\nexport * from \"./generated/src/clientDefinitions.js\";\nexport * from \"./generated/src/isUnexpected.js\";\nexport * from \"./generated/src/models.js\";\nexport * from \"./generated/src/outputModels.js\";\nexport * from \"./generated/src/paginateHelper.js\";\nexport default MessagesServiceClient;\n"]}