@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
package/.openapi-generator/FILES
CHANGED
|
@@ -13,6 +13,7 @@ src/apis/DomainsApi.ts
|
|
|
13
13
|
src/apis/DomainsPublicApi.ts
|
|
14
14
|
src/apis/LeadsApi.ts
|
|
15
15
|
src/apis/LeadsPublicApi.ts
|
|
16
|
+
src/apis/OrdersPublicApi.ts
|
|
16
17
|
src/apis/UsersApi.ts
|
|
17
18
|
src/apis/UsersPublicApi.ts
|
|
18
19
|
src/apis/index.ts
|
|
@@ -24,7 +25,6 @@ src/models/AccountFinancialInput.ts
|
|
|
24
25
|
src/models/AccountSettingsInput.ts
|
|
25
26
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
26
27
|
src/models/BatchUpdateDomainsInput.ts
|
|
27
|
-
src/models/BuyDomainInput.ts
|
|
28
28
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
29
29
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
30
30
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
@@ -33,6 +33,7 @@ src/models/ChangeOrderStatusInput.ts
|
|
|
33
33
|
src/models/ConflictException.ts
|
|
34
34
|
src/models/CreateLeadInput.ts
|
|
35
35
|
src/models/CreateLeadMessageInput.ts
|
|
36
|
+
src/models/CreateOrderInput.ts
|
|
36
37
|
src/models/DashboardStatsDto.ts
|
|
37
38
|
src/models/DeleteDomainsInput.ts
|
|
38
39
|
src/models/DomainDto.ts
|
|
@@ -69,14 +70,16 @@ src/models/LoginDto.ts
|
|
|
69
70
|
src/models/LoginInput.ts
|
|
70
71
|
src/models/MoneyDto.ts
|
|
71
72
|
src/models/MoneyInput.ts
|
|
73
|
+
src/models/NotFoundException.ts
|
|
72
74
|
src/models/ObjectId.ts
|
|
75
|
+
src/models/OrderDto.ts
|
|
73
76
|
src/models/PaginateResponse.ts
|
|
74
77
|
src/models/PaginateResponseLinks.ts
|
|
75
78
|
src/models/PaginateResponseMeta.ts
|
|
76
79
|
src/models/PublicLeadBuyerDto.ts
|
|
77
80
|
src/models/PublicLeadDto.ts
|
|
78
81
|
src/models/PublicLeadDtoLastOffer.ts
|
|
79
|
-
src/models/
|
|
82
|
+
src/models/PutLeadOfferInput.ts
|
|
80
83
|
src/models/RegisterAccountInput.ts
|
|
81
84
|
src/models/RelatedSellerDomain.ts
|
|
82
85
|
src/models/RequestAccessTokenInput.ts
|
|
@@ -93,6 +96,8 @@ src/models/StoreUserLocaleInput.ts
|
|
|
93
96
|
src/models/ThrottlerException.ts
|
|
94
97
|
src/models/UpdateDomainInput.ts
|
|
95
98
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
99
|
+
src/models/UpdateLeadInput.ts
|
|
100
|
+
src/models/UpdateOrderInput.ts
|
|
96
101
|
src/models/UserPasswordResetDto.ts
|
|
97
102
|
src/models/ValidationError.ts
|
|
98
103
|
src/models/ValidationException.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.65
|
|
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.65 --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
|
+
9b25551466d8fa2d379b7e8e78935b85272c90d3cc06aa9ed3d3c9c8f905a59ae1b673ccc58534f2f3fa6f4a1a2e5e0a
|
|
@@ -10,15 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { DomainSalesInformationDto } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
locale: string;
|
|
17
17
|
}
|
|
18
|
-
export interface DomainsPublicApiPostDomainByNameBuyRequest {
|
|
19
|
-
domainName: string;
|
|
20
|
-
buyDomainInput: BuyDomainInput;
|
|
21
|
-
}
|
|
22
18
|
/**
|
|
23
19
|
*
|
|
24
20
|
*/
|
|
@@ -31,12 +27,4 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
31
27
|
*
|
|
32
28
|
*/
|
|
33
29
|
getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto>;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
postDomainByNameBuyRaw(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
postDomainByNameBuy(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
42
30
|
}
|
|
@@ -125,55 +125,6 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
DomainsPublicApi.prototype.postDomainByNameBuyRaw = function (requestParameters, initOverrides) {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
133
|
-
var queryParameters, headerParameters, response;
|
|
134
|
-
return __generator(this, function (_a) {
|
|
135
|
-
switch (_a.label) {
|
|
136
|
-
case 0:
|
|
137
|
-
if (requestParameters['domainName'] == null) {
|
|
138
|
-
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling postDomainByNameBuy().');
|
|
139
|
-
}
|
|
140
|
-
if (requestParameters['buyDomainInput'] == null) {
|
|
141
|
-
throw new runtime.RequiredError('buyDomainInput', 'Required parameter "buyDomainInput" was null or undefined when calling postDomainByNameBuy().');
|
|
142
|
-
}
|
|
143
|
-
queryParameters = {};
|
|
144
|
-
headerParameters = {};
|
|
145
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
-
return [4 /*yield*/, this.request({
|
|
147
|
-
path: "/domains/by-name/{domainName}/buy".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
|
148
|
-
method: 'POST',
|
|
149
|
-
headers: headerParameters,
|
|
150
|
-
query: queryParameters,
|
|
151
|
-
body: (0, index_1.BuyDomainInputToJSON)(requestParameters['buyDomainInput']),
|
|
152
|
-
}, initOverrides)];
|
|
153
|
-
case 1:
|
|
154
|
-
response = _a.sent();
|
|
155
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
*/
|
|
163
|
-
DomainsPublicApi.prototype.postDomainByNameBuy = function (requestParameters, initOverrides) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
165
|
-
var response;
|
|
166
|
-
return __generator(this, function (_a) {
|
|
167
|
-
switch (_a.label) {
|
|
168
|
-
case 0: return [4 /*yield*/, this.postDomainByNameBuyRaw(requestParameters, initOverrides)];
|
|
169
|
-
case 1:
|
|
170
|
-
response = _a.sent();
|
|
171
|
-
return [4 /*yield*/, response.value()];
|
|
172
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
128
|
return DomainsPublicApi;
|
|
178
129
|
}(runtime.BaseAPI));
|
|
179
130
|
exports.DomainsPublicApi = DomainsPublicApi;
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, ListLeadMessagesDto, ObjectId,
|
|
13
|
+
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -26,7 +26,7 @@ export interface LeadsApiGetMessagesRequest {
|
|
|
26
26
|
}
|
|
27
27
|
export interface LeadsApiPutOfferRequest {
|
|
28
28
|
leadId: string;
|
|
29
|
-
|
|
29
|
+
putLeadOfferInput: PutLeadOfferInput;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
*
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -352,8 +352,8 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
352
352
|
if (requestParameters['leadId'] == null) {
|
|
353
353
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling putOffer().');
|
|
354
354
|
}
|
|
355
|
-
if (requestParameters['
|
|
356
|
-
throw new runtime.RequiredError('
|
|
355
|
+
if (requestParameters['putLeadOfferInput'] == null) {
|
|
356
|
+
throw new runtime.RequiredError('putLeadOfferInput', 'Required parameter "putLeadOfferInput" was null or undefined when calling putOffer().');
|
|
357
357
|
}
|
|
358
358
|
queryParameters = {};
|
|
359
359
|
headerParameters = {};
|
|
@@ -372,7 +372,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
372
372
|
method: 'PUT',
|
|
373
373
|
headers: headerParameters,
|
|
374
374
|
query: queryParameters,
|
|
375
|
-
body: (0, index_1.
|
|
375
|
+
body: (0, index_1.PutLeadOfferInputToJSON)(requestParameters['putLeadOfferInput']),
|
|
376
376
|
}, initOverrides)];
|
|
377
377
|
case 3:
|
|
378
378
|
response = _a.sent();
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, VerifyLeadInput } from '../models/index';
|
|
13
|
+
import type { CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
|
|
14
14
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
15
15
|
createLeadInput: CreateLeadInput;
|
|
16
16
|
}
|
|
@@ -20,6 +20,10 @@ export interface LeadsPublicApiGetLeadRequest {
|
|
|
20
20
|
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
21
21
|
leadId: string;
|
|
22
22
|
}
|
|
23
|
+
export interface LeadsPublicApiUpdateLeadRequest {
|
|
24
|
+
leadId: string;
|
|
25
|
+
updateLeadInput: UpdateLeadInput;
|
|
26
|
+
}
|
|
23
27
|
export interface LeadsPublicApiVerifyLeadRequest {
|
|
24
28
|
leadId: string;
|
|
25
29
|
verifyLeadInput: VerifyLeadInput;
|
|
@@ -52,6 +56,14 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
52
56
|
*
|
|
53
57
|
*/
|
|
54
58
|
getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
55
67
|
/**
|
|
56
68
|
*
|
|
57
69
|
*/
|
|
@@ -209,6 +209,53 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
209
209
|
});
|
|
210
210
|
});
|
|
211
211
|
};
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
LeadsPublicApi.prototype.updateLeadRaw = function (requestParameters, initOverrides) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
217
|
+
var queryParameters, headerParameters, response;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
switch (_a.label) {
|
|
220
|
+
case 0:
|
|
221
|
+
if (requestParameters['leadId'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLead().');
|
|
223
|
+
}
|
|
224
|
+
if (requestParameters['updateLeadInput'] == null) {
|
|
225
|
+
throw new runtime.RequiredError('updateLeadInput', 'Required parameter "updateLeadInput" was null or undefined when calling updateLead().');
|
|
226
|
+
}
|
|
227
|
+
queryParameters = {};
|
|
228
|
+
headerParameters = {};
|
|
229
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
230
|
+
return [4 /*yield*/, this.request({
|
|
231
|
+
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
232
|
+
method: 'PUT',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
body: (0, index_1.UpdateLeadInputToJSON)(requestParameters['updateLeadInput']),
|
|
236
|
+
}, initOverrides)];
|
|
237
|
+
case 1:
|
|
238
|
+
response = _a.sent();
|
|
239
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
LeadsPublicApi.prototype.updateLead = function (requestParameters, initOverrides) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
return __generator(this, function (_a) {
|
|
250
|
+
switch (_a.label) {
|
|
251
|
+
case 0: return [4 /*yield*/, this.updateLeadRaw(requestParameters, initOverrides)];
|
|
252
|
+
case 1:
|
|
253
|
+
_a.sent();
|
|
254
|
+
return [2 /*return*/];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
};
|
|
212
259
|
/**
|
|
213
260
|
*
|
|
214
261
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import type { CreateOrderInput, ObjectId, OrderDto, UpdateOrderInput } from '../models/index';
|
|
14
|
+
export interface OrdersPublicApiCreateOrderRequest {
|
|
15
|
+
createOrderInput: CreateOrderInput;
|
|
16
|
+
}
|
|
17
|
+
export interface OrdersPublicApiGetOrderRequest {
|
|
18
|
+
orderId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface OrdersPublicApiUpdateOrderRequest {
|
|
21
|
+
orderId: string;
|
|
22
|
+
updateOrderInput: UpdateOrderInput;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class OrdersPublicApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
createOrderRaw(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
createOrder(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
getOrderRaw(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderDto>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
getOrder(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderDto>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
updateOrderRaw(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
updateOrder(requestParameters: OrdersPublicApiUpdateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.OrdersPublicApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var OrdersPublicApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(OrdersPublicApi, _super);
|
|
75
|
+
function OrdersPublicApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
OrdersPublicApi.prototype.createOrderRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['createOrderInput'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('createOrderInput', 'Required parameter "createOrderInput" was null or undefined when calling createOrder().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
+
return [4 /*yield*/, this.request({
|
|
94
|
+
path: "/orders",
|
|
95
|
+
method: 'POST',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
body: (0, index_1.CreateOrderInputToJSON)(requestParameters['createOrderInput']),
|
|
99
|
+
}, initOverrides)];
|
|
100
|
+
case 1:
|
|
101
|
+
response = _a.sent();
|
|
102
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
OrdersPublicApi.prototype.createOrder = function (requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
var response;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0: return [4 /*yield*/, this.createOrderRaw(requestParameters, initOverrides)];
|
|
116
|
+
case 1:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
return [4 /*yield*/, response.value()];
|
|
119
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
OrdersPublicApi.prototype.getOrderRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['orderId'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling getOrder().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
return [4 /*yield*/, this.request({
|
|
139
|
+
path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
140
|
+
method: 'GET',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
}, initOverrides)];
|
|
144
|
+
case 1:
|
|
145
|
+
response = _a.sent();
|
|
146
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderDtoFromJSON)(jsonValue); })];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
OrdersPublicApi.prototype.getOrder = function (requestParameters, initOverrides) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
+
var response;
|
|
157
|
+
return __generator(this, function (_a) {
|
|
158
|
+
switch (_a.label) {
|
|
159
|
+
case 0: return [4 /*yield*/, this.getOrderRaw(requestParameters, initOverrides)];
|
|
160
|
+
case 1:
|
|
161
|
+
response = _a.sent();
|
|
162
|
+
return [4 /*yield*/, response.value()];
|
|
163
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
OrdersPublicApi.prototype.updateOrderRaw = function (requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var queryParameters, headerParameters, response;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
switch (_a.label) {
|
|
176
|
+
case 0:
|
|
177
|
+
if (requestParameters['orderId'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling updateOrder().');
|
|
179
|
+
}
|
|
180
|
+
if (requestParameters['updateOrderInput'] == null) {
|
|
181
|
+
throw new runtime.RequiredError('updateOrderInput', 'Required parameter "updateOrderInput" was null or undefined when calling updateOrder().');
|
|
182
|
+
}
|
|
183
|
+
queryParameters = {};
|
|
184
|
+
headerParameters = {};
|
|
185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
return [4 /*yield*/, this.request({
|
|
187
|
+
path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
188
|
+
method: 'PUT',
|
|
189
|
+
headers: headerParameters,
|
|
190
|
+
query: queryParameters,
|
|
191
|
+
body: (0, index_1.UpdateOrderInputToJSON)(requestParameters['updateOrderInput']),
|
|
192
|
+
}, initOverrides)];
|
|
193
|
+
case 1:
|
|
194
|
+
response = _a.sent();
|
|
195
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
OrdersPublicApi.prototype.updateOrder = function (requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0: return [4 /*yield*/, this.updateOrderRaw(requestParameters, initOverrides)];
|
|
208
|
+
case 1:
|
|
209
|
+
_a.sent();
|
|
210
|
+
return [2 /*return*/];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
return OrdersPublicApi;
|
|
216
|
+
}(runtime.BaseAPI));
|
|
217
|
+
exports.OrdersPublicApi = OrdersPublicApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -26,5 +26,6 @@ __exportStar(require("./DomainsApi"), exports);
|
|
|
26
26
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
27
27
|
__exportStar(require("./LeadsApi"), exports);
|
|
28
28
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
29
|
+
__exportStar(require("./OrdersPublicApi"), exports);
|
|
29
30
|
__exportStar(require("./UsersApi"), exports);
|
|
30
31
|
__exportStar(require("./UsersPublicApi"), exports);
|
|
@@ -22,6 +22,12 @@ export interface CreateLeadInput {
|
|
|
22
22
|
* @memberof CreateLeadInput
|
|
23
23
|
*/
|
|
24
24
|
domainName: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateLeadInput
|
|
29
|
+
*/
|
|
30
|
+
locale: string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -64,12 +70,6 @@ export interface CreateLeadInput {
|
|
|
64
70
|
* @memberof CreateLeadInput
|
|
65
71
|
*/
|
|
66
72
|
offeredBy: CreateLeadInputOfferedByEnum;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof CreateLeadInput
|
|
71
|
-
*/
|
|
72
|
-
locale: string;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* @export
|
|
@@ -29,6 +29,8 @@ exports.CreateLeadInputOfferedByEnum = {
|
|
|
29
29
|
function instanceOfCreateLeadInput(value) {
|
|
30
30
|
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
@@ -43,8 +45,6 @@ function instanceOfCreateLeadInput(value) {
|
|
|
43
45
|
return false;
|
|
44
46
|
if (!('offeredBy' in value) || value['offeredBy'] === undefined)
|
|
45
47
|
return false;
|
|
46
|
-
if (!('locale' in value) || value['locale'] === undefined)
|
|
47
|
-
return false;
|
|
48
48
|
return true;
|
|
49
49
|
}
|
|
50
50
|
exports.instanceOfCreateLeadInput = instanceOfCreateLeadInput;
|
|
@@ -58,6 +58,7 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
60
|
'domainName': json['domainName'],
|
|
61
|
+
'locale': json['locale'],
|
|
61
62
|
'firstname': json['firstname'],
|
|
62
63
|
'lastname': json['lastname'],
|
|
63
64
|
'email': json['email'],
|
|
@@ -65,7 +66,6 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
66
|
'companyName': json['companyName'],
|
|
66
67
|
'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
|
|
67
68
|
'offeredBy': json['offeredBy'],
|
|
68
|
-
'locale': json['locale'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
exports.CreateLeadInputFromJSONTyped = CreateLeadInputFromJSONTyped;
|
|
@@ -75,6 +75,7 @@ function CreateLeadInputToJSON(value) {
|
|
|
75
75
|
}
|
|
76
76
|
return {
|
|
77
77
|
'domainName': value['domainName'],
|
|
78
|
+
'locale': value['locale'],
|
|
78
79
|
'firstname': value['firstname'],
|
|
79
80
|
'lastname': value['lastname'],
|
|
80
81
|
'email': value['email'],
|
|
@@ -82,7 +83,6 @@ function CreateLeadInputToJSON(value) {
|
|
|
82
83
|
'companyName': value['companyName'],
|
|
83
84
|
'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
|
|
84
85
|
'offeredBy': value['offeredBy'],
|
|
85
|
-
'locale': value['locale'],
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
exports.CreateLeadInputToJSON = CreateLeadInputToJSON;
|