@randock/nameshift-api-client 0.0.64 → 0.0.66
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 +13 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +63 -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/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/GetAllOrders200Response.d.ts +46 -0
- package/dist/models/GetAllOrders200Response.js +58 -0
- package/dist/models/NotFoundException.d.ts +43 -0
- package/dist/models/NotFoundException.js +55 -0
- package/dist/models/OrderDto.d.ts +118 -0
- package/dist/models/OrderDto.js +107 -0
- package/dist/models/OrderListItemDto.d.ts +79 -0
- package/dist/models/OrderListItemDto.js +82 -0
- package/dist/models/OrderListItemDtoBasePrice.d.ts +37 -0
- package/dist/models/OrderListItemDtoBasePrice.js +51 -0
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +85 -0
- package/dist/models/OrderListItemDtoBuyerInformation.js +83 -0
- package/dist/models/OrderListItemDtoDomainInformation.d.ts +37 -0
- package/dist/models/OrderListItemDtoDomainInformation.js +51 -0
- package/dist/models/OrderListItemDtoSellerAccount.d.ts +37 -0
- package/dist/models/OrderListItemDtoSellerAccount.js +51 -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 +12 -2
- package/dist/models/index.js +12 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +63 -0
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/DomainsApi.ts +3 -0
- package/src/apis/DomainsPublicApi.ts +3 -54
- package/src/apis/LeadsApi.ts +8 -8
- package/src/apis/LeadsPublicApi.ts +53 -0
- package/src/apis/OrdersPublicApi.ts +172 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateLeadInput.ts +9 -9
- package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
- package/src/models/GetAllOrders200Response.ts +98 -0
- package/src/models/NotFoundException.ts +79 -0
- package/src/models/OrderDto.ts +196 -0
- package/src/models/OrderListItemDto.ts +151 -0
- package/src/models/OrderListItemDtoBasePrice.ts +70 -0
- package/src/models/OrderListItemDtoBuyerInformation.ts +142 -0
- package/src/models/OrderListItemDtoDomainInformation.ts +70 -0
- package/src/models/OrderListItemDtoSellerAccount.ts +70 -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 +12 -2
- package/dist/models/PutLeadInput.d.ts +0 -32
|
@@ -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.OrderListItemDtoBuyerInformationToJSON = exports.OrderListItemDtoBuyerInformationFromJSONTyped = exports.OrderListItemDtoBuyerInformationFromJSON = exports.instanceOfOrderListItemDtoBuyerInformation = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the OrderListItemDtoBuyerInformation interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfOrderListItemDtoBuyerInformation(value) {
|
|
21
|
+
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('postalCode' in value) || value['postalCode'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
exports.instanceOfOrderListItemDtoBuyerInformation = instanceOfOrderListItemDtoBuyerInformation;
|
|
44
|
+
function OrderListItemDtoBuyerInformationFromJSON(json) {
|
|
45
|
+
return OrderListItemDtoBuyerInformationFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
exports.OrderListItemDtoBuyerInformationFromJSON = OrderListItemDtoBuyerInformationFromJSON;
|
|
48
|
+
function OrderListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'firstname': json['firstname'],
|
|
54
|
+
'lastname': json['lastname'],
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'phone': json['phone'],
|
|
57
|
+
'country': json['country'],
|
|
58
|
+
'city': json['city'],
|
|
59
|
+
'postalCode': json['postalCode'],
|
|
60
|
+
'address': json['address'],
|
|
61
|
+
'companyName': json['companyName'],
|
|
62
|
+
'companyVatNumber': json['companyVatNumber'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.OrderListItemDtoBuyerInformationFromJSONTyped = OrderListItemDtoBuyerInformationFromJSONTyped;
|
|
66
|
+
function OrderListItemDtoBuyerInformationToJSON(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
|
+
'country': value['country'],
|
|
76
|
+
'city': value['city'],
|
|
77
|
+
'postalCode': value['postalCode'],
|
|
78
|
+
'address': value['address'],
|
|
79
|
+
'companyName': value['companyName'],
|
|
80
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.OrderListItemDtoBuyerInformationToJSON = OrderListItemDtoBuyerInformationToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 OrderListItemDtoDomainInformation
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderListItemDtoDomainInformation {
|
|
18
|
+
/**
|
|
19
|
+
* The order domain TLD
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrderListItemDtoDomainInformation
|
|
22
|
+
*/
|
|
23
|
+
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
* The order domain name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderListItemDtoDomainInformation
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the OrderListItemDtoDomainInformation interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfOrderListItemDtoDomainInformation(value: object): value is OrderListItemDtoDomainInformation;
|
|
35
|
+
export declare function OrderListItemDtoDomainInformationFromJSON(json: any): OrderListItemDtoDomainInformation;
|
|
36
|
+
export declare function OrderListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoDomainInformation;
|
|
37
|
+
export declare function OrderListItemDtoDomainInformationToJSON(value?: OrderListItemDtoDomainInformation | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.OrderListItemDtoDomainInformationToJSON = exports.OrderListItemDtoDomainInformationFromJSONTyped = exports.OrderListItemDtoDomainInformationFromJSON = exports.instanceOfOrderListItemDtoDomainInformation = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the OrderListItemDtoDomainInformation interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfOrderListItemDtoDomainInformation(value) {
|
|
21
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfOrderListItemDtoDomainInformation = instanceOfOrderListItemDtoDomainInformation;
|
|
28
|
+
function OrderListItemDtoDomainInformationFromJSON(json) {
|
|
29
|
+
return OrderListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.OrderListItemDtoDomainInformationFromJSON = OrderListItemDtoDomainInformationFromJSON;
|
|
32
|
+
function OrderListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'tld': json['tld'],
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.OrderListItemDtoDomainInformationFromJSONTyped = OrderListItemDtoDomainInformationFromJSONTyped;
|
|
42
|
+
function OrderListItemDtoDomainInformationToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'tld': value['tld'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.OrderListItemDtoDomainInformationToJSON = OrderListItemDtoDomainInformationToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 OrderListItemDtoSellerAccount
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderListItemDtoSellerAccount {
|
|
18
|
+
/**
|
|
19
|
+
* The order seller account ID
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof OrderListItemDtoSellerAccount
|
|
22
|
+
*/
|
|
23
|
+
accountId: object;
|
|
24
|
+
/**
|
|
25
|
+
* The order seller account ID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderListItemDtoSellerAccount
|
|
28
|
+
*/
|
|
29
|
+
identifier: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the OrderListItemDtoSellerAccount interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfOrderListItemDtoSellerAccount(value: object): value is OrderListItemDtoSellerAccount;
|
|
35
|
+
export declare function OrderListItemDtoSellerAccountFromJSON(json: any): OrderListItemDtoSellerAccount;
|
|
36
|
+
export declare function OrderListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoSellerAccount;
|
|
37
|
+
export declare function OrderListItemDtoSellerAccountToJSON(value?: OrderListItemDtoSellerAccount | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.OrderListItemDtoSellerAccountToJSON = exports.OrderListItemDtoSellerAccountFromJSONTyped = exports.OrderListItemDtoSellerAccountFromJSON = exports.instanceOfOrderListItemDtoSellerAccount = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the OrderListItemDtoSellerAccount interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfOrderListItemDtoSellerAccount(value) {
|
|
21
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfOrderListItemDtoSellerAccount = instanceOfOrderListItemDtoSellerAccount;
|
|
28
|
+
function OrderListItemDtoSellerAccountFromJSON(json) {
|
|
29
|
+
return OrderListItemDtoSellerAccountFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.OrderListItemDtoSellerAccountFromJSON = OrderListItemDtoSellerAccountFromJSON;
|
|
32
|
+
function OrderListItemDtoSellerAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'accountId': json['accountId'],
|
|
38
|
+
'identifier': json['identifier'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.OrderListItemDtoSellerAccountFromJSONTyped = OrderListItemDtoSellerAccountFromJSONTyped;
|
|
42
|
+
function OrderListItemDtoSellerAccountToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'accountId': value['accountId'],
|
|
48
|
+
'identifier': value['identifier'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.OrderListItemDtoSellerAccountToJSON = OrderListItemDtoSellerAccountToJSON;
|
|
@@ -39,6 +39,8 @@ function instanceOfPublicLeadDto(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('buyer' in value) || value['buyer'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
+
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
return true;
|
|
43
45
|
}
|
|
44
46
|
exports.instanceOfPublicLeadDto = instanceOfPublicLeadDto;
|
|
@@ -55,6 +57,7 @@ function PublicLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
'status': json['status'],
|
|
56
58
|
'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferFromJSON)(json['lastOffer']),
|
|
57
59
|
'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoFromJSON)(json['buyer']),
|
|
60
|
+
'domainName': json['domainName'],
|
|
58
61
|
};
|
|
59
62
|
}
|
|
60
63
|
exports.PublicLeadDtoFromJSONTyped = PublicLeadDtoFromJSONTyped;
|
|
@@ -67,6 +70,7 @@ function PublicLeadDtoToJSON(value) {
|
|
|
67
70
|
'status': value['status'],
|
|
68
71
|
'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferToJSON)(value['lastOffer']),
|
|
69
72
|
'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoToJSON)(value['buyer']),
|
|
73
|
+
'domainName': value['domainName'],
|
|
70
74
|
};
|
|
71
75
|
}
|
|
72
76
|
exports.PublicLeadDtoToJSON = PublicLeadDtoToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PutLeadOfferInput
|
|
17
|
+
*/
|
|
18
|
+
export interface PutLeadOfferInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof PutLeadOfferInput
|
|
23
|
+
*/
|
|
24
|
+
offer: MoneyDto | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PutLeadOfferInput interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPutLeadOfferInput(value: object): value is PutLeadOfferInput;
|
|
30
|
+
export declare function PutLeadOfferInputFromJSON(json: any): PutLeadOfferInput;
|
|
31
|
+
export declare function PutLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLeadOfferInput;
|
|
32
|
+
export declare function PutLeadOfferInputToJSON(value?: PutLeadOfferInput | null): any;
|
|
@@ -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;
|