@randock/nameshift-api-client 0.0.63 → 0.0.65
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 +7 -2
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +12 -1
- package/dist/apis/BuyersApi.js +53 -0
- package/dist/apis/DomainsPublicApi.d.ts +1 -13
- package/dist/apis/DomainsPublicApi.js +0 -49
- package/dist/apis/LeadsApi.d.ts +2 -2
- package/dist/apis/LeadsApi.js +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +13 -1
- package/dist/apis/LeadsPublicApi.js +47 -0
- package/dist/apis/OrdersPublicApi.d.ts +52 -0
- package/dist/apis/OrdersPublicApi.js +217 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BuyerDomainTransferAuthCodeDto.d.ts +31 -0
- package/dist/models/BuyerDomainTransferAuthCodeDto.js +47 -0
- package/dist/models/CreateLeadInput.d.ts +6 -6
- package/dist/models/CreateLeadInput.js +4 -4
- package/dist/models/{BuyDomainInput.d.ts → CreateOrderInput.d.ts} +30 -24
- package/dist/models/{BuyDomainInput.js → CreateOrderInput.js} +19 -15
- package/dist/models/OrderDto.d.ts +118 -0
- package/dist/models/OrderDto.js +107 -0
- package/dist/models/PublicLeadDto.d.ts +6 -0
- package/dist/models/PublicLeadDto.js +4 -0
- package/dist/models/PutLeadOfferInput.d.ts +32 -0
- package/dist/models/{PutLeadInput.js → PutLeadOfferInput.js} +11 -11
- package/dist/models/UpdateLeadInput.d.ts +77 -0
- package/dist/models/UpdateLeadInput.js +80 -0
- package/dist/models/UpdateOrderInput.d.ts +85 -0
- package/dist/models/UpdateOrderInput.js +83 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +51 -0
- package/src/apis/DomainsPublicApi.ts +0 -54
- package/src/apis/LeadsApi.ts +8 -8
- package/src/apis/LeadsPublicApi.ts +50 -0
- package/src/apis/OrdersPublicApi.ts +172 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BuyerDomainTransferAuthCodeDto.ts +61 -0
- package/src/models/CreateLeadInput.ts +9 -9
- package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
- package/src/models/OrderDto.ts +196 -0
- package/src/models/PublicLeadDto.ts +9 -0
- package/src/models/{PutLeadInput.ts → PutLeadOfferInput.ts} +9 -9
- package/src/models/UpdateLeadInput.ts +134 -0
- package/src/models/UpdateOrderInput.ts +142 -0
- package/src/models/index.ts +6 -2
- package/dist/models/PutLeadInput.d.ts +0 -32
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.PutLeadOfferInputToJSON = exports.PutLeadOfferInputFromJSONTyped = exports.PutLeadOfferInputFromJSON = exports.instanceOfPutLeadOfferInput = void 0;
|
|
17
17
|
var MoneyDto_1 = require("./MoneyDto");
|
|
18
18
|
/**
|
|
19
|
-
* Check if a given object implements the
|
|
19
|
+
* Check if a given object implements the PutLeadOfferInput interface.
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function instanceOfPutLeadOfferInput(value) {
|
|
22
22
|
if (!('offer' in value) || value['offer'] === undefined)
|
|
23
23
|
return false;
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
|
-
exports.
|
|
27
|
-
function
|
|
28
|
-
return
|
|
26
|
+
exports.instanceOfPutLeadOfferInput = instanceOfPutLeadOfferInput;
|
|
27
|
+
function PutLeadOfferInputFromJSON(json) {
|
|
28
|
+
return PutLeadOfferInputFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
exports.
|
|
31
|
-
function
|
|
30
|
+
exports.PutLeadOfferInputFromJSON = PutLeadOfferInputFromJSON;
|
|
31
|
+
function PutLeadOfferInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
32
|
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
@@ -36,8 +36,8 @@ function PutLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
39
|
+
exports.PutLeadOfferInputFromJSONTyped = PutLeadOfferInputFromJSONTyped;
|
|
40
|
+
function PutLeadOfferInputToJSON(value) {
|
|
41
41
|
if (value == null) {
|
|
42
42
|
return value;
|
|
43
43
|
}
|
|
@@ -45,4 +45,4 @@ function PutLeadInputToJSON(value) {
|
|
|
45
45
|
'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
exports.
|
|
48
|
+
exports.PutLeadOfferInputToJSON = PutLeadOfferInputToJSON;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateLeadInput
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateLeadInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateLeadInput
|
|
23
|
+
*/
|
|
24
|
+
firstname: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateLeadInput
|
|
29
|
+
*/
|
|
30
|
+
lastname: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateLeadInput
|
|
35
|
+
*/
|
|
36
|
+
email: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateLeadInput
|
|
41
|
+
*/
|
|
42
|
+
phone: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateLeadInput
|
|
47
|
+
*/
|
|
48
|
+
companyName: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {MoneyDto}
|
|
52
|
+
* @memberof UpdateLeadInput
|
|
53
|
+
*/
|
|
54
|
+
offer: MoneyDto;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof UpdateLeadInput
|
|
59
|
+
*/
|
|
60
|
+
offeredBy: UpdateLeadInputOfferedByEnum;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const UpdateLeadInputOfferedByEnum: {
|
|
66
|
+
readonly BUYER: "buyer";
|
|
67
|
+
readonly SELLER: "seller";
|
|
68
|
+
readonly ADMIN: "admin";
|
|
69
|
+
};
|
|
70
|
+
export type UpdateLeadInputOfferedByEnum = typeof UpdateLeadInputOfferedByEnum[keyof typeof UpdateLeadInputOfferedByEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the UpdateLeadInput interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfUpdateLeadInput(value: object): value is UpdateLeadInput;
|
|
75
|
+
export declare function UpdateLeadInputFromJSON(json: any): UpdateLeadInput;
|
|
76
|
+
export declare function UpdateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLeadInput;
|
|
77
|
+
export declare function UpdateLeadInputToJSON(value?: UpdateLeadInput | null): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateLeadInputToJSON = exports.UpdateLeadInputFromJSONTyped = exports.UpdateLeadInputFromJSON = exports.instanceOfUpdateLeadInput = exports.UpdateLeadInputOfferedByEnum = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.UpdateLeadInputOfferedByEnum = {
|
|
22
|
+
BUYER: 'buyer',
|
|
23
|
+
SELLER: 'seller',
|
|
24
|
+
ADMIN: 'admin'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UpdateLeadInput interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfUpdateLeadInput(value) {
|
|
30
|
+
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('offer' in value) || value['offer'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('offeredBy' in value) || value['offeredBy'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
exports.instanceOfUpdateLeadInput = instanceOfUpdateLeadInput;
|
|
47
|
+
function UpdateLeadInputFromJSON(json) {
|
|
48
|
+
return UpdateLeadInputFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
exports.UpdateLeadInputFromJSON = UpdateLeadInputFromJSON;
|
|
51
|
+
function UpdateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'firstname': json['firstname'],
|
|
57
|
+
'lastname': json['lastname'],
|
|
58
|
+
'email': json['email'],
|
|
59
|
+
'phone': json['phone'],
|
|
60
|
+
'companyName': json['companyName'],
|
|
61
|
+
'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
|
|
62
|
+
'offeredBy': json['offeredBy'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.UpdateLeadInputFromJSONTyped = UpdateLeadInputFromJSONTyped;
|
|
66
|
+
function UpdateLeadInputToJSON(value) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'firstname': value['firstname'],
|
|
72
|
+
'lastname': value['lastname'],
|
|
73
|
+
'email': value['email'],
|
|
74
|
+
'phone': value['phone'],
|
|
75
|
+
'companyName': value['companyName'],
|
|
76
|
+
'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
|
|
77
|
+
'offeredBy': value['offeredBy'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
exports.UpdateLeadInputToJSON = UpdateLeadInputToJSON;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateOrderInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateOrderInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateOrderInput
|
|
22
|
+
*/
|
|
23
|
+
companyName: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateOrderInput
|
|
28
|
+
*/
|
|
29
|
+
companyVatNumber: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateOrderInput
|
|
34
|
+
*/
|
|
35
|
+
firstname: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateOrderInput
|
|
40
|
+
*/
|
|
41
|
+
lastname: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateOrderInput
|
|
46
|
+
*/
|
|
47
|
+
email: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateOrderInput
|
|
52
|
+
*/
|
|
53
|
+
phone: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateOrderInput
|
|
58
|
+
*/
|
|
59
|
+
country: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateOrderInput
|
|
64
|
+
*/
|
|
65
|
+
city: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UpdateOrderInput
|
|
70
|
+
*/
|
|
71
|
+
postalCode: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof UpdateOrderInput
|
|
76
|
+
*/
|
|
77
|
+
address: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the UpdateOrderInput interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfUpdateOrderInput(value: object): value is UpdateOrderInput;
|
|
83
|
+
export declare function UpdateOrderInputFromJSON(json: any): UpdateOrderInput;
|
|
84
|
+
export declare function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderInput;
|
|
85
|
+
export declare function UpdateOrderInputToJSON(value?: UpdateOrderInput | null): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateOrderInputToJSON = exports.UpdateOrderInputFromJSONTyped = exports.UpdateOrderInputFromJSON = exports.instanceOfUpdateOrderInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UpdateOrderInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUpdateOrderInput(value) {
|
|
21
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('postalCode' in value) || value['postalCode'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
exports.instanceOfUpdateOrderInput = instanceOfUpdateOrderInput;
|
|
44
|
+
function UpdateOrderInputFromJSON(json) {
|
|
45
|
+
return UpdateOrderInputFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
exports.UpdateOrderInputFromJSON = UpdateOrderInputFromJSON;
|
|
48
|
+
function UpdateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'companyName': json['companyName'],
|
|
54
|
+
'companyVatNumber': json['companyVatNumber'],
|
|
55
|
+
'firstname': json['firstname'],
|
|
56
|
+
'lastname': json['lastname'],
|
|
57
|
+
'email': json['email'],
|
|
58
|
+
'phone': json['phone'],
|
|
59
|
+
'country': json['country'],
|
|
60
|
+
'city': json['city'],
|
|
61
|
+
'postalCode': json['postalCode'],
|
|
62
|
+
'address': json['address'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.UpdateOrderInputFromJSONTyped = UpdateOrderInputFromJSONTyped;
|
|
66
|
+
function UpdateOrderInputToJSON(value) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'companyName': value['companyName'],
|
|
72
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
73
|
+
'firstname': value['firstname'],
|
|
74
|
+
'lastname': value['lastname'],
|
|
75
|
+
'email': value['email'],
|
|
76
|
+
'phone': value['phone'],
|
|
77
|
+
'country': value['country'],
|
|
78
|
+
'city': value['city'],
|
|
79
|
+
'postalCode': value['postalCode'],
|
|
80
|
+
'address': value['address'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.UpdateOrderInputToJSON = UpdateOrderInputToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './AccountFinancialInput';
|
|
|
5
5
|
export * from './AccountSettingsInput';
|
|
6
6
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
7
7
|
export * from './BatchUpdateDomainsInput';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './BuyerDomainTransferAuthCodeDto';
|
|
9
9
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
10
10
|
export * from './BuyerDomainTransferListItemDto';
|
|
11
11
|
export * from './BuyerUserDto';
|
|
@@ -13,6 +13,7 @@ export * from './ChangeOrderStatusInput';
|
|
|
13
13
|
export * from './ConflictException';
|
|
14
14
|
export * from './CreateLeadInput';
|
|
15
15
|
export * from './CreateLeadMessageInput';
|
|
16
|
+
export * from './CreateOrderInput';
|
|
16
17
|
export * from './DashboardStatsDto';
|
|
17
18
|
export * from './DeleteDomainsInput';
|
|
18
19
|
export * from './DomainDto';
|
|
@@ -51,13 +52,14 @@ export * from './MoneyDto';
|
|
|
51
52
|
export * from './MoneyInput';
|
|
52
53
|
export * from './NotFoundException';
|
|
53
54
|
export * from './ObjectId';
|
|
55
|
+
export * from './OrderDto';
|
|
54
56
|
export * from './PaginateResponse';
|
|
55
57
|
export * from './PaginateResponseLinks';
|
|
56
58
|
export * from './PaginateResponseMeta';
|
|
57
59
|
export * from './PublicLeadBuyerDto';
|
|
58
60
|
export * from './PublicLeadDto';
|
|
59
61
|
export * from './PublicLeadDtoLastOffer';
|
|
60
|
-
export * from './
|
|
62
|
+
export * from './PutLeadOfferInput';
|
|
61
63
|
export * from './RegisterAccountInput';
|
|
62
64
|
export * from './RelatedSellerDomain';
|
|
63
65
|
export * from './RequestAccessTokenInput';
|
|
@@ -74,6 +76,8 @@ export * from './StoreUserLocaleInput';
|
|
|
74
76
|
export * from './ThrottlerException';
|
|
75
77
|
export * from './UpdateDomainInput';
|
|
76
78
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
79
|
+
export * from './UpdateLeadInput';
|
|
80
|
+
export * from './UpdateOrderInput';
|
|
77
81
|
export * from './UserPasswordResetDto';
|
|
78
82
|
export * from './ValidationError';
|
|
79
83
|
export * from './ValidationException';
|
package/dist/models/index.js
CHANGED
|
@@ -23,7 +23,7 @@ __exportStar(require("./AccountFinancialInput"), exports);
|
|
|
23
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
24
24
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
|
|
27
27
|
__exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
|
28
28
|
__exportStar(require("./BuyerDomainTransferListItemDto"), exports);
|
|
29
29
|
__exportStar(require("./BuyerUserDto"), exports);
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
|
31
31
|
__exportStar(require("./ConflictException"), exports);
|
|
32
32
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
33
33
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
34
|
+
__exportStar(require("./CreateOrderInput"), exports);
|
|
34
35
|
__exportStar(require("./DashboardStatsDto"), exports);
|
|
35
36
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
36
37
|
__exportStar(require("./DomainDto"), exports);
|
|
@@ -69,13 +70,14 @@ __exportStar(require("./MoneyDto"), exports);
|
|
|
69
70
|
__exportStar(require("./MoneyInput"), exports);
|
|
70
71
|
__exportStar(require("./NotFoundException"), exports);
|
|
71
72
|
__exportStar(require("./ObjectId"), exports);
|
|
73
|
+
__exportStar(require("./OrderDto"), exports);
|
|
72
74
|
__exportStar(require("./PaginateResponse"), exports);
|
|
73
75
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
74
76
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
75
77
|
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
|
76
78
|
__exportStar(require("./PublicLeadDto"), exports);
|
|
77
79
|
__exportStar(require("./PublicLeadDtoLastOffer"), exports);
|
|
78
|
-
__exportStar(require("./
|
|
80
|
+
__exportStar(require("./PutLeadOfferInput"), exports);
|
|
79
81
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
80
82
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
81
83
|
__exportStar(require("./RequestAccessTokenInput"), exports);
|
|
@@ -92,6 +94,8 @@ __exportStar(require("./StoreUserLocaleInput"), exports);
|
|
|
92
94
|
__exportStar(require("./ThrottlerException"), exports);
|
|
93
95
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
94
96
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
97
|
+
__exportStar(require("./UpdateLeadInput"), exports);
|
|
98
|
+
__exportStar(require("./UpdateOrderInput"), exports);
|
|
95
99
|
__exportStar(require("./UserPasswordResetDto"), exports);
|
|
96
100
|
__exportStar(require("./ValidationError"), exports);
|
|
97
101
|
__exportStar(require("./ValidationException"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -15,17 +15,23 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BuyerDomainTransferAuthCodeDto,
|
|
18
19
|
BuyerUserDto,
|
|
19
20
|
GetBuyerTransfers200Response,
|
|
21
|
+
NotFoundException,
|
|
20
22
|
StoreBuyerLocaleInput,
|
|
21
23
|
ThrottlerException,
|
|
22
24
|
ValidationException,
|
|
23
25
|
} from '../models/index';
|
|
24
26
|
import {
|
|
27
|
+
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
28
|
+
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
25
29
|
BuyerUserDtoFromJSON,
|
|
26
30
|
BuyerUserDtoToJSON,
|
|
27
31
|
GetBuyerTransfers200ResponseFromJSON,
|
|
28
32
|
GetBuyerTransfers200ResponseToJSON,
|
|
33
|
+
NotFoundExceptionFromJSON,
|
|
34
|
+
NotFoundExceptionToJSON,
|
|
29
35
|
StoreBuyerLocaleInputFromJSON,
|
|
30
36
|
StoreBuyerLocaleInputToJSON,
|
|
31
37
|
ThrottlerExceptionFromJSON,
|
|
@@ -41,6 +47,10 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
41
47
|
sortBy?: Array<string>;
|
|
42
48
|
}
|
|
43
49
|
|
|
50
|
+
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
51
|
+
transferId: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
export interface BuyersApiSetLocaleRequest {
|
|
45
55
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
46
56
|
}
|
|
@@ -134,6 +144,47 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
134
144
|
return await response.value();
|
|
135
145
|
}
|
|
136
146
|
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
async getTransferAuthCodeRaw(requestParameters: BuyersApiGetTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainTransferAuthCodeDto>> {
|
|
151
|
+
if (requestParameters['transferId'] == null) {
|
|
152
|
+
throw new runtime.RequiredError(
|
|
153
|
+
'transferId',
|
|
154
|
+
'Required parameter "transferId" was null or undefined when calling getTransferAuthCode().'
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const queryParameters: any = {};
|
|
159
|
+
|
|
160
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
161
|
+
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = await token("bearer", []);
|
|
165
|
+
|
|
166
|
+
if (tokenString) {
|
|
167
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const response = await this.request({
|
|
171
|
+
path: `/buyers/private/transfers/{transferId}/auth-code`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
172
|
+
method: 'GET',
|
|
173
|
+
headers: headerParameters,
|
|
174
|
+
query: queryParameters,
|
|
175
|
+
}, initOverrides);
|
|
176
|
+
|
|
177
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerDomainTransferAuthCodeDtoFromJSON(jsonValue));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
async getTransferAuthCode(requestParameters: BuyersApiGetTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainTransferAuthCodeDto> {
|
|
184
|
+
const response = await this.getTransferAuthCodeRaw(requestParameters, initOverrides);
|
|
185
|
+
return await response.value();
|
|
186
|
+
}
|
|
187
|
+
|
|
137
188
|
/**
|
|
138
189
|
*
|
|
139
190
|
*/
|
|
@@ -15,22 +15,16 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
BuyDomainInput,
|
|
19
18
|
DomainSalesInformationDto,
|
|
20
19
|
NotFoundException,
|
|
21
|
-
ObjectId,
|
|
22
20
|
ThrottlerException,
|
|
23
21
|
ValidationException,
|
|
24
22
|
} from '../models/index';
|
|
25
23
|
import {
|
|
26
|
-
BuyDomainInputFromJSON,
|
|
27
|
-
BuyDomainInputToJSON,
|
|
28
24
|
DomainSalesInformationDtoFromJSON,
|
|
29
25
|
DomainSalesInformationDtoToJSON,
|
|
30
26
|
NotFoundExceptionFromJSON,
|
|
31
27
|
NotFoundExceptionToJSON,
|
|
32
|
-
ObjectIdFromJSON,
|
|
33
|
-
ObjectIdToJSON,
|
|
34
28
|
ThrottlerExceptionFromJSON,
|
|
35
29
|
ThrottlerExceptionToJSON,
|
|
36
30
|
ValidationExceptionFromJSON,
|
|
@@ -42,11 +36,6 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
|
42
36
|
locale: string;
|
|
43
37
|
}
|
|
44
38
|
|
|
45
|
-
export interface DomainsPublicApiPostDomainByNameBuyRequest {
|
|
46
|
-
domainName: string;
|
|
47
|
-
buyDomainInput: BuyDomainInput;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
39
|
/**
|
|
51
40
|
*
|
|
52
41
|
*/
|
|
@@ -96,47 +85,4 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
96
85
|
return await response.value();
|
|
97
86
|
}
|
|
98
87
|
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
async postDomainByNameBuyRaw(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
103
|
-
if (requestParameters['domainName'] == null) {
|
|
104
|
-
throw new runtime.RequiredError(
|
|
105
|
-
'domainName',
|
|
106
|
-
'Required parameter "domainName" was null or undefined when calling postDomainByNameBuy().'
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (requestParameters['buyDomainInput'] == null) {
|
|
111
|
-
throw new runtime.RequiredError(
|
|
112
|
-
'buyDomainInput',
|
|
113
|
-
'Required parameter "buyDomainInput" was null or undefined when calling postDomainByNameBuy().'
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const queryParameters: any = {};
|
|
118
|
-
|
|
119
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
120
|
-
|
|
121
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
122
|
-
|
|
123
|
-
const response = await this.request({
|
|
124
|
-
path: `/domains/by-name/{domainName}/buy`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
|
|
125
|
-
method: 'POST',
|
|
126
|
-
headers: headerParameters,
|
|
127
|
-
query: queryParameters,
|
|
128
|
-
body: BuyDomainInputToJSON(requestParameters['buyDomainInput']),
|
|
129
|
-
}, initOverrides);
|
|
130
|
-
|
|
131
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
async postDomainByNameBuy(requestParameters: DomainsPublicApiPostDomainByNameBuyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
|
|
138
|
-
const response = await this.postDomainByNameBuyRaw(requestParameters, initOverrides);
|
|
139
|
-
return await response.value();
|
|
140
|
-
}
|
|
141
|
-
|
|
142
88
|
}
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
IntersectionLeadDtoWithListFieldsDto,
|
|
21
21
|
ListLeadMessagesDto,
|
|
22
22
|
ObjectId,
|
|
23
|
-
|
|
23
|
+
PutLeadOfferInput,
|
|
24
24
|
ThrottlerException,
|
|
25
25
|
ValidationException,
|
|
26
26
|
} from '../models/index';
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
ListLeadMessagesDtoToJSON,
|
|
36
36
|
ObjectIdFromJSON,
|
|
37
37
|
ObjectIdToJSON,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
PutLeadOfferInputFromJSON,
|
|
39
|
+
PutLeadOfferInputToJSON,
|
|
40
40
|
ThrottlerExceptionFromJSON,
|
|
41
41
|
ThrottlerExceptionToJSON,
|
|
42
42
|
ValidationExceptionFromJSON,
|
|
@@ -62,7 +62,7 @@ export interface LeadsApiGetMessagesRequest {
|
|
|
62
62
|
|
|
63
63
|
export interface LeadsApiPutOfferRequest {
|
|
64
64
|
leadId: string;
|
|
65
|
-
|
|
65
|
+
putLeadOfferInput: PutLeadOfferInput;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
@@ -288,10 +288,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
if (requestParameters['
|
|
291
|
+
if (requestParameters['putLeadOfferInput'] == null) {
|
|
292
292
|
throw new runtime.RequiredError(
|
|
293
|
-
'
|
|
294
|
-
'Required parameter "
|
|
293
|
+
'putLeadOfferInput',
|
|
294
|
+
'Required parameter "putLeadOfferInput" was null or undefined when calling putOffer().'
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
297
|
|
|
@@ -314,7 +314,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
314
314
|
method: 'PUT',
|
|
315
315
|
headers: headerParameters,
|
|
316
316
|
query: queryParameters,
|
|
317
|
-
body:
|
|
317
|
+
body: PutLeadOfferInputToJSON(requestParameters['putLeadOfferInput']),
|
|
318
318
|
}, initOverrides);
|
|
319
319
|
|
|
320
320
|
return new runtime.VoidApiResponse(response);
|