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', () => {
9
9
} ;
10
10
const client = new Asw ( credentials ) ;
11
11
12
+ const input = JSON . stringify ( {
13
+ key : 'value' ,
14
+ } ) ;
15
+
12
16
const options : {
13
17
definition : string ;
14
18
name : string ;
15
19
resourceId ?: string ;
16
20
role ?: string ;
21
+ input ?: string ;
17
22
} = {
18
23
definition : JSON . stringify ( {
19
24
Comment : 'Serverless Test' ,
@@ -24,13 +29,9 @@ describe('Account', () => {
24
29
} ,
25
30
} ) ,
26
31
name : 'serverless-test' ,
32
+ input,
27
33
} ;
28
34
29
- const input = JSON . stringify ( {
30
- key1 : 'test value 1' ,
31
- key2 : 'test value 2' ,
32
- } ) ;
33
-
34
35
let executeName : string ;
35
36
let createResult : CreateResult ;
36
37
Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ export default class Asw {
129
129
chineseName = 'serverless' ,
130
130
description = 'Created By Serverless' ,
131
131
enableCls = false ,
132
- input,
133
132
} = options ;
134
133
135
134
const reqParams : UpdateApiOptions = {
@@ -153,9 +152,6 @@ export default class Asw {
153
152
}
154
153
reqParams . RoleResource = `qcs::cam::uin/${ accountInfo . ownerUin } :roleName/${ roleName } ` ;
155
154
156
- if ( input ) {
157
- reqParams . Input = input ;
158
- }
159
155
const { RequestId, FlowServiceResource } = await this . request ( {
160
156
...reqParams ,
161
157
Action : 'ModifyFlowService' ,
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ export interface CreateOptions {
48
48
appId ?: string ;
49
49
}
50
50
51
- export interface UpdateOptions extends CreateOptions {
51
+ export type UpdateOptions = Omit < CreateOptions , 'input' > & {
52
52
// 状态机资源 ID
53
53
resourceId : string ;
54
- }
54
+ } ;
55
55
56
56
export interface BaseResult {
57
57
// 请求 ID
You can’t perform that action at this time.
0 commit comments