@randock/nameshift-api-client 0.0.541 → 0.0.542
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +58 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +19 -1
- package/dist/models/AdminDomainAppraisalRequestListItemDto.js +12 -0
- package/dist/models/ChangeDomainAppraisalRequestStatusInput.d.ts +33 -0
- package/dist/models/ChangeDomainAppraisalRequestStatusInput.js +52 -0
- package/dist/models/DomainAppraisalRequestStatus.d.ts +1 -0
- package/dist/models/DomainAppraisalRequestStatus.js +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/models/AdminDomainAppraisalRequestListItemDto.ts +28 -1
- package/src/models/ChangeDomainAppraisalRequestStatusInput.ts +76 -0
- package/src/models/DomainAppraisalRequestStatus.ts +1 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.542
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.542 --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
|
-
|
|
47
|
+
e6c2952ae7c804d3f91d13417a4a547d88927b479bbb0f0ab36cf87be15bc0bb95b06a4c3c7afbeb8605e5cfb41835f5
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -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
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|