@randock/nameshift-api-client 0.0.18 → 0.0.19
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 +1 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +6 -4
- package/dist/apis/AccountsApi.js +18 -18
- package/dist/apis/AuthApi.js +3 -3
- package/dist/apis/DomainsApi.d.ts +1 -1
- package/dist/apis/DomainsApi.js +30 -30
- package/dist/apis/LeadsApi.js +18 -18
- package/dist/apis/LeadsPublicApi.js +3 -3
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AccountAddressDto.js +21 -21
- package/dist/models/AccountAddressInput.js +21 -21
- package/dist/models/AccountDto.js +10 -12
- package/dist/models/AccountFinancialInput.js +16 -16
- package/dist/models/AccountSettingsInput.js +6 -11
- package/dist/models/BatchUpdate404Response.js +12 -15
- package/dist/models/BatchUpdateDomainsInput.js +10 -12
- package/dist/models/CreateLeadInput.js +22 -20
- package/dist/models/CreateLeadMessageInput.js +7 -10
- package/dist/models/DeleteDomainsInput.js +7 -10
- package/dist/models/DomainDto.d.ts +2 -2
- package/dist/models/DomainDto.js +25 -22
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
- package/dist/models/LeadMessageData.js +7 -10
- package/dist/models/LeadMessageDto.js +25 -22
- package/dist/models/LeadMessageDtoData.js +7 -10
- package/dist/models/List200Response.js +13 -14
- package/dist/models/List400Response.js +12 -15
- package/dist/models/List401Response.js +12 -15
- package/dist/models/ListLeadMessagesDto.js +7 -10
- package/dist/models/Login401Response.js +12 -15
- package/dist/models/Login429Response.js +12 -15
- package/dist/models/LoginInput.js +10 -12
- package/dist/models/MoneyDto.js +10 -12
- package/dist/models/MoneyInput.js +10 -12
- package/dist/models/ObjectId.js +7 -10
- package/dist/models/PaginateResponse.js +13 -14
- package/dist/models/PaginateResponseLinks.d.ts +5 -5
- package/dist/models/PaginateResponseLinks.js +14 -19
- package/dist/models/PaginateResponseMeta.js +18 -23
- package/dist/models/PutLeadInput.js +7 -10
- package/dist/models/TokenDto.js +7 -10
- package/dist/models/UpdateDomainInput.d.ts +2 -2
- package/dist/models/UpdateDomainInput.js +8 -13
- package/dist/models/UpdateFinancial400Response.js +12 -15
- package/dist/models/UpdateSettings400Response.js +12 -15
- package/dist/models/UpdateSettings401Response.js +12 -15
- package/dist/models/UpdateSettings429Response.js +12 -15
- package/dist/models/WithFinancialDtoInner.js +16 -16
- package/dist/models/WithSettingsInner.js +7 -10
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/runtime.d.ts +2 -3
- package/dist/runtime.js +1 -6
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +36 -18
- package/src/apis/AuthApi.ts +6 -3
- package/src/apis/DomainsApi.ts +49 -31
- package/src/apis/LeadsApi.ts +36 -18
- package/src/apis/LeadsPublicApi.ts +6 -3
- package/src/apis/index.ts +0 -1
- package/src/models/AccountAddressDto.ts +17 -22
- package/src/models/AccountAddressInput.ts +17 -22
- package/src/models/AccountDto.ts +9 -14
- package/src/models/AccountFinancialInput.ts +13 -18
- package/src/models/AccountSettingsInput.ts +7 -12
- package/src/models/BatchUpdate404Response.ts +11 -16
- package/src/models/BatchUpdateDomainsInput.ts +9 -14
- package/src/models/CreateLeadInput.ts +17 -22
- package/src/models/CreateLeadMessageInput.ts +7 -12
- package/src/models/DeleteDomainsInput.ts +7 -12
- package/src/models/DomainDto.ts +21 -26
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
- package/src/models/LeadMessageData.ts +7 -12
- package/src/models/LeadMessageDto.ts +19 -24
- package/src/models/LeadMessageDtoData.ts +7 -12
- package/src/models/List200Response.ts +11 -16
- package/src/models/List400Response.ts +11 -16
- package/src/models/List401Response.ts +11 -16
- package/src/models/ListLeadMessagesDto.ts +7 -12
- package/src/models/Login401Response.ts +11 -16
- package/src/models/Login429Response.ts +11 -16
- package/src/models/LoginInput.ts +9 -14
- package/src/models/MoneyDto.ts +9 -14
- package/src/models/MoneyInput.ts +9 -14
- package/src/models/ObjectId.ts +7 -12
- package/src/models/PaginateResponse.ts +11 -16
- package/src/models/PaginateResponseLinks.ts +20 -25
- package/src/models/PaginateResponseMeta.ts +19 -24
- package/src/models/PutLeadInput.ts +7 -12
- package/src/models/TokenDto.ts +7 -12
- package/src/models/UpdateDomainInput.ts +11 -16
- package/src/models/UpdateFinancial400Response.ts +11 -16
- package/src/models/UpdateSettings400Response.ts +11 -16
- package/src/models/UpdateSettings401Response.ts +11 -16
- package/src/models/UpdateSettings429Response.ts +11 -16
- package/src/models/WithFinancialDtoInner.ts +13 -18
- package/src/models/WithSettingsInner.ts +7 -12
- package/src/models/index.ts +0 -1
- package/src/runtime.ts +3 -8
- package/dist/apis/DomainsPublicApi.d.ts +0 -35
- package/dist/apis/DomainsPublicApi.js +0 -164
- package/dist/apis/TestApi.d.ts +0 -23
- package/dist/apis/TestApi.js +0 -116
- package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
- package/dist/models/CreateLeadMessageInputData.js +0 -51
- package/dist/models/ImportDomainsDto.d.ts +0 -49
- package/dist/models/ImportDomainsDto.js +0 -59
- package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
- package/dist/models/IntersectionLeadDto.d.ts +0 -52
- package/dist/models/IntersectionLeadDto.js +0 -64
- package/dist/models/LeadDto.d.ts +0 -74
- package/dist/models/LeadDto.js +0 -79
- package/dist/models/List429Response.d.ts +0 -43
- package/dist/models/List429Response.js +0 -56
- package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
- package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
- package/src/apis/DomainsPublicApi.ts +0 -97
- package/src/apis/TestApi.ts +0 -46
- package/src/models/CreateLeadMessageInputData.ts +0 -73
- package/src/models/ImportDomainsDto.ts +0 -93
- package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
- package/src/models/IntersectionLeadDto.ts +0 -96
- package/src/models/LeadDto.ts +0 -131
- package/src/models/List429Response.ts +0 -83
- package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
package/src/models/TokenDto.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -31,10 +31,8 @@ export interface TokenDto {
|
|
|
31
31
|
* Check if a given object implements the TokenDto interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfTokenDto(value: object): boolean {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
34
|
+
if (!('token' in value)) return false;
|
|
35
|
+
return true;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
export function TokenDtoFromJSON(json: any): TokenDto {
|
|
@@ -42,7 +40,7 @@ export function TokenDtoFromJSON(json: any): TokenDto {
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
export function TokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenDto {
|
|
45
|
-
if (
|
|
43
|
+
if (json == null) {
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
@@ -52,15 +50,12 @@ export function TokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
export function TokenDtoToJSON(value?: TokenDto | null): any {
|
|
55
|
-
if (value
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
if (value === null) {
|
|
59
|
-
return null;
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
60
55
|
}
|
|
61
56
|
return {
|
|
62
57
|
|
|
63
|
-
'token': value
|
|
58
|
+
'token': value['token'],
|
|
64
59
|
};
|
|
65
60
|
}
|
|
66
61
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { MoneyInput } from './MoneyInput';
|
|
17
17
|
import {
|
|
18
18
|
MoneyInputFromJSON,
|
|
@@ -31,22 +31,20 @@ export interface UpdateDomainInput {
|
|
|
31
31
|
* @type {MoneyInput}
|
|
32
32
|
* @memberof UpdateDomainInput
|
|
33
33
|
*/
|
|
34
|
-
bin?: MoneyInput
|
|
34
|
+
bin?: MoneyInput;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {MoneyInput}
|
|
38
38
|
* @memberof UpdateDomainInput
|
|
39
39
|
*/
|
|
40
|
-
minOffer?: MoneyInput
|
|
40
|
+
minOffer?: MoneyInput;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the UpdateDomainInput interface.
|
|
45
45
|
*/
|
|
46
46
|
export function instanceOfUpdateDomainInput(value: object): boolean {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return isInstance;
|
|
47
|
+
return true;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
export function UpdateDomainInputFromJSON(json: any): UpdateDomainInput {
|
|
@@ -54,27 +52,24 @@ export function UpdateDomainInputFromJSON(json: any): UpdateDomainInput {
|
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainInput {
|
|
57
|
-
if (
|
|
55
|
+
if (json == null) {
|
|
58
56
|
return json;
|
|
59
57
|
}
|
|
60
58
|
return {
|
|
61
59
|
|
|
62
|
-
'bin':
|
|
63
|
-
'minOffer':
|
|
60
|
+
'bin': json['bin'] == null ? undefined : MoneyInputFromJSON(json['bin']),
|
|
61
|
+
'minOffer': json['minOffer'] == null ? undefined : MoneyInputFromJSON(json['minOffer']),
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
export function UpdateDomainInputToJSON(value?: UpdateDomainInput | null): any {
|
|
68
|
-
if (value
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
73
68
|
}
|
|
74
69
|
return {
|
|
75
70
|
|
|
76
|
-
'bin': MoneyInputToJSON(value
|
|
77
|
-
'minOffer': MoneyInputToJSON(value
|
|
71
|
+
'bin': MoneyInputToJSON(value['bin']),
|
|
72
|
+
'minOffer': MoneyInputToJSON(value['minOffer']),
|
|
78
73
|
};
|
|
79
74
|
}
|
|
80
75
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Thrown in case of requestion validation errors.
|
|
18
18
|
* @export
|
|
@@ -43,11 +43,9 @@ export interface UpdateFinancial400Response {
|
|
|
43
43
|
* Check if a given object implements the UpdateFinancial400Response interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfUpdateFinancial400Response(value: object): boolean {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
46
|
+
if (!('statusCode' in value)) return false;
|
|
47
|
+
if (!('message' in value)) return false;
|
|
48
|
+
return true;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function UpdateFinancial400ResponseFromJSON(json: any): UpdateFinancial400Response {
|
|
@@ -55,29 +53,26 @@ export function UpdateFinancial400ResponseFromJSON(json: any): UpdateFinancial40
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export function UpdateFinancial400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFinancial400Response {
|
|
58
|
-
if (
|
|
56
|
+
if (json == null) {
|
|
59
57
|
return json;
|
|
60
58
|
}
|
|
61
59
|
return {
|
|
62
60
|
|
|
63
61
|
'statusCode': json['statusCode'],
|
|
64
62
|
'message': json['message'],
|
|
65
|
-
'error':
|
|
63
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
66
64
|
};
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function UpdateFinancial400ResponseToJSON(value?: UpdateFinancial400Response | null): any {
|
|
70
|
-
if (value
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
75
70
|
}
|
|
76
71
|
return {
|
|
77
72
|
|
|
78
|
-
'statusCode': value
|
|
79
|
-
'message': value
|
|
80
|
-
'error': value
|
|
73
|
+
'statusCode': value['statusCode'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'error': value['error'],
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Thrown in case of validation errors.
|
|
18
18
|
* @export
|
|
@@ -43,11 +43,9 @@ export interface UpdateSettings400Response {
|
|
|
43
43
|
* Check if a given object implements the UpdateSettings400Response interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfUpdateSettings400Response(value: object): boolean {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
46
|
+
if (!('statusCode' in value)) return false;
|
|
47
|
+
if (!('message' in value)) return false;
|
|
48
|
+
return true;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function UpdateSettings400ResponseFromJSON(json: any): UpdateSettings400Response {
|
|
@@ -55,29 +53,26 @@ export function UpdateSettings400ResponseFromJSON(json: any): UpdateSettings400R
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export function UpdateSettings400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings400Response {
|
|
58
|
-
if (
|
|
56
|
+
if (json == null) {
|
|
59
57
|
return json;
|
|
60
58
|
}
|
|
61
59
|
return {
|
|
62
60
|
|
|
63
61
|
'statusCode': json['statusCode'],
|
|
64
62
|
'message': json['message'],
|
|
65
|
-
'error':
|
|
63
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
66
64
|
};
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function UpdateSettings400ResponseToJSON(value?: UpdateSettings400Response | null): any {
|
|
70
|
-
if (value
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
75
70
|
}
|
|
76
71
|
return {
|
|
77
72
|
|
|
78
|
-
'statusCode': value
|
|
79
|
-
'message': value
|
|
80
|
-
'error': value
|
|
73
|
+
'statusCode': value['statusCode'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'error': value['error'],
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Returned if you are not authorized to change the settings.
|
|
18
18
|
* @export
|
|
@@ -43,11 +43,9 @@ export interface UpdateSettings401Response {
|
|
|
43
43
|
* Check if a given object implements the UpdateSettings401Response interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfUpdateSettings401Response(value: object): boolean {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
46
|
+
if (!('statusCode' in value)) return false;
|
|
47
|
+
if (!('message' in value)) return false;
|
|
48
|
+
return true;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function UpdateSettings401ResponseFromJSON(json: any): UpdateSettings401Response {
|
|
@@ -55,29 +53,26 @@ export function UpdateSettings401ResponseFromJSON(json: any): UpdateSettings401R
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export function UpdateSettings401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings401Response {
|
|
58
|
-
if (
|
|
56
|
+
if (json == null) {
|
|
59
57
|
return json;
|
|
60
58
|
}
|
|
61
59
|
return {
|
|
62
60
|
|
|
63
61
|
'statusCode': json['statusCode'],
|
|
64
62
|
'message': json['message'],
|
|
65
|
-
'error':
|
|
63
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
66
64
|
};
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function UpdateSettings401ResponseToJSON(value?: UpdateSettings401Response | null): any {
|
|
70
|
-
if (value
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
75
70
|
}
|
|
76
71
|
return {
|
|
77
72
|
|
|
78
|
-
'statusCode': value
|
|
79
|
-
'message': value
|
|
80
|
-
'error': value
|
|
73
|
+
'statusCode': value['statusCode'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'error': value['error'],
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Returned if more than 300 requests are made per minute.
|
|
18
18
|
* @export
|
|
@@ -43,11 +43,9 @@ export interface UpdateSettings429Response {
|
|
|
43
43
|
* Check if a given object implements the UpdateSettings429Response interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfUpdateSettings429Response(value: object): boolean {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return isInstance;
|
|
46
|
+
if (!('statusCode' in value)) return false;
|
|
47
|
+
if (!('message' in value)) return false;
|
|
48
|
+
return true;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function UpdateSettings429ResponseFromJSON(json: any): UpdateSettings429Response {
|
|
@@ -55,29 +53,26 @@ export function UpdateSettings429ResponseFromJSON(json: any): UpdateSettings429R
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export function UpdateSettings429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings429Response {
|
|
58
|
-
if (
|
|
56
|
+
if (json == null) {
|
|
59
57
|
return json;
|
|
60
58
|
}
|
|
61
59
|
return {
|
|
62
60
|
|
|
63
61
|
'statusCode': json['statusCode'],
|
|
64
62
|
'message': json['message'],
|
|
65
|
-
'error':
|
|
63
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
66
64
|
};
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export function UpdateSettings429ResponseToJSON(value?: UpdateSettings429Response | null): any {
|
|
70
|
-
if (value
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
75
70
|
}
|
|
76
71
|
return {
|
|
77
72
|
|
|
78
|
-
'statusCode': value
|
|
79
|
-
'message': value
|
|
80
|
-
'error': value
|
|
73
|
+
'statusCode': value['statusCode'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'error': value['error'],
|
|
81
76
|
};
|
|
82
77
|
}
|
|
83
78
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -49,13 +49,11 @@ export interface WithFinancialDtoInner {
|
|
|
49
49
|
* Check if a given object implements the WithFinancialDtoInner interface.
|
|
50
50
|
*/
|
|
51
51
|
export function instanceOfWithFinancialDtoInner(value: object): boolean {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return isInstance;
|
|
52
|
+
if (!('company' in value)) return false;
|
|
53
|
+
if (!('companyName' in value)) return false;
|
|
54
|
+
if (!('companyVatNumber' in value)) return false;
|
|
55
|
+
if (!('companyRegistrationNumber' in value)) return false;
|
|
56
|
+
return true;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function WithFinancialDtoInnerFromJSON(json: any): WithFinancialDtoInner {
|
|
@@ -63,7 +61,7 @@ export function WithFinancialDtoInnerFromJSON(json: any): WithFinancialDtoInner
|
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
export function WithFinancialDtoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithFinancialDtoInner {
|
|
66
|
-
if (
|
|
64
|
+
if (json == null) {
|
|
67
65
|
return json;
|
|
68
66
|
}
|
|
69
67
|
return {
|
|
@@ -76,18 +74,15 @@ export function WithFinancialDtoInnerFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export function WithFinancialDtoInnerToJSON(value?: WithFinancialDtoInner | null): any {
|
|
79
|
-
if (value
|
|
80
|
-
return
|
|
81
|
-
}
|
|
82
|
-
if (value === null) {
|
|
83
|
-
return null;
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
84
79
|
}
|
|
85
80
|
return {
|
|
86
81
|
|
|
87
|
-
'company': value
|
|
88
|
-
'companyName': value
|
|
89
|
-
'companyVatNumber': value
|
|
90
|
-
'companyRegistrationNumber': value
|
|
82
|
+
'company': value['company'],
|
|
83
|
+
'companyName': value['companyName'],
|
|
84
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
85
|
+
'companyRegistrationNumber': value['companyRegistrationNumber'],
|
|
91
86
|
};
|
|
92
87
|
}
|
|
93
88
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { MoneyDto } from './MoneyDto';
|
|
17
17
|
import {
|
|
18
18
|
MoneyDtoFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface WithSettingsInner {
|
|
|
38
38
|
* Check if a given object implements the WithSettingsInner interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfWithSettingsInner(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('defaultStartingOffer' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function WithSettingsInnerFromJSON(json: any): WithSettingsInner {
|
|
@@ -49,7 +47,7 @@ export function WithSettingsInnerFromJSON(json: any): WithSettingsInner {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithSettingsInner {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function WithSettingsInnerToJSON(value?: WithSettingsInner | null): any {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
67
62
|
}
|
|
68
63
|
return {
|
|
69
64
|
|
|
70
|
-
'defaultStartingOffer': MoneyDtoToJSON(value
|
|
65
|
+
'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
package/src/models/index.ts
CHANGED
|
@@ -34,7 +34,6 @@ export * from './ObjectId';
|
|
|
34
34
|
export * from './PaginateResponse';
|
|
35
35
|
export * from './PaginateResponseLinks';
|
|
36
36
|
export * from './PaginateResponseMeta';
|
|
37
|
-
export * from './PublicDomainControllerGetDomainIdentifier404Response';
|
|
38
37
|
export * from './PutLeadInput';
|
|
39
38
|
export * from './TokenDto';
|
|
40
39
|
export * from './UpdateDomainInput';
|
package/src/runtime.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface ConfigurationParameters {
|
|
|
22
22
|
queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
|
|
23
23
|
username?: string; // parameter for basic security
|
|
24
24
|
password?: string; // parameter for basic security
|
|
25
|
-
apiKey?: string | ((name: string) => string); // parameter for apiKey security
|
|
25
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); // parameter for apiKey security
|
|
26
26
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
|
|
27
27
|
headers?: HTTPHeaders; //header params we want to use on every request
|
|
28
28
|
credentials?: RequestCredentials; //value for the credentials param we want to use on each request
|
|
@@ -59,7 +59,7 @@ export class Configuration {
|
|
|
59
59
|
return this.configuration.password;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
get apiKey(): ((name: string) => string) | undefined {
|
|
62
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined {
|
|
63
63
|
const apiKey = this.configuration.apiKey;
|
|
64
64
|
if (apiKey) {
|
|
65
65
|
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
|
@@ -91,7 +91,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
91
|
*/
|
|
92
92
|
export class BaseAPI {
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
95
95
|
private middleware: Middleware[];
|
|
96
96
|
|
|
97
97
|
constructor(protected configuration = DefaultConfig) {
|
|
@@ -310,11 +310,6 @@ export interface RequestOpts {
|
|
|
310
310
|
body?: HTTPBody;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
export function exists(json: any, key: string) {
|
|
314
|
-
const value = json[key];
|
|
315
|
-
return value !== null && value !== undefined;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
313
|
export function querystring(params: HTTPQuery, prefix: string = ''): string {
|
|
319
314
|
return Object.keys(params)
|
|
320
315
|
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
@@ -1,35 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
export interface DomainsPublicApiPublicDomainControllerGetCaddyRequest {
|
|
14
|
-
domain: string;
|
|
15
|
-
}
|
|
16
|
-
export interface DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest {
|
|
17
|
-
domainName: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
23
|
-
/**
|
|
24
|
-
*/
|
|
25
|
-
publicDomainControllerGetCaddyRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
26
|
-
/**
|
|
27
|
-
*/
|
|
28
|
-
publicDomainControllerGetCaddy(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
*/
|
|
31
|
-
publicDomainControllerGetDomainIdentifierRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
32
|
-
/**
|
|
33
|
-
*/
|
|
34
|
-
publicDomainControllerGetDomainIdentifier(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
35
|
-
}
|