@randock/nameshift-api-client 0.0.97 → 0.0.99
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 +4 -3
- package/README.md +3 -3
- package/dist/apis/OrdersPublicApi.d.ts +1 -12
- package/dist/apis/OrdersPublicApi.js +1 -45
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AccountDto.d.ts +3 -8
- package/dist/models/AccountDto.js +4 -7
- package/dist/models/AccountMetricsDto.d.ts +49 -0
- package/dist/models/AccountMetricsDto.js +58 -0
- package/dist/models/CreateOrderInput.d.ts +34 -3
- package/dist/models/CreateOrderInput.js +16 -11
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +3 -8
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +4 -7
- package/dist/models/OrderCompanyInfoDto.d.ts +38 -0
- package/dist/models/OrderCompanyInfoDto.js +51 -0
- package/dist/models/OrderCompanyTaxIdDto.d.ts +43 -0
- package/dist/models/OrderCompanyTaxIdDto.js +54 -0
- package/dist/models/OrderDto.d.ts +6 -4
- package/dist/models/OrderDto.js +8 -6
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -9
- package/dist/models/OrderListItemDtoBuyerInformation.js +4 -7
- package/dist/models/OrderTransactionDto.d.ts +50 -0
- package/dist/models/OrderTransactionDto.js +61 -0
- package/dist/models/UpdateOrderInput.d.ts +34 -3
- package/dist/models/UpdateOrderInput.js +16 -11
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/package.json +1 -1
- package/src/apis/OrdersPublicApi.ts +1 -41
- package/src/apis/index.ts +0 -1
- package/src/models/AccountDto.ts +11 -14
- package/src/models/AccountMetricsDto.ts +88 -0
- package/src/models/CreateOrderInput.ts +55 -11
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +11 -14
- package/src/models/OrderCompanyInfoDto.ts +77 -0
- package/src/models/OrderCompanyTaxIdDto.ts +79 -0
- package/src/models/OrderDto.ts +22 -10
- package/src/models/OrderListItemDtoBuyerInformation.ts +12 -15
- package/src/models/OrderTransactionDto.ts +89 -0
- package/src/models/UpdateOrderInput.ts +55 -11
- package/src/models/index.ts +4 -2
- package/dist/apis/DashboardApi.d.ts +0 -26
- package/dist/apis/DashboardApi.js +0 -130
- package/dist/models/DashboardStatsDto.d.ts +0 -43
- package/dist/models/DashboardStatsDto.js +0 -54
- package/dist/models/OrderCheckoutSessionDto.d.ts +0 -31
- package/dist/models/OrderCheckoutSessionDto.js +0 -46
- package/src/apis/DashboardApi.ts +0 -67
- package/src/models/DashboardStatsDto.ts +0 -79
- package/src/models/OrderCheckoutSessionDto.ts +0 -61
package/.openapi-generator/FILES
CHANGED
|
@@ -8,7 +8,6 @@ src/apis/AccountsPublicApi.ts
|
|
|
8
8
|
src/apis/AdminApi.ts
|
|
9
9
|
src/apis/BuyersApi.ts
|
|
10
10
|
src/apis/BuyersPublicApi.ts
|
|
11
|
-
src/apis/DashboardApi.ts
|
|
12
11
|
src/apis/DomainsApi.ts
|
|
13
12
|
src/apis/DomainsPublicApi.ts
|
|
14
13
|
src/apis/LeadsApi.ts
|
|
@@ -20,6 +19,7 @@ src/apis/UsersPublicApi.ts
|
|
|
20
19
|
src/apis/index.ts
|
|
21
20
|
src/index.ts
|
|
22
21
|
src/models/AccountDto.ts
|
|
22
|
+
src/models/AccountMetricsDto.ts
|
|
23
23
|
src/models/AccountPaymentProviderSessionDto.ts
|
|
24
24
|
src/models/AccountSettingsInput.ts
|
|
25
25
|
src/models/AddressDto.ts
|
|
@@ -42,7 +42,6 @@ src/models/CreateBuyerLeadMessageInput.ts
|
|
|
42
42
|
src/models/CreateLeadInput.ts
|
|
43
43
|
src/models/CreateLeadMessageInput.ts
|
|
44
44
|
src/models/CreateOrderInput.ts
|
|
45
|
-
src/models/DashboardStatsDto.ts
|
|
46
45
|
src/models/DeleteDomainsInput.ts
|
|
47
46
|
src/models/DomainDto.ts
|
|
48
47
|
src/models/DomainSellerDto.ts
|
|
@@ -89,13 +88,15 @@ src/models/LoginInput.ts
|
|
|
89
88
|
src/models/MoneyDto.ts
|
|
90
89
|
src/models/NotFoundException.ts
|
|
91
90
|
src/models/ObjectId.ts
|
|
92
|
-
src/models/
|
|
91
|
+
src/models/OrderCompanyInfoDto.ts
|
|
92
|
+
src/models/OrderCompanyTaxIdDto.ts
|
|
93
93
|
src/models/OrderDto.ts
|
|
94
94
|
src/models/OrderListItemDto.ts
|
|
95
95
|
src/models/OrderListItemDtoBuyerInformation.ts
|
|
96
96
|
src/models/OrderListItemDtoDomainInformation.ts
|
|
97
97
|
src/models/OrderListItemDtoSellerAccount.ts
|
|
98
98
|
src/models/OrderTaxDto.ts
|
|
99
|
+
src/models/OrderTransactionDto.ts
|
|
99
100
|
src/models/PaginateResponse.ts
|
|
100
101
|
src/models/PaginateResponseLinks.ts
|
|
101
102
|
src/models/PaginateResponseMeta.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.99
|
|
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.99 --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
|
+
572580ff69f04c8fb321a53777ddb02db6ac3f6816fc266a41bfa008aa97c65dfc9d4140cdf9029cc1856c2031c600ae
|
|
@@ -10,16 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateOrderInput, ObjectId,
|
|
13
|
+
import type { CreateOrderInput, ObjectId, OrderDto, UpdateOrderInput } from '../models/index';
|
|
14
14
|
export interface OrdersPublicApiCreateOrderRequest {
|
|
15
15
|
createOrderInput: CreateOrderInput;
|
|
16
16
|
}
|
|
17
17
|
export interface OrdersPublicApiGetOrderRequest {
|
|
18
18
|
orderId: string;
|
|
19
19
|
}
|
|
20
|
-
export interface OrdersPublicApiGetOrderCheckoutSessionRequest {
|
|
21
|
-
orderId: string;
|
|
22
|
-
}
|
|
23
20
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
24
21
|
orderId: string;
|
|
25
22
|
updateOrderInput: UpdateOrderInput;
|
|
@@ -44,14 +41,6 @@ export declare class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
44
41
|
*
|
|
45
42
|
*/
|
|
46
43
|
getOrder(requestParameters: OrdersPublicApiGetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderDto>;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
getOrderCheckoutSessionRaw(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderCheckoutSessionDto>>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
getOrderCheckoutSession(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderCheckoutSessionDto>;
|
|
55
44
|
/**
|
|
56
45
|
*
|
|
57
46
|
*/
|
|
@@ -165,50 +165,6 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
OrdersPublicApi.prototype.getOrderCheckoutSessionRaw = function (requestParameters, initOverrides) {
|
|
172
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
-
var queryParameters, headerParameters, response;
|
|
174
|
-
return __generator(this, function (_a) {
|
|
175
|
-
switch (_a.label) {
|
|
176
|
-
case 0:
|
|
177
|
-
if (requestParameters['orderId'] == null) {
|
|
178
|
-
throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling getOrderCheckoutSession().');
|
|
179
|
-
}
|
|
180
|
-
queryParameters = {};
|
|
181
|
-
headerParameters = {};
|
|
182
|
-
return [4 /*yield*/, this.request({
|
|
183
|
-
path: "/orders/{orderId}/checkout-session".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
184
|
-
method: 'GET',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
}, initOverrides)];
|
|
188
|
-
case 1:
|
|
189
|
-
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderCheckoutSessionDtoFromJSON)(jsonValue); })];
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
*/
|
|
198
|
-
OrdersPublicApi.prototype.getOrderCheckoutSession = function (requestParameters, initOverrides) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var response;
|
|
201
|
-
return __generator(this, function (_a) {
|
|
202
|
-
switch (_a.label) {
|
|
203
|
-
case 0: return [4 /*yield*/, this.getOrderCheckoutSessionRaw(requestParameters, initOverrides)];
|
|
204
|
-
case 1:
|
|
205
|
-
response = _a.sent();
|
|
206
|
-
return [4 /*yield*/, response.value()];
|
|
207
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
168
|
/**
|
|
213
169
|
*
|
|
214
170
|
*/
|
|
@@ -229,7 +185,7 @@ var OrdersPublicApi = /** @class */ (function (_super) {
|
|
|
229
185
|
headerParameters['Content-Type'] = 'application/json';
|
|
230
186
|
return [4 /*yield*/, this.request({
|
|
231
187
|
path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
|
|
232
|
-
method: '
|
|
188
|
+
method: 'PATCH',
|
|
233
189
|
headers: headerParameters,
|
|
234
190
|
query: queryParameters,
|
|
235
191
|
body: (0, index_1.UpdateOrderInputToJSON)(requestParameters['updateOrderInput']),
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -21,7 +21,6 @@ __exportStar(require("./AccountsPublicApi"), exports);
|
|
|
21
21
|
__exportStar(require("./AdminApi"), exports);
|
|
22
22
|
__exportStar(require("./BuyersApi"), exports);
|
|
23
23
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
24
|
-
__exportStar(require("./DashboardApi"), exports);
|
|
25
24
|
__exportStar(require("./DomainsApi"), exports);
|
|
26
25
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
27
26
|
__exportStar(require("./LeadsApi"), exports);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaymentProviderDto } from './PaymentProviderDto';
|
|
13
|
+
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -36,16 +37,10 @@ export interface AccountDto {
|
|
|
36
37
|
name: string;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
|
-
* @type {
|
|
40
|
+
* @type {AccountMetricsDto}
|
|
40
41
|
* @memberof AccountDto
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof AccountDto
|
|
47
|
-
*/
|
|
48
|
-
activeLeadsNumber: number;
|
|
43
|
+
metrics: AccountMetricsDto;
|
|
49
44
|
/**
|
|
50
45
|
*
|
|
51
46
|
* @type {PaymentProviderDto}
|
|
@@ -18,6 +18,7 @@ exports.AccountDtoFromJSON = AccountDtoFromJSON;
|
|
|
18
18
|
exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
|
|
19
19
|
exports.AccountDtoToJSON = AccountDtoToJSON;
|
|
20
20
|
var PaymentProviderDto_1 = require("./PaymentProviderDto");
|
|
21
|
+
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the AccountDto interface.
|
|
23
24
|
*/
|
|
@@ -28,9 +29,7 @@ function instanceOfAccountDto(value) {
|
|
|
28
29
|
return false;
|
|
29
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
30
31
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
-
return false;
|
|
33
|
-
if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
|
|
32
|
+
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
34
33
|
return false;
|
|
35
34
|
if (!('paymentProvider' in value) || value['paymentProvider'] === undefined)
|
|
36
35
|
return false;
|
|
@@ -47,8 +46,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
46
|
'id': json['id'],
|
|
48
47
|
'identifier': json['identifier'],
|
|
49
48
|
'name': json['name'],
|
|
50
|
-
'
|
|
51
|
-
'activeLeadsNumber': json['activeLeadsNumber'],
|
|
49
|
+
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
52
50
|
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoFromJSON)(json['paymentProvider']),
|
|
53
51
|
};
|
|
54
52
|
}
|
|
@@ -60,8 +58,7 @@ function AccountDtoToJSON(value) {
|
|
|
60
58
|
'id': value['id'],
|
|
61
59
|
'identifier': value['identifier'],
|
|
62
60
|
'name': value['name'],
|
|
63
|
-
'
|
|
64
|
-
'activeLeadsNumber': value['activeLeadsNumber'],
|
|
61
|
+
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
65
62
|
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoToJSON)(value['paymentProvider']),
|
|
66
63
|
};
|
|
67
64
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 AccountMetricsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountMetricsDto {
|
|
18
|
+
/**
|
|
19
|
+
* Total of account leads number
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AccountMetricsDto
|
|
22
|
+
*/
|
|
23
|
+
leadsNumber: number;
|
|
24
|
+
/**
|
|
25
|
+
* Total of account domains number
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AccountMetricsDto
|
|
28
|
+
*/
|
|
29
|
+
domainsNumber: number;
|
|
30
|
+
/**
|
|
31
|
+
* Total of account active leads number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AccountMetricsDto
|
|
34
|
+
*/
|
|
35
|
+
activeLeadsNumber: number;
|
|
36
|
+
/**
|
|
37
|
+
* Total of active account domain transfers number
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AccountMetricsDto
|
|
40
|
+
*/
|
|
41
|
+
activeDomainTransfersNumber: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AccountMetricsDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAccountMetricsDto(value: object): value is AccountMetricsDto;
|
|
47
|
+
export declare function AccountMetricsDtoFromJSON(json: any): AccountMetricsDto;
|
|
48
|
+
export declare function AccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMetricsDto;
|
|
49
|
+
export declare function AccountMetricsDtoToJSON(value?: AccountMetricsDto | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfAccountMetricsDto = instanceOfAccountMetricsDto;
|
|
17
|
+
exports.AccountMetricsDtoFromJSON = AccountMetricsDtoFromJSON;
|
|
18
|
+
exports.AccountMetricsDtoFromJSONTyped = AccountMetricsDtoFromJSONTyped;
|
|
19
|
+
exports.AccountMetricsDtoToJSON = AccountMetricsDtoToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the AccountMetricsDto interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfAccountMetricsDto(value) {
|
|
24
|
+
if (!('leadsNumber' in value) || value['leadsNumber'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('domainsNumber' in value) || value['domainsNumber'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function AccountMetricsDtoFromJSON(json) {
|
|
35
|
+
return AccountMetricsDtoFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function AccountMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'leadsNumber': json['leadsNumber'],
|
|
43
|
+
'domainsNumber': json['domainsNumber'],
|
|
44
|
+
'activeLeadsNumber': json['activeLeadsNumber'],
|
|
45
|
+
'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function AccountMetricsDtoToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'leadsNumber': value['leadsNumber'],
|
|
54
|
+
'domainsNumber': value['domainsNumber'],
|
|
55
|
+
'activeLeadsNumber': value['activeLeadsNumber'],
|
|
56
|
+
'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -38,19 +39,49 @@ export interface CreateOrderInput {
|
|
|
38
39
|
* @type {string}
|
|
39
40
|
* @memberof CreateOrderInput
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
email?: string;
|
|
42
43
|
/**
|
|
43
44
|
*
|
|
44
45
|
* @type {string}
|
|
45
46
|
* @memberof CreateOrderInput
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
+
addressCountryCode?: string;
|
|
48
49
|
/**
|
|
49
50
|
*
|
|
50
51
|
* @type {string}
|
|
51
52
|
* @memberof CreateOrderInput
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
addressStateCode?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CreateOrderInput
|
|
59
|
+
*/
|
|
60
|
+
addressLine1?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CreateOrderInput
|
|
65
|
+
*/
|
|
66
|
+
addressLine2?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CreateOrderInput
|
|
71
|
+
*/
|
|
72
|
+
addressPostalCode?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CreateOrderInput
|
|
77
|
+
*/
|
|
78
|
+
addressCity?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {OrderCompanyInfoDto}
|
|
82
|
+
* @memberof CreateOrderInput
|
|
83
|
+
*/
|
|
84
|
+
companyInfo?: OrderCompanyInfoDto | null;
|
|
54
85
|
}
|
|
55
86
|
/**
|
|
56
87
|
* Check if a given object implements the CreateOrderInput interface.
|
|
@@ -17,6 +17,7 @@ exports.instanceOfCreateOrderInput = instanceOfCreateOrderInput;
|
|
|
17
17
|
exports.CreateOrderInputFromJSON = CreateOrderInputFromJSON;
|
|
18
18
|
exports.CreateOrderInputFromJSONTyped = CreateOrderInputFromJSONTyped;
|
|
19
19
|
exports.CreateOrderInputToJSON = CreateOrderInputToJSON;
|
|
20
|
+
var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
|
|
20
21
|
/**
|
|
21
22
|
* Check if a given object implements the CreateOrderInput interface.
|
|
22
23
|
*/
|
|
@@ -27,12 +28,6 @@ function instanceOfCreateOrderInput(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('domainName' in value) || value['domainName'] === undefined)
|
|
29
30
|
return false;
|
|
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
31
|
return true;
|
|
37
32
|
}
|
|
38
33
|
function CreateOrderInputFromJSON(json) {
|
|
@@ -46,9 +41,14 @@ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
41
|
'leadId': json['leadId'],
|
|
47
42
|
'locale': json['locale'],
|
|
48
43
|
'domainName': json['domainName'],
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
44
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
45
|
+
'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
|
|
46
|
+
'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
|
|
47
|
+
'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
|
|
48
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
49
|
+
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
50
|
+
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
51
|
+
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
function CreateOrderInputToJSON(value) {
|
|
@@ -59,8 +59,13 @@ function CreateOrderInputToJSON(value) {
|
|
|
59
59
|
'leadId': value['leadId'],
|
|
60
60
|
'locale': value['locale'],
|
|
61
61
|
'domainName': value['domainName'],
|
|
62
|
-
'firstname': value['firstname'],
|
|
63
|
-
'lastname': value['lastname'],
|
|
64
62
|
'email': value['email'],
|
|
63
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
64
|
+
'addressStateCode': value['addressStateCode'],
|
|
65
|
+
'addressLine1': value['addressLine1'],
|
|
66
|
+
'addressLine2': value['addressLine2'],
|
|
67
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
68
|
+
'addressCity': value['addressCity'],
|
|
69
|
+
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
65
70
|
};
|
|
66
71
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { PaymentProviderDto } from './PaymentProviderDto';
|
|
13
13
|
import type { WithSettingsInner } from './WithSettingsInner';
|
|
14
|
+
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -37,16 +38,10 @@ export interface IntersectionAccountDtoWithSettingsDto {
|
|
|
37
38
|
name: string;
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
|
-
* @type {
|
|
41
|
+
* @type {AccountMetricsDto}
|
|
41
42
|
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
48
|
-
*/
|
|
49
|
-
activeLeadsNumber: number;
|
|
44
|
+
metrics: AccountMetricsDto;
|
|
50
45
|
/**
|
|
51
46
|
*
|
|
52
47
|
* @type {PaymentProviderDto}
|
|
@@ -19,6 +19,7 @@ exports.IntersectionAccountDtoWithSettingsDtoFromJSONTyped = IntersectionAccount
|
|
|
19
19
|
exports.IntersectionAccountDtoWithSettingsDtoToJSON = IntersectionAccountDtoWithSettingsDtoToJSON;
|
|
20
20
|
var PaymentProviderDto_1 = require("./PaymentProviderDto");
|
|
21
21
|
var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
22
|
+
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
|
|
24
25
|
*/
|
|
@@ -29,9 +30,7 @@ function instanceOfIntersectionAccountDtoWithSettingsDto(value) {
|
|
|
29
30
|
return false;
|
|
30
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
31
32
|
return false;
|
|
32
|
-
if (!('
|
|
33
|
-
return false;
|
|
34
|
-
if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
|
|
33
|
+
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
35
34
|
return false;
|
|
36
35
|
if (!('paymentProvider' in value) || value['paymentProvider'] === undefined)
|
|
37
36
|
return false;
|
|
@@ -50,8 +49,7 @@ function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
50
49
|
'id': json['id'],
|
|
51
50
|
'identifier': json['identifier'],
|
|
52
51
|
'name': json['name'],
|
|
53
|
-
'
|
|
54
|
-
'activeLeadsNumber': json['activeLeadsNumber'],
|
|
52
|
+
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
55
53
|
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoFromJSON)(json['paymentProvider']),
|
|
56
54
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
|
|
57
55
|
};
|
|
@@ -64,8 +62,7 @@ function IntersectionAccountDtoWithSettingsDtoToJSON(value) {
|
|
|
64
62
|
'id': value['id'],
|
|
65
63
|
'identifier': value['identifier'],
|
|
66
64
|
'name': value['name'],
|
|
67
|
-
'
|
|
68
|
-
'activeLeadsNumber': value['activeLeadsNumber'],
|
|
65
|
+
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
69
66
|
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoToJSON)(value['paymentProvider']),
|
|
70
67
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
|
|
71
68
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { OrderCompanyTaxIdDto } from './OrderCompanyTaxIdDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrderCompanyInfoDto
|
|
17
|
+
*/
|
|
18
|
+
export interface OrderCompanyInfoDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OrderCompanyInfoDto
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {OrderCompanyTaxIdDto}
|
|
28
|
+
* @memberof OrderCompanyInfoDto
|
|
29
|
+
*/
|
|
30
|
+
taxId: OrderCompanyTaxIdDto;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the OrderCompanyInfoDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfOrderCompanyInfoDto(value: object): value is OrderCompanyInfoDto;
|
|
36
|
+
export declare function OrderCompanyInfoDtoFromJSON(json: any): OrderCompanyInfoDto;
|
|
37
|
+
export declare function OrderCompanyInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCompanyInfoDto;
|
|
38
|
+
export declare function OrderCompanyInfoDtoToJSON(value?: OrderCompanyInfoDto | 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.instanceOfOrderCompanyInfoDto = instanceOfOrderCompanyInfoDto;
|
|
17
|
+
exports.OrderCompanyInfoDtoFromJSON = OrderCompanyInfoDtoFromJSON;
|
|
18
|
+
exports.OrderCompanyInfoDtoFromJSONTyped = OrderCompanyInfoDtoFromJSONTyped;
|
|
19
|
+
exports.OrderCompanyInfoDtoToJSON = OrderCompanyInfoDtoToJSON;
|
|
20
|
+
var OrderCompanyTaxIdDto_1 = require("./OrderCompanyTaxIdDto");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrderCompanyInfoDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrderCompanyInfoDto(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('taxId' in value) || value['taxId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function OrderCompanyInfoDtoFromJSON(json) {
|
|
32
|
+
return OrderCompanyInfoDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function OrderCompanyInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'taxId': (0, OrderCompanyTaxIdDto_1.OrderCompanyTaxIdDtoFromJSON)(json['taxId']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function OrderCompanyInfoDtoToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'taxId': (0, OrderCompanyTaxIdDto_1.OrderCompanyTaxIdDtoToJSON)(value['taxId']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 OrderCompanyTaxIdDto
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderCompanyTaxIdDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrderCompanyTaxIdDto
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderCompanyTaxIdDto
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrderCompanyTaxIdDto
|
|
34
|
+
*/
|
|
35
|
+
countryCode: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the OrderCompanyTaxIdDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfOrderCompanyTaxIdDto(value: object): value is OrderCompanyTaxIdDto;
|
|
41
|
+
export declare function OrderCompanyTaxIdDtoFromJSON(json: any): OrderCompanyTaxIdDto;
|
|
42
|
+
export declare function OrderCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCompanyTaxIdDto;
|
|
43
|
+
export declare function OrderCompanyTaxIdDtoToJSON(value?: OrderCompanyTaxIdDto | null): any;
|