@randock/nameshift-api-client 0.0.265 → 0.0.267

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.
@@ -101,6 +101,7 @@ src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
101
101
  src/models/DomainSalesInformationRentConfigurationDto.ts
102
102
  src/models/DomainSellerDto.ts
103
103
  src/models/DomainStatsDto.ts
104
+ src/models/DomainTldsDto.ts
104
105
  src/models/DomainTransferAgentDto.ts
105
106
  src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts
106
107
  src/models/DomainTransferDetailWorkflowStepActionDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.265
1
+ ## @randock/nameshift-api-client@0.0.267
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.265 --save
39
+ npm install @randock/nameshift-api-client@0.0.267 --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
- dfce2b247002105a45eefc59eb0073ca0c0533d187cb6dd05646c209877f941d866fefc8ca6a7a61007644e05d15cac3
47
+ 08fdea2782dd98108cf367dcaa7c731de03a04ed39b83606cb152323690a19bf1636d5548f2b34732a25bb7db61d6b71
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DomainSalesInformationDto, List200Response3, SortDto } from '../models/index';
13
+ import type { DomainSalesInformationDto, DomainTldsDto, List200Response3, SortDto } from '../models/index';
14
+ export interface DomainsPublicApiGetAllTldsRequest {
15
+ seller?: string;
16
+ }
14
17
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
15
18
  domainName: string;
16
19
  includeStats?: boolean;
@@ -18,6 +21,7 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
18
21
  installments?: number;
19
22
  }
20
23
  export interface DomainsPublicApiListRequest {
24
+ fuzzy: boolean;
21
25
  limit?: number;
22
26
  sort?: Array<SortDto>;
23
27
  filter?: string;
@@ -28,6 +32,14 @@ export interface DomainsPublicApiListRequest {
28
32
  *
29
33
  */
30
34
  export declare class DomainsPublicApi extends runtime.BaseAPI {
35
+ /**
36
+ *
37
+ */
38
+ getAllTldsRaw(requestParameters: DomainsPublicApiGetAllTldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>>;
39
+ /**
40
+ *
41
+ */
42
+ getAllTlds(requestParameters?: DomainsPublicApiGetAllTldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto>;
31
43
  /**
32
44
  *
33
45
  */
@@ -43,5 +55,5 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
43
55
  /**
44
56
  *
45
57
  */
46
- list(requestParameters?: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3>;
58
+ list(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3>;
47
59
  }
@@ -75,6 +75,51 @@ var DomainsPublicApi = /** @class */ (function (_super) {
75
75
  function DomainsPublicApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ *
80
+ */
81
+ DomainsPublicApi.prototype.getAllTldsRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ if (requestParameters['seller'] != null) {
89
+ queryParameters['seller'] = requestParameters['seller'];
90
+ }
91
+ headerParameters = {};
92
+ return [4 /*yield*/, this.request({
93
+ path: "/domains/tlds",
94
+ method: 'GET',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ }, initOverrides)];
98
+ case 1:
99
+ response = _a.sent();
100
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTldsDtoFromJSON)(jsonValue); })];
101
+ }
102
+ });
103
+ });
104
+ };
105
+ /**
106
+ *
107
+ */
108
+ DomainsPublicApi.prototype.getAllTlds = function () {
109
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
110
+ var response;
111
+ if (requestParameters === void 0) { requestParameters = {}; }
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0: return [4 /*yield*/, this.getAllTldsRaw(requestParameters, initOverrides)];
115
+ case 1:
116
+ response = _a.sent();
117
+ return [4 /*yield*/, response.value()];
118
+ case 2: return [2 /*return*/, _a.sent()];
119
+ }
120
+ });
121
+ });
122
+ };
78
123
  /**
79
124
  *
80
125
  */
@@ -137,7 +182,13 @@ var DomainsPublicApi = /** @class */ (function (_super) {
137
182
  return __generator(this, function (_a) {
138
183
  switch (_a.label) {
139
184
  case 0:
185
+ if (requestParameters['fuzzy'] == null) {
186
+ throw new runtime.RequiredError('fuzzy', 'Required parameter "fuzzy" was null or undefined when calling list().');
187
+ }
140
188
  queryParameters = {};
189
+ if (requestParameters['fuzzy'] != null) {
190
+ queryParameters['fuzzy'] = requestParameters['fuzzy'];
191
+ }
141
192
  if (requestParameters['limit'] != null) {
142
193
  queryParameters['limit'] = requestParameters['limit'];
143
194
  }
@@ -170,10 +221,9 @@ var DomainsPublicApi = /** @class */ (function (_super) {
170
221
  /**
171
222
  *
172
223
  */
173
- DomainsPublicApi.prototype.list = function () {
174
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
224
+ DomainsPublicApi.prototype.list = function (requestParameters, initOverrides) {
225
+ return __awaiter(this, void 0, void 0, function () {
175
226
  var response;
176
- if (requestParameters === void 0) { requestParameters = {}; }
177
227
  return __generator(this, function (_a) {
178
228
  switch (_a.label) {
179
229
  case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
@@ -0,0 +1,32 @@
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 DomainTldsDto
16
+ */
17
+ export interface DomainTldsDto {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof DomainTldsDto
22
+ */
23
+ tlds: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the DomainTldsDto interface.
27
+ */
28
+ export declare function instanceOfDomainTldsDto(value: object): value is DomainTldsDto;
29
+ export declare function DomainTldsDtoFromJSON(json: any): DomainTldsDto;
30
+ export declare function DomainTldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTldsDto;
31
+ export declare function DomainTldsDtoToJSON(json: any): DomainTldsDto;
32
+ export declare function DomainTldsDtoToJSONTyped(value?: DomainTldsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDomainTldsDto = instanceOfDomainTldsDto;
17
+ exports.DomainTldsDtoFromJSON = DomainTldsDtoFromJSON;
18
+ exports.DomainTldsDtoFromJSONTyped = DomainTldsDtoFromJSONTyped;
19
+ exports.DomainTldsDtoToJSON = DomainTldsDtoToJSON;
20
+ exports.DomainTldsDtoToJSONTyped = DomainTldsDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DomainTldsDto interface.
23
+ */
24
+ function instanceOfDomainTldsDto(value) {
25
+ if (!('tlds' in value) || value['tlds'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DomainTldsDtoFromJSON(json) {
30
+ return DomainTldsDtoFromJSONTyped(json, false);
31
+ }
32
+ function DomainTldsDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'tlds': json['tlds'],
38
+ };
39
+ }
40
+ function DomainTldsDtoToJSON(json) {
41
+ return DomainTldsDtoToJSONTyped(json, false);
42
+ }
43
+ function DomainTldsDtoToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'tlds': value['tlds'],
50
+ };
51
+ }
@@ -74,6 +74,7 @@ export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
74
74
  export * from './DomainSalesInformationRentConfigurationDto';
75
75
  export * from './DomainSellerDto';
76
76
  export * from './DomainStatsDto';
77
+ export * from './DomainTldsDto';
77
78
  export * from './DomainTransferAgentDto';
78
79
  export * from './DomainTransferDetailSellerPayoutInvoiceDto';
79
80
  export * from './DomainTransferDetailWorkflowStepActionDto';
@@ -92,6 +92,7 @@ __exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), expo
92
92
  __exportStar(require("./DomainSalesInformationRentConfigurationDto"), exports);
93
93
  __exportStar(require("./DomainSellerDto"), exports);
94
94
  __exportStar(require("./DomainStatsDto"), exports);
95
+ __exportStar(require("./DomainTldsDto"), exports);
95
96
  __exportStar(require("./DomainTransferAgentDto"), exports);
96
97
  __exportStar(require("./DomainTransferDetailSellerPayoutInvoiceDto"), exports);
97
98
  __exportStar(require("./DomainTransferDetailWorkflowStepActionDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.265",
3
+ "version": "0.0.267",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  DomainSalesInformationDto,
19
+ DomainTldsDto,
19
20
  List200Response3,
20
21
  NotFoundException,
21
22
  SortDto,
@@ -25,6 +26,8 @@ import type {
25
26
  import {
26
27
  DomainSalesInformationDtoFromJSON,
27
28
  DomainSalesInformationDtoToJSON,
29
+ DomainTldsDtoFromJSON,
30
+ DomainTldsDtoToJSON,
28
31
  List200Response3FromJSON,
29
32
  List200Response3ToJSON,
30
33
  NotFoundExceptionFromJSON,
@@ -37,6 +40,10 @@ import {
37
40
  ValidationExceptionToJSON,
38
41
  } from '../models/index';
39
42
 
43
+ export interface DomainsPublicApiGetAllTldsRequest {
44
+ seller?: string;
45
+ }
46
+
40
47
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
41
48
  domainName: string;
42
49
  includeStats?: boolean;
@@ -45,6 +52,7 @@ export interface DomainsPublicApiGetDomainSalesInformationRequest {
45
52
  }
46
53
 
47
54
  export interface DomainsPublicApiListRequest {
55
+ fuzzy: boolean;
48
56
  limit?: number;
49
57
  sort?: Array<SortDto>;
50
58
  filter?: string;
@@ -57,6 +65,36 @@ export interface DomainsPublicApiListRequest {
57
65
  */
58
66
  export class DomainsPublicApi extends runtime.BaseAPI {
59
67
 
68
+ /**
69
+ *
70
+ */
71
+ async getAllTldsRaw(requestParameters: DomainsPublicApiGetAllTldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTldsDto>> {
72
+ const queryParameters: any = {};
73
+
74
+ if (requestParameters['seller'] != null) {
75
+ queryParameters['seller'] = requestParameters['seller'];
76
+ }
77
+
78
+ const headerParameters: runtime.HTTPHeaders = {};
79
+
80
+ const response = await this.request({
81
+ path: `/domains/tlds`,
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ }, initOverrides);
86
+
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainTldsDtoFromJSON(jsonValue));
88
+ }
89
+
90
+ /**
91
+ *
92
+ */
93
+ async getAllTlds(requestParameters: DomainsPublicApiGetAllTldsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTldsDto> {
94
+ const response = await this.getAllTldsRaw(requestParameters, initOverrides);
95
+ return await response.value();
96
+ }
97
+
60
98
  /**
61
99
  *
62
100
  */
@@ -106,8 +144,19 @@ export class DomainsPublicApi extends runtime.BaseAPI {
106
144
  *
107
145
  */
108
146
  async listRaw(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response3>> {
147
+ if (requestParameters['fuzzy'] == null) {
148
+ throw new runtime.RequiredError(
149
+ 'fuzzy',
150
+ 'Required parameter "fuzzy" was null or undefined when calling list().'
151
+ );
152
+ }
153
+
109
154
  const queryParameters: any = {};
110
155
 
156
+ if (requestParameters['fuzzy'] != null) {
157
+ queryParameters['fuzzy'] = requestParameters['fuzzy'];
158
+ }
159
+
111
160
  if (requestParameters['limit'] != null) {
112
161
  queryParameters['limit'] = requestParameters['limit'];
113
162
  }
@@ -143,7 +192,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
143
192
  /**
144
193
  *
145
194
  */
146
- async list(requestParameters: DomainsPublicApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3> {
195
+ async list(requestParameters: DomainsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response3> {
147
196
  const response = await this.listRaw(requestParameters, initOverrides);
148
197
  return await response.value();
149
198
  }
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DomainTldsDto
20
+ */
21
+ export interface DomainTldsDto {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof DomainTldsDto
26
+ */
27
+ tlds: Array<string>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the DomainTldsDto interface.
32
+ */
33
+ export function instanceOfDomainTldsDto(value: object): value is DomainTldsDto {
34
+ if (!('tlds' in value) || value['tlds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function DomainTldsDtoFromJSON(json: any): DomainTldsDto {
39
+ return DomainTldsDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DomainTldsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTldsDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'tlds': json['tlds'],
49
+ };
50
+ }
51
+
52
+ export function DomainTldsDtoToJSON(json: any): DomainTldsDto {
53
+ return DomainTldsDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function DomainTldsDtoToJSONTyped(value?: DomainTldsDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'tlds': value['tlds'],
64
+ };
65
+ }
66
+
@@ -76,6 +76,7 @@ export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
76
76
  export * from './DomainSalesInformationRentConfigurationDto';
77
77
  export * from './DomainSellerDto';
78
78
  export * from './DomainStatsDto';
79
+ export * from './DomainTldsDto';
79
80
  export * from './DomainTransferAgentDto';
80
81
  export * from './DomainTransferDetailSellerPayoutInvoiceDto';
81
82
  export * from './DomainTransferDetailWorkflowStepActionDto';