@randock/nameshift-api-client 0.0.448 → 0.0.450
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 +12 -0
- package/README.md +3 -3
- package/dist/apis/APIKeysApi.d.ts +78 -0
- package/dist/apis/APIKeysApi.js +354 -0
- package/dist/apis/AccountsApi.d.ts +36 -36
- package/dist/apis/AccountsApi.js +360 -216
- package/dist/apis/AdminApi.d.ts +37 -1
- package/dist/apis/AdminApi.js +122 -1
- package/dist/apis/AuctionsApi.d.ts +4 -4
- package/dist/apis/AuctionsApi.js +40 -24
- package/dist/apis/BankAccountsApi.d.ts +10 -10
- package/dist/apis/BankAccountsApi.js +100 -60
- package/dist/apis/ChallengesApi.d.ts +6 -6
- package/dist/apis/ChallengesApi.js +60 -36
- package/dist/apis/DomainTransfersApi.d.ts +2 -2
- package/dist/apis/DomainTransfersApi.js +20 -12
- package/dist/apis/DomainsApi.d.ts +44 -44
- package/dist/apis/DomainsApi.js +440 -264
- package/dist/apis/EppApi.d.ts +2 -2
- package/dist/apis/EppApi.js +20 -12
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +60 -36
- package/dist/apis/LeadsApi.d.ts +38 -38
- package/dist/apis/LeadsApi.js +380 -228
- package/dist/apis/MarketplacesApi.d.ts +89 -0
- package/dist/apis/MarketplacesApi.js +332 -0
- package/dist/apis/NotificationsApi.d.ts +8 -8
- package/dist/apis/NotificationsApi.js +80 -48
- package/dist/apis/StatsApi.d.ts +14 -14
- package/dist/apis/StatsApi.js +140 -84
- package/dist/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/apis/SubscriptionsApi.js +20 -12
- package/dist/apis/TasksApi.d.ts +6 -6
- package/dist/apis/TasksApi.js +60 -36
- package/dist/apis/UsersApi.d.ts +10 -10
- package/dist/apis/UsersApi.js +100 -60
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountMarketplaceDto.d.ts +56 -0
- package/dist/models/AccountMarketplaceDto.js +71 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +18 -0
- package/dist/models/AccountSettingsDto.js +16 -0
- package/dist/models/AccountSettingsInput.d.ts +18 -0
- package/dist/models/AccountSettingsInput.js +14 -0
- package/dist/models/AdminDomainListItemDto.d.ts +19 -0
- package/dist/models/AdminDomainListItemDto.js +17 -1
- package/dist/models/AdminMarketplaceDto.d.ts +86 -0
- package/dist/models/AdminMarketplaceDto.js +91 -0
- package/dist/models/ApiKeyDto.d.ts +107 -0
- package/dist/models/ApiKeyDto.js +114 -0
- package/dist/models/ApiKeyScopeDto.d.ts +83 -0
- package/dist/models/ApiKeyScopeDto.js +98 -0
- package/dist/models/CommissionDto.d.ts +1 -0
- package/dist/models/CommissionDto.js +1 -0
- package/dist/models/CommissionPayloadInput.d.ts +1 -0
- package/dist/models/CommissionPayloadInput.js +1 -0
- package/dist/models/CommissionReasonDto.d.ts +1 -0
- package/dist/models/CommissionReasonDto.js +1 -0
- package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
- package/dist/models/CommissionSimulationItemInput.js +1 -0
- package/dist/models/CreateApiKeyInput.d.ts +83 -0
- package/dist/models/CreateApiKeyInput.js +96 -0
- package/dist/models/CreateOrderInput.d.ts +6 -0
- package/dist/models/CreateOrderInput.js +2 -0
- package/dist/models/CreateSubscriptionInput.d.ts +6 -0
- package/dist/models/CreateSubscriptionInput.js +2 -0
- package/dist/models/CreatedApiKeyDto.d.ts +113 -0
- package/dist/models/CreatedApiKeyDto.js +118 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +16 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +16 -0
- package/dist/models/MarketplaceDto.d.ts +74 -0
- package/dist/models/MarketplaceDto.js +83 -0
- package/dist/models/OrderDto.d.ts +7 -1
- package/dist/models/OrderDto.js +4 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/SetAccountMarketplaceInput.d.ts +32 -0
- package/dist/models/SetAccountMarketplaceInput.js +51 -0
- package/dist/models/SimulateCommissionInput.d.ts +1 -0
- package/dist/models/SimulateCommissionInput.js +1 -0
- package/dist/models/SubscriptionDto.d.ts +7 -1
- package/dist/models/SubscriptionDto.js +4 -0
- package/dist/models/UpdateApiKeyInput.d.ts +77 -0
- package/dist/models/UpdateApiKeyInput.js +90 -0
- package/dist/models/UpdateDomainInput.d.ts +18 -0
- package/dist/models/UpdateDomainInput.js +14 -0
- package/dist/models/UpdateMarketplaceInput.d.ts +44 -0
- package/dist/models/UpdateMarketplaceInput.js +53 -0
- package/dist/models/UpdateOrderInput.d.ts +6 -0
- package/dist/models/UpdateOrderInput.js +2 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
- package/dist/models/UpdateSubscriptionInput.js +2 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/APIKeysApi.ts +271 -0
- package/src/apis/AccountsApi.ts +108 -36
- package/src/apis/AdminApi.ts +112 -0
- package/src/apis/AuctionsApi.ts +12 -4
- package/src/apis/BankAccountsApi.ts +30 -10
- package/src/apis/ChallengesApi.ts +18 -6
- package/src/apis/DomainTransfersApi.ts +6 -2
- package/src/apis/DomainsApi.ts +132 -44
- package/src/apis/EppApi.ts +6 -2
- package/src/apis/InvoicesApi.ts +18 -6
- package/src/apis/LeadsApi.ts +114 -38
- package/src/apis/MarketplacesApi.ts +240 -0
- package/src/apis/NotificationsApi.ts +24 -8
- package/src/apis/StatsApi.ts +42 -14
- package/src/apis/SubscriptionsApi.ts +6 -2
- package/src/apis/TasksApi.ts +18 -6
- package/src/apis/UsersApi.ts +30 -10
- package/src/apis/index.ts +2 -0
- package/src/models/AccountMarketplaceDto.ts +99 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionItemDto.ts +1 -0
- package/src/models/AccountNameshiftCommissionReasonDto.ts +1 -0
- package/src/models/AccountSettingsDto.ts +24 -0
- package/src/models/AccountSettingsInput.ts +23 -0
- package/src/models/AdminDomainListItemDto.ts +23 -0
- package/src/models/AdminMarketplaceDto.ts +144 -0
- package/src/models/ApiKeyDto.ts +162 -0
- package/src/models/ApiKeyScopeDto.ts +126 -0
- package/src/models/CommissionDto.ts +1 -0
- package/src/models/CommissionPayloadInput.ts +1 -0
- package/src/models/CommissionReasonDto.ts +1 -0
- package/src/models/CommissionSimulationItemInput.ts +1 -0
- package/src/models/CreateApiKeyInput.ts +125 -0
- package/src/models/CreateOrderInput.ts +8 -0
- package/src/models/CreateSubscriptionInput.ts +8 -0
- package/src/models/CreatedApiKeyDto.ts +171 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +24 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +24 -0
- package/src/models/MarketplaceDto.ts +126 -0
- package/src/models/OrderDto.ts +10 -1
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/SetAccountMarketplaceInput.ts +66 -0
- package/src/models/SimulateCommissionInput.ts +1 -0
- package/src/models/SubscriptionDto.ts +10 -1
- package/src/models/UpdateApiKeyInput.ts +115 -0
- package/src/models/UpdateDomainInput.ts +23 -0
- package/src/models/UpdateMarketplaceInput.ts +81 -0
- package/src/models/UpdateOrderInput.ts +8 -0
- package/src/models/UpdateSubscriptionInput.ts +8 -0
- package/src/models/index.ts +10 -0
|
@@ -45,6 +45,7 @@ function UpdateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
46
46
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
47
47
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
48
|
+
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
function UpdateOrderInputToJSON(json) {
|
|
@@ -68,5 +69,6 @@ function UpdateOrderInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
69
|
'addressCity': value['addressCity'],
|
|
69
70
|
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
70
71
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
72
|
+
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
71
73
|
};
|
|
72
74
|
}
|
|
@@ -101,6 +101,12 @@ export interface UpdateSubscriptionInput {
|
|
|
101
101
|
* @memberof UpdateSubscriptionInput
|
|
102
102
|
*/
|
|
103
103
|
selfDeclaredTaxCountry?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Controls payment methods cache refresh. true: force recalculation even if the fingerprint is still valid. false: never refresh payment methods on this update. omit/undefined: refresh only when the cache is missing or the fingerprint changed.
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof UpdateSubscriptionInput
|
|
108
|
+
*/
|
|
109
|
+
forceUpdatePaymentMethods?: boolean;
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
112
|
* Check if a given object implements the UpdateSubscriptionInput interface.
|
|
@@ -48,6 +48,7 @@ function UpdateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
49
49
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
50
50
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
51
|
+
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
function UpdateSubscriptionInputToJSON(json) {
|
|
@@ -73,5 +74,6 @@ function UpdateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
74
|
'addressCity': value['addressCity'],
|
|
74
75
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
75
76
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
77
|
+
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
76
78
|
};
|
|
77
79
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './AccountChallengeRewardUsageListItemDtoMetadata';
|
|
|
7
7
|
export * from './AccountCommissionByDateRangeDto';
|
|
8
8
|
export * from './AccountCountryStatsDto';
|
|
9
9
|
export * from './AccountDto';
|
|
10
|
+
export * from './AccountMarketplaceDto';
|
|
10
11
|
export * from './AccountMetricsDto';
|
|
11
12
|
export * from './AccountNameshiftCommissionBySubtypeDto';
|
|
12
13
|
export * from './AccountNameshiftCommissionBySubtypePercentagesDto';
|
|
@@ -60,6 +61,7 @@ export * from './AdminLeadListItemBuyerDto';
|
|
|
60
61
|
export * from './AdminLeadListItemDomainDto';
|
|
61
62
|
export * from './AdminLeadListItemDto';
|
|
62
63
|
export * from './AdminListAccountDto';
|
|
64
|
+
export * from './AdminMarketplaceDto';
|
|
63
65
|
export * from './AdminVerificationDepositDto';
|
|
64
66
|
export * from './AffiliatesStatsDto';
|
|
65
67
|
export * from './AggregatedPaginationResponse';
|
|
@@ -69,6 +71,8 @@ export * from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
|
69
71
|
export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
|
|
70
72
|
export * from './AirwallexDepositDto';
|
|
71
73
|
export * from './AirwallexDepositDtoFee';
|
|
74
|
+
export * from './ApiKeyDto';
|
|
75
|
+
export * from './ApiKeyScopeDto';
|
|
72
76
|
export * from './AuBankAccountDetails';
|
|
73
77
|
export * from './AuctionBidDto';
|
|
74
78
|
export * from './AuctionBidInput';
|
|
@@ -159,6 +163,7 @@ export * from './CompanyTaxIdDto';
|
|
|
159
163
|
export * from './ConflictException';
|
|
160
164
|
export * from './CreateAccountPaymentInput';
|
|
161
165
|
export * from './CreateAccountPaymentManualTransactionInput';
|
|
166
|
+
export * from './CreateApiKeyInput';
|
|
162
167
|
export * from './CreateBankAccountInput';
|
|
163
168
|
export * from './CreateBuyerLeadMessageInput';
|
|
164
169
|
export * from './CreateChallengeInput';
|
|
@@ -170,6 +175,7 @@ export * from './CreateOrderInput';
|
|
|
170
175
|
export * from './CreateSubscriptionBillingPeriodicityInput';
|
|
171
176
|
export * from './CreateSubscriptionInput';
|
|
172
177
|
export * from './CreateSubscriptionManualTransactionInput';
|
|
178
|
+
export * from './CreatedApiKeyDto';
|
|
173
179
|
export * from './CursorBasedPageInfo';
|
|
174
180
|
export * from './CursorBasedPaginationResponse';
|
|
175
181
|
export * from './DeleteDomainsInput';
|
|
@@ -328,6 +334,7 @@ export * from './ManualLeadLeaseToOwnDto';
|
|
|
328
334
|
export * from './MarketingDashboardStatsDto';
|
|
329
335
|
export * from './MarketingOrderListItemDto';
|
|
330
336
|
export * from './MarketingSalesFiltersDto';
|
|
337
|
+
export * from './MarketplaceDto';
|
|
331
338
|
export * from './MoneyDecimalDto';
|
|
332
339
|
export * from './MoneyDto';
|
|
333
340
|
export * from './MoneyInput';
|
|
@@ -426,6 +433,7 @@ export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
|
|
|
426
433
|
export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel';
|
|
427
434
|
export * from './SeoMetricsDto';
|
|
428
435
|
export * from './SepaBankAccountDetails';
|
|
436
|
+
export * from './SetAccountMarketplaceInput';
|
|
429
437
|
export * from './SetDomainTransferConfirmationInput';
|
|
430
438
|
export * from './SetNewPasswordInput';
|
|
431
439
|
export * from './SetPayoutProviderInput';
|
|
@@ -469,6 +477,7 @@ export * from './TopSellerAccountDto';
|
|
|
469
477
|
export * from './UkBankAccountDetails';
|
|
470
478
|
export * from './UpdateAccountBillingInformationInput';
|
|
471
479
|
export * from './UpdateAccountChallengeRewardBalanceInput';
|
|
480
|
+
export * from './UpdateApiKeyInput';
|
|
472
481
|
export * from './UpdateAuctionMuteStatusInput';
|
|
473
482
|
export * from './UpdateBuyerDomainTransferBuyerInfoInput';
|
|
474
483
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
@@ -482,6 +491,7 @@ export * from './UpdateLeadInput';
|
|
|
482
491
|
export * from './UpdateLeadMuteStatusForBuyerInput';
|
|
483
492
|
export * from './UpdateLeadMuteStatusInput';
|
|
484
493
|
export * from './UpdateLeaseToOwnConfigurationDto';
|
|
494
|
+
export * from './UpdateMarketplaceInput';
|
|
485
495
|
export * from './UpdateOrderInput';
|
|
486
496
|
export * from './UpdateRentConfigurationDto';
|
|
487
497
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|
package/dist/models/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./AccountChallengeRewardUsageListItemDtoMetadata"), export
|
|
|
25
25
|
__exportStar(require("./AccountCommissionByDateRangeDto"), exports);
|
|
26
26
|
__exportStar(require("./AccountCountryStatsDto"), exports);
|
|
27
27
|
__exportStar(require("./AccountDto"), exports);
|
|
28
|
+
__exportStar(require("./AccountMarketplaceDto"), exports);
|
|
28
29
|
__exportStar(require("./AccountMetricsDto"), exports);
|
|
29
30
|
__exportStar(require("./AccountNameshiftCommissionBySubtypeDto"), exports);
|
|
30
31
|
__exportStar(require("./AccountNameshiftCommissionBySubtypePercentagesDto"), exports);
|
|
@@ -78,6 +79,7 @@ __exportStar(require("./AdminLeadListItemBuyerDto"), exports);
|
|
|
78
79
|
__exportStar(require("./AdminLeadListItemDomainDto"), exports);
|
|
79
80
|
__exportStar(require("./AdminLeadListItemDto"), exports);
|
|
80
81
|
__exportStar(require("./AdminListAccountDto"), exports);
|
|
82
|
+
__exportStar(require("./AdminMarketplaceDto"), exports);
|
|
81
83
|
__exportStar(require("./AdminVerificationDepositDto"), exports);
|
|
82
84
|
__exportStar(require("./AffiliatesStatsDto"), exports);
|
|
83
85
|
__exportStar(require("./AggregatedPaginationResponse"), exports);
|
|
@@ -87,6 +89,8 @@ __exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethod"), exports);
|
|
|
87
89
|
__exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethodCode"), exports);
|
|
88
90
|
__exportStar(require("./AirwallexDepositDto"), exports);
|
|
89
91
|
__exportStar(require("./AirwallexDepositDtoFee"), exports);
|
|
92
|
+
__exportStar(require("./ApiKeyDto"), exports);
|
|
93
|
+
__exportStar(require("./ApiKeyScopeDto"), exports);
|
|
90
94
|
__exportStar(require("./AuBankAccountDetails"), exports);
|
|
91
95
|
__exportStar(require("./AuctionBidDto"), exports);
|
|
92
96
|
__exportStar(require("./AuctionBidInput"), exports);
|
|
@@ -177,6 +181,7 @@ __exportStar(require("./CompanyTaxIdDto"), exports);
|
|
|
177
181
|
__exportStar(require("./ConflictException"), exports);
|
|
178
182
|
__exportStar(require("./CreateAccountPaymentInput"), exports);
|
|
179
183
|
__exportStar(require("./CreateAccountPaymentManualTransactionInput"), exports);
|
|
184
|
+
__exportStar(require("./CreateApiKeyInput"), exports);
|
|
180
185
|
__exportStar(require("./CreateBankAccountInput"), exports);
|
|
181
186
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
182
187
|
__exportStar(require("./CreateChallengeInput"), exports);
|
|
@@ -188,6 +193,7 @@ __exportStar(require("./CreateOrderInput"), exports);
|
|
|
188
193
|
__exportStar(require("./CreateSubscriptionBillingPeriodicityInput"), exports);
|
|
189
194
|
__exportStar(require("./CreateSubscriptionInput"), exports);
|
|
190
195
|
__exportStar(require("./CreateSubscriptionManualTransactionInput"), exports);
|
|
196
|
+
__exportStar(require("./CreatedApiKeyDto"), exports);
|
|
191
197
|
__exportStar(require("./CursorBasedPageInfo"), exports);
|
|
192
198
|
__exportStar(require("./CursorBasedPaginationResponse"), exports);
|
|
193
199
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
@@ -346,6 +352,7 @@ __exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
|
|
|
346
352
|
__exportStar(require("./MarketingDashboardStatsDto"), exports);
|
|
347
353
|
__exportStar(require("./MarketingOrderListItemDto"), exports);
|
|
348
354
|
__exportStar(require("./MarketingSalesFiltersDto"), exports);
|
|
355
|
+
__exportStar(require("./MarketplaceDto"), exports);
|
|
349
356
|
__exportStar(require("./MoneyDecimalDto"), exports);
|
|
350
357
|
__exportStar(require("./MoneyDto"), exports);
|
|
351
358
|
__exportStar(require("./MoneyInput"), exports);
|
|
@@ -444,6 +451,7 @@ __exportStar(require("./SendAdminLeadAiPriceNegotiatorAgentChatMessageInput"), e
|
|
|
444
451
|
__exportStar(require("./SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel"), exports);
|
|
445
452
|
__exportStar(require("./SeoMetricsDto"), exports);
|
|
446
453
|
__exportStar(require("./SepaBankAccountDetails"), exports);
|
|
454
|
+
__exportStar(require("./SetAccountMarketplaceInput"), exports);
|
|
447
455
|
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
448
456
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
449
457
|
__exportStar(require("./SetPayoutProviderInput"), exports);
|
|
@@ -487,6 +495,7 @@ __exportStar(require("./TopSellerAccountDto"), exports);
|
|
|
487
495
|
__exportStar(require("./UkBankAccountDetails"), exports);
|
|
488
496
|
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
489
497
|
__exportStar(require("./UpdateAccountChallengeRewardBalanceInput"), exports);
|
|
498
|
+
__exportStar(require("./UpdateApiKeyInput"), exports);
|
|
490
499
|
__exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
|
|
491
500
|
__exportStar(require("./UpdateBuyerDomainTransferBuyerInfoInput"), exports);
|
|
492
501
|
__exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
|
|
@@ -500,6 +509,7 @@ __exportStar(require("./UpdateLeadInput"), exports);
|
|
|
500
509
|
__exportStar(require("./UpdateLeadMuteStatusForBuyerInput"), exports);
|
|
501
510
|
__exportStar(require("./UpdateLeadMuteStatusInput"), exports);
|
|
502
511
|
__exportStar(require("./UpdateLeaseToOwnConfigurationDto"), exports);
|
|
512
|
+
__exportStar(require("./UpdateMarketplaceInput"), exports);
|
|
503
513
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
504
514
|
__exportStar(require("./UpdateRentConfigurationDto"), exports);
|
|
505
515
|
__exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiKeyDto,
|
|
19
|
+
ApiKeyScopeDto,
|
|
20
|
+
CreateApiKeyInput,
|
|
21
|
+
CreatedApiKeyDto,
|
|
22
|
+
UpdateApiKeyInput,
|
|
23
|
+
ValidationException,
|
|
24
|
+
} from '../models/index';
|
|
25
|
+
import {
|
|
26
|
+
ApiKeyDtoFromJSON,
|
|
27
|
+
ApiKeyDtoToJSON,
|
|
28
|
+
ApiKeyScopeDtoFromJSON,
|
|
29
|
+
ApiKeyScopeDtoToJSON,
|
|
30
|
+
CreateApiKeyInputFromJSON,
|
|
31
|
+
CreateApiKeyInputToJSON,
|
|
32
|
+
CreatedApiKeyDtoFromJSON,
|
|
33
|
+
CreatedApiKeyDtoToJSON,
|
|
34
|
+
UpdateApiKeyInputFromJSON,
|
|
35
|
+
UpdateApiKeyInputToJSON,
|
|
36
|
+
ValidationExceptionFromJSON,
|
|
37
|
+
ValidationExceptionToJSON,
|
|
38
|
+
} from '../models/index';
|
|
39
|
+
|
|
40
|
+
export interface APIKeysApiCreateApiKeyRequest {
|
|
41
|
+
createApiKeyInput: CreateApiKeyInput;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface APIKeysApiRevokeApiKeyRequest {
|
|
45
|
+
apiKeyId: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface APIKeysApiUpdateApiKeyRequest {
|
|
49
|
+
apiKeyId: string;
|
|
50
|
+
updateApiKeyInput: UpdateApiKeyInput;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export class APIKeysApi extends runtime.BaseAPI {
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Creates an API key for the seller account. The token is returned once in this response and cannot be retrieved afterwards.
|
|
60
|
+
* Create an API key
|
|
61
|
+
*/
|
|
62
|
+
async createApiKeyRaw(requestParameters: APIKeysApiCreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedApiKeyDto>> {
|
|
63
|
+
if (requestParameters['createApiKeyInput'] == null) {
|
|
64
|
+
throw new runtime.RequiredError(
|
|
65
|
+
'createApiKeyInput',
|
|
66
|
+
'Required parameter "createApiKeyInput" was null or undefined when calling createApiKey().'
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const queryParameters: any = {};
|
|
71
|
+
|
|
72
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
73
|
+
|
|
74
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
75
|
+
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = await token("bearer", []);
|
|
79
|
+
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const response = await this.request({
|
|
85
|
+
path: `/private/api-keys`,
|
|
86
|
+
method: 'POST',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
body: CreateApiKeyInputToJSON(requestParameters['createApiKeyInput']),
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreatedApiKeyDtoFromJSON(jsonValue));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Creates an API key for the seller account. The token is returned once in this response and cannot be retrieved afterwards.
|
|
97
|
+
* Create an API key
|
|
98
|
+
*/
|
|
99
|
+
async createApiKey(requestParameters: APIKeysApiCreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedApiKeyDto> {
|
|
100
|
+
const response = await this.createApiKeyRaw(requestParameters, initOverrides);
|
|
101
|
+
return await response.value();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Lists the API keys belonging to the seller account. Tokens are never returned.
|
|
106
|
+
* List API keys
|
|
107
|
+
*/
|
|
108
|
+
async getApiKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyDto>>> {
|
|
109
|
+
const queryParameters: any = {};
|
|
110
|
+
|
|
111
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
112
|
+
|
|
113
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
114
|
+
const token = this.configuration.accessToken;
|
|
115
|
+
const tokenString = await token("bearer", []);
|
|
116
|
+
|
|
117
|
+
if (tokenString) {
|
|
118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const response = await this.request({
|
|
122
|
+
path: `/private/api-keys`,
|
|
123
|
+
method: 'GET',
|
|
124
|
+
headers: headerParameters,
|
|
125
|
+
query: queryParameters,
|
|
126
|
+
}, initOverrides);
|
|
127
|
+
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiKeyDtoFromJSON));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Lists the API keys belonging to the seller account. Tokens are never returned.
|
|
133
|
+
* List API keys
|
|
134
|
+
*/
|
|
135
|
+
async getApiKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyDto>> {
|
|
136
|
+
const response = await this.getApiKeysRaw(initOverrides);
|
|
137
|
+
return await response.value();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Lists the scopes that can be granted to a seller API key, with a description of the access each one confers.
|
|
142
|
+
* List grantable API key scopes
|
|
143
|
+
*/
|
|
144
|
+
async getAvailableApiKeyScopesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyScopeDto>>> {
|
|
145
|
+
const queryParameters: any = {};
|
|
146
|
+
|
|
147
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
148
|
+
|
|
149
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
150
|
+
const token = this.configuration.accessToken;
|
|
151
|
+
const tokenString = await token("bearer", []);
|
|
152
|
+
|
|
153
|
+
if (tokenString) {
|
|
154
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
const response = await this.request({
|
|
158
|
+
path: `/private/api-keys/available-scopes`,
|
|
159
|
+
method: 'GET',
|
|
160
|
+
headers: headerParameters,
|
|
161
|
+
query: queryParameters,
|
|
162
|
+
}, initOverrides);
|
|
163
|
+
|
|
164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiKeyScopeDtoFromJSON));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Lists the scopes that can be granted to a seller API key, with a description of the access each one confers.
|
|
169
|
+
* List grantable API key scopes
|
|
170
|
+
*/
|
|
171
|
+
async getAvailableApiKeyScopes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyScopeDto>> {
|
|
172
|
+
const response = await this.getAvailableApiKeyScopesRaw(initOverrides);
|
|
173
|
+
return await response.value();
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Revokes an API key. Requests made with it stop being accepted immediately.
|
|
178
|
+
* Revoke an API key
|
|
179
|
+
*/
|
|
180
|
+
async revokeApiKeyRaw(requestParameters: APIKeysApiRevokeApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
181
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
182
|
+
throw new runtime.RequiredError(
|
|
183
|
+
'apiKeyId',
|
|
184
|
+
'Required parameter "apiKeyId" was null or undefined when calling revokeApiKey().'
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const queryParameters: any = {};
|
|
189
|
+
|
|
190
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
191
|
+
|
|
192
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
193
|
+
const token = this.configuration.accessToken;
|
|
194
|
+
const tokenString = await token("bearer", []);
|
|
195
|
+
|
|
196
|
+
if (tokenString) {
|
|
197
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const response = await this.request({
|
|
201
|
+
path: `/private/api-keys/{apiKeyId}`.replace(`{${"apiKeyId"}}`, encodeURIComponent(String(requestParameters['apiKeyId']))),
|
|
202
|
+
method: 'DELETE',
|
|
203
|
+
headers: headerParameters,
|
|
204
|
+
query: queryParameters,
|
|
205
|
+
}, initOverrides);
|
|
206
|
+
|
|
207
|
+
return new runtime.VoidApiResponse(response);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Revokes an API key. Requests made with it stop being accepted immediately.
|
|
212
|
+
* Revoke an API key
|
|
213
|
+
*/
|
|
214
|
+
async revokeApiKey(requestParameters: APIKeysApiRevokeApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
215
|
+
await this.revokeApiKeyRaw(requestParameters, initOverrides);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Renames an API key or replaces its scopes. The token itself is unchanged.
|
|
220
|
+
* Update an API key
|
|
221
|
+
*/
|
|
222
|
+
async updateApiKeyRaw(requestParameters: APIKeysApiUpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyDto>> {
|
|
223
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
224
|
+
throw new runtime.RequiredError(
|
|
225
|
+
'apiKeyId',
|
|
226
|
+
'Required parameter "apiKeyId" was null or undefined when calling updateApiKey().'
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (requestParameters['updateApiKeyInput'] == null) {
|
|
231
|
+
throw new runtime.RequiredError(
|
|
232
|
+
'updateApiKeyInput',
|
|
233
|
+
'Required parameter "updateApiKeyInput" was null or undefined when calling updateApiKey().'
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const queryParameters: any = {};
|
|
238
|
+
|
|
239
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
240
|
+
|
|
241
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
242
|
+
|
|
243
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
244
|
+
const token = this.configuration.accessToken;
|
|
245
|
+
const tokenString = await token("bearer", []);
|
|
246
|
+
|
|
247
|
+
if (tokenString) {
|
|
248
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
const response = await this.request({
|
|
252
|
+
path: `/private/api-keys/{apiKeyId}`.replace(`{${"apiKeyId"}}`, encodeURIComponent(String(requestParameters['apiKeyId']))),
|
|
253
|
+
method: 'PATCH',
|
|
254
|
+
headers: headerParameters,
|
|
255
|
+
query: queryParameters,
|
|
256
|
+
body: UpdateApiKeyInputToJSON(requestParameters['updateApiKeyInput']),
|
|
257
|
+
}, initOverrides);
|
|
258
|
+
|
|
259
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiKeyDtoFromJSON(jsonValue));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Renames an API key or replaces its scopes. The token itself is unchanged.
|
|
264
|
+
* Update an API key
|
|
265
|
+
*/
|
|
266
|
+
async updateApiKey(requestParameters: APIKeysApiUpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyDto> {
|
|
267
|
+
const response = await this.updateApiKeyRaw(requestParameters, initOverrides);
|
|
268
|
+
return await response.value();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
}
|