@randock/nameshift-api-client 0.0.167 → 0.0.169
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 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -0
- package/dist/apis/BuyersApi.d.ts +3 -3
- package/dist/apis/DomainsApi.d.ts +4 -4
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/DomainsPublicApi.d.ts +4 -4
- package/dist/apis/DomainsPublicApi.js +1 -1
- package/dist/apis/InvoicesApi.d.ts +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +6 -6
- package/dist/apis/LeadsPublicApi.js +12 -12
- package/dist/apis/TasksApi.d.ts +4 -4
- package/dist/apis/TasksApi.js +1 -1
- package/dist/models/DomainTransferDetailsOrderBuyerDto.d.ts +8 -2
- package/dist/models/DomainTransferDetailsOrderBuyerDto.js +4 -0
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/List200Response2.d.ts +3 -3
- package/dist/models/List200Response2.js +3 -3
- package/dist/models/ListDomains200Response.d.ts +47 -0
- package/dist/models/{List200Response3.js → ListDomains200Response.js} +16 -16
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +1 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/apis/BuyersApi.ts +3 -3
- package/src/apis/DomainsApi.ts +7 -7
- package/src/apis/DomainsPublicApi.ts +7 -7
- package/src/apis/InvoicesApi.ts +3 -3
- package/src/apis/LeadsPublicApi.ts +14 -14
- package/src/apis/TasksApi.ts +7 -7
- package/src/models/DomainTransferDetailsOrderBuyerDto.ts +11 -2
- package/src/models/List200Response1.ts +10 -10
- package/src/models/List200Response2.ts +10 -10
- package/src/models/{List200Response3.ts → ListDomains200Response.ts} +23 -23
- package/src/models/index.ts +1 -2
- package/dist/models/IntersectionDomainDtoDomainUrlDto.d.ts +0 -118
- package/dist/models/IntersectionDomainDtoDomainUrlDto.js +0 -108
- package/dist/models/List200Response3.d.ts +0 -47
- package/src/models/IntersectionDomainDtoDomainUrlDto.ts +0 -201
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfListDomains200Response = instanceOfListDomains200Response;
|
|
17
|
+
exports.ListDomains200ResponseFromJSON = ListDomains200ResponseFromJSON;
|
|
18
|
+
exports.ListDomains200ResponseFromJSONTyped = ListDomains200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListDomains200ResponseToJSON = ListDomains200ResponseToJSON;
|
|
20
|
+
exports.ListDomains200ResponseToJSONTyped = ListDomains200ResponseToJSONTyped;
|
|
21
21
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
-
var
|
|
22
|
+
var DomainDto_1 = require("./DomainDto");
|
|
23
23
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
24
|
/**
|
|
25
|
-
* Check if a given object implements the
|
|
25
|
+
* Check if a given object implements the ListDomains200Response interface.
|
|
26
26
|
*/
|
|
27
|
-
function
|
|
27
|
+
function instanceOfListDomains200Response(value) {
|
|
28
28
|
if (!('data' in value) || value['data'] === undefined)
|
|
29
29
|
return false;
|
|
30
30
|
if (!('meta' in value) || value['meta'] === undefined)
|
|
@@ -33,29 +33,29 @@ function instanceOfList200Response3(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
36
|
+
function ListDomains200ResponseFromJSON(json) {
|
|
37
|
+
return ListDomains200ResponseFromJSONTyped(json, false);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ListDomains200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
40
|
if (json == null) {
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'data': (json['data'].map(
|
|
44
|
+
'data': (json['data'].map(DomainDto_1.DomainDtoFromJSON)),
|
|
45
45
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
46
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
49
|
+
function ListDomains200ResponseToJSON(json) {
|
|
50
|
+
return ListDomains200ResponseToJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ListDomains200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
53
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
54
|
if (value == null) {
|
|
55
55
|
return value;
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
|
-
'data': (value['data'].map(
|
|
58
|
+
'data': (value['data'].map(DomainDto_1.DomainDtoToJSON)),
|
|
59
59
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
60
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
61
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -63,7 +63,6 @@ export * from './GetBuyerLeads200Response';
|
|
|
63
63
|
export * from './GetBuyerTransfers200Response';
|
|
64
64
|
export * from './HttpException';
|
|
65
65
|
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDto';
|
|
66
|
-
export * from './IntersectionDomainDtoDomainUrlDto';
|
|
67
66
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
68
67
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
69
68
|
export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
|
|
@@ -83,9 +82,9 @@ export * from './LeadStatusDto';
|
|
|
83
82
|
export * from './List200Response';
|
|
84
83
|
export * from './List200Response1';
|
|
85
84
|
export * from './List200Response2';
|
|
86
|
-
export * from './List200Response3';
|
|
87
85
|
export * from './ListAccountDto';
|
|
88
86
|
export * from './ListAccounts200Response';
|
|
87
|
+
export * from './ListDomains200Response';
|
|
89
88
|
export * from './ListLeadMessagesDto';
|
|
90
89
|
export * from './LoginDto';
|
|
91
90
|
export * from './LoginInput';
|
package/dist/models/index.js
CHANGED
|
@@ -81,7 +81,6 @@ __exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
|
81
81
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
82
82
|
__exportStar(require("./HttpException"), exports);
|
|
83
83
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDto"), exports);
|
|
84
|
-
__exportStar(require("./IntersectionDomainDtoDomainUrlDto"), exports);
|
|
85
84
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
86
85
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
87
86
|
__exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
|
|
@@ -101,9 +100,9 @@ __exportStar(require("./LeadStatusDto"), exports);
|
|
|
101
100
|
__exportStar(require("./List200Response"), exports);
|
|
102
101
|
__exportStar(require("./List200Response1"), exports);
|
|
103
102
|
__exportStar(require("./List200Response2"), exports);
|
|
104
|
-
__exportStar(require("./List200Response3"), exports);
|
|
105
103
|
__exportStar(require("./ListAccountDto"), exports);
|
|
106
104
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
105
|
+
__exportStar(require("./ListDomains200Response"), exports);
|
|
107
106
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
108
107
|
__exportStar(require("./LoginDto"), exports);
|
|
109
108
|
__exportStar(require("./LoginInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -25,6 +25,7 @@ import type {
|
|
|
25
25
|
GetAllOrders200Response,
|
|
26
26
|
GetAllOwnedDomains200Response,
|
|
27
27
|
ListAccounts200Response,
|
|
28
|
+
ListDomains200Response,
|
|
28
29
|
NotFoundException,
|
|
29
30
|
ThrottlerException,
|
|
30
31
|
ValidationException,
|
|
@@ -50,6 +51,8 @@ import {
|
|
|
50
51
|
GetAllOwnedDomains200ResponseToJSON,
|
|
51
52
|
ListAccounts200ResponseFromJSON,
|
|
52
53
|
ListAccounts200ResponseToJSON,
|
|
54
|
+
ListDomains200ResponseFromJSON,
|
|
55
|
+
ListDomains200ResponseToJSON,
|
|
53
56
|
NotFoundExceptionFromJSON,
|
|
54
57
|
NotFoundExceptionToJSON,
|
|
55
58
|
ThrottlerExceptionFromJSON,
|
|
@@ -110,6 +113,13 @@ export interface AdminApiListAccountsRequest {
|
|
|
110
113
|
sortBy?: Array<string>;
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
export interface AdminApiListDomainsRequest {
|
|
117
|
+
filter?: object;
|
|
118
|
+
page?: number;
|
|
119
|
+
limit?: number;
|
|
120
|
+
sortBy?: Array<string>;
|
|
121
|
+
}
|
|
122
|
+
|
|
113
123
|
export interface AdminApiPayDomainTransferSellerInvoiceRequest {
|
|
114
124
|
transferId: string;
|
|
115
125
|
invoiceId: string;
|
|
@@ -558,6 +568,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
558
568
|
return await response.value();
|
|
559
569
|
}
|
|
560
570
|
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
*/
|
|
574
|
+
async listDomainsRaw(requestParameters: AdminApiListDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomains200Response>> {
|
|
575
|
+
const queryParameters: any = {};
|
|
576
|
+
|
|
577
|
+
if (requestParameters['filter'] != null) {
|
|
578
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (requestParameters['page'] != null) {
|
|
582
|
+
queryParameters['page'] = requestParameters['page'];
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
if (requestParameters['limit'] != null) {
|
|
586
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
if (requestParameters['sortBy'] != null) {
|
|
590
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
594
|
+
|
|
595
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
596
|
+
const token = this.configuration.accessToken;
|
|
597
|
+
const tokenString = await token("bearer", []);
|
|
598
|
+
|
|
599
|
+
if (tokenString) {
|
|
600
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
const response = await this.request({
|
|
604
|
+
path: `/admin/domains`,
|
|
605
|
+
method: 'GET',
|
|
606
|
+
headers: headerParameters,
|
|
607
|
+
query: queryParameters,
|
|
608
|
+
}, initOverrides);
|
|
609
|
+
|
|
610
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListDomains200ResponseFromJSON(jsonValue));
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
*/
|
|
616
|
+
async listDomains(requestParameters: AdminApiListDomainsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomains200Response> {
|
|
617
|
+
const response = await this.listDomainsRaw(requestParameters, initOverrides);
|
|
618
|
+
return await response.value();
|
|
619
|
+
}
|
|
620
|
+
|
|
561
621
|
/**
|
|
562
622
|
*
|
|
563
623
|
*/
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -145,7 +145,7 @@ export interface BuyersApiPutBuyerOfferRequest {
|
|
|
145
145
|
putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export interface
|
|
148
|
+
export interface BuyersApiSetLocaleRequest {
|
|
149
149
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -836,7 +836,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
836
836
|
/**
|
|
837
837
|
*
|
|
838
838
|
*/
|
|
839
|
-
async setLocaleRaw(requestParameters:
|
|
839
|
+
async setLocaleRaw(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
840
840
|
if (requestParameters['storeBuyerLocaleInput'] == null) {
|
|
841
841
|
throw new runtime.RequiredError(
|
|
842
842
|
'storeBuyerLocaleInput',
|
|
@@ -872,7 +872,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
872
872
|
/**
|
|
873
873
|
*
|
|
874
874
|
*/
|
|
875
|
-
async setLocale(requestParameters:
|
|
875
|
+
async setLocale(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
876
876
|
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
877
877
|
}
|
|
878
878
|
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
DomainUrlDto,
|
|
23
23
|
GetAllDomainTransfers200Response,
|
|
24
24
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
25
|
-
|
|
25
|
+
ListDomains200Response,
|
|
26
26
|
NotFoundException,
|
|
27
27
|
SellerDomainTransferDto,
|
|
28
28
|
ThrottlerException,
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
GetAllDomainTransfers200ResponseToJSON,
|
|
46
46
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON,
|
|
47
47
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
ListDomains200ResponseFromJSON,
|
|
49
|
+
ListDomains200ResponseToJSON,
|
|
50
50
|
NotFoundExceptionFromJSON,
|
|
51
51
|
NotFoundExceptionToJSON,
|
|
52
52
|
SellerDomainTransferDtoFromJSON,
|
|
@@ -101,7 +101,7 @@ export interface DomainsApiGetDomainUrlRequest {
|
|
|
101
101
|
domainId: string;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export interface
|
|
104
|
+
export interface DomainsApiListRequest {
|
|
105
105
|
filter?: object;
|
|
106
106
|
page?: number;
|
|
107
107
|
limit?: number;
|
|
@@ -538,7 +538,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
538
538
|
/**
|
|
539
539
|
*
|
|
540
540
|
*/
|
|
541
|
-
async listRaw(requestParameters:
|
|
541
|
+
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomains200Response>> {
|
|
542
542
|
const queryParameters: any = {};
|
|
543
543
|
|
|
544
544
|
if (requestParameters['filter'] != null) {
|
|
@@ -574,13 +574,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
574
574
|
query: queryParameters,
|
|
575
575
|
}, initOverrides);
|
|
576
576
|
|
|
577
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
577
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListDomains200ResponseFromJSON(jsonValue));
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
/**
|
|
581
581
|
*
|
|
582
582
|
*/
|
|
583
|
-
async list(requestParameters:
|
|
583
|
+
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomains200Response> {
|
|
584
584
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
585
585
|
return await response.value();
|
|
586
586
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
IntersectionDomainSalesInformationDtoWithDomainStatsDto,
|
|
19
|
-
|
|
19
|
+
List200Response2,
|
|
20
20
|
NotFoundException,
|
|
21
21
|
ThrottlerException,
|
|
22
22
|
ValidationException,
|
|
@@ -24,8 +24,8 @@ import type {
|
|
|
24
24
|
import {
|
|
25
25
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON,
|
|
26
26
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
List200Response2FromJSON,
|
|
28
|
+
List200Response2ToJSON,
|
|
29
29
|
NotFoundExceptionFromJSON,
|
|
30
30
|
NotFoundExceptionToJSON,
|
|
31
31
|
ThrottlerExceptionFromJSON,
|
|
@@ -39,7 +39,7 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
39
39
|
includeStats?: boolean;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export interface
|
|
42
|
+
export interface DomainsPublicApiListRequest {
|
|
43
43
|
filter?: object;
|
|
44
44
|
page?: number;
|
|
45
45
|
limit?: number;
|
|
@@ -91,7 +91,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
*/
|
|
94
|
-
async listRaw(requestParameters:
|
|
94
|
+
async listRaw(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>> {
|
|
95
95
|
const queryParameters: any = {};
|
|
96
96
|
|
|
97
97
|
if (requestParameters['filter'] != null) {
|
|
@@ -119,13 +119,13 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
119
119
|
query: queryParameters,
|
|
120
120
|
}, initOverrides);
|
|
121
121
|
|
|
122
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response2FromJSON(jsonValue));
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
*
|
|
127
127
|
*/
|
|
128
|
-
async list(requestParameters:
|
|
128
|
+
async list(requestParameters: DomainsPublicApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2> {
|
|
129
129
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
130
130
|
return await response.value();
|
|
131
131
|
}
|
package/src/apis/InvoicesApi.ts
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
ValidationExceptionToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
-
export interface
|
|
34
|
+
export interface InvoicesApiDownloadInvoiceRequest {
|
|
35
35
|
invoiceId: string;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -50,7 +50,7 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
async downloadInvoiceRaw(requestParameters:
|
|
53
|
+
async downloadInvoiceRaw(requestParameters: InvoicesApiDownloadInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
54
54
|
if (requestParameters['invoiceId'] == null) {
|
|
55
55
|
throw new runtime.RequiredError(
|
|
56
56
|
'invoiceId',
|
|
@@ -83,7 +83,7 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
*/
|
|
86
|
-
async downloadInvoice(requestParameters:
|
|
86
|
+
async downloadInvoice(requestParameters: InvoicesApiDownloadInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
87
87
|
const response = await this.downloadInvoiceRaw(requestParameters, initOverrides);
|
|
88
88
|
return await response.value();
|
|
89
89
|
}
|
|
@@ -53,11 +53,11 @@ export interface LeadsPublicApiCreateLeadRequest {
|
|
|
53
53
|
createLeadInput: CreateLeadInput;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export interface
|
|
56
|
+
export interface LeadsPublicApiGetLeadRequest {
|
|
57
57
|
leadId: string;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export interface
|
|
60
|
+
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
61
61
|
leadId: string;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -119,11 +119,11 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
121
|
*/
|
|
122
|
-
async
|
|
122
|
+
async getLeadRaw(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
|
|
123
123
|
if (requestParameters['leadId'] == null) {
|
|
124
124
|
throw new runtime.RequiredError(
|
|
125
125
|
'leadId',
|
|
126
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
126
|
+
'Required parameter "leadId" was null or undefined when calling getLead().'
|
|
127
127
|
);
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -132,31 +132,31 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
132
132
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
133
133
|
|
|
134
134
|
const response = await this.request({
|
|
135
|
-
path: `/leads/{leadId}
|
|
135
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
136
136
|
method: 'GET',
|
|
137
137
|
headers: headerParameters,
|
|
138
138
|
query: queryParameters,
|
|
139
139
|
}, initOverrides);
|
|
140
140
|
|
|
141
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
*
|
|
146
146
|
*/
|
|
147
|
-
async
|
|
148
|
-
const response = await this.
|
|
147
|
+
async getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
|
|
148
|
+
const response = await this.getLeadRaw(requestParameters, initOverrides);
|
|
149
149
|
return await response.value();
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
*/
|
|
155
|
-
async
|
|
155
|
+
async getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>> {
|
|
156
156
|
if (requestParameters['leadId'] == null) {
|
|
157
157
|
throw new runtime.RequiredError(
|
|
158
158
|
'leadId',
|
|
159
|
-
'Required parameter "leadId" was null or undefined when calling
|
|
159
|
+
'Required parameter "leadId" was null or undefined when calling getLeadStatus().'
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
|
|
@@ -165,20 +165,20 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
165
165
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
166
166
|
|
|
167
167
|
const response = await this.request({
|
|
168
|
-
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
168
|
+
path: `/leads/{leadId}/status`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
169
169
|
method: 'GET',
|
|
170
170
|
headers: headerParameters,
|
|
171
171
|
query: queryParameters,
|
|
172
172
|
}, initOverrides);
|
|
173
173
|
|
|
174
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
174
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeadStatusDtoFromJSON(jsonValue));
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
*
|
|
179
179
|
*/
|
|
180
|
-
async
|
|
181
|
-
const response = await this.
|
|
180
|
+
async getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto> {
|
|
181
|
+
const response = await this.getLeadStatusRaw(requestParameters, initOverrides);
|
|
182
182
|
return await response.value();
|
|
183
183
|
}
|
|
184
184
|
|
package/src/apis/TasksApi.ts
CHANGED
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
List200Response1,
|
|
19
19
|
ThrottlerException,
|
|
20
20
|
ValidationException,
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
List200Response1FromJSON,
|
|
24
|
+
List200Response1ToJSON,
|
|
25
25
|
ThrottlerExceptionFromJSON,
|
|
26
26
|
ThrottlerExceptionToJSON,
|
|
27
27
|
ValidationExceptionFromJSON,
|
|
28
28
|
ValidationExceptionToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface TasksApiListRequest {
|
|
32
32
|
filter?: object;
|
|
33
33
|
page?: number;
|
|
34
34
|
limit?: number;
|
|
@@ -43,7 +43,7 @@ export class TasksApi extends runtime.BaseAPI {
|
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
async listRaw(requestParameters:
|
|
46
|
+
async listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
|
|
47
47
|
const queryParameters: any = {};
|
|
48
48
|
|
|
49
49
|
if (requestParameters['filter'] != null) {
|
|
@@ -79,13 +79,13 @@ export class TasksApi extends runtime.BaseAPI {
|
|
|
79
79
|
query: queryParameters,
|
|
80
80
|
}, initOverrides);
|
|
81
81
|
|
|
82
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response1FromJSON(jsonValue));
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
*/
|
|
88
|
-
async list(requestParameters:
|
|
88
|
+
async list(requestParameters: TasksApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
|
|
89
89
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
90
90
|
return await response.value();
|
|
91
91
|
}
|
|
@@ -36,13 +36,19 @@ export interface DomainTransferDetailsOrderBuyerDto {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof DomainTransferDetailsOrderBuyerDto
|
|
38
38
|
*/
|
|
39
|
-
firstName: string;
|
|
39
|
+
firstName: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* The order buyer last name
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof DomainTransferDetailsOrderBuyerDto
|
|
44
44
|
*/
|
|
45
|
-
lastName: string;
|
|
45
|
+
lastName: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The company name
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof DomainTransferDetailsOrderBuyerDto
|
|
50
|
+
*/
|
|
51
|
+
companyName: string | null;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -53,6 +59,7 @@ export function instanceOfDomainTransferDetailsOrderBuyerDto(value: object): val
|
|
|
53
59
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
60
|
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
55
61
|
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
62
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
56
63
|
return true;
|
|
57
64
|
}
|
|
58
65
|
|
|
@@ -70,6 +77,7 @@ export function DomainTransferDetailsOrderBuyerDtoFromJSONTyped(json: any, ignor
|
|
|
70
77
|
'email': json['email'],
|
|
71
78
|
'firstName': json['firstName'],
|
|
72
79
|
'lastName': json['lastName'],
|
|
80
|
+
'companyName': json['companyName'],
|
|
73
81
|
};
|
|
74
82
|
}
|
|
75
83
|
|
|
@@ -88,6 +96,7 @@ export function DomainTransferDetailsOrderBuyerDtoFromJSONTyped(json: any, ignor
|
|
|
88
96
|
'email': value['email'],
|
|
89
97
|
'firstName': value['firstName'],
|
|
90
98
|
'lastName': value['lastName'],
|
|
99
|
+
'companyName': value['companyName'],
|
|
91
100
|
};
|
|
92
101
|
}
|
|
93
102
|
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
PaginateResponseLinksToJSONTyped,
|
|
22
22
|
} from './PaginateResponseLinks';
|
|
23
|
-
import type {
|
|
23
|
+
import type { IntersectionTaskListTaskDto } from './IntersectionTaskListTaskDto';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
IntersectionTaskListTaskDtoFromJSON,
|
|
26
|
+
IntersectionTaskListTaskDtoFromJSONTyped,
|
|
27
|
+
IntersectionTaskListTaskDtoToJSON,
|
|
28
|
+
IntersectionTaskListTaskDtoToJSONTyped,
|
|
29
|
+
} from './IntersectionTaskListTaskDto';
|
|
30
30
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
31
|
import {
|
|
32
32
|
PaginateResponseMetaFromJSON,
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
export interface List200Response1 {
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {Array<
|
|
46
|
+
* @type {Array<IntersectionTaskListTaskDto>}
|
|
47
47
|
* @memberof List200Response1
|
|
48
48
|
*/
|
|
49
|
-
data: Array<
|
|
49
|
+
data: Array<IntersectionTaskListTaskDto>;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {PaginateResponseMeta}
|
|
@@ -81,7 +81,7 @@ export function List200Response1FromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
'data': ((json['data'] as Array<any>).map(
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(IntersectionTaskListTaskDtoFromJSON)),
|
|
85
85
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
86
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
87
|
};
|
|
@@ -98,7 +98,7 @@ export function List200Response1FromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
98
98
|
|
|
99
99
|
return {
|
|
100
100
|
|
|
101
|
-
'data': ((value['data'] as Array<any>).map(
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(IntersectionTaskListTaskDtoToJSON)),
|
|
102
102
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
103
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
104
|
};
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
PaginateResponseLinksToJSONTyped,
|
|
22
22
|
} from './PaginateResponseLinks';
|
|
23
|
-
import type {
|
|
23
|
+
import type { PublicDomainDto } from './PublicDomainDto';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
PublicDomainDtoFromJSON,
|
|
26
|
+
PublicDomainDtoFromJSONTyped,
|
|
27
|
+
PublicDomainDtoToJSON,
|
|
28
|
+
PublicDomainDtoToJSONTyped,
|
|
29
|
+
} from './PublicDomainDto';
|
|
30
30
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
31
|
import {
|
|
32
32
|
PaginateResponseMetaFromJSON,
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
export interface List200Response2 {
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {Array<
|
|
46
|
+
* @type {Array<PublicDomainDto>}
|
|
47
47
|
* @memberof List200Response2
|
|
48
48
|
*/
|
|
49
|
-
data: Array<
|
|
49
|
+
data: Array<PublicDomainDto>;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {PaginateResponseMeta}
|
|
@@ -81,7 +81,7 @@ export function List200Response2FromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
'data': ((json['data'] as Array<any>).map(
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(PublicDomainDtoFromJSON)),
|
|
85
85
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
86
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
87
|
};
|
|
@@ -98,7 +98,7 @@ export function List200Response2FromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
98
98
|
|
|
99
99
|
return {
|
|
100
100
|
|
|
101
|
-
'data': ((value['data'] as Array<any>).map(
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(PublicDomainDtoToJSON)),
|
|
102
102
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
103
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
104
|
};
|