@larksuiteoapi/node-sdk 1.54.0 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1348,7 +1348,7 @@ class Client$15 extends Client$16 {
1348
1348
  constructor() {
1349
1349
  super(...arguments);
1350
1350
  /**
1351
- * 管理后台-行为审计
1351
+ * 管理后台-企业勋章
1352
1352
  */
1353
1353
  this.admin = {
1354
1354
  /**
@@ -19405,6 +19405,220 @@ class Client$Q extends Client$R {
19405
19405
  });
19406
19406
  }),
19407
19407
  },
19408
+ /**
19409
+ * lump_sum_payment
19410
+ */
19411
+ lumpSumPayment: {
19412
+ /**
19413
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_create&version=v1 click to debug }
19414
+ *
19415
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=compensation&resource=lump_sum_payment&version=v1 document }
19416
+ */
19417
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19418
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19419
+ return this.httpInstance
19420
+ .request({
19421
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_create`, path),
19422
+ method: "POST",
19423
+ data,
19424
+ params,
19425
+ headers,
19426
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
19427
+ })
19428
+ .catch((e) => {
19429
+ this.logger.error(formatErrors(e));
19430
+ throw e;
19431
+ });
19432
+ }),
19433
+ /**
19434
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_remove&version=v1 click to debug }
19435
+ *
19436
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_remove&project=compensation&resource=lump_sum_payment&version=v1 document }
19437
+ */
19438
+ batchRemove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19439
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19440
+ return this.httpInstance
19441
+ .request({
19442
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_remove`, path),
19443
+ method: "POST",
19444
+ data,
19445
+ params,
19446
+ headers,
19447
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
19448
+ })
19449
+ .catch((e) => {
19450
+ this.logger.error(formatErrors(e));
19451
+ throw e;
19452
+ });
19453
+ }),
19454
+ /**
19455
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_update&version=v1 click to debug }
19456
+ *
19457
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=compensation&resource=lump_sum_payment&version=v1 document }
19458
+ */
19459
+ batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19460
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19461
+ return this.httpInstance
19462
+ .request({
19463
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_update`, path),
19464
+ method: "POST",
19465
+ data,
19466
+ params,
19467
+ headers,
19468
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
19469
+ })
19470
+ .catch((e) => {
19471
+ this.logger.error(formatErrors(e));
19472
+ throw e;
19473
+ });
19474
+ }),
19475
+ queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19476
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19477
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19478
+ const res = yield this.httpInstance
19479
+ .request({
19480
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
19481
+ method: "POST",
19482
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
19483
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
19484
+ data,
19485
+ paramsSerializer: (params) => qs.stringify(params, {
19486
+ arrayFormat: "repeat",
19487
+ }),
19488
+ })
19489
+ .catch((e) => {
19490
+ this.logger.error(formatErrors(e));
19491
+ });
19492
+ return res;
19493
+ });
19494
+ const Iterable = {
19495
+ [Symbol.asyncIterator]() {
19496
+ return __asyncGenerator(this, arguments, function* _a() {
19497
+ let hasMore = true;
19498
+ let pageToken;
19499
+ while (hasMore) {
19500
+ try {
19501
+ const res = yield __await(sendRequest({
19502
+ headers,
19503
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19504
+ data,
19505
+ }));
19506
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
19507
+ // @ts-ignore
19508
+ has_more,
19509
+ // @ts-ignore
19510
+ page_token,
19511
+ // @ts-ignore
19512
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19513
+ yield yield __await(rest);
19514
+ hasMore = Boolean(has_more);
19515
+ pageToken = page_token || next_page_token;
19516
+ }
19517
+ catch (e) {
19518
+ yield yield __await(null);
19519
+ break;
19520
+ }
19521
+ }
19522
+ });
19523
+ },
19524
+ };
19525
+ return Iterable;
19526
+ }),
19527
+ /**
19528
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query&version=v1 click to debug }
19529
+ *
19530
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=compensation&resource=lump_sum_payment&version=v1 document }
19531
+ */
19532
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19533
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19534
+ return this.httpInstance
19535
+ .request({
19536
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
19537
+ method: "POST",
19538
+ data,
19539
+ params,
19540
+ headers,
19541
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
19542
+ })
19543
+ .catch((e) => {
19544
+ this.logger.error(formatErrors(e));
19545
+ throw e;
19546
+ });
19547
+ }),
19548
+ queryDetailWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19549
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19550
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19551
+ const res = yield this.httpInstance
19552
+ .request({
19553
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
19554
+ method: "POST",
19555
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
19556
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
19557
+ data,
19558
+ paramsSerializer: (params) => qs.stringify(params, {
19559
+ arrayFormat: "repeat",
19560
+ }),
19561
+ })
19562
+ .catch((e) => {
19563
+ this.logger.error(formatErrors(e));
19564
+ });
19565
+ return res;
19566
+ });
19567
+ const Iterable = {
19568
+ [Symbol.asyncIterator]() {
19569
+ return __asyncGenerator(this, arguments, function* _a() {
19570
+ let hasMore = true;
19571
+ let pageToken;
19572
+ while (hasMore) {
19573
+ try {
19574
+ const res = yield __await(sendRequest({
19575
+ headers,
19576
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19577
+ data,
19578
+ }));
19579
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
19580
+ // @ts-ignore
19581
+ has_more,
19582
+ // @ts-ignore
19583
+ page_token,
19584
+ // @ts-ignore
19585
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19586
+ yield yield __await(rest);
19587
+ hasMore = Boolean(has_more);
19588
+ pageToken = page_token || next_page_token;
19589
+ }
19590
+ catch (e) {
19591
+ yield yield __await(null);
19592
+ break;
19593
+ }
19594
+ }
19595
+ });
19596
+ },
19597
+ };
19598
+ return Iterable;
19599
+ }),
19600
+ /**
19601
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query_detail&version=v1 click to debug }
19602
+ *
19603
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_detail&project=compensation&resource=lump_sum_payment&version=v1 document }
19604
+ */
19605
+ queryDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19606
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19607
+ return this.httpInstance
19608
+ .request({
19609
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
19610
+ method: "POST",
19611
+ data,
19612
+ params,
19613
+ headers,
19614
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
19615
+ })
19616
+ .catch((e) => {
19617
+ this.logger.error(formatErrors(e));
19618
+ throw e;
19619
+ });
19620
+ }),
19621
+ },
19408
19622
  /**
19409
19623
  * plan
19410
19624
  */
@@ -32980,6 +33194,29 @@ class Client$M extends Client$N {
32980
33194
  * job
32981
33195
  */
32982
33196
  job: {
33197
+ /**
33198
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=batch_get&version=v2 click to debug }
33199
+ *
33200
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job&version=v2 document }
33201
+ *
33202
+ * 批量获取职务信息
33203
+ */
33204
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33205
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33206
+ return this.httpInstance
33207
+ .request({
33208
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/batch_get`, path),
33209
+ method: "POST",
33210
+ data,
33211
+ params,
33212
+ headers,
33213
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
33214
+ })
33215
+ .catch((e) => {
33216
+ this.logger.error(formatErrors(e));
33217
+ throw e;
33218
+ });
33219
+ }),
32983
33220
  /**
32984
33221
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=get&version=v2 click to debug }
32985
33222
  *
@@ -33026,6 +33263,29 @@ class Client$M extends Client$N {
33026
33263
  throw e;
33027
33264
  });
33028
33265
  }),
33266
+ /**
33267
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=query_multi_timeline&version=v2 click to debug }
33268
+ *
33269
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job&version=v2 document }
33270
+ *
33271
+ * 查询生效时间在指定时间范围的职务
33272
+ */
33273
+ queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33274
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33275
+ return this.httpInstance
33276
+ .request({
33277
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/query_multi_timeline`, path),
33278
+ method: "POST",
33279
+ data,
33280
+ params,
33281
+ headers,
33282
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
33283
+ })
33284
+ .catch((e) => {
33285
+ this.logger.error(formatErrors(e));
33286
+ throw e;
33287
+ });
33288
+ }),
33029
33289
  queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33030
33290
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
33031
33291
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -33249,6 +33509,29 @@ class Client$M extends Client$N {
33249
33509
  throw e;
33250
33510
  });
33251
33511
  }),
33512
+ /**
33513
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_multi_timeline&version=v2 click to debug }
33514
+ *
33515
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job_family&version=v2 document }
33516
+ *
33517
+ * 查询生效时间在指定时间范围的序列
33518
+ */
33519
+ queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33520
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33521
+ return this.httpInstance
33522
+ .request({
33523
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_multi_timeline`, path),
33524
+ method: "POST",
33525
+ data,
33526
+ params,
33527
+ headers,
33528
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
33529
+ })
33530
+ .catch((e) => {
33531
+ this.logger.error(formatErrors(e));
33532
+ throw e;
33533
+ });
33534
+ }),
33252
33535
  queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33253
33536
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
33254
33537
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -33887,6 +34170,126 @@ class Client$M extends Client$N {
33887
34170
  });
33888
34171
  }),
33889
34172
  },
34173
+ /**
34174
+ * pathway
34175
+ */
34176
+ pathway: {
34177
+ /**
34178
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=active&version=v2 click to debug }
34179
+ *
34180
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=active&project=corehr&resource=pathway&version=v2 document }
34181
+ *
34182
+ * 启/停用通道
34183
+ */
34184
+ active: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34185
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34186
+ return this.httpInstance
34187
+ .request({
34188
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/active`, path),
34189
+ method: "POST",
34190
+ data,
34191
+ params,
34192
+ headers,
34193
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
34194
+ })
34195
+ .catch((e) => {
34196
+ this.logger.error(formatErrors(e));
34197
+ throw e;
34198
+ });
34199
+ }),
34200
+ /**
34201
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=batch_get&version=v2 click to debug }
34202
+ *
34203
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=pathway&version=v2 document }
34204
+ *
34205
+ * 通过通道 ID 批量获取通道信息
34206
+ */
34207
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34208
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34209
+ return this.httpInstance
34210
+ .request({
34211
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/batch_get`, path),
34212
+ method: "POST",
34213
+ data,
34214
+ params,
34215
+ headers,
34216
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
34217
+ })
34218
+ .catch((e) => {
34219
+ this.logger.error(formatErrors(e));
34220
+ throw e;
34221
+ });
34222
+ }),
34223
+ /**
34224
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=create&version=v2 click to debug }
34225
+ *
34226
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=pathway&version=v2 document }
34227
+ *
34228
+ * 创建通道
34229
+ */
34230
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34231
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34232
+ return this.httpInstance
34233
+ .request({
34234
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways`, path),
34235
+ method: "POST",
34236
+ data,
34237
+ params,
34238
+ headers,
34239
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
34240
+ })
34241
+ .catch((e) => {
34242
+ this.logger.error(formatErrors(e));
34243
+ throw e;
34244
+ });
34245
+ }),
34246
+ /**
34247
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=delete&version=v2 click to debug }
34248
+ *
34249
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=pathway&version=v2 document }
34250
+ *
34251
+ * 删除通道
34252
+ */
34253
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34254
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34255
+ return this.httpInstance
34256
+ .request({
34257
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
34258
+ method: "DELETE",
34259
+ data,
34260
+ params,
34261
+ headers,
34262
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
34263
+ })
34264
+ .catch((e) => {
34265
+ this.logger.error(formatErrors(e));
34266
+ throw e;
34267
+ });
34268
+ }),
34269
+ /**
34270
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=patch&version=v2 click to debug }
34271
+ *
34272
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=pathway&version=v2 document }
34273
+ *
34274
+ * 更新通道信息
34275
+ */
34276
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34277
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34278
+ return this.httpInstance
34279
+ .request({
34280
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
34281
+ method: "PATCH",
34282
+ data,
34283
+ params,
34284
+ headers,
34285
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
34286
+ })
34287
+ .catch((e) => {
34288
+ this.logger.error(formatErrors(e));
34289
+ throw e;
34290
+ });
34291
+ }),
34292
+ },
33890
34293
  /**
33891
34294
  * person
33892
34295
  */
@@ -33936,6 +34339,34 @@ class Client$M extends Client$N {
33936
34339
  });
33937
34340
  }),
33938
34341
  },
34342
+ /**
34343
+ * position
34344
+ */
34345
+ position: {
34346
+ /**
34347
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=position&apiName=query&version=v2 click to debug }
34348
+ *
34349
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=position&version=v2 document }
34350
+ *
34351
+ * 查询岗位信息
34352
+ */
34353
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34354
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34355
+ return this.httpInstance
34356
+ .request({
34357
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/positions/query`, path),
34358
+ method: "POST",
34359
+ data,
34360
+ params,
34361
+ headers,
34362
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
34363
+ })
34364
+ .catch((e) => {
34365
+ this.logger.error(formatErrors(e));
34366
+ throw e;
34367
+ });
34368
+ }),
34369
+ },
33939
34370
  /**
33940
34371
  * 待入职
33941
34372
  */
@@ -37995,7 +38426,7 @@ class Client$G extends Client$H {
37995
38426
  }),
37996
38427
  },
37997
38428
  /**
37998
- * 文件夹
38429
+ * 文件
37999
38430
  */
38000
38431
  file: {
38001
38432
  /**
@@ -39821,7 +40252,7 @@ class Client$G extends Client$H {
39821
40252
  }),
39822
40253
  },
39823
40254
  /**
39824
- * 文件夹
40255
+ * 文件
39825
40256
  */
39826
40257
  file: {
39827
40258
  /**
@@ -45164,7 +45595,7 @@ class Client$x extends Client$y {
45164
45595
  }),
45165
45596
  },
45166
45597
  /**
45167
- * 投递
45598
+ * 入职
45168
45599
  */
45169
45600
  application: {
45170
45601
  /**
@@ -48766,6 +49197,36 @@ class Client$x extends Client$y {
48766
49197
  });
48767
49198
  }),
48768
49199
  },
49200
+ /**
49201
+ * Offer 审批流配置(灰度租户可见)
49202
+ */
49203
+ offerApprovalTemplate: {
49204
+ /**
49205
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
49206
+ *
49207
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
49208
+ *
49209
+ * 获取 Offer 审批流配置列表
49210
+ *
49211
+ * 获取 Offer 审批流配置列表
49212
+ */
49213
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49214
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49215
+ return this.httpInstance
49216
+ .request({
49217
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
49218
+ method: "GET",
49219
+ data,
49220
+ params,
49221
+ headers,
49222
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
49223
+ })
49224
+ .catch((e) => {
49225
+ this.logger.error(formatErrors(e));
49226
+ throw e;
49227
+ });
49228
+ }),
49229
+ },
48769
49230
  /**
48770
49231
  * offer_custom_field
48771
49232
  */
@@ -48822,6 +49283,82 @@ class Client$x extends Client$y {
48822
49283
  });
48823
49284
  }),
48824
49285
  },
49286
+ /**
49287
+ * portal_apply_schema
49288
+ */
49289
+ portalApplySchema: {
49290
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49291
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49292
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
49293
+ const res = yield this.httpInstance
49294
+ .request({
49295
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
49296
+ method: "GET",
49297
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
49298
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
49299
+ data,
49300
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
49301
+ })
49302
+ .catch((e) => {
49303
+ this.logger.error(formatErrors(e));
49304
+ });
49305
+ return res;
49306
+ });
49307
+ const Iterable = {
49308
+ [Symbol.asyncIterator]() {
49309
+ return __asyncGenerator(this, arguments, function* _a() {
49310
+ let hasMore = true;
49311
+ let pageToken;
49312
+ while (hasMore) {
49313
+ try {
49314
+ const res = yield __await(sendRequest({
49315
+ headers,
49316
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
49317
+ data,
49318
+ }));
49319
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
49320
+ // @ts-ignore
49321
+ has_more,
49322
+ // @ts-ignore
49323
+ page_token,
49324
+ // @ts-ignore
49325
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
49326
+ yield yield __await(rest);
49327
+ hasMore = Boolean(has_more);
49328
+ pageToken = page_token || next_page_token;
49329
+ }
49330
+ catch (e) {
49331
+ yield yield __await(null);
49332
+ break;
49333
+ }
49334
+ }
49335
+ });
49336
+ },
49337
+ };
49338
+ return Iterable;
49339
+ }),
49340
+ /**
49341
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
49342
+ *
49343
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
49344
+ */
49345
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49346
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49347
+ return this.httpInstance
49348
+ .request({
49349
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
49350
+ method: "GET",
49351
+ data,
49352
+ params,
49353
+ headers,
49354
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
49355
+ })
49356
+ .catch((e) => {
49357
+ this.logger.error(formatErrors(e));
49358
+ throw e;
49359
+ });
49360
+ }),
49361
+ },
48825
49362
  /**
48826
49363
  * 问卷(灰度租户可见)
48827
49364
  */
@@ -51192,7 +51729,7 @@ class Client$x extends Client$y {
51192
51729
  }),
51193
51730
  },
51194
51731
  /**
51195
- * 投递
51732
+ * 入职
51196
51733
  */
51197
51734
  application: {
51198
51735
  /**
@@ -54824,6 +55361,36 @@ class Client$x extends Client$y {
54824
55361
  });
54825
55362
  }),
54826
55363
  },
55364
+ /**
55365
+ * Offer 审批流配置(灰度租户可见)
55366
+ */
55367
+ offerApprovalTemplate: {
55368
+ /**
55369
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
55370
+ *
55371
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
55372
+ *
55373
+ * 获取 Offer 审批流配置列表
55374
+ *
55375
+ * 获取 Offer 审批流配置列表
55376
+ */
55377
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
55378
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
55379
+ return this.httpInstance
55380
+ .request({
55381
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
55382
+ method: "GET",
55383
+ data,
55384
+ params,
55385
+ headers,
55386
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
55387
+ })
55388
+ .catch((e) => {
55389
+ this.logger.error(formatErrors(e));
55390
+ throw e;
55391
+ });
55392
+ }),
55393
+ },
54827
55394
  /**
54828
55395
  * offer_custom_field
54829
55396
  */
@@ -54880,6 +55447,84 @@ class Client$x extends Client$y {
54880
55447
  });
54881
55448
  }),
54882
55449
  },
55450
+ /**
55451
+ * portal_apply_schema
55452
+ */
55453
+ portalApplySchema: {
55454
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
55455
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
55456
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
55457
+ const res = yield this.httpInstance
55458
+ .request({
55459
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
55460
+ method: "GET",
55461
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
55462
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
55463
+ data,
55464
+ paramsSerializer: (params) => qs.stringify(params, {
55465
+ arrayFormat: "repeat",
55466
+ }),
55467
+ })
55468
+ .catch((e) => {
55469
+ this.logger.error(formatErrors(e));
55470
+ });
55471
+ return res;
55472
+ });
55473
+ const Iterable = {
55474
+ [Symbol.asyncIterator]() {
55475
+ return __asyncGenerator(this, arguments, function* _a() {
55476
+ let hasMore = true;
55477
+ let pageToken;
55478
+ while (hasMore) {
55479
+ try {
55480
+ const res = yield __await(sendRequest({
55481
+ headers,
55482
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
55483
+ data,
55484
+ }));
55485
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
55486
+ // @ts-ignore
55487
+ has_more,
55488
+ // @ts-ignore
55489
+ page_token,
55490
+ // @ts-ignore
55491
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
55492
+ yield yield __await(rest);
55493
+ hasMore = Boolean(has_more);
55494
+ pageToken = page_token || next_page_token;
55495
+ }
55496
+ catch (e) {
55497
+ yield yield __await(null);
55498
+ break;
55499
+ }
55500
+ }
55501
+ });
55502
+ },
55503
+ };
55504
+ return Iterable;
55505
+ }),
55506
+ /**
55507
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
55508
+ *
55509
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
55510
+ */
55511
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
55512
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
55513
+ return this.httpInstance
55514
+ .request({
55515
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
55516
+ method: "GET",
55517
+ data,
55518
+ params,
55519
+ headers,
55520
+ paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
55521
+ })
55522
+ .catch((e) => {
55523
+ this.logger.error(formatErrors(e));
55524
+ throw e;
55525
+ });
55526
+ }),
55527
+ },
54883
55528
  /**
54884
55529
  * 问卷(灰度租户可见)
54885
55530
  */