@randock/nameshift-api-client 0.0.543 → 0.0.545

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.
@@ -17,6 +17,7 @@ src/apis/BuyersApi.ts
17
17
  src/apis/BuyersPublicApi.ts
18
18
  src/apis/ChallengesApi.ts
19
19
  src/apis/CustomerSuccessApi.ts
20
+ src/apis/DomainAppraisalCertificatesApi.ts
20
21
  src/apis/DomainAppraisalRequestsApi.ts
21
22
  src/apis/DomainAppraisalRequestsPublicApi.ts
22
23
  src/apis/DomainTransfersApi.ts
@@ -283,6 +284,7 @@ src/models/CustomerSuccessListAccountPortfolioSizeDto.ts
283
284
  src/models/CustomerSuccessListAccountUserDto.ts
284
285
  src/models/DeclineBrokeredLeadInput.ts
285
286
  src/models/DeleteDomainsInput.ts
287
+ src/models/DomainAppraisalCertificateDto.ts
286
288
  src/models/DomainAppraisalRequestListItemDto.ts
287
289
  src/models/DomainAppraisalRequestStatus.ts
288
290
  src/models/DomainAppraisalRequester.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.543
1
+ ## @randock/nameshift-api-client@0.0.545
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.543 --save
39
+ npm install @randock/nameshift-api-client@0.0.545 --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
- be5f54a682bca64691d7457fd1e1bdbb6ba9b410780fc2f4f405f3e4eb0a1a1bdbd9eda758137dbd6b4ec2b580f378bf
47
+ c169dba3548202ce8faad8439344ea72b9dba53c2a0920b024cc321d4674196339e339072d88710a4bb9f5c6066df970
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { DomainAppraisalCertificateDto } from '../models/index';
14
+ export interface DomainAppraisalCertificatesApiGetDomainAppraisalCertificateRequest {
15
+ domainName: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class DomainAppraisalCertificatesApi extends runtime.BaseAPI {
21
+ /**
22
+ * Returns the seller\'s latest appraisal of a domain, as its public certificate.
23
+ * Get the appraisal certificate of a domain
24
+ */
25
+ getDomainAppraisalCertificateRaw(requestParameters: DomainAppraisalCertificatesApiGetDomainAppraisalCertificateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainAppraisalCertificateDto>>;
26
+ /**
27
+ * Returns the seller\'s latest appraisal of a domain, as its public certificate.
28
+ * Get the appraisal certificate of a domain
29
+ */
30
+ getDomainAppraisalCertificate(requestParameters: DomainAppraisalCertificatesApiGetDomainAppraisalCertificateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainAppraisalCertificateDto>;
31
+ }
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.DomainAppraisalCertificatesApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var DomainAppraisalCertificatesApi = /** @class */ (function (_super) {
74
+ __extends(DomainAppraisalCertificatesApi, _super);
75
+ function DomainAppraisalCertificatesApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Returns the seller\'s latest appraisal of a domain, as its public certificate.
80
+ * Get the appraisal certificate of a domain
81
+ */
82
+ DomainAppraisalCertificatesApi.prototype.getDomainAppraisalCertificateRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters['domainName'] == null) {
89
+ throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainAppraisalCertificate().');
90
+ }
91
+ queryParameters = {};
92
+ headerParameters = {};
93
+ return [4 /*yield*/, this.request({
94
+ path: "/domains/by-name/{domainName}/appraisal-certificate".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
95
+ method: 'GET',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ }, initOverrides)];
99
+ case 1:
100
+ response = _a.sent();
101
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainAppraisalCertificateDtoFromJSON)(jsonValue); })];
102
+ }
103
+ });
104
+ });
105
+ };
106
+ /**
107
+ * Returns the seller\'s latest appraisal of a domain, as its public certificate.
108
+ * Get the appraisal certificate of a domain
109
+ */
110
+ DomainAppraisalCertificatesApi.prototype.getDomainAppraisalCertificate = function (requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function () {
112
+ var response;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.getDomainAppraisalCertificateRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ return DomainAppraisalCertificatesApi;
125
+ }(runtime.BaseAPI));
126
+ exports.DomainAppraisalCertificatesApi = DomainAppraisalCertificatesApi;
@@ -12,6 +12,7 @@ export * from './BuyersApi';
12
12
  export * from './BuyersPublicApi';
13
13
  export * from './ChallengesApi';
14
14
  export * from './CustomerSuccessApi';
15
+ export * from './DomainAppraisalCertificatesApi';
15
16
  export * from './DomainAppraisalRequestsApi';
16
17
  export * from './DomainAppraisalRequestsPublicApi';
17
18
  export * from './DomainTransfersApi';
@@ -30,6 +30,7 @@ __exportStar(require("./BuyersApi"), exports);
30
30
  __exportStar(require("./BuyersPublicApi"), exports);
31
31
  __exportStar(require("./ChallengesApi"), exports);
32
32
  __exportStar(require("./CustomerSuccessApi"), exports);
33
+ __exportStar(require("./DomainAppraisalCertificatesApi"), exports);
33
34
  __exportStar(require("./DomainAppraisalRequestsApi"), exports);
34
35
  __exportStar(require("./DomainAppraisalRequestsPublicApi"), exports);
35
36
  __exportStar(require("./DomainTransfersApi"), exports);
@@ -71,6 +71,18 @@ export interface AdminDomainAppraisalRequestListItemDto {
71
71
  * @memberof AdminDomainAppraisalRequestListItemDto
72
72
  */
73
73
  createdAt: Date;
74
+ /**
75
+ * The issued PDF of its certificate, to open in the browser. Null until it is appraised and linked to its appraisal.
76
+ * @type {string}
77
+ * @memberof AdminDomainAppraisalRequestListItemDto
78
+ */
79
+ certificateViewUrl: string | null;
80
+ /**
81
+ * The same PDF, to download. Null until it is appraised and linked to its appraisal.
82
+ * @type {string}
83
+ * @memberof AdminDomainAppraisalRequestListItemDto
84
+ */
85
+ certificateDownloadUrl: string | null;
74
86
  /**
75
87
  * Whether its invoice has been paid.
76
88
  * @type {boolean}
@@ -42,6 +42,10 @@ function instanceOfAdminDomainAppraisalRequestListItemDto(value) {
42
42
  return false;
43
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
44
44
  return false;
45
+ if (!('certificateViewUrl' in value) || value['certificateViewUrl'] === undefined)
46
+ return false;
47
+ if (!('certificateDownloadUrl' in value) || value['certificateDownloadUrl'] === undefined)
48
+ return false;
45
49
  if (!('paid' in value) || value['paid'] === undefined)
46
50
  return false;
47
51
  if (!('lastRequestAttemptAt' in value) || value['lastRequestAttemptAt'] === undefined)
@@ -79,6 +83,8 @@ function AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json, ignoreDiscrim
79
83
  'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
80
84
  'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
81
85
  'createdAt': (new Date(json['createdAt'])),
86
+ 'certificateViewUrl': json['certificateViewUrl'],
87
+ 'certificateDownloadUrl': json['certificateDownloadUrl'],
82
88
  'paid': json['paid'],
83
89
  'lastRequestAttemptAt': (json['lastRequestAttemptAt'] == null ? null : new Date(json['lastRequestAttemptAt'])),
84
90
  'lastRequestError': json['lastRequestError'],
@@ -108,6 +114,8 @@ function AdminDomainAppraisalRequestListItemDtoToJSONTyped(value, ignoreDiscrimi
108
114
  'appraisedAt': (value['appraisedAt'] == null ? null : value['appraisedAt'].toISOString()),
109
115
  'requestedAt': (value['requestedAt'] == null ? null : value['requestedAt'].toISOString()),
110
116
  'createdAt': ((value['createdAt']).toISOString()),
117
+ 'certificateViewUrl': value['certificateViewUrl'],
118
+ 'certificateDownloadUrl': value['certificateDownloadUrl'],
111
119
  'paid': value['paid'],
112
120
  'lastRequestAttemptAt': (value['lastRequestAttemptAt'] == null ? null : value['lastRequestAttemptAt'].toISOString()),
113
121
  'lastRequestError': value['lastRequestError'],
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DomainAppraisalCertificateDto
17
+ */
18
+ export interface DomainAppraisalCertificateDto {
19
+ /**
20
+ * The domain name, in ASCII.
21
+ * @type {string}
22
+ * @memberof DomainAppraisalCertificateDto
23
+ */
24
+ domainName: string;
25
+ /**
26
+ * The domain name to show, in Unicode.
27
+ * @type {string}
28
+ * @memberof DomainAppraisalCertificateDto
29
+ */
30
+ domainDisplayName: string;
31
+ /**
32
+ * When the domain was appraised.
33
+ * @type {Date}
34
+ * @memberof DomainAppraisalCertificateDto
35
+ */
36
+ appraisedAt: Date;
37
+ /**
38
+ * What the domain was appraised at, in USD.
39
+ * @type {MoneyDto}
40
+ * @memberof DomainAppraisalCertificateDto
41
+ */
42
+ appraisedAmount: MoneyDto;
43
+ /**
44
+ * Whether a buyer can request a new appraisal: the appraisal is more than a year old.
45
+ * @type {boolean}
46
+ * @memberof DomainAppraisalCertificateDto
47
+ */
48
+ canRequestNewAppraisal: boolean;
49
+ /**
50
+ * The appraisal in the domain appraisals API, whose certificate document and PDF it serves. Null while unknown.
51
+ * @type {string}
52
+ * @memberof DomainAppraisalCertificateDto
53
+ */
54
+ domainAppraisalId: string | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the DomainAppraisalCertificateDto interface.
58
+ */
59
+ export declare function instanceOfDomainAppraisalCertificateDto(value: object): value is DomainAppraisalCertificateDto;
60
+ export declare function DomainAppraisalCertificateDtoFromJSON(json: any): DomainAppraisalCertificateDto;
61
+ export declare function DomainAppraisalCertificateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainAppraisalCertificateDto;
62
+ export declare function DomainAppraisalCertificateDtoToJSON(json: any): DomainAppraisalCertificateDto;
63
+ export declare function DomainAppraisalCertificateDtoToJSONTyped(value?: DomainAppraisalCertificateDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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.instanceOfDomainAppraisalCertificateDto = instanceOfDomainAppraisalCertificateDto;
17
+ exports.DomainAppraisalCertificateDtoFromJSON = DomainAppraisalCertificateDtoFromJSON;
18
+ exports.DomainAppraisalCertificateDtoFromJSONTyped = DomainAppraisalCertificateDtoFromJSONTyped;
19
+ exports.DomainAppraisalCertificateDtoToJSON = DomainAppraisalCertificateDtoToJSON;
20
+ exports.DomainAppraisalCertificateDtoToJSONTyped = DomainAppraisalCertificateDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the DomainAppraisalCertificateDto interface.
24
+ */
25
+ function instanceOfDomainAppraisalCertificateDto(value) {
26
+ if (!('domainName' in value) || value['domainName'] === undefined)
27
+ return false;
28
+ if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined)
29
+ return false;
30
+ if (!('appraisedAt' in value) || value['appraisedAt'] === undefined)
31
+ return false;
32
+ if (!('appraisedAmount' in value) || value['appraisedAmount'] === undefined)
33
+ return false;
34
+ if (!('canRequestNewAppraisal' in value) || value['canRequestNewAppraisal'] === undefined)
35
+ return false;
36
+ if (!('domainAppraisalId' in value) || value['domainAppraisalId'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function DomainAppraisalCertificateDtoFromJSON(json) {
41
+ return DomainAppraisalCertificateDtoFromJSONTyped(json, false);
42
+ }
43
+ function DomainAppraisalCertificateDtoFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'domainName': json['domainName'],
49
+ 'domainDisplayName': json['domainDisplayName'],
50
+ 'appraisedAt': (new Date(json['appraisedAt'])),
51
+ 'appraisedAmount': (0, MoneyDto_1.MoneyDtoFromJSON)(json['appraisedAmount']),
52
+ 'canRequestNewAppraisal': json['canRequestNewAppraisal'],
53
+ 'domainAppraisalId': json['domainAppraisalId'],
54
+ };
55
+ }
56
+ function DomainAppraisalCertificateDtoToJSON(json) {
57
+ return DomainAppraisalCertificateDtoToJSONTyped(json, false);
58
+ }
59
+ function DomainAppraisalCertificateDtoToJSONTyped(value, ignoreDiscriminator) {
60
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'domainName': value['domainName'],
66
+ 'domainDisplayName': value['domainDisplayName'],
67
+ 'appraisedAt': ((value['appraisedAt']).toISOString()),
68
+ 'appraisedAmount': (0, MoneyDto_1.MoneyDtoToJSON)(value['appraisedAmount']),
69
+ 'canRequestNewAppraisal': value['canRequestNewAppraisal'],
70
+ 'domainAppraisalId': value['domainAppraisalId'],
71
+ };
72
+ }
@@ -71,6 +71,18 @@ export interface DomainAppraisalRequestListItemDto {
71
71
  * @memberof DomainAppraisalRequestListItemDto
72
72
  */
73
73
  createdAt: Date;
74
+ /**
75
+ * The issued PDF of its certificate, to open in the browser. Null until it is appraised and linked to its appraisal.
76
+ * @type {string}
77
+ * @memberof DomainAppraisalRequestListItemDto
78
+ */
79
+ certificateViewUrl: string | null;
80
+ /**
81
+ * The same PDF, to download. Null until it is appraised and linked to its appraisal.
82
+ * @type {string}
83
+ * @memberof DomainAppraisalRequestListItemDto
84
+ */
85
+ certificateDownloadUrl: string | null;
74
86
  }
75
87
  /**
76
88
  * Check if a given object implements the DomainAppraisalRequestListItemDto interface.
@@ -42,6 +42,10 @@ function instanceOfDomainAppraisalRequestListItemDto(value) {
42
42
  return false;
43
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
44
44
  return false;
45
+ if (!('certificateViewUrl' in value) || value['certificateViewUrl'] === undefined)
46
+ return false;
47
+ if (!('certificateDownloadUrl' in value) || value['certificateDownloadUrl'] === undefined)
48
+ return false;
45
49
  return true;
46
50
  }
47
51
  function DomainAppraisalRequestListItemDtoFromJSON(json) {
@@ -61,6 +65,8 @@ function DomainAppraisalRequestListItemDtoFromJSONTyped(json, ignoreDiscriminato
61
65
  'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
62
66
  'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
63
67
  'createdAt': (new Date(json['createdAt'])),
68
+ 'certificateViewUrl': json['certificateViewUrl'],
69
+ 'certificateDownloadUrl': json['certificateDownloadUrl'],
64
70
  };
65
71
  }
66
72
  function DomainAppraisalRequestListItemDtoToJSON(json) {
@@ -81,5 +87,7 @@ function DomainAppraisalRequestListItemDtoToJSONTyped(value, ignoreDiscriminator
81
87
  'appraisedAt': (value['appraisedAt'] == null ? null : value['appraisedAt'].toISOString()),
82
88
  'requestedAt': (value['requestedAt'] == null ? null : value['requestedAt'].toISOString()),
83
89
  'createdAt': ((value['createdAt']).toISOString()),
90
+ 'certificateViewUrl': value['certificateViewUrl'],
91
+ 'certificateDownloadUrl': value['certificateDownloadUrl'],
84
92
  };
85
93
  }
@@ -126,7 +126,7 @@ export interface DomainSalesInformationDto {
126
126
  */
127
127
  leadBuyerSettings: LeadBuyerConfigDto | null;
128
128
  /**
129
- * Whether anyone can request a domain appraisal of this domain from its landing page.
129
+ * Whether a buyer can request a domain appraisal of this domain. Not while its fair price seal is backed by an appraisal of a year or less. A landing page with a seal does not offer it: buyers ask from the certificate.
130
130
  * @type {boolean}
131
131
  * @memberof DomainSalesInformationDto
132
132
  */
@@ -27,6 +27,12 @@ export interface JobFailureDto {
27
27
  * @memberof JobFailureDto
28
28
  */
29
29
  reason: string;
30
+ /**
31
+ * The error code of an import row; null for any other failure.
32
+ * @type {string}
33
+ * @memberof JobFailureDto
34
+ */
35
+ code: string | null;
30
36
  }
31
37
  /**
32
38
  * Check if a given object implements the JobFailureDto interface.
@@ -26,6 +26,8 @@ function instanceOfJobFailureDto(value) {
26
26
  return false;
27
27
  if (!('reason' in value) || value['reason'] === undefined)
28
28
  return false;
29
+ if (!('code' in value) || value['code'] === undefined)
30
+ return false;
29
31
  return true;
30
32
  }
31
33
  function JobFailureDtoFromJSON(json) {
@@ -38,6 +40,7 @@ function JobFailureDtoFromJSONTyped(json, ignoreDiscriminator) {
38
40
  return {
39
41
  'subject': json['subject'],
40
42
  'reason': json['reason'],
43
+ 'code': json['code'],
41
44
  };
42
45
  }
43
46
  function JobFailureDtoToJSON(json) {
@@ -51,5 +54,6 @@ function JobFailureDtoToJSONTyped(value, ignoreDiscriminator) {
51
54
  return {
52
55
  'subject': value['subject'],
53
56
  'reason': value['reason'],
57
+ 'code': value['code'],
54
58
  };
55
59
  }
@@ -236,6 +236,7 @@ export * from './CustomerSuccessListAccountPortfolioSizeDto';
236
236
  export * from './CustomerSuccessListAccountUserDto';
237
237
  export * from './DeclineBrokeredLeadInput';
238
238
  export * from './DeleteDomainsInput';
239
+ export * from './DomainAppraisalCertificateDto';
239
240
  export * from './DomainAppraisalRequestListItemDto';
240
241
  export * from './DomainAppraisalRequestStatus';
241
242
  export * from './DomainAppraisalRequester';
@@ -254,6 +254,7 @@ __exportStar(require("./CustomerSuccessListAccountPortfolioSizeDto"), exports);
254
254
  __exportStar(require("./CustomerSuccessListAccountUserDto"), exports);
255
255
  __exportStar(require("./DeclineBrokeredLeadInput"), exports);
256
256
  __exportStar(require("./DeleteDomainsInput"), exports);
257
+ __exportStar(require("./DomainAppraisalCertificateDto"), exports);
257
258
  __exportStar(require("./DomainAppraisalRequestListItemDto"), exports);
258
259
  __exportStar(require("./DomainAppraisalRequestStatus"), exports);
259
260
  __exportStar(require("./DomainAppraisalRequester"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.543",
3
+ "version": "0.0.545",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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
+ DomainAppraisalCertificateDto,
19
+ } from '../models/index';
20
+ import {
21
+ DomainAppraisalCertificateDtoFromJSON,
22
+ DomainAppraisalCertificateDtoToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface DomainAppraisalCertificatesApiGetDomainAppraisalCertificateRequest {
26
+ domainName: string;
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ export class DomainAppraisalCertificatesApi extends runtime.BaseAPI {
33
+
34
+ /**
35
+ * Returns the seller\'s latest appraisal of a domain, as its public certificate.
36
+ * Get the appraisal certificate of a domain
37
+ */
38
+ async getDomainAppraisalCertificateRaw(requestParameters: DomainAppraisalCertificatesApiGetDomainAppraisalCertificateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainAppraisalCertificateDto>> {
39
+ if (requestParameters['domainName'] == null) {
40
+ throw new runtime.RequiredError(
41
+ 'domainName',
42
+ 'Required parameter "domainName" was null or undefined when calling getDomainAppraisalCertificate().'
43
+ );
44
+ }
45
+
46
+ const queryParameters: any = {};
47
+
48
+ const headerParameters: runtime.HTTPHeaders = {};
49
+
50
+ const response = await this.request({
51
+ path: `/domains/by-name/{domainName}/appraisal-certificate`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
52
+ method: 'GET',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ }, initOverrides);
56
+
57
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainAppraisalCertificateDtoFromJSON(jsonValue));
58
+ }
59
+
60
+ /**
61
+ * Returns the seller\'s latest appraisal of a domain, as its public certificate.
62
+ * Get the appraisal certificate of a domain
63
+ */
64
+ async getDomainAppraisalCertificate(requestParameters: DomainAppraisalCertificatesApiGetDomainAppraisalCertificateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainAppraisalCertificateDto> {
65
+ const response = await this.getDomainAppraisalCertificateRaw(requestParameters, initOverrides);
66
+ return await response.value();
67
+ }
68
+
69
+ }
package/src/apis/index.ts CHANGED
@@ -14,6 +14,7 @@ export * from './BuyersApi';
14
14
  export * from './BuyersPublicApi';
15
15
  export * from './ChallengesApi';
16
16
  export * from './CustomerSuccessApi';
17
+ export * from './DomainAppraisalCertificatesApi';
17
18
  export * from './DomainAppraisalRequestsApi';
18
19
  export * from './DomainAppraisalRequestsPublicApi';
19
20
  export * from './DomainTransfersApi';
@@ -88,6 +88,18 @@ export interface AdminDomainAppraisalRequestListItemDto {
88
88
  * @memberof AdminDomainAppraisalRequestListItemDto
89
89
  */
90
90
  createdAt: Date;
91
+ /**
92
+ * The issued PDF of its certificate, to open in the browser. Null until it is appraised and linked to its appraisal.
93
+ * @type {string}
94
+ * @memberof AdminDomainAppraisalRequestListItemDto
95
+ */
96
+ certificateViewUrl: string | null;
97
+ /**
98
+ * The same PDF, to download. Null until it is appraised and linked to its appraisal.
99
+ * @type {string}
100
+ * @memberof AdminDomainAppraisalRequestListItemDto
101
+ */
102
+ certificateDownloadUrl: string | null;
91
103
  /**
92
104
  * Whether its invoice has been paid.
93
105
  * @type {boolean}
@@ -159,6 +171,8 @@ export function instanceOfAdminDomainAppraisalRequestListItemDto(value: object):
159
171
  if (!('appraisedAt' in value) || value['appraisedAt'] === undefined) return false;
160
172
  if (!('requestedAt' in value) || value['requestedAt'] === undefined) return false;
161
173
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
174
+ if (!('certificateViewUrl' in value) || value['certificateViewUrl'] === undefined) return false;
175
+ if (!('certificateDownloadUrl' in value) || value['certificateDownloadUrl'] === undefined) return false;
162
176
  if (!('paid' in value) || value['paid'] === undefined) return false;
163
177
  if (!('lastRequestAttemptAt' in value) || value['lastRequestAttemptAt'] === undefined) return false;
164
178
  if (!('lastRequestError' in value) || value['lastRequestError'] === undefined) return false;
@@ -190,6 +204,8 @@ export function AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json: any, i
190
204
  'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
191
205
  'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
192
206
  'createdAt': (new Date(json['createdAt'])),
207
+ 'certificateViewUrl': json['certificateViewUrl'],
208
+ 'certificateDownloadUrl': json['certificateDownloadUrl'],
193
209
  'paid': json['paid'],
194
210
  'lastRequestAttemptAt': (json['lastRequestAttemptAt'] == null ? null : new Date(json['lastRequestAttemptAt'])),
195
211
  'lastRequestError': json['lastRequestError'],
@@ -222,6 +238,8 @@ export function AdminDomainAppraisalRequestListItemDtoToJSONTyped(value?: AdminD
222
238
  'appraisedAt': (value['appraisedAt'] == null ? null : (value['appraisedAt'] as any).toISOString()),
223
239
  'requestedAt': (value['requestedAt'] == null ? null : (value['requestedAt'] as any).toISOString()),
224
240
  'createdAt': ((value['createdAt']).toISOString()),
241
+ 'certificateViewUrl': value['certificateViewUrl'],
242
+ 'certificateDownloadUrl': value['certificateDownloadUrl'],
225
243
  'paid': value['paid'],
226
244
  'lastRequestAttemptAt': (value['lastRequestAttemptAt'] == null ? null : (value['lastRequestAttemptAt'] as any).toISOString()),
227
245
  'lastRequestError': value['lastRequestError'],
@@ -0,0 +1,119 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DomainAppraisalCertificateDto
28
+ */
29
+ export interface DomainAppraisalCertificateDto {
30
+ /**
31
+ * The domain name, in ASCII.
32
+ * @type {string}
33
+ * @memberof DomainAppraisalCertificateDto
34
+ */
35
+ domainName: string;
36
+ /**
37
+ * The domain name to show, in Unicode.
38
+ * @type {string}
39
+ * @memberof DomainAppraisalCertificateDto
40
+ */
41
+ domainDisplayName: string;
42
+ /**
43
+ * When the domain was appraised.
44
+ * @type {Date}
45
+ * @memberof DomainAppraisalCertificateDto
46
+ */
47
+ appraisedAt: Date;
48
+ /**
49
+ * What the domain was appraised at, in USD.
50
+ * @type {MoneyDto}
51
+ * @memberof DomainAppraisalCertificateDto
52
+ */
53
+ appraisedAmount: MoneyDto;
54
+ /**
55
+ * Whether a buyer can request a new appraisal: the appraisal is more than a year old.
56
+ * @type {boolean}
57
+ * @memberof DomainAppraisalCertificateDto
58
+ */
59
+ canRequestNewAppraisal: boolean;
60
+ /**
61
+ * The appraisal in the domain appraisals API, whose certificate document and PDF it serves. Null while unknown.
62
+ * @type {string}
63
+ * @memberof DomainAppraisalCertificateDto
64
+ */
65
+ domainAppraisalId: string | null;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the DomainAppraisalCertificateDto interface.
70
+ */
71
+ export function instanceOfDomainAppraisalCertificateDto(value: object): value is DomainAppraisalCertificateDto {
72
+ if (!('domainName' in value) || value['domainName'] === undefined) return false;
73
+ if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
74
+ if (!('appraisedAt' in value) || value['appraisedAt'] === undefined) return false;
75
+ if (!('appraisedAmount' in value) || value['appraisedAmount'] === undefined) return false;
76
+ if (!('canRequestNewAppraisal' in value) || value['canRequestNewAppraisal'] === undefined) return false;
77
+ if (!('domainAppraisalId' in value) || value['domainAppraisalId'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function DomainAppraisalCertificateDtoFromJSON(json: any): DomainAppraisalCertificateDto {
82
+ return DomainAppraisalCertificateDtoFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function DomainAppraisalCertificateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainAppraisalCertificateDto {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'domainName': json['domainName'],
92
+ 'domainDisplayName': json['domainDisplayName'],
93
+ 'appraisedAt': (new Date(json['appraisedAt'])),
94
+ 'appraisedAmount': MoneyDtoFromJSON(json['appraisedAmount']),
95
+ 'canRequestNewAppraisal': json['canRequestNewAppraisal'],
96
+ 'domainAppraisalId': json['domainAppraisalId'],
97
+ };
98
+ }
99
+
100
+ export function DomainAppraisalCertificateDtoToJSON(json: any): DomainAppraisalCertificateDto {
101
+ return DomainAppraisalCertificateDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function DomainAppraisalCertificateDtoToJSONTyped(value?: DomainAppraisalCertificateDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'domainName': value['domainName'],
112
+ 'domainDisplayName': value['domainDisplayName'],
113
+ 'appraisedAt': ((value['appraisedAt']).toISOString()),
114
+ 'appraisedAmount': MoneyDtoToJSON(value['appraisedAmount']),
115
+ 'canRequestNewAppraisal': value['canRequestNewAppraisal'],
116
+ 'domainAppraisalId': value['domainAppraisalId'],
117
+ };
118
+ }
119
+
@@ -88,6 +88,18 @@ export interface DomainAppraisalRequestListItemDto {
88
88
  * @memberof DomainAppraisalRequestListItemDto
89
89
  */
90
90
  createdAt: Date;
91
+ /**
92
+ * The issued PDF of its certificate, to open in the browser. Null until it is appraised and linked to its appraisal.
93
+ * @type {string}
94
+ * @memberof DomainAppraisalRequestListItemDto
95
+ */
96
+ certificateViewUrl: string | null;
97
+ /**
98
+ * The same PDF, to download. Null until it is appraised and linked to its appraisal.
99
+ * @type {string}
100
+ * @memberof DomainAppraisalRequestListItemDto
101
+ */
102
+ certificateDownloadUrl: string | null;
91
103
  }
92
104
 
93
105
 
@@ -105,6 +117,8 @@ export function instanceOfDomainAppraisalRequestListItemDto(value: object): valu
105
117
  if (!('appraisedAt' in value) || value['appraisedAt'] === undefined) return false;
106
118
  if (!('requestedAt' in value) || value['requestedAt'] === undefined) return false;
107
119
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
120
+ if (!('certificateViewUrl' in value) || value['certificateViewUrl'] === undefined) return false;
121
+ if (!('certificateDownloadUrl' in value) || value['certificateDownloadUrl'] === undefined) return false;
108
122
  return true;
109
123
  }
110
124
 
@@ -127,6 +141,8 @@ export function DomainAppraisalRequestListItemDtoFromJSONTyped(json: any, ignore
127
141
  'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
128
142
  'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
129
143
  'createdAt': (new Date(json['createdAt'])),
144
+ 'certificateViewUrl': json['certificateViewUrl'],
145
+ 'certificateDownloadUrl': json['certificateDownloadUrl'],
130
146
  };
131
147
  }
132
148
 
@@ -150,6 +166,8 @@ export function DomainAppraisalRequestListItemDtoToJSONTyped(value?: DomainAppra
150
166
  'appraisedAt': (value['appraisedAt'] == null ? null : (value['appraisedAt'] as any).toISOString()),
151
167
  'requestedAt': (value['requestedAt'] == null ? null : (value['requestedAt'] as any).toISOString()),
152
168
  'createdAt': ((value['createdAt']).toISOString()),
169
+ 'certificateViewUrl': value['certificateViewUrl'],
170
+ 'certificateDownloadUrl': value['certificateDownloadUrl'],
153
171
  };
154
172
  }
155
173
 
@@ -179,7 +179,7 @@ export interface DomainSalesInformationDto {
179
179
  */
180
180
  leadBuyerSettings: LeadBuyerConfigDto | null;
181
181
  /**
182
- * Whether anyone can request a domain appraisal of this domain from its landing page.
182
+ * Whether a buyer can request a domain appraisal of this domain. Not while its fair price seal is backed by an appraisal of a year or less. A landing page with a seal does not offer it: buyers ask from the certificate.
183
183
  * @type {boolean}
184
184
  * @memberof DomainSalesInformationDto
185
185
  */
@@ -31,6 +31,12 @@ export interface JobFailureDto {
31
31
  * @memberof JobFailureDto
32
32
  */
33
33
  reason: string;
34
+ /**
35
+ * The error code of an import row; null for any other failure.
36
+ * @type {string}
37
+ * @memberof JobFailureDto
38
+ */
39
+ code: string | null;
34
40
  }
35
41
 
36
42
  /**
@@ -39,6 +45,7 @@ export interface JobFailureDto {
39
45
  export function instanceOfJobFailureDto(value: object): value is JobFailureDto {
40
46
  if (!('subject' in value) || value['subject'] === undefined) return false;
41
47
  if (!('reason' in value) || value['reason'] === undefined) return false;
48
+ if (!('code' in value) || value['code'] === undefined) return false;
42
49
  return true;
43
50
  }
44
51
 
@@ -54,6 +61,7 @@ export function JobFailureDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
54
61
 
55
62
  'subject': json['subject'],
56
63
  'reason': json['reason'],
64
+ 'code': json['code'],
57
65
  };
58
66
  }
59
67
 
@@ -70,6 +78,7 @@ export function JobFailureDtoToJSONTyped(value?: JobFailureDto | null, ignoreDis
70
78
 
71
79
  'subject': value['subject'],
72
80
  'reason': value['reason'],
81
+ 'code': value['code'],
73
82
  };
74
83
  }
75
84
 
@@ -238,6 +238,7 @@ export * from './CustomerSuccessListAccountPortfolioSizeDto';
238
238
  export * from './CustomerSuccessListAccountUserDto';
239
239
  export * from './DeclineBrokeredLeadInput';
240
240
  export * from './DeleteDomainsInput';
241
+ export * from './DomainAppraisalCertificateDto';
241
242
  export * from './DomainAppraisalRequestListItemDto';
242
243
  export * from './DomainAppraisalRequestStatus';
243
244
  export * from './DomainAppraisalRequester';