@randock/nameshift-api-client 0.0.471 → 0.0.473
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/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +6 -6
- package/dist/apis/LeadsPublicApi.d.ts +2 -2
- package/dist/apis/LeadsPublicApi.js +16 -5
- package/dist/apis/MarketingApi.d.ts +2 -2
- package/dist/apis/StatsApi.d.ts +5 -5
- package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.d.ts +1 -1
- package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.js +3 -1
- package/dist/models/AdminBankDepositDto.d.ts +4 -2
- package/dist/models/AdminChallengeListItemDto.d.ts +4 -2
- package/dist/models/AggregatedPaginationResponse.d.ts +4 -2
- package/dist/models/AirwallexDepositDto.d.ts +4 -2
- package/dist/models/AirwallexDepositDtoFee.d.ts +2 -2
- package/dist/models/AirwallexDepositDtoFee.js +6 -2
- package/dist/models/BuyerDto.d.ts +3 -3
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/CommissionAction.d.ts +1 -1
- package/dist/models/CommissionAction.js +1 -1
- package/dist/models/CommissionAddUpdateActionInput.d.ts +1 -1
- package/dist/models/CommissionConfigurationInput.d.ts +1 -1
- package/dist/models/CommissionDeleteActionInput.d.ts +1 -1
- package/dist/models/CommissionFactor.d.ts +1 -1
- package/dist/models/CommissionFactor.js +1 -1
- package/dist/models/CreateAccountPaymentInput.d.ts +4 -2
- package/dist/models/CreateApiKeyInput.d.ts +2 -2
- package/dist/models/CreateApiKeyInput.js +2 -2
- package/dist/models/FixedCommissionPayloadDto.d.ts +1 -1
- package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +1 -1
- package/dist/models/FixedCommissionReasonPayloadDto.d.ts +1 -1
- package/dist/models/List200Response3.d.ts +4 -2
- package/dist/models/List200Response4.d.ts +4 -2
- package/dist/models/OrderDto.d.ts +4 -2
- package/dist/models/OwnedDomainDto.d.ts +4 -2
- package/dist/models/SalesCountCommissionPayloadDto.d.ts +1 -1
- package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +1 -1
- package/dist/models/SalesCountCommissionReasonPayloadDto.d.ts +1 -1
- package/dist/models/SellerScaleChallengeListItemDto.d.ts +4 -2
- package/dist/models/SubscriptionDto.d.ts +4 -2
- package/dist/models/UpdateApiKeyInput.d.ts +2 -2
- package/dist/models/UpdateApiKeyInput.js +2 -2
- package/dist/models/UpdateChallengeInput.d.ts +4 -2
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +8 -5
- package/src/apis/LeadsPublicApi.ts +12 -4
- package/src/apis/MarketingApi.ts +4 -1
- package/src/apis/StatsApi.ts +7 -4
- package/src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts +3 -2
- package/src/models/AdminBankDepositDto.ts +2 -2
- package/src/models/AdminChallengeListItemDto.ts +2 -2
- package/src/models/AggregatedPaginationResponse.ts +2 -2
- package/src/models/AirwallexDepositDto.ts +2 -2
- package/src/models/AirwallexDepositDtoFee.ts +6 -4
- package/src/models/BuyerDto.ts +3 -3
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/CommissionAction.ts +1 -1
- package/src/models/CommissionAddUpdateActionInput.ts +1 -1
- package/src/models/CommissionConfigurationInput.ts +1 -1
- package/src/models/CommissionDeleteActionInput.ts +1 -1
- package/src/models/CommissionFactor.ts +1 -1
- package/src/models/CreateAccountPaymentInput.ts +2 -2
- package/src/models/CreateApiKeyInput.ts +4 -4
- package/src/models/FixedCommissionPayloadDto.ts +1 -1
- package/src/models/FixedCommissionPayloadSimulationInput.ts +1 -1
- package/src/models/FixedCommissionReasonPayloadDto.ts +1 -1
- package/src/models/List200Response3.ts +2 -2
- package/src/models/List200Response4.ts +2 -2
- package/src/models/OrderDto.ts +2 -2
- package/src/models/OwnedDomainDto.ts +2 -2
- package/src/models/SalesCountCommissionPayloadDto.ts +1 -1
- package/src/models/SalesCountCommissionPayloadSimulationInput.ts +1 -1
- package/src/models/SalesCountCommissionReasonPayloadDto.ts +1 -1
- package/src/models/SellerScaleChallengeListItemDto.ts +2 -2
- package/src/models/SubscriptionDto.ts +2 -2
- package/src/models/UpdateApiKeyInput.ts +4 -4
- package/src/models/UpdateChallengeInput.ts +2 -2
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
|
@@ -23,10 +23,10 @@ export interface UpdateApiKeyInput {
|
|
|
23
23
|
name?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Replacement set of scopes. Takes effect on the next request made with the key.
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {Set<string>}
|
|
27
27
|
* @memberof UpdateApiKeyInput
|
|
28
28
|
*/
|
|
29
|
-
scope?:
|
|
29
|
+
scope?: Set<UpdateApiKeyInputScopeEnum>;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @export
|
|
@@ -72,7 +72,7 @@ function UpdateApiKeyInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
74
74
|
'name': json['name'] == null ? undefined : json['name'],
|
|
75
|
-
'scope': json['scope'] == null ? undefined : json['scope'],
|
|
75
|
+
'scope': json['scope'] == null ? undefined : new Set(json['scope']),
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
function UpdateApiKeyInputToJSON(json) {
|
|
@@ -85,6 +85,6 @@ function UpdateApiKeyInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
85
|
}
|
|
86
86
|
return {
|
|
87
87
|
'name': value['name'],
|
|
88
|
-
'scope': value['scope'],
|
|
88
|
+
'scope': value['scope'] == null ? undefined : Array.from(value['scope']),
|
|
89
89
|
};
|
|
90
90
|
}
|
|
@@ -29,10 +29,12 @@ export interface UpdateChallengeInput {
|
|
|
29
29
|
rewardPoints?: number;
|
|
30
30
|
/**
|
|
31
31
|
* Scale object: threshold -> reward points (only for rewardType=scale). E.g. { "1": 0.1, "5": 0.5, "10": 1 }. Send the full scale, not a single item.
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {{ [key: string]: number; }}
|
|
33
33
|
* @memberof UpdateChallengeInput
|
|
34
34
|
*/
|
|
35
|
-
scale?:
|
|
35
|
+
scale?: {
|
|
36
|
+
[key: string]: number;
|
|
37
|
+
};
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Check if a given object implements the UpdateChallengeInput interface.
|
|
@@ -118,6 +118,7 @@ export declare const UserNotificationDtoTypeEnum: {
|
|
|
118
118
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
119
119
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
120
120
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
121
|
+
readonly BUYER_BANK_TRANSFER_PAYMENT_DETAILS: "buyer_bank_transfer_payment_details";
|
|
121
122
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
122
123
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
123
124
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
@@ -79,6 +79,7 @@ exports.UserNotificationDtoTypeEnum = {
|
|
|
79
79
|
BUYER_INVOICE: 'buyer_invoice',
|
|
80
80
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
81
81
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
82
|
+
BUYER_BANK_TRANSFER_PAYMENT_DETAILS: 'buyer_bank_transfer_payment_details',
|
|
82
83
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
83
84
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
84
85
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
@@ -111,6 +111,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
|
|
|
111
111
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
112
112
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
113
113
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
114
|
+
readonly BUYER_BANK_TRANSFER_PAYMENT_DETAILS: "buyer_bank_transfer_payment_details";
|
|
114
115
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
115
116
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
116
117
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
@@ -78,6 +78,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
|
|
|
78
78
|
BUYER_INVOICE: 'buyer_invoice',
|
|
79
79
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
80
80
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
81
|
+
BUYER_BANK_TRANSFER_PAYMENT_DETAILS: 'buyer_bank_transfer_payment_details',
|
|
81
82
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
82
83
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
83
84
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -62,6 +62,7 @@ import type {
|
|
|
62
62
|
SellerSalesCountStatsItemDto,
|
|
63
63
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
|
|
64
64
|
SimulateCommissionInput,
|
|
65
|
+
StatsFilterInputDateRange,
|
|
65
66
|
SubscriptionDetailsDto,
|
|
66
67
|
UpdateAccountChallengeRewardBalanceInput,
|
|
67
68
|
UpdateChallengeInput,
|
|
@@ -164,6 +165,8 @@ import {
|
|
|
164
165
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON,
|
|
165
166
|
SimulateCommissionInputFromJSON,
|
|
166
167
|
SimulateCommissionInputToJSON,
|
|
168
|
+
StatsFilterInputDateRangeFromJSON,
|
|
169
|
+
StatsFilterInputDateRangeToJSON,
|
|
167
170
|
SubscriptionDetailsDtoFromJSON,
|
|
168
171
|
SubscriptionDetailsDtoToJSON,
|
|
169
172
|
UpdateAccountChallengeRewardBalanceInputFromJSON,
|
|
@@ -259,7 +262,7 @@ export interface AdminApiGetAccountSettingsRequest {
|
|
|
259
262
|
}
|
|
260
263
|
|
|
261
264
|
export interface AdminApiGetAdminDashboardStatsRequest {
|
|
262
|
-
dateRange?:
|
|
265
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
@@ -269,11 +272,11 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
|
269
272
|
export interface AdminApiGetAdminSalesByTldRequest {
|
|
270
273
|
currency: string;
|
|
271
274
|
accountId?: string;
|
|
272
|
-
dateRange?:
|
|
275
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
273
276
|
}
|
|
274
277
|
|
|
275
278
|
export interface AdminApiGetAllAccountsSalesCountRequest {
|
|
276
|
-
dateRange?:
|
|
279
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
277
280
|
}
|
|
278
281
|
|
|
279
282
|
export interface AdminApiGetAllAuctionsRequest {
|
|
@@ -333,7 +336,7 @@ export interface AdminApiGetAllSubscriptionsRequest {
|
|
|
333
336
|
}
|
|
334
337
|
|
|
335
338
|
export interface AdminApiGetCompanyStatsRequest {
|
|
336
|
-
dateRange?:
|
|
339
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
export interface AdminApiGetDomainStatsRequest {
|
|
@@ -415,7 +418,7 @@ export interface AdminApiListLedgerMutationsRequest {
|
|
|
415
418
|
ledgerId: string;
|
|
416
419
|
page?: number;
|
|
417
420
|
limit?: number;
|
|
418
|
-
dateRange?:
|
|
421
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
419
422
|
}
|
|
420
423
|
|
|
421
424
|
export interface AdminApiLoginAsRequest {
|
|
@@ -275,7 +275,7 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
275
275
|
* Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
|
|
276
276
|
* Update a lead
|
|
277
277
|
*/
|
|
278
|
-
async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
278
|
+
async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
279
279
|
if (requestParameters['leadId'] == null) {
|
|
280
280
|
throw new runtime.RequiredError(
|
|
281
281
|
'leadId',
|
|
@@ -304,15 +304,23 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
304
304
|
body: UpdateLeadInputToJSON(requestParameters['updateLeadInput']),
|
|
305
305
|
}, initOverrides);
|
|
306
306
|
|
|
307
|
-
return new runtime.
|
|
307
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
311
|
* Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
|
|
312
312
|
* Update a lead
|
|
313
313
|
*/
|
|
314
|
-
async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
315
|
-
await this.updateLeadRaw(requestParameters, initOverrides);
|
|
314
|
+
async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId | null | undefined > {
|
|
315
|
+
const response = await this.updateLeadRaw(requestParameters, initOverrides);
|
|
316
|
+
switch (response.raw.status) {
|
|
317
|
+
case 202:
|
|
318
|
+
return await response.value();
|
|
319
|
+
case 204:
|
|
320
|
+
return null;
|
|
321
|
+
default:
|
|
322
|
+
return await response.value();
|
|
323
|
+
}
|
|
316
324
|
}
|
|
317
325
|
|
|
318
326
|
/**
|
package/src/apis/MarketingApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
GetMarketingSales200Response,
|
|
19
19
|
MarketingDashboardStatsDto,
|
|
20
20
|
MarketingSalesFiltersDto,
|
|
21
|
+
StatsFilterInputDateRange,
|
|
21
22
|
ValidationException,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
@@ -27,12 +28,14 @@ import {
|
|
|
27
28
|
MarketingDashboardStatsDtoToJSON,
|
|
28
29
|
MarketingSalesFiltersDtoFromJSON,
|
|
29
30
|
MarketingSalesFiltersDtoToJSON,
|
|
31
|
+
StatsFilterInputDateRangeFromJSON,
|
|
32
|
+
StatsFilterInputDateRangeToJSON,
|
|
30
33
|
ValidationExceptionFromJSON,
|
|
31
34
|
ValidationExceptionToJSON,
|
|
32
35
|
} from '../models/index';
|
|
33
36
|
|
|
34
37
|
export interface MarketingApiGetMarketingDashboardStatsRequest {
|
|
35
|
-
dateRange?:
|
|
38
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
export interface MarketingApiGetMarketingSalesRequest {
|
package/src/apis/StatsApi.ts
CHANGED
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
SellerTotalEarningsByCurrencyOverTimeStatsItemDto,
|
|
23
23
|
SellerTotalEarningsByCurrencyStatsItemDto,
|
|
24
24
|
SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto,
|
|
25
|
+
StatsFilterInputDateRange,
|
|
25
26
|
ValidationException,
|
|
26
27
|
} from '../models/index';
|
|
27
28
|
import {
|
|
@@ -39,25 +40,27 @@ import {
|
|
|
39
40
|
SellerTotalEarningsByCurrencyStatsItemDtoToJSON,
|
|
40
41
|
SellerTotalRentMonthlyIncomeByCurrencyStatsItemDtoFromJSON,
|
|
41
42
|
SellerTotalRentMonthlyIncomeByCurrencyStatsItemDtoToJSON,
|
|
43
|
+
StatsFilterInputDateRangeFromJSON,
|
|
44
|
+
StatsFilterInputDateRangeToJSON,
|
|
42
45
|
ValidationExceptionFromJSON,
|
|
43
46
|
ValidationExceptionToJSON,
|
|
44
47
|
} from '../models/index';
|
|
45
48
|
|
|
46
49
|
export interface StatsApiGetSalesByTldRequest {
|
|
47
50
|
currency: string;
|
|
48
|
-
dateRange?:
|
|
51
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
export interface StatsApiGetSalesCountRequest {
|
|
52
|
-
dateRange?:
|
|
55
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
export interface StatsApiGetTotalEarningsByCurrencyRequest {
|
|
56
|
-
dateRange?:
|
|
59
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
export interface StatsApiGetTotalEarningsByCurrencyOverTimeRequest {
|
|
60
|
-
dateRange?:
|
|
63
|
+
dateRange?: StatsFilterInputDateRange | null;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
/**
|
|
@@ -24,13 +24,14 @@ export interface AccountChallengeRewardUsageListItemDtoMetadata {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AccountChallengeRewardUsageListItemDtoMetadata
|
|
26
26
|
*/
|
|
27
|
-
initialCommissionPercentage
|
|
27
|
+
initialCommissionPercentage: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the AccountChallengeRewardUsageListItemDtoMetadata interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfAccountChallengeRewardUsageListItemDtoMetadata(value: object): value is AccountChallengeRewardUsageListItemDtoMetadata {
|
|
34
|
+
if (!('initialCommissionPercentage' in value) || value['initialCommissionPercentage'] === undefined) return false;
|
|
34
35
|
return true;
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -44,7 +45,7 @@ export function AccountChallengeRewardUsageListItemDtoMetadataFromJSONTyped(json
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
|
|
47
|
-
'initialCommissionPercentage': json['initialCommissionPercentage']
|
|
48
|
+
'initialCommissionPercentage': json['initialCommissionPercentage'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
|
|
@@ -78,10 +78,10 @@ export interface AdminBankDepositDto {
|
|
|
78
78
|
invoiceTransaction: AdminBankDepositInvoiceTransactionDto | null;
|
|
79
79
|
/**
|
|
80
80
|
* Raw deposit payload from the payment provider.
|
|
81
|
-
* @type {
|
|
81
|
+
* @type {{ [key: string]: any; }}
|
|
82
82
|
* @memberof AdminBankDepositDto
|
|
83
83
|
*/
|
|
84
|
-
raw:
|
|
84
|
+
raw: { [key: string]: any; };
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -63,10 +63,10 @@ export interface AdminChallengeListItemDto {
|
|
|
63
63
|
rewardPoints: number;
|
|
64
64
|
/**
|
|
65
65
|
* Scale (threshold -> reward points); only when rewardType is scale
|
|
66
|
-
* @type {
|
|
66
|
+
* @type {{ [key: string]: number; }}
|
|
67
67
|
* @memberof AdminChallengeListItemDto
|
|
68
68
|
*/
|
|
69
|
-
scale?:
|
|
69
|
+
scale?: { [key: string]: number; };
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
|
|
@@ -21,10 +21,10 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface AggregatedPaginationResponse {
|
|
22
22
|
/**
|
|
23
23
|
* Aggregation results keyed by aggregation name.
|
|
24
|
-
* @type {
|
|
24
|
+
* @type {{ [key: string]: any; }}
|
|
25
25
|
* @memberof AggregatedPaginationResponse
|
|
26
26
|
*/
|
|
27
|
-
aggregations:
|
|
27
|
+
aggregations: { [key: string]: any; };
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -59,10 +59,10 @@ export interface AirwallexDepositDto {
|
|
|
59
59
|
fee: AirwallexDepositDtoFee;
|
|
60
60
|
/**
|
|
61
61
|
* Payer information from the payment provider.
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {{ [key: string]: any; }}
|
|
63
63
|
* @memberof AirwallexDepositDto
|
|
64
64
|
*/
|
|
65
|
-
payer:
|
|
65
|
+
payer: { [key: string]: any; };
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
@@ -24,19 +24,21 @@ export interface AirwallexDepositDtoFee {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof AirwallexDepositDtoFee
|
|
26
26
|
*/
|
|
27
|
-
amount
|
|
27
|
+
amount: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AirwallexDepositDtoFee
|
|
32
32
|
*/
|
|
33
|
-
currency
|
|
33
|
+
currency: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the AirwallexDepositDtoFee interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfAirwallexDepositDtoFee(value: object): value is AirwallexDepositDtoFee {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
40
42
|
return true;
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -50,8 +52,8 @@ export function AirwallexDepositDtoFeeFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
50
52
|
}
|
|
51
53
|
return {
|
|
52
54
|
|
|
53
|
-
'amount': json['amount']
|
|
54
|
-
'currency': json['currency']
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currency': json['currency'],
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
|
package/src/models/BuyerDto.ts
CHANGED
|
@@ -90,19 +90,19 @@ export interface BuyerDto {
|
|
|
90
90
|
*/
|
|
91
91
|
phoneNumber: string | null;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Experience level based on the number of domains the buyer bought: none (0), active (1-3), expert (4+).
|
|
94
94
|
* @type {BuyerExperienceEnum}
|
|
95
95
|
* @memberof BuyerDto
|
|
96
96
|
*/
|
|
97
97
|
experience: BuyerExperienceEnum;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Share of the leads the buyer started that ever reached an accepted deal: accepts_nothing (0%), accepts_very_little (below 25%), normal (25-75%), accepts_almost_anything (75-100%), accepts_anything (100%), or unknown when the buyer has a single lead and no accepted deal yet.
|
|
100
100
|
* @type {BuyerAcceptanceEnum}
|
|
101
101
|
* @memberof BuyerDto
|
|
102
102
|
*/
|
|
103
103
|
accepted: BuyerAcceptanceEnum;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Share of the leads the buyer started that were actually paid: pays_nothing (0%), pays_very_little (below 25%), normal (25-75%), pays_almost_everything (75-100%), pays_everything (100%), or unknown when the buyer has a single lead and no purchase yet.
|
|
106
106
|
* @type {BuyerPaymentEnum}
|
|
107
107
|
* @memberof BuyerDto
|
|
108
108
|
*/
|
|
@@ -131,6 +131,7 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
131
131
|
BUYER_INVOICE: 'buyer_invoice',
|
|
132
132
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
133
133
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
134
|
+
BUYER_BANK_TRANSFER_PAYMENT_DETAILS: 'buyer_bank_transfer_payment_details',
|
|
134
135
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
135
136
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
136
137
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
@@ -117,6 +117,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
117
117
|
BUYER_INVOICE: 'buyer_invoice',
|
|
118
118
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
119
119
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
120
|
+
BUYER_BANK_TRANSFER_PAYMENT_DETAILS: 'buyer_bank_transfer_payment_details',
|
|
120
121
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
121
122
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
122
123
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
@@ -33,10 +33,10 @@ export interface CreateAccountPaymentInput {
|
|
|
33
33
|
domainId?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
* Additional payment metadata
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {{ [key: string]: any; }}
|
|
37
37
|
* @memberof CreateAccountPaymentInput
|
|
38
38
|
*/
|
|
39
|
-
payload?:
|
|
39
|
+
payload?: { [key: string]: any; };
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
|
|
@@ -27,10 +27,10 @@ export interface CreateApiKeyInput {
|
|
|
27
27
|
name: string;
|
|
28
28
|
/**
|
|
29
29
|
* Scopes to grant. Must be a subset of the scopes returned by the available-scopes endpoint; a key can only reach endpoints covered by its scopes.
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {Set<string>}
|
|
31
31
|
* @memberof CreateApiKeyInput
|
|
32
32
|
*/
|
|
33
|
-
scope:
|
|
33
|
+
scope: Set<CreateApiKeyInputScopeEnum>;
|
|
34
34
|
/**
|
|
35
35
|
* When the key should stop working. Omit for a key that never expires.
|
|
36
36
|
* @type {Date}
|
|
@@ -101,7 +101,7 @@ export function CreateApiKeyInputFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
101
101
|
return {
|
|
102
102
|
|
|
103
103
|
'name': json['name'],
|
|
104
|
-
'scope': json['scope'],
|
|
104
|
+
'scope': new Set(json['scope']),
|
|
105
105
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
106
106
|
};
|
|
107
107
|
}
|
|
@@ -118,7 +118,7 @@ export function CreateApiKeyInputToJSONTyped(value?: CreateApiKeyInput | null, i
|
|
|
118
118
|
return {
|
|
119
119
|
|
|
120
120
|
'name': value['name'],
|
|
121
|
-
'scope': value['scope'],
|
|
121
|
+
'scope': Array.from(value['scope'] as Set<any>),
|
|
122
122
|
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
123
123
|
};
|
|
124
124
|
}
|
|
@@ -60,10 +60,10 @@ export interface List200Response3 {
|
|
|
60
60
|
pagination: CursorBasedPageInfo;
|
|
61
61
|
/**
|
|
62
62
|
* Aggregation results keyed by aggregation name.
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {{ [key: string]: any; }}
|
|
64
64
|
* @memberof List200Response3
|
|
65
65
|
*/
|
|
66
|
-
aggregations:
|
|
66
|
+
aggregations: { [key: string]: any; };
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
|
|
@@ -60,10 +60,10 @@ export interface List200Response4 {
|
|
|
60
60
|
pagination: CursorBasedPageInfo;
|
|
61
61
|
/**
|
|
62
62
|
* Aggregation results keyed by aggregation name.
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {{ [key: string]: any; }}
|
|
64
64
|
* @memberof List200Response4
|
|
65
65
|
*/
|
|
66
|
-
aggregations:
|
|
66
|
+
aggregations: { [key: string]: any; };
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
|
package/src/models/OrderDto.ts
CHANGED
|
@@ -165,10 +165,10 @@ export interface OrderDto {
|
|
|
165
165
|
enabledPaymentMethods: Array<OrderDtoEnabledPaymentMethodsEnum>;
|
|
166
166
|
/**
|
|
167
167
|
* Available payment methods per gateway (canonical ids), keyed by PaymentGateway. Empty when the cache is missing or expired.
|
|
168
|
-
* @type {
|
|
168
|
+
* @type {{ [key: string]: any; }}
|
|
169
169
|
* @memberof OrderDto
|
|
170
170
|
*/
|
|
171
|
-
availablePaymentMethods:
|
|
171
|
+
availablePaymentMethods: { [key: string]: any; };
|
|
172
172
|
/**
|
|
173
173
|
* Selected payment method on the active transaction (canonical)
|
|
174
174
|
* @type {string}
|
|
@@ -57,10 +57,10 @@ export interface OwnedDomainDto {
|
|
|
57
57
|
hosting: OwnedDomainDtoHostingEnum;
|
|
58
58
|
/**
|
|
59
59
|
* Last response from the external registry service.
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {{ [key: string]: any; }}
|
|
61
61
|
* @memberof OwnedDomainDto
|
|
62
62
|
*/
|
|
63
|
-
lastExternalServiceResponse:
|
|
63
|
+
lastExternalServiceResponse: { [key: string]: any; };
|
|
64
64
|
/**
|
|
65
65
|
* Domain transfer status.
|
|
66
66
|
* @type {string}
|
|
@@ -51,10 +51,10 @@ export interface SellerScaleChallengeListItemDto {
|
|
|
51
51
|
rewardType: SellerScaleChallengeListItemDtoRewardTypeEnum;
|
|
52
52
|
/**
|
|
53
53
|
* Threshold -> reward points (e.g. { "10": 0.1, "50": 0.25, "250": 0.5 })
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {{ [key: string]: number; }}
|
|
55
55
|
* @memberof SellerScaleChallengeListItemDto
|
|
56
56
|
*/
|
|
57
|
-
scale:
|
|
57
|
+
scale: { [key: string]: number; };
|
|
58
58
|
/**
|
|
59
59
|
* Current value for this period (e.g. for keep_pointing_domains: number of domains pointing to our server)
|
|
60
60
|
* @type {number}
|