@azure-tools/communication-toll-free-verification 1.0.0-alpha.20250730.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/dist/browser/generated/src/operations/tollFreeVerification.js +132 -81
- package/dist/browser/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/browser/generated/src/pagingHelper.js +4 -2
- package/dist/browser/generated/src/pagingHelper.js.map +1 -1
- package/dist/browser/generated/src/tollFreeVerificationClient.js +3 -10
- package/dist/browser/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/browser/tollFreeVerificationClient.js +4 -11
- package/dist/browser/tollFreeVerificationClient.js.map +1 -1
- package/dist/commonjs/generated/src/operations/tollFreeVerification.js +131 -81
- package/dist/commonjs/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/commonjs/generated/src/pagingHelper.js +4 -2
- package/dist/commonjs/generated/src/pagingHelper.js.map +1 -1
- package/dist/commonjs/generated/src/tollFreeVerificationClient.js +3 -10
- package/dist/commonjs/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/commonjs/tollFreeVerificationClient.js +4 -11
- package/dist/commonjs/tollFreeVerificationClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/generated/src/operations/tollFreeVerification.js +132 -81
- package/dist/esm/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/esm/generated/src/pagingHelper.js +4 -2
- package/dist/esm/generated/src/pagingHelper.js.map +1 -1
- package/dist/esm/generated/src/tollFreeVerificationClient.js +3 -10
- package/dist/esm/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/esm/tollFreeVerificationClient.js +4 -11
- package/dist/esm/tollFreeVerificationClient.js.map +1 -1
- package/dist/react-native/generated/src/operations/tollFreeVerification.js +132 -81
- package/dist/react-native/generated/src/operations/tollFreeVerification.js.map +1 -1
- package/dist/react-native/generated/src/pagingHelper.js +4 -2
- package/dist/react-native/generated/src/pagingHelper.js.map +1 -1
- package/dist/react-native/generated/src/tollFreeVerificationClient.js +3 -10
- package/dist/react-native/generated/src/tollFreeVerificationClient.js.map +1 -1
- package/dist/react-native/tollFreeVerificationClient.js +4 -11
- package/dist/react-native/tollFreeVerificationClient.js.map +1 -1
- package/package.json +2 -2
|
@@ -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 { setContinuationToken } from "../pagingHelper.js";
|
|
10
11
|
import * as coreClient from "@azure/core-client";
|
|
@@ -13,7 +14,6 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
14
|
/// <reference lib="esnext.asynciterable" />
|
|
14
15
|
/** Class containing TollFreeVerification operations. */
|
|
15
16
|
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,35 +36,52 @@ export class TollFreeVerificationImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : 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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
+
});
|
|
63
65
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
+
});
|
|
68
85
|
}
|
|
69
86
|
/**
|
|
70
87
|
* Get a list of Campaign Brief Summaries for the current resource.
|
|
@@ -80,35 +97,52 @@ export class TollFreeVerificationImpl {
|
|
|
80
97
|
return this;
|
|
81
98
|
},
|
|
82
99
|
byPage: (settings) => {
|
|
83
|
-
if (settings
|
|
100
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
84
101
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
85
102
|
}
|
|
86
103
|
return this.getAllCampaignBriefSummariesPagingPage(options, settings);
|
|
87
104
|
},
|
|
88
105
|
};
|
|
89
106
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
+
});
|
|
107
126
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
+
});
|
|
112
146
|
}
|
|
113
147
|
/**
|
|
114
148
|
* Gets a list of attachments from a Campaign Brief.
|
|
@@ -126,35 +160,52 @@ export class TollFreeVerificationImpl {
|
|
|
126
160
|
return this;
|
|
127
161
|
},
|
|
128
162
|
byPage: (settings) => {
|
|
129
|
-
if (settings
|
|
163
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
130
164
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
131
165
|
}
|
|
132
166
|
return this.getCampaignBriefAttachmentsPagingPage(countryCode, campaignBriefId, options, settings);
|
|
133
167
|
},
|
|
134
168
|
};
|
|
135
169
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
+
});
|
|
153
189
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
+
});
|
|
158
209
|
}
|
|
159
210
|
/**
|
|
160
211
|
* Creates or updates a Campaign Brief.
|
|
@@ -163,7 +214,7 @@ export class TollFreeVerificationImpl {
|
|
|
163
214
|
* @param options The options parameters.
|
|
164
215
|
*/
|
|
165
216
|
async upsertCampaignBrief(countryCode, campaignBriefId, options) {
|
|
166
|
-
return tracingClient.withSpan("TollFreeVerificationClient.upsertCampaignBrief", options
|
|
217
|
+
return tracingClient.withSpan("TollFreeVerificationClient.upsertCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
167
218
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, upsertCampaignBriefOperationSpec);
|
|
168
219
|
});
|
|
169
220
|
}
|
|
@@ -174,7 +225,7 @@ export class TollFreeVerificationImpl {
|
|
|
174
225
|
* @param options The options parameters.
|
|
175
226
|
*/
|
|
176
227
|
async deleteCampaignBrief(countryCode, campaignBriefId, options) {
|
|
177
|
-
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBrief", options
|
|
228
|
+
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
178
229
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, deleteCampaignBriefOperationSpec);
|
|
179
230
|
});
|
|
180
231
|
}
|
|
@@ -185,7 +236,7 @@ export class TollFreeVerificationImpl {
|
|
|
185
236
|
* @param options The options parameters.
|
|
186
237
|
*/
|
|
187
238
|
async getCampaignBrief(countryCode, campaignBriefId, options) {
|
|
188
|
-
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBrief", options
|
|
239
|
+
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
189
240
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefOperationSpec);
|
|
190
241
|
});
|
|
191
242
|
}
|
|
@@ -196,7 +247,7 @@ export class TollFreeVerificationImpl {
|
|
|
196
247
|
* @param options The options parameters.
|
|
197
248
|
*/
|
|
198
249
|
async submitCampaignBrief(countryCode, campaignBriefId, options) {
|
|
199
|
-
return tracingClient.withSpan("TollFreeVerificationClient.submitCampaignBrief", options
|
|
250
|
+
return tracingClient.withSpan("TollFreeVerificationClient.submitCampaignBrief", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
200
251
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, submitCampaignBriefOperationSpec);
|
|
201
252
|
});
|
|
202
253
|
}
|
|
@@ -206,7 +257,7 @@ export class TollFreeVerificationImpl {
|
|
|
206
257
|
* @param options The options parameters.
|
|
207
258
|
*/
|
|
208
259
|
async _getAllCampaignBriefsByCountryCode(countryCode, options) {
|
|
209
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCode", options
|
|
260
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCode", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
210
261
|
return this.client.sendOperationRequest({ countryCode, options }, getAllCampaignBriefsByCountryCodeOperationSpec);
|
|
211
262
|
});
|
|
212
263
|
}
|
|
@@ -215,7 +266,7 @@ export class TollFreeVerificationImpl {
|
|
|
215
266
|
* @param options The options parameters.
|
|
216
267
|
*/
|
|
217
268
|
async _getAllCampaignBriefSummaries(options) {
|
|
218
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummaries", options
|
|
269
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummaries", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
219
270
|
return this.client.sendOperationRequest({ options }, getAllCampaignBriefSummariesOperationSpec);
|
|
220
271
|
});
|
|
221
272
|
}
|
|
@@ -235,7 +286,7 @@ export class TollFreeVerificationImpl {
|
|
|
235
286
|
* @param options The options parameters.
|
|
236
287
|
*/
|
|
237
288
|
async createOrReplaceCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, id, typeParam, fileName, fileType, fileContentBase64, options) {
|
|
238
|
-
return tracingClient.withSpan("TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment", options
|
|
289
|
+
return tracingClient.withSpan("TollFreeVerificationClient.createOrReplaceCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
239
290
|
return this.client.sendOperationRequest({
|
|
240
291
|
countryCode,
|
|
241
292
|
campaignBriefId,
|
|
@@ -257,7 +308,7 @@ export class TollFreeVerificationImpl {
|
|
|
257
308
|
* @param options The options parameters.
|
|
258
309
|
*/
|
|
259
310
|
async deleteCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
|
|
260
|
-
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBriefAttachment", options
|
|
311
|
+
return tracingClient.withSpan("TollFreeVerificationClient.deleteCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
261
312
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, deleteCampaignBriefAttachmentOperationSpec);
|
|
262
313
|
});
|
|
263
314
|
}
|
|
@@ -269,7 +320,7 @@ export class TollFreeVerificationImpl {
|
|
|
269
320
|
* @param options The options parameters.
|
|
270
321
|
*/
|
|
271
322
|
async getCampaignBriefAttachment(countryCode, campaignBriefId, attachmentId, options) {
|
|
272
|
-
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBriefAttachment", options
|
|
323
|
+
return tracingClient.withSpan("TollFreeVerificationClient.getCampaignBriefAttachment", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
273
324
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, attachmentId, options }, getCampaignBriefAttachmentOperationSpec);
|
|
274
325
|
});
|
|
275
326
|
}
|
|
@@ -280,7 +331,7 @@ export class TollFreeVerificationImpl {
|
|
|
280
331
|
* @param options The options parameters.
|
|
281
332
|
*/
|
|
282
333
|
async _getCampaignBriefAttachments(countryCode, campaignBriefId, options) {
|
|
283
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachments", options
|
|
334
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachments", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
284
335
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, options }, getCampaignBriefAttachmentsOperationSpec);
|
|
285
336
|
});
|
|
286
337
|
}
|
|
@@ -292,7 +343,7 @@ export class TollFreeVerificationImpl {
|
|
|
292
343
|
* @param options The options parameters.
|
|
293
344
|
*/
|
|
294
345
|
async _getAllCampaignBriefsByCountryCodeNext(countryCode, nextLink, options) {
|
|
295
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext", options
|
|
346
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefsByCountryCodeNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
296
347
|
return this.client.sendOperationRequest({ countryCode, nextLink, options }, getAllCampaignBriefsByCountryCodeNextOperationSpec);
|
|
297
348
|
});
|
|
298
349
|
}
|
|
@@ -303,7 +354,7 @@ export class TollFreeVerificationImpl {
|
|
|
303
354
|
* @param options The options parameters.
|
|
304
355
|
*/
|
|
305
356
|
async _getAllCampaignBriefSummariesNext(nextLink, options) {
|
|
306
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummariesNext", options
|
|
357
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getAllCampaignBriefSummariesNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
307
358
|
return this.client.sendOperationRequest({ nextLink, options }, getAllCampaignBriefSummariesNextOperationSpec);
|
|
308
359
|
});
|
|
309
360
|
}
|
|
@@ -316,7 +367,7 @@ export class TollFreeVerificationImpl {
|
|
|
316
367
|
* @param options The options parameters.
|
|
317
368
|
*/
|
|
318
369
|
async _getCampaignBriefAttachmentsNext(countryCode, campaignBriefId, nextLink, options) {
|
|
319
|
-
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachmentsNext", options
|
|
370
|
+
return tracingClient.withSpan("TollFreeVerificationClient._getCampaignBriefAttachmentsNext", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
320
371
|
return this.client.sendOperationRequest({ countryCode, campaignBriefId, nextLink, options }, getCampaignBriefAttachmentsNextOperationSpec);
|
|
321
372
|
});
|
|
322
373
|
}
|
|
@@ -461,7 +512,7 @@ const createOrReplaceCampaignBriefAttachmentOperationSpec = {
|
|
|
461
512
|
fileType: ["fileType"],
|
|
462
513
|
fileContentBase64: ["fileContentBase64"],
|
|
463
514
|
},
|
|
464
|
-
mapper: {
|
|
515
|
+
mapper: Object.assign(Object.assign({}, Mappers.CampaignBriefAttachment), { required: true }),
|
|
465
516
|
},
|
|
466
517
|
queryParameters: [Parameters.apiVersion],
|
|
467
518
|
urlParameters: [
|
|
@@ -1 +1 @@
|
|
|
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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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;IAGnC;;;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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,2CAA2C,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C;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,16 +14,18 @@ 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;
|
|
17
18
|
if (typeof page !== "object" || page === null) {
|
|
18
19
|
return undefined;
|
|
19
20
|
}
|
|
20
|
-
return pageMap.get(page)
|
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
21
22
|
}
|
|
22
23
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
+
var _a;
|
|
23
25
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
24
26
|
return;
|
|
25
27
|
}
|
|
26
|
-
const pageInfo = pageMap.get(page)
|
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
27
29
|
pageInfo.continuationToken = continuationToken;
|
|
28
30
|
pageMap.set(page, pageInfo);
|
|
29
31
|
}
|
|
@@ -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
|
|
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"]}
|