@microsoft/teamsfx 1.0.3-alpha.140cc095c.0 → 1.0.3-alpha.7f2995939.0

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.
@@ -2256,7 +2256,7 @@ class ConversationReferenceStore {
2256
2256
  *
2257
2257
  * @param target - the notification target.
2258
2258
  * @param text - the plain text message.
2259
- * @returns A `Promise` representing the asynchronous operation.
2259
+ * @returns the response of sending message.
2260
2260
  */
2261
2261
  function sendMessage(target, text) {
2262
2262
  return target.sendMessage(text);
@@ -2266,7 +2266,7 @@ function sendMessage(target, text) {
2266
2266
  *
2267
2267
  * @param target - the notification target.
2268
2268
  * @param card - the adaptive card raw JSON.
2269
- * @returns A `Promise` representing the asynchronous operation.
2269
+ * @returns the response of sending adaptive card message.
2270
2270
  */
2271
2271
  function sendAdaptiveCard(target, card) {
2272
2272
  return target.sendAdaptiveCard(card);
@@ -2299,32 +2299,40 @@ class Channel {
2299
2299
  * Send a plain text message.
2300
2300
  *
2301
2301
  * @param text - the plain text message.
2302
- * @returns A `Promise` representing the asynchronous operation.
2302
+ * @returns the response of sending message.
2303
2303
  */
2304
2304
  sendMessage(text) {
2305
- return this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2306
- const conversation = yield this.newConversation(context);
2307
- yield this.parent.adapter.continueConversation(conversation, (ctx) => tslib.__awaiter(this, void 0, void 0, function* () {
2308
- yield ctx.sendActivity(text);
2305
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2306
+ const response = {};
2307
+ yield this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2308
+ const conversation = yield this.newConversation(context);
2309
+ yield this.parent.adapter.continueConversation(conversation, (ctx) => tslib.__awaiter(this, void 0, void 0, function* () {
2310
+ const res = yield ctx.sendActivity(text);
2311
+ response.id = res === null || res === void 0 ? void 0 : res.id;
2312
+ }));
2309
2313
  }));
2310
- }));
2314
+ return response;
2315
+ });
2311
2316
  }
2312
2317
  /**
2313
2318
  * Send an adaptive card message.
2314
2319
  *
2315
2320
  * @param card - the adaptive card raw JSON.
2316
- * @returns A `Promise` representing the asynchronous operation.
2321
+ * @returns the response of sending adaptive card message.
2317
2322
  */
2318
2323
  sendAdaptiveCard(card) {
2319
2324
  return tslib.__awaiter(this, void 0, void 0, function* () {
2320
- return this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2325
+ const response = {};
2326
+ yield this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2321
2327
  const conversation = yield this.newConversation(context);
2322
2328
  yield this.parent.adapter.continueConversation(conversation, (ctx) => tslib.__awaiter(this, void 0, void 0, function* () {
2323
- yield ctx.sendActivity({
2329
+ const res = yield ctx.sendActivity({
2324
2330
  attachments: [botbuilder.CardFactory.adaptiveCard(card)],
2325
2331
  });
2332
+ response.id = res === null || res === void 0 ? void 0 : res.id;
2326
2333
  }));
2327
2334
  }));
2335
+ return response;
2328
2336
  });
2329
2337
  }
2330
2338
  /**
@@ -2367,32 +2375,40 @@ class Member {
2367
2375
  * Send a plain text message.
2368
2376
  *
2369
2377
  * @param text - the plain text message.
2370
- * @returns A `Promise` representing the asynchronous operation.
2378
+ * @returns the response of sending message.
2371
2379
  */
2372
2380
  sendMessage(text) {
2373
- return this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2374
- const conversation = yield this.newConversation(context);
2375
- yield this.parent.adapter.continueConversation(conversation, (ctx) => tslib.__awaiter(this, void 0, void 0, function* () {
2376
- yield ctx.sendActivity(text);
2381
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2382
+ const response = {};
2383
+ yield this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2384
+ const conversation = yield this.newConversation(context);
2385
+ yield this.parent.adapter.continueConversation(conversation, (ctx) => tslib.__awaiter(this, void 0, void 0, function* () {
2386
+ const res = yield ctx.sendActivity(text);
2387
+ response.id = res === null || res === void 0 ? void 0 : res.id;
2388
+ }));
2377
2389
  }));
2378
- }));
2390
+ return response;
2391
+ });
2379
2392
  }
2380
2393
  /**
2381
2394
  * Send an adaptive card message.
2382
2395
  *
2383
2396
  * @param card - the adaptive card raw JSON.
2384
- * @returns A `Promise` representing the asynchronous operation.
2397
+ * @returns the response of sending adaptive card message.
2385
2398
  */
2386
2399
  sendAdaptiveCard(card) {
2387
2400
  return tslib.__awaiter(this, void 0, void 0, function* () {
2388
- return this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2401
+ const response = {};
2402
+ yield this.parent.adapter.continueConversation(this.parent.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2389
2403
  const conversation = yield this.newConversation(context);
2390
2404
  yield this.parent.adapter.continueConversation(conversation, (ctx) => tslib.__awaiter(this, void 0, void 0, function* () {
2391
- yield ctx.sendActivity({
2405
+ const res = yield ctx.sendActivity({
2392
2406
  attachments: [botbuilder.CardFactory.adaptiveCard(card)],
2393
2407
  });
2408
+ response.id = res === null || res === void 0 ? void 0 : res.id;
2394
2409
  }));
2395
2410
  }));
2411
+ return response;
2396
2412
  });
2397
2413
  }
2398
2414
  /**
@@ -2443,25 +2459,35 @@ class TeamsBotInstallation {
2443
2459
  * Send a plain text message.
2444
2460
  *
2445
2461
  * @param text - the plain text message.
2446
- * @returns A `Promise` representing the asynchronous operation.
2462
+ * @returns the response of sending message.
2447
2463
  */
2448
2464
  sendMessage(text) {
2449
- return this.adapter.continueConversation(this.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2450
- yield context.sendActivity(text);
2451
- }));
2465
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2466
+ const response = {};
2467
+ yield this.adapter.continueConversation(this.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2468
+ const res = yield context.sendActivity(text);
2469
+ response.id = res === null || res === void 0 ? void 0 : res.id;
2470
+ }));
2471
+ return response;
2472
+ });
2452
2473
  }
2453
2474
  /**
2454
2475
  * Send an adaptive card message.
2455
2476
  *
2456
2477
  * @param card - the adaptive card raw JSON.
2457
- * @returns A `Promise` representing the asynchronous operation.
2478
+ * @returns the response of sending adaptive card message.
2458
2479
  */
2459
2480
  sendAdaptiveCard(card) {
2460
- return this.adapter.continueConversation(this.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2461
- yield context.sendActivity({
2462
- attachments: [botbuilder.CardFactory.adaptiveCard(card)],
2463
- });
2464
- }));
2481
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2482
+ const response = {};
2483
+ yield this.adapter.continueConversation(this.conversationReference, (context) => tslib.__awaiter(this, void 0, void 0, function* () {
2484
+ const res = yield context.sendActivity({
2485
+ attachments: [botbuilder.CardFactory.adaptiveCard(card)],
2486
+ });
2487
+ response.id = res === null || res === void 0 ? void 0 : res.id;
2488
+ }));
2489
+ return response;
2490
+ });
2465
2491
  }
2466
2492
  /**
2467
2493
  * Get channels from this bot installation.