@equisoft/equisoft-connect-sdk-typescript 10.26.2 → 10.26.3-snapshot.20220729160033
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 +2 -1
- package/dist/apis/GatewaysApi.d.ts +3 -4
- package/dist/apis/GatewaysApi.js +2 -5
- package/dist/models/GatewaysAccessesValidationAdminCredentialResponse.d.ts +28 -0
- package/dist/models/GatewaysAccessesValidationAdminCredentialResponse.js +42 -0
- package/dist/models/GatewaysAccessesValidationGatewayAdminDto.d.ts +39 -0
- package/dist/models/GatewaysAccessesValidationGatewayAdminDto.js +45 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/GatewaysApi.ts +7 -12
- package/src/models/GatewaysAccessesValidationAdminCredentialResponse.ts +63 -0
- package/src/models/{AdminCredentialResponse.ts → GatewaysAccessesValidationGatewayAdminDto.ts} +15 -15
- package/src/models/index.ts +2 -1
- package/dist/models/AdminCredentialResponse.d.ts +0 -39
- package/dist/models/AdminCredentialResponse.js +0 -45
package/.openapi-generator/FILES
CHANGED
|
@@ -18,7 +18,6 @@ src/apis/index.ts
|
|
|
18
18
|
src/index.ts
|
|
19
19
|
src/models/AccessRights.ts
|
|
20
20
|
src/models/AdminCredentialPayload.ts
|
|
21
|
-
src/models/AdminCredentialResponse.ts
|
|
22
21
|
src/models/CalendarDefaultCalendarId.ts
|
|
23
22
|
src/models/CalendarsCalendar.ts
|
|
24
23
|
src/models/CalendarsListCalendarResponse.ts
|
|
@@ -67,6 +66,8 @@ src/models/GatewaysAccessesEquisoftAnalyzeAccess.ts
|
|
|
67
66
|
src/models/GatewaysAccessesListGatewayAccessesResponse.ts
|
|
68
67
|
src/models/GatewaysAccessesPatchEquisoftAnalyzeAccessPayload.ts
|
|
69
68
|
src/models/GatewaysAccessesUser.ts
|
|
69
|
+
src/models/GatewaysAccessesValidationAdminCredentialResponse.ts
|
|
70
|
+
src/models/GatewaysAccessesValidationGatewayAdminDto.ts
|
|
70
71
|
src/models/GatewaysCredentials.ts
|
|
71
72
|
src/models/GatewaysCredentialsWithSsn.ts
|
|
72
73
|
src/models/GatewaysCredentialsWithSsnAllOf.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AdminCredentialPayload,
|
|
13
|
+
import { AdminCredentialPayload, CredentialsResponse, GatewaysAccessesCreateAccessResponse, GatewaysAccessesCreateEquisoftAnalyzeAccessPayload, GatewaysAccessesListGatewayAccessesResponse, GatewaysAccessesPatchEquisoftAnalyzeAccessPayload, GatewaysAccessesValidationAdminCredentialResponse, GatewaysListCredentialsResponse } from '../models';
|
|
14
14
|
export interface CreateEquisoftAnalyzeAccessRequest {
|
|
15
15
|
gatewaysAccessesCreateEquisoftAnalyzeAccessPayload: GatewaysAccessesCreateEquisoftAnalyzeAccessPayload;
|
|
16
16
|
}
|
|
@@ -18,7 +18,6 @@ export interface DeleteEquisoftAnalyzeAccessRequest {
|
|
|
18
18
|
accessId: number;
|
|
19
19
|
}
|
|
20
20
|
export interface GatewayAdminLoginRequest {
|
|
21
|
-
gatewayName: string;
|
|
22
21
|
authorization: string;
|
|
23
22
|
adminCredentialPayload: AdminCredentialPayload;
|
|
24
23
|
}
|
|
@@ -69,10 +68,10 @@ export declare class GatewaysApi extends runtime.BaseAPI {
|
|
|
69
68
|
deleteEquisoftAnalyzeAccess(requestParameters: DeleteEquisoftAnalyzeAccessRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
70
69
|
/**
|
|
71
70
|
*/
|
|
72
|
-
gatewayAdminLoginRaw(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
71
|
+
gatewayAdminLoginRaw(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GatewaysAccessesValidationAdminCredentialResponse>>;
|
|
73
72
|
/**
|
|
74
73
|
*/
|
|
75
|
-
gatewayAdminLogin(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
74
|
+
gatewayAdminLogin(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GatewaysAccessesValidationAdminCredentialResponse>;
|
|
76
75
|
/**
|
|
77
76
|
*/
|
|
78
77
|
listAssetBookCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GatewaysListCredentialsResponse>>;
|
package/dist/apis/GatewaysApi.js
CHANGED
|
@@ -106,9 +106,6 @@ class GatewaysApi extends runtime.BaseAPI {
|
|
|
106
106
|
*/
|
|
107
107
|
gatewayAdminLoginRaw(requestParameters, initOverrides) {
|
|
108
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
if (requestParameters.gatewayName === null || requestParameters.gatewayName === undefined) {
|
|
110
|
-
throw new runtime.RequiredError('gatewayName', 'Required parameter requestParameters.gatewayName was null or undefined when calling gatewayAdminLogin.');
|
|
111
|
-
}
|
|
112
109
|
if (requestParameters.authorization === null || requestParameters.authorization === undefined) {
|
|
113
110
|
throw new runtime.RequiredError('authorization', 'Required parameter requestParameters.authorization was null or undefined when calling gatewayAdminLogin.');
|
|
114
111
|
}
|
|
@@ -130,13 +127,13 @@ class GatewaysApi extends runtime.BaseAPI {
|
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
129
|
const response = yield this.request({
|
|
133
|
-
path: `/crm/api/v1/gateways/credentials-validation/
|
|
130
|
+
path: `/crm/api/v1/gateways/credentials-validation/admin-credentials/login`,
|
|
134
131
|
method: 'POST',
|
|
135
132
|
headers: headerParameters,
|
|
136
133
|
query: queryParameters,
|
|
137
134
|
body: models_1.AdminCredentialPayloadToJSON(requestParameters.adminCredentialPayload),
|
|
138
135
|
}, initOverrides);
|
|
139
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.
|
|
136
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.GatewaysAccessesValidationAdminCredentialResponseFromJSON(jsonValue));
|
|
140
137
|
});
|
|
141
138
|
}
|
|
142
139
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 { GatewaysAccessesValidationGatewayAdminDto } from './GatewaysAccessesValidationGatewayAdminDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GatewaysAccessesValidationAdminCredentialResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GatewaysAccessesValidationAdminCredentialResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GatewaysAccessesValidationGatewayAdminDto>}
|
|
22
|
+
* @memberof GatewaysAccessesValidationAdminCredentialResponse
|
|
23
|
+
*/
|
|
24
|
+
adminGateways: Array<GatewaysAccessesValidationGatewayAdminDto>;
|
|
25
|
+
}
|
|
26
|
+
export declare function GatewaysAccessesValidationAdminCredentialResponseFromJSON(json: any): GatewaysAccessesValidationAdminCredentialResponse;
|
|
27
|
+
export declare function GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewaysAccessesValidationAdminCredentialResponse;
|
|
28
|
+
export declare function GatewaysAccessesValidationAdminCredentialResponseToJSON(value?: GatewaysAccessesValidationAdminCredentialResponse | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Equisoft /connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
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.GatewaysAccessesValidationAdminCredentialResponseToJSON = exports.GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped = exports.GatewaysAccessesValidationAdminCredentialResponseFromJSON = void 0;
|
|
17
|
+
const GatewaysAccessesValidationGatewayAdminDto_1 = require("./GatewaysAccessesValidationGatewayAdminDto");
|
|
18
|
+
function GatewaysAccessesValidationAdminCredentialResponseFromJSON(json) {
|
|
19
|
+
return GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.GatewaysAccessesValidationAdminCredentialResponseFromJSON = GatewaysAccessesValidationAdminCredentialResponseFromJSON;
|
|
22
|
+
function GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'adminGateways': (json['adminGateways'].map(GatewaysAccessesValidationGatewayAdminDto_1.GatewaysAccessesValidationGatewayAdminDtoFromJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped = GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped;
|
|
31
|
+
function GatewaysAccessesValidationAdminCredentialResponseToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'adminGateways': (value.adminGateways.map(GatewaysAccessesValidationGatewayAdminDto_1.GatewaysAccessesValidationGatewayAdminDtoToJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.GatewaysAccessesValidationAdminCredentialResponseToJSON = GatewaysAccessesValidationAdminCredentialResponseToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equisoft /connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
* @interface GatewaysAccessesValidationGatewayAdminDto
|
|
16
|
+
*/
|
|
17
|
+
export interface GatewaysAccessesValidationGatewayAdminDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GatewaysAccessesValidationGatewayAdminDto
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GatewaysAccessesValidationGatewayAdminDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GatewaysAccessesValidationGatewayAdminDto
|
|
34
|
+
*/
|
|
35
|
+
lang: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function GatewaysAccessesValidationGatewayAdminDtoFromJSON(json: any): GatewaysAccessesValidationGatewayAdminDto;
|
|
38
|
+
export declare function GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewaysAccessesValidationGatewayAdminDto;
|
|
39
|
+
export declare function GatewaysAccessesValidationGatewayAdminDtoToJSON(value?: GatewaysAccessesValidationGatewayAdminDto | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Equisoft /connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
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.GatewaysAccessesValidationGatewayAdminDtoToJSON = exports.GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped = exports.GatewaysAccessesValidationGatewayAdminDtoFromJSON = void 0;
|
|
17
|
+
function GatewaysAccessesValidationGatewayAdminDtoFromJSON(json) {
|
|
18
|
+
return GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.GatewaysAccessesValidationGatewayAdminDtoFromJSON = GatewaysAccessesValidationGatewayAdminDtoFromJSON;
|
|
21
|
+
function GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'id': json['id'],
|
|
27
|
+
'name': json['name'],
|
|
28
|
+
'lang': json['lang'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped = GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped;
|
|
32
|
+
function GatewaysAccessesValidationGatewayAdminDtoToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': value.id,
|
|
41
|
+
'name': value.name,
|
|
42
|
+
'lang': value.lang,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.GatewaysAccessesValidationGatewayAdminDtoToJSON = GatewaysAccessesValidationGatewayAdminDtoToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './AccessRights';
|
|
2
2
|
export * from './AdminCredentialPayload';
|
|
3
|
-
export * from './AdminCredentialResponse';
|
|
4
3
|
export * from './CalendarDefaultCalendarId';
|
|
5
4
|
export * from './CalendarsCalendar';
|
|
6
5
|
export * from './CalendarsListCalendarResponse';
|
|
@@ -49,6 +48,8 @@ export * from './GatewaysAccessesEquisoftAnalyzeAccess';
|
|
|
49
48
|
export * from './GatewaysAccessesListGatewayAccessesResponse';
|
|
50
49
|
export * from './GatewaysAccessesPatchEquisoftAnalyzeAccessPayload';
|
|
51
50
|
export * from './GatewaysAccessesUser';
|
|
51
|
+
export * from './GatewaysAccessesValidationAdminCredentialResponse';
|
|
52
|
+
export * from './GatewaysAccessesValidationGatewayAdminDto';
|
|
52
53
|
export * from './GatewaysCredentials';
|
|
53
54
|
export * from './GatewaysCredentialsWithSsn';
|
|
54
55
|
export * from './GatewaysCredentialsWithSsnAllOf';
|
package/dist/models/index.js
CHANGED
|
@@ -14,7 +14,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
/* eslint-disable */
|
|
15
15
|
__exportStar(require("./AccessRights"), exports);
|
|
16
16
|
__exportStar(require("./AdminCredentialPayload"), exports);
|
|
17
|
-
__exportStar(require("./AdminCredentialResponse"), exports);
|
|
18
17
|
__exportStar(require("./CalendarDefaultCalendarId"), exports);
|
|
19
18
|
__exportStar(require("./CalendarsCalendar"), exports);
|
|
20
19
|
__exportStar(require("./CalendarsListCalendarResponse"), exports);
|
|
@@ -63,6 +62,8 @@ __exportStar(require("./GatewaysAccessesEquisoftAnalyzeAccess"), exports);
|
|
|
63
62
|
__exportStar(require("./GatewaysAccessesListGatewayAccessesResponse"), exports);
|
|
64
63
|
__exportStar(require("./GatewaysAccessesPatchEquisoftAnalyzeAccessPayload"), exports);
|
|
65
64
|
__exportStar(require("./GatewaysAccessesUser"), exports);
|
|
65
|
+
__exportStar(require("./GatewaysAccessesValidationAdminCredentialResponse"), exports);
|
|
66
|
+
__exportStar(require("./GatewaysAccessesValidationGatewayAdminDto"), exports);
|
|
66
67
|
__exportStar(require("./GatewaysCredentials"), exports);
|
|
67
68
|
__exportStar(require("./GatewaysCredentialsWithSsn"), exports);
|
|
68
69
|
__exportStar(require("./GatewaysCredentialsWithSsnAllOf"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/equisoft-connect-sdk-typescript",
|
|
3
|
-
"version": "10.26.
|
|
3
|
+
"version": "10.26.3-snapshot.20220729160033",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/equisoft-connect-sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/apis/GatewaysApi.ts
CHANGED
|
@@ -18,9 +18,6 @@ import {
|
|
|
18
18
|
AdminCredentialPayload,
|
|
19
19
|
AdminCredentialPayloadFromJSON,
|
|
20
20
|
AdminCredentialPayloadToJSON,
|
|
21
|
-
AdminCredentialResponse,
|
|
22
|
-
AdminCredentialResponseFromJSON,
|
|
23
|
-
AdminCredentialResponseToJSON,
|
|
24
21
|
CredentialsResponse,
|
|
25
22
|
CredentialsResponseFromJSON,
|
|
26
23
|
CredentialsResponseToJSON,
|
|
@@ -39,6 +36,9 @@ import {
|
|
|
39
36
|
GatewaysAccessesPatchEquisoftAnalyzeAccessPayload,
|
|
40
37
|
GatewaysAccessesPatchEquisoftAnalyzeAccessPayloadFromJSON,
|
|
41
38
|
GatewaysAccessesPatchEquisoftAnalyzeAccessPayloadToJSON,
|
|
39
|
+
GatewaysAccessesValidationAdminCredentialResponse,
|
|
40
|
+
GatewaysAccessesValidationAdminCredentialResponseFromJSON,
|
|
41
|
+
GatewaysAccessesValidationAdminCredentialResponseToJSON,
|
|
42
42
|
GatewaysListCredentialsResponse,
|
|
43
43
|
GatewaysListCredentialsResponseFromJSON,
|
|
44
44
|
GatewaysListCredentialsResponseToJSON,
|
|
@@ -53,7 +53,6 @@ export interface DeleteEquisoftAnalyzeAccessRequest {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface GatewayAdminLoginRequest {
|
|
56
|
-
gatewayName: string;
|
|
57
56
|
authorization: string;
|
|
58
57
|
adminCredentialPayload: AdminCredentialPayload;
|
|
59
58
|
}
|
|
@@ -178,11 +177,7 @@ export class GatewaysApi extends runtime.BaseAPI {
|
|
|
178
177
|
|
|
179
178
|
/**
|
|
180
179
|
*/
|
|
181
|
-
async gatewayAdminLoginRaw(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
182
|
-
if (requestParameters.gatewayName === null || requestParameters.gatewayName === undefined) {
|
|
183
|
-
throw new runtime.RequiredError('gatewayName','Required parameter requestParameters.gatewayName was null or undefined when calling gatewayAdminLogin.');
|
|
184
|
-
}
|
|
185
|
-
|
|
180
|
+
async gatewayAdminLoginRaw(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GatewaysAccessesValidationAdminCredentialResponse>> {
|
|
186
181
|
if (requestParameters.authorization === null || requestParameters.authorization === undefined) {
|
|
187
182
|
throw new runtime.RequiredError('authorization','Required parameter requestParameters.authorization was null or undefined when calling gatewayAdminLogin.');
|
|
188
183
|
}
|
|
@@ -212,19 +207,19 @@ export class GatewaysApi extends runtime.BaseAPI {
|
|
|
212
207
|
}
|
|
213
208
|
|
|
214
209
|
const response = await this.request({
|
|
215
|
-
path: `/crm/api/v1/gateways/credentials-validation/
|
|
210
|
+
path: `/crm/api/v1/gateways/credentials-validation/admin-credentials/login`,
|
|
216
211
|
method: 'POST',
|
|
217
212
|
headers: headerParameters,
|
|
218
213
|
query: queryParameters,
|
|
219
214
|
body: AdminCredentialPayloadToJSON(requestParameters.adminCredentialPayload),
|
|
220
215
|
}, initOverrides);
|
|
221
216
|
|
|
222
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
217
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GatewaysAccessesValidationAdminCredentialResponseFromJSON(jsonValue));
|
|
223
218
|
}
|
|
224
219
|
|
|
225
220
|
/**
|
|
226
221
|
*/
|
|
227
|
-
async gatewayAdminLogin(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
222
|
+
async gatewayAdminLogin(requestParameters: GatewayAdminLoginRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GatewaysAccessesValidationAdminCredentialResponse> {
|
|
228
223
|
const response = await this.gatewayAdminLoginRaw(requestParameters, initOverrides);
|
|
229
224
|
return await response.value();
|
|
230
225
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Equisoft /connect API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
GatewaysAccessesValidationGatewayAdminDto,
|
|
18
|
+
GatewaysAccessesValidationGatewayAdminDtoFromJSON,
|
|
19
|
+
GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped,
|
|
20
|
+
GatewaysAccessesValidationGatewayAdminDtoToJSON,
|
|
21
|
+
} from './GatewaysAccessesValidationGatewayAdminDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface GatewaysAccessesValidationAdminCredentialResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface GatewaysAccessesValidationAdminCredentialResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<GatewaysAccessesValidationGatewayAdminDto>}
|
|
32
|
+
* @memberof GatewaysAccessesValidationAdminCredentialResponse
|
|
33
|
+
*/
|
|
34
|
+
adminGateways: Array<GatewaysAccessesValidationGatewayAdminDto>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function GatewaysAccessesValidationAdminCredentialResponseFromJSON(json: any): GatewaysAccessesValidationAdminCredentialResponse {
|
|
38
|
+
return GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function GatewaysAccessesValidationAdminCredentialResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewaysAccessesValidationAdminCredentialResponse {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'adminGateways': ((json['adminGateways'] as Array<any>).map(GatewaysAccessesValidationGatewayAdminDtoFromJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function GatewaysAccessesValidationAdminCredentialResponseToJSON(value?: GatewaysAccessesValidationAdminCredentialResponse | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'adminGateways': ((value.adminGateways as Array<any>).map(GatewaysAccessesValidationGatewayAdminDtoToJSON)),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
package/src/models/{AdminCredentialResponse.ts → GatewaysAccessesValidationGatewayAdminDto.ts}
RENAMED
|
@@ -16,46 +16,46 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface GatewaysAccessesValidationGatewayAdminDto
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface GatewaysAccessesValidationGatewayAdminDto {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof GatewaysAccessesValidationGatewayAdminDto
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof GatewaysAccessesValidationGatewayAdminDto
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof GatewaysAccessesValidationGatewayAdminDto
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
lang: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export function
|
|
43
|
-
return
|
|
42
|
+
export function GatewaysAccessesValidationGatewayAdminDtoFromJSON(json: any): GatewaysAccessesValidationGatewayAdminDto {
|
|
43
|
+
return GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json, false);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export function
|
|
46
|
+
export function GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GatewaysAccessesValidationGatewayAdminDto {
|
|
47
47
|
if ((json === undefined) || (json === null)) {
|
|
48
48
|
return json;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
|
|
52
|
-
'
|
|
52
|
+
'id': json['id'],
|
|
53
53
|
'name': json['name'],
|
|
54
|
-
'
|
|
54
|
+
'lang': json['lang'],
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export function
|
|
58
|
+
export function GatewaysAccessesValidationGatewayAdminDtoToJSON(value?: GatewaysAccessesValidationGatewayAdminDto | null): any {
|
|
59
59
|
if (value === undefined) {
|
|
60
60
|
return undefined;
|
|
61
61
|
}
|
|
@@ -64,9 +64,9 @@ export function AdminCredentialResponseToJSON(value?: AdminCredentialResponse |
|
|
|
64
64
|
}
|
|
65
65
|
return {
|
|
66
66
|
|
|
67
|
-
'
|
|
67
|
+
'id': value.id,
|
|
68
68
|
'name': value.name,
|
|
69
|
-
'
|
|
69
|
+
'lang': value.lang,
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
|
package/src/models/index.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccessRights';
|
|
4
4
|
export * from './AdminCredentialPayload';
|
|
5
|
-
export * from './AdminCredentialResponse';
|
|
6
5
|
export * from './CalendarDefaultCalendarId';
|
|
7
6
|
export * from './CalendarsCalendar';
|
|
8
7
|
export * from './CalendarsListCalendarResponse';
|
|
@@ -51,6 +50,8 @@ export * from './GatewaysAccessesEquisoftAnalyzeAccess';
|
|
|
51
50
|
export * from './GatewaysAccessesListGatewayAccessesResponse';
|
|
52
51
|
export * from './GatewaysAccessesPatchEquisoftAnalyzeAccessPayload';
|
|
53
52
|
export * from './GatewaysAccessesUser';
|
|
53
|
+
export * from './GatewaysAccessesValidationAdminCredentialResponse';
|
|
54
|
+
export * from './GatewaysAccessesValidationGatewayAdminDto';
|
|
54
55
|
export * from './GatewaysCredentials';
|
|
55
56
|
export * from './GatewaysCredentialsWithSsn';
|
|
56
57
|
export * from './GatewaysCredentialsWithSsnAllOf';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Equisoft /connect API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: latest
|
|
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
|
-
* @interface AdminCredentialResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface AdminCredentialResponse {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof AdminCredentialResponse
|
|
22
|
-
*/
|
|
23
|
-
gatewayId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof AdminCredentialResponse
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof AdminCredentialResponse
|
|
34
|
-
*/
|
|
35
|
-
defaultLang: string;
|
|
36
|
-
}
|
|
37
|
-
export declare function AdminCredentialResponseFromJSON(json: any): AdminCredentialResponse;
|
|
38
|
-
export declare function AdminCredentialResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCredentialResponse;
|
|
39
|
-
export declare function AdminCredentialResponseToJSON(value?: AdminCredentialResponse | null): any;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Equisoft /connect API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: latest
|
|
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.AdminCredentialResponseToJSON = exports.AdminCredentialResponseFromJSONTyped = exports.AdminCredentialResponseFromJSON = void 0;
|
|
17
|
-
function AdminCredentialResponseFromJSON(json) {
|
|
18
|
-
return AdminCredentialResponseFromJSONTyped(json, false);
|
|
19
|
-
}
|
|
20
|
-
exports.AdminCredentialResponseFromJSON = AdminCredentialResponseFromJSON;
|
|
21
|
-
function AdminCredentialResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'gatewayId': json['gatewayId'],
|
|
27
|
-
'name': json['name'],
|
|
28
|
-
'defaultLang': json['defaultLang'],
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
exports.AdminCredentialResponseFromJSONTyped = AdminCredentialResponseFromJSONTyped;
|
|
32
|
-
function AdminCredentialResponseToJSON(value) {
|
|
33
|
-
if (value === undefined) {
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
if (value === null) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'gatewayId': value.gatewayId,
|
|
41
|
-
'name': value.name,
|
|
42
|
-
'defaultLang': value.defaultLang,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.AdminCredentialResponseToJSON = AdminCredentialResponseToJSON;
|