@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/es/index.js CHANGED
@@ -1333,7 +1333,7 @@ class Client$15 extends Client$16 {
1333
1333
  constructor() {
1334
1334
  super(...arguments);
1335
1335
  /**
1336
- * 管理后台-行为审计
1336
+ * 管理后台-企业勋章
1337
1337
  */
1338
1338
  this.admin = {
1339
1339
  /**
@@ -19390,6 +19390,220 @@ class Client$Q extends Client$R {
19390
19390
  });
19391
19391
  }),
19392
19392
  },
19393
+ /**
19394
+ * lump_sum_payment
19395
+ */
19396
+ lumpSumPayment: {
19397
+ /**
19398
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_create&version=v1 click to debug }
19399
+ *
19400
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=compensation&resource=lump_sum_payment&version=v1 document }
19401
+ */
19402
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19403
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19404
+ return this.httpInstance
19405
+ .request({
19406
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_create`, path),
19407
+ method: "POST",
19408
+ data,
19409
+ params,
19410
+ headers,
19411
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
19412
+ })
19413
+ .catch((e) => {
19414
+ this.logger.error(formatErrors(e));
19415
+ throw e;
19416
+ });
19417
+ }),
19418
+ /**
19419
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_remove&version=v1 click to debug }
19420
+ *
19421
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_remove&project=compensation&resource=lump_sum_payment&version=v1 document }
19422
+ */
19423
+ batchRemove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19424
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19425
+ return this.httpInstance
19426
+ .request({
19427
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_remove`, path),
19428
+ method: "POST",
19429
+ data,
19430
+ params,
19431
+ headers,
19432
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
19433
+ })
19434
+ .catch((e) => {
19435
+ this.logger.error(formatErrors(e));
19436
+ throw e;
19437
+ });
19438
+ }),
19439
+ /**
19440
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_update&version=v1 click to debug }
19441
+ *
19442
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=compensation&resource=lump_sum_payment&version=v1 document }
19443
+ */
19444
+ batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19445
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19446
+ return this.httpInstance
19447
+ .request({
19448
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_update`, path),
19449
+ method: "POST",
19450
+ data,
19451
+ params,
19452
+ headers,
19453
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
19454
+ })
19455
+ .catch((e) => {
19456
+ this.logger.error(formatErrors(e));
19457
+ throw e;
19458
+ });
19459
+ }),
19460
+ queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19461
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19462
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19463
+ const res = yield this.httpInstance
19464
+ .request({
19465
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
19466
+ method: "POST",
19467
+ headers: pickBy(innerPayload.headers, identity),
19468
+ params: pickBy(innerPayload.params, identity),
19469
+ data,
19470
+ paramsSerializer: (params) => stringify(params, {
19471
+ arrayFormat: "repeat",
19472
+ }),
19473
+ })
19474
+ .catch((e) => {
19475
+ this.logger.error(formatErrors(e));
19476
+ });
19477
+ return res;
19478
+ });
19479
+ const Iterable = {
19480
+ [Symbol.asyncIterator]() {
19481
+ return __asyncGenerator(this, arguments, function* _a() {
19482
+ let hasMore = true;
19483
+ let pageToken;
19484
+ while (hasMore) {
19485
+ try {
19486
+ const res = yield __await(sendRequest({
19487
+ headers,
19488
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19489
+ data,
19490
+ }));
19491
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
19492
+ // @ts-ignore
19493
+ has_more,
19494
+ // @ts-ignore
19495
+ page_token,
19496
+ // @ts-ignore
19497
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19498
+ yield yield __await(rest);
19499
+ hasMore = Boolean(has_more);
19500
+ pageToken = page_token || next_page_token;
19501
+ }
19502
+ catch (e) {
19503
+ yield yield __await(null);
19504
+ break;
19505
+ }
19506
+ }
19507
+ });
19508
+ },
19509
+ };
19510
+ return Iterable;
19511
+ }),
19512
+ /**
19513
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query&version=v1 click to debug }
19514
+ *
19515
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=compensation&resource=lump_sum_payment&version=v1 document }
19516
+ */
19517
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19518
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19519
+ return this.httpInstance
19520
+ .request({
19521
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
19522
+ method: "POST",
19523
+ data,
19524
+ params,
19525
+ headers,
19526
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
19527
+ })
19528
+ .catch((e) => {
19529
+ this.logger.error(formatErrors(e));
19530
+ throw e;
19531
+ });
19532
+ }),
19533
+ queryDetailWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19534
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19535
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19536
+ const res = yield this.httpInstance
19537
+ .request({
19538
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
19539
+ method: "POST",
19540
+ headers: pickBy(innerPayload.headers, identity),
19541
+ params: pickBy(innerPayload.params, identity),
19542
+ data,
19543
+ paramsSerializer: (params) => stringify(params, {
19544
+ arrayFormat: "repeat",
19545
+ }),
19546
+ })
19547
+ .catch((e) => {
19548
+ this.logger.error(formatErrors(e));
19549
+ });
19550
+ return res;
19551
+ });
19552
+ const Iterable = {
19553
+ [Symbol.asyncIterator]() {
19554
+ return __asyncGenerator(this, arguments, function* _a() {
19555
+ let hasMore = true;
19556
+ let pageToken;
19557
+ while (hasMore) {
19558
+ try {
19559
+ const res = yield __await(sendRequest({
19560
+ headers,
19561
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19562
+ data,
19563
+ }));
19564
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
19565
+ // @ts-ignore
19566
+ has_more,
19567
+ // @ts-ignore
19568
+ page_token,
19569
+ // @ts-ignore
19570
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19571
+ yield yield __await(rest);
19572
+ hasMore = Boolean(has_more);
19573
+ pageToken = page_token || next_page_token;
19574
+ }
19575
+ catch (e) {
19576
+ yield yield __await(null);
19577
+ break;
19578
+ }
19579
+ }
19580
+ });
19581
+ },
19582
+ };
19583
+ return Iterable;
19584
+ }),
19585
+ /**
19586
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query_detail&version=v1 click to debug }
19587
+ *
19588
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_detail&project=compensation&resource=lump_sum_payment&version=v1 document }
19589
+ */
19590
+ queryDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19591
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19592
+ return this.httpInstance
19593
+ .request({
19594
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
19595
+ method: "POST",
19596
+ data,
19597
+ params,
19598
+ headers,
19599
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
19600
+ })
19601
+ .catch((e) => {
19602
+ this.logger.error(formatErrors(e));
19603
+ throw e;
19604
+ });
19605
+ }),
19606
+ },
19393
19607
  /**
19394
19608
  * plan
19395
19609
  */
@@ -32965,6 +33179,29 @@ class Client$M extends Client$N {
32965
33179
  * job
32966
33180
  */
32967
33181
  job: {
33182
+ /**
33183
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=batch_get&version=v2 click to debug }
33184
+ *
33185
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job&version=v2 document }
33186
+ *
33187
+ * 批量获取职务信息
33188
+ */
33189
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33190
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33191
+ return this.httpInstance
33192
+ .request({
33193
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/batch_get`, path),
33194
+ method: "POST",
33195
+ data,
33196
+ params,
33197
+ headers,
33198
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33199
+ })
33200
+ .catch((e) => {
33201
+ this.logger.error(formatErrors(e));
33202
+ throw e;
33203
+ });
33204
+ }),
32968
33205
  /**
32969
33206
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=get&version=v2 click to debug }
32970
33207
  *
@@ -33011,6 +33248,29 @@ class Client$M extends Client$N {
33011
33248
  throw e;
33012
33249
  });
33013
33250
  }),
33251
+ /**
33252
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=query_multi_timeline&version=v2 click to debug }
33253
+ *
33254
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job&version=v2 document }
33255
+ *
33256
+ * 查询生效时间在指定时间范围的职务
33257
+ */
33258
+ queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33259
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33260
+ return this.httpInstance
33261
+ .request({
33262
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/query_multi_timeline`, path),
33263
+ method: "POST",
33264
+ data,
33265
+ params,
33266
+ headers,
33267
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33268
+ })
33269
+ .catch((e) => {
33270
+ this.logger.error(formatErrors(e));
33271
+ throw e;
33272
+ });
33273
+ }),
33014
33274
  queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33015
33275
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
33016
33276
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -33234,6 +33494,29 @@ class Client$M extends Client$N {
33234
33494
  throw e;
33235
33495
  });
33236
33496
  }),
33497
+ /**
33498
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_multi_timeline&version=v2 click to debug }
33499
+ *
33500
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job_family&version=v2 document }
33501
+ *
33502
+ * 查询生效时间在指定时间范围的序列
33503
+ */
33504
+ queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33505
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33506
+ return this.httpInstance
33507
+ .request({
33508
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_multi_timeline`, path),
33509
+ method: "POST",
33510
+ data,
33511
+ params,
33512
+ headers,
33513
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33514
+ })
33515
+ .catch((e) => {
33516
+ this.logger.error(formatErrors(e));
33517
+ throw e;
33518
+ });
33519
+ }),
33237
33520
  queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33238
33521
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
33239
33522
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -33872,6 +34155,126 @@ class Client$M extends Client$N {
33872
34155
  });
33873
34156
  }),
33874
34157
  },
34158
+ /**
34159
+ * pathway
34160
+ */
34161
+ pathway: {
34162
+ /**
34163
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=active&version=v2 click to debug }
34164
+ *
34165
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=active&project=corehr&resource=pathway&version=v2 document }
34166
+ *
34167
+ * 启/停用通道
34168
+ */
34169
+ active: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34170
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34171
+ return this.httpInstance
34172
+ .request({
34173
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/active`, path),
34174
+ method: "POST",
34175
+ data,
34176
+ params,
34177
+ headers,
34178
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34179
+ })
34180
+ .catch((e) => {
34181
+ this.logger.error(formatErrors(e));
34182
+ throw e;
34183
+ });
34184
+ }),
34185
+ /**
34186
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=batch_get&version=v2 click to debug }
34187
+ *
34188
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=pathway&version=v2 document }
34189
+ *
34190
+ * 通过通道 ID 批量获取通道信息
34191
+ */
34192
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34193
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34194
+ return this.httpInstance
34195
+ .request({
34196
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/batch_get`, path),
34197
+ method: "POST",
34198
+ data,
34199
+ params,
34200
+ headers,
34201
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34202
+ })
34203
+ .catch((e) => {
34204
+ this.logger.error(formatErrors(e));
34205
+ throw e;
34206
+ });
34207
+ }),
34208
+ /**
34209
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=create&version=v2 click to debug }
34210
+ *
34211
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=pathway&version=v2 document }
34212
+ *
34213
+ * 创建通道
34214
+ */
34215
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34216
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34217
+ return this.httpInstance
34218
+ .request({
34219
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways`, path),
34220
+ method: "POST",
34221
+ data,
34222
+ params,
34223
+ headers,
34224
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34225
+ })
34226
+ .catch((e) => {
34227
+ this.logger.error(formatErrors(e));
34228
+ throw e;
34229
+ });
34230
+ }),
34231
+ /**
34232
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=delete&version=v2 click to debug }
34233
+ *
34234
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=pathway&version=v2 document }
34235
+ *
34236
+ * 删除通道
34237
+ */
34238
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34239
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34240
+ return this.httpInstance
34241
+ .request({
34242
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
34243
+ method: "DELETE",
34244
+ data,
34245
+ params,
34246
+ headers,
34247
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34248
+ })
34249
+ .catch((e) => {
34250
+ this.logger.error(formatErrors(e));
34251
+ throw e;
34252
+ });
34253
+ }),
34254
+ /**
34255
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=patch&version=v2 click to debug }
34256
+ *
34257
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=pathway&version=v2 document }
34258
+ *
34259
+ * 更新通道信息
34260
+ */
34261
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34262
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34263
+ return this.httpInstance
34264
+ .request({
34265
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
34266
+ method: "PATCH",
34267
+ data,
34268
+ params,
34269
+ headers,
34270
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34271
+ })
34272
+ .catch((e) => {
34273
+ this.logger.error(formatErrors(e));
34274
+ throw e;
34275
+ });
34276
+ }),
34277
+ },
33875
34278
  /**
33876
34279
  * person
33877
34280
  */
@@ -33921,6 +34324,34 @@ class Client$M extends Client$N {
33921
34324
  });
33922
34325
  }),
33923
34326
  },
34327
+ /**
34328
+ * position
34329
+ */
34330
+ position: {
34331
+ /**
34332
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=position&apiName=query&version=v2 click to debug }
34333
+ *
34334
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=position&version=v2 document }
34335
+ *
34336
+ * 查询岗位信息
34337
+ */
34338
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34339
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34340
+ return this.httpInstance
34341
+ .request({
34342
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/positions/query`, path),
34343
+ method: "POST",
34344
+ data,
34345
+ params,
34346
+ headers,
34347
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34348
+ })
34349
+ .catch((e) => {
34350
+ this.logger.error(formatErrors(e));
34351
+ throw e;
34352
+ });
34353
+ }),
34354
+ },
33924
34355
  /**
33925
34356
  * 待入职
33926
34357
  */
@@ -37980,7 +38411,7 @@ class Client$G extends Client$H {
37980
38411
  }),
37981
38412
  },
37982
38413
  /**
37983
- * 文件夹
38414
+ * 文件
37984
38415
  */
37985
38416
  file: {
37986
38417
  /**
@@ -39806,7 +40237,7 @@ class Client$G extends Client$H {
39806
40237
  }),
39807
40238
  },
39808
40239
  /**
39809
- * 文件夹
40240
+ * 文件
39810
40241
  */
39811
40242
  file: {
39812
40243
  /**
@@ -45149,7 +45580,7 @@ class Client$x extends Client$y {
45149
45580
  }),
45150
45581
  },
45151
45582
  /**
45152
- * 投递
45583
+ * 入职
45153
45584
  */
45154
45585
  application: {
45155
45586
  /**
@@ -48751,6 +49182,36 @@ class Client$x extends Client$y {
48751
49182
  });
48752
49183
  }),
48753
49184
  },
49185
+ /**
49186
+ * Offer 审批流配置(灰度租户可见)
49187
+ */
49188
+ offerApprovalTemplate: {
49189
+ /**
49190
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
49191
+ *
49192
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
49193
+ *
49194
+ * 获取 Offer 审批流配置列表
49195
+ *
49196
+ * 获取 Offer 审批流配置列表
49197
+ */
49198
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49199
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49200
+ return this.httpInstance
49201
+ .request({
49202
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
49203
+ method: "GET",
49204
+ data,
49205
+ params,
49206
+ headers,
49207
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
49208
+ })
49209
+ .catch((e) => {
49210
+ this.logger.error(formatErrors(e));
49211
+ throw e;
49212
+ });
49213
+ }),
49214
+ },
48754
49215
  /**
48755
49216
  * offer_custom_field
48756
49217
  */
@@ -48807,6 +49268,82 @@ class Client$x extends Client$y {
48807
49268
  });
48808
49269
  }),
48809
49270
  },
49271
+ /**
49272
+ * portal_apply_schema
49273
+ */
49274
+ portalApplySchema: {
49275
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49276
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49277
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
49278
+ const res = yield this.httpInstance
49279
+ .request({
49280
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
49281
+ method: "GET",
49282
+ headers: pickBy(innerPayload.headers, identity),
49283
+ params: pickBy(innerPayload.params, identity),
49284
+ data,
49285
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
49286
+ })
49287
+ .catch((e) => {
49288
+ this.logger.error(formatErrors(e));
49289
+ });
49290
+ return res;
49291
+ });
49292
+ const Iterable = {
49293
+ [Symbol.asyncIterator]() {
49294
+ return __asyncGenerator(this, arguments, function* _a() {
49295
+ let hasMore = true;
49296
+ let pageToken;
49297
+ while (hasMore) {
49298
+ try {
49299
+ const res = yield __await(sendRequest({
49300
+ headers,
49301
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
49302
+ data,
49303
+ }));
49304
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
49305
+ // @ts-ignore
49306
+ has_more,
49307
+ // @ts-ignore
49308
+ page_token,
49309
+ // @ts-ignore
49310
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
49311
+ yield yield __await(rest);
49312
+ hasMore = Boolean(has_more);
49313
+ pageToken = page_token || next_page_token;
49314
+ }
49315
+ catch (e) {
49316
+ yield yield __await(null);
49317
+ break;
49318
+ }
49319
+ }
49320
+ });
49321
+ },
49322
+ };
49323
+ return Iterable;
49324
+ }),
49325
+ /**
49326
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
49327
+ *
49328
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
49329
+ */
49330
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
49331
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
49332
+ return this.httpInstance
49333
+ .request({
49334
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
49335
+ method: "GET",
49336
+ data,
49337
+ params,
49338
+ headers,
49339
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
49340
+ })
49341
+ .catch((e) => {
49342
+ this.logger.error(formatErrors(e));
49343
+ throw e;
49344
+ });
49345
+ }),
49346
+ },
48810
49347
  /**
48811
49348
  * 问卷(灰度租户可见)
48812
49349
  */
@@ -51177,7 +51714,7 @@ class Client$x extends Client$y {
51177
51714
  }),
51178
51715
  },
51179
51716
  /**
51180
- * 投递
51717
+ * 入职
51181
51718
  */
51182
51719
  application: {
51183
51720
  /**
@@ -54809,6 +55346,36 @@ class Client$x extends Client$y {
54809
55346
  });
54810
55347
  }),
54811
55348
  },
55349
+ /**
55350
+ * Offer 审批流配置(灰度租户可见)
55351
+ */
55352
+ offerApprovalTemplate: {
55353
+ /**
55354
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
55355
+ *
55356
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
55357
+ *
55358
+ * 获取 Offer 审批流配置列表
55359
+ *
55360
+ * 获取 Offer 审批流配置列表
55361
+ */
55362
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
55363
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
55364
+ return this.httpInstance
55365
+ .request({
55366
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
55367
+ method: "GET",
55368
+ data,
55369
+ params,
55370
+ headers,
55371
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
55372
+ })
55373
+ .catch((e) => {
55374
+ this.logger.error(formatErrors(e));
55375
+ throw e;
55376
+ });
55377
+ }),
55378
+ },
54812
55379
  /**
54813
55380
  * offer_custom_field
54814
55381
  */
@@ -54865,6 +55432,84 @@ class Client$x extends Client$y {
54865
55432
  });
54866
55433
  }),
54867
55434
  },
55435
+ /**
55436
+ * portal_apply_schema
55437
+ */
55438
+ portalApplySchema: {
55439
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
55440
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
55441
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
55442
+ const res = yield this.httpInstance
55443
+ .request({
55444
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
55445
+ method: "GET",
55446
+ headers: pickBy(innerPayload.headers, identity),
55447
+ params: pickBy(innerPayload.params, identity),
55448
+ data,
55449
+ paramsSerializer: (params) => stringify(params, {
55450
+ arrayFormat: "repeat",
55451
+ }),
55452
+ })
55453
+ .catch((e) => {
55454
+ this.logger.error(formatErrors(e));
55455
+ });
55456
+ return res;
55457
+ });
55458
+ const Iterable = {
55459
+ [Symbol.asyncIterator]() {
55460
+ return __asyncGenerator(this, arguments, function* _a() {
55461
+ let hasMore = true;
55462
+ let pageToken;
55463
+ while (hasMore) {
55464
+ try {
55465
+ const res = yield __await(sendRequest({
55466
+ headers,
55467
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
55468
+ data,
55469
+ }));
55470
+ const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
55471
+ // @ts-ignore
55472
+ has_more,
55473
+ // @ts-ignore
55474
+ page_token,
55475
+ // @ts-ignore
55476
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
55477
+ yield yield __await(rest);
55478
+ hasMore = Boolean(has_more);
55479
+ pageToken = page_token || next_page_token;
55480
+ }
55481
+ catch (e) {
55482
+ yield yield __await(null);
55483
+ break;
55484
+ }
55485
+ }
55486
+ });
55487
+ },
55488
+ };
55489
+ return Iterable;
55490
+ }),
55491
+ /**
55492
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
55493
+ *
55494
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
55495
+ */
55496
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
55497
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
55498
+ return this.httpInstance
55499
+ .request({
55500
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
55501
+ method: "GET",
55502
+ data,
55503
+ params,
55504
+ headers,
55505
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
55506
+ })
55507
+ .catch((e) => {
55508
+ this.logger.error(formatErrors(e));
55509
+ throw e;
55510
+ });
55511
+ }),
55512
+ },
54868
55513
  /**
54869
55514
  * 问卷(灰度租户可见)
54870
55515
  */