@randock/nameshift-api-client 0.0.64 → 0.0.65
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 +7 -2
- package/README.md +3 -3
- package/dist/apis/DomainsPublicApi.d.ts +1 -13
- package/dist/apis/DomainsPublicApi.js +0 -49
- package/dist/apis/LeadsApi.d.ts +2 -2
- package/dist/apis/LeadsApi.js +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +13 -1
- package/dist/apis/LeadsPublicApi.js +47 -0
- package/dist/apis/OrdersPublicApi.d.ts +52 -0
- package/dist/apis/OrdersPublicApi.js +217 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CreateLeadInput.d.ts +6 -6
- package/dist/models/CreateLeadInput.js +4 -4
- package/dist/models/{BuyDomainInput.d.ts → CreateOrderInput.d.ts} +30 -24
- package/dist/models/{BuyDomainInput.js → CreateOrderInput.js} +19 -15
- package/dist/models/NotFoundException.d.ts +43 -0
- package/dist/models/NotFoundException.js +55 -0
- package/dist/models/OrderDto.d.ts +118 -0
- package/dist/models/OrderDto.js +107 -0
- package/dist/models/PublicLeadDto.d.ts +6 -0
- package/dist/models/PublicLeadDto.js +4 -0
- package/dist/models/PutLeadOfferInput.d.ts +32 -0
- package/dist/models/{PutLeadInput.js → PutLeadOfferInput.js} +11 -11
- package/dist/models/UpdateLeadInput.d.ts +77 -0
- package/dist/models/UpdateLeadInput.js +80 -0
- package/dist/models/UpdateOrderInput.d.ts +85 -0
- package/dist/models/UpdateOrderInput.js +83 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +3 -0
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/DomainsApi.ts +3 -0
- package/src/apis/DomainsPublicApi.ts +3 -54
- package/src/apis/LeadsApi.ts +8 -8
- package/src/apis/LeadsPublicApi.ts +53 -0
- package/src/apis/OrdersPublicApi.ts +172 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateLeadInput.ts +9 -9
- package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
- package/src/models/NotFoundException.ts +79 -0
- package/src/models/OrderDto.ts +196 -0
- package/src/models/PublicLeadDto.ts +9 -0
- package/src/models/{PutLeadInput.ts → PutLeadOfferInput.ts} +9 -9
- package/src/models/UpdateLeadInput.ts +134 -0
- package/src/models/UpdateOrderInput.ts +142 -0
- package/src/models/index.ts +6 -2
- package/dist/models/PutLeadInput.d.ts +0 -32
|
@@ -17,9 +17,11 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
CreateLeadInput,
|
|
19
19
|
LeadStatusDto,
|
|
20
|
+
NotFoundException,
|
|
20
21
|
ObjectId,
|
|
21
22
|
PublicLeadDto,
|
|
22
23
|
ThrottlerException,
|
|
24
|
+
UpdateLeadInput,
|
|
23
25
|
ValidationException,
|
|
24
26
|
VerifyLeadInput,
|
|
25
27
|
} from '../models/index';
|
|
@@ -28,12 +30,16 @@ import {
|
|
|
28
30
|
CreateLeadInputToJSON,
|
|
29
31
|
LeadStatusDtoFromJSON,
|
|
30
32
|
LeadStatusDtoToJSON,
|
|
33
|
+
NotFoundExceptionFromJSON,
|
|
34
|
+
NotFoundExceptionToJSON,
|
|
31
35
|
ObjectIdFromJSON,
|
|
32
36
|
ObjectIdToJSON,
|
|
33
37
|
PublicLeadDtoFromJSON,
|
|
34
38
|
PublicLeadDtoToJSON,
|
|
35
39
|
ThrottlerExceptionFromJSON,
|
|
36
40
|
ThrottlerExceptionToJSON,
|
|
41
|
+
UpdateLeadInputFromJSON,
|
|
42
|
+
UpdateLeadInputToJSON,
|
|
37
43
|
ValidationExceptionFromJSON,
|
|
38
44
|
ValidationExceptionToJSON,
|
|
39
45
|
VerifyLeadInputFromJSON,
|
|
@@ -52,6 +58,11 @@ export interface LeadsPublicApiGetLeadStatusRequest {
|
|
|
52
58
|
leadId: string;
|
|
53
59
|
}
|
|
54
60
|
|
|
61
|
+
export interface LeadsPublicApiUpdateLeadRequest {
|
|
62
|
+
leadId: string;
|
|
63
|
+
updateLeadInput: UpdateLeadInput;
|
|
64
|
+
}
|
|
65
|
+
|
|
55
66
|
export interface LeadsPublicApiVerifyLeadRequest {
|
|
56
67
|
leadId: string;
|
|
57
68
|
verifyLeadInput: VerifyLeadInput;
|
|
@@ -164,6 +175,48 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
164
175
|
return await response.value();
|
|
165
176
|
}
|
|
166
177
|
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
182
|
+
if (requestParameters['leadId'] == null) {
|
|
183
|
+
throw new runtime.RequiredError(
|
|
184
|
+
'leadId',
|
|
185
|
+
'Required parameter "leadId" was null or undefined when calling updateLead().'
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (requestParameters['updateLeadInput'] == null) {
|
|
190
|
+
throw new runtime.RequiredError(
|
|
191
|
+
'updateLeadInput',
|
|
192
|
+
'Required parameter "updateLeadInput" was null or undefined when calling updateLead().'
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const queryParameters: any = {};
|
|
197
|
+
|
|
198
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
199
|
+
|
|
200
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
201
|
+
|
|
202
|
+
const response = await this.request({
|
|
203
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
204
|
+
method: 'PUT',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
body: UpdateLeadInputToJSON(requestParameters['updateLeadInput']),
|
|
208
|
+
}, initOverrides);
|
|
209
|
+
|
|
210
|
+
return new runtime.VoidApiResponse(response);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
217
|
+
await this.updateLeadRaw(requestParameters, initOverrides);
|
|
218
|
+
}
|
|
219
|
+
|
|
167
220
|
/**
|
|
168
221
|
*
|
|
169
222
|
*/
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreateOrderInput,
|
|
19
|
+
NotFoundException,
|
|
20
|
+
ObjectId,
|
|
21
|
+
OrderDto,
|
|
22
|
+
ThrottlerException,
|
|
23
|
+
UpdateOrderInput,
|
|
24
|
+
ValidationException,
|
|
25
|
+
} from '../models/index';
|
|
26
|
+
import {
|
|
27
|
+
CreateOrderInputFromJSON,
|
|
28
|
+
CreateOrderInputToJSON,
|
|
29
|
+
NotFoundExceptionFromJSON,
|
|
30
|
+
NotFoundExceptionToJSON,
|
|
31
|
+
ObjectIdFromJSON,
|
|
32
|
+
ObjectIdToJSON,
|
|
33
|
+
OrderDtoFromJSON,
|
|
34
|
+
OrderDtoToJSON,
|
|
35
|
+
ThrottlerExceptionFromJSON,
|
|
36
|
+
ThrottlerExceptionToJSON,
|
|
37
|
+
UpdateOrderInputFromJSON,
|
|
38
|
+
UpdateOrderInputToJSON,
|
|
39
|
+
ValidationExceptionFromJSON,
|
|
40
|
+
ValidationExceptionToJSON,
|
|
41
|
+
} from '../models/index';
|
|
42
|
+
|
|
43
|
+
export interface OrdersPublicApiCreateOrderRequest {
|
|
44
|
+
createOrderInput: CreateOrderInput;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface OrdersPublicApiGetOrderRequest {
|
|
48
|
+
orderId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface OrdersPublicApiUpdateOrderRequest {
|
|
52
|
+
orderId: string;
|
|
53
|
+
updateOrderInput: UpdateOrderInput;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export class OrdersPublicApi extends runtime.BaseAPI {
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
async createOrderRaw(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
65
|
+
if (requestParameters['createOrderInput'] == null) {
|
|
66
|
+
throw new runtime.RequiredError(
|
|
67
|
+
'createOrderInput',
|
|
68
|
+
'Required parameter "createOrderInput" was null or undefined when calling createOrder().'
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const queryParameters: any = {};
|
|
73
|
+
|
|
74
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
75
|
+
|
|
76
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
const response = await this.request({
|
|
79
|
+
path: `/orders`,
|
|
80
|
+
method: 'POST',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
body: CreateOrderInputToJSON(requestParameters['createOrderInput']),
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
async createOrder(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
|
|
93
|
+
const response = await this.createOrderRaw(requestParameters, initOverrides);
|
|
94
|
+
return await response.value();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
async getOrderRaw(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderDto>> {
|
|
101
|
+
if (requestParameters['orderId'] == null) {
|
|
102
|
+
throw new runtime.RequiredError(
|
|
103
|
+
'orderId',
|
|
104
|
+
'Required parameter "orderId" was null or undefined when calling getOrder().'
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const queryParameters: any = {};
|
|
109
|
+
|
|
110
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
|
+
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
114
|
+
method: 'GET',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrderDtoFromJSON(jsonValue));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
async getOrder(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderDto> {
|
|
126
|
+
const response = await this.getOrderRaw(requestParameters, initOverrides);
|
|
127
|
+
return await response.value();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
async updateOrderRaw(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
134
|
+
if (requestParameters['orderId'] == null) {
|
|
135
|
+
throw new runtime.RequiredError(
|
|
136
|
+
'orderId',
|
|
137
|
+
'Required parameter "orderId" was null or undefined when calling updateOrder().'
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (requestParameters['updateOrderInput'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'updateOrderInput',
|
|
144
|
+
'Required parameter "updateOrderInput" was null or undefined when calling updateOrder().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
const response = await this.request({
|
|
155
|
+
path: `/orders/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
156
|
+
method: 'PUT',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
body: UpdateOrderInputToJSON(requestParameters['updateOrderInput']),
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.VoidApiResponse(response);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
async updateOrder(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
169
|
+
await this.updateOrderRaw(requestParameters, initOverrides);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
}
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
ForgotPasswordRequestInput,
|
|
19
19
|
LoginDto,
|
|
20
20
|
LoginInput,
|
|
21
|
+
NotFoundException,
|
|
21
22
|
SetNewPasswordInput,
|
|
22
23
|
ThrottlerException,
|
|
23
24
|
UserPasswordResetDto,
|
|
@@ -30,6 +31,8 @@ import {
|
|
|
30
31
|
LoginDtoToJSON,
|
|
31
32
|
LoginInputFromJSON,
|
|
32
33
|
LoginInputToJSON,
|
|
34
|
+
NotFoundExceptionFromJSON,
|
|
35
|
+
NotFoundExceptionToJSON,
|
|
33
36
|
SetNewPasswordInputFromJSON,
|
|
34
37
|
SetNewPasswordInputToJSON,
|
|
35
38
|
ThrottlerExceptionFromJSON,
|
package/src/apis/index.ts
CHANGED
|
@@ -32,6 +32,12 @@ export interface CreateLeadInput {
|
|
|
32
32
|
* @memberof CreateLeadInput
|
|
33
33
|
*/
|
|
34
34
|
domainName: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateLeadInput
|
|
39
|
+
*/
|
|
40
|
+
locale: string;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {string}
|
|
@@ -74,12 +80,6 @@ export interface CreateLeadInput {
|
|
|
74
80
|
* @memberof CreateLeadInput
|
|
75
81
|
*/
|
|
76
82
|
offeredBy: CreateLeadInputOfferedByEnum;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof CreateLeadInput
|
|
81
|
-
*/
|
|
82
|
-
locale: string;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
|
|
@@ -99,6 +99,7 @@ export type CreateLeadInputOfferedByEnum = typeof CreateLeadInputOfferedByEnum[k
|
|
|
99
99
|
*/
|
|
100
100
|
export function instanceOfCreateLeadInput(value: object): value is CreateLeadInput {
|
|
101
101
|
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
102
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
102
103
|
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
103
104
|
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
104
105
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
@@ -106,7 +107,6 @@ export function instanceOfCreateLeadInput(value: object): value is CreateLeadInp
|
|
|
106
107
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
107
108
|
if (!('offer' in value) || value['offer'] === undefined) return false;
|
|
108
109
|
if (!('offeredBy' in value) || value['offeredBy'] === undefined) return false;
|
|
109
|
-
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
110
110
|
return true;
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -121,6 +121,7 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
121
121
|
return {
|
|
122
122
|
|
|
123
123
|
'domainName': json['domainName'],
|
|
124
|
+
'locale': json['locale'],
|
|
124
125
|
'firstname': json['firstname'],
|
|
125
126
|
'lastname': json['lastname'],
|
|
126
127
|
'email': json['email'],
|
|
@@ -128,7 +129,6 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
128
129
|
'companyName': json['companyName'],
|
|
129
130
|
'offer': MoneyDtoFromJSON(json['offer']),
|
|
130
131
|
'offeredBy': json['offeredBy'],
|
|
131
|
-
'locale': json['locale'],
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -139,6 +139,7 @@ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
|
|
|
139
139
|
return {
|
|
140
140
|
|
|
141
141
|
'domainName': value['domainName'],
|
|
142
|
+
'locale': value['locale'],
|
|
142
143
|
'firstname': value['firstname'],
|
|
143
144
|
'lastname': value['lastname'],
|
|
144
145
|
'email': value['email'],
|
|
@@ -146,7 +147,6 @@ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
|
|
|
146
147
|
'companyName': value['companyName'],
|
|
147
148
|
'offer': MoneyDtoToJSON(value['offer']),
|
|
148
149
|
'offeredBy': value['offeredBy'],
|
|
149
|
-
'locale': value['locale'],
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -16,90 +16,98 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface CreateOrderInput
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface CreateOrderInput {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof CreateOrderInput
|
|
26
26
|
*/
|
|
27
27
|
companyName: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof CreateOrderInput
|
|
32
32
|
*/
|
|
33
33
|
companyVatNumber: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof CreateOrderInput
|
|
38
38
|
*/
|
|
39
39
|
leadId: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof CreateOrderInput
|
|
44
|
+
*/
|
|
45
|
+
locale: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateOrderInput
|
|
50
|
+
*/
|
|
51
|
+
domainName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateOrderInput
|
|
44
56
|
*/
|
|
45
57
|
firstname: string;
|
|
46
58
|
/**
|
|
47
59
|
*
|
|
48
60
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
61
|
+
* @memberof CreateOrderInput
|
|
50
62
|
*/
|
|
51
63
|
lastname: string;
|
|
52
64
|
/**
|
|
53
65
|
*
|
|
54
66
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
67
|
+
* @memberof CreateOrderInput
|
|
56
68
|
*/
|
|
57
69
|
email: string;
|
|
58
70
|
/**
|
|
59
71
|
*
|
|
60
72
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
73
|
+
* @memberof CreateOrderInput
|
|
62
74
|
*/
|
|
63
75
|
phone: string;
|
|
64
76
|
/**
|
|
65
77
|
*
|
|
66
78
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
79
|
+
* @memberof CreateOrderInput
|
|
68
80
|
*/
|
|
69
81
|
country: string;
|
|
70
82
|
/**
|
|
71
83
|
*
|
|
72
84
|
* @type {string}
|
|
73
|
-
* @memberof
|
|
85
|
+
* @memberof CreateOrderInput
|
|
74
86
|
*/
|
|
75
87
|
city: string;
|
|
76
88
|
/**
|
|
77
89
|
*
|
|
78
90
|
* @type {string}
|
|
79
|
-
* @memberof
|
|
91
|
+
* @memberof CreateOrderInput
|
|
80
92
|
*/
|
|
81
93
|
postalCode: string;
|
|
82
94
|
/**
|
|
83
95
|
*
|
|
84
96
|
* @type {string}
|
|
85
|
-
* @memberof
|
|
97
|
+
* @memberof CreateOrderInput
|
|
86
98
|
*/
|
|
87
99
|
address: string;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof BuyDomainInput
|
|
92
|
-
*/
|
|
93
|
-
locale: string;
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
/**
|
|
97
|
-
* Check if a given object implements the
|
|
103
|
+
* Check if a given object implements the CreateOrderInput interface.
|
|
98
104
|
*/
|
|
99
|
-
export function
|
|
105
|
+
export function instanceOfCreateOrderInput(value: object): value is CreateOrderInput {
|
|
100
106
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
101
107
|
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
|
|
102
108
|
if (!('leadId' in value) || value['leadId'] === undefined) return false;
|
|
109
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
110
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
103
111
|
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
104
112
|
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
105
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
@@ -108,15 +116,14 @@ export function instanceOfBuyDomainInput(value: object): value is BuyDomainInput
|
|
|
108
116
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
109
117
|
if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
|
|
110
118
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
111
|
-
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
112
119
|
return true;
|
|
113
120
|
}
|
|
114
121
|
|
|
115
|
-
export function
|
|
116
|
-
return
|
|
122
|
+
export function CreateOrderInputFromJSON(json: any): CreateOrderInput {
|
|
123
|
+
return CreateOrderInputFromJSONTyped(json, false);
|
|
117
124
|
}
|
|
118
125
|
|
|
119
|
-
export function
|
|
126
|
+
export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderInput {
|
|
120
127
|
if (json == null) {
|
|
121
128
|
return json;
|
|
122
129
|
}
|
|
@@ -125,6 +132,8 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
125
132
|
'companyName': json['companyName'],
|
|
126
133
|
'companyVatNumber': json['companyVatNumber'],
|
|
127
134
|
'leadId': json['leadId'],
|
|
135
|
+
'locale': json['locale'],
|
|
136
|
+
'domainName': json['domainName'],
|
|
128
137
|
'firstname': json['firstname'],
|
|
129
138
|
'lastname': json['lastname'],
|
|
130
139
|
'email': json['email'],
|
|
@@ -133,11 +142,10 @@ export function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
133
142
|
'city': json['city'],
|
|
134
143
|
'postalCode': json['postalCode'],
|
|
135
144
|
'address': json['address'],
|
|
136
|
-
'locale': json['locale'],
|
|
137
145
|
};
|
|
138
146
|
}
|
|
139
147
|
|
|
140
|
-
export function
|
|
148
|
+
export function CreateOrderInputToJSON(value?: CreateOrderInput | null): any {
|
|
141
149
|
if (value == null) {
|
|
142
150
|
return value;
|
|
143
151
|
}
|
|
@@ -146,6 +154,8 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
|
|
|
146
154
|
'companyName': value['companyName'],
|
|
147
155
|
'companyVatNumber': value['companyVatNumber'],
|
|
148
156
|
'leadId': value['leadId'],
|
|
157
|
+
'locale': value['locale'],
|
|
158
|
+
'domainName': value['domainName'],
|
|
149
159
|
'firstname': value['firstname'],
|
|
150
160
|
'lastname': value['lastname'],
|
|
151
161
|
'email': value['email'],
|
|
@@ -154,7 +164,6 @@ export function BuyDomainInputToJSON(value?: BuyDomainInput | null): any {
|
|
|
154
164
|
'city': value['city'],
|
|
155
165
|
'postalCode': value['postalCode'],
|
|
156
166
|
'address': value['address'],
|
|
157
|
-
'locale': value['locale'],
|
|
158
167
|
};
|
|
159
168
|
}
|
|
160
169
|
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface NotFoundException
|
|
20
|
+
*/
|
|
21
|
+
export interface NotFoundException {
|
|
22
|
+
/**
|
|
23
|
+
* Exception name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NotFoundException
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* http status code
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof NotFoundException
|
|
32
|
+
*/
|
|
33
|
+
statusCode: number;
|
|
34
|
+
/**
|
|
35
|
+
* error message
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof NotFoundException
|
|
38
|
+
*/
|
|
39
|
+
message: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the NotFoundException interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfNotFoundException(value: object): value is NotFoundException {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
48
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function NotFoundExceptionFromJSON(json: any): NotFoundException {
|
|
53
|
+
return NotFoundExceptionFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'statusCode': json['statusCode'],
|
|
64
|
+
'message': json['message'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function NotFoundExceptionToJSON(value?: NotFoundException | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'statusCode': value['statusCode'],
|
|
76
|
+
'message': value['message'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|