@larksuiteoapi/node-sdk 1.40.1 → 1.41.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.
Files changed (4) hide show
  1. package/es/index.js +2386 -532
  2. package/lib/index.js +2386 -532
  3. package/package.json +1 -1
  4. package/types/index.d.ts +5222 -97
package/lib/index.js CHANGED
@@ -272,7 +272,7 @@ const formatErrors = (e) => {
272
272
  };
273
273
 
274
274
  // auto gen
275
- class Client$$ {
275
+ class Client$10 {
276
276
  constructor() {
277
277
  /**
278
278
  * 智能门禁
@@ -1329,11 +1329,11 @@ class Client$$ {
1329
1329
  }
1330
1330
 
1331
1331
  // auto gen
1332
- class Client$_ extends Client$$ {
1332
+ class Client$$ extends Client$10 {
1333
1333
  constructor() {
1334
1334
  super(...arguments);
1335
1335
  /**
1336
- * 管理后台-密码
1336
+ * 管理后台-企业勋章
1337
1337
  */
1338
1338
  this.admin = {
1339
1339
  /**
@@ -2425,7 +2425,7 @@ class Client$_ extends Client$$ {
2425
2425
  }
2426
2426
 
2427
2427
  // auto gen
2428
- class Client$Z extends Client$_ {
2428
+ class Client$_ extends Client$$ {
2429
2429
  constructor() {
2430
2430
  super(...arguments);
2431
2431
  /**
@@ -3125,7 +3125,7 @@ class Client$Z extends Client$_ {
3125
3125
  }
3126
3126
 
3127
3127
  // auto gen
3128
- class Client$Y extends Client$Z {
3128
+ class Client$Z extends Client$_ {
3129
3129
  constructor() {
3130
3130
  super(...arguments);
3131
3131
  /**
@@ -4699,7 +4699,7 @@ class Client$Y extends Client$Z {
4699
4699
  }
4700
4700
 
4701
4701
  // auto gen
4702
- class Client$X extends Client$Y {
4702
+ class Client$Y extends Client$Z {
4703
4703
  constructor() {
4704
4704
  super(...arguments);
4705
4705
  /**
@@ -5504,7 +5504,7 @@ class Client$X extends Client$Y {
5504
5504
  }),
5505
5505
  },
5506
5506
  /**
5507
- * 原生审批任务
5507
+ * 审批查询
5508
5508
  */
5509
5509
  task: {
5510
5510
  /**
@@ -6515,7 +6515,7 @@ class Client$X extends Client$Y {
6515
6515
  }),
6516
6516
  },
6517
6517
  /**
6518
- * 原生审批任务
6518
+ * 审批查询
6519
6519
  */
6520
6520
  task: {
6521
6521
  /**
@@ -6727,7 +6727,7 @@ class Client$X extends Client$Y {
6727
6727
  }
6728
6728
 
6729
6729
  // auto gen
6730
- class Client$W extends Client$X {
6730
+ class Client$X extends Client$Y {
6731
6731
  constructor() {
6732
6732
  super(...arguments);
6733
6733
  /**
@@ -7144,6 +7144,27 @@ class Client$W extends Client$X {
7144
7144
  throw e;
7145
7145
  });
7146
7146
  }),
7147
+ /**
7148
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
7149
+ *
7150
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
7151
+ */
7152
+ listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7153
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7154
+ return this.httpInstance
7155
+ .request({
7156
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
7157
+ method: "GET",
7158
+ data,
7159
+ params,
7160
+ headers,
7161
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
7162
+ })
7163
+ .catch((e) => {
7164
+ this.logger.error(formatErrors(e));
7165
+ throw e;
7166
+ });
7167
+ }),
7147
7168
  /**
7148
7169
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
7149
7170
  *
@@ -7494,6 +7515,27 @@ class Client$W extends Client$X {
7494
7515
  throw e;
7495
7516
  });
7496
7517
  }),
7518
+ /**
7519
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
7520
+ *
7521
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
7522
+ */
7523
+ batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7524
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7525
+ return this.httpInstance
7526
+ .request({
7527
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
7528
+ method: "POST",
7529
+ data,
7530
+ params,
7531
+ headers,
7532
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
7533
+ })
7534
+ .catch((e) => {
7535
+ this.logger.error(formatErrors(e));
7536
+ throw e;
7537
+ });
7538
+ }),
7497
7539
  /**
7498
7540
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
7499
7541
  *
@@ -8301,6 +8343,27 @@ class Client$W extends Client$X {
8301
8343
  throw e;
8302
8344
  });
8303
8345
  }),
8346
+ /**
8347
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
8348
+ *
8349
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
8350
+ */
8351
+ listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8352
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8353
+ return this.httpInstance
8354
+ .request({
8355
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
8356
+ method: "GET",
8357
+ data,
8358
+ params,
8359
+ headers,
8360
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
8361
+ })
8362
+ .catch((e) => {
8363
+ this.logger.error(formatErrors(e));
8364
+ throw e;
8365
+ });
8366
+ }),
8304
8367
  /**
8305
8368
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
8306
8369
  *
@@ -8653,6 +8716,27 @@ class Client$W extends Client$X {
8653
8716
  throw e;
8654
8717
  });
8655
8718
  }),
8719
+ /**
8720
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
8721
+ *
8722
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
8723
+ */
8724
+ batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8725
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8726
+ return this.httpInstance
8727
+ .request({
8728
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
8729
+ method: "POST",
8730
+ data,
8731
+ params,
8732
+ headers,
8733
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
8734
+ })
8735
+ .catch((e) => {
8736
+ this.logger.error(formatErrors(e));
8737
+ throw e;
8738
+ });
8739
+ }),
8656
8740
  /**
8657
8741
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
8658
8742
  *
@@ -9051,7 +9135,7 @@ class Client$W extends Client$X {
9051
9135
  }
9052
9136
 
9053
9137
  // auto gen
9054
- class Client$V extends Client$W {
9138
+ class Client$W extends Client$X {
9055
9139
  constructor() {
9056
9140
  super(...arguments);
9057
9141
  /**
@@ -9305,7 +9389,7 @@ class Client$V extends Client$W {
9305
9389
  }
9306
9390
 
9307
9391
  // auto gen
9308
- class Client$U extends Client$V {
9392
+ class Client$V extends Client$W {
9309
9393
  constructor() {
9310
9394
  super(...arguments);
9311
9395
  /**
@@ -9579,7 +9663,7 @@ class Client$U extends Client$V {
9579
9663
  }
9580
9664
 
9581
9665
  // auto gen
9582
- class Client$T extends Client$U {
9666
+ class Client$U extends Client$V {
9583
9667
  constructor() {
9584
9668
  super(...arguments);
9585
9669
  /**
@@ -9590,7 +9674,7 @@ class Client$T extends Client$U {
9590
9674
  }
9591
9675
 
9592
9676
  // auto gen
9593
- class Client$S extends Client$T {
9677
+ class Client$T extends Client$U {
9594
9678
  constructor() {
9595
9679
  super(...arguments);
9596
9680
  /**
@@ -10668,7 +10752,7 @@ class Client$S extends Client$T {
10668
10752
  }
10669
10753
 
10670
10754
  // auto gen
10671
- class Client$R extends Client$S {
10755
+ class Client$S extends Client$T {
10672
10756
  constructor() {
10673
10757
  super(...arguments);
10674
10758
  /**
@@ -12317,6 +12401,103 @@ class Client$R extends Client$S {
12317
12401
  });
12318
12402
  }),
12319
12403
  },
12404
+ /**
12405
+ * app.workflow
12406
+ */
12407
+ appWorkflow: {
12408
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12409
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12410
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
12411
+ const res = yield this.httpInstance
12412
+ .request({
12413
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
12414
+ method: "GET",
12415
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
12416
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
12417
+ data,
12418
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
12419
+ })
12420
+ .catch((e) => {
12421
+ this.logger.error(formatErrors(e));
12422
+ });
12423
+ return res;
12424
+ });
12425
+ const Iterable = {
12426
+ [Symbol.asyncIterator]() {
12427
+ return __asyncGenerator(this, arguments, function* _a() {
12428
+ let hasMore = true;
12429
+ let pageToken;
12430
+ while (hasMore) {
12431
+ try {
12432
+ const res = yield __await(sendRequest({
12433
+ headers,
12434
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
12435
+ data,
12436
+ }));
12437
+ const _b = get__default["default"](res, "data") || {}, {
12438
+ // @ts-ignore
12439
+ has_more,
12440
+ // @ts-ignore
12441
+ page_token,
12442
+ // @ts-ignore
12443
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
12444
+ yield yield __await(rest);
12445
+ hasMore = Boolean(has_more);
12446
+ pageToken = page_token || next_page_token;
12447
+ }
12448
+ catch (e) {
12449
+ yield yield __await(null);
12450
+ break;
12451
+ }
12452
+ }
12453
+ });
12454
+ },
12455
+ };
12456
+ return Iterable;
12457
+ }),
12458
+ /**
12459
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
12460
+ *
12461
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
12462
+ */
12463
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12464
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12465
+ return this.httpInstance
12466
+ .request({
12467
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
12468
+ method: "GET",
12469
+ data,
12470
+ params,
12471
+ headers,
12472
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
12473
+ })
12474
+ .catch((e) => {
12475
+ this.logger.error(formatErrors(e));
12476
+ throw e;
12477
+ });
12478
+ }),
12479
+ /**
12480
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
12481
+ *
12482
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
12483
+ */
12484
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12485
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12486
+ return this.httpInstance
12487
+ .request({
12488
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
12489
+ method: "PUT",
12490
+ data,
12491
+ params,
12492
+ headers,
12493
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
12494
+ })
12495
+ .catch((e) => {
12496
+ this.logger.error(formatErrors(e));
12497
+ throw e;
12498
+ });
12499
+ }),
12500
+ },
12320
12501
  v1: {
12321
12502
  /**
12322
12503
  * 多维表格
@@ -13978,13 +14159,112 @@ class Client$R extends Client$S {
13978
14159
  });
13979
14160
  }),
13980
14161
  },
14162
+ /**
14163
+ * app.workflow
14164
+ */
14165
+ appWorkflow: {
14166
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
14167
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
14168
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
14169
+ const res = yield this.httpInstance
14170
+ .request({
14171
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
14172
+ method: "GET",
14173
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
14174
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
14175
+ data,
14176
+ paramsSerializer: (params) => qs.stringify(params, {
14177
+ arrayFormat: "repeat",
14178
+ }),
14179
+ })
14180
+ .catch((e) => {
14181
+ this.logger.error(formatErrors(e));
14182
+ });
14183
+ return res;
14184
+ });
14185
+ const Iterable = {
14186
+ [Symbol.asyncIterator]() {
14187
+ return __asyncGenerator(this, arguments, function* _a() {
14188
+ let hasMore = true;
14189
+ let pageToken;
14190
+ while (hasMore) {
14191
+ try {
14192
+ const res = yield __await(sendRequest({
14193
+ headers,
14194
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
14195
+ data,
14196
+ }));
14197
+ const _b = get__default["default"](res, "data") || {}, {
14198
+ // @ts-ignore
14199
+ has_more,
14200
+ // @ts-ignore
14201
+ page_token,
14202
+ // @ts-ignore
14203
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
14204
+ yield yield __await(rest);
14205
+ hasMore = Boolean(has_more);
14206
+ pageToken = page_token || next_page_token;
14207
+ }
14208
+ catch (e) {
14209
+ yield yield __await(null);
14210
+ break;
14211
+ }
14212
+ }
14213
+ });
14214
+ },
14215
+ };
14216
+ return Iterable;
14217
+ }),
14218
+ /**
14219
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
14220
+ *
14221
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
14222
+ */
14223
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
14224
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
14225
+ return this.httpInstance
14226
+ .request({
14227
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
14228
+ method: "GET",
14229
+ data,
14230
+ params,
14231
+ headers,
14232
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
14233
+ })
14234
+ .catch((e) => {
14235
+ this.logger.error(formatErrors(e));
14236
+ throw e;
14237
+ });
14238
+ }),
14239
+ /**
14240
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
14241
+ *
14242
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
14243
+ */
14244
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
14245
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
14246
+ return this.httpInstance
14247
+ .request({
14248
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
14249
+ method: "PUT",
14250
+ data,
14251
+ params,
14252
+ headers,
14253
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
14254
+ })
14255
+ .catch((e) => {
14256
+ this.logger.error(formatErrors(e));
14257
+ throw e;
14258
+ });
14259
+ }),
14260
+ },
13981
14261
  },
13982
14262
  };
13983
14263
  }
13984
14264
  }
13985
14265
 
13986
14266
  // auto gen
13987
- class Client$Q extends Client$R {
14267
+ class Client$R extends Client$S {
13988
14268
  constructor() {
13989
14269
  super(...arguments);
13990
14270
  /**
@@ -14168,7 +14448,7 @@ class Client$Q extends Client$R {
14168
14448
  }
14169
14449
 
14170
14450
  // auto gen
14171
- class Client$P extends Client$Q {
14451
+ class Client$Q extends Client$R {
14172
14452
  constructor() {
14173
14453
  super(...arguments);
14174
14454
  /**
@@ -14265,7 +14545,7 @@ class Client$P extends Client$Q {
14265
14545
  }
14266
14546
 
14267
14547
  // auto gen
14268
- class Client$O extends Client$P {
14548
+ class Client$P extends Client$Q {
14269
14549
  constructor() {
14270
14550
  super(...arguments);
14271
14551
  /**
@@ -17005,7 +17285,7 @@ class Client$O extends Client$P {
17005
17285
  }
17006
17286
 
17007
17287
  // auto gen
17008
- class Client$N extends Client$O {
17288
+ class Client$O extends Client$P {
17009
17289
  constructor() {
17010
17290
  super(...arguments);
17011
17291
  /**
@@ -17016,7 +17296,7 @@ class Client$N extends Client$O {
17016
17296
  }
17017
17297
 
17018
17298
  // auto gen
17019
- class Client$M extends Client$N {
17299
+ class Client$N extends Client$O {
17020
17300
  constructor() {
17021
17301
  super(...arguments);
17022
17302
  /**
@@ -17446,7 +17726,7 @@ class Client$M extends Client$N {
17446
17726
  }
17447
17727
 
17448
17728
  // auto gen
17449
- class Client$L extends Client$M {
17729
+ class Client$M extends Client$N {
17450
17730
  constructor() {
17451
17731
  super(...arguments);
17452
17732
  /**
@@ -22474,7 +22754,7 @@ class Client$L extends Client$M {
22474
22754
  }
22475
22755
 
22476
22756
  // auto gen
22477
- class Client$K extends Client$L {
22757
+ class Client$L extends Client$M {
22478
22758
  constructor() {
22479
22759
  super(...arguments);
22480
22760
  /**
@@ -22485,7 +22765,7 @@ class Client$K extends Client$L {
22485
22765
  }
22486
22766
 
22487
22767
  // auto gen
22488
- class Client$J extends Client$K {
22768
+ class Client$K extends Client$L {
22489
22769
  constructor() {
22490
22770
  super(...arguments);
22491
22771
  /**
@@ -22496,7 +22776,7 @@ class Client$J extends Client$K {
22496
22776
  }
22497
22777
 
22498
22778
  // auto gen
22499
- class Client$I extends Client$J {
22779
+ class Client$J extends Client$K {
22500
22780
  constructor() {
22501
22781
  super(...arguments);
22502
22782
  /**
@@ -28157,71 +28437,21 @@ class Client$I extends Client$J {
28157
28437
  },
28158
28438
  v2: {
28159
28439
  /**
28160
- * approver
28440
+ * approval_groups
28161
28441
  */
28162
- approver: {
28163
- listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28164
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
28165
- const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28166
- const res = yield this.httpInstance
28167
- .request({
28168
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
28169
- method: "GET",
28170
- headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28171
- params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
28172
- data,
28173
- paramsSerializer: (params) => qs.stringify(params, {
28174
- arrayFormat: "repeat",
28175
- }),
28176
- })
28177
- .catch((e) => {
28178
- this.logger.error(formatErrors(e));
28179
- });
28180
- return res;
28181
- });
28182
- const Iterable = {
28183
- [Symbol.asyncIterator]() {
28184
- return __asyncGenerator(this, arguments, function* _a() {
28185
- let hasMore = true;
28186
- let pageToken;
28187
- while (hasMore) {
28188
- try {
28189
- const res = yield __await(sendRequest({
28190
- headers,
28191
- params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
28192
- data,
28193
- }));
28194
- const _b = get__default["default"](res, "data") || {}, {
28195
- // @ts-ignore
28196
- has_more,
28197
- // @ts-ignore
28198
- page_token,
28199
- // @ts-ignore
28200
- next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
28201
- yield yield __await(rest);
28202
- hasMore = Boolean(has_more);
28203
- pageToken = page_token || next_page_token;
28204
- }
28205
- catch (e) {
28206
- yield yield __await(null);
28207
- break;
28208
- }
28209
- }
28210
- });
28211
- },
28212
- };
28213
- return Iterable;
28214
- }),
28442
+ approvalGroups: {
28215
28443
  /**
28216
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approver&apiName=list&version=v2 click to debug }
28444
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=get&version=v2 click to debug }
28217
28445
  *
28218
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=approver&version=v2 document }
28446
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=approval_groups&version=v2 document }
28447
+ *
28448
+ * 获取审批组信息
28219
28449
  */
28220
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28450
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28221
28451
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28222
28452
  return this.httpInstance
28223
28453
  .request({
28224
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
28454
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`, path),
28225
28455
  method: "GET",
28226
28456
  data,
28227
28457
  params,
@@ -28233,73 +28463,18 @@ class Client$I extends Client$J {
28233
28463
  throw e;
28234
28464
  });
28235
28465
  }),
28236
- },
28237
- /**
28238
- * basic_info.bank
28239
- */
28240
- basicInfoBank: {
28241
- searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28242
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
28243
- const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28244
- const res = yield this.httpInstance
28245
- .request({
28246
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
28247
- method: "POST",
28248
- headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28249
- params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
28250
- data,
28251
- paramsSerializer: (params) => qs.stringify(params, {
28252
- arrayFormat: "repeat",
28253
- }),
28254
- })
28255
- .catch((e) => {
28256
- this.logger.error(formatErrors(e));
28257
- });
28258
- return res;
28259
- });
28260
- const Iterable = {
28261
- [Symbol.asyncIterator]() {
28262
- return __asyncGenerator(this, arguments, function* _a() {
28263
- let hasMore = true;
28264
- let pageToken;
28265
- while (hasMore) {
28266
- try {
28267
- const res = yield __await(sendRequest({
28268
- headers,
28269
- params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
28270
- data,
28271
- }));
28272
- const _b = get__default["default"](res, "data") || {}, {
28273
- // @ts-ignore
28274
- has_more,
28275
- // @ts-ignore
28276
- page_token,
28277
- // @ts-ignore
28278
- next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
28279
- yield yield __await(rest);
28280
- hasMore = Boolean(has_more);
28281
- pageToken = page_token || next_page_token;
28282
- }
28283
- catch (e) {
28284
- yield yield __await(null);
28285
- break;
28286
- }
28287
- }
28288
- });
28289
- },
28290
- };
28291
- return Iterable;
28292
- }),
28293
28466
  /**
28294
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank&apiName=search&version=v2 click to debug }
28467
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=open_query_department_change_list_by_ids&version=v2 click to debug }
28295
28468
  *
28296
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank&version=v2 document }
28469
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=open_query_department_change_list_by_ids&project=corehr&resource=approval_groups&version=v2 document }
28470
+ *
28471
+ * 获取部门调整信息详情
28297
28472
  */
28298
- search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28473
+ openQueryDepartmentChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28299
28474
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28300
28475
  return this.httpInstance
28301
28476
  .request({
28302
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
28477
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids`, path),
28303
28478
  method: "POST",
28304
28479
  data,
28305
28480
  params,
@@ -28311,73 +28486,16 @@ class Client$I extends Client$J {
28311
28486
  throw e;
28312
28487
  });
28313
28488
  }),
28314
- },
28315
- /**
28316
- * basic_info.bank_branch
28317
- */
28318
- basicInfoBankBranch: {
28319
- searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28320
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
28321
- const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28322
- const res = yield this.httpInstance
28323
- .request({
28324
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
28325
- method: "POST",
28326
- headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28327
- params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
28328
- data,
28329
- paramsSerializer: (params) => qs.stringify(params, {
28330
- arrayFormat: "repeat",
28331
- }),
28332
- })
28333
- .catch((e) => {
28334
- this.logger.error(formatErrors(e));
28335
- });
28336
- return res;
28337
- });
28338
- const Iterable = {
28339
- [Symbol.asyncIterator]() {
28340
- return __asyncGenerator(this, arguments, function* _a() {
28341
- let hasMore = true;
28342
- let pageToken;
28343
- while (hasMore) {
28344
- try {
28345
- const res = yield __await(sendRequest({
28346
- headers,
28347
- params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
28348
- data,
28349
- }));
28350
- const _b = get__default["default"](res, "data") || {}, {
28351
- // @ts-ignore
28352
- has_more,
28353
- // @ts-ignore
28354
- page_token,
28355
- // @ts-ignore
28356
- next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
28357
- yield yield __await(rest);
28358
- hasMore = Boolean(has_more);
28359
- pageToken = page_token || next_page_token;
28360
- }
28361
- catch (e) {
28362
- yield yield __await(null);
28363
- break;
28364
- }
28365
- }
28366
- });
28367
- },
28368
- };
28369
- return Iterable;
28370
- }),
28371
28489
  /**
28372
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank_branch&apiName=search&version=v2 click to debug }
28490
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=open_query_job_change_list_by_ids&version=v2 click to debug }
28373
28491
  *
28374
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank_branch&version=v2 document }
28492
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=open_query_job_change_list_by_ids&project=corehr&resource=approval_groups&version=v2 document }
28375
28493
  */
28376
- search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28494
+ openQueryJobChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28377
28495
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28378
28496
  return this.httpInstance
28379
28497
  .request({
28380
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
28498
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids`, path),
28381
28499
  method: "POST",
28382
28500
  data,
28383
28501
  params,
@@ -28391,16 +28509,16 @@ class Client$I extends Client$J {
28391
28509
  }),
28392
28510
  },
28393
28511
  /**
28394
- * basic_info.city
28512
+ * approver
28395
28513
  */
28396
- basicInfoCity: {
28397
- searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28514
+ approver: {
28515
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28398
28516
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28399
28517
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28400
28518
  const res = yield this.httpInstance
28401
28519
  .request({
28402
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
28403
- method: "POST",
28520
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
28521
+ method: "GET",
28404
28522
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28405
28523
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
28406
28524
  data,
@@ -28447,16 +28565,16 @@ class Client$I extends Client$J {
28447
28565
  return Iterable;
28448
28566
  }),
28449
28567
  /**
28450
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.city&apiName=search&version=v2 click to debug }
28568
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approver&apiName=list&version=v2 click to debug }
28451
28569
  *
28452
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.city&version=v2 document }
28570
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=approver&version=v2 document }
28453
28571
  */
28454
- search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28572
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28455
28573
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28456
28574
  return this.httpInstance
28457
28575
  .request({
28458
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
28459
- method: "POST",
28576
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
28577
+ method: "GET",
28460
28578
  data,
28461
28579
  params,
28462
28580
  headers,
@@ -28469,15 +28587,15 @@ class Client$I extends Client$J {
28469
28587
  }),
28470
28588
  },
28471
28589
  /**
28472
- * basic_info.country_region
28590
+ * basic_info.bank
28473
28591
  */
28474
- basicInfoCountryRegion: {
28592
+ basicInfoBank: {
28475
28593
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28476
28594
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28477
28595
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28478
28596
  const res = yield this.httpInstance
28479
28597
  .request({
28480
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
28598
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
28481
28599
  method: "POST",
28482
28600
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28483
28601
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -28525,15 +28643,15 @@ class Client$I extends Client$J {
28525
28643
  return Iterable;
28526
28644
  }),
28527
28645
  /**
28528
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region&apiName=search&version=v2 click to debug }
28646
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank&apiName=search&version=v2 click to debug }
28529
28647
  *
28530
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region&version=v2 document }
28648
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank&version=v2 document }
28531
28649
  */
28532
28650
  search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28533
28651
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28534
28652
  return this.httpInstance
28535
28653
  .request({
28536
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
28654
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
28537
28655
  method: "POST",
28538
28656
  data,
28539
28657
  params,
@@ -28547,15 +28665,15 @@ class Client$I extends Client$J {
28547
28665
  }),
28548
28666
  },
28549
28667
  /**
28550
- * basic_info.country_region_subdivision
28668
+ * basic_info.bank_branch
28551
28669
  */
28552
- basicInfoCountryRegionSubdivision: {
28670
+ basicInfoBankBranch: {
28553
28671
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28554
28672
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28555
28673
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28556
28674
  const res = yield this.httpInstance
28557
28675
  .request({
28558
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
28676
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
28559
28677
  method: "POST",
28560
28678
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28561
28679
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -28603,15 +28721,15 @@ class Client$I extends Client$J {
28603
28721
  return Iterable;
28604
28722
  }),
28605
28723
  /**
28606
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region_subdivision&apiName=search&version=v2 click to debug }
28724
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank_branch&apiName=search&version=v2 click to debug }
28607
28725
  *
28608
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region_subdivision&version=v2 document }
28726
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank_branch&version=v2 document }
28609
28727
  */
28610
28728
  search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28611
28729
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28612
28730
  return this.httpInstance
28613
28731
  .request({
28614
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
28732
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
28615
28733
  method: "POST",
28616
28734
  data,
28617
28735
  params,
@@ -28625,15 +28743,15 @@ class Client$I extends Client$J {
28625
28743
  }),
28626
28744
  },
28627
28745
  /**
28628
- * basic_info.currency
28746
+ * basic_info.city
28629
28747
  */
28630
- basicInfoCurrency: {
28748
+ basicInfoCity: {
28631
28749
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28632
28750
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28633
28751
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28634
28752
  const res = yield this.httpInstance
28635
28753
  .request({
28636
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
28754
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
28637
28755
  method: "POST",
28638
28756
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28639
28757
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -28681,15 +28799,15 @@ class Client$I extends Client$J {
28681
28799
  return Iterable;
28682
28800
  }),
28683
28801
  /**
28684
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.currency&apiName=search&version=v2 click to debug }
28802
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.city&apiName=search&version=v2 click to debug }
28685
28803
  *
28686
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.currency&version=v2 document }
28804
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.city&version=v2 document }
28687
28805
  */
28688
28806
  search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28689
28807
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28690
28808
  return this.httpInstance
28691
28809
  .request({
28692
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
28810
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
28693
28811
  method: "POST",
28694
28812
  data,
28695
28813
  params,
@@ -28703,15 +28821,249 @@ class Client$I extends Client$J {
28703
28821
  }),
28704
28822
  },
28705
28823
  /**
28706
- * basic_info.district
28824
+ * basic_info.country_region
28707
28825
  */
28708
- basicInfoDistrict: {
28826
+ basicInfoCountryRegion: {
28709
28827
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28710
28828
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
28711
28829
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28712
28830
  const res = yield this.httpInstance
28713
28831
  .request({
28714
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
28832
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
28833
+ method: "POST",
28834
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28835
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
28836
+ data,
28837
+ paramsSerializer: (params) => qs.stringify(params, {
28838
+ arrayFormat: "repeat",
28839
+ }),
28840
+ })
28841
+ .catch((e) => {
28842
+ this.logger.error(formatErrors(e));
28843
+ });
28844
+ return res;
28845
+ });
28846
+ const Iterable = {
28847
+ [Symbol.asyncIterator]() {
28848
+ return __asyncGenerator(this, arguments, function* _a() {
28849
+ let hasMore = true;
28850
+ let pageToken;
28851
+ while (hasMore) {
28852
+ try {
28853
+ const res = yield __await(sendRequest({
28854
+ headers,
28855
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
28856
+ data,
28857
+ }));
28858
+ const _b = get__default["default"](res, "data") || {}, {
28859
+ // @ts-ignore
28860
+ has_more,
28861
+ // @ts-ignore
28862
+ page_token,
28863
+ // @ts-ignore
28864
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
28865
+ yield yield __await(rest);
28866
+ hasMore = Boolean(has_more);
28867
+ pageToken = page_token || next_page_token;
28868
+ }
28869
+ catch (e) {
28870
+ yield yield __await(null);
28871
+ break;
28872
+ }
28873
+ }
28874
+ });
28875
+ },
28876
+ };
28877
+ return Iterable;
28878
+ }),
28879
+ /**
28880
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region&apiName=search&version=v2 click to debug }
28881
+ *
28882
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region&version=v2 document }
28883
+ */
28884
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28885
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28886
+ return this.httpInstance
28887
+ .request({
28888
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
28889
+ method: "POST",
28890
+ data,
28891
+ params,
28892
+ headers,
28893
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
28894
+ })
28895
+ .catch((e) => {
28896
+ this.logger.error(formatErrors(e));
28897
+ throw e;
28898
+ });
28899
+ }),
28900
+ },
28901
+ /**
28902
+ * basic_info.country_region_subdivision
28903
+ */
28904
+ basicInfoCountryRegionSubdivision: {
28905
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28906
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28907
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28908
+ const res = yield this.httpInstance
28909
+ .request({
28910
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
28911
+ method: "POST",
28912
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28913
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
28914
+ data,
28915
+ paramsSerializer: (params) => qs.stringify(params, {
28916
+ arrayFormat: "repeat",
28917
+ }),
28918
+ })
28919
+ .catch((e) => {
28920
+ this.logger.error(formatErrors(e));
28921
+ });
28922
+ return res;
28923
+ });
28924
+ const Iterable = {
28925
+ [Symbol.asyncIterator]() {
28926
+ return __asyncGenerator(this, arguments, function* _a() {
28927
+ let hasMore = true;
28928
+ let pageToken;
28929
+ while (hasMore) {
28930
+ try {
28931
+ const res = yield __await(sendRequest({
28932
+ headers,
28933
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
28934
+ data,
28935
+ }));
28936
+ const _b = get__default["default"](res, "data") || {}, {
28937
+ // @ts-ignore
28938
+ has_more,
28939
+ // @ts-ignore
28940
+ page_token,
28941
+ // @ts-ignore
28942
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
28943
+ yield yield __await(rest);
28944
+ hasMore = Boolean(has_more);
28945
+ pageToken = page_token || next_page_token;
28946
+ }
28947
+ catch (e) {
28948
+ yield yield __await(null);
28949
+ break;
28950
+ }
28951
+ }
28952
+ });
28953
+ },
28954
+ };
28955
+ return Iterable;
28956
+ }),
28957
+ /**
28958
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region_subdivision&apiName=search&version=v2 click to debug }
28959
+ *
28960
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region_subdivision&version=v2 document }
28961
+ */
28962
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28963
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28964
+ return this.httpInstance
28965
+ .request({
28966
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
28967
+ method: "POST",
28968
+ data,
28969
+ params,
28970
+ headers,
28971
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
28972
+ })
28973
+ .catch((e) => {
28974
+ this.logger.error(formatErrors(e));
28975
+ throw e;
28976
+ });
28977
+ }),
28978
+ },
28979
+ /**
28980
+ * basic_info.currency
28981
+ */
28982
+ basicInfoCurrency: {
28983
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28984
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28985
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28986
+ const res = yield this.httpInstance
28987
+ .request({
28988
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
28989
+ method: "POST",
28990
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28991
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
28992
+ data,
28993
+ paramsSerializer: (params) => qs.stringify(params, {
28994
+ arrayFormat: "repeat",
28995
+ }),
28996
+ })
28997
+ .catch((e) => {
28998
+ this.logger.error(formatErrors(e));
28999
+ });
29000
+ return res;
29001
+ });
29002
+ const Iterable = {
29003
+ [Symbol.asyncIterator]() {
29004
+ return __asyncGenerator(this, arguments, function* _a() {
29005
+ let hasMore = true;
29006
+ let pageToken;
29007
+ while (hasMore) {
29008
+ try {
29009
+ const res = yield __await(sendRequest({
29010
+ headers,
29011
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
29012
+ data,
29013
+ }));
29014
+ const _b = get__default["default"](res, "data") || {}, {
29015
+ // @ts-ignore
29016
+ has_more,
29017
+ // @ts-ignore
29018
+ page_token,
29019
+ // @ts-ignore
29020
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
29021
+ yield yield __await(rest);
29022
+ hasMore = Boolean(has_more);
29023
+ pageToken = page_token || next_page_token;
29024
+ }
29025
+ catch (e) {
29026
+ yield yield __await(null);
29027
+ break;
29028
+ }
29029
+ }
29030
+ });
29031
+ },
29032
+ };
29033
+ return Iterable;
29034
+ }),
29035
+ /**
29036
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.currency&apiName=search&version=v2 click to debug }
29037
+ *
29038
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.currency&version=v2 document }
29039
+ */
29040
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29041
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
29042
+ return this.httpInstance
29043
+ .request({
29044
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
29045
+ method: "POST",
29046
+ data,
29047
+ params,
29048
+ headers,
29049
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
29050
+ })
29051
+ .catch((e) => {
29052
+ this.logger.error(formatErrors(e));
29053
+ throw e;
29054
+ });
29055
+ }),
29056
+ },
29057
+ /**
29058
+ * basic_info.district
29059
+ */
29060
+ basicInfoDistrict: {
29061
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29062
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
29063
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
29064
+ const res = yield this.httpInstance
29065
+ .request({
29066
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
28715
29067
  method: "POST",
28716
29068
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
28717
29069
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -30195,6 +30547,48 @@ class Client$I extends Client$J {
30195
30547
  * job_change
30196
30548
  */
30197
30549
  jobChange: {
30550
+ /**
30551
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=create&version=v2 click to debug }
30552
+ *
30553
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=job_change&version=v2 document }
30554
+ */
30555
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30556
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30557
+ return this.httpInstance
30558
+ .request({
30559
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes`, path),
30560
+ method: "POST",
30561
+ data,
30562
+ params,
30563
+ headers,
30564
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
30565
+ })
30566
+ .catch((e) => {
30567
+ this.logger.error(formatErrors(e));
30568
+ throw e;
30569
+ });
30570
+ }),
30571
+ /**
30572
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=revoke&version=v2 click to debug }
30573
+ *
30574
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=job_change&version=v2 document }
30575
+ */
30576
+ revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30577
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30578
+ return this.httpInstance
30579
+ .request({
30580
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/:job_change_id/revoke`, path),
30581
+ method: "POST",
30582
+ data,
30583
+ params,
30584
+ headers,
30585
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
30586
+ })
30587
+ .catch((e) => {
30588
+ this.logger.error(formatErrors(e));
30589
+ throw e;
30590
+ });
30591
+ }),
30198
30592
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30199
30593
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
30200
30594
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -30576,6 +30970,52 @@ class Client$I extends Client$J {
30576
30970
  * offboarding
30577
30971
  */
30578
30972
  offboarding: {
30973
+ /**
30974
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=edit&version=v2 click to debug }
30975
+ *
30976
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=edit&project=corehr&resource=offboarding&version=v2 document }
30977
+ *
30978
+ * 编辑离职信息
30979
+ */
30980
+ edit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30981
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30982
+ return this.httpInstance
30983
+ .request({
30984
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/edit`, path),
30985
+ method: "POST",
30986
+ data,
30987
+ params,
30988
+ headers,
30989
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
30990
+ })
30991
+ .catch((e) => {
30992
+ this.logger.error(formatErrors(e));
30993
+ throw e;
30994
+ });
30995
+ }),
30996
+ /**
30997
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=revoke&version=v2 click to debug }
30998
+ *
30999
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=offboarding&version=v2 document }
31000
+ *
31001
+ * 撤销离职信息
31002
+ */
31003
+ revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31004
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31005
+ return this.httpInstance
31006
+ .request({
31007
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/revoke`, path),
31008
+ method: "POST",
31009
+ data,
31010
+ params,
31011
+ headers,
31012
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
31013
+ })
31014
+ .catch((e) => {
31015
+ this.logger.error(formatErrors(e));
31016
+ throw e;
31017
+ });
31018
+ }),
30579
31019
  /**
30580
31020
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=submit_v2&version=v2 click to debug }
30581
31021
  *
@@ -31154,6 +31594,32 @@ class Client$I extends Client$J {
31154
31594
  });
31155
31595
  }),
31156
31596
  },
31597
+ /**
31598
+ * process.extra
31599
+ */
31600
+ processExtra: {
31601
+ /**
31602
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.extra&apiName=update&version=v2 click to debug }
31603
+ *
31604
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.extra&version=v2 document }
31605
+ */
31606
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31607
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31608
+ return this.httpInstance
31609
+ .request({
31610
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/extra`, path),
31611
+ method: "PUT",
31612
+ data,
31613
+ params,
31614
+ headers,
31615
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
31616
+ })
31617
+ .catch((e) => {
31618
+ this.logger.error(formatErrors(e));
31619
+ throw e;
31620
+ });
31621
+ }),
31622
+ },
31157
31623
  /**
31158
31624
  * process.form_variable_data
31159
31625
  */
@@ -31279,6 +31745,135 @@ class Client$I extends Client$J {
31279
31745
  });
31280
31746
  }),
31281
31747
  },
31748
+ /**
31749
+ * process.transfer
31750
+ */
31751
+ processTransfer: {
31752
+ /**
31753
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.transfer&apiName=update&version=v2 click to debug }
31754
+ *
31755
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.transfer&version=v2 document }
31756
+ */
31757
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31758
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31759
+ return this.httpInstance
31760
+ .request({
31761
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/transfer`, path),
31762
+ method: "PUT",
31763
+ data,
31764
+ params,
31765
+ headers,
31766
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
31767
+ })
31768
+ .catch((e) => {
31769
+ this.logger.error(formatErrors(e));
31770
+ throw e;
31771
+ });
31772
+ }),
31773
+ },
31774
+ /**
31775
+ * process_revoke
31776
+ */
31777
+ processRevoke: {
31778
+ /**
31779
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_revoke&apiName=update&version=v2 click to debug }
31780
+ *
31781
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_revoke&version=v2 document }
31782
+ */
31783
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31784
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31785
+ return this.httpInstance
31786
+ .request({
31787
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_revoke/:process_id`, path),
31788
+ method: "PUT",
31789
+ data,
31790
+ params,
31791
+ headers,
31792
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
31793
+ })
31794
+ .catch((e) => {
31795
+ this.logger.error(formatErrors(e));
31796
+ throw e;
31797
+ });
31798
+ }),
31799
+ },
31800
+ /**
31801
+ * process_withdraw
31802
+ */
31803
+ processWithdraw: {
31804
+ /**
31805
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_withdraw&apiName=update&version=v2 click to debug }
31806
+ *
31807
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_withdraw&version=v2 document }
31808
+ */
31809
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31810
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31811
+ return this.httpInstance
31812
+ .request({
31813
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_withdraw/:process_id`, path),
31814
+ method: "PUT",
31815
+ data,
31816
+ params,
31817
+ headers,
31818
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
31819
+ })
31820
+ .catch((e) => {
31821
+ this.logger.error(formatErrors(e));
31822
+ throw e;
31823
+ });
31824
+ }),
31825
+ },
31826
+ /**
31827
+ * report_detail_row
31828
+ */
31829
+ reportDetailRow: {
31830
+ /**
31831
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchDelete&version=v2 click to debug }
31832
+ *
31833
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=report_detail_row&version=v2 document }
31834
+ *
31835
+ * 批量删除填报行
31836
+ */
31837
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31838
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31839
+ return this.httpInstance
31840
+ .request({
31841
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchDelete`, path),
31842
+ method: "POST",
31843
+ data,
31844
+ params,
31845
+ headers,
31846
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
31847
+ })
31848
+ .catch((e) => {
31849
+ this.logger.error(formatErrors(e));
31850
+ throw e;
31851
+ });
31852
+ }),
31853
+ /**
31854
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchSave&version=v2 click to debug }
31855
+ *
31856
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=report_detail_row&version=v2 document }
31857
+ *
31858
+ * 批量创建/更新填报行
31859
+ */
31860
+ batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31861
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31862
+ return this.httpInstance
31863
+ .request({
31864
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchSave`, path),
31865
+ method: "POST",
31866
+ data,
31867
+ params,
31868
+ headers,
31869
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
31870
+ })
31871
+ .catch((e) => {
31872
+ this.logger.error(formatErrors(e));
31873
+ throw e;
31874
+ });
31875
+ }),
31876
+ },
31282
31877
  /**
31283
31878
  * workforce_plan
31284
31879
  */
@@ -31383,13 +31978,64 @@ class Client$I extends Client$J {
31383
31978
  });
31384
31979
  }),
31385
31980
  },
31981
+ /**
31982
+ * workforce_plan_detail_row
31983
+ */
31984
+ workforcePlanDetailRow: {
31985
+ /**
31986
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchDelete&version=v2 click to debug }
31987
+ *
31988
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
31989
+ *
31990
+ * 批量删除明细行
31991
+ */
31992
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31993
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31994
+ return this.httpInstance
31995
+ .request({
31996
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete`, path),
31997
+ method: "POST",
31998
+ data,
31999
+ params,
32000
+ headers,
32001
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
32002
+ })
32003
+ .catch((e) => {
32004
+ this.logger.error(formatErrors(e));
32005
+ throw e;
32006
+ });
32007
+ }),
32008
+ /**
32009
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchSave&version=v2 click to debug }
32010
+ *
32011
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
32012
+ *
32013
+ * 批量创建/更新明细行
32014
+ */
32015
+ batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
32016
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
32017
+ return this.httpInstance
32018
+ .request({
32019
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchSave`, path),
32020
+ method: "POST",
32021
+ data,
32022
+ params,
32023
+ headers,
32024
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
32025
+ })
32026
+ .catch((e) => {
32027
+ this.logger.error(formatErrors(e));
32028
+ throw e;
32029
+ });
32030
+ }),
32031
+ },
31386
32032
  },
31387
32033
  };
31388
32034
  }
31389
32035
  }
31390
32036
 
31391
32037
  // auto gen
31392
- class Client$H extends Client$I {
32038
+ class Client$I extends Client$J {
31393
32039
  constructor() {
31394
32040
  super(...arguments);
31395
32041
  /**
@@ -31399,6 +32045,48 @@ class Client$H extends Client$I {
31399
32045
  }
31400
32046
  }
31401
32047
 
32048
+ // auto gen
32049
+ class Client$H extends Client$I {
32050
+ constructor() {
32051
+ super(...arguments);
32052
+ /**
32053
+
32054
+ */
32055
+ this.docs = {
32056
+ v1: {
32057
+ /**
32058
+ * content
32059
+ */
32060
+ content: {
32061
+ /**
32062
+ * {@link https://open.feishu.cn/api-explorer?project=docs&resource=content&apiName=get&version=v1 click to debug }
32063
+ *
32064
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docs&resource=content&version=v1 document }
32065
+ *
32066
+ * 获取云文档正文内容
32067
+ */
32068
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
32069
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
32070
+ return this.httpInstance
32071
+ .request({
32072
+ url: fillApiPath(`${this.domain}/open-apis/docs/v1/content`, path),
32073
+ method: "GET",
32074
+ data,
32075
+ params,
32076
+ headers,
32077
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
32078
+ })
32079
+ .catch((e) => {
32080
+ this.logger.error(formatErrors(e));
32081
+ throw e;
32082
+ });
32083
+ }),
32084
+ },
32085
+ },
32086
+ };
32087
+ }
32088
+ }
32089
+
31402
32090
  // auto gen
31403
32091
  class Client$G extends Client$H {
31404
32092
  constructor() {
@@ -32784,7 +33472,7 @@ class Client$E extends Client$F {
32784
33472
  constructor() {
32785
33473
  super(...arguments);
32786
33474
  /**
32787
- * 云文档-文件管理
33475
+ * 云文档-文档
32788
33476
  */
32789
33477
  this.drive = {
32790
33478
  /**
@@ -34078,7 +34766,7 @@ class Client$E extends Client$F {
34078
34766
  }),
34079
34767
  },
34080
34768
  /**
34081
- * 素材
34769
+ * 分片上传
34082
34770
  */
34083
34771
  media: {
34084
34772
  /**
@@ -35904,7 +36592,7 @@ class Client$E extends Client$F {
35904
36592
  }),
35905
36593
  },
35906
36594
  /**
35907
- * 素材
36595
+ * 分片上传
35908
36596
  */
35909
36597
  media: {
35910
36598
  /**
@@ -40363,6 +41051,27 @@ class Client$u extends Client$v {
40363
41051
  * 猎头(灰度租户可见)
40364
41052
  */
40365
41053
  agency: {
41054
+ /**
41055
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
41056
+ *
41057
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
41058
+ */
41059
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41060
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
41061
+ return this.httpInstance
41062
+ .request({
41063
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
41064
+ method: "POST",
41065
+ data,
41066
+ params,
41067
+ headers,
41068
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41069
+ })
41070
+ .catch((e) => {
41071
+ this.logger.error(formatErrors(e));
41072
+ throw e;
41073
+ });
41074
+ }),
40366
41075
  /**
40367
41076
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
40368
41077
  *
@@ -40388,6 +41097,48 @@ class Client$u extends Client$v {
40388
41097
  throw e;
40389
41098
  });
40390
41099
  }),
41100
+ /**
41101
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
41102
+ *
41103
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
41104
+ */
41105
+ getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41106
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
41107
+ return this.httpInstance
41108
+ .request({
41109
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
41110
+ method: "POST",
41111
+ data,
41112
+ params,
41113
+ headers,
41114
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41115
+ })
41116
+ .catch((e) => {
41117
+ this.logger.error(formatErrors(e));
41118
+ throw e;
41119
+ });
41120
+ }),
41121
+ /**
41122
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
41123
+ *
41124
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
41125
+ */
41126
+ operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41127
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
41128
+ return this.httpInstance
41129
+ .request({
41130
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
41131
+ method: "POST",
41132
+ data,
41133
+ params,
41134
+ headers,
41135
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41136
+ })
41137
+ .catch((e) => {
41138
+ this.logger.error(formatErrors(e));
41139
+ throw e;
41140
+ });
41141
+ }),
40391
41142
  /**
40392
41143
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
40393
41144
  *
@@ -40461,7 +41212,7 @@ class Client$u extends Client$v {
40461
41212
  }),
40462
41213
  },
40463
41214
  /**
40464
- * 入职
41215
+ * 投递
40465
41216
  */
40466
41217
  application: {
40467
41218
  /**
@@ -40514,6 +41265,27 @@ class Client$u extends Client$v {
40514
41265
  throw e;
40515
41266
  });
40516
41267
  }),
41268
+ /**
41269
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
41270
+ *
41271
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
41272
+ */
41273
+ getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41274
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
41275
+ return this.httpInstance
41276
+ .request({
41277
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
41278
+ method: "GET",
41279
+ data,
41280
+ params,
41281
+ headers,
41282
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41283
+ })
41284
+ .catch((e) => {
41285
+ this.logger.error(formatErrors(e));
41286
+ throw e;
41287
+ });
41288
+ }),
40517
41289
  /**
40518
41290
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
40519
41291
  *
@@ -41788,226 +42560,13 @@ class Client$u extends Client$v {
41788
42560
  * 导入外部系统信息(灰度租户可见)
41789
42561
  */
41790
42562
  externalBackgroundCheck: {
41791
- /**
41792
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
41793
- *
41794
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
41795
- *
41796
- * 创建外部背调
41797
- *
41798
- * 导入来自其他系统的背调信息,创建为外部背调
41799
- */
41800
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41801
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41802
- return this.httpInstance
41803
- .request({
41804
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
41805
- method: "POST",
41806
- data,
41807
- params,
41808
- headers,
41809
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41810
- })
41811
- .catch((e) => {
41812
- this.logger.error(formatErrors(e));
41813
- throw e;
41814
- });
41815
- }),
41816
- },
41817
- /**
41818
- * 导入外部系统信息(灰度租户可见)
41819
- */
41820
- externalInterview: {
41821
- /**
41822
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
41823
- *
41824
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
41825
- *
41826
- * 创建外部面试
41827
- *
41828
- * 导入来自其他系统的面试信息,创建为外部面试
41829
- */
41830
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41831
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41832
- return this.httpInstance
41833
- .request({
41834
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
41835
- method: "POST",
41836
- data,
41837
- params,
41838
- headers,
41839
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41840
- })
41841
- .catch((e) => {
41842
- this.logger.error(formatErrors(e));
41843
- throw e;
41844
- });
41845
- }),
41846
- },
41847
- /**
41848
- * 导入外部系统信息(灰度租户可见)
41849
- */
41850
- externalInterviewAssessment: {
41851
- /**
41852
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
41853
- *
41854
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
41855
- *
41856
- * 创建外部面评
41857
- *
41858
- * 导入来自其他系统的面评信息,创建为外部面评
41859
- */
41860
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41861
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41862
- return this.httpInstance
41863
- .request({
41864
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
41865
- method: "POST",
41866
- data,
41867
- params,
41868
- headers,
41869
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41870
- })
41871
- .catch((e) => {
41872
- this.logger.error(formatErrors(e));
41873
- throw e;
41874
- });
41875
- }),
41876
- /**
41877
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=patch&version=v1 click to debug }
41878
- *
41879
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=external_interview_assessment&version=v1 document }
41880
- */
41881
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41882
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41883
- return this.httpInstance
41884
- .request({
41885
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`, path),
41886
- method: "PATCH",
41887
- data,
41888
- params,
41889
- headers,
41890
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41891
- })
41892
- .catch((e) => {
41893
- this.logger.error(formatErrors(e));
41894
- throw e;
41895
- });
41896
- }),
41897
- },
41898
- /**
41899
- * external_referral_reward
41900
- */
41901
- externalReferralReward: {
41902
- /**
41903
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=create&version=v1 click to debug }
41904
- *
41905
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_referral_reward&version=v1 document }
41906
- */
41907
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41908
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41909
- return this.httpInstance
41910
- .request({
41911
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards`, path),
41912
- method: "POST",
41913
- data,
41914
- params,
41915
- headers,
41916
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41917
- })
41918
- .catch((e) => {
41919
- this.logger.error(formatErrors(e));
41920
- throw e;
41921
- });
41922
- }),
41923
- /**
41924
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=delete&version=v1 click to debug }
41925
- *
41926
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_referral_reward&version=v1 document }
41927
- */
41928
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41929
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41930
- return this.httpInstance
41931
- .request({
41932
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`, path),
41933
- method: "DELETE",
41934
- data,
41935
- params,
41936
- headers,
41937
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41938
- })
41939
- .catch((e) => {
41940
- this.logger.error(formatErrors(e));
41941
- throw e;
41942
- });
41943
- }),
41944
- },
41945
- /**
41946
- * 面试
41947
- */
41948
- interview: {
41949
- /**
41950
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=get_by_talent&version=v1 click to debug }
41951
- *
41952
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/get_by_talent document }
41953
- *
41954
- * 获取人才面试信息
41955
- *
41956
- * 获取人才面试信息
41957
- */
41958
- getByTalent: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41959
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41960
- return this.httpInstance
41961
- .request({
41962
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`, path),
41963
- method: "GET",
41964
- data,
41965
- params,
41966
- headers,
41967
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41968
- })
41969
- .catch((e) => {
41970
- this.logger.error(formatErrors(e));
41971
- throw e;
41972
- });
41973
- }),
41974
- /**
41975
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
41976
- *
41977
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
41978
- *
41979
- * 获取面试信息
41980
- *
41981
- * 根据投递 ID 或面试时间获取面试信息
41982
- */
41983
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41984
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
41985
- return this.httpInstance
41986
- .request({
41987
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
41988
- method: "GET",
41989
- data,
41990
- params,
41991
- headers,
41992
- paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
41993
- })
41994
- .catch((e) => {
41995
- this.logger.error(formatErrors(e));
41996
- throw e;
41997
- });
41998
- }),
41999
- },
42000
- /**
42001
- * interview_feedback_form
42002
- */
42003
- interviewFeedbackForm: {
42004
- listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42563
+ batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42005
42564
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
42006
42565
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
42007
42566
  const res = yield this.httpInstance
42008
42567
  .request({
42009
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
42010
- method: "GET",
42568
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
42569
+ method: "POST",
42011
42570
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
42012
42571
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
42013
42572
  data,
@@ -42052,16 +42611,16 @@ class Client$u extends Client$v {
42052
42611
  return Iterable;
42053
42612
  }),
42054
42613
  /**
42055
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_feedback_form&apiName=list&version=v1 click to debug }
42614
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
42056
42615
  *
42057
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interview_feedback_form&version=v1 document }
42616
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
42058
42617
  */
42059
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42618
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42060
42619
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
42061
42620
  return this.httpInstance
42062
42621
  .request({
42063
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
42064
- method: "GET",
42622
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
42623
+ method: "POST",
42065
42624
  data,
42066
42625
  params,
42067
42626
  headers,
@@ -42072,22 +42631,21 @@ class Client$u extends Client$v {
42072
42631
  throw e;
42073
42632
  });
42074
42633
  }),
42075
- },
42076
- /**
42077
- * interview_record.attachment
42078
- */
42079
- interviewRecordAttachment: {
42080
42634
  /**
42081
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record.attachment&apiName=get&version=v1 click to debug }
42635
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
42082
42636
  *
42083
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=interview_record.attachment&version=v1 document }
42637
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
42638
+ *
42639
+ * 创建外部背调
42640
+ *
42641
+ * 导入来自其他系统的背调信息,创建为外部背调
42084
42642
  */
42085
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42643
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42086
42644
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
42087
42645
  return this.httpInstance
42088
42646
  .request({
42089
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/attachments`, path),
42090
- method: "GET",
42647
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
42648
+ method: "POST",
42091
42649
  data,
42092
42650
  params,
42093
42651
  headers,
@@ -42098,26 +42656,38 @@ class Client$u extends Client$v {
42098
42656
  throw e;
42099
42657
  });
42100
42658
  }),
42101
- },
42102
- /**
42103
- * interview_record
42104
- */
42105
- interviewRecord: {
42106
42659
  /**
42107
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record&apiName=get&version=v1 click to debug }
42660
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
42108
42661
  *
42109
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview_record/get document }
42110
- *
42111
- * 获取面试评价详细信息
42662
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
42663
+ */
42664
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42665
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42666
+ return this.httpInstance
42667
+ .request({
42668
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
42669
+ method: "DELETE",
42670
+ data,
42671
+ params,
42672
+ headers,
42673
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42674
+ })
42675
+ .catch((e) => {
42676
+ this.logger.error(formatErrors(e));
42677
+ throw e;
42678
+ });
42679
+ }),
42680
+ /**
42681
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
42112
42682
  *
42113
- * 获取面试评价详细信息
42683
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
42114
42684
  */
42115
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42685
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42116
42686
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
42117
42687
  return this.httpInstance
42118
42688
  .request({
42119
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`, path),
42120
- method: "GET",
42689
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
42690
+ method: "PUT",
42121
42691
  data,
42122
42692
  params,
42123
42693
  headers,
@@ -42128,13 +42698,580 @@ class Client$u extends Client$v {
42128
42698
  throw e;
42129
42699
  });
42130
42700
  }),
42131
- listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42701
+ },
42702
+ /**
42703
+ * 导入外部系统信息(灰度租户可见)
42704
+ */
42705
+ externalInterview: {
42706
+ batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42132
42707
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
42133
42708
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
42134
42709
  const res = yield this.httpInstance
42135
42710
  .request({
42136
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records`, path),
42137
- method: "GET",
42711
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
42712
+ method: "POST",
42713
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
42714
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
42715
+ data,
42716
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42717
+ })
42718
+ .catch((e) => {
42719
+ this.logger.error(formatErrors(e));
42720
+ });
42721
+ return res;
42722
+ });
42723
+ const Iterable = {
42724
+ [Symbol.asyncIterator]() {
42725
+ return __asyncGenerator(this, arguments, function* _a() {
42726
+ let hasMore = true;
42727
+ let pageToken;
42728
+ while (hasMore) {
42729
+ try {
42730
+ const res = yield __await(sendRequest({
42731
+ headers,
42732
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
42733
+ data,
42734
+ }));
42735
+ const _b = get__default["default"](res, "data") || {}, {
42736
+ // @ts-ignore
42737
+ has_more,
42738
+ // @ts-ignore
42739
+ page_token,
42740
+ // @ts-ignore
42741
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
42742
+ yield yield __await(rest);
42743
+ hasMore = Boolean(has_more);
42744
+ pageToken = page_token || next_page_token;
42745
+ }
42746
+ catch (e) {
42747
+ yield yield __await(null);
42748
+ break;
42749
+ }
42750
+ }
42751
+ });
42752
+ },
42753
+ };
42754
+ return Iterable;
42755
+ }),
42756
+ /**
42757
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
42758
+ *
42759
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
42760
+ */
42761
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42762
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42763
+ return this.httpInstance
42764
+ .request({
42765
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
42766
+ method: "POST",
42767
+ data,
42768
+ params,
42769
+ headers,
42770
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42771
+ })
42772
+ .catch((e) => {
42773
+ this.logger.error(formatErrors(e));
42774
+ throw e;
42775
+ });
42776
+ }),
42777
+ /**
42778
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
42779
+ *
42780
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
42781
+ *
42782
+ * 创建外部面试
42783
+ *
42784
+ * 导入来自其他系统的面试信息,创建为外部面试
42785
+ */
42786
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42787
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42788
+ return this.httpInstance
42789
+ .request({
42790
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
42791
+ method: "POST",
42792
+ data,
42793
+ params,
42794
+ headers,
42795
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42796
+ })
42797
+ .catch((e) => {
42798
+ this.logger.error(formatErrors(e));
42799
+ throw e;
42800
+ });
42801
+ }),
42802
+ /**
42803
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
42804
+ *
42805
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
42806
+ */
42807
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42808
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42809
+ return this.httpInstance
42810
+ .request({
42811
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
42812
+ method: "DELETE",
42813
+ data,
42814
+ params,
42815
+ headers,
42816
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42817
+ })
42818
+ .catch((e) => {
42819
+ this.logger.error(formatErrors(e));
42820
+ throw e;
42821
+ });
42822
+ }),
42823
+ /**
42824
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
42825
+ *
42826
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
42827
+ */
42828
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42829
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42830
+ return this.httpInstance
42831
+ .request({
42832
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
42833
+ method: "PUT",
42834
+ data,
42835
+ params,
42836
+ headers,
42837
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42838
+ })
42839
+ .catch((e) => {
42840
+ this.logger.error(formatErrors(e));
42841
+ throw e;
42842
+ });
42843
+ }),
42844
+ },
42845
+ /**
42846
+ * 导入外部系统信息(灰度租户可见)
42847
+ */
42848
+ externalInterviewAssessment: {
42849
+ /**
42850
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
42851
+ *
42852
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
42853
+ *
42854
+ * 创建外部面评
42855
+ *
42856
+ * 导入来自其他系统的面评信息,创建为外部面评
42857
+ */
42858
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42859
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42860
+ return this.httpInstance
42861
+ .request({
42862
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
42863
+ method: "POST",
42864
+ data,
42865
+ params,
42866
+ headers,
42867
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42868
+ })
42869
+ .catch((e) => {
42870
+ this.logger.error(formatErrors(e));
42871
+ throw e;
42872
+ });
42873
+ }),
42874
+ /**
42875
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=patch&version=v1 click to debug }
42876
+ *
42877
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=external_interview_assessment&version=v1 document }
42878
+ */
42879
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42880
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42881
+ return this.httpInstance
42882
+ .request({
42883
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`, path),
42884
+ method: "PATCH",
42885
+ data,
42886
+ params,
42887
+ headers,
42888
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42889
+ })
42890
+ .catch((e) => {
42891
+ this.logger.error(formatErrors(e));
42892
+ throw e;
42893
+ });
42894
+ }),
42895
+ },
42896
+ /**
42897
+ * external_offer
42898
+ */
42899
+ externalOffer: {
42900
+ batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42901
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42902
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
42903
+ const res = yield this.httpInstance
42904
+ .request({
42905
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
42906
+ method: "POST",
42907
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
42908
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
42909
+ data,
42910
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42911
+ })
42912
+ .catch((e) => {
42913
+ this.logger.error(formatErrors(e));
42914
+ });
42915
+ return res;
42916
+ });
42917
+ const Iterable = {
42918
+ [Symbol.asyncIterator]() {
42919
+ return __asyncGenerator(this, arguments, function* _a() {
42920
+ let hasMore = true;
42921
+ let pageToken;
42922
+ while (hasMore) {
42923
+ try {
42924
+ const res = yield __await(sendRequest({
42925
+ headers,
42926
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
42927
+ data,
42928
+ }));
42929
+ const _b = get__default["default"](res, "data") || {}, {
42930
+ // @ts-ignore
42931
+ has_more,
42932
+ // @ts-ignore
42933
+ page_token,
42934
+ // @ts-ignore
42935
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
42936
+ yield yield __await(rest);
42937
+ hasMore = Boolean(has_more);
42938
+ pageToken = page_token || next_page_token;
42939
+ }
42940
+ catch (e) {
42941
+ yield yield __await(null);
42942
+ break;
42943
+ }
42944
+ }
42945
+ });
42946
+ },
42947
+ };
42948
+ return Iterable;
42949
+ }),
42950
+ /**
42951
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
42952
+ *
42953
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
42954
+ */
42955
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42956
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42957
+ return this.httpInstance
42958
+ .request({
42959
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
42960
+ method: "POST",
42961
+ data,
42962
+ params,
42963
+ headers,
42964
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42965
+ })
42966
+ .catch((e) => {
42967
+ this.logger.error(formatErrors(e));
42968
+ throw e;
42969
+ });
42970
+ }),
42971
+ /**
42972
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
42973
+ *
42974
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
42975
+ */
42976
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42977
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42978
+ return this.httpInstance
42979
+ .request({
42980
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
42981
+ method: "POST",
42982
+ data,
42983
+ params,
42984
+ headers,
42985
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
42986
+ })
42987
+ .catch((e) => {
42988
+ this.logger.error(formatErrors(e));
42989
+ throw e;
42990
+ });
42991
+ }),
42992
+ /**
42993
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
42994
+ *
42995
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
42996
+ */
42997
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42998
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42999
+ return this.httpInstance
43000
+ .request({
43001
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
43002
+ method: "DELETE",
43003
+ data,
43004
+ params,
43005
+ headers,
43006
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43007
+ })
43008
+ .catch((e) => {
43009
+ this.logger.error(formatErrors(e));
43010
+ throw e;
43011
+ });
43012
+ }),
43013
+ /**
43014
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
43015
+ *
43016
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
43017
+ */
43018
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43019
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43020
+ return this.httpInstance
43021
+ .request({
43022
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
43023
+ method: "PUT",
43024
+ data,
43025
+ params,
43026
+ headers,
43027
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43028
+ })
43029
+ .catch((e) => {
43030
+ this.logger.error(formatErrors(e));
43031
+ throw e;
43032
+ });
43033
+ }),
43034
+ },
43035
+ /**
43036
+ * external_referral_reward
43037
+ */
43038
+ externalReferralReward: {
43039
+ /**
43040
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=create&version=v1 click to debug }
43041
+ *
43042
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_referral_reward&version=v1 document }
43043
+ */
43044
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43045
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43046
+ return this.httpInstance
43047
+ .request({
43048
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards`, path),
43049
+ method: "POST",
43050
+ data,
43051
+ params,
43052
+ headers,
43053
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43054
+ })
43055
+ .catch((e) => {
43056
+ this.logger.error(formatErrors(e));
43057
+ throw e;
43058
+ });
43059
+ }),
43060
+ /**
43061
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=delete&version=v1 click to debug }
43062
+ *
43063
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_referral_reward&version=v1 document }
43064
+ */
43065
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43066
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43067
+ return this.httpInstance
43068
+ .request({
43069
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`, path),
43070
+ method: "DELETE",
43071
+ data,
43072
+ params,
43073
+ headers,
43074
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43075
+ })
43076
+ .catch((e) => {
43077
+ this.logger.error(formatErrors(e));
43078
+ throw e;
43079
+ });
43080
+ }),
43081
+ },
43082
+ /**
43083
+ * 面试
43084
+ */
43085
+ interview: {
43086
+ /**
43087
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=get_by_talent&version=v1 click to debug }
43088
+ *
43089
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/get_by_talent document }
43090
+ *
43091
+ * 获取人才面试信息
43092
+ *
43093
+ * 获取人才面试信息
43094
+ */
43095
+ getByTalent: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43096
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43097
+ return this.httpInstance
43098
+ .request({
43099
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`, path),
43100
+ method: "GET",
43101
+ data,
43102
+ params,
43103
+ headers,
43104
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43105
+ })
43106
+ .catch((e) => {
43107
+ this.logger.error(formatErrors(e));
43108
+ throw e;
43109
+ });
43110
+ }),
43111
+ /**
43112
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
43113
+ *
43114
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
43115
+ *
43116
+ * 获取面试信息
43117
+ *
43118
+ * 根据投递 ID 或面试时间获取面试信息
43119
+ */
43120
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43121
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43122
+ return this.httpInstance
43123
+ .request({
43124
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
43125
+ method: "GET",
43126
+ data,
43127
+ params,
43128
+ headers,
43129
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43130
+ })
43131
+ .catch((e) => {
43132
+ this.logger.error(formatErrors(e));
43133
+ throw e;
43134
+ });
43135
+ }),
43136
+ },
43137
+ /**
43138
+ * interview_feedback_form
43139
+ */
43140
+ interviewFeedbackForm: {
43141
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43142
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43143
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
43144
+ const res = yield this.httpInstance
43145
+ .request({
43146
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
43147
+ method: "GET",
43148
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
43149
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
43150
+ data,
43151
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43152
+ })
43153
+ .catch((e) => {
43154
+ this.logger.error(formatErrors(e));
43155
+ });
43156
+ return res;
43157
+ });
43158
+ const Iterable = {
43159
+ [Symbol.asyncIterator]() {
43160
+ return __asyncGenerator(this, arguments, function* _a() {
43161
+ let hasMore = true;
43162
+ let pageToken;
43163
+ while (hasMore) {
43164
+ try {
43165
+ const res = yield __await(sendRequest({
43166
+ headers,
43167
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
43168
+ data,
43169
+ }));
43170
+ const _b = get__default["default"](res, "data") || {}, {
43171
+ // @ts-ignore
43172
+ has_more,
43173
+ // @ts-ignore
43174
+ page_token,
43175
+ // @ts-ignore
43176
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
43177
+ yield yield __await(rest);
43178
+ hasMore = Boolean(has_more);
43179
+ pageToken = page_token || next_page_token;
43180
+ }
43181
+ catch (e) {
43182
+ yield yield __await(null);
43183
+ break;
43184
+ }
43185
+ }
43186
+ });
43187
+ },
43188
+ };
43189
+ return Iterable;
43190
+ }),
43191
+ /**
43192
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_feedback_form&apiName=list&version=v1 click to debug }
43193
+ *
43194
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interview_feedback_form&version=v1 document }
43195
+ */
43196
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43197
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43198
+ return this.httpInstance
43199
+ .request({
43200
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
43201
+ method: "GET",
43202
+ data,
43203
+ params,
43204
+ headers,
43205
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43206
+ })
43207
+ .catch((e) => {
43208
+ this.logger.error(formatErrors(e));
43209
+ throw e;
43210
+ });
43211
+ }),
43212
+ },
43213
+ /**
43214
+ * interview_record.attachment
43215
+ */
43216
+ interviewRecordAttachment: {
43217
+ /**
43218
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record.attachment&apiName=get&version=v1 click to debug }
43219
+ *
43220
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=interview_record.attachment&version=v1 document }
43221
+ */
43222
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43223
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43224
+ return this.httpInstance
43225
+ .request({
43226
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/attachments`, path),
43227
+ method: "GET",
43228
+ data,
43229
+ params,
43230
+ headers,
43231
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43232
+ })
43233
+ .catch((e) => {
43234
+ this.logger.error(formatErrors(e));
43235
+ throw e;
43236
+ });
43237
+ }),
43238
+ },
43239
+ /**
43240
+ * interview_record
43241
+ */
43242
+ interviewRecord: {
43243
+ /**
43244
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record&apiName=get&version=v1 click to debug }
43245
+ *
43246
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview_record/get document }
43247
+ *
43248
+ * 获取面试评价详细信息
43249
+ *
43250
+ * 获取面试评价详细信息
43251
+ */
43252
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43253
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43254
+ return this.httpInstance
43255
+ .request({
43256
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`, path),
43257
+ method: "GET",
43258
+ data,
43259
+ params,
43260
+ headers,
43261
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43262
+ })
43263
+ .catch((e) => {
43264
+ this.logger.error(formatErrors(e));
43265
+ throw e;
43266
+ });
43267
+ }),
43268
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43269
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43270
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
43271
+ const res = yield this.httpInstance
43272
+ .request({
43273
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records`, path),
43274
+ method: "GET",
42138
43275
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
42139
43276
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
42140
43277
  data,
@@ -42616,6 +43753,27 @@ class Client$u extends Client$v {
42616
43753
  throw e;
42617
43754
  });
42618
43755
  }),
43756
+ /**
43757
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
43758
+ *
43759
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
43760
+ */
43761
+ getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43762
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43763
+ return this.httpInstance
43764
+ .request({
43765
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
43766
+ method: "GET",
43767
+ data,
43768
+ params,
43769
+ headers,
43770
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
43771
+ })
43772
+ .catch((e) => {
43773
+ this.logger.error(formatErrors(e));
43774
+ throw e;
43775
+ });
43776
+ }),
42619
43777
  /**
42620
43778
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
42621
43779
  *
@@ -43814,6 +44972,48 @@ class Client$u extends Client$v {
43814
44972
  throw e;
43815
44973
  });
43816
44974
  }),
44975
+ /**
44976
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
44977
+ *
44978
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
44979
+ */
44980
+ enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
44981
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
44982
+ return this.httpInstance
44983
+ .request({
44984
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
44985
+ method: "POST",
44986
+ data,
44987
+ params,
44988
+ headers,
44989
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
44990
+ })
44991
+ .catch((e) => {
44992
+ this.logger.error(formatErrors(e));
44993
+ throw e;
44994
+ });
44995
+ }),
44996
+ /**
44997
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
44998
+ *
44999
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
45000
+ */
45001
+ getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
45002
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
45003
+ return this.httpInstance
45004
+ .request({
45005
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
45006
+ method: "GET",
45007
+ data,
45008
+ params,
45009
+ headers,
45010
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
45011
+ })
45012
+ .catch((e) => {
45013
+ this.logger.error(formatErrors(e));
45014
+ throw e;
45015
+ });
45016
+ }),
43817
45017
  /**
43818
45018
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
43819
45019
  *
@@ -44420,6 +45620,27 @@ class Client$u extends Client$v {
44420
45620
  throw e;
44421
45621
  });
44422
45622
  }),
45623
+ /**
45624
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
45625
+ *
45626
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
45627
+ */
45628
+ removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
45629
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
45630
+ return this.httpInstance
45631
+ .request({
45632
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
45633
+ method: "POST",
45634
+ data,
45635
+ params,
45636
+ headers,
45637
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
45638
+ })
45639
+ .catch((e) => {
45640
+ this.logger.error(formatErrors(e));
45641
+ throw e;
45642
+ });
45643
+ }),
44423
45644
  /**
44424
45645
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
44425
45646
  *
@@ -44497,6 +45718,32 @@ class Client$u extends Client$v {
44497
45718
  });
44498
45719
  }),
44499
45720
  },
45721
+ /**
45722
+ * talent_blocklist
45723
+ */
45724
+ talentBlocklist: {
45725
+ /**
45726
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
45727
+ *
45728
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
45729
+ */
45730
+ changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
45731
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
45732
+ return this.httpInstance
45733
+ .request({
45734
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
45735
+ method: "POST",
45736
+ data,
45737
+ params,
45738
+ headers,
45739
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
45740
+ })
45741
+ .catch((e) => {
45742
+ this.logger.error(formatErrors(e));
45743
+ throw e;
45744
+ });
45745
+ }),
45746
+ },
44500
45747
  /**
44501
45748
  * talent_folder
44502
45749
  */
@@ -44641,6 +45888,27 @@ class Client$u extends Client$v {
44641
45888
  * talent_pool
44642
45889
  */
44643
45890
  talentPool: {
45891
+ /**
45892
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
45893
+ *
45894
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
45895
+ */
45896
+ batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
45897
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
45898
+ return this.httpInstance
45899
+ .request({
45900
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
45901
+ method: "POST",
45902
+ data,
45903
+ params,
45904
+ headers,
45905
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
45906
+ })
45907
+ .catch((e) => {
45908
+ this.logger.error(formatErrors(e));
45909
+ throw e;
45910
+ });
45911
+ }),
44644
45912
  /**
44645
45913
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
44646
45914
  *
@@ -45786,6 +47054,27 @@ class Client$u extends Client$v {
45786
47054
  * 猎头(灰度租户可见)
45787
47055
  */
45788
47056
  agency: {
47057
+ /**
47058
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
47059
+ *
47060
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
47061
+ */
47062
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47063
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47064
+ return this.httpInstance
47065
+ .request({
47066
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
47067
+ method: "POST",
47068
+ data,
47069
+ params,
47070
+ headers,
47071
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
47072
+ })
47073
+ .catch((e) => {
47074
+ this.logger.error(formatErrors(e));
47075
+ throw e;
47076
+ });
47077
+ }),
45789
47078
  /**
45790
47079
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
45791
47080
  *
@@ -45811,6 +47100,48 @@ class Client$u extends Client$v {
45811
47100
  throw e;
45812
47101
  });
45813
47102
  }),
47103
+ /**
47104
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
47105
+ *
47106
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
47107
+ */
47108
+ getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47109
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47110
+ return this.httpInstance
47111
+ .request({
47112
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
47113
+ method: "POST",
47114
+ data,
47115
+ params,
47116
+ headers,
47117
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
47118
+ })
47119
+ .catch((e) => {
47120
+ this.logger.error(formatErrors(e));
47121
+ throw e;
47122
+ });
47123
+ }),
47124
+ /**
47125
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
47126
+ *
47127
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
47128
+ */
47129
+ operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47130
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47131
+ return this.httpInstance
47132
+ .request({
47133
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
47134
+ method: "POST",
47135
+ data,
47136
+ params,
47137
+ headers,
47138
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
47139
+ })
47140
+ .catch((e) => {
47141
+ this.logger.error(formatErrors(e));
47142
+ throw e;
47143
+ });
47144
+ }),
45814
47145
  /**
45815
47146
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
45816
47147
  *
@@ -45884,7 +47215,7 @@ class Client$u extends Client$v {
45884
47215
  }),
45885
47216
  },
45886
47217
  /**
45887
- * 入职
47218
+ * 投递
45888
47219
  */
45889
47220
  application: {
45890
47221
  /**
@@ -45937,6 +47268,27 @@ class Client$u extends Client$v {
45937
47268
  throw e;
45938
47269
  });
45939
47270
  }),
47271
+ /**
47272
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
47273
+ *
47274
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
47275
+ */
47276
+ getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47277
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47278
+ return this.httpInstance
47279
+ .request({
47280
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
47281
+ method: "GET",
47282
+ data,
47283
+ params,
47284
+ headers,
47285
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
47286
+ })
47287
+ .catch((e) => {
47288
+ this.logger.error(formatErrors(e));
47289
+ throw e;
47290
+ });
47291
+ }),
45940
47292
  /**
45941
47293
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
45942
47294
  *
@@ -47169,18 +48521,264 @@ class Client$u extends Client$v {
47169
48521
  return Iterable;
47170
48522
  }),
47171
48523
  /**
47172
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
47173
- *
47174
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
48524
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
48525
+ *
48526
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
48527
+ *
48528
+ * 根据人才 id 获取外部投递列表
48529
+ */
48530
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48531
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48532
+ return this.httpInstance
48533
+ .request({
48534
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
48535
+ method: "GET",
48536
+ data,
48537
+ params,
48538
+ headers,
48539
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
48540
+ })
48541
+ .catch((e) => {
48542
+ this.logger.error(formatErrors(e));
48543
+ throw e;
48544
+ });
48545
+ }),
48546
+ /**
48547
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
48548
+ *
48549
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
48550
+ *
48551
+ * 更新外部投递
48552
+ */
48553
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48554
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48555
+ return this.httpInstance
48556
+ .request({
48557
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
48558
+ method: "PUT",
48559
+ data,
48560
+ params,
48561
+ headers,
48562
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
48563
+ })
48564
+ .catch((e) => {
48565
+ this.logger.error(formatErrors(e));
48566
+ throw e;
48567
+ });
48568
+ }),
48569
+ },
48570
+ /**
48571
+ * 导入外部系统信息(灰度租户可见)
48572
+ */
48573
+ externalBackgroundCheck: {
48574
+ batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48575
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48576
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
48577
+ const res = yield this.httpInstance
48578
+ .request({
48579
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
48580
+ method: "POST",
48581
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
48582
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
48583
+ data,
48584
+ paramsSerializer: (params) => qs.stringify(params, {
48585
+ arrayFormat: "repeat",
48586
+ }),
48587
+ })
48588
+ .catch((e) => {
48589
+ this.logger.error(formatErrors(e));
48590
+ });
48591
+ return res;
48592
+ });
48593
+ const Iterable = {
48594
+ [Symbol.asyncIterator]() {
48595
+ return __asyncGenerator(this, arguments, function* _a() {
48596
+ let hasMore = true;
48597
+ let pageToken;
48598
+ while (hasMore) {
48599
+ try {
48600
+ const res = yield __await(sendRequest({
48601
+ headers,
48602
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
48603
+ data,
48604
+ }));
48605
+ const _b = get__default["default"](res, "data") || {}, {
48606
+ // @ts-ignore
48607
+ has_more,
48608
+ // @ts-ignore
48609
+ page_token,
48610
+ // @ts-ignore
48611
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
48612
+ yield yield __await(rest);
48613
+ hasMore = Boolean(has_more);
48614
+ pageToken = page_token || next_page_token;
48615
+ }
48616
+ catch (e) {
48617
+ yield yield __await(null);
48618
+ break;
48619
+ }
48620
+ }
48621
+ });
48622
+ },
48623
+ };
48624
+ return Iterable;
48625
+ }),
48626
+ /**
48627
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
48628
+ *
48629
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
48630
+ */
48631
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48632
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48633
+ return this.httpInstance
48634
+ .request({
48635
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
48636
+ method: "POST",
48637
+ data,
48638
+ params,
48639
+ headers,
48640
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
48641
+ })
48642
+ .catch((e) => {
48643
+ this.logger.error(formatErrors(e));
48644
+ throw e;
48645
+ });
48646
+ }),
48647
+ /**
48648
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
48649
+ *
48650
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
48651
+ *
48652
+ * 创建外部背调
48653
+ *
48654
+ * 导入来自其他系统的背调信息,创建为外部背调
48655
+ */
48656
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48657
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48658
+ return this.httpInstance
48659
+ .request({
48660
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
48661
+ method: "POST",
48662
+ data,
48663
+ params,
48664
+ headers,
48665
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
48666
+ })
48667
+ .catch((e) => {
48668
+ this.logger.error(formatErrors(e));
48669
+ throw e;
48670
+ });
48671
+ }),
48672
+ /**
48673
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
48674
+ *
48675
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
48676
+ */
48677
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48678
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48679
+ return this.httpInstance
48680
+ .request({
48681
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
48682
+ method: "DELETE",
48683
+ data,
48684
+ params,
48685
+ headers,
48686
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
48687
+ })
48688
+ .catch((e) => {
48689
+ this.logger.error(formatErrors(e));
48690
+ throw e;
48691
+ });
48692
+ }),
48693
+ /**
48694
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
48695
+ *
48696
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
48697
+ */
48698
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48699
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48700
+ return this.httpInstance
48701
+ .request({
48702
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
48703
+ method: "PUT",
48704
+ data,
48705
+ params,
48706
+ headers,
48707
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
48708
+ })
48709
+ .catch((e) => {
48710
+ this.logger.error(formatErrors(e));
48711
+ throw e;
48712
+ });
48713
+ }),
48714
+ },
48715
+ /**
48716
+ * 导入外部系统信息(灰度租户可见)
48717
+ */
48718
+ externalInterview: {
48719
+ batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48720
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48721
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
48722
+ const res = yield this.httpInstance
48723
+ .request({
48724
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
48725
+ method: "POST",
48726
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
48727
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
48728
+ data,
48729
+ paramsSerializer: (params) => qs.stringify(params, {
48730
+ arrayFormat: "repeat",
48731
+ }),
48732
+ })
48733
+ .catch((e) => {
48734
+ this.logger.error(formatErrors(e));
48735
+ });
48736
+ return res;
48737
+ });
48738
+ const Iterable = {
48739
+ [Symbol.asyncIterator]() {
48740
+ return __asyncGenerator(this, arguments, function* _a() {
48741
+ let hasMore = true;
48742
+ let pageToken;
48743
+ while (hasMore) {
48744
+ try {
48745
+ const res = yield __await(sendRequest({
48746
+ headers,
48747
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
48748
+ data,
48749
+ }));
48750
+ const _b = get__default["default"](res, "data") || {}, {
48751
+ // @ts-ignore
48752
+ has_more,
48753
+ // @ts-ignore
48754
+ page_token,
48755
+ // @ts-ignore
48756
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
48757
+ yield yield __await(rest);
48758
+ hasMore = Boolean(has_more);
48759
+ pageToken = page_token || next_page_token;
48760
+ }
48761
+ catch (e) {
48762
+ yield yield __await(null);
48763
+ break;
48764
+ }
48765
+ }
48766
+ });
48767
+ },
48768
+ };
48769
+ return Iterable;
48770
+ }),
48771
+ /**
48772
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
47175
48773
  *
47176
- * 根据人才 id 获取外部投递列表
48774
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
47177
48775
  */
47178
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48776
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47179
48777
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
47180
48778
  return this.httpInstance
47181
48779
  .request({
47182
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
47183
- method: "GET",
48780
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
48781
+ method: "POST",
47184
48782
  data,
47185
48783
  params,
47186
48784
  headers,
@@ -47192,18 +48790,20 @@ class Client$u extends Client$v {
47192
48790
  });
47193
48791
  }),
47194
48792
  /**
47195
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
48793
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
47196
48794
  *
47197
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
48795
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
47198
48796
  *
47199
- * 更新外部投递
48797
+ * 创建外部面试
48798
+ *
48799
+ * 导入来自其他系统的面试信息,创建为外部面试
47200
48800
  */
47201
- update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48801
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47202
48802
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
47203
48803
  return this.httpInstance
47204
48804
  .request({
47205
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
47206
- method: "PUT",
48805
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
48806
+ method: "POST",
47207
48807
  data,
47208
48808
  params,
47209
48809
  headers,
@@ -47214,26 +48814,17 @@ class Client$u extends Client$v {
47214
48814
  throw e;
47215
48815
  });
47216
48816
  }),
47217
- },
47218
- /**
47219
- * 导入外部系统信息(灰度租户可见)
47220
- */
47221
- externalBackgroundCheck: {
47222
48817
  /**
47223
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
48818
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
47224
48819
  *
47225
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
47226
- *
47227
- * 创建外部背调
47228
- *
47229
- * 导入来自其他系统的背调信息,创建为外部背调
48820
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
47230
48821
  */
47231
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48822
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47232
48823
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
47233
48824
  return this.httpInstance
47234
48825
  .request({
47235
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
47236
- method: "POST",
48826
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
48827
+ method: "DELETE",
47237
48828
  data,
47238
48829
  params,
47239
48830
  headers,
@@ -47244,26 +48835,17 @@ class Client$u extends Client$v {
47244
48835
  throw e;
47245
48836
  });
47246
48837
  }),
47247
- },
47248
- /**
47249
- * 导入外部系统信息(灰度租户可见)
47250
- */
47251
- externalInterview: {
47252
48838
  /**
47253
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
48839
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
47254
48840
  *
47255
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
47256
- *
47257
- * 创建外部面试
47258
- *
47259
- * 导入来自其他系统的面试信息,创建为外部面试
48841
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
47260
48842
  */
47261
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48843
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47262
48844
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
47263
48845
  return this.httpInstance
47264
48846
  .request({
47265
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
47266
- method: "POST",
48847
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
48848
+ method: "PUT",
47267
48849
  data,
47268
48850
  params,
47269
48851
  headers,
@@ -47326,6 +48908,147 @@ class Client$u extends Client$v {
47326
48908
  });
47327
48909
  }),
47328
48910
  },
48911
+ /**
48912
+ * external_offer
48913
+ */
48914
+ externalOffer: {
48915
+ batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48916
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48917
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
48918
+ const res = yield this.httpInstance
48919
+ .request({
48920
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
48921
+ method: "POST",
48922
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
48923
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
48924
+ data,
48925
+ paramsSerializer: (params) => qs.stringify(params, {
48926
+ arrayFormat: "repeat",
48927
+ }),
48928
+ })
48929
+ .catch((e) => {
48930
+ this.logger.error(formatErrors(e));
48931
+ });
48932
+ return res;
48933
+ });
48934
+ const Iterable = {
48935
+ [Symbol.asyncIterator]() {
48936
+ return __asyncGenerator(this, arguments, function* _a() {
48937
+ let hasMore = true;
48938
+ let pageToken;
48939
+ while (hasMore) {
48940
+ try {
48941
+ const res = yield __await(sendRequest({
48942
+ headers,
48943
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
48944
+ data,
48945
+ }));
48946
+ const _b = get__default["default"](res, "data") || {}, {
48947
+ // @ts-ignore
48948
+ has_more,
48949
+ // @ts-ignore
48950
+ page_token,
48951
+ // @ts-ignore
48952
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
48953
+ yield yield __await(rest);
48954
+ hasMore = Boolean(has_more);
48955
+ pageToken = page_token || next_page_token;
48956
+ }
48957
+ catch (e) {
48958
+ yield yield __await(null);
48959
+ break;
48960
+ }
48961
+ }
48962
+ });
48963
+ },
48964
+ };
48965
+ return Iterable;
48966
+ }),
48967
+ /**
48968
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
48969
+ *
48970
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
48971
+ */
48972
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48973
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48974
+ return this.httpInstance
48975
+ .request({
48976
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
48977
+ method: "POST",
48978
+ data,
48979
+ params,
48980
+ headers,
48981
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
48982
+ })
48983
+ .catch((e) => {
48984
+ this.logger.error(formatErrors(e));
48985
+ throw e;
48986
+ });
48987
+ }),
48988
+ /**
48989
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
48990
+ *
48991
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
48992
+ */
48993
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48994
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48995
+ return this.httpInstance
48996
+ .request({
48997
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
48998
+ method: "POST",
48999
+ data,
49000
+ params,
49001
+ headers,
49002
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
49003
+ })
49004
+ .catch((e) => {
49005
+ this.logger.error(formatErrors(e));
49006
+ throw e;
49007
+ });
49008
+ }),
49009
+ /**
49010
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
49011
+ *
49012
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
49013
+ */
49014
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49015
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49016
+ return this.httpInstance
49017
+ .request({
49018
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
49019
+ method: "DELETE",
49020
+ data,
49021
+ params,
49022
+ headers,
49023
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
49024
+ })
49025
+ .catch((e) => {
49026
+ this.logger.error(formatErrors(e));
49027
+ throw e;
49028
+ });
49029
+ }),
49030
+ /**
49031
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
49032
+ *
49033
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
49034
+ */
49035
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49036
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49037
+ return this.httpInstance
49038
+ .request({
49039
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
49040
+ method: "PUT",
49041
+ data,
49042
+ params,
49043
+ headers,
49044
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
49045
+ })
49046
+ .catch((e) => {
49047
+ this.logger.error(formatErrors(e));
49048
+ throw e;
49049
+ });
49050
+ }),
49051
+ },
47329
49052
  /**
47330
49053
  * external_referral_reward
47331
49054
  */
@@ -48057,6 +49780,27 @@ class Client$u extends Client$v {
48057
49780
  throw e;
48058
49781
  });
48059
49782
  }),
49783
+ /**
49784
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
49785
+ *
49786
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
49787
+ */
49788
+ getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49789
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49790
+ return this.httpInstance
49791
+ .request({
49792
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
49793
+ method: "GET",
49794
+ data,
49795
+ params,
49796
+ headers,
49797
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
49798
+ })
49799
+ .catch((e) => {
49800
+ this.logger.error(formatErrors(e));
49801
+ throw e;
49802
+ });
49803
+ }),
48060
49804
  /**
48061
49805
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
48062
49806
  *
@@ -49261,6 +51005,48 @@ class Client$u extends Client$v {
49261
51005
  throw e;
49262
51006
  });
49263
51007
  }),
51008
+ /**
51009
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
51010
+ *
51011
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
51012
+ */
51013
+ enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
51014
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
51015
+ return this.httpInstance
51016
+ .request({
51017
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
51018
+ method: "POST",
51019
+ data,
51020
+ params,
51021
+ headers,
51022
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
51023
+ })
51024
+ .catch((e) => {
51025
+ this.logger.error(formatErrors(e));
51026
+ throw e;
51027
+ });
51028
+ }),
51029
+ /**
51030
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
51031
+ *
51032
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
51033
+ */
51034
+ getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
51035
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
51036
+ return this.httpInstance
51037
+ .request({
51038
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
51039
+ method: "GET",
51040
+ data,
51041
+ params,
51042
+ headers,
51043
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
51044
+ })
51045
+ .catch((e) => {
51046
+ this.logger.error(formatErrors(e));
51047
+ throw e;
51048
+ });
51049
+ }),
49264
51050
  /**
49265
51051
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
49266
51052
  *
@@ -49875,6 +51661,27 @@ class Client$u extends Client$v {
49875
51661
  throw e;
49876
51662
  });
49877
51663
  }),
51664
+ /**
51665
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
51666
+ *
51667
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
51668
+ */
51669
+ removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
51670
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
51671
+ return this.httpInstance
51672
+ .request({
51673
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
51674
+ method: "POST",
51675
+ data,
51676
+ params,
51677
+ headers,
51678
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
51679
+ })
51680
+ .catch((e) => {
51681
+ this.logger.error(formatErrors(e));
51682
+ throw e;
51683
+ });
51684
+ }),
49878
51685
  /**
49879
51686
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
49880
51687
  *
@@ -49952,6 +51759,32 @@ class Client$u extends Client$v {
49952
51759
  });
49953
51760
  }),
49954
51761
  },
51762
+ /**
51763
+ * talent_blocklist
51764
+ */
51765
+ talentBlocklist: {
51766
+ /**
51767
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
51768
+ *
51769
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
51770
+ */
51771
+ changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
51772
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
51773
+ return this.httpInstance
51774
+ .request({
51775
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
51776
+ method: "POST",
51777
+ data,
51778
+ params,
51779
+ headers,
51780
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
51781
+ })
51782
+ .catch((e) => {
51783
+ this.logger.error(formatErrors(e));
51784
+ throw e;
51785
+ });
51786
+ }),
51787
+ },
49955
51788
  /**
49956
51789
  * talent_folder
49957
51790
  */
@@ -50098,6 +51931,27 @@ class Client$u extends Client$v {
50098
51931
  * talent_pool
50099
51932
  */
50100
51933
  talentPool: {
51934
+ /**
51935
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
51936
+ *
51937
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
51938
+ */
51939
+ batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
51940
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
51941
+ return this.httpInstance
51942
+ .request({
51943
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
51944
+ method: "POST",
51945
+ data,
51946
+ params,
51947
+ headers,
51948
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
51949
+ })
51950
+ .catch((e) => {
51951
+ this.logger.error(formatErrors(e));
51952
+ throw e;
51953
+ });
51954
+ }),
50101
51955
  /**
50102
51956
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
50103
51957
  *
@@ -52635,7 +54489,7 @@ class Client$s extends Client$t {
52635
54489
  }),
52636
54490
  },
52637
54491
  /**
52638
- * 消息加急
54492
+ * 消息 - 消息卡片
52639
54493
  */
52640
54494
  message: {
52641
54495
  /**
@@ -54838,7 +56692,7 @@ class Client$s extends Client$t {
54838
56692
  }),
54839
56693
  },
54840
56694
  /**
54841
- * 消息加急
56695
+ * 消息 - 消息卡片
54842
56696
  */
54843
56697
  message: {
54844
56698
  /**
@@ -62769,7 +64623,7 @@ class Client$c extends Client$d {
62769
64623
  }),
62770
64624
  },
62771
64625
  /**
62772
- * 工作表
64626
+ * 行列
62773
64627
  */
62774
64628
  spreadsheetSheet: {
62775
64629
  /**
@@ -63499,7 +65353,7 @@ class Client$c extends Client$d {
63499
65353
  }),
63500
65354
  },
63501
65355
  /**
63502
- * 工作表
65356
+ * 行列
63503
65357
  */
63504
65358
  spreadsheetSheet: {
63505
65359
  /**