@randock/nameshift-api-client 0.0.62 → 0.0.63
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/BuyersPublicApi.d.ts +12 -1
- package/dist/apis/BuyersPublicApi.js +44 -0
- package/dist/models/RequestAccessTokenInput.d.ts +31 -0
- package/dist/models/RequestAccessTokenInput.js +47 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/BuyersPublicApi.ts +42 -0
- package/src/models/RequestAccessTokenInput.ts +61 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -79,6 +79,7 @@ src/models/PublicLeadDtoLastOffer.ts
|
|
|
79
79
|
src/models/PutLeadInput.ts
|
|
80
80
|
src/models/RegisterAccountInput.ts
|
|
81
81
|
src/models/RelatedSellerDomain.ts
|
|
82
|
+
src/models/RequestAccessTokenInput.ts
|
|
82
83
|
src/models/SecurityUserDto.ts
|
|
83
84
|
src/models/SellerDomainTransferAuthCodeDto.ts
|
|
84
85
|
src/models/SellerDomainTransferDomainDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.63
|
|
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.63 --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
|
+
c7243c78db290d46700a29bdb943b329835bbed3aca24e22a271eb27c587764813992f98b4951e80a9227948e6d368d6
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { LoginDto, LoginInput } from '../models/index';
|
|
13
|
+
import type { LoginDto, LoginInput, RequestAccessTokenInput } from '../models/index';
|
|
14
14
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
15
15
|
loginInput: LoginInput;
|
|
16
16
|
}
|
|
17
|
+
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
18
|
+
requestAccessTokenInput: RequestAccessTokenInput;
|
|
19
|
+
}
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
*/
|
|
@@ -26,4 +29,12 @@ export declare class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
26
29
|
*
|
|
27
30
|
*/
|
|
28
31
|
buyerLogin(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
requestAccessTokenRaw(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
requestAccessToken(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
40
|
}
|
|
@@ -121,6 +121,50 @@ var BuyersPublicApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
BuyersPublicApi.prototype.requestAccessTokenRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['requestAccessTokenInput'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('requestAccessTokenInput', 'Required parameter "requestAccessTokenInput" was null or undefined when calling requestAccessToken().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
139
|
+
return [4 /*yield*/, this.request({
|
|
140
|
+
path: "/buyers/request-access-token",
|
|
141
|
+
method: 'POST',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
body: (0, index_1.RequestAccessTokenInputToJSON)(requestParameters['requestAccessTokenInput']),
|
|
145
|
+
}, initOverrides)];
|
|
146
|
+
case 1:
|
|
147
|
+
response = _a.sent();
|
|
148
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
BuyersPublicApi.prototype.requestAccessToken = function (requestParameters, initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0: return [4 /*yield*/, this.requestAccessTokenRaw(requestParameters, initOverrides)];
|
|
161
|
+
case 1:
|
|
162
|
+
_a.sent();
|
|
163
|
+
return [2 /*return*/];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
124
168
|
return BuyersPublicApi;
|
|
125
169
|
}(runtime.BaseAPI));
|
|
126
170
|
exports.BuyersPublicApi = BuyersPublicApi;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 RequestAccessTokenInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RequestAccessTokenInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequestAccessTokenInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RequestAccessTokenInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRequestAccessTokenInput(value: object): value is RequestAccessTokenInput;
|
|
29
|
+
export declare function RequestAccessTokenInputFromJSON(json: any): RequestAccessTokenInput;
|
|
30
|
+
export declare function RequestAccessTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestAccessTokenInput;
|
|
31
|
+
export declare function RequestAccessTokenInputToJSON(value?: RequestAccessTokenInput | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.RequestAccessTokenInputToJSON = exports.RequestAccessTokenInputFromJSONTyped = exports.RequestAccessTokenInputFromJSON = exports.instanceOfRequestAccessTokenInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RequestAccessTokenInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfRequestAccessTokenInput(value) {
|
|
21
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfRequestAccessTokenInput = instanceOfRequestAccessTokenInput;
|
|
26
|
+
function RequestAccessTokenInputFromJSON(json) {
|
|
27
|
+
return RequestAccessTokenInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.RequestAccessTokenInputFromJSON = RequestAccessTokenInputFromJSON;
|
|
30
|
+
function RequestAccessTokenInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'email': json['email'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.RequestAccessTokenInputFromJSONTyped = RequestAccessTokenInputFromJSONTyped;
|
|
39
|
+
function RequestAccessTokenInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'email': value['email'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.RequestAccessTokenInputToJSON = RequestAccessTokenInputToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './PublicLeadDtoLastOffer';
|
|
|
60
60
|
export * from './PutLeadInput';
|
|
61
61
|
export * from './RegisterAccountInput';
|
|
62
62
|
export * from './RelatedSellerDomain';
|
|
63
|
+
export * from './RequestAccessTokenInput';
|
|
63
64
|
export * from './SecurityUserDto';
|
|
64
65
|
export * from './SellerDomainTransferAuthCodeDto';
|
|
65
66
|
export * from './SellerDomainTransferDomainDto';
|
package/dist/models/index.js
CHANGED
|
@@ -78,6 +78,7 @@ __exportStar(require("./PublicLeadDtoLastOffer"), exports);
|
|
|
78
78
|
__exportStar(require("./PutLeadInput"), exports);
|
|
79
79
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
80
80
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
81
|
+
__exportStar(require("./RequestAccessTokenInput"), exports);
|
|
81
82
|
__exportStar(require("./SecurityUserDto"), exports);
|
|
82
83
|
__exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
|
|
83
84
|
__exportStar(require("./SellerDomainTransferDomainDto"), exports);
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
LoginDto,
|
|
19
19
|
LoginInput,
|
|
20
|
+
RequestAccessTokenInput,
|
|
20
21
|
ThrottlerException,
|
|
21
22
|
ValidationException,
|
|
22
23
|
} from '../models/index';
|
|
@@ -25,6 +26,8 @@ import {
|
|
|
25
26
|
LoginDtoToJSON,
|
|
26
27
|
LoginInputFromJSON,
|
|
27
28
|
LoginInputToJSON,
|
|
29
|
+
RequestAccessTokenInputFromJSON,
|
|
30
|
+
RequestAccessTokenInputToJSON,
|
|
28
31
|
ThrottlerExceptionFromJSON,
|
|
29
32
|
ThrottlerExceptionToJSON,
|
|
30
33
|
ValidationExceptionFromJSON,
|
|
@@ -35,6 +38,10 @@ export interface BuyersPublicApiBuyerLoginRequest {
|
|
|
35
38
|
loginInput: LoginInput;
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
42
|
+
requestAccessTokenInput: RequestAccessTokenInput;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
40
47
|
*/
|
|
@@ -76,4 +83,39 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
76
83
|
return await response.value();
|
|
77
84
|
}
|
|
78
85
|
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
async requestAccessTokenRaw(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
90
|
+
if (requestParameters['requestAccessTokenInput'] == null) {
|
|
91
|
+
throw new runtime.RequiredError(
|
|
92
|
+
'requestAccessTokenInput',
|
|
93
|
+
'Required parameter "requestAccessTokenInput" was null or undefined when calling requestAccessToken().'
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/buyers/request-access-token`,
|
|
105
|
+
method: 'POST',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: RequestAccessTokenInputToJSON(requestParameters['requestAccessTokenInput']),
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
|
|
111
|
+
return new runtime.VoidApiResponse(response);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
async requestAccessToken(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
118
|
+
await this.requestAccessTokenRaw(requestParameters, initOverrides);
|
|
119
|
+
}
|
|
120
|
+
|
|
79
121
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 RequestAccessTokenInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestAccessTokenInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestAccessTokenInput
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RequestAccessTokenInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRequestAccessTokenInput(value: object): value is RequestAccessTokenInput {
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RequestAccessTokenInputFromJSON(json: any): RequestAccessTokenInput {
|
|
39
|
+
return RequestAccessTokenInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RequestAccessTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestAccessTokenInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RequestAccessTokenInputToJSON(value?: RequestAccessTokenInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'email': value['email'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './PublicLeadDtoLastOffer';
|
|
|
62
62
|
export * from './PutLeadInput';
|
|
63
63
|
export * from './RegisterAccountInput';
|
|
64
64
|
export * from './RelatedSellerDomain';
|
|
65
|
+
export * from './RequestAccessTokenInput';
|
|
65
66
|
export * from './SecurityUserDto';
|
|
66
67
|
export * from './SellerDomainTransferAuthCodeDto';
|
|
67
68
|
export * from './SellerDomainTransferDomainDto';
|