@randock/nameshift-api-client 0.0.57 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +3 -2
- package/dist/apis/BuyersApi.js +11 -8
- package/dist/models/BuyerUserDto.d.ts +55 -0
- package/dist/models/BuyerUserDto.js +63 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +10 -6
- package/src/models/BuyerUserDto.ts +97 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -25,6 +25,7 @@ src/models/AccountSettingsInput.ts
|
|
|
25
25
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
26
26
|
src/models/BatchUpdateDomainsInput.ts
|
|
27
27
|
src/models/BuyDomainInput.ts
|
|
28
|
+
src/models/BuyerUserDto.ts
|
|
28
29
|
src/models/ChangeOrderStatusInput.ts
|
|
29
30
|
src/models/ConflictException.ts
|
|
30
31
|
src/models/CreateLeadInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.58
|
|
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.58 --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
|
+
374b6e0d25599dbc01b7428e73709eec78fffa1fcb9f64cc25145ba2f13cefb352226feb87b7bb18d4ebd22abdbb0261
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import type { BuyerUserDto } from '../models/index';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
*/
|
|
@@ -17,9 +18,9 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>>;
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto>;
|
|
25
26
|
}
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -66,6 +66,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.BuyersApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
69
70
|
/**
|
|
70
71
|
*
|
|
71
72
|
*/
|
|
@@ -77,7 +78,7 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
77
78
|
/**
|
|
78
79
|
*
|
|
79
80
|
*/
|
|
80
|
-
BuyersApi.prototype.
|
|
81
|
+
BuyersApi.prototype.buyerMeRaw = function (initOverrides) {
|
|
81
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
83
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
83
84
|
return __generator(this, function (_a) {
|
|
@@ -95,14 +96,14 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
95
96
|
}
|
|
96
97
|
_a.label = 2;
|
|
97
98
|
case 2: return [4 /*yield*/, this.request({
|
|
98
|
-
path: "/buyers/private/
|
|
99
|
-
method: '
|
|
99
|
+
path: "/buyers/private/me",
|
|
100
|
+
method: 'GET',
|
|
100
101
|
headers: headerParameters,
|
|
101
102
|
query: queryParameters,
|
|
102
103
|
}, initOverrides)];
|
|
103
104
|
case 3:
|
|
104
105
|
response = _a.sent();
|
|
105
|
-
return [2 /*return*/, new runtime.
|
|
106
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerUserDtoFromJSON)(jsonValue); })];
|
|
106
107
|
}
|
|
107
108
|
});
|
|
108
109
|
});
|
|
@@ -110,14 +111,16 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
110
111
|
/**
|
|
111
112
|
*
|
|
112
113
|
*/
|
|
113
|
-
BuyersApi.prototype.
|
|
114
|
+
BuyersApi.prototype.buyerMe = function (initOverrides) {
|
|
114
115
|
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var response;
|
|
115
117
|
return __generator(this, function (_a) {
|
|
116
118
|
switch (_a.label) {
|
|
117
|
-
case 0: return [4 /*yield*/, this.
|
|
119
|
+
case 0: return [4 /*yield*/, this.buyerMeRaw(initOverrides)];
|
|
118
120
|
case 1:
|
|
119
|
-
_a.sent();
|
|
120
|
-
return [
|
|
121
|
+
response = _a.sent();
|
|
122
|
+
return [4 /*yield*/, response.value()];
|
|
123
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
121
124
|
}
|
|
122
125
|
});
|
|
123
126
|
});
|
|
@@ -0,0 +1,55 @@
|
|
|
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 BuyerUserDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerUserDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerUserDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Buyer user locale
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BuyerUserDto
|
|
28
|
+
*/
|
|
29
|
+
locale: string;
|
|
30
|
+
/**
|
|
31
|
+
* Buyer user email address
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BuyerUserDto
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
* Buyer user firstname
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BuyerUserDto
|
|
40
|
+
*/
|
|
41
|
+
firstname: string;
|
|
42
|
+
/**
|
|
43
|
+
* Buyer user lastname
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BuyerUserDto
|
|
46
|
+
*/
|
|
47
|
+
lastname: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the BuyerUserDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfBuyerUserDto(value: object): value is BuyerUserDto;
|
|
53
|
+
export declare function BuyerUserDtoFromJSON(json: any): BuyerUserDto;
|
|
54
|
+
export declare function BuyerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerUserDto;
|
|
55
|
+
export declare function BuyerUserDtoToJSON(value?: BuyerUserDto | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.BuyerUserDtoToJSON = exports.BuyerUserDtoFromJSONTyped = exports.BuyerUserDtoFromJSON = exports.instanceOfBuyerUserDto = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the BuyerUserDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfBuyerUserDto(value) {
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('firstname' in value) || value['firstname'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastname' in value) || value['lastname'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
exports.instanceOfBuyerUserDto = instanceOfBuyerUserDto;
|
|
34
|
+
function BuyerUserDtoFromJSON(json) {
|
|
35
|
+
return BuyerUserDtoFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.BuyerUserDtoFromJSON = BuyerUserDtoFromJSON;
|
|
38
|
+
function BuyerUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'locale': json['locale'],
|
|
45
|
+
'email': json['email'],
|
|
46
|
+
'firstname': json['firstname'],
|
|
47
|
+
'lastname': json['lastname'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.BuyerUserDtoFromJSONTyped = BuyerUserDtoFromJSONTyped;
|
|
51
|
+
function BuyerUserDtoToJSON(value) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': value['id'],
|
|
57
|
+
'locale': value['locale'],
|
|
58
|
+
'email': value['email'],
|
|
59
|
+
'firstname': value['firstname'],
|
|
60
|
+
'lastname': value['lastname'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.BuyerUserDtoToJSON = BuyerUserDtoToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './AccountSettingsInput';
|
|
|
6
6
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
7
7
|
export * from './BatchUpdateDomainsInput';
|
|
8
8
|
export * from './BuyDomainInput';
|
|
9
|
+
export * from './BuyerUserDto';
|
|
9
10
|
export * from './ChangeOrderStatusInput';
|
|
10
11
|
export * from './ConflictException';
|
|
11
12
|
export * from './CreateLeadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./AccountSettingsInput"), exports);
|
|
|
24
24
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
26
26
|
__exportStar(require("./BuyDomainInput"), exports);
|
|
27
|
+
__exportStar(require("./BuyerUserDto"), exports);
|
|
27
28
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
28
29
|
__exportStar(require("./ConflictException"), exports);
|
|
29
30
|
__exportStar(require("./CreateLeadInput"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -15,10 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BuyerUserDto,
|
|
18
19
|
ThrottlerException,
|
|
19
20
|
ValidationException,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
23
|
+
BuyerUserDtoFromJSON,
|
|
24
|
+
BuyerUserDtoToJSON,
|
|
22
25
|
ThrottlerExceptionFromJSON,
|
|
23
26
|
ThrottlerExceptionToJSON,
|
|
24
27
|
ValidationExceptionFromJSON,
|
|
@@ -33,7 +36,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
33
36
|
/**
|
|
34
37
|
*
|
|
35
38
|
*/
|
|
36
|
-
async
|
|
39
|
+
async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>> {
|
|
37
40
|
const queryParameters: any = {};
|
|
38
41
|
|
|
39
42
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -47,20 +50,21 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
const response = await this.request({
|
|
50
|
-
path: `/buyers/private/
|
|
51
|
-
method: '
|
|
53
|
+
path: `/buyers/private/me`,
|
|
54
|
+
method: 'GET',
|
|
52
55
|
headers: headerParameters,
|
|
53
56
|
query: queryParameters,
|
|
54
57
|
}, initOverrides);
|
|
55
58
|
|
|
56
|
-
return new runtime.
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerUserDtoFromJSON(jsonValue));
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
/**
|
|
60
63
|
*
|
|
61
64
|
*/
|
|
62
|
-
async
|
|
63
|
-
await this.
|
|
65
|
+
async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto> {
|
|
66
|
+
const response = await this.buyerMeRaw(initOverrides);
|
|
67
|
+
return await response.value();
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BuyerUserDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerUserDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerUserDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Buyer user locale
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerUserDto
|
|
32
|
+
*/
|
|
33
|
+
locale: string;
|
|
34
|
+
/**
|
|
35
|
+
* Buyer user email address
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerUserDto
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
* Buyer user firstname
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BuyerUserDto
|
|
44
|
+
*/
|
|
45
|
+
firstname: string;
|
|
46
|
+
/**
|
|
47
|
+
* Buyer user lastname
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BuyerUserDto
|
|
50
|
+
*/
|
|
51
|
+
lastname: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the BuyerUserDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfBuyerUserDto(value: object): value is BuyerUserDto {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
60
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
61
|
+
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
62
|
+
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function BuyerUserDtoFromJSON(json: any): BuyerUserDto {
|
|
67
|
+
return BuyerUserDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function BuyerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerUserDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'locale': json['locale'],
|
|
78
|
+
'email': json['email'],
|
|
79
|
+
'firstname': json['firstname'],
|
|
80
|
+
'lastname': json['lastname'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function BuyerUserDtoToJSON(value?: BuyerUserDto | null): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'locale': value['locale'],
|
|
92
|
+
'email': value['email'],
|
|
93
|
+
'firstname': value['firstname'],
|
|
94
|
+
'lastname': value['lastname'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './AccountSettingsInput';
|
|
|
8
8
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
9
9
|
export * from './BatchUpdateDomainsInput';
|
|
10
10
|
export * from './BuyDomainInput';
|
|
11
|
+
export * from './BuyerUserDto';
|
|
11
12
|
export * from './ChangeOrderStatusInput';
|
|
12
13
|
export * from './ConflictException';
|
|
13
14
|
export * from './CreateLeadInput';
|