@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
@@ -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;
@@ -8,5 +8,6 @@ export * from './DomainsApi';
8
8
  export * from './DomainsPublicApi';
9
9
  export * from './LeadsApi';
10
10
  export * from './LeadsPublicApi';
11
+ export * from './OrdersPublicApi';
11
12
  export * from './UsersApi';
12
13
  export * from './UsersPublicApi';
@@ -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;
@@ -12,86 +12,92 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface BuyDomainInput
15
+ * @interface CreateOrderInput
16
16
  */
17
- export interface BuyDomainInput {
17
+ export interface CreateOrderInput {
18
18
  /**
19
19
  *
20
20
  * @type {string}
21
- * @memberof BuyDomainInput
21
+ * @memberof CreateOrderInput
22
22
  */
23
23
  companyName: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
- * @memberof BuyDomainInput
27
+ * @memberof CreateOrderInput
28
28
  */
29
29
  companyVatNumber: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
- * @memberof BuyDomainInput
33
+ * @memberof CreateOrderInput
34
34
  */
35
35
  leadId: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
- * @memberof BuyDomainInput
39
+ * @memberof CreateOrderInput
40
+ */
41
+ locale: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CreateOrderInput
46
+ */
47
+ domainName: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateOrderInput
40
52
  */
41
53
  firstname: string;
42
54
  /**
43
55
  *
44
56
  * @type {string}
45
- * @memberof BuyDomainInput
57
+ * @memberof CreateOrderInput
46
58
  */
47
59
  lastname: string;
48
60
  /**
49
61
  *
50
62
  * @type {string}
51
- * @memberof BuyDomainInput
63
+ * @memberof CreateOrderInput
52
64
  */
53
65
  email: string;
54
66
  /**
55
67
  *
56
68
  * @type {string}
57
- * @memberof BuyDomainInput
69
+ * @memberof CreateOrderInput
58
70
  */
59
71
  phone: string;
60
72
  /**
61
73
  *
62
74
  * @type {string}
63
- * @memberof BuyDomainInput
75
+ * @memberof CreateOrderInput
64
76
  */
65
77
  country: string;
66
78
  /**
67
79
  *
68
80
  * @type {string}
69
- * @memberof BuyDomainInput
81
+ * @memberof CreateOrderInput
70
82
  */
71
83
  city: string;
72
84
  /**
73
85
  *
74
86
  * @type {string}
75
- * @memberof BuyDomainInput
87
+ * @memberof CreateOrderInput
76
88
  */
77
89
  postalCode: string;
78
90
  /**
79
91
  *
80
92
  * @type {string}
81
- * @memberof BuyDomainInput
93
+ * @memberof CreateOrderInput
82
94
  */
83
95
  address: string;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof BuyDomainInput
88
- */
89
- locale: string;
90
96
  }
91
97
  /**
92
- * Check if a given object implements the BuyDomainInput interface.
98
+ * Check if a given object implements the CreateOrderInput interface.
93
99
  */
94
- export declare function instanceOfBuyDomainInput(value: object): value is BuyDomainInput;
95
- export declare function BuyDomainInputFromJSON(json: any): BuyDomainInput;
96
- export declare function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyDomainInput;
97
- export declare function BuyDomainInputToJSON(value?: BuyDomainInput | null): any;
100
+ export declare function instanceOfCreateOrderInput(value: object): value is CreateOrderInput;
101
+ export declare function CreateOrderInputFromJSON(json: any): CreateOrderInput;
102
+ export declare function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderInput;
103
+ export declare function CreateOrderInputToJSON(value?: CreateOrderInput | null): any;
@@ -13,17 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BuyDomainInputToJSON = exports.BuyDomainInputFromJSONTyped = exports.BuyDomainInputFromJSON = exports.instanceOfBuyDomainInput = void 0;
16
+ exports.CreateOrderInputToJSON = exports.CreateOrderInputFromJSONTyped = exports.CreateOrderInputFromJSON = exports.instanceOfCreateOrderInput = void 0;
17
17
  /**
18
- * Check if a given object implements the BuyDomainInput interface.
18
+ * Check if a given object implements the CreateOrderInput interface.
19
19
  */
20
- function instanceOfBuyDomainInput(value) {
20
+ function instanceOfCreateOrderInput(value) {
21
21
  if (!('companyName' in value) || value['companyName'] === undefined)
22
22
  return false;
23
23
  if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
24
24
  return false;
25
25
  if (!('leadId' in value) || value['leadId'] === undefined)
26
26
  return false;
27
+ if (!('locale' in value) || value['locale'] === undefined)
28
+ return false;
29
+ if (!('domainName' in value) || value['domainName'] === undefined)
30
+ return false;
27
31
  if (!('firstname' in value) || value['firstname'] === undefined)
28
32
  return false;
29
33
  if (!('lastname' in value) || value['lastname'] === undefined)
@@ -40,16 +44,14 @@ function instanceOfBuyDomainInput(value) {
40
44
  return false;
41
45
  if (!('address' in value) || value['address'] === undefined)
42
46
  return false;
43
- if (!('locale' in value) || value['locale'] === undefined)
44
- return false;
45
47
  return true;
46
48
  }
47
- exports.instanceOfBuyDomainInput = instanceOfBuyDomainInput;
48
- function BuyDomainInputFromJSON(json) {
49
- return BuyDomainInputFromJSONTyped(json, false);
49
+ exports.instanceOfCreateOrderInput = instanceOfCreateOrderInput;
50
+ function CreateOrderInputFromJSON(json) {
51
+ return CreateOrderInputFromJSONTyped(json, false);
50
52
  }
51
- exports.BuyDomainInputFromJSON = BuyDomainInputFromJSON;
52
- function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
53
+ exports.CreateOrderInputFromJSON = CreateOrderInputFromJSON;
54
+ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
53
55
  if (json == null) {
54
56
  return json;
55
57
  }
@@ -57,6 +59,8 @@ function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'companyName': json['companyName'],
58
60
  'companyVatNumber': json['companyVatNumber'],
59
61
  'leadId': json['leadId'],
62
+ 'locale': json['locale'],
63
+ 'domainName': json['domainName'],
60
64
  'firstname': json['firstname'],
61
65
  'lastname': json['lastname'],
62
66
  'email': json['email'],
@@ -65,11 +69,10 @@ function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
65
69
  'city': json['city'],
66
70
  'postalCode': json['postalCode'],
67
71
  'address': json['address'],
68
- 'locale': json['locale'],
69
72
  };
70
73
  }
71
- exports.BuyDomainInputFromJSONTyped = BuyDomainInputFromJSONTyped;
72
- function BuyDomainInputToJSON(value) {
74
+ exports.CreateOrderInputFromJSONTyped = CreateOrderInputFromJSONTyped;
75
+ function CreateOrderInputToJSON(value) {
73
76
  if (value == null) {
74
77
  return value;
75
78
  }
@@ -77,6 +80,8 @@ function BuyDomainInputToJSON(value) {
77
80
  'companyName': value['companyName'],
78
81
  'companyVatNumber': value['companyVatNumber'],
79
82
  'leadId': value['leadId'],
83
+ 'locale': value['locale'],
84
+ 'domainName': value['domainName'],
80
85
  'firstname': value['firstname'],
81
86
  'lastname': value['lastname'],
82
87
  'email': value['email'],
@@ -85,7 +90,6 @@ function BuyDomainInputToJSON(value) {
85
90
  'city': value['city'],
86
91
  'postalCode': value['postalCode'],
87
92
  'address': value['address'],
88
- 'locale': value['locale'],
89
93
  };
90
94
  }
91
- exports.BuyDomainInputToJSON = BuyDomainInputToJSON;
95
+ exports.CreateOrderInputToJSON = CreateOrderInputToJSON;
@@ -0,0 +1,46 @@
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 type { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { OrderListItemDto } from './OrderListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetAllOrders200Response
19
+ */
20
+ export interface GetAllOrders200Response {
21
+ /**
22
+ *
23
+ * @type {Array<OrderListItemDto>}
24
+ * @memberof GetAllOrders200Response
25
+ */
26
+ data: Array<OrderListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetAllOrders200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetAllOrders200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetAllOrders200Response interface.
42
+ */
43
+ export declare function instanceOfGetAllOrders200Response(value: object): value is GetAllOrders200Response;
44
+ export declare function GetAllOrders200ResponseFromJSON(json: any): GetAllOrders200Response;
45
+ export declare function GetAllOrders200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllOrders200Response;
46
+ export declare function GetAllOrders200ResponseToJSON(value?: GetAllOrders200Response | null): any;
@@ -0,0 +1,58 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetAllOrders200ResponseToJSON = exports.GetAllOrders200ResponseFromJSONTyped = exports.GetAllOrders200ResponseFromJSON = exports.instanceOfGetAllOrders200Response = void 0;
17
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
18
+ var OrderListItemDto_1 = require("./OrderListItemDto");
19
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
20
+ /**
21
+ * Check if a given object implements the GetAllOrders200Response interface.
22
+ */
23
+ function instanceOfGetAllOrders200Response(value) {
24
+ if (!('data' in value) || value['data'] === undefined)
25
+ return false;
26
+ if (!('meta' in value) || value['meta'] === undefined)
27
+ return false;
28
+ if (!('links' in value) || value['links'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ exports.instanceOfGetAllOrders200Response = instanceOfGetAllOrders200Response;
33
+ function GetAllOrders200ResponseFromJSON(json) {
34
+ return GetAllOrders200ResponseFromJSONTyped(json, false);
35
+ }
36
+ exports.GetAllOrders200ResponseFromJSON = GetAllOrders200ResponseFromJSON;
37
+ function GetAllOrders200ResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'data': (json['data'].map(OrderListItemDto_1.OrderListItemDtoFromJSON)),
43
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
44
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
45
+ };
46
+ }
47
+ exports.GetAllOrders200ResponseFromJSONTyped = GetAllOrders200ResponseFromJSONTyped;
48
+ function GetAllOrders200ResponseToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'data': (value['data'].map(OrderListItemDto_1.OrderListItemDtoToJSON)),
54
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
55
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
56
+ };
57
+ }
58
+ exports.GetAllOrders200ResponseToJSON = GetAllOrders200ResponseToJSON;
@@ -0,0 +1,43 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface NotFoundException
16
+ */
17
+ export interface NotFoundException {
18
+ /**
19
+ * Exception name
20
+ * @type {string}
21
+ * @memberof NotFoundException
22
+ */
23
+ name: string;
24
+ /**
25
+ * http status code
26
+ * @type {number}
27
+ * @memberof NotFoundException
28
+ */
29
+ statusCode: number;
30
+ /**
31
+ * error message
32
+ * @type {string}
33
+ * @memberof NotFoundException
34
+ */
35
+ message: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the NotFoundException interface.
39
+ */
40
+ export declare function instanceOfNotFoundException(value: object): value is NotFoundException;
41
+ export declare function NotFoundExceptionFromJSON(json: any): NotFoundException;
42
+ export declare function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException;
43
+ export declare function NotFoundExceptionToJSON(value?: NotFoundException | null): any;