@alicloud/dm20151123 1.7.2 → 1.8.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/GetValidateFileStatusResponseBody.d.ts +1 -0
- package/dist/models/GetValidateFileStatusResponseBody.js +2 -0
- package/dist/models/GetValidateFileStatusResponseBody.js.map +1 -1
- package/dist/models/ListValidateFileRequest.d.ts +44 -0
- package/dist/models/ListValidateFileRequest.js +66 -0
- package/dist/models/ListValidateFileRequest.js.map +1 -0
- package/dist/models/ListValidateFileResponse.d.ts +19 -0
- package/dist/models/ListValidateFileResponse.js +69 -0
- package/dist/models/ListValidateFileResponse.js.map +1 -0
- package/dist/models/ListValidateFileResponseBody.d.ts +126 -0
- package/dist/models/ListValidateFileResponseBody.js +118 -0
- package/dist/models/ListValidateFileResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +14 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +58 -0
- package/src/models/GetValidateFileStatusResponseBody.ts +3 -0
- package/src/models/ListValidateFileRequest.ts +65 -0
- package/src/models/ListValidateFileResponse.ts +40 -0
- package/src/models/ListValidateFileResponseBody.ts +190 -0
- package/src/models/model.ts +4 -0
package/src/client.ts
CHANGED
|
@@ -2875,6 +2875,64 @@ export default class Client extends OpenApi {
|
|
|
2875
2875
|
return await this.listUserSuppressionWithOptions(request, runtime);
|
|
2876
2876
|
}
|
|
2877
2877
|
|
|
2878
|
+
/**
|
|
2879
|
+
* 获取上传的校验文件的列表
|
|
2880
|
+
*
|
|
2881
|
+
* @param request - ListValidateFileRequest
|
|
2882
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2883
|
+
* @returns ListValidateFileResponse
|
|
2884
|
+
*/
|
|
2885
|
+
async listValidateFileWithOptions(request: $_model.ListValidateFileRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListValidateFileResponse> {
|
|
2886
|
+
request.validate();
|
|
2887
|
+
let query = { };
|
|
2888
|
+
if (!$dara.isNull(request.endTime)) {
|
|
2889
|
+
query["EndTime"] = request.endTime;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
if (!$dara.isNull(request.fileKeyword)) {
|
|
2893
|
+
query["FileKeyword"] = request.fileKeyword;
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
if (!$dara.isNull(request.page)) {
|
|
2897
|
+
query["Page"] = request.page;
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
2901
|
+
query["PageSize"] = request.pageSize;
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
if (!$dara.isNull(request.startTime)) {
|
|
2905
|
+
query["StartTime"] = request.startTime;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2909
|
+
query: OpenApiUtil.query(query),
|
|
2910
|
+
});
|
|
2911
|
+
let params = new $OpenApiUtil.Params({
|
|
2912
|
+
action: "ListValidateFile",
|
|
2913
|
+
version: "2015-11-23",
|
|
2914
|
+
protocol: "HTTPS",
|
|
2915
|
+
pathname: "/",
|
|
2916
|
+
method: "POST",
|
|
2917
|
+
authType: "AK",
|
|
2918
|
+
style: "RPC",
|
|
2919
|
+
reqBodyType: "formData",
|
|
2920
|
+
bodyType: "json",
|
|
2921
|
+
});
|
|
2922
|
+
return $dara.cast<$_model.ListValidateFileResponse>(await this.callApi(params, req, runtime), new $_model.ListValidateFileResponse({}));
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* 获取上传的校验文件的列表
|
|
2927
|
+
*
|
|
2928
|
+
* @param request - ListValidateFileRequest
|
|
2929
|
+
* @returns ListValidateFileResponse
|
|
2930
|
+
*/
|
|
2931
|
+
async listValidateFile(request: $_model.ListValidateFileRequest): Promise<$_model.ListValidateFileResponse> {
|
|
2932
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2933
|
+
return await this.listValidateFileWithOptions(request, runtime);
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2878
2936
|
/**
|
|
2879
2937
|
* Modify the sending address
|
|
2880
2938
|
*
|
|
@@ -18,6 +18,7 @@ export class GetValidateFileStatusResponseBody extends $dara.Model {
|
|
|
18
18
|
* 1
|
|
19
19
|
*/
|
|
20
20
|
doNotMailNum?: string;
|
|
21
|
+
fileId?: string;
|
|
21
22
|
/**
|
|
22
23
|
* @example
|
|
23
24
|
* file.txt
|
|
@@ -73,6 +74,7 @@ export class GetValidateFileStatusResponseBody extends $dara.Model {
|
|
|
73
74
|
catchAllNum: 'CatchAllNum',
|
|
74
75
|
completeTime: 'CompleteTime',
|
|
75
76
|
doNotMailNum: 'DoNotMailNum',
|
|
77
|
+
fileId: 'FileId',
|
|
76
78
|
fileName: 'FileName',
|
|
77
79
|
invalidNum: 'InvalidNum',
|
|
78
80
|
percentage: 'Percentage',
|
|
@@ -91,6 +93,7 @@ export class GetValidateFileStatusResponseBody extends $dara.Model {
|
|
|
91
93
|
catchAllNum: 'string',
|
|
92
94
|
completeTime: 'string',
|
|
93
95
|
doNotMailNum: 'string',
|
|
96
|
+
fileId: 'string',
|
|
94
97
|
fileName: 'string',
|
|
95
98
|
invalidNum: 'string',
|
|
96
99
|
percentage: 'string',
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListValidateFileRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2025-12-19T20:30:00Z
|
|
12
|
+
*/
|
|
13
|
+
endTime?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* keyword
|
|
17
|
+
*/
|
|
18
|
+
fileKeyword?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* 1
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* 10
|
|
27
|
+
*/
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* This parameter is required.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* 2025-12-19T08:30:00Z
|
|
35
|
+
*/
|
|
36
|
+
startTime?: string;
|
|
37
|
+
static names(): { [key: string]: string } {
|
|
38
|
+
return {
|
|
39
|
+
endTime: 'EndTime',
|
|
40
|
+
fileKeyword: 'FileKeyword',
|
|
41
|
+
page: 'Page',
|
|
42
|
+
pageSize: 'PageSize',
|
|
43
|
+
startTime: 'StartTime',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
endTime: 'string',
|
|
50
|
+
fileKeyword: 'string',
|
|
51
|
+
page: 'number',
|
|
52
|
+
pageSize: 'number',
|
|
53
|
+
startTime: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
validate() {
|
|
58
|
+
super.validate();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
constructor(map?: { [key: string]: any }) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListValidateFileResponseBody } from "./ListValidateFileResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListValidateFileResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListValidateFileResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListValidateFileResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListValidateFileResponseBodyFiles extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1
|
|
9
|
+
*/
|
|
10
|
+
catchAllNum?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 2000-01-01T00:00:00Z
|
|
14
|
+
*/
|
|
15
|
+
completeTime?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 0
|
|
19
|
+
*/
|
|
20
|
+
doNotMailNum?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* xxx
|
|
24
|
+
*/
|
|
25
|
+
fileId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* test.csv
|
|
29
|
+
*/
|
|
30
|
+
fileName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 4
|
|
34
|
+
*/
|
|
35
|
+
invalidNum?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* true
|
|
39
|
+
*/
|
|
40
|
+
isDownloadable?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* 100%
|
|
44
|
+
*/
|
|
45
|
+
percentage?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* 10
|
|
49
|
+
*/
|
|
50
|
+
processedNum?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @example
|
|
53
|
+
* completed
|
|
54
|
+
*/
|
|
55
|
+
status?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @example
|
|
58
|
+
* 10
|
|
59
|
+
*/
|
|
60
|
+
totalNum?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @example
|
|
63
|
+
* 0
|
|
64
|
+
*/
|
|
65
|
+
unknownNum?: string;
|
|
66
|
+
/**
|
|
67
|
+
* @example
|
|
68
|
+
* 2000-01-01T00:00:00Z
|
|
69
|
+
*/
|
|
70
|
+
uploadTime?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @example
|
|
73
|
+
* 5
|
|
74
|
+
*/
|
|
75
|
+
validNum?: string;
|
|
76
|
+
static names(): { [key: string]: string } {
|
|
77
|
+
return {
|
|
78
|
+
catchAllNum: 'CatchAllNum',
|
|
79
|
+
completeTime: 'CompleteTime',
|
|
80
|
+
doNotMailNum: 'DoNotMailNum',
|
|
81
|
+
fileId: 'FileId',
|
|
82
|
+
fileName: 'FileName',
|
|
83
|
+
invalidNum: 'InvalidNum',
|
|
84
|
+
isDownloadable: 'IsDownloadable',
|
|
85
|
+
percentage: 'Percentage',
|
|
86
|
+
processedNum: 'ProcessedNum',
|
|
87
|
+
status: 'Status',
|
|
88
|
+
totalNum: 'TotalNum',
|
|
89
|
+
unknownNum: 'UnknownNum',
|
|
90
|
+
uploadTime: 'UploadTime',
|
|
91
|
+
validNum: 'ValidNum',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
catchAllNum: 'string',
|
|
98
|
+
completeTime: 'string',
|
|
99
|
+
doNotMailNum: 'string',
|
|
100
|
+
fileId: 'string',
|
|
101
|
+
fileName: 'string',
|
|
102
|
+
invalidNum: 'string',
|
|
103
|
+
isDownloadable: 'boolean',
|
|
104
|
+
percentage: 'string',
|
|
105
|
+
processedNum: 'string',
|
|
106
|
+
status: 'string',
|
|
107
|
+
totalNum: 'string',
|
|
108
|
+
unknownNum: 'string',
|
|
109
|
+
uploadTime: 'string',
|
|
110
|
+
validNum: 'string',
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
validate() {
|
|
115
|
+
super.validate();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
constructor(map?: { [key: string]: any }) {
|
|
119
|
+
super(map);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export class ListValidateFileResponseBody extends $dara.Model {
|
|
124
|
+
files?: ListValidateFileResponseBodyFiles[];
|
|
125
|
+
/**
|
|
126
|
+
* @example
|
|
127
|
+
* true
|
|
128
|
+
*/
|
|
129
|
+
hasNext?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* @example
|
|
132
|
+
* 1
|
|
133
|
+
*/
|
|
134
|
+
page?: number;
|
|
135
|
+
/**
|
|
136
|
+
* @example
|
|
137
|
+
* 10
|
|
138
|
+
*/
|
|
139
|
+
pageSize?: number;
|
|
140
|
+
/**
|
|
141
|
+
* @example
|
|
142
|
+
* xxx
|
|
143
|
+
*/
|
|
144
|
+
requestId?: string;
|
|
145
|
+
/**
|
|
146
|
+
* @example
|
|
147
|
+
* 10
|
|
148
|
+
*/
|
|
149
|
+
totalPages?: number;
|
|
150
|
+
/**
|
|
151
|
+
* @example
|
|
152
|
+
* 100
|
|
153
|
+
*/
|
|
154
|
+
totalSize?: number;
|
|
155
|
+
static names(): { [key: string]: string } {
|
|
156
|
+
return {
|
|
157
|
+
files: 'Files',
|
|
158
|
+
hasNext: 'HasNext',
|
|
159
|
+
page: 'Page',
|
|
160
|
+
pageSize: 'PageSize',
|
|
161
|
+
requestId: 'RequestId',
|
|
162
|
+
totalPages: 'TotalPages',
|
|
163
|
+
totalSize: 'TotalSize',
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
static types(): { [key: string]: any } {
|
|
168
|
+
return {
|
|
169
|
+
files: { 'type': 'array', 'itemType': ListValidateFileResponseBodyFiles },
|
|
170
|
+
hasNext: 'boolean',
|
|
171
|
+
page: 'number',
|
|
172
|
+
pageSize: 'number',
|
|
173
|
+
requestId: 'string',
|
|
174
|
+
totalPages: 'number',
|
|
175
|
+
totalSize: 'number',
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
validate() {
|
|
180
|
+
if(Array.isArray(this.files)) {
|
|
181
|
+
$dara.Model.validateArray(this.files);
|
|
182
|
+
}
|
|
183
|
+
super.validate();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
constructor(map?: { [key: string]: any }) {
|
|
187
|
+
super(map);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { GetUserResponseBodyData } from './GetUserResponseBody';
|
|
|
19
19
|
export { ListBlockSendingResponseBodyData } from './ListBlockSendingResponseBody';
|
|
20
20
|
export { ListUserSuppressionResponseBodyDataUserSuppressions } from './ListUserSuppressionResponseBody';
|
|
21
21
|
export { ListUserSuppressionResponseBodyData } from './ListUserSuppressionResponseBody';
|
|
22
|
+
export { ListValidateFileResponseBodyFiles } from './ListValidateFileResponseBody';
|
|
22
23
|
export { QueryDomainByParamResponseBodyDataDomain } from './QueryDomainByParamResponseBody';
|
|
23
24
|
export { QueryDomainByParamResponseBodyData } from './QueryDomainByParamResponseBody';
|
|
24
25
|
export { QueryInvalidAddressResponseBodyDataMailDetail } from './QueryInvalidAddressResponseBody';
|
|
@@ -197,6 +198,9 @@ export { ListBlockSendingResponse } from './ListBlockSendingResponse';
|
|
|
197
198
|
export { ListUserSuppressionRequest } from './ListUserSuppressionRequest';
|
|
198
199
|
export { ListUserSuppressionResponseBody } from './ListUserSuppressionResponseBody';
|
|
199
200
|
export { ListUserSuppressionResponse } from './ListUserSuppressionResponse';
|
|
201
|
+
export { ListValidateFileRequest } from './ListValidateFileRequest';
|
|
202
|
+
export { ListValidateFileResponseBody } from './ListValidateFileResponseBody';
|
|
203
|
+
export { ListValidateFileResponse } from './ListValidateFileResponse';
|
|
200
204
|
export { ModifyMailAddressRequest } from './ModifyMailAddressRequest';
|
|
201
205
|
export { ModifyMailAddressResponseBody } from './ModifyMailAddressResponseBody';
|
|
202
206
|
export { ModifyMailAddressResponse } from './ModifyMailAddressResponse';
|