@randock/nameshift-api-client 0.0.478 → 0.0.479

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.478
1
+ ## @randock/nameshift-api-client@0.0.479
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.478 --save
39
+ npm install @randock/nameshift-api-client@0.0.479 --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
- b2f3ceb4ef1cbd44cb889a755ae77a8a985ccf72e3ed633a0d25e4df1c84d61b75ca3e4153c3c68dcac779748b7d6848
47
+ 7b9323bda73bf014c44a01f32534b2e06c06396dbc535bde6faab88443a9aa3cc9455ae913b0df1708568ecf78b1a181
@@ -45,6 +45,10 @@ export interface DomainsApiCheckDomainVerificationRequest {
45
45
  export interface DomainsApiDeleteDomainsRequest {
46
46
  deleteDomainsInput: DeleteDomainsInput;
47
47
  }
48
+ export interface DomainsApiExportDomainsRequest {
49
+ searchFilter?: string;
50
+ filter?: object;
51
+ }
48
52
  export interface DomainsApiGetAffiliateCommissionRequest {
49
53
  domainName: string;
50
54
  }
@@ -211,15 +215,15 @@ export declare class DomainsApi extends runtime.BaseAPI {
211
215
  */
212
216
  deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
213
217
  /**
214
- * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
218
+ * Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
215
219
  * Export domains
216
220
  */
217
- exportDomainsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
221
+ exportDomainsRaw(requestParameters: DomainsApiExportDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
218
222
  /**
219
- * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
223
+ * Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
220
224
  * Export domains
221
225
  */
222
- exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
226
+ exportDomains(requestParameters?: DomainsApiExportDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
223
227
  /**
224
228
  * Returns the affiliate commission information for a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
225
229
  * Get domain affiliate commission
@@ -692,16 +692,22 @@ var DomainsApi = /** @class */ (function (_super) {
692
692
  });
693
693
  };
694
694
  /**
695
- * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
695
+ * Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
696
696
  * Export domains
697
697
  */
698
- DomainsApi.prototype.exportDomainsRaw = function (initOverrides) {
698
+ DomainsApi.prototype.exportDomainsRaw = function (requestParameters, initOverrides) {
699
699
  return __awaiter(this, void 0, void 0, function () {
700
700
  var queryParameters, headerParameters, _a, _b, token, tokenString, response;
701
701
  return __generator(this, function (_c) {
702
702
  switch (_c.label) {
703
703
  case 0:
704
704
  queryParameters = {};
705
+ if (requestParameters['searchFilter'] != null) {
706
+ queryParameters['searchFilter'] = requestParameters['searchFilter'];
707
+ }
708
+ if (requestParameters['filter'] != null) {
709
+ queryParameters['filter'] = requestParameters['filter'];
710
+ }
705
711
  headerParameters = {};
706
712
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
707
713
  _a = headerParameters;
@@ -734,14 +740,15 @@ var DomainsApi = /** @class */ (function (_super) {
734
740
  });
735
741
  };
736
742
  /**
737
- * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
743
+ * Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
738
744
  * Export domains
739
745
  */
740
- DomainsApi.prototype.exportDomains = function (initOverrides) {
741
- return __awaiter(this, void 0, void 0, function () {
746
+ DomainsApi.prototype.exportDomains = function () {
747
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
748
+ if (requestParameters === void 0) { requestParameters = {}; }
742
749
  return __generator(this, function (_a) {
743
750
  switch (_a.label) {
744
- case 0: return [4 /*yield*/, this.exportDomainsRaw(initOverrides)];
751
+ case 0: return [4 /*yield*/, this.exportDomainsRaw(requestParameters, initOverrides)];
745
752
  case 1:
746
753
  _a.sent();
747
754
  return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.478",
3
+ "version": "0.0.479",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -144,6 +144,11 @@ export interface DomainsApiDeleteDomainsRequest {
144
144
  deleteDomainsInput: DeleteDomainsInput;
145
145
  }
146
146
 
147
+ export interface DomainsApiExportDomainsRequest {
148
+ searchFilter?: string;
149
+ filter?: object;
150
+ }
151
+
147
152
  export interface DomainsApiGetAffiliateCommissionRequest {
148
153
  domainName: string;
149
154
  }
@@ -711,12 +716,20 @@ export class DomainsApi extends runtime.BaseAPI {
711
716
  }
712
717
 
713
718
  /**
714
- * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
719
+ * Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
715
720
  * Export domains
716
721
  */
717
- async exportDomainsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
722
+ async exportDomainsRaw(requestParameters: DomainsApiExportDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
718
723
  const queryParameters: any = {};
719
724
 
725
+ if (requestParameters['searchFilter'] != null) {
726
+ queryParameters['searchFilter'] = requestParameters['searchFilter'];
727
+ }
728
+
729
+ if (requestParameters['filter'] != null) {
730
+ queryParameters['filter'] = requestParameters['filter'];
731
+ }
732
+
720
733
  const headerParameters: runtime.HTTPHeaders = {};
721
734
 
722
735
  if (this.configuration && this.configuration.apiKey) {
@@ -742,11 +755,11 @@ export class DomainsApi extends runtime.BaseAPI {
742
755
  }
743
756
 
744
757
  /**
745
- * Queues an export of all domains for the current seller account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
758
+ * Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
746
759
  * Export domains
747
760
  */
748
- async exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
749
- await this.exportDomainsRaw(initOverrides);
761
+ async exportDomains(requestParameters: DomainsApiExportDomainsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
762
+ await this.exportDomainsRaw(requestParameters, initOverrides);
750
763
  }
751
764
 
752
765
  /**