@randock/nameshift-api-client 0.0.536 → 0.0.537
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/AdminApi.d.ts +13 -0
- package/dist/apis/AdminApi.js +53 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +46 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.537
|
|
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.537 --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
|
+
541f3de0f5f02776118e511205cccb348533ae6e631f977877744cd0f2ab935c1f6e4e0859b31ca09b3361d04ccf69cf
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -69,6 +69,9 @@ export interface AdminApiCreateNegativeInvoiceRequest {
|
|
|
69
69
|
export interface AdminApiCreateNewsletterRequest {
|
|
70
70
|
createNewsletterInput: CreateNewsletterInput;
|
|
71
71
|
}
|
|
72
|
+
export interface AdminApiDeleteAccountRequest {
|
|
73
|
+
accountId: string;
|
|
74
|
+
}
|
|
72
75
|
export interface AdminApiDeleteAccountNoteRequest {
|
|
73
76
|
accountId: string;
|
|
74
77
|
noteId: string;
|
|
@@ -619,6 +622,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
619
622
|
* Start a newsletter
|
|
620
623
|
*/
|
|
621
624
|
createNewsletter(requestParameters: AdminApiCreateNewsletterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NewsletterDto>;
|
|
625
|
+
/**
|
|
626
|
+
* Deletes the seller account with its users and unsold domains, as the seller deleting it would, without notifying the seller. Requires super admin role.
|
|
627
|
+
* Delete account
|
|
628
|
+
*/
|
|
629
|
+
deleteAccountRaw(requestParameters: AdminApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
630
|
+
/**
|
|
631
|
+
* Deletes the seller account with its users and unsold domains, as the seller deleting it would, without notifying the seller. Requires super admin role.
|
|
632
|
+
* Delete account
|
|
633
|
+
*/
|
|
634
|
+
deleteAccount(requestParameters: AdminApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
622
635
|
/**
|
|
623
636
|
* Soft-deletes a note. Only its author, or a super admin, may do so.
|
|
624
637
|
* Delete account note
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -928,6 +928,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
930
|
};
|
|
931
|
+
/**
|
|
932
|
+
* Deletes the seller account with its users and unsold domains, as the seller deleting it would, without notifying the seller. Requires super admin role.
|
|
933
|
+
* Delete account
|
|
934
|
+
*/
|
|
935
|
+
AdminApi.prototype.deleteAccountRaw = function (requestParameters, initOverrides) {
|
|
936
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
937
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
938
|
+
return __generator(this, function (_a) {
|
|
939
|
+
switch (_a.label) {
|
|
940
|
+
case 0:
|
|
941
|
+
if (requestParameters['accountId'] == null) {
|
|
942
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling deleteAccount().');
|
|
943
|
+
}
|
|
944
|
+
queryParameters = {};
|
|
945
|
+
headerParameters = {};
|
|
946
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
947
|
+
token = this.configuration.accessToken;
|
|
948
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
949
|
+
case 1:
|
|
950
|
+
tokenString = _a.sent();
|
|
951
|
+
if (tokenString) {
|
|
952
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
953
|
+
}
|
|
954
|
+
_a.label = 2;
|
|
955
|
+
case 2: return [4 /*yield*/, this.request({
|
|
956
|
+
path: "/admin/accounts/{accountId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
957
|
+
method: 'DELETE',
|
|
958
|
+
headers: headerParameters,
|
|
959
|
+
query: queryParameters,
|
|
960
|
+
}, initOverrides)];
|
|
961
|
+
case 3:
|
|
962
|
+
response = _a.sent();
|
|
963
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
});
|
|
967
|
+
};
|
|
968
|
+
/**
|
|
969
|
+
* Deletes the seller account with its users and unsold domains, as the seller deleting it would, without notifying the seller. Requires super admin role.
|
|
970
|
+
* Delete account
|
|
971
|
+
*/
|
|
972
|
+
AdminApi.prototype.deleteAccount = function (requestParameters, initOverrides) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
974
|
+
return __generator(this, function (_a) {
|
|
975
|
+
switch (_a.label) {
|
|
976
|
+
case 0: return [4 /*yield*/, this.deleteAccountRaw(requestParameters, initOverrides)];
|
|
977
|
+
case 1:
|
|
978
|
+
_a.sent();
|
|
979
|
+
return [2 /*return*/];
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
});
|
|
983
|
+
};
|
|
931
984
|
/**
|
|
932
985
|
* Soft-deletes a note. Only its author, or a super admin, may do so.
|
|
933
986
|
* Delete account note
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -339,6 +339,10 @@ export interface AdminApiCreateNewsletterRequest {
|
|
|
339
339
|
createNewsletterInput: CreateNewsletterInput;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
export interface AdminApiDeleteAccountRequest {
|
|
343
|
+
accountId: string;
|
|
344
|
+
}
|
|
345
|
+
|
|
342
346
|
export interface AdminApiDeleteAccountNoteRequest {
|
|
343
347
|
accountId: string;
|
|
344
348
|
noteId: string;
|
|
@@ -1511,6 +1515,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1511
1515
|
return await response.value();
|
|
1512
1516
|
}
|
|
1513
1517
|
|
|
1518
|
+
/**
|
|
1519
|
+
* Deletes the seller account with its users and unsold domains, as the seller deleting it would, without notifying the seller. Requires super admin role.
|
|
1520
|
+
* Delete account
|
|
1521
|
+
*/
|
|
1522
|
+
async deleteAccountRaw(requestParameters: AdminApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1523
|
+
if (requestParameters['accountId'] == null) {
|
|
1524
|
+
throw new runtime.RequiredError(
|
|
1525
|
+
'accountId',
|
|
1526
|
+
'Required parameter "accountId" was null or undefined when calling deleteAccount().'
|
|
1527
|
+
);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
const queryParameters: any = {};
|
|
1531
|
+
|
|
1532
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1533
|
+
|
|
1534
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1535
|
+
const token = this.configuration.accessToken;
|
|
1536
|
+
const tokenString = await token("bearer", []);
|
|
1537
|
+
|
|
1538
|
+
if (tokenString) {
|
|
1539
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
const response = await this.request({
|
|
1543
|
+
path: `/admin/accounts/{accountId}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
1544
|
+
method: 'DELETE',
|
|
1545
|
+
headers: headerParameters,
|
|
1546
|
+
query: queryParameters,
|
|
1547
|
+
}, initOverrides);
|
|
1548
|
+
|
|
1549
|
+
return new runtime.VoidApiResponse(response);
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* Deletes the seller account with its users and unsold domains, as the seller deleting it would, without notifying the seller. Requires super admin role.
|
|
1554
|
+
* Delete account
|
|
1555
|
+
*/
|
|
1556
|
+
async deleteAccount(requestParameters: AdminApiDeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1557
|
+
await this.deleteAccountRaw(requestParameters, initOverrides);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1514
1560
|
/**
|
|
1515
1561
|
* Soft-deletes a note. Only its author, or a super admin, may do so.
|
|
1516
1562
|
* Delete account note
|