@randock/nameshift-api-client 0.0.316 → 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 +6 -0
- package/README.md +3 -3
- package/dist/apis/NotificationsApi.d.ts +70 -0
- package/dist/apis/NotificationsApi.js +309 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BulkMarkNotificationsAsReadInputDto.d.ts +38 -0
- package/dist/models/BulkMarkNotificationsAsReadInputDto.js +55 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -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/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/NotificationsApi.ts +251 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BulkMarkNotificationsAsReadInputDto.ts +75 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -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/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -16,6 +16,7 @@ src/apis/EppApi.ts
|
|
|
16
16
|
src/apis/InvoicesApi.ts
|
|
17
17
|
src/apis/LeadsApi.ts
|
|
18
18
|
src/apis/LeadsPublicApi.ts
|
|
19
|
+
src/apis/NotificationsApi.ts
|
|
19
20
|
src/apis/OrdersPublicApi.ts
|
|
20
21
|
src/apis/SalesPublicApi.ts
|
|
21
22
|
src/apis/StatsApi.ts
|
|
@@ -75,6 +76,7 @@ src/models/BatchReadSellerLeadMessageInput.ts
|
|
|
75
76
|
src/models/BatchUpdateDomainsInput.ts
|
|
76
77
|
src/models/BatchVerifyBuyerLeadsInput.ts
|
|
77
78
|
src/models/BillingInformationDto.ts
|
|
79
|
+
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
78
80
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
79
81
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
80
82
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
@@ -198,6 +200,7 @@ src/models/ListAccounts200Response.ts
|
|
|
198
200
|
src/models/ListBankAccounts200Response.ts
|
|
199
201
|
src/models/ListDomains200Response.ts
|
|
200
202
|
src/models/ListLeadMessagesDto.ts
|
|
203
|
+
src/models/ListNotifications200Response.ts
|
|
201
204
|
src/models/LoginDto.ts
|
|
202
205
|
src/models/LoginInput.ts
|
|
203
206
|
src/models/MajesticMetrics.ts
|
|
@@ -309,6 +312,9 @@ src/models/UpdateOrderInput.ts
|
|
|
309
312
|
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
310
313
|
src/models/UpdateSubscriptionInput.ts
|
|
311
314
|
src/models/UsBankAccountDetails.ts
|
|
315
|
+
src/models/UserNotificationAttachmentDto.ts
|
|
316
|
+
src/models/UserNotificationDto.ts
|
|
317
|
+
src/models/UserNotificationListItemDto.ts
|
|
312
318
|
src/models/UserPasswordResetDto.ts
|
|
313
319
|
src/models/ValidateTaxNumberDto.ts
|
|
314
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,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
|
@@ -11,6 +11,7 @@ export * from './EppApi';
|
|
|
11
11
|
export * from './InvoicesApi';
|
|
12
12
|
export * from './LeadsApi';
|
|
13
13
|
export * from './LeadsPublicApi';
|
|
14
|
+
export * from './NotificationsApi';
|
|
14
15
|
export * from './OrdersPublicApi';
|
|
15
16
|
export * from './SalesPublicApi';
|
|
16
17
|
export * from './StatsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./EppApi"), exports);
|
|
|
29
29
|
__exportStar(require("./InvoicesApi"), exports);
|
|
30
30
|
__exportStar(require("./LeadsApi"), exports);
|
|
31
31
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
32
|
+
__exportStar(require("./NotificationsApi"), exports);
|
|
32
33
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
33
34
|
__exportStar(require("./SalesPublicApi"), exports);
|
|
34
35
|
__exportStar(require("./StatsApi"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BulkMarkNotificationsAsReadInputDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BulkMarkNotificationsAsReadInputDto {
|
|
18
|
+
/**
|
|
19
|
+
* Array of notification IDs to mark with the specified read status
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BulkMarkNotificationsAsReadInputDto
|
|
22
|
+
*/
|
|
23
|
+
notificationIds: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to mark notifications as read (true) or unread (false)
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof BulkMarkNotificationsAsReadInputDto
|
|
28
|
+
*/
|
|
29
|
+
readStatus: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the BulkMarkNotificationsAsReadInputDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfBulkMarkNotificationsAsReadInputDto(value: object): value is BulkMarkNotificationsAsReadInputDto;
|
|
35
|
+
export declare function BulkMarkNotificationsAsReadInputDtoFromJSON(json: any): BulkMarkNotificationsAsReadInputDto;
|
|
36
|
+
export declare function BulkMarkNotificationsAsReadInputDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkMarkNotificationsAsReadInputDto;
|
|
37
|
+
export declare function BulkMarkNotificationsAsReadInputDtoToJSON(json: any): BulkMarkNotificationsAsReadInputDto;
|
|
38
|
+
export declare function BulkMarkNotificationsAsReadInputDtoToJSONTyped(value?: BulkMarkNotificationsAsReadInputDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBulkMarkNotificationsAsReadInputDto = instanceOfBulkMarkNotificationsAsReadInputDto;
|
|
17
|
+
exports.BulkMarkNotificationsAsReadInputDtoFromJSON = BulkMarkNotificationsAsReadInputDtoFromJSON;
|
|
18
|
+
exports.BulkMarkNotificationsAsReadInputDtoFromJSONTyped = BulkMarkNotificationsAsReadInputDtoFromJSONTyped;
|
|
19
|
+
exports.BulkMarkNotificationsAsReadInputDtoToJSON = BulkMarkNotificationsAsReadInputDtoToJSON;
|
|
20
|
+
exports.BulkMarkNotificationsAsReadInputDtoToJSONTyped = BulkMarkNotificationsAsReadInputDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BulkMarkNotificationsAsReadInputDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBulkMarkNotificationsAsReadInputDto(value) {
|
|
25
|
+
if (!('notificationIds' in value) || value['notificationIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('readStatus' in value) || value['readStatus'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function BulkMarkNotificationsAsReadInputDtoFromJSON(json) {
|
|
32
|
+
return BulkMarkNotificationsAsReadInputDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function BulkMarkNotificationsAsReadInputDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'notificationIds': json['notificationIds'],
|
|
40
|
+
'readStatus': json['readStatus'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function BulkMarkNotificationsAsReadInputDtoToJSON(json) {
|
|
44
|
+
return BulkMarkNotificationsAsReadInputDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function BulkMarkNotificationsAsReadInputDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'notificationIds': value['notificationIds'],
|
|
53
|
+
'readStatus': value['readStatus'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -103,6 +103,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
103
103
|
readonly DOMAIN_AFFILIATE_PROGRAM: "DOMAIN_AFFILIATE_PROGRAM";
|
|
104
104
|
readonly SELLER_STATS_DASHBOARD: "SELLER_STATS_DASHBOARD";
|
|
105
105
|
readonly SELLER_TRANSFER_COSTS_PAYMENT: "SELLER_TRANSFER_COSTS_PAYMENT";
|
|
106
|
+
readonly NOTIFICATIONS_MANAGER: "NOTIFICATIONS_MANAGER";
|
|
106
107
|
};
|
|
107
108
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
108
109
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -39,7 +39,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
39
39
|
AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
|
|
40
40
|
DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
|
|
41
41
|
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
|
|
42
|
-
SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT'
|
|
42
|
+
SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
|
|
43
|
+
NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER'
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
46
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -0,0 +1,47 @@
|
|
|
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 type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { UserNotificationListItemDto } from './UserNotificationListItemDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListNotifications200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListNotifications200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<UserNotificationListItemDto>}
|
|
24
|
+
* @memberof ListNotifications200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<UserNotificationListItemDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListNotifications200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListNotifications200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListNotifications200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListNotifications200Response(value: object): value is ListNotifications200Response;
|
|
44
|
+
export declare function ListNotifications200ResponseFromJSON(json: any): ListNotifications200Response;
|
|
45
|
+
export declare function ListNotifications200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListNotifications200Response;
|
|
46
|
+
export declare function ListNotifications200ResponseToJSON(json: any): ListNotifications200Response;
|
|
47
|
+
export declare function ListNotifications200ResponseToJSONTyped(value?: ListNotifications200Response | null, ignoreDiscriminator?: boolean): any;
|