@randock/nameshift-api-client 0.0.115 → 0.0.116
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/README.md +3 -3
- package/dist/models/BuyerDomainTransferListItemDto.d.ts +4 -4
- package/dist/models/BuyerDomainTransferListItemDto.js +6 -6
- package/dist/models/ChangeOrderStatusInput.d.ts +1 -1
- package/dist/models/ChangeOrderStatusInput.js +1 -1
- package/dist/models/OrderDto.d.ts +3 -3
- package/dist/models/OrderDto.js +7 -7
- package/dist/models/OrderListItemDto.d.ts +1 -1
- package/dist/models/OrderListItemDto.js +1 -1
- package/package.json +1 -1
- package/src/models/BuyerDomainTransferListItemDto.ts +7 -7
- package/src/models/ChangeOrderStatusInput.ts +1 -1
- package/src/models/OrderDto.ts +9 -9
- package/src/models/OrderListItemDto.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.116
|
|
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.116 --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
|
+
cbbd0e650b9c673b37785a0651452aff898d45b6210149c2cdb464f3902b2e45451b8bfebd9b521d65904e36b8743310
|
|
@@ -21,7 +21,7 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof BuyerDomainTransferListItemDto
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
invoiceStatus: BuyerDomainTransferListItemDtoInvoiceStatusEnum;
|
|
25
25
|
/**
|
|
26
26
|
* The buyer domain transfer status
|
|
27
27
|
* @type {string}
|
|
@@ -62,12 +62,12 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
62
62
|
/**
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const
|
|
66
|
-
readonly
|
|
65
|
+
export declare const BuyerDomainTransferListItemDtoInvoiceStatusEnum: {
|
|
66
|
+
readonly DRAFT: "draft";
|
|
67
67
|
readonly PAID: "paid";
|
|
68
68
|
readonly CANCELLED: "cancelled";
|
|
69
69
|
};
|
|
70
|
-
export type
|
|
70
|
+
export type BuyerDomainTransferListItemDtoInvoiceStatusEnum = typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum[keyof typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum];
|
|
71
71
|
/**
|
|
72
72
|
* @export
|
|
73
73
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.BuyerDomainTransferListItemDtoDomainTransferStatusEnum = exports.
|
|
16
|
+
exports.BuyerDomainTransferListItemDtoDomainTransferStatusEnum = exports.BuyerDomainTransferListItemDtoInvoiceStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfBuyerDomainTransferListItemDto = instanceOfBuyerDomainTransferListItemDto;
|
|
18
18
|
exports.BuyerDomainTransferListItemDtoFromJSON = BuyerDomainTransferListItemDtoFromJSON;
|
|
19
19
|
exports.BuyerDomainTransferListItemDtoFromJSONTyped = BuyerDomainTransferListItemDtoFromJSONTyped;
|
|
@@ -22,8 +22,8 @@ var BuyerDomainTransferListItemDomainDto_1 = require("./BuyerDomainTransferListI
|
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
26
|
-
|
|
25
|
+
exports.BuyerDomainTransferListItemDtoInvoiceStatusEnum = {
|
|
26
|
+
DRAFT: 'draft',
|
|
27
27
|
PAID: 'paid',
|
|
28
28
|
CANCELLED: 'cancelled'
|
|
29
29
|
};
|
|
@@ -41,7 +41,7 @@ exports.BuyerDomainTransferListItemDtoDomainTransferStatusEnum = {
|
|
|
41
41
|
* Check if a given object implements the BuyerDomainTransferListItemDto interface.
|
|
42
42
|
*/
|
|
43
43
|
function instanceOfBuyerDomainTransferListItemDto(value) {
|
|
44
|
-
if (!('
|
|
44
|
+
if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined)
|
|
45
45
|
return false;
|
|
46
46
|
if (!('domainTransferStatus' in value) || value['domainTransferStatus'] === undefined)
|
|
47
47
|
return false;
|
|
@@ -65,7 +65,7 @@ function BuyerDomainTransferListItemDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
65
65
|
return json;
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
|
-
'
|
|
68
|
+
'invoiceStatus': json['invoiceStatus'],
|
|
69
69
|
'domainTransferStatus': json['domainTransferStatus'],
|
|
70
70
|
'requirements': json['requirements'],
|
|
71
71
|
'orderId': json['orderId'],
|
|
@@ -79,7 +79,7 @@ function BuyerDomainTransferListItemDtoToJSON(value) {
|
|
|
79
79
|
return value;
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
|
-
'
|
|
82
|
+
'invoiceStatus': value['invoiceStatus'],
|
|
83
83
|
'domainTransferStatus': value['domainTransferStatus'],
|
|
84
84
|
'requirements': value['requirements'],
|
|
85
85
|
'orderId': value['orderId'],
|
|
@@ -61,13 +61,13 @@ export interface OrderDto {
|
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof OrderDto
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
firstName: string;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof OrderDto
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
lastName: string;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -109,7 +109,7 @@ export interface OrderDto {
|
|
|
109
109
|
* @export
|
|
110
110
|
*/
|
|
111
111
|
export declare const OrderDtoStatusEnum: {
|
|
112
|
-
readonly
|
|
112
|
+
readonly DRAFT: "draft";
|
|
113
113
|
readonly PAID: "paid";
|
|
114
114
|
readonly CANCELLED: "cancelled";
|
|
115
115
|
};
|
package/dist/models/OrderDto.js
CHANGED
|
@@ -27,7 +27,7 @@ var AddressDto_1 = require("./AddressDto");
|
|
|
27
27
|
* @export
|
|
28
28
|
*/
|
|
29
29
|
exports.OrderDtoStatusEnum = {
|
|
30
|
-
|
|
30
|
+
DRAFT: 'draft',
|
|
31
31
|
PAID: 'paid',
|
|
32
32
|
CANCELLED: 'cancelled'
|
|
33
33
|
};
|
|
@@ -47,9 +47,9 @@ function instanceOfOrderDto(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('items' in value) || value['items'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
-
if (!('
|
|
50
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
51
51
|
return false;
|
|
52
|
-
if (!('
|
|
52
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
53
53
|
return false;
|
|
54
54
|
if (!('email' in value) || value['email'] === undefined)
|
|
55
55
|
return false;
|
|
@@ -79,8 +79,8 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
80
80
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
|
|
81
81
|
'items': (json['items'].map(InvoiceItemDto_1.InvoiceItemDtoFromJSON)),
|
|
82
|
-
'
|
|
83
|
-
'
|
|
82
|
+
'firstName': json['firstName'],
|
|
83
|
+
'lastName': json['lastName'],
|
|
84
84
|
'email': json['email'],
|
|
85
85
|
'phone': json['phone'],
|
|
86
86
|
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
@@ -100,8 +100,8 @@ function OrderDtoToJSON(value) {
|
|
|
100
100
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
101
101
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
|
|
102
102
|
'items': (value['items'].map(InvoiceItemDto_1.InvoiceItemDtoToJSON)),
|
|
103
|
-
'
|
|
104
|
-
'
|
|
103
|
+
'firstName': value['firstName'],
|
|
104
|
+
'lastName': value['lastName'],
|
|
105
105
|
'email': value['email'],
|
|
106
106
|
'phone': value['phone'],
|
|
107
107
|
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof BuyerDomainTransferListItemDto
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
invoiceStatus: BuyerDomainTransferListItemDtoInvoiceStatusEnum;
|
|
35
35
|
/**
|
|
36
36
|
* The buyer domain transfer status
|
|
37
37
|
* @type {string}
|
|
@@ -74,12 +74,12 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
74
74
|
/**
|
|
75
75
|
* @export
|
|
76
76
|
*/
|
|
77
|
-
export const
|
|
78
|
-
|
|
77
|
+
export const BuyerDomainTransferListItemDtoInvoiceStatusEnum = {
|
|
78
|
+
DRAFT: 'draft',
|
|
79
79
|
PAID: 'paid',
|
|
80
80
|
CANCELLED: 'cancelled'
|
|
81
81
|
} as const;
|
|
82
|
-
export type
|
|
82
|
+
export type BuyerDomainTransferListItemDtoInvoiceStatusEnum = typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum[keyof typeof BuyerDomainTransferListItemDtoInvoiceStatusEnum];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* @export
|
|
@@ -98,7 +98,7 @@ export type BuyerDomainTransferListItemDtoDomainTransferStatusEnum = typeof Buye
|
|
|
98
98
|
* Check if a given object implements the BuyerDomainTransferListItemDto interface.
|
|
99
99
|
*/
|
|
100
100
|
export function instanceOfBuyerDomainTransferListItemDto(value: object): value is BuyerDomainTransferListItemDto {
|
|
101
|
-
if (!('
|
|
101
|
+
if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined) return false;
|
|
102
102
|
if (!('domainTransferStatus' in value) || value['domainTransferStatus'] === undefined) return false;
|
|
103
103
|
if (!('requirements' in value) || value['requirements'] === undefined) return false;
|
|
104
104
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
@@ -118,7 +118,7 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
|
|
|
118
118
|
}
|
|
119
119
|
return {
|
|
120
120
|
|
|
121
|
-
'
|
|
121
|
+
'invoiceStatus': json['invoiceStatus'],
|
|
122
122
|
'domainTransferStatus': json['domainTransferStatus'],
|
|
123
123
|
'requirements': json['requirements'],
|
|
124
124
|
'orderId': json['orderId'],
|
|
@@ -134,7 +134,7 @@ export function BuyerDomainTransferListItemDtoToJSON(value?: BuyerDomainTransfer
|
|
|
134
134
|
}
|
|
135
135
|
return {
|
|
136
136
|
|
|
137
|
-
'
|
|
137
|
+
'invoiceStatus': value['invoiceStatus'],
|
|
138
138
|
'domainTransferStatus': value['domainTransferStatus'],
|
|
139
139
|
'requirements': value['requirements'],
|
|
140
140
|
'orderId': value['orderId'],
|
package/src/models/OrderDto.ts
CHANGED
|
@@ -91,13 +91,13 @@ export interface OrderDto {
|
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof OrderDto
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
firstName: string;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {string}
|
|
98
98
|
* @memberof OrderDto
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
lastName: string;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
@@ -141,7 +141,7 @@ export interface OrderDto {
|
|
|
141
141
|
* @export
|
|
142
142
|
*/
|
|
143
143
|
export const OrderDtoStatusEnum = {
|
|
144
|
-
|
|
144
|
+
DRAFT: 'draft',
|
|
145
145
|
PAID: 'paid',
|
|
146
146
|
CANCELLED: 'cancelled'
|
|
147
147
|
} as const;
|
|
@@ -158,8 +158,8 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
|
|
|
158
158
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
159
159
|
if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
|
|
160
160
|
if (!('items' in value) || value['items'] === undefined) return false;
|
|
161
|
-
if (!('
|
|
162
|
-
if (!('
|
|
161
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
162
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
163
163
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
164
164
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
165
165
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
@@ -185,8 +185,8 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
185
185
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
186
186
|
'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
|
|
187
187
|
'items': ((json['items'] as Array<any>).map(InvoiceItemDtoFromJSON)),
|
|
188
|
-
'
|
|
189
|
-
'
|
|
188
|
+
'firstName': json['firstName'],
|
|
189
|
+
'lastName': json['lastName'],
|
|
190
190
|
'email': json['email'],
|
|
191
191
|
'phone': json['phone'],
|
|
192
192
|
'address': AddressDtoFromJSON(json['address']),
|
|
@@ -208,8 +208,8 @@ export function OrderDtoToJSON(value?: OrderDto | null): any {
|
|
|
208
208
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
209
209
|
'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
|
|
210
210
|
'items': ((value['items'] as Array<any>).map(InvoiceItemDtoToJSON)),
|
|
211
|
-
'
|
|
212
|
-
'
|
|
211
|
+
'firstName': value['firstName'],
|
|
212
|
+
'lastName': value['lastName'],
|
|
213
213
|
'email': value['email'],
|
|
214
214
|
'phone': value['phone'],
|
|
215
215
|
'address': AddressDtoToJSON(value['address']),
|