@cherryin/passport-api-client 0.1.31 → 0.1.33
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/.openapi-generator/FILES +18 -0
- package/README.md +29 -2
- package/api.ts +980 -0
- package/dist/api.d.ts +564 -0
- package/dist/api.js +736 -1
- package/dist/esm/api.d.ts +564 -0
- package/dist/esm/api.js +731 -0
- package/docs/EnterpriseOrgMembership.md +28 -0
- package/docs/OrgInfo.md +42 -0
- package/docs/OrgMemberInfo.md +40 -0
- package/docs/PassportEnterpriseTokenAuthResponse.md +2 -0
- package/docs/PassportOrgCreateRequest.md +24 -0
- package/docs/PassportOrgCreateResponse.md +26 -0
- package/docs/PassportOrgDeleteResponse.md +22 -0
- package/docs/PassportOrgGetResponse.md +26 -0
- package/docs/PassportOrgListResponse.md +24 -0
- package/docs/PassportOrgMemberAddBody.md +26 -0
- package/docs/PassportOrgMemberAddResponse.md +24 -0
- package/docs/PassportOrgMemberChangeRoleBody.md +20 -0
- package/docs/PassportOrgMemberChangeRoleResponse.md +22 -0
- package/docs/PassportOrgMemberListResponse.md +26 -0
- package/docs/PassportOrgMemberRemoveResponse.md +22 -0
- package/docs/PassportOrgMembershipGetResponse.md +26 -0
- package/docs/PassportOrgServiceApi.md +552 -0
- package/docs/PassportOrgUpdateBody.md +24 -0
- package/docs/PassportOrgUpdateResponse.md +22 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -6503,3 +6503,734 @@ export class PassportAuthUserServiceApi extends BaseAPI {
|
|
|
6503
6503
|
return PassportAuthUserServiceApiFp(this.configuration).passportAuthUserServicePassportUserSignUpEmail(body, options).then((request) => request(this.axios, this.basePath));
|
|
6504
6504
|
}
|
|
6505
6505
|
}
|
|
6506
|
+
/**
|
|
6507
|
+
* PassportOrgServiceApi - axios parameter creator
|
|
6508
|
+
*/
|
|
6509
|
+
export const PassportOrgServiceApiAxiosParamCreator = function (configuration) {
|
|
6510
|
+
return {
|
|
6511
|
+
/**
|
|
6512
|
+
*
|
|
6513
|
+
* @summary 创建组织(需要企业认证通过)
|
|
6514
|
+
* @param {PassportOrgCreateRequest} body
|
|
6515
|
+
* @param {*} [options] Override http request option.
|
|
6516
|
+
* @throws {RequiredError}
|
|
6517
|
+
*/
|
|
6518
|
+
passportOrgServicePassportOrgCreate: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
6519
|
+
// verify required parameter 'body' is not null or undefined
|
|
6520
|
+
assertParamExists('passportOrgServicePassportOrgCreate', 'body', body);
|
|
6521
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations`;
|
|
6522
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6523
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6524
|
+
let baseOptions;
|
|
6525
|
+
if (configuration) {
|
|
6526
|
+
baseOptions = configuration.baseOptions;
|
|
6527
|
+
}
|
|
6528
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6529
|
+
const localVarHeaderParameter = {};
|
|
6530
|
+
const localVarQueryParameter = {};
|
|
6531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6532
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6533
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6534
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6535
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
6536
|
+
return {
|
|
6537
|
+
url: toPathString(localVarUrlObj),
|
|
6538
|
+
options: localVarRequestOptions,
|
|
6539
|
+
};
|
|
6540
|
+
}),
|
|
6541
|
+
/**
|
|
6542
|
+
*
|
|
6543
|
+
* @summary 删除组织(仅 Owner)
|
|
6544
|
+
* @param {string} oid required: 组织 OID
|
|
6545
|
+
* @param {*} [options] Override http request option.
|
|
6546
|
+
* @throws {RequiredError}
|
|
6547
|
+
*/
|
|
6548
|
+
passportOrgServicePassportOrgDelete: (oid_1, ...args_1) => __awaiter(this, [oid_1, ...args_1], void 0, function* (oid, options = {}) {
|
|
6549
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6550
|
+
assertParamExists('passportOrgServicePassportOrgDelete', 'oid', oid);
|
|
6551
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
|
|
6552
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
6553
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6554
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6555
|
+
let baseOptions;
|
|
6556
|
+
if (configuration) {
|
|
6557
|
+
baseOptions = configuration.baseOptions;
|
|
6558
|
+
}
|
|
6559
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6560
|
+
const localVarHeaderParameter = {};
|
|
6561
|
+
const localVarQueryParameter = {};
|
|
6562
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6563
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6564
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6565
|
+
return {
|
|
6566
|
+
url: toPathString(localVarUrlObj),
|
|
6567
|
+
options: localVarRequestOptions,
|
|
6568
|
+
};
|
|
6569
|
+
}),
|
|
6570
|
+
/**
|
|
6571
|
+
*
|
|
6572
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
6573
|
+
* @param {string} oid required: 组织 OID
|
|
6574
|
+
* @param {*} [options] Override http request option.
|
|
6575
|
+
* @throws {RequiredError}
|
|
6576
|
+
*/
|
|
6577
|
+
passportOrgServicePassportOrgGet: (oid_1, ...args_1) => __awaiter(this, [oid_1, ...args_1], void 0, function* (oid, options = {}) {
|
|
6578
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6579
|
+
assertParamExists('passportOrgServicePassportOrgGet', 'oid', oid);
|
|
6580
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
|
|
6581
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
6582
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6583
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6584
|
+
let baseOptions;
|
|
6585
|
+
if (configuration) {
|
|
6586
|
+
baseOptions = configuration.baseOptions;
|
|
6587
|
+
}
|
|
6588
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6589
|
+
const localVarHeaderParameter = {};
|
|
6590
|
+
const localVarQueryParameter = {};
|
|
6591
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6592
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6593
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6594
|
+
return {
|
|
6595
|
+
url: toPathString(localVarUrlObj),
|
|
6596
|
+
options: localVarRequestOptions,
|
|
6597
|
+
};
|
|
6598
|
+
}),
|
|
6599
|
+
/**
|
|
6600
|
+
*
|
|
6601
|
+
* @summary 获取当前用户的组织列表
|
|
6602
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
6603
|
+
* @param {*} [options] Override http request option.
|
|
6604
|
+
* @throws {RequiredError}
|
|
6605
|
+
*/
|
|
6606
|
+
passportOrgServicePassportOrgList: (appName_1, ...args_1) => __awaiter(this, [appName_1, ...args_1], void 0, function* (appName, options = {}) {
|
|
6607
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations`;
|
|
6608
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6609
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6610
|
+
let baseOptions;
|
|
6611
|
+
if (configuration) {
|
|
6612
|
+
baseOptions = configuration.baseOptions;
|
|
6613
|
+
}
|
|
6614
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6615
|
+
const localVarHeaderParameter = {};
|
|
6616
|
+
const localVarQueryParameter = {};
|
|
6617
|
+
if (appName !== undefined) {
|
|
6618
|
+
localVarQueryParameter['app_name'] = appName;
|
|
6619
|
+
}
|
|
6620
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6622
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6623
|
+
return {
|
|
6624
|
+
url: toPathString(localVarUrlObj),
|
|
6625
|
+
options: localVarRequestOptions,
|
|
6626
|
+
};
|
|
6627
|
+
}),
|
|
6628
|
+
/**
|
|
6629
|
+
*
|
|
6630
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
6631
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6632
|
+
* @param {PassportOrgMemberAddBody} body
|
|
6633
|
+
* @param {*} [options] Override http request option.
|
|
6634
|
+
* @throws {RequiredError}
|
|
6635
|
+
*/
|
|
6636
|
+
passportOrgServicePassportOrgMemberAdd: (oid_1, body_1, ...args_1) => __awaiter(this, [oid_1, body_1, ...args_1], void 0, function* (oid, body, options = {}) {
|
|
6637
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6638
|
+
assertParamExists('passportOrgServicePassportOrgMemberAdd', 'oid', oid);
|
|
6639
|
+
// verify required parameter 'body' is not null or undefined
|
|
6640
|
+
assertParamExists('passportOrgServicePassportOrgMemberAdd', 'body', body);
|
|
6641
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members`
|
|
6642
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
6643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6645
|
+
let baseOptions;
|
|
6646
|
+
if (configuration) {
|
|
6647
|
+
baseOptions = configuration.baseOptions;
|
|
6648
|
+
}
|
|
6649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6650
|
+
const localVarHeaderParameter = {};
|
|
6651
|
+
const localVarQueryParameter = {};
|
|
6652
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6653
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6655
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6656
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
6657
|
+
return {
|
|
6658
|
+
url: toPathString(localVarUrlObj),
|
|
6659
|
+
options: localVarRequestOptions,
|
|
6660
|
+
};
|
|
6661
|
+
}),
|
|
6662
|
+
/**
|
|
6663
|
+
*
|
|
6664
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
6665
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6666
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
6667
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
6668
|
+
* @param {*} [options] Override http request option.
|
|
6669
|
+
* @throws {RequiredError}
|
|
6670
|
+
*/
|
|
6671
|
+
passportOrgServicePassportOrgMemberChangeRole: (oid_1, eid_1, body_1, ...args_1) => __awaiter(this, [oid_1, eid_1, body_1, ...args_1], void 0, function* (oid, eid, body, options = {}) {
|
|
6672
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6673
|
+
assertParamExists('passportOrgServicePassportOrgMemberChangeRole', 'oid', oid);
|
|
6674
|
+
// verify required parameter 'eid' is not null or undefined
|
|
6675
|
+
assertParamExists('passportOrgServicePassportOrgMemberChangeRole', 'eid', eid);
|
|
6676
|
+
// verify required parameter 'body' is not null or undefined
|
|
6677
|
+
assertParamExists('passportOrgServicePassportOrgMemberChangeRole', 'body', body);
|
|
6678
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members/{eid}`
|
|
6679
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)))
|
|
6680
|
+
.replace(`{${"eid"}}`, encodeURIComponent(String(eid)));
|
|
6681
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6682
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6683
|
+
let baseOptions;
|
|
6684
|
+
if (configuration) {
|
|
6685
|
+
baseOptions = configuration.baseOptions;
|
|
6686
|
+
}
|
|
6687
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6688
|
+
const localVarHeaderParameter = {};
|
|
6689
|
+
const localVarQueryParameter = {};
|
|
6690
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6691
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6692
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6693
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6694
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
6695
|
+
return {
|
|
6696
|
+
url: toPathString(localVarUrlObj),
|
|
6697
|
+
options: localVarRequestOptions,
|
|
6698
|
+
};
|
|
6699
|
+
}),
|
|
6700
|
+
/**
|
|
6701
|
+
*
|
|
6702
|
+
* @summary 获取组织成员列表
|
|
6703
|
+
* @param {string} oid required: 组织 OID
|
|
6704
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
6705
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
6706
|
+
* @param {*} [options] Override http request option.
|
|
6707
|
+
* @throws {RequiredError}
|
|
6708
|
+
*/
|
|
6709
|
+
passportOrgServicePassportOrgMemberList: (oid_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [oid_1, page_1, pageSize_1, ...args_1], void 0, function* (oid, page, pageSize, options = {}) {
|
|
6710
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6711
|
+
assertParamExists('passportOrgServicePassportOrgMemberList', 'oid', oid);
|
|
6712
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members`
|
|
6713
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
6714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6715
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6716
|
+
let baseOptions;
|
|
6717
|
+
if (configuration) {
|
|
6718
|
+
baseOptions = configuration.baseOptions;
|
|
6719
|
+
}
|
|
6720
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6721
|
+
const localVarHeaderParameter = {};
|
|
6722
|
+
const localVarQueryParameter = {};
|
|
6723
|
+
if (page !== undefined) {
|
|
6724
|
+
localVarQueryParameter['page'] = page;
|
|
6725
|
+
}
|
|
6726
|
+
if (pageSize !== undefined) {
|
|
6727
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
6728
|
+
}
|
|
6729
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6730
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6731
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6732
|
+
return {
|
|
6733
|
+
url: toPathString(localVarUrlObj),
|
|
6734
|
+
options: localVarRequestOptions,
|
|
6735
|
+
};
|
|
6736
|
+
}),
|
|
6737
|
+
/**
|
|
6738
|
+
*
|
|
6739
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
6740
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6741
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
6742
|
+
* @param {*} [options] Override http request option.
|
|
6743
|
+
* @throws {RequiredError}
|
|
6744
|
+
*/
|
|
6745
|
+
passportOrgServicePassportOrgMemberRemove: (oid_1, eid_1, ...args_1) => __awaiter(this, [oid_1, eid_1, ...args_1], void 0, function* (oid, eid, options = {}) {
|
|
6746
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6747
|
+
assertParamExists('passportOrgServicePassportOrgMemberRemove', 'oid', oid);
|
|
6748
|
+
// verify required parameter 'eid' is not null or undefined
|
|
6749
|
+
assertParamExists('passportOrgServicePassportOrgMemberRemove', 'eid', eid);
|
|
6750
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members/{eid}`
|
|
6751
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)))
|
|
6752
|
+
.replace(`{${"eid"}}`, encodeURIComponent(String(eid)));
|
|
6753
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6754
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6755
|
+
let baseOptions;
|
|
6756
|
+
if (configuration) {
|
|
6757
|
+
baseOptions = configuration.baseOptions;
|
|
6758
|
+
}
|
|
6759
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6760
|
+
const localVarHeaderParameter = {};
|
|
6761
|
+
const localVarQueryParameter = {};
|
|
6762
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6763
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6764
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6765
|
+
return {
|
|
6766
|
+
url: toPathString(localVarUrlObj),
|
|
6767
|
+
options: localVarRequestOptions,
|
|
6768
|
+
};
|
|
6769
|
+
}),
|
|
6770
|
+
/**
|
|
6771
|
+
*
|
|
6772
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
6773
|
+
* @param {string} oid required: 组织 OID
|
|
6774
|
+
* @param {*} [options] Override http request option.
|
|
6775
|
+
* @throws {RequiredError}
|
|
6776
|
+
*/
|
|
6777
|
+
passportOrgServicePassportOrgMembershipGet: (oid_1, ...args_1) => __awaiter(this, [oid_1, ...args_1], void 0, function* (oid, options = {}) {
|
|
6778
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6779
|
+
assertParamExists('passportOrgServicePassportOrgMembershipGet', 'oid', oid);
|
|
6780
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/membership`
|
|
6781
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
6782
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6783
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6784
|
+
let baseOptions;
|
|
6785
|
+
if (configuration) {
|
|
6786
|
+
baseOptions = configuration.baseOptions;
|
|
6787
|
+
}
|
|
6788
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6789
|
+
const localVarHeaderParameter = {};
|
|
6790
|
+
const localVarQueryParameter = {};
|
|
6791
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6792
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6793
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6794
|
+
return {
|
|
6795
|
+
url: toPathString(localVarUrlObj),
|
|
6796
|
+
options: localVarRequestOptions,
|
|
6797
|
+
};
|
|
6798
|
+
}),
|
|
6799
|
+
/**
|
|
6800
|
+
*
|
|
6801
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
6802
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6803
|
+
* @param {PassportOrgUpdateBody} body
|
|
6804
|
+
* @param {*} [options] Override http request option.
|
|
6805
|
+
* @throws {RequiredError}
|
|
6806
|
+
*/
|
|
6807
|
+
passportOrgServicePassportOrgUpdate: (oid_1, body_1, ...args_1) => __awaiter(this, [oid_1, body_1, ...args_1], void 0, function* (oid, body, options = {}) {
|
|
6808
|
+
// verify required parameter 'oid' is not null or undefined
|
|
6809
|
+
assertParamExists('passportOrgServicePassportOrgUpdate', 'oid', oid);
|
|
6810
|
+
// verify required parameter 'body' is not null or undefined
|
|
6811
|
+
assertParamExists('passportOrgServicePassportOrgUpdate', 'body', body);
|
|
6812
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
|
|
6813
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
6814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6816
|
+
let baseOptions;
|
|
6817
|
+
if (configuration) {
|
|
6818
|
+
baseOptions = configuration.baseOptions;
|
|
6819
|
+
}
|
|
6820
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6821
|
+
const localVarHeaderParameter = {};
|
|
6822
|
+
const localVarQueryParameter = {};
|
|
6823
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6824
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6826
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6827
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
6828
|
+
return {
|
|
6829
|
+
url: toPathString(localVarUrlObj),
|
|
6830
|
+
options: localVarRequestOptions,
|
|
6831
|
+
};
|
|
6832
|
+
}),
|
|
6833
|
+
};
|
|
6834
|
+
};
|
|
6835
|
+
/**
|
|
6836
|
+
* PassportOrgServiceApi - functional programming interface
|
|
6837
|
+
*/
|
|
6838
|
+
export const PassportOrgServiceApiFp = function (configuration) {
|
|
6839
|
+
const localVarAxiosParamCreator = PassportOrgServiceApiAxiosParamCreator(configuration);
|
|
6840
|
+
return {
|
|
6841
|
+
/**
|
|
6842
|
+
*
|
|
6843
|
+
* @summary 创建组织(需要企业认证通过)
|
|
6844
|
+
* @param {PassportOrgCreateRequest} body
|
|
6845
|
+
* @param {*} [options] Override http request option.
|
|
6846
|
+
* @throws {RequiredError}
|
|
6847
|
+
*/
|
|
6848
|
+
passportOrgServicePassportOrgCreate(body, options) {
|
|
6849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6850
|
+
var _a, _b, _c;
|
|
6851
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgCreate(body, options);
|
|
6852
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6853
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6854
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6855
|
+
});
|
|
6856
|
+
},
|
|
6857
|
+
/**
|
|
6858
|
+
*
|
|
6859
|
+
* @summary 删除组织(仅 Owner)
|
|
6860
|
+
* @param {string} oid required: 组织 OID
|
|
6861
|
+
* @param {*} [options] Override http request option.
|
|
6862
|
+
* @throws {RequiredError}
|
|
6863
|
+
*/
|
|
6864
|
+
passportOrgServicePassportOrgDelete(oid, options) {
|
|
6865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6866
|
+
var _a, _b, _c;
|
|
6867
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgDelete(oid, options);
|
|
6868
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6869
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6870
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6871
|
+
});
|
|
6872
|
+
},
|
|
6873
|
+
/**
|
|
6874
|
+
*
|
|
6875
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
6876
|
+
* @param {string} oid required: 组织 OID
|
|
6877
|
+
* @param {*} [options] Override http request option.
|
|
6878
|
+
* @throws {RequiredError}
|
|
6879
|
+
*/
|
|
6880
|
+
passportOrgServicePassportOrgGet(oid, options) {
|
|
6881
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6882
|
+
var _a, _b, _c;
|
|
6883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgGet(oid, options);
|
|
6884
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6885
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6886
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6887
|
+
});
|
|
6888
|
+
},
|
|
6889
|
+
/**
|
|
6890
|
+
*
|
|
6891
|
+
* @summary 获取当前用户的组织列表
|
|
6892
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
6893
|
+
* @param {*} [options] Override http request option.
|
|
6894
|
+
* @throws {RequiredError}
|
|
6895
|
+
*/
|
|
6896
|
+
passportOrgServicePassportOrgList(appName, options) {
|
|
6897
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6898
|
+
var _a, _b, _c;
|
|
6899
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgList(appName, options);
|
|
6900
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6901
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6902
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6903
|
+
});
|
|
6904
|
+
},
|
|
6905
|
+
/**
|
|
6906
|
+
*
|
|
6907
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
6908
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6909
|
+
* @param {PassportOrgMemberAddBody} body
|
|
6910
|
+
* @param {*} [options] Override http request option.
|
|
6911
|
+
* @throws {RequiredError}
|
|
6912
|
+
*/
|
|
6913
|
+
passportOrgServicePassportOrgMemberAdd(oid, body, options) {
|
|
6914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6915
|
+
var _a, _b, _c;
|
|
6916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberAdd(oid, body, options);
|
|
6917
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6918
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberAdd']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6919
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6920
|
+
});
|
|
6921
|
+
},
|
|
6922
|
+
/**
|
|
6923
|
+
*
|
|
6924
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
6925
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6926
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
6927
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
6928
|
+
* @param {*} [options] Override http request option.
|
|
6929
|
+
* @throws {RequiredError}
|
|
6930
|
+
*/
|
|
6931
|
+
passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options) {
|
|
6932
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6933
|
+
var _a, _b, _c;
|
|
6934
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options);
|
|
6935
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6936
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberChangeRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6937
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6938
|
+
});
|
|
6939
|
+
},
|
|
6940
|
+
/**
|
|
6941
|
+
*
|
|
6942
|
+
* @summary 获取组织成员列表
|
|
6943
|
+
* @param {string} oid required: 组织 OID
|
|
6944
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
6945
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
6946
|
+
* @param {*} [options] Override http request option.
|
|
6947
|
+
* @throws {RequiredError}
|
|
6948
|
+
*/
|
|
6949
|
+
passportOrgServicePassportOrgMemberList(oid, page, pageSize, options) {
|
|
6950
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6951
|
+
var _a, _b, _c;
|
|
6952
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberList(oid, page, pageSize, options);
|
|
6953
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6954
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6955
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6956
|
+
});
|
|
6957
|
+
},
|
|
6958
|
+
/**
|
|
6959
|
+
*
|
|
6960
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
6961
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6962
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
6963
|
+
* @param {*} [options] Override http request option.
|
|
6964
|
+
* @throws {RequiredError}
|
|
6965
|
+
*/
|
|
6966
|
+
passportOrgServicePassportOrgMemberRemove(oid, eid, options) {
|
|
6967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6968
|
+
var _a, _b, _c;
|
|
6969
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMemberRemove(oid, eid, options);
|
|
6970
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6971
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberRemove']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6972
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6973
|
+
});
|
|
6974
|
+
},
|
|
6975
|
+
/**
|
|
6976
|
+
*
|
|
6977
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
6978
|
+
* @param {string} oid required: 组织 OID
|
|
6979
|
+
* @param {*} [options] Override http request option.
|
|
6980
|
+
* @throws {RequiredError}
|
|
6981
|
+
*/
|
|
6982
|
+
passportOrgServicePassportOrgMembershipGet(oid, options) {
|
|
6983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6984
|
+
var _a, _b, _c;
|
|
6985
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgMembershipGet(oid, options);
|
|
6986
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6987
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMembershipGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6988
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6989
|
+
});
|
|
6990
|
+
},
|
|
6991
|
+
/**
|
|
6992
|
+
*
|
|
6993
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
6994
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
6995
|
+
* @param {PassportOrgUpdateBody} body
|
|
6996
|
+
* @param {*} [options] Override http request option.
|
|
6997
|
+
* @throws {RequiredError}
|
|
6998
|
+
*/
|
|
6999
|
+
passportOrgServicePassportOrgUpdate(oid, body, options) {
|
|
7000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7001
|
+
var _a, _b, _c;
|
|
7002
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportOrgServicePassportOrgUpdate(oid, body, options);
|
|
7003
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7004
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7005
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7006
|
+
});
|
|
7007
|
+
},
|
|
7008
|
+
};
|
|
7009
|
+
};
|
|
7010
|
+
/**
|
|
7011
|
+
* PassportOrgServiceApi - factory interface
|
|
7012
|
+
*/
|
|
7013
|
+
export const PassportOrgServiceApiFactory = function (configuration, basePath, axios) {
|
|
7014
|
+
const localVarFp = PassportOrgServiceApiFp(configuration);
|
|
7015
|
+
return {
|
|
7016
|
+
/**
|
|
7017
|
+
*
|
|
7018
|
+
* @summary 创建组织(需要企业认证通过)
|
|
7019
|
+
* @param {PassportOrgCreateRequest} body
|
|
7020
|
+
* @param {*} [options] Override http request option.
|
|
7021
|
+
* @throws {RequiredError}
|
|
7022
|
+
*/
|
|
7023
|
+
passportOrgServicePassportOrgCreate(body, options) {
|
|
7024
|
+
return localVarFp.passportOrgServicePassportOrgCreate(body, options).then((request) => request(axios, basePath));
|
|
7025
|
+
},
|
|
7026
|
+
/**
|
|
7027
|
+
*
|
|
7028
|
+
* @summary 删除组织(仅 Owner)
|
|
7029
|
+
* @param {string} oid required: 组织 OID
|
|
7030
|
+
* @param {*} [options] Override http request option.
|
|
7031
|
+
* @throws {RequiredError}
|
|
7032
|
+
*/
|
|
7033
|
+
passportOrgServicePassportOrgDelete(oid, options) {
|
|
7034
|
+
return localVarFp.passportOrgServicePassportOrgDelete(oid, options).then((request) => request(axios, basePath));
|
|
7035
|
+
},
|
|
7036
|
+
/**
|
|
7037
|
+
*
|
|
7038
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
7039
|
+
* @param {string} oid required: 组织 OID
|
|
7040
|
+
* @param {*} [options] Override http request option.
|
|
7041
|
+
* @throws {RequiredError}
|
|
7042
|
+
*/
|
|
7043
|
+
passportOrgServicePassportOrgGet(oid, options) {
|
|
7044
|
+
return localVarFp.passportOrgServicePassportOrgGet(oid, options).then((request) => request(axios, basePath));
|
|
7045
|
+
},
|
|
7046
|
+
/**
|
|
7047
|
+
*
|
|
7048
|
+
* @summary 获取当前用户的组织列表
|
|
7049
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
7050
|
+
* @param {*} [options] Override http request option.
|
|
7051
|
+
* @throws {RequiredError}
|
|
7052
|
+
*/
|
|
7053
|
+
passportOrgServicePassportOrgList(appName, options) {
|
|
7054
|
+
return localVarFp.passportOrgServicePassportOrgList(appName, options).then((request) => request(axios, basePath));
|
|
7055
|
+
},
|
|
7056
|
+
/**
|
|
7057
|
+
*
|
|
7058
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
7059
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7060
|
+
* @param {PassportOrgMemberAddBody} body
|
|
7061
|
+
* @param {*} [options] Override http request option.
|
|
7062
|
+
* @throws {RequiredError}
|
|
7063
|
+
*/
|
|
7064
|
+
passportOrgServicePassportOrgMemberAdd(oid, body, options) {
|
|
7065
|
+
return localVarFp.passportOrgServicePassportOrgMemberAdd(oid, body, options).then((request) => request(axios, basePath));
|
|
7066
|
+
},
|
|
7067
|
+
/**
|
|
7068
|
+
*
|
|
7069
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
7070
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7071
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
7072
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
7073
|
+
* @param {*} [options] Override http request option.
|
|
7074
|
+
* @throws {RequiredError}
|
|
7075
|
+
*/
|
|
7076
|
+
passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options) {
|
|
7077
|
+
return localVarFp.passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options).then((request) => request(axios, basePath));
|
|
7078
|
+
},
|
|
7079
|
+
/**
|
|
7080
|
+
*
|
|
7081
|
+
* @summary 获取组织成员列表
|
|
7082
|
+
* @param {string} oid required: 组织 OID
|
|
7083
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
7084
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
7085
|
+
* @param {*} [options] Override http request option.
|
|
7086
|
+
* @throws {RequiredError}
|
|
7087
|
+
*/
|
|
7088
|
+
passportOrgServicePassportOrgMemberList(oid, page, pageSize, options) {
|
|
7089
|
+
return localVarFp.passportOrgServicePassportOrgMemberList(oid, page, pageSize, options).then((request) => request(axios, basePath));
|
|
7090
|
+
},
|
|
7091
|
+
/**
|
|
7092
|
+
*
|
|
7093
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
7094
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7095
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
7096
|
+
* @param {*} [options] Override http request option.
|
|
7097
|
+
* @throws {RequiredError}
|
|
7098
|
+
*/
|
|
7099
|
+
passportOrgServicePassportOrgMemberRemove(oid, eid, options) {
|
|
7100
|
+
return localVarFp.passportOrgServicePassportOrgMemberRemove(oid, eid, options).then((request) => request(axios, basePath));
|
|
7101
|
+
},
|
|
7102
|
+
/**
|
|
7103
|
+
*
|
|
7104
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
7105
|
+
* @param {string} oid required: 组织 OID
|
|
7106
|
+
* @param {*} [options] Override http request option.
|
|
7107
|
+
* @throws {RequiredError}
|
|
7108
|
+
*/
|
|
7109
|
+
passportOrgServicePassportOrgMembershipGet(oid, options) {
|
|
7110
|
+
return localVarFp.passportOrgServicePassportOrgMembershipGet(oid, options).then((request) => request(axios, basePath));
|
|
7111
|
+
},
|
|
7112
|
+
/**
|
|
7113
|
+
*
|
|
7114
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
7115
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7116
|
+
* @param {PassportOrgUpdateBody} body
|
|
7117
|
+
* @param {*} [options] Override http request option.
|
|
7118
|
+
* @throws {RequiredError}
|
|
7119
|
+
*/
|
|
7120
|
+
passportOrgServicePassportOrgUpdate(oid, body, options) {
|
|
7121
|
+
return localVarFp.passportOrgServicePassportOrgUpdate(oid, body, options).then((request) => request(axios, basePath));
|
|
7122
|
+
},
|
|
7123
|
+
};
|
|
7124
|
+
};
|
|
7125
|
+
/**
|
|
7126
|
+
* PassportOrgServiceApi - object-oriented interface
|
|
7127
|
+
*/
|
|
7128
|
+
export class PassportOrgServiceApi extends BaseAPI {
|
|
7129
|
+
/**
|
|
7130
|
+
*
|
|
7131
|
+
* @summary 创建组织(需要企业认证通过)
|
|
7132
|
+
* @param {PassportOrgCreateRequest} body
|
|
7133
|
+
* @param {*} [options] Override http request option.
|
|
7134
|
+
* @throws {RequiredError}
|
|
7135
|
+
*/
|
|
7136
|
+
passportOrgServicePassportOrgCreate(body, options) {
|
|
7137
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
7138
|
+
}
|
|
7139
|
+
/**
|
|
7140
|
+
*
|
|
7141
|
+
* @summary 删除组织(仅 Owner)
|
|
7142
|
+
* @param {string} oid required: 组织 OID
|
|
7143
|
+
* @param {*} [options] Override http request option.
|
|
7144
|
+
* @throws {RequiredError}
|
|
7145
|
+
*/
|
|
7146
|
+
passportOrgServicePassportOrgDelete(oid, options) {
|
|
7147
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgDelete(oid, options).then((request) => request(this.axios, this.basePath));
|
|
7148
|
+
}
|
|
7149
|
+
/**
|
|
7150
|
+
*
|
|
7151
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
7152
|
+
* @param {string} oid required: 组织 OID
|
|
7153
|
+
* @param {*} [options] Override http request option.
|
|
7154
|
+
* @throws {RequiredError}
|
|
7155
|
+
*/
|
|
7156
|
+
passportOrgServicePassportOrgGet(oid, options) {
|
|
7157
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgGet(oid, options).then((request) => request(this.axios, this.basePath));
|
|
7158
|
+
}
|
|
7159
|
+
/**
|
|
7160
|
+
*
|
|
7161
|
+
* @summary 获取当前用户的组织列表
|
|
7162
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
7163
|
+
* @param {*} [options] Override http request option.
|
|
7164
|
+
* @throws {RequiredError}
|
|
7165
|
+
*/
|
|
7166
|
+
passportOrgServicePassportOrgList(appName, options) {
|
|
7167
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgList(appName, options).then((request) => request(this.axios, this.basePath));
|
|
7168
|
+
}
|
|
7169
|
+
/**
|
|
7170
|
+
*
|
|
7171
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
7172
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7173
|
+
* @param {PassportOrgMemberAddBody} body
|
|
7174
|
+
* @param {*} [options] Override http request option.
|
|
7175
|
+
* @throws {RequiredError}
|
|
7176
|
+
*/
|
|
7177
|
+
passportOrgServicePassportOrgMemberAdd(oid, body, options) {
|
|
7178
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberAdd(oid, body, options).then((request) => request(this.axios, this.basePath));
|
|
7179
|
+
}
|
|
7180
|
+
/**
|
|
7181
|
+
*
|
|
7182
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
7183
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7184
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
7185
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
7186
|
+
* @param {*} [options] Override http request option.
|
|
7187
|
+
* @throws {RequiredError}
|
|
7188
|
+
*/
|
|
7189
|
+
passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options) {
|
|
7190
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options).then((request) => request(this.axios, this.basePath));
|
|
7191
|
+
}
|
|
7192
|
+
/**
|
|
7193
|
+
*
|
|
7194
|
+
* @summary 获取组织成员列表
|
|
7195
|
+
* @param {string} oid required: 组织 OID
|
|
7196
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
7197
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
7198
|
+
* @param {*} [options] Override http request option.
|
|
7199
|
+
* @throws {RequiredError}
|
|
7200
|
+
*/
|
|
7201
|
+
passportOrgServicePassportOrgMemberList(oid, page, pageSize, options) {
|
|
7202
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberList(oid, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
7203
|
+
}
|
|
7204
|
+
/**
|
|
7205
|
+
*
|
|
7206
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
7207
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7208
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
7209
|
+
* @param {*} [options] Override http request option.
|
|
7210
|
+
* @throws {RequiredError}
|
|
7211
|
+
*/
|
|
7212
|
+
passportOrgServicePassportOrgMemberRemove(oid, eid, options) {
|
|
7213
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberRemove(oid, eid, options).then((request) => request(this.axios, this.basePath));
|
|
7214
|
+
}
|
|
7215
|
+
/**
|
|
7216
|
+
*
|
|
7217
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
7218
|
+
* @param {string} oid required: 组织 OID
|
|
7219
|
+
* @param {*} [options] Override http request option.
|
|
7220
|
+
* @throws {RequiredError}
|
|
7221
|
+
*/
|
|
7222
|
+
passportOrgServicePassportOrgMembershipGet(oid, options) {
|
|
7223
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMembershipGet(oid, options).then((request) => request(this.axios, this.basePath));
|
|
7224
|
+
}
|
|
7225
|
+
/**
|
|
7226
|
+
*
|
|
7227
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
7228
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
7229
|
+
* @param {PassportOrgUpdateBody} body
|
|
7230
|
+
* @param {*} [options] Override http request option.
|
|
7231
|
+
* @throws {RequiredError}
|
|
7232
|
+
*/
|
|
7233
|
+
passportOrgServicePassportOrgUpdate(oid, body, options) {
|
|
7234
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgUpdate(oid, body, options).then((request) => request(this.axios, this.basePath));
|
|
7235
|
+
}
|
|
7236
|
+
}
|