@randock/nameshift-api-client 0.0.530 → 0.0.531
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 +3 -3
- package/dist/apis/DomainsApi.d.ts +2 -2
- package/dist/apis/DomainsApi.js +2 -2
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.531
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.531 --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
|
-
|
|
47
|
+
e519a9375e36a3cbbc74292937535e361e1439fb5562d26fc6be5d468adbd871778762dcd5ec52ea93766c8e0412829f
|
|
@@ -136,12 +136,12 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
136
136
|
*/
|
|
137
137
|
applyDomainEdit(requestParameters: DomainsApiApplyDomainEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto>;
|
|
138
138
|
/**
|
|
139
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
139
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
140
140
|
* Import domains
|
|
141
141
|
*/
|
|
142
142
|
batchImportRaw(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsResponseDto>>;
|
|
143
143
|
/**
|
|
144
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
144
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
145
145
|
* Import domains
|
|
146
146
|
*/
|
|
147
147
|
batchImport(requestParameters?: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsResponseDto>;
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -147,7 +147,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
149
|
/**
|
|
150
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
150
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
151
151
|
* Import domains
|
|
152
152
|
*/
|
|
153
153
|
DomainsApi.prototype.batchImportRaw = function (requestParameters, initOverrides) {
|
|
@@ -213,7 +213,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
215
|
/**
|
|
216
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
216
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
217
217
|
* Import domains
|
|
218
218
|
*/
|
|
219
219
|
DomainsApi.prototype.batchImport = function () {
|
package/package.json
CHANGED
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -290,7 +290,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
293
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
294
294
|
* Import domains
|
|
295
295
|
*/
|
|
296
296
|
async batchImportRaw(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsResponseDto>> {
|
|
@@ -350,7 +350,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
353
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
354
354
|
* Import domains
|
|
355
355
|
*/
|
|
356
356
|
async batchImport(requestParameters: DomainsApiBatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsResponseDto> {
|