@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
|
@@ -118,6 +118,12 @@ export interface IntersectionListAccountDtoWithAccountCommissionDto {
|
|
|
118
118
|
* @memberof IntersectionListAccountDtoWithAccountCommissionDto
|
|
119
119
|
*/
|
|
120
120
|
users: Array<ListAccountUserDto>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof IntersectionListAccountDtoWithAccountCommissionDto
|
|
125
|
+
*/
|
|
126
|
+
defaultCommissionPercentage: number;
|
|
121
127
|
/**
|
|
122
128
|
*
|
|
123
129
|
* @type {number}
|
|
@@ -174,6 +180,7 @@ export function instanceOfIntersectionListAccountDtoWithAccountCommissionDto(val
|
|
|
174
180
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
175
181
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
176
182
|
if (!('users' in value) || value['users'] === undefined) return false;
|
|
183
|
+
if (!('defaultCommissionPercentage' in value) || value['defaultCommissionPercentage'] === undefined) return false;
|
|
177
184
|
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
|
|
178
185
|
return true;
|
|
179
186
|
}
|
|
@@ -202,6 +209,7 @@ export function IntersectionListAccountDtoWithAccountCommissionDtoFromJSONTyped(
|
|
|
202
209
|
'metrics': ListAccountMetricsDtoFromJSON(json['metrics']),
|
|
203
210
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
204
211
|
'users': ((json['users'] as Array<any>).map(ListAccountUserDtoFromJSON)),
|
|
212
|
+
'defaultCommissionPercentage': json['defaultCommissionPercentage'],
|
|
205
213
|
'commissionPercentage': json['commissionPercentage'],
|
|
206
214
|
};
|
|
207
215
|
}
|
|
@@ -231,6 +239,7 @@ export function IntersectionListAccountDtoWithAccountCommissionDtoToJSONTyped(va
|
|
|
231
239
|
'metrics': ListAccountMetricsDtoToJSON(value['metrics']),
|
|
232
240
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
233
241
|
'users': ((value['users'] as Array<any>).map(ListAccountUserDtoToJSON)),
|
|
242
|
+
'defaultCommissionPercentage': value['defaultCommissionPercentage'],
|
|
234
243
|
'commissionPercentage': value['commissionPercentage'],
|
|
235
244
|
};
|
|
236
245
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { BuyerNotificationListItemDto } from './BuyerNotificationListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
BuyerNotificationListItemDtoFromJSON,
|
|
26
|
+
BuyerNotificationListItemDtoFromJSONTyped,
|
|
27
|
+
BuyerNotificationListItemDtoToJSON,
|
|
28
|
+
BuyerNotificationListItemDtoToJSONTyped,
|
|
29
|
+
} from './BuyerNotificationListItemDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ListBuyerNotifications200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListBuyerNotifications200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<BuyerNotificationListItemDto>}
|
|
47
|
+
* @memberof ListBuyerNotifications200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<BuyerNotificationListItemDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListBuyerNotifications200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListBuyerNotifications200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListBuyerNotifications200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListBuyerNotifications200Response(value: object): value is ListBuyerNotifications200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListBuyerNotifications200ResponseFromJSON(json: any): ListBuyerNotifications200Response {
|
|
75
|
+
return ListBuyerNotifications200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListBuyerNotifications200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBuyerNotifications200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(BuyerNotificationListItemDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListBuyerNotifications200ResponseToJSON(json: any): ListBuyerNotifications200Response {
|
|
91
|
+
return ListBuyerNotifications200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListBuyerNotifications200ResponseToJSONTyped(value?: ListBuyerNotifications200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(BuyerNotificationListItemDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateBuyerNotificationSettingsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateBuyerNotificationSettingsInput {
|
|
22
|
+
/**
|
|
23
|
+
* Disable all notifications
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateBuyerNotificationSettingsInput
|
|
26
|
+
*/
|
|
27
|
+
allDisabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateBuyerNotificationSettingsInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateBuyerNotificationSettingsInput(value: object): value is UpdateBuyerNotificationSettingsInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function UpdateBuyerNotificationSettingsInputFromJSON(json: any): UpdateBuyerNotificationSettingsInput {
|
|
38
|
+
return UpdateBuyerNotificationSettingsInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function UpdateBuyerNotificationSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBuyerNotificationSettingsInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'allDisabled': json['allDisabled'] == null ? undefined : json['allDisabled'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UpdateBuyerNotificationSettingsInputToJSON(json: any): UpdateBuyerNotificationSettingsInput {
|
|
52
|
+
return UpdateBuyerNotificationSettingsInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateBuyerNotificationSettingsInputToJSONTyped(value?: UpdateBuyerNotificationSettingsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'allDisabled': value['allDisabled'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -48,6 +48,13 @@ import {
|
|
|
48
48
|
AccountSettingsLeaseToOwnConfigurationDtoToJSON,
|
|
49
49
|
AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped,
|
|
50
50
|
} from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
51
|
+
import type { AccountCommissionByDateRangeDto } from './AccountCommissionByDateRangeDto';
|
|
52
|
+
import {
|
|
53
|
+
AccountCommissionByDateRangeDtoFromJSON,
|
|
54
|
+
AccountCommissionByDateRangeDtoFromJSONTyped,
|
|
55
|
+
AccountCommissionByDateRangeDtoToJSON,
|
|
56
|
+
AccountCommissionByDateRangeDtoToJSONTyped,
|
|
57
|
+
} from './AccountCommissionByDateRangeDto';
|
|
51
58
|
import type { TimeTableConfigurationDto } from './TimeTableConfigurationDto';
|
|
52
59
|
import {
|
|
53
60
|
TimeTableConfigurationDtoFromJSON,
|
|
@@ -183,6 +190,18 @@ export interface WithSettingsInner {
|
|
|
183
190
|
* @memberof WithSettingsInner
|
|
184
191
|
*/
|
|
185
192
|
transferCostPaymentMaxPercentage: number;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {number}
|
|
196
|
+
* @memberof WithSettingsInner
|
|
197
|
+
*/
|
|
198
|
+
commissionPercentage: number;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @type {Array<AccountCommissionByDateRangeDto>}
|
|
202
|
+
* @memberof WithSettingsInner
|
|
203
|
+
*/
|
|
204
|
+
commissionsByDateRange: Array<AccountCommissionByDateRangeDto>;
|
|
186
205
|
}
|
|
187
206
|
|
|
188
207
|
/**
|
|
@@ -208,6 +227,8 @@ export function instanceOfWithSettingsInner(value: object): value is WithSetting
|
|
|
208
227
|
if (!('affiliate' in value) || value['affiliate'] === undefined) return false;
|
|
209
228
|
if (!('domainAffiliate' in value) || value['domainAffiliate'] === undefined) return false;
|
|
210
229
|
if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined) return false;
|
|
230
|
+
if (!('commissionPercentage' in value) || value['commissionPercentage'] === undefined) return false;
|
|
231
|
+
if (!('commissionsByDateRange' in value) || value['commissionsByDateRange'] === undefined) return false;
|
|
211
232
|
return true;
|
|
212
233
|
}
|
|
213
234
|
|
|
@@ -240,6 +261,8 @@ export function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
240
261
|
'affiliate': AccountSettingsAffiliateDtoFromJSON(json['affiliate']),
|
|
241
262
|
'domainAffiliate': AccountSettingsAffiliateDtoFromJSON(json['domainAffiliate']),
|
|
242
263
|
'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
|
|
264
|
+
'commissionPercentage': json['commissionPercentage'],
|
|
265
|
+
'commissionsByDateRange': ((json['commissionsByDateRange'] as Array<any>).map(AccountCommissionByDateRangeDtoFromJSON)),
|
|
243
266
|
};
|
|
244
267
|
}
|
|
245
268
|
|
|
@@ -273,6 +296,8 @@ export function WithSettingsInnerToJSONTyped(value?: WithSettingsInner | null, i
|
|
|
273
296
|
'affiliate': AccountSettingsAffiliateDtoToJSON(value['affiliate']),
|
|
274
297
|
'domainAffiliate': AccountSettingsAffiliateDtoToJSON(value['domainAffiliate']),
|
|
275
298
|
'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
|
|
299
|
+
'commissionPercentage': value['commissionPercentage'],
|
|
300
|
+
'commissionsByDateRange': ((value['commissionsByDateRange'] as Array<any>).map(AccountCommissionByDateRangeDtoToJSON)),
|
|
276
301
|
};
|
|
277
302
|
}
|
|
278
303
|
|
package/src/models/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './AccountAliasDto';
|
|
|
4
4
|
export * from './AccountAliasInput';
|
|
5
5
|
export * from './AccountBankAccountDto';
|
|
6
6
|
export * from './AccountBankAccountDtoDetails';
|
|
7
|
+
export * from './AccountCommissionByDateRangeDto';
|
|
7
8
|
export * from './AccountDto';
|
|
8
9
|
export * from './AccountMetricsDto';
|
|
9
10
|
export * from './AccountNotificationDto';
|
|
@@ -21,6 +22,7 @@ export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
|
21
22
|
export * from './AccountSettingsRentConfigurationDto';
|
|
22
23
|
export * from './AccountSettingsSidnDto';
|
|
23
24
|
export * from './AddressDto';
|
|
25
|
+
export * from './AdminAccountCommissionByDateRangeInput';
|
|
24
26
|
export * from './AdminAccountLoginDto';
|
|
25
27
|
export * from './AdminAccountSettingsAffiliateCommissionInput';
|
|
26
28
|
export * from './AdminAccountSettingsAffiliateInput';
|
|
@@ -47,6 +49,7 @@ export * from './BatchReadSellerLeadMessageInput';
|
|
|
47
49
|
export * from './BatchUpdateDomainsInput';
|
|
48
50
|
export * from './BatchVerifyBuyerLeadsInput';
|
|
49
51
|
export * from './BillingInformationDto';
|
|
52
|
+
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
50
53
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
51
54
|
export * from './BuyerDomainTransferAuthCodeDto';
|
|
52
55
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
@@ -57,6 +60,10 @@ export * from './BuyerInvoiceDto';
|
|
|
57
60
|
export * from './BuyerInvoiceSellerAccountDto';
|
|
58
61
|
export * from './BuyerLeadListItemDomainDto';
|
|
59
62
|
export * from './BuyerLeadListItemDto';
|
|
63
|
+
export * from './BuyerNotificationAttachmentDto';
|
|
64
|
+
export * from './BuyerNotificationDto';
|
|
65
|
+
export * from './BuyerNotificationListItemDto';
|
|
66
|
+
export * from './BuyerNotificationSettingsDto';
|
|
60
67
|
export * from './BuyerSecurityUserDto';
|
|
61
68
|
export * from './BuyerSessionDto';
|
|
62
69
|
export * from './BuyerSubscriptionListItemDto';
|
|
@@ -169,6 +176,7 @@ export * from './ListAccountMetricsDto';
|
|
|
169
176
|
export * from './ListAccountUserDto';
|
|
170
177
|
export * from './ListAccounts200Response';
|
|
171
178
|
export * from './ListBankAccounts200Response';
|
|
179
|
+
export * from './ListBuyerNotifications200Response';
|
|
172
180
|
export * from './ListDomains200Response';
|
|
173
181
|
export * from './ListDomainsWithUpdatedPricing200Response';
|
|
174
182
|
export * from './ListLeadMessagesDto';
|
|
@@ -279,6 +287,7 @@ export * from './TimeTableConfigurationInput';
|
|
|
279
287
|
export * from './UkBankAccountDetails';
|
|
280
288
|
export * from './UpdateAccountBillingInformationInput';
|
|
281
289
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
290
|
+
export * from './UpdateBuyerNotificationSettingsInput';
|
|
282
291
|
export * from './UpdateDomainInput';
|
|
283
292
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
284
293
|
export * from './UpdateDomainTransferIpsTagInput';
|