@alicloud/cams20200606 5.0.2 → 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 +15 -0
- package/dist/client.js +51 -0
- package/dist/client.js.map +1 -1
- package/dist/models/QueryChatappBindWabaResponseBody.d.ts +5 -0
- package/dist/models/QueryChatappBindWabaResponseBody.js +2 -0
- package/dist/models/QueryChatappBindWabaResponseBody.js.map +1 -1
- package/dist/models/SyncBusinessAppHistoryRequest.d.ts +32 -0
- package/dist/models/SyncBusinessAppHistoryRequest.js +66 -0
- package/dist/models/SyncBusinessAppHistoryRequest.js.map +1 -0
- package/dist/models/SyncBusinessAppHistoryResponse.d.ts +19 -0
- package/dist/models/SyncBusinessAppHistoryResponse.js +69 -0
- package/dist/models/SyncBusinessAppHistoryResponse.js.map +1 -0
- package/dist/models/SyncBusinessAppHistoryResponseBody.d.ts +34 -0
- package/dist/models/SyncBusinessAppHistoryResponseBody.js +66 -0
- package/dist/models/SyncBusinessAppHistoryResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +9 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +58 -0
- package/src/models/QueryChatappBindWabaResponseBody.ts +7 -0
- package/src/models/SyncBusinessAppHistoryRequest.ts +53 -0
- package/src/models/SyncBusinessAppHistoryResponse.ts +40 -0
- package/src/models/SyncBusinessAppHistoryResponseBody.ts +55 -0
- package/src/models/model.ts +3 -0
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
|
*
|