@azure-tools/communication-short-codes 1.0.0-alpha.20250805.1 → 1.0.0-alpha.20250901.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/browser/generated/src/operations/shortCodes.js +137 -69
- package/dist/browser/generated/src/operations/shortCodes.js.map +1 -1
- package/dist/browser/generated/src/shortCodesClient.js +4 -11
- package/dist/browser/generated/src/shortCodesClient.js.map +1 -1
- package/dist/browser/shortCodesClient.js +4 -11
- package/dist/browser/shortCodesClient.js.map +1 -1
- package/dist/browser/utils/customPipelinePolicies.js +2 -1
- package/dist/browser/utils/customPipelinePolicies.js.map +1 -1
- package/dist/commonjs/generated/src/operations/shortCodes.js +136 -69
- package/dist/commonjs/generated/src/operations/shortCodes.js.map +1 -1
- package/dist/commonjs/generated/src/shortCodesClient.js +4 -11
- package/dist/commonjs/generated/src/shortCodesClient.js.map +1 -1
- package/dist/commonjs/shortCodesClient.js +4 -11
- package/dist/commonjs/shortCodesClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/utils/customPipelinePolicies.js +2 -1
- package/dist/commonjs/utils/customPipelinePolicies.js.map +1 -1
- package/dist/esm/generated/src/operations/shortCodes.js +137 -69
- package/dist/esm/generated/src/operations/shortCodes.js.map +1 -1
- package/dist/esm/generated/src/shortCodesClient.js +4 -11
- package/dist/esm/generated/src/shortCodesClient.js.map +1 -1
- package/dist/esm/shortCodesClient.js +4 -11
- package/dist/esm/shortCodesClient.js.map +1 -1
- package/dist/esm/utils/customPipelinePolicies.js +2 -1
- package/dist/esm/utils/customPipelinePolicies.js.map +1 -1
- package/dist/react-native/generated/src/operations/shortCodes.js +137 -69
- package/dist/react-native/generated/src/operations/shortCodes.js.map +1 -1
- package/dist/react-native/generated/src/shortCodesClient.js +4 -11
- package/dist/react-native/generated/src/shortCodesClient.js.map +1 -1
- package/dist/react-native/shortCodesClient.js +4 -11
- package/dist/react-native/shortCodesClient.js.map +1 -1
- package/dist/react-native/utils/customPipelinePolicies.js +2 -1
- package/dist/react-native/utils/customPipelinePolicies.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -164,8 +164,6 @@ const programBriefRequest: ShortCodesUpsertUSProgramBriefOptionalParams = {
|
|
|
164
164
|
optInAnswerFromUser: "JOIN",
|
|
165
165
|
optInConfirmationMessageToUser:
|
|
166
166
|
"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!",
|
|
167
|
-
optOutAnswerToUser: "Reply STOP to unsubscribe.",
|
|
168
|
-
helpAnswerToUser: "Reply HELP for help. Msg&Data rates may apply.",
|
|
169
167
|
directionality: "twoWay",
|
|
170
168
|
},
|
|
171
169
|
trafficDetails: {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
8
9
|
import { tracingClient } from "../tracing.js";
|
|
9
10
|
import * as coreClient from "@azure/core-client";
|
|
10
11
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -12,7 +13,6 @@ import * as Parameters from "../models/parameters.js";
|
|
|
12
13
|
/// <reference lib="esnext.asynciterable" />
|
|
13
14
|
/** Class containing ShortCodes operations. */
|
|
14
15
|
export class ShortCodesImpl {
|
|
15
|
-
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ShortCodes class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -38,20 +38,37 @@ export class ShortCodesImpl {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
getShortCodesPagingPage(options) {
|
|
42
|
+
return __asyncGenerator(this, arguments, function* getShortCodesPagingPage_1() {
|
|
43
|
+
let result = yield __await(this._getShortCodes(options));
|
|
44
|
+
yield yield __await(result.shortCodes || []);
|
|
45
|
+
let continuationToken = result.nextLink;
|
|
46
|
+
while (continuationToken) {
|
|
47
|
+
result = yield __await(this._getShortCodesNext(continuationToken, options));
|
|
48
|
+
continuationToken = result.nextLink;
|
|
49
|
+
yield yield __await(result.shortCodes || []);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
getShortCodesPagingAll(options) {
|
|
54
|
+
return __asyncGenerator(this, arguments, function* getShortCodesPagingAll_1() {
|
|
55
|
+
var _a, e_1, _b, _c;
|
|
56
|
+
try {
|
|
57
|
+
for (var _d = true, _e = __asyncValues(this.getShortCodesPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
58
|
+
_c = _f.value;
|
|
59
|
+
_d = false;
|
|
60
|
+
const page = _c;
|
|
61
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
+
finally {
|
|
66
|
+
try {
|
|
67
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
68
|
+
}
|
|
69
|
+
finally { if (e_1) throw e_1.error; }
|
|
70
|
+
}
|
|
71
|
+
});
|
|
55
72
|
}
|
|
56
73
|
/**
|
|
57
74
|
* This method supports pagination via the "skip" and "top" query parameters.
|
|
@@ -71,20 +88,37 @@ export class ShortCodesImpl {
|
|
|
71
88
|
}
|
|
72
89
|
};
|
|
73
90
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
91
|
+
getCostsPagingPage(options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* getCostsPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._getCosts(options));
|
|
94
|
+
yield yield __await(result.costs || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._getCostsNext(continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.costs || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
83
102
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
103
|
+
getCostsPagingAll(options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* getCostsPagingAll_1() {
|
|
105
|
+
var _a, e_2, _b, _c;
|
|
106
|
+
try {
|
|
107
|
+
for (var _d = true, _e = __asyncValues(this.getCostsPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
108
|
+
_c = _f.value;
|
|
109
|
+
_d = false;
|
|
110
|
+
const page = _c;
|
|
111
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
115
|
+
finally {
|
|
116
|
+
try {
|
|
117
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
118
|
+
}
|
|
119
|
+
finally { if (e_2) throw e_2.error; }
|
|
120
|
+
}
|
|
121
|
+
});
|
|
88
122
|
}
|
|
89
123
|
/**
|
|
90
124
|
* Gets the list of US Program Briefs for the current resource.
|
|
@@ -104,20 +138,37 @@ export class ShortCodesImpl {
|
|
|
104
138
|
}
|
|
105
139
|
};
|
|
106
140
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
141
|
+
getUSProgramBriefsPagingPage(options) {
|
|
142
|
+
return __asyncGenerator(this, arguments, function* getUSProgramBriefsPagingPage_1() {
|
|
143
|
+
let result = yield __await(this._getUSProgramBriefs(options));
|
|
144
|
+
yield yield __await(result.programBriefs || []);
|
|
145
|
+
let continuationToken = result.nextLink;
|
|
146
|
+
while (continuationToken) {
|
|
147
|
+
result = yield __await(this._getUSProgramBriefsNext(continuationToken, options));
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
yield yield __await(result.programBriefs || []);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
116
152
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
153
|
+
getUSProgramBriefsPagingAll(options) {
|
|
154
|
+
return __asyncGenerator(this, arguments, function* getUSProgramBriefsPagingAll_1() {
|
|
155
|
+
var _a, e_3, _b, _c;
|
|
156
|
+
try {
|
|
157
|
+
for (var _d = true, _e = __asyncValues(this.getUSProgramBriefsPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
158
|
+
_c = _f.value;
|
|
159
|
+
_d = false;
|
|
160
|
+
const page = _c;
|
|
161
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
165
|
+
finally {
|
|
166
|
+
try {
|
|
167
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
168
|
+
}
|
|
169
|
+
finally { if (e_3) throw e_3.error; }
|
|
170
|
+
}
|
|
171
|
+
});
|
|
121
172
|
}
|
|
122
173
|
/**
|
|
123
174
|
* Gets the list of attachments from a US Program Brief.
|
|
@@ -138,27 +189,44 @@ export class ShortCodesImpl {
|
|
|
138
189
|
}
|
|
139
190
|
};
|
|
140
191
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
192
|
+
getUSProgramBriefAttachmentsPagingPage(programBriefId, options) {
|
|
193
|
+
return __asyncGenerator(this, arguments, function* getUSProgramBriefAttachmentsPagingPage_1() {
|
|
194
|
+
let result = yield __await(this._getUSProgramBriefAttachments(programBriefId, options));
|
|
195
|
+
yield yield __await(result.attachments || []);
|
|
196
|
+
let continuationToken = result.nextLink;
|
|
197
|
+
while (continuationToken) {
|
|
198
|
+
result = yield __await(this._getUSProgramBriefAttachmentsNext(programBriefId, continuationToken, options));
|
|
199
|
+
continuationToken = result.nextLink;
|
|
200
|
+
yield yield __await(result.attachments || []);
|
|
201
|
+
}
|
|
202
|
+
});
|
|
150
203
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
204
|
+
getUSProgramBriefAttachmentsPagingAll(programBriefId, options) {
|
|
205
|
+
return __asyncGenerator(this, arguments, function* getUSProgramBriefAttachmentsPagingAll_1() {
|
|
206
|
+
var _a, e_4, _b, _c;
|
|
207
|
+
try {
|
|
208
|
+
for (var _d = true, _e = __asyncValues(this.getUSProgramBriefAttachmentsPagingPage(programBriefId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
209
|
+
_c = _f.value;
|
|
210
|
+
_d = false;
|
|
211
|
+
const page = _c;
|
|
212
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
216
|
+
finally {
|
|
217
|
+
try {
|
|
218
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
219
|
+
}
|
|
220
|
+
finally { if (e_4) throw e_4.error; }
|
|
221
|
+
}
|
|
222
|
+
});
|
|
155
223
|
}
|
|
156
224
|
/**
|
|
157
225
|
* Gets the list of short codes for the current resource.
|
|
158
226
|
* @param options The options parameters.
|
|
159
227
|
*/
|
|
160
228
|
async _getShortCodes(options) {
|
|
161
|
-
return tracingClient.withSpan("ShortCodesClient._getShortCodes", options
|
|
229
|
+
return tracingClient.withSpan("ShortCodesClient._getShortCodes", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
162
230
|
return this.client.sendOperationRequest({ options }, getShortCodesOperationSpec);
|
|
163
231
|
});
|
|
164
232
|
}
|
|
@@ -167,7 +235,7 @@ export class ShortCodesImpl {
|
|
|
167
235
|
* @param options The options parameters.
|
|
168
236
|
*/
|
|
169
237
|
async _getCosts(options) {
|
|
170
|
-
return tracingClient.withSpan("ShortCodesClient._getCosts", options
|
|
238
|
+
return tracingClient.withSpan("ShortCodesClient._getCosts", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
171
239
|
return this.client.sendOperationRequest({ options }, getCostsOperationSpec);
|
|
172
240
|
});
|
|
173
241
|
}
|
|
@@ -177,7 +245,7 @@ export class ShortCodesImpl {
|
|
|
177
245
|
* @param options The options parameters.
|
|
178
246
|
*/
|
|
179
247
|
async upsertUSProgramBrief(programBriefId, options) {
|
|
180
|
-
return tracingClient.withSpan("ShortCodesClient.upsertUSProgramBrief", options
|
|
248
|
+
return tracingClient.withSpan("ShortCodesClient.upsertUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
181
249
|
return this.client.sendOperationRequest({ programBriefId, options }, upsertUSProgramBriefOperationSpec);
|
|
182
250
|
});
|
|
183
251
|
}
|
|
@@ -187,7 +255,7 @@ export class ShortCodesImpl {
|
|
|
187
255
|
* @param options The options parameters.
|
|
188
256
|
*/
|
|
189
257
|
async deleteUSProgramBrief(programBriefId, options) {
|
|
190
|
-
return tracingClient.withSpan("ShortCodesClient.deleteUSProgramBrief", options
|
|
258
|
+
return tracingClient.withSpan("ShortCodesClient.deleteUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
191
259
|
return this.client.sendOperationRequest({ programBriefId, options }, deleteUSProgramBriefOperationSpec);
|
|
192
260
|
});
|
|
193
261
|
}
|
|
@@ -197,7 +265,7 @@ export class ShortCodesImpl {
|
|
|
197
265
|
* @param options The options parameters.
|
|
198
266
|
*/
|
|
199
267
|
async getUSProgramBrief(programBriefId, options) {
|
|
200
|
-
return tracingClient.withSpan("ShortCodesClient.getUSProgramBrief", options
|
|
268
|
+
return tracingClient.withSpan("ShortCodesClient.getUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
201
269
|
return this.client.sendOperationRequest({ programBriefId, options }, getUSProgramBriefOperationSpec);
|
|
202
270
|
});
|
|
203
271
|
}
|
|
@@ -207,7 +275,7 @@ export class ShortCodesImpl {
|
|
|
207
275
|
* @param options The options parameters.
|
|
208
276
|
*/
|
|
209
277
|
async submitUSProgramBrief(programBriefId, options) {
|
|
210
|
-
return tracingClient.withSpan("ShortCodesClient.submitUSProgramBrief", options
|
|
278
|
+
return tracingClient.withSpan("ShortCodesClient.submitUSProgramBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
211
279
|
return this.client.sendOperationRequest({ programBriefId, options }, submitUSProgramBriefOperationSpec);
|
|
212
280
|
});
|
|
213
281
|
}
|
|
@@ -216,7 +284,7 @@ export class ShortCodesImpl {
|
|
|
216
284
|
* @param options The options parameters.
|
|
217
285
|
*/
|
|
218
286
|
async _getUSProgramBriefs(options) {
|
|
219
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefs", options
|
|
287
|
+
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefs", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
220
288
|
return this.client.sendOperationRequest({ options }, getUSProgramBriefsOperationSpec);
|
|
221
289
|
});
|
|
222
290
|
}
|
|
@@ -235,7 +303,7 @@ export class ShortCodesImpl {
|
|
|
235
303
|
* @param options The options parameters.
|
|
236
304
|
*/
|
|
237
305
|
async createOrReplaceUSProgramBriefAttachment(programBriefId, attachmentId, id, fileName, fileType, fileContentBase64, type, options) {
|
|
238
|
-
return tracingClient.withSpan("ShortCodesClient.createOrReplaceUSProgramBriefAttachment", options
|
|
306
|
+
return tracingClient.withSpan("ShortCodesClient.createOrReplaceUSProgramBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
239
307
|
return this.client.sendOperationRequest({
|
|
240
308
|
programBriefId,
|
|
241
309
|
attachmentId,
|
|
@@ -255,7 +323,7 @@ export class ShortCodesImpl {
|
|
|
255
323
|
* @param options The options parameters.
|
|
256
324
|
*/
|
|
257
325
|
async getUSProgramBriefAttachment(programBriefId, attachmentId, options) {
|
|
258
|
-
return tracingClient.withSpan("ShortCodesClient.getUSProgramBriefAttachment", options
|
|
326
|
+
return tracingClient.withSpan("ShortCodesClient.getUSProgramBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
259
327
|
return this.client.sendOperationRequest({ programBriefId, attachmentId, options }, getUSProgramBriefAttachmentOperationSpec);
|
|
260
328
|
});
|
|
261
329
|
}
|
|
@@ -266,7 +334,7 @@ export class ShortCodesImpl {
|
|
|
266
334
|
* @param options The options parameters.
|
|
267
335
|
*/
|
|
268
336
|
async deleteUSProgramBriefAttachment(programBriefId, attachmentId, options) {
|
|
269
|
-
return tracingClient.withSpan("ShortCodesClient.deleteUSProgramBriefAttachment", options
|
|
337
|
+
return tracingClient.withSpan("ShortCodesClient.deleteUSProgramBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
270
338
|
return this.client.sendOperationRequest({ programBriefId, attachmentId, options }, deleteUSProgramBriefAttachmentOperationSpec);
|
|
271
339
|
});
|
|
272
340
|
}
|
|
@@ -276,7 +344,7 @@ export class ShortCodesImpl {
|
|
|
276
344
|
* @param options The options parameters.
|
|
277
345
|
*/
|
|
278
346
|
async _getUSProgramBriefAttachments(programBriefId, options) {
|
|
279
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefAttachments", options
|
|
347
|
+
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefAttachments", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
280
348
|
return this.client.sendOperationRequest({ programBriefId, options }, getUSProgramBriefAttachmentsOperationSpec);
|
|
281
349
|
});
|
|
282
350
|
}
|
|
@@ -286,7 +354,7 @@ export class ShortCodesImpl {
|
|
|
286
354
|
* @param options The options parameters.
|
|
287
355
|
*/
|
|
288
356
|
async _getShortCodesNext(nextLink, options) {
|
|
289
|
-
return tracingClient.withSpan("ShortCodesClient._getShortCodesNext", options
|
|
357
|
+
return tracingClient.withSpan("ShortCodesClient._getShortCodesNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
290
358
|
return this.client.sendOperationRequest({ nextLink, options }, getShortCodesNextOperationSpec);
|
|
291
359
|
});
|
|
292
360
|
}
|
|
@@ -296,7 +364,7 @@ export class ShortCodesImpl {
|
|
|
296
364
|
* @param options The options parameters.
|
|
297
365
|
*/
|
|
298
366
|
async _getCostsNext(nextLink, options) {
|
|
299
|
-
return tracingClient.withSpan("ShortCodesClient._getCostsNext", options
|
|
367
|
+
return tracingClient.withSpan("ShortCodesClient._getCostsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
300
368
|
return this.client.sendOperationRequest({ nextLink, options }, getCostsNextOperationSpec);
|
|
301
369
|
});
|
|
302
370
|
}
|
|
@@ -306,7 +374,7 @@ export class ShortCodesImpl {
|
|
|
306
374
|
* @param options The options parameters.
|
|
307
375
|
*/
|
|
308
376
|
async _getUSProgramBriefsNext(nextLink, options) {
|
|
309
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefsNext", options
|
|
377
|
+
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
310
378
|
return this.client.sendOperationRequest({ nextLink, options }, getUSProgramBriefsNextOperationSpec);
|
|
311
379
|
});
|
|
312
380
|
}
|
|
@@ -318,7 +386,7 @@ export class ShortCodesImpl {
|
|
|
318
386
|
* @param options The options parameters.
|
|
319
387
|
*/
|
|
320
388
|
async _getUSProgramBriefAttachmentsNext(programBriefId, nextLink, options) {
|
|
321
|
-
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefAttachmentsNext", options
|
|
389
|
+
return tracingClient.withSpan("ShortCodesClient._getUSProgramBriefAttachmentsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
322
390
|
return this.client.sendOperationRequest({ programBriefId, nextLink, options }, getUSProgramBriefAttachmentsNextOperationSpec);
|
|
323
391
|
});
|
|
324
392
|
}
|
|
@@ -463,7 +531,7 @@ const createOrReplaceUSProgramBriefAttachmentOperationSpec = {
|
|
|
463
531
|
fileType: ["fileType"],
|
|
464
532
|
fileContentBase64: ["fileContentBase64"]
|
|
465
533
|
},
|
|
466
|
-
mapper: {
|
|
534
|
+
mapper: Object.assign(Object.assign({}, Mappers.ProgramBriefAttachment), { required: true })
|
|
467
535
|
},
|
|
468
536
|
queryParameters: [Parameters.apiVersion],
|
|
469
537
|
urlParameters: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shortCodes.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/shortCodes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAuCtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,cAAc,CACnB,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;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AAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ShortCodes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ShortCodesClient } from \"../shortCodesClient.js\";\nimport {\n ShortCode,\n ShortCodesGetShortCodesNextOptionalParams,\n ShortCodesGetShortCodesOptionalParams,\n ShortCodeCost,\n ShortCodesGetCostsNextOptionalParams,\n ShortCodesGetCostsOptionalParams,\n USProgramBrief,\n ShortCodesGetUSProgramBriefsNextOptionalParams,\n ShortCodesGetUSProgramBriefsOptionalParams,\n ProgramBriefAttachment,\n ShortCodesGetUSProgramBriefAttachmentsNextOptionalParams,\n ShortCodesGetUSProgramBriefAttachmentsOptionalParams,\n ShortCodesGetShortCodesResponse,\n ShortCodesGetCostsResponse,\n ShortCodesUpsertUSProgramBriefOptionalParams,\n ShortCodesUpsertUSProgramBriefResponse,\n ShortCodesDeleteUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefResponse,\n ShortCodesSubmitUSProgramBriefOptionalParams,\n ShortCodesSubmitUSProgramBriefResponse,\n ShortCodesGetUSProgramBriefsResponse,\n AttachmentType,\n FileType,\n ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams,\n ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse,\n ShortCodesGetUSProgramBriefAttachmentOptionalParams,\n ShortCodesGetUSProgramBriefAttachmentResponse,\n ShortCodesDeleteUSProgramBriefAttachmentOptionalParams,\n ShortCodesGetUSProgramBriefAttachmentsResponse,\n ShortCodesGetShortCodesNextResponse,\n ShortCodesGetCostsNextResponse,\n ShortCodesGetUSProgramBriefsNextResponse,\n ShortCodesGetUSProgramBriefAttachmentsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ShortCodes operations. */\nexport class ShortCodesImpl implements ShortCodes {\n private readonly client: ShortCodesClient;\n\n /**\n * Initialize a new instance of the class ShortCodes class.\n * @param client Reference to the service client\n */\n constructor(client: ShortCodesClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of short codes for the current resource.\n * @param options The options parameters.\n */\n public listShortCodes(\n options?: ShortCodesGetShortCodesOptionalParams\n ): PagedAsyncIterableIterator<ShortCode> {\n const iter = this.getShortCodesPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getShortCodesPagingPage(options);\n }\n };\n }\n\n private async *getShortCodesPagingPage(\n options?: ShortCodesGetShortCodesOptionalParams\n ): AsyncIterableIterator<ShortCode[]> {\n let result = await this._getShortCodes(options);\n yield result.shortCodes || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getShortCodesNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.shortCodes || [];\n }\n }\n\n private async *getShortCodesPagingAll(\n options?: ShortCodesGetShortCodesOptionalParams\n ): AsyncIterableIterator<ShortCode> {\n for await (const page of this.getShortCodesPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This method supports pagination via the \"skip\" and \"top\" query parameters.\n * @param options The options parameters.\n */\n public listCosts(\n options?: ShortCodesGetCostsOptionalParams\n ): PagedAsyncIterableIterator<ShortCodeCost> {\n const iter = this.getCostsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getCostsPagingPage(options);\n }\n };\n }\n\n private async *getCostsPagingPage(\n options?: ShortCodesGetCostsOptionalParams\n ): AsyncIterableIterator<ShortCodeCost[]> {\n let result = await this._getCosts(options);\n yield result.costs || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getCostsNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.costs || [];\n }\n }\n\n private async *getCostsPagingAll(\n options?: ShortCodesGetCostsOptionalParams\n ): AsyncIterableIterator<ShortCodeCost> {\n for await (const page of this.getCostsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of US Program Briefs for the current resource.\n * @param options The options parameters.\n */\n public listUSProgramBriefs(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): PagedAsyncIterableIterator<USProgramBrief> {\n const iter = this.getUSProgramBriefsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getUSProgramBriefsPagingPage(options);\n }\n };\n }\n\n private async *getUSProgramBriefsPagingPage(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): AsyncIterableIterator<USProgramBrief[]> {\n let result = await this._getUSProgramBriefs(options);\n yield result.programBriefs || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getUSProgramBriefsNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.programBriefs || [];\n }\n }\n\n private async *getUSProgramBriefsPagingAll(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): AsyncIterableIterator<USProgramBrief> {\n for await (const page of this.getUSProgramBriefsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of attachments from a US Program Brief.\n * @param programBriefId\n * @param options The options parameters.\n */\n public listUSProgramBriefAttachments(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): PagedAsyncIterableIterator<ProgramBriefAttachment> {\n const iter = this.getUSProgramBriefAttachmentsPagingAll(\n programBriefId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getUSProgramBriefAttachmentsPagingPage(\n programBriefId,\n options\n );\n }\n };\n }\n\n private async *getUSProgramBriefAttachmentsPagingPage(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): AsyncIterableIterator<ProgramBriefAttachment[]> {\n let result = await this._getUSProgramBriefAttachments(\n programBriefId,\n options\n );\n yield result.attachments || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getUSProgramBriefAttachmentsNext(\n programBriefId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.attachments || [];\n }\n }\n\n private async *getUSProgramBriefAttachmentsPagingAll(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): AsyncIterableIterator<ProgramBriefAttachment> {\n for await (const page of this.getUSProgramBriefAttachmentsPagingPage(\n programBriefId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of short codes for the current resource.\n * @param options The options parameters.\n */\n private async _getShortCodes(\n options?: ShortCodesGetShortCodesOptionalParams\n ): Promise<ShortCodesGetShortCodesResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getShortCodes\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getShortCodesOperationSpec\n ) as Promise<ShortCodesGetShortCodesResponse>;\n }\n );\n }\n\n /**\n * This method supports pagination via the \"skip\" and \"top\" query parameters.\n * @param options The options parameters.\n */\n private async _getCosts(\n options?: ShortCodesGetCostsOptionalParams\n ): Promise<ShortCodesGetCostsResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getCosts\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getCostsOperationSpec\n ) as Promise<ShortCodesGetCostsResponse>;\n }\n );\n }\n\n /**\n * Creates or updates a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async upsertUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesUpsertUSProgramBriefOptionalParams\n ): Promise<ShortCodesUpsertUSProgramBriefResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.upsertUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n upsertUSProgramBriefOperationSpec\n ) as Promise<ShortCodesUpsertUSProgramBriefResponse>;\n }\n );\n }\n\n /**\n * Deletes a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesDeleteUSProgramBriefOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ShortCodesClient.deleteUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n deleteUSProgramBriefOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Get a US Program Brief by id.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.getUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n getUSProgramBriefOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefResponse>;\n }\n );\n }\n\n /**\n * Submits a US Program Brief for review.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async submitUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesSubmitUSProgramBriefOptionalParams\n ): Promise<ShortCodesSubmitUSProgramBriefResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.submitUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n submitUSProgramBriefOperationSpec\n ) as Promise<ShortCodesSubmitUSProgramBriefResponse>;\n }\n );\n }\n\n /**\n * Gets the list of US Program Briefs for the current resource.\n * @param options The options parameters.\n */\n private async _getUSProgramBriefs(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefsResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefs\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getUSProgramBriefsOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefsResponse>;\n }\n );\n }\n\n /**\n * Creates or replace an attachment on a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param id Program Brief Attachment Id.\n * @param fileName The name of the file being attached\n * e.g. 'myFile01'\n * @param fileType The type of file being attached\n * e.g. 'pdf', 'jpg', 'png'\n * @param fileContentBase64 File content as base 64 encoded string\n * @param type Attachment type describing the purpose of the attachment\n * e.g. 'callToAction', 'termsOfService'\n * @param options The options parameters.\n */\n async createOrReplaceUSProgramBriefAttachment(\n programBriefId: string,\n attachmentId: string,\n id: string,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n type: AttachmentType,\n options?: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams\n ): Promise<ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.createOrReplaceUSProgramBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n {\n programBriefId,\n attachmentId,\n id,\n fileName,\n fileType,\n fileContentBase64,\n type,\n options\n },\n createOrReplaceUSProgramBriefAttachmentOperationSpec\n ) as Promise<ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse>;\n }\n );\n }\n\n /**\n * Gets a specific an attachment from a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getUSProgramBriefAttachment(\n programBriefId: string,\n attachmentId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.getUSProgramBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, attachmentId, options },\n getUSProgramBriefAttachmentOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefAttachmentResponse>;\n }\n );\n }\n\n /**\n * Deletes a specific attachment from a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteUSProgramBriefAttachment(\n programBriefId: string,\n attachmentId: string,\n options?: ShortCodesDeleteUSProgramBriefAttachmentOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ShortCodesClient.deleteUSProgramBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, attachmentId, options },\n deleteUSProgramBriefAttachmentOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Gets the list of attachments from a US Program Brief.\n * @param programBriefId\n * @param options The options parameters.\n */\n private async _getUSProgramBriefAttachments(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefAttachmentsResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefAttachments\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n getUSProgramBriefAttachmentsOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefAttachmentsResponse>;\n }\n );\n }\n\n /**\n * GetShortCodesNext\n * @param nextLink The nextLink from the previous successful call to the GetShortCodes method.\n * @param options The options parameters.\n */\n private async _getShortCodesNext(\n nextLink: string,\n options?: ShortCodesGetShortCodesNextOptionalParams\n ): Promise<ShortCodesGetShortCodesNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getShortCodesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getShortCodesNextOperationSpec\n ) as Promise<ShortCodesGetShortCodesNextResponse>;\n }\n );\n }\n\n /**\n * GetCostsNext\n * @param nextLink The nextLink from the previous successful call to the GetCosts method.\n * @param options The options parameters.\n */\n private async _getCostsNext(\n nextLink: string,\n options?: ShortCodesGetCostsNextOptionalParams\n ): Promise<ShortCodesGetCostsNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getCostsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getCostsNextOperationSpec\n ) as Promise<ShortCodesGetCostsNextResponse>;\n }\n );\n }\n\n /**\n * GetUSProgramBriefsNext\n * @param nextLink The nextLink from the previous successful call to the GetUSProgramBriefs method.\n * @param options The options parameters.\n */\n private async _getUSProgramBriefsNext(\n nextLink: string,\n options?: ShortCodesGetUSProgramBriefsNextOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefsNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getUSProgramBriefsNextOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefsNextResponse>;\n }\n );\n }\n\n /**\n * GetUSProgramBriefAttachmentsNext\n * @param programBriefId\n * @param nextLink The nextLink from the previous successful call to the GetUSProgramBriefAttachments\n * method.\n * @param options The options parameters.\n */\n private async _getUSProgramBriefAttachmentsNext(\n programBriefId: string,\n nextLink: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsNextOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefAttachmentsNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefAttachmentsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, nextLink, options },\n getUSProgramBriefAttachmentsNextOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefAttachmentsNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getShortCodesOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcquiredShortCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCostsOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/costs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShortCodeCosts\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst upsertUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n 201: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst submitUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}/:submit\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefsOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBriefs\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrReplaceUSProgramBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachment\n },\n 201: {\n bodyMapper: Mappers.ProgramBriefAttachment\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n id: [\"id\"],\n type: [\"type\"],\n fileName: [\"fileName\"],\n fileSizeInBytes: [\"options\", \"fileSizeInBytes\"],\n fileType: [\"fileType\"],\n fileContentBase64: [\"fileContentBase64\"]\n },\n mapper: { ...Mappers.ProgramBriefAttachment, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.attachmentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getUSProgramBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachment\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.attachmentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteUSProgramBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.attachmentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefAttachmentsOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachments\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getShortCodesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcquiredShortCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCostsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShortCodeCosts\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBriefs\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefAttachmentsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachments\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"shortCodes.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/shortCodes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,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AAC,GAAG,EAAE,UAAU,CAAC,UAAU,CAAC;IACzE,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ShortCodes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ShortCodesClient } from \"../shortCodesClient.js\";\nimport {\n ShortCode,\n ShortCodesGetShortCodesNextOptionalParams,\n ShortCodesGetShortCodesOptionalParams,\n ShortCodeCost,\n ShortCodesGetCostsNextOptionalParams,\n ShortCodesGetCostsOptionalParams,\n USProgramBrief,\n ShortCodesGetUSProgramBriefsNextOptionalParams,\n ShortCodesGetUSProgramBriefsOptionalParams,\n ProgramBriefAttachment,\n ShortCodesGetUSProgramBriefAttachmentsNextOptionalParams,\n ShortCodesGetUSProgramBriefAttachmentsOptionalParams,\n ShortCodesGetShortCodesResponse,\n ShortCodesGetCostsResponse,\n ShortCodesUpsertUSProgramBriefOptionalParams,\n ShortCodesUpsertUSProgramBriefResponse,\n ShortCodesDeleteUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefResponse,\n ShortCodesSubmitUSProgramBriefOptionalParams,\n ShortCodesSubmitUSProgramBriefResponse,\n ShortCodesGetUSProgramBriefsResponse,\n AttachmentType,\n FileType,\n ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams,\n ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse,\n ShortCodesGetUSProgramBriefAttachmentOptionalParams,\n ShortCodesGetUSProgramBriefAttachmentResponse,\n ShortCodesDeleteUSProgramBriefAttachmentOptionalParams,\n ShortCodesGetUSProgramBriefAttachmentsResponse,\n ShortCodesGetShortCodesNextResponse,\n ShortCodesGetCostsNextResponse,\n ShortCodesGetUSProgramBriefsNextResponse,\n ShortCodesGetUSProgramBriefAttachmentsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ShortCodes operations. */\nexport class ShortCodesImpl implements ShortCodes {\n private readonly client: ShortCodesClient;\n\n /**\n * Initialize a new instance of the class ShortCodes class.\n * @param client Reference to the service client\n */\n constructor(client: ShortCodesClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of short codes for the current resource.\n * @param options The options parameters.\n */\n public listShortCodes(\n options?: ShortCodesGetShortCodesOptionalParams\n ): PagedAsyncIterableIterator<ShortCode> {\n const iter = this.getShortCodesPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getShortCodesPagingPage(options);\n }\n };\n }\n\n private async *getShortCodesPagingPage(\n options?: ShortCodesGetShortCodesOptionalParams\n ): AsyncIterableIterator<ShortCode[]> {\n let result = await this._getShortCodes(options);\n yield result.shortCodes || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getShortCodesNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.shortCodes || [];\n }\n }\n\n private async *getShortCodesPagingAll(\n options?: ShortCodesGetShortCodesOptionalParams\n ): AsyncIterableIterator<ShortCode> {\n for await (const page of this.getShortCodesPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * This method supports pagination via the \"skip\" and \"top\" query parameters.\n * @param options The options parameters.\n */\n public listCosts(\n options?: ShortCodesGetCostsOptionalParams\n ): PagedAsyncIterableIterator<ShortCodeCost> {\n const iter = this.getCostsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getCostsPagingPage(options);\n }\n };\n }\n\n private async *getCostsPagingPage(\n options?: ShortCodesGetCostsOptionalParams\n ): AsyncIterableIterator<ShortCodeCost[]> {\n let result = await this._getCosts(options);\n yield result.costs || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getCostsNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.costs || [];\n }\n }\n\n private async *getCostsPagingAll(\n options?: ShortCodesGetCostsOptionalParams\n ): AsyncIterableIterator<ShortCodeCost> {\n for await (const page of this.getCostsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of US Program Briefs for the current resource.\n * @param options The options parameters.\n */\n public listUSProgramBriefs(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): PagedAsyncIterableIterator<USProgramBrief> {\n const iter = this.getUSProgramBriefsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getUSProgramBriefsPagingPage(options);\n }\n };\n }\n\n private async *getUSProgramBriefsPagingPage(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): AsyncIterableIterator<USProgramBrief[]> {\n let result = await this._getUSProgramBriefs(options);\n yield result.programBriefs || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getUSProgramBriefsNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.programBriefs || [];\n }\n }\n\n private async *getUSProgramBriefsPagingAll(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): AsyncIterableIterator<USProgramBrief> {\n for await (const page of this.getUSProgramBriefsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of attachments from a US Program Brief.\n * @param programBriefId\n * @param options The options parameters.\n */\n public listUSProgramBriefAttachments(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): PagedAsyncIterableIterator<ProgramBriefAttachment> {\n const iter = this.getUSProgramBriefAttachmentsPagingAll(\n programBriefId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getUSProgramBriefAttachmentsPagingPage(\n programBriefId,\n options\n );\n }\n };\n }\n\n private async *getUSProgramBriefAttachmentsPagingPage(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): AsyncIterableIterator<ProgramBriefAttachment[]> {\n let result = await this._getUSProgramBriefAttachments(\n programBriefId,\n options\n );\n yield result.attachments || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getUSProgramBriefAttachmentsNext(\n programBriefId,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.attachments || [];\n }\n }\n\n private async *getUSProgramBriefAttachmentsPagingAll(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): AsyncIterableIterator<ProgramBriefAttachment> {\n for await (const page of this.getUSProgramBriefAttachmentsPagingPage(\n programBriefId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of short codes for the current resource.\n * @param options The options parameters.\n */\n private async _getShortCodes(\n options?: ShortCodesGetShortCodesOptionalParams\n ): Promise<ShortCodesGetShortCodesResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getShortCodes\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getShortCodesOperationSpec\n ) as Promise<ShortCodesGetShortCodesResponse>;\n }\n );\n }\n\n /**\n * This method supports pagination via the \"skip\" and \"top\" query parameters.\n * @param options The options parameters.\n */\n private async _getCosts(\n options?: ShortCodesGetCostsOptionalParams\n ): Promise<ShortCodesGetCostsResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getCosts\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getCostsOperationSpec\n ) as Promise<ShortCodesGetCostsResponse>;\n }\n );\n }\n\n /**\n * Creates or updates a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async upsertUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesUpsertUSProgramBriefOptionalParams\n ): Promise<ShortCodesUpsertUSProgramBriefResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.upsertUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n upsertUSProgramBriefOperationSpec\n ) as Promise<ShortCodesUpsertUSProgramBriefResponse>;\n }\n );\n }\n\n /**\n * Deletes a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesDeleteUSProgramBriefOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ShortCodesClient.deleteUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n deleteUSProgramBriefOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Get a US Program Brief by id.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.getUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n getUSProgramBriefOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefResponse>;\n }\n );\n }\n\n /**\n * Submits a US Program Brief for review.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async submitUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesSubmitUSProgramBriefOptionalParams\n ): Promise<ShortCodesSubmitUSProgramBriefResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.submitUSProgramBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n submitUSProgramBriefOperationSpec\n ) as Promise<ShortCodesSubmitUSProgramBriefResponse>;\n }\n );\n }\n\n /**\n * Gets the list of US Program Briefs for the current resource.\n * @param options The options parameters.\n */\n private async _getUSProgramBriefs(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefsResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefs\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getUSProgramBriefsOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefsResponse>;\n }\n );\n }\n\n /**\n * Creates or replace an attachment on a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param id Program Brief Attachment Id.\n * @param fileName The name of the file being attached\n * e.g. 'myFile01'\n * @param fileType The type of file being attached\n * e.g. 'pdf', 'jpg', 'png'\n * @param fileContentBase64 File content as base 64 encoded string\n * @param type Attachment type describing the purpose of the attachment\n * e.g. 'callToAction', 'termsOfService'\n * @param options The options parameters.\n */\n async createOrReplaceUSProgramBriefAttachment(\n programBriefId: string,\n attachmentId: string,\n id: string,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n type: AttachmentType,\n options?: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams\n ): Promise<ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.createOrReplaceUSProgramBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n {\n programBriefId,\n attachmentId,\n id,\n fileName,\n fileType,\n fileContentBase64,\n type,\n options\n },\n createOrReplaceUSProgramBriefAttachmentOperationSpec\n ) as Promise<ShortCodesCreateOrReplaceUSProgramBriefAttachmentResponse>;\n }\n );\n }\n\n /**\n * Gets a specific an attachment from a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getUSProgramBriefAttachment(\n programBriefId: string,\n attachmentId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient.getUSProgramBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, attachmentId, options },\n getUSProgramBriefAttachmentOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefAttachmentResponse>;\n }\n );\n }\n\n /**\n * Deletes a specific attachment from a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteUSProgramBriefAttachment(\n programBriefId: string,\n attachmentId: string,\n options?: ShortCodesDeleteUSProgramBriefAttachmentOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ShortCodesClient.deleteUSProgramBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, attachmentId, options },\n deleteUSProgramBriefAttachmentOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Gets the list of attachments from a US Program Brief.\n * @param programBriefId\n * @param options The options parameters.\n */\n private async _getUSProgramBriefAttachments(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefAttachmentsResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefAttachments\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n getUSProgramBriefAttachmentsOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefAttachmentsResponse>;\n }\n );\n }\n\n /**\n * GetShortCodesNext\n * @param nextLink The nextLink from the previous successful call to the GetShortCodes method.\n * @param options The options parameters.\n */\n private async _getShortCodesNext(\n nextLink: string,\n options?: ShortCodesGetShortCodesNextOptionalParams\n ): Promise<ShortCodesGetShortCodesNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getShortCodesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getShortCodesNextOperationSpec\n ) as Promise<ShortCodesGetShortCodesNextResponse>;\n }\n );\n }\n\n /**\n * GetCostsNext\n * @param nextLink The nextLink from the previous successful call to the GetCosts method.\n * @param options The options parameters.\n */\n private async _getCostsNext(\n nextLink: string,\n options?: ShortCodesGetCostsNextOptionalParams\n ): Promise<ShortCodesGetCostsNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getCostsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getCostsNextOperationSpec\n ) as Promise<ShortCodesGetCostsNextResponse>;\n }\n );\n }\n\n /**\n * GetUSProgramBriefsNext\n * @param nextLink The nextLink from the previous successful call to the GetUSProgramBriefs method.\n * @param options The options parameters.\n */\n private async _getUSProgramBriefsNext(\n nextLink: string,\n options?: ShortCodesGetUSProgramBriefsNextOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefsNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getUSProgramBriefsNextOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefsNextResponse>;\n }\n );\n }\n\n /**\n * GetUSProgramBriefAttachmentsNext\n * @param programBriefId\n * @param nextLink The nextLink from the previous successful call to the GetUSProgramBriefAttachments\n * method.\n * @param options The options parameters.\n */\n private async _getUSProgramBriefAttachmentsNext(\n programBriefId: string,\n nextLink: string,\n options?: ShortCodesGetUSProgramBriefAttachmentsNextOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefAttachmentsNextResponse> {\n return tracingClient.withSpan(\n \"ShortCodesClient._getUSProgramBriefAttachmentsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { programBriefId, nextLink, options },\n getUSProgramBriefAttachmentsNextOperationSpec\n ) as Promise<ShortCodesGetUSProgramBriefAttachmentsNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getShortCodesOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcquiredShortCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCostsOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/costs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShortCodeCosts\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst upsertUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n 201: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst submitUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}/:submit\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefsOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBriefs\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrReplaceUSProgramBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachment\n },\n 201: {\n bodyMapper: Mappers.ProgramBriefAttachment\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n id: [\"id\"],\n type: [\"type\"],\n fileName: [\"fileName\"],\n fileSizeInBytes: [\"options\", \"fileSizeInBytes\"],\n fileType: [\"fileType\"],\n fileContentBase64: [\"fileContentBase64\"]\n },\n mapper: { ...Mappers.ProgramBriefAttachment, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.attachmentId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getUSProgramBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachment\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.attachmentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteUSProgramBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments/{attachmentId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.attachmentId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefAttachmentsOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}/attachments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachments\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getShortCodesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcquiredShortCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCostsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShortCodeCosts\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBriefs\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefAttachmentsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProgramBriefAttachments\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.programBriefId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -9,14 +9,13 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { ShortCodesImpl } from "./operations/index.js";
|
|
11
11
|
export class ShortCodesClient extends coreClient.ServiceClient {
|
|
12
|
-
endpoint;
|
|
13
|
-
apiVersion;
|
|
14
12
|
/**
|
|
15
13
|
* Initializes a new instance of the ShortCodesClient class.
|
|
16
14
|
* @param endpoint The communication resource, for example https://resourcename.communication.azure.com
|
|
17
15
|
* @param options The parameter options
|
|
18
16
|
*/
|
|
19
17
|
constructor(endpoint, options) {
|
|
18
|
+
var _a, _b;
|
|
20
19
|
if (endpoint === undefined) {
|
|
21
20
|
throw new Error("'endpoint' cannot be null");
|
|
22
21
|
}
|
|
@@ -31,16 +30,11 @@ export class ShortCodesClient extends coreClient.ServiceClient {
|
|
|
31
30
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
32
31
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
33
32
|
: `${packageDetails}`;
|
|
34
|
-
const optionsWithDefaults = {
|
|
35
|
-
...defaults,
|
|
36
|
-
...options,
|
|
37
|
-
userAgentOptions: {
|
|
33
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
38
34
|
userAgentPrefix
|
|
39
|
-
},
|
|
40
|
-
baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}"
|
|
41
|
-
};
|
|
35
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
|
42
36
|
super(optionsWithDefaults);
|
|
43
|
-
if (options
|
|
37
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
38
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
39
|
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
40
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -88,6 +82,5 @@ export class ShortCodesClient extends coreClient.ServiceClient {
|
|
|
88
82
|
};
|
|
89
83
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
90
84
|
}
|
|
91
|
-
shortCodes;
|
|
92
85
|
}
|
|
93
86
|
//# sourceMappingURL=shortCodesClient.js.map
|