@randock/nameshift-api-client 0.0.16 → 0.0.18

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.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +4 -4
  2. package/README.md +2 -2
  3. package/dist/apis/AccountsApi.d.ts +10 -10
  4. package/dist/apis/AccountsApi.js +9 -15
  5. package/dist/apis/AuthApi.d.ts +3 -3
  6. package/dist/apis/DomainsApi.d.ts +30 -19
  7. package/dist/apis/DomainsApi.js +53 -0
  8. package/dist/apis/DomainsPublicApi.d.ts +12 -3
  9. package/dist/apis/DomainsPublicApi.js +43 -0
  10. package/dist/apis/LeadsApi.d.ts +13 -13
  11. package/dist/apis/LeadsApi.js +4 -6
  12. package/dist/apis/LeadsPublicApi.d.ts +4 -4
  13. package/dist/apis/LeadsPublicApi.js +1 -1
  14. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +81 -0
  15. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +76 -0
  16. package/dist/models/List400Response.d.ts +3 -3
  17. package/dist/models/ObjectId.d.ts +31 -0
  18. package/dist/models/ObjectId.js +50 -0
  19. package/dist/models/UpdateFinancial400Response.d.ts +43 -0
  20. package/dist/models/UpdateFinancial400Response.js +56 -0
  21. package/dist/models/UpdateSettings400Response.d.ts +43 -0
  22. package/dist/models/UpdateSettings400Response.js +56 -0
  23. package/dist/models/index.d.ts +4 -4
  24. package/dist/models/index.js +4 -4
  25. package/package.json +6 -1
  26. package/src/apis/AccountsApi.ts +21 -27
  27. package/src/apis/AuthApi.ts +3 -3
  28. package/src/apis/DomainsApi.ts +63 -18
  29. package/src/apis/DomainsPublicApi.ts +38 -3
  30. package/src/apis/LeadsApi.ts +21 -19
  31. package/src/apis/LeadsPublicApi.ts +10 -7
  32. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +151 -0
  33. package/src/models/List400Response.ts +3 -3
  34. package/src/models/ObjectId.ts +66 -0
  35. package/src/models/UpdateFinancial400Response.ts +83 -0
  36. package/src/models/UpdateSettings400Response.ts +83 -0
  37. package/src/models/index.ts +4 -4
@@ -0,0 +1,151 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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 type { AccountDto } from './AccountDto';
17
+ import {
18
+ AccountDtoFromJSON,
19
+ AccountDtoFromJSONTyped,
20
+ AccountDtoToJSON,
21
+ } from './AccountDto';
22
+ import type { MoneyDto } from './MoneyDto';
23
+ import {
24
+ MoneyDtoFromJSON,
25
+ MoneyDtoFromJSONTyped,
26
+ MoneyDtoToJSON,
27
+ } from './MoneyDto';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface IntersectionDomainDtoWithHijackerDtoWithAccountDto
33
+ */
34
+ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
35
+ /**
36
+ * The uuid for this domain.
37
+ * @type {string}
38
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
39
+ */
40
+ id: string;
41
+ /**
42
+ * The TLD for this domain.
43
+ * @type {string}
44
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
45
+ */
46
+ tld: string;
47
+ /**
48
+ * Whether this domain is verified by the owner (ns3, txt) or not.
49
+ * @type {boolean}
50
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
51
+ */
52
+ verified: boolean;
53
+ /**
54
+ * Whether the nameservers (ns1,ns2) are set or not.
55
+ * @type {boolean}
56
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
57
+ */
58
+ nameservers: boolean;
59
+ /**
60
+ * The domain name (example.com)
61
+ * @type {string}
62
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
63
+ */
64
+ name: string;
65
+ /**
66
+ *
67
+ * @type {MoneyDto}
68
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
69
+ */
70
+ buyNow: MoneyDto;
71
+ /**
72
+ *
73
+ * @type {MoneyDto}
74
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
75
+ */
76
+ minOffer: MoneyDto;
77
+ /**
78
+ *
79
+ * @type {AccountDto}
80
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
81
+ */
82
+ hijacker: AccountDto | null;
83
+ /**
84
+ *
85
+ * @type {AccountDto}
86
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
87
+ */
88
+ account: AccountDto;
89
+ }
90
+
91
+ /**
92
+ * Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
93
+ */
94
+ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value: object): boolean {
95
+ let isInstance = true;
96
+ isInstance = isInstance && "id" in value;
97
+ isInstance = isInstance && "tld" in value;
98
+ isInstance = isInstance && "verified" in value;
99
+ isInstance = isInstance && "nameservers" in value;
100
+ isInstance = isInstance && "name" in value;
101
+ isInstance = isInstance && "buyNow" in value;
102
+ isInstance = isInstance && "minOffer" in value;
103
+ isInstance = isInstance && "hijacker" in value;
104
+ isInstance = isInstance && "account" in value;
105
+
106
+ return isInstance;
107
+ }
108
+
109
+ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(json: any): IntersectionDomainDtoWithHijackerDtoWithAccountDto {
110
+ return IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithHijackerDtoWithAccountDto {
114
+ if ((json === undefined) || (json === null)) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'tld': json['tld'],
121
+ 'verified': json['verified'],
122
+ 'nameservers': json['nameservers'],
123
+ 'name': json['name'],
124
+ 'buyNow': MoneyDtoFromJSON(json['buyNow']),
125
+ 'minOffer': MoneyDtoFromJSON(json['minOffer']),
126
+ 'hijacker': AccountDtoFromJSON(json['hijacker']),
127
+ 'account': AccountDtoFromJSON(json['account']),
128
+ };
129
+ }
130
+
131
+ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value?: IntersectionDomainDtoWithHijackerDtoWithAccountDto | null): any {
132
+ if (value === undefined) {
133
+ return undefined;
134
+ }
135
+ if (value === null) {
136
+ return null;
137
+ }
138
+ return {
139
+
140
+ 'id': value.id,
141
+ 'tld': value.tld,
142
+ 'verified': value.verified,
143
+ 'nameservers': value.nameservers,
144
+ 'name': value.name,
145
+ 'buyNow': MoneyDtoToJSON(value.buyNow),
146
+ 'minOffer': MoneyDtoToJSON(value.minOffer),
147
+ 'hijacker': AccountDtoToJSON(value.hijacker),
148
+ 'account': AccountDtoToJSON(value.account),
149
+ };
150
+ }
151
+
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  /**
17
- * Returned if invalid request was specified.
17
+ * Thrown in case of request errors.
18
18
  * @export
19
19
  * @interface List400Response
20
20
  */
@@ -27,10 +27,10 @@ export interface List400Response {
27
27
  statusCode: number;
28
28
  /**
29
29
  *
30
- * @type {string}
30
+ * @type {Array<object>}
31
31
  * @memberof List400Response
32
32
  */
33
- message: string;
33
+ message: Array<object>;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ObjectId
20
+ */
21
+ export interface ObjectId {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ObjectId
26
+ */
27
+ id: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ObjectId interface.
32
+ */
33
+ export function instanceOfObjectId(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "id" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function ObjectIdFromJSON(json: any): ObjectId {
41
+ return ObjectIdFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function ObjectIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectId {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'id': json['id'],
51
+ };
52
+ }
53
+
54
+ export function ObjectIdToJSON(value?: ObjectId | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'id': value.id,
64
+ };
65
+ }
66
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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
+ /**
17
+ * Thrown in case of requestion validation errors.
18
+ * @export
19
+ * @interface UpdateFinancial400Response
20
+ */
21
+ export interface UpdateFinancial400Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UpdateFinancial400Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {Array<object>}
31
+ * @memberof UpdateFinancial400Response
32
+ */
33
+ message: Array<object>;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UpdateFinancial400Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateFinancial400Response interface.
44
+ */
45
+ export function instanceOfUpdateFinancial400Response(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "statusCode" in value;
48
+ isInstance = isInstance && "message" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function UpdateFinancial400ResponseFromJSON(json: any): UpdateFinancial400Response {
54
+ return UpdateFinancial400ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function UpdateFinancial400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFinancial400Response {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ 'error': !exists(json, 'error') ? undefined : json['error'],
66
+ };
67
+ }
68
+
69
+ export function UpdateFinancial400ResponseToJSON(value?: UpdateFinancial400Response | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'statusCode': value.statusCode,
79
+ 'message': value.message,
80
+ 'error': value.error,
81
+ };
82
+ }
83
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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
+ /**
17
+ * Thrown in case of validation errors.
18
+ * @export
19
+ * @interface UpdateSettings400Response
20
+ */
21
+ export interface UpdateSettings400Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UpdateSettings400Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateSettings400Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UpdateSettings400Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateSettings400Response interface.
44
+ */
45
+ export function instanceOfUpdateSettings400Response(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "statusCode" in value;
48
+ isInstance = isInstance && "message" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function UpdateSettings400ResponseFromJSON(json: any): UpdateSettings400Response {
54
+ return UpdateSettings400ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function UpdateSettings400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings400Response {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ 'error': !exists(json, 'error') ? undefined : json['error'],
66
+ };
67
+ }
68
+
69
+ export function UpdateSettings400ResponseToJSON(value?: UpdateSettings400Response | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'statusCode': value.statusCode,
79
+ 'message': value.message,
80
+ 'error': value.error,
81
+ };
82
+ }
83
+
@@ -11,16 +11,13 @@ export * from './CreateLeadInput';
11
11
  export * from './CreateLeadMessageInput';
12
12
  export * from './DeleteDomainsInput';
13
13
  export * from './DomainDto';
14
- export * from './IntersectionAccountDtoWithAddressDto';
15
- export * from './IntersectionAccountDtoWithFinancialDto';
16
14
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
17
- export * from './IntersectionAccountDtoWithSettingsDto';
18
15
  export * from './IntersectionDomainDtoWithAccountDto';
16
+ export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
19
17
  export * from './IntersectionLeadDtoWithLeadDetailsDto';
20
18
  export * from './IntersectionLeadDtoWithListFieldsDto';
21
19
  export * from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
22
20
  export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
23
- export * from './LeadDto';
24
21
  export * from './LeadMessageData';
25
22
  export * from './LeadMessageDto';
26
23
  export * from './LeadMessageDtoData';
@@ -33,6 +30,7 @@ export * from './Login429Response';
33
30
  export * from './LoginInput';
34
31
  export * from './MoneyDto';
35
32
  export * from './MoneyInput';
33
+ export * from './ObjectId';
36
34
  export * from './PaginateResponse';
37
35
  export * from './PaginateResponseLinks';
38
36
  export * from './PaginateResponseMeta';
@@ -40,6 +38,8 @@ export * from './PublicDomainControllerGetDomainIdentifier404Response';
40
38
  export * from './PutLeadInput';
41
39
  export * from './TokenDto';
42
40
  export * from './UpdateDomainInput';
41
+ export * from './UpdateFinancial400Response';
42
+ export * from './UpdateSettings400Response';
43
43
  export * from './UpdateSettings401Response';
44
44
  export * from './UpdateSettings429Response';
45
45
  export * from './WithFinancialDtoInner';