@randock/nameshift-api-client 0.0.538 → 0.0.540
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/.openapi-generator/FILES +20 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +36 -1
- package/dist/apis/AdminApi.js +136 -0
- package/dist/apis/BrokeredLeadsApi.d.ts +195 -0
- package/dist/apis/BrokeredLeadsApi.js +912 -0
- package/dist/apis/BrokeredLeadsPublicApi.d.ts +31 -0
- package/dist/apis/BrokeredLeadsPublicApi.js +126 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountBrokerSettingsInput.d.ts +38 -0
- package/dist/models/AccountBrokerSettingsInput.js +51 -0
- package/dist/models/AccountDto.d.ts +12 -0
- package/dist/models/AccountDto.js +8 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +2 -1
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +2 -1
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +2 -1
- package/dist/models/AccountNotificationDto.d.ts +1 -0
- package/dist/models/AccountNotificationDto.js +2 -1
- package/dist/models/AccountSettingsBrokerDto.d.ts +38 -0
- package/dist/models/AccountSettingsBrokerDto.js +55 -0
- package/dist/models/AccountSettingsDto.d.ts +7 -0
- package/dist/models/AccountSettingsDto.js +5 -0
- package/dist/models/AccountSettingsInput.d.ts +7 -0
- package/dist/models/AccountSettingsInput.js +3 -0
- package/dist/models/AdminBrokeredLeadDto.d.ts +248 -0
- package/dist/models/AdminBrokeredLeadDto.js +204 -0
- package/dist/models/AdminListBrokeredLeads200Response.d.ts +47 -0
- package/dist/models/AdminListBrokeredLeads200Response.js +62 -0
- package/dist/models/ApiKeyDto.d.ts +2 -0
- package/dist/models/ApiKeyDto.js +2 -0
- package/dist/models/ApiKeyScopeDto.d.ts +2 -0
- package/dist/models/ApiKeyScopeDto.js +2 -0
- package/dist/models/BrokerBrokeredLeadDto.d.ts +189 -0
- package/dist/models/BrokerBrokeredLeadDto.js +162 -0
- package/dist/models/BrokerCommissionInput.d.ts +52 -0
- package/dist/models/BrokerCommissionInput.js +63 -0
- package/dist/models/BrokeredLeadBreakdownDto.d.ts +58 -0
- package/dist/models/BrokeredLeadBreakdownDto.js +69 -0
- package/dist/models/BrokeredLeadBuyerContactDto.d.ts +50 -0
- package/dist/models/BrokeredLeadBuyerContactDto.js +63 -0
- package/dist/models/BrokeredLeadBuyerInput.d.ts +50 -0
- package/dist/models/BrokeredLeadBuyerInput.js +63 -0
- package/dist/models/BrokeredLeadCommissionDto.d.ts +71 -0
- package/dist/models/BrokeredLeadCommissionDto.js +80 -0
- package/dist/models/BrokeredLeadInvitationDto.d.ts +57 -0
- package/dist/models/BrokeredLeadInvitationDto.js +68 -0
- package/dist/models/BuyerInvoiceDto.d.ts +6 -0
- package/dist/models/BuyerInvoiceDto.js +4 -0
- package/dist/models/BuyerNotificationDto.d.ts +6 -0
- package/dist/models/BuyerNotificationDto.js +7 -1
- package/dist/models/BuyerNotificationListItemDto.d.ts +6 -0
- package/dist/models/BuyerNotificationListItemDto.js +7 -1
- package/dist/models/CommissionDto.d.ts +1 -0
- package/dist/models/CommissionDto.js +2 -1
- package/dist/models/CommissionPayloadInput.d.ts +1 -0
- package/dist/models/CommissionPayloadInput.js +2 -1
- package/dist/models/CommissionReasonDto.d.ts +1 -0
- package/dist/models/CommissionReasonDto.js +2 -1
- package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
- package/dist/models/CommissionSimulationItemInput.js +2 -1
- package/dist/models/CreateApiKeyInput.d.ts +2 -0
- package/dist/models/CreateApiKeyInput.js +2 -0
- package/dist/models/CreateBrokeredLeadInput.d.ts +59 -0
- package/dist/models/CreateBrokeredLeadInput.js +68 -0
- package/dist/models/CreatedApiKeyDto.d.ts +2 -0
- package/dist/models/CreatedApiKeyDto.js +2 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +6 -0
- package/dist/models/CustomerSuccessListAccountDto.js +4 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.d.ts +6 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.js +4 -0
- package/dist/models/DeclineBrokeredLeadInput.d.ts +32 -0
- package/dist/models/DeclineBrokeredLeadInput.js +49 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +13 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +9 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
- package/dist/models/InvoiceDto.d.ts +6 -0
- package/dist/models/InvoiceDto.js +4 -0
- package/dist/models/LeadBrokeredDealDto.d.ts +39 -0
- package/dist/models/LeadBrokeredDealDto.js +56 -0
- package/dist/models/ListAccountMetricsDto.d.ts +6 -0
- package/dist/models/ListAccountMetricsDto.js +4 -0
- package/dist/models/ListBrokerLeads200Response.d.ts +47 -0
- package/dist/models/ListBrokerLeads200Response.js +62 -0
- package/dist/models/ListLeadsResultItem.d.ts +7 -0
- package/dist/models/ListLeadsResultItem.js +5 -0
- package/dist/models/ManualLeadDetails.d.ts +7 -0
- package/dist/models/ManualLeadDetails.js +5 -0
- package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.d.ts +38 -0
- package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.js +55 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +19 -0
- package/dist/models/PrivateAccountGetMeResponse.js +13 -0
- package/dist/models/RegisterAccountInput.d.ts +6 -0
- package/dist/models/RegisterAccountInput.js +2 -0
- package/dist/models/SellerBrokeredLeadDto.d.ts +114 -0
- package/dist/models/SellerBrokeredLeadDto.js +111 -0
- package/dist/models/SellerBrokeredLeadVerificationDto.d.ts +44 -0
- package/dist/models/SellerBrokeredLeadVerificationDto.js +59 -0
- package/dist/models/SellerInvoiceDto.d.ts +6 -0
- package/dist/models/SellerInvoiceDto.js +4 -0
- package/dist/models/SimulateCommissionInput.d.ts +1 -0
- package/dist/models/SimulateCommissionInput.js +2 -1
- package/dist/models/UpdateApiKeyInput.d.ts +2 -0
- package/dist/models/UpdateApiKeyInput.js +2 -0
- package/dist/models/UserNotificationDto.d.ts +6 -0
- package/dist/models/UserNotificationDto.js +7 -1
- package/dist/models/UserNotificationListItemDto.d.ts +6 -0
- package/dist/models/UserNotificationListItemDto.js +7 -1
- package/dist/models/WithSettingsInner.d.ts +11 -4
- package/dist/models/WithSettingsInner.js +9 -4
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +145 -0
- package/src/apis/BrokeredLeadsApi.ts +740 -0
- package/src/apis/BrokeredLeadsPublicApi.ts +69 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountBrokerSettingsInput.ts +73 -0
- package/src/models/AccountDto.ts +18 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +2 -1
- package/src/models/AccountNameshiftCommissionItemDto.ts +2 -1
- package/src/models/AccountNameshiftCommissionReasonDto.ts +2 -1
- package/src/models/AccountNotificationDto.ts +2 -1
- package/src/models/AccountSettingsBrokerDto.ts +75 -0
- package/src/models/AccountSettingsDto.ts +16 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AdminBrokeredLeadDto.ts +404 -0
- package/src/models/AdminListBrokeredLeads200Response.ts +106 -0
- package/src/models/ApiKeyDto.ts +2 -0
- package/src/models/ApiKeyScopeDto.ts +2 -0
- package/src/models/BrokerBrokeredLeadDto.ts +320 -0
- package/src/models/BrokerCommissionInput.ts +93 -0
- package/src/models/BrokeredLeadBreakdownDto.ts +117 -0
- package/src/models/BrokeredLeadBuyerContactDto.ts +93 -0
- package/src/models/BrokeredLeadBuyerInput.ts +93 -0
- package/src/models/BrokeredLeadCommissionDto.ts +130 -0
- package/src/models/BrokeredLeadInvitationDto.ts +110 -0
- package/src/models/BuyerInvoiceDto.ts +9 -0
- package/src/models/BuyerNotificationDto.ts +7 -1
- package/src/models/BuyerNotificationListItemDto.ts +7 -1
- package/src/models/CommissionDto.ts +2 -1
- package/src/models/CommissionPayloadInput.ts +2 -1
- package/src/models/CommissionReasonDto.ts +2 -1
- package/src/models/CommissionSimulationItemInput.ts +2 -1
- package/src/models/CreateApiKeyInput.ts +2 -0
- package/src/models/CreateBrokeredLeadInput.ts +123 -0
- package/src/models/CreatedApiKeyDto.ts +2 -0
- package/src/models/CustomerSuccessListAccountDto.ts +9 -0
- package/src/models/CustomerSuccessListAccountMetricsDto.ts +9 -0
- package/src/models/DeclineBrokeredLeadInput.ts +65 -0
- package/src/models/FeatureFlagListItemDto.ts +1 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +19 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +1 -1
- package/src/models/InvoiceDto.ts +9 -0
- package/src/models/LeadBrokeredDealDto.ts +83 -0
- package/src/models/ListAccountMetricsDto.ts +9 -0
- package/src/models/ListBrokerLeads200Response.ts +106 -0
- package/src/models/ListLeadsResultItem.ts +16 -0
- package/src/models/ManualLeadDetails.ts +16 -0
- package/src/models/OverrideBrokeredLeadNameshiftCommissionInput.ts +75 -0
- package/src/models/PrivateAccountGetMeResponse.ts +28 -0
- package/src/models/RegisterAccountInput.ts +8 -0
- package/src/models/SellerBrokeredLeadDto.ts +215 -0
- package/src/models/SellerBrokeredLeadVerificationDto.ts +84 -0
- package/src/models/SellerInvoiceDto.ts +9 -0
- package/src/models/SimulateCommissionInput.ts +2 -1
- package/src/models/UpdateApiKeyInput.ts +2 -0
- package/src/models/UserNotificationDto.ts +7 -1
- package/src/models/UserNotificationListItemDto.ts +7 -1
- package/src/models/WithSettingsInner.ts +44 -28
- package/src/models/index.ts +18 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { BrokeredLeadInvitationDto } from '../models/index';
|
|
14
|
+
export interface BrokeredLeadsPublicApiGetBrokeredLeadInvitationRequest {
|
|
15
|
+
token: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class BrokeredLeadsPublicApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Returns the domain, broker and price of the deal behind a seller signup link, and whether the link can still be used.
|
|
23
|
+
* Get the deal a seller signup link invites for
|
|
24
|
+
*/
|
|
25
|
+
getBrokeredLeadInvitationRaw(requestParameters: BrokeredLeadsPublicApiGetBrokeredLeadInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrokeredLeadInvitationDto>>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the domain, broker and price of the deal behind a seller signup link, and whether the link can still be used.
|
|
28
|
+
* Get the deal a seller signup link invites for
|
|
29
|
+
*/
|
|
30
|
+
getBrokeredLeadInvitation(requestParameters: BrokeredLeadsPublicApiGetBrokeredLeadInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrokeredLeadInvitationDto>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["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.BrokeredLeadsPublicApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var BrokeredLeadsPublicApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(BrokeredLeadsPublicApi, _super);
|
|
75
|
+
function BrokeredLeadsPublicApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns the domain, broker and price of the deal behind a seller signup link, and whether the link can still be used.
|
|
80
|
+
* Get the deal a seller signup link invites for
|
|
81
|
+
*/
|
|
82
|
+
BrokeredLeadsPublicApi.prototype.getBrokeredLeadInvitationRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['token'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling getBrokeredLeadInvitation().');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
return [4 /*yield*/, this.request({
|
|
94
|
+
path: "/brokered-leads/invitations/{token}".replace("{".concat("token", "}"), encodeURIComponent(String(requestParameters['token']))),
|
|
95
|
+
method: 'GET',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
}, initOverrides)];
|
|
99
|
+
case 1:
|
|
100
|
+
response = _a.sent();
|
|
101
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BrokeredLeadInvitationDtoFromJSON)(jsonValue); })];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Returns the domain, broker and price of the deal behind a seller signup link, and whether the link can still be used.
|
|
108
|
+
* Get the deal a seller signup link invites for
|
|
109
|
+
*/
|
|
110
|
+
BrokeredLeadsPublicApi.prototype.getBrokeredLeadInvitation = 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.getBrokeredLeadInvitationRaw(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
|
+
return BrokeredLeadsPublicApi;
|
|
125
|
+
}(runtime.BaseAPI));
|
|
126
|
+
exports.BrokeredLeadsPublicApi = BrokeredLeadsPublicApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './AdminApi';
|
|
|
6
6
|
export * from './AuctionsApi';
|
|
7
7
|
export * from './AuctionsPublicApi';
|
|
8
8
|
export * from './BankAccountsApi';
|
|
9
|
+
export * from './BrokeredLeadsApi';
|
|
10
|
+
export * from './BrokeredLeadsPublicApi';
|
|
9
11
|
export * from './BuyersApi';
|
|
10
12
|
export * from './BuyersPublicApi';
|
|
11
13
|
export * from './ChallengesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -24,6 +24,8 @@ __exportStar(require("./AdminApi"), exports);
|
|
|
24
24
|
__exportStar(require("./AuctionsApi"), exports);
|
|
25
25
|
__exportStar(require("./AuctionsPublicApi"), exports);
|
|
26
26
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
27
|
+
__exportStar(require("./BrokeredLeadsApi"), exports);
|
|
28
|
+
__exportStar(require("./BrokeredLeadsPublicApi"), exports);
|
|
27
29
|
__exportStar(require("./BuyersApi"), exports);
|
|
28
30
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
29
31
|
__exportStar(require("./ChallengesApi"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 AccountBrokerSettingsInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountBrokerSettingsInput {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the account works as a broker. Brokers still need to complete the account verification before they can bring in deals.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AccountBrokerSettingsInput
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* ISO 639-1 codes of the languages the broker works in. Replaces the current list.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AccountBrokerSettingsInput
|
|
28
|
+
*/
|
|
29
|
+
spokenLanguages?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AccountBrokerSettingsInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAccountBrokerSettingsInput(value: object): value is AccountBrokerSettingsInput;
|
|
35
|
+
export declare function AccountBrokerSettingsInputFromJSON(json: any): AccountBrokerSettingsInput;
|
|
36
|
+
export declare function AccountBrokerSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBrokerSettingsInput;
|
|
37
|
+
export declare function AccountBrokerSettingsInputToJSON(json: any): AccountBrokerSettingsInput;
|
|
38
|
+
export declare function AccountBrokerSettingsInputToJSONTyped(value?: AccountBrokerSettingsInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfAccountBrokerSettingsInput = instanceOfAccountBrokerSettingsInput;
|
|
17
|
+
exports.AccountBrokerSettingsInputFromJSON = AccountBrokerSettingsInputFromJSON;
|
|
18
|
+
exports.AccountBrokerSettingsInputFromJSONTyped = AccountBrokerSettingsInputFromJSONTyped;
|
|
19
|
+
exports.AccountBrokerSettingsInputToJSON = AccountBrokerSettingsInputToJSON;
|
|
20
|
+
exports.AccountBrokerSettingsInputToJSONTyped = AccountBrokerSettingsInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountBrokerSettingsInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountBrokerSettingsInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AccountBrokerSettingsInputFromJSON(json) {
|
|
28
|
+
return AccountBrokerSettingsInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AccountBrokerSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
'spokenLanguages': json['spokenLanguages'] == null ? undefined : json['spokenLanguages'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AccountBrokerSettingsInputToJSON(json) {
|
|
40
|
+
return AccountBrokerSettingsInputToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AccountBrokerSettingsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'enabled': value['enabled'],
|
|
49
|
+
'spokenLanguages': value['spokenLanguages'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -80,6 +80,18 @@ export interface AccountDto {
|
|
|
80
80
|
* @memberof AccountDto
|
|
81
81
|
*/
|
|
82
82
|
canSell: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the account can bring in brokered deals: brokerage is switched on and the account is verified.
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof AccountDto
|
|
87
|
+
*/
|
|
88
|
+
canBroker: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the account can see the onboarding.
|
|
91
|
+
* @type {boolean}
|
|
92
|
+
* @memberof AccountDto
|
|
93
|
+
*/
|
|
94
|
+
canSeeOnboarding: boolean;
|
|
83
95
|
}
|
|
84
96
|
/**
|
|
85
97
|
* Check if a given object implements the AccountDto interface.
|
|
@@ -47,6 +47,10 @@ function instanceOfAccountDto(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('canSell' in value) || value['canSell'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
+
if (!('canBroker' in value) || value['canBroker'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('canSeeOnboarding' in value) || value['canSeeOnboarding'] === undefined)
|
|
53
|
+
return false;
|
|
50
54
|
return true;
|
|
51
55
|
}
|
|
52
56
|
function AccountDtoFromJSON(json) {
|
|
@@ -67,6 +71,8 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
71
|
'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
|
|
68
72
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
|
|
69
73
|
'canSell': json['canSell'],
|
|
74
|
+
'canBroker': json['canBroker'],
|
|
75
|
+
'canSeeOnboarding': json['canSeeOnboarding'],
|
|
70
76
|
};
|
|
71
77
|
}
|
|
72
78
|
function AccountDtoToJSON(json) {
|
|
@@ -88,5 +94,7 @@ function AccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
94
|
'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
|
|
89
95
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
|
|
90
96
|
'canSell': value['canSell'],
|
|
97
|
+
'canBroker': value['canBroker'],
|
|
98
|
+
'canSeeOnboarding': value['canSeeOnboarding'],
|
|
91
99
|
};
|
|
92
100
|
}
|
|
@@ -50,6 +50,7 @@ export declare const AccountNameshiftCommissionBySubtypeDtoSubtypeEnum: {
|
|
|
50
50
|
readonly ROUTED: "routed";
|
|
51
51
|
readonly MANUAL_LEAD: "manual_lead";
|
|
52
52
|
readonly AUCTION: "auction";
|
|
53
|
+
readonly BROKERED_LEAD: "brokered_lead";
|
|
53
54
|
};
|
|
54
55
|
export type AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum];
|
|
55
56
|
/**
|
|
@@ -28,7 +28,8 @@ exports.AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
|
|
|
28
28
|
NOT_POINTING: 'not_pointing',
|
|
29
29
|
ROUTED: 'routed',
|
|
30
30
|
MANUAL_LEAD: 'manual_lead',
|
|
31
|
-
AUCTION: 'auction'
|
|
31
|
+
AUCTION: 'auction',
|
|
32
|
+
BROKERED_LEAD: 'brokered_lead'
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* Check if a given object implements the AccountNameshiftCommissionBySubtypeDto interface.
|
|
@@ -74,6 +74,7 @@ export declare const AccountNameshiftCommissionItemDtoSubtypeEnum: {
|
|
|
74
74
|
readonly ROUTED: "routed";
|
|
75
75
|
readonly MANUAL_LEAD: "manual_lead";
|
|
76
76
|
readonly AUCTION: "auction";
|
|
77
|
+
readonly BROKERED_LEAD: "brokered_lead";
|
|
77
78
|
};
|
|
78
79
|
export type AccountNameshiftCommissionItemDtoSubtypeEnum = typeof AccountNameshiftCommissionItemDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionItemDtoSubtypeEnum];
|
|
79
80
|
/**
|
|
@@ -28,7 +28,8 @@ exports.AccountNameshiftCommissionItemDtoSubtypeEnum = {
|
|
|
28
28
|
NOT_POINTING: 'not_pointing',
|
|
29
29
|
ROUTED: 'routed',
|
|
30
30
|
MANUAL_LEAD: 'manual_lead',
|
|
31
|
-
AUCTION: 'auction'
|
|
31
|
+
AUCTION: 'auction',
|
|
32
|
+
BROKERED_LEAD: 'brokered_lead'
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* Check if a given object implements the AccountNameshiftCommissionItemDto interface.
|
|
@@ -113,6 +113,7 @@ export declare const AccountNameshiftCommissionReasonDtoSubtypeEnum: {
|
|
|
113
113
|
readonly ROUTED: "routed";
|
|
114
114
|
readonly MANUAL_LEAD: "manual_lead";
|
|
115
115
|
readonly AUCTION: "auction";
|
|
116
|
+
readonly BROKERED_LEAD: "brokered_lead";
|
|
116
117
|
};
|
|
117
118
|
export type AccountNameshiftCommissionReasonDtoSubtypeEnum = typeof AccountNameshiftCommissionReasonDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoSubtypeEnum];
|
|
118
119
|
/**
|
|
@@ -60,6 +60,7 @@ export declare const AccountNotificationDtoTypeEnum: {
|
|
|
60
60
|
readonly ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: "account.payment_provider.was_changed";
|
|
61
61
|
readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: "account.bank_account.verification_required";
|
|
62
62
|
readonly ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: "account.bank_account.required_to_receive_payouts";
|
|
63
|
+
readonly ACCOUNT_BROKERED_LEAD_APPROVAL_REQUIRED: "account.brokered_lead.approval_required";
|
|
63
64
|
};
|
|
64
65
|
export type AccountNotificationDtoTypeEnum = typeof AccountNotificationDtoTypeEnum[keyof typeof AccountNotificationDtoTypeEnum];
|
|
65
66
|
/**
|
|
@@ -37,7 +37,8 @@ exports.AccountNotificationDtoTypeEnum = {
|
|
|
37
37
|
ACCOUNT_PAYMENT_PROVIDER_NOT_ACTIVE: 'account.payment_provider.not_active',
|
|
38
38
|
ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: 'account.payment_provider.was_changed',
|
|
39
39
|
ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: 'account.bank_account.verification_required',
|
|
40
|
-
ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: 'account.bank_account.required_to_receive_payouts'
|
|
40
|
+
ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: 'account.bank_account.required_to_receive_payouts',
|
|
41
|
+
ACCOUNT_BROKERED_LEAD_APPROVAL_REQUIRED: 'account.brokered_lead.approval_required'
|
|
41
42
|
};
|
|
42
43
|
/**
|
|
43
44
|
* Check if a given object implements the AccountNotificationDto interface.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 AccountSettingsBrokerDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountSettingsBrokerDto {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the account works as a broker.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AccountSettingsBrokerDto
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* ISO 639-1 codes of the languages the broker works in.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AccountSettingsBrokerDto
|
|
28
|
+
*/
|
|
29
|
+
spokenLanguages: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AccountSettingsBrokerDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAccountSettingsBrokerDto(value: object): value is AccountSettingsBrokerDto;
|
|
35
|
+
export declare function AccountSettingsBrokerDtoFromJSON(json: any): AccountSettingsBrokerDto;
|
|
36
|
+
export declare function AccountSettingsBrokerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsBrokerDto;
|
|
37
|
+
export declare function AccountSettingsBrokerDtoToJSON(json: any): AccountSettingsBrokerDto;
|
|
38
|
+
export declare function AccountSettingsBrokerDtoToJSONTyped(value?: AccountSettingsBrokerDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfAccountSettingsBrokerDto = instanceOfAccountSettingsBrokerDto;
|
|
17
|
+
exports.AccountSettingsBrokerDtoFromJSON = AccountSettingsBrokerDtoFromJSON;
|
|
18
|
+
exports.AccountSettingsBrokerDtoFromJSONTyped = AccountSettingsBrokerDtoFromJSONTyped;
|
|
19
|
+
exports.AccountSettingsBrokerDtoToJSON = AccountSettingsBrokerDtoToJSON;
|
|
20
|
+
exports.AccountSettingsBrokerDtoToJSONTyped = AccountSettingsBrokerDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountSettingsBrokerDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountSettingsBrokerDto(value) {
|
|
25
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('spokenLanguages' in value) || value['spokenLanguages'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AccountSettingsBrokerDtoFromJSON(json) {
|
|
32
|
+
return AccountSettingsBrokerDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AccountSettingsBrokerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'enabled': json['enabled'],
|
|
40
|
+
'spokenLanguages': json['spokenLanguages'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AccountSettingsBrokerDtoToJSON(json) {
|
|
44
|
+
return AccountSettingsBrokerDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AccountSettingsBrokerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'enabled': value['enabled'],
|
|
53
|
+
'spokenLanguages': value['spokenLanguages'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -13,6 +13,7 @@ import type { LeadVerificationSettingsDto } from './LeadVerificationSettingsDto'
|
|
|
13
13
|
import type { MoneyDto } from './MoneyDto';
|
|
14
14
|
import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
|
|
15
15
|
import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
|
|
16
|
+
import type { AccountSettingsBrokerDto } from './AccountSettingsBrokerDto';
|
|
16
17
|
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
17
18
|
import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
|
|
18
19
|
import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
|
|
@@ -114,6 +115,12 @@ export interface AccountSettingsDto {
|
|
|
114
115
|
* @memberof AccountSettingsDto
|
|
115
116
|
*/
|
|
116
117
|
leadVerification: LeadVerificationSettingsDto;
|
|
118
|
+
/**
|
|
119
|
+
* Brokerage settings: whether the account works as a broker.
|
|
120
|
+
* @type {AccountSettingsBrokerDto}
|
|
121
|
+
* @memberof AccountSettingsDto
|
|
122
|
+
*/
|
|
123
|
+
broker: AccountSettingsBrokerDto;
|
|
117
124
|
/**
|
|
118
125
|
* When the buyer of an information request (a lead opened to ask for the price) may write and make offers: immediately, or only after the seller has written or made an offer.
|
|
119
126
|
* @type {string}
|
|
@@ -23,6 +23,7 @@ var LeadVerificationSettingsDto_1 = require("./LeadVerificationSettingsDto");
|
|
|
23
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
24
24
|
var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
|
|
25
25
|
var AccountSettingsAliasDto_1 = require("./AccountSettingsAliasDto");
|
|
26
|
+
var AccountSettingsBrokerDto_1 = require("./AccountSettingsBrokerDto");
|
|
26
27
|
var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
|
|
27
28
|
var LeadOfferExpirationConfigurationDto_1 = require("./LeadOfferExpirationConfigurationDto");
|
|
28
29
|
var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
|
|
@@ -80,6 +81,8 @@ function instanceOfAccountSettingsDto(value) {
|
|
|
80
81
|
return false;
|
|
81
82
|
if (!('leadVerification' in value) || value['leadVerification'] === undefined)
|
|
82
83
|
return false;
|
|
84
|
+
if (!('broker' in value) || value['broker'] === undefined)
|
|
85
|
+
return false;
|
|
83
86
|
if (!('informationRequestCommunication' in value) || value['informationRequestCommunication'] === undefined)
|
|
84
87
|
return false;
|
|
85
88
|
return true;
|
|
@@ -107,6 +110,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
110
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
|
|
108
111
|
'marketplace': json['marketplace'],
|
|
109
112
|
'leadVerification': (0, LeadVerificationSettingsDto_1.LeadVerificationSettingsDtoFromJSON)(json['leadVerification']),
|
|
113
|
+
'broker': (0, AccountSettingsBrokerDto_1.AccountSettingsBrokerDtoFromJSON)(json['broker']),
|
|
110
114
|
'informationRequestCommunication': json['informationRequestCommunication'],
|
|
111
115
|
};
|
|
112
116
|
}
|
|
@@ -134,6 +138,7 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
134
138
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
|
|
135
139
|
'marketplace': value['marketplace'],
|
|
136
140
|
'leadVerification': (0, LeadVerificationSettingsDto_1.LeadVerificationSettingsDtoToJSON)(value['leadVerification']),
|
|
141
|
+
'broker': (0, AccountSettingsBrokerDto_1.AccountSettingsBrokerDtoToJSON)(value['broker']),
|
|
137
142
|
'informationRequestCommunication': value['informationRequestCommunication'],
|
|
138
143
|
};
|
|
139
144
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AccountBrokerSettingsInput } from './AccountBrokerSettingsInput';
|
|
12
13
|
import type { LockConfigurationInput } from './LockConfigurationInput';
|
|
13
14
|
import type { MoneyDto } from './MoneyDto';
|
|
14
15
|
import type { LandingPageInput } from './LandingPageInput';
|
|
@@ -119,6 +120,12 @@ export interface AccountSettingsInput {
|
|
|
119
120
|
* @memberof AccountSettingsInput
|
|
120
121
|
*/
|
|
121
122
|
leadVerification?: LeadVerificationInput;
|
|
123
|
+
/**
|
|
124
|
+
* Brokerage settings: whether the account works as a broker.
|
|
125
|
+
* @type {AccountBrokerSettingsInput}
|
|
126
|
+
* @memberof AccountSettingsInput
|
|
127
|
+
*/
|
|
128
|
+
broker?: AccountBrokerSettingsInput;
|
|
122
129
|
/**
|
|
123
130
|
* When the buyer of an information request (a lead opened to ask for the price) may write and make offers: immediately, or only after the seller has written or made an offer. Applies to information requests opened after the change.
|
|
124
131
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.AccountSettingsInputFromJSON = AccountSettingsInputFromJSON;
|
|
|
19
19
|
exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
|
|
20
20
|
exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
|
|
21
21
|
exports.AccountSettingsInputToJSONTyped = AccountSettingsInputToJSONTyped;
|
|
22
|
+
var AccountBrokerSettingsInput_1 = require("./AccountBrokerSettingsInput");
|
|
22
23
|
var LockConfigurationInput_1 = require("./LockConfigurationInput");
|
|
23
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
24
25
|
var LandingPageInput_1 = require("./LandingPageInput");
|
|
@@ -75,6 +76,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
76
|
'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
|
|
76
77
|
'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['leadOfferExpirationConfiguration']),
|
|
77
78
|
'leadVerification': json['leadVerification'] == null ? undefined : (0, LeadVerificationInput_1.LeadVerificationInputFromJSON)(json['leadVerification']),
|
|
79
|
+
'broker': json['broker'] == null ? undefined : (0, AccountBrokerSettingsInput_1.AccountBrokerSettingsInputFromJSON)(json['broker']),
|
|
78
80
|
'informationRequestCommunication': json['informationRequestCommunication'] == null ? undefined : json['informationRequestCommunication'],
|
|
79
81
|
};
|
|
80
82
|
}
|
|
@@ -103,6 +105,7 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
103
105
|
'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
|
|
104
106
|
'leadOfferExpirationConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['leadOfferExpirationConfiguration']),
|
|
105
107
|
'leadVerification': (0, LeadVerificationInput_1.LeadVerificationInputToJSON)(value['leadVerification']),
|
|
108
|
+
'broker': (0, AccountBrokerSettingsInput_1.AccountBrokerSettingsInputToJSON)(value['broker']),
|
|
106
109
|
'informationRequestCommunication': value['informationRequestCommunication'],
|
|
107
110
|
};
|
|
108
111
|
}
|