@alicloud/aliding20230426 2.4.2 → 2.5.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.4.2",
3
+ "version": "2.5.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -3507,6 +3507,180 @@ export class CreateOrgHonorTemplateResponse extends $tea.Model {
3507
3507
  }
3508
3508
  }
3509
3509
 
3510
+ export class CreatePersonalTodoTaskHeaders extends $tea.Model {
3511
+ commonHeaders?: { [key: string]: string };
3512
+ accountContext?: CreatePersonalTodoTaskHeadersAccountContext;
3513
+ static names(): { [key: string]: string } {
3514
+ return {
3515
+ commonHeaders: 'commonHeaders',
3516
+ accountContext: 'AccountContext',
3517
+ };
3518
+ }
3519
+
3520
+ static types(): { [key: string]: any } {
3521
+ return {
3522
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3523
+ accountContext: CreatePersonalTodoTaskHeadersAccountContext,
3524
+ };
3525
+ }
3526
+
3527
+ constructor(map?: { [key: string]: any }) {
3528
+ super(map);
3529
+ }
3530
+ }
3531
+
3532
+ export class CreatePersonalTodoTaskShrinkHeaders extends $tea.Model {
3533
+ commonHeaders?: { [key: string]: string };
3534
+ accountContextShrink?: string;
3535
+ static names(): { [key: string]: string } {
3536
+ return {
3537
+ commonHeaders: 'commonHeaders',
3538
+ accountContextShrink: 'AccountContext',
3539
+ };
3540
+ }
3541
+
3542
+ static types(): { [key: string]: any } {
3543
+ return {
3544
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3545
+ accountContextShrink: 'string',
3546
+ };
3547
+ }
3548
+
3549
+ constructor(map?: { [key: string]: any }) {
3550
+ super(map);
3551
+ }
3552
+ }
3553
+
3554
+ export class CreatePersonalTodoTaskRequest extends $tea.Model {
3555
+ description?: string;
3556
+ dueTime?: number;
3557
+ executorIds?: string[];
3558
+ notifyConfigs?: CreatePersonalTodoTaskRequestNotifyConfigs;
3559
+ participantIds?: string[];
3560
+ subject?: string;
3561
+ tenantContext?: CreatePersonalTodoTaskRequestTenantContext;
3562
+ static names(): { [key: string]: string } {
3563
+ return {
3564
+ description: 'Description',
3565
+ dueTime: 'DueTime',
3566
+ executorIds: 'ExecutorIds',
3567
+ notifyConfigs: 'NotifyConfigs',
3568
+ participantIds: 'ParticipantIds',
3569
+ subject: 'Subject',
3570
+ tenantContext: 'TenantContext',
3571
+ };
3572
+ }
3573
+
3574
+ static types(): { [key: string]: any } {
3575
+ return {
3576
+ description: 'string',
3577
+ dueTime: 'number',
3578
+ executorIds: { 'type': 'array', 'itemType': 'string' },
3579
+ notifyConfigs: CreatePersonalTodoTaskRequestNotifyConfigs,
3580
+ participantIds: { 'type': 'array', 'itemType': 'string' },
3581
+ subject: 'string',
3582
+ tenantContext: CreatePersonalTodoTaskRequestTenantContext,
3583
+ };
3584
+ }
3585
+
3586
+ constructor(map?: { [key: string]: any }) {
3587
+ super(map);
3588
+ }
3589
+ }
3590
+
3591
+ export class CreatePersonalTodoTaskShrinkRequest extends $tea.Model {
3592
+ description?: string;
3593
+ dueTime?: number;
3594
+ executorIdsShrink?: string;
3595
+ notifyConfigsShrink?: string;
3596
+ participantIdsShrink?: string;
3597
+ subject?: string;
3598
+ tenantContextShrink?: string;
3599
+ static names(): { [key: string]: string } {
3600
+ return {
3601
+ description: 'Description',
3602
+ dueTime: 'DueTime',
3603
+ executorIdsShrink: 'ExecutorIds',
3604
+ notifyConfigsShrink: 'NotifyConfigs',
3605
+ participantIdsShrink: 'ParticipantIds',
3606
+ subject: 'Subject',
3607
+ tenantContextShrink: 'TenantContext',
3608
+ };
3609
+ }
3610
+
3611
+ static types(): { [key: string]: any } {
3612
+ return {
3613
+ description: 'string',
3614
+ dueTime: 'number',
3615
+ executorIdsShrink: 'string',
3616
+ notifyConfigsShrink: 'string',
3617
+ participantIdsShrink: 'string',
3618
+ subject: 'string',
3619
+ tenantContextShrink: 'string',
3620
+ };
3621
+ }
3622
+
3623
+ constructor(map?: { [key: string]: any }) {
3624
+ super(map);
3625
+ }
3626
+ }
3627
+
3628
+ export class CreatePersonalTodoTaskResponseBody extends $tea.Model {
3629
+ createdTime?: number;
3630
+ requestId?: string;
3631
+ taskId?: string;
3632
+ vendorRequestId?: string;
3633
+ vendorType?: string;
3634
+ static names(): { [key: string]: string } {
3635
+ return {
3636
+ createdTime: 'createdTime',
3637
+ requestId: 'requestId',
3638
+ taskId: 'taskId',
3639
+ vendorRequestId: 'vendorRequestId',
3640
+ vendorType: 'vendorType',
3641
+ };
3642
+ }
3643
+
3644
+ static types(): { [key: string]: any } {
3645
+ return {
3646
+ createdTime: 'number',
3647
+ requestId: 'string',
3648
+ taskId: 'string',
3649
+ vendorRequestId: 'string',
3650
+ vendorType: 'string',
3651
+ };
3652
+ }
3653
+
3654
+ constructor(map?: { [key: string]: any }) {
3655
+ super(map);
3656
+ }
3657
+ }
3658
+
3659
+ export class CreatePersonalTodoTaskResponse extends $tea.Model {
3660
+ headers: { [key: string]: string };
3661
+ statusCode: number;
3662
+ body: CreatePersonalTodoTaskResponseBody;
3663
+ static names(): { [key: string]: string } {
3664
+ return {
3665
+ headers: 'headers',
3666
+ statusCode: 'statusCode',
3667
+ body: 'body',
3668
+ };
3669
+ }
3670
+
3671
+ static types(): { [key: string]: any } {
3672
+ return {
3673
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3674
+ statusCode: 'number',
3675
+ body: CreatePersonalTodoTaskResponseBody,
3676
+ };
3677
+ }
3678
+
3679
+ constructor(map?: { [key: string]: any }) {
3680
+ super(map);
3681
+ }
3682
+ }
3683
+
3510
3684
  export class CreateReportHeaders extends $tea.Model {
3511
3685
  commonHeaders?: { [key: string]: string };
3512
3686
  accountContext?: CreateReportHeadersAccountContext;
@@ -25447,6 +25621,63 @@ export class CreateOrgHonorTemplateRequestTenantContext extends $tea.Model {
25447
25621
  }
25448
25622
  }
25449
25623
 
25624
+ export class CreatePersonalTodoTaskHeadersAccountContext extends $tea.Model {
25625
+ userToken?: string;
25626
+ static names(): { [key: string]: string } {
25627
+ return {
25628
+ userToken: 'userToken',
25629
+ };
25630
+ }
25631
+
25632
+ static types(): { [key: string]: any } {
25633
+ return {
25634
+ userToken: 'string',
25635
+ };
25636
+ }
25637
+
25638
+ constructor(map?: { [key: string]: any }) {
25639
+ super(map);
25640
+ }
25641
+ }
25642
+
25643
+ export class CreatePersonalTodoTaskRequestNotifyConfigs extends $tea.Model {
25644
+ dingNotify?: string;
25645
+ static names(): { [key: string]: string } {
25646
+ return {
25647
+ dingNotify: 'DingNotify',
25648
+ };
25649
+ }
25650
+
25651
+ static types(): { [key: string]: any } {
25652
+ return {
25653
+ dingNotify: 'string',
25654
+ };
25655
+ }
25656
+
25657
+ constructor(map?: { [key: string]: any }) {
25658
+ super(map);
25659
+ }
25660
+ }
25661
+
25662
+ export class CreatePersonalTodoTaskRequestTenantContext extends $tea.Model {
25663
+ tenantId?: string;
25664
+ static names(): { [key: string]: string } {
25665
+ return {
25666
+ tenantId: 'tenantId',
25667
+ };
25668
+ }
25669
+
25670
+ static types(): { [key: string]: any } {
25671
+ return {
25672
+ tenantId: 'string',
25673
+ };
25674
+ }
25675
+
25676
+ constructor(map?: { [key: string]: any }) {
25677
+ super(map);
25678
+ }
25679
+ }
25680
+
25450
25681
  export class CreateReportHeadersAccountContext extends $tea.Model {
25451
25682
  accountId?: string;
25452
25683
  static names(): { [key: string]: string } {
@@ -38399,6 +38630,94 @@ export default class Client extends OpenApi {
38399
38630
  return await this.createOrgHonorTemplateWithOptions(request, headers, runtime);
38400
38631
  }
38401
38632
 
38633
+ async createPersonalTodoTaskWithOptions(tmpReq: CreatePersonalTodoTaskRequest, tmpHeader: CreatePersonalTodoTaskHeaders, runtime: $Util.RuntimeOptions): Promise<CreatePersonalTodoTaskResponse> {
38634
+ Util.validateModel(tmpReq);
38635
+ let request = new CreatePersonalTodoTaskShrinkRequest({ });
38636
+ OpenApiUtil.convert(tmpReq, request);
38637
+ let headers = new CreatePersonalTodoTaskShrinkHeaders({ });
38638
+ OpenApiUtil.convert(tmpHeader, headers);
38639
+ if (!Util.isUnset(tmpHeader.accountContext)) {
38640
+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
38641
+ }
38642
+
38643
+ if (!Util.isUnset(tmpReq.executorIds)) {
38644
+ request.executorIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "ExecutorIds", "json");
38645
+ }
38646
+
38647
+ if (!Util.isUnset(tmpReq.notifyConfigs)) {
38648
+ request.notifyConfigsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.notifyConfigs, "NotifyConfigs", "json");
38649
+ }
38650
+
38651
+ if (!Util.isUnset(tmpReq.participantIds)) {
38652
+ request.participantIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.participantIds, "ParticipantIds", "json");
38653
+ }
38654
+
38655
+ if (!Util.isUnset(tmpReq.tenantContext)) {
38656
+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
38657
+ }
38658
+
38659
+ let body : {[key: string ]: any} = { };
38660
+ if (!Util.isUnset(request.description)) {
38661
+ body["Description"] = request.description;
38662
+ }
38663
+
38664
+ if (!Util.isUnset(request.dueTime)) {
38665
+ body["DueTime"] = request.dueTime;
38666
+ }
38667
+
38668
+ if (!Util.isUnset(request.executorIdsShrink)) {
38669
+ body["ExecutorIds"] = request.executorIdsShrink;
38670
+ }
38671
+
38672
+ if (!Util.isUnset(request.notifyConfigsShrink)) {
38673
+ body["NotifyConfigs"] = request.notifyConfigsShrink;
38674
+ }
38675
+
38676
+ if (!Util.isUnset(request.participantIdsShrink)) {
38677
+ body["ParticipantIds"] = request.participantIdsShrink;
38678
+ }
38679
+
38680
+ if (!Util.isUnset(request.subject)) {
38681
+ body["Subject"] = request.subject;
38682
+ }
38683
+
38684
+ if (!Util.isUnset(request.tenantContextShrink)) {
38685
+ body["TenantContext"] = request.tenantContextShrink;
38686
+ }
38687
+
38688
+ let realHeaders : {[key: string ]: string} = { };
38689
+ if (!Util.isUnset(headers.commonHeaders)) {
38690
+ realHeaders = headers.commonHeaders;
38691
+ }
38692
+
38693
+ if (!Util.isUnset(headers.accountContextShrink)) {
38694
+ realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
38695
+ }
38696
+
38697
+ let req = new $OpenApi.OpenApiRequest({
38698
+ headers: realHeaders,
38699
+ body: OpenApiUtil.parseToMap(body),
38700
+ });
38701
+ let params = new $OpenApi.Params({
38702
+ action: "CreatePersonalTodoTask",
38703
+ version: "2023-04-26",
38704
+ protocol: "HTTPS",
38705
+ pathname: `/dingtalk/v1/task/createPersonalTodoTask`,
38706
+ method: "POST",
38707
+ authType: "AK",
38708
+ style: "ROA",
38709
+ reqBodyType: "formData",
38710
+ bodyType: "json",
38711
+ });
38712
+ return $tea.cast<CreatePersonalTodoTaskResponse>(await this.callApi(params, req, runtime), new CreatePersonalTodoTaskResponse({}));
38713
+ }
38714
+
38715
+ async createPersonalTodoTask(request: CreatePersonalTodoTaskRequest): Promise<CreatePersonalTodoTaskResponse> {
38716
+ let runtime = new $Util.RuntimeOptions({ });
38717
+ let headers = new CreatePersonalTodoTaskHeaders({ });
38718
+ return await this.createPersonalTodoTaskWithOptions(request, headers, runtime);
38719
+ }
38720
+
38402
38721
  async createReportWithOptions(tmpReq: CreateReportRequest, tmpHeader: CreateReportHeaders, runtime: $Util.RuntimeOptions): Promise<CreateReportResponse> {
38403
38722
  Util.validateModel(tmpReq);
38404
38723
  let request = new CreateReportShrinkRequest({ });