@alicloud/aliding20230426 2.7.0 → 2.8.1
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 +241 -0
- package/dist/client.js +446 -22
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +523 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -13944,6 +13944,174 @@ export class GetUserResponse extends $tea.Model {
|
|
|
13944
13944
|
}
|
|
13945
13945
|
}
|
|
13946
13946
|
|
|
13947
|
+
export class GetUserLatestPlanHeaders extends $tea.Model {
|
|
13948
|
+
commonHeaders?: { [key: string]: string };
|
|
13949
|
+
accountContext?: GetUserLatestPlanHeadersAccountContext;
|
|
13950
|
+
static names(): { [key: string]: string } {
|
|
13951
|
+
return {
|
|
13952
|
+
commonHeaders: 'commonHeaders',
|
|
13953
|
+
accountContext: 'AccountContext',
|
|
13954
|
+
};
|
|
13955
|
+
}
|
|
13956
|
+
|
|
13957
|
+
static types(): { [key: string]: any } {
|
|
13958
|
+
return {
|
|
13959
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
13960
|
+
accountContext: GetUserLatestPlanHeadersAccountContext,
|
|
13961
|
+
};
|
|
13962
|
+
}
|
|
13963
|
+
|
|
13964
|
+
constructor(map?: { [key: string]: any }) {
|
|
13965
|
+
super(map);
|
|
13966
|
+
}
|
|
13967
|
+
}
|
|
13968
|
+
|
|
13969
|
+
export class GetUserLatestPlanShrinkHeaders extends $tea.Model {
|
|
13970
|
+
commonHeaders?: { [key: string]: string };
|
|
13971
|
+
accountContextShrink?: string;
|
|
13972
|
+
static names(): { [key: string]: string } {
|
|
13973
|
+
return {
|
|
13974
|
+
commonHeaders: 'commonHeaders',
|
|
13975
|
+
accountContextShrink: 'AccountContext',
|
|
13976
|
+
};
|
|
13977
|
+
}
|
|
13978
|
+
|
|
13979
|
+
static types(): { [key: string]: any } {
|
|
13980
|
+
return {
|
|
13981
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
13982
|
+
accountContextShrink: 'string',
|
|
13983
|
+
};
|
|
13984
|
+
}
|
|
13985
|
+
|
|
13986
|
+
constructor(map?: { [key: string]: any }) {
|
|
13987
|
+
super(map);
|
|
13988
|
+
}
|
|
13989
|
+
}
|
|
13990
|
+
|
|
13991
|
+
export class GetUserLatestPlanRequest extends $tea.Model {
|
|
13992
|
+
tenantContext?: GetUserLatestPlanRequestTenantContext;
|
|
13993
|
+
static names(): { [key: string]: string } {
|
|
13994
|
+
return {
|
|
13995
|
+
tenantContext: 'TenantContext',
|
|
13996
|
+
};
|
|
13997
|
+
}
|
|
13998
|
+
|
|
13999
|
+
static types(): { [key: string]: any } {
|
|
14000
|
+
return {
|
|
14001
|
+
tenantContext: GetUserLatestPlanRequestTenantContext,
|
|
14002
|
+
};
|
|
14003
|
+
}
|
|
14004
|
+
|
|
14005
|
+
constructor(map?: { [key: string]: any }) {
|
|
14006
|
+
super(map);
|
|
14007
|
+
}
|
|
14008
|
+
}
|
|
14009
|
+
|
|
14010
|
+
export class GetUserLatestPlanShrinkRequest extends $tea.Model {
|
|
14011
|
+
tenantContextShrink?: string;
|
|
14012
|
+
static names(): { [key: string]: string } {
|
|
14013
|
+
return {
|
|
14014
|
+
tenantContextShrink: 'TenantContext',
|
|
14015
|
+
};
|
|
14016
|
+
}
|
|
14017
|
+
|
|
14018
|
+
static types(): { [key: string]: any } {
|
|
14019
|
+
return {
|
|
14020
|
+
tenantContextShrink: 'string',
|
|
14021
|
+
};
|
|
14022
|
+
}
|
|
14023
|
+
|
|
14024
|
+
constructor(map?: { [key: string]: any }) {
|
|
14025
|
+
super(map);
|
|
14026
|
+
}
|
|
14027
|
+
}
|
|
14028
|
+
|
|
14029
|
+
export class GetUserLatestPlanResponseBody extends $tea.Model {
|
|
14030
|
+
accountHandleStatus?: number;
|
|
14031
|
+
accountHandleTime?: string;
|
|
14032
|
+
accountType?: number;
|
|
14033
|
+
agreementFirstSignTime?: string;
|
|
14034
|
+
agreementLastSignTime?: string;
|
|
14035
|
+
agreementStatus?: number;
|
|
14036
|
+
dataHandleEndTime?: string;
|
|
14037
|
+
dataHandleStartTime?: string;
|
|
14038
|
+
dataHandleStatus?: number;
|
|
14039
|
+
exclusivePlan?: number;
|
|
14040
|
+
newAccountUid?: number;
|
|
14041
|
+
requestId?: string;
|
|
14042
|
+
status?: number;
|
|
14043
|
+
vendorRequestId?: string;
|
|
14044
|
+
vendorType?: string;
|
|
14045
|
+
static names(): { [key: string]: string } {
|
|
14046
|
+
return {
|
|
14047
|
+
accountHandleStatus: 'accountHandleStatus',
|
|
14048
|
+
accountHandleTime: 'accountHandleTime',
|
|
14049
|
+
accountType: 'accountType',
|
|
14050
|
+
agreementFirstSignTime: 'agreementFirstSignTime',
|
|
14051
|
+
agreementLastSignTime: 'agreementLastSignTime',
|
|
14052
|
+
agreementStatus: 'agreementStatus',
|
|
14053
|
+
dataHandleEndTime: 'dataHandleEndTime',
|
|
14054
|
+
dataHandleStartTime: 'dataHandleStartTime',
|
|
14055
|
+
dataHandleStatus: 'dataHandleStatus',
|
|
14056
|
+
exclusivePlan: 'exclusivePlan',
|
|
14057
|
+
newAccountUid: 'newAccountUid',
|
|
14058
|
+
requestId: 'requestId',
|
|
14059
|
+
status: 'status',
|
|
14060
|
+
vendorRequestId: 'vendorRequestId',
|
|
14061
|
+
vendorType: 'vendorType',
|
|
14062
|
+
};
|
|
14063
|
+
}
|
|
14064
|
+
|
|
14065
|
+
static types(): { [key: string]: any } {
|
|
14066
|
+
return {
|
|
14067
|
+
accountHandleStatus: 'number',
|
|
14068
|
+
accountHandleTime: 'string',
|
|
14069
|
+
accountType: 'number',
|
|
14070
|
+
agreementFirstSignTime: 'string',
|
|
14071
|
+
agreementLastSignTime: 'string',
|
|
14072
|
+
agreementStatus: 'number',
|
|
14073
|
+
dataHandleEndTime: 'string',
|
|
14074
|
+
dataHandleStartTime: 'string',
|
|
14075
|
+
dataHandleStatus: 'number',
|
|
14076
|
+
exclusivePlan: 'number',
|
|
14077
|
+
newAccountUid: 'number',
|
|
14078
|
+
requestId: 'string',
|
|
14079
|
+
status: 'number',
|
|
14080
|
+
vendorRequestId: 'string',
|
|
14081
|
+
vendorType: 'string',
|
|
14082
|
+
};
|
|
14083
|
+
}
|
|
14084
|
+
|
|
14085
|
+
constructor(map?: { [key: string]: any }) {
|
|
14086
|
+
super(map);
|
|
14087
|
+
}
|
|
14088
|
+
}
|
|
14089
|
+
|
|
14090
|
+
export class GetUserLatestPlanResponse extends $tea.Model {
|
|
14091
|
+
headers?: { [key: string]: string };
|
|
14092
|
+
statusCode?: number;
|
|
14093
|
+
body?: GetUserLatestPlanResponseBody;
|
|
14094
|
+
static names(): { [key: string]: string } {
|
|
14095
|
+
return {
|
|
14096
|
+
headers: 'headers',
|
|
14097
|
+
statusCode: 'statusCode',
|
|
14098
|
+
body: 'body',
|
|
14099
|
+
};
|
|
14100
|
+
}
|
|
14101
|
+
|
|
14102
|
+
static types(): { [key: string]: any } {
|
|
14103
|
+
return {
|
|
14104
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
14105
|
+
statusCode: 'number',
|
|
14106
|
+
body: GetUserLatestPlanResponseBody,
|
|
14107
|
+
};
|
|
14108
|
+
}
|
|
14109
|
+
|
|
14110
|
+
constructor(map?: { [key: string]: any }) {
|
|
14111
|
+
super(map);
|
|
14112
|
+
}
|
|
14113
|
+
}
|
|
14114
|
+
|
|
13947
14115
|
export class GetWorkspaceHeaders extends $tea.Model {
|
|
13948
14116
|
commonHeaders?: { [key: string]: string };
|
|
13949
14117
|
accountContext?: GetWorkspaceHeadersAccountContext;
|
|
@@ -23272,6 +23440,165 @@ export class SubscribeCalendarResponse extends $tea.Model {
|
|
|
23272
23440
|
}
|
|
23273
23441
|
}
|
|
23274
23442
|
|
|
23443
|
+
export class SyncDingTypeHeaders extends $tea.Model {
|
|
23444
|
+
commonHeaders?: { [key: string]: string };
|
|
23445
|
+
accountContext?: SyncDingTypeHeadersAccountContext;
|
|
23446
|
+
static names(): { [key: string]: string } {
|
|
23447
|
+
return {
|
|
23448
|
+
commonHeaders: 'commonHeaders',
|
|
23449
|
+
accountContext: 'AccountContext',
|
|
23450
|
+
};
|
|
23451
|
+
}
|
|
23452
|
+
|
|
23453
|
+
static types(): { [key: string]: any } {
|
|
23454
|
+
return {
|
|
23455
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
23456
|
+
accountContext: SyncDingTypeHeadersAccountContext,
|
|
23457
|
+
};
|
|
23458
|
+
}
|
|
23459
|
+
|
|
23460
|
+
constructor(map?: { [key: string]: any }) {
|
|
23461
|
+
super(map);
|
|
23462
|
+
}
|
|
23463
|
+
}
|
|
23464
|
+
|
|
23465
|
+
export class SyncDingTypeShrinkHeaders extends $tea.Model {
|
|
23466
|
+
commonHeaders?: { [key: string]: string };
|
|
23467
|
+
accountContextShrink?: string;
|
|
23468
|
+
static names(): { [key: string]: string } {
|
|
23469
|
+
return {
|
|
23470
|
+
commonHeaders: 'commonHeaders',
|
|
23471
|
+
accountContextShrink: 'AccountContext',
|
|
23472
|
+
};
|
|
23473
|
+
}
|
|
23474
|
+
|
|
23475
|
+
static types(): { [key: string]: any } {
|
|
23476
|
+
return {
|
|
23477
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
23478
|
+
accountContextShrink: 'string',
|
|
23479
|
+
};
|
|
23480
|
+
}
|
|
23481
|
+
|
|
23482
|
+
constructor(map?: { [key: string]: any }) {
|
|
23483
|
+
super(map);
|
|
23484
|
+
}
|
|
23485
|
+
}
|
|
23486
|
+
|
|
23487
|
+
export class SyncDingTypeRequest extends $tea.Model {
|
|
23488
|
+
dingType?: string;
|
|
23489
|
+
isDimission?: string;
|
|
23490
|
+
source?: string;
|
|
23491
|
+
tenantContext?: SyncDingTypeRequestTenantContext;
|
|
23492
|
+
workNo?: string;
|
|
23493
|
+
static names(): { [key: string]: string } {
|
|
23494
|
+
return {
|
|
23495
|
+
dingType: 'DingType',
|
|
23496
|
+
isDimission: 'IsDimission',
|
|
23497
|
+
source: 'Source',
|
|
23498
|
+
tenantContext: 'TenantContext',
|
|
23499
|
+
workNo: 'WorkNo',
|
|
23500
|
+
};
|
|
23501
|
+
}
|
|
23502
|
+
|
|
23503
|
+
static types(): { [key: string]: any } {
|
|
23504
|
+
return {
|
|
23505
|
+
dingType: 'string',
|
|
23506
|
+
isDimission: 'string',
|
|
23507
|
+
source: 'string',
|
|
23508
|
+
tenantContext: SyncDingTypeRequestTenantContext,
|
|
23509
|
+
workNo: 'string',
|
|
23510
|
+
};
|
|
23511
|
+
}
|
|
23512
|
+
|
|
23513
|
+
constructor(map?: { [key: string]: any }) {
|
|
23514
|
+
super(map);
|
|
23515
|
+
}
|
|
23516
|
+
}
|
|
23517
|
+
|
|
23518
|
+
export class SyncDingTypeShrinkRequest extends $tea.Model {
|
|
23519
|
+
dingType?: string;
|
|
23520
|
+
isDimission?: string;
|
|
23521
|
+
source?: string;
|
|
23522
|
+
tenantContextShrink?: string;
|
|
23523
|
+
workNo?: string;
|
|
23524
|
+
static names(): { [key: string]: string } {
|
|
23525
|
+
return {
|
|
23526
|
+
dingType: 'DingType',
|
|
23527
|
+
isDimission: 'IsDimission',
|
|
23528
|
+
source: 'Source',
|
|
23529
|
+
tenantContextShrink: 'TenantContext',
|
|
23530
|
+
workNo: 'WorkNo',
|
|
23531
|
+
};
|
|
23532
|
+
}
|
|
23533
|
+
|
|
23534
|
+
static types(): { [key: string]: any } {
|
|
23535
|
+
return {
|
|
23536
|
+
dingType: 'string',
|
|
23537
|
+
isDimission: 'string',
|
|
23538
|
+
source: 'string',
|
|
23539
|
+
tenantContextShrink: 'string',
|
|
23540
|
+
workNo: 'string',
|
|
23541
|
+
};
|
|
23542
|
+
}
|
|
23543
|
+
|
|
23544
|
+
constructor(map?: { [key: string]: any }) {
|
|
23545
|
+
super(map);
|
|
23546
|
+
}
|
|
23547
|
+
}
|
|
23548
|
+
|
|
23549
|
+
export class SyncDingTypeResponseBody extends $tea.Model {
|
|
23550
|
+
requestId?: string;
|
|
23551
|
+
success?: boolean;
|
|
23552
|
+
vendorRequestId?: string;
|
|
23553
|
+
vendorType?: string;
|
|
23554
|
+
static names(): { [key: string]: string } {
|
|
23555
|
+
return {
|
|
23556
|
+
requestId: 'requestId',
|
|
23557
|
+
success: 'success',
|
|
23558
|
+
vendorRequestId: 'vendorRequestId',
|
|
23559
|
+
vendorType: 'vendorType',
|
|
23560
|
+
};
|
|
23561
|
+
}
|
|
23562
|
+
|
|
23563
|
+
static types(): { [key: string]: any } {
|
|
23564
|
+
return {
|
|
23565
|
+
requestId: 'string',
|
|
23566
|
+
success: 'boolean',
|
|
23567
|
+
vendorRequestId: 'string',
|
|
23568
|
+
vendorType: 'string',
|
|
23569
|
+
};
|
|
23570
|
+
}
|
|
23571
|
+
|
|
23572
|
+
constructor(map?: { [key: string]: any }) {
|
|
23573
|
+
super(map);
|
|
23574
|
+
}
|
|
23575
|
+
}
|
|
23576
|
+
|
|
23577
|
+
export class SyncDingTypeResponse extends $tea.Model {
|
|
23578
|
+
headers?: { [key: string]: string };
|
|
23579
|
+
statusCode?: number;
|
|
23580
|
+
body?: SyncDingTypeResponseBody;
|
|
23581
|
+
static names(): { [key: string]: string } {
|
|
23582
|
+
return {
|
|
23583
|
+
headers: 'headers',
|
|
23584
|
+
statusCode: 'statusCode',
|
|
23585
|
+
body: 'body',
|
|
23586
|
+
};
|
|
23587
|
+
}
|
|
23588
|
+
|
|
23589
|
+
static types(): { [key: string]: any } {
|
|
23590
|
+
return {
|
|
23591
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
23592
|
+
statusCode: 'number',
|
|
23593
|
+
body: SyncDingTypeResponseBody,
|
|
23594
|
+
};
|
|
23595
|
+
}
|
|
23596
|
+
|
|
23597
|
+
constructor(map?: { [key: string]: any }) {
|
|
23598
|
+
super(map);
|
|
23599
|
+
}
|
|
23600
|
+
}
|
|
23601
|
+
|
|
23275
23602
|
export class TerminateInstanceHeaders extends $tea.Model {
|
|
23276
23603
|
commonHeaders?: { [key: string]: string };
|
|
23277
23604
|
accountContext?: TerminateInstanceHeadersAccountContext;
|
|
@@ -33203,6 +33530,44 @@ export class GetUserResponseBodyUnionEmpExt extends $tea.Model {
|
|
|
33203
33530
|
}
|
|
33204
33531
|
}
|
|
33205
33532
|
|
|
33533
|
+
export class GetUserLatestPlanHeadersAccountContext extends $tea.Model {
|
|
33534
|
+
accountId?: string;
|
|
33535
|
+
static names(): { [key: string]: string } {
|
|
33536
|
+
return {
|
|
33537
|
+
accountId: 'accountId',
|
|
33538
|
+
};
|
|
33539
|
+
}
|
|
33540
|
+
|
|
33541
|
+
static types(): { [key: string]: any } {
|
|
33542
|
+
return {
|
|
33543
|
+
accountId: 'string',
|
|
33544
|
+
};
|
|
33545
|
+
}
|
|
33546
|
+
|
|
33547
|
+
constructor(map?: { [key: string]: any }) {
|
|
33548
|
+
super(map);
|
|
33549
|
+
}
|
|
33550
|
+
}
|
|
33551
|
+
|
|
33552
|
+
export class GetUserLatestPlanRequestTenantContext extends $tea.Model {
|
|
33553
|
+
tenantId?: string;
|
|
33554
|
+
static names(): { [key: string]: string } {
|
|
33555
|
+
return {
|
|
33556
|
+
tenantId: 'tenantId',
|
|
33557
|
+
};
|
|
33558
|
+
}
|
|
33559
|
+
|
|
33560
|
+
static types(): { [key: string]: any } {
|
|
33561
|
+
return {
|
|
33562
|
+
tenantId: 'string',
|
|
33563
|
+
};
|
|
33564
|
+
}
|
|
33565
|
+
|
|
33566
|
+
constructor(map?: { [key: string]: any }) {
|
|
33567
|
+
super(map);
|
|
33568
|
+
}
|
|
33569
|
+
}
|
|
33570
|
+
|
|
33206
33571
|
export class GetWorkspaceHeadersAccountContext extends $tea.Model {
|
|
33207
33572
|
accountId?: string;
|
|
33208
33573
|
static names(): { [key: string]: string } {
|
|
@@ -39131,6 +39496,44 @@ export class SubscribeCalendarHeadersAccountContext extends $tea.Model {
|
|
|
39131
39496
|
}
|
|
39132
39497
|
}
|
|
39133
39498
|
|
|
39499
|
+
export class SyncDingTypeHeadersAccountContext extends $tea.Model {
|
|
39500
|
+
accountId?: string;
|
|
39501
|
+
static names(): { [key: string]: string } {
|
|
39502
|
+
return {
|
|
39503
|
+
accountId: 'accountId',
|
|
39504
|
+
};
|
|
39505
|
+
}
|
|
39506
|
+
|
|
39507
|
+
static types(): { [key: string]: any } {
|
|
39508
|
+
return {
|
|
39509
|
+
accountId: 'string',
|
|
39510
|
+
};
|
|
39511
|
+
}
|
|
39512
|
+
|
|
39513
|
+
constructor(map?: { [key: string]: any }) {
|
|
39514
|
+
super(map);
|
|
39515
|
+
}
|
|
39516
|
+
}
|
|
39517
|
+
|
|
39518
|
+
export class SyncDingTypeRequestTenantContext extends $tea.Model {
|
|
39519
|
+
tenantId?: string;
|
|
39520
|
+
static names(): { [key: string]: string } {
|
|
39521
|
+
return {
|
|
39522
|
+
tenantId: 'tenantId',
|
|
39523
|
+
};
|
|
39524
|
+
}
|
|
39525
|
+
|
|
39526
|
+
static types(): { [key: string]: any } {
|
|
39527
|
+
return {
|
|
39528
|
+
tenantId: 'string',
|
|
39529
|
+
};
|
|
39530
|
+
}
|
|
39531
|
+
|
|
39532
|
+
constructor(map?: { [key: string]: any }) {
|
|
39533
|
+
super(map);
|
|
39534
|
+
}
|
|
39535
|
+
}
|
|
39536
|
+
|
|
39134
39537
|
export class TerminateInstanceHeadersAccountContext extends $tea.Model {
|
|
39135
39538
|
accountId?: string;
|
|
39136
39539
|
static names(): { [key: string]: string } {
|
|
@@ -46329,6 +46732,58 @@ export default class Client extends OpenApi {
|
|
|
46329
46732
|
return await this.getUserWithOptions(request, headers, runtime);
|
|
46330
46733
|
}
|
|
46331
46734
|
|
|
46735
|
+
async getUserLatestPlanWithOptions(tmpReq: GetUserLatestPlanRequest, tmpHeader: GetUserLatestPlanHeaders, runtime: $Util.RuntimeOptions): Promise<GetUserLatestPlanResponse> {
|
|
46736
|
+
Util.validateModel(tmpReq);
|
|
46737
|
+
let request = new GetUserLatestPlanShrinkRequest({ });
|
|
46738
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
46739
|
+
let headers = new GetUserLatestPlanShrinkHeaders({ });
|
|
46740
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
46741
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
46742
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
46743
|
+
}
|
|
46744
|
+
|
|
46745
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
46746
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
46747
|
+
}
|
|
46748
|
+
|
|
46749
|
+
let body : {[key: string ]: any} = { };
|
|
46750
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
46751
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
46752
|
+
}
|
|
46753
|
+
|
|
46754
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
46755
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
46756
|
+
realHeaders = headers.commonHeaders;
|
|
46757
|
+
}
|
|
46758
|
+
|
|
46759
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
46760
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
46761
|
+
}
|
|
46762
|
+
|
|
46763
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
46764
|
+
headers: realHeaders,
|
|
46765
|
+
body: OpenApiUtil.parseToMap(body),
|
|
46766
|
+
});
|
|
46767
|
+
let params = new $OpenApi.Params({
|
|
46768
|
+
action: "GetUserLatestPlan",
|
|
46769
|
+
version: "2023-04-26",
|
|
46770
|
+
protocol: "HTTPS",
|
|
46771
|
+
pathname: `/aliding/v1/indepding/getUserLatestPlan`,
|
|
46772
|
+
method: "POST",
|
|
46773
|
+
authType: "AK",
|
|
46774
|
+
style: "ROA",
|
|
46775
|
+
reqBodyType: "formData",
|
|
46776
|
+
bodyType: "json",
|
|
46777
|
+
});
|
|
46778
|
+
return $tea.cast<GetUserLatestPlanResponse>(await this.callApi(params, req, runtime), new GetUserLatestPlanResponse({}));
|
|
46779
|
+
}
|
|
46780
|
+
|
|
46781
|
+
async getUserLatestPlan(request: GetUserLatestPlanRequest): Promise<GetUserLatestPlanResponse> {
|
|
46782
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
46783
|
+
let headers = new GetUserLatestPlanHeaders({ });
|
|
46784
|
+
return await this.getUserLatestPlanWithOptions(request, headers, runtime);
|
|
46785
|
+
}
|
|
46786
|
+
|
|
46332
46787
|
async getWorkspaceWithOptions(tmpReq: GetWorkspaceRequest, tmpHeader: GetWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise<GetWorkspaceResponse> {
|
|
46333
46788
|
Util.validateModel(tmpReq);
|
|
46334
46789
|
let request = new GetWorkspaceShrinkRequest({ });
|
|
@@ -50527,6 +50982,74 @@ export default class Client extends OpenApi {
|
|
|
50527
50982
|
return await this.subscribeCalendarWithOptions(request, headers, runtime);
|
|
50528
50983
|
}
|
|
50529
50984
|
|
|
50985
|
+
async syncDingTypeWithOptions(tmpReq: SyncDingTypeRequest, tmpHeader: SyncDingTypeHeaders, runtime: $Util.RuntimeOptions): Promise<SyncDingTypeResponse> {
|
|
50986
|
+
Util.validateModel(tmpReq);
|
|
50987
|
+
let request = new SyncDingTypeShrinkRequest({ });
|
|
50988
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
50989
|
+
let headers = new SyncDingTypeShrinkHeaders({ });
|
|
50990
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
50991
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
50992
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
50993
|
+
}
|
|
50994
|
+
|
|
50995
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
50996
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
50997
|
+
}
|
|
50998
|
+
|
|
50999
|
+
let body : {[key: string ]: any} = { };
|
|
51000
|
+
if (!Util.isUnset(request.dingType)) {
|
|
51001
|
+
body["DingType"] = request.dingType;
|
|
51002
|
+
}
|
|
51003
|
+
|
|
51004
|
+
if (!Util.isUnset(request.isDimission)) {
|
|
51005
|
+
body["IsDimission"] = request.isDimission;
|
|
51006
|
+
}
|
|
51007
|
+
|
|
51008
|
+
if (!Util.isUnset(request.source)) {
|
|
51009
|
+
body["Source"] = request.source;
|
|
51010
|
+
}
|
|
51011
|
+
|
|
51012
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
51013
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
51014
|
+
}
|
|
51015
|
+
|
|
51016
|
+
if (!Util.isUnset(request.workNo)) {
|
|
51017
|
+
body["WorkNo"] = request.workNo;
|
|
51018
|
+
}
|
|
51019
|
+
|
|
51020
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
51021
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
51022
|
+
realHeaders = headers.commonHeaders;
|
|
51023
|
+
}
|
|
51024
|
+
|
|
51025
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
51026
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
51027
|
+
}
|
|
51028
|
+
|
|
51029
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
51030
|
+
headers: realHeaders,
|
|
51031
|
+
body: OpenApiUtil.parseToMap(body),
|
|
51032
|
+
});
|
|
51033
|
+
let params = new $OpenApi.Params({
|
|
51034
|
+
action: "SyncDingType",
|
|
51035
|
+
version: "2023-04-26",
|
|
51036
|
+
protocol: "HTTPS",
|
|
51037
|
+
pathname: `/aliding/v1/indepding/syncDingType`,
|
|
51038
|
+
method: "POST",
|
|
51039
|
+
authType: "AK",
|
|
51040
|
+
style: "ROA",
|
|
51041
|
+
reqBodyType: "formData",
|
|
51042
|
+
bodyType: "json",
|
|
51043
|
+
});
|
|
51044
|
+
return $tea.cast<SyncDingTypeResponse>(await this.callApi(params, req, runtime), new SyncDingTypeResponse({}));
|
|
51045
|
+
}
|
|
51046
|
+
|
|
51047
|
+
async syncDingType(request: SyncDingTypeRequest): Promise<SyncDingTypeResponse> {
|
|
51048
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
51049
|
+
let headers = new SyncDingTypeHeaders({ });
|
|
51050
|
+
return await this.syncDingTypeWithOptions(request, headers, runtime);
|
|
51051
|
+
}
|
|
51052
|
+
|
|
50530
51053
|
async terminateInstanceWithOptions(request: TerminateInstanceRequest, tmpHeader: TerminateInstanceHeaders, runtime: $Util.RuntimeOptions): Promise<TerminateInstanceResponse> {
|
|
50531
51054
|
Util.validateModel(request);
|
|
50532
51055
|
let headers = new TerminateInstanceShrinkHeaders({ });
|