@azure-rest/communication-messages 2.0.1-alpha.20250210.2 → 2.1.0-alpha.20250212.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.
- package/README.md +163 -0
- package/dist/browser/generated/src/clientDefinitions.d.ts +3 -3
- package/dist/browser/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/browser/generated/src/clientDefinitions.js.map +1 -1
- package/dist/browser/generated/src/isUnexpected.d.ts +1 -1
- package/dist/browser/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/browser/generated/src/isUnexpected.js.map +1 -1
- package/dist/browser/generated/src/messagesServiceClient.d.ts +3 -3
- package/dist/browser/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/browser/generated/src/messagesServiceClient.js +2 -2
- package/dist/browser/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/browser/generated/src/models.d.ts +148 -1
- package/dist/browser/generated/src/models.d.ts.map +1 -1
- package/dist/browser/generated/src/models.js.map +1 -1
- package/dist/browser/generated/src/outputModels.d.ts +7 -3
- package/dist/browser/generated/src/outputModels.d.ts.map +1 -1
- package/dist/browser/generated/src/outputModels.js.map +1 -1
- package/dist/browser/generated/src/paginateHelper.d.ts +28 -3
- package/dist/browser/generated/src/paginateHelper.d.ts.map +1 -1
- package/dist/browser/generated/src/paginateHelper.js +99 -2
- package/dist/browser/generated/src/paginateHelper.js.map +1 -1
- package/dist/browser/generated/src/parameters.d.ts +3 -3
- package/dist/browser/generated/src/parameters.d.ts.map +1 -1
- package/dist/browser/generated/src/parameters.js.map +1 -1
- package/dist/browser/generated/src/responses.d.ts +3 -3
- package/dist/browser/generated/src/responses.d.ts.map +1 -1
- package/dist/browser/generated/src/responses.js.map +1 -1
- package/dist/commonjs/generated/src/clientDefinitions.d.ts +3 -3
- package/dist/commonjs/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/commonjs/generated/src/clientDefinitions.js.map +1 -1
- package/dist/commonjs/generated/src/isUnexpected.d.ts +1 -1
- package/dist/commonjs/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/commonjs/generated/src/isUnexpected.js.map +1 -1
- package/dist/commonjs/generated/src/messagesServiceClient.d.ts +3 -3
- package/dist/commonjs/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/commonjs/generated/src/messagesServiceClient.js +2 -2
- package/dist/commonjs/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/commonjs/generated/src/models.d.ts +148 -1
- package/dist/commonjs/generated/src/models.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models.js.map +1 -1
- package/dist/commonjs/generated/src/outputModels.d.ts +7 -3
- package/dist/commonjs/generated/src/outputModels.d.ts.map +1 -1
- package/dist/commonjs/generated/src/outputModels.js.map +1 -1
- package/dist/commonjs/generated/src/paginateHelper.d.ts +28 -3
- package/dist/commonjs/generated/src/paginateHelper.d.ts.map +1 -1
- package/dist/commonjs/generated/src/paginateHelper.js +99 -2
- package/dist/commonjs/generated/src/paginateHelper.js.map +1 -1
- package/dist/commonjs/generated/src/parameters.d.ts +3 -3
- package/dist/commonjs/generated/src/parameters.d.ts.map +1 -1
- package/dist/commonjs/generated/src/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/responses.d.ts +3 -3
- package/dist/commonjs/generated/src/responses.d.ts.map +1 -1
- package/dist/commonjs/generated/src/responses.js.map +1 -1
- package/dist/esm/generated/src/clientDefinitions.d.ts +3 -3
- package/dist/esm/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/esm/generated/src/clientDefinitions.js.map +1 -1
- package/dist/esm/generated/src/isUnexpected.d.ts +1 -1
- package/dist/esm/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/esm/generated/src/isUnexpected.js.map +1 -1
- package/dist/esm/generated/src/messagesServiceClient.d.ts +3 -3
- package/dist/esm/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/esm/generated/src/messagesServiceClient.js +2 -2
- package/dist/esm/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/esm/generated/src/models.d.ts +148 -1
- package/dist/esm/generated/src/models.d.ts.map +1 -1
- package/dist/esm/generated/src/models.js.map +1 -1
- package/dist/esm/generated/src/outputModels.d.ts +7 -3
- package/dist/esm/generated/src/outputModels.d.ts.map +1 -1
- package/dist/esm/generated/src/outputModels.js.map +1 -1
- package/dist/esm/generated/src/paginateHelper.d.ts +28 -3
- package/dist/esm/generated/src/paginateHelper.d.ts.map +1 -1
- package/dist/esm/generated/src/paginateHelper.js +99 -2
- package/dist/esm/generated/src/paginateHelper.js.map +1 -1
- package/dist/esm/generated/src/parameters.d.ts +3 -3
- package/dist/esm/generated/src/parameters.d.ts.map +1 -1
- package/dist/esm/generated/src/parameters.js.map +1 -1
- package/dist/esm/generated/src/responses.d.ts +3 -3
- package/dist/esm/generated/src/responses.d.ts.map +1 -1
- package/dist/esm/generated/src/responses.js.map +1 -1
- package/dist/react-native/generated/src/clientDefinitions.d.ts +3 -3
- package/dist/react-native/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/react-native/generated/src/clientDefinitions.js.map +1 -1
- package/dist/react-native/generated/src/isUnexpected.d.ts +1 -1
- package/dist/react-native/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/react-native/generated/src/isUnexpected.js.map +1 -1
- package/dist/react-native/generated/src/messagesServiceClient.d.ts +3 -3
- package/dist/react-native/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/react-native/generated/src/messagesServiceClient.js +2 -2
- package/dist/react-native/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/react-native/generated/src/models.d.ts +148 -1
- package/dist/react-native/generated/src/models.d.ts.map +1 -1
- package/dist/react-native/generated/src/models.js.map +1 -1
- package/dist/react-native/generated/src/outputModels.d.ts +7 -3
- package/dist/react-native/generated/src/outputModels.d.ts.map +1 -1
- package/dist/react-native/generated/src/outputModels.js.map +1 -1
- package/dist/react-native/generated/src/paginateHelper.d.ts +28 -3
- package/dist/react-native/generated/src/paginateHelper.d.ts.map +1 -1
- package/dist/react-native/generated/src/paginateHelper.js +99 -2
- package/dist/react-native/generated/src/paginateHelper.js.map +1 -1
- package/dist/react-native/generated/src/parameters.d.ts +3 -3
- package/dist/react-native/generated/src/parameters.d.ts.map +1 -1
- package/dist/react-native/generated/src/parameters.js.map +1 -1
- package/dist/react-native/generated/src/responses.d.ts +3 -3
- package/dist/react-native/generated/src/responses.d.ts.map +1 -1
- package/dist/react-native/generated/src/responses.js.map +1 -1
- package/package.json +1 -1
|
@@ -58,6 +58,145 @@ export interface AudioNotificationContent extends NotificationContentParent {
|
|
|
58
58
|
/** A media url for the file. Required if the type is one of the supported media types, e.g. image */
|
|
59
59
|
mediaUri: string;
|
|
60
60
|
}
|
|
61
|
+
/** A request to send a Reaction notification. */
|
|
62
|
+
export interface ReactionNotificationContent extends NotificationContentParent {
|
|
63
|
+
/** Message notification type is reaction. */
|
|
64
|
+
kind: "reaction";
|
|
65
|
+
/** emoji content like \uD83D\uDE00. */
|
|
66
|
+
emoji: string;
|
|
67
|
+
/** ID of the previous message you want to reply to. */
|
|
68
|
+
messageId: string;
|
|
69
|
+
}
|
|
70
|
+
/** A request to send a Sticker notification. */
|
|
71
|
+
export interface StickerNotificationContent extends NotificationContentParent {
|
|
72
|
+
/** Message notification type is sticker. */
|
|
73
|
+
kind: "sticker";
|
|
74
|
+
/** A media url for the file. Required if the type is one of the supported media types, e.g. image */
|
|
75
|
+
mediaUri: string;
|
|
76
|
+
}
|
|
77
|
+
/** A request to send an Interactive message notification. */
|
|
78
|
+
export interface InteractiveNotificationContent extends NotificationContentParent {
|
|
79
|
+
/** Message notification type is Interactive. */
|
|
80
|
+
kind: "interactive";
|
|
81
|
+
/** The interactive message content. */
|
|
82
|
+
interactiveMessage: InteractiveMessage;
|
|
83
|
+
}
|
|
84
|
+
/** The Interactive message content to which user can read and respond. */
|
|
85
|
+
export interface InteractiveMessage {
|
|
86
|
+
/** Gets or Sets Header content. Supports the following types:text, images etc. */
|
|
87
|
+
header?: MessageContent;
|
|
88
|
+
/** Gets or Sets Message body content. Emojis, markdown, and links are supported. */
|
|
89
|
+
body: TextMessageContent;
|
|
90
|
+
/** Gets or Sets Message footer content. Emojis, markdown, and links are supported. */
|
|
91
|
+
footer?: TextMessageContent;
|
|
92
|
+
/** The binding object to get or set Action which describes options user have to respond to message. */
|
|
93
|
+
action: ActionBindings;
|
|
94
|
+
}
|
|
95
|
+
/** The message content object used to create interactive messages components. */
|
|
96
|
+
export interface MessageContentParent {
|
|
97
|
+
kind: MessageContentKind;
|
|
98
|
+
}
|
|
99
|
+
/** The message content of type text information. */
|
|
100
|
+
export interface TextMessageContent extends MessageContentParent {
|
|
101
|
+
/** Message content kind is text. */
|
|
102
|
+
kind: "text";
|
|
103
|
+
/** The text value. */
|
|
104
|
+
text: string;
|
|
105
|
+
}
|
|
106
|
+
/** The message content of type document information. */
|
|
107
|
+
export interface DocumentMessageContent extends MessageContentParent {
|
|
108
|
+
/** Message content kind is document. */
|
|
109
|
+
kind: "document";
|
|
110
|
+
/** MediaUri of the media content. */
|
|
111
|
+
mediaUri: string;
|
|
112
|
+
}
|
|
113
|
+
/** The message content of type image information. */
|
|
114
|
+
export interface ImageMessageContent extends MessageContentParent {
|
|
115
|
+
/** Message content kind is image. */
|
|
116
|
+
kind: "image";
|
|
117
|
+
/** MediaUri of the media content. */
|
|
118
|
+
mediaUri: string;
|
|
119
|
+
}
|
|
120
|
+
/** The message content of type video information. */
|
|
121
|
+
export interface VideoMessageContent extends MessageContentParent {
|
|
122
|
+
/** Message content kind is video. */
|
|
123
|
+
kind: "video";
|
|
124
|
+
/** MediaUri of the media content. */
|
|
125
|
+
mediaUri: string;
|
|
126
|
+
}
|
|
127
|
+
/** The message content of type ButtonSet/ List of buttons information. */
|
|
128
|
+
export interface ButtonSetContent extends MessageContentParent {
|
|
129
|
+
/** Message content kind is Button. */
|
|
130
|
+
kind: "buttonSet";
|
|
131
|
+
/** Unique Id of the button content. */
|
|
132
|
+
buttons: Array<ButtonContent>;
|
|
133
|
+
}
|
|
134
|
+
/** The message content of type Button information. */
|
|
135
|
+
export interface ButtonContent {
|
|
136
|
+
/** Unique Id of the button content. */
|
|
137
|
+
id: string;
|
|
138
|
+
/** Title of the button content. */
|
|
139
|
+
title: string;
|
|
140
|
+
}
|
|
141
|
+
/** The message content of type Url information. */
|
|
142
|
+
export interface LinkContent extends MessageContentParent {
|
|
143
|
+
/** Message content kind is url. */
|
|
144
|
+
kind: "url";
|
|
145
|
+
/** Title of the url content. */
|
|
146
|
+
title: string;
|
|
147
|
+
/** The url in the content. */
|
|
148
|
+
url: string;
|
|
149
|
+
}
|
|
150
|
+
/** The action content of type ActionGroup. */
|
|
151
|
+
export interface ActionGroupContent extends MessageContentParent {
|
|
152
|
+
/** Message content kind is actionGroup. */
|
|
153
|
+
kind: "group";
|
|
154
|
+
/** Title of the actionGroup content. */
|
|
155
|
+
title: string;
|
|
156
|
+
/** Set or group of actions. */
|
|
157
|
+
groups: Array<ActionGroup>;
|
|
158
|
+
}
|
|
159
|
+
/** The Action Group content. */
|
|
160
|
+
export interface ActionGroup {
|
|
161
|
+
/** Title of the ActionGroup. */
|
|
162
|
+
title: string;
|
|
163
|
+
/** Array of items in ActionGroup. */
|
|
164
|
+
items: Array<ActionGroupItem>;
|
|
165
|
+
}
|
|
166
|
+
/** The Action group item in the content. */
|
|
167
|
+
export interface ActionGroupItem {
|
|
168
|
+
/** Id of the Item. */
|
|
169
|
+
id: string;
|
|
170
|
+
/** Title of the Item. */
|
|
171
|
+
title: string;
|
|
172
|
+
/** Description of the Item. */
|
|
173
|
+
description: string;
|
|
174
|
+
}
|
|
175
|
+
/** Binding actions to the interactive message. */
|
|
176
|
+
export interface ActionBindingsParent {
|
|
177
|
+
kind: MessageActionBindingKind;
|
|
178
|
+
}
|
|
179
|
+
/** WhatsApp List Binding actions to the interactive message. */
|
|
180
|
+
export interface WhatsAppListActionBindings extends ActionBindingsParent {
|
|
181
|
+
/** Message action binding type is WhatsAppListAction. */
|
|
182
|
+
kind: "whatsAppListAction";
|
|
183
|
+
/** Action content of Interactive message. */
|
|
184
|
+
content: ActionGroupContent;
|
|
185
|
+
}
|
|
186
|
+
/** WhatsApp Binding actions to the interactive message. */
|
|
187
|
+
export interface WhatsAppButtonActionBindings extends ActionBindingsParent {
|
|
188
|
+
/** Message action binding type is WhatsAppButtonAction. */
|
|
189
|
+
kind: "whatsAppButtonAction";
|
|
190
|
+
/** Action content of Interactive message. */
|
|
191
|
+
content: ButtonSetContent;
|
|
192
|
+
}
|
|
193
|
+
/** WhatsApp Binding actions to the interactive message. */
|
|
194
|
+
export interface WhatsAppUrlActionBindings extends ActionBindingsParent {
|
|
195
|
+
/** Message action binding type is WhatsAppUrlAction. */
|
|
196
|
+
kind: "whatsAppUrlAction";
|
|
197
|
+
/** Action content of Interactive message. */
|
|
198
|
+
content: LinkContent;
|
|
199
|
+
}
|
|
61
200
|
/** A request to send a template notification. */
|
|
62
201
|
export interface TemplateNotificationContent extends NotificationContentParent {
|
|
63
202
|
/** Message notification type is template. */
|
|
@@ -178,13 +317,21 @@ export interface WhatsAppMessageTemplateBindingsButton {
|
|
|
178
317
|
refValue: string;
|
|
179
318
|
}
|
|
180
319
|
/** Details of the message to send. */
|
|
181
|
-
export type NotificationContent = NotificationContentParent | TextNotificationContent | MediaNotificationContent | ImageNotificationContent | DocumentNotificationContent | VideoNotificationContent | AudioNotificationContent | TemplateNotificationContent;
|
|
320
|
+
export type NotificationContent = NotificationContentParent | TextNotificationContent | MediaNotificationContent | ImageNotificationContent | DocumentNotificationContent | VideoNotificationContent | AudioNotificationContent | ReactionNotificationContent | StickerNotificationContent | InteractiveNotificationContent | TemplateNotificationContent;
|
|
321
|
+
/** The message content object used to create interactive messages components. */
|
|
322
|
+
export type MessageContent = MessageContentParent | TextMessageContent | DocumentMessageContent | ImageMessageContent | VideoMessageContent | ButtonSetContent | LinkContent | ActionGroupContent;
|
|
323
|
+
/** Binding actions to the interactive message. */
|
|
324
|
+
export type ActionBindings = ActionBindingsParent | WhatsAppListActionBindings | WhatsAppButtonActionBindings | WhatsAppUrlActionBindings;
|
|
182
325
|
/** The class describes a parameter of a template. */
|
|
183
326
|
export type MessageTemplateValue = MessageTemplateValueParent | MessageTemplateText | MessageTemplateImage | MessageTemplateDocument | MessageTemplateVideo | MessageTemplateLocation | MessageTemplateQuickAction;
|
|
184
327
|
/** The binding object to link values to the template specific locations */
|
|
185
328
|
export type MessageTemplateBindings = MessageTemplateBindingsParent | WhatsAppMessageTemplateBindings;
|
|
186
329
|
/** Alias for CommunicationMessageKind */
|
|
187
330
|
export type CommunicationMessageKind = string;
|
|
331
|
+
/** Alias for MessageContentKind */
|
|
332
|
+
export type MessageContentKind = string;
|
|
333
|
+
/** Alias for MessageActionBindingKind */
|
|
334
|
+
export type MessageActionBindingKind = string;
|
|
188
335
|
/** Alias for MessageTemplateValueKind */
|
|
189
336
|
export type MessageTemplateValueKind = string;
|
|
190
337
|
/** Alias for MessageTemplateBindingsKind */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/models.ts"],"names":[],"mappings":"AAGA,sCAAsC;AACtC,MAAM,WAAW,yBAAyB;IACxC,+DAA+D;IAC/D,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sEAAsE;IACtE,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED,6CAA6C;AAC7C,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,2DAA2D;AAC3D,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,0CAA0C;IAC1C,IAAI,EAAE,UAAU,CAAC;IACjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qGAAqG;IACrG,QAAQ,EAAE,MAA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@ -1 +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"]}
|
|
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 Reaction notification. */\nexport interface ReactionNotificationContent extends NotificationContentParent {\n /** Message notification type is reaction. */\n kind: \"reaction\";\n /** emoji content like \\uD83D\\uDE00. */\n emoji: string;\n /** ID of the previous message you want to reply to. */\n messageId: string;\n}\n\n/** A request to send a Sticker notification. */\nexport interface StickerNotificationContent extends NotificationContentParent {\n /** Message notification type is sticker. */\n kind: \"sticker\";\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 Interactive message notification. */\nexport interface InteractiveNotificationContent\n extends NotificationContentParent {\n /** Message notification type is Interactive. */\n kind: \"interactive\";\n /** The interactive message content. */\n interactiveMessage: InteractiveMessage;\n}\n\n/** The Interactive message content to which user can read and respond. */\nexport interface InteractiveMessage {\n /** Gets or Sets Header content. Supports the following types:text, images etc. */\n header?: MessageContent;\n /** Gets or Sets Message body content. Emojis, markdown, and links are supported. */\n body: TextMessageContent;\n /** Gets or Sets Message footer content. Emojis, markdown, and links are supported. */\n footer?: TextMessageContent;\n /** The binding object to get or set Action which describes options user have to respond to message. */\n action: ActionBindings;\n}\n\n/** The message content object used to create interactive messages components. */\nexport interface MessageContentParent {\n kind: MessageContentKind;\n}\n\n/** The message content of type text information. */\nexport interface TextMessageContent extends MessageContentParent {\n /** Message content kind is text. */\n kind: \"text\";\n /** The text value. */\n text: string;\n}\n\n/** The message content of type document information. */\nexport interface DocumentMessageContent extends MessageContentParent {\n /** Message content kind is document. */\n kind: \"document\";\n /** MediaUri of the media content. */\n mediaUri: string;\n}\n\n/** The message content of type image information. */\nexport interface ImageMessageContent extends MessageContentParent {\n /** Message content kind is image. */\n kind: \"image\";\n /** MediaUri of the media content. */\n mediaUri: string;\n}\n\n/** The message content of type video information. */\nexport interface VideoMessageContent extends MessageContentParent {\n /** Message content kind is video. */\n kind: \"video\";\n /** MediaUri of the media content. */\n mediaUri: string;\n}\n\n/** The message content of type ButtonSet/ List of buttons information. */\nexport interface ButtonSetContent extends MessageContentParent {\n /** Message content kind is Button. */\n kind: \"buttonSet\";\n /** Unique Id of the button content. */\n buttons: Array<ButtonContent>;\n}\n\n/** The message content of type Button information. */\nexport interface ButtonContent {\n /** Unique Id of the button content. */\n id: string;\n /** Title of the button content. */\n title: string;\n}\n\n/** The message content of type Url information. */\nexport interface LinkContent extends MessageContentParent {\n /** Message content kind is url. */\n kind: \"url\";\n /** Title of the url content. */\n title: string;\n /** The url in the content. */\n url: string;\n}\n\n/** The action content of type ActionGroup. */\nexport interface ActionGroupContent extends MessageContentParent {\n /** Message content kind is actionGroup. */\n kind: \"group\";\n /** Title of the actionGroup content. */\n title: string;\n /** Set or group of actions. */\n groups: Array<ActionGroup>;\n}\n\n/** The Action Group content. */\nexport interface ActionGroup {\n /** Title of the ActionGroup. */\n title: string;\n /** Array of items in ActionGroup. */\n items: Array<ActionGroupItem>;\n}\n\n/** The Action group item in the content. */\nexport interface ActionGroupItem {\n /** Id of the Item. */\n id: string;\n /** Title of the Item. */\n title: string;\n /** Description of the Item. */\n description: string;\n}\n\n/** Binding actions to the interactive message. */\nexport interface ActionBindingsParent {\n kind: MessageActionBindingKind;\n}\n\n/** WhatsApp List Binding actions to the interactive message. */\nexport interface WhatsAppListActionBindings extends ActionBindingsParent {\n /** Message action binding type is WhatsAppListAction. */\n kind: \"whatsAppListAction\";\n /** Action content of Interactive message. */\n content: ActionGroupContent;\n}\n\n/** WhatsApp Binding actions to the interactive message. */\nexport interface WhatsAppButtonActionBindings extends ActionBindingsParent {\n /** Message action binding type is WhatsAppButtonAction. */\n kind: \"whatsAppButtonAction\";\n /** Action content of Interactive message. */\n content: ButtonSetContent;\n}\n\n/** WhatsApp Binding actions to the interactive message. */\nexport interface WhatsAppUrlActionBindings extends ActionBindingsParent {\n /** Message action binding type is WhatsAppUrlAction. */\n kind: \"whatsAppUrlAction\";\n /** Action content of Interactive message. */\n content: LinkContent;\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 | ReactionNotificationContent\n | StickerNotificationContent\n | InteractiveNotificationContent\n | TemplateNotificationContent;\n/** The message content object used to create interactive messages components. */\nexport type MessageContent =\n | MessageContentParent\n | TextMessageContent\n | DocumentMessageContent\n | ImageMessageContent\n | VideoMessageContent\n | ButtonSetContent\n | LinkContent\n | ActionGroupContent;\n/** Binding actions to the interactive message. */\nexport type ActionBindings =\n | ActionBindingsParent\n | WhatsAppListActionBindings\n | WhatsAppButtonActionBindings\n | WhatsAppUrlActionBindings;\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 MessageContentKind */\nexport type MessageContentKind = string;\n/** Alias for MessageActionBindingKind */\nexport type MessageActionBindingKind = 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"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Paged } from "@azure/core-paging";
|
|
2
1
|
/** Result of the send message operation. */
|
|
3
2
|
export interface SendMessageResultOutput {
|
|
4
3
|
/** Receipts of the send message operation. */
|
|
@@ -11,6 +10,13 @@ export interface MessageReceiptOutput {
|
|
|
11
10
|
/** The native external platform user identifier of the recipient. */
|
|
12
11
|
to: string;
|
|
13
12
|
}
|
|
13
|
+
/** Paged collection of MessageTemplateItem items */
|
|
14
|
+
export interface PagedMessageTemplateItemOutput {
|
|
15
|
+
/** The MessageTemplateItem items on this page */
|
|
16
|
+
value: Array<MessageTemplateItemOutput>;
|
|
17
|
+
/** The link to the next page of items */
|
|
18
|
+
nextLink?: string;
|
|
19
|
+
}
|
|
14
20
|
/** The message template as returned from the service. */
|
|
15
21
|
export interface MessageTemplateItemOutputParent {
|
|
16
22
|
/** The template's name. */
|
|
@@ -36,8 +42,6 @@ export interface WhatsAppMessageTemplateItemOutput extends MessageTemplateItemOu
|
|
|
36
42
|
export type MessageTemplateItemOutput = MessageTemplateItemOutputParent | WhatsAppMessageTemplateItemOutput;
|
|
37
43
|
/** Alias for RepeatabilityResultOutput */
|
|
38
44
|
export type RepeatabilityResultOutput = "accepted" | "rejected";
|
|
39
|
-
/** Paged collection of MessageTemplateItem items */
|
|
40
|
-
export type PagedMessageTemplateItemOutput = Paged<MessageTemplateItemOutput>;
|
|
41
45
|
/** Alias for MessageTemplateStatusOutput */
|
|
42
46
|
export type MessageTemplateStatusOutput = string;
|
|
43
47
|
/** Alias for CommunicationMessagesChannelOutput */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/outputModels.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/outputModels.ts"],"names":[],"mappings":"AAGA,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,oDAAoD;AACpD,MAAM,WAAW,8BAA8B;IAC7C,iDAAiD;IACjD,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACxC,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;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,4CAA4C;AAC5C,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AACjD,mDAAmD;AACnD,MAAM,MAAM,kCAAkC,GAAG,MAAM,CAAC"}
|
|
@@ -1 +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\
|
|
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\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/** Paged collection of MessageTemplateItem items */\nexport interface PagedMessageTemplateItemOutput {\n /** The MessageTemplateItem items on this page */\n value: Array<MessageTemplateItemOutput>;\n /** The link to the next page of items */\n nextLink?: 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/** Alias for MessageTemplateStatusOutput */\nexport type MessageTemplateStatusOutput = string;\n/** Alias for CommunicationMessagesChannelOutput */\nexport type CommunicationMessagesChannelOutput = string;\n"]}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* An interface that tracks the settings for paged iteration
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* The token that keeps track of where to continue the iterator
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
13
|
+
*/
|
|
14
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
|
|
15
|
+
/**
|
|
16
|
+
* The next method, part of the iteration protocol
|
|
17
|
+
*/
|
|
18
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
19
|
+
/**
|
|
20
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
21
|
+
*/
|
|
22
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
23
|
+
/**
|
|
24
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
25
|
+
*/
|
|
26
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
|
|
27
|
+
}
|
|
3
28
|
/**
|
|
4
29
|
* Helper type to extract the type of an array
|
|
5
30
|
*/
|
|
@@ -7,7 +32,7 @@ export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
|
7
32
|
/**
|
|
8
33
|
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
9
34
|
*/
|
|
10
|
-
export type GetPage<TPage> = (pageLink: string
|
|
35
|
+
export type GetPage<TPage> = (pageLink: string) => Promise<{
|
|
11
36
|
page: TPage;
|
|
12
37
|
nextPageLink?: string;
|
|
13
38
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AA6F7E;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,GAAG,YAAY;IAE5B;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAClD,QAAQ,EACR,KAAK,EACL,aAAa,CACd,CAAC;IACF;;OAEG;IACH,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,KAAK,CAAC,CAAC;CACpE;AA2BD;;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,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACzD,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"}
|
|
@@ -1,7 +1,104 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import {
|
|
4
|
-
import { createRestError
|
|
3
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
4
|
+
import { createRestError } from "@azure-rest/core-client";
|
|
5
|
+
/**
|
|
6
|
+
* returns an async iterator that iterates over results. It also has a `byPage`
|
|
7
|
+
* method that returns pages of items at once.
|
|
8
|
+
*
|
|
9
|
+
* @param pagedResult - an object that specifies how to get pages.
|
|
10
|
+
* @returns a paged async iterator that iterates over results.
|
|
11
|
+
*/
|
|
12
|
+
function getPagedAsyncIterator(pagedResult) {
|
|
13
|
+
var _a;
|
|
14
|
+
const iter = getItemAsyncIterator(pagedResult);
|
|
15
|
+
return {
|
|
16
|
+
next() {
|
|
17
|
+
return iter.next();
|
|
18
|
+
},
|
|
19
|
+
[Symbol.asyncIterator]() {
|
|
20
|
+
return this;
|
|
21
|
+
},
|
|
22
|
+
byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
|
|
23
|
+
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
|
24
|
+
return getPageAsyncIterator(pagedResult, {
|
|
25
|
+
pageLink: continuationToken,
|
|
26
|
+
});
|
|
27
|
+
}),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function getItemAsyncIterator(pagedResult) {
|
|
31
|
+
return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
|
|
32
|
+
var _a, e_1, _b, _c, _d, e_2, _e, _f;
|
|
33
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
34
|
+
const firstVal = yield __await(pages.next());
|
|
35
|
+
// if the result does not have an array shape, i.e. TPage = TElement, then we return it as is
|
|
36
|
+
if (!Array.isArray(firstVal.value)) {
|
|
37
|
+
// can extract elements from this page
|
|
38
|
+
const { toElements } = pagedResult;
|
|
39
|
+
if (toElements) {
|
|
40
|
+
yield __await(yield* __asyncDelegator(__asyncValues(toElements(firstVal.value))));
|
|
41
|
+
try {
|
|
42
|
+
for (var _g = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _g = true) {
|
|
43
|
+
_c = pages_1_1.value;
|
|
44
|
+
_g = false;
|
|
45
|
+
const page = _c;
|
|
46
|
+
yield __await(yield* __asyncDelegator(__asyncValues(toElements(page))));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
50
|
+
finally {
|
|
51
|
+
try {
|
|
52
|
+
if (!_g && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
|
|
53
|
+
}
|
|
54
|
+
finally { if (e_1) throw e_1.error; }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
yield yield __await(firstVal.value);
|
|
59
|
+
// `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(pages)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
yield __await(yield* __asyncDelegator(__asyncValues(firstVal.value)));
|
|
65
|
+
try {
|
|
66
|
+
for (var _h = true, pages_2 = __asyncValues(pages), pages_2_1; pages_2_1 = yield __await(pages_2.next()), _d = pages_2_1.done, !_d; _h = true) {
|
|
67
|
+
_f = pages_2_1.value;
|
|
68
|
+
_h = false;
|
|
69
|
+
const page = _f;
|
|
70
|
+
// pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,
|
|
71
|
+
// it must be the case that `TPage = TElement[]`
|
|
72
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
76
|
+
finally {
|
|
77
|
+
try {
|
|
78
|
+
if (!_h && !_d && (_e = pages_2.return)) yield __await(_e.call(pages_2));
|
|
79
|
+
}
|
|
80
|
+
finally { if (e_2) throw e_2.error; }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function getPageAsyncIterator(pagedResult_1) {
|
|
86
|
+
return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
|
|
87
|
+
const { pageLink } = options;
|
|
88
|
+
let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
|
|
89
|
+
if (!response) {
|
|
90
|
+
return yield __await(void 0);
|
|
91
|
+
}
|
|
92
|
+
yield yield __await(response.page);
|
|
93
|
+
while (response.nextPageLink) {
|
|
94
|
+
response = yield __await(pagedResult.getPage(response.nextPageLink));
|
|
95
|
+
if (!response) {
|
|
96
|
+
return yield __await(void 0);
|
|
97
|
+
}
|
|
98
|
+
yield yield __await(response.page);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
5
102
|
/**
|
|
6
103
|
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
7
104
|
* @param client - Client to use for sending the next page requests
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../../../src/generated/src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qBAAqB,GAGtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,eAAe,GAEhB,MAAM,yBAAyB,CAAC;AAyCjC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ;oBACrB,CAAC,CAAC,eAAe;oBACjB,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBAC/C,QAAQ,GAAG,KAAK,CA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,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"]}
|
|
1
|
+
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../../../src/generated/src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;GAMG;AACH,SAAS,qBAAqB,CAM5B,WAAqD;;IAErD,MAAM,IAAI,GAAG,oBAAoB,CAC/B,WAAW,CACZ,CAAC;IACF,OAAO;QACL,IAAI;YACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;QACrB,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,EACJ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,mCAClB,CAAC,CAAC,QAAuB,EAAE,EAAE;YAC5B,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC;YAC7C,OAAO,oBAAoB,CAAC,WAAW,EAAE;gBACvC,QAAQ,EAAE,iBAAiD;aAC5D,CAAC,CAAC;QACL,CAAC,CAEiC;KACrC,CAAC;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAClC,WAAqD;;;QAErD,MAAM,KAAK,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,cAAM,KAAK,CAAC,IAAI,EAAE,CAAA,CAAC;QACpC,6FAA6F;QAC7F,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACnC,sCAAsC;YACtC,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC;YACnC,IAAI,UAAU,EAAE,CAAC;gBACf,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAe,CAAA,CAAA,CA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AAO,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 type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n TLink = string,\n>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n (((settings?: PageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken as unknown as TLink | undefined,\n });\n }) as unknown as (\n settings?: TPageSettings,\n ) => AsyncIterableIterator<TPage>),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = await pages.next();\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield* toElements(firstVal.value) as TElement[];\n for await (const page of pages) {\n yield* toElements(page) as TElement[];\n }\n } else {\n yield firstVal.value;\n // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case\n yield* pages as unknown as AsyncIterableIterator<TElement>;\n }\n } else {\n yield* firstVal.value;\n for await (const page of pages) {\n // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield* page as unknown as TElement[];\n }\n }\n}\n\nasync function* getPageAsyncIterator<TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n options: {\n pageLink?: TLink;\n } = {},\n): AsyncIterableIterator<TPage> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(\n pageLink ?? pagedResult.firstPageLink,\n );\n if (!response) {\n return;\n }\n yield response.page;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n }\n}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<\n TElement,\n TPage,\n TPageSettings\n >;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\ninterface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {\n /**\n * Link to the first page of results.\n */\n firstPageLink: TLink;\n /**\n * A method that returns a page of results.\n */\n getPage: (\n pageLink: TLink,\n ) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => unknown[];\n}\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> = (pageLink: string) => 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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
|
|
2
|
-
import { RequestParameters } from "@azure-rest/core-client";
|
|
3
|
-
import { NotificationContent } from "./models.js";
|
|
1
|
+
import type { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
|
|
2
|
+
import type { RequestParameters } from "@azure-rest/core-client";
|
|
3
|
+
import type { NotificationContent } from "./models.js";
|
|
4
4
|
export interface GetMediaHeaders {
|
|
5
5
|
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
6
6
|
"x-ms-client-request-id"?: string;
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,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"}
|
|
@@ -1 +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"]}
|
|
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 type { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type { 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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
|
1
|
+
import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
|
|
2
|
+
import type { HttpResponse, ErrorResponse } from "@azure-rest/core-client";
|
|
3
|
+
import type { RepeatabilityResultOutput, SendMessageResultOutput, PagedMessageTemplateItemOutput } from "./outputModels.js";
|
|
4
4
|
export interface GetMedia200Headers {
|
|
5
5
|
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
6
6
|
"x-ms-client-request-id"?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EACV,yBAAyB,EACzB,uBAAuB,EACvB,8BAA8B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,kBAAkB;IACjC,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,+BAA+B;IAC/B,cAAc,EAAE,0BAA0B,CAAC;CAC5C;AAED,iCAAiC;AACjC,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE,KAAK,CAAC;IACd,+CAA+C;IAC/C,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,cAAc,GAAG,kBAAkB,CAAC;CAC9C;AAED,MAAM,WAAW,sBAAsB;IACrC,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,cAAc,GAAG,sBAAsB,CAAC;CAClD;AAED,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,sBAAsB,CAAC,EAAE,yBAAyB,CAAC;IACnD,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,0FAA0F;AAC1F,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,cAAc,GAAG,cAAc,CAAC;CAC1C;AAED,MAAM,WAAW,kBAAkB;IACjC,oDAAoD;IACpD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,cAAc,GAAG,kBAAkB,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"}
|
|
@@ -1 +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"]}
|
|
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 type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse, ErrorResponse } from \"@azure-rest/core-client\";\nimport type {\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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GetMediaParameters, SendParameters, ListTemplatesParameters } from "./parameters.js";
|
|
2
|
-
import { GetMedia200Response, GetMediaDefaultResponse, Send202Response, SendDefaultResponse, ListTemplates200Response, ListTemplatesDefaultResponse } from "./responses.js";
|
|
3
|
-
import { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
1
|
+
import type { GetMediaParameters, SendParameters, ListTemplatesParameters } from "./parameters.js";
|
|
2
|
+
import type { GetMedia200Response, GetMediaDefaultResponse, Send202Response, SendDefaultResponse, ListTemplates200Response, ListTemplatesDefaultResponse } from "./responses.js";
|
|
3
|
+
import type { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
4
4
|
export interface GetMedia {
|
|
5
5
|
/** Download the Media payload from a User to Business message. */
|
|
6
6
|
get(options?: GetMediaParameters): StreamableMethod<GetMedia200Response | GetMediaDefaultResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,WAAW,QAAQ;IACvB,kEAAkE;IAClE,GAAG,CACD,OAAO,CAAC,EAAE,kBAAkB,GAC3B,gBAAgB,CAAC,mBAAmB,GAAG,uBAAuB,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,IAAI;IACnB,0DAA0D;IAC1D,IAAI,CACF,OAAO,EAAE,cAAc,GACtB,gBAAgB,CAAC,eAAe,GAAG,mBAAmB,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,GAAG,CACD,OAAO,CAAC,EAAE,uBAAuB,GAChC,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,MAAM;IACrB,uFAAuF;IACvF,CAAC,IAAI,EAAE,wBAAwB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC;IACvD,4FAA4F;IAC5F,CAAC,IAAI,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAC7C,yGAAyG;IACzG,CACE,IAAI,EAAE,0CAA0C,EAChD,SAAS,EAAE,MAAM,GAChB,aAAa,CAAC;CAClB;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|