@gizone/rrs-client 4.2.0-alpha.345 → 4.2.0-alpha.347
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 +0 -2
- package/api.ts +0 -1
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/esm/api.d.ts +0 -1
- package/dist/esm/api.js +0 -1
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/esm/models/login-type-enum.d.ts +0 -2
- package/dist/esm/models/login-type-enum.js +1 -3
- package/dist/esm/models/park-info-dto.d.ts +0 -12
- package/dist/esm/models/sys-post.d.ts +0 -6
- package/dist/esm/models/sys-role.d.ts +0 -6
- package/dist/esm/models/sys-user.d.ts +1 -14
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/models/login-type-enum.d.ts +0 -2
- package/dist/models/login-type-enum.js +1 -3
- package/dist/models/park-info-dto.d.ts +0 -12
- package/dist/models/sys-post.d.ts +0 -6
- package/dist/models/sys-role.d.ts +0 -6
- package/dist/models/sys-user.d.ts +1 -14
- package/models/index.ts +0 -1
- package/models/login-type-enum.ts +1 -3
- package/models/park-info-dto.ts +0 -12
- package/models/sys-post.ts +0 -6
- package/models/sys-role.ts +0 -6
- package/models/sys-user.ts +1 -18
- package/package.json +1 -1
- package/apis/hwork-api.ts +0 -167
- package/dist/apis/hwork-api.d.ts +0 -96
- package/dist/apis/hwork-api.js +0 -145
- package/dist/esm/apis/hwork-api.d.ts +0 -96
- package/dist/esm/apis/hwork-api.js +0 -138
- package/dist/esm/models/user-source-enum.d.ts +0 -21
- package/dist/esm/models/user-source-enum.js +0 -22
- package/dist/models/user-source-enum.d.ts +0 -21
- package/dist/models/user-source-enum.js +0 -25
- package/models/user-source-enum.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -13,7 +13,6 @@ apis/device-api.ts
|
|
|
13
13
|
apis/disaster-warning-standard-api.ts
|
|
14
14
|
apis/equipment-api.ts
|
|
15
15
|
apis/excel-language-controller-api.ts
|
|
16
|
-
apis/hwork-api.ts
|
|
17
16
|
apis/inspection-standard-api.ts
|
|
18
17
|
apis/internal-api.ts
|
|
19
18
|
apis/jwt-api.ts
|
|
@@ -442,7 +441,6 @@ models/user-excel-dto.ts
|
|
|
442
441
|
models/user-roles-and-permissions-dto.ts
|
|
443
442
|
models/user-settings-entity.ts
|
|
444
443
|
models/user-settings-update-bo.ts
|
|
445
|
-
models/user-source-enum.ts
|
|
446
444
|
models/user-whether-privacy-dto.ts
|
|
447
445
|
models/violation-center-attribute-enum.ts
|
|
448
446
|
models/violation-decision-vo.ts
|
package/api.ts
CHANGED
|
@@ -24,7 +24,6 @@ export * from './apis/device-api';
|
|
|
24
24
|
export * from './apis/disaster-warning-standard-api';
|
|
25
25
|
export * from './apis/equipment-api';
|
|
26
26
|
export * from './apis/excel-language-controller-api';
|
|
27
|
-
export * from './apis/hwork-api';
|
|
28
27
|
export * from './apis/inspection-standard-api';
|
|
29
28
|
export * from './apis/internal-api';
|
|
30
29
|
export * from './apis/jwt-api';
|
package/dist/api.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export * from './apis/device-api';
|
|
|
19
19
|
export * from './apis/disaster-warning-standard-api';
|
|
20
20
|
export * from './apis/equipment-api';
|
|
21
21
|
export * from './apis/excel-language-controller-api';
|
|
22
|
-
export * from './apis/hwork-api';
|
|
23
22
|
export * from './apis/inspection-standard-api';
|
|
24
23
|
export * from './apis/internal-api';
|
|
25
24
|
export * from './apis/jwt-api';
|
package/dist/api.js
CHANGED
|
@@ -37,7 +37,6 @@ __exportStar(require("./apis/device-api"), exports);
|
|
|
37
37
|
__exportStar(require("./apis/disaster-warning-standard-api"), exports);
|
|
38
38
|
__exportStar(require("./apis/equipment-api"), exports);
|
|
39
39
|
__exportStar(require("./apis/excel-language-controller-api"), exports);
|
|
40
|
-
__exportStar(require("./apis/hwork-api"), exports);
|
|
41
40
|
__exportStar(require("./apis/inspection-standard-api"), exports);
|
|
42
41
|
__exportStar(require("./apis/internal-api"), exports);
|
|
43
42
|
__exportStar(require("./apis/jwt-api"), exports);
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export * from './apis/device-api';
|
|
|
19
19
|
export * from './apis/disaster-warning-standard-api';
|
|
20
20
|
export * from './apis/equipment-api';
|
|
21
21
|
export * from './apis/excel-language-controller-api';
|
|
22
|
-
export * from './apis/hwork-api';
|
|
23
22
|
export * from './apis/inspection-standard-api';
|
|
24
23
|
export * from './apis/internal-api';
|
|
25
24
|
export * from './apis/jwt-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -21,7 +21,6 @@ export * from './apis/device-api';
|
|
|
21
21
|
export * from './apis/disaster-warning-standard-api';
|
|
22
22
|
export * from './apis/equipment-api';
|
|
23
23
|
export * from './apis/excel-language-controller-api';
|
|
24
|
-
export * from './apis/hwork-api';
|
|
25
24
|
export * from './apis/inspection-standard-api';
|
|
26
25
|
export * from './apis/internal-api';
|
|
27
26
|
export * from './apis/jwt-api';
|
|
@@ -398,7 +398,6 @@ export * from './user-excel-dto';
|
|
|
398
398
|
export * from './user-roles-and-permissions-dto';
|
|
399
399
|
export * from './user-settings-entity';
|
|
400
400
|
export * from './user-settings-update-bo';
|
|
401
|
-
export * from './user-source-enum';
|
|
402
401
|
export * from './user-whether-privacy-dto';
|
|
403
402
|
export * from './violation-center-attribute-enum';
|
|
404
403
|
export * from './violation-decision-vo';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -398,7 +398,6 @@ export * from './user-excel-dto';
|
|
|
398
398
|
export * from './user-roles-and-permissions-dto';
|
|
399
399
|
export * from './user-settings-entity';
|
|
400
400
|
export * from './user-settings-update-bo';
|
|
401
|
-
export * from './user-source-enum';
|
|
402
401
|
export * from './user-whether-privacy-dto';
|
|
403
402
|
export * from './violation-center-attribute-enum';
|
|
404
403
|
export * from './violation-decision-vo';
|
|
@@ -19,7 +19,5 @@ export declare const LoginTypeEnum: {
|
|
|
19
19
|
readonly Applet: "APPLET";
|
|
20
20
|
readonly App: "APP";
|
|
21
21
|
readonly H5: "H5";
|
|
22
|
-
readonly HWorkPc: "H_WORK_PC";
|
|
23
|
-
readonly HWorkApp: "H_WORK_APP";
|
|
24
22
|
};
|
|
25
23
|
export type LoginTypeEnum = typeof LoginTypeEnum[keyof typeof LoginTypeEnum];
|
|
@@ -64,18 +64,6 @@ export interface ParkInfoDTO {
|
|
|
64
64
|
* @memberof ParkInfoDTO
|
|
65
65
|
*/
|
|
66
66
|
'ancestors'?: string;
|
|
67
|
-
/**
|
|
68
|
-
* 集团ID
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof ParkInfoDTO
|
|
71
|
-
*/
|
|
72
|
-
'groupId'?: number;
|
|
73
|
-
/**
|
|
74
|
-
* 大区ID
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof ParkInfoDTO
|
|
77
|
-
*/
|
|
78
|
-
'areaId'?: number;
|
|
79
67
|
/**
|
|
80
68
|
* 园区平面图
|
|
81
69
|
* @type {string}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import type { SysDept } from './sys-dept';
|
|
13
13
|
import type { SysRole } from './sys-role';
|
|
14
14
|
import type { SysUserAttachmentInfo } from './sys-user-attachment-info';
|
|
15
|
-
import type { UserSourceEnum } from './user-source-enum';
|
|
16
15
|
/**
|
|
17
16
|
* 用户对象
|
|
18
17
|
* @export
|
|
@@ -365,26 +364,14 @@ export interface SysUser {
|
|
|
365
364
|
'userAttachments'?: Array<SysUserAttachmentInfo>;
|
|
366
365
|
/**
|
|
367
366
|
*
|
|
368
|
-
* @type {UserSourceEnum}
|
|
369
|
-
* @memberof SysUser
|
|
370
|
-
*/
|
|
371
|
-
'userSource'?: UserSourceEnum;
|
|
372
|
-
/**
|
|
373
|
-
* 源用户ID
|
|
374
367
|
* @type {string}
|
|
375
368
|
* @memberof SysUser
|
|
376
369
|
*/
|
|
377
|
-
'
|
|
370
|
+
'cid'?: string;
|
|
378
371
|
/**
|
|
379
372
|
*
|
|
380
373
|
* @type {number}
|
|
381
374
|
* @memberof SysUser
|
|
382
375
|
*/
|
|
383
376
|
'cuserId'?: number;
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
* @type {string}
|
|
387
|
-
* @memberof SysUser
|
|
388
|
-
*/
|
|
389
|
-
'cid'?: string;
|
|
390
377
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -398,7 +398,6 @@ export * from './user-excel-dto';
|
|
|
398
398
|
export * from './user-roles-and-permissions-dto';
|
|
399
399
|
export * from './user-settings-entity';
|
|
400
400
|
export * from './user-settings-update-bo';
|
|
401
|
-
export * from './user-source-enum';
|
|
402
401
|
export * from './user-whether-privacy-dto';
|
|
403
402
|
export * from './violation-center-attribute-enum';
|
|
404
403
|
export * from './violation-decision-vo';
|
package/dist/models/index.js
CHANGED
|
@@ -414,7 +414,6 @@ __exportStar(require("./user-excel-dto"), exports);
|
|
|
414
414
|
__exportStar(require("./user-roles-and-permissions-dto"), exports);
|
|
415
415
|
__exportStar(require("./user-settings-entity"), exports);
|
|
416
416
|
__exportStar(require("./user-settings-update-bo"), exports);
|
|
417
|
-
__exportStar(require("./user-source-enum"), exports);
|
|
418
417
|
__exportStar(require("./user-whether-privacy-dto"), exports);
|
|
419
418
|
__exportStar(require("./violation-center-attribute-enum"), exports);
|
|
420
419
|
__exportStar(require("./violation-decision-vo"), exports);
|
|
@@ -19,7 +19,5 @@ export declare const LoginTypeEnum: {
|
|
|
19
19
|
readonly Applet: "APPLET";
|
|
20
20
|
readonly App: "APP";
|
|
21
21
|
readonly H5: "H5";
|
|
22
|
-
readonly HWorkPc: "H_WORK_PC";
|
|
23
|
-
readonly HWorkApp: "H_WORK_APP";
|
|
24
22
|
};
|
|
25
23
|
export type LoginTypeEnum = typeof LoginTypeEnum[keyof typeof LoginTypeEnum];
|
|
@@ -64,18 +64,6 @@ export interface ParkInfoDTO {
|
|
|
64
64
|
* @memberof ParkInfoDTO
|
|
65
65
|
*/
|
|
66
66
|
'ancestors'?: string;
|
|
67
|
-
/**
|
|
68
|
-
* 集团ID
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof ParkInfoDTO
|
|
71
|
-
*/
|
|
72
|
-
'groupId'?: number;
|
|
73
|
-
/**
|
|
74
|
-
* 大区ID
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof ParkInfoDTO
|
|
77
|
-
*/
|
|
78
|
-
'areaId'?: number;
|
|
79
67
|
/**
|
|
80
68
|
* 园区平面图
|
|
81
69
|
* @type {string}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import type { SysDept } from './sys-dept';
|
|
13
13
|
import type { SysRole } from './sys-role';
|
|
14
14
|
import type { SysUserAttachmentInfo } from './sys-user-attachment-info';
|
|
15
|
-
import type { UserSourceEnum } from './user-source-enum';
|
|
16
15
|
/**
|
|
17
16
|
* 用户对象
|
|
18
17
|
* @export
|
|
@@ -365,26 +364,14 @@ export interface SysUser {
|
|
|
365
364
|
'userAttachments'?: Array<SysUserAttachmentInfo>;
|
|
366
365
|
/**
|
|
367
366
|
*
|
|
368
|
-
* @type {UserSourceEnum}
|
|
369
|
-
* @memberof SysUser
|
|
370
|
-
*/
|
|
371
|
-
'userSource'?: UserSourceEnum;
|
|
372
|
-
/**
|
|
373
|
-
* 源用户ID
|
|
374
367
|
* @type {string}
|
|
375
368
|
* @memberof SysUser
|
|
376
369
|
*/
|
|
377
|
-
'
|
|
370
|
+
'cid'?: string;
|
|
378
371
|
/**
|
|
379
372
|
*
|
|
380
373
|
* @type {number}
|
|
381
374
|
* @memberof SysUser
|
|
382
375
|
*/
|
|
383
376
|
'cuserId'?: number;
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
* @type {string}
|
|
387
|
-
* @memberof SysUser
|
|
388
|
-
*/
|
|
389
|
-
'cid'?: string;
|
|
390
377
|
}
|
package/models/index.ts
CHANGED
|
@@ -398,7 +398,6 @@ export * from './user-excel-dto';
|
|
|
398
398
|
export * from './user-roles-and-permissions-dto';
|
|
399
399
|
export * from './user-settings-entity';
|
|
400
400
|
export * from './user-settings-update-bo';
|
|
401
|
-
export * from './user-source-enum';
|
|
402
401
|
export * from './user-whether-privacy-dto';
|
|
403
402
|
export * from './violation-center-attribute-enum';
|
|
404
403
|
export * from './violation-decision-vo';
|
package/models/park-info-dto.ts
CHANGED
|
@@ -71,18 +71,6 @@ export interface ParkInfoDTO {
|
|
|
71
71
|
* @memberof ParkInfoDTO
|
|
72
72
|
*/
|
|
73
73
|
'ancestors'?: string;
|
|
74
|
-
/**
|
|
75
|
-
* 集团ID
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @memberof ParkInfoDTO
|
|
78
|
-
*/
|
|
79
|
-
'groupId'?: number;
|
|
80
|
-
/**
|
|
81
|
-
* 大区ID
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof ParkInfoDTO
|
|
84
|
-
*/
|
|
85
|
-
'areaId'?: number;
|
|
86
74
|
/**
|
|
87
75
|
* 园区平面图
|
|
88
76
|
* @type {string}
|
package/models/sys-post.ts
CHANGED
package/models/sys-role.ts
CHANGED
package/models/sys-user.ts
CHANGED
|
@@ -22,9 +22,6 @@ import type { SysRole } from './sys-role';
|
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import type { SysUserAttachmentInfo } from './sys-user-attachment-info';
|
|
25
|
-
// May contain unused imports in some cases
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import type { UserSourceEnum } from './user-source-enum';
|
|
28
25
|
|
|
29
26
|
/**
|
|
30
27
|
* 用户对象
|
|
@@ -376,29 +373,15 @@ export interface SysUser {
|
|
|
376
373
|
'userAttachments'?: Array<SysUserAttachmentInfo>;
|
|
377
374
|
/**
|
|
378
375
|
*
|
|
379
|
-
* @type {UserSourceEnum}
|
|
380
|
-
* @memberof SysUser
|
|
381
|
-
*/
|
|
382
|
-
'userSource'?: UserSourceEnum;
|
|
383
|
-
/**
|
|
384
|
-
* 源用户ID
|
|
385
376
|
* @type {string}
|
|
386
377
|
* @memberof SysUser
|
|
387
378
|
*/
|
|
388
|
-
'
|
|
379
|
+
'cid'?: string;
|
|
389
380
|
/**
|
|
390
381
|
*
|
|
391
382
|
* @type {number}
|
|
392
383
|
* @memberof SysUser
|
|
393
384
|
*/
|
|
394
385
|
'cuserId'?: number;
|
|
395
|
-
/**
|
|
396
|
-
*
|
|
397
|
-
* @type {string}
|
|
398
|
-
* @memberof SysUser
|
|
399
|
-
*/
|
|
400
|
-
'cid'?: string;
|
|
401
386
|
}
|
|
402
387
|
|
|
403
|
-
|
|
404
|
-
|
package/package.json
CHANGED
package/apis/hwork-api.ts
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from '../configuration';
|
|
17
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
-
import globalAxios from 'axios';
|
|
19
|
-
// Some imports not used depending on template conditions
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
import type { JsonResultSysDept } from '../models';
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import type { LoginTypeEnum } from '../models';
|
|
28
|
-
/**
|
|
29
|
-
* HWorkApi - axios parameter creator
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
export const HWorkApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
-
return {
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
37
|
-
* @param {LoginTypeEnum} loginType
|
|
38
|
-
* @param {number} [groupId]
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
initHWorkUser: async (loginType: LoginTypeEnum, groupId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
-
// verify required parameter 'loginType' is not null or undefined
|
|
44
|
-
assertParamExists('initHWorkUser', 'loginType', loginType)
|
|
45
|
-
const localVarPath = `/haier/hwork/initHWorkUser`;
|
|
46
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
-
let baseOptions;
|
|
49
|
-
if (configuration) {
|
|
50
|
-
baseOptions = configuration.baseOptions;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
-
const localVarHeaderParameter = {} as any;
|
|
55
|
-
const localVarQueryParameter = {} as any;
|
|
56
|
-
|
|
57
|
-
// authentication tokenScheme required
|
|
58
|
-
// http bearer authentication required
|
|
59
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
-
|
|
61
|
-
if (groupId !== undefined) {
|
|
62
|
-
localVarQueryParameter['groupId'] = groupId;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (loginType !== undefined) {
|
|
66
|
-
localVarQueryParameter['loginType'] = loginType;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
72
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
73
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
url: toPathString(localVarUrlObj),
|
|
77
|
-
options: localVarRequestOptions,
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* HWorkApi - functional programming interface
|
|
85
|
-
* @export
|
|
86
|
-
*/
|
|
87
|
-
export const HWorkApiFp = function(configuration?: Configuration) {
|
|
88
|
-
const localVarAxiosParamCreator = HWorkApiAxiosParamCreator(configuration)
|
|
89
|
-
return {
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
93
|
-
* @param {LoginTypeEnum} loginType
|
|
94
|
-
* @param {number} [groupId]
|
|
95
|
-
* @param {*} [options] Override http request option.
|
|
96
|
-
* @throws {RequiredError}
|
|
97
|
-
*/
|
|
98
|
-
async initHWorkUser(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultSysDept>> {
|
|
99
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initHWorkUser(loginType, groupId, options);
|
|
100
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
101
|
-
const localVarOperationServerBasePath = operationServerMap['HWorkApi.initHWorkUser']?.[localVarOperationServerIndex]?.url;
|
|
102
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
103
|
-
},
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* HWorkApi - factory interface
|
|
109
|
-
* @export
|
|
110
|
-
*/
|
|
111
|
-
export const HWorkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
112
|
-
const localVarFp = HWorkApiFp(configuration)
|
|
113
|
-
return {
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
117
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
118
|
-
* @param {*} [options] Override http request option.
|
|
119
|
-
* @throws {RequiredError}
|
|
120
|
-
*/
|
|
121
|
-
initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultSysDept> {
|
|
122
|
-
return localVarFp.initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(axios, basePath));
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Request parameters for initHWorkUser operation in HWorkApi.
|
|
129
|
-
* @export
|
|
130
|
-
* @interface HWorkApiInitHWorkUserRequest
|
|
131
|
-
*/
|
|
132
|
-
export interface HWorkApiInitHWorkUserRequest {
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @type {LoginTypeEnum}
|
|
136
|
-
* @memberof HWorkApiInitHWorkUser
|
|
137
|
-
*/
|
|
138
|
-
readonly loginType: LoginTypeEnum
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
* @type {number}
|
|
143
|
-
* @memberof HWorkApiInitHWorkUser
|
|
144
|
-
*/
|
|
145
|
-
readonly groupId?: number
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* HWorkApi - object-oriented interface
|
|
150
|
-
* @export
|
|
151
|
-
* @class HWorkApi
|
|
152
|
-
* @extends {BaseAPI}
|
|
153
|
-
*/
|
|
154
|
-
export class HWorkApi extends BaseAPI {
|
|
155
|
-
/**
|
|
156
|
-
*
|
|
157
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
158
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
159
|
-
* @param {*} [options] Override http request option.
|
|
160
|
-
* @throws {RequiredError}
|
|
161
|
-
* @memberof HWorkApi
|
|
162
|
-
*/
|
|
163
|
-
public initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig) {
|
|
164
|
-
return HWorkApiFp(this.configuration).initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath));
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
package/dist/apis/hwork-api.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type { JsonResultSysDept } from '../models';
|
|
16
|
-
import type { LoginTypeEnum } from '../models';
|
|
17
|
-
/**
|
|
18
|
-
* HWorkApi - axios parameter creator
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export declare const HWorkApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
25
|
-
* @param {LoginTypeEnum} loginType
|
|
26
|
-
* @param {number} [groupId]
|
|
27
|
-
* @param {*} [options] Override http request option.
|
|
28
|
-
* @throws {RequiredError}
|
|
29
|
-
*/
|
|
30
|
-
initHWorkUser: (loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* HWorkApi - functional programming interface
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
export declare const HWorkApiFp: (configuration?: Configuration) => {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
40
|
-
* @param {LoginTypeEnum} loginType
|
|
41
|
-
* @param {number} [groupId]
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
initHWorkUser(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultSysDept>>;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* HWorkApi - factory interface
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
|
-
export declare const HWorkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
55
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
56
|
-
* @param {*} [options] Override http request option.
|
|
57
|
-
* @throws {RequiredError}
|
|
58
|
-
*/
|
|
59
|
-
initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultSysDept>;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Request parameters for initHWorkUser operation in HWorkApi.
|
|
63
|
-
* @export
|
|
64
|
-
* @interface HWorkApiInitHWorkUserRequest
|
|
65
|
-
*/
|
|
66
|
-
export interface HWorkApiInitHWorkUserRequest {
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {LoginTypeEnum}
|
|
70
|
-
* @memberof HWorkApiInitHWorkUser
|
|
71
|
-
*/
|
|
72
|
-
readonly loginType: LoginTypeEnum;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof HWorkApiInitHWorkUser
|
|
77
|
-
*/
|
|
78
|
-
readonly groupId?: number;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* HWorkApi - object-oriented interface
|
|
82
|
-
* @export
|
|
83
|
-
* @class HWorkApi
|
|
84
|
-
* @extends {BaseAPI}
|
|
85
|
-
*/
|
|
86
|
-
export declare class HWorkApi extends BaseAPI {
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
90
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
* @memberof HWorkApi
|
|
94
|
-
*/
|
|
95
|
-
initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultSysDept, any>>;
|
|
96
|
-
}
|
package/dist/apis/hwork-api.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* OpenAPI definition
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.HWorkApi = exports.HWorkApiFactory = exports.HWorkApiFp = exports.HWorkApiAxiosParamCreator = void 0;
|
|
26
|
-
const axios_1 = require("axios");
|
|
27
|
-
// Some imports not used depending on template conditions
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
const common_1 = require("../common");
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
const base_1 = require("../base");
|
|
32
|
-
/**
|
|
33
|
-
* HWorkApi - axios parameter creator
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
const HWorkApiAxiosParamCreator = function (configuration) {
|
|
37
|
-
return {
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
41
|
-
* @param {LoginTypeEnum} loginType
|
|
42
|
-
* @param {number} [groupId]
|
|
43
|
-
* @param {*} [options] Override http request option.
|
|
44
|
-
* @throws {RequiredError}
|
|
45
|
-
*/
|
|
46
|
-
initHWorkUser: (loginType_1, groupId_1, ...args_1) => __awaiter(this, [loginType_1, groupId_1, ...args_1], void 0, function* (loginType, groupId, options = {}) {
|
|
47
|
-
// verify required parameter 'loginType' is not null or undefined
|
|
48
|
-
(0, common_1.assertParamExists)('initHWorkUser', 'loginType', loginType);
|
|
49
|
-
const localVarPath = `/haier/hwork/initHWorkUser`;
|
|
50
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
-
let baseOptions;
|
|
53
|
-
if (configuration) {
|
|
54
|
-
baseOptions = configuration.baseOptions;
|
|
55
|
-
}
|
|
56
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
57
|
-
const localVarHeaderParameter = {};
|
|
58
|
-
const localVarQueryParameter = {};
|
|
59
|
-
// authentication tokenScheme required
|
|
60
|
-
// http bearer authentication required
|
|
61
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
62
|
-
if (groupId !== undefined) {
|
|
63
|
-
localVarQueryParameter['groupId'] = groupId;
|
|
64
|
-
}
|
|
65
|
-
if (loginType !== undefined) {
|
|
66
|
-
localVarQueryParameter['loginType'] = loginType;
|
|
67
|
-
}
|
|
68
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
-
return {
|
|
72
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
-
options: localVarRequestOptions,
|
|
74
|
-
};
|
|
75
|
-
}),
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
exports.HWorkApiAxiosParamCreator = HWorkApiAxiosParamCreator;
|
|
79
|
-
/**
|
|
80
|
-
* HWorkApi - functional programming interface
|
|
81
|
-
* @export
|
|
82
|
-
*/
|
|
83
|
-
const HWorkApiFp = function (configuration) {
|
|
84
|
-
const localVarAxiosParamCreator = (0, exports.HWorkApiAxiosParamCreator)(configuration);
|
|
85
|
-
return {
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
89
|
-
* @param {LoginTypeEnum} loginType
|
|
90
|
-
* @param {number} [groupId]
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
*/
|
|
94
|
-
initHWorkUser(loginType, groupId, options) {
|
|
95
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
var _a, _b, _c;
|
|
97
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initHWorkUser(loginType, groupId, options);
|
|
98
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
99
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HWorkApi.initHWorkUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
100
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
101
|
-
});
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
exports.HWorkApiFp = HWorkApiFp;
|
|
106
|
-
/**
|
|
107
|
-
* HWorkApi - factory interface
|
|
108
|
-
* @export
|
|
109
|
-
*/
|
|
110
|
-
const HWorkApiFactory = function (configuration, basePath, axios) {
|
|
111
|
-
const localVarFp = (0, exports.HWorkApiFp)(configuration);
|
|
112
|
-
return {
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
116
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
117
|
-
* @param {*} [options] Override http request option.
|
|
118
|
-
* @throws {RequiredError}
|
|
119
|
-
*/
|
|
120
|
-
initHWorkUser(requestParameters, options) {
|
|
121
|
-
return localVarFp.initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(axios, basePath));
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
exports.HWorkApiFactory = HWorkApiFactory;
|
|
126
|
-
/**
|
|
127
|
-
* HWorkApi - object-oriented interface
|
|
128
|
-
* @export
|
|
129
|
-
* @class HWorkApi
|
|
130
|
-
* @extends {BaseAPI}
|
|
131
|
-
*/
|
|
132
|
-
class HWorkApi extends base_1.BaseAPI {
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
136
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
137
|
-
* @param {*} [options] Override http request option.
|
|
138
|
-
* @throws {RequiredError}
|
|
139
|
-
* @memberof HWorkApi
|
|
140
|
-
*/
|
|
141
|
-
initHWorkUser(requestParameters, options) {
|
|
142
|
-
return (0, exports.HWorkApiFp)(this.configuration).initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath));
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
exports.HWorkApi = HWorkApi;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type { JsonResultSysDept } from '../models';
|
|
16
|
-
import type { LoginTypeEnum } from '../models';
|
|
17
|
-
/**
|
|
18
|
-
* HWorkApi - axios parameter creator
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export declare const HWorkApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
25
|
-
* @param {LoginTypeEnum} loginType
|
|
26
|
-
* @param {number} [groupId]
|
|
27
|
-
* @param {*} [options] Override http request option.
|
|
28
|
-
* @throws {RequiredError}
|
|
29
|
-
*/
|
|
30
|
-
initHWorkUser: (loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* HWorkApi - functional programming interface
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
export declare const HWorkApiFp: (configuration?: Configuration) => {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
40
|
-
* @param {LoginTypeEnum} loginType
|
|
41
|
-
* @param {number} [groupId]
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
initHWorkUser(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultSysDept>>;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* HWorkApi - factory interface
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
|
-
export declare const HWorkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
55
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
56
|
-
* @param {*} [options] Override http request option.
|
|
57
|
-
* @throws {RequiredError}
|
|
58
|
-
*/
|
|
59
|
-
initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultSysDept>;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Request parameters for initHWorkUser operation in HWorkApi.
|
|
63
|
-
* @export
|
|
64
|
-
* @interface HWorkApiInitHWorkUserRequest
|
|
65
|
-
*/
|
|
66
|
-
export interface HWorkApiInitHWorkUserRequest {
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {LoginTypeEnum}
|
|
70
|
-
* @memberof HWorkApiInitHWorkUser
|
|
71
|
-
*/
|
|
72
|
-
readonly loginType: LoginTypeEnum;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof HWorkApiInitHWorkUser
|
|
77
|
-
*/
|
|
78
|
-
readonly groupId?: number;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* HWorkApi - object-oriented interface
|
|
82
|
-
* @export
|
|
83
|
-
* @class HWorkApi
|
|
84
|
-
* @extends {BaseAPI}
|
|
85
|
-
*/
|
|
86
|
-
export declare class HWorkApi extends BaseAPI {
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
90
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
* @memberof HWorkApi
|
|
94
|
-
*/
|
|
95
|
-
initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultSysDept, any>>;
|
|
96
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
import globalAxios from 'axios';
|
|
24
|
-
// Some imports not used depending on template conditions
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
-
/**
|
|
30
|
-
* HWorkApi - axios parameter creator
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
export const HWorkApiAxiosParamCreator = function (configuration) {
|
|
34
|
-
return {
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
38
|
-
* @param {LoginTypeEnum} loginType
|
|
39
|
-
* @param {number} [groupId]
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
*/
|
|
43
|
-
initHWorkUser: (loginType_1, groupId_1, ...args_1) => __awaiter(this, [loginType_1, groupId_1, ...args_1], void 0, function* (loginType, groupId, options = {}) {
|
|
44
|
-
// verify required parameter 'loginType' is not null or undefined
|
|
45
|
-
assertParamExists('initHWorkUser', 'loginType', loginType);
|
|
46
|
-
const localVarPath = `/haier/hwork/initHWorkUser`;
|
|
47
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
-
let baseOptions;
|
|
50
|
-
if (configuration) {
|
|
51
|
-
baseOptions = configuration.baseOptions;
|
|
52
|
-
}
|
|
53
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
54
|
-
const localVarHeaderParameter = {};
|
|
55
|
-
const localVarQueryParameter = {};
|
|
56
|
-
// authentication tokenScheme required
|
|
57
|
-
// http bearer authentication required
|
|
58
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
59
|
-
if (groupId !== undefined) {
|
|
60
|
-
localVarQueryParameter['groupId'] = groupId;
|
|
61
|
-
}
|
|
62
|
-
if (loginType !== undefined) {
|
|
63
|
-
localVarQueryParameter['loginType'] = loginType;
|
|
64
|
-
}
|
|
65
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
68
|
-
return {
|
|
69
|
-
url: toPathString(localVarUrlObj),
|
|
70
|
-
options: localVarRequestOptions,
|
|
71
|
-
};
|
|
72
|
-
}),
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* HWorkApi - functional programming interface
|
|
77
|
-
* @export
|
|
78
|
-
*/
|
|
79
|
-
export const HWorkApiFp = function (configuration) {
|
|
80
|
-
const localVarAxiosParamCreator = HWorkApiAxiosParamCreator(configuration);
|
|
81
|
-
return {
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
85
|
-
* @param {LoginTypeEnum} loginType
|
|
86
|
-
* @param {number} [groupId]
|
|
87
|
-
* @param {*} [options] Override http request option.
|
|
88
|
-
* @throws {RequiredError}
|
|
89
|
-
*/
|
|
90
|
-
initHWorkUser(loginType, groupId, options) {
|
|
91
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
var _a, _b, _c;
|
|
93
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initHWorkUser(loginType, groupId, options);
|
|
94
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
95
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HWorkApi.initHWorkUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
96
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
97
|
-
});
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* HWorkApi - factory interface
|
|
103
|
-
* @export
|
|
104
|
-
*/
|
|
105
|
-
export const HWorkApiFactory = function (configuration, basePath, axios) {
|
|
106
|
-
const localVarFp = HWorkApiFp(configuration);
|
|
107
|
-
return {
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
111
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
112
|
-
* @param {*} [options] Override http request option.
|
|
113
|
-
* @throws {RequiredError}
|
|
114
|
-
*/
|
|
115
|
-
initHWorkUser(requestParameters, options) {
|
|
116
|
-
return localVarFp.initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(axios, basePath));
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* HWorkApi - object-oriented interface
|
|
122
|
-
* @export
|
|
123
|
-
* @class HWorkApi
|
|
124
|
-
* @extends {BaseAPI}
|
|
125
|
-
*/
|
|
126
|
-
export class HWorkApi extends BaseAPI {
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
130
|
-
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
131
|
-
* @param {*} [options] Override http request option.
|
|
132
|
-
* @throws {RequiredError}
|
|
133
|
-
* @memberof HWorkApi
|
|
134
|
-
*/
|
|
135
|
-
initHWorkUser(requestParameters, options) {
|
|
136
|
-
return HWorkApiFp(this.configuration).initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* 用户来源
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare const UserSourceEnum: {
|
|
18
|
-
readonly Internal: "INTERNAL";
|
|
19
|
-
readonly Hwork: "HWORK";
|
|
20
|
-
};
|
|
21
|
-
export type UserSourceEnum = typeof UserSourceEnum[keyof typeof UserSourceEnum];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* 用户来源
|
|
16
|
-
* @export
|
|
17
|
-
* @enum {string}
|
|
18
|
-
*/
|
|
19
|
-
export const UserSourceEnum = {
|
|
20
|
-
Internal: 'INTERNAL',
|
|
21
|
-
Hwork: 'HWORK'
|
|
22
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* 用户来源
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare const UserSourceEnum: {
|
|
18
|
-
readonly Internal: "INTERNAL";
|
|
19
|
-
readonly Hwork: "HWORK";
|
|
20
|
-
};
|
|
21
|
-
export type UserSourceEnum = typeof UserSourceEnum[keyof typeof UserSourceEnum];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* OpenAPI definition
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserSourceEnum = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* 用户来源
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
exports.UserSourceEnum = {
|
|
23
|
-
Internal: 'INTERNAL',
|
|
24
|
-
Hwork: 'HWORK'
|
|
25
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 用户来源
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
export const UserSourceEnum = {
|
|
24
|
-
Internal: 'INTERNAL',
|
|
25
|
-
Hwork: 'HWORK'
|
|
26
|
-
} as const;
|
|
27
|
-
|
|
28
|
-
export type UserSourceEnum = typeof UserSourceEnum[keyof typeof UserSourceEnum];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|