@azure-tools/communication-short-codes 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250723.1

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