@alicloud/cams20200606 3.1.0 → 3.1.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.
package/dist/client.js CHANGED
@@ -4999,60 +4999,69 @@ class Client extends openapi_core_1.default {
4999
4999
  if (!$dara.isNull(tmpReq.senderList)) {
5000
5000
  request.senderListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.senderList, "SenderList", "json");
5001
5001
  }
5002
- let body = {};
5002
+ let query = {};
5003
5003
  if (!$dara.isNull(request.channelType)) {
5004
- body["ChannelType"] = request.channelType;
5004
+ query["ChannelType"] = request.channelType;
5005
5005
  }
5006
5006
  if (!$dara.isNull(request.custSpaceId)) {
5007
- body["CustSpaceId"] = request.custSpaceId;
5007
+ query["CustSpaceId"] = request.custSpaceId;
5008
5008
  }
5009
5009
  if (!$dara.isNull(request.custWabaId)) {
5010
- body["CustWabaId"] = request.custWabaId;
5010
+ query["CustWabaId"] = request.custWabaId;
5011
5011
  }
5012
5012
  if (!$dara.isNull(request.fallBackContent)) {
5013
- body["FallBackContent"] = request.fallBackContent;
5013
+ query["FallBackContent"] = request.fallBackContent;
5014
5014
  }
5015
5015
  if (!$dara.isNull(request.fallBackDuration)) {
5016
- body["FallBackDuration"] = request.fallBackDuration;
5016
+ query["FallBackDuration"] = request.fallBackDuration;
5017
5017
  }
5018
5018
  if (!$dara.isNull(request.fallBackId)) {
5019
- body["FallBackId"] = request.fallBackId;
5019
+ query["FallBackId"] = request.fallBackId;
5020
5020
  }
5021
5021
  if (!$dara.isNull(request.fallBackRule)) {
5022
- body["FallBackRule"] = request.fallBackRule;
5022
+ query["FallBackRule"] = request.fallBackRule;
5023
5023
  }
5024
5024
  if (!$dara.isNull(request.from)) {
5025
- body["From"] = request.from;
5025
+ query["From"] = request.from;
5026
5026
  }
5027
5027
  if (!$dara.isNull(request.isvCode)) {
5028
- body["IsvCode"] = request.isvCode;
5028
+ query["IsvCode"] = request.isvCode;
5029
5029
  }
5030
5030
  if (!$dara.isNull(request.label)) {
5031
- body["Label"] = request.label;
5031
+ query["Label"] = request.label;
5032
5032
  }
5033
5033
  if (!$dara.isNull(request.language)) {
5034
- body["Language"] = request.language;
5034
+ query["Language"] = request.language;
5035
+ }
5036
+ if (!$dara.isNull(request.ownerId)) {
5037
+ query["OwnerId"] = request.ownerId;
5038
+ }
5039
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5040
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5041
+ }
5042
+ if (!$dara.isNull(request.resourceOwnerId)) {
5043
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5035
5044
  }
5036
5045
  if (!$dara.isNull(request.senderListShrink)) {
5037
- body["SenderList"] = request.senderListShrink;
5046
+ query["SenderList"] = request.senderListShrink;
5038
5047
  }
5039
5048
  if (!$dara.isNull(request.tag)) {
5040
- body["Tag"] = request.tag;
5049
+ query["Tag"] = request.tag;
5041
5050
  }
5042
5051
  if (!$dara.isNull(request.taskId)) {
5043
- body["TaskId"] = request.taskId;
5052
+ query["TaskId"] = request.taskId;
5044
5053
  }
5045
5054
  if (!$dara.isNull(request.templateCode)) {
5046
- body["TemplateCode"] = request.templateCode;
5055
+ query["TemplateCode"] = request.templateCode;
5047
5056
  }
5048
5057
  if (!$dara.isNull(request.templateName)) {
5049
- body["TemplateName"] = request.templateName;
5058
+ query["TemplateName"] = request.templateName;
5050
5059
  }
5051
5060
  if (!$dara.isNull(request.ttl)) {
5052
- body["Ttl"] = request.ttl;
5061
+ query["Ttl"] = request.ttl;
5053
5062
  }
5054
5063
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5055
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
5064
+ query: openapi_core_2.OpenApiUtil.query(query),
5056
5065
  });
5057
5066
  let params = new openapi_core_2.$OpenApiUtil.Params({
5058
5067
  action: "SendChatappMassMessage",
@@ -5108,91 +5117,98 @@ class Client extends openapi_core_1.default {
5108
5117
  request.templateParamsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.templateParams, "TemplateParams", "json");
5109
5118
  }
5110
5119
  let query = {};
5120
+ if (!$dara.isNull(request.channelType)) {
5121
+ query["ChannelType"] = request.channelType;
5122
+ }
5111
5123
  if (!$dara.isNull(request.content)) {
5112
5124
  query["Content"] = request.content;
5113
5125
  }
5114
- if (!$dara.isNull(request.payloadShrink)) {
5115
- query["Payload"] = request.payloadShrink;
5116
- }
5117
- let body = {};
5118
- if (!$dara.isNull(request.channelType)) {
5119
- body["ChannelType"] = request.channelType;
5120
- }
5121
5126
  if (!$dara.isNull(request.contextMessageId)) {
5122
- body["ContextMessageId"] = request.contextMessageId;
5127
+ query["ContextMessageId"] = request.contextMessageId;
5123
5128
  }
5124
5129
  if (!$dara.isNull(request.custSpaceId)) {
5125
- body["CustSpaceId"] = request.custSpaceId;
5130
+ query["CustSpaceId"] = request.custSpaceId;
5126
5131
  }
5127
5132
  if (!$dara.isNull(request.custWabaId)) {
5128
- body["CustWabaId"] = request.custWabaId;
5133
+ query["CustWabaId"] = request.custWabaId;
5129
5134
  }
5130
5135
  if (!$dara.isNull(request.fallBackContent)) {
5131
- body["FallBackContent"] = request.fallBackContent;
5136
+ query["FallBackContent"] = request.fallBackContent;
5132
5137
  }
5133
5138
  if (!$dara.isNull(request.fallBackDuration)) {
5134
- body["FallBackDuration"] = request.fallBackDuration;
5139
+ query["FallBackDuration"] = request.fallBackDuration;
5135
5140
  }
5136
5141
  if (!$dara.isNull(request.fallBackId)) {
5137
- body["FallBackId"] = request.fallBackId;
5142
+ query["FallBackId"] = request.fallBackId;
5138
5143
  }
5139
5144
  if (!$dara.isNull(request.fallBackRule)) {
5140
- body["FallBackRule"] = request.fallBackRule;
5145
+ query["FallBackRule"] = request.fallBackRule;
5141
5146
  }
5142
5147
  if (!$dara.isNull(request.flowActionShrink)) {
5143
- body["FlowAction"] = request.flowActionShrink;
5148
+ query["FlowAction"] = request.flowActionShrink;
5144
5149
  }
5145
5150
  if (!$dara.isNull(request.from)) {
5146
- body["From"] = request.from;
5151
+ query["From"] = request.from;
5147
5152
  }
5148
5153
  if (!$dara.isNull(request.isvCode)) {
5149
- body["IsvCode"] = request.isvCode;
5154
+ query["IsvCode"] = request.isvCode;
5150
5155
  }
5151
5156
  if (!$dara.isNull(request.label)) {
5152
- body["Label"] = request.label;
5157
+ query["Label"] = request.label;
5153
5158
  }
5154
5159
  if (!$dara.isNull(request.language)) {
5155
- body["Language"] = request.language;
5160
+ query["Language"] = request.language;
5156
5161
  }
5157
5162
  if (!$dara.isNull(request.messageType)) {
5158
- body["MessageType"] = request.messageType;
5163
+ query["MessageType"] = request.messageType;
5164
+ }
5165
+ if (!$dara.isNull(request.ownerId)) {
5166
+ query["OwnerId"] = request.ownerId;
5167
+ }
5168
+ if (!$dara.isNull(request.payloadShrink)) {
5169
+ query["Payload"] = request.payloadShrink;
5159
5170
  }
5160
5171
  if (!$dara.isNull(request.productActionShrink)) {
5161
- body["ProductAction"] = request.productActionShrink;
5172
+ query["ProductAction"] = request.productActionShrink;
5162
5173
  }
5163
5174
  if (!$dara.isNull(request.recipientType)) {
5164
- body["RecipientType"] = request.recipientType;
5175
+ query["RecipientType"] = request.recipientType;
5176
+ }
5177
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5178
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5179
+ }
5180
+ if (!$dara.isNull(request.resourceOwnerId)) {
5181
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5165
5182
  }
5166
5183
  if (!$dara.isNull(request.tag)) {
5167
- body["Tag"] = request.tag;
5184
+ query["Tag"] = request.tag;
5168
5185
  }
5169
5186
  if (!$dara.isNull(request.taskId)) {
5170
- body["TaskId"] = request.taskId;
5187
+ query["TaskId"] = request.taskId;
5171
5188
  }
5172
5189
  if (!$dara.isNull(request.templateCode)) {
5173
- body["TemplateCode"] = request.templateCode;
5190
+ query["TemplateCode"] = request.templateCode;
5174
5191
  }
5175
5192
  if (!$dara.isNull(request.templateName)) {
5176
- body["TemplateName"] = request.templateName;
5193
+ query["TemplateName"] = request.templateName;
5177
5194
  }
5178
5195
  if (!$dara.isNull(request.templateParamsShrink)) {
5179
- body["TemplateParams"] = request.templateParamsShrink;
5196
+ query["TemplateParams"] = request.templateParamsShrink;
5180
5197
  }
5181
5198
  if (!$dara.isNull(request.to)) {
5182
- body["To"] = request.to;
5199
+ query["To"] = request.to;
5183
5200
  }
5184
5201
  if (!$dara.isNull(request.trackingData)) {
5185
- body["TrackingData"] = request.trackingData;
5202
+ query["TrackingData"] = request.trackingData;
5186
5203
  }
5187
5204
  if (!$dara.isNull(request.ttl)) {
5188
- body["Ttl"] = request.ttl;
5205
+ query["Ttl"] = request.ttl;
5189
5206
  }
5190
5207
  if (!$dara.isNull(request.type)) {
5191
- body["Type"] = request.type;
5208
+ query["Type"] = request.type;
5192
5209
  }
5193
5210
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5194
5211
  query: openapi_core_2.OpenApiUtil.query(query),
5195
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
5196
5212
  });
5197
5213
  let params = new openapi_core_2.$OpenApiUtil.Params({
5198
5214
  action: "SendChatappMessage",