@randock/nameshift-api-client 0.0.4 → 0.0.6

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 (39) hide show
  1. package/.openapi-generator/FILES +5 -3
  2. package/dist/apis/AccountsApi.d.ts +9 -1
  3. package/dist/apis/AccountsApi.js +50 -0
  4. package/dist/apis/DomainsPublicApi.d.ts +26 -0
  5. package/dist/apis/DomainsPublicApi.js +121 -0
  6. package/dist/apis/LeadsPublicApi.d.ts +27 -0
  7. package/dist/apis/LeadsPublicApi.js +124 -0
  8. package/dist/apis/index.d.ts +2 -2
  9. package/dist/apis/index.js +2 -2
  10. package/dist/models/AccountDto.d.ts +37 -0
  11. package/dist/models/AccountDto.js +53 -0
  12. package/dist/models/DomainDto.d.ts +6 -0
  13. package/dist/models/DomainDto.js +3 -0
  14. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +6 -0
  15. package/dist/models/IntersectionAccountDtoWithAddressDto.js +3 -0
  16. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +6 -0
  17. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +3 -0
  18. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +6 -0
  19. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +3 -0
  20. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +43 -0
  21. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +56 -0
  22. package/dist/models/UpdateSettings429Response.d.ts +43 -0
  23. package/dist/models/UpdateSettings429Response.js +56 -0
  24. package/dist/models/index.d.ts +3 -1
  25. package/dist/models/index.js +3 -1
  26. package/package.json +1 -1
  27. package/src/apis/AccountsApi.ts +40 -3
  28. package/src/apis/DomainsApi.ts +3 -3
  29. package/src/apis/DomainsPublicApi.ts +62 -0
  30. package/src/apis/LeadsPublicApi.ts +71 -0
  31. package/src/apis/index.ts +2 -2
  32. package/src/models/AccountDto.ts +75 -0
  33. package/src/models/DomainDto.ts +9 -0
  34. package/src/models/IntersectionAccountDtoWithAddressDto.ts +9 -0
  35. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +9 -0
  36. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +9 -0
  37. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +83 -0
  38. package/src/models/UpdateSettings429Response.ts +83 -0
  39. package/src/models/index.ts +3 -1
@@ -5,12 +5,13 @@ 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
14
15
  src/models/AccountFinancialInput.ts
15
16
  src/models/AccountSettingsInput.ts
16
17
  src/models/BatchUpdate404Response.ts
@@ -28,7 +29,6 @@ src/models/LeadDto.ts
28
29
  src/models/List200Response.ts
29
30
  src/models/List400Response.ts
30
31
  src/models/List401Response.ts
31
- src/models/List429Response.ts
32
32
  src/models/Login401Response.ts
33
33
  src/models/Login429Response.ts
34
34
  src/models/LoginInput.ts
@@ -37,9 +37,11 @@ src/models/MoneyInput.ts
37
37
  src/models/PaginateResponse.ts
38
38
  src/models/PaginateResponseLinks.ts
39
39
  src/models/PaginateResponseMeta.ts
40
+ src/models/PublicDomainControllerGetDomainIdentifier404Response.ts
40
41
  src/models/TokenDto.ts
41
42
  src/models/UpdateDomainInput.ts
42
43
  src/models/UpdateSettings401Response.ts
44
+ src/models/UpdateSettings429Response.ts
43
45
  src/models/index.ts
44
46
  src/runtime.ts
45
47
  tsconfig.json
@@ -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, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
13
+ import type { AccountAddressInput, AccountDto, AccountFinancialInput, AccountSettingsInput, IntersectionAccountDtoWithAddressDto, IntersectionAccountDtoWithFinancialDto, IntersectionAccountDtoWithSettingsDto } from '../models/index';
14
14
  export interface UpdateAddressRequest {
15
15
  accountId: string;
16
16
  accountAddressInput: AccountAddressInput;
@@ -27,6 +27,14 @@ export interface UpdateSettingsRequest {
27
27
  *
28
28
  */
29
29
  export declare class AccountsApi extends runtime.BaseAPI {
30
+ /**
31
+ *
32
+ */
33
+ meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDto>>;
34
+ /**
35
+ *
36
+ */
37
+ me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountDto>;
30
38
  /**
31
39
  *
32
40
  */
@@ -75,6 +75,56 @@ var AccountsApi = /** @class */ (function (_super) {
75
75
  function AccountsApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ *
80
+ */
81
+ AccountsApi.prototype.meRaw = function (initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
90
+ token = this.configuration.accessToken;
91
+ return [4 /*yield*/, token("bearer", [])];
92
+ case 1:
93
+ tokenString = _a.sent();
94
+ if (tokenString) {
95
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
96
+ }
97
+ _a.label = 2;
98
+ case 2: return [4 /*yield*/, this.request({
99
+ path: "/accounts/me",
100
+ method: 'GET',
101
+ headers: headerParameters,
102
+ query: queryParameters,
103
+ }, initOverrides)];
104
+ case 3:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountDtoFromJSON)(jsonValue); })];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ *
113
+ */
114
+ AccountsApi.prototype.me = function (initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function () {
116
+ var response;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4 /*yield*/, this.meRaw(initOverrides)];
120
+ case 1:
121
+ response = _a.sent();
122
+ return [4 /*yield*/, response.value()];
123
+ case 2: return [2 /*return*/, _a.sent()];
124
+ }
125
+ });
126
+ });
127
+ };
78
128
  /**
79
129
  *
80
130
  */
@@ -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);
@@ -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 AccountDto
16
+ */
17
+ export interface AccountDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AccountDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AccountDto
28
+ */
29
+ identifier: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AccountDto interface.
33
+ */
34
+ export declare function instanceOfAccountDto(value: object): boolean;
35
+ export declare function AccountDtoFromJSON(json: any): AccountDto;
36
+ export declare function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDto;
37
+ export declare function AccountDtoToJSON(value?: AccountDto | 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.AccountDtoToJSON = exports.AccountDtoFromJSONTyped = exports.AccountDtoFromJSON = exports.instanceOfAccountDto = void 0;
17
+ /**
18
+ * Check if a given object implements the AccountDto interface.
19
+ */
20
+ function instanceOfAccountDto(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "id" in value;
23
+ isInstance = isInstance && "identifier" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfAccountDto = instanceOfAccountDto;
27
+ function AccountDtoFromJSON(json) {
28
+ return AccountDtoFromJSONTyped(json, false);
29
+ }
30
+ exports.AccountDtoFromJSON = AccountDtoFromJSON;
31
+ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'],
37
+ 'identifier': json['identifier'],
38
+ };
39
+ }
40
+ exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
41
+ function AccountDtoToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'id': value.id,
50
+ 'identifier': value.identifier,
51
+ };
52
+ }
53
+ exports.AccountDtoToJSON = AccountDtoToJSON;
@@ -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,
@@ -22,6 +22,12 @@ export interface IntersectionAccountDtoWithAddressDto {
22
22
  * @memberof IntersectionAccountDtoWithAddressDto
23
23
  */
24
24
  id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof IntersectionAccountDtoWithAddressDto
29
+ */
30
+ identifier: string;
25
31
  /**
26
32
  *
27
33
  * @type {Array<AccountAddressDto>}
@@ -21,6 +21,7 @@ var AccountAddressDto_1 = require("./AccountAddressDto");
21
21
  function instanceOfIntersectionAccountDtoWithAddressDto(value) {
22
22
  var isInstance = true;
23
23
  isInstance = isInstance && "id" in value;
24
+ isInstance = isInstance && "identifier" in value;
24
25
  isInstance = isInstance && "addresses" in value;
25
26
  return isInstance;
26
27
  }
@@ -35,6 +36,7 @@ function IntersectionAccountDtoWithAddressDtoFromJSONTyped(json, ignoreDiscrimin
35
36
  }
36
37
  return {
37
38
  'id': json['id'],
39
+ 'identifier': json['identifier'],
38
40
  'addresses': (json['addresses'].map(AccountAddressDto_1.AccountAddressDtoFromJSON)),
39
41
  };
40
42
  }
@@ -48,6 +50,7 @@ function IntersectionAccountDtoWithAddressDtoToJSON(value) {
48
50
  }
49
51
  return {
50
52
  'id': value.id,
53
+ 'identifier': value.identifier,
51
54
  'addresses': (value.addresses.map(AccountAddressDto_1.AccountAddressDtoToJSON)),
52
55
  };
53
56
  }
@@ -22,6 +22,12 @@ export interface IntersectionAccountDtoWithFinancialDto {
22
22
  * @memberof IntersectionAccountDtoWithFinancialDto
23
23
  */
24
24
  id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof IntersectionAccountDtoWithFinancialDto
29
+ */
30
+ identifier: string;
25
31
  /**
26
32
  *
27
33
  * @type {IntersectionAccountDtoWithFinancialDtoFinancial}
@@ -21,6 +21,7 @@ var IntersectionAccountDtoWithFinancialDtoFinancial_1 = require("./IntersectionA
21
21
  function instanceOfIntersectionAccountDtoWithFinancialDto(value) {
22
22
  var isInstance = true;
23
23
  isInstance = isInstance && "id" in value;
24
+ isInstance = isInstance && "identifier" in value;
24
25
  isInstance = isInstance && "financial" in value;
25
26
  return isInstance;
26
27
  }
@@ -35,6 +36,7 @@ function IntersectionAccountDtoWithFinancialDtoFromJSONTyped(json, ignoreDiscrim
35
36
  }
36
37
  return {
37
38
  'id': json['id'],
39
+ 'identifier': json['identifier'],
38
40
  'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialFromJSON)(json['financial']),
39
41
  };
40
42
  }
@@ -48,6 +50,7 @@ function IntersectionAccountDtoWithFinancialDtoToJSON(value) {
48
50
  }
49
51
  return {
50
52
  'id': value.id,
53
+ 'identifier': value.identifier,
51
54
  'financial': (0, IntersectionAccountDtoWithFinancialDtoFinancial_1.IntersectionAccountDtoWithFinancialDtoFinancialToJSON)(value.financial),
52
55
  };
53
56
  }
@@ -22,6 +22,12 @@ export interface IntersectionAccountDtoWithSettingsDto {
22
22
  * @memberof IntersectionAccountDtoWithSettingsDto
23
23
  */
24
24
  id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof IntersectionAccountDtoWithSettingsDto
29
+ */
30
+ identifier: string;
25
31
  /**
26
32
  *
27
33
  * @type {IntersectionAccountDtoWithSettingsDtoSettings}