@randock/nameshift-api-client 0.0.541 → 0.0.543

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.
@@ -214,6 +214,7 @@ src/models/BuyerSubscriptionListItemDto.ts
214
214
  src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
215
215
  src/models/BuyerTaskDetailsDto.ts
216
216
  src/models/ChallengeRewardBalanceDto.ts
217
+ src/models/ChangeDomainAppraisalRequestStatusInput.ts
217
218
  src/models/ChangeInvoiceStatusInput.ts
218
219
  src/models/ChangeOrderStatusInput.ts
219
220
  src/models/ChangeSubscriptionStatusInput.ts
@@ -407,6 +408,7 @@ src/models/LeadEnrichmentActivityDto.ts
407
408
  src/models/LeadEnrichmentCompanyDto.ts
408
409
  src/models/LeadEnrichmentDomainDto.ts
409
410
  src/models/LeadEnrichmentDomainFactsDto.ts
411
+ src/models/LeadEnrichmentDomainTrafficDto.ts
410
412
  src/models/LeadEnrichmentDomainVariantDto.ts
411
413
  src/models/LeadEnrichmentDto.ts
412
414
  src/models/LeadEnrichmentEmailDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.541
1
+ ## @randock/nameshift-api-client@0.0.543
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.541 --save
39
+ npm install @randock/nameshift-api-client@0.0.543 --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
- 6a329033ee4d39816dfbb6d3843265557e78d342204cc3ed04b1357bc06a4f142a02fb6077056102a8d922139b04f704
47
+ be5f54a682bca64691d7457fd1e1bdbb6ba9b410780fc2f4f405f3e4eb0a1a1bdbd9eda758137dbd6b4ec2b580f378bf
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AccountsStatsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminListBrokeredLeads200Response, AdminMarketplaceDto, AdminUserNewsletterInput, AdminUserSecurityDto, AffiliatesStatsDto, AuctionsStatsDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CommissionsStatsDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListBuyers200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, OverrideBrokeredLeadNameshiftCommissionInput, PaySellerInvoicesInput, PaymentMethodsStatsDto, SalesStatsDto, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AccountsStatsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminListBrokeredLeads200Response, AdminMarketplaceDto, AdminUserNewsletterInput, AdminUserSecurityDto, AffiliatesStatsDto, AuctionsStatsDto, BulkCommissionActionsInput, ChangeDomainAppraisalRequestStatusInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CommissionsStatsDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListBuyers200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, OverrideBrokeredLeadNameshiftCommissionInput, PaySellerInvoicesInput, PaymentMethodsStatsDto, SalesStatsDto, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -55,6 +55,10 @@ export interface AdminApiBulkCommissionActionsRequest {
55
55
  export interface AdminApiCancelDomainTransferRequest {
56
56
  transferId: string;
57
57
  }
58
+ export interface AdminApiChangeDomainAppraisalRequestStatusRequest {
59
+ domainAppraisalRequestId: string;
60
+ changeDomainAppraisalRequestStatusInput: ChangeDomainAppraisalRequestStatusInput;
61
+ }
58
62
  export interface AdminApiChangeInvoiceStatusRequest {
59
63
  invoiceId: string;
60
64
  changeInvoiceStatusInput: ChangeInvoiceStatusInput;
@@ -567,6 +571,16 @@ export declare class AdminApi extends runtime.BaseAPI {
567
571
  * Cancel domain transfer
568
572
  */
569
573
  cancelDomainTransfer(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
574
+ /**
575
+ * Does what the status means. requested sends a paid request to the domain appraisals API, also after a failed attempt. appraised reads the appraisal of a requested one from there. cancelled cancels an unpaid one with its invoices.
576
+ * Change domain appraisal request status
577
+ */
578
+ changeDomainAppraisalRequestStatusRaw(requestParameters: AdminApiChangeDomainAppraisalRequestStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
579
+ /**
580
+ * Does what the status means. requested sends a paid request to the domain appraisals API, also after a failed attempt. appraised reads the appraisal of a requested one from there. cancelled cancels an unpaid one with its invoices.
581
+ * Change domain appraisal request status
582
+ */
583
+ changeDomainAppraisalRequestStatus(requestParameters: AdminApiChangeDomainAppraisalRequestStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
570
584
  /**
571
585
  * Updates the status of an existing invoice.
572
586
  * Change invoice status
@@ -559,6 +559,64 @@ var AdminApi = /** @class */ (function (_super) {
559
559
  });
560
560
  });
561
561
  };
562
+ /**
563
+ * Does what the status means. requested sends a paid request to the domain appraisals API, also after a failed attempt. appraised reads the appraisal of a requested one from there. cancelled cancels an unpaid one with its invoices.
564
+ * Change domain appraisal request status
565
+ */
566
+ AdminApi.prototype.changeDomainAppraisalRequestStatusRaw = function (requestParameters, initOverrides) {
567
+ return __awaiter(this, void 0, void 0, function () {
568
+ var queryParameters, headerParameters, token, tokenString, response;
569
+ return __generator(this, function (_a) {
570
+ switch (_a.label) {
571
+ case 0:
572
+ if (requestParameters['domainAppraisalRequestId'] == null) {
573
+ throw new runtime.RequiredError('domainAppraisalRequestId', 'Required parameter "domainAppraisalRequestId" was null or undefined when calling changeDomainAppraisalRequestStatus().');
574
+ }
575
+ if (requestParameters['changeDomainAppraisalRequestStatusInput'] == null) {
576
+ throw new runtime.RequiredError('changeDomainAppraisalRequestStatusInput', 'Required parameter "changeDomainAppraisalRequestStatusInput" was null or undefined when calling changeDomainAppraisalRequestStatus().');
577
+ }
578
+ queryParameters = {};
579
+ headerParameters = {};
580
+ headerParameters['Content-Type'] = 'application/json';
581
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
582
+ token = this.configuration.accessToken;
583
+ return [4 /*yield*/, token("bearer", [])];
584
+ case 1:
585
+ tokenString = _a.sent();
586
+ if (tokenString) {
587
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
588
+ }
589
+ _a.label = 2;
590
+ case 2: return [4 /*yield*/, this.request({
591
+ path: "/admin/domain-appraisal-requests/{domainAppraisalRequestId}/status".replace("{".concat("domainAppraisalRequestId", "}"), encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
592
+ method: 'PATCH',
593
+ headers: headerParameters,
594
+ query: queryParameters,
595
+ body: (0, index_1.ChangeDomainAppraisalRequestStatusInputToJSON)(requestParameters['changeDomainAppraisalRequestStatusInput']),
596
+ }, initOverrides)];
597
+ case 3:
598
+ response = _a.sent();
599
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
600
+ }
601
+ });
602
+ });
603
+ };
604
+ /**
605
+ * Does what the status means. requested sends a paid request to the domain appraisals API, also after a failed attempt. appraised reads the appraisal of a requested one from there. cancelled cancels an unpaid one with its invoices.
606
+ * Change domain appraisal request status
607
+ */
608
+ AdminApi.prototype.changeDomainAppraisalRequestStatus = function (requestParameters, initOverrides) {
609
+ return __awaiter(this, void 0, void 0, function () {
610
+ return __generator(this, function (_a) {
611
+ switch (_a.label) {
612
+ case 0: return [4 /*yield*/, this.changeDomainAppraisalRequestStatusRaw(requestParameters, initOverrides)];
613
+ case 1:
614
+ _a.sent();
615
+ return [2 /*return*/];
616
+ }
617
+ });
618
+ });
619
+ };
562
620
  /**
563
621
  * Updates the status of an existing invoice.
564
622
  * Change invoice status
@@ -42,7 +42,7 @@ export interface AdminDomainAppraisalRequestListItemDto {
42
42
  */
43
43
  requester: DomainAppraisalRequester;
44
44
  /**
45
- * Domain appraisal request status.
45
+ * Domain appraisal request status, including a send that failed, which buyers and sellers see as requested.
46
46
  * @type {DomainAppraisalRequestStatus}
47
47
  * @memberof AdminDomainAppraisalRequestListItemDto
48
48
  */
@@ -71,6 +71,24 @@ export interface AdminDomainAppraisalRequestListItemDto {
71
71
  * @memberof AdminDomainAppraisalRequestListItemDto
72
72
  */
73
73
  createdAt: Date;
74
+ /**
75
+ * Whether its invoice has been paid.
76
+ * @type {boolean}
77
+ * @memberof AdminDomainAppraisalRequestListItemDto
78
+ */
79
+ paid: boolean;
80
+ /**
81
+ * Last time sending it to the domain appraisals API was attempted, whatever came of it.
82
+ * @type {Date}
83
+ * @memberof AdminDomainAppraisalRequestListItemDto
84
+ */
85
+ lastRequestAttemptAt: Date | null;
86
+ /**
87
+ * Why the last attempt to send it to the domain appraisals API failed.
88
+ * @type {string}
89
+ * @memberof AdminDomainAppraisalRequestListItemDto
90
+ */
91
+ lastRequestError: string | null;
74
92
  /**
75
93
  * Buyer that requested it, if a buyer did.
76
94
  * @type {string}
@@ -42,6 +42,12 @@ function instanceOfAdminDomainAppraisalRequestListItemDto(value) {
42
42
  return false;
43
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
44
44
  return false;
45
+ if (!('paid' in value) || value['paid'] === undefined)
46
+ return false;
47
+ if (!('lastRequestAttemptAt' in value) || value['lastRequestAttemptAt'] === undefined)
48
+ return false;
49
+ if (!('lastRequestError' in value) || value['lastRequestError'] === undefined)
50
+ return false;
45
51
  if (!('buyerId' in value) || value['buyerId'] === undefined)
46
52
  return false;
47
53
  if (!('buyerEmail' in value) || value['buyerEmail'] === undefined)
@@ -73,6 +79,9 @@ function AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json, ignoreDiscrim
73
79
  'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
74
80
  'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
75
81
  'createdAt': (new Date(json['createdAt'])),
82
+ 'paid': json['paid'],
83
+ 'lastRequestAttemptAt': (json['lastRequestAttemptAt'] == null ? null : new Date(json['lastRequestAttemptAt'])),
84
+ 'lastRequestError': json['lastRequestError'],
76
85
  'buyerId': json['buyerId'],
77
86
  'buyerEmail': json['buyerEmail'],
78
87
  'accountId': json['accountId'],
@@ -99,6 +108,9 @@ function AdminDomainAppraisalRequestListItemDtoToJSONTyped(value, ignoreDiscrimi
99
108
  'appraisedAt': (value['appraisedAt'] == null ? null : value['appraisedAt'].toISOString()),
100
109
  'requestedAt': (value['requestedAt'] == null ? null : value['requestedAt'].toISOString()),
101
110
  'createdAt': ((value['createdAt']).toISOString()),
111
+ 'paid': value['paid'],
112
+ 'lastRequestAttemptAt': (value['lastRequestAttemptAt'] == null ? null : value['lastRequestAttemptAt'].toISOString()),
113
+ 'lastRequestError': value['lastRequestError'],
102
114
  'buyerId': value['buyerId'],
103
115
  'buyerEmail': value['buyerEmail'],
104
116
  'accountId': value['accountId'],
@@ -0,0 +1,33 @@
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 type { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ChangeDomainAppraisalRequestStatusInput
17
+ */
18
+ export interface ChangeDomainAppraisalRequestStatusInput {
19
+ /**
20
+ * Status to take it to. requested sends it to the domain appraisals API, appraised reads its appraisal from there and cancelled cancels it with its invoices.
21
+ * @type {DomainAppraisalRequestStatus}
22
+ * @memberof ChangeDomainAppraisalRequestStatusInput
23
+ */
24
+ status: DomainAppraisalRequestStatus;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ChangeDomainAppraisalRequestStatusInput interface.
28
+ */
29
+ export declare function instanceOfChangeDomainAppraisalRequestStatusInput(value: object): value is ChangeDomainAppraisalRequestStatusInput;
30
+ export declare function ChangeDomainAppraisalRequestStatusInputFromJSON(json: any): ChangeDomainAppraisalRequestStatusInput;
31
+ export declare function ChangeDomainAppraisalRequestStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeDomainAppraisalRequestStatusInput;
32
+ export declare function ChangeDomainAppraisalRequestStatusInputToJSON(json: any): ChangeDomainAppraisalRequestStatusInput;
33
+ export declare function ChangeDomainAppraisalRequestStatusInputToJSONTyped(value?: ChangeDomainAppraisalRequestStatusInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfChangeDomainAppraisalRequestStatusInput = instanceOfChangeDomainAppraisalRequestStatusInput;
17
+ exports.ChangeDomainAppraisalRequestStatusInputFromJSON = ChangeDomainAppraisalRequestStatusInputFromJSON;
18
+ exports.ChangeDomainAppraisalRequestStatusInputFromJSONTyped = ChangeDomainAppraisalRequestStatusInputFromJSONTyped;
19
+ exports.ChangeDomainAppraisalRequestStatusInputToJSON = ChangeDomainAppraisalRequestStatusInputToJSON;
20
+ exports.ChangeDomainAppraisalRequestStatusInputToJSONTyped = ChangeDomainAppraisalRequestStatusInputToJSONTyped;
21
+ var DomainAppraisalRequestStatus_1 = require("./DomainAppraisalRequestStatus");
22
+ /**
23
+ * Check if a given object implements the ChangeDomainAppraisalRequestStatusInput interface.
24
+ */
25
+ function instanceOfChangeDomainAppraisalRequestStatusInput(value) {
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ChangeDomainAppraisalRequestStatusInputFromJSON(json) {
31
+ return ChangeDomainAppraisalRequestStatusInputFromJSONTyped(json, false);
32
+ }
33
+ function ChangeDomainAppraisalRequestStatusInputFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'status': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusFromJSON)(json['status']),
39
+ };
40
+ }
41
+ function ChangeDomainAppraisalRequestStatusInputToJSON(json) {
42
+ return ChangeDomainAppraisalRequestStatusInputToJSONTyped(json, false);
43
+ }
44
+ function ChangeDomainAppraisalRequestStatusInputToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'status': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusToJSON)(value['status']),
51
+ };
52
+ }
@@ -15,6 +15,7 @@
15
15
  */
16
16
  export declare const DomainAppraisalRequestStatus: {
17
17
  readonly PENDING: "pending";
18
+ readonly FAILED: "failed";
18
19
  readonly REQUESTED: "requested";
19
20
  readonly APPRAISED: "appraised";
20
21
  readonly CANCELLED: "cancelled";
@@ -25,6 +25,7 @@ exports.DomainAppraisalRequestStatusToJSONTyped = DomainAppraisalRequestStatusTo
25
25
  */
26
26
  exports.DomainAppraisalRequestStatus = {
27
27
  PENDING: 'pending',
28
+ FAILED: 'failed',
28
29
  REQUESTED: 'requested',
29
30
  APPRAISED: 'appraised',
30
31
  CANCELLED: 'cancelled'
@@ -0,0 +1,56 @@
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 LeadEnrichmentDomainTrafficDto
16
+ */
17
+ export interface LeadEnrichmentDomainTrafficDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LeadEnrichmentDomainTrafficDto
22
+ */
23
+ status: string;
24
+ /**
25
+ * Whether the domain is in the Tranco list of the million busiest sites; null until the list has been read.
26
+ * @type {boolean}
27
+ * @memberof LeadEnrichmentDomainTrafficDto
28
+ */
29
+ ranked: boolean | null;
30
+ /**
31
+ * Best position over the last 30 days; lower is busier.
32
+ * @type {number}
33
+ * @memberof LeadEnrichmentDomainTrafficDto
34
+ */
35
+ bestRank: number | null;
36
+ /**
37
+ * Latest position in the last 30 days; lower is busier.
38
+ * @type {number}
39
+ * @memberof LeadEnrichmentDomainTrafficDto
40
+ */
41
+ latestRank: number | null;
42
+ /**
43
+ * When this record was last enriched.
44
+ * @type {string}
45
+ * @memberof LeadEnrichmentDomainTrafficDto
46
+ */
47
+ enrichedAt: string | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the LeadEnrichmentDomainTrafficDto interface.
51
+ */
52
+ export declare function instanceOfLeadEnrichmentDomainTrafficDto(value: object): value is LeadEnrichmentDomainTrafficDto;
53
+ export declare function LeadEnrichmentDomainTrafficDtoFromJSON(json: any): LeadEnrichmentDomainTrafficDto;
54
+ export declare function LeadEnrichmentDomainTrafficDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainTrafficDto;
55
+ export declare function LeadEnrichmentDomainTrafficDtoToJSON(json: any): LeadEnrichmentDomainTrafficDto;
56
+ export declare function LeadEnrichmentDomainTrafficDtoToJSONTyped(value?: LeadEnrichmentDomainTrafficDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfLeadEnrichmentDomainTrafficDto = instanceOfLeadEnrichmentDomainTrafficDto;
17
+ exports.LeadEnrichmentDomainTrafficDtoFromJSON = LeadEnrichmentDomainTrafficDtoFromJSON;
18
+ exports.LeadEnrichmentDomainTrafficDtoFromJSONTyped = LeadEnrichmentDomainTrafficDtoFromJSONTyped;
19
+ exports.LeadEnrichmentDomainTrafficDtoToJSON = LeadEnrichmentDomainTrafficDtoToJSON;
20
+ exports.LeadEnrichmentDomainTrafficDtoToJSONTyped = LeadEnrichmentDomainTrafficDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadEnrichmentDomainTrafficDto interface.
23
+ */
24
+ function instanceOfLeadEnrichmentDomainTrafficDto(value) {
25
+ if (!('status' in value) || value['status'] === undefined)
26
+ return false;
27
+ if (!('ranked' in value) || value['ranked'] === undefined)
28
+ return false;
29
+ if (!('bestRank' in value) || value['bestRank'] === undefined)
30
+ return false;
31
+ if (!('latestRank' in value) || value['latestRank'] === undefined)
32
+ return false;
33
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function LeadEnrichmentDomainTrafficDtoFromJSON(json) {
38
+ return LeadEnrichmentDomainTrafficDtoFromJSONTyped(json, false);
39
+ }
40
+ function LeadEnrichmentDomainTrafficDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'status': json['status'],
46
+ 'ranked': json['ranked'],
47
+ 'bestRank': json['bestRank'],
48
+ 'latestRank': json['latestRank'],
49
+ 'enrichedAt': json['enrichedAt'],
50
+ };
51
+ }
52
+ function LeadEnrichmentDomainTrafficDtoToJSON(json) {
53
+ return LeadEnrichmentDomainTrafficDtoToJSONTyped(json, false);
54
+ }
55
+ function LeadEnrichmentDomainTrafficDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'status': value['status'],
62
+ 'ranked': value['ranked'],
63
+ 'bestRank': value['bestRank'],
64
+ 'latestRank': value['latestRank'],
65
+ 'enrichedAt': value['enrichedAt'],
66
+ };
67
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LeadEnrichmentDomainTrafficDto } from './LeadEnrichmentDomainTrafficDto';
12
13
  import type { LeadEnrichmentPersonDto } from './LeadEnrichmentPersonDto';
13
14
  import type { LeadEnrichmentIpDto } from './LeadEnrichmentIpDto';
14
15
  import type { LeadEnrichmentEmailDto } from './LeadEnrichmentEmailDto';
@@ -96,6 +97,12 @@ export interface LeadEnrichmentDto {
96
97
  * @memberof LeadEnrichmentDto
97
98
  */
98
99
  domain: LeadEnrichmentDomainDto | null;
100
+ /**
101
+ * The traffic of the domain being sold, not of the buyer.
102
+ * @type {LeadEnrichmentDomainTrafficDto}
103
+ * @memberof LeadEnrichmentDto
104
+ */
105
+ domainTraffic: LeadEnrichmentDomainTrafficDto | null;
99
106
  /**
100
107
  * Sale-domain variants whose registry nameservers equal the buyer's email-domain nameservers — a hint the buyer already holds them. Empty when nothing matches or either side's nameservers are unknown; shared hosting makes it a hint, not proof.
101
108
  * @type {Array<string>}
@@ -18,6 +18,7 @@ exports.LeadEnrichmentDtoFromJSON = LeadEnrichmentDtoFromJSON;
18
18
  exports.LeadEnrichmentDtoFromJSONTyped = LeadEnrichmentDtoFromJSONTyped;
19
19
  exports.LeadEnrichmentDtoToJSON = LeadEnrichmentDtoToJSON;
20
20
  exports.LeadEnrichmentDtoToJSONTyped = LeadEnrichmentDtoToJSONTyped;
21
+ var LeadEnrichmentDomainTrafficDto_1 = require("./LeadEnrichmentDomainTrafficDto");
21
22
  var LeadEnrichmentPersonDto_1 = require("./LeadEnrichmentPersonDto");
22
23
  var LeadEnrichmentIpDto_1 = require("./LeadEnrichmentIpDto");
23
24
  var LeadEnrichmentEmailDto_1 = require("./LeadEnrichmentEmailDto");
@@ -55,6 +56,8 @@ function instanceOfLeadEnrichmentDto(value) {
55
56
  return false;
56
57
  if (!('domain' in value) || value['domain'] === undefined)
57
58
  return false;
59
+ if (!('domainTraffic' in value) || value['domainTraffic'] === undefined)
60
+ return false;
58
61
  if (!('buyerNameserverMatches' in value) || value['buyerNameserverMatches'] === undefined)
59
62
  return false;
60
63
  if (!('activity' in value) || value['activity'] === undefined)
@@ -81,6 +84,7 @@ function LeadEnrichmentDtoFromJSONTyped(json, ignoreDiscriminator) {
81
84
  'domainFacts': (0, LeadEnrichmentDomainFactsDto_1.LeadEnrichmentDomainFactsDtoFromJSON)(json['domainFacts']),
82
85
  'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoFromJSON)(json['ip']),
83
86
  'domain': (0, LeadEnrichmentDomainDto_1.LeadEnrichmentDomainDtoFromJSON)(json['domain']),
87
+ 'domainTraffic': (0, LeadEnrichmentDomainTrafficDto_1.LeadEnrichmentDomainTrafficDtoFromJSON)(json['domainTraffic']),
84
88
  'buyerNameserverMatches': json['buyerNameserverMatches'],
85
89
  'activity': (0, LeadEnrichmentActivityDto_1.LeadEnrichmentActivityDtoFromJSON)(json['activity']),
86
90
  };
@@ -106,6 +110,7 @@ function LeadEnrichmentDtoToJSONTyped(value, ignoreDiscriminator) {
106
110
  'domainFacts': (0, LeadEnrichmentDomainFactsDto_1.LeadEnrichmentDomainFactsDtoToJSON)(value['domainFacts']),
107
111
  'ip': (0, LeadEnrichmentIpDto_1.LeadEnrichmentIpDtoToJSON)(value['ip']),
108
112
  'domain': (0, LeadEnrichmentDomainDto_1.LeadEnrichmentDomainDtoToJSON)(value['domain']),
113
+ 'domainTraffic': (0, LeadEnrichmentDomainTrafficDto_1.LeadEnrichmentDomainTrafficDtoToJSON)(value['domainTraffic']),
109
114
  'buyerNameserverMatches': value['buyerNameserverMatches'],
110
115
  'activity': (0, LeadEnrichmentActivityDto_1.LeadEnrichmentActivityDtoToJSON)(value['activity']),
111
116
  };
@@ -167,6 +167,7 @@ export * from './BuyerSubscriptionListItemDto';
167
167
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
168
168
  export * from './BuyerTaskDetailsDto';
169
169
  export * from './ChallengeRewardBalanceDto';
170
+ export * from './ChangeDomainAppraisalRequestStatusInput';
170
171
  export * from './ChangeInvoiceStatusInput';
171
172
  export * from './ChangeOrderStatusInput';
172
173
  export * from './ChangeSubscriptionStatusInput';
@@ -360,6 +361,7 @@ export * from './LeadEnrichmentActivityDto';
360
361
  export * from './LeadEnrichmentCompanyDto';
361
362
  export * from './LeadEnrichmentDomainDto';
362
363
  export * from './LeadEnrichmentDomainFactsDto';
364
+ export * from './LeadEnrichmentDomainTrafficDto';
363
365
  export * from './LeadEnrichmentDomainVariantDto';
364
366
  export * from './LeadEnrichmentDto';
365
367
  export * from './LeadEnrichmentEmailDto';
@@ -185,6 +185,7 @@ __exportStar(require("./BuyerSubscriptionListItemDto"), exports);
185
185
  __exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
186
186
  __exportStar(require("./BuyerTaskDetailsDto"), exports);
187
187
  __exportStar(require("./ChallengeRewardBalanceDto"), exports);
188
+ __exportStar(require("./ChangeDomainAppraisalRequestStatusInput"), exports);
188
189
  __exportStar(require("./ChangeInvoiceStatusInput"), exports);
189
190
  __exportStar(require("./ChangeOrderStatusInput"), exports);
190
191
  __exportStar(require("./ChangeSubscriptionStatusInput"), exports);
@@ -378,6 +379,7 @@ __exportStar(require("./LeadEnrichmentActivityDto"), exports);
378
379
  __exportStar(require("./LeadEnrichmentCompanyDto"), exports);
379
380
  __exportStar(require("./LeadEnrichmentDomainDto"), exports);
380
381
  __exportStar(require("./LeadEnrichmentDomainFactsDto"), exports);
382
+ __exportStar(require("./LeadEnrichmentDomainTrafficDto"), exports);
381
383
  __exportStar(require("./LeadEnrichmentDomainVariantDto"), exports);
382
384
  __exportStar(require("./LeadEnrichmentDto"), exports);
383
385
  __exportStar(require("./LeadEnrichmentEmailDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.541",
3
+ "version": "0.0.543",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -35,6 +35,7 @@ import type {
35
35
  AuctionsStatsDto,
36
36
  BadRequestException,
37
37
  BulkCommissionActionsInput,
38
+ ChangeDomainAppraisalRequestStatusInput,
38
39
  ChangeInvoiceStatusInput,
39
40
  ChangeOrderStatusInput,
40
41
  ChangeSubscriptionStatusInput,
@@ -142,6 +143,8 @@ import {
142
143
  BadRequestExceptionToJSON,
143
144
  BulkCommissionActionsInputFromJSON,
144
145
  BulkCommissionActionsInputToJSON,
146
+ ChangeDomainAppraisalRequestStatusInputFromJSON,
147
+ ChangeDomainAppraisalRequestStatusInputToJSON,
145
148
  ChangeInvoiceStatusInputFromJSON,
146
149
  ChangeInvoiceStatusInputToJSON,
147
150
  ChangeOrderStatusInputFromJSON,
@@ -322,6 +325,11 @@ export interface AdminApiCancelDomainTransferRequest {
322
325
  transferId: string;
323
326
  }
324
327
 
328
+ export interface AdminApiChangeDomainAppraisalRequestStatusRequest {
329
+ domainAppraisalRequestId: string;
330
+ changeDomainAppraisalRequestStatusInput: ChangeDomainAppraisalRequestStatusInput;
331
+ }
332
+
325
333
  export interface AdminApiChangeInvoiceStatusRequest {
326
334
  invoiceId: string;
327
335
  changeInvoiceStatusInput: ChangeInvoiceStatusInput;
@@ -1234,6 +1242,58 @@ export class AdminApi extends runtime.BaseAPI {
1234
1242
  await this.cancelDomainTransferRaw(requestParameters, initOverrides);
1235
1243
  }
1236
1244
 
1245
+ /**
1246
+ * Does what the status means. requested sends a paid request to the domain appraisals API, also after a failed attempt. appraised reads the appraisal of a requested one from there. cancelled cancels an unpaid one with its invoices.
1247
+ * Change domain appraisal request status
1248
+ */
1249
+ async changeDomainAppraisalRequestStatusRaw(requestParameters: AdminApiChangeDomainAppraisalRequestStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1250
+ if (requestParameters['domainAppraisalRequestId'] == null) {
1251
+ throw new runtime.RequiredError(
1252
+ 'domainAppraisalRequestId',
1253
+ 'Required parameter "domainAppraisalRequestId" was null or undefined when calling changeDomainAppraisalRequestStatus().'
1254
+ );
1255
+ }
1256
+
1257
+ if (requestParameters['changeDomainAppraisalRequestStatusInput'] == null) {
1258
+ throw new runtime.RequiredError(
1259
+ 'changeDomainAppraisalRequestStatusInput',
1260
+ 'Required parameter "changeDomainAppraisalRequestStatusInput" was null or undefined when calling changeDomainAppraisalRequestStatus().'
1261
+ );
1262
+ }
1263
+
1264
+ const queryParameters: any = {};
1265
+
1266
+ const headerParameters: runtime.HTTPHeaders = {};
1267
+
1268
+ headerParameters['Content-Type'] = 'application/json';
1269
+
1270
+ if (this.configuration && this.configuration.accessToken) {
1271
+ const token = this.configuration.accessToken;
1272
+ const tokenString = await token("bearer", []);
1273
+
1274
+ if (tokenString) {
1275
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1276
+ }
1277
+ }
1278
+ const response = await this.request({
1279
+ path: `/admin/domain-appraisal-requests/{domainAppraisalRequestId}/status`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
1280
+ method: 'PATCH',
1281
+ headers: headerParameters,
1282
+ query: queryParameters,
1283
+ body: ChangeDomainAppraisalRequestStatusInputToJSON(requestParameters['changeDomainAppraisalRequestStatusInput']),
1284
+ }, initOverrides);
1285
+
1286
+ return new runtime.VoidApiResponse(response);
1287
+ }
1288
+
1289
+ /**
1290
+ * Does what the status means. requested sends a paid request to the domain appraisals API, also after a failed attempt. appraised reads the appraisal of a requested one from there. cancelled cancels an unpaid one with its invoices.
1291
+ * Change domain appraisal request status
1292
+ */
1293
+ async changeDomainAppraisalRequestStatus(requestParameters: AdminApiChangeDomainAppraisalRequestStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1294
+ await this.changeDomainAppraisalRequestStatusRaw(requestParameters, initOverrides);
1295
+ }
1296
+
1237
1297
  /**
1238
1298
  * Updates the status of an existing invoice.
1239
1299
  * Change invoice status
@@ -59,7 +59,7 @@ export interface AdminDomainAppraisalRequestListItemDto {
59
59
  */
60
60
  requester: DomainAppraisalRequester;
61
61
  /**
62
- * Domain appraisal request status.
62
+ * Domain appraisal request status, including a send that failed, which buyers and sellers see as requested.
63
63
  * @type {DomainAppraisalRequestStatus}
64
64
  * @memberof AdminDomainAppraisalRequestListItemDto
65
65
  */
@@ -88,6 +88,24 @@ export interface AdminDomainAppraisalRequestListItemDto {
88
88
  * @memberof AdminDomainAppraisalRequestListItemDto
89
89
  */
90
90
  createdAt: Date;
91
+ /**
92
+ * Whether its invoice has been paid.
93
+ * @type {boolean}
94
+ * @memberof AdminDomainAppraisalRequestListItemDto
95
+ */
96
+ paid: boolean;
97
+ /**
98
+ * Last time sending it to the domain appraisals API was attempted, whatever came of it.
99
+ * @type {Date}
100
+ * @memberof AdminDomainAppraisalRequestListItemDto
101
+ */
102
+ lastRequestAttemptAt: Date | null;
103
+ /**
104
+ * Why the last attempt to send it to the domain appraisals API failed.
105
+ * @type {string}
106
+ * @memberof AdminDomainAppraisalRequestListItemDto
107
+ */
108
+ lastRequestError: string | null;
91
109
  /**
92
110
  * Buyer that requested it, if a buyer did.
93
111
  * @type {string}
@@ -141,6 +159,9 @@ export function instanceOfAdminDomainAppraisalRequestListItemDto(value: object):
141
159
  if (!('appraisedAt' in value) || value['appraisedAt'] === undefined) return false;
142
160
  if (!('requestedAt' in value) || value['requestedAt'] === undefined) return false;
143
161
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
162
+ if (!('paid' in value) || value['paid'] === undefined) return false;
163
+ if (!('lastRequestAttemptAt' in value) || value['lastRequestAttemptAt'] === undefined) return false;
164
+ if (!('lastRequestError' in value) || value['lastRequestError'] === undefined) return false;
144
165
  if (!('buyerId' in value) || value['buyerId'] === undefined) return false;
145
166
  if (!('buyerEmail' in value) || value['buyerEmail'] === undefined) return false;
146
167
  if (!('accountId' in value) || value['accountId'] === undefined) return false;
@@ -169,6 +190,9 @@ export function AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json: any, i
169
190
  'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
170
191
  'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
171
192
  'createdAt': (new Date(json['createdAt'])),
193
+ 'paid': json['paid'],
194
+ 'lastRequestAttemptAt': (json['lastRequestAttemptAt'] == null ? null : new Date(json['lastRequestAttemptAt'])),
195
+ 'lastRequestError': json['lastRequestError'],
172
196
  'buyerId': json['buyerId'],
173
197
  'buyerEmail': json['buyerEmail'],
174
198
  'accountId': json['accountId'],
@@ -198,6 +222,9 @@ export function AdminDomainAppraisalRequestListItemDtoToJSONTyped(value?: AdminD
198
222
  'appraisedAt': (value['appraisedAt'] == null ? null : (value['appraisedAt'] as any).toISOString()),
199
223
  'requestedAt': (value['requestedAt'] == null ? null : (value['requestedAt'] as any).toISOString()),
200
224
  'createdAt': ((value['createdAt']).toISOString()),
225
+ 'paid': value['paid'],
226
+ 'lastRequestAttemptAt': (value['lastRequestAttemptAt'] == null ? null : (value['lastRequestAttemptAt'] as any).toISOString()),
227
+ 'lastRequestError': value['lastRequestError'],
201
228
  'buyerId': value['buyerId'],
202
229
  'buyerEmail': value['buyerEmail'],
203
230
  'accountId': value['accountId'],
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
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 { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
17
+ import {
18
+ DomainAppraisalRequestStatusFromJSON,
19
+ DomainAppraisalRequestStatusFromJSONTyped,
20
+ DomainAppraisalRequestStatusToJSON,
21
+ DomainAppraisalRequestStatusToJSONTyped,
22
+ } from './DomainAppraisalRequestStatus';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ChangeDomainAppraisalRequestStatusInput
28
+ */
29
+ export interface ChangeDomainAppraisalRequestStatusInput {
30
+ /**
31
+ * Status to take it to. requested sends it to the domain appraisals API, appraised reads its appraisal from there and cancelled cancels it with its invoices.
32
+ * @type {DomainAppraisalRequestStatus}
33
+ * @memberof ChangeDomainAppraisalRequestStatusInput
34
+ */
35
+ status: DomainAppraisalRequestStatus;
36
+ }
37
+
38
+
39
+
40
+ /**
41
+ * Check if a given object implements the ChangeDomainAppraisalRequestStatusInput interface.
42
+ */
43
+ export function instanceOfChangeDomainAppraisalRequestStatusInput(value: object): value is ChangeDomainAppraisalRequestStatusInput {
44
+ if (!('status' in value) || value['status'] === undefined) return false;
45
+ return true;
46
+ }
47
+
48
+ export function ChangeDomainAppraisalRequestStatusInputFromJSON(json: any): ChangeDomainAppraisalRequestStatusInput {
49
+ return ChangeDomainAppraisalRequestStatusInputFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function ChangeDomainAppraisalRequestStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeDomainAppraisalRequestStatusInput {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'status': DomainAppraisalRequestStatusFromJSON(json['status']),
59
+ };
60
+ }
61
+
62
+ export function ChangeDomainAppraisalRequestStatusInputToJSON(json: any): ChangeDomainAppraisalRequestStatusInput {
63
+ return ChangeDomainAppraisalRequestStatusInputToJSONTyped(json, false);
64
+ }
65
+
66
+ export function ChangeDomainAppraisalRequestStatusInputToJSONTyped(value?: ChangeDomainAppraisalRequestStatusInput | null, ignoreDiscriminator: boolean = false): any {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+
71
+ return {
72
+
73
+ 'status': DomainAppraisalRequestStatusToJSON(value['status']),
74
+ };
75
+ }
76
+
@@ -19,6 +19,7 @@
19
19
  */
20
20
  export const DomainAppraisalRequestStatus = {
21
21
  PENDING: 'pending',
22
+ FAILED: 'failed',
22
23
  REQUESTED: 'requested',
23
24
  APPRAISED: 'appraised',
24
25
  CANCELLED: 'cancelled'
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface LeadEnrichmentDomainTrafficDto
20
+ */
21
+ export interface LeadEnrichmentDomainTrafficDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LeadEnrichmentDomainTrafficDto
26
+ */
27
+ status: string;
28
+ /**
29
+ * Whether the domain is in the Tranco list of the million busiest sites; null until the list has been read.
30
+ * @type {boolean}
31
+ * @memberof LeadEnrichmentDomainTrafficDto
32
+ */
33
+ ranked: boolean | null;
34
+ /**
35
+ * Best position over the last 30 days; lower is busier.
36
+ * @type {number}
37
+ * @memberof LeadEnrichmentDomainTrafficDto
38
+ */
39
+ bestRank: number | null;
40
+ /**
41
+ * Latest position in the last 30 days; lower is busier.
42
+ * @type {number}
43
+ * @memberof LeadEnrichmentDomainTrafficDto
44
+ */
45
+ latestRank: number | null;
46
+ /**
47
+ * When this record was last enriched.
48
+ * @type {string}
49
+ * @memberof LeadEnrichmentDomainTrafficDto
50
+ */
51
+ enrichedAt: string | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the LeadEnrichmentDomainTrafficDto interface.
56
+ */
57
+ export function instanceOfLeadEnrichmentDomainTrafficDto(value: object): value is LeadEnrichmentDomainTrafficDto {
58
+ if (!('status' in value) || value['status'] === undefined) return false;
59
+ if (!('ranked' in value) || value['ranked'] === undefined) return false;
60
+ if (!('bestRank' in value) || value['bestRank'] === undefined) return false;
61
+ if (!('latestRank' in value) || value['latestRank'] === undefined) return false;
62
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function LeadEnrichmentDomainTrafficDtoFromJSON(json: any): LeadEnrichmentDomainTrafficDto {
67
+ return LeadEnrichmentDomainTrafficDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function LeadEnrichmentDomainTrafficDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEnrichmentDomainTrafficDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'status': json['status'],
77
+ 'ranked': json['ranked'],
78
+ 'bestRank': json['bestRank'],
79
+ 'latestRank': json['latestRank'],
80
+ 'enrichedAt': json['enrichedAt'],
81
+ };
82
+ }
83
+
84
+ export function LeadEnrichmentDomainTrafficDtoToJSON(json: any): LeadEnrichmentDomainTrafficDto {
85
+ return LeadEnrichmentDomainTrafficDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function LeadEnrichmentDomainTrafficDtoToJSONTyped(value?: LeadEnrichmentDomainTrafficDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'status': value['status'],
96
+ 'ranked': value['ranked'],
97
+ 'bestRank': value['bestRank'],
98
+ 'latestRank': value['latestRank'],
99
+ 'enrichedAt': value['enrichedAt'],
100
+ };
101
+ }
102
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { LeadEnrichmentDomainTrafficDto } from './LeadEnrichmentDomainTrafficDto';
17
+ import {
18
+ LeadEnrichmentDomainTrafficDtoFromJSON,
19
+ LeadEnrichmentDomainTrafficDtoFromJSONTyped,
20
+ LeadEnrichmentDomainTrafficDtoToJSON,
21
+ LeadEnrichmentDomainTrafficDtoToJSONTyped,
22
+ } from './LeadEnrichmentDomainTrafficDto';
16
23
  import type { LeadEnrichmentPersonDto } from './LeadEnrichmentPersonDto';
17
24
  import {
18
25
  LeadEnrichmentPersonDtoFromJSON,
@@ -155,6 +162,12 @@ export interface LeadEnrichmentDto {
155
162
  * @memberof LeadEnrichmentDto
156
163
  */
157
164
  domain: LeadEnrichmentDomainDto | null;
165
+ /**
166
+ * The traffic of the domain being sold, not of the buyer.
167
+ * @type {LeadEnrichmentDomainTrafficDto}
168
+ * @memberof LeadEnrichmentDto
169
+ */
170
+ domainTraffic: LeadEnrichmentDomainTrafficDto | null;
158
171
  /**
159
172
  * Sale-domain variants whose registry nameservers equal the buyer's email-domain nameservers — a hint the buyer already holds them. Empty when nothing matches or either side's nameservers are unknown; shared hosting makes it a hint, not proof.
160
173
  * @type {Array<string>}
@@ -185,6 +198,7 @@ export function instanceOfLeadEnrichmentDto(value: object): value is LeadEnrichm
185
198
  if (!('domainFacts' in value) || value['domainFacts'] === undefined) return false;
186
199
  if (!('ip' in value) || value['ip'] === undefined) return false;
187
200
  if (!('domain' in value) || value['domain'] === undefined) return false;
201
+ if (!('domainTraffic' in value) || value['domainTraffic'] === undefined) return false;
188
202
  if (!('buyerNameserverMatches' in value) || value['buyerNameserverMatches'] === undefined) return false;
189
203
  if (!('activity' in value) || value['activity'] === undefined) return false;
190
204
  return true;
@@ -212,6 +226,7 @@ export function LeadEnrichmentDtoFromJSONTyped(json: any, ignoreDiscriminator: b
212
226
  'domainFacts': LeadEnrichmentDomainFactsDtoFromJSON(json['domainFacts']),
213
227
  'ip': LeadEnrichmentIpDtoFromJSON(json['ip']),
214
228
  'domain': LeadEnrichmentDomainDtoFromJSON(json['domain']),
229
+ 'domainTraffic': LeadEnrichmentDomainTrafficDtoFromJSON(json['domainTraffic']),
215
230
  'buyerNameserverMatches': json['buyerNameserverMatches'],
216
231
  'activity': LeadEnrichmentActivityDtoFromJSON(json['activity']),
217
232
  };
@@ -240,6 +255,7 @@ export function LeadEnrichmentDtoToJSONTyped(value?: LeadEnrichmentDto | null, i
240
255
  'domainFacts': LeadEnrichmentDomainFactsDtoToJSON(value['domainFacts']),
241
256
  'ip': LeadEnrichmentIpDtoToJSON(value['ip']),
242
257
  'domain': LeadEnrichmentDomainDtoToJSON(value['domain']),
258
+ 'domainTraffic': LeadEnrichmentDomainTrafficDtoToJSON(value['domainTraffic']),
243
259
  'buyerNameserverMatches': value['buyerNameserverMatches'],
244
260
  'activity': LeadEnrichmentActivityDtoToJSON(value['activity']),
245
261
  };
@@ -169,6 +169,7 @@ export * from './BuyerSubscriptionListItemDto';
169
169
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
170
170
  export * from './BuyerTaskDetailsDto';
171
171
  export * from './ChallengeRewardBalanceDto';
172
+ export * from './ChangeDomainAppraisalRequestStatusInput';
172
173
  export * from './ChangeInvoiceStatusInput';
173
174
  export * from './ChangeOrderStatusInput';
174
175
  export * from './ChangeSubscriptionStatusInput';
@@ -362,6 +363,7 @@ export * from './LeadEnrichmentActivityDto';
362
363
  export * from './LeadEnrichmentCompanyDto';
363
364
  export * from './LeadEnrichmentDomainDto';
364
365
  export * from './LeadEnrichmentDomainFactsDto';
366
+ export * from './LeadEnrichmentDomainTrafficDto';
365
367
  export * from './LeadEnrichmentDomainVariantDto';
366
368
  export * from './LeadEnrichmentDto';
367
369
  export * from './LeadEnrichmentEmailDto';