@randock/nameshift-api-client 0.0.39 → 0.0.41
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 +5 -2
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -46
- package/dist/apis/AccountsPublicApi.js +0 -181
- package/dist/apis/AdminApi.d.ts +13 -13
- package/dist/apis/AdminApi.js +43 -43
- package/dist/apis/DomainsApi.d.ts +15 -1
- package/dist/apis/DomainsApi.js +63 -0
- package/dist/apis/UsersPublicApi.d.ts +63 -0
- package/dist/apis/UsersPublicApi.js +261 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AdminGetAllDomainTransfers200Response.d.ts +46 -0
- package/dist/models/AdminGetAllDomainTransfers200Response.js +58 -0
- package/dist/models/GetAllDomainTransfers200Response.d.ts +3 -3
- package/dist/models/GetAllDomainTransfers200Response.js +3 -3
- package/dist/models/LoginDto.d.ts +37 -0
- package/dist/models/LoginDto.js +51 -0
- package/dist/models/SellerDomainTransferDomainDto.d.ts +43 -0
- package/dist/models/SellerDomainTransferDomainDto.js +55 -0
- package/dist/models/SellerDomainTransferDto.d.ts +74 -0
- package/dist/models/SellerDomainTransferDto.js +80 -0
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +0 -3
- package/src/apis/AccountsPublicApi.ts +0 -184
- package/src/apis/AdminApi.ts +56 -56
- package/src/apis/DomainsApi.ts +60 -3
- package/src/apis/UsersPublicApi.ts +214 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminGetAllDomainTransfers200Response.ts +98 -0
- package/src/models/GetAllDomainTransfers200Response.ts +9 -9
- package/src/models/{TokenDto.ts → LoginDto.ts} +18 -9
- package/src/models/SellerDomainTransferDomainDto.ts +79 -0
- package/src/models/SellerDomainTransferDto.ts +126 -0
- package/src/models/index.ts +4 -2
- package/dist/models/TokenDto.d.ts +0 -31
- package/dist/models/TokenDto.js +0 -47
- package/dist/models/UnauthorizedException.d.ts +0 -43
- package/dist/models/UnauthorizedException.js +0 -55
- package/src/models/UnauthorizedException.ts +0 -79
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 SellerDomainTransferDomainDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerDomainTransferDomainDto {
|
|
18
|
+
/**
|
|
19
|
+
* The domain ID
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof SellerDomainTransferDomainDto
|
|
22
|
+
*/
|
|
23
|
+
id: object;
|
|
24
|
+
/**
|
|
25
|
+
* The domain name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SellerDomainTransferDomainDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The domain TLD
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerDomainTransferDomainDto
|
|
34
|
+
*/
|
|
35
|
+
tld: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SellerDomainTransferDomainDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSellerDomainTransferDomainDto(value: object): boolean;
|
|
41
|
+
export declare function SellerDomainTransferDomainDtoFromJSON(json: any): SellerDomainTransferDomainDto;
|
|
42
|
+
export declare function SellerDomainTransferDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainTransferDomainDto;
|
|
43
|
+
export declare function SellerDomainTransferDomainDtoToJSON(value?: SellerDomainTransferDomainDto | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
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.SellerDomainTransferDomainDtoToJSON = exports.SellerDomainTransferDomainDtoFromJSONTyped = exports.SellerDomainTransferDomainDtoFromJSON = exports.instanceOfSellerDomainTransferDomainDto = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SellerDomainTransferDomainDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSellerDomainTransferDomainDto(value) {
|
|
21
|
+
if (!('id' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('name' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('tld' in value))
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfSellerDomainTransferDomainDto = instanceOfSellerDomainTransferDomainDto;
|
|
30
|
+
function SellerDomainTransferDomainDtoFromJSON(json) {
|
|
31
|
+
return SellerDomainTransferDomainDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.SellerDomainTransferDomainDtoFromJSON = SellerDomainTransferDomainDtoFromJSON;
|
|
34
|
+
function SellerDomainTransferDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'tld': json['tld'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.SellerDomainTransferDomainDtoFromJSONTyped = SellerDomainTransferDomainDtoFromJSONTyped;
|
|
45
|
+
function SellerDomainTransferDomainDtoToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'tld': value['tld'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.SellerDomainTransferDomainDtoToJSON = SellerDomainTransferDomainDtoToJSON;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
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 { SellerDomainTransferDomainDto } from './SellerDomainTransferDomainDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SellerDomainTransferDto
|
|
17
|
+
*/
|
|
18
|
+
export interface SellerDomainTransferDto {
|
|
19
|
+
/**
|
|
20
|
+
* The domain transfer ID
|
|
21
|
+
* @type {object}
|
|
22
|
+
* @memberof SellerDomainTransferDto
|
|
23
|
+
*/
|
|
24
|
+
id: object;
|
|
25
|
+
/**
|
|
26
|
+
* The domain of transfer
|
|
27
|
+
* @type {SellerDomainTransferDomainDto}
|
|
28
|
+
* @memberof SellerDomainTransferDto
|
|
29
|
+
*/
|
|
30
|
+
domain: SellerDomainTransferDomainDto;
|
|
31
|
+
/**
|
|
32
|
+
* The domain transfer status
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SellerDomainTransferDto
|
|
35
|
+
*/
|
|
36
|
+
status: SellerDomainTransferDtoStatusEnum;
|
|
37
|
+
/**
|
|
38
|
+
* The domain transfer requirements
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SellerDomainTransferDto
|
|
41
|
+
*/
|
|
42
|
+
requirements: SellerDomainTransferDtoRequirementsEnum;
|
|
43
|
+
/**
|
|
44
|
+
* The domain transfer creation date
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof SellerDomainTransferDto
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const SellerDomainTransferDtoStatusEnum: {
|
|
54
|
+
readonly CREATED: "created";
|
|
55
|
+
readonly STARTED: "started";
|
|
56
|
+
readonly PENDING_MANUAL_ACTION: "pending_manual_action";
|
|
57
|
+
readonly ERROR: "error";
|
|
58
|
+
readonly COMPLETED: "completed";
|
|
59
|
+
};
|
|
60
|
+
export type SellerDomainTransferDtoStatusEnum = typeof SellerDomainTransferDtoStatusEnum[keyof typeof SellerDomainTransferDtoStatusEnum];
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const SellerDomainTransferDtoRequirementsEnum: {
|
|
65
|
+
readonly AUTH_CODE: "auth_code";
|
|
66
|
+
};
|
|
67
|
+
export type SellerDomainTransferDtoRequirementsEnum = typeof SellerDomainTransferDtoRequirementsEnum[keyof typeof SellerDomainTransferDtoRequirementsEnum];
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the SellerDomainTransferDto interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfSellerDomainTransferDto(value: object): boolean;
|
|
72
|
+
export declare function SellerDomainTransferDtoFromJSON(json: any): SellerDomainTransferDto;
|
|
73
|
+
export declare function SellerDomainTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainTransferDto;
|
|
74
|
+
export declare function SellerDomainTransferDtoToJSON(value?: SellerDomainTransferDto | null): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
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.SellerDomainTransferDtoToJSON = exports.SellerDomainTransferDtoFromJSONTyped = exports.SellerDomainTransferDtoFromJSON = exports.instanceOfSellerDomainTransferDto = exports.SellerDomainTransferDtoRequirementsEnum = exports.SellerDomainTransferDtoStatusEnum = void 0;
|
|
17
|
+
var SellerDomainTransferDomainDto_1 = require("./SellerDomainTransferDomainDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.SellerDomainTransferDtoStatusEnum = {
|
|
22
|
+
CREATED: 'created',
|
|
23
|
+
STARTED: 'started',
|
|
24
|
+
PENDING_MANUAL_ACTION: 'pending_manual_action',
|
|
25
|
+
ERROR: 'error',
|
|
26
|
+
COMPLETED: 'completed'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.SellerDomainTransferDtoRequirementsEnum = {
|
|
32
|
+
AUTH_CODE: 'auth_code'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the SellerDomainTransferDto interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfSellerDomainTransferDto(value) {
|
|
38
|
+
if (!('id' in value))
|
|
39
|
+
return false;
|
|
40
|
+
if (!('domain' in value))
|
|
41
|
+
return false;
|
|
42
|
+
if (!('status' in value))
|
|
43
|
+
return false;
|
|
44
|
+
if (!('requirements' in value))
|
|
45
|
+
return false;
|
|
46
|
+
if (!('createdAt' in value))
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
exports.instanceOfSellerDomainTransferDto = instanceOfSellerDomainTransferDto;
|
|
51
|
+
function SellerDomainTransferDtoFromJSON(json) {
|
|
52
|
+
return SellerDomainTransferDtoFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
exports.SellerDomainTransferDtoFromJSON = SellerDomainTransferDtoFromJSON;
|
|
55
|
+
function SellerDomainTransferDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': json['id'],
|
|
61
|
+
'domain': (0, SellerDomainTransferDomainDto_1.SellerDomainTransferDomainDtoFromJSON)(json['domain']),
|
|
62
|
+
'status': json['status'],
|
|
63
|
+
'requirements': json['requirements'],
|
|
64
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.SellerDomainTransferDtoFromJSONTyped = SellerDomainTransferDtoFromJSONTyped;
|
|
68
|
+
function SellerDomainTransferDtoToJSON(value) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'domain': (0, SellerDomainTransferDomainDto_1.SellerDomainTransferDomainDtoToJSON)(value['domain']),
|
|
75
|
+
'status': value['status'],
|
|
76
|
+
'requirements': value['requirements'],
|
|
77
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
exports.SellerDomainTransferDtoToJSON = SellerDomainTransferDtoToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './AccountAddressInput';
|
|
|
3
3
|
export * from './AccountDto';
|
|
4
4
|
export * from './AccountFinancialInput';
|
|
5
5
|
export * from './AccountSettingsInput';
|
|
6
|
+
export * from './AdminGetAllDomainTransfers200Response';
|
|
6
7
|
export * from './BatchUpdateDomainsInput';
|
|
7
8
|
export * from './BuyDomainInput';
|
|
8
9
|
export * from './ChangeOrderStatusInput';
|
|
@@ -38,6 +39,7 @@ export * from './List200Response';
|
|
|
38
39
|
export * from './ListAccountDto';
|
|
39
40
|
export * from './ListAccounts200Response';
|
|
40
41
|
export * from './ListLeadMessagesDto';
|
|
42
|
+
export * from './LoginDto';
|
|
41
43
|
export * from './LoginInput';
|
|
42
44
|
export * from './MoneyDto';
|
|
43
45
|
export * from './MoneyInput';
|
|
@@ -50,10 +52,10 @@ export * from './PutLeadInput';
|
|
|
50
52
|
export * from './RegisterAccountInput';
|
|
51
53
|
export * from './RelatedSellerDomain';
|
|
52
54
|
export * from './SecurityUserDto';
|
|
55
|
+
export * from './SellerDomainTransferDomainDto';
|
|
56
|
+
export * from './SellerDomainTransferDto';
|
|
53
57
|
export * from './SetNewPasswordInput';
|
|
54
58
|
export * from './ThrottlerException';
|
|
55
|
-
export * from './TokenDto';
|
|
56
|
-
export * from './UnauthorizedException';
|
|
57
59
|
export * from './UpdateDomainInput';
|
|
58
60
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
59
61
|
export * from './UserPasswordResetDto';
|
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AccountAddressInput"), exports);
|
|
|
21
21
|
__exportStar(require("./AccountDto"), exports);
|
|
22
22
|
__exportStar(require("./AccountFinancialInput"), exports);
|
|
23
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
24
|
+
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
24
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
25
26
|
__exportStar(require("./BuyDomainInput"), exports);
|
|
26
27
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
@@ -56,6 +57,7 @@ __exportStar(require("./List200Response"), exports);
|
|
|
56
57
|
__exportStar(require("./ListAccountDto"), exports);
|
|
57
58
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
58
59
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
60
|
+
__exportStar(require("./LoginDto"), exports);
|
|
59
61
|
__exportStar(require("./LoginInput"), exports);
|
|
60
62
|
__exportStar(require("./MoneyDto"), exports);
|
|
61
63
|
__exportStar(require("./MoneyInput"), exports);
|
|
@@ -68,10 +70,10 @@ __exportStar(require("./PutLeadInput"), exports);
|
|
|
68
70
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
69
71
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
70
72
|
__exportStar(require("./SecurityUserDto"), exports);
|
|
73
|
+
__exportStar(require("./SellerDomainTransferDomainDto"), exports);
|
|
74
|
+
__exportStar(require("./SellerDomainTransferDto"), exports);
|
|
71
75
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
72
76
|
__exportStar(require("./ThrottlerException"), exports);
|
|
73
|
-
__exportStar(require("./TokenDto"), exports);
|
|
74
|
-
__exportStar(require("./UnauthorizedException"), exports);
|
|
75
77
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
76
78
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
77
79
|
__exportStar(require("./UserPasswordResetDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -20,7 +20,6 @@ import type {
|
|
|
20
20
|
AccountSettingsInput,
|
|
21
21
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto,
|
|
22
22
|
ThrottlerException,
|
|
23
|
-
UnauthorizedException,
|
|
24
23
|
ValidationException,
|
|
25
24
|
} from '../models/index';
|
|
26
25
|
import {
|
|
@@ -34,8 +33,6 @@ import {
|
|
|
34
33
|
IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON,
|
|
35
34
|
ThrottlerExceptionFromJSON,
|
|
36
35
|
ThrottlerExceptionToJSON,
|
|
37
|
-
UnauthorizedExceptionFromJSON,
|
|
38
|
-
UnauthorizedExceptionToJSON,
|
|
39
36
|
ValidationExceptionFromJSON,
|
|
40
37
|
ValidationExceptionToJSON,
|
|
41
38
|
} from '../models/index';
|
|
@@ -16,59 +16,21 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ConflictException,
|
|
19
|
-
ForgotPasswordRequestInput,
|
|
20
|
-
LoginInput,
|
|
21
|
-
NotFoundException,
|
|
22
19
|
RegisterAccountInput,
|
|
23
|
-
SetNewPasswordInput,
|
|
24
20
|
ThrottlerException,
|
|
25
|
-
TokenDto,
|
|
26
|
-
UnauthorizedException,
|
|
27
|
-
UserPasswordResetDto,
|
|
28
21
|
ValidationException,
|
|
29
22
|
} from '../models/index';
|
|
30
23
|
import {
|
|
31
24
|
ConflictExceptionFromJSON,
|
|
32
25
|
ConflictExceptionToJSON,
|
|
33
|
-
ForgotPasswordRequestInputFromJSON,
|
|
34
|
-
ForgotPasswordRequestInputToJSON,
|
|
35
|
-
LoginInputFromJSON,
|
|
36
|
-
LoginInputToJSON,
|
|
37
|
-
NotFoundExceptionFromJSON,
|
|
38
|
-
NotFoundExceptionToJSON,
|
|
39
26
|
RegisterAccountInputFromJSON,
|
|
40
27
|
RegisterAccountInputToJSON,
|
|
41
|
-
SetNewPasswordInputFromJSON,
|
|
42
|
-
SetNewPasswordInputToJSON,
|
|
43
28
|
ThrottlerExceptionFromJSON,
|
|
44
29
|
ThrottlerExceptionToJSON,
|
|
45
|
-
TokenDtoFromJSON,
|
|
46
|
-
TokenDtoToJSON,
|
|
47
|
-
UnauthorizedExceptionFromJSON,
|
|
48
|
-
UnauthorizedExceptionToJSON,
|
|
49
|
-
UserPasswordResetDtoFromJSON,
|
|
50
|
-
UserPasswordResetDtoToJSON,
|
|
51
30
|
ValidationExceptionFromJSON,
|
|
52
31
|
ValidationExceptionToJSON,
|
|
53
32
|
} from '../models/index';
|
|
54
33
|
|
|
55
|
-
export interface AccountsPublicApiForgotPasswordRequestRequest {
|
|
56
|
-
forgotPasswordRequestInput: ForgotPasswordRequestInput;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface AccountsPublicApiGetForgotPasswordRequestRequest {
|
|
60
|
-
passwordRequestId: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface AccountsPublicApiLoginRequest {
|
|
64
|
-
loginInput: LoginInput;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface AccountsPublicApiPostNewPasswordRequest {
|
|
68
|
-
passwordRequestId: string;
|
|
69
|
-
setNewPasswordInput: SetNewPasswordInput;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
34
|
export interface AccountsPublicApiRegisterRequest {
|
|
73
35
|
registerAccountInput: RegisterAccountInput;
|
|
74
36
|
}
|
|
@@ -78,152 +40,6 @@ export interface AccountsPublicApiRegisterRequest {
|
|
|
78
40
|
*/
|
|
79
41
|
export class AccountsPublicApi extends runtime.BaseAPI {
|
|
80
42
|
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
async forgotPasswordRequestRaw(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
85
|
-
if (requestParameters['forgotPasswordRequestInput'] == null) {
|
|
86
|
-
throw new runtime.RequiredError(
|
|
87
|
-
'forgotPasswordRequestInput',
|
|
88
|
-
'Required parameter "forgotPasswordRequestInput" was null or undefined when calling forgotPasswordRequest().'
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const queryParameters: any = {};
|
|
93
|
-
|
|
94
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
95
|
-
|
|
96
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
-
|
|
98
|
-
const response = await this.request({
|
|
99
|
-
path: `/accounts/forgot-password-request`,
|
|
100
|
-
method: 'POST',
|
|
101
|
-
headers: headerParameters,
|
|
102
|
-
query: queryParameters,
|
|
103
|
-
body: ForgotPasswordRequestInputToJSON(requestParameters['forgotPasswordRequestInput']),
|
|
104
|
-
}, initOverrides);
|
|
105
|
-
|
|
106
|
-
return new runtime.VoidApiResponse(response);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
*/
|
|
112
|
-
async forgotPasswordRequest(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
113
|
-
await this.forgotPasswordRequestRaw(requestParameters, initOverrides);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
*/
|
|
119
|
-
async getForgotPasswordRequestRaw(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPasswordResetDto>> {
|
|
120
|
-
if (requestParameters['passwordRequestId'] == null) {
|
|
121
|
-
throw new runtime.RequiredError(
|
|
122
|
-
'passwordRequestId',
|
|
123
|
-
'Required parameter "passwordRequestId" was null or undefined when calling getForgotPasswordRequest().'
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const queryParameters: any = {};
|
|
128
|
-
|
|
129
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
130
|
-
|
|
131
|
-
const response = await this.request({
|
|
132
|
-
path: `/accounts/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
133
|
-
method: 'GET',
|
|
134
|
-
headers: headerParameters,
|
|
135
|
-
query: queryParameters,
|
|
136
|
-
}, initOverrides);
|
|
137
|
-
|
|
138
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => UserPasswordResetDtoFromJSON(jsonValue));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
*/
|
|
144
|
-
async getForgotPasswordRequest(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPasswordResetDto> {
|
|
145
|
-
const response = await this.getForgotPasswordRequestRaw(requestParameters, initOverrides);
|
|
146
|
-
return await response.value();
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
async loginRaw(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>> {
|
|
153
|
-
if (requestParameters['loginInput'] == null) {
|
|
154
|
-
throw new runtime.RequiredError(
|
|
155
|
-
'loginInput',
|
|
156
|
-
'Required parameter "loginInput" was null or undefined when calling login().'
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const queryParameters: any = {};
|
|
161
|
-
|
|
162
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
163
|
-
|
|
164
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
165
|
-
|
|
166
|
-
const response = await this.request({
|
|
167
|
-
path: `/accounts/login`,
|
|
168
|
-
method: 'POST',
|
|
169
|
-
headers: headerParameters,
|
|
170
|
-
query: queryParameters,
|
|
171
|
-
body: LoginInputToJSON(requestParameters['loginInput']),
|
|
172
|
-
}, initOverrides);
|
|
173
|
-
|
|
174
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => TokenDtoFromJSON(jsonValue));
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
*/
|
|
180
|
-
async login(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto> {
|
|
181
|
-
const response = await this.loginRaw(requestParameters, initOverrides);
|
|
182
|
-
return await response.value();
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
*
|
|
187
|
-
*/
|
|
188
|
-
async postNewPasswordRaw(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
189
|
-
if (requestParameters['passwordRequestId'] == null) {
|
|
190
|
-
throw new runtime.RequiredError(
|
|
191
|
-
'passwordRequestId',
|
|
192
|
-
'Required parameter "passwordRequestId" was null or undefined when calling postNewPassword().'
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (requestParameters['setNewPasswordInput'] == null) {
|
|
197
|
-
throw new runtime.RequiredError(
|
|
198
|
-
'setNewPasswordInput',
|
|
199
|
-
'Required parameter "setNewPasswordInput" was null or undefined when calling postNewPassword().'
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
const queryParameters: any = {};
|
|
204
|
-
|
|
205
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
206
|
-
|
|
207
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
208
|
-
|
|
209
|
-
const response = await this.request({
|
|
210
|
-
path: `/accounts/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
211
|
-
method: 'POST',
|
|
212
|
-
headers: headerParameters,
|
|
213
|
-
query: queryParameters,
|
|
214
|
-
body: SetNewPasswordInputToJSON(requestParameters['setNewPasswordInput']),
|
|
215
|
-
}, initOverrides);
|
|
216
|
-
|
|
217
|
-
return new runtime.VoidApiResponse(response);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
*
|
|
222
|
-
*/
|
|
223
|
-
async postNewPassword(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
224
|
-
await this.postNewPasswordRaw(requestParameters, initOverrides);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
43
|
/**
|
|
228
44
|
*
|
|
229
45
|
*/
|