@randock/nameshift-api-client 0.0.64 → 0.0.66

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 (70) hide show
  1. package/.openapi-generator/FILES +13 -2
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +15 -1
  4. package/dist/apis/AdminApi.js +63 -0
  5. package/dist/apis/DomainsPublicApi.d.ts +1 -13
  6. package/dist/apis/DomainsPublicApi.js +0 -49
  7. package/dist/apis/LeadsApi.d.ts +2 -2
  8. package/dist/apis/LeadsApi.js +3 -3
  9. package/dist/apis/LeadsPublicApi.d.ts +13 -1
  10. package/dist/apis/LeadsPublicApi.js +47 -0
  11. package/dist/apis/OrdersPublicApi.d.ts +52 -0
  12. package/dist/apis/OrdersPublicApi.js +217 -0
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/models/CreateLeadInput.d.ts +6 -6
  16. package/dist/models/CreateLeadInput.js +4 -4
  17. package/dist/models/{BuyDomainInput.d.ts → CreateOrderInput.d.ts} +30 -24
  18. package/dist/models/{BuyDomainInput.js → CreateOrderInput.js} +19 -15
  19. package/dist/models/GetAllOrders200Response.d.ts +46 -0
  20. package/dist/models/GetAllOrders200Response.js +58 -0
  21. package/dist/models/NotFoundException.d.ts +43 -0
  22. package/dist/models/NotFoundException.js +55 -0
  23. package/dist/models/OrderDto.d.ts +118 -0
  24. package/dist/models/OrderDto.js +107 -0
  25. package/dist/models/OrderListItemDto.d.ts +79 -0
  26. package/dist/models/OrderListItemDto.js +82 -0
  27. package/dist/models/OrderListItemDtoBasePrice.d.ts +37 -0
  28. package/dist/models/OrderListItemDtoBasePrice.js +51 -0
  29. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +85 -0
  30. package/dist/models/OrderListItemDtoBuyerInformation.js +83 -0
  31. package/dist/models/OrderListItemDtoDomainInformation.d.ts +37 -0
  32. package/dist/models/OrderListItemDtoDomainInformation.js +51 -0
  33. package/dist/models/OrderListItemDtoSellerAccount.d.ts +37 -0
  34. package/dist/models/OrderListItemDtoSellerAccount.js +51 -0
  35. package/dist/models/PublicLeadDto.d.ts +6 -0
  36. package/dist/models/PublicLeadDto.js +4 -0
  37. package/dist/models/PutLeadOfferInput.d.ts +32 -0
  38. package/dist/models/{PutLeadInput.js → PutLeadOfferInput.js} +11 -11
  39. package/dist/models/UpdateLeadInput.d.ts +77 -0
  40. package/dist/models/UpdateLeadInput.js +80 -0
  41. package/dist/models/UpdateOrderInput.d.ts +85 -0
  42. package/dist/models/UpdateOrderInput.js +83 -0
  43. package/dist/models/index.d.ts +12 -2
  44. package/dist/models/index.js +12 -2
  45. package/package.json +1 -1
  46. package/src/apis/AdminApi.ts +63 -0
  47. package/src/apis/BuyersApi.ts +3 -0
  48. package/src/apis/DomainsApi.ts +3 -0
  49. package/src/apis/DomainsPublicApi.ts +3 -54
  50. package/src/apis/LeadsApi.ts +8 -8
  51. package/src/apis/LeadsPublicApi.ts +53 -0
  52. package/src/apis/OrdersPublicApi.ts +172 -0
  53. package/src/apis/UsersPublicApi.ts +3 -0
  54. package/src/apis/index.ts +1 -0
  55. package/src/models/CreateLeadInput.ts +9 -9
  56. package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
  57. package/src/models/GetAllOrders200Response.ts +98 -0
  58. package/src/models/NotFoundException.ts +79 -0
  59. package/src/models/OrderDto.ts +196 -0
  60. package/src/models/OrderListItemDto.ts +151 -0
  61. package/src/models/OrderListItemDtoBasePrice.ts +70 -0
  62. package/src/models/OrderListItemDtoBuyerInformation.ts +142 -0
  63. package/src/models/OrderListItemDtoDomainInformation.ts +70 -0
  64. package/src/models/OrderListItemDtoSellerAccount.ts +70 -0
  65. package/src/models/PublicLeadDto.ts +9 -0
  66. package/src/models/{PutLeadInput.ts → PutLeadOfferInput.ts} +9 -9
  67. package/src/models/UpdateLeadInput.ts +134 -0
  68. package/src/models/UpdateOrderInput.ts +142 -0
  69. package/src/models/index.ts +12 -2
  70. package/dist/models/PutLeadInput.d.ts +0 -32
@@ -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
@@ -47,6 +48,7 @@ src/models/DomainTransferDtoAgent.ts
47
48
  src/models/DomainTransferOrderDto.ts
48
49
  src/models/ForgotPasswordRequestInput.ts
49
50
  src/models/GetAllDomainTransfers200Response.ts
51
+ src/models/GetAllOrders200Response.ts
50
52
  src/models/GetBuyerTransfers200Response.ts
51
53
  src/models/HttpException.ts
52
54
  src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
@@ -69,14 +71,21 @@ src/models/LoginDto.ts
69
71
  src/models/LoginInput.ts
70
72
  src/models/MoneyDto.ts
71
73
  src/models/MoneyInput.ts
74
+ src/models/NotFoundException.ts
72
75
  src/models/ObjectId.ts
76
+ src/models/OrderDto.ts
77
+ src/models/OrderListItemDto.ts
78
+ src/models/OrderListItemDtoBasePrice.ts
79
+ src/models/OrderListItemDtoBuyerInformation.ts
80
+ src/models/OrderListItemDtoDomainInformation.ts
81
+ src/models/OrderListItemDtoSellerAccount.ts
73
82
  src/models/PaginateResponse.ts
74
83
  src/models/PaginateResponseLinks.ts
75
84
  src/models/PaginateResponseMeta.ts
76
85
  src/models/PublicLeadBuyerDto.ts
77
86
  src/models/PublicLeadDto.ts
78
87
  src/models/PublicLeadDtoLastOffer.ts
79
- src/models/PutLeadInput.ts
88
+ src/models/PutLeadOfferInput.ts
80
89
  src/models/RegisterAccountInput.ts
81
90
  src/models/RelatedSellerDomain.ts
82
91
  src/models/RequestAccessTokenInput.ts
@@ -93,6 +102,8 @@ src/models/StoreUserLocaleInput.ts
93
102
  src/models/ThrottlerException.ts
94
103
  src/models/UpdateDomainInput.ts
95
104
  src/models/UpdateDomainTransferAuthCodeInput.ts
105
+ src/models/UpdateLeadInput.ts
106
+ src/models/UpdateOrderInput.ts
96
107
  src/models/UserPasswordResetDto.ts
97
108
  src/models/ValidationError.ts
98
109
  src/models/ValidationException.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.64
1
+ ## @randock/nameshift-api-client@0.0.66
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.64 --save
39
+ npm install @randock/nameshift-api-client@0.0.66 --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
- 01b75105ea368b9e25c881bacb88b1f5df499fc6598d01f3a7ff74806107160fc34b9a1c800cae77424beac82af3d6b3
47
+ 4c52efac8bbdd10e9e49ceef997efdaddc63fb8a6e364a592a8feffca3549359fe5a1ae4e64916313471aa80196eb70e
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ListAccounts200Response } from '../models/index';
13
+ import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, GetAllOrders200Response, ListAccounts200Response } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -21,6 +21,12 @@ export interface AdminApiChangeOrderStatusRequest {
21
21
  orderId: string;
22
22
  changeOrderStatusInput: ChangeOrderStatusInput;
23
23
  }
24
+ export interface AdminApiGetAllOrdersRequest {
25
+ filter?: object;
26
+ page?: number;
27
+ limit?: number;
28
+ sortBy?: Array<string>;
29
+ }
24
30
  export interface AdminApiListAccountsRequest {
25
31
  filter?: object;
26
32
  page?: number;
@@ -47,6 +53,14 @@ export declare class AdminApi extends runtime.BaseAPI {
47
53
  *
48
54
  */
49
55
  changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
56
+ /**
57
+ *
58
+ */
59
+ getAllOrdersRaw(requestParameters: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllOrders200Response>>;
60
+ /**
61
+ *
62
+ */
63
+ getAllOrders(requestParameters?: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response>;
50
64
  /**
51
65
  *
52
66
  */
@@ -194,6 +194,69 @@ var AdminApi = /** @class */ (function (_super) {
194
194
  });
195
195
  });
196
196
  };
197
+ /**
198
+ *
199
+ */
200
+ AdminApi.prototype.getAllOrdersRaw = function (requestParameters, initOverrides) {
201
+ return __awaiter(this, void 0, void 0, function () {
202
+ var queryParameters, headerParameters, token, tokenString, response;
203
+ return __generator(this, function (_a) {
204
+ switch (_a.label) {
205
+ case 0:
206
+ queryParameters = {};
207
+ if (requestParameters['filter'] != null) {
208
+ queryParameters['filter'] = requestParameters['filter'];
209
+ }
210
+ if (requestParameters['page'] != null) {
211
+ queryParameters['page'] = requestParameters['page'];
212
+ }
213
+ if (requestParameters['limit'] != null) {
214
+ queryParameters['limit'] = requestParameters['limit'];
215
+ }
216
+ if (requestParameters['sortBy'] != null) {
217
+ queryParameters['sortBy'] = requestParameters['sortBy'];
218
+ }
219
+ headerParameters = {};
220
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
221
+ token = this.configuration.accessToken;
222
+ return [4 /*yield*/, token("bearer", [])];
223
+ case 1:
224
+ tokenString = _a.sent();
225
+ if (tokenString) {
226
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
227
+ }
228
+ _a.label = 2;
229
+ case 2: return [4 /*yield*/, this.request({
230
+ path: "/admin/orders",
231
+ method: 'GET',
232
+ headers: headerParameters,
233
+ query: queryParameters,
234
+ }, initOverrides)];
235
+ case 3:
236
+ response = _a.sent();
237
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllOrders200ResponseFromJSON)(jsonValue); })];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ *
244
+ */
245
+ AdminApi.prototype.getAllOrders = function () {
246
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
247
+ var response;
248
+ if (requestParameters === void 0) { requestParameters = {}; }
249
+ return __generator(this, function (_a) {
250
+ switch (_a.label) {
251
+ case 0: return [4 /*yield*/, this.getAllOrdersRaw(requestParameters, initOverrides)];
252
+ case 1:
253
+ response = _a.sent();
254
+ return [4 /*yield*/, response.value()];
255
+ case 2: return [2 /*return*/, _a.sent()];
256
+ }
257
+ });
258
+ });
259
+ };
197
260
  /**
198
261
  *
199
262
  */
@@ -10,15 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BuyDomainInput, DomainSalesInformationDto, ObjectId } from '../models/index';
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;
@@ -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, PutLeadInput } from '../models/index';
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
- putLeadInput: PutLeadInput;
29
+ putLeadOfferInput: PutLeadOfferInput;
30
30
  }
31
31
  /**
32
32
  *
@@ -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['putLeadInput'] == null) {
356
- throw new runtime.RequiredError('putLeadInput', 'Required parameter "putLeadInput" was null or undefined when calling putOffer().');
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.PutLeadInputToJSON)(requestParameters['putLeadInput']),
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
+ }