@randock/nameshift-api-client 0.0.85 → 0.0.86
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/README.md +3 -3
- package/dist/models/AccountDto.d.ts +6 -0
- package/dist/models/AccountDto.js +4 -0
- package/dist/models/AccountSettingsInput.d.ts +6 -0
- package/dist/models/AccountSettingsInput.js +2 -0
- package/dist/models/DomainSellerDto.d.ts +2 -2
- package/dist/models/DomainSellerDto.js +3 -3
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +6 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +4 -0
- package/package.json +1 -1
- package/src/models/AccountDto.ts +9 -0
- package/src/models/AccountSettingsInput.ts +8 -0
- package/src/models/DomainSellerDto.ts +5 -5
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +9 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.86
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.86 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
ee5d38758bcf794796f93d41748d5ec86a720429047cffaba6ba039eea2241864027b07b490fa3bc89cd68d5a64c03c2
|
|
@@ -25,6 +25,8 @@ function instanceOfAccountDto(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
return true;
|
|
29
31
|
}
|
|
30
32
|
function AccountDtoFromJSON(json) {
|
|
@@ -37,6 +39,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
39
|
return {
|
|
38
40
|
'id': json['id'],
|
|
39
41
|
'identifier': json['identifier'],
|
|
42
|
+
'name': json['name'],
|
|
40
43
|
};
|
|
41
44
|
}
|
|
42
45
|
function AccountDtoToJSON(value) {
|
|
@@ -46,5 +49,6 @@ function AccountDtoToJSON(value) {
|
|
|
46
49
|
return {
|
|
47
50
|
'id': value['id'],
|
|
48
51
|
'identifier': value['identifier'],
|
|
52
|
+
'name': value['name'],
|
|
49
53
|
};
|
|
50
54
|
}
|
|
@@ -16,6 +16,12 @@ import type { MoneyInput } from './MoneyInput';
|
|
|
16
16
|
* @interface AccountSettingsInput
|
|
17
17
|
*/
|
|
18
18
|
export interface AccountSettingsInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccountSettingsInput
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {MoneyInput}
|
|
@@ -32,6 +32,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
35
36
|
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['defaultStartingOffer']),
|
|
36
37
|
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
37
38
|
};
|
|
@@ -41,6 +42,7 @@ function AccountSettingsInputToJSON(value) {
|
|
|
41
42
|
return value;
|
|
42
43
|
}
|
|
43
44
|
return {
|
|
45
|
+
'name': value['name'],
|
|
44
46
|
'defaultStartingOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['defaultStartingOffer']),
|
|
45
47
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
46
48
|
};
|
|
@@ -29,11 +29,11 @@ export interface DomainSellerDto {
|
|
|
29
29
|
*/
|
|
30
30
|
verified: boolean;
|
|
31
31
|
/**
|
|
32
|
-
* Seller
|
|
32
|
+
* Seller name
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof DomainSellerDto
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
name: string;
|
|
37
37
|
/**
|
|
38
38
|
* Last online, formatted
|
|
39
39
|
* @type {string}
|
|
@@ -26,7 +26,7 @@ function instanceOfDomainSellerDto(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('verified' in value) || value['verified'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined)
|
|
32
32
|
return false;
|
|
@@ -46,7 +46,7 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
return {
|
|
47
47
|
'createdAt': (new Date(json['createdAt'])),
|
|
48
48
|
'verified': json['verified'],
|
|
49
|
-
'
|
|
49
|
+
'name': json['name'],
|
|
50
50
|
'lastOnline': json['lastOnline'],
|
|
51
51
|
'deliversIn': json['deliversIn'],
|
|
52
52
|
'relatedDomains': (json['relatedDomains'] == null ? null : json['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
|
|
@@ -59,7 +59,7 @@ function DomainSellerDtoToJSON(value) {
|
|
|
59
59
|
return {
|
|
60
60
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
61
61
|
'verified': value['verified'],
|
|
62
|
-
'
|
|
62
|
+
'name': value['name'],
|
|
63
63
|
'lastOnline': value['lastOnline'],
|
|
64
64
|
'deliversIn': value['deliversIn'],
|
|
65
65
|
'relatedDomains': (value['relatedDomains'] == null ? null : value['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
|
package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts
CHANGED
|
@@ -30,6 +30,12 @@ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
|
|
|
30
30
|
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
31
31
|
*/
|
|
32
32
|
identifier: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
33
39
|
/**
|
|
34
40
|
*
|
|
35
41
|
* @type {WithFinancialDtoInner}
|
|
@@ -28,6 +28,8 @@ function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddr
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('financial' in value) || value['financial'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('settings' in value) || value['settings'] === undefined)
|
|
@@ -46,6 +48,7 @@ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFrom
|
|
|
46
48
|
return {
|
|
47
49
|
'id': json['id'],
|
|
48
50
|
'identifier': json['identifier'],
|
|
51
|
+
'name': json['name'],
|
|
49
52
|
'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerFromJSON)(json['financial']),
|
|
50
53
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
|
|
51
54
|
'addresses': (json['addresses'].map(AccountAddressDto_1.AccountAddressDtoFromJSON)),
|
|
@@ -58,6 +61,7 @@ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJS
|
|
|
58
61
|
return {
|
|
59
62
|
'id': value['id'],
|
|
60
63
|
'identifier': value['identifier'],
|
|
64
|
+
'name': value['name'],
|
|
61
65
|
'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerToJSON)(value['financial']),
|
|
62
66
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
|
|
63
67
|
'addresses': (value['addresses'].map(AccountAddressDto_1.AccountAddressDtoToJSON)),
|
package/package.json
CHANGED
package/src/models/AccountDto.ts
CHANGED
|
@@ -31,6 +31,12 @@ export interface AccountDto {
|
|
|
31
31
|
* @memberof AccountDto
|
|
32
32
|
*/
|
|
33
33
|
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AccountDto
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export interface AccountDto {
|
|
|
39
45
|
export function instanceOfAccountDto(value: object): value is AccountDto {
|
|
40
46
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
47
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -54,6 +61,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
54
61
|
|
|
55
62
|
'id': json['id'],
|
|
56
63
|
'identifier': json['identifier'],
|
|
64
|
+
'name': json['name'],
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -65,6 +73,7 @@ export function AccountDtoToJSON(value?: AccountDto | null): any {
|
|
|
65
73
|
|
|
66
74
|
'id': value['id'],
|
|
67
75
|
'identifier': value['identifier'],
|
|
76
|
+
'name': value['name'],
|
|
68
77
|
};
|
|
69
78
|
}
|
|
70
79
|
|
|
@@ -26,6 +26,12 @@ import {
|
|
|
26
26
|
* @interface AccountSettingsInput
|
|
27
27
|
*/
|
|
28
28
|
export interface AccountSettingsInput {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AccountSettingsInput
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
29
35
|
/**
|
|
30
36
|
*
|
|
31
37
|
* @type {MoneyInput}
|
|
@@ -57,6 +63,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
57
63
|
}
|
|
58
64
|
return {
|
|
59
65
|
|
|
66
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
60
67
|
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyInputFromJSON(json['defaultStartingOffer']),
|
|
61
68
|
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
62
69
|
};
|
|
@@ -68,6 +75,7 @@ export function AccountSettingsInputToJSON(value?: AccountSettingsInput | null):
|
|
|
68
75
|
}
|
|
69
76
|
return {
|
|
70
77
|
|
|
78
|
+
'name': value['name'],
|
|
71
79
|
'defaultStartingOffer': MoneyInputToJSON(value['defaultStartingOffer']),
|
|
72
80
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
73
81
|
};
|
|
@@ -39,11 +39,11 @@ export interface DomainSellerDto {
|
|
|
39
39
|
*/
|
|
40
40
|
verified: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* Seller
|
|
42
|
+
* Seller name
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof DomainSellerDto
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
name: string;
|
|
47
47
|
/**
|
|
48
48
|
* Last online, formatted
|
|
49
49
|
* @type {string}
|
|
@@ -70,7 +70,7 @@ export interface DomainSellerDto {
|
|
|
70
70
|
export function instanceOfDomainSellerDto(value: object): value is DomainSellerDto {
|
|
71
71
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
72
72
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
73
|
-
if (!('
|
|
73
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
74
74
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
75
75
|
if (!('deliversIn' in value) || value['deliversIn'] === undefined) return false;
|
|
76
76
|
if (!('relatedDomains' in value) || value['relatedDomains'] === undefined) return false;
|
|
@@ -89,7 +89,7 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
89
89
|
|
|
90
90
|
'createdAt': (new Date(json['createdAt'])),
|
|
91
91
|
'verified': json['verified'],
|
|
92
|
-
'
|
|
92
|
+
'name': json['name'],
|
|
93
93
|
'lastOnline': json['lastOnline'],
|
|
94
94
|
'deliversIn': json['deliversIn'],
|
|
95
95
|
'relatedDomains': (json['relatedDomains'] == null ? null : (json['relatedDomains'] as Array<any>).map(RelatedSellerDomainFromJSON)),
|
|
@@ -104,7 +104,7 @@ export function DomainSellerDtoToJSON(value?: DomainSellerDto | null): any {
|
|
|
104
104
|
|
|
105
105
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
106
106
|
'verified': value['verified'],
|
|
107
|
-
'
|
|
107
|
+
'name': value['name'],
|
|
108
108
|
'lastOnline': value['lastOnline'],
|
|
109
109
|
'deliversIn': value['deliversIn'],
|
|
110
110
|
'relatedDomains': (value['relatedDomains'] == null ? null : (value['relatedDomains'] as Array<any>).map(RelatedSellerDomainToJSON)),
|
|
@@ -50,6 +50,12 @@ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
|
|
|
50
50
|
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
51
51
|
*/
|
|
52
52
|
identifier: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
57
|
+
*/
|
|
58
|
+
name: string;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {WithFinancialDtoInner}
|
|
@@ -76,6 +82,7 @@ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
|
|
|
76
82
|
export function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value: object): value is IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
|
|
77
83
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
78
84
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
85
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
79
86
|
if (!('financial' in value) || value['financial'] === undefined) return false;
|
|
80
87
|
if (!('settings' in value) || value['settings'] === undefined) return false;
|
|
81
88
|
if (!('addresses' in value) || value['addresses'] === undefined) return false;
|
|
@@ -94,6 +101,7 @@ export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddress
|
|
|
94
101
|
|
|
95
102
|
'id': json['id'],
|
|
96
103
|
'identifier': json['identifier'],
|
|
104
|
+
'name': json['name'],
|
|
97
105
|
'financial': WithFinancialDtoInnerFromJSON(json['financial']),
|
|
98
106
|
'settings': WithSettingsInnerFromJSON(json['settings']),
|
|
99
107
|
'addresses': ((json['addresses'] as Array<any>).map(AccountAddressDtoFromJSON)),
|
|
@@ -108,6 +116,7 @@ export function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddress
|
|
|
108
116
|
|
|
109
117
|
'id': value['id'],
|
|
110
118
|
'identifier': value['identifier'],
|
|
119
|
+
'name': value['name'],
|
|
111
120
|
'financial': WithFinancialDtoInnerToJSON(value['financial']),
|
|
112
121
|
'settings': WithSettingsInnerToJSON(value['settings']),
|
|
113
122
|
'addresses': ((value['addresses'] as Array<any>).map(AccountAddressDtoToJSON)),
|