@alicloud/websitebuild20250429 2.27.1 → 2.28.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 +38 -8
- package/dist/client.js +92 -8
- package/dist/client.js.map +1 -1
- package/dist/models/GetAppWorkspaceDirectoryResponseBody.d.ts +2 -2
- package/dist/models/ListAppInstancesRequest.d.ts +4 -3
- package/dist/models/ListAppInstancesRequest.js +5 -0
- package/dist/models/ListAppInstancesRequest.js.map +1 -1
- package/dist/models/ListAppInstancesResponseBody.d.ts +3 -3
- package/dist/models/ListAppInstancesShrinkRequest.d.ts +4 -3
- package/dist/models/ListAppInstancesShrinkRequest.js +2 -0
- package/dist/models/ListAppInstancesShrinkRequest.js.map +1 -1
- package/dist/models/OfflineAppInstanceRequest.d.ts +21 -0
- package/dist/models/OfflineAppInstanceRequest.js +58 -0
- package/dist/models/OfflineAppInstanceRequest.js.map +1 -0
- package/dist/models/OfflineAppInstanceResponse.d.ts +19 -0
- package/dist/models/OfflineAppInstanceResponse.js +69 -0
- package/dist/models/OfflineAppInstanceResponse.js.map +1 -0
- package/dist/models/OfflineAppInstanceResponseBody.d.ts +100 -0
- package/dist/models/OfflineAppInstanceResponseBody.js +84 -0
- package/dist/models/OfflineAppInstanceResponseBody.js.map +1 -0
- package/dist/models/OnlineAppInstanceRequest.d.ts +21 -0
- package/dist/models/OnlineAppInstanceRequest.js +58 -0
- package/dist/models/OnlineAppInstanceRequest.js.map +1 -0
- package/dist/models/OnlineAppInstanceResponse.d.ts +19 -0
- package/dist/models/OnlineAppInstanceResponse.js +69 -0
- package/dist/models/OnlineAppInstanceResponse.js.map +1 -0
- package/dist/models/OnlineAppInstanceResponseBody.d.ts +100 -0
- package/dist/models/OnlineAppInstanceResponseBody.js +84 -0
- package/dist/models/OnlineAppInstanceResponseBody.js.map +1 -0
- package/dist/models/SaveAppRequirementRequest.d.ts +1 -1
- package/dist/models/SaveAppRequirementResponseBody.d.ts +6 -6
- package/dist/models/UpdateAppFileRequest.d.ts +3 -3
- package/dist/models/UpdateAppFileResponseBody.d.ts +11 -11
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +16 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +100 -8
- package/src/models/GetAppWorkspaceDirectoryResponseBody.ts +2 -2
- package/src/models/ListAppInstancesRequest.ts +9 -3
- package/src/models/ListAppInstancesResponseBody.ts +3 -3
- package/src/models/ListAppInstancesShrinkRequest.ts +6 -3
- package/src/models/OfflineAppInstanceRequest.ts +34 -0
- package/src/models/OfflineAppInstanceResponse.ts +40 -0
- package/src/models/OfflineAppInstanceResponseBody.ts +137 -0
- package/src/models/OnlineAppInstanceRequest.ts +34 -0
- package/src/models/OnlineAppInstanceResponse.ts +40 -0
- package/src/models/OnlineAppInstanceResponseBody.ts +137 -0
- package/src/models/SaveAppRequirementRequest.ts +1 -1
- package/src/models/SaveAppRequirementResponseBody.ts +6 -6
- package/src/models/UpdateAppFileRequest.ts +3 -3
- package/src/models/UpdateAppFileResponseBody.ts +11 -11
- package/src/models/model.ts +6 -0
package/src/client.ts
CHANGED
|
@@ -4474,6 +4474,10 @@ export default class Client extends OpenApi {
|
|
|
4474
4474
|
tmpReq.validate();
|
|
4475
4475
|
let request = new $_model.ListAppInstancesShrinkRequest({ });
|
|
4476
4476
|
OpenApiUtil.convert(tmpReq, request);
|
|
4477
|
+
if (!$dara.isNull(tmpReq.bizIds)) {
|
|
4478
|
+
request.bizIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizIds, "BizIds", "json");
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4477
4481
|
if (!$dara.isNull(tmpReq.statusList)) {
|
|
4478
4482
|
request.statusListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.statusList, "StatusList", "json");
|
|
4479
4483
|
}
|
|
@@ -4483,6 +4487,10 @@ export default class Client extends OpenApi {
|
|
|
4483
4487
|
query["BizId"] = request.bizId;
|
|
4484
4488
|
}
|
|
4485
4489
|
|
|
4490
|
+
if (!$dara.isNull(request.bizIdsShrink)) {
|
|
4491
|
+
query["BizIds"] = request.bizIdsShrink;
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4486
4494
|
if (!$dara.isNull(request.endTimeBegin)) {
|
|
4487
4495
|
query["EndTimeBegin"] = request.endTimeBegin;
|
|
4488
4496
|
}
|
|
@@ -5355,6 +5363,90 @@ export default class Client extends OpenApi {
|
|
|
5355
5363
|
return await this.notifyAppNotificationForAdminWithOptions(request, runtime);
|
|
5356
5364
|
}
|
|
5357
5365
|
|
|
5366
|
+
/**
|
|
5367
|
+
* Delists a website: switches the CDN back-to-origin configuration for all domain names under the site to an offline page.
|
|
5368
|
+
*
|
|
5369
|
+
* @param request - OfflineAppInstanceRequest
|
|
5370
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5371
|
+
* @returns OfflineAppInstanceResponse
|
|
5372
|
+
*/
|
|
5373
|
+
async offlineAppInstanceWithOptions(request: $_model.OfflineAppInstanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.OfflineAppInstanceResponse> {
|
|
5374
|
+
request.validate();
|
|
5375
|
+
let query = { };
|
|
5376
|
+
if (!$dara.isNull(request.bizId)) {
|
|
5377
|
+
query["BizId"] = request.bizId;
|
|
5378
|
+
}
|
|
5379
|
+
|
|
5380
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5381
|
+
query: OpenApiUtil.query(query),
|
|
5382
|
+
});
|
|
5383
|
+
let params = new $OpenApiUtil.Params({
|
|
5384
|
+
action: "OfflineAppInstance",
|
|
5385
|
+
version: "2025-04-29",
|
|
5386
|
+
protocol: "HTTPS",
|
|
5387
|
+
pathname: "/",
|
|
5388
|
+
method: "POST",
|
|
5389
|
+
authType: "AK",
|
|
5390
|
+
style: "RPC",
|
|
5391
|
+
reqBodyType: "formData",
|
|
5392
|
+
bodyType: "json",
|
|
5393
|
+
});
|
|
5394
|
+
return $dara.cast<$_model.OfflineAppInstanceResponse>(await this.callApi(params, req, runtime), new $_model.OfflineAppInstanceResponse({}));
|
|
5395
|
+
}
|
|
5396
|
+
|
|
5397
|
+
/**
|
|
5398
|
+
* Delists a website: switches the CDN back-to-origin configuration for all domain names under the site to an offline page.
|
|
5399
|
+
*
|
|
5400
|
+
* @param request - OfflineAppInstanceRequest
|
|
5401
|
+
* @returns OfflineAppInstanceResponse
|
|
5402
|
+
*/
|
|
5403
|
+
async offlineAppInstance(request: $_model.OfflineAppInstanceRequest): Promise<$_model.OfflineAppInstanceResponse> {
|
|
5404
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5405
|
+
return await this.offlineAppInstanceWithOptions(request, runtime);
|
|
5406
|
+
}
|
|
5407
|
+
|
|
5408
|
+
/**
|
|
5409
|
+
* Resumes a website by restoring the CDN back-to-origin rewrite rules to the normal path for all domain names under the site.
|
|
5410
|
+
*
|
|
5411
|
+
* @param request - OnlineAppInstanceRequest
|
|
5412
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5413
|
+
* @returns OnlineAppInstanceResponse
|
|
5414
|
+
*/
|
|
5415
|
+
async onlineAppInstanceWithOptions(request: $_model.OnlineAppInstanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.OnlineAppInstanceResponse> {
|
|
5416
|
+
request.validate();
|
|
5417
|
+
let query = { };
|
|
5418
|
+
if (!$dara.isNull(request.bizId)) {
|
|
5419
|
+
query["BizId"] = request.bizId;
|
|
5420
|
+
}
|
|
5421
|
+
|
|
5422
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5423
|
+
query: OpenApiUtil.query(query),
|
|
5424
|
+
});
|
|
5425
|
+
let params = new $OpenApiUtil.Params({
|
|
5426
|
+
action: "OnlineAppInstance",
|
|
5427
|
+
version: "2025-04-29",
|
|
5428
|
+
protocol: "HTTPS",
|
|
5429
|
+
pathname: "/",
|
|
5430
|
+
method: "POST",
|
|
5431
|
+
authType: "AK",
|
|
5432
|
+
style: "RPC",
|
|
5433
|
+
reqBodyType: "formData",
|
|
5434
|
+
bodyType: "json",
|
|
5435
|
+
});
|
|
5436
|
+
return $dara.cast<$_model.OnlineAppInstanceResponse>(await this.callApi(params, req, runtime), new $_model.OnlineAppInstanceResponse({}));
|
|
5437
|
+
}
|
|
5438
|
+
|
|
5439
|
+
/**
|
|
5440
|
+
* Resumes a website by restoring the CDN back-to-origin rewrite rules to the normal path for all domain names under the site.
|
|
5441
|
+
*
|
|
5442
|
+
* @param request - OnlineAppInstanceRequest
|
|
5443
|
+
* @returns OnlineAppInstanceResponse
|
|
5444
|
+
*/
|
|
5445
|
+
async onlineAppInstance(request: $_model.OnlineAppInstanceRequest): Promise<$_model.OnlineAppInstanceResponse> {
|
|
5446
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5447
|
+
return await this.onlineAppInstanceWithOptions(request, runtime);
|
|
5448
|
+
}
|
|
5449
|
+
|
|
5358
5450
|
/**
|
|
5359
5451
|
* Operates an application by a partner.
|
|
5360
5452
|
*
|
|
@@ -6997,10 +7089,10 @@ export default class Client extends OpenApi {
|
|
|
6997
7089
|
}
|
|
6998
7090
|
|
|
6999
7091
|
/**
|
|
7000
|
-
* Save
|
|
7092
|
+
* Save Requirement
|
|
7001
7093
|
*
|
|
7002
7094
|
* @remarks
|
|
7003
|
-
*
|
|
7095
|
+
* Get code generation plugin configuration information
|
|
7004
7096
|
*
|
|
7005
7097
|
* @param request - SaveAppRequirementRequest
|
|
7006
7098
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7037,10 +7129,10 @@ export default class Client extends OpenApi {
|
|
|
7037
7129
|
}
|
|
7038
7130
|
|
|
7039
7131
|
/**
|
|
7040
|
-
* Save
|
|
7132
|
+
* Save Requirement
|
|
7041
7133
|
*
|
|
7042
7134
|
* @remarks
|
|
7043
|
-
*
|
|
7135
|
+
* Get code generation plugin configuration information
|
|
7044
7136
|
*
|
|
7045
7137
|
* @param request - SaveAppRequirementRequest
|
|
7046
7138
|
* @returns SaveAppRequirementResponse
|
|
@@ -7653,10 +7745,10 @@ export default class Client extends OpenApi {
|
|
|
7653
7745
|
}
|
|
7654
7746
|
|
|
7655
7747
|
/**
|
|
7656
|
-
*
|
|
7748
|
+
* Updates a file.
|
|
7657
7749
|
*
|
|
7658
7750
|
* @remarks
|
|
7659
|
-
*
|
|
7751
|
+
* Retrieves the configuration information of the code generation plugin.
|
|
7660
7752
|
*
|
|
7661
7753
|
* @param request - UpdateAppFileRequest
|
|
7662
7754
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7695,10 +7787,10 @@ export default class Client extends OpenApi {
|
|
|
7695
7787
|
}
|
|
7696
7788
|
|
|
7697
7789
|
/**
|
|
7698
|
-
*
|
|
7790
|
+
* Updates a file.
|
|
7699
7791
|
*
|
|
7700
7792
|
* @remarks
|
|
7701
|
-
*
|
|
7793
|
+
* Retrieves the configuration information of the code generation plugin.
|
|
7702
7794
|
*
|
|
7703
7795
|
* @param request - UpdateAppFileRequest
|
|
7704
7796
|
* @returns UpdateAppFileResponse
|
|
@@ -103,7 +103,7 @@ export class GetAppWorkspaceDirectoryResponseBody extends $dara.Model {
|
|
|
103
103
|
accessDeniedDetail?: string;
|
|
104
104
|
/**
|
|
105
105
|
* @remarks
|
|
106
|
-
* Indicates whether retry is allowed.
|
|
106
|
+
* Indicates whether a retry is allowed.
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
109
|
* False
|
|
@@ -135,7 +135,7 @@ export class GetAppWorkspaceDirectoryResponseBody extends $dara.Model {
|
|
|
135
135
|
dynamicMessage?: string;
|
|
136
136
|
/**
|
|
137
137
|
* @remarks
|
|
138
|
-
* The error parameters.
|
|
138
|
+
* The error parameters returned.
|
|
139
139
|
*/
|
|
140
140
|
errorArgs?: any[];
|
|
141
141
|
/**
|
|
@@ -11,6 +11,7 @@ export class ListAppInstancesRequest extends $dara.Model {
|
|
|
11
11
|
* WS20250731233102000001
|
|
12
12
|
*/
|
|
13
13
|
bizId?: string;
|
|
14
|
+
bizIds?: string[];
|
|
14
15
|
/**
|
|
15
16
|
* @remarks
|
|
16
17
|
* The start of the expiration time range.
|
|
@@ -47,7 +48,7 @@ export class ListAppInstancesRequest extends $dara.Model {
|
|
|
47
48
|
maxResults?: number;
|
|
48
49
|
/**
|
|
49
50
|
* @remarks
|
|
50
|
-
* The token for the next query. This parameter is empty if no more results
|
|
51
|
+
* The token for the next query. This parameter is empty if no more results are available.
|
|
51
52
|
*
|
|
52
53
|
* @example
|
|
53
54
|
* AAAAARbaCuN6hiD08qrLdwJ9Fh3BFw8paIJ7ylB6A7Qn9JjM
|
|
@@ -55,7 +56,7 @@ export class ListAppInstancesRequest extends $dara.Model {
|
|
|
55
56
|
nextToken?: string;
|
|
56
57
|
/**
|
|
57
58
|
* @remarks
|
|
58
|
-
* The field
|
|
59
|
+
* The field used for sorting.
|
|
59
60
|
*
|
|
60
61
|
* @example
|
|
61
62
|
* gmtCreated
|
|
@@ -63,7 +64,7 @@ export class ListAppInstancesRequest extends $dara.Model {
|
|
|
63
64
|
orderColumn?: string;
|
|
64
65
|
/**
|
|
65
66
|
* @remarks
|
|
66
|
-
* The sort
|
|
67
|
+
* The sort type. Valid values: ASC and DESC.
|
|
67
68
|
*
|
|
68
69
|
* @example
|
|
69
70
|
* DOWNGRADE
|
|
@@ -101,6 +102,7 @@ export class ListAppInstancesRequest extends $dara.Model {
|
|
|
101
102
|
static names(): { [key: string]: string } {
|
|
102
103
|
return {
|
|
103
104
|
bizId: 'BizId',
|
|
105
|
+
bizIds: 'BizIds',
|
|
104
106
|
endTimeBegin: 'EndTimeBegin',
|
|
105
107
|
endTimeEnd: 'EndTimeEnd',
|
|
106
108
|
extend: 'Extend',
|
|
@@ -118,6 +120,7 @@ export class ListAppInstancesRequest extends $dara.Model {
|
|
|
118
120
|
static types(): { [key: string]: any } {
|
|
119
121
|
return {
|
|
120
122
|
bizId: 'string',
|
|
123
|
+
bizIds: { 'type': 'array', 'itemType': 'string' },
|
|
121
124
|
endTimeBegin: 'string',
|
|
122
125
|
endTimeEnd: 'string',
|
|
123
126
|
extend: 'string',
|
|
@@ -133,6 +136,9 @@ export class ListAppInstancesRequest extends $dara.Model {
|
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
validate() {
|
|
139
|
+
if(Array.isArray(this.bizIds)) {
|
|
140
|
+
$dara.Model.validateArray(this.bizIds);
|
|
141
|
+
}
|
|
136
142
|
if(Array.isArray(this.statusList)) {
|
|
137
143
|
$dara.Model.validateArray(this.statusList);
|
|
138
144
|
}
|
|
@@ -14,7 +14,7 @@ export class ListAppInstancesResponseBody extends $dara.Model {
|
|
|
14
14
|
accessDeniedDetail?: string;
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* Indicates whether retry is allowed.
|
|
17
|
+
* Indicates whether a retry is allowed.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* False
|
|
@@ -82,7 +82,7 @@ export class ListAppInstancesResponseBody extends $dara.Model {
|
|
|
82
82
|
nextPage?: boolean;
|
|
83
83
|
/**
|
|
84
84
|
* @remarks
|
|
85
|
-
* The token for the next query. This parameter is empty if no more results
|
|
85
|
+
* The token for the next query. This parameter is empty if no more results are available.
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* dw+qdTi1EjVSWX/INJdYNw==
|
|
@@ -114,7 +114,7 @@ export class ListAppInstancesResponseBody extends $dara.Model {
|
|
|
114
114
|
requestId?: string;
|
|
115
115
|
/**
|
|
116
116
|
* @remarks
|
|
117
|
-
*
|
|
117
|
+
* In addition to pagination limits, the server processes up to 1,000 recent records per query. If the result exceeds 1,000 records, **ResultLimit** is **true**. Narrow the time range and search again. Otherwise, **ResultLimit** is **false**.
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
120
|
* False
|
|
@@ -11,6 +11,7 @@ export class ListAppInstancesShrinkRequest extends $dara.Model {
|
|
|
11
11
|
* WS20250731233102000001
|
|
12
12
|
*/
|
|
13
13
|
bizId?: string;
|
|
14
|
+
bizIdsShrink?: string;
|
|
14
15
|
/**
|
|
15
16
|
* @remarks
|
|
16
17
|
* The start of the expiration time range.
|
|
@@ -47,7 +48,7 @@ export class ListAppInstancesShrinkRequest extends $dara.Model {
|
|
|
47
48
|
maxResults?: number;
|
|
48
49
|
/**
|
|
49
50
|
* @remarks
|
|
50
|
-
* The token for the next query. This parameter is empty if no more results
|
|
51
|
+
* The token for the next query. This parameter is empty if no more results are available.
|
|
51
52
|
*
|
|
52
53
|
* @example
|
|
53
54
|
* AAAAARbaCuN6hiD08qrLdwJ9Fh3BFw8paIJ7ylB6A7Qn9JjM
|
|
@@ -55,7 +56,7 @@ export class ListAppInstancesShrinkRequest extends $dara.Model {
|
|
|
55
56
|
nextToken?: string;
|
|
56
57
|
/**
|
|
57
58
|
* @remarks
|
|
58
|
-
* The field
|
|
59
|
+
* The field used for sorting.
|
|
59
60
|
*
|
|
60
61
|
* @example
|
|
61
62
|
* gmtCreated
|
|
@@ -63,7 +64,7 @@ export class ListAppInstancesShrinkRequest extends $dara.Model {
|
|
|
63
64
|
orderColumn?: string;
|
|
64
65
|
/**
|
|
65
66
|
* @remarks
|
|
66
|
-
* The sort
|
|
67
|
+
* The sort type. Valid values: ASC and DESC.
|
|
67
68
|
*
|
|
68
69
|
* @example
|
|
69
70
|
* DOWNGRADE
|
|
@@ -101,6 +102,7 @@ export class ListAppInstancesShrinkRequest extends $dara.Model {
|
|
|
101
102
|
static names(): { [key: string]: string } {
|
|
102
103
|
return {
|
|
103
104
|
bizId: 'BizId',
|
|
105
|
+
bizIdsShrink: 'BizIds',
|
|
104
106
|
endTimeBegin: 'EndTimeBegin',
|
|
105
107
|
endTimeEnd: 'EndTimeEnd',
|
|
106
108
|
extend: 'Extend',
|
|
@@ -118,6 +120,7 @@ export class ListAppInstancesShrinkRequest extends $dara.Model {
|
|
|
118
120
|
static types(): { [key: string]: any } {
|
|
119
121
|
return {
|
|
120
122
|
bizId: 'string',
|
|
123
|
+
bizIdsShrink: 'string',
|
|
121
124
|
endTimeBegin: 'string',
|
|
122
125
|
endTimeEnd: 'string',
|
|
123
126
|
extend: 'string',
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class OfflineAppInstanceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business ID of the application instance.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* WD20250814102215000001
|
|
12
|
+
*/
|
|
13
|
+
bizId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
bizId: 'BizId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
bizId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { OfflineAppInstanceResponseBody } from "./OfflineAppInstanceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class OfflineAppInstanceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: OfflineAppInstanceResponseBody;
|
|
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: OfflineAppInstanceResponseBody,
|
|
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,137 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class OfflineAppInstanceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The deprecated parameter. You can ignore this parameter.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* None
|
|
12
|
+
*/
|
|
13
|
+
accessDeniedDetail?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Indicates whether retry is allowed.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* False
|
|
20
|
+
*/
|
|
21
|
+
allowRetry?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The application name.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* DocdbSortingCode
|
|
28
|
+
*/
|
|
29
|
+
appName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The dynamic error code.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ERROR-oo1
|
|
36
|
+
*/
|
|
37
|
+
dynamicCode?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The dynamic message.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* abc
|
|
44
|
+
*/
|
|
45
|
+
dynamicMessage?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The error parameters.
|
|
49
|
+
*/
|
|
50
|
+
errorArgs?: any[];
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* Indicates whether the shift was successful.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* {\\"TotalPageNum\\": 1, \\"ResultLimit\\": False, \\"CurrentPageNum\\": 0, \\"PageSize\\": 0, \\"TotalItemNum\\": 0}
|
|
57
|
+
*/
|
|
58
|
+
module?: { [key: string]: any };
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* Id of the request
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* 6C6B99AC-39EC-5350-874C-204128C905E6
|
|
65
|
+
*/
|
|
66
|
+
requestId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The error code.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* SYSTEM.ERROR
|
|
73
|
+
*/
|
|
74
|
+
rootErrorCode?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The error message.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* 系统异常
|
|
81
|
+
*/
|
|
82
|
+
rootErrorMsg?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* The reserved parameter.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* True
|
|
89
|
+
*/
|
|
90
|
+
synchro?: boolean;
|
|
91
|
+
static names(): { [key: string]: string } {
|
|
92
|
+
return {
|
|
93
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
94
|
+
allowRetry: 'AllowRetry',
|
|
95
|
+
appName: 'AppName',
|
|
96
|
+
dynamicCode: 'DynamicCode',
|
|
97
|
+
dynamicMessage: 'DynamicMessage',
|
|
98
|
+
errorArgs: 'ErrorArgs',
|
|
99
|
+
module: 'Module',
|
|
100
|
+
requestId: 'RequestId',
|
|
101
|
+
rootErrorCode: 'RootErrorCode',
|
|
102
|
+
rootErrorMsg: 'RootErrorMsg',
|
|
103
|
+
synchro: 'Synchro',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static types(): { [key: string]: any } {
|
|
108
|
+
return {
|
|
109
|
+
accessDeniedDetail: 'string',
|
|
110
|
+
allowRetry: 'boolean',
|
|
111
|
+
appName: 'string',
|
|
112
|
+
dynamicCode: 'string',
|
|
113
|
+
dynamicMessage: 'string',
|
|
114
|
+
errorArgs: { 'type': 'array', 'itemType': 'any' },
|
|
115
|
+
module: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
116
|
+
requestId: 'string',
|
|
117
|
+
rootErrorCode: 'string',
|
|
118
|
+
rootErrorMsg: 'string',
|
|
119
|
+
synchro: 'boolean',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
validate() {
|
|
124
|
+
if(Array.isArray(this.errorArgs)) {
|
|
125
|
+
$dara.Model.validateArray(this.errorArgs);
|
|
126
|
+
}
|
|
127
|
+
if(this.module) {
|
|
128
|
+
$dara.Model.validateMap(this.module);
|
|
129
|
+
}
|
|
130
|
+
super.validate();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
constructor(map?: { [key: string]: any }) {
|
|
134
|
+
super(map);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class OnlineAppInstanceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business ID of the application instance.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* WS20250801154628000001
|
|
12
|
+
*/
|
|
13
|
+
bizId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
bizId: 'BizId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
bizId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { OnlineAppInstanceResponseBody } from "./OnlineAppInstanceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class OnlineAppInstanceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: OnlineAppInstanceResponseBody;
|
|
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: OnlineAppInstanceResponseBody,
|
|
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
|
+
|