@randock/nameshift-api-client 0.0.327 → 0.0.329
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/BuyersApi.d.ts +72 -1
- package/dist/apis/BuyersApi.js +332 -0
- package/dist/models/AccountCommissionByDateRangeDto.d.ts +44 -0
- package/dist/models/AccountCommissionByDateRangeDto.js +59 -0
- package/dist/models/AdminAccountCommissionByDateRangeInput.d.ts +44 -0
- package/dist/models/AdminAccountCommissionByDateRangeInput.js +57 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +13 -0
- package/dist/models/AdminAccountSettingsInput.js +5 -0
- package/dist/models/BulkMarkBuyerNotificationsAsReadInputDto.d.ts +38 -0
- package/dist/models/BulkMarkBuyerNotificationsAsReadInputDto.js +55 -0
- package/dist/models/BuyerNotificationAttachmentDto.d.ts +44 -0
- package/dist/models/BuyerNotificationAttachmentDto.js +59 -0
- package/dist/models/BuyerNotificationDto.d.ts +145 -0
- package/dist/models/BuyerNotificationDto.js +152 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +138 -0
- package/dist/models/BuyerNotificationListItemDto.js +147 -0
- package/dist/models/BuyerNotificationSettingsDto.d.ts +32 -0
- package/dist/models/BuyerNotificationSettingsDto.js +51 -0
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/IntersectionListAccountDtoWithAccountCommissionDto.d.ts +6 -0
- package/dist/models/IntersectionListAccountDtoWithAccountCommissionDto.js +4 -0
- package/dist/models/ListBuyerNotifications200Response.d.ts +47 -0
- package/dist/models/ListBuyerNotifications200Response.js +62 -0
- package/dist/models/UpdateBuyerNotificationSettingsInput.d.ts +32 -0
- package/dist/models/UpdateBuyerNotificationSettingsInput.js +49 -0
- package/dist/models/WithSettingsInner.d.ts +13 -0
- package/dist/models/WithSettingsInner.js +9 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +302 -0
- package/src/models/AccountCommissionByDateRangeDto.ts +84 -0
- package/src/models/AdminAccountCommissionByDateRangeInput.ts +83 -0
- package/src/models/AdminAccountSettingsInput.ts +23 -0
- package/src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts +75 -0
- package/src/models/BuyerNotificationAttachmentDto.ts +84 -0
- package/src/models/BuyerNotificationDto.ts +207 -0
- package/src/models/BuyerNotificationListItemDto.ts +190 -0
- package/src/models/BuyerNotificationSettingsDto.ts +66 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/IntersectionListAccountDtoWithAccountCommissionDto.ts +9 -0
- package/src/models/ListBuyerNotifications200Response.ts +106 -0
- package/src/models/UpdateBuyerNotificationSettingsInput.ts +65 -0
- package/src/models/WithSettingsInner.ts +25 -0
- package/src/models/index.ts +9 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -34,6 +34,7 @@ src/models/AccountAliasDto.ts
|
|
|
34
34
|
src/models/AccountAliasInput.ts
|
|
35
35
|
src/models/AccountBankAccountDto.ts
|
|
36
36
|
src/models/AccountBankAccountDtoDetails.ts
|
|
37
|
+
src/models/AccountCommissionByDateRangeDto.ts
|
|
37
38
|
src/models/AccountDto.ts
|
|
38
39
|
src/models/AccountMetricsDto.ts
|
|
39
40
|
src/models/AccountNotificationDto.ts
|
|
@@ -51,6 +52,7 @@ src/models/AccountSettingsLeaseToOwnConfigurationDto.ts
|
|
|
51
52
|
src/models/AccountSettingsRentConfigurationDto.ts
|
|
52
53
|
src/models/AccountSettingsSidnDto.ts
|
|
53
54
|
src/models/AddressDto.ts
|
|
55
|
+
src/models/AdminAccountCommissionByDateRangeInput.ts
|
|
54
56
|
src/models/AdminAccountLoginDto.ts
|
|
55
57
|
src/models/AdminAccountSettingsAffiliateCommissionInput.ts
|
|
56
58
|
src/models/AdminAccountSettingsAffiliateInput.ts
|
|
@@ -77,6 +79,7 @@ src/models/BatchReadSellerLeadMessageInput.ts
|
|
|
77
79
|
src/models/BatchUpdateDomainsInput.ts
|
|
78
80
|
src/models/BatchVerifyBuyerLeadsInput.ts
|
|
79
81
|
src/models/BillingInformationDto.ts
|
|
82
|
+
src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
|
|
80
83
|
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
81
84
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
82
85
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
@@ -87,6 +90,10 @@ src/models/BuyerInvoiceDto.ts
|
|
|
87
90
|
src/models/BuyerInvoiceSellerAccountDto.ts
|
|
88
91
|
src/models/BuyerLeadListItemDomainDto.ts
|
|
89
92
|
src/models/BuyerLeadListItemDto.ts
|
|
93
|
+
src/models/BuyerNotificationAttachmentDto.ts
|
|
94
|
+
src/models/BuyerNotificationDto.ts
|
|
95
|
+
src/models/BuyerNotificationListItemDto.ts
|
|
96
|
+
src/models/BuyerNotificationSettingsDto.ts
|
|
90
97
|
src/models/BuyerSecurityUserDto.ts
|
|
91
98
|
src/models/BuyerSessionDto.ts
|
|
92
99
|
src/models/BuyerSubscriptionListItemDto.ts
|
|
@@ -199,6 +206,7 @@ src/models/ListAccountMetricsDto.ts
|
|
|
199
206
|
src/models/ListAccountUserDto.ts
|
|
200
207
|
src/models/ListAccounts200Response.ts
|
|
201
208
|
src/models/ListBankAccounts200Response.ts
|
|
209
|
+
src/models/ListBuyerNotifications200Response.ts
|
|
202
210
|
src/models/ListDomains200Response.ts
|
|
203
211
|
src/models/ListDomainsWithUpdatedPricing200Response.ts
|
|
204
212
|
src/models/ListLeadMessagesDto.ts
|
|
@@ -309,6 +317,7 @@ src/models/TimeTableConfigurationInput.ts
|
|
|
309
317
|
src/models/UkBankAccountDetails.ts
|
|
310
318
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
311
319
|
src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
|
|
320
|
+
src/models/UpdateBuyerNotificationSettingsInput.ts
|
|
312
321
|
src/models/UpdateDomainInput.ts
|
|
313
322
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
314
323
|
src/models/UpdateDomainTransferIpsTagInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.329
|
|
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.329 --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
|
+
4b9d5e79cdf27366875b388d24be3d50cbc2c91dc540904398d152cbd80d954053e65c144e765c91ca871b003270e0c5
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput } from '../models/index';
|
|
13
|
+
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateTaskMuteStatusForBuyerInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface BuyersApiBatchVerifyBuyerLeadsRequest {
|
|
18
18
|
batchVerifyBuyerLeadsInput: BatchVerifyBuyerLeadsInput;
|
|
19
19
|
}
|
|
20
|
+
export interface BuyersApiBulkMarkBuyerNotificationsAsReadRequest {
|
|
21
|
+
bulkMarkBuyerNotificationsAsReadInputDto: BulkMarkBuyerNotificationsAsReadInputDto;
|
|
22
|
+
}
|
|
20
23
|
export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
21
24
|
leadId: string;
|
|
22
25
|
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
@@ -34,6 +37,10 @@ export interface BuyersApiDeleteBuyerLeadsRequest {
|
|
|
34
37
|
export interface BuyersApiDownloadBuyerInvoiceRequest {
|
|
35
38
|
invoiceId: string;
|
|
36
39
|
}
|
|
40
|
+
export interface BuyersApiDownloadBuyerNotificationAttachmentRequest {
|
|
41
|
+
notificationId: string;
|
|
42
|
+
attachmentId: string;
|
|
43
|
+
}
|
|
37
44
|
export interface BuyersApiGetBuyerInvoicesRequest {
|
|
38
45
|
filter?: object;
|
|
39
46
|
page?: number;
|
|
@@ -52,6 +59,9 @@ export interface BuyersApiGetBuyerLeadsRequest {
|
|
|
52
59
|
limit?: number;
|
|
53
60
|
sortBy?: Array<string>;
|
|
54
61
|
}
|
|
62
|
+
export interface BuyersApiGetBuyerNotificationByIdRequest {
|
|
63
|
+
notificationId: string;
|
|
64
|
+
}
|
|
55
65
|
export interface BuyersApiGetBuyerSubscriptionsRequest {
|
|
56
66
|
filter?: object;
|
|
57
67
|
page?: number;
|
|
@@ -70,6 +80,12 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
70
80
|
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
71
81
|
transferId: string;
|
|
72
82
|
}
|
|
83
|
+
export interface BuyersApiListBuyerNotificationsRequest {
|
|
84
|
+
filter?: object;
|
|
85
|
+
page?: number;
|
|
86
|
+
limit?: number;
|
|
87
|
+
sortBy?: Array<string>;
|
|
88
|
+
}
|
|
73
89
|
export interface BuyersApiPatchDomainTransferConfirmationRequest {
|
|
74
90
|
transferId: string;
|
|
75
91
|
setDomainTransferConfirmationInput: SetDomainTransferConfirmationInput;
|
|
@@ -84,6 +100,9 @@ export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
|
|
|
84
100
|
export interface BuyersApiSetLocaleRequest {
|
|
85
101
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
86
102
|
}
|
|
103
|
+
export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
|
|
104
|
+
updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
|
|
105
|
+
}
|
|
87
106
|
export interface BuyersApiUpdateDomainTransferIpsTagRequest {
|
|
88
107
|
transferId: string;
|
|
89
108
|
updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
|
|
@@ -119,6 +138,16 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
119
138
|
*
|
|
120
139
|
*/
|
|
121
140
|
batchVerifyBuyerLeads(requestParameters: BuyersApiBatchVerifyBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
143
|
+
* Bulk mark buyer notifications as read or unread
|
|
144
|
+
*/
|
|
145
|
+
bulkMarkBuyerNotificationsAsReadRaw(requestParameters: BuyersApiBulkMarkBuyerNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
146
|
+
/**
|
|
147
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
148
|
+
* Bulk mark buyer notifications as read or unread
|
|
149
|
+
*/
|
|
150
|
+
bulkMarkBuyerNotificationsAsRead(requestParameters: BuyersApiBulkMarkBuyerNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
151
|
/**
|
|
123
152
|
*
|
|
124
153
|
*/
|
|
@@ -175,6 +204,16 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
175
204
|
*
|
|
176
205
|
*/
|
|
177
206
|
downloadBuyerInvoice(requestParameters: BuyersApiDownloadBuyerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
207
|
+
/**
|
|
208
|
+
* Download a specific notification attachment by attachment ID
|
|
209
|
+
* Download buyer notification attachment
|
|
210
|
+
*/
|
|
211
|
+
downloadBuyerNotificationAttachmentRaw(requestParameters: BuyersApiDownloadBuyerNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
212
|
+
/**
|
|
213
|
+
* Download a specific notification attachment by attachment ID
|
|
214
|
+
* Download buyer notification attachment
|
|
215
|
+
*/
|
|
216
|
+
downloadBuyerNotificationAttachment(requestParameters: BuyersApiDownloadBuyerNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
178
217
|
/**
|
|
179
218
|
*
|
|
180
219
|
*/
|
|
@@ -207,6 +246,22 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
207
246
|
*
|
|
208
247
|
*/
|
|
209
248
|
getBuyerLeads(requestParameters?: BuyersApiGetBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerLeads200Response>;
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
*/
|
|
252
|
+
getBuyerNotificationByIdRaw(requestParameters: BuyersApiGetBuyerNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerNotificationDto>>;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
getBuyerNotificationById(requestParameters: BuyersApiGetBuyerNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerNotificationDto>;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
*/
|
|
260
|
+
getBuyerNotificationSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerNotificationSettingsDto>>;
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
*/
|
|
264
|
+
getBuyerNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerNotificationSettingsDto>;
|
|
210
265
|
/**
|
|
211
266
|
*
|
|
212
267
|
*/
|
|
@@ -239,6 +294,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
239
294
|
*
|
|
240
295
|
*/
|
|
241
296
|
getTransferAuthCode(requestParameters: BuyersApiGetTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainTransferAuthCodeDto>;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
*/
|
|
300
|
+
listBuyerNotificationsRaw(requestParameters: BuyersApiListBuyerNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBuyerNotifications200Response>>;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
304
|
+
listBuyerNotifications(requestParameters?: BuyersApiListBuyerNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBuyerNotifications200Response>;
|
|
242
305
|
/**
|
|
243
306
|
*
|
|
244
307
|
*/
|
|
@@ -271,6 +334,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
271
334
|
*
|
|
272
335
|
*/
|
|
273
336
|
setLocale(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
340
|
+
updateBuyerNotificationSettingsRaw(requestParameters: BuyersApiUpdateBuyerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
updateBuyerNotificationSettings(requestParameters: BuyersApiUpdateBuyerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
274
345
|
/**
|
|
275
346
|
*
|
|
276
347
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -179,6 +179,61 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
179
179
|
});
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
184
|
+
* Bulk mark buyer notifications as read or unread
|
|
185
|
+
*/
|
|
186
|
+
BuyersApi.prototype.bulkMarkBuyerNotificationsAsReadRaw = function (requestParameters, initOverrides) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
188
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
189
|
+
return __generator(this, function (_a) {
|
|
190
|
+
switch (_a.label) {
|
|
191
|
+
case 0:
|
|
192
|
+
if (requestParameters['bulkMarkBuyerNotificationsAsReadInputDto'] == null) {
|
|
193
|
+
throw new runtime.RequiredError('bulkMarkBuyerNotificationsAsReadInputDto', 'Required parameter "bulkMarkBuyerNotificationsAsReadInputDto" was null or undefined when calling bulkMarkBuyerNotificationsAsRead().');
|
|
194
|
+
}
|
|
195
|
+
queryParameters = {};
|
|
196
|
+
headerParameters = {};
|
|
197
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
198
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
199
|
+
token = this.configuration.accessToken;
|
|
200
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
201
|
+
case 1:
|
|
202
|
+
tokenString = _a.sent();
|
|
203
|
+
if (tokenString) {
|
|
204
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
205
|
+
}
|
|
206
|
+
_a.label = 2;
|
|
207
|
+
case 2: return [4 /*yield*/, this.request({
|
|
208
|
+
path: "/buyers/private/notifications/bulk-mark-as-read",
|
|
209
|
+
method: 'PATCH',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
body: (0, index_1.BulkMarkBuyerNotificationsAsReadInputDtoToJSON)(requestParameters['bulkMarkBuyerNotificationsAsReadInputDto']),
|
|
213
|
+
}, initOverrides)];
|
|
214
|
+
case 3:
|
|
215
|
+
response = _a.sent();
|
|
216
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
223
|
+
* Bulk mark buyer notifications as read or unread
|
|
224
|
+
*/
|
|
225
|
+
BuyersApi.prototype.bulkMarkBuyerNotificationsAsRead = function (requestParameters, initOverrides) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
switch (_a.label) {
|
|
229
|
+
case 0: return [4 /*yield*/, this.bulkMarkBuyerNotificationsAsReadRaw(requestParameters, initOverrides)];
|
|
230
|
+
case 1:
|
|
231
|
+
_a.sent();
|
|
232
|
+
return [2 /*return*/];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
182
237
|
/**
|
|
183
238
|
*
|
|
184
239
|
*/
|
|
@@ -548,6 +603,64 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
548
603
|
});
|
|
549
604
|
});
|
|
550
605
|
};
|
|
606
|
+
/**
|
|
607
|
+
* Download a specific notification attachment by attachment ID
|
|
608
|
+
* Download buyer notification attachment
|
|
609
|
+
*/
|
|
610
|
+
BuyersApi.prototype.downloadBuyerNotificationAttachmentRaw = function (requestParameters, initOverrides) {
|
|
611
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
612
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
613
|
+
return __generator(this, function (_a) {
|
|
614
|
+
switch (_a.label) {
|
|
615
|
+
case 0:
|
|
616
|
+
if (requestParameters['notificationId'] == null) {
|
|
617
|
+
throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling downloadBuyerNotificationAttachment().');
|
|
618
|
+
}
|
|
619
|
+
if (requestParameters['attachmentId'] == null) {
|
|
620
|
+
throw new runtime.RequiredError('attachmentId', 'Required parameter "attachmentId" was null or undefined when calling downloadBuyerNotificationAttachment().');
|
|
621
|
+
}
|
|
622
|
+
queryParameters = {};
|
|
623
|
+
headerParameters = {};
|
|
624
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
625
|
+
token = this.configuration.accessToken;
|
|
626
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
627
|
+
case 1:
|
|
628
|
+
tokenString = _a.sent();
|
|
629
|
+
if (tokenString) {
|
|
630
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
631
|
+
}
|
|
632
|
+
_a.label = 2;
|
|
633
|
+
case 2: return [4 /*yield*/, this.request({
|
|
634
|
+
path: "/buyers/private/notifications/{notificationId}/attachments/{attachmentId}/download".replace("{".concat("notificationId", "}"), encodeURIComponent(String(requestParameters['notificationId']))).replace("{".concat("attachmentId", "}"), encodeURIComponent(String(requestParameters['attachmentId']))),
|
|
635
|
+
method: 'GET',
|
|
636
|
+
headers: headerParameters,
|
|
637
|
+
query: queryParameters,
|
|
638
|
+
}, initOverrides)];
|
|
639
|
+
case 3:
|
|
640
|
+
response = _a.sent();
|
|
641
|
+
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* Download a specific notification attachment by attachment ID
|
|
648
|
+
* Download buyer notification attachment
|
|
649
|
+
*/
|
|
650
|
+
BuyersApi.prototype.downloadBuyerNotificationAttachment = function (requestParameters, initOverrides) {
|
|
651
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
652
|
+
var response;
|
|
653
|
+
return __generator(this, function (_a) {
|
|
654
|
+
switch (_a.label) {
|
|
655
|
+
case 0: return [4 /*yield*/, this.downloadBuyerNotificationAttachmentRaw(requestParameters, initOverrides)];
|
|
656
|
+
case 1:
|
|
657
|
+
response = _a.sent();
|
|
658
|
+
return [4 /*yield*/, response.value()];
|
|
659
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
});
|
|
663
|
+
};
|
|
551
664
|
/**
|
|
552
665
|
*
|
|
553
666
|
*/
|
|
@@ -780,6 +893,109 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
780
893
|
});
|
|
781
894
|
});
|
|
782
895
|
};
|
|
896
|
+
/**
|
|
897
|
+
*
|
|
898
|
+
*/
|
|
899
|
+
BuyersApi.prototype.getBuyerNotificationByIdRaw = function (requestParameters, initOverrides) {
|
|
900
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
901
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
902
|
+
return __generator(this, function (_a) {
|
|
903
|
+
switch (_a.label) {
|
|
904
|
+
case 0:
|
|
905
|
+
if (requestParameters['notificationId'] == null) {
|
|
906
|
+
throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling getBuyerNotificationById().');
|
|
907
|
+
}
|
|
908
|
+
queryParameters = {};
|
|
909
|
+
headerParameters = {};
|
|
910
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
911
|
+
token = this.configuration.accessToken;
|
|
912
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
913
|
+
case 1:
|
|
914
|
+
tokenString = _a.sent();
|
|
915
|
+
if (tokenString) {
|
|
916
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
917
|
+
}
|
|
918
|
+
_a.label = 2;
|
|
919
|
+
case 2: return [4 /*yield*/, this.request({
|
|
920
|
+
path: "/buyers/private/notifications/{notificationId}".replace("{".concat("notificationId", "}"), encodeURIComponent(String(requestParameters['notificationId']))),
|
|
921
|
+
method: 'GET',
|
|
922
|
+
headers: headerParameters,
|
|
923
|
+
query: queryParameters,
|
|
924
|
+
}, initOverrides)];
|
|
925
|
+
case 3:
|
|
926
|
+
response = _a.sent();
|
|
927
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerNotificationDtoFromJSON)(jsonValue); })];
|
|
928
|
+
}
|
|
929
|
+
});
|
|
930
|
+
});
|
|
931
|
+
};
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
*/
|
|
935
|
+
BuyersApi.prototype.getBuyerNotificationById = function (requestParameters, initOverrides) {
|
|
936
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
937
|
+
var response;
|
|
938
|
+
return __generator(this, function (_a) {
|
|
939
|
+
switch (_a.label) {
|
|
940
|
+
case 0: return [4 /*yield*/, this.getBuyerNotificationByIdRaw(requestParameters, initOverrides)];
|
|
941
|
+
case 1:
|
|
942
|
+
response = _a.sent();
|
|
943
|
+
return [4 /*yield*/, response.value()];
|
|
944
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
*
|
|
951
|
+
*/
|
|
952
|
+
BuyersApi.prototype.getBuyerNotificationSettingsRaw = function (initOverrides) {
|
|
953
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
954
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
955
|
+
return __generator(this, function (_a) {
|
|
956
|
+
switch (_a.label) {
|
|
957
|
+
case 0:
|
|
958
|
+
queryParameters = {};
|
|
959
|
+
headerParameters = {};
|
|
960
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
961
|
+
token = this.configuration.accessToken;
|
|
962
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
963
|
+
case 1:
|
|
964
|
+
tokenString = _a.sent();
|
|
965
|
+
if (tokenString) {
|
|
966
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
967
|
+
}
|
|
968
|
+
_a.label = 2;
|
|
969
|
+
case 2: return [4 /*yield*/, this.request({
|
|
970
|
+
path: "/buyers/private/notification-settings",
|
|
971
|
+
method: 'GET',
|
|
972
|
+
headers: headerParameters,
|
|
973
|
+
query: queryParameters,
|
|
974
|
+
}, initOverrides)];
|
|
975
|
+
case 3:
|
|
976
|
+
response = _a.sent();
|
|
977
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerNotificationSettingsDtoFromJSON)(jsonValue); })];
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
});
|
|
981
|
+
};
|
|
982
|
+
/**
|
|
983
|
+
*
|
|
984
|
+
*/
|
|
985
|
+
BuyersApi.prototype.getBuyerNotificationSettings = function (initOverrides) {
|
|
986
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
987
|
+
var response;
|
|
988
|
+
return __generator(this, function (_a) {
|
|
989
|
+
switch (_a.label) {
|
|
990
|
+
case 0: return [4 /*yield*/, this.getBuyerNotificationSettingsRaw(initOverrides)];
|
|
991
|
+
case 1:
|
|
992
|
+
response = _a.sent();
|
|
993
|
+
return [4 /*yield*/, response.value()];
|
|
994
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
});
|
|
998
|
+
};
|
|
783
999
|
/**
|
|
784
1000
|
*
|
|
785
1001
|
*/
|
|
@@ -1012,6 +1228,69 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1012
1228
|
});
|
|
1013
1229
|
});
|
|
1014
1230
|
};
|
|
1231
|
+
/**
|
|
1232
|
+
*
|
|
1233
|
+
*/
|
|
1234
|
+
BuyersApi.prototype.listBuyerNotificationsRaw = function (requestParameters, initOverrides) {
|
|
1235
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1236
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1237
|
+
return __generator(this, function (_a) {
|
|
1238
|
+
switch (_a.label) {
|
|
1239
|
+
case 0:
|
|
1240
|
+
queryParameters = {};
|
|
1241
|
+
if (requestParameters['filter'] != null) {
|
|
1242
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1243
|
+
}
|
|
1244
|
+
if (requestParameters['page'] != null) {
|
|
1245
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1246
|
+
}
|
|
1247
|
+
if (requestParameters['limit'] != null) {
|
|
1248
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1249
|
+
}
|
|
1250
|
+
if (requestParameters['sortBy'] != null) {
|
|
1251
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1252
|
+
}
|
|
1253
|
+
headerParameters = {};
|
|
1254
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1255
|
+
token = this.configuration.accessToken;
|
|
1256
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1257
|
+
case 1:
|
|
1258
|
+
tokenString = _a.sent();
|
|
1259
|
+
if (tokenString) {
|
|
1260
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1261
|
+
}
|
|
1262
|
+
_a.label = 2;
|
|
1263
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1264
|
+
path: "/buyers/private/notifications",
|
|
1265
|
+
method: 'GET',
|
|
1266
|
+
headers: headerParameters,
|
|
1267
|
+
query: queryParameters,
|
|
1268
|
+
}, initOverrides)];
|
|
1269
|
+
case 3:
|
|
1270
|
+
response = _a.sent();
|
|
1271
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListBuyerNotifications200ResponseFromJSON)(jsonValue); })];
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
});
|
|
1275
|
+
};
|
|
1276
|
+
/**
|
|
1277
|
+
*
|
|
1278
|
+
*/
|
|
1279
|
+
BuyersApi.prototype.listBuyerNotifications = function () {
|
|
1280
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
1281
|
+
var response;
|
|
1282
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1283
|
+
return __generator(this, function (_a) {
|
|
1284
|
+
switch (_a.label) {
|
|
1285
|
+
case 0: return [4 /*yield*/, this.listBuyerNotificationsRaw(requestParameters, initOverrides)];
|
|
1286
|
+
case 1:
|
|
1287
|
+
response = _a.sent();
|
|
1288
|
+
return [4 /*yield*/, response.value()];
|
|
1289
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1290
|
+
}
|
|
1291
|
+
});
|
|
1292
|
+
});
|
|
1293
|
+
};
|
|
1015
1294
|
/**
|
|
1016
1295
|
*
|
|
1017
1296
|
*/
|
|
@@ -1228,6 +1507,59 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1228
1507
|
});
|
|
1229
1508
|
});
|
|
1230
1509
|
};
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
*/
|
|
1513
|
+
BuyersApi.prototype.updateBuyerNotificationSettingsRaw = function (requestParameters, initOverrides) {
|
|
1514
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1515
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1516
|
+
return __generator(this, function (_a) {
|
|
1517
|
+
switch (_a.label) {
|
|
1518
|
+
case 0:
|
|
1519
|
+
if (requestParameters['updateBuyerNotificationSettingsInput'] == null) {
|
|
1520
|
+
throw new runtime.RequiredError('updateBuyerNotificationSettingsInput', 'Required parameter "updateBuyerNotificationSettingsInput" was null or undefined when calling updateBuyerNotificationSettings().');
|
|
1521
|
+
}
|
|
1522
|
+
queryParameters = {};
|
|
1523
|
+
headerParameters = {};
|
|
1524
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1525
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1526
|
+
token = this.configuration.accessToken;
|
|
1527
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1528
|
+
case 1:
|
|
1529
|
+
tokenString = _a.sent();
|
|
1530
|
+
if (tokenString) {
|
|
1531
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1532
|
+
}
|
|
1533
|
+
_a.label = 2;
|
|
1534
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1535
|
+
path: "/buyers/private/notification-settings",
|
|
1536
|
+
method: 'PATCH',
|
|
1537
|
+
headers: headerParameters,
|
|
1538
|
+
query: queryParameters,
|
|
1539
|
+
body: (0, index_1.UpdateBuyerNotificationSettingsInputToJSON)(requestParameters['updateBuyerNotificationSettingsInput']),
|
|
1540
|
+
}, initOverrides)];
|
|
1541
|
+
case 3:
|
|
1542
|
+
response = _a.sent();
|
|
1543
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1544
|
+
}
|
|
1545
|
+
});
|
|
1546
|
+
});
|
|
1547
|
+
};
|
|
1548
|
+
/**
|
|
1549
|
+
*
|
|
1550
|
+
*/
|
|
1551
|
+
BuyersApi.prototype.updateBuyerNotificationSettings = function (requestParameters, initOverrides) {
|
|
1552
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1553
|
+
return __generator(this, function (_a) {
|
|
1554
|
+
switch (_a.label) {
|
|
1555
|
+
case 0: return [4 /*yield*/, this.updateBuyerNotificationSettingsRaw(requestParameters, initOverrides)];
|
|
1556
|
+
case 1:
|
|
1557
|
+
_a.sent();
|
|
1558
|
+
return [2 /*return*/];
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
});
|
|
1562
|
+
};
|
|
1231
1563
|
/**
|
|
1232
1564
|
*
|
|
1233
1565
|
*/
|
|
@@ -0,0 +1,44 @@
|
|
|
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 AccountCommissionByDateRangeDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountCommissionByDateRangeDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof AccountCommissionByDateRangeDto
|
|
22
|
+
*/
|
|
23
|
+
start: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof AccountCommissionByDateRangeDto
|
|
28
|
+
*/
|
|
29
|
+
end: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AccountCommissionByDateRangeDto
|
|
34
|
+
*/
|
|
35
|
+
commissionPercentage: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AccountCommissionByDateRangeDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAccountCommissionByDateRangeDto(value: object): value is AccountCommissionByDateRangeDto;
|
|
41
|
+
export declare function AccountCommissionByDateRangeDtoFromJSON(json: any): AccountCommissionByDateRangeDto;
|
|
42
|
+
export declare function AccountCommissionByDateRangeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountCommissionByDateRangeDto;
|
|
43
|
+
export declare function AccountCommissionByDateRangeDtoToJSON(json: any): AccountCommissionByDateRangeDto;
|
|
44
|
+
export declare function AccountCommissionByDateRangeDtoToJSONTyped(value?: AccountCommissionByDateRangeDto | null, ignoreDiscriminator?: boolean): any;
|