@randock/nameshift-api-client 0.0.240 → 0.0.242

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.
@@ -1 +1 @@
1
- 7.13.0-SNAPSHOT
1
+ 7.12.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.240
1
+ ## @randock/nameshift-api-client@1.0
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.240 --save
39
+ npm install @randock/nameshift-api-client@1.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,3 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- bdf85d28d6ad895471f3a90da137b3cec46ce0882585cc0f1fd806b40ac9d15edebf0fe2c3b4455bb203ea923a121660
@@ -23,6 +23,15 @@ export interface DomainsPublicApiListRequest {
23
23
  limit?: number;
24
24
  sortBy?: Array<string>;
25
25
  }
26
+ export interface DomainsPublicApiPublicDomainControllerGetCaddyRequest {
27
+ domain: string;
28
+ }
29
+ export interface DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest {
30
+ domainName: string;
31
+ }
32
+ export interface DomainsPublicApiPublicDomainControllerGetSidnRequest {
33
+ domain: string;
34
+ }
26
35
  /**
27
36
  *
28
37
  */
@@ -43,4 +52,22 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
43
52
  *
44
53
  */
45
54
  list(requestParameters?: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3>;
55
+ /**
56
+ */
57
+ publicDomainControllerGetCaddyRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
58
+ /**
59
+ */
60
+ publicDomainControllerGetCaddy(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
61
+ /**
62
+ */
63
+ publicDomainControllerGetDomainIdentifierRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
64
+ /**
65
+ */
66
+ publicDomainControllerGetDomainIdentifier(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
67
+ /**
68
+ */
69
+ publicDomainControllerGetSidnRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetSidnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
70
+ /**
71
+ */
72
+ publicDomainControllerGetSidn(requestParameters: DomainsPublicApiPublicDomainControllerGetSidnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
46
73
  }
@@ -182,6 +182,134 @@ var DomainsPublicApi = /** @class */ (function (_super) {
182
182
  });
183
183
  });
184
184
  };
185
+ /**
186
+ */
187
+ DomainsPublicApi.prototype.publicDomainControllerGetCaddyRaw = function (requestParameters, initOverrides) {
188
+ return __awaiter(this, void 0, void 0, function () {
189
+ var queryParameters, headerParameters, response;
190
+ return __generator(this, function (_a) {
191
+ switch (_a.label) {
192
+ case 0:
193
+ if (requestParameters['domain'] == null) {
194
+ throw new runtime.RequiredError('domain', 'Required parameter "domain" was null or undefined when calling publicDomainControllerGetCaddy().');
195
+ }
196
+ queryParameters = {};
197
+ if (requestParameters['domain'] != null) {
198
+ queryParameters['domain'] = requestParameters['domain'];
199
+ }
200
+ headerParameters = {};
201
+ return [4 /*yield*/, this.request({
202
+ path: "/caddy",
203
+ method: 'GET',
204
+ headers: headerParameters,
205
+ query: queryParameters,
206
+ }, initOverrides)];
207
+ case 1:
208
+ response = _a.sent();
209
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
210
+ }
211
+ });
212
+ });
213
+ };
214
+ /**
215
+ */
216
+ DomainsPublicApi.prototype.publicDomainControllerGetCaddy = function (requestParameters, initOverrides) {
217
+ return __awaiter(this, void 0, void 0, function () {
218
+ return __generator(this, function (_a) {
219
+ switch (_a.label) {
220
+ case 0: return [4 /*yield*/, this.publicDomainControllerGetCaddyRaw(requestParameters, initOverrides)];
221
+ case 1:
222
+ _a.sent();
223
+ return [2 /*return*/];
224
+ }
225
+ });
226
+ });
227
+ };
228
+ /**
229
+ */
230
+ DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifierRaw = function (requestParameters, initOverrides) {
231
+ return __awaiter(this, void 0, void 0, function () {
232
+ var queryParameters, headerParameters, response;
233
+ return __generator(this, function (_a) {
234
+ switch (_a.label) {
235
+ case 0:
236
+ if (requestParameters['domainName'] == null) {
237
+ throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling publicDomainControllerGetDomainIdentifier().');
238
+ }
239
+ queryParameters = {};
240
+ headerParameters = {};
241
+ return [4 /*yield*/, this.request({
242
+ path: "/domains/by-name/{domainName}/identifier".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
243
+ method: 'GET',
244
+ headers: headerParameters,
245
+ query: queryParameters,
246
+ }, initOverrides)];
247
+ case 1:
248
+ response = _a.sent();
249
+ return [2 /*return*/, new runtime.JSONApiResponse(response)];
250
+ }
251
+ });
252
+ });
253
+ };
254
+ /**
255
+ */
256
+ DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifier = function (requestParameters, initOverrides) {
257
+ return __awaiter(this, void 0, void 0, function () {
258
+ var response;
259
+ return __generator(this, function (_a) {
260
+ switch (_a.label) {
261
+ case 0: return [4 /*yield*/, this.publicDomainControllerGetDomainIdentifierRaw(requestParameters, initOverrides)];
262
+ case 1:
263
+ response = _a.sent();
264
+ return [4 /*yield*/, response.value()];
265
+ case 2: return [2 /*return*/, _a.sent()];
266
+ }
267
+ });
268
+ });
269
+ };
270
+ /**
271
+ */
272
+ DomainsPublicApi.prototype.publicDomainControllerGetSidnRaw = function (requestParameters, initOverrides) {
273
+ return __awaiter(this, void 0, void 0, function () {
274
+ var queryParameters, headerParameters, response;
275
+ return __generator(this, function (_a) {
276
+ switch (_a.label) {
277
+ case 0:
278
+ if (requestParameters['domain'] == null) {
279
+ throw new runtime.RequiredError('domain', 'Required parameter "domain" was null or undefined when calling publicDomainControllerGetSidn().');
280
+ }
281
+ queryParameters = {};
282
+ if (requestParameters['domain'] != null) {
283
+ queryParameters['domain'] = requestParameters['domain'];
284
+ }
285
+ headerParameters = {};
286
+ return [4 /*yield*/, this.request({
287
+ path: "/sidn",
288
+ method: 'GET',
289
+ headers: headerParameters,
290
+ query: queryParameters,
291
+ }, initOverrides)];
292
+ case 1:
293
+ response = _a.sent();
294
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
295
+ }
296
+ });
297
+ });
298
+ };
299
+ /**
300
+ */
301
+ DomainsPublicApi.prototype.publicDomainControllerGetSidn = function (requestParameters, initOverrides) {
302
+ return __awaiter(this, void 0, void 0, function () {
303
+ return __generator(this, function (_a) {
304
+ switch (_a.label) {
305
+ case 0: return [4 /*yield*/, this.publicDomainControllerGetSidnRaw(requestParameters, initOverrides)];
306
+ case 1:
307
+ _a.sent();
308
+ return [2 /*return*/];
309
+ }
310
+ });
311
+ });
312
+ };
185
313
  return DomainsPublicApi;
186
314
  }(runtime.BaseAPI));
187
315
  exports.DomainsPublicApi = DomainsPublicApi;
@@ -17,12 +17,30 @@ import type { LeadMessageDto } from './LeadMessageDto';
17
17
  * @interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
18
18
  */
19
19
  export interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
24
+ */
25
+ aiModel: string;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
30
+ */
31
+ aiModelTemperature: number;
20
32
  /**
21
33
  *
22
34
  * @type {string}
23
35
  * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
24
36
  */
25
37
  domainName: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
42
+ */
43
+ locale: string;
26
44
  /**
27
45
  *
28
46
  * @type {MoneyDto}
@@ -33,8 +33,14 @@ exports.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum =
33
33
  * Check if a given object implements the SendAdminLeadAiPriceNegotiatorAgentChatMessageInput interface.
34
34
  */
35
35
  function instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput(value) {
36
+ if (!('aiModel' in value) || value['aiModel'] === undefined)
37
+ return false;
38
+ if (!('aiModelTemperature' in value) || value['aiModelTemperature'] === undefined)
39
+ return false;
36
40
  if (!('domainName' in value) || value['domainName'] === undefined)
37
41
  return false;
42
+ if (!('locale' in value) || value['locale'] === undefined)
43
+ return false;
38
44
  if (!('offer' in value) || value['offer'] === undefined)
39
45
  return false;
40
46
  if (!('sellImportance' in value) || value['sellImportance'] === undefined)
@@ -61,7 +67,10 @@ function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped(json,
61
67
  return json;
62
68
  }
63
69
  return {
70
+ 'aiModel': json['aiModel'],
71
+ 'aiModelTemperature': json['aiModelTemperature'],
64
72
  'domainName': json['domainName'],
73
+ 'locale': json['locale'],
65
74
  'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
66
75
  'sellImportance': json['sellImportance'],
67
76
  'generalPrompt': json['generalPrompt'],
@@ -81,7 +90,10 @@ function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped(value, i
81
90
  return value;
82
91
  }
83
92
  return {
93
+ 'aiModel': value['aiModel'],
94
+ 'aiModelTemperature': value['aiModelTemperature'],
84
95
  'domainName': value['domainName'],
96
+ 'locale': value['locale'],
85
97
  'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
86
98
  'sellImportance': value['sellImportance'],
87
99
  'generalPrompt': value['generalPrompt'],
package/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.240",
3
+ "version": "0.0.242",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
9
- },
10
6
  "main": "./dist/index.js",
11
7
  "typings": "./dist/index.d.ts",
12
8
  "scripts": {
@@ -48,6 +48,18 @@ export interface DomainsPublicApiListRequest {
48
48
  sortBy?: Array<string>;
49
49
  }
50
50
 
51
+ export interface DomainsPublicApiPublicDomainControllerGetCaddyRequest {
52
+ domain: string;
53
+ }
54
+
55
+ export interface DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest {
56
+ domainName: string;
57
+ }
58
+
59
+ export interface DomainsPublicApiPublicDomainControllerGetSidnRequest {
60
+ domain: string;
61
+ }
62
+
51
63
  /**
52
64
  *
53
65
  */
@@ -140,4 +152,103 @@ export class DomainsPublicApi extends runtime.BaseAPI {
140
152
  return await response.value();
141
153
  }
142
154
 
155
+ /**
156
+ */
157
+ async publicDomainControllerGetCaddyRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
158
+ if (requestParameters['domain'] == null) {
159
+ throw new runtime.RequiredError(
160
+ 'domain',
161
+ 'Required parameter "domain" was null or undefined when calling publicDomainControllerGetCaddy().'
162
+ );
163
+ }
164
+
165
+ const queryParameters: any = {};
166
+
167
+ if (requestParameters['domain'] != null) {
168
+ queryParameters['domain'] = requestParameters['domain'];
169
+ }
170
+
171
+ const headerParameters: runtime.HTTPHeaders = {};
172
+
173
+ const response = await this.request({
174
+ path: `/caddy`,
175
+ method: 'GET',
176
+ headers: headerParameters,
177
+ query: queryParameters,
178
+ }, initOverrides);
179
+
180
+ return new runtime.VoidApiResponse(response);
181
+ }
182
+
183
+ /**
184
+ */
185
+ async publicDomainControllerGetCaddy(requestParameters: DomainsPublicApiPublicDomainControllerGetCaddyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
186
+ await this.publicDomainControllerGetCaddyRaw(requestParameters, initOverrides);
187
+ }
188
+
189
+ /**
190
+ */
191
+ async publicDomainControllerGetDomainIdentifierRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
192
+ if (requestParameters['domainName'] == null) {
193
+ throw new runtime.RequiredError(
194
+ 'domainName',
195
+ 'Required parameter "domainName" was null or undefined when calling publicDomainControllerGetDomainIdentifier().'
196
+ );
197
+ }
198
+
199
+ const queryParameters: any = {};
200
+
201
+ const headerParameters: runtime.HTTPHeaders = {};
202
+
203
+ const response = await this.request({
204
+ path: `/domains/by-name/{domainName}/identifier`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
205
+ method: 'GET',
206
+ headers: headerParameters,
207
+ query: queryParameters,
208
+ }, initOverrides);
209
+
210
+ return new runtime.JSONApiResponse<any>(response);
211
+ }
212
+
213
+ /**
214
+ */
215
+ async publicDomainControllerGetDomainIdentifier(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
216
+ const response = await this.publicDomainControllerGetDomainIdentifierRaw(requestParameters, initOverrides);
217
+ return await response.value();
218
+ }
219
+
220
+ /**
221
+ */
222
+ async publicDomainControllerGetSidnRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetSidnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
223
+ if (requestParameters['domain'] == null) {
224
+ throw new runtime.RequiredError(
225
+ 'domain',
226
+ 'Required parameter "domain" was null or undefined when calling publicDomainControllerGetSidn().'
227
+ );
228
+ }
229
+
230
+ const queryParameters: any = {};
231
+
232
+ if (requestParameters['domain'] != null) {
233
+ queryParameters['domain'] = requestParameters['domain'];
234
+ }
235
+
236
+ const headerParameters: runtime.HTTPHeaders = {};
237
+
238
+ const response = await this.request({
239
+ path: `/sidn`,
240
+ method: 'GET',
241
+ headers: headerParameters,
242
+ query: queryParameters,
243
+ }, initOverrides);
244
+
245
+ return new runtime.VoidApiResponse(response);
246
+ }
247
+
248
+ /**
249
+ */
250
+ async publicDomainControllerGetSidn(requestParameters: DomainsPublicApiPublicDomainControllerGetSidnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
251
+ await this.publicDomainControllerGetSidnRaw(requestParameters, initOverrides);
252
+ }
253
+
143
254
  }
@@ -34,12 +34,30 @@ import {
34
34
  * @interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
35
35
  */
36
36
  export interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
41
+ */
42
+ aiModel: string;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
47
+ */
48
+ aiModelTemperature: number;
37
49
  /**
38
50
  *
39
51
  * @type {string}
40
52
  * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
41
53
  */
42
54
  domainName: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
59
+ */
60
+ locale: string;
43
61
  /**
44
62
  *
45
63
  * @type {MoneyDto}
@@ -106,7 +124,10 @@ export type SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnu
106
124
  * Check if a given object implements the SendAdminLeadAiPriceNegotiatorAgentChatMessageInput interface.
107
125
  */
108
126
  export function instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput(value: object): value is SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
127
+ if (!('aiModel' in value) || value['aiModel'] === undefined) return false;
128
+ if (!('aiModelTemperature' in value) || value['aiModelTemperature'] === undefined) return false;
109
129
  if (!('domainName' in value) || value['domainName'] === undefined) return false;
130
+ if (!('locale' in value) || value['locale'] === undefined) return false;
110
131
  if (!('offer' in value) || value['offer'] === undefined) return false;
111
132
  if (!('sellImportance' in value) || value['sellImportance'] === undefined) return false;
112
133
  if (!('generalPrompt' in value) || value['generalPrompt'] === undefined) return false;
@@ -128,7 +149,10 @@ export function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped
128
149
  }
129
150
  return {
130
151
 
152
+ 'aiModel': json['aiModel'],
153
+ 'aiModelTemperature': json['aiModelTemperature'],
131
154
  'domainName': json['domainName'],
155
+ 'locale': json['locale'],
132
156
  'offer': MoneyDtoFromJSON(json['offer']),
133
157
  'sellImportance': json['sellImportance'],
134
158
  'generalPrompt': json['generalPrompt'],
@@ -151,7 +175,10 @@ export function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped(v
151
175
 
152
176
  return {
153
177
 
178
+ 'aiModel': value['aiModel'],
179
+ 'aiModelTemperature': value['aiModelTemperature'],
154
180
  'domainName': value['domainName'],
181
+ 'locale': value['locale'],
155
182
  'offer': MoneyDtoToJSON(value['offer']),
156
183
  'sellImportance': value['sellImportance'],
157
184
  'generalPrompt': value['generalPrompt'],