@randock/nameshift-api-client 0.0.315 → 0.0.317
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/.openapi-generator/FILES +9 -0
- package/README.md +3 -3
- package/dist/apis/DomainTransfersApi.d.ts +26 -0
- package/dist/apis/DomainTransfersApi.js +130 -0
- package/dist/apis/NotificationsApi.d.ts +70 -0
- package/dist/apis/NotificationsApi.js +309 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountSettingsDto.d.ts +6 -0
- package/dist/models/AccountSettingsDto.js +4 -0
- package/dist/models/AccountSettingsInput.d.ts +6 -0
- package/dist/models/AccountSettingsInput.js +2 -0
- package/dist/models/BulkMarkNotificationsAsReadInputDto.d.ts +38 -0
- package/dist/models/BulkMarkNotificationsAsReadInputDto.js +55 -0
- package/dist/models/DomainTransferTldInformationDto.d.ts +41 -0
- package/dist/models/DomainTransferTldInformationDto.js +56 -0
- package/dist/models/DomainTransferTldInformationResultDto.d.ts +39 -0
- package/dist/models/DomainTransferTldInformationResultDto.js +56 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
- package/dist/models/ListNotifications200Response.d.ts +47 -0
- package/dist/models/ListNotifications200Response.js +62 -0
- package/dist/models/UserNotificationAttachmentDto.d.ts +44 -0
- package/dist/models/UserNotificationAttachmentDto.js +59 -0
- package/dist/models/UserNotificationDto.d.ts +132 -0
- package/dist/models/UserNotificationDto.js +139 -0
- package/dist/models/UserNotificationListItemDto.d.ts +125 -0
- package/dist/models/UserNotificationListItemDto.js +134 -0
- package/dist/models/WithSettingsInner.d.ts +6 -0
- package/dist/models/WithSettingsInner.js +4 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/DomainTransfersApi.ts +70 -0
- package/src/apis/NotificationsApi.ts +251 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountSettingsDto.ts +9 -0
- package/src/models/AccountSettingsInput.ts +8 -0
- package/src/models/BulkMarkNotificationsAsReadInputDto.ts +75 -0
- package/src/models/DomainTransferTldInformationDto.ts +83 -0
- package/src/models/DomainTransferTldInformationResultDto.ts +83 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
- package/src/models/ListNotifications200Response.ts +106 -0
- package/src/models/UserNotificationAttachmentDto.ts +84 -0
- package/src/models/UserNotificationDto.ts +194 -0
- package/src/models/UserNotificationListItemDto.ts +177 -0
- package/src/models/WithSettingsInner.ts +9 -0
- package/src/models/index.ts +7 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -9,12 +9,14 @@ src/apis/AdminApi.ts
|
|
|
9
9
|
src/apis/BankAccountsApi.ts
|
|
10
10
|
src/apis/BuyersApi.ts
|
|
11
11
|
src/apis/BuyersPublicApi.ts
|
|
12
|
+
src/apis/DomainTransfersApi.ts
|
|
12
13
|
src/apis/DomainsApi.ts
|
|
13
14
|
src/apis/DomainsPublicApi.ts
|
|
14
15
|
src/apis/EppApi.ts
|
|
15
16
|
src/apis/InvoicesApi.ts
|
|
16
17
|
src/apis/LeadsApi.ts
|
|
17
18
|
src/apis/LeadsPublicApi.ts
|
|
19
|
+
src/apis/NotificationsApi.ts
|
|
18
20
|
src/apis/OrdersPublicApi.ts
|
|
19
21
|
src/apis/SalesPublicApi.ts
|
|
20
22
|
src/apis/StatsApi.ts
|
|
@@ -74,6 +76,7 @@ src/models/BatchReadSellerLeadMessageInput.ts
|
|
|
74
76
|
src/models/BatchUpdateDomainsInput.ts
|
|
75
77
|
src/models/BatchVerifyBuyerLeadsInput.ts
|
|
76
78
|
src/models/BillingInformationDto.ts
|
|
79
|
+
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
77
80
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
78
81
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
79
82
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
@@ -134,6 +137,8 @@ src/models/DomainTransferDto.ts
|
|
|
134
137
|
src/models/DomainTransferOrderDto.ts
|
|
135
138
|
src/models/DomainTransferSellerAccountDto.ts
|
|
136
139
|
src/models/DomainTransferSubscriptionDto.ts
|
|
140
|
+
src/models/DomainTransferTldInformationDto.ts
|
|
141
|
+
src/models/DomainTransferTldInformationResultDto.ts
|
|
137
142
|
src/models/DomainTransferWorkflowDto.ts
|
|
138
143
|
src/models/DomainUrlDto.ts
|
|
139
144
|
src/models/EppBatchUpdateInput.ts
|
|
@@ -195,6 +200,7 @@ src/models/ListAccounts200Response.ts
|
|
|
195
200
|
src/models/ListBankAccounts200Response.ts
|
|
196
201
|
src/models/ListDomains200Response.ts
|
|
197
202
|
src/models/ListLeadMessagesDto.ts
|
|
203
|
+
src/models/ListNotifications200Response.ts
|
|
198
204
|
src/models/LoginDto.ts
|
|
199
205
|
src/models/LoginInput.ts
|
|
200
206
|
src/models/MajesticMetrics.ts
|
|
@@ -306,6 +312,9 @@ src/models/UpdateOrderInput.ts
|
|
|
306
312
|
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
307
313
|
src/models/UpdateSubscriptionInput.ts
|
|
308
314
|
src/models/UsBankAccountDetails.ts
|
|
315
|
+
src/models/UserNotificationAttachmentDto.ts
|
|
316
|
+
src/models/UserNotificationDto.ts
|
|
317
|
+
src/models/UserNotificationListItemDto.ts
|
|
309
318
|
src/models/UserPasswordResetDto.ts
|
|
310
319
|
src/models/ValidateTaxNumberDto.ts
|
|
311
320
|
src/models/ValidateTaxNumberInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.317
|
|
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.317 --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
|
+
5ab6f7b25ddef8797ee452e2da8fad36ed5adf75b0a0750f9ace49863a1f9bac0c1541153d49b3d7112d0fe3463c3cda
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { DomainTransferTldInformationDto } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class DomainTransfersApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
getDomainTransferTldsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferTldInformationDto>>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
getDomainTransferTlds(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferTldInformationDto>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DomainTransfersApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DomainTransfersApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DomainTransfersApi, _super);
|
|
75
|
+
function DomainTransfersApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
DomainTransfersApi.prototype.getDomainTransferTldsRaw = function (initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
|
+
token = this.configuration.accessToken;
|
|
91
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
92
|
+
case 1:
|
|
93
|
+
tokenString = _a.sent();
|
|
94
|
+
if (tokenString) {
|
|
95
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
96
|
+
}
|
|
97
|
+
_a.label = 2;
|
|
98
|
+
case 2: return [4 /*yield*/, this.request({
|
|
99
|
+
path: "/private/domain-transfers/tlds",
|
|
100
|
+
method: 'GET',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
}, initOverrides)];
|
|
104
|
+
case 3:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainTransferTldInformationDtoFromJSON)(jsonValue); })];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
DomainTransfersApi.prototype.getDomainTransferTlds = function (initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var response;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0: return [4 /*yield*/, this.getDomainTransferTldsRaw(initOverrides)];
|
|
120
|
+
case 1:
|
|
121
|
+
response = _a.sent();
|
|
122
|
+
return [4 /*yield*/, response.value()];
|
|
123
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
return DomainTransfersApi;
|
|
129
|
+
}(runtime.BaseAPI));
|
|
130
|
+
exports.DomainTransfersApi = DomainTransfersApi;
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { BulkMarkNotificationsAsReadInputDto, ListNotifications200Response, UserNotificationDto } from '../models/index';
|
|
14
|
+
export interface NotificationsApiBulkMarkNotificationsAsReadRequest {
|
|
15
|
+
bulkMarkNotificationsAsReadInputDto: BulkMarkNotificationsAsReadInputDto;
|
|
16
|
+
}
|
|
17
|
+
export interface NotificationsApiDownloadNotificationAttachmentRequest {
|
|
18
|
+
notificationId: string;
|
|
19
|
+
attachmentId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface NotificationsApiGetNotificationByIdRequest {
|
|
22
|
+
notificationId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface NotificationsApiListNotificationsRequest {
|
|
25
|
+
filter?: object;
|
|
26
|
+
page?: number;
|
|
27
|
+
limit?: number;
|
|
28
|
+
sortBy?: Array<string>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare class NotificationsApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
36
|
+
* Bulk mark notifications as read or unread
|
|
37
|
+
*/
|
|
38
|
+
bulkMarkNotificationsAsReadRaw(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
39
|
+
/**
|
|
40
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
41
|
+
* Bulk mark notifications as read or unread
|
|
42
|
+
*/
|
|
43
|
+
bulkMarkNotificationsAsRead(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Download a specific notification attachment by attachment ID
|
|
46
|
+
* Download notification attachment
|
|
47
|
+
*/
|
|
48
|
+
downloadNotificationAttachmentRaw(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
49
|
+
/**
|
|
50
|
+
* Download a specific notification attachment by attachment ID
|
|
51
|
+
* Download notification attachment
|
|
52
|
+
*/
|
|
53
|
+
downloadNotificationAttachment(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
getNotificationByIdRaw(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserNotificationDto>>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
getNotificationById(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationDto>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
listNotificationsRaw(requestParameters: NotificationsApiListNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListNotifications200Response>>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
listNotifications(requestParameters?: NotificationsApiListNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListNotifications200Response>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.NotificationsApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var NotificationsApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(NotificationsApi, _super);
|
|
75
|
+
function NotificationsApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
80
|
+
* Bulk mark notifications as read or unread
|
|
81
|
+
*/
|
|
82
|
+
NotificationsApi.prototype.bulkMarkNotificationsAsReadRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['bulkMarkNotificationsAsReadInputDto'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('bulkMarkNotificationsAsReadInputDto', 'Required parameter "bulkMarkNotificationsAsReadInputDto" was null or undefined when calling bulkMarkNotificationsAsRead().');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
95
|
+
token = this.configuration.accessToken;
|
|
96
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
97
|
+
case 1:
|
|
98
|
+
tokenString = _a.sent();
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
101
|
+
}
|
|
102
|
+
_a.label = 2;
|
|
103
|
+
case 2: return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/private/notifications/bulk-mark-as-read",
|
|
105
|
+
method: 'PATCH',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: (0, index_1.BulkMarkNotificationsAsReadInputDtoToJSON)(requestParameters['bulkMarkNotificationsAsReadInputDto']),
|
|
109
|
+
}, initOverrides)];
|
|
110
|
+
case 3:
|
|
111
|
+
response = _a.sent();
|
|
112
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
119
|
+
* Bulk mark notifications as read or unread
|
|
120
|
+
*/
|
|
121
|
+
NotificationsApi.prototype.bulkMarkNotificationsAsRead = function (requestParameters, initOverrides) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
123
|
+
return __generator(this, function (_a) {
|
|
124
|
+
switch (_a.label) {
|
|
125
|
+
case 0: return [4 /*yield*/, this.bulkMarkNotificationsAsReadRaw(requestParameters, initOverrides)];
|
|
126
|
+
case 1:
|
|
127
|
+
_a.sent();
|
|
128
|
+
return [2 /*return*/];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Download a specific notification attachment by attachment ID
|
|
135
|
+
* Download notification attachment
|
|
136
|
+
*/
|
|
137
|
+
NotificationsApi.prototype.downloadNotificationAttachmentRaw = function (requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
switch (_a.label) {
|
|
142
|
+
case 0:
|
|
143
|
+
if (requestParameters['notificationId'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling downloadNotificationAttachment().');
|
|
145
|
+
}
|
|
146
|
+
if (requestParameters['attachmentId'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('attachmentId', 'Required parameter "attachmentId" was null or undefined when calling downloadNotificationAttachment().');
|
|
148
|
+
}
|
|
149
|
+
queryParameters = {};
|
|
150
|
+
headerParameters = {};
|
|
151
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
152
|
+
token = this.configuration.accessToken;
|
|
153
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
154
|
+
case 1:
|
|
155
|
+
tokenString = _a.sent();
|
|
156
|
+
if (tokenString) {
|
|
157
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
158
|
+
}
|
|
159
|
+
_a.label = 2;
|
|
160
|
+
case 2: return [4 /*yield*/, this.request({
|
|
161
|
+
path: "/private/notifications/{notificationId}/attachments/{attachmentId}/download".replace("{".concat("notificationId", "}"), encodeURIComponent(String(requestParameters['notificationId']))).replace("{".concat("attachmentId", "}"), encodeURIComponent(String(requestParameters['attachmentId']))),
|
|
162
|
+
method: 'GET',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
}, initOverrides)];
|
|
166
|
+
case 3:
|
|
167
|
+
response = _a.sent();
|
|
168
|
+
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Download a specific notification attachment by attachment ID
|
|
175
|
+
* Download notification attachment
|
|
176
|
+
*/
|
|
177
|
+
NotificationsApi.prototype.downloadNotificationAttachment = function (requestParameters, initOverrides) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
+
var response;
|
|
180
|
+
return __generator(this, function (_a) {
|
|
181
|
+
switch (_a.label) {
|
|
182
|
+
case 0: return [4 /*yield*/, this.downloadNotificationAttachmentRaw(requestParameters, initOverrides)];
|
|
183
|
+
case 1:
|
|
184
|
+
response = _a.sent();
|
|
185
|
+
return [4 /*yield*/, response.value()];
|
|
186
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
NotificationsApi.prototype.getNotificationByIdRaw = function (requestParameters, initOverrides) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
196
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
197
|
+
return __generator(this, function (_a) {
|
|
198
|
+
switch (_a.label) {
|
|
199
|
+
case 0:
|
|
200
|
+
if (requestParameters['notificationId'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling getNotificationById().');
|
|
202
|
+
}
|
|
203
|
+
queryParameters = {};
|
|
204
|
+
headerParameters = {};
|
|
205
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
206
|
+
token = this.configuration.accessToken;
|
|
207
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
208
|
+
case 1:
|
|
209
|
+
tokenString = _a.sent();
|
|
210
|
+
if (tokenString) {
|
|
211
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
212
|
+
}
|
|
213
|
+
_a.label = 2;
|
|
214
|
+
case 2: return [4 /*yield*/, this.request({
|
|
215
|
+
path: "/private/notifications/{notificationId}".replace("{".concat("notificationId", "}"), encodeURIComponent(String(requestParameters['notificationId']))),
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
}, initOverrides)];
|
|
220
|
+
case 3:
|
|
221
|
+
response = _a.sent();
|
|
222
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserNotificationDtoFromJSON)(jsonValue); })];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
*/
|
|
230
|
+
NotificationsApi.prototype.getNotificationById = function (requestParameters, initOverrides) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
232
|
+
var response;
|
|
233
|
+
return __generator(this, function (_a) {
|
|
234
|
+
switch (_a.label) {
|
|
235
|
+
case 0: return [4 /*yield*/, this.getNotificationByIdRaw(requestParameters, initOverrides)];
|
|
236
|
+
case 1:
|
|
237
|
+
response = _a.sent();
|
|
238
|
+
return [4 /*yield*/, response.value()];
|
|
239
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
NotificationsApi.prototype.listNotificationsRaw = function (requestParameters, initOverrides) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
switch (_a.label) {
|
|
252
|
+
case 0:
|
|
253
|
+
queryParameters = {};
|
|
254
|
+
if (requestParameters['filter'] != null) {
|
|
255
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
256
|
+
}
|
|
257
|
+
if (requestParameters['page'] != null) {
|
|
258
|
+
queryParameters['page'] = requestParameters['page'];
|
|
259
|
+
}
|
|
260
|
+
if (requestParameters['limit'] != null) {
|
|
261
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
262
|
+
}
|
|
263
|
+
if (requestParameters['sortBy'] != null) {
|
|
264
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
265
|
+
}
|
|
266
|
+
headerParameters = {};
|
|
267
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
268
|
+
token = this.configuration.accessToken;
|
|
269
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
270
|
+
case 1:
|
|
271
|
+
tokenString = _a.sent();
|
|
272
|
+
if (tokenString) {
|
|
273
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
274
|
+
}
|
|
275
|
+
_a.label = 2;
|
|
276
|
+
case 2: return [4 /*yield*/, this.request({
|
|
277
|
+
path: "/private/notifications",
|
|
278
|
+
method: 'GET',
|
|
279
|
+
headers: headerParameters,
|
|
280
|
+
query: queryParameters,
|
|
281
|
+
}, initOverrides)];
|
|
282
|
+
case 3:
|
|
283
|
+
response = _a.sent();
|
|
284
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListNotifications200ResponseFromJSON)(jsonValue); })];
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
*/
|
|
292
|
+
NotificationsApi.prototype.listNotifications = function () {
|
|
293
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
294
|
+
var response;
|
|
295
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
296
|
+
return __generator(this, function (_a) {
|
|
297
|
+
switch (_a.label) {
|
|
298
|
+
case 0: return [4 /*yield*/, this.listNotificationsRaw(requestParameters, initOverrides)];
|
|
299
|
+
case 1:
|
|
300
|
+
response = _a.sent();
|
|
301
|
+
return [4 /*yield*/, response.value()];
|
|
302
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
return NotificationsApi;
|
|
308
|
+
}(runtime.BaseAPI));
|
|
309
|
+
exports.NotificationsApi = NotificationsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -4,12 +4,14 @@ export * from './AdminApi';
|
|
|
4
4
|
export * from './BankAccountsApi';
|
|
5
5
|
export * from './BuyersApi';
|
|
6
6
|
export * from './BuyersPublicApi';
|
|
7
|
+
export * from './DomainTransfersApi';
|
|
7
8
|
export * from './DomainsApi';
|
|
8
9
|
export * from './DomainsPublicApi';
|
|
9
10
|
export * from './EppApi';
|
|
10
11
|
export * from './InvoicesApi';
|
|
11
12
|
export * from './LeadsApi';
|
|
12
13
|
export * from './LeadsPublicApi';
|
|
14
|
+
export * from './NotificationsApi';
|
|
13
15
|
export * from './OrdersPublicApi';
|
|
14
16
|
export * from './SalesPublicApi';
|
|
15
17
|
export * from './StatsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -22,12 +22,14 @@ __exportStar(require("./AdminApi"), exports);
|
|
|
22
22
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
23
23
|
__exportStar(require("./BuyersApi"), exports);
|
|
24
24
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
25
|
+
__exportStar(require("./DomainTransfersApi"), exports);
|
|
25
26
|
__exportStar(require("./DomainsApi"), exports);
|
|
26
27
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
27
28
|
__exportStar(require("./EppApi"), exports);
|
|
28
29
|
__exportStar(require("./InvoicesApi"), exports);
|
|
29
30
|
__exportStar(require("./LeadsApi"), exports);
|
|
30
31
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
32
|
+
__exportStar(require("./NotificationsApi"), exports);
|
|
31
33
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
32
34
|
__exportStar(require("./SalesPublicApi"), exports);
|
|
33
35
|
__exportStar(require("./StatsApi"), exports);
|
|
@@ -81,6 +81,12 @@ export interface AccountSettingsDto {
|
|
|
81
81
|
* @memberof AccountSettingsDto
|
|
82
82
|
*/
|
|
83
83
|
alias: AccountSettingsAliasDto;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof AccountSettingsDto
|
|
88
|
+
*/
|
|
89
|
+
transferCostPaymentMaxPercentage: number;
|
|
84
90
|
}
|
|
85
91
|
/**
|
|
86
92
|
* Check if a given object implements the AccountSettingsDto interface.
|