@randock/nameshift-api-client 0.0.14 → 0.0.15
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.
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { CreateLeadInput, LeadDto } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface CreateLeadRequest {
|
|
15
15
|
createLeadInput: CreateLeadInput;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -19,9 +19,11 @@ export interface PublicLeadControllerPostLeadRequest {
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
21
21
|
/**
|
|
22
|
+
*
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
createLeadRaw(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
|
|
24
25
|
/**
|
|
26
|
+
*
|
|
25
27
|
*/
|
|
26
|
-
|
|
28
|
+
createLead(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
|
|
27
29
|
}
|
|
@@ -76,15 +76,16 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
+
*
|
|
79
80
|
*/
|
|
80
|
-
LeadsPublicApi.prototype.
|
|
81
|
+
LeadsPublicApi.prototype.createLeadRaw = function (requestParameters, initOverrides) {
|
|
81
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
83
|
var queryParameters, headerParameters, response;
|
|
83
84
|
return __generator(this, function (_a) {
|
|
84
85
|
switch (_a.label) {
|
|
85
86
|
case 0:
|
|
86
87
|
if (requestParameters.createLeadInput === null || requestParameters.createLeadInput === undefined) {
|
|
87
|
-
throw new runtime.RequiredError('createLeadInput', 'Required parameter requestParameters.createLeadInput was null or undefined when calling
|
|
88
|
+
throw new runtime.RequiredError('createLeadInput', 'Required parameter requestParameters.createLeadInput was null or undefined when calling createLead.');
|
|
88
89
|
}
|
|
89
90
|
queryParameters = {};
|
|
90
91
|
headerParameters = {};
|
|
@@ -104,13 +105,14 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
104
105
|
});
|
|
105
106
|
};
|
|
106
107
|
/**
|
|
108
|
+
*
|
|
107
109
|
*/
|
|
108
|
-
LeadsPublicApi.prototype.
|
|
110
|
+
LeadsPublicApi.prototype.createLead = function (requestParameters, initOverrides) {
|
|
109
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
110
112
|
var response;
|
|
111
113
|
return __generator(this, function (_a) {
|
|
112
114
|
switch (_a.label) {
|
|
113
|
-
case 0: return [4 /*yield*/, this.
|
|
115
|
+
case 0: return [4 /*yield*/, this.createLeadRaw(requestParameters, initOverrides)];
|
|
114
116
|
case 1:
|
|
115
117
|
response = _a.sent();
|
|
116
118
|
return [4 /*yield*/, response.value()];
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
BatchUpdate404Response,
|
|
19
19
|
CreateLeadInput,
|
|
20
20
|
LeadDto,
|
|
21
|
+
UpdateSettings429Response,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
23
24
|
BatchUpdate404ResponseFromJSON,
|
|
@@ -26,9 +27,11 @@ import {
|
|
|
26
27
|
CreateLeadInputToJSON,
|
|
27
28
|
LeadDtoFromJSON,
|
|
28
29
|
LeadDtoToJSON,
|
|
30
|
+
UpdateSettings429ResponseFromJSON,
|
|
31
|
+
UpdateSettings429ResponseToJSON,
|
|
29
32
|
} from '../models/index';
|
|
30
33
|
|
|
31
|
-
export interface
|
|
34
|
+
export interface CreateLeadRequest {
|
|
32
35
|
createLeadInput: CreateLeadInput;
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -38,10 +41,11 @@ export interface PublicLeadControllerPostLeadRequest {
|
|
|
38
41
|
export class LeadsPublicApi extends runtime.BaseAPI {
|
|
39
42
|
|
|
40
43
|
/**
|
|
44
|
+
*
|
|
41
45
|
*/
|
|
42
|
-
async
|
|
46
|
+
async createLeadRaw(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>> {
|
|
43
47
|
if (requestParameters.createLeadInput === null || requestParameters.createLeadInput === undefined) {
|
|
44
|
-
throw new runtime.RequiredError('createLeadInput','Required parameter requestParameters.createLeadInput was null or undefined when calling
|
|
48
|
+
throw new runtime.RequiredError('createLeadInput','Required parameter requestParameters.createLeadInput was null or undefined when calling createLead.');
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
const queryParameters: any = {};
|
|
@@ -62,9 +66,10 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
/**
|
|
69
|
+
*
|
|
65
70
|
*/
|
|
66
|
-
async
|
|
67
|
-
const response = await this.
|
|
71
|
+
async createLead(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto> {
|
|
72
|
+
const response = await this.createLeadRaw(requestParameters, initOverrides);
|
|
68
73
|
return await response.value();
|
|
69
74
|
}
|
|
70
75
|
|