@azure-tools/communication-toll-free-verification 1.0.0-alpha.20250901.2 → 1.0.0-alpha.20250930.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/dist/browser/generated/src/operations/tollFreeVerification.js +81 -132
  3. package/dist/browser/generated/src/operations/tollFreeVerification.js.map +1 -1
  4. package/dist/browser/generated/src/pagingHelper.js +2 -4
  5. package/dist/browser/generated/src/pagingHelper.js.map +1 -1
  6. package/dist/browser/generated/src/tollFreeVerificationClient.js +11 -4
  7. package/dist/browser/generated/src/tollFreeVerificationClient.js.map +1 -1
  8. package/dist/browser/tollFreeVerificationClient.js +11 -4
  9. package/dist/browser/tollFreeVerificationClient.js.map +1 -1
  10. package/dist/browser/utils/constants.js +1 -1
  11. package/dist/browser/utils/constants.js.map +1 -1
  12. package/dist/commonjs/generated/src/operations/tollFreeVerification.js +81 -131
  13. package/dist/commonjs/generated/src/operations/tollFreeVerification.js.map +1 -1
  14. package/dist/commonjs/generated/src/pagingHelper.js +2 -4
  15. package/dist/commonjs/generated/src/pagingHelper.js.map +1 -1
  16. package/dist/commonjs/generated/src/tollFreeVerificationClient.js +11 -4
  17. package/dist/commonjs/generated/src/tollFreeVerificationClient.js.map +1 -1
  18. package/dist/commonjs/tollFreeVerificationClient.js +11 -4
  19. package/dist/commonjs/tollFreeVerificationClient.js.map +1 -1
  20. package/dist/commonjs/tsdoc-metadata.json +11 -11
  21. package/dist/commonjs/utils/constants.js +1 -1
  22. package/dist/commonjs/utils/constants.js.map +1 -1
  23. package/dist/esm/generated/src/operations/tollFreeVerification.js +81 -132
  24. package/dist/esm/generated/src/operations/tollFreeVerification.js.map +1 -1
  25. package/dist/esm/generated/src/pagingHelper.js +2 -4
  26. package/dist/esm/generated/src/pagingHelper.js.map +1 -1
  27. package/dist/esm/generated/src/tollFreeVerificationClient.js +11 -4
  28. package/dist/esm/generated/src/tollFreeVerificationClient.js.map +1 -1
  29. package/dist/esm/tollFreeVerificationClient.js +11 -4
  30. package/dist/esm/tollFreeVerificationClient.js.map +1 -1
  31. package/dist/esm/utils/constants.js +1 -1
  32. package/dist/esm/utils/constants.js.map +1 -1
  33. package/dist/react-native/generated/src/operations/tollFreeVerification.js +81 -132
  34. package/dist/react-native/generated/src/operations/tollFreeVerification.js.map +1 -1
  35. package/dist/react-native/generated/src/pagingHelper.js +2 -4
  36. package/dist/react-native/generated/src/pagingHelper.js.map +1 -1
  37. package/dist/react-native/generated/src/tollFreeVerificationClient.js +11 -4
  38. package/dist/react-native/generated/src/tollFreeVerificationClient.js.map +1 -1
  39. package/dist/react-native/tollFreeVerificationClient.js +11 -4
  40. package/dist/react-native/tollFreeVerificationClient.js.map +1 -1
  41. package/dist/react-native/utils/constants.js +1 -1
  42. package/dist/react-native/utils/constants.js.map +1 -1
  43. package/package.json +42 -43
@@ -5,7 +5,6 @@
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";
9
8
  import { tracingClient } from "../tracing.js";
10
9
  import { setContinuationToken } from "../pagingHelper.js";
11
10
  import * as coreClient from "@azure/core-client";
@@ -14,6 +13,7 @@ import * as Parameters from "../models/parameters.js";
14
13
  /// <reference lib="esnext.asynciterable" />
15
14
  /** Class containing TollFreeVerification operations. */
16
15
  export class TollFreeVerificationImpl {
16
+ client;
17
17
  /**
18
18
  * Initialize a new instance of the class TollFreeVerification class.
19
19
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class TollFreeVerificationImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings) {
47
- return __asyncGenerator(this, arguments, function* getAllCampaignBriefsByCountryCodePagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._getAllCampaignBriefsByCountryCode(countryCode, options));
52
- let page = result.campaignBriefs || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._getAllCampaignBriefsByCountryCodeNext(countryCode, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.campaignBriefs || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *getAllCampaignBriefsByCountryCodePagingPage(countryCode, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._getAllCampaignBriefsByCountryCode(countryCode, options);
51
+ let page = result.campaignBriefs || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._getAllCampaignBriefsByCountryCodeNext(countryCode, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.campaignBriefs || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- getAllCampaignBriefsByCountryCodePagingAll(countryCode, options) {
67
- return __asyncGenerator(this, arguments, function* getAllCampaignBriefsByCountryCodePagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *getAllCampaignBriefsByCountryCodePagingAll(countryCode, options) {
65
+ for await (const page of this.getAllCampaignBriefsByCountryCodePagingPage(countryCode, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Get a list of Campaign Brief Summaries for the current resource.
@@ -97,52 +80,35 @@ export class TollFreeVerificationImpl {
97
80
  return this;
98
81
  },
99
82
  byPage: (settings) => {
100
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
83
+ if (settings?.maxPageSize) {
101
84
  throw new Error("maxPageSize is not supported by this operation.");
102
85
  }
103
86
  return this.getAllCampaignBriefSummariesPagingPage(options, settings);
104
87
  },
105
88
  };
106
89
  }
107
- getAllCampaignBriefSummariesPagingPage(options, settings) {
108
- return __asyncGenerator(this, arguments, function* getAllCampaignBriefSummariesPagingPage_1() {
109
- let result;
110
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
111
- if (!continuationToken) {
112
- result = yield __await(this._getAllCampaignBriefSummaries(options));
113
- let page = result.campaignBriefSummaries || [];
114
- continuationToken = result.nextLink;
115
- setContinuationToken(page, continuationToken);
116
- yield yield __await(page);
117
- }
118
- while (continuationToken) {
119
- result = yield __await(this._getAllCampaignBriefSummariesNext(continuationToken, options));
120
- continuationToken = result.nextLink;
121
- let page = result.campaignBriefSummaries || [];
122
- setContinuationToken(page, continuationToken);
123
- yield yield __await(page);
124
- }
125
- });
90
+ async *getAllCampaignBriefSummariesPagingPage(options, settings) {
91
+ let result;
92
+ let continuationToken = settings?.continuationToken;
93
+ if (!continuationToken) {
94
+ result = await this._getAllCampaignBriefSummaries(options);
95
+ let page = result.campaignBriefSummaries || [];
96
+ continuationToken = result.nextLink;
97
+ setContinuationToken(page, continuationToken);
98
+ yield page;
99
+ }
100
+ while (continuationToken) {
101
+ result = await this._getAllCampaignBriefSummariesNext(continuationToken, options);
102
+ continuationToken = result.nextLink;
103
+ let page = result.campaignBriefSummaries || [];
104
+ setContinuationToken(page, continuationToken);
105
+ yield page;
106
+ }
126
107
  }
127
- getAllCampaignBriefSummariesPagingAll(options) {
128
- return __asyncGenerator(this, arguments, function* getAllCampaignBriefSummariesPagingAll_1() {
129
- var _a, e_2, _b, _c;
130
- try {
131
- for (var _d = true, _e = __asyncValues(this.getAllCampaignBriefSummariesPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
132
- _c = _f.value;
133
- _d = false;
134
- const page = _c;
135
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
136
- }
137
- }
138
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
139
- finally {
140
- try {
141
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
142
- }
143
- finally { if (e_2) throw e_2.error; }
144
- }
145
- });
108
+ async *getAllCampaignBriefSummariesPagingAll(options) {
109
+ for await (const page of this.getAllCampaignBriefSummariesPagingPage(options)) {
110
+ yield* page;
111
+ }
146
112
  }
147
113
  /**
148
114
  * Gets a list of attachments from a Campaign Brief.
@@ -160,52 +126,35 @@ export class TollFreeVerificationImpl {
160
126
  return this;
161
127
  },
162
128
  byPage: (settings) => {
163
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
129
+ if (settings?.maxPageSize) {
164
130
  throw new Error("maxPageSize is not supported by this operation.");
165
131
  }
166
132
  return this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings);
167
133
  },
168
134
  };
169
135
  }
170
- getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings) {
171
- return __asyncGenerator(this, arguments, function* getCampaignBriefAttachmentsPagingPage_1() {
172
- let result;
173
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
174
- if (!continuationToken) {
175
- result = yield __await(this._getCampaignBriefAttachments(countryCode, campaignBriefId, options));
176
- let page = result.attachments || [];
177
- continuationToken = result.nextLink;
178
- setContinuationToken(page, continuationToken);
179
- yield yield __await(page);
180
- }
181
- while (continuationToken) {
182
- result = yield __await(this._getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, continuationToken, options));
183
- continuationToken = result.nextLink;
184
- let page = result.attachments || [];
185
- setContinuationToken(page, continuationToken);
186
- yield yield __await(page);
187
- }
188
- });
136
+ async *getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings) {
137
+ let result;
138
+ let continuationToken = settings?.continuationToken;
139
+ if (!continuationToken) {
140
+ result = await this._getCampaignBriefAttachments(countryCode, campaignBriefId, options);
141
+ let page = result.attachments || [];
142
+ continuationToken = result.nextLink;
143
+ setContinuationToken(page, continuationToken);
144
+ yield page;
145
+ }
146
+ while (continuationToken) {
147
+ result = await this._getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, continuationToken, options);
148
+ continuationToken = result.nextLink;
149
+ let page = result.attachments || [];
150
+ setContinuationToken(page, continuationToken);
151
+ yield page;
152
+ }
189
153
  }
190
- getCampaignBriefAttachmentsPagingAll(countryCode, campaignBriefId, options) {
191
- return __asyncGenerator(this, arguments, function* getCampaignBriefAttachmentsPagingAll_1() {
192
- var _a, e_3, _b, _c;
193
- try {
194
- for (var _d = true, _e = __asyncValues(this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
195
- _c = _f.value;
196
- _d = false;
197
- const page = _c;
198
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
199
- }
200
- }
201
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
202
- finally {
203
- try {
204
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
205
- }
206
- finally { if (e_3) throw e_3.error; }
207
- }
208
- });
154
+ async *getCampaignBriefAttachmentsPagingAll(countryCode, campaignBriefId, options) {
155
+ for await (const page of this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options)) {
156
+ yield* page;
157
+ }
209
158
  }
210
159
  /**
211
160
  * Creates or updates a Campaign Brief.
@@ -214,7 +163,7 @@ export class TollFreeVerificationImpl {
214
163
  * @param options The options parameters.
215
164
  */
216
165
  async upsertCampaignBrief(countryCode, campaignBriefId, options) {
217
- return tracingClient.withSpan("TollFreeVerificationClient.upsertCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
166
+ return tracingClient.withSpan("TollFreeVerificationClient.upsertCampaignBrief", options ?? {}, async (options) => {
218
167
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, upsertCampaignBriefOperationSpec);
219
168
  });
220
169
  }
@@ -225,7 +174,7 @@ export class TollFreeVerificationImpl {
225
174
  * @param options The options parameters.
226
175
  */
227
176
  async deleteCampaignBrief(countryCode, campaignBriefId, options) {
228
- return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
177
+ return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBrief", options ?? {}, async (options) => {
229
178
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, deleteCampaignBriefOperationSpec);
230
179
  });
231
180
  }
@@ -236,7 +185,7 @@ export class TollFreeVerificationImpl {
236
185
  * @param options The options parameters.
237
186
  */
238
187
  async getCampaignBrief(countryCode, campaignBriefId, options) {
239
- return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
188
+ return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBrief", options ?? {}, async (options) => {
240
189
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefOperationSpec);
241
190
  });
242
191
  }
@@ -247,7 +196,7 @@ export class TollFreeVerificationImpl {
247
196
  * @param options The options parameters.
248
197
  */
249
198
  async submitCampaignBrief(countryCode, campaignBriefId, options) {
250
- return tracingClient.withSpan("TollFreeVerificationClient.submitCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
199
+ return tracingClient.withSpan("TollFreeVerificationClient.submitCampaignBrief", options ?? {}, async (options) => {
251
200
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, submitCampaignBriefOperationSpec);
252
201
  });
253
202
  }
@@ -257,7 +206,7 @@ export class TollFreeVerificationImpl {
257
206
  * @param options The options parameters.
258
207
  */
259
208
  async _getAllCampaignBriefsByCountryCode(countryCode, options) {
260
- return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCode", options !== null && options !== void 0 ? options : {}, async (options) => {
209
+ return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCode", options ?? {}, async (options) => {
261
210
  return this.client.sendOperationRequest({ countryCode, options }, getAllCampaignBriefsByCountryCodeOperationSpec);
262
211
  });
263
212
  }
@@ -266,7 +215,7 @@ export class TollFreeVerificationImpl {
266
215
  * @param options The options parameters.
267
216
  */
268
217
  async _getAllCampaignBriefSummaries(options) {
269
- return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummaries", options !== null && options !== void 0 ? options : {}, async (options) => {
218
+ return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummaries", options ?? {}, async (options) => {
270
219
  return this.client.sendOperationRequest({ options }, getAllCampaignBriefSummariesOperationSpec);
271
220
  });
272
221
  }
@@ -286,7 +235,7 @@ export class TollFreeVerificationImpl {
286
235
  * @param options The options parameters.
287
236
  */
288
237
  async createOrReplaceCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, id, typeParam, fileName, fileType, fileContentBase64, options) {
289
- return tracingClient.withSpan("TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
238
+ return tracingClient.withSpan("TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment", options ?? {}, async (options) => {
290
239
  return this.client.sendOperationRequest({
291
240
  countryCode,
292
241
  campaignBriefId,
@@ -308,7 +257,7 @@ export class TollFreeVerificationImpl {
308
257
  * @param options The options parameters.
309
258
  */
310
259
  async deleteCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
311
- return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
260
+ return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBriefAttachment", options ?? {}, async (options) => {
312
261
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, deleteCampaignBriefAttachmentOperationSpec);
313
262
  });
314
263
  }
@@ -320,7 +269,7 @@ export class TollFreeVerificationImpl {
320
269
  * @param options The options parameters.
321
270
  */
322
271
  async getCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
323
- return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
272
+ return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBriefAttachment", options ?? {}, async (options) => {
324
273
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, getCampaignBriefAttachmentOperationSpec);
325
274
  });
326
275
  }
@@ -331,7 +280,7 @@ export class TollFreeVerificationImpl {
331
280
  * @param options The options parameters.
332
281
  */
333
282
  async _getCampaignBriefAttachments(countryCode, campaignBriefId, options) {
334
- return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachments", options !== null && options !== void 0 ? options : {}, async (options) => {
283
+ return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachments", options ?? {}, async (options) => {
335
284
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefAttachmentsOperationSpec);
336
285
  });
337
286
  }
@@ -343,7 +292,7 @@ export class TollFreeVerificationImpl {
343
292
  * @param options The options parameters.
344
293
  */
345
294
  async _getAllCampaignBriefsByCountryCodeNext(countryCode, nextLink, options) {
346
- return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext", options !== null && options !== void 0 ? options : {}, async (options) => {
295
+ return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext", options ?? {}, async (options) => {
347
296
  return this.client.sendOperationRequest({ countryCode, nextLink, options }, getAllCampaignBriefsByCountryCodeNextOperationSpec);
348
297
  });
349
298
  }
@@ -354,7 +303,7 @@ export class TollFreeVerificationImpl {
354
303
  * @param options The options parameters.
355
304
  */
356
305
  async _getAllCampaignBriefSummariesNext(nextLink, options) {
357
- return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummariesNext", options !== null && options !== void 0 ? options : {}, async (options) => {
306
+ return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummariesNext", options ?? {}, async (options) => {
358
307
  return this.client.sendOperationRequest({ nextLink, options }, getAllCampaignBriefSummariesNextOperationSpec);
359
308
  });
360
309
  }
@@ -367,7 +316,7 @@ export class TollFreeVerificationImpl {
367
316
  * @param options The options parameters.
368
317
  */
369
318
  async _getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, nextLink, options) {
370
- return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachmentsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
319
+ return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachmentsNext", options ?? {}, async (options) => {
371
320
  return this.client.sendOperationRequest({ countryCode, campaignBriefId, nextLink, options }, getCampaignBriefAttachmentsNextOperationSpec);
372
321
  });
373
322
  }
@@ -512,7 +461,7 @@ const createOrReplaceCampaignBriefAttachmentOperationSpec = {
512
461
  fileType: ["fileType"],
513
462
  fileContentBase64: ["fileContentBase64"],
514
463
  },
515
- mapper: Object.assign(Object.assign({}, Mappers.CampaignBriefAttachment), { required: true }),
464
+ mapper: { ...Mappers.CampaignBriefAttachment, required: true },
516
465
  },
517
466
  queryParameters: [Parameters.apiVersion],
518
467
  urlParameters: [
@@ -1 +1 @@
1
- {"version":3,"file":"tollFreeVerification.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/tollFreeVer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AAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACJ,MAAM,6CAA6C,GACjD;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACJ,MAAM,4CAA4C,GAA6B;IAC7E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,eAAe;QAC1B,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, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TollFreeVerification } 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 { TollFreeVerificationClient } from \"../tollFreeVerificationClient.js\";\nimport {\n CampaignBrief,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse,\n CampaignBriefSummary,\n TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesResponse,\n CampaignBriefAttachment,\n TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsResponse,\n TollFreeVerificationUpsertCampaignBriefOptionalParams,\n TollFreeVerificationUpsertCampaignBriefResponse,\n TollFreeVerificationDeleteCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefResponse,\n TollFreeVerificationSubmitCampaignBriefOptionalParams,\n TollFreeVerificationSubmitCampaignBriefResponse,\n AttachmentType,\n FileType,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse,\n TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentResponse,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse,\n TollFreeVerificationGetAllCampaignBriefSummariesNextResponse,\n TollFreeVerificationGetCampaignBriefAttachmentsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TollFreeVerification operations. */\nexport class TollFreeVerificationImpl implements TollFreeVerification {\n private readonly client: TollFreeVerificationClient;\n\n /**\n * Initialize a new instance of the class TollFreeVerification class.\n * @param client Reference to the service client\n */\n constructor(client: TollFreeVerificationClient) {\n this.client = client;\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n public listAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBrief> {\n const iter = this.getAllCampaignBriefsByCountryCodePagingAll(\n countryCode,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingPage(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBrief[]> {\n let result: TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCode(\n countryCode,\n options,\n );\n let page = result.campaignBriefs || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCodeNext(\n countryCode,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefs || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingAll(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): AsyncIterableIterator<CampaignBrief> {\n for await (const page of this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n public listAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefSummary> {\n const iter = this.getAllCampaignBriefSummariesPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefSummariesPagingPage(options, settings);\n },\n };\n }\n\n private async *getAllCampaignBriefSummariesPagingPage(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefSummary[]> {\n let result: TollFreeVerificationGetAllCampaignBriefSummariesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefSummaries(options);\n let page = result.campaignBriefSummaries || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefSummariesNext(\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefSummaries || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefSummariesPagingAll(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): AsyncIterableIterator<CampaignBriefSummary> {\n for await (const page of this.getAllCampaignBriefSummariesPagingPage(\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n public listCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefAttachment> {\n const iter = this.getCampaignBriefAttachmentsPagingAll(\n countryCode,\n campaignBriefId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getCampaignBriefAttachmentsPagingPage(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefAttachment[]> {\n let result: TollFreeVerificationGetCampaignBriefAttachmentsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getCampaignBriefAttachments(\n countryCode,\n campaignBriefId,\n options,\n );\n let page = result.attachments || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getCampaignBriefAttachmentsNext(\n countryCode,\n campaignBriefId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.attachments || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getCampaignBriefAttachmentsPagingAll(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): AsyncIterableIterator<CampaignBriefAttachment> {\n for await (const page of this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async upsertCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationUpsertCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationUpsertCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.upsertCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n upsertCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationUpsertCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Deletes a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be deleted. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationDeleteCampaignBriefOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n deleteCampaignBriefOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Get a Campaign Brief by id.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Submits a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be submitted. Must be a valid GUID\n * @param options The options parameters.\n */\n async submitCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationSubmitCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationSubmitCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.submitCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n submitCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationSubmitCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCode\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n getAllCampaignBriefsByCountryCodeOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse>;\n },\n );\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummaries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getAllCampaignBriefSummariesOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse>;\n },\n );\n }\n\n /**\n * Creates or updates an attachment on a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param id Campaign Brief Attachment Id.\n * @param typeParam Attachment type describing the purpose of the attachment\n * e.g. 'callToAction', 'termsOfService'\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 options The options parameters.\n */\n async createOrReplaceCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n id: string,\n typeParam: AttachmentType,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n options?: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n {\n countryCode,\n campaignBriefId,\n attachmentId,\n id,\n typeParam,\n fileName,\n fileType,\n fileContentBase64,\n options,\n },\n createOrReplaceCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Deletes a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign 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 deleteCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n deleteCampaignBriefAttachmentOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign 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 getCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n getCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachments\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefAttachmentsOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefsByCountryCodeNext\n * @param countryCode\n * @param nextLink The nextLink from the previous successful call to the\n * GetAllCampaignBriefsByCountryCode method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCodeNext(\n countryCode: string,\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n getAllCampaignBriefsByCountryCodeNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefSummariesNext\n * @param nextLink The nextLink from the previous successful call to the GetAllCampaignBriefSummaries\n * method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummariesNext(\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummariesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getAllCampaignBriefSummariesNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse>;\n },\n );\n }\n\n /**\n * GetCampaignBriefAttachmentsNext\n * @param countryCode\n * @param campaignBriefId\n * @param nextLink The nextLink from the previous successful call to the GetCampaignBriefAttachments\n * method.\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachmentsNext(\n countryCode: string,\n campaignBriefId: string,\n nextLink: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachmentsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, nextLink, options },\n getCampaignBriefAttachmentsNextOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst upsertCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n 201: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\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.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst submitCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/:submit\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrReplaceCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n 201: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: {\n parameterPath: {\n id: [\"id\"],\n typeParam: [\"typeParam\"],\n fileName: [\"fileName\"],\n fileSizeInBytes: [\"options\", \"fileSizeInBytes\"],\n fileType: [\"fileType\"],\n fileContentBase64: [\"fileContentBase64\"],\n },\n mapper: { ...Mappers.CampaignBriefAttachment, required: true },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n };\nconst deleteCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/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.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentsOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getCampaignBriefAttachmentsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"tollFreeVerification.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/tollFreeVerification.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkCtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,kCAAkC,CACvC,WAAmB,EACnB,OAA6E;QAE7E,MAAM,IAAI,GAAG,IAAI,CAAC,0CAA0C,CAC1D,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,2CAA2C,CACrD,WAAW,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,GAA6B;IAC7E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,eAAe;QAC1B,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, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TollFreeVerification } 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 { TollFreeVerificationClient } from \"../tollFreeVerificationClient.js\";\nimport {\n CampaignBrief,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse,\n CampaignBriefSummary,\n TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n TollFreeVerificationGetAllCampaignBriefSummariesResponse,\n CampaignBriefAttachment,\n TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentsResponse,\n TollFreeVerificationUpsertCampaignBriefOptionalParams,\n TollFreeVerificationUpsertCampaignBriefResponse,\n TollFreeVerificationDeleteCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefOptionalParams,\n TollFreeVerificationGetCampaignBriefResponse,\n TollFreeVerificationSubmitCampaignBriefOptionalParams,\n TollFreeVerificationSubmitCampaignBriefResponse,\n AttachmentType,\n FileType,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse,\n TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n TollFreeVerificationGetCampaignBriefAttachmentResponse,\n TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse,\n TollFreeVerificationGetAllCampaignBriefSummariesNextResponse,\n TollFreeVerificationGetCampaignBriefAttachmentsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TollFreeVerification operations. */\nexport class TollFreeVerificationImpl implements TollFreeVerification {\n private readonly client: TollFreeVerificationClient;\n\n /**\n * Initialize a new instance of the class TollFreeVerification class.\n * @param client Reference to the service client\n */\n constructor(client: TollFreeVerificationClient) {\n this.client = client;\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n public listAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBrief> {\n const iter = this.getAllCampaignBriefsByCountryCodePagingAll(\n countryCode,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingPage(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBrief[]> {\n let result: TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCode(\n countryCode,\n options,\n );\n let page = result.campaignBriefs || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefsByCountryCodeNext(\n countryCode,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefs || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefsByCountryCodePagingAll(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): AsyncIterableIterator<CampaignBrief> {\n for await (const page of this.getAllCampaignBriefsByCountryCodePagingPage(\n countryCode,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n public listAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefSummary> {\n const iter = this.getAllCampaignBriefSummariesPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getAllCampaignBriefSummariesPagingPage(options, settings);\n },\n };\n }\n\n private async *getAllCampaignBriefSummariesPagingPage(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefSummary[]> {\n let result: TollFreeVerificationGetAllCampaignBriefSummariesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getAllCampaignBriefSummaries(options);\n let page = result.campaignBriefSummaries || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getAllCampaignBriefSummariesNext(\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.campaignBriefSummaries || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getAllCampaignBriefSummariesPagingAll(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): AsyncIterableIterator<CampaignBriefSummary> {\n for await (const page of this.getAllCampaignBriefSummariesPagingPage(\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n public listCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): PagedAsyncIterableIterator<CampaignBriefAttachment> {\n const iter = this.getCampaignBriefAttachmentsPagingAll(\n countryCode,\n campaignBriefId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getCampaignBriefAttachmentsPagingPage(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CampaignBriefAttachment[]> {\n let result: TollFreeVerificationGetCampaignBriefAttachmentsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getCampaignBriefAttachments(\n countryCode,\n campaignBriefId,\n options,\n );\n let page = result.attachments || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getCampaignBriefAttachmentsNext(\n countryCode,\n campaignBriefId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.attachments || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getCampaignBriefAttachmentsPagingAll(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): AsyncIterableIterator<CampaignBriefAttachment> {\n for await (const page of this.getCampaignBriefAttachmentsPagingPage(\n countryCode,\n campaignBriefId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async upsertCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationUpsertCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationUpsertCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.upsertCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n upsertCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationUpsertCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Deletes a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be deleted. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationDeleteCampaignBriefOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n deleteCampaignBriefOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Get a Campaign Brief by id.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async getCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Submits a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id of brief to be submitted. Must be a valid GUID\n * @param options The options parameters.\n */\n async submitCampaignBrief(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationSubmitCampaignBriefOptionalParams,\n ): Promise<TollFreeVerificationSubmitCampaignBriefResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.submitCampaignBrief\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n submitCampaignBriefOperationSpec,\n ) as Promise<TollFreeVerificationSubmitCampaignBriefResponse>;\n },\n );\n }\n\n /**\n * Get a list of campaign briefs by country code for the current resource.\n * @param countryCode\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCode(\n countryCode: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCode\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, options },\n getAllCampaignBriefsByCountryCodeOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeResponse>;\n },\n );\n }\n\n /**\n * Get a list of Campaign Brief Summaries for the current resource.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummaries(\n options?: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummaries\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getAllCampaignBriefSummariesOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesResponse>;\n },\n );\n }\n\n /**\n * Creates or updates an attachment on a Campaign Brief.\n * @param countryCode Country Code Id. Must be a valid country code\n * @param campaignBriefId Campaign Brief Id. Must be a valid GUID\n * @param attachmentId Attachment Id. Must be a valid GUID\n * @param id Campaign Brief Attachment Id.\n * @param typeParam Attachment type describing the purpose of the attachment\n * e.g. 'callToAction', 'termsOfService'\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 options The options parameters.\n */\n async createOrReplaceCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n id: string,\n typeParam: AttachmentType,\n fileName: string,\n fileType: FileType,\n fileContentBase64: string,\n options?: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n {\n countryCode,\n campaignBriefId,\n attachmentId,\n id,\n typeParam,\n fileName,\n fileType,\n fileContentBase64,\n options,\n },\n createOrReplaceCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Deletes a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign 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 deleteCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.deleteCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n deleteCampaignBriefAttachmentOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a specific attachment from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId Campaign 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 getCampaignBriefAttachment(\n countryCode: string,\n campaignBriefId: string,\n attachmentId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient.getCampaignBriefAttachment\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, attachmentId, options },\n getCampaignBriefAttachmentOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentResponse>;\n },\n );\n }\n\n /**\n * Gets a list of attachments from a Campaign Brief.\n * @param countryCode\n * @param campaignBriefId\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachments(\n countryCode: string,\n campaignBriefId: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachments\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, options },\n getCampaignBriefAttachmentsOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefsByCountryCodeNext\n * @param countryCode\n * @param nextLink The nextLink from the previous successful call to the\n * GetAllCampaignBriefsByCountryCode method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefsByCountryCodeNext(\n countryCode: string,\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, nextLink, options },\n getAllCampaignBriefsByCountryCodeNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefsByCountryCodeNextResponse>;\n },\n );\n }\n\n /**\n * GetAllCampaignBriefSummariesNext\n * @param nextLink The nextLink from the previous successful call to the GetAllCampaignBriefSummaries\n * method.\n * @param options The options parameters.\n */\n private async _getAllCampaignBriefSummariesNext(\n nextLink: string,\n options?: TollFreeVerificationGetAllCampaignBriefSummariesNextOptionalParams,\n ): Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getAllCampaignBriefSummariesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getAllCampaignBriefSummariesNextOperationSpec,\n ) as Promise<TollFreeVerificationGetAllCampaignBriefSummariesNextResponse>;\n },\n );\n }\n\n /**\n * GetCampaignBriefAttachmentsNext\n * @param countryCode\n * @param campaignBriefId\n * @param nextLink The nextLink from the previous successful call to the GetCampaignBriefAttachments\n * method.\n * @param options The options parameters.\n */\n private async _getCampaignBriefAttachmentsNext(\n countryCode: string,\n campaignBriefId: string,\n nextLink: string,\n options?: TollFreeVerificationGetCampaignBriefAttachmentsNextOptionalParams,\n ): Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse> {\n return tracingClient.withSpan(\n \"TollFreeVerificationClient._getCampaignBriefAttachmentsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { countryCode, campaignBriefId, nextLink, options },\n getCampaignBriefAttachmentsNextOperationSpec,\n ) as Promise<TollFreeVerificationGetCampaignBriefAttachmentsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst upsertCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n 201: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\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.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst submitCampaignBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/:submit\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBrief,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint, Parameters.countryCode],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/campaignBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrReplaceCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec =\n {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n 201: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: {\n parameterPath: {\n id: [\"id\"],\n typeParam: [\"typeParam\"],\n fileName: [\"fileName\"],\n fileSizeInBytes: [\"options\", \"fileSizeInBytes\"],\n fileType: [\"fileType\"],\n fileContentBase64: [\"fileContentBase64\"],\n },\n mapper: { ...Mappers.CampaignBriefAttachment, required: true },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n };\nconst deleteCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/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.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachment,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.attachmentId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCampaignBriefAttachmentsOperationSpec: coreClient.OperationSpec = {\n path: \"/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAllCampaignBriefsByCountryCodeNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefs,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getAllCampaignBriefSummariesNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefSummaries,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getCampaignBriefAttachmentsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CampaignBriefAttachments,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.countryCode,\n Parameters.campaignBriefId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
14
14
  * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
- var _a;
18
17
  if (typeof page !== "object" || page === null) {
19
18
  return undefined;
20
19
  }
21
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
20
+ return pageMap.get(page)?.continuationToken;
22
21
  }
23
22
  export function setContinuationToken(page, continuationToken) {
24
- var _a;
25
23
  if (typeof page !== "object" || page === null || !continuationToken) {
26
24
  return;
27
25
  }
28
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
26
+ const pageInfo = pageMap.get(page) ?? {};
29
27
  pageInfo.continuationToken = continuationToken;
30
28
  pageMap.set(page, pageInfo);
31
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../../../src/generated/src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../../../src/generated/src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}