@randock/nameshift-api-client 0.0.188 → 0.0.190
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/DefaultApi.d.ts +29 -0
- package/dist/apis/DefaultApi.js +134 -0
- package/dist/apis/DomainsPublicApi.d.ts +1 -0
- package/dist/apis/DomainsPublicApi.js +3 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +89 -0
- package/src/apis/DomainsPublicApi.ts +5 -0
- package/src/apis/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.190
|
|
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.190 --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
|
+
dc39093553170d21099eec9c2040e5430bbde83d313ee50fdae9bec4e384f4a8c35d9ed7022d97959c6e03fd13326252
|
|
@@ -0,0 +1,29 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
export interface DefaultApiPublicAdsControllerAdwordsConversionExportRequest {
|
|
14
|
+
program: string;
|
|
15
|
+
hours: string;
|
|
16
|
+
timezone: string;
|
|
17
|
+
conversion: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare class DefaultApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
*/
|
|
25
|
+
publicAdsControllerAdwordsConversionExportRaw(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
26
|
+
/**
|
|
27
|
+
*/
|
|
28
|
+
publicAdsControllerAdwordsConversionExport(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DefaultApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var DefaultApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(DefaultApi, _super);
|
|
74
|
+
function DefaultApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
*/
|
|
79
|
+
DefaultApi.prototype.publicAdsControllerAdwordsConversionExportRaw = function (requestParameters, initOverrides) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
+
var queryParameters, headerParameters, response;
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
switch (_a.label) {
|
|
84
|
+
case 0:
|
|
85
|
+
if (requestParameters['program'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('program', 'Required parameter "program" was null or undefined when calling publicAdsControllerAdwordsConversionExport().');
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters['hours'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('hours', 'Required parameter "hours" was null or undefined when calling publicAdsControllerAdwordsConversionExport().');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['timezone'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('timezone', 'Required parameter "timezone" was null or undefined when calling publicAdsControllerAdwordsConversionExport().');
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['conversion'] == null) {
|
|
95
|
+
throw new runtime.RequiredError('conversion', 'Required parameter "conversion" was null or undefined when calling publicAdsControllerAdwordsConversionExport().');
|
|
96
|
+
}
|
|
97
|
+
queryParameters = {};
|
|
98
|
+
if (requestParameters['timezone'] != null) {
|
|
99
|
+
queryParameters['timezone'] = requestParameters['timezone'];
|
|
100
|
+
}
|
|
101
|
+
if (requestParameters['conversion'] != null) {
|
|
102
|
+
queryParameters['conversion'] = requestParameters['conversion'];
|
|
103
|
+
}
|
|
104
|
+
headerParameters = {};
|
|
105
|
+
return [4 /*yield*/, this.request({
|
|
106
|
+
path: "/ads/{program}/{hours}".replace("{".concat("program", "}"), encodeURIComponent(String(requestParameters['program']))).replace("{".concat("hours", "}"), encodeURIComponent(String(requestParameters['hours']))),
|
|
107
|
+
method: 'GET',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
}, initOverrides)];
|
|
111
|
+
case 1:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
*/
|
|
120
|
+
DefaultApi.prototype.publicAdsControllerAdwordsConversionExport = function (requestParameters, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
return __generator(this, function (_a) {
|
|
123
|
+
switch (_a.label) {
|
|
124
|
+
case 0: return [4 /*yield*/, this.publicAdsControllerAdwordsConversionExportRaw(requestParameters, initOverrides)];
|
|
125
|
+
case 1:
|
|
126
|
+
_a.sent();
|
|
127
|
+
return [2 /*return*/];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
return DefaultApi;
|
|
133
|
+
}(runtime.BaseAPI));
|
|
134
|
+
exports.DefaultApi = DefaultApi;
|
|
@@ -14,6 +14,7 @@ import type { IntersectionDomainSalesInformationDtoWithDomainStatsDto, List200Re
|
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
16
|
includeStats?: boolean;
|
|
17
|
+
preview?: boolean;
|
|
17
18
|
installments?: number;
|
|
18
19
|
}
|
|
19
20
|
export interface DomainsPublicApiListRequest {
|
|
@@ -91,6 +91,9 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
91
91
|
if (requestParameters['includeStats'] != null) {
|
|
92
92
|
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
93
93
|
}
|
|
94
|
+
if (requestParameters['preview'] != null) {
|
|
95
|
+
queryParameters['preview'] = requestParameters['preview'];
|
|
96
|
+
}
|
|
94
97
|
if (requestParameters['installments'] != null) {
|
|
95
98
|
queryParameters['installments'] = requestParameters['installments'];
|
|
96
99
|
}
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __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("./DefaultApi"), exports);
|
|
24
25
|
__exportStar(require("./DomainsApi"), exports);
|
|
25
26
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
26
27
|
__exportStar(require("./InvoicesApi"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
|
|
18
|
+
export interface DefaultApiPublicAdsControllerAdwordsConversionExportRequest {
|
|
19
|
+
program: string;
|
|
20
|
+
hours: string;
|
|
21
|
+
timezone: string;
|
|
22
|
+
conversion: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class DefaultApi extends runtime.BaseAPI {
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
*/
|
|
32
|
+
async publicAdsControllerAdwordsConversionExportRaw(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
33
|
+
if (requestParameters['program'] == null) {
|
|
34
|
+
throw new runtime.RequiredError(
|
|
35
|
+
'program',
|
|
36
|
+
'Required parameter "program" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (requestParameters['hours'] == null) {
|
|
41
|
+
throw new runtime.RequiredError(
|
|
42
|
+
'hours',
|
|
43
|
+
'Required parameter "hours" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (requestParameters['timezone'] == null) {
|
|
48
|
+
throw new runtime.RequiredError(
|
|
49
|
+
'timezone',
|
|
50
|
+
'Required parameter "timezone" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (requestParameters['conversion'] == null) {
|
|
55
|
+
throw new runtime.RequiredError(
|
|
56
|
+
'conversion',
|
|
57
|
+
'Required parameter "conversion" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const queryParameters: any = {};
|
|
62
|
+
|
|
63
|
+
if (requestParameters['timezone'] != null) {
|
|
64
|
+
queryParameters['timezone'] = requestParameters['timezone'];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (requestParameters['conversion'] != null) {
|
|
68
|
+
queryParameters['conversion'] = requestParameters['conversion'];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
|
+
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/ads/{program}/{hours}`.replace(`{${"program"}}`, encodeURIComponent(String(requestParameters['program']))).replace(`{${"hours"}}`, encodeURIComponent(String(requestParameters['hours']))),
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.VoidApiResponse(response);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
*/
|
|
85
|
+
async publicAdsControllerAdwordsConversionExport(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
86
|
+
await this.publicAdsControllerAdwordsConversionExportRaw(requestParameters, initOverrides);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
38
38
|
domainName: string;
|
|
39
39
|
includeStats?: boolean;
|
|
40
|
+
preview?: boolean;
|
|
40
41
|
installments?: number;
|
|
41
42
|
}
|
|
42
43
|
|
|
@@ -69,6 +70,10 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
69
70
|
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
if (requestParameters['preview'] != null) {
|
|
74
|
+
queryParameters['preview'] = requestParameters['preview'];
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
if (requestParameters['installments'] != null) {
|
|
73
78
|
queryParameters['installments'] = requestParameters['installments'];
|
|
74
79
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AccountsPublicApi';
|
|
|
5
5
|
export * from './AdminApi';
|
|
6
6
|
export * from './BuyersApi';
|
|
7
7
|
export * from './BuyersPublicApi';
|
|
8
|
+
export * from './DefaultApi';
|
|
8
9
|
export * from './DomainsApi';
|
|
9
10
|
export * from './DomainsPublicApi';
|
|
10
11
|
export * from './InvoicesApi';
|