@randock/nameshift-api-client 0.0.67 → 0.0.69

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.67
1
+ ## @randock/nameshift-api-client@0.0.69
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.67 --save
39
+ npm install @randock/nameshift-api-client@0.0.69 --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
- 26a1ef4263ef2a185d711925f2074e9c2712fefff3133fc0460a9416b51aa0e1fb97502d96b0a263841f0c2e47e3d317
47
+ 7cd60b283a3398683024d48716a610362db330794cd7ebad45af2645e75cb477d8d2ce6371c766329cc12bb151a493d3
@@ -11,6 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { BuyerDomainTransferAuthCodeDto, BuyerUserDto, GetBuyerTransfers200Response, StoreBuyerLocaleInput } from '../models/index';
14
+ export interface BuyersApiConfirmDomainTransferRequest {
15
+ transferId: string;
16
+ }
14
17
  export interface BuyersApiGetBuyerTransfersRequest {
15
18
  filter?: object;
16
19
  page?: number;
@@ -35,6 +38,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
35
38
  *
36
39
  */
37
40
  buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto>;
41
+ /**
42
+ *
43
+ */
44
+ confirmDomainTransferRaw(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
+ /**
46
+ *
47
+ */
48
+ confirmDomainTransfer(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
49
  /**
39
50
  *
40
51
  */
@@ -125,6 +125,57 @@ var BuyersApi = /** @class */ (function (_super) {
125
125
  });
126
126
  });
127
127
  };
128
+ /**
129
+ *
130
+ */
131
+ BuyersApi.prototype.confirmDomainTransferRaw = function (requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function () {
133
+ var queryParameters, headerParameters, token, tokenString, response;
134
+ return __generator(this, function (_a) {
135
+ switch (_a.label) {
136
+ case 0:
137
+ if (requestParameters['transferId'] == null) {
138
+ throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling confirmDomainTransfer().');
139
+ }
140
+ queryParameters = {};
141
+ headerParameters = {};
142
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
143
+ token = this.configuration.accessToken;
144
+ return [4 /*yield*/, token("bearer", [])];
145
+ case 1:
146
+ tokenString = _a.sent();
147
+ if (tokenString) {
148
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
149
+ }
150
+ _a.label = 2;
151
+ case 2: return [4 /*yield*/, this.request({
152
+ path: "/buyers/private/transfers/{transferId}/confirm".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
153
+ method: 'PATCH',
154
+ headers: headerParameters,
155
+ query: queryParameters,
156
+ }, initOverrides)];
157
+ case 3:
158
+ response = _a.sent();
159
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
160
+ }
161
+ });
162
+ });
163
+ };
164
+ /**
165
+ *
166
+ */
167
+ BuyersApi.prototype.confirmDomainTransfer = function (requestParameters, initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ return __generator(this, function (_a) {
170
+ switch (_a.label) {
171
+ case 0: return [4 /*yield*/, this.confirmDomainTransferRaw(requestParameters, initOverrides)];
172
+ case 1:
173
+ _a.sent();
174
+ return [2 /*return*/];
175
+ }
176
+ });
177
+ });
178
+ };
128
179
  /**
129
180
  *
130
181
  */
@@ -24,52 +24,52 @@ export interface CreateLeadInput {
24
24
  domainName: string;
25
25
  /**
26
26
  *
27
- * @type {string}
27
+ * @type {MoneyDto}
28
28
  * @memberof CreateLeadInput
29
29
  */
30
- locale: string;
30
+ offer: MoneyDto;
31
31
  /**
32
32
  *
33
33
  * @type {string}
34
34
  * @memberof CreateLeadInput
35
35
  */
36
- firstname: string;
36
+ offeredBy: CreateLeadInputOfferedByEnum;
37
37
  /**
38
38
  *
39
39
  * @type {string}
40
40
  * @memberof CreateLeadInput
41
41
  */
42
- lastname: string;
42
+ locale: string;
43
43
  /**
44
44
  *
45
45
  * @type {string}
46
46
  * @memberof CreateLeadInput
47
47
  */
48
- email: string;
48
+ firstname: string;
49
49
  /**
50
50
  *
51
51
  * @type {string}
52
52
  * @memberof CreateLeadInput
53
53
  */
54
- phone: string;
54
+ lastname: string;
55
55
  /**
56
56
  *
57
57
  * @type {string}
58
58
  * @memberof CreateLeadInput
59
59
  */
60
- companyName: string | null;
60
+ email: string;
61
61
  /**
62
62
  *
63
- * @type {MoneyDto}
63
+ * @type {string}
64
64
  * @memberof CreateLeadInput
65
65
  */
66
- offer: MoneyDto;
66
+ phone: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
70
70
  * @memberof CreateLeadInput
71
71
  */
72
- offeredBy: CreateLeadInputOfferedByEnum;
72
+ companyName: string | null;
73
73
  }
74
74
  /**
75
75
  * @export
@@ -29,6 +29,10 @@ exports.CreateLeadInputOfferedByEnum = {
29
29
  function instanceOfCreateLeadInput(value) {
30
30
  if (!('domainName' in value) || value['domainName'] === undefined)
31
31
  return false;
32
+ if (!('offer' in value) || value['offer'] === undefined)
33
+ return false;
34
+ if (!('offeredBy' in value) || value['offeredBy'] === undefined)
35
+ return false;
32
36
  if (!('locale' in value) || value['locale'] === undefined)
33
37
  return false;
34
38
  if (!('firstname' in value) || value['firstname'] === undefined)
@@ -41,10 +45,6 @@ function instanceOfCreateLeadInput(value) {
41
45
  return false;
42
46
  if (!('companyName' in value) || value['companyName'] === undefined)
43
47
  return false;
44
- if (!('offer' in value) || value['offer'] === undefined)
45
- return false;
46
- if (!('offeredBy' in value) || value['offeredBy'] === undefined)
47
- return false;
48
48
  return true;
49
49
  }
50
50
  exports.instanceOfCreateLeadInput = instanceOfCreateLeadInput;
@@ -58,14 +58,14 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
58
58
  }
59
59
  return {
60
60
  'domainName': json['domainName'],
61
+ 'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
62
+ 'offeredBy': json['offeredBy'],
61
63
  'locale': json['locale'],
62
64
  'firstname': json['firstname'],
63
65
  'lastname': json['lastname'],
64
66
  'email': json['email'],
65
67
  'phone': json['phone'],
66
68
  'companyName': json['companyName'],
67
- 'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
68
- 'offeredBy': json['offeredBy'],
69
69
  };
70
70
  }
71
71
  exports.CreateLeadInputFromJSONTyped = CreateLeadInputFromJSONTyped;
@@ -75,14 +75,14 @@ function CreateLeadInputToJSON(value) {
75
75
  }
76
76
  return {
77
77
  'domainName': value['domainName'],
78
+ 'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
79
+ 'offeredBy': value['offeredBy'],
78
80
  'locale': value['locale'],
79
81
  'firstname': value['firstname'],
80
82
  'lastname': value['lastname'],
81
83
  'email': value['email'],
82
84
  'phone': value['phone'],
83
85
  'companyName': value['companyName'],
84
- 'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
85
- 'offeredBy': value['offeredBy'],
86
86
  };
87
87
  }
88
88
  exports.CreateLeadInputToJSON = CreateLeadInputToJSON;
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MoneyDto } from './MoneyDto';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -46,28 +45,7 @@ export interface UpdateLeadInput {
46
45
  * @memberof UpdateLeadInput
47
46
  */
48
47
  companyName: string | null;
49
- /**
50
- *
51
- * @type {MoneyDto}
52
- * @memberof UpdateLeadInput
53
- */
54
- offer: MoneyDto;
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof UpdateLeadInput
59
- */
60
- offeredBy: UpdateLeadInputOfferedByEnum;
61
48
  }
62
- /**
63
- * @export
64
- */
65
- export declare const UpdateLeadInputOfferedByEnum: {
66
- readonly BUYER: "buyer";
67
- readonly SELLER: "seller";
68
- readonly ADMIN: "admin";
69
- };
70
- export type UpdateLeadInputOfferedByEnum = typeof UpdateLeadInputOfferedByEnum[keyof typeof UpdateLeadInputOfferedByEnum];
71
49
  /**
72
50
  * Check if a given object implements the UpdateLeadInput interface.
73
51
  */
@@ -13,16 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UpdateLeadInputToJSON = exports.UpdateLeadInputFromJSONTyped = exports.UpdateLeadInputFromJSON = exports.instanceOfUpdateLeadInput = exports.UpdateLeadInputOfferedByEnum = void 0;
17
- var MoneyDto_1 = require("./MoneyDto");
18
- /**
19
- * @export
20
- */
21
- exports.UpdateLeadInputOfferedByEnum = {
22
- BUYER: 'buyer',
23
- SELLER: 'seller',
24
- ADMIN: 'admin'
25
- };
16
+ exports.UpdateLeadInputToJSON = exports.UpdateLeadInputFromJSONTyped = exports.UpdateLeadInputFromJSON = exports.instanceOfUpdateLeadInput = void 0;
26
17
  /**
27
18
  * Check if a given object implements the UpdateLeadInput interface.
28
19
  */
@@ -37,10 +28,6 @@ function instanceOfUpdateLeadInput(value) {
37
28
  return false;
38
29
  if (!('companyName' in value) || value['companyName'] === undefined)
39
30
  return false;
40
- if (!('offer' in value) || value['offer'] === undefined)
41
- return false;
42
- if (!('offeredBy' in value) || value['offeredBy'] === undefined)
43
- return false;
44
31
  return true;
45
32
  }
46
33
  exports.instanceOfUpdateLeadInput = instanceOfUpdateLeadInput;
@@ -58,8 +45,6 @@ function UpdateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
58
45
  'email': json['email'],
59
46
  'phone': json['phone'],
60
47
  'companyName': json['companyName'],
61
- 'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
62
- 'offeredBy': json['offeredBy'],
63
48
  };
64
49
  }
65
50
  exports.UpdateLeadInputFromJSONTyped = UpdateLeadInputFromJSONTyped;
@@ -73,8 +58,6 @@ function UpdateLeadInputToJSON(value) {
73
58
  'email': value['email'],
74
59
  'phone': value['phone'],
75
60
  'companyName': value['companyName'],
76
- 'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
77
- 'offeredBy': value['offeredBy'],
78
61
  };
79
62
  }
80
63
  exports.UpdateLeadInputToJSON = UpdateLeadInputToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -40,6 +40,10 @@ import {
40
40
  ValidationExceptionToJSON,
41
41
  } from '../models/index';
42
42
 
43
+ export interface BuyersApiConfirmDomainTransferRequest {
44
+ transferId: string;
45
+ }
46
+
43
47
  export interface BuyersApiGetBuyerTransfersRequest {
44
48
  filter?: object;
45
49
  page?: number;
@@ -94,6 +98,46 @@ export class BuyersApi extends runtime.BaseAPI {
94
98
  return await response.value();
95
99
  }
96
100
 
101
+ /**
102
+ *
103
+ */
104
+ async confirmDomainTransferRaw(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
105
+ if (requestParameters['transferId'] == null) {
106
+ throw new runtime.RequiredError(
107
+ 'transferId',
108
+ 'Required parameter "transferId" was null or undefined when calling confirmDomainTransfer().'
109
+ );
110
+ }
111
+
112
+ const queryParameters: any = {};
113
+
114
+ const headerParameters: runtime.HTTPHeaders = {};
115
+
116
+ if (this.configuration && this.configuration.accessToken) {
117
+ const token = this.configuration.accessToken;
118
+ const tokenString = await token("bearer", []);
119
+
120
+ if (tokenString) {
121
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
122
+ }
123
+ }
124
+ const response = await this.request({
125
+ path: `/buyers/private/transfers/{transferId}/confirm`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
126
+ method: 'PATCH',
127
+ headers: headerParameters,
128
+ query: queryParameters,
129
+ }, initOverrides);
130
+
131
+ return new runtime.VoidApiResponse(response);
132
+ }
133
+
134
+ /**
135
+ *
136
+ */
137
+ async confirmDomainTransfer(requestParameters: BuyersApiConfirmDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
138
+ await this.confirmDomainTransferRaw(requestParameters, initOverrides);
139
+ }
140
+
97
141
  /**
98
142
  *
99
143
  */
@@ -34,52 +34,52 @@ export interface CreateLeadInput {
34
34
  domainName: string;
35
35
  /**
36
36
  *
37
- * @type {string}
37
+ * @type {MoneyDto}
38
38
  * @memberof CreateLeadInput
39
39
  */
40
- locale: string;
40
+ offer: MoneyDto;
41
41
  /**
42
42
  *
43
43
  * @type {string}
44
44
  * @memberof CreateLeadInput
45
45
  */
46
- firstname: string;
46
+ offeredBy: CreateLeadInputOfferedByEnum;
47
47
  /**
48
48
  *
49
49
  * @type {string}
50
50
  * @memberof CreateLeadInput
51
51
  */
52
- lastname: string;
52
+ locale: string;
53
53
  /**
54
54
  *
55
55
  * @type {string}
56
56
  * @memberof CreateLeadInput
57
57
  */
58
- email: string;
58
+ firstname: string;
59
59
  /**
60
60
  *
61
61
  * @type {string}
62
62
  * @memberof CreateLeadInput
63
63
  */
64
- phone: string;
64
+ lastname: string;
65
65
  /**
66
66
  *
67
67
  * @type {string}
68
68
  * @memberof CreateLeadInput
69
69
  */
70
- companyName: string | null;
70
+ email: string;
71
71
  /**
72
72
  *
73
- * @type {MoneyDto}
73
+ * @type {string}
74
74
  * @memberof CreateLeadInput
75
75
  */
76
- offer: MoneyDto;
76
+ phone: string;
77
77
  /**
78
78
  *
79
79
  * @type {string}
80
80
  * @memberof CreateLeadInput
81
81
  */
82
- offeredBy: CreateLeadInputOfferedByEnum;
82
+ companyName: string | null;
83
83
  }
84
84
 
85
85
 
@@ -99,14 +99,14 @@ 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 (!('offer' in value) || value['offer'] === undefined) return false;
103
+ if (!('offeredBy' in value) || value['offeredBy'] === undefined) return false;
102
104
  if (!('locale' in value) || value['locale'] === undefined) return false;
103
105
  if (!('firstname' in value) || value['firstname'] === undefined) return false;
104
106
  if (!('lastname' in value) || value['lastname'] === undefined) return false;
105
107
  if (!('email' in value) || value['email'] === undefined) return false;
106
108
  if (!('phone' in value) || value['phone'] === undefined) return false;
107
109
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
108
- if (!('offer' in value) || value['offer'] === undefined) return false;
109
- if (!('offeredBy' in value) || value['offeredBy'] === undefined) return false;
110
110
  return true;
111
111
  }
112
112
 
@@ -121,14 +121,14 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
121
121
  return {
122
122
 
123
123
  'domainName': json['domainName'],
124
+ 'offer': MoneyDtoFromJSON(json['offer']),
125
+ 'offeredBy': json['offeredBy'],
124
126
  'locale': json['locale'],
125
127
  'firstname': json['firstname'],
126
128
  'lastname': json['lastname'],
127
129
  'email': json['email'],
128
130
  'phone': json['phone'],
129
131
  'companyName': json['companyName'],
130
- 'offer': MoneyDtoFromJSON(json['offer']),
131
- 'offeredBy': json['offeredBy'],
132
132
  };
133
133
  }
134
134
 
@@ -139,14 +139,14 @@ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
139
139
  return {
140
140
 
141
141
  'domainName': value['domainName'],
142
+ 'offer': MoneyDtoToJSON(value['offer']),
143
+ 'offeredBy': value['offeredBy'],
142
144
  'locale': value['locale'],
143
145
  'firstname': value['firstname'],
144
146
  'lastname': value['lastname'],
145
147
  'email': value['email'],
146
148
  'phone': value['phone'],
147
149
  'companyName': value['companyName'],
148
- 'offer': MoneyDtoToJSON(value['offer']),
149
- 'offeredBy': value['offeredBy'],
150
150
  };
151
151
  }
152
152
 
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { MoneyDto } from './MoneyDto';
17
- import {
18
- MoneyDtoFromJSON,
19
- MoneyDtoFromJSONTyped,
20
- MoneyDtoToJSON,
21
- } from './MoneyDto';
22
-
23
16
  /**
24
17
  *
25
18
  * @export
@@ -56,32 +49,8 @@ export interface UpdateLeadInput {
56
49
  * @memberof UpdateLeadInput
57
50
  */
58
51
  companyName: string | null;
59
- /**
60
- *
61
- * @type {MoneyDto}
62
- * @memberof UpdateLeadInput
63
- */
64
- offer: MoneyDto;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof UpdateLeadInput
69
- */
70
- offeredBy: UpdateLeadInputOfferedByEnum;
71
52
  }
72
53
 
73
-
74
- /**
75
- * @export
76
- */
77
- export const UpdateLeadInputOfferedByEnum = {
78
- BUYER: 'buyer',
79
- SELLER: 'seller',
80
- ADMIN: 'admin'
81
- } as const;
82
- export type UpdateLeadInputOfferedByEnum = typeof UpdateLeadInputOfferedByEnum[keyof typeof UpdateLeadInputOfferedByEnum];
83
-
84
-
85
54
  /**
86
55
  * Check if a given object implements the UpdateLeadInput interface.
87
56
  */
@@ -91,8 +60,6 @@ export function instanceOfUpdateLeadInput(value: object): value is UpdateLeadInp
91
60
  if (!('email' in value) || value['email'] === undefined) return false;
92
61
  if (!('phone' in value) || value['phone'] === undefined) return false;
93
62
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
94
- if (!('offer' in value) || value['offer'] === undefined) return false;
95
- if (!('offeredBy' in value) || value['offeredBy'] === undefined) return false;
96
63
  return true;
97
64
  }
98
65
 
@@ -111,8 +78,6 @@ export function UpdateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
111
78
  'email': json['email'],
112
79
  'phone': json['phone'],
113
80
  'companyName': json['companyName'],
114
- 'offer': MoneyDtoFromJSON(json['offer']),
115
- 'offeredBy': json['offeredBy'],
116
81
  };
117
82
  }
118
83
 
@@ -127,8 +92,6 @@ export function UpdateLeadInputToJSON(value?: UpdateLeadInput | null): any {
127
92
  'email': value['email'],
128
93
  'phone': value['phone'],
129
94
  'companyName': value['companyName'],
130
- 'offer': MoneyDtoToJSON(value['offer']),
131
- 'offeredBy': value['offeredBy'],
132
95
  };
133
96
  }
134
97