@alicloud/cams20200606 5.0.1 → 5.1.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.
package/dist/client.d.ts CHANGED
@@ -2437,6 +2437,21 @@ export default class Client extends OpenApi {
2437
2437
  * @returns SendChatappMessageResponse
2438
2438
  */
2439
2439
  sendChatappMessage(request: $_model.SendChatappMessageRequest): Promise<$_model.SendChatappMessageResponse>;
2440
+ /**
2441
+ * 同步business app历史记录等
2442
+ *
2443
+ * @param request - SyncBusinessAppHistoryRequest
2444
+ * @param runtime - runtime options for this request RuntimeOptions
2445
+ * @returns SyncBusinessAppHistoryResponse
2446
+ */
2447
+ syncBusinessAppHistoryWithOptions(request: $_model.SyncBusinessAppHistoryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SyncBusinessAppHistoryResponse>;
2448
+ /**
2449
+ * 同步business app历史记录等
2450
+ *
2451
+ * @param request - SyncBusinessAppHistoryRequest
2452
+ * @returns SyncBusinessAppHistoryResponse
2453
+ */
2454
+ syncBusinessAppHistory(request: $_model.SyncBusinessAppHistoryRequest): Promise<$_model.SyncBusinessAppHistoryResponse>;
2440
2455
  /**
2441
2456
  * 同步flow
2442
2457
  *
package/dist/client.js CHANGED
@@ -8742,6 +8742,57 @@ class Client extends openapi_core_1.default {
8742
8742
  let runtime = new $dara.RuntimeOptions({});
8743
8743
  return await this.sendChatappMessageWithOptions(request, runtime);
8744
8744
  }
8745
+ /**
8746
+ * 同步business app历史记录等
8747
+ *
8748
+ * @param request - SyncBusinessAppHistoryRequest
8749
+ * @param runtime - runtime options for this request RuntimeOptions
8750
+ * @returns SyncBusinessAppHistoryResponse
8751
+ */
8752
+ async syncBusinessAppHistoryWithOptions(request, runtime) {
8753
+ request.validate();
8754
+ let query = {};
8755
+ if (!$dara.isNull(request.custSpaceId)) {
8756
+ query["CustSpaceId"] = request.custSpaceId;
8757
+ }
8758
+ if (!$dara.isNull(request.ownerId)) {
8759
+ query["OwnerId"] = request.ownerId;
8760
+ }
8761
+ if (!$dara.isNull(request.phoneNumber)) {
8762
+ query["PhoneNumber"] = request.phoneNumber;
8763
+ }
8764
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
8765
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
8766
+ }
8767
+ if (!$dara.isNull(request.resourceOwnerId)) {
8768
+ query["ResourceOwnerId"] = request.resourceOwnerId;
8769
+ }
8770
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8771
+ query: openapi_core_2.OpenApiUtil.query(query),
8772
+ });
8773
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8774
+ action: "SyncBusinessAppHistory",
8775
+ version: "2020-06-06",
8776
+ protocol: "HTTPS",
8777
+ pathname: "/",
8778
+ method: "POST",
8779
+ authType: "AK",
8780
+ style: "RPC",
8781
+ reqBodyType: "formData",
8782
+ bodyType: "json",
8783
+ });
8784
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SyncBusinessAppHistoryResponse({}));
8785
+ }
8786
+ /**
8787
+ * 同步business app历史记录等
8788
+ *
8789
+ * @param request - SyncBusinessAppHistoryRequest
8790
+ * @returns SyncBusinessAppHistoryResponse
8791
+ */
8792
+ async syncBusinessAppHistory(request) {
8793
+ let runtime = new $dara.RuntimeOptions({});
8794
+ return await this.syncBusinessAppHistoryWithOptions(request, runtime);
8795
+ }
8745
8796
  /**
8746
8797
  * 同步flow
8747
8798
  *