@alicloud/aliding20230426 2.7.0 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/aliding20230426",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
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,159 @@ 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
+ source?: string;
23490
+ tenantContext?: SyncDingTypeRequestTenantContext;
23491
+ workNo?: string;
23492
+ static names(): { [key: string]: string } {
23493
+ return {
23494
+ dingType: 'DingType',
23495
+ source: 'Source',
23496
+ tenantContext: 'TenantContext',
23497
+ workNo: 'WorkNo',
23498
+ };
23499
+ }
23500
+
23501
+ static types(): { [key: string]: any } {
23502
+ return {
23503
+ dingType: 'string',
23504
+ source: 'string',
23505
+ tenantContext: SyncDingTypeRequestTenantContext,
23506
+ workNo: 'string',
23507
+ };
23508
+ }
23509
+
23510
+ constructor(map?: { [key: string]: any }) {
23511
+ super(map);
23512
+ }
23513
+ }
23514
+
23515
+ export class SyncDingTypeShrinkRequest extends $tea.Model {
23516
+ dingType?: string;
23517
+ source?: string;
23518
+ tenantContextShrink?: string;
23519
+ workNo?: string;
23520
+ static names(): { [key: string]: string } {
23521
+ return {
23522
+ dingType: 'DingType',
23523
+ source: 'Source',
23524
+ tenantContextShrink: 'TenantContext',
23525
+ workNo: 'WorkNo',
23526
+ };
23527
+ }
23528
+
23529
+ static types(): { [key: string]: any } {
23530
+ return {
23531
+ dingType: 'string',
23532
+ source: 'string',
23533
+ tenantContextShrink: 'string',
23534
+ workNo: 'string',
23535
+ };
23536
+ }
23537
+
23538
+ constructor(map?: { [key: string]: any }) {
23539
+ super(map);
23540
+ }
23541
+ }
23542
+
23543
+ export class SyncDingTypeResponseBody extends $tea.Model {
23544
+ requestId?: string;
23545
+ success?: boolean;
23546
+ vendorRequestId?: string;
23547
+ vendorType?: string;
23548
+ static names(): { [key: string]: string } {
23549
+ return {
23550
+ requestId: 'requestId',
23551
+ success: 'success',
23552
+ vendorRequestId: 'vendorRequestId',
23553
+ vendorType: 'vendorType',
23554
+ };
23555
+ }
23556
+
23557
+ static types(): { [key: string]: any } {
23558
+ return {
23559
+ requestId: 'string',
23560
+ success: 'boolean',
23561
+ vendorRequestId: 'string',
23562
+ vendorType: 'string',
23563
+ };
23564
+ }
23565
+
23566
+ constructor(map?: { [key: string]: any }) {
23567
+ super(map);
23568
+ }
23569
+ }
23570
+
23571
+ export class SyncDingTypeResponse extends $tea.Model {
23572
+ headers?: { [key: string]: string };
23573
+ statusCode?: number;
23574
+ body?: SyncDingTypeResponseBody;
23575
+ static names(): { [key: string]: string } {
23576
+ return {
23577
+ headers: 'headers',
23578
+ statusCode: 'statusCode',
23579
+ body: 'body',
23580
+ };
23581
+ }
23582
+
23583
+ static types(): { [key: string]: any } {
23584
+ return {
23585
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
23586
+ statusCode: 'number',
23587
+ body: SyncDingTypeResponseBody,
23588
+ };
23589
+ }
23590
+
23591
+ constructor(map?: { [key: string]: any }) {
23592
+ super(map);
23593
+ }
23594
+ }
23595
+
23275
23596
  export class TerminateInstanceHeaders extends $tea.Model {
23276
23597
  commonHeaders?: { [key: string]: string };
23277
23598
  accountContext?: TerminateInstanceHeadersAccountContext;
@@ -33203,6 +33524,44 @@ export class GetUserResponseBodyUnionEmpExt extends $tea.Model {
33203
33524
  }
33204
33525
  }
33205
33526
 
33527
+ export class GetUserLatestPlanHeadersAccountContext extends $tea.Model {
33528
+ accountId?: string;
33529
+ static names(): { [key: string]: string } {
33530
+ return {
33531
+ accountId: 'accountId',
33532
+ };
33533
+ }
33534
+
33535
+ static types(): { [key: string]: any } {
33536
+ return {
33537
+ accountId: 'string',
33538
+ };
33539
+ }
33540
+
33541
+ constructor(map?: { [key: string]: any }) {
33542
+ super(map);
33543
+ }
33544
+ }
33545
+
33546
+ export class GetUserLatestPlanRequestTenantContext extends $tea.Model {
33547
+ tenantId?: string;
33548
+ static names(): { [key: string]: string } {
33549
+ return {
33550
+ tenantId: 'tenantId',
33551
+ };
33552
+ }
33553
+
33554
+ static types(): { [key: string]: any } {
33555
+ return {
33556
+ tenantId: 'string',
33557
+ };
33558
+ }
33559
+
33560
+ constructor(map?: { [key: string]: any }) {
33561
+ super(map);
33562
+ }
33563
+ }
33564
+
33206
33565
  export class GetWorkspaceHeadersAccountContext extends $tea.Model {
33207
33566
  accountId?: string;
33208
33567
  static names(): { [key: string]: string } {
@@ -39131,6 +39490,44 @@ export class SubscribeCalendarHeadersAccountContext extends $tea.Model {
39131
39490
  }
39132
39491
  }
39133
39492
 
39493
+ export class SyncDingTypeHeadersAccountContext extends $tea.Model {
39494
+ accountId?: string;
39495
+ static names(): { [key: string]: string } {
39496
+ return {
39497
+ accountId: 'accountId',
39498
+ };
39499
+ }
39500
+
39501
+ static types(): { [key: string]: any } {
39502
+ return {
39503
+ accountId: 'string',
39504
+ };
39505
+ }
39506
+
39507
+ constructor(map?: { [key: string]: any }) {
39508
+ super(map);
39509
+ }
39510
+ }
39511
+
39512
+ export class SyncDingTypeRequestTenantContext extends $tea.Model {
39513
+ tenantId?: string;
39514
+ static names(): { [key: string]: string } {
39515
+ return {
39516
+ tenantId: 'tenantId',
39517
+ };
39518
+ }
39519
+
39520
+ static types(): { [key: string]: any } {
39521
+ return {
39522
+ tenantId: 'string',
39523
+ };
39524
+ }
39525
+
39526
+ constructor(map?: { [key: string]: any }) {
39527
+ super(map);
39528
+ }
39529
+ }
39530
+
39134
39531
  export class TerminateInstanceHeadersAccountContext extends $tea.Model {
39135
39532
  accountId?: string;
39136
39533
  static names(): { [key: string]: string } {
@@ -46329,6 +46726,58 @@ export default class Client extends OpenApi {
46329
46726
  return await this.getUserWithOptions(request, headers, runtime);
46330
46727
  }
46331
46728
 
46729
+ async getUserLatestPlanWithOptions(tmpReq: GetUserLatestPlanRequest, tmpHeader: GetUserLatestPlanHeaders, runtime: $Util.RuntimeOptions): Promise<GetUserLatestPlanResponse> {
46730
+ Util.validateModel(tmpReq);
46731
+ let request = new GetUserLatestPlanShrinkRequest({ });
46732
+ OpenApiUtil.convert(tmpReq, request);
46733
+ let headers = new GetUserLatestPlanShrinkHeaders({ });
46734
+ OpenApiUtil.convert(tmpHeader, headers);
46735
+ if (!Util.isUnset(tmpHeader.accountContext)) {
46736
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
46737
+ }
46738
+
46739
+ if (!Util.isUnset(tmpReq.tenantContext)) {
46740
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
46741
+ }
46742
+
46743
+ let body : {[key: string ]: any} = { };
46744
+ if (!Util.isUnset(request.tenantContextShrink)) {
46745
+ body["TenantContext"] = request.tenantContextShrink;
46746
+ }
46747
+
46748
+ let realHeaders : {[key: string ]: string} = { };
46749
+ if (!Util.isUnset(headers.commonHeaders)) {
46750
+ realHeaders = headers.commonHeaders;
46751
+ }
46752
+
46753
+ if (!Util.isUnset(headers.accountContextShrink)) {
46754
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
46755
+ }
46756
+
46757
+ let req = new $OpenApi.OpenApiRequest({
46758
+ headers: realHeaders,
46759
+ body: OpenApiUtil.parseToMap(body),
46760
+ });
46761
+ let params = new $OpenApi.Params({
46762
+ action: "GetUserLatestPlan",
46763
+ version: "2023-04-26",
46764
+ protocol: "HTTPS",
46765
+ pathname: `/aliding/v1/indepding/getUserLatestPlan`,
46766
+ method: "POST",
46767
+ authType: "AK",
46768
+ style: "ROA",
46769
+ reqBodyType: "formData",
46770
+ bodyType: "json",
46771
+ });
46772
+ return $tea.cast<GetUserLatestPlanResponse>(await this.callApi(params, req, runtime), new GetUserLatestPlanResponse({}));
46773
+ }
46774
+
46775
+ async getUserLatestPlan(request: GetUserLatestPlanRequest): Promise<GetUserLatestPlanResponse> {
46776
+ let runtime = new $Util.RuntimeOptions({ });
46777
+ let headers = new GetUserLatestPlanHeaders({ });
46778
+ return await this.getUserLatestPlanWithOptions(request, headers, runtime);
46779
+ }
46780
+
46332
46781
  async getWorkspaceWithOptions(tmpReq: GetWorkspaceRequest, tmpHeader: GetWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise<GetWorkspaceResponse> {
46333
46782
  Util.validateModel(tmpReq);
46334
46783
  let request = new GetWorkspaceShrinkRequest({ });
@@ -50527,6 +50976,70 @@ export default class Client extends OpenApi {
50527
50976
  return await this.subscribeCalendarWithOptions(request, headers, runtime);
50528
50977
  }
50529
50978
 
50979
+ async syncDingTypeWithOptions(tmpReq: SyncDingTypeRequest, tmpHeader: SyncDingTypeHeaders, runtime: $Util.RuntimeOptions): Promise<SyncDingTypeResponse> {
50980
+ Util.validateModel(tmpReq);
50981
+ let request = new SyncDingTypeShrinkRequest({ });
50982
+ OpenApiUtil.convert(tmpReq, request);
50983
+ let headers = new SyncDingTypeShrinkHeaders({ });
50984
+ OpenApiUtil.convert(tmpHeader, headers);
50985
+ if (!Util.isUnset(tmpHeader.accountContext)) {
50986
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
50987
+ }
50988
+
50989
+ if (!Util.isUnset(tmpReq.tenantContext)) {
50990
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
50991
+ }
50992
+
50993
+ let body : {[key: string ]: any} = { };
50994
+ if (!Util.isUnset(request.dingType)) {
50995
+ body["DingType"] = request.dingType;
50996
+ }
50997
+
50998
+ if (!Util.isUnset(request.source)) {
50999
+ body["Source"] = request.source;
51000
+ }
51001
+
51002
+ if (!Util.isUnset(request.tenantContextShrink)) {
51003
+ body["TenantContext"] = request.tenantContextShrink;
51004
+ }
51005
+
51006
+ if (!Util.isUnset(request.workNo)) {
51007
+ body["WorkNo"] = request.workNo;
51008
+ }
51009
+
51010
+ let realHeaders : {[key: string ]: string} = { };
51011
+ if (!Util.isUnset(headers.commonHeaders)) {
51012
+ realHeaders = headers.commonHeaders;
51013
+ }
51014
+
51015
+ if (!Util.isUnset(headers.accountContextShrink)) {
51016
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
51017
+ }
51018
+
51019
+ let req = new $OpenApi.OpenApiRequest({
51020
+ headers: realHeaders,
51021
+ body: OpenApiUtil.parseToMap(body),
51022
+ });
51023
+ let params = new $OpenApi.Params({
51024
+ action: "SyncDingType",
51025
+ version: "2023-04-26",
51026
+ protocol: "HTTPS",
51027
+ pathname: `/aliding/v1/indepding/syncDingType`,
51028
+ method: "POST",
51029
+ authType: "AK",
51030
+ style: "ROA",
51031
+ reqBodyType: "formData",
51032
+ bodyType: "json",
51033
+ });
51034
+ return $tea.cast<SyncDingTypeResponse>(await this.callApi(params, req, runtime), new SyncDingTypeResponse({}));
51035
+ }
51036
+
51037
+ async syncDingType(request: SyncDingTypeRequest): Promise<SyncDingTypeResponse> {
51038
+ let runtime = new $Util.RuntimeOptions({ });
51039
+ let headers = new SyncDingTypeHeaders({ });
51040
+ return await this.syncDingTypeWithOptions(request, headers, runtime);
51041
+ }
51042
+
50530
51043
  async terminateInstanceWithOptions(request: TerminateInstanceRequest, tmpHeader: TerminateInstanceHeaders, runtime: $Util.RuntimeOptions): Promise<TerminateInstanceResponse> {
50531
51044
  Util.validateModel(request);
50532
51045
  let headers = new TerminateInstanceShrinkHeaders({ });