@randock/nameshift-api-client 0.0.244 → 0.0.245
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 +3 -1
- package/README.md +3 -3
- package/dist/apis/SalesPublicApi.d.ts +29 -0
- package/dist/apis/SalesPublicApi.js +125 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/PublicSaleDto.d.ts +50 -0
- package/dist/models/PublicSaleDto.js +63 -0
- package/dist/models/PublicSalesDto.d.ts +33 -0
- package/dist/models/PublicSalesDto.js +52 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/SalesPublicApi.ts +64 -0
- package/src/apis/index.ts +1 -1
- package/src/models/PublicSaleDto.ts +93 -0
- package/src/models/PublicSalesDto.ts +74 -0
- package/src/models/index.ts +2 -0
- package/dist/apis/DefaultApi.d.ts +0 -43
- package/dist/apis/DefaultApi.js +0 -187
- package/src/apis/DefaultApi.ts +0 -143
package/.openapi-generator/FILES
CHANGED
|
@@ -10,13 +10,13 @@ src/apis/AirwallexPublicApi.ts
|
|
|
10
10
|
src/apis/BankAccountsApi.ts
|
|
11
11
|
src/apis/BuyersApi.ts
|
|
12
12
|
src/apis/BuyersPublicApi.ts
|
|
13
|
-
src/apis/DefaultApi.ts
|
|
14
13
|
src/apis/DomainsApi.ts
|
|
15
14
|
src/apis/DomainsPublicApi.ts
|
|
16
15
|
src/apis/InvoicesApi.ts
|
|
17
16
|
src/apis/LeadsApi.ts
|
|
18
17
|
src/apis/LeadsPublicApi.ts
|
|
19
18
|
src/apis/OrdersPublicApi.ts
|
|
19
|
+
src/apis/SalesPublicApi.ts
|
|
20
20
|
src/apis/StripePublicApi.ts
|
|
21
21
|
src/apis/SubscriptionsApi.ts
|
|
22
22
|
src/apis/SubscriptionsPublicApi.ts
|
|
@@ -195,6 +195,8 @@ src/models/PublicDomainDtoSeo.ts
|
|
|
195
195
|
src/models/PublicDomainDtoSeoMoz.ts
|
|
196
196
|
src/models/PublicLeadBuyerDto.ts
|
|
197
197
|
src/models/PublicLeadDto.ts
|
|
198
|
+
src/models/PublicSaleDto.ts
|
|
199
|
+
src/models/PublicSalesDto.ts
|
|
198
200
|
src/models/PutBuyerLeadOfferInput.ts
|
|
199
201
|
src/models/PutLeadOfferInput.ts
|
|
200
202
|
src/models/RegisterAccountInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.245
|
|
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.245 --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
|
+
23eb6372358899230dce767ee5a7b219c55a58ea5b5d73a71f61efc53fa56b9ca3ec4b19362c4eb3bdb5e4a6d3cd2f2c
|
|
@@ -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
|
+
import type { PublicSalesDto } from '../models/index';
|
|
14
|
+
export interface SalesPublicApiGetSalesRequest {
|
|
15
|
+
tlds?: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class SalesPublicApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Get latest sales
|
|
23
|
+
*/
|
|
24
|
+
getSalesRaw(requestParameters: SalesPublicApiGetSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSalesDto>>;
|
|
25
|
+
/**
|
|
26
|
+
* Get latest sales
|
|
27
|
+
*/
|
|
28
|
+
getSales(requestParameters?: SalesPublicApiGetSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSalesDto>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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.SalesPublicApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var SalesPublicApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(SalesPublicApi, _super);
|
|
75
|
+
function SalesPublicApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get latest sales
|
|
80
|
+
*/
|
|
81
|
+
SalesPublicApi.prototype.getSalesRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
if (requestParameters['tlds'] != null) {
|
|
89
|
+
queryParameters['tlds'] = requestParameters['tlds'];
|
|
90
|
+
}
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
return [4 /*yield*/, this.request({
|
|
93
|
+
path: "/sales",
|
|
94
|
+
method: 'GET',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
}, initOverrides)];
|
|
98
|
+
case 1:
|
|
99
|
+
response = _a.sent();
|
|
100
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicSalesDtoFromJSON)(jsonValue); })];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Get latest sales
|
|
107
|
+
*/
|
|
108
|
+
SalesPublicApi.prototype.getSales = function () {
|
|
109
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
110
|
+
var response;
|
|
111
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, this.getSalesRaw(requestParameters, initOverrides)];
|
|
115
|
+
case 1:
|
|
116
|
+
response = _a.sent();
|
|
117
|
+
return [4 /*yield*/, response.value()];
|
|
118
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
return SalesPublicApi;
|
|
124
|
+
}(runtime.BaseAPI));
|
|
125
|
+
exports.SalesPublicApi = SalesPublicApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ export * from './AirwallexPublicApi';
|
|
|
5
5
|
export * from './BankAccountsApi';
|
|
6
6
|
export * from './BuyersApi';
|
|
7
7
|
export * from './BuyersPublicApi';
|
|
8
|
-
export * from './DefaultApi';
|
|
9
8
|
export * from './DomainsApi';
|
|
10
9
|
export * from './DomainsPublicApi';
|
|
11
10
|
export * from './InvoicesApi';
|
|
12
11
|
export * from './LeadsApi';
|
|
13
12
|
export * from './LeadsPublicApi';
|
|
14
13
|
export * from './OrdersPublicApi';
|
|
14
|
+
export * from './SalesPublicApi';
|
|
15
15
|
export * from './StripePublicApi';
|
|
16
16
|
export * from './SubscriptionsApi';
|
|
17
17
|
export * from './SubscriptionsPublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -23,13 +23,13 @@ __exportStar(require("./AirwallexPublicApi"), exports);
|
|
|
23
23
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
24
24
|
__exportStar(require("./BuyersApi"), exports);
|
|
25
25
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
26
|
-
__exportStar(require("./DefaultApi"), exports);
|
|
27
26
|
__exportStar(require("./DomainsApi"), exports);
|
|
28
27
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
29
28
|
__exportStar(require("./InvoicesApi"), exports);
|
|
30
29
|
__exportStar(require("./LeadsApi"), exports);
|
|
31
30
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
32
31
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
32
|
+
__exportStar(require("./SalesPublicApi"), exports);
|
|
33
33
|
__exportStar(require("./StripePublicApi"), exports);
|
|
34
34
|
__exportStar(require("./SubscriptionsApi"), exports);
|
|
35
35
|
__exportStar(require("./SubscriptionsPublicApi"), exports);
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PublicSaleDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PublicSaleDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PublicSaleDto
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PublicSaleDto
|
|
28
|
+
*/
|
|
29
|
+
price: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PublicSaleDto
|
|
34
|
+
*/
|
|
35
|
+
currency: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof PublicSaleDto
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PublicSaleDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPublicSaleDto(value: object): value is PublicSaleDto;
|
|
47
|
+
export declare function PublicSaleDtoFromJSON(json: any): PublicSaleDto;
|
|
48
|
+
export declare function PublicSaleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicSaleDto;
|
|
49
|
+
export declare function PublicSaleDtoToJSON(json: any): PublicSaleDto;
|
|
50
|
+
export declare function PublicSaleDtoToJSONTyped(value?: PublicSaleDto | null, ignoreDiscriminator?: boolean): 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.instanceOfPublicSaleDto = instanceOfPublicSaleDto;
|
|
17
|
+
exports.PublicSaleDtoFromJSON = PublicSaleDtoFromJSON;
|
|
18
|
+
exports.PublicSaleDtoFromJSONTyped = PublicSaleDtoFromJSONTyped;
|
|
19
|
+
exports.PublicSaleDtoToJSON = PublicSaleDtoToJSON;
|
|
20
|
+
exports.PublicSaleDtoToJSONTyped = PublicSaleDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PublicSaleDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPublicSaleDto(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PublicSaleDtoFromJSON(json) {
|
|
36
|
+
return PublicSaleDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PublicSaleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'price': json['price'],
|
|
45
|
+
'currency': json['currency'],
|
|
46
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function PublicSaleDtoToJSON(json) {
|
|
50
|
+
return PublicSaleDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PublicSaleDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'price': value['price'],
|
|
60
|
+
'currency': value['currency'],
|
|
61
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 type { PublicSaleDto } from './PublicSaleDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PublicSalesDto
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicSalesDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PublicSaleDto>}
|
|
22
|
+
* @memberof PublicSalesDto
|
|
23
|
+
*/
|
|
24
|
+
sales: Array<PublicSaleDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PublicSalesDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPublicSalesDto(value: object): value is PublicSalesDto;
|
|
30
|
+
export declare function PublicSalesDtoFromJSON(json: any): PublicSalesDto;
|
|
31
|
+
export declare function PublicSalesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicSalesDto;
|
|
32
|
+
export declare function PublicSalesDtoToJSON(json: any): PublicSalesDto;
|
|
33
|
+
export declare function PublicSalesDtoToJSONTyped(value?: PublicSalesDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfPublicSalesDto = instanceOfPublicSalesDto;
|
|
17
|
+
exports.PublicSalesDtoFromJSON = PublicSalesDtoFromJSON;
|
|
18
|
+
exports.PublicSalesDtoFromJSONTyped = PublicSalesDtoFromJSONTyped;
|
|
19
|
+
exports.PublicSalesDtoToJSON = PublicSalesDtoToJSON;
|
|
20
|
+
exports.PublicSalesDtoToJSONTyped = PublicSalesDtoToJSONTyped;
|
|
21
|
+
var PublicSaleDto_1 = require("./PublicSaleDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicSalesDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPublicSalesDto(value) {
|
|
26
|
+
if (!('sales' in value) || value['sales'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function PublicSalesDtoFromJSON(json) {
|
|
31
|
+
return PublicSalesDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function PublicSalesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'sales': (json['sales'].map(PublicSaleDto_1.PublicSaleDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PublicSalesDtoToJSON(json) {
|
|
42
|
+
return PublicSalesDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PublicSalesDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'sales': (value['sales'].map(PublicSaleDto_1.PublicSaleDtoToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -167,6 +167,8 @@ export * from './PublicDomainDtoSeo';
|
|
|
167
167
|
export * from './PublicDomainDtoSeoMoz';
|
|
168
168
|
export * from './PublicLeadBuyerDto';
|
|
169
169
|
export * from './PublicLeadDto';
|
|
170
|
+
export * from './PublicSaleDto';
|
|
171
|
+
export * from './PublicSalesDto';
|
|
170
172
|
export * from './PutBuyerLeadOfferInput';
|
|
171
173
|
export * from './PutLeadOfferInput';
|
|
172
174
|
export * from './RegisterAccountInput';
|
package/dist/models/index.js
CHANGED
|
@@ -185,6 +185,8 @@ __exportStar(require("./PublicDomainDtoSeo"), exports);
|
|
|
185
185
|
__exportStar(require("./PublicDomainDtoSeoMoz"), exports);
|
|
186
186
|
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
|
187
187
|
__exportStar(require("./PublicLeadDto"), exports);
|
|
188
|
+
__exportStar(require("./PublicSaleDto"), exports);
|
|
189
|
+
__exportStar(require("./PublicSalesDto"), exports);
|
|
188
190
|
__exportStar(require("./PutBuyerLeadOfferInput"), exports);
|
|
189
191
|
__exportStar(require("./PutLeadOfferInput"), exports);
|
|
190
192
|
__exportStar(require("./RegisterAccountInput"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import type {
|
|
18
|
+
PublicSalesDto,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
PublicSalesDtoFromJSON,
|
|
22
|
+
PublicSalesDtoToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface SalesPublicApiGetSalesRequest {
|
|
26
|
+
tlds?: Array<string>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export class SalesPublicApi extends runtime.BaseAPI {
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get latest sales
|
|
36
|
+
*/
|
|
37
|
+
async getSalesRaw(requestParameters: SalesPublicApiGetSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSalesDto>> {
|
|
38
|
+
const queryParameters: any = {};
|
|
39
|
+
|
|
40
|
+
if (requestParameters['tlds'] != null) {
|
|
41
|
+
queryParameters['tlds'] = requestParameters['tlds'];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
45
|
+
|
|
46
|
+
const response = await this.request({
|
|
47
|
+
path: `/sales`,
|
|
48
|
+
method: 'GET',
|
|
49
|
+
headers: headerParameters,
|
|
50
|
+
query: queryParameters,
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PublicSalesDtoFromJSON(jsonValue));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Get latest sales
|
|
58
|
+
*/
|
|
59
|
+
async getSales(requestParameters: SalesPublicApiGetSalesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSalesDto> {
|
|
60
|
+
const response = await this.getSalesRaw(requestParameters, initOverrides);
|
|
61
|
+
return await response.value();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -7,13 +7,13 @@ export * from './AirwallexPublicApi';
|
|
|
7
7
|
export * from './BankAccountsApi';
|
|
8
8
|
export * from './BuyersApi';
|
|
9
9
|
export * from './BuyersPublicApi';
|
|
10
|
-
export * from './DefaultApi';
|
|
11
10
|
export * from './DomainsApi';
|
|
12
11
|
export * from './DomainsPublicApi';
|
|
13
12
|
export * from './InvoicesApi';
|
|
14
13
|
export * from './LeadsApi';
|
|
15
14
|
export * from './LeadsPublicApi';
|
|
16
15
|
export * from './OrdersPublicApi';
|
|
16
|
+
export * from './SalesPublicApi';
|
|
17
17
|
export * from './StripePublicApi';
|
|
18
18
|
export * from './SubscriptionsApi';
|
|
19
19
|
export * from './SubscriptionsPublicApi';
|
|
@@ -0,0 +1,93 @@
|
|
|
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 PublicSaleDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicSaleDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PublicSaleDto
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PublicSaleDto
|
|
32
|
+
*/
|
|
33
|
+
price: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PublicSaleDto
|
|
38
|
+
*/
|
|
39
|
+
currency: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof PublicSaleDto
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PublicSaleDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPublicSaleDto(value: object): value is PublicSaleDto {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
54
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
55
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PublicSaleDtoFromJSON(json: any): PublicSaleDto {
|
|
60
|
+
return PublicSaleDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PublicSaleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicSaleDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'price': json['price'],
|
|
71
|
+
'currency': json['currency'],
|
|
72
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PublicSaleDtoToJSON(json: any): PublicSaleDto {
|
|
77
|
+
return PublicSaleDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PublicSaleDtoToJSONTyped(value?: PublicSaleDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'price': value['price'],
|
|
89
|
+
'currency': value['currency'],
|
|
90
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import type { PublicSaleDto } from './PublicSaleDto';
|
|
17
|
+
import {
|
|
18
|
+
PublicSaleDtoFromJSON,
|
|
19
|
+
PublicSaleDtoFromJSONTyped,
|
|
20
|
+
PublicSaleDtoToJSON,
|
|
21
|
+
PublicSaleDtoToJSONTyped,
|
|
22
|
+
} from './PublicSaleDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PublicSalesDto
|
|
28
|
+
*/
|
|
29
|
+
export interface PublicSalesDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PublicSaleDto>}
|
|
33
|
+
* @memberof PublicSalesDto
|
|
34
|
+
*/
|
|
35
|
+
sales: Array<PublicSaleDto>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PublicSalesDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPublicSalesDto(value: object): value is PublicSalesDto {
|
|
42
|
+
if (!('sales' in value) || value['sales'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PublicSalesDtoFromJSON(json: any): PublicSalesDto {
|
|
47
|
+
return PublicSalesDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PublicSalesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicSalesDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'sales': ((json['sales'] as Array<any>).map(PublicSaleDtoFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PublicSalesDtoToJSON(json: any): PublicSalesDto {
|
|
61
|
+
return PublicSalesDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PublicSalesDtoToJSONTyped(value?: PublicSalesDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'sales': ((value['sales'] as Array<any>).map(PublicSaleDtoToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -169,6 +169,8 @@ export * from './PublicDomainDtoSeo';
|
|
|
169
169
|
export * from './PublicDomainDtoSeoMoz';
|
|
170
170
|
export * from './PublicLeadBuyerDto';
|
|
171
171
|
export * from './PublicLeadDto';
|
|
172
|
+
export * from './PublicSaleDto';
|
|
173
|
+
export * from './PublicSalesDto';
|
|
172
174
|
export * from './PutBuyerLeadOfferInput';
|
|
173
175
|
export * from './PutLeadOfferInput';
|
|
174
176
|
export * from './RegisterAccountInput';
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
export interface DefaultApiPublicSumsubControllerHandleWebhookRequest {
|
|
20
|
-
xPayloadDigest: string;
|
|
21
|
-
xPayloadDigestAlg: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
export declare class DefaultApi extends runtime.BaseAPI {
|
|
27
|
-
/**
|
|
28
|
-
*/
|
|
29
|
-
publicAdsControllerAdwordsConversionExportRaw(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
30
|
-
/**
|
|
31
|
-
*/
|
|
32
|
-
publicAdsControllerAdwordsConversionExport(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Handles incoming webhook events from SumSub.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
publicSumsubControllerHandleWebhookRaw(requestParameters: DefaultApiPublicSumsubControllerHandleWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
38
|
-
/**
|
|
39
|
-
* Handles incoming webhook events from SumSub.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
publicSumsubControllerHandleWebhook(requestParameters: DefaultApiPublicSumsubControllerHandleWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
43
|
-
}
|
package/dist/apis/DefaultApi.js
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
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
|
-
/**
|
|
133
|
-
* Handles incoming webhook events from SumSub.
|
|
134
|
-
*
|
|
135
|
-
*/
|
|
136
|
-
DefaultApi.prototype.publicSumsubControllerHandleWebhookRaw = function (requestParameters, initOverrides) {
|
|
137
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
138
|
-
var queryParameters, headerParameters, response;
|
|
139
|
-
return __generator(this, function (_a) {
|
|
140
|
-
switch (_a.label) {
|
|
141
|
-
case 0:
|
|
142
|
-
if (requestParameters['xPayloadDigest'] == null) {
|
|
143
|
-
throw new runtime.RequiredError('xPayloadDigest', 'Required parameter "xPayloadDigest" was null or undefined when calling publicSumsubControllerHandleWebhook().');
|
|
144
|
-
}
|
|
145
|
-
if (requestParameters['xPayloadDigestAlg'] == null) {
|
|
146
|
-
throw new runtime.RequiredError('xPayloadDigestAlg', 'Required parameter "xPayloadDigestAlg" was null or undefined when calling publicSumsubControllerHandleWebhook().');
|
|
147
|
-
}
|
|
148
|
-
queryParameters = {};
|
|
149
|
-
headerParameters = {};
|
|
150
|
-
if (requestParameters['xPayloadDigest'] != null) {
|
|
151
|
-
headerParameters['x-payload-digest'] = String(requestParameters['xPayloadDigest']);
|
|
152
|
-
}
|
|
153
|
-
if (requestParameters['xPayloadDigestAlg'] != null) {
|
|
154
|
-
headerParameters['x-payload-digest-alg'] = String(requestParameters['xPayloadDigestAlg']);
|
|
155
|
-
}
|
|
156
|
-
return [4 /*yield*/, this.request({
|
|
157
|
-
path: "/sumsub/webhook",
|
|
158
|
-
method: 'POST',
|
|
159
|
-
headers: headerParameters,
|
|
160
|
-
query: queryParameters,
|
|
161
|
-
}, initOverrides)];
|
|
162
|
-
case 1:
|
|
163
|
-
response = _a.sent();
|
|
164
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Handles incoming webhook events from SumSub.
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
173
|
-
DefaultApi.prototype.publicSumsubControllerHandleWebhook = function (requestParameters, initOverrides) {
|
|
174
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
-
return __generator(this, function (_a) {
|
|
176
|
-
switch (_a.label) {
|
|
177
|
-
case 0: return [4 /*yield*/, this.publicSumsubControllerHandleWebhookRaw(requestParameters, initOverrides)];
|
|
178
|
-
case 1:
|
|
179
|
-
_a.sent();
|
|
180
|
-
return [2 /*return*/];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
return DefaultApi;
|
|
186
|
-
}(runtime.BaseAPI));
|
|
187
|
-
exports.DefaultApi = DefaultApi;
|
package/src/apis/DefaultApi.ts
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
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
|
-
export interface DefaultApiPublicSumsubControllerHandleWebhookRequest {
|
|
26
|
-
xPayloadDigest: string;
|
|
27
|
-
xPayloadDigestAlg: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
export class DefaultApi extends runtime.BaseAPI {
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*/
|
|
37
|
-
async publicAdsControllerAdwordsConversionExportRaw(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
38
|
-
if (requestParameters['program'] == null) {
|
|
39
|
-
throw new runtime.RequiredError(
|
|
40
|
-
'program',
|
|
41
|
-
'Required parameter "program" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (requestParameters['hours'] == null) {
|
|
46
|
-
throw new runtime.RequiredError(
|
|
47
|
-
'hours',
|
|
48
|
-
'Required parameter "hours" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (requestParameters['timezone'] == null) {
|
|
53
|
-
throw new runtime.RequiredError(
|
|
54
|
-
'timezone',
|
|
55
|
-
'Required parameter "timezone" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (requestParameters['conversion'] == null) {
|
|
60
|
-
throw new runtime.RequiredError(
|
|
61
|
-
'conversion',
|
|
62
|
-
'Required parameter "conversion" was null or undefined when calling publicAdsControllerAdwordsConversionExport().'
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const queryParameters: any = {};
|
|
67
|
-
|
|
68
|
-
if (requestParameters['timezone'] != null) {
|
|
69
|
-
queryParameters['timezone'] = requestParameters['timezone'];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (requestParameters['conversion'] != null) {
|
|
73
|
-
queryParameters['conversion'] = requestParameters['conversion'];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
77
|
-
|
|
78
|
-
const response = await this.request({
|
|
79
|
-
path: `/ads/{program}/{hours}`.replace(`{${"program"}}`, encodeURIComponent(String(requestParameters['program']))).replace(`{${"hours"}}`, encodeURIComponent(String(requestParameters['hours']))),
|
|
80
|
-
method: 'GET',
|
|
81
|
-
headers: headerParameters,
|
|
82
|
-
query: queryParameters,
|
|
83
|
-
}, initOverrides);
|
|
84
|
-
|
|
85
|
-
return new runtime.VoidApiResponse(response);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
*/
|
|
90
|
-
async publicAdsControllerAdwordsConversionExport(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
91
|
-
await this.publicAdsControllerAdwordsConversionExportRaw(requestParameters, initOverrides);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Handles incoming webhook events from SumSub.
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
async publicSumsubControllerHandleWebhookRaw(requestParameters: DefaultApiPublicSumsubControllerHandleWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
99
|
-
if (requestParameters['xPayloadDigest'] == null) {
|
|
100
|
-
throw new runtime.RequiredError(
|
|
101
|
-
'xPayloadDigest',
|
|
102
|
-
'Required parameter "xPayloadDigest" was null or undefined when calling publicSumsubControllerHandleWebhook().'
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (requestParameters['xPayloadDigestAlg'] == null) {
|
|
107
|
-
throw new runtime.RequiredError(
|
|
108
|
-
'xPayloadDigestAlg',
|
|
109
|
-
'Required parameter "xPayloadDigestAlg" was null or undefined when calling publicSumsubControllerHandleWebhook().'
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const queryParameters: any = {};
|
|
114
|
-
|
|
115
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
116
|
-
|
|
117
|
-
if (requestParameters['xPayloadDigest'] != null) {
|
|
118
|
-
headerParameters['x-payload-digest'] = String(requestParameters['xPayloadDigest']);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (requestParameters['xPayloadDigestAlg'] != null) {
|
|
122
|
-
headerParameters['x-payload-digest-alg'] = String(requestParameters['xPayloadDigestAlg']);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const response = await this.request({
|
|
126
|
-
path: `/sumsub/webhook`,
|
|
127
|
-
method: 'POST',
|
|
128
|
-
headers: headerParameters,
|
|
129
|
-
query: queryParameters,
|
|
130
|
-
}, initOverrides);
|
|
131
|
-
|
|
132
|
-
return new runtime.VoidApiResponse(response);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Handles incoming webhook events from SumSub.
|
|
137
|
-
*
|
|
138
|
-
*/
|
|
139
|
-
async publicSumsubControllerHandleWebhook(requestParameters: DefaultApiPublicSumsubControllerHandleWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
140
|
-
await this.publicSumsubControllerHandleWebhookRaw(requestParameters, initOverrides);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
}
|