@randock/nameshift-api-client 0.0.5 → 0.0.7

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.
Files changed (31) hide show
  1. package/.openapi-generator/FILES +5 -4
  2. package/README.md +2 -2
  3. package/dist/apis/AccountsApi.d.ts +3 -3
  4. package/dist/apis/AccountsApi.js +1 -1
  5. package/dist/apis/DomainsPublicApi.d.ts +26 -0
  6. package/dist/apis/DomainsPublicApi.js +121 -0
  7. package/dist/apis/LeadsPublicApi.d.ts +27 -0
  8. package/dist/apis/LeadsPublicApi.js +124 -0
  9. package/dist/apis/index.d.ts +2 -2
  10. package/dist/apis/index.js +2 -2
  11. package/dist/models/DomainDto.d.ts +6 -0
  12. package/dist/models/DomainDto.js +3 -0
  13. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +58 -0
  14. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +65 -0
  15. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +43 -0
  16. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +56 -0
  17. package/dist/models/UpdateSettings429Response.d.ts +43 -0
  18. package/dist/models/UpdateSettings429Response.js +56 -0
  19. package/dist/models/index.d.ts +3 -2
  20. package/dist/models/index.js +3 -2
  21. package/package.json +5 -1
  22. package/src/apis/AccountsApi.ts +9 -9
  23. package/src/apis/DomainsApi.ts +3 -3
  24. package/src/apis/DomainsPublicApi.ts +62 -0
  25. package/src/apis/LeadsPublicApi.ts +71 -0
  26. package/src/apis/index.ts +2 -2
  27. package/src/models/DomainDto.ts +9 -0
  28. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +121 -0
  29. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +83 -0
  30. package/src/models/UpdateSettings429Response.ts +83 -0
  31. package/src/models/index.ts +3 -2
@@ -5,13 +5,12 @@ package.json
5
5
  src/apis/AccountsApi.ts
6
6
  src/apis/AuthApi.ts
7
7
  src/apis/DomainsApi.ts
8
- src/apis/LeadsApi.ts
9
- src/apis/TestApi.ts
8
+ src/apis/DomainsPublicApi.ts
9
+ src/apis/LeadsPublicApi.ts
10
10
  src/apis/index.ts
11
11
  src/index.ts
12
12
  src/models/AccountAddressDto.ts
13
13
  src/models/AccountAddressInput.ts
14
- src/models/AccountDto.ts
15
14
  src/models/AccountFinancialInput.ts
16
15
  src/models/AccountSettingsInput.ts
17
16
  src/models/BatchUpdate404Response.ts
@@ -23,13 +22,13 @@ src/models/ImportDomainsDto.ts
23
22
  src/models/IntersectionAccountDtoWithAddressDto.ts
24
23
  src/models/IntersectionAccountDtoWithFinancialDto.ts
25
24
  src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts
25
+ src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
26
26
  src/models/IntersectionAccountDtoWithSettingsDto.ts
27
27
  src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts
28
28
  src/models/LeadDto.ts
29
29
  src/models/List200Response.ts
30
30
  src/models/List400Response.ts
31
31
  src/models/List401Response.ts
32
- src/models/List429Response.ts
33
32
  src/models/Login401Response.ts
34
33
  src/models/Login429Response.ts
35
34
  src/models/LoginInput.ts
@@ -38,9 +37,11 @@ src/models/MoneyInput.ts
38
37
  src/models/PaginateResponse.ts
39
38
  src/models/PaginateResponseLinks.ts
40
39
  src/models/PaginateResponseMeta.ts
40
+ src/models/PublicDomainControllerGetDomainIdentifier404Response.ts
41
41
  src/models/TokenDto.ts
42
42
  src/models/UpdateDomainInput.ts
43
43
  src/models/UpdateSettings401Response.ts
44
+ src/models/UpdateSettings429Response.ts
44
45
  src/models/index.ts
45
46
  src/runtime.ts
46
47
  tsconfig.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@1.0
1
+ ## @randock/nameshift-api-client@0.0.7
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@1.0 --save
39
+ npm install @randock/nameshift-api-client@0.0.7 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountAddressInput, AccountDto, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
13
+ import type { AccountAddressInput, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
14
14
  export interface UpdateAddressRequest {
15
15
  accountId: string;
16
16
  accountAddressInput: AccountAddressInput;
@@ -30,11 +30,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
30
30
  /**
31
31
  *
32
32
  */
33
- meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDto>>;
33
+ meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>>;
34
34
  /**
35
35
  *
36
36
  */
37
- me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountDto>;
37
+ me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto>;
38
38
  /**
39
39
  *
40
40
  */
@@ -103,7 +103,7 @@ var AccountsApi = /** @class */ (function (_super) {
103
103
  }, initOverrides)];
104
104
  case 3:
105
105
  response = _a.sent();
106
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountDtoFromJSON)(jsonValue); })];
106
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON)(jsonValue); })];
107
107
  }
108
108
  });
109
109
  });
@@ -0,0 +1,26 @@
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 PublicDomainControllerGetDomainIdentifierRequest {
14
+ domainName: string;
15
+ }
16
+ /**
17
+ *
18
+ */
19
+ export declare class DomainsPublicApi extends runtime.BaseAPI {
20
+ /**
21
+ */
22
+ publicDomainControllerGetDomainIdentifierRaw(requestParameters: PublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
23
+ /**
24
+ */
25
+ publicDomainControllerGetDomainIdentifier(requestParameters: PublicDomainControllerGetDomainIdentifierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
26
+ }
@@ -0,0 +1,121 @@
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
+ /**
70
+ *
71
+ */
72
+ var DomainsPublicApi = /** @class */ (function (_super) {
73
+ __extends(DomainsPublicApi, _super);
74
+ function DomainsPublicApi() {
75
+ return _super !== null && _super.apply(this, arguments) || this;
76
+ }
77
+ /**
78
+ */
79
+ DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifierRaw = 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.domainName === null || requestParameters.domainName === undefined) {
86
+ throw new runtime.RequiredError('domainName', 'Required parameter requestParameters.domainName was null or undefined when calling publicDomainControllerGetDomainIdentifier.');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ return [4 /*yield*/, this.request({
91
+ path: "/domains/by-name/{domainName}/identifier".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters.domainName))),
92
+ method: 'GET',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides)];
96
+ case 1:
97
+ response = _a.sent();
98
+ return [2 /*return*/, new runtime.JSONApiResponse(response)];
99
+ }
100
+ });
101
+ });
102
+ };
103
+ /**
104
+ */
105
+ DomainsPublicApi.prototype.publicDomainControllerGetDomainIdentifier = function (requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function () {
107
+ var response;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0: return [4 /*yield*/, this.publicDomainControllerGetDomainIdentifierRaw(requestParameters, initOverrides)];
111
+ case 1:
112
+ response = _a.sent();
113
+ return [4 /*yield*/, response.value()];
114
+ case 2: return [2 /*return*/, _a.sent()];
115
+ }
116
+ });
117
+ });
118
+ };
119
+ return DomainsPublicApi;
120
+ }(runtime.BaseAPI));
121
+ exports.DomainsPublicApi = DomainsPublicApi;
@@ -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 { CreateLeadInput, LeadDto } from '../models/index';
14
+ export interface PublicLeadControllerPostLeadRequest {
15
+ createLeadInput: CreateLeadInput;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class LeadsPublicApi extends runtime.BaseAPI {
21
+ /**
22
+ */
23
+ publicLeadControllerPostLeadRaw(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
24
+ /**
25
+ */
26
+ publicLeadControllerPostLead(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
27
+ }
@@ -0,0 +1,124 @@
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.LeadsPublicApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var LeadsPublicApi = /** @class */ (function (_super) {
74
+ __extends(LeadsPublicApi, _super);
75
+ function LeadsPublicApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ */
80
+ LeadsPublicApi.prototype.publicLeadControllerPostLeadRaw = 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.createLeadInput === null || requestParameters.createLeadInput === undefined) {
87
+ throw new runtime.RequiredError('createLeadInput', 'Required parameter requestParameters.createLeadInput was null or undefined when calling publicLeadControllerPostLead.');
88
+ }
89
+ queryParameters = {};
90
+ headerParameters = {};
91
+ headerParameters['Content-Type'] = 'application/json';
92
+ return [4 /*yield*/, this.request({
93
+ path: "/leads",
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: (0, index_1.CreateLeadInputToJSON)(requestParameters.createLeadInput),
98
+ }, initOverrides)];
99
+ case 1:
100
+ response = _a.sent();
101
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadDtoFromJSON)(jsonValue); })];
102
+ }
103
+ });
104
+ });
105
+ };
106
+ /**
107
+ */
108
+ LeadsPublicApi.prototype.publicLeadControllerPostLead = function (requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function () {
110
+ var response;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0: return [4 /*yield*/, this.publicLeadControllerPostLeadRaw(requestParameters, initOverrides)];
114
+ case 1:
115
+ response = _a.sent();
116
+ return [4 /*yield*/, response.value()];
117
+ case 2: return [2 /*return*/, _a.sent()];
118
+ }
119
+ });
120
+ });
121
+ };
122
+ return LeadsPublicApi;
123
+ }(runtime.BaseAPI));
124
+ exports.LeadsPublicApi = LeadsPublicApi;
@@ -1,5 +1,5 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AuthApi';
3
3
  export * from './DomainsApi';
4
- export * from './LeadsApi';
5
- export * from './TestApi';
4
+ export * from './DomainsPublicApi';
5
+ export * from './LeadsPublicApi';
@@ -19,5 +19,5 @@ 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("./LeadsApi"), exports);
23
- __exportStar(require("./TestApi"), exports);
22
+ __exportStar(require("./DomainsPublicApi"), exports);
23
+ __exportStar(require("./LeadsPublicApi"), exports);
@@ -22,6 +22,12 @@ export interface DomainDto {
22
22
  * @memberof DomainDto
23
23
  */
24
24
  id: string;
25
+ /**
26
+ * The TLD for this domain.
27
+ * @type {string}
28
+ * @memberof DomainDto
29
+ */
30
+ tld: string;
25
31
  /**
26
32
  * Whether this domain is verified by the owner (ns3, txt) or not.
27
33
  * @type {boolean}
@@ -21,6 +21,7 @@ var MoneyDto_1 = require("./MoneyDto");
21
21
  function instanceOfDomainDto(value) {
22
22
  var isInstance = true;
23
23
  isInstance = isInstance && "id" in value;
24
+ isInstance = isInstance && "tld" in value;
24
25
  isInstance = isInstance && "verified" in value;
25
26
  isInstance = isInstance && "nameservers" in value;
26
27
  isInstance = isInstance && "name" in value;
@@ -39,6 +40,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
39
40
  }
40
41
  return {
41
42
  'id': json['id'],
43
+ 'tld': json['tld'],
42
44
  'verified': json['verified'],
43
45
  'nameservers': json['nameservers'],
44
46
  'name': json['name'],
@@ -56,6 +58,7 @@ function DomainDtoToJSON(value) {
56
58
  }
57
59
  return {
58
60
  'id': value.id,
61
+ 'tld': value.tld,
59
62
  'verified': value.verified,
60
63
  'nameservers': value.nameservers,
61
64
  'name': value.name,
@@ -0,0 +1,58 @@
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 { AccountAddressDto } from './AccountAddressDto';
13
+ import type { IntersectionAccountDtoWithFinancialDtoFinancial } from './IntersectionAccountDtoWithFinancialDtoFinancial';
14
+ import type { IntersectionAccountDtoWithSettingsDtoSettings } from './IntersectionAccountDtoWithSettingsDtoSettings';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
19
+ */
20
+ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
31
+ */
32
+ identifier: string;
33
+ /**
34
+ *
35
+ * @type {IntersectionAccountDtoWithFinancialDtoFinancial}
36
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
37
+ */
38
+ financial: IntersectionAccountDtoWithFinancialDtoFinancial;
39
+ /**
40
+ *
41
+ * @type {IntersectionAccountDtoWithSettingsDtoSettings}
42
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
43
+ */
44
+ settings: IntersectionAccountDtoWithSettingsDtoSettings;
45
+ /**
46
+ *
47
+ * @type {Array<AccountAddressDto>}
48
+ * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
49
+ */
50
+ addresses: Array<AccountAddressDto>;
51
+ }
52
+ /**
53
+ * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
54
+ */
55
+ export declare function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value: object): boolean;
56
+ export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json: any): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
57
+ export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
58
+ export declare function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value?: IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto | null): any;
@@ -0,0 +1,65 @@
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.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = void 0;
17
+ var AccountAddressDto_1 = require("./AccountAddressDto");
18
+ var IntersectionAccountDtoWithFinancialDtoFinancial_1 = require("./IntersectionAccountDtoWithFinancialDtoFinancial");
19
+ var IntersectionAccountDtoWithSettingsDtoSettings_1 = require("./IntersectionAccountDtoWithSettingsDtoSettings");
20
+ /**
21
+ * Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
22
+ */
23
+ function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value) {
24
+ var isInstance = true;
25
+ isInstance = isInstance && "id" in value;
26
+ isInstance = isInstance && "identifier" in value;
27
+ isInstance = isInstance && "financial" in value;
28
+ isInstance = isInstance && "settings" in value;
29
+ isInstance = isInstance && "addresses" in value;
30
+ return isInstance;
31
+ }
32
+ exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
33
+ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json) {
34
+ return IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, false);
35
+ }
36
+ exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON;
37
+ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if ((json === undefined) || (json === null)) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'identifier': json['identifier'],
44
+ 'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialFromJSON)(json['financial']),
45
+ 'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsFromJSON)(json['settings']),
46
+ 'addresses': (json['addresses'].map(AccountAddressDto_1.AccountAddressDtoFromJSON)),
47
+ };
48
+ }
49
+ exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped;
50
+ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'id': value.id,
59
+ 'identifier': value.identifier,
60
+ 'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialToJSON)(value.financial),
61
+ 'settings': (0, IntersectionAccountDtoWithSettingsDtoSettings_1.IntersectionAccountDtoWithSettingsDtoSettingsToJSON)(value.settings),
62
+ 'addresses': (value.addresses.map(AccountAddressDto_1.AccountAddressDtoToJSON)),
63
+ };
64
+ }
65
+ exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON;
@@ -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 PublicDomainControllerGetDomainIdentifier404Response
16
+ */
17
+ export interface PublicDomainControllerGetDomainIdentifier404Response {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PublicDomainControllerGetDomainIdentifier404Response
22
+ */
23
+ statusCode: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PublicDomainControllerGetDomainIdentifier404Response
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PublicDomainControllerGetDomainIdentifier404Response
34
+ */
35
+ error?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PublicDomainControllerGetDomainIdentifier404Response interface.
39
+ */
40
+ export declare function instanceOfPublicDomainControllerGetDomainIdentifier404Response(value: object): boolean;
41
+ export declare function PublicDomainControllerGetDomainIdentifier404ResponseFromJSON(json: any): PublicDomainControllerGetDomainIdentifier404Response;
42
+ export declare function PublicDomainControllerGetDomainIdentifier404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDomainControllerGetDomainIdentifier404Response;
43
+ export declare function PublicDomainControllerGetDomainIdentifier404ResponseToJSON(value?: PublicDomainControllerGetDomainIdentifier404Response | null): any;