@alicloud/dytnsapi20200217 3.1.0 → 3.3.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 +36 -6
- package/dist/client.js +132 -6
- package/dist/client.js.map +1 -1
- package/dist/models/HistoryThreeElementsVerificationRequest.d.ts +66 -0
- package/dist/models/HistoryThreeElementsVerificationRequest.js +70 -0
- package/dist/models/HistoryThreeElementsVerificationRequest.js.map +1 -0
- package/dist/models/HistoryThreeElementsVerificationResponse.d.ts +19 -0
- package/dist/models/HistoryThreeElementsVerificationResponse.js +69 -0
- package/dist/models/HistoryThreeElementsVerificationResponse.js.map +1 -0
- package/dist/models/HistoryThreeElementsVerificationResponseBody.d.ts +56 -0
- package/dist/models/HistoryThreeElementsVerificationResponseBody.js +90 -0
- package/dist/models/HistoryThreeElementsVerificationResponseBody.js.map +1 -0
- package/dist/models/SaveContactsRequest.d.ts +56 -0
- package/dist/models/SaveContactsRequest.js +78 -0
- package/dist/models/SaveContactsRequest.js.map +1 -0
- package/dist/models/SaveContactsResponse.d.ts +19 -0
- package/dist/models/SaveContactsResponse.js +69 -0
- package/dist/models/SaveContactsResponse.js.map +1 -0
- package/dist/models/SaveContactsResponseBody.d.ts +33 -0
- package/dist/models/SaveContactsResponseBody.js +64 -0
- package/dist/models/SaveContactsResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +18 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +154 -6
- package/src/models/HistoryThreeElementsVerificationRequest.ts +91 -0
- package/src/models/HistoryThreeElementsVerificationResponse.ts +40 -0
- package/src/models/HistoryThreeElementsVerificationResponseBody.ts +92 -0
- package/src/models/SaveContactsRequest.ts +89 -0
- package/src/models/SaveContactsResponse.ts +40 -0
- package/src/models/SaveContactsResponseBody.ts +52 -0
- package/src/models/model.ts +7 -0
package/src/client.ts
CHANGED
|
@@ -588,7 +588,7 @@ export default class Client extends OpenApi {
|
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
/**
|
|
591
|
-
*
|
|
591
|
+
* Obtains the analysis results of a number.
|
|
592
592
|
*
|
|
593
593
|
* @param request - DescribePhoneNumberAnalysisRequest
|
|
594
594
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -647,7 +647,7 @@ export default class Client extends OpenApi {
|
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
/**
|
|
650
|
-
*
|
|
650
|
+
* Obtains the analysis results of a number.
|
|
651
651
|
*
|
|
652
652
|
* @param request - DescribePhoneNumberAnalysisRequest
|
|
653
653
|
* @returns DescribePhoneNumberAnalysisResponse
|
|
@@ -1339,7 +1339,7 @@ export default class Client extends OpenApi {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
|
|
1341
1341
|
/**
|
|
1342
|
-
*
|
|
1342
|
+
* Obtains the signature of an authorization token when China Mobile, China Unicom, or China Telecom provides the Uniform Anonymous Identifier (UAID) capability.
|
|
1343
1343
|
*
|
|
1344
1344
|
* @param request - GetUAIDApplyTokenSignRequest
|
|
1345
1345
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1410,7 +1410,7 @@ export default class Client extends OpenApi {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
1412
|
/**
|
|
1413
|
-
*
|
|
1413
|
+
* Obtains the signature of an authorization token when China Mobile, China Unicom, or China Telecom provides the Uniform Anonymous Identifier (UAID) capability.
|
|
1414
1414
|
*
|
|
1415
1415
|
* @param request - GetUAIDApplyTokenSignRequest
|
|
1416
1416
|
* @returns GetUAIDApplyTokenSignResponse
|
|
@@ -1502,6 +1502,72 @@ export default class Client extends OpenApi {
|
|
|
1502
1502
|
return await this.getUAIDConversionSignWithOptions(request, runtime);
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
1505
|
+
/**
|
|
1506
|
+
* 历史三要素
|
|
1507
|
+
*
|
|
1508
|
+
* @param request - HistoryThreeElementsVerificationRequest
|
|
1509
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1510
|
+
* @returns HistoryThreeElementsVerificationResponse
|
|
1511
|
+
*/
|
|
1512
|
+
async historyThreeElementsVerificationWithOptions(request: $_model.HistoryThreeElementsVerificationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.HistoryThreeElementsVerificationResponse> {
|
|
1513
|
+
request.validate();
|
|
1514
|
+
let query = { };
|
|
1515
|
+
if (!$dara.isNull(request.authCode)) {
|
|
1516
|
+
query["AuthCode"] = request.authCode;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
if (!$dara.isNull(request.carrier)) {
|
|
1520
|
+
query["Carrier"] = request.carrier;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
if (!$dara.isNull(request.certCode)) {
|
|
1524
|
+
query["CertCode"] = request.certCode;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
if (!$dara.isNull(request.inputNumber)) {
|
|
1528
|
+
query["InputNumber"] = request.inputNumber;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
if (!$dara.isNull(request.mask)) {
|
|
1532
|
+
query["Mask"] = request.mask;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
if (!$dara.isNull(request.name)) {
|
|
1536
|
+
query["Name"] = request.name;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
if (!$dara.isNull(request.verificationTime)) {
|
|
1540
|
+
query["VerificationTime"] = request.verificationTime;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1544
|
+
query: OpenApiUtil.query(query),
|
|
1545
|
+
});
|
|
1546
|
+
let params = new $OpenApiUtil.Params({
|
|
1547
|
+
action: "HistoryThreeElementsVerification",
|
|
1548
|
+
version: "2020-02-17",
|
|
1549
|
+
protocol: "HTTPS",
|
|
1550
|
+
pathname: "/",
|
|
1551
|
+
method: "POST",
|
|
1552
|
+
authType: "AK",
|
|
1553
|
+
style: "RPC",
|
|
1554
|
+
reqBodyType: "formData",
|
|
1555
|
+
bodyType: "json",
|
|
1556
|
+
});
|
|
1557
|
+
return $dara.cast<$_model.HistoryThreeElementsVerificationResponse>(await this.callApi(params, req, runtime), new $_model.HistoryThreeElementsVerificationResponse({}));
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* 历史三要素
|
|
1562
|
+
*
|
|
1563
|
+
* @param request - HistoryThreeElementsVerificationRequest
|
|
1564
|
+
* @returns HistoryThreeElementsVerificationResponse
|
|
1565
|
+
*/
|
|
1566
|
+
async historyThreeElementsVerification(request: $_model.HistoryThreeElementsVerificationRequest): Promise<$_model.HistoryThreeElementsVerificationResponse> {
|
|
1567
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1568
|
+
return await this.historyThreeElementsVerificationWithOptions(request, runtime);
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1505
1571
|
/**
|
|
1506
1572
|
* Filters invalid phone numbers.
|
|
1507
1573
|
*
|
|
@@ -2714,6 +2780,88 @@ export default class Client extends OpenApi {
|
|
|
2714
2780
|
return await this.queryUsageStatisticsByTagIdWithOptions(request, runtime);
|
|
2715
2781
|
}
|
|
2716
2782
|
|
|
2783
|
+
/**
|
|
2784
|
+
* 预警联系人保存
|
|
2785
|
+
*
|
|
2786
|
+
* @param request - SaveContactsRequest
|
|
2787
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2788
|
+
* @returns SaveContactsResponse
|
|
2789
|
+
*/
|
|
2790
|
+
async saveContactsWithOptions(request: $_model.SaveContactsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SaveContactsResponse> {
|
|
2791
|
+
request.validate();
|
|
2792
|
+
let query = { };
|
|
2793
|
+
if (!$dara.isNull(request.bizType)) {
|
|
2794
|
+
query["BizType"] = request.bizType;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
if (!$dara.isNull(request.contactEmail)) {
|
|
2798
|
+
query["ContactEmail"] = request.contactEmail;
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
if (!$dara.isNull(request.contactName)) {
|
|
2802
|
+
query["ContactName"] = request.contactName;
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
if (!$dara.isNull(request.contactPhone)) {
|
|
2806
|
+
query["ContactPhone"] = request.contactPhone;
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
if (!$dara.isNull(request.mailStatus)) {
|
|
2810
|
+
query["MailStatus"] = request.mailStatus;
|
|
2811
|
+
}
|
|
2812
|
+
|
|
2813
|
+
if (!$dara.isNull(request.openStatusWarning)) {
|
|
2814
|
+
query["OpenStatusWarning"] = request.openStatusWarning;
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
if (!$dara.isNull(request.opentAttributionWarning)) {
|
|
2818
|
+
query["OpentAttributionWarning"] = request.opentAttributionWarning;
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2822
|
+
query["OwnerId"] = request.ownerId;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
if (!$dara.isNull(request.phoneStatus)) {
|
|
2826
|
+
query["PhoneStatus"] = request.phoneStatus;
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2830
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2834
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2838
|
+
query: OpenApiUtil.query(query),
|
|
2839
|
+
});
|
|
2840
|
+
let params = new $OpenApiUtil.Params({
|
|
2841
|
+
action: "SaveContacts",
|
|
2842
|
+
version: "2020-02-17",
|
|
2843
|
+
protocol: "HTTPS",
|
|
2844
|
+
pathname: "/",
|
|
2845
|
+
method: "POST",
|
|
2846
|
+
authType: "AK",
|
|
2847
|
+
style: "RPC",
|
|
2848
|
+
reqBodyType: "formData",
|
|
2849
|
+
bodyType: "json",
|
|
2850
|
+
});
|
|
2851
|
+
return $dara.cast<$_model.SaveContactsResponse>(await this.callApi(params, req, runtime), new $_model.SaveContactsResponse({}));
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* 预警联系人保存
|
|
2856
|
+
*
|
|
2857
|
+
* @param request - SaveContactsRequest
|
|
2858
|
+
* @returns SaveContactsResponse
|
|
2859
|
+
*/
|
|
2860
|
+
async saveContacts(request: $_model.SaveContactsRequest): Promise<$_model.SaveContactsResponse> {
|
|
2861
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2862
|
+
return await this.saveContactsWithOptions(request, runtime);
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2717
2865
|
/**
|
|
2718
2866
|
* Verifies whether the name, phone number, and ID card number entered by a user belong to the same user.
|
|
2719
2867
|
*
|
|
@@ -3023,7 +3171,7 @@ export default class Client extends OpenApi {
|
|
|
3023
3171
|
}
|
|
3024
3172
|
|
|
3025
3173
|
/**
|
|
3026
|
-
*
|
|
3174
|
+
* Obtains a Uniform Anonymous Identifier (UAID) based on the authorization token of a carrier. For more information about how to obtain the authorization token and its signature value, see the GetUAIDApplyTokenSign documentation.
|
|
3027
3175
|
*
|
|
3028
3176
|
* @param request - UAIDVerificationRequest
|
|
3029
3177
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3090,7 +3238,7 @@ export default class Client extends OpenApi {
|
|
|
3090
3238
|
}
|
|
3091
3239
|
|
|
3092
3240
|
/**
|
|
3093
|
-
*
|
|
3241
|
+
* Obtains a Uniform Anonymous Identifier (UAID) based on the authorization token of a carrier. For more information about how to obtain the authorization token and its signature value, see the GetUAIDApplyTokenSign documentation.
|
|
3094
3242
|
*
|
|
3095
3243
|
* @param request - UAIDVerificationRequest
|
|
3096
3244
|
* @returns UAIDVerificationResponse
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class HistoryThreeElementsVerificationRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 示例值示例值示例值
|
|
12
|
+
*/
|
|
13
|
+
authCode?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* CMCC
|
|
17
|
+
*/
|
|
18
|
+
carrier?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* This parameter is required.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* 示例值示例值示例值
|
|
25
|
+
*/
|
|
26
|
+
certCode?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* This parameter is required.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* 示例值示例值示例值
|
|
33
|
+
*/
|
|
34
|
+
inputNumber?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* This parameter is required.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* 示例值
|
|
41
|
+
*/
|
|
42
|
+
mask?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* This parameter is required.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* 示例值
|
|
49
|
+
*/
|
|
50
|
+
name?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* This parameter is required.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* 示例值示例值示例值
|
|
57
|
+
*/
|
|
58
|
+
verificationTime?: string;
|
|
59
|
+
static names(): { [key: string]: string } {
|
|
60
|
+
return {
|
|
61
|
+
authCode: 'AuthCode',
|
|
62
|
+
carrier: 'Carrier',
|
|
63
|
+
certCode: 'CertCode',
|
|
64
|
+
inputNumber: 'InputNumber',
|
|
65
|
+
mask: 'Mask',
|
|
66
|
+
name: 'Name',
|
|
67
|
+
verificationTime: 'VerificationTime',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static types(): { [key: string]: any } {
|
|
72
|
+
return {
|
|
73
|
+
authCode: 'string',
|
|
74
|
+
carrier: 'string',
|
|
75
|
+
certCode: 'string',
|
|
76
|
+
inputNumber: 'string',
|
|
77
|
+
mask: 'string',
|
|
78
|
+
name: 'string',
|
|
79
|
+
verificationTime: 'string',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
validate() {
|
|
84
|
+
super.validate();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
constructor(map?: { [key: string]: any }) {
|
|
88
|
+
super(map);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { HistoryThreeElementsVerificationResponseBody } from "./HistoryThreeElementsVerificationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class HistoryThreeElementsVerificationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: HistoryThreeElementsVerificationResponseBody;
|
|
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: HistoryThreeElementsVerificationResponseBody,
|
|
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,92 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class HistoryThreeElementsVerificationResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 72
|
|
9
|
+
*/
|
|
10
|
+
isConsistent?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* CMCC
|
|
14
|
+
*/
|
|
15
|
+
requestCarrier?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
isConsistent: 'IsConsistent',
|
|
19
|
+
requestCarrier: 'RequestCarrier',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
isConsistent: 'number',
|
|
26
|
+
requestCarrier: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class HistoryThreeElementsVerificationResponseBody extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* -
|
|
43
|
+
*/
|
|
44
|
+
accessDeniedDetail?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @example
|
|
47
|
+
* OK
|
|
48
|
+
*/
|
|
49
|
+
code?: string;
|
|
50
|
+
data?: HistoryThreeElementsVerificationResponseBodyData;
|
|
51
|
+
/**
|
|
52
|
+
* @example
|
|
53
|
+
* OK
|
|
54
|
+
*/
|
|
55
|
+
message?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @example
|
|
58
|
+
* CC3BB6D2-2FDF-4321-9DCE-B38165CE4C47
|
|
59
|
+
*/
|
|
60
|
+
requestId?: string;
|
|
61
|
+
static names(): { [key: string]: string } {
|
|
62
|
+
return {
|
|
63
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
64
|
+
code: 'Code',
|
|
65
|
+
data: 'Data',
|
|
66
|
+
message: 'Message',
|
|
67
|
+
requestId: 'RequestId',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static types(): { [key: string]: any } {
|
|
72
|
+
return {
|
|
73
|
+
accessDeniedDetail: 'string',
|
|
74
|
+
code: 'string',
|
|
75
|
+
data: HistoryThreeElementsVerificationResponseBodyData,
|
|
76
|
+
message: 'string',
|
|
77
|
+
requestId: 'string',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
83
|
+
(this.data as any).validate();
|
|
84
|
+
}
|
|
85
|
+
super.validate();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
constructor(map?: { [key: string]: any }) {
|
|
89
|
+
super(map);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SaveContactsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* dytns
|
|
9
|
+
*/
|
|
10
|
+
bizType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1234@alibaba-inc.com
|
|
14
|
+
*/
|
|
15
|
+
contactEmail?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* This parameter is required.
|
|
19
|
+
*/
|
|
20
|
+
contactName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 122354532434
|
|
24
|
+
*/
|
|
25
|
+
contactPhone?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 0
|
|
29
|
+
*/
|
|
30
|
+
mailStatus?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* false
|
|
34
|
+
*/
|
|
35
|
+
openStatusWarning?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* true
|
|
39
|
+
*/
|
|
40
|
+
opentAttributionWarning?: boolean;
|
|
41
|
+
ownerId?: number;
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* 0
|
|
45
|
+
*/
|
|
46
|
+
phoneStatus?: number;
|
|
47
|
+
resourceOwnerAccount?: string;
|
|
48
|
+
resourceOwnerId?: number;
|
|
49
|
+
static names(): { [key: string]: string } {
|
|
50
|
+
return {
|
|
51
|
+
bizType: 'BizType',
|
|
52
|
+
contactEmail: 'ContactEmail',
|
|
53
|
+
contactName: 'ContactName',
|
|
54
|
+
contactPhone: 'ContactPhone',
|
|
55
|
+
mailStatus: 'MailStatus',
|
|
56
|
+
openStatusWarning: 'OpenStatusWarning',
|
|
57
|
+
opentAttributionWarning: 'OpentAttributionWarning',
|
|
58
|
+
ownerId: 'OwnerId',
|
|
59
|
+
phoneStatus: 'PhoneStatus',
|
|
60
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
61
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
bizType: 'string',
|
|
68
|
+
contactEmail: 'string',
|
|
69
|
+
contactName: 'string',
|
|
70
|
+
contactPhone: 'string',
|
|
71
|
+
mailStatus: 'number',
|
|
72
|
+
openStatusWarning: 'boolean',
|
|
73
|
+
opentAttributionWarning: 'boolean',
|
|
74
|
+
ownerId: 'number',
|
|
75
|
+
phoneStatus: 'number',
|
|
76
|
+
resourceOwnerAccount: 'string',
|
|
77
|
+
resourceOwnerId: 'number',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
super.validate();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
constructor(map?: { [key: string]: any }) {
|
|
86
|
+
super(map);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { SaveContactsResponseBody } from "./SaveContactsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class SaveContactsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: SaveContactsResponseBody;
|
|
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: SaveContactsResponseBody,
|
|
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,52 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SaveContactsResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* OK
|
|
9
|
+
*/
|
|
10
|
+
code?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1
|
|
14
|
+
*/
|
|
15
|
+
data?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* OK
|
|
19
|
+
*/
|
|
20
|
+
message?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 29E058D7-4B28-55EE-BE3B-61D5AE488A9E
|
|
24
|
+
*/
|
|
25
|
+
requestId?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
code: 'Code',
|
|
29
|
+
data: 'Data',
|
|
30
|
+
message: 'Message',
|
|
31
|
+
requestId: 'RequestId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
code: 'string',
|
|
38
|
+
data: 'string',
|
|
39
|
+
message: 'string',
|
|
40
|
+
requestId: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { DescribePhoneNumberRiskResponseBodyData } from './DescribePhoneNumberRi
|
|
|
21
21
|
export { DescribePhoneTwiceTelVerifyResponseBodyData } from './DescribePhoneTwiceTelVerifyResponseBody';
|
|
22
22
|
export { GetUAIDApplyTokenSignResponseBodyData } from './GetUaidapplyTokenSignResponseBody';
|
|
23
23
|
export { GetUAIDConversionSignResponseBodyData } from './GetUaidconversionSignResponseBody';
|
|
24
|
+
export { HistoryThreeElementsVerificationResponseBodyData } from './HistoryThreeElementsVerificationResponseBody';
|
|
24
25
|
export { InvalidPhoneNumberFilterResponseBodyData } from './InvalidPhoneNumberFilterResponseBody';
|
|
25
26
|
export { ListContactsResponseBodyData } from './ListContactsResponseBody';
|
|
26
27
|
export { PhoneNumberConvertServiceResponseBodyData } from './PhoneNumberConvertServiceResponseBody';
|
|
@@ -108,6 +109,9 @@ export { GetUAIDApplyTokenSignResponse } from './GetUaidapplyTokenSignResponse';
|
|
|
108
109
|
export { GetUAIDConversionSignRequest } from './GetUaidconversionSignRequest';
|
|
109
110
|
export { GetUAIDConversionSignResponseBody } from './GetUaidconversionSignResponseBody';
|
|
110
111
|
export { GetUAIDConversionSignResponse } from './GetUaidconversionSignResponse';
|
|
112
|
+
export { HistoryThreeElementsVerificationRequest } from './HistoryThreeElementsVerificationRequest';
|
|
113
|
+
export { HistoryThreeElementsVerificationResponseBody } from './HistoryThreeElementsVerificationResponseBody';
|
|
114
|
+
export { HistoryThreeElementsVerificationResponse } from './HistoryThreeElementsVerificationResponse';
|
|
111
115
|
export { InvalidPhoneNumberFilterRequest } from './InvalidPhoneNumberFilterRequest';
|
|
112
116
|
export { InvalidPhoneNumberFilterResponseBody } from './InvalidPhoneNumberFilterResponseBody';
|
|
113
117
|
export { InvalidPhoneNumberFilterResponse } from './InvalidPhoneNumberFilterResponse';
|
|
@@ -163,6 +167,9 @@ export { QueryTaskListResponse } from './QueryTaskListResponse';
|
|
|
163
167
|
export { QueryUsageStatisticsByTagIdRequest } from './QueryUsageStatisticsByTagIdRequest';
|
|
164
168
|
export { QueryUsageStatisticsByTagIdResponseBody } from './QueryUsageStatisticsByTagIdResponseBody';
|
|
165
169
|
export { QueryUsageStatisticsByTagIdResponse } from './QueryUsageStatisticsByTagIdResponse';
|
|
170
|
+
export { SaveContactsRequest } from './SaveContactsRequest';
|
|
171
|
+
export { SaveContactsResponseBody } from './SaveContactsResponseBody';
|
|
172
|
+
export { SaveContactsResponse } from './SaveContactsResponse';
|
|
166
173
|
export { ThreeElementsVerificationRequest } from './ThreeElementsVerificationRequest';
|
|
167
174
|
export { ThreeElementsVerificationResponseBody } from './ThreeElementsVerificationResponseBody';
|
|
168
175
|
export { ThreeElementsVerificationResponse } from './ThreeElementsVerificationResponse';
|