@randock/nameshift-api-client 0.0.19 → 0.0.20

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.
@@ -6,6 +6,7 @@ package.json
6
6
  src/apis/AccountsApi.ts
7
7
  src/apis/AuthApi.ts
8
8
  src/apis/DomainsApi.ts
9
+ src/apis/DomainsPublicApi.ts
9
10
  src/apis/LeadsApi.ts
10
11
  src/apis/LeadsPublicApi.ts
11
12
  src/apis/index.ts
@@ -21,6 +22,8 @@ src/models/CreateLeadInput.ts
21
22
  src/models/CreateLeadMessageInput.ts
22
23
  src/models/DeleteDomainsInput.ts
23
24
  src/models/DomainDto.ts
25
+ src/models/DomainSalesInformationDto.ts
26
+ src/models/DomainSellerDto.ts
24
27
  src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
25
28
  src/models/IntersectionDomainDtoWithAccountDto.ts
26
29
  src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
@@ -44,6 +47,7 @@ src/models/ObjectId.ts
44
47
  src/models/PaginateResponse.ts
45
48
  src/models/PaginateResponseLinks.ts
46
49
  src/models/PaginateResponseMeta.ts
50
+ src/models/PublicDomainControllerGetDomainSalesInformation404Response.ts
47
51
  src/models/PutLeadInput.ts
48
52
  src/models/TokenDto.ts
49
53
  src/models/UpdateDomainInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.19
1
+ ## @randock/nameshift-api-client@0.0.20
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.19 --save
39
+ npm install @randock/nameshift-api-client@0.0.20 --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
- 6eb71e784f09d3e58b0fb8b83647509ffb52595b2d9bee27998eaa53fee1b0e4252ab5457d15cb2cdaacbacd2dc2f693
47
+ 439293847a3ccb61b70b7f5ad16109f67e4171069a7192bb5cc5bef5480a6c14d522f4ebbdfeaa8ae63631f06cdc0b19
@@ -0,0 +1,27 @@
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 { DomainSalesInformationDto } from '../models/index';
14
+ export interface DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest {
15
+ domainName: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class DomainsPublicApi extends runtime.BaseAPI {
21
+ /**
22
+ */
23
+ publicDomainControllerGetDomainSalesInformationRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainSalesInformationDto>>;
24
+ /**
25
+ */
26
+ publicDomainControllerGetDomainSalesInformation(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto>;
27
+ }
@@ -0,0 +1,122 @@
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;
41
+ return g = { next: verb(0), "throw": verb(1), "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.DomainsPublicApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var DomainsPublicApi = /** @class */ (function (_super) {
74
+ __extends(DomainsPublicApi, _super);
75
+ function DomainsPublicApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ */
80
+ DomainsPublicApi.prototype.publicDomainControllerGetDomainSalesInformationRaw = function (requestParameters, initOverrides) {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ var queryParameters, headerParameters, response;
83
+ return __generator(this, function (_a) {
84
+ switch (_a.label) {
85
+ case 0:
86
+ if (requestParameters['domainName'] == null) {
87
+ throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling publicDomainControllerGetDomainSalesInformation().');
88
+ }
89
+ queryParameters = {};
90
+ headerParameters = {};
91
+ return [4 /*yield*/, this.request({
92
+ path: "/domains/by-name/{domainName}/sales-information".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
93
+ method: 'GET',
94
+ headers: headerParameters,
95
+ query: queryParameters,
96
+ }, initOverrides)];
97
+ case 1:
98
+ response = _a.sent();
99
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainSalesInformationDtoFromJSON)(jsonValue); })];
100
+ }
101
+ });
102
+ });
103
+ };
104
+ /**
105
+ */
106
+ DomainsPublicApi.prototype.publicDomainControllerGetDomainSalesInformation = function (requestParameters, initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function () {
108
+ var response;
109
+ return __generator(this, function (_a) {
110
+ switch (_a.label) {
111
+ case 0: return [4 /*yield*/, this.publicDomainControllerGetDomainSalesInformationRaw(requestParameters, initOverrides)];
112
+ case 1:
113
+ response = _a.sent();
114
+ return [4 /*yield*/, response.value()];
115
+ case 2: return [2 /*return*/, _a.sent()];
116
+ }
117
+ });
118
+ });
119
+ };
120
+ return DomainsPublicApi;
121
+ }(runtime.BaseAPI));
122
+ exports.DomainsPublicApi = DomainsPublicApi;
@@ -1,5 +1,6 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AuthApi';
3
3
  export * from './DomainsApi';
4
+ export * from './DomainsPublicApi';
4
5
  export * from './LeadsApi';
5
6
  export * from './LeadsPublicApi';
@@ -19,5 +19,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AccountsApi"), exports);
20
20
  __exportStar(require("./AuthApi"), exports);
21
21
  __exportStar(require("./DomainsApi"), exports);
22
+ __exportStar(require("./DomainsPublicApi"), exports);
22
23
  __exportStar(require("./LeadsApi"), exports);
23
24
  __exportStar(require("./LeadsPublicApi"), exports);
@@ -0,0 +1,51 @@
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 { DomainSellerDto } from './DomainSellerDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface DomainSalesInformationDto
18
+ */
19
+ export interface DomainSalesInformationDto {
20
+ /**
21
+ * The domain name (example.com)
22
+ * @type {string}
23
+ * @memberof DomainSalesInformationDto
24
+ */
25
+ domain: string;
26
+ /**
27
+ *
28
+ * @type {MoneyDto}
29
+ * @memberof DomainSalesInformationDto
30
+ */
31
+ buyNowPrice: MoneyDto | null;
32
+ /**
33
+ *
34
+ * @type {MoneyDto}
35
+ * @memberof DomainSalesInformationDto
36
+ */
37
+ minOfferPrice: MoneyDto | null;
38
+ /**
39
+ * The domain seller information
40
+ * @type {DomainSellerDto}
41
+ * @memberof DomainSalesInformationDto
42
+ */
43
+ seller: DomainSellerDto;
44
+ }
45
+ /**
46
+ * Check if a given object implements the DomainSalesInformationDto interface.
47
+ */
48
+ export declare function instanceOfDomainSalesInformationDto(value: object): boolean;
49
+ export declare function DomainSalesInformationDtoFromJSON(json: any): DomainSalesInformationDto;
50
+ export declare function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationDto;
51
+ export declare function DomainSalesInformationDtoToJSON(value?: DomainSalesInformationDto | null): any;
@@ -0,0 +1,61 @@
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.DomainSalesInformationDtoToJSON = exports.DomainSalesInformationDtoFromJSONTyped = exports.DomainSalesInformationDtoFromJSON = exports.instanceOfDomainSalesInformationDto = void 0;
17
+ var DomainSellerDto_1 = require("./DomainSellerDto");
18
+ var MoneyDto_1 = require("./MoneyDto");
19
+ /**
20
+ * Check if a given object implements the DomainSalesInformationDto interface.
21
+ */
22
+ function instanceOfDomainSalesInformationDto(value) {
23
+ if (!('domain' in value))
24
+ return false;
25
+ if (!('buyNowPrice' in value))
26
+ return false;
27
+ if (!('minOfferPrice' in value))
28
+ return false;
29
+ if (!('seller' in value))
30
+ return false;
31
+ return true;
32
+ }
33
+ exports.instanceOfDomainSalesInformationDto = instanceOfDomainSalesInformationDto;
34
+ function DomainSalesInformationDtoFromJSON(json) {
35
+ return DomainSalesInformationDtoFromJSONTyped(json, false);
36
+ }
37
+ exports.DomainSalesInformationDtoFromJSON = DomainSalesInformationDtoFromJSON;
38
+ function DomainSalesInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'domain': json['domain'],
44
+ 'buyNowPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNowPrice']),
45
+ 'minOfferPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOfferPrice']),
46
+ 'seller': (0, DomainSellerDto_1.DomainSellerDtoFromJSON)(json['seller']),
47
+ };
48
+ }
49
+ exports.DomainSalesInformationDtoFromJSONTyped = DomainSalesInformationDtoFromJSONTyped;
50
+ function DomainSalesInformationDtoToJSON(value) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'domain': value['domain'],
56
+ 'buyNowPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNowPrice']),
57
+ 'minOfferPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOfferPrice']),
58
+ 'seller': (0, DomainSellerDto_1.DomainSellerDtoToJSON)(value['seller']),
59
+ };
60
+ }
61
+ exports.DomainSalesInformationDtoToJSON = DomainSalesInformationDtoToJSON;
@@ -0,0 +1,37 @@
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 DomainSellerDto
16
+ */
17
+ export interface DomainSellerDto {
18
+ /**
19
+ * The domain seller account verified status
20
+ * @type {boolean}
21
+ * @memberof DomainSellerDto
22
+ */
23
+ verified: boolean;
24
+ /**
25
+ * The domain seller account creation date
26
+ * @type {Date}
27
+ * @memberof DomainSellerDto
28
+ */
29
+ createdAt: Date;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DomainSellerDto interface.
33
+ */
34
+ export declare function instanceOfDomainSellerDto(value: object): boolean;
35
+ export declare function DomainSellerDtoFromJSON(json: any): DomainSellerDto;
36
+ export declare function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSellerDto;
37
+ export declare function DomainSellerDtoToJSON(value?: DomainSellerDto | null): any;
@@ -0,0 +1,51 @@
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.DomainSellerDtoToJSON = exports.DomainSellerDtoFromJSONTyped = exports.DomainSellerDtoFromJSON = exports.instanceOfDomainSellerDto = void 0;
17
+ /**
18
+ * Check if a given object implements the DomainSellerDto interface.
19
+ */
20
+ function instanceOfDomainSellerDto(value) {
21
+ if (!('verified' in value))
22
+ return false;
23
+ if (!('createdAt' in value))
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfDomainSellerDto = instanceOfDomainSellerDto;
28
+ function DomainSellerDtoFromJSON(json) {
29
+ return DomainSellerDtoFromJSONTyped(json, false);
30
+ }
31
+ exports.DomainSellerDtoFromJSON = DomainSellerDtoFromJSON;
32
+ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'verified': json['verified'],
38
+ 'createdAt': (new Date(json['createdAt'])),
39
+ };
40
+ }
41
+ exports.DomainSellerDtoFromJSONTyped = DomainSellerDtoFromJSONTyped;
42
+ function DomainSellerDtoToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'verified': value['verified'],
48
+ 'createdAt': ((value['createdAt']).toISOString()),
49
+ };
50
+ }
51
+ exports.DomainSellerDtoToJSON = DomainSellerDtoToJSON;
@@ -0,0 +1,43 @@
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
+ * Thrown if domain is not found.
14
+ * @export
15
+ * @interface PublicDomainControllerGetDomainSalesInformation404Response
16
+ */
17
+ export interface PublicDomainControllerGetDomainSalesInformation404Response {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PublicDomainControllerGetDomainSalesInformation404Response
22
+ */
23
+ statusCode: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PublicDomainControllerGetDomainSalesInformation404Response
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PublicDomainControllerGetDomainSalesInformation404Response
34
+ */
35
+ error?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PublicDomainControllerGetDomainSalesInformation404Response interface.
39
+ */
40
+ export declare function instanceOfPublicDomainControllerGetDomainSalesInformation404Response(value: object): boolean;
41
+ export declare function PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON(json: any): PublicDomainControllerGetDomainSalesInformation404Response;
42
+ export declare function PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainControllerGetDomainSalesInformation404Response;
43
+ export declare function PublicDomainControllerGetDomainSalesInformation404ResponseToJSON(value?: PublicDomainControllerGetDomainSalesInformation404Response | null): any;
@@ -0,0 +1,53 @@
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.PublicDomainControllerGetDomainSalesInformation404ResponseToJSON = exports.PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped = exports.PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON = exports.instanceOfPublicDomainControllerGetDomainSalesInformation404Response = void 0;
17
+ /**
18
+ * Check if a given object implements the PublicDomainControllerGetDomainSalesInformation404Response interface.
19
+ */
20
+ function instanceOfPublicDomainControllerGetDomainSalesInformation404Response(value) {
21
+ if (!('statusCode' in value))
22
+ return false;
23
+ if (!('message' in value))
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfPublicDomainControllerGetDomainSalesInformation404Response = instanceOfPublicDomainControllerGetDomainSalesInformation404Response;
28
+ function PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON(json) {
29
+ return PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped(json, false);
30
+ }
31
+ exports.PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON = PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON;
32
+ function PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'statusCode': json['statusCode'],
38
+ 'message': json['message'],
39
+ 'error': json['error'] == null ? undefined : json['error'],
40
+ };
41
+ }
42
+ exports.PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped = PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped;
43
+ function PublicDomainControllerGetDomainSalesInformation404ResponseToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'statusCode': value['statusCode'],
49
+ 'message': value['message'],
50
+ 'error': value['error'],
51
+ };
52
+ }
53
+ exports.PublicDomainControllerGetDomainSalesInformation404ResponseToJSON = PublicDomainControllerGetDomainSalesInformation404ResponseToJSON;
@@ -9,6 +9,8 @@ export * from './CreateLeadInput';
9
9
  export * from './CreateLeadMessageInput';
10
10
  export * from './DeleteDomainsInput';
11
11
  export * from './DomainDto';
12
+ export * from './DomainSalesInformationDto';
13
+ export * from './DomainSellerDto';
12
14
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
13
15
  export * from './IntersectionDomainDtoWithAccountDto';
14
16
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
@@ -32,6 +34,7 @@ export * from './ObjectId';
32
34
  export * from './PaginateResponse';
33
35
  export * from './PaginateResponseLinks';
34
36
  export * from './PaginateResponseMeta';
37
+ export * from './PublicDomainControllerGetDomainSalesInformation404Response';
35
38
  export * from './PutLeadInput';
36
39
  export * from './TokenDto';
37
40
  export * from './UpdateDomainInput';
@@ -27,6 +27,8 @@ __exportStar(require("./CreateLeadInput"), exports);
27
27
  __exportStar(require("./CreateLeadMessageInput"), exports);
28
28
  __exportStar(require("./DeleteDomainsInput"), exports);
29
29
  __exportStar(require("./DomainDto"), exports);
30
+ __exportStar(require("./DomainSalesInformationDto"), exports);
31
+ __exportStar(require("./DomainSellerDto"), exports);
30
32
  __exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
31
33
  __exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
32
34
  __exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
@@ -50,6 +52,7 @@ __exportStar(require("./ObjectId"), exports);
50
52
  __exportStar(require("./PaginateResponse"), exports);
51
53
  __exportStar(require("./PaginateResponseLinks"), exports);
52
54
  __exportStar(require("./PaginateResponseMeta"), exports);
55
+ __exportStar(require("./PublicDomainControllerGetDomainSalesInformation404Response"), exports);
53
56
  __exportStar(require("./PutLeadInput"), exports);
54
57
  __exportStar(require("./TokenDto"), exports);
55
58
  __exportStar(require("./UpdateDomainInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,68 @@
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
+ DomainSalesInformationDto,
19
+ PublicDomainControllerGetDomainSalesInformation404Response,
20
+ } from '../models/index';
21
+ import {
22
+ DomainSalesInformationDtoFromJSON,
23
+ DomainSalesInformationDtoToJSON,
24
+ PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON,
25
+ PublicDomainControllerGetDomainSalesInformation404ResponseToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest {
29
+ domainName: string;
30
+ }
31
+
32
+ /**
33
+ *
34
+ */
35
+ export class DomainsPublicApi extends runtime.BaseAPI {
36
+
37
+ /**
38
+ */
39
+ async publicDomainControllerGetDomainSalesInformationRaw(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainSalesInformationDto>> {
40
+ if (requestParameters['domainName'] == null) {
41
+ throw new runtime.RequiredError(
42
+ 'domainName',
43
+ 'Required parameter "domainName" was null or undefined when calling publicDomainControllerGetDomainSalesInformation().'
44
+ );
45
+ }
46
+
47
+ const queryParameters: any = {};
48
+
49
+ const headerParameters: runtime.HTTPHeaders = {};
50
+
51
+ const response = await this.request({
52
+ path: `/domains/by-name/{domainName}/sales-information`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
53
+ method: 'GET',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ }, initOverrides);
57
+
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainSalesInformationDtoFromJSON(jsonValue));
59
+ }
60
+
61
+ /**
62
+ */
63
+ async publicDomainControllerGetDomainSalesInformation(requestParameters: DomainsPublicApiPublicDomainControllerGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto> {
64
+ const response = await this.publicDomainControllerGetDomainSalesInformationRaw(requestParameters, initOverrides);
65
+ return await response.value();
66
+ }
67
+
68
+ }
package/src/apis/index.ts CHANGED
@@ -3,5 +3,6 @@
3
3
  export * from './AccountsApi';
4
4
  export * from './AuthApi';
5
5
  export * from './DomainsApi';
6
+ export * from './DomainsPublicApi';
6
7
  export * from './LeadsApi';
7
8
  export * from './LeadsPublicApi';
@@ -0,0 +1,101 @@
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 { DomainSellerDto } from './DomainSellerDto';
17
+ import {
18
+ DomainSellerDtoFromJSON,
19
+ DomainSellerDtoFromJSONTyped,
20
+ DomainSellerDtoToJSON,
21
+ } from './DomainSellerDto';
22
+ import type { MoneyDto } from './MoneyDto';
23
+ import {
24
+ MoneyDtoFromJSON,
25
+ MoneyDtoFromJSONTyped,
26
+ MoneyDtoToJSON,
27
+ } from './MoneyDto';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface DomainSalesInformationDto
33
+ */
34
+ export interface DomainSalesInformationDto {
35
+ /**
36
+ * The domain name (example.com)
37
+ * @type {string}
38
+ * @memberof DomainSalesInformationDto
39
+ */
40
+ domain: string;
41
+ /**
42
+ *
43
+ * @type {MoneyDto}
44
+ * @memberof DomainSalesInformationDto
45
+ */
46
+ buyNowPrice: MoneyDto | null;
47
+ /**
48
+ *
49
+ * @type {MoneyDto}
50
+ * @memberof DomainSalesInformationDto
51
+ */
52
+ minOfferPrice: MoneyDto | null;
53
+ /**
54
+ * The domain seller information
55
+ * @type {DomainSellerDto}
56
+ * @memberof DomainSalesInformationDto
57
+ */
58
+ seller: DomainSellerDto;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the DomainSalesInformationDto interface.
63
+ */
64
+ export function instanceOfDomainSalesInformationDto(value: object): boolean {
65
+ if (!('domain' in value)) return false;
66
+ if (!('buyNowPrice' in value)) return false;
67
+ if (!('minOfferPrice' in value)) return false;
68
+ if (!('seller' in value)) return false;
69
+ return true;
70
+ }
71
+
72
+ export function DomainSalesInformationDtoFromJSON(json: any): DomainSalesInformationDto {
73
+ return DomainSalesInformationDtoFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationDto {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'domain': json['domain'],
83
+ 'buyNowPrice': MoneyDtoFromJSON(json['buyNowPrice']),
84
+ 'minOfferPrice': MoneyDtoFromJSON(json['minOfferPrice']),
85
+ 'seller': DomainSellerDtoFromJSON(json['seller']),
86
+ };
87
+ }
88
+
89
+ export function DomainSalesInformationDtoToJSON(value?: DomainSalesInformationDto | null): any {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+ return {
94
+
95
+ 'domain': value['domain'],
96
+ 'buyNowPrice': MoneyDtoToJSON(value['buyNowPrice']),
97
+ 'minOfferPrice': MoneyDtoToJSON(value['minOfferPrice']),
98
+ 'seller': DomainSellerDtoToJSON(value['seller']),
99
+ };
100
+ }
101
+
@@ -0,0 +1,70 @@
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 DomainSellerDto
20
+ */
21
+ export interface DomainSellerDto {
22
+ /**
23
+ * The domain seller account verified status
24
+ * @type {boolean}
25
+ * @memberof DomainSellerDto
26
+ */
27
+ verified: boolean;
28
+ /**
29
+ * The domain seller account creation date
30
+ * @type {Date}
31
+ * @memberof DomainSellerDto
32
+ */
33
+ createdAt: Date;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DomainSellerDto interface.
38
+ */
39
+ export function instanceOfDomainSellerDto(value: object): boolean {
40
+ if (!('verified' in value)) return false;
41
+ if (!('createdAt' in value)) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DomainSellerDtoFromJSON(json: any): DomainSellerDto {
46
+ return DomainSellerDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSellerDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'verified': json['verified'],
56
+ 'createdAt': (new Date(json['createdAt'])),
57
+ };
58
+ }
59
+
60
+ export function DomainSellerDtoToJSON(value?: DomainSellerDto | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'verified': value['verified'],
67
+ 'createdAt': ((value['createdAt']).toISOString()),
68
+ };
69
+ }
70
+
@@ -0,0 +1,78 @@
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
+ * Thrown if domain is not found.
18
+ * @export
19
+ * @interface PublicDomainControllerGetDomainSalesInformation404Response
20
+ */
21
+ export interface PublicDomainControllerGetDomainSalesInformation404Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof PublicDomainControllerGetDomainSalesInformation404Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PublicDomainControllerGetDomainSalesInformation404Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PublicDomainControllerGetDomainSalesInformation404Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PublicDomainControllerGetDomainSalesInformation404Response interface.
44
+ */
45
+ export function instanceOfPublicDomainControllerGetDomainSalesInformation404Response(value: object): boolean {
46
+ if (!('statusCode' in value)) return false;
47
+ if (!('message' in value)) return false;
48
+ return true;
49
+ }
50
+
51
+ export function PublicDomainControllerGetDomainSalesInformation404ResponseFromJSON(json: any): PublicDomainControllerGetDomainSalesInformation404Response {
52
+ return PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PublicDomainControllerGetDomainSalesInformation404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainControllerGetDomainSalesInformation404Response {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'statusCode': json['statusCode'],
62
+ 'message': json['message'],
63
+ 'error': json['error'] == null ? undefined : json['error'],
64
+ };
65
+ }
66
+
67
+ export function PublicDomainControllerGetDomainSalesInformation404ResponseToJSON(value?: PublicDomainControllerGetDomainSalesInformation404Response | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'statusCode': value['statusCode'],
74
+ 'message': value['message'],
75
+ 'error': value['error'],
76
+ };
77
+ }
78
+
@@ -11,6 +11,8 @@ export * from './CreateLeadInput';
11
11
  export * from './CreateLeadMessageInput';
12
12
  export * from './DeleteDomainsInput';
13
13
  export * from './DomainDto';
14
+ export * from './DomainSalesInformationDto';
15
+ export * from './DomainSellerDto';
14
16
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
15
17
  export * from './IntersectionDomainDtoWithAccountDto';
16
18
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
@@ -34,6 +36,7 @@ export * from './ObjectId';
34
36
  export * from './PaginateResponse';
35
37
  export * from './PaginateResponseLinks';
36
38
  export * from './PaginateResponseMeta';
39
+ export * from './PublicDomainControllerGetDomainSalesInformation404Response';
37
40
  export * from './PutLeadInput';
38
41
  export * from './TokenDto';
39
42
  export * from './UpdateDomainInput';