@randock/nameshift-api-client 0.0.238 → 0.0.240

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.
@@ -209,6 +209,7 @@ src/models/SellerSecurityUserAccountDto.ts
209
209
  src/models/SellerSecurityUserDto.ts
210
210
  src/models/SellerSubscriptionListItemDto.ts
211
211
  src/models/SellerSubscriptionListItemDtoDomainInformation.ts
212
+ src/models/SendAdminLeadAiPriceNegotiatorAgentChatMessageInput.ts
212
213
  src/models/SeoMetricsDto.ts
213
214
  src/models/SepaBankAccountDetails.ts
214
215
  src/models/SetDomainTransferConfirmationInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.238
1
+ ## @randock/nameshift-api-client@0.0.240
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.238 --save
39
+ npm install @randock/nameshift-api-client@0.0.240 --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
- bcefc8f7d1eb451df26fa36b4c94a2f52d5dc399af2ca5a2bd9bc08e5cbb74881a957323694a791144b2c03bd482e8ce
47
+ bdf85d28d6ad895471f3a90da137b3cec46ce0882585cc0f1fd806b40ac9d15edebf0fe2c3b4455bb203ea923a121660
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -100,6 +100,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
100
100
  stepName: string;
101
101
  actionName: string;
102
102
  }
103
+ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
104
+ sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
105
+ }
103
106
  export interface AdminApiUpdateAccountSettingsRequest {
104
107
  accountId: string;
105
108
  adminAccountSettingsInput: AdminAccountSettingsInput;
@@ -271,6 +274,14 @@ export declare class AdminApi extends runtime.BaseAPI {
271
274
  *
272
275
  */
273
276
  postAdminExecuteDomainTransferStepAction(requestParameters: AdminApiPostAdminExecuteDomainTransferStepActionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
277
+ /**
278
+ *
279
+ */
280
+ postAiPriceNegotiatorAgentChatMessageRaw(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>>;
281
+ /**
282
+ *
283
+ */
284
+ postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto>;
274
285
  /**
275
286
  *
276
287
  */
@@ -1222,6 +1222,61 @@ var AdminApi = /** @class */ (function (_super) {
1222
1222
  });
1223
1223
  });
1224
1224
  };
1225
+ /**
1226
+ *
1227
+ */
1228
+ AdminApi.prototype.postAiPriceNegotiatorAgentChatMessageRaw = function (requestParameters, initOverrides) {
1229
+ return __awaiter(this, void 0, void 0, function () {
1230
+ var queryParameters, headerParameters, token, tokenString, response;
1231
+ return __generator(this, function (_a) {
1232
+ switch (_a.label) {
1233
+ case 0:
1234
+ if (requestParameters['sendAdminLeadAiPriceNegotiatorAgentChatMessageInput'] == null) {
1235
+ throw new runtime.RequiredError('sendAdminLeadAiPriceNegotiatorAgentChatMessageInput', 'Required parameter "sendAdminLeadAiPriceNegotiatorAgentChatMessageInput" was null or undefined when calling postAiPriceNegotiatorAgentChatMessage().');
1236
+ }
1237
+ queryParameters = {};
1238
+ headerParameters = {};
1239
+ headerParameters['Content-Type'] = 'application/json';
1240
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1241
+ token = this.configuration.accessToken;
1242
+ return [4 /*yield*/, token("bearer", [])];
1243
+ case 1:
1244
+ tokenString = _a.sent();
1245
+ if (tokenString) {
1246
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1247
+ }
1248
+ _a.label = 2;
1249
+ case 2: return [4 /*yield*/, this.request({
1250
+ path: "/admin/leads/ai-price-negotiator-agent/chat/message",
1251
+ method: 'POST',
1252
+ headers: headerParameters,
1253
+ query: queryParameters,
1254
+ body: (0, index_1.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON)(requestParameters['sendAdminLeadAiPriceNegotiatorAgentChatMessageInput']),
1255
+ }, initOverrides)];
1256
+ case 3:
1257
+ response = _a.sent();
1258
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadMessageDtoFromJSON)(jsonValue); })];
1259
+ }
1260
+ });
1261
+ });
1262
+ };
1263
+ /**
1264
+ *
1265
+ */
1266
+ AdminApi.prototype.postAiPriceNegotiatorAgentChatMessage = function (requestParameters, initOverrides) {
1267
+ return __awaiter(this, void 0, void 0, function () {
1268
+ var response;
1269
+ return __generator(this, function (_a) {
1270
+ switch (_a.label) {
1271
+ case 0: return [4 /*yield*/, this.postAiPriceNegotiatorAgentChatMessageRaw(requestParameters, initOverrides)];
1272
+ case 1:
1273
+ response = _a.sent();
1274
+ return [4 /*yield*/, response.value()];
1275
+ case 2: return [2 /*return*/, _a.sent()];
1276
+ }
1277
+ });
1278
+ });
1279
+ };
1225
1280
  /**
1226
1281
  *
1227
1282
  */
@@ -96,6 +96,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
96
96
  readonly RENT: "RENT";
97
97
  readonly SEO_METRICS: "SEO_METRICS";
98
98
  readonly BANK_PAYOUTS: "BANK_PAYOUTS";
99
+ readonly ZERO_COMMISSION: "ZERO_COMMISSION";
99
100
  };
100
101
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
101
102
  /**
@@ -32,7 +32,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
32
32
  LEASE_TO_OWN: 'LEASE_TO_OWN',
33
33
  RENT: 'RENT',
34
34
  SEO_METRICS: 'SEO_METRICS',
35
- BANK_PAYOUTS: 'BANK_PAYOUTS'
35
+ BANK_PAYOUTS: 'BANK_PAYOUTS',
36
+ ZERO_COMMISSION: 'ZERO_COMMISSION'
36
37
  };
37
38
  /**
38
39
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -0,0 +1,91 @@
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 { MoneyDto } from './MoneyDto';
13
+ import type { LeadMessageDto } from './LeadMessageDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
18
+ */
19
+ export interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
24
+ */
25
+ domainName: string;
26
+ /**
27
+ *
28
+ * @type {MoneyDto}
29
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
30
+ */
31
+ offer: MoneyDto;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
36
+ */
37
+ sellImportance: SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
42
+ */
43
+ generalPrompt: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
48
+ */
49
+ sellImportanceLowPrompt: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
54
+ */
55
+ sellImportanceMediumPrompt: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
60
+ */
61
+ sellImportanceHighPrompt: string;
62
+ /**
63
+ *
64
+ * @type {Array<LeadMessageDto>}
65
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
66
+ */
67
+ chatHistory: Array<LeadMessageDto>;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
72
+ */
73
+ buyerMessage: string;
74
+ }
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum: {
79
+ readonly LOW: "low";
80
+ readonly MEDIUM: "medium";
81
+ readonly HIGH: "high";
82
+ };
83
+ export type SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum = typeof SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum[keyof typeof SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum];
84
+ /**
85
+ * Check if a given object implements the SendAdminLeadAiPriceNegotiatorAgentChatMessageInput interface.
86
+ */
87
+ export declare function instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput(value: object): value is SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
88
+ export declare function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON(json: any): SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
89
+ export declare function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
90
+ export declare function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON(json: any): SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
91
+ export declare function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped(value?: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,94 @@
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.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum = void 0;
17
+ exports.instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput = instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
18
+ exports.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON = SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON;
19
+ exports.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped = SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped;
20
+ exports.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON = SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON;
21
+ exports.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped = SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped;
22
+ var MoneyDto_1 = require("./MoneyDto");
23
+ var LeadMessageDto_1 = require("./LeadMessageDto");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum = {
28
+ LOW: 'low',
29
+ MEDIUM: 'medium',
30
+ HIGH: 'high'
31
+ };
32
+ /**
33
+ * Check if a given object implements the SendAdminLeadAiPriceNegotiatorAgentChatMessageInput interface.
34
+ */
35
+ function instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput(value) {
36
+ if (!('domainName' in value) || value['domainName'] === undefined)
37
+ return false;
38
+ if (!('offer' in value) || value['offer'] === undefined)
39
+ return false;
40
+ if (!('sellImportance' in value) || value['sellImportance'] === undefined)
41
+ return false;
42
+ if (!('generalPrompt' in value) || value['generalPrompt'] === undefined)
43
+ return false;
44
+ if (!('sellImportanceLowPrompt' in value) || value['sellImportanceLowPrompt'] === undefined)
45
+ return false;
46
+ if (!('sellImportanceMediumPrompt' in value) || value['sellImportanceMediumPrompt'] === undefined)
47
+ return false;
48
+ if (!('sellImportanceHighPrompt' in value) || value['sellImportanceHighPrompt'] === undefined)
49
+ return false;
50
+ if (!('chatHistory' in value) || value['chatHistory'] === undefined)
51
+ return false;
52
+ if (!('buyerMessage' in value) || value['buyerMessage'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON(json) {
57
+ return SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped(json, false);
58
+ }
59
+ function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'domainName': json['domainName'],
65
+ 'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
66
+ 'sellImportance': json['sellImportance'],
67
+ 'generalPrompt': json['generalPrompt'],
68
+ 'sellImportanceLowPrompt': json['sellImportanceLowPrompt'],
69
+ 'sellImportanceMediumPrompt': json['sellImportanceMediumPrompt'],
70
+ 'sellImportanceHighPrompt': json['sellImportanceHighPrompt'],
71
+ 'chatHistory': (json['chatHistory'].map(LeadMessageDto_1.LeadMessageDtoFromJSON)),
72
+ 'buyerMessage': json['buyerMessage'],
73
+ };
74
+ }
75
+ function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON(json) {
76
+ return SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped(json, false);
77
+ }
78
+ function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped(value, ignoreDiscriminator) {
79
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'domainName': value['domainName'],
85
+ 'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
86
+ 'sellImportance': value['sellImportance'],
87
+ 'generalPrompt': value['generalPrompt'],
88
+ 'sellImportanceLowPrompt': value['sellImportanceLowPrompt'],
89
+ 'sellImportanceMediumPrompt': value['sellImportanceMediumPrompt'],
90
+ 'sellImportanceHighPrompt': value['sellImportanceHighPrompt'],
91
+ 'chatHistory': (value['chatHistory'].map(LeadMessageDto_1.LeadMessageDtoToJSON)),
92
+ 'buyerMessage': value['buyerMessage'],
93
+ };
94
+ }
@@ -181,6 +181,7 @@ export * from './SellerSecurityUserAccountDto';
181
181
  export * from './SellerSecurityUserDto';
182
182
  export * from './SellerSubscriptionListItemDto';
183
183
  export * from './SellerSubscriptionListItemDtoDomainInformation';
184
+ export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
184
185
  export * from './SeoMetricsDto';
185
186
  export * from './SepaBankAccountDetails';
186
187
  export * from './SetDomainTransferConfirmationInput';
@@ -199,6 +199,7 @@ __exportStar(require("./SellerSecurityUserAccountDto"), exports);
199
199
  __exportStar(require("./SellerSecurityUserDto"), exports);
200
200
  __exportStar(require("./SellerSubscriptionListItemDto"), exports);
201
201
  __exportStar(require("./SellerSubscriptionListItemDtoDomainInformation"), exports);
202
+ __exportStar(require("./SendAdminLeadAiPriceNegotiatorAgentChatMessageInput"), exports);
202
203
  __exportStar(require("./SeoMetricsDto"), exports);
203
204
  __exportStar(require("./SepaBankAccountDetails"), exports);
204
205
  __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.238",
3
+ "version": "0.0.240",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -28,10 +28,12 @@ import type {
28
28
  GetAllOwnedDomains200Response,
29
29
  GetAllSubscriptions200Response,
30
30
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
31
+ LeadMessageDto,
31
32
  ListAccounts200Response,
32
33
  ListBankAccounts200Response,
33
34
  ListDomains200Response,
34
35
  NotFoundException,
36
+ SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
35
37
  SubscriptionDetailsDto,
36
38
  ThrottlerException,
37
39
  ValidationException,
@@ -63,6 +65,8 @@ import {
63
65
  GetAllSubscriptions200ResponseToJSON,
64
66
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON,
65
67
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
68
+ LeadMessageDtoFromJSON,
69
+ LeadMessageDtoToJSON,
66
70
  ListAccounts200ResponseFromJSON,
67
71
  ListAccounts200ResponseToJSON,
68
72
  ListBankAccounts200ResponseFromJSON,
@@ -71,6 +75,8 @@ import {
71
75
  ListDomains200ResponseToJSON,
72
76
  NotFoundExceptionFromJSON,
73
77
  NotFoundExceptionToJSON,
78
+ SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON,
79
+ SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON,
74
80
  SubscriptionDetailsDtoFromJSON,
75
81
  SubscriptionDetailsDtoToJSON,
76
82
  ThrottlerExceptionFromJSON,
@@ -188,6 +194,10 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
188
194
  actionName: string;
189
195
  }
190
196
 
197
+ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
198
+ sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
199
+ }
200
+
191
201
  export interface AdminApiUpdateAccountSettingsRequest {
192
202
  accountId: string;
193
203
  adminAccountSettingsInput: AdminAccountSettingsInput;
@@ -1129,6 +1139,50 @@ export class AdminApi extends runtime.BaseAPI {
1129
1139
  await this.postAdminExecuteDomainTransferStepActionRaw(requestParameters, initOverrides);
1130
1140
  }
1131
1141
 
1142
+ /**
1143
+ *
1144
+ */
1145
+ async postAiPriceNegotiatorAgentChatMessageRaw(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>> {
1146
+ if (requestParameters['sendAdminLeadAiPriceNegotiatorAgentChatMessageInput'] == null) {
1147
+ throw new runtime.RequiredError(
1148
+ 'sendAdminLeadAiPriceNegotiatorAgentChatMessageInput',
1149
+ 'Required parameter "sendAdminLeadAiPriceNegotiatorAgentChatMessageInput" was null or undefined when calling postAiPriceNegotiatorAgentChatMessage().'
1150
+ );
1151
+ }
1152
+
1153
+ const queryParameters: any = {};
1154
+
1155
+ const headerParameters: runtime.HTTPHeaders = {};
1156
+
1157
+ headerParameters['Content-Type'] = 'application/json';
1158
+
1159
+ if (this.configuration && this.configuration.accessToken) {
1160
+ const token = this.configuration.accessToken;
1161
+ const tokenString = await token("bearer", []);
1162
+
1163
+ if (tokenString) {
1164
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1165
+ }
1166
+ }
1167
+ const response = await this.request({
1168
+ path: `/admin/leads/ai-price-negotiator-agent/chat/message`,
1169
+ method: 'POST',
1170
+ headers: headerParameters,
1171
+ query: queryParameters,
1172
+ body: SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON(requestParameters['sendAdminLeadAiPriceNegotiatorAgentChatMessageInput']),
1173
+ }, initOverrides);
1174
+
1175
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadMessageDtoFromJSON(jsonValue));
1176
+ }
1177
+
1178
+ /**
1179
+ *
1180
+ */
1181
+ async postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto> {
1182
+ const response = await this.postAiPriceNegotiatorAgentChatMessageRaw(requestParameters, initOverrides);
1183
+ return await response.value();
1184
+ }
1185
+
1132
1186
  /**
1133
1187
  *
1134
1188
  */
@@ -138,7 +138,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
138
138
  LEASE_TO_OWN: 'LEASE_TO_OWN',
139
139
  RENT: 'RENT',
140
140
  SEO_METRICS: 'SEO_METRICS',
141
- BANK_PAYOUTS: 'BANK_PAYOUTS'
141
+ BANK_PAYOUTS: 'BANK_PAYOUTS',
142
+ ZERO_COMMISSION: 'ZERO_COMMISSION'
142
143
  } as const;
143
144
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
144
145
 
@@ -0,0 +1,165 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+ import type { LeadMessageDto } from './LeadMessageDto';
24
+ import {
25
+ LeadMessageDtoFromJSON,
26
+ LeadMessageDtoFromJSONTyped,
27
+ LeadMessageDtoToJSON,
28
+ LeadMessageDtoToJSONTyped,
29
+ } from './LeadMessageDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
35
+ */
36
+ export interface SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
41
+ */
42
+ domainName: string;
43
+ /**
44
+ *
45
+ * @type {MoneyDto}
46
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
47
+ */
48
+ offer: MoneyDto;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
53
+ */
54
+ sellImportance: SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
59
+ */
60
+ generalPrompt: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
65
+ */
66
+ sellImportanceLowPrompt: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
71
+ */
72
+ sellImportanceMediumPrompt: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
77
+ */
78
+ sellImportanceHighPrompt: string;
79
+ /**
80
+ *
81
+ * @type {Array<LeadMessageDto>}
82
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
83
+ */
84
+ chatHistory: Array<LeadMessageDto>;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof SendAdminLeadAiPriceNegotiatorAgentChatMessageInput
89
+ */
90
+ buyerMessage: string;
91
+ }
92
+
93
+
94
+ /**
95
+ * @export
96
+ */
97
+ export const SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum = {
98
+ LOW: 'low',
99
+ MEDIUM: 'medium',
100
+ HIGH: 'high'
101
+ } as const;
102
+ export type SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum = typeof SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum[keyof typeof SendAdminLeadAiPriceNegotiatorAgentChatMessageInputSellImportanceEnum];
103
+
104
+
105
+ /**
106
+ * Check if a given object implements the SendAdminLeadAiPriceNegotiatorAgentChatMessageInput interface.
107
+ */
108
+ export function instanceOfSendAdminLeadAiPriceNegotiatorAgentChatMessageInput(value: object): value is SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
109
+ if (!('domainName' in value) || value['domainName'] === undefined) return false;
110
+ if (!('offer' in value) || value['offer'] === undefined) return false;
111
+ if (!('sellImportance' in value) || value['sellImportance'] === undefined) return false;
112
+ if (!('generalPrompt' in value) || value['generalPrompt'] === undefined) return false;
113
+ if (!('sellImportanceLowPrompt' in value) || value['sellImportanceLowPrompt'] === undefined) return false;
114
+ if (!('sellImportanceMediumPrompt' in value) || value['sellImportanceMediumPrompt'] === undefined) return false;
115
+ if (!('sellImportanceHighPrompt' in value) || value['sellImportanceHighPrompt'] === undefined) return false;
116
+ if (!('chatHistory' in value) || value['chatHistory'] === undefined) return false;
117
+ if (!('buyerMessage' in value) || value['buyerMessage'] === undefined) return false;
118
+ return true;
119
+ }
120
+
121
+ export function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON(json: any): SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
122
+ return SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped(json, false);
123
+ }
124
+
125
+ export function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
126
+ if (json == null) {
127
+ return json;
128
+ }
129
+ return {
130
+
131
+ 'domainName': json['domainName'],
132
+ 'offer': MoneyDtoFromJSON(json['offer']),
133
+ 'sellImportance': json['sellImportance'],
134
+ 'generalPrompt': json['generalPrompt'],
135
+ 'sellImportanceLowPrompt': json['sellImportanceLowPrompt'],
136
+ 'sellImportanceMediumPrompt': json['sellImportanceMediumPrompt'],
137
+ 'sellImportanceHighPrompt': json['sellImportanceHighPrompt'],
138
+ 'chatHistory': ((json['chatHistory'] as Array<any>).map(LeadMessageDtoFromJSON)),
139
+ 'buyerMessage': json['buyerMessage'],
140
+ };
141
+ }
142
+
143
+ export function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON(json: any): SendAdminLeadAiPriceNegotiatorAgentChatMessageInput {
144
+ return SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped(json, false);
145
+ }
146
+
147
+ export function SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSONTyped(value?: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput | null, ignoreDiscriminator: boolean = false): any {
148
+ if (value == null) {
149
+ return value;
150
+ }
151
+
152
+ return {
153
+
154
+ 'domainName': value['domainName'],
155
+ 'offer': MoneyDtoToJSON(value['offer']),
156
+ 'sellImportance': value['sellImportance'],
157
+ 'generalPrompt': value['generalPrompt'],
158
+ 'sellImportanceLowPrompt': value['sellImportanceLowPrompt'],
159
+ 'sellImportanceMediumPrompt': value['sellImportanceMediumPrompt'],
160
+ 'sellImportanceHighPrompt': value['sellImportanceHighPrompt'],
161
+ 'chatHistory': ((value['chatHistory'] as Array<any>).map(LeadMessageDtoToJSON)),
162
+ 'buyerMessage': value['buyerMessage'],
163
+ };
164
+ }
165
+
@@ -183,6 +183,7 @@ export * from './SellerSecurityUserAccountDto';
183
183
  export * from './SellerSecurityUserDto';
184
184
  export * from './SellerSubscriptionListItemDto';
185
185
  export * from './SellerSubscriptionListItemDtoDomainInformation';
186
+ export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
186
187
  export * from './SeoMetricsDto';
187
188
  export * from './SepaBankAccountDetails';
188
189
  export * from './SetDomainTransferConfirmationInput';