@cherryin/passport-api-client 0.1.32 → 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/api.ts
CHANGED
|
@@ -235,6 +235,13 @@ export interface EnterpriseOCRPersonIDCardWarning {
|
|
|
235
235
|
*/
|
|
236
236
|
'value_probs'?: { [key: string]: number; };
|
|
237
237
|
}
|
|
238
|
+
export interface EnterpriseOrgMembership {
|
|
239
|
+
'oid'?: string;
|
|
240
|
+
'org_name'?: string;
|
|
241
|
+
'app_name'?: string;
|
|
242
|
+
'org_status'?: number;
|
|
243
|
+
'member_role'?: number;
|
|
244
|
+
}
|
|
238
245
|
export interface GeeTestAuthCaptcha {
|
|
239
246
|
'captcha_id'?: string;
|
|
240
247
|
'lot_number'?: string;
|
|
@@ -242,6 +249,33 @@ export interface GeeTestAuthCaptcha {
|
|
|
242
249
|
'pass_token'?: string;
|
|
243
250
|
'gen_time'?: string;
|
|
244
251
|
}
|
|
252
|
+
export interface OrgInfo {
|
|
253
|
+
'oid'?: string;
|
|
254
|
+
'aid'?: string;
|
|
255
|
+
'eid'?: string;
|
|
256
|
+
'app_name'?: string;
|
|
257
|
+
'display_name'?: string;
|
|
258
|
+
'description'?: string;
|
|
259
|
+
'avatar_url'?: string;
|
|
260
|
+
'org_status'?: number;
|
|
261
|
+
'member_count'?: string;
|
|
262
|
+
'member_role'?: number;
|
|
263
|
+
'created_at'?: string;
|
|
264
|
+
'updated_at'?: string;
|
|
265
|
+
}
|
|
266
|
+
export interface OrgMemberInfo {
|
|
267
|
+
'oid'?: string;
|
|
268
|
+
'eid'?: string;
|
|
269
|
+
'aid'?: string;
|
|
270
|
+
'member_role'?: number;
|
|
271
|
+
'added_by'?: string;
|
|
272
|
+
'joined_at'?: string;
|
|
273
|
+
'display_name'?: string;
|
|
274
|
+
'email'?: string;
|
|
275
|
+
'phone'?: string;
|
|
276
|
+
'avatar_url'?: string;
|
|
277
|
+
'created_at'?: string;
|
|
278
|
+
}
|
|
245
279
|
export interface PassportAdminPasswordForgetRequest {
|
|
246
280
|
'email'?: string;
|
|
247
281
|
'callback_url'?: string;
|
|
@@ -976,6 +1010,76 @@ export interface PassportEnterpriseTokenAuthResponse {
|
|
|
976
1010
|
'is_valid'?: boolean;
|
|
977
1011
|
'session'?: AuthEnterpriseSession;
|
|
978
1012
|
'user'?: AuthEnterpriseUser;
|
|
1013
|
+
'organizations'?: Array<EnterpriseOrgMembership>;
|
|
1014
|
+
}
|
|
1015
|
+
export interface PassportOrgCreateRequest {
|
|
1016
|
+
'app_name'?: string;
|
|
1017
|
+
'display_name'?: string;
|
|
1018
|
+
'description'?: string;
|
|
1019
|
+
}
|
|
1020
|
+
export interface PassportOrgCreateResponse {
|
|
1021
|
+
'code'?: string;
|
|
1022
|
+
'message'?: string;
|
|
1023
|
+
'org'?: OrgInfo;
|
|
1024
|
+
'member'?: OrgMemberInfo;
|
|
1025
|
+
}
|
|
1026
|
+
export interface PassportOrgDeleteResponse {
|
|
1027
|
+
'code'?: string;
|
|
1028
|
+
'message'?: string;
|
|
1029
|
+
}
|
|
1030
|
+
export interface PassportOrgGetResponse {
|
|
1031
|
+
'code'?: string;
|
|
1032
|
+
'message'?: string;
|
|
1033
|
+
'org'?: OrgInfo;
|
|
1034
|
+
'member'?: OrgMemberInfo;
|
|
1035
|
+
}
|
|
1036
|
+
export interface PassportOrgListResponse {
|
|
1037
|
+
'code'?: string;
|
|
1038
|
+
'message'?: string;
|
|
1039
|
+
'orgs'?: Array<OrgInfo>;
|
|
1040
|
+
}
|
|
1041
|
+
export interface PassportOrgMemberAddBody {
|
|
1042
|
+
'eid'?: string;
|
|
1043
|
+
'role'?: number;
|
|
1044
|
+
'email'?: string;
|
|
1045
|
+
'phone'?: string;
|
|
1046
|
+
}
|
|
1047
|
+
export interface PassportOrgMemberAddResponse {
|
|
1048
|
+
'code'?: string;
|
|
1049
|
+
'message'?: string;
|
|
1050
|
+
'member'?: OrgMemberInfo;
|
|
1051
|
+
}
|
|
1052
|
+
export interface PassportOrgMemberChangeRoleBody {
|
|
1053
|
+
'role'?: number;
|
|
1054
|
+
}
|
|
1055
|
+
export interface PassportOrgMemberChangeRoleResponse {
|
|
1056
|
+
'code'?: string;
|
|
1057
|
+
'message'?: string;
|
|
1058
|
+
}
|
|
1059
|
+
export interface PassportOrgMemberListResponse {
|
|
1060
|
+
'code'?: string;
|
|
1061
|
+
'message'?: string;
|
|
1062
|
+
'members'?: Array<OrgMemberInfo>;
|
|
1063
|
+
'total'?: string;
|
|
1064
|
+
}
|
|
1065
|
+
export interface PassportOrgMemberRemoveResponse {
|
|
1066
|
+
'code'?: string;
|
|
1067
|
+
'message'?: string;
|
|
1068
|
+
}
|
|
1069
|
+
export interface PassportOrgMembershipGetResponse {
|
|
1070
|
+
'code'?: string;
|
|
1071
|
+
'message'?: string;
|
|
1072
|
+
'org'?: OrgInfo;
|
|
1073
|
+
'member'?: OrgMemberInfo;
|
|
1074
|
+
}
|
|
1075
|
+
export interface PassportOrgUpdateBody {
|
|
1076
|
+
'display_name'?: string;
|
|
1077
|
+
'description'?: string;
|
|
1078
|
+
'avatar_url'?: string;
|
|
1079
|
+
}
|
|
1080
|
+
export interface PassportOrgUpdateResponse {
|
|
1081
|
+
'code'?: string;
|
|
1082
|
+
'message'?: string;
|
|
979
1083
|
}
|
|
980
1084
|
export interface PassportSendVerificationEmailRequest {
|
|
981
1085
|
'app_ids'?: string;
|
|
@@ -9029,3 +9133,879 @@ export class PassportAuthUserServiceApi extends BaseAPI implements PassportAuthU
|
|
|
9029
9133
|
|
|
9030
9134
|
|
|
9031
9135
|
|
|
9136
|
+
/**
|
|
9137
|
+
* PassportOrgServiceApi - axios parameter creator
|
|
9138
|
+
*/
|
|
9139
|
+
export const PassportOrgServiceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
9140
|
+
return {
|
|
9141
|
+
/**
|
|
9142
|
+
*
|
|
9143
|
+
* @summary 创建组织(需要企业认证通过)
|
|
9144
|
+
* @param {PassportOrgCreateRequest} body
|
|
9145
|
+
* @param {*} [options] Override http request option.
|
|
9146
|
+
* @throws {RequiredError}
|
|
9147
|
+
*/
|
|
9148
|
+
passportOrgServicePassportOrgCreate: async (body: PassportOrgCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9149
|
+
// verify required parameter 'body' is not null or undefined
|
|
9150
|
+
assertParamExists('passportOrgServicePassportOrgCreate', 'body', body)
|
|
9151
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations`;
|
|
9152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9154
|
+
let baseOptions;
|
|
9155
|
+
if (configuration) {
|
|
9156
|
+
baseOptions = configuration.baseOptions;
|
|
9157
|
+
}
|
|
9158
|
+
|
|
9159
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9160
|
+
const localVarHeaderParameter = {} as any;
|
|
9161
|
+
const localVarQueryParameter = {} as any;
|
|
9162
|
+
|
|
9163
|
+
|
|
9164
|
+
|
|
9165
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9166
|
+
|
|
9167
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9169
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9170
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
9171
|
+
|
|
9172
|
+
return {
|
|
9173
|
+
url: toPathString(localVarUrlObj),
|
|
9174
|
+
options: localVarRequestOptions,
|
|
9175
|
+
};
|
|
9176
|
+
},
|
|
9177
|
+
/**
|
|
9178
|
+
*
|
|
9179
|
+
* @summary 删除组织(仅 Owner)
|
|
9180
|
+
* @param {string} oid required: 组织 OID
|
|
9181
|
+
* @param {*} [options] Override http request option.
|
|
9182
|
+
* @throws {RequiredError}
|
|
9183
|
+
*/
|
|
9184
|
+
passportOrgServicePassportOrgDelete: async (oid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9185
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9186
|
+
assertParamExists('passportOrgServicePassportOrgDelete', 'oid', oid)
|
|
9187
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
|
|
9188
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
9189
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9190
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9191
|
+
let baseOptions;
|
|
9192
|
+
if (configuration) {
|
|
9193
|
+
baseOptions = configuration.baseOptions;
|
|
9194
|
+
}
|
|
9195
|
+
|
|
9196
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9197
|
+
const localVarHeaderParameter = {} as any;
|
|
9198
|
+
const localVarQueryParameter = {} as any;
|
|
9199
|
+
|
|
9200
|
+
|
|
9201
|
+
|
|
9202
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9204
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9205
|
+
|
|
9206
|
+
return {
|
|
9207
|
+
url: toPathString(localVarUrlObj),
|
|
9208
|
+
options: localVarRequestOptions,
|
|
9209
|
+
};
|
|
9210
|
+
},
|
|
9211
|
+
/**
|
|
9212
|
+
*
|
|
9213
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
9214
|
+
* @param {string} oid required: 组织 OID
|
|
9215
|
+
* @param {*} [options] Override http request option.
|
|
9216
|
+
* @throws {RequiredError}
|
|
9217
|
+
*/
|
|
9218
|
+
passportOrgServicePassportOrgGet: async (oid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9219
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9220
|
+
assertParamExists('passportOrgServicePassportOrgGet', 'oid', oid)
|
|
9221
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
|
|
9222
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
9223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9224
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9225
|
+
let baseOptions;
|
|
9226
|
+
if (configuration) {
|
|
9227
|
+
baseOptions = configuration.baseOptions;
|
|
9228
|
+
}
|
|
9229
|
+
|
|
9230
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9231
|
+
const localVarHeaderParameter = {} as any;
|
|
9232
|
+
const localVarQueryParameter = {} as any;
|
|
9233
|
+
|
|
9234
|
+
|
|
9235
|
+
|
|
9236
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9237
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9238
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9239
|
+
|
|
9240
|
+
return {
|
|
9241
|
+
url: toPathString(localVarUrlObj),
|
|
9242
|
+
options: localVarRequestOptions,
|
|
9243
|
+
};
|
|
9244
|
+
},
|
|
9245
|
+
/**
|
|
9246
|
+
*
|
|
9247
|
+
* @summary 获取当前用户的组织列表
|
|
9248
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
9249
|
+
* @param {*} [options] Override http request option.
|
|
9250
|
+
* @throws {RequiredError}
|
|
9251
|
+
*/
|
|
9252
|
+
passportOrgServicePassportOrgList: async (appName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9253
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations`;
|
|
9254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9255
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9256
|
+
let baseOptions;
|
|
9257
|
+
if (configuration) {
|
|
9258
|
+
baseOptions = configuration.baseOptions;
|
|
9259
|
+
}
|
|
9260
|
+
|
|
9261
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9262
|
+
const localVarHeaderParameter = {} as any;
|
|
9263
|
+
const localVarQueryParameter = {} as any;
|
|
9264
|
+
|
|
9265
|
+
if (appName !== undefined) {
|
|
9266
|
+
localVarQueryParameter['app_name'] = appName;
|
|
9267
|
+
}
|
|
9268
|
+
|
|
9269
|
+
|
|
9270
|
+
|
|
9271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9273
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9274
|
+
|
|
9275
|
+
return {
|
|
9276
|
+
url: toPathString(localVarUrlObj),
|
|
9277
|
+
options: localVarRequestOptions,
|
|
9278
|
+
};
|
|
9279
|
+
},
|
|
9280
|
+
/**
|
|
9281
|
+
*
|
|
9282
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
9283
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9284
|
+
* @param {PassportOrgMemberAddBody} body
|
|
9285
|
+
* @param {*} [options] Override http request option.
|
|
9286
|
+
* @throws {RequiredError}
|
|
9287
|
+
*/
|
|
9288
|
+
passportOrgServicePassportOrgMemberAdd: async (oid: string, body: PassportOrgMemberAddBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9289
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9290
|
+
assertParamExists('passportOrgServicePassportOrgMemberAdd', 'oid', oid)
|
|
9291
|
+
// verify required parameter 'body' is not null or undefined
|
|
9292
|
+
assertParamExists('passportOrgServicePassportOrgMemberAdd', 'body', body)
|
|
9293
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members`
|
|
9294
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
9295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9297
|
+
let baseOptions;
|
|
9298
|
+
if (configuration) {
|
|
9299
|
+
baseOptions = configuration.baseOptions;
|
|
9300
|
+
}
|
|
9301
|
+
|
|
9302
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9303
|
+
const localVarHeaderParameter = {} as any;
|
|
9304
|
+
const localVarQueryParameter = {} as any;
|
|
9305
|
+
|
|
9306
|
+
|
|
9307
|
+
|
|
9308
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9309
|
+
|
|
9310
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9312
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9313
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
9314
|
+
|
|
9315
|
+
return {
|
|
9316
|
+
url: toPathString(localVarUrlObj),
|
|
9317
|
+
options: localVarRequestOptions,
|
|
9318
|
+
};
|
|
9319
|
+
},
|
|
9320
|
+
/**
|
|
9321
|
+
*
|
|
9322
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
9323
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9324
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9325
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
9326
|
+
* @param {*} [options] Override http request option.
|
|
9327
|
+
* @throws {RequiredError}
|
|
9328
|
+
*/
|
|
9329
|
+
passportOrgServicePassportOrgMemberChangeRole: async (oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9330
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9331
|
+
assertParamExists('passportOrgServicePassportOrgMemberChangeRole', 'oid', oid)
|
|
9332
|
+
// verify required parameter 'eid' is not null or undefined
|
|
9333
|
+
assertParamExists('passportOrgServicePassportOrgMemberChangeRole', 'eid', eid)
|
|
9334
|
+
// verify required parameter 'body' is not null or undefined
|
|
9335
|
+
assertParamExists('passportOrgServicePassportOrgMemberChangeRole', 'body', body)
|
|
9336
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members/{eid}`
|
|
9337
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)))
|
|
9338
|
+
.replace(`{${"eid"}}`, encodeURIComponent(String(eid)));
|
|
9339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9340
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9341
|
+
let baseOptions;
|
|
9342
|
+
if (configuration) {
|
|
9343
|
+
baseOptions = configuration.baseOptions;
|
|
9344
|
+
}
|
|
9345
|
+
|
|
9346
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9347
|
+
const localVarHeaderParameter = {} as any;
|
|
9348
|
+
const localVarQueryParameter = {} as any;
|
|
9349
|
+
|
|
9350
|
+
|
|
9351
|
+
|
|
9352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9353
|
+
|
|
9354
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9356
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9357
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
9358
|
+
|
|
9359
|
+
return {
|
|
9360
|
+
url: toPathString(localVarUrlObj),
|
|
9361
|
+
options: localVarRequestOptions,
|
|
9362
|
+
};
|
|
9363
|
+
},
|
|
9364
|
+
/**
|
|
9365
|
+
*
|
|
9366
|
+
* @summary 获取组织成员列表
|
|
9367
|
+
* @param {string} oid required: 组织 OID
|
|
9368
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
9369
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
9370
|
+
* @param {*} [options] Override http request option.
|
|
9371
|
+
* @throws {RequiredError}
|
|
9372
|
+
*/
|
|
9373
|
+
passportOrgServicePassportOrgMemberList: async (oid: string, page?: string, pageSize?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9374
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9375
|
+
assertParamExists('passportOrgServicePassportOrgMemberList', 'oid', oid)
|
|
9376
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members`
|
|
9377
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
9378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9379
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9380
|
+
let baseOptions;
|
|
9381
|
+
if (configuration) {
|
|
9382
|
+
baseOptions = configuration.baseOptions;
|
|
9383
|
+
}
|
|
9384
|
+
|
|
9385
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9386
|
+
const localVarHeaderParameter = {} as any;
|
|
9387
|
+
const localVarQueryParameter = {} as any;
|
|
9388
|
+
|
|
9389
|
+
if (page !== undefined) {
|
|
9390
|
+
localVarQueryParameter['page'] = page;
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9393
|
+
if (pageSize !== undefined) {
|
|
9394
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
9395
|
+
}
|
|
9396
|
+
|
|
9397
|
+
|
|
9398
|
+
|
|
9399
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9401
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9402
|
+
|
|
9403
|
+
return {
|
|
9404
|
+
url: toPathString(localVarUrlObj),
|
|
9405
|
+
options: localVarRequestOptions,
|
|
9406
|
+
};
|
|
9407
|
+
},
|
|
9408
|
+
/**
|
|
9409
|
+
*
|
|
9410
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
9411
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9412
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9413
|
+
* @param {*} [options] Override http request option.
|
|
9414
|
+
* @throws {RequiredError}
|
|
9415
|
+
*/
|
|
9416
|
+
passportOrgServicePassportOrgMemberRemove: async (oid: string, eid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9417
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9418
|
+
assertParamExists('passportOrgServicePassportOrgMemberRemove', 'oid', oid)
|
|
9419
|
+
// verify required parameter 'eid' is not null or undefined
|
|
9420
|
+
assertParamExists('passportOrgServicePassportOrgMemberRemove', 'eid', eid)
|
|
9421
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/members/{eid}`
|
|
9422
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)))
|
|
9423
|
+
.replace(`{${"eid"}}`, encodeURIComponent(String(eid)));
|
|
9424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9425
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9426
|
+
let baseOptions;
|
|
9427
|
+
if (configuration) {
|
|
9428
|
+
baseOptions = configuration.baseOptions;
|
|
9429
|
+
}
|
|
9430
|
+
|
|
9431
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9432
|
+
const localVarHeaderParameter = {} as any;
|
|
9433
|
+
const localVarQueryParameter = {} as any;
|
|
9434
|
+
|
|
9435
|
+
|
|
9436
|
+
|
|
9437
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9439
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9440
|
+
|
|
9441
|
+
return {
|
|
9442
|
+
url: toPathString(localVarUrlObj),
|
|
9443
|
+
options: localVarRequestOptions,
|
|
9444
|
+
};
|
|
9445
|
+
},
|
|
9446
|
+
/**
|
|
9447
|
+
*
|
|
9448
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
9449
|
+
* @param {string} oid required: 组织 OID
|
|
9450
|
+
* @param {*} [options] Override http request option.
|
|
9451
|
+
* @throws {RequiredError}
|
|
9452
|
+
*/
|
|
9453
|
+
passportOrgServicePassportOrgMembershipGet: async (oid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9454
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9455
|
+
assertParamExists('passportOrgServicePassportOrgMembershipGet', 'oid', oid)
|
|
9456
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}/membership`
|
|
9457
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
9458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9459
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9460
|
+
let baseOptions;
|
|
9461
|
+
if (configuration) {
|
|
9462
|
+
baseOptions = configuration.baseOptions;
|
|
9463
|
+
}
|
|
9464
|
+
|
|
9465
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9466
|
+
const localVarHeaderParameter = {} as any;
|
|
9467
|
+
const localVarQueryParameter = {} as any;
|
|
9468
|
+
|
|
9469
|
+
|
|
9470
|
+
|
|
9471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9473
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9474
|
+
|
|
9475
|
+
return {
|
|
9476
|
+
url: toPathString(localVarUrlObj),
|
|
9477
|
+
options: localVarRequestOptions,
|
|
9478
|
+
};
|
|
9479
|
+
},
|
|
9480
|
+
/**
|
|
9481
|
+
*
|
|
9482
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
9483
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9484
|
+
* @param {PassportOrgUpdateBody} body
|
|
9485
|
+
* @param {*} [options] Override http request option.
|
|
9486
|
+
* @throws {RequiredError}
|
|
9487
|
+
*/
|
|
9488
|
+
passportOrgServicePassportOrgUpdate: async (oid: string, body: PassportOrgUpdateBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9489
|
+
// verify required parameter 'oid' is not null or undefined
|
|
9490
|
+
assertParamExists('passportOrgServicePassportOrgUpdate', 'oid', oid)
|
|
9491
|
+
// verify required parameter 'body' is not null or undefined
|
|
9492
|
+
assertParamExists('passportOrgServicePassportOrgUpdate', 'body', body)
|
|
9493
|
+
const localVarPath = `/passport/enterprise/authed/v1/organizations/{oid}`
|
|
9494
|
+
.replace(`{${"oid"}}`, encodeURIComponent(String(oid)));
|
|
9495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9497
|
+
let baseOptions;
|
|
9498
|
+
if (configuration) {
|
|
9499
|
+
baseOptions = configuration.baseOptions;
|
|
9500
|
+
}
|
|
9501
|
+
|
|
9502
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9503
|
+
const localVarHeaderParameter = {} as any;
|
|
9504
|
+
const localVarQueryParameter = {} as any;
|
|
9505
|
+
|
|
9506
|
+
|
|
9507
|
+
|
|
9508
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9509
|
+
|
|
9510
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9511
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9512
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9513
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
9514
|
+
|
|
9515
|
+
return {
|
|
9516
|
+
url: toPathString(localVarUrlObj),
|
|
9517
|
+
options: localVarRequestOptions,
|
|
9518
|
+
};
|
|
9519
|
+
},
|
|
9520
|
+
}
|
|
9521
|
+
};
|
|
9522
|
+
|
|
9523
|
+
/**
|
|
9524
|
+
* PassportOrgServiceApi - functional programming interface
|
|
9525
|
+
*/
|
|
9526
|
+
export const PassportOrgServiceApiFp = function(configuration?: Configuration) {
|
|
9527
|
+
const localVarAxiosParamCreator = PassportOrgServiceApiAxiosParamCreator(configuration)
|
|
9528
|
+
return {
|
|
9529
|
+
/**
|
|
9530
|
+
*
|
|
9531
|
+
* @summary 创建组织(需要企业认证通过)
|
|
9532
|
+
* @param {PassportOrgCreateRequest} body
|
|
9533
|
+
* @param {*} [options] Override http request option.
|
|
9534
|
+
* @throws {RequiredError}
|
|
9535
|
+
*/
|
|
9536
|
+
async passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgCreateResponse>> {
|
|
9537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgCreate(body, options);
|
|
9538
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9539
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgCreate']?.[localVarOperationServerIndex]?.url;
|
|
9540
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9541
|
+
},
|
|
9542
|
+
/**
|
|
9543
|
+
*
|
|
9544
|
+
* @summary 删除组织(仅 Owner)
|
|
9545
|
+
* @param {string} oid required: 组织 OID
|
|
9546
|
+
* @param {*} [options] Override http request option.
|
|
9547
|
+
* @throws {RequiredError}
|
|
9548
|
+
*/
|
|
9549
|
+
async passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgDeleteResponse>> {
|
|
9550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgDelete(oid, options);
|
|
9551
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9552
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgDelete']?.[localVarOperationServerIndex]?.url;
|
|
9553
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9554
|
+
},
|
|
9555
|
+
/**
|
|
9556
|
+
*
|
|
9557
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
9558
|
+
* @param {string} oid required: 组织 OID
|
|
9559
|
+
* @param {*} [options] Override http request option.
|
|
9560
|
+
* @throws {RequiredError}
|
|
9561
|
+
*/
|
|
9562
|
+
async passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgGetResponse>> {
|
|
9563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgGet(oid, options);
|
|
9564
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9565
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgGet']?.[localVarOperationServerIndex]?.url;
|
|
9566
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9567
|
+
},
|
|
9568
|
+
/**
|
|
9569
|
+
*
|
|
9570
|
+
* @summary 获取当前用户的组织列表
|
|
9571
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
9572
|
+
* @param {*} [options] Override http request option.
|
|
9573
|
+
* @throws {RequiredError}
|
|
9574
|
+
*/
|
|
9575
|
+
async passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgListResponse>> {
|
|
9576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgList(appName, options);
|
|
9577
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9578
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgList']?.[localVarOperationServerIndex]?.url;
|
|
9579
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9580
|
+
},
|
|
9581
|
+
/**
|
|
9582
|
+
*
|
|
9583
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
9584
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9585
|
+
* @param {PassportOrgMemberAddBody} body
|
|
9586
|
+
* @param {*} [options] Override http request option.
|
|
9587
|
+
* @throws {RequiredError}
|
|
9588
|
+
*/
|
|
9589
|
+
async passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberAddResponse>> {
|
|
9590
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgMemberAdd(oid, body, options);
|
|
9591
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9592
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberAdd']?.[localVarOperationServerIndex]?.url;
|
|
9593
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9594
|
+
},
|
|
9595
|
+
/**
|
|
9596
|
+
*
|
|
9597
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
9598
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9599
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9600
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
9601
|
+
* @param {*} [options] Override http request option.
|
|
9602
|
+
* @throws {RequiredError}
|
|
9603
|
+
*/
|
|
9604
|
+
async passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberChangeRoleResponse>> {
|
|
9605
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options);
|
|
9606
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9607
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberChangeRole']?.[localVarOperationServerIndex]?.url;
|
|
9608
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9609
|
+
},
|
|
9610
|
+
/**
|
|
9611
|
+
*
|
|
9612
|
+
* @summary 获取组织成员列表
|
|
9613
|
+
* @param {string} oid required: 组织 OID
|
|
9614
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
9615
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
9616
|
+
* @param {*} [options] Override http request option.
|
|
9617
|
+
* @throws {RequiredError}
|
|
9618
|
+
*/
|
|
9619
|
+
async passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberListResponse>> {
|
|
9620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgMemberList(oid, page, pageSize, options);
|
|
9621
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9622
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberList']?.[localVarOperationServerIndex]?.url;
|
|
9623
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9624
|
+
},
|
|
9625
|
+
/**
|
|
9626
|
+
*
|
|
9627
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
9628
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9629
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9630
|
+
* @param {*} [options] Override http request option.
|
|
9631
|
+
* @throws {RequiredError}
|
|
9632
|
+
*/
|
|
9633
|
+
async passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMemberRemoveResponse>> {
|
|
9634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgMemberRemove(oid, eid, options);
|
|
9635
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9636
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMemberRemove']?.[localVarOperationServerIndex]?.url;
|
|
9637
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9638
|
+
},
|
|
9639
|
+
/**
|
|
9640
|
+
*
|
|
9641
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
9642
|
+
* @param {string} oid required: 组织 OID
|
|
9643
|
+
* @param {*} [options] Override http request option.
|
|
9644
|
+
* @throws {RequiredError}
|
|
9645
|
+
*/
|
|
9646
|
+
async passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgMembershipGetResponse>> {
|
|
9647
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgMembershipGet(oid, options);
|
|
9648
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9649
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgMembershipGet']?.[localVarOperationServerIndex]?.url;
|
|
9650
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9651
|
+
},
|
|
9652
|
+
/**
|
|
9653
|
+
*
|
|
9654
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
9655
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9656
|
+
* @param {PassportOrgUpdateBody} body
|
|
9657
|
+
* @param {*} [options] Override http request option.
|
|
9658
|
+
* @throws {RequiredError}
|
|
9659
|
+
*/
|
|
9660
|
+
async passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportOrgUpdateResponse>> {
|
|
9661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportOrgServicePassportOrgUpdate(oid, body, options);
|
|
9662
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9663
|
+
const localVarOperationServerBasePath = operationServerMap['PassportOrgServiceApi.passportOrgServicePassportOrgUpdate']?.[localVarOperationServerIndex]?.url;
|
|
9664
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9665
|
+
},
|
|
9666
|
+
}
|
|
9667
|
+
};
|
|
9668
|
+
|
|
9669
|
+
/**
|
|
9670
|
+
* PassportOrgServiceApi - factory interface
|
|
9671
|
+
*/
|
|
9672
|
+
export const PassportOrgServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9673
|
+
const localVarFp = PassportOrgServiceApiFp(configuration)
|
|
9674
|
+
return {
|
|
9675
|
+
/**
|
|
9676
|
+
*
|
|
9677
|
+
* @summary 创建组织(需要企业认证通过)
|
|
9678
|
+
* @param {PassportOrgCreateRequest} body
|
|
9679
|
+
* @param {*} [options] Override http request option.
|
|
9680
|
+
* @throws {RequiredError}
|
|
9681
|
+
*/
|
|
9682
|
+
passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgCreateResponse> {
|
|
9683
|
+
return localVarFp.passportOrgServicePassportOrgCreate(body, options).then((request) => request(axios, basePath));
|
|
9684
|
+
},
|
|
9685
|
+
/**
|
|
9686
|
+
*
|
|
9687
|
+
* @summary 删除组织(仅 Owner)
|
|
9688
|
+
* @param {string} oid required: 组织 OID
|
|
9689
|
+
* @param {*} [options] Override http request option.
|
|
9690
|
+
* @throws {RequiredError}
|
|
9691
|
+
*/
|
|
9692
|
+
passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgDeleteResponse> {
|
|
9693
|
+
return localVarFp.passportOrgServicePassportOrgDelete(oid, options).then((request) => request(axios, basePath));
|
|
9694
|
+
},
|
|
9695
|
+
/**
|
|
9696
|
+
*
|
|
9697
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
9698
|
+
* @param {string} oid required: 组织 OID
|
|
9699
|
+
* @param {*} [options] Override http request option.
|
|
9700
|
+
* @throws {RequiredError}
|
|
9701
|
+
*/
|
|
9702
|
+
passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgGetResponse> {
|
|
9703
|
+
return localVarFp.passportOrgServicePassportOrgGet(oid, options).then((request) => request(axios, basePath));
|
|
9704
|
+
},
|
|
9705
|
+
/**
|
|
9706
|
+
*
|
|
9707
|
+
* @summary 获取当前用户的组织列表
|
|
9708
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
9709
|
+
* @param {*} [options] Override http request option.
|
|
9710
|
+
* @throws {RequiredError}
|
|
9711
|
+
*/
|
|
9712
|
+
passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgListResponse> {
|
|
9713
|
+
return localVarFp.passportOrgServicePassportOrgList(appName, options).then((request) => request(axios, basePath));
|
|
9714
|
+
},
|
|
9715
|
+
/**
|
|
9716
|
+
*
|
|
9717
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
9718
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9719
|
+
* @param {PassportOrgMemberAddBody} body
|
|
9720
|
+
* @param {*} [options] Override http request option.
|
|
9721
|
+
* @throws {RequiredError}
|
|
9722
|
+
*/
|
|
9723
|
+
passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberAddResponse> {
|
|
9724
|
+
return localVarFp.passportOrgServicePassportOrgMemberAdd(oid, body, options).then((request) => request(axios, basePath));
|
|
9725
|
+
},
|
|
9726
|
+
/**
|
|
9727
|
+
*
|
|
9728
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
9729
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9730
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9731
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
9732
|
+
* @param {*} [options] Override http request option.
|
|
9733
|
+
* @throws {RequiredError}
|
|
9734
|
+
*/
|
|
9735
|
+
passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberChangeRoleResponse> {
|
|
9736
|
+
return localVarFp.passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options).then((request) => request(axios, basePath));
|
|
9737
|
+
},
|
|
9738
|
+
/**
|
|
9739
|
+
*
|
|
9740
|
+
* @summary 获取组织成员列表
|
|
9741
|
+
* @param {string} oid required: 组织 OID
|
|
9742
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
9743
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
9744
|
+
* @param {*} [options] Override http request option.
|
|
9745
|
+
* @throws {RequiredError}
|
|
9746
|
+
*/
|
|
9747
|
+
passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberListResponse> {
|
|
9748
|
+
return localVarFp.passportOrgServicePassportOrgMemberList(oid, page, pageSize, options).then((request) => request(axios, basePath));
|
|
9749
|
+
},
|
|
9750
|
+
/**
|
|
9751
|
+
*
|
|
9752
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
9753
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9754
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9755
|
+
* @param {*} [options] Override http request option.
|
|
9756
|
+
* @throws {RequiredError}
|
|
9757
|
+
*/
|
|
9758
|
+
passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberRemoveResponse> {
|
|
9759
|
+
return localVarFp.passportOrgServicePassportOrgMemberRemove(oid, eid, options).then((request) => request(axios, basePath));
|
|
9760
|
+
},
|
|
9761
|
+
/**
|
|
9762
|
+
*
|
|
9763
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
9764
|
+
* @param {string} oid required: 组织 OID
|
|
9765
|
+
* @param {*} [options] Override http request option.
|
|
9766
|
+
* @throws {RequiredError}
|
|
9767
|
+
*/
|
|
9768
|
+
passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMembershipGetResponse> {
|
|
9769
|
+
return localVarFp.passportOrgServicePassportOrgMembershipGet(oid, options).then((request) => request(axios, basePath));
|
|
9770
|
+
},
|
|
9771
|
+
/**
|
|
9772
|
+
*
|
|
9773
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
9774
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9775
|
+
* @param {PassportOrgUpdateBody} body
|
|
9776
|
+
* @param {*} [options] Override http request option.
|
|
9777
|
+
* @throws {RequiredError}
|
|
9778
|
+
*/
|
|
9779
|
+
passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgUpdateResponse> {
|
|
9780
|
+
return localVarFp.passportOrgServicePassportOrgUpdate(oid, body, options).then((request) => request(axios, basePath));
|
|
9781
|
+
},
|
|
9782
|
+
};
|
|
9783
|
+
};
|
|
9784
|
+
|
|
9785
|
+
/**
|
|
9786
|
+
* PassportOrgServiceApi - interface
|
|
9787
|
+
*/
|
|
9788
|
+
export interface PassportOrgServiceApiInterface {
|
|
9789
|
+
/**
|
|
9790
|
+
*
|
|
9791
|
+
* @summary 创建组织(需要企业认证通过)
|
|
9792
|
+
* @param {PassportOrgCreateRequest} body
|
|
9793
|
+
* @param {*} [options] Override http request option.
|
|
9794
|
+
* @throws {RequiredError}
|
|
9795
|
+
*/
|
|
9796
|
+
passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgCreateResponse>;
|
|
9797
|
+
|
|
9798
|
+
/**
|
|
9799
|
+
*
|
|
9800
|
+
* @summary 删除组织(仅 Owner)
|
|
9801
|
+
* @param {string} oid required: 组织 OID
|
|
9802
|
+
* @param {*} [options] Override http request option.
|
|
9803
|
+
* @throws {RequiredError}
|
|
9804
|
+
*/
|
|
9805
|
+
passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgDeleteResponse>;
|
|
9806
|
+
|
|
9807
|
+
/**
|
|
9808
|
+
*
|
|
9809
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
9810
|
+
* @param {string} oid required: 组织 OID
|
|
9811
|
+
* @param {*} [options] Override http request option.
|
|
9812
|
+
* @throws {RequiredError}
|
|
9813
|
+
*/
|
|
9814
|
+
passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgGetResponse>;
|
|
9815
|
+
|
|
9816
|
+
/**
|
|
9817
|
+
*
|
|
9818
|
+
* @summary 获取当前用户的组织列表
|
|
9819
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
9820
|
+
* @param {*} [options] Override http request option.
|
|
9821
|
+
* @throws {RequiredError}
|
|
9822
|
+
*/
|
|
9823
|
+
passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgListResponse>;
|
|
9824
|
+
|
|
9825
|
+
/**
|
|
9826
|
+
*
|
|
9827
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
9828
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9829
|
+
* @param {PassportOrgMemberAddBody} body
|
|
9830
|
+
* @param {*} [options] Override http request option.
|
|
9831
|
+
* @throws {RequiredError}
|
|
9832
|
+
*/
|
|
9833
|
+
passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberAddResponse>;
|
|
9834
|
+
|
|
9835
|
+
/**
|
|
9836
|
+
*
|
|
9837
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
9838
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9839
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9840
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
9841
|
+
* @param {*} [options] Override http request option.
|
|
9842
|
+
* @throws {RequiredError}
|
|
9843
|
+
*/
|
|
9844
|
+
passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberChangeRoleResponse>;
|
|
9845
|
+
|
|
9846
|
+
/**
|
|
9847
|
+
*
|
|
9848
|
+
* @summary 获取组织成员列表
|
|
9849
|
+
* @param {string} oid required: 组织 OID
|
|
9850
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
9851
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
9852
|
+
* @param {*} [options] Override http request option.
|
|
9853
|
+
* @throws {RequiredError}
|
|
9854
|
+
*/
|
|
9855
|
+
passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberListResponse>;
|
|
9856
|
+
|
|
9857
|
+
/**
|
|
9858
|
+
*
|
|
9859
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
9860
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9861
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9862
|
+
* @param {*} [options] Override http request option.
|
|
9863
|
+
* @throws {RequiredError}
|
|
9864
|
+
*/
|
|
9865
|
+
passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMemberRemoveResponse>;
|
|
9866
|
+
|
|
9867
|
+
/**
|
|
9868
|
+
*
|
|
9869
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
9870
|
+
* @param {string} oid required: 组织 OID
|
|
9871
|
+
* @param {*} [options] Override http request option.
|
|
9872
|
+
* @throws {RequiredError}
|
|
9873
|
+
*/
|
|
9874
|
+
passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgMembershipGetResponse>;
|
|
9875
|
+
|
|
9876
|
+
/**
|
|
9877
|
+
*
|
|
9878
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
9879
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9880
|
+
* @param {PassportOrgUpdateBody} body
|
|
9881
|
+
* @param {*} [options] Override http request option.
|
|
9882
|
+
* @throws {RequiredError}
|
|
9883
|
+
*/
|
|
9884
|
+
passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<PassportOrgUpdateResponse>;
|
|
9885
|
+
|
|
9886
|
+
}
|
|
9887
|
+
|
|
9888
|
+
/**
|
|
9889
|
+
* PassportOrgServiceApi - object-oriented interface
|
|
9890
|
+
*/
|
|
9891
|
+
export class PassportOrgServiceApi extends BaseAPI implements PassportOrgServiceApiInterface {
|
|
9892
|
+
/**
|
|
9893
|
+
*
|
|
9894
|
+
* @summary 创建组织(需要企业认证通过)
|
|
9895
|
+
* @param {PassportOrgCreateRequest} body
|
|
9896
|
+
* @param {*} [options] Override http request option.
|
|
9897
|
+
* @throws {RequiredError}
|
|
9898
|
+
*/
|
|
9899
|
+
public passportOrgServicePassportOrgCreate(body: PassportOrgCreateRequest, options?: RawAxiosRequestConfig) {
|
|
9900
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
9901
|
+
}
|
|
9902
|
+
|
|
9903
|
+
/**
|
|
9904
|
+
*
|
|
9905
|
+
* @summary 删除组织(仅 Owner)
|
|
9906
|
+
* @param {string} oid required: 组织 OID
|
|
9907
|
+
* @param {*} [options] Override http request option.
|
|
9908
|
+
* @throws {RequiredError}
|
|
9909
|
+
*/
|
|
9910
|
+
public passportOrgServicePassportOrgDelete(oid: string, options?: RawAxiosRequestConfig) {
|
|
9911
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgDelete(oid, options).then((request) => request(this.axios, this.basePath));
|
|
9912
|
+
}
|
|
9913
|
+
|
|
9914
|
+
/**
|
|
9915
|
+
*
|
|
9916
|
+
* @summary 获取组织详情(需要是组织成员)
|
|
9917
|
+
* @param {string} oid required: 组织 OID
|
|
9918
|
+
* @param {*} [options] Override http request option.
|
|
9919
|
+
* @throws {RequiredError}
|
|
9920
|
+
*/
|
|
9921
|
+
public passportOrgServicePassportOrgGet(oid: string, options?: RawAxiosRequestConfig) {
|
|
9922
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgGet(oid, options).then((request) => request(this.axios, this.basePath));
|
|
9923
|
+
}
|
|
9924
|
+
|
|
9925
|
+
/**
|
|
9926
|
+
*
|
|
9927
|
+
* @summary 获取当前用户的组织列表
|
|
9928
|
+
* @param {string} [appName] @gotags: form:\"app_name\" optional: 按应用名称过滤
|
|
9929
|
+
* @param {*} [options] Override http request option.
|
|
9930
|
+
* @throws {RequiredError}
|
|
9931
|
+
*/
|
|
9932
|
+
public passportOrgServicePassportOrgList(appName?: string, options?: RawAxiosRequestConfig) {
|
|
9933
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgList(appName, options).then((request) => request(this.axios, this.basePath));
|
|
9934
|
+
}
|
|
9935
|
+
|
|
9936
|
+
/**
|
|
9937
|
+
*
|
|
9938
|
+
* @summary 添加组织成员(需要 Owner 或 Admin,支持 EID/邮箱/手机号)
|
|
9939
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9940
|
+
* @param {PassportOrgMemberAddBody} body
|
|
9941
|
+
* @param {*} [options] Override http request option.
|
|
9942
|
+
* @throws {RequiredError}
|
|
9943
|
+
*/
|
|
9944
|
+
public passportOrgServicePassportOrgMemberAdd(oid: string, body: PassportOrgMemberAddBody, options?: RawAxiosRequestConfig) {
|
|
9945
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberAdd(oid, body, options).then((request) => request(this.axios, this.basePath));
|
|
9946
|
+
}
|
|
9947
|
+
|
|
9948
|
+
/**
|
|
9949
|
+
*
|
|
9950
|
+
* @summary 变更成员角色(需要比目标角色更高权限)
|
|
9951
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9952
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9953
|
+
* @param {PassportOrgMemberChangeRoleBody} body
|
|
9954
|
+
* @param {*} [options] Override http request option.
|
|
9955
|
+
* @throws {RequiredError}
|
|
9956
|
+
*/
|
|
9957
|
+
public passportOrgServicePassportOrgMemberChangeRole(oid: string, eid: string, body: PassportOrgMemberChangeRoleBody, options?: RawAxiosRequestConfig) {
|
|
9958
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberChangeRole(oid, eid, body, options).then((request) => request(this.axios, this.basePath));
|
|
9959
|
+
}
|
|
9960
|
+
|
|
9961
|
+
/**
|
|
9962
|
+
*
|
|
9963
|
+
* @summary 获取组织成员列表
|
|
9964
|
+
* @param {string} oid required: 组织 OID
|
|
9965
|
+
* @param {string} [page] @gotags: form:\"page\" optional: 页码
|
|
9966
|
+
* @param {string} [pageSize] @gotags: form:\"page_size\" optional: 每页数量
|
|
9967
|
+
* @param {*} [options] Override http request option.
|
|
9968
|
+
* @throws {RequiredError}
|
|
9969
|
+
*/
|
|
9970
|
+
public passportOrgServicePassportOrgMemberList(oid: string, page?: string, pageSize?: string, options?: RawAxiosRequestConfig) {
|
|
9971
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberList(oid, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
9972
|
+
}
|
|
9973
|
+
|
|
9974
|
+
/**
|
|
9975
|
+
*
|
|
9976
|
+
* @summary 移除组织成员(需要 Owner 或 Admin)
|
|
9977
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
9978
|
+
* @param {string} eid required: 目标成员 EID(路径参数)
|
|
9979
|
+
* @param {*} [options] Override http request option.
|
|
9980
|
+
* @throws {RequiredError}
|
|
9981
|
+
*/
|
|
9982
|
+
public passportOrgServicePassportOrgMemberRemove(oid: string, eid: string, options?: RawAxiosRequestConfig) {
|
|
9983
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMemberRemove(oid, eid, options).then((request) => request(this.axios, this.basePath));
|
|
9984
|
+
}
|
|
9985
|
+
|
|
9986
|
+
/**
|
|
9987
|
+
*
|
|
9988
|
+
* @summary 获取当前用户在指定组织的成员关系
|
|
9989
|
+
* @param {string} oid required: 组织 OID
|
|
9990
|
+
* @param {*} [options] Override http request option.
|
|
9991
|
+
* @throws {RequiredError}
|
|
9992
|
+
*/
|
|
9993
|
+
public passportOrgServicePassportOrgMembershipGet(oid: string, options?: RawAxiosRequestConfig) {
|
|
9994
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgMembershipGet(oid, options).then((request) => request(this.axios, this.basePath));
|
|
9995
|
+
}
|
|
9996
|
+
|
|
9997
|
+
/**
|
|
9998
|
+
*
|
|
9999
|
+
* @summary 更新组织信息(需要 Owner 或 Admin)
|
|
10000
|
+
* @param {string} oid required: 组织 OID(路径参数)
|
|
10001
|
+
* @param {PassportOrgUpdateBody} body
|
|
10002
|
+
* @param {*} [options] Override http request option.
|
|
10003
|
+
* @throws {RequiredError}
|
|
10004
|
+
*/
|
|
10005
|
+
public passportOrgServicePassportOrgUpdate(oid: string, body: PassportOrgUpdateBody, options?: RawAxiosRequestConfig) {
|
|
10006
|
+
return PassportOrgServiceApiFp(this.configuration).passportOrgServicePassportOrgUpdate(oid, body, options).then((request) => request(this.axios, this.basePath));
|
|
10007
|
+
}
|
|
10008
|
+
}
|
|
10009
|
+
|
|
10010
|
+
|
|
10011
|
+
|