@randock/nameshift-api-client 0.0.326 → 0.0.328
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 +11 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +95 -1
- package/dist/apis/BuyersApi.js +441 -0
- package/dist/apis/TasksApi.d.ts +24 -1
- package/dist/apis/TasksApi.js +109 -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/BuyerTaskDetailsDto.d.ts +119 -0
- package/dist/models/BuyerTaskDetailsDto.js +115 -0
- package/dist/models/IntersectionTaskListTaskDto.d.ts +12 -0
- package/dist/models/IntersectionTaskListTaskDto.js +8 -0
- package/dist/models/ListBuyerNotifications200Response.d.ts +47 -0
- package/dist/models/ListBuyerNotifications200Response.js +62 -0
- package/dist/models/TaskDetailsDto.d.ts +132 -0
- package/dist/models/TaskDetailsDto.js +124 -0
- package/dist/models/UpdateBuyerNotificationSettingsInput.d.ts +32 -0
- package/dist/models/UpdateBuyerNotificationSettingsInput.js +49 -0
- package/dist/models/UpdateTaskMuteStatusForBuyerInput.d.ts +32 -0
- package/dist/models/UpdateTaskMuteStatusForBuyerInput.js +51 -0
- package/dist/models/UpdateTaskMuteStatusInput.d.ts +32 -0
- package/dist/models/UpdateTaskMuteStatusInput.js +51 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +408 -0
- package/src/apis/TasksApi.ts +106 -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/BuyerTaskDetailsDto.ts +209 -0
- package/src/models/IntersectionTaskListTaskDto.ts +18 -0
- package/src/models/ListBuyerNotifications200Response.ts +106 -0
- package/src/models/TaskDetailsDto.ts +234 -0
- package/src/models/UpdateBuyerNotificationSettingsInput.ts +65 -0
- package/src/models/UpdateTaskMuteStatusForBuyerInput.ts +66 -0
- package/src/models/UpdateTaskMuteStatusInput.ts +66 -0
- package/src/models/index.ts +11 -0
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -19,8 +19,12 @@ import type {
|
|
|
19
19
|
BatchDeleteBuyerLeadsInput,
|
|
20
20
|
BatchReadBuyerLeadMessageInput,
|
|
21
21
|
BatchVerifyBuyerLeadsInput,
|
|
22
|
+
BulkMarkBuyerNotificationsAsReadInputDto,
|
|
22
23
|
BuyerDomainTransferAuthCodeDto,
|
|
24
|
+
BuyerNotificationDto,
|
|
25
|
+
BuyerNotificationSettingsDto,
|
|
23
26
|
BuyerSessionDto,
|
|
27
|
+
BuyerTaskDetailsDto,
|
|
24
28
|
CreateBuyerLeadMessageInput,
|
|
25
29
|
GetBuyerInvoices200Response,
|
|
26
30
|
GetBuyerLeads200Response,
|
|
@@ -28,13 +32,16 @@ import type {
|
|
|
28
32
|
GetBuyerTransfers200Response,
|
|
29
33
|
LeadDto,
|
|
30
34
|
LeadMessageDto,
|
|
35
|
+
ListBuyerNotifications200Response,
|
|
31
36
|
NotFoundException,
|
|
32
37
|
ObjectId,
|
|
33
38
|
PutBuyerLeadOfferInput,
|
|
34
39
|
SetDomainTransferConfirmationInput,
|
|
35
40
|
StoreBuyerLocaleInput,
|
|
36
41
|
UpdateBuyerDomainTransferIpsTagInputDto,
|
|
42
|
+
UpdateBuyerNotificationSettingsInput,
|
|
37
43
|
UpdateLeadMuteStatusForBuyerInput,
|
|
44
|
+
UpdateTaskMuteStatusForBuyerInput,
|
|
38
45
|
ValidationException,
|
|
39
46
|
} from '../models/index';
|
|
40
47
|
import {
|
|
@@ -46,10 +53,18 @@ import {
|
|
|
46
53
|
BatchReadBuyerLeadMessageInputToJSON,
|
|
47
54
|
BatchVerifyBuyerLeadsInputFromJSON,
|
|
48
55
|
BatchVerifyBuyerLeadsInputToJSON,
|
|
56
|
+
BulkMarkBuyerNotificationsAsReadInputDtoFromJSON,
|
|
57
|
+
BulkMarkBuyerNotificationsAsReadInputDtoToJSON,
|
|
49
58
|
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
50
59
|
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
60
|
+
BuyerNotificationDtoFromJSON,
|
|
61
|
+
BuyerNotificationDtoToJSON,
|
|
62
|
+
BuyerNotificationSettingsDtoFromJSON,
|
|
63
|
+
BuyerNotificationSettingsDtoToJSON,
|
|
51
64
|
BuyerSessionDtoFromJSON,
|
|
52
65
|
BuyerSessionDtoToJSON,
|
|
66
|
+
BuyerTaskDetailsDtoFromJSON,
|
|
67
|
+
BuyerTaskDetailsDtoToJSON,
|
|
53
68
|
CreateBuyerLeadMessageInputFromJSON,
|
|
54
69
|
CreateBuyerLeadMessageInputToJSON,
|
|
55
70
|
GetBuyerInvoices200ResponseFromJSON,
|
|
@@ -64,6 +79,8 @@ import {
|
|
|
64
79
|
LeadDtoToJSON,
|
|
65
80
|
LeadMessageDtoFromJSON,
|
|
66
81
|
LeadMessageDtoToJSON,
|
|
82
|
+
ListBuyerNotifications200ResponseFromJSON,
|
|
83
|
+
ListBuyerNotifications200ResponseToJSON,
|
|
67
84
|
NotFoundExceptionFromJSON,
|
|
68
85
|
NotFoundExceptionToJSON,
|
|
69
86
|
ObjectIdFromJSON,
|
|
@@ -76,8 +93,12 @@ import {
|
|
|
76
93
|
StoreBuyerLocaleInputToJSON,
|
|
77
94
|
UpdateBuyerDomainTransferIpsTagInputDtoFromJSON,
|
|
78
95
|
UpdateBuyerDomainTransferIpsTagInputDtoToJSON,
|
|
96
|
+
UpdateBuyerNotificationSettingsInputFromJSON,
|
|
97
|
+
UpdateBuyerNotificationSettingsInputToJSON,
|
|
79
98
|
UpdateLeadMuteStatusForBuyerInputFromJSON,
|
|
80
99
|
UpdateLeadMuteStatusForBuyerInputToJSON,
|
|
100
|
+
UpdateTaskMuteStatusForBuyerInputFromJSON,
|
|
101
|
+
UpdateTaskMuteStatusForBuyerInputToJSON,
|
|
81
102
|
ValidationExceptionFromJSON,
|
|
82
103
|
ValidationExceptionToJSON,
|
|
83
104
|
} from '../models/index';
|
|
@@ -90,6 +111,10 @@ export interface BuyersApiBatchVerifyBuyerLeadsRequest {
|
|
|
90
111
|
batchVerifyBuyerLeadsInput: BatchVerifyBuyerLeadsInput;
|
|
91
112
|
}
|
|
92
113
|
|
|
114
|
+
export interface BuyersApiBulkMarkBuyerNotificationsAsReadRequest {
|
|
115
|
+
bulkMarkBuyerNotificationsAsReadInputDto: BulkMarkBuyerNotificationsAsReadInputDto;
|
|
116
|
+
}
|
|
117
|
+
|
|
93
118
|
export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
94
119
|
leadId: string;
|
|
95
120
|
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
@@ -112,6 +137,11 @@ export interface BuyersApiDownloadBuyerInvoiceRequest {
|
|
|
112
137
|
invoiceId: string;
|
|
113
138
|
}
|
|
114
139
|
|
|
140
|
+
export interface BuyersApiDownloadBuyerNotificationAttachmentRequest {
|
|
141
|
+
notificationId: string;
|
|
142
|
+
attachmentId: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
115
145
|
export interface BuyersApiGetBuyerInvoicesRequest {
|
|
116
146
|
filter?: object;
|
|
117
147
|
page?: number;
|
|
@@ -134,6 +164,10 @@ export interface BuyersApiGetBuyerLeadsRequest {
|
|
|
134
164
|
sortBy?: Array<string>;
|
|
135
165
|
}
|
|
136
166
|
|
|
167
|
+
export interface BuyersApiGetBuyerNotificationByIdRequest {
|
|
168
|
+
notificationId: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
137
171
|
export interface BuyersApiGetBuyerSubscriptionsRequest {
|
|
138
172
|
filter?: object;
|
|
139
173
|
page?: number;
|
|
@@ -141,6 +175,10 @@ export interface BuyersApiGetBuyerSubscriptionsRequest {
|
|
|
141
175
|
sortBy?: Array<string>;
|
|
142
176
|
}
|
|
143
177
|
|
|
178
|
+
export interface BuyersApiGetBuyerTaskRequest {
|
|
179
|
+
taskId: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
144
182
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
145
183
|
filter?: object;
|
|
146
184
|
page?: number;
|
|
@@ -152,6 +190,13 @@ export interface BuyersApiGetTransferAuthCodeRequest {
|
|
|
152
190
|
transferId: string;
|
|
153
191
|
}
|
|
154
192
|
|
|
193
|
+
export interface BuyersApiListBuyerNotificationsRequest {
|
|
194
|
+
filter?: object;
|
|
195
|
+
page?: number;
|
|
196
|
+
limit?: number;
|
|
197
|
+
sortBy?: Array<string>;
|
|
198
|
+
}
|
|
199
|
+
|
|
155
200
|
export interface BuyersApiPatchDomainTransferConfirmationRequest {
|
|
156
201
|
transferId: string;
|
|
157
202
|
setDomainTransferConfirmationInput: SetDomainTransferConfirmationInput;
|
|
@@ -170,6 +215,10 @@ export interface BuyersApiSetLocaleRequest {
|
|
|
170
215
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
171
216
|
}
|
|
172
217
|
|
|
218
|
+
export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
|
|
219
|
+
updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
|
|
220
|
+
}
|
|
221
|
+
|
|
173
222
|
export interface BuyersApiUpdateDomainTransferIpsTagRequest {
|
|
174
223
|
transferId: string;
|
|
175
224
|
updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
|
|
@@ -180,6 +229,11 @@ export interface BuyersApiUpdateLeadMuteStatusForBuyerRequest {
|
|
|
180
229
|
updateLeadMuteStatusForBuyerInput: UpdateLeadMuteStatusForBuyerInput;
|
|
181
230
|
}
|
|
182
231
|
|
|
232
|
+
export interface BuyersApiUpdateTaskMuteStatusForBuyerRequest {
|
|
233
|
+
taskId: string;
|
|
234
|
+
updateTaskMuteStatusForBuyerInput: UpdateTaskMuteStatusForBuyerInput;
|
|
235
|
+
}
|
|
236
|
+
|
|
183
237
|
export interface BuyersApiVerifyBuyerLeadRequest {
|
|
184
238
|
leadId: string;
|
|
185
239
|
}
|
|
@@ -272,6 +326,51 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
272
326
|
await this.batchVerifyBuyerLeadsRaw(requestParameters, initOverrides);
|
|
273
327
|
}
|
|
274
328
|
|
|
329
|
+
/**
|
|
330
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
331
|
+
* Bulk mark buyer notifications as read or unread
|
|
332
|
+
*/
|
|
333
|
+
async bulkMarkBuyerNotificationsAsReadRaw(requestParameters: BuyersApiBulkMarkBuyerNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
334
|
+
if (requestParameters['bulkMarkBuyerNotificationsAsReadInputDto'] == null) {
|
|
335
|
+
throw new runtime.RequiredError(
|
|
336
|
+
'bulkMarkBuyerNotificationsAsReadInputDto',
|
|
337
|
+
'Required parameter "bulkMarkBuyerNotificationsAsReadInputDto" was null or undefined when calling bulkMarkBuyerNotificationsAsRead().'
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
const queryParameters: any = {};
|
|
342
|
+
|
|
343
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
344
|
+
|
|
345
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
346
|
+
|
|
347
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
348
|
+
const token = this.configuration.accessToken;
|
|
349
|
+
const tokenString = await token("bearer", []);
|
|
350
|
+
|
|
351
|
+
if (tokenString) {
|
|
352
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
const response = await this.request({
|
|
356
|
+
path: `/buyers/private/notifications/bulk-mark-as-read`,
|
|
357
|
+
method: 'PATCH',
|
|
358
|
+
headers: headerParameters,
|
|
359
|
+
query: queryParameters,
|
|
360
|
+
body: BulkMarkBuyerNotificationsAsReadInputDtoToJSON(requestParameters['bulkMarkBuyerNotificationsAsReadInputDto']),
|
|
361
|
+
}, initOverrides);
|
|
362
|
+
|
|
363
|
+
return new runtime.VoidApiResponse(response);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Mark multiple notifications as read (true) or unread (false) based on the readStatus parameter
|
|
368
|
+
* Bulk mark buyer notifications as read or unread
|
|
369
|
+
*/
|
|
370
|
+
async bulkMarkBuyerNotificationsAsRead(requestParameters: BuyersApiBulkMarkBuyerNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
371
|
+
await this.bulkMarkBuyerNotificationsAsReadRaw(requestParameters, initOverrides);
|
|
372
|
+
}
|
|
373
|
+
|
|
275
374
|
/**
|
|
276
375
|
*
|
|
277
376
|
*/
|
|
@@ -564,6 +663,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
564
663
|
return await response.value();
|
|
565
664
|
}
|
|
566
665
|
|
|
666
|
+
/**
|
|
667
|
+
* Download a specific notification attachment by attachment ID
|
|
668
|
+
* Download buyer notification attachment
|
|
669
|
+
*/
|
|
670
|
+
async downloadBuyerNotificationAttachmentRaw(requestParameters: BuyersApiDownloadBuyerNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
671
|
+
if (requestParameters['notificationId'] == null) {
|
|
672
|
+
throw new runtime.RequiredError(
|
|
673
|
+
'notificationId',
|
|
674
|
+
'Required parameter "notificationId" was null or undefined when calling downloadBuyerNotificationAttachment().'
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (requestParameters['attachmentId'] == null) {
|
|
679
|
+
throw new runtime.RequiredError(
|
|
680
|
+
'attachmentId',
|
|
681
|
+
'Required parameter "attachmentId" was null or undefined when calling downloadBuyerNotificationAttachment().'
|
|
682
|
+
);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
const queryParameters: any = {};
|
|
686
|
+
|
|
687
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
688
|
+
|
|
689
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
690
|
+
const token = this.configuration.accessToken;
|
|
691
|
+
const tokenString = await token("bearer", []);
|
|
692
|
+
|
|
693
|
+
if (tokenString) {
|
|
694
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
const response = await this.request({
|
|
698
|
+
path: `/buyers/private/notifications/{notificationId}/attachments/{attachmentId}/download`.replace(`{${"notificationId"}}`, encodeURIComponent(String(requestParameters['notificationId']))).replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters['attachmentId']))),
|
|
699
|
+
method: 'GET',
|
|
700
|
+
headers: headerParameters,
|
|
701
|
+
query: queryParameters,
|
|
702
|
+
}, initOverrides);
|
|
703
|
+
|
|
704
|
+
return new runtime.BlobApiResponse(response);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Download a specific notification attachment by attachment ID
|
|
709
|
+
* Download buyer notification attachment
|
|
710
|
+
*/
|
|
711
|
+
async downloadBuyerNotificationAttachment(requestParameters: BuyersApiDownloadBuyerNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
712
|
+
const response = await this.downloadBuyerNotificationAttachmentRaw(requestParameters, initOverrides);
|
|
713
|
+
return await response.value();
|
|
714
|
+
}
|
|
715
|
+
|
|
567
716
|
/**
|
|
568
717
|
*
|
|
569
718
|
*/
|
|
@@ -746,6 +895,81 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
746
895
|
return await response.value();
|
|
747
896
|
}
|
|
748
897
|
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
*/
|
|
901
|
+
async getBuyerNotificationByIdRaw(requestParameters: BuyersApiGetBuyerNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerNotificationDto>> {
|
|
902
|
+
if (requestParameters['notificationId'] == null) {
|
|
903
|
+
throw new runtime.RequiredError(
|
|
904
|
+
'notificationId',
|
|
905
|
+
'Required parameter "notificationId" was null or undefined when calling getBuyerNotificationById().'
|
|
906
|
+
);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
const queryParameters: any = {};
|
|
910
|
+
|
|
911
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
912
|
+
|
|
913
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
914
|
+
const token = this.configuration.accessToken;
|
|
915
|
+
const tokenString = await token("bearer", []);
|
|
916
|
+
|
|
917
|
+
if (tokenString) {
|
|
918
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
const response = await this.request({
|
|
922
|
+
path: `/buyers/private/notifications/{notificationId}`.replace(`{${"notificationId"}}`, encodeURIComponent(String(requestParameters['notificationId']))),
|
|
923
|
+
method: 'GET',
|
|
924
|
+
headers: headerParameters,
|
|
925
|
+
query: queryParameters,
|
|
926
|
+
}, initOverrides);
|
|
927
|
+
|
|
928
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerNotificationDtoFromJSON(jsonValue));
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
*/
|
|
934
|
+
async getBuyerNotificationById(requestParameters: BuyersApiGetBuyerNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerNotificationDto> {
|
|
935
|
+
const response = await this.getBuyerNotificationByIdRaw(requestParameters, initOverrides);
|
|
936
|
+
return await response.value();
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
*
|
|
941
|
+
*/
|
|
942
|
+
async getBuyerNotificationSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerNotificationSettingsDto>> {
|
|
943
|
+
const queryParameters: any = {};
|
|
944
|
+
|
|
945
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
946
|
+
|
|
947
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
948
|
+
const token = this.configuration.accessToken;
|
|
949
|
+
const tokenString = await token("bearer", []);
|
|
950
|
+
|
|
951
|
+
if (tokenString) {
|
|
952
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
const response = await this.request({
|
|
956
|
+
path: `/buyers/private/notification-settings`,
|
|
957
|
+
method: 'GET',
|
|
958
|
+
headers: headerParameters,
|
|
959
|
+
query: queryParameters,
|
|
960
|
+
}, initOverrides);
|
|
961
|
+
|
|
962
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerNotificationSettingsDtoFromJSON(jsonValue));
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
*/
|
|
968
|
+
async getBuyerNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerNotificationSettingsDto> {
|
|
969
|
+
const response = await this.getBuyerNotificationSettingsRaw(initOverrides);
|
|
970
|
+
return await response.value();
|
|
971
|
+
}
|
|
972
|
+
|
|
749
973
|
/**
|
|
750
974
|
*
|
|
751
975
|
*/
|
|
@@ -796,6 +1020,47 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
796
1020
|
return await response.value();
|
|
797
1021
|
}
|
|
798
1022
|
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
*/
|
|
1026
|
+
async getBuyerTaskRaw(requestParameters: BuyersApiGetBuyerTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerTaskDetailsDto>> {
|
|
1027
|
+
if (requestParameters['taskId'] == null) {
|
|
1028
|
+
throw new runtime.RequiredError(
|
|
1029
|
+
'taskId',
|
|
1030
|
+
'Required parameter "taskId" was null or undefined when calling getBuyerTask().'
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
const queryParameters: any = {};
|
|
1035
|
+
|
|
1036
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1037
|
+
|
|
1038
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1039
|
+
const token = this.configuration.accessToken;
|
|
1040
|
+
const tokenString = await token("bearer", []);
|
|
1041
|
+
|
|
1042
|
+
if (tokenString) {
|
|
1043
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
const response = await this.request({
|
|
1047
|
+
path: `/buyers/private/tasks/{taskId}`.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))),
|
|
1048
|
+
method: 'GET',
|
|
1049
|
+
headers: headerParameters,
|
|
1050
|
+
query: queryParameters,
|
|
1051
|
+
}, initOverrides);
|
|
1052
|
+
|
|
1053
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerTaskDetailsDtoFromJSON(jsonValue));
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
*
|
|
1058
|
+
*/
|
|
1059
|
+
async getBuyerTask(requestParameters: BuyersApiGetBuyerTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerTaskDetailsDto> {
|
|
1060
|
+
const response = await this.getBuyerTaskRaw(requestParameters, initOverrides);
|
|
1061
|
+
return await response.value();
|
|
1062
|
+
}
|
|
1063
|
+
|
|
799
1064
|
/**
|
|
800
1065
|
*
|
|
801
1066
|
*/
|
|
@@ -887,6 +1152,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
887
1152
|
return await response.value();
|
|
888
1153
|
}
|
|
889
1154
|
|
|
1155
|
+
/**
|
|
1156
|
+
*
|
|
1157
|
+
*/
|
|
1158
|
+
async listBuyerNotificationsRaw(requestParameters: BuyersApiListBuyerNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBuyerNotifications200Response>> {
|
|
1159
|
+
const queryParameters: any = {};
|
|
1160
|
+
|
|
1161
|
+
if (requestParameters['filter'] != null) {
|
|
1162
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
if (requestParameters['page'] != null) {
|
|
1166
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
if (requestParameters['limit'] != null) {
|
|
1170
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
if (requestParameters['sortBy'] != null) {
|
|
1174
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1178
|
+
|
|
1179
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1180
|
+
const token = this.configuration.accessToken;
|
|
1181
|
+
const tokenString = await token("bearer", []);
|
|
1182
|
+
|
|
1183
|
+
if (tokenString) {
|
|
1184
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
const response = await this.request({
|
|
1188
|
+
path: `/buyers/private/notifications`,
|
|
1189
|
+
method: 'GET',
|
|
1190
|
+
headers: headerParameters,
|
|
1191
|
+
query: queryParameters,
|
|
1192
|
+
}, initOverrides);
|
|
1193
|
+
|
|
1194
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListBuyerNotifications200ResponseFromJSON(jsonValue));
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
*
|
|
1199
|
+
*/
|
|
1200
|
+
async listBuyerNotifications(requestParameters: BuyersApiListBuyerNotificationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBuyerNotifications200Response> {
|
|
1201
|
+
const response = await this.listBuyerNotificationsRaw(requestParameters, initOverrides);
|
|
1202
|
+
return await response.value();
|
|
1203
|
+
}
|
|
1204
|
+
|
|
890
1205
|
/**
|
|
891
1206
|
*
|
|
892
1207
|
*/
|
|
@@ -1070,6 +1385,49 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1070
1385
|
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
1071
1386
|
}
|
|
1072
1387
|
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
*/
|
|
1391
|
+
async updateBuyerNotificationSettingsRaw(requestParameters: BuyersApiUpdateBuyerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1392
|
+
if (requestParameters['updateBuyerNotificationSettingsInput'] == null) {
|
|
1393
|
+
throw new runtime.RequiredError(
|
|
1394
|
+
'updateBuyerNotificationSettingsInput',
|
|
1395
|
+
'Required parameter "updateBuyerNotificationSettingsInput" was null or undefined when calling updateBuyerNotificationSettings().'
|
|
1396
|
+
);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
const queryParameters: any = {};
|
|
1400
|
+
|
|
1401
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1402
|
+
|
|
1403
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1404
|
+
|
|
1405
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1406
|
+
const token = this.configuration.accessToken;
|
|
1407
|
+
const tokenString = await token("bearer", []);
|
|
1408
|
+
|
|
1409
|
+
if (tokenString) {
|
|
1410
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
const response = await this.request({
|
|
1414
|
+
path: `/buyers/private/notification-settings`,
|
|
1415
|
+
method: 'PATCH',
|
|
1416
|
+
headers: headerParameters,
|
|
1417
|
+
query: queryParameters,
|
|
1418
|
+
body: UpdateBuyerNotificationSettingsInputToJSON(requestParameters['updateBuyerNotificationSettingsInput']),
|
|
1419
|
+
}, initOverrides);
|
|
1420
|
+
|
|
1421
|
+
return new runtime.VoidApiResponse(response);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
*/
|
|
1427
|
+
async updateBuyerNotificationSettings(requestParameters: BuyersApiUpdateBuyerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1428
|
+
await this.updateBuyerNotificationSettingsRaw(requestParameters, initOverrides);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1073
1431
|
/**
|
|
1074
1432
|
*
|
|
1075
1433
|
*/
|
|
@@ -1170,6 +1528,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1170
1528
|
await this.updateLeadMuteStatusForBuyerRaw(requestParameters, initOverrides);
|
|
1171
1529
|
}
|
|
1172
1530
|
|
|
1531
|
+
/**
|
|
1532
|
+
*
|
|
1533
|
+
*/
|
|
1534
|
+
async updateTaskMuteStatusForBuyerRaw(requestParameters: BuyersApiUpdateTaskMuteStatusForBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1535
|
+
if (requestParameters['taskId'] == null) {
|
|
1536
|
+
throw new runtime.RequiredError(
|
|
1537
|
+
'taskId',
|
|
1538
|
+
'Required parameter "taskId" was null or undefined when calling updateTaskMuteStatusForBuyer().'
|
|
1539
|
+
);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
if (requestParameters['updateTaskMuteStatusForBuyerInput'] == null) {
|
|
1543
|
+
throw new runtime.RequiredError(
|
|
1544
|
+
'updateTaskMuteStatusForBuyerInput',
|
|
1545
|
+
'Required parameter "updateTaskMuteStatusForBuyerInput" was null or undefined when calling updateTaskMuteStatusForBuyer().'
|
|
1546
|
+
);
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
const queryParameters: any = {};
|
|
1550
|
+
|
|
1551
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1552
|
+
|
|
1553
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1554
|
+
|
|
1555
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1556
|
+
const token = this.configuration.accessToken;
|
|
1557
|
+
const tokenString = await token("bearer", []);
|
|
1558
|
+
|
|
1559
|
+
if (tokenString) {
|
|
1560
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
const response = await this.request({
|
|
1564
|
+
path: `/buyers/private/tasks/{taskId}/status/mute`.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))),
|
|
1565
|
+
method: 'PUT',
|
|
1566
|
+
headers: headerParameters,
|
|
1567
|
+
query: queryParameters,
|
|
1568
|
+
body: UpdateTaskMuteStatusForBuyerInputToJSON(requestParameters['updateTaskMuteStatusForBuyerInput']),
|
|
1569
|
+
}, initOverrides);
|
|
1570
|
+
|
|
1571
|
+
return new runtime.VoidApiResponse(response);
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
*
|
|
1576
|
+
*/
|
|
1577
|
+
async updateTaskMuteStatusForBuyer(requestParameters: BuyersApiUpdateTaskMuteStatusForBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1578
|
+
await this.updateTaskMuteStatusForBuyerRaw(requestParameters, initOverrides);
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1173
1581
|
/**
|
|
1174
1582
|
*
|
|
1175
1583
|
*/
|
package/src/apis/TasksApi.ts
CHANGED
|
@@ -16,15 +16,25 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
List200Response1,
|
|
19
|
+
TaskDetailsDto,
|
|
20
|
+
UpdateTaskMuteStatusInput,
|
|
19
21
|
ValidationException,
|
|
20
22
|
} from '../models/index';
|
|
21
23
|
import {
|
|
22
24
|
List200Response1FromJSON,
|
|
23
25
|
List200Response1ToJSON,
|
|
26
|
+
TaskDetailsDtoFromJSON,
|
|
27
|
+
TaskDetailsDtoToJSON,
|
|
28
|
+
UpdateTaskMuteStatusInputFromJSON,
|
|
29
|
+
UpdateTaskMuteStatusInputToJSON,
|
|
24
30
|
ValidationExceptionFromJSON,
|
|
25
31
|
ValidationExceptionToJSON,
|
|
26
32
|
} from '../models/index';
|
|
27
33
|
|
|
34
|
+
export interface TasksApiGetTaskRequest {
|
|
35
|
+
taskId: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
export interface TasksApiListRequest {
|
|
29
39
|
filter?: object;
|
|
30
40
|
page?: number;
|
|
@@ -32,11 +42,57 @@ export interface TasksApiListRequest {
|
|
|
32
42
|
sortBy?: Array<string>;
|
|
33
43
|
}
|
|
34
44
|
|
|
45
|
+
export interface TasksApiUpdateTaskMuteStatusRequest {
|
|
46
|
+
taskId: string;
|
|
47
|
+
updateTaskMuteStatusInput: UpdateTaskMuteStatusInput;
|
|
48
|
+
}
|
|
49
|
+
|
|
35
50
|
/**
|
|
36
51
|
*
|
|
37
52
|
*/
|
|
38
53
|
export class TasksApi extends runtime.BaseAPI {
|
|
39
54
|
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
async getTaskRaw(requestParameters: TasksApiGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDetailsDto>> {
|
|
59
|
+
if (requestParameters['taskId'] == null) {
|
|
60
|
+
throw new runtime.RequiredError(
|
|
61
|
+
'taskId',
|
|
62
|
+
'Required parameter "taskId" was null or undefined when calling getTask().'
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const queryParameters: any = {};
|
|
67
|
+
|
|
68
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
|
+
|
|
70
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
71
|
+
const token = this.configuration.accessToken;
|
|
72
|
+
const tokenString = await token("bearer", []);
|
|
73
|
+
|
|
74
|
+
if (tokenString) {
|
|
75
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const response = await this.request({
|
|
79
|
+
path: `/private/tasks/{taskId}`.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))),
|
|
80
|
+
method: 'GET',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
}, initOverrides);
|
|
84
|
+
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDetailsDtoFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
async getTask(requestParameters: TasksApiGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDetailsDto> {
|
|
92
|
+
const response = await this.getTaskRaw(requestParameters, initOverrides);
|
|
93
|
+
return await response.value();
|
|
94
|
+
}
|
|
95
|
+
|
|
40
96
|
/**
|
|
41
97
|
*
|
|
42
98
|
*/
|
|
@@ -87,4 +143,54 @@ export class TasksApi extends runtime.BaseAPI {
|
|
|
87
143
|
return await response.value();
|
|
88
144
|
}
|
|
89
145
|
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
async updateTaskMuteStatusRaw(requestParameters: TasksApiUpdateTaskMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
150
|
+
if (requestParameters['taskId'] == null) {
|
|
151
|
+
throw new runtime.RequiredError(
|
|
152
|
+
'taskId',
|
|
153
|
+
'Required parameter "taskId" was null or undefined when calling updateTaskMuteStatus().'
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (requestParameters['updateTaskMuteStatusInput'] == null) {
|
|
158
|
+
throw new runtime.RequiredError(
|
|
159
|
+
'updateTaskMuteStatusInput',
|
|
160
|
+
'Required parameter "updateTaskMuteStatusInput" was null or undefined when calling updateTaskMuteStatus().'
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const queryParameters: any = {};
|
|
165
|
+
|
|
166
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
167
|
+
|
|
168
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
169
|
+
|
|
170
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
171
|
+
const token = this.configuration.accessToken;
|
|
172
|
+
const tokenString = await token("bearer", []);
|
|
173
|
+
|
|
174
|
+
if (tokenString) {
|
|
175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const response = await this.request({
|
|
179
|
+
path: `/private/tasks/{taskId}/status/mute-for-seller`.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))),
|
|
180
|
+
method: 'PUT',
|
|
181
|
+
headers: headerParameters,
|
|
182
|
+
query: queryParameters,
|
|
183
|
+
body: UpdateTaskMuteStatusInputToJSON(requestParameters['updateTaskMuteStatusInput']),
|
|
184
|
+
}, initOverrides);
|
|
185
|
+
|
|
186
|
+
return new runtime.VoidApiResponse(response);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
async updateTaskMuteStatus(requestParameters: TasksApiUpdateTaskMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
193
|
+
await this.updateTaskMuteStatusRaw(requestParameters, initOverrides);
|
|
194
|
+
}
|
|
195
|
+
|
|
90
196
|
}
|