@randock/nameshift-api-client 0.0.14 → 0.0.16

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.
@@ -21,7 +21,6 @@ src/models/CreateLeadInput.ts
21
21
  src/models/CreateLeadMessageInput.ts
22
22
  src/models/DeleteDomainsInput.ts
23
23
  src/models/DomainDto.ts
24
- src/models/ImportDomainsDto.ts
25
24
  src/models/IntersectionAccountDtoWithAddressDto.ts
26
25
  src/models/IntersectionAccountDtoWithFinancialDto.ts
27
26
  src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, ImportDomainsDto, List200Response, UpdateDomainInput } from '../models/index';
13
+ import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, List200Response, UpdateDomainInput } from '../models/index';
14
14
  export interface BatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
@@ -41,11 +41,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
41
41
  /**
42
42
  *
43
43
  */
44
- batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsDto>>;
44
+ batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
45
  /**
46
46
  *
47
47
  */
48
- batchImport(requestParameters?: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsDto>;
48
+ batchImport(requestParameters?: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
49
49
  /**
50
50
  *
51
51
  */
@@ -124,7 +124,7 @@ var DomainsApi = /** @class */ (function (_super) {
124
124
  }, initOverrides)];
125
125
  case 3:
126
126
  response = _a.sent();
127
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ImportDomainsDtoFromJSON)(jsonValue); })];
127
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
128
128
  }
129
129
  });
130
130
  });
@@ -135,14 +135,12 @@ var DomainsApi = /** @class */ (function (_super) {
135
135
  DomainsApi.prototype.batchImport = function (requestParameters, initOverrides) {
136
136
  if (requestParameters === void 0) { requestParameters = {}; }
137
137
  return __awaiter(this, void 0, void 0, function () {
138
- var response;
139
138
  return __generator(this, function (_a) {
140
139
  switch (_a.label) {
141
140
  case 0: return [4 /*yield*/, this.batchImportRaw(requestParameters, initOverrides)];
142
141
  case 1:
143
- response = _a.sent();
144
- return [4 /*yield*/, response.value()];
145
- case 2: return [2 /*return*/, _a.sent()];
142
+ _a.sent();
143
+ return [2 /*return*/];
146
144
  }
147
145
  });
148
146
  });
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { CreateLeadInput, LeadDto } from '../models/index';
14
- export interface PublicLeadControllerPostLeadRequest {
14
+ export interface CreateLeadRequest {
15
15
  createLeadInput: CreateLeadInput;
16
16
  }
17
17
  /**
@@ -19,9 +19,11 @@ export interface PublicLeadControllerPostLeadRequest {
19
19
  */
20
20
  export declare class LeadsPublicApi extends runtime.BaseAPI {
21
21
  /**
22
+ *
22
23
  */
23
- publicLeadControllerPostLeadRaw(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
24
+ createLeadRaw(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
24
25
  /**
26
+ *
25
27
  */
26
- publicLeadControllerPostLead(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
28
+ createLead(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
27
29
  }
@@ -76,15 +76,16 @@ var LeadsPublicApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
+ *
79
80
  */
80
- LeadsPublicApi.prototype.publicLeadControllerPostLeadRaw = function (requestParameters, initOverrides) {
81
+ LeadsPublicApi.prototype.createLeadRaw = function (requestParameters, initOverrides) {
81
82
  return __awaiter(this, void 0, void 0, function () {
82
83
  var queryParameters, headerParameters, response;
83
84
  return __generator(this, function (_a) {
84
85
  switch (_a.label) {
85
86
  case 0:
86
87
  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
+ throw new runtime.RequiredError('createLeadInput', 'Required parameter requestParameters.createLeadInput was null or undefined when calling createLead.');
88
89
  }
89
90
  queryParameters = {};
90
91
  headerParameters = {};
@@ -104,13 +105,14 @@ var LeadsPublicApi = /** @class */ (function (_super) {
104
105
  });
105
106
  };
106
107
  /**
108
+ *
107
109
  */
108
- LeadsPublicApi.prototype.publicLeadControllerPostLead = function (requestParameters, initOverrides) {
110
+ LeadsPublicApi.prototype.createLead = function (requestParameters, initOverrides) {
109
111
  return __awaiter(this, void 0, void 0, function () {
110
112
  var response;
111
113
  return __generator(this, function (_a) {
112
114
  switch (_a.label) {
113
- case 0: return [4 /*yield*/, this.publicLeadControllerPostLeadRaw(requestParameters, initOverrides)];
115
+ case 0: return [4 /*yield*/, this.createLeadRaw(requestParameters, initOverrides)];
114
116
  case 1:
115
117
  response = _a.sent();
116
118
  return [4 /*yield*/, response.value()];
@@ -9,7 +9,6 @@ export * from './CreateLeadInput';
9
9
  export * from './CreateLeadMessageInput';
10
10
  export * from './DeleteDomainsInput';
11
11
  export * from './DomainDto';
12
- export * from './ImportDomainsDto';
13
12
  export * from './IntersectionAccountDtoWithAddressDto';
14
13
  export * from './IntersectionAccountDtoWithFinancialDto';
15
14
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
@@ -27,7 +27,6 @@ __exportStar(require("./CreateLeadInput"), exports);
27
27
  __exportStar(require("./CreateLeadMessageInput"), exports);
28
28
  __exportStar(require("./DeleteDomainsInput"), exports);
29
29
  __exportStar(require("./DomainDto"), exports);
30
- __exportStar(require("./ImportDomainsDto"), exports);
31
30
  __exportStar(require("./IntersectionAccountDtoWithAddressDto"), exports);
32
31
  __exportStar(require("./IntersectionAccountDtoWithFinancialDto"), exports);
33
32
  __exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
- "author": "OpenAPI-Generator",
6
5
  "main": "./dist/index.js",
7
6
  "typings": "./dist/index.d.ts",
8
7
  "scripts": {
@@ -19,7 +19,6 @@ import type {
19
19
  BatchUpdateDomainsInput,
20
20
  DeleteDomainsInput,
21
21
  DomainDto,
22
- ImportDomainsDto,
23
22
  List200Response,
24
23
  List400Response,
25
24
  List401Response,
@@ -35,8 +34,6 @@ import {
35
34
  DeleteDomainsInputToJSON,
36
35
  DomainDtoFromJSON,
37
36
  DomainDtoToJSON,
38
- ImportDomainsDtoFromJSON,
39
- ImportDomainsDtoToJSON,
40
37
  List200ResponseFromJSON,
41
38
  List200ResponseToJSON,
42
39
  List400ResponseFromJSON,
@@ -86,7 +83,7 @@ export class DomainsApi extends runtime.BaseAPI {
86
83
  /**
87
84
  *
88
85
  */
89
- async batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsDto>> {
86
+ async batchImportRaw(requestParameters: BatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
90
87
  const queryParameters: any = {};
91
88
 
92
89
  const headerParameters: runtime.HTTPHeaders = {};
@@ -131,15 +128,14 @@ export class DomainsApi extends runtime.BaseAPI {
131
128
  body: formParams,
132
129
  }, initOverrides);
133
130
 
134
- return new runtime.JSONApiResponse(response, (jsonValue) => ImportDomainsDtoFromJSON(jsonValue));
131
+ return new runtime.VoidApiResponse(response);
135
132
  }
136
133
 
137
134
  /**
138
135
  *
139
136
  */
140
- async batchImport(requestParameters: BatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsDto> {
141
- const response = await this.batchImportRaw(requestParameters, initOverrides);
142
- return await response.value();
137
+ async batchImport(requestParameters: BatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
138
+ await this.batchImportRaw(requestParameters, initOverrides);
143
139
  }
144
140
 
145
141
  /**
@@ -18,6 +18,7 @@ import type {
18
18
  BatchUpdate404Response,
19
19
  CreateLeadInput,
20
20
  LeadDto,
21
+ UpdateSettings429Response,
21
22
  } from '../models/index';
22
23
  import {
23
24
  BatchUpdate404ResponseFromJSON,
@@ -26,9 +27,11 @@ import {
26
27
  CreateLeadInputToJSON,
27
28
  LeadDtoFromJSON,
28
29
  LeadDtoToJSON,
30
+ UpdateSettings429ResponseFromJSON,
31
+ UpdateSettings429ResponseToJSON,
29
32
  } from '../models/index';
30
33
 
31
- export interface PublicLeadControllerPostLeadRequest {
34
+ export interface CreateLeadRequest {
32
35
  createLeadInput: CreateLeadInput;
33
36
  }
34
37
 
@@ -38,10 +41,11 @@ export interface PublicLeadControllerPostLeadRequest {
38
41
  export class LeadsPublicApi extends runtime.BaseAPI {
39
42
 
40
43
  /**
44
+ *
41
45
  */
42
- async publicLeadControllerPostLeadRaw(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>> {
46
+ async createLeadRaw(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>> {
43
47
  if (requestParameters.createLeadInput === null || requestParameters.createLeadInput === undefined) {
44
- throw new runtime.RequiredError('createLeadInput','Required parameter requestParameters.createLeadInput was null or undefined when calling publicLeadControllerPostLead.');
48
+ throw new runtime.RequiredError('createLeadInput','Required parameter requestParameters.createLeadInput was null or undefined when calling createLead.');
45
49
  }
46
50
 
47
51
  const queryParameters: any = {};
@@ -62,9 +66,10 @@ export class LeadsPublicApi extends runtime.BaseAPI {
62
66
  }
63
67
 
64
68
  /**
69
+ *
65
70
  */
66
- async publicLeadControllerPostLead(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto> {
67
- const response = await this.publicLeadControllerPostLeadRaw(requestParameters, initOverrides);
71
+ async createLead(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto> {
72
+ const response = await this.createLeadRaw(requestParameters, initOverrides);
68
73
  return await response.value();
69
74
  }
70
75
 
@@ -11,7 +11,6 @@ export * from './CreateLeadInput';
11
11
  export * from './CreateLeadMessageInput';
12
12
  export * from './DeleteDomainsInput';
13
13
  export * from './DomainDto';
14
- export * from './ImportDomainsDto';
15
14
  export * from './IntersectionAccountDtoWithAddressDto';
16
15
  export * from './IntersectionAccountDtoWithFinancialDto';
17
16
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';