@randock/nameshift-api-client 0.0.449 → 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 +6 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +37 -1
- package/dist/apis/AdminApi.js +122 -1
- package/dist/apis/MarketplacesApi.d.ts +89 -0
- package/dist/apis/MarketplacesApi.js +332 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -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/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/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/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/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 +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +112 -0
- package/src/apis/MarketplacesApi.ts +240 -0
- package/src/apis/index.ts +1 -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/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/CreateOrderInput.ts +8 -0
- package/src/models/CreateSubscriptionInput.ts +8 -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/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 +5 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateMarketplaceInput = instanceOfUpdateMarketplaceInput;
|
|
17
|
+
exports.UpdateMarketplaceInputFromJSON = UpdateMarketplaceInputFromJSON;
|
|
18
|
+
exports.UpdateMarketplaceInputFromJSONTyped = UpdateMarketplaceInputFromJSONTyped;
|
|
19
|
+
exports.UpdateMarketplaceInputToJSON = UpdateMarketplaceInputToJSON;
|
|
20
|
+
exports.UpdateMarketplaceInputToJSONTyped = UpdateMarketplaceInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateMarketplaceInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateMarketplaceInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateMarketplaceInputFromJSON(json) {
|
|
28
|
+
return UpdateMarketplaceInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateMarketplaceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
37
|
+
'nameservers': json['nameservers'] == null ? undefined : json['nameservers'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateMarketplaceInputToJSON(json) {
|
|
41
|
+
return UpdateMarketplaceInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateMarketplaceInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'enabled': value['enabled'],
|
|
51
|
+
'nameservers': value['nameservers'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -88,6 +88,12 @@ export interface UpdateOrderInput {
|
|
|
88
88
|
* @memberof UpdateOrderInput
|
|
89
89
|
*/
|
|
90
90
|
selfDeclaredTaxCountry?: string;
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof UpdateOrderInput
|
|
95
|
+
*/
|
|
96
|
+
forceUpdatePaymentMethods?: boolean;
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
93
99
|
* Check if a given object implements the UpdateOrderInput interface.
|
|
@@ -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';
|
|
@@ -332,6 +334,7 @@ export * from './ManualLeadLeaseToOwnDto';
|
|
|
332
334
|
export * from './MarketingDashboardStatsDto';
|
|
333
335
|
export * from './MarketingOrderListItemDto';
|
|
334
336
|
export * from './MarketingSalesFiltersDto';
|
|
337
|
+
export * from './MarketplaceDto';
|
|
335
338
|
export * from './MoneyDecimalDto';
|
|
336
339
|
export * from './MoneyDto';
|
|
337
340
|
export * from './MoneyInput';
|
|
@@ -430,6 +433,7 @@ export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
|
|
|
430
433
|
export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel';
|
|
431
434
|
export * from './SeoMetricsDto';
|
|
432
435
|
export * from './SepaBankAccountDetails';
|
|
436
|
+
export * from './SetAccountMarketplaceInput';
|
|
433
437
|
export * from './SetDomainTransferConfirmationInput';
|
|
434
438
|
export * from './SetNewPasswordInput';
|
|
435
439
|
export * from './SetPayoutProviderInput';
|
|
@@ -487,6 +491,7 @@ export * from './UpdateLeadInput';
|
|
|
487
491
|
export * from './UpdateLeadMuteStatusForBuyerInput';
|
|
488
492
|
export * from './UpdateLeadMuteStatusInput';
|
|
489
493
|
export * from './UpdateLeaseToOwnConfigurationDto';
|
|
494
|
+
export * from './UpdateMarketplaceInput';
|
|
490
495
|
export * from './UpdateOrderInput';
|
|
491
496
|
export * from './UpdateRentConfigurationDto';
|
|
492
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);
|
|
@@ -350,6 +352,7 @@ __exportStar(require("./ManualLeadLeaseToOwnDto"), exports);
|
|
|
350
352
|
__exportStar(require("./MarketingDashboardStatsDto"), exports);
|
|
351
353
|
__exportStar(require("./MarketingOrderListItemDto"), exports);
|
|
352
354
|
__exportStar(require("./MarketingSalesFiltersDto"), exports);
|
|
355
|
+
__exportStar(require("./MarketplaceDto"), exports);
|
|
353
356
|
__exportStar(require("./MoneyDecimalDto"), exports);
|
|
354
357
|
__exportStar(require("./MoneyDto"), exports);
|
|
355
358
|
__exportStar(require("./MoneyInput"), exports);
|
|
@@ -448,6 +451,7 @@ __exportStar(require("./SendAdminLeadAiPriceNegotiatorAgentChatMessageInput"), e
|
|
|
448
451
|
__exportStar(require("./SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel"), exports);
|
|
449
452
|
__exportStar(require("./SeoMetricsDto"), exports);
|
|
450
453
|
__exportStar(require("./SepaBankAccountDetails"), exports);
|
|
454
|
+
__exportStar(require("./SetAccountMarketplaceInput"), exports);
|
|
451
455
|
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
452
456
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
453
457
|
__exportStar(require("./SetPayoutProviderInput"), exports);
|
|
@@ -505,6 +509,7 @@ __exportStar(require("./UpdateLeadInput"), exports);
|
|
|
505
509
|
__exportStar(require("./UpdateLeadMuteStatusForBuyerInput"), exports);
|
|
506
510
|
__exportStar(require("./UpdateLeadMuteStatusInput"), exports);
|
|
507
511
|
__exportStar(require("./UpdateLeaseToOwnConfigurationDto"), exports);
|
|
512
|
+
__exportStar(require("./UpdateMarketplaceInput"), exports);
|
|
508
513
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
509
514
|
__exportStar(require("./UpdateRentConfigurationDto"), exports);
|
|
510
515
|
__exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -25,6 +25,7 @@ import type {
|
|
|
25
25
|
AdminCompanyStatsDto,
|
|
26
26
|
AdminDashboardStatsDto,
|
|
27
27
|
AdminGetAllDomainTransfers200Response,
|
|
28
|
+
AdminMarketplaceDto,
|
|
28
29
|
BadRequestException,
|
|
29
30
|
BulkCommissionActionsInput,
|
|
30
31
|
ChangeInvoiceStatusInput,
|
|
@@ -65,6 +66,7 @@ import type {
|
|
|
65
66
|
UpdateAccountChallengeRewardBalanceInput,
|
|
66
67
|
UpdateChallengeInput,
|
|
67
68
|
UpdateFeatureFlagInput,
|
|
69
|
+
UpdateMarketplaceInput,
|
|
68
70
|
ValidationException,
|
|
69
71
|
} from '../models/index';
|
|
70
72
|
import {
|
|
@@ -88,6 +90,8 @@ import {
|
|
|
88
90
|
AdminDashboardStatsDtoToJSON,
|
|
89
91
|
AdminGetAllDomainTransfers200ResponseFromJSON,
|
|
90
92
|
AdminGetAllDomainTransfers200ResponseToJSON,
|
|
93
|
+
AdminMarketplaceDtoFromJSON,
|
|
94
|
+
AdminMarketplaceDtoToJSON,
|
|
91
95
|
BadRequestExceptionFromJSON,
|
|
92
96
|
BadRequestExceptionToJSON,
|
|
93
97
|
BulkCommissionActionsInputFromJSON,
|
|
@@ -168,6 +172,8 @@ import {
|
|
|
168
172
|
UpdateChallengeInputToJSON,
|
|
169
173
|
UpdateFeatureFlagInputFromJSON,
|
|
170
174
|
UpdateFeatureFlagInputToJSON,
|
|
175
|
+
UpdateMarketplaceInputFromJSON,
|
|
176
|
+
UpdateMarketplaceInputToJSON,
|
|
171
177
|
ValidationExceptionFromJSON,
|
|
172
178
|
ValidationExceptionToJSON,
|
|
173
179
|
} from '../models/index';
|
|
@@ -496,6 +502,11 @@ export interface AdminApiUpdateFeatureFlagRequest {
|
|
|
496
502
|
updateFeatureFlagInput: UpdateFeatureFlagInput;
|
|
497
503
|
}
|
|
498
504
|
|
|
505
|
+
export interface AdminApiUpdateMarketplaceRequest {
|
|
506
|
+
code: UpdateMarketplaceCodeEnum;
|
|
507
|
+
updateMarketplaceInput: UpdateMarketplaceInput;
|
|
508
|
+
}
|
|
509
|
+
|
|
499
510
|
export interface AdminApiVerifyAccountAliasRequest {
|
|
500
511
|
accountId: string;
|
|
501
512
|
}
|
|
@@ -2201,6 +2212,42 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2201
2212
|
return await response.value();
|
|
2202
2213
|
}
|
|
2203
2214
|
|
|
2215
|
+
/**
|
|
2216
|
+
* Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
|
|
2217
|
+
* List all marketplaces
|
|
2218
|
+
*/
|
|
2219
|
+
async listAdminMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdminMarketplaceDto>>> {
|
|
2220
|
+
const queryParameters: any = {};
|
|
2221
|
+
|
|
2222
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2223
|
+
|
|
2224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2225
|
+
const token = this.configuration.accessToken;
|
|
2226
|
+
const tokenString = await token("bearer", []);
|
|
2227
|
+
|
|
2228
|
+
if (tokenString) {
|
|
2229
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
const response = await this.request({
|
|
2233
|
+
path: `/admin/marketplaces`,
|
|
2234
|
+
method: 'GET',
|
|
2235
|
+
headers: headerParameters,
|
|
2236
|
+
query: queryParameters,
|
|
2237
|
+
}, initOverrides);
|
|
2238
|
+
|
|
2239
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminMarketplaceDtoFromJSON));
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Returns every marketplace including disabled ones, with the nameservers the edge resolves routed domains against.
|
|
2244
|
+
* List all marketplaces
|
|
2245
|
+
*/
|
|
2246
|
+
async listAdminMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminMarketplaceDto>> {
|
|
2247
|
+
const response = await this.listAdminMarketplacesRaw(initOverrides);
|
|
2248
|
+
return await response.value();
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2204
2251
|
/**
|
|
2205
2252
|
* Lists all existing non-deleted challenges.
|
|
2206
2253
|
* List all challenges
|
|
@@ -3535,6 +3582,58 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3535
3582
|
await this.updateFeatureFlagRaw(requestParameters, initOverrides);
|
|
3536
3583
|
}
|
|
3537
3584
|
|
|
3585
|
+
/**
|
|
3586
|
+
* Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
|
|
3587
|
+
* Update a marketplace
|
|
3588
|
+
*/
|
|
3589
|
+
async updateMarketplaceRaw(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3590
|
+
if (requestParameters['code'] == null) {
|
|
3591
|
+
throw new runtime.RequiredError(
|
|
3592
|
+
'code',
|
|
3593
|
+
'Required parameter "code" was null or undefined when calling updateMarketplace().'
|
|
3594
|
+
);
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
if (requestParameters['updateMarketplaceInput'] == null) {
|
|
3598
|
+
throw new runtime.RequiredError(
|
|
3599
|
+
'updateMarketplaceInput',
|
|
3600
|
+
'Required parameter "updateMarketplaceInput" was null or undefined when calling updateMarketplace().'
|
|
3601
|
+
);
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3604
|
+
const queryParameters: any = {};
|
|
3605
|
+
|
|
3606
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3607
|
+
|
|
3608
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3609
|
+
|
|
3610
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3611
|
+
const token = this.configuration.accessToken;
|
|
3612
|
+
const tokenString = await token("bearer", []);
|
|
3613
|
+
|
|
3614
|
+
if (tokenString) {
|
|
3615
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3616
|
+
}
|
|
3617
|
+
}
|
|
3618
|
+
const response = await this.request({
|
|
3619
|
+
path: `/admin/marketplaces/{code}`.replace(`{${"code"}}`, encodeURIComponent(String(requestParameters['code']))),
|
|
3620
|
+
method: 'PATCH',
|
|
3621
|
+
headers: headerParameters,
|
|
3622
|
+
query: queryParameters,
|
|
3623
|
+
body: UpdateMarketplaceInputToJSON(requestParameters['updateMarketplaceInput']),
|
|
3624
|
+
}, initOverrides);
|
|
3625
|
+
|
|
3626
|
+
return new runtime.VoidApiResponse(response);
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
/**
|
|
3630
|
+
* Changes the display name, availability, or the nameservers a routed domain is resolved against. Takes effect at the edge on the next export.
|
|
3631
|
+
* Update a marketplace
|
|
3632
|
+
*/
|
|
3633
|
+
async updateMarketplace(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3634
|
+
await this.updateMarketplaceRaw(requestParameters, initOverrides);
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3538
3637
|
/**
|
|
3539
3638
|
* Marks the account alias as verified.
|
|
3540
3639
|
* Verify account alias
|
|
@@ -3620,3 +3719,16 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3620
3719
|
}
|
|
3621
3720
|
|
|
3622
3721
|
}
|
|
3722
|
+
|
|
3723
|
+
/**
|
|
3724
|
+
* @export
|
|
3725
|
+
*/
|
|
3726
|
+
export const UpdateMarketplaceCodeEnum = {
|
|
3727
|
+
NAMESHIFT: 'nameshift',
|
|
3728
|
+
SEDO: 'sedo',
|
|
3729
|
+
AFTERNIC: 'afternic',
|
|
3730
|
+
ATOM: 'atom',
|
|
3731
|
+
SPACESHIP: 'spaceship',
|
|
3732
|
+
NAMECLUB: 'nameclub'
|
|
3733
|
+
} as const;
|
|
3734
|
+
export type UpdateMarketplaceCodeEnum = typeof UpdateMarketplaceCodeEnum[keyof typeof UpdateMarketplaceCodeEnum];
|
|
@@ -0,0 +1,240 @@
|
|
|
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
|
+
AccountMarketplaceDto,
|
|
19
|
+
MarketplaceDto,
|
|
20
|
+
SetAccountMarketplaceInput,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
AccountMarketplaceDtoFromJSON,
|
|
24
|
+
AccountMarketplaceDtoToJSON,
|
|
25
|
+
MarketplaceDtoFromJSON,
|
|
26
|
+
MarketplaceDtoToJSON,
|
|
27
|
+
SetAccountMarketplaceInputFromJSON,
|
|
28
|
+
SetAccountMarketplaceInputToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface MarketplacesApiDeleteAccountMarketplaceRequest {
|
|
32
|
+
code: DeleteAccountMarketplaceCodeEnum;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface MarketplacesApiSetAccountMarketplaceRequest {
|
|
36
|
+
code: SetAccountMarketplaceCodeEnum;
|
|
37
|
+
setAccountMarketplaceInput: SetAccountMarketplaceInput;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export class MarketplacesApi extends runtime.BaseAPI {
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
47
|
+
* Remove the account marketplace link
|
|
48
|
+
*/
|
|
49
|
+
async deleteAccountMarketplaceRaw(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
50
|
+
if (requestParameters['code'] == null) {
|
|
51
|
+
throw new runtime.RequiredError(
|
|
52
|
+
'code',
|
|
53
|
+
'Required parameter "code" was null or undefined when calling deleteAccountMarketplace().'
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
60
|
+
|
|
61
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
62
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
66
|
+
const token = this.configuration.accessToken;
|
|
67
|
+
const tokenString = await token("bearer", []);
|
|
68
|
+
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/private/marketplaces/{code}`.replace(`{${"code"}}`, encodeURIComponent(String(requestParameters['code']))),
|
|
75
|
+
method: 'DELETE',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.VoidApiResponse(response);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Removes the link and stops publishing its code. Domains routed to this marketplace keep their setting and fall back to our own landing page until the link is restored. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
85
|
+
* Remove the account marketplace link
|
|
86
|
+
*/
|
|
87
|
+
async deleteAccountMarketplace(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
88
|
+
await this.deleteAccountMarketplaceRaw(requestParameters, initOverrides);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
|
|
93
|
+
* List the account marketplace links
|
|
94
|
+
*/
|
|
95
|
+
async listAccountMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountMarketplaceDto>>> {
|
|
96
|
+
const queryParameters: any = {};
|
|
97
|
+
|
|
98
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
99
|
+
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
+
const token = this.configuration.accessToken;
|
|
106
|
+
const tokenString = await token("bearer", []);
|
|
107
|
+
|
|
108
|
+
if (tokenString) {
|
|
109
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/private/marketplaces`,
|
|
114
|
+
method: 'GET',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountMarketplaceDtoFromJSON));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Returns the marketplaces this account is linked to, together with the code published for every domain of the account. **API key scope required:** `ACCOUNT_READ`. Requests authenticated with a seller session do not need any scope.
|
|
124
|
+
* List the account marketplace links
|
|
125
|
+
*/
|
|
126
|
+
async listAccountMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountMarketplaceDto>> {
|
|
127
|
+
const response = await this.listAccountMarketplacesRaw(initOverrides);
|
|
128
|
+
return await response.value();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
|
|
133
|
+
* List routable marketplaces
|
|
134
|
+
*/
|
|
135
|
+
async listMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketplaceDto>>> {
|
|
136
|
+
const queryParameters: any = {};
|
|
137
|
+
|
|
138
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
139
|
+
|
|
140
|
+
const response = await this.request({
|
|
141
|
+
path: `/marketplaces`,
|
|
142
|
+
method: 'GET',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
}, initOverrides);
|
|
146
|
+
|
|
147
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MarketplaceDtoFromJSON));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
|
|
152
|
+
* List routable marketplaces
|
|
153
|
+
*/
|
|
154
|
+
async listMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketplaceDto>> {
|
|
155
|
+
const response = await this.listMarketplacesRaw(initOverrides);
|
|
156
|
+
return await response.value();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
161
|
+
* Link the account to a marketplace
|
|
162
|
+
*/
|
|
163
|
+
async setAccountMarketplaceRaw(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
164
|
+
if (requestParameters['code'] == null) {
|
|
165
|
+
throw new runtime.RequiredError(
|
|
166
|
+
'code',
|
|
167
|
+
'Required parameter "code" was null or undefined when calling setAccountMarketplace().'
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (requestParameters['setAccountMarketplaceInput'] == null) {
|
|
172
|
+
throw new runtime.RequiredError(
|
|
173
|
+
'setAccountMarketplaceInput',
|
|
174
|
+
'Required parameter "setAccountMarketplaceInput" was null or undefined when calling setAccountMarketplace().'
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const queryParameters: any = {};
|
|
179
|
+
|
|
180
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
181
|
+
|
|
182
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
183
|
+
|
|
184
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
185
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
+
const token = this.configuration.accessToken;
|
|
190
|
+
const tokenString = await token("bearer", []);
|
|
191
|
+
|
|
192
|
+
if (tokenString) {
|
|
193
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const response = await this.request({
|
|
197
|
+
path: `/private/marketplaces/{code}`.replace(`{${"code"}}`, encodeURIComponent(String(requestParameters['code']))),
|
|
198
|
+
method: 'PUT',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
body: SetAccountMarketplaceInputToJSON(requestParameters['setAccountMarketplaceInput']),
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
|
|
204
|
+
return new runtime.VoidApiResponse(response);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Creates or replaces the link between this account and a marketplace, storing the code it must publish to stay verified there. **API key scope required:** `ACCOUNT_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
209
|
+
* Link the account to a marketplace
|
|
210
|
+
*/
|
|
211
|
+
async setAccountMarketplace(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
212
|
+
await this.setAccountMarketplaceRaw(requestParameters, initOverrides);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @export
|
|
219
|
+
*/
|
|
220
|
+
export const DeleteAccountMarketplaceCodeEnum = {
|
|
221
|
+
NAMESHIFT: 'nameshift',
|
|
222
|
+
SEDO: 'sedo',
|
|
223
|
+
AFTERNIC: 'afternic',
|
|
224
|
+
ATOM: 'atom',
|
|
225
|
+
SPACESHIP: 'spaceship',
|
|
226
|
+
NAMECLUB: 'nameclub'
|
|
227
|
+
} as const;
|
|
228
|
+
export type DeleteAccountMarketplaceCodeEnum = typeof DeleteAccountMarketplaceCodeEnum[keyof typeof DeleteAccountMarketplaceCodeEnum];
|
|
229
|
+
/**
|
|
230
|
+
* @export
|
|
231
|
+
*/
|
|
232
|
+
export const SetAccountMarketplaceCodeEnum = {
|
|
233
|
+
NAMESHIFT: 'nameshift',
|
|
234
|
+
SEDO: 'sedo',
|
|
235
|
+
AFTERNIC: 'afternic',
|
|
236
|
+
ATOM: 'atom',
|
|
237
|
+
SPACESHIP: 'spaceship',
|
|
238
|
+
NAMECLUB: 'nameclub'
|
|
239
|
+
} as const;
|
|
240
|
+
export type SetAccountMarketplaceCodeEnum = typeof SetAccountMarketplaceCodeEnum[keyof typeof SetAccountMarketplaceCodeEnum];
|
package/src/apis/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './LeadsApi';
|
|
|
20
20
|
export * from './LeadsPublicApi';
|
|
21
21
|
export * from './MarketApi';
|
|
22
22
|
export * from './MarketingApi';
|
|
23
|
+
export * from './MarketplacesApi';
|
|
23
24
|
export * from './NotificationsApi';
|
|
24
25
|
export * from './OrdersPublicApi';
|
|
25
26
|
export * from './PartnerApi';
|