@alicloud/aliding20230426 2.20.2 → 2.21.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 +302 -0
- package/dist/client.js +362 -36
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +525 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -8327,6 +8327,277 @@ export class CreateSubscribedCalendarResponse extends $tea.Model {
|
|
|
8327
8327
|
}
|
|
8328
8328
|
}
|
|
8329
8329
|
|
|
8330
|
+
export class CreateTicketHeaders extends $tea.Model {
|
|
8331
|
+
commonHeaders?: { [key: string]: string };
|
|
8332
|
+
accountContext?: CreateTicketHeadersAccountContext;
|
|
8333
|
+
static names(): { [key: string]: string } {
|
|
8334
|
+
return {
|
|
8335
|
+
commonHeaders: 'commonHeaders',
|
|
8336
|
+
accountContext: 'AccountContext',
|
|
8337
|
+
};
|
|
8338
|
+
}
|
|
8339
|
+
|
|
8340
|
+
static types(): { [key: string]: any } {
|
|
8341
|
+
return {
|
|
8342
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8343
|
+
accountContext: CreateTicketHeadersAccountContext,
|
|
8344
|
+
};
|
|
8345
|
+
}
|
|
8346
|
+
|
|
8347
|
+
constructor(map?: { [key: string]: any }) {
|
|
8348
|
+
super(map);
|
|
8349
|
+
}
|
|
8350
|
+
}
|
|
8351
|
+
|
|
8352
|
+
export class CreateTicketShrinkHeaders extends $tea.Model {
|
|
8353
|
+
commonHeaders?: { [key: string]: string };
|
|
8354
|
+
accountContextShrink?: string;
|
|
8355
|
+
static names(): { [key: string]: string } {
|
|
8356
|
+
return {
|
|
8357
|
+
commonHeaders: 'commonHeaders',
|
|
8358
|
+
accountContextShrink: 'AccountContext',
|
|
8359
|
+
};
|
|
8360
|
+
}
|
|
8361
|
+
|
|
8362
|
+
static types(): { [key: string]: any } {
|
|
8363
|
+
return {
|
|
8364
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8365
|
+
accountContextShrink: 'string',
|
|
8366
|
+
};
|
|
8367
|
+
}
|
|
8368
|
+
|
|
8369
|
+
constructor(map?: { [key: string]: any }) {
|
|
8370
|
+
super(map);
|
|
8371
|
+
}
|
|
8372
|
+
}
|
|
8373
|
+
|
|
8374
|
+
export class CreateTicketRequest extends $tea.Model {
|
|
8375
|
+
/**
|
|
8376
|
+
* @example
|
|
8377
|
+
* []
|
|
8378
|
+
*/
|
|
8379
|
+
customFields?: string;
|
|
8380
|
+
notify?: CreateTicketRequestNotify;
|
|
8381
|
+
/**
|
|
8382
|
+
* @remarks
|
|
8383
|
+
* This parameter is required.
|
|
8384
|
+
*
|
|
8385
|
+
* @example
|
|
8386
|
+
* G3IOe205RLciE
|
|
8387
|
+
*/
|
|
8388
|
+
openTeamId?: string;
|
|
8389
|
+
/**
|
|
8390
|
+
* @remarks
|
|
8391
|
+
* This parameter is required.
|
|
8392
|
+
*
|
|
8393
|
+
* @example
|
|
8394
|
+
* xxxx
|
|
8395
|
+
*/
|
|
8396
|
+
openTemplateBizId?: string;
|
|
8397
|
+
/**
|
|
8398
|
+
* @remarks
|
|
8399
|
+
* This parameter is required.
|
|
8400
|
+
*/
|
|
8401
|
+
processorUserIds?: string[];
|
|
8402
|
+
/**
|
|
8403
|
+
* @remarks
|
|
8404
|
+
* This parameter is required.
|
|
8405
|
+
*
|
|
8406
|
+
* @example
|
|
8407
|
+
* SG
|
|
8408
|
+
*/
|
|
8409
|
+
scene?: string;
|
|
8410
|
+
sceneContext?: CreateTicketRequestSceneContext;
|
|
8411
|
+
tenantContext?: CreateTicketRequestTenantContext;
|
|
8412
|
+
/**
|
|
8413
|
+
* @remarks
|
|
8414
|
+
* This parameter is required.
|
|
8415
|
+
*
|
|
8416
|
+
* @example
|
|
8417
|
+
* Killer Ball Wo Mouichido
|
|
8418
|
+
*/
|
|
8419
|
+
title?: string;
|
|
8420
|
+
static names(): { [key: string]: string } {
|
|
8421
|
+
return {
|
|
8422
|
+
customFields: 'CustomFields',
|
|
8423
|
+
notify: 'Notify',
|
|
8424
|
+
openTeamId: 'OpenTeamId',
|
|
8425
|
+
openTemplateBizId: 'OpenTemplateBizId',
|
|
8426
|
+
processorUserIds: 'ProcessorUserIds',
|
|
8427
|
+
scene: 'Scene',
|
|
8428
|
+
sceneContext: 'SceneContext',
|
|
8429
|
+
tenantContext: 'TenantContext',
|
|
8430
|
+
title: 'Title',
|
|
8431
|
+
};
|
|
8432
|
+
}
|
|
8433
|
+
|
|
8434
|
+
static types(): { [key: string]: any } {
|
|
8435
|
+
return {
|
|
8436
|
+
customFields: 'string',
|
|
8437
|
+
notify: CreateTicketRequestNotify,
|
|
8438
|
+
openTeamId: 'string',
|
|
8439
|
+
openTemplateBizId: 'string',
|
|
8440
|
+
processorUserIds: { 'type': 'array', 'itemType': 'string' },
|
|
8441
|
+
scene: 'string',
|
|
8442
|
+
sceneContext: CreateTicketRequestSceneContext,
|
|
8443
|
+
tenantContext: CreateTicketRequestTenantContext,
|
|
8444
|
+
title: 'string',
|
|
8445
|
+
};
|
|
8446
|
+
}
|
|
8447
|
+
|
|
8448
|
+
constructor(map?: { [key: string]: any }) {
|
|
8449
|
+
super(map);
|
|
8450
|
+
}
|
|
8451
|
+
}
|
|
8452
|
+
|
|
8453
|
+
export class CreateTicketShrinkRequest extends $tea.Model {
|
|
8454
|
+
/**
|
|
8455
|
+
* @example
|
|
8456
|
+
* []
|
|
8457
|
+
*/
|
|
8458
|
+
customFields?: string;
|
|
8459
|
+
notifyShrink?: string;
|
|
8460
|
+
/**
|
|
8461
|
+
* @remarks
|
|
8462
|
+
* This parameter is required.
|
|
8463
|
+
*
|
|
8464
|
+
* @example
|
|
8465
|
+
* G3IOe205RLciE
|
|
8466
|
+
*/
|
|
8467
|
+
openTeamId?: string;
|
|
8468
|
+
/**
|
|
8469
|
+
* @remarks
|
|
8470
|
+
* This parameter is required.
|
|
8471
|
+
*
|
|
8472
|
+
* @example
|
|
8473
|
+
* xxxx
|
|
8474
|
+
*/
|
|
8475
|
+
openTemplateBizId?: string;
|
|
8476
|
+
/**
|
|
8477
|
+
* @remarks
|
|
8478
|
+
* This parameter is required.
|
|
8479
|
+
*/
|
|
8480
|
+
processorUserIdsShrink?: string;
|
|
8481
|
+
/**
|
|
8482
|
+
* @remarks
|
|
8483
|
+
* This parameter is required.
|
|
8484
|
+
*
|
|
8485
|
+
* @example
|
|
8486
|
+
* SG
|
|
8487
|
+
*/
|
|
8488
|
+
scene?: string;
|
|
8489
|
+
sceneContextShrink?: string;
|
|
8490
|
+
tenantContextShrink?: string;
|
|
8491
|
+
/**
|
|
8492
|
+
* @remarks
|
|
8493
|
+
* This parameter is required.
|
|
8494
|
+
*
|
|
8495
|
+
* @example
|
|
8496
|
+
* Killer Ball Wo Mouichido
|
|
8497
|
+
*/
|
|
8498
|
+
title?: string;
|
|
8499
|
+
static names(): { [key: string]: string } {
|
|
8500
|
+
return {
|
|
8501
|
+
customFields: 'CustomFields',
|
|
8502
|
+
notifyShrink: 'Notify',
|
|
8503
|
+
openTeamId: 'OpenTeamId',
|
|
8504
|
+
openTemplateBizId: 'OpenTemplateBizId',
|
|
8505
|
+
processorUserIdsShrink: 'ProcessorUserIds',
|
|
8506
|
+
scene: 'Scene',
|
|
8507
|
+
sceneContextShrink: 'SceneContext',
|
|
8508
|
+
tenantContextShrink: 'TenantContext',
|
|
8509
|
+
title: 'Title',
|
|
8510
|
+
};
|
|
8511
|
+
}
|
|
8512
|
+
|
|
8513
|
+
static types(): { [key: string]: any } {
|
|
8514
|
+
return {
|
|
8515
|
+
customFields: 'string',
|
|
8516
|
+
notifyShrink: 'string',
|
|
8517
|
+
openTeamId: 'string',
|
|
8518
|
+
openTemplateBizId: 'string',
|
|
8519
|
+
processorUserIdsShrink: 'string',
|
|
8520
|
+
scene: 'string',
|
|
8521
|
+
sceneContextShrink: 'string',
|
|
8522
|
+
tenantContextShrink: 'string',
|
|
8523
|
+
title: 'string',
|
|
8524
|
+
};
|
|
8525
|
+
}
|
|
8526
|
+
|
|
8527
|
+
constructor(map?: { [key: string]: any }) {
|
|
8528
|
+
super(map);
|
|
8529
|
+
}
|
|
8530
|
+
}
|
|
8531
|
+
|
|
8532
|
+
export class CreateTicketResponseBody extends $tea.Model {
|
|
8533
|
+
/**
|
|
8534
|
+
* @example
|
|
8535
|
+
* a8iSxxxxtgiE
|
|
8536
|
+
*/
|
|
8537
|
+
openTicketId?: string;
|
|
8538
|
+
/**
|
|
8539
|
+
* @example
|
|
8540
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
8541
|
+
*/
|
|
8542
|
+
requestId?: string;
|
|
8543
|
+
/**
|
|
8544
|
+
* @example
|
|
8545
|
+
* 0FAAEC9C-C6C8-5C87-AF8E-1195889BBXXX
|
|
8546
|
+
*/
|
|
8547
|
+
vendorRequestId?: string;
|
|
8548
|
+
/**
|
|
8549
|
+
* @example
|
|
8550
|
+
* dingtalk
|
|
8551
|
+
*/
|
|
8552
|
+
vendorType?: string;
|
|
8553
|
+
static names(): { [key: string]: string } {
|
|
8554
|
+
return {
|
|
8555
|
+
openTicketId: 'openTicketId',
|
|
8556
|
+
requestId: 'requestId',
|
|
8557
|
+
vendorRequestId: 'vendorRequestId',
|
|
8558
|
+
vendorType: 'vendorType',
|
|
8559
|
+
};
|
|
8560
|
+
}
|
|
8561
|
+
|
|
8562
|
+
static types(): { [key: string]: any } {
|
|
8563
|
+
return {
|
|
8564
|
+
openTicketId: 'string',
|
|
8565
|
+
requestId: 'string',
|
|
8566
|
+
vendorRequestId: 'string',
|
|
8567
|
+
vendorType: 'string',
|
|
8568
|
+
};
|
|
8569
|
+
}
|
|
8570
|
+
|
|
8571
|
+
constructor(map?: { [key: string]: any }) {
|
|
8572
|
+
super(map);
|
|
8573
|
+
}
|
|
8574
|
+
}
|
|
8575
|
+
|
|
8576
|
+
export class CreateTicketResponse extends $tea.Model {
|
|
8577
|
+
headers?: { [key: string]: string };
|
|
8578
|
+
statusCode?: number;
|
|
8579
|
+
body?: CreateTicketResponseBody;
|
|
8580
|
+
static names(): { [key: string]: string } {
|
|
8581
|
+
return {
|
|
8582
|
+
headers: 'headers',
|
|
8583
|
+
statusCode: 'statusCode',
|
|
8584
|
+
body: 'body',
|
|
8585
|
+
};
|
|
8586
|
+
}
|
|
8587
|
+
|
|
8588
|
+
static types(): { [key: string]: any } {
|
|
8589
|
+
return {
|
|
8590
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8591
|
+
statusCode: 'number',
|
|
8592
|
+
body: CreateTicketResponseBody,
|
|
8593
|
+
};
|
|
8594
|
+
}
|
|
8595
|
+
|
|
8596
|
+
constructor(map?: { [key: string]: any }) {
|
|
8597
|
+
super(map);
|
|
8598
|
+
}
|
|
8599
|
+
}
|
|
8600
|
+
|
|
8330
8601
|
export class CreateTodoTaskHeaders extends $tea.Model {
|
|
8331
8602
|
commonHeaders?: { [key: string]: string };
|
|
8332
8603
|
accountContext?: CreateTodoTaskHeadersAccountContext;
|
|
@@ -47021,6 +47292,150 @@ export class CreateSubscribedCalendarRequestSubscribeScope extends $tea.Model {
|
|
|
47021
47292
|
}
|
|
47022
47293
|
}
|
|
47023
47294
|
|
|
47295
|
+
export class CreateTicketHeadersAccountContext extends $tea.Model {
|
|
47296
|
+
/**
|
|
47297
|
+
* @remarks
|
|
47298
|
+
* This parameter is required.
|
|
47299
|
+
*
|
|
47300
|
+
* @example
|
|
47301
|
+
* 012345
|
|
47302
|
+
*/
|
|
47303
|
+
accountId?: string;
|
|
47304
|
+
static names(): { [key: string]: string } {
|
|
47305
|
+
return {
|
|
47306
|
+
accountId: 'accountId',
|
|
47307
|
+
};
|
|
47308
|
+
}
|
|
47309
|
+
|
|
47310
|
+
static types(): { [key: string]: any } {
|
|
47311
|
+
return {
|
|
47312
|
+
accountId: 'string',
|
|
47313
|
+
};
|
|
47314
|
+
}
|
|
47315
|
+
|
|
47316
|
+
constructor(map?: { [key: string]: any }) {
|
|
47317
|
+
super(map);
|
|
47318
|
+
}
|
|
47319
|
+
}
|
|
47320
|
+
|
|
47321
|
+
export class CreateTicketRequestNotify extends $tea.Model {
|
|
47322
|
+
groupNoticeReceiverUserIds?: string[];
|
|
47323
|
+
/**
|
|
47324
|
+
* @example
|
|
47325
|
+
* false
|
|
47326
|
+
*/
|
|
47327
|
+
noticeAllGroupMember?: boolean;
|
|
47328
|
+
workNoticeReceiverUserIds?: string[];
|
|
47329
|
+
static names(): { [key: string]: string } {
|
|
47330
|
+
return {
|
|
47331
|
+
groupNoticeReceiverUserIds: 'GroupNoticeReceiverUserIds',
|
|
47332
|
+
noticeAllGroupMember: 'NoticeAllGroupMember',
|
|
47333
|
+
workNoticeReceiverUserIds: 'WorkNoticeReceiverUserIds',
|
|
47334
|
+
};
|
|
47335
|
+
}
|
|
47336
|
+
|
|
47337
|
+
static types(): { [key: string]: any } {
|
|
47338
|
+
return {
|
|
47339
|
+
groupNoticeReceiverUserIds: { 'type': 'array', 'itemType': 'string' },
|
|
47340
|
+
noticeAllGroupMember: 'boolean',
|
|
47341
|
+
workNoticeReceiverUserIds: { 'type': 'array', 'itemType': 'string' },
|
|
47342
|
+
};
|
|
47343
|
+
}
|
|
47344
|
+
|
|
47345
|
+
constructor(map?: { [key: string]: any }) {
|
|
47346
|
+
super(map);
|
|
47347
|
+
}
|
|
47348
|
+
}
|
|
47349
|
+
|
|
47350
|
+
export class CreateTicketRequestSceneContextGroupMsgs extends $tea.Model {
|
|
47351
|
+
/**
|
|
47352
|
+
* @example
|
|
47353
|
+
* true
|
|
47354
|
+
*/
|
|
47355
|
+
anchor?: boolean;
|
|
47356
|
+
/**
|
|
47357
|
+
* @example
|
|
47358
|
+
* 1234567
|
|
47359
|
+
*/
|
|
47360
|
+
openMsgId?: string;
|
|
47361
|
+
static names(): { [key: string]: string } {
|
|
47362
|
+
return {
|
|
47363
|
+
anchor: 'Anchor',
|
|
47364
|
+
openMsgId: 'OpenMsgId',
|
|
47365
|
+
};
|
|
47366
|
+
}
|
|
47367
|
+
|
|
47368
|
+
static types(): { [key: string]: any } {
|
|
47369
|
+
return {
|
|
47370
|
+
anchor: 'boolean',
|
|
47371
|
+
openMsgId: 'string',
|
|
47372
|
+
};
|
|
47373
|
+
}
|
|
47374
|
+
|
|
47375
|
+
constructor(map?: { [key: string]: any }) {
|
|
47376
|
+
super(map);
|
|
47377
|
+
}
|
|
47378
|
+
}
|
|
47379
|
+
|
|
47380
|
+
export class CreateTicketRequestSceneContext extends $tea.Model {
|
|
47381
|
+
groupMsgs?: CreateTicketRequestSceneContextGroupMsgs[];
|
|
47382
|
+
/**
|
|
47383
|
+
* @example
|
|
47384
|
+
* cidDKVAOW8yVWPEN+WZfwSSAQ==
|
|
47385
|
+
*/
|
|
47386
|
+
openConversationId?: string;
|
|
47387
|
+
relevantorUserIds?: string[];
|
|
47388
|
+
/**
|
|
47389
|
+
* @example
|
|
47390
|
+
* 42674892
|
|
47391
|
+
*/
|
|
47392
|
+
topicId?: string;
|
|
47393
|
+
static names(): { [key: string]: string } {
|
|
47394
|
+
return {
|
|
47395
|
+
groupMsgs: 'GroupMsgs',
|
|
47396
|
+
openConversationId: 'OpenConversationId',
|
|
47397
|
+
relevantorUserIds: 'RelevantorUserIds',
|
|
47398
|
+
topicId: 'TopicId',
|
|
47399
|
+
};
|
|
47400
|
+
}
|
|
47401
|
+
|
|
47402
|
+
static types(): { [key: string]: any } {
|
|
47403
|
+
return {
|
|
47404
|
+
groupMsgs: { 'type': 'array', 'itemType': CreateTicketRequestSceneContextGroupMsgs },
|
|
47405
|
+
openConversationId: 'string',
|
|
47406
|
+
relevantorUserIds: { 'type': 'array', 'itemType': 'string' },
|
|
47407
|
+
topicId: 'string',
|
|
47408
|
+
};
|
|
47409
|
+
}
|
|
47410
|
+
|
|
47411
|
+
constructor(map?: { [key: string]: any }) {
|
|
47412
|
+
super(map);
|
|
47413
|
+
}
|
|
47414
|
+
}
|
|
47415
|
+
|
|
47416
|
+
export class CreateTicketRequestTenantContext extends $tea.Model {
|
|
47417
|
+
/**
|
|
47418
|
+
* @example
|
|
47419
|
+
* xxxxxx
|
|
47420
|
+
*/
|
|
47421
|
+
tenantId?: string;
|
|
47422
|
+
static names(): { [key: string]: string } {
|
|
47423
|
+
return {
|
|
47424
|
+
tenantId: 'tenantId',
|
|
47425
|
+
};
|
|
47426
|
+
}
|
|
47427
|
+
|
|
47428
|
+
static types(): { [key: string]: any } {
|
|
47429
|
+
return {
|
|
47430
|
+
tenantId: 'string',
|
|
47431
|
+
};
|
|
47432
|
+
}
|
|
47433
|
+
|
|
47434
|
+
constructor(map?: { [key: string]: any }) {
|
|
47435
|
+
super(map);
|
|
47436
|
+
}
|
|
47437
|
+
}
|
|
47438
|
+
|
|
47024
47439
|
export class CreateTodoTaskHeadersAccountContext extends $tea.Model {
|
|
47025
47440
|
/**
|
|
47026
47441
|
* @example
|
|
@@ -71345,6 +71760,116 @@ export default class Client extends OpenApi {
|
|
|
71345
71760
|
return await this.createSubscribedCalendarWithOptions(request, headers, runtime);
|
|
71346
71761
|
}
|
|
71347
71762
|
|
|
71763
|
+
/**
|
|
71764
|
+
* 创建工单
|
|
71765
|
+
*
|
|
71766
|
+
* @param tmpReq - CreateTicketRequest
|
|
71767
|
+
* @param tmpHeader - CreateTicketHeaders
|
|
71768
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
71769
|
+
* @returns CreateTicketResponse
|
|
71770
|
+
*/
|
|
71771
|
+
async createTicketWithOptions(tmpReq: CreateTicketRequest, tmpHeader: CreateTicketHeaders, runtime: $Util.RuntimeOptions): Promise<CreateTicketResponse> {
|
|
71772
|
+
Util.validateModel(tmpReq);
|
|
71773
|
+
let request = new CreateTicketShrinkRequest({ });
|
|
71774
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
71775
|
+
let headers = new CreateTicketShrinkHeaders({ });
|
|
71776
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
71777
|
+
if (!Util.isUnset(tmpHeader.accountContext)) {
|
|
71778
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
71779
|
+
}
|
|
71780
|
+
|
|
71781
|
+
if (!Util.isUnset(tmpReq.notify)) {
|
|
71782
|
+
request.notifyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.notify, "Notify", "json");
|
|
71783
|
+
}
|
|
71784
|
+
|
|
71785
|
+
if (!Util.isUnset(tmpReq.processorUserIds)) {
|
|
71786
|
+
request.processorUserIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.processorUserIds, "ProcessorUserIds", "json");
|
|
71787
|
+
}
|
|
71788
|
+
|
|
71789
|
+
if (!Util.isUnset(tmpReq.sceneContext)) {
|
|
71790
|
+
request.sceneContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sceneContext, "SceneContext", "json");
|
|
71791
|
+
}
|
|
71792
|
+
|
|
71793
|
+
if (!Util.isUnset(tmpReq.tenantContext)) {
|
|
71794
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
71795
|
+
}
|
|
71796
|
+
|
|
71797
|
+
let body : {[key: string ]: any} = { };
|
|
71798
|
+
if (!Util.isUnset(request.customFields)) {
|
|
71799
|
+
body["CustomFields"] = request.customFields;
|
|
71800
|
+
}
|
|
71801
|
+
|
|
71802
|
+
if (!Util.isUnset(request.notifyShrink)) {
|
|
71803
|
+
body["Notify"] = request.notifyShrink;
|
|
71804
|
+
}
|
|
71805
|
+
|
|
71806
|
+
if (!Util.isUnset(request.openTeamId)) {
|
|
71807
|
+
body["OpenTeamId"] = request.openTeamId;
|
|
71808
|
+
}
|
|
71809
|
+
|
|
71810
|
+
if (!Util.isUnset(request.openTemplateBizId)) {
|
|
71811
|
+
body["OpenTemplateBizId"] = request.openTemplateBizId;
|
|
71812
|
+
}
|
|
71813
|
+
|
|
71814
|
+
if (!Util.isUnset(request.processorUserIdsShrink)) {
|
|
71815
|
+
body["ProcessorUserIds"] = request.processorUserIdsShrink;
|
|
71816
|
+
}
|
|
71817
|
+
|
|
71818
|
+
if (!Util.isUnset(request.scene)) {
|
|
71819
|
+
body["Scene"] = request.scene;
|
|
71820
|
+
}
|
|
71821
|
+
|
|
71822
|
+
if (!Util.isUnset(request.sceneContextShrink)) {
|
|
71823
|
+
body["SceneContext"] = request.sceneContextShrink;
|
|
71824
|
+
}
|
|
71825
|
+
|
|
71826
|
+
if (!Util.isUnset(request.tenantContextShrink)) {
|
|
71827
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
71828
|
+
}
|
|
71829
|
+
|
|
71830
|
+
if (!Util.isUnset(request.title)) {
|
|
71831
|
+
body["Title"] = request.title;
|
|
71832
|
+
}
|
|
71833
|
+
|
|
71834
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
71835
|
+
if (!Util.isUnset(headers.commonHeaders)) {
|
|
71836
|
+
realHeaders = headers.commonHeaders;
|
|
71837
|
+
}
|
|
71838
|
+
|
|
71839
|
+
if (!Util.isUnset(headers.accountContextShrink)) {
|
|
71840
|
+
realHeaders["AccountContext"] = Util.toJSONString(headers.accountContextShrink);
|
|
71841
|
+
}
|
|
71842
|
+
|
|
71843
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
71844
|
+
headers: realHeaders,
|
|
71845
|
+
body: OpenApiUtil.parseToMap(body),
|
|
71846
|
+
});
|
|
71847
|
+
let params = new $OpenApi.Params({
|
|
71848
|
+
action: "CreateTicket",
|
|
71849
|
+
version: "2023-04-26",
|
|
71850
|
+
protocol: "HTTPS",
|
|
71851
|
+
pathname: `/dingtalk/v1/ticket/createTicket`,
|
|
71852
|
+
method: "POST",
|
|
71853
|
+
authType: "AK",
|
|
71854
|
+
style: "ROA",
|
|
71855
|
+
reqBodyType: "formData",
|
|
71856
|
+
bodyType: "json",
|
|
71857
|
+
});
|
|
71858
|
+
return $tea.cast<CreateTicketResponse>(await this.callApi(params, req, runtime), new CreateTicketResponse({}));
|
|
71859
|
+
}
|
|
71860
|
+
|
|
71861
|
+
/**
|
|
71862
|
+
* 创建工单
|
|
71863
|
+
*
|
|
71864
|
+
* @param request - CreateTicketRequest
|
|
71865
|
+
* @returns CreateTicketResponse
|
|
71866
|
+
*/
|
|
71867
|
+
async createTicket(request: CreateTicketRequest): Promise<CreateTicketResponse> {
|
|
71868
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
71869
|
+
let headers = new CreateTicketHeaders({ });
|
|
71870
|
+
return await this.createTicketWithOptions(request, headers, runtime);
|
|
71871
|
+
}
|
|
71872
|
+
|
|
71348
71873
|
/**
|
|
71349
71874
|
* 创建代办
|
|
71350
71875
|
*
|