File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,16 @@ describe('Account', () => {
99 } ;
1010 const client = new Asw ( credentials ) ;
1111
12+ const input = JSON . stringify ( {
13+ key : 'value' ,
14+ } ) ;
15+
1216 const options : {
1317 definition : string ;
1418 name : string ;
1519 resourceId ?: string ;
1620 role ?: string ;
21+ input ?: string ;
1722 } = {
1823 definition : JSON . stringify ( {
1924 Comment : 'Serverless Test' ,
@@ -24,13 +29,9 @@ describe('Account', () => {
2429 } ,
2530 } ) ,
2631 name : 'serverless-test' ,
32+ input,
2733 } ;
2834
29- const input = JSON . stringify ( {
30- key1 : 'test value 1' ,
31- key2 : 'test value 2' ,
32- } ) ;
33-
3435 let executeName : string ;
3536 let createResult : CreateResult ;
3637
Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ export default class Asw {
129129 chineseName = 'serverless' ,
130130 description = 'Created By Serverless' ,
131131 enableCls = false ,
132- input,
133132 } = options ;
134133
135134 const reqParams : UpdateApiOptions = {
@@ -153,9 +152,6 @@ export default class Asw {
153152 }
154153 reqParams . RoleResource = `qcs::cam::uin/${ accountInfo . ownerUin } :roleName/${ roleName } ` ;
155154
156- if ( input ) {
157- reqParams . Input = input ;
158- }
159155 const { RequestId, FlowServiceResource } = await this . request ( {
160156 ...reqParams ,
161157 Action : 'ModifyFlowService' ,
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ export interface CreateOptions {
4848 appId ?: string ;
4949}
5050
51- export interface UpdateOptions extends CreateOptions {
51+ export type UpdateOptions = Omit < CreateOptions , 'input' > & {
5252 // 状态机资源 ID
5353 resourceId : string ;
54- }
54+ } ;
5555
5656export interface BaseResult {
5757 // 请求 ID
You can’t perform that action at this time.
0 commit comments