@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
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { AccountMarketplaceDto, MarketplaceDto, SetAccountMarketplaceInput } from '../models/index';
|
|
14
|
+
export interface MarketplacesApiDeleteAccountMarketplaceRequest {
|
|
15
|
+
code: DeleteAccountMarketplaceCodeEnum;
|
|
16
|
+
}
|
|
17
|
+
export interface MarketplacesApiSetAccountMarketplaceRequest {
|
|
18
|
+
code: SetAccountMarketplaceCodeEnum;
|
|
19
|
+
setAccountMarketplaceInput: SetAccountMarketplaceInput;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class MarketplacesApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* 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.
|
|
27
|
+
* Remove the account marketplace link
|
|
28
|
+
*/
|
|
29
|
+
deleteAccountMarketplaceRaw(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
* Remove the account marketplace link
|
|
33
|
+
*/
|
|
34
|
+
deleteAccountMarketplace(requestParameters: MarketplacesApiDeleteAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
* List the account marketplace links
|
|
38
|
+
*/
|
|
39
|
+
listAccountMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountMarketplaceDto>>>;
|
|
40
|
+
/**
|
|
41
|
+
* 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.
|
|
42
|
+
* List the account marketplace links
|
|
43
|
+
*/
|
|
44
|
+
listAccountMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountMarketplaceDto>>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
|
|
47
|
+
* List routable marketplaces
|
|
48
|
+
*/
|
|
49
|
+
listMarketplacesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketplaceDto>>>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
|
|
52
|
+
* List routable marketplaces
|
|
53
|
+
*/
|
|
54
|
+
listMarketplaces(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketplaceDto>>;
|
|
55
|
+
/**
|
|
56
|
+
* 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.
|
|
57
|
+
* Link the account to a marketplace
|
|
58
|
+
*/
|
|
59
|
+
setAccountMarketplaceRaw(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
60
|
+
/**
|
|
61
|
+
* 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.
|
|
62
|
+
* Link the account to a marketplace
|
|
63
|
+
*/
|
|
64
|
+
setAccountMarketplace(requestParameters: MarketplacesApiSetAccountMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const DeleteAccountMarketplaceCodeEnum: {
|
|
70
|
+
readonly NAMESHIFT: "nameshift";
|
|
71
|
+
readonly SEDO: "sedo";
|
|
72
|
+
readonly AFTERNIC: "afternic";
|
|
73
|
+
readonly ATOM: "atom";
|
|
74
|
+
readonly SPACESHIP: "spaceship";
|
|
75
|
+
readonly NAMECLUB: "nameclub";
|
|
76
|
+
};
|
|
77
|
+
export type DeleteAccountMarketplaceCodeEnum = typeof DeleteAccountMarketplaceCodeEnum[keyof typeof DeleteAccountMarketplaceCodeEnum];
|
|
78
|
+
/**
|
|
79
|
+
* @export
|
|
80
|
+
*/
|
|
81
|
+
export declare const SetAccountMarketplaceCodeEnum: {
|
|
82
|
+
readonly NAMESHIFT: "nameshift";
|
|
83
|
+
readonly SEDO: "sedo";
|
|
84
|
+
readonly AFTERNIC: "afternic";
|
|
85
|
+
readonly ATOM: "atom";
|
|
86
|
+
readonly SPACESHIP: "spaceship";
|
|
87
|
+
readonly NAMECLUB: "nameclub";
|
|
88
|
+
};
|
|
89
|
+
export type SetAccountMarketplaceCodeEnum = typeof SetAccountMarketplaceCodeEnum[keyof typeof SetAccountMarketplaceCodeEnum];
|
|
@@ -0,0 +1,332 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.SetAccountMarketplaceCodeEnum = exports.DeleteAccountMarketplaceCodeEnum = exports.MarketplacesApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var MarketplacesApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(MarketplacesApi, _super);
|
|
75
|
+
function MarketplacesApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 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.
|
|
80
|
+
* Remove the account marketplace link
|
|
81
|
+
*/
|
|
82
|
+
MarketplacesApi.prototype.deleteAccountMarketplaceRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['code'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling deleteAccountMarketplace().');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
94
|
+
_a = headerParameters;
|
|
95
|
+
_b = "apikey";
|
|
96
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
97
|
+
case 1:
|
|
98
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
99
|
+
_c.label = 2;
|
|
100
|
+
case 2:
|
|
101
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
102
|
+
token = this.configuration.accessToken;
|
|
103
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
104
|
+
case 3:
|
|
105
|
+
tokenString = _c.sent();
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
108
|
+
}
|
|
109
|
+
_c.label = 4;
|
|
110
|
+
case 4: return [4 /*yield*/, this.request({
|
|
111
|
+
path: "/private/marketplaces/{code}".replace("{".concat("code", "}"), encodeURIComponent(String(requestParameters['code']))),
|
|
112
|
+
method: 'DELETE',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 5:
|
|
117
|
+
response = _c.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* 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.
|
|
125
|
+
* Remove the account marketplace link
|
|
126
|
+
*/
|
|
127
|
+
MarketplacesApi.prototype.deleteAccountMarketplace = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0: return [4 /*yield*/, this.deleteAccountMarketplaceRaw(requestParameters, initOverrides)];
|
|
132
|
+
case 1:
|
|
133
|
+
_a.sent();
|
|
134
|
+
return [2 /*return*/];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* 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.
|
|
141
|
+
* List the account marketplace links
|
|
142
|
+
*/
|
|
143
|
+
MarketplacesApi.prototype.listAccountMarketplacesRaw = function (initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
145
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
146
|
+
return __generator(this, function (_c) {
|
|
147
|
+
switch (_c.label) {
|
|
148
|
+
case 0:
|
|
149
|
+
queryParameters = {};
|
|
150
|
+
headerParameters = {};
|
|
151
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
152
|
+
_a = headerParameters;
|
|
153
|
+
_b = "apikey";
|
|
154
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
155
|
+
case 1:
|
|
156
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
157
|
+
_c.label = 2;
|
|
158
|
+
case 2:
|
|
159
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
160
|
+
token = this.configuration.accessToken;
|
|
161
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
162
|
+
case 3:
|
|
163
|
+
tokenString = _c.sent();
|
|
164
|
+
if (tokenString) {
|
|
165
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
166
|
+
}
|
|
167
|
+
_c.label = 4;
|
|
168
|
+
case 4: return [4 /*yield*/, this.request({
|
|
169
|
+
path: "/private/marketplaces",
|
|
170
|
+
method: 'GET',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
}, initOverrides)];
|
|
174
|
+
case 5:
|
|
175
|
+
response = _c.sent();
|
|
176
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountMarketplaceDtoFromJSON); })];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* 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.
|
|
183
|
+
* List the account marketplace links
|
|
184
|
+
*/
|
|
185
|
+
MarketplacesApi.prototype.listAccountMarketplaces = function (initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
187
|
+
var response;
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
switch (_a.label) {
|
|
190
|
+
case 0: return [4 /*yield*/, this.listAccountMarketplacesRaw(initOverrides)];
|
|
191
|
+
case 1:
|
|
192
|
+
response = _a.sent();
|
|
193
|
+
return [4 /*yield*/, response.value()];
|
|
194
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
|
|
201
|
+
* List routable marketplaces
|
|
202
|
+
*/
|
|
203
|
+
MarketplacesApi.prototype.listMarketplacesRaw = function (initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
205
|
+
var queryParameters, headerParameters, response;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
switch (_a.label) {
|
|
208
|
+
case 0:
|
|
209
|
+
queryParameters = {};
|
|
210
|
+
headerParameters = {};
|
|
211
|
+
return [4 /*yield*/, this.request({
|
|
212
|
+
path: "/marketplaces",
|
|
213
|
+
method: 'GET',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
}, initOverrides)];
|
|
217
|
+
case 1:
|
|
218
|
+
response = _a.sent();
|
|
219
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.MarketplaceDtoFromJSON); })];
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Returns the marketplaces a domain can be routed to while staying on our nameservers. Disabled marketplaces are omitted.
|
|
226
|
+
* List routable marketplaces
|
|
227
|
+
*/
|
|
228
|
+
MarketplacesApi.prototype.listMarketplaces = function (initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
230
|
+
var response;
|
|
231
|
+
return __generator(this, function (_a) {
|
|
232
|
+
switch (_a.label) {
|
|
233
|
+
case 0: return [4 /*yield*/, this.listMarketplacesRaw(initOverrides)];
|
|
234
|
+
case 1:
|
|
235
|
+
response = _a.sent();
|
|
236
|
+
return [4 /*yield*/, response.value()];
|
|
237
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* 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.
|
|
244
|
+
* Link the account to a marketplace
|
|
245
|
+
*/
|
|
246
|
+
MarketplacesApi.prototype.setAccountMarketplaceRaw = function (requestParameters, initOverrides) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
248
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
249
|
+
return __generator(this, function (_c) {
|
|
250
|
+
switch (_c.label) {
|
|
251
|
+
case 0:
|
|
252
|
+
if (requestParameters['code'] == null) {
|
|
253
|
+
throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling setAccountMarketplace().');
|
|
254
|
+
}
|
|
255
|
+
if (requestParameters['setAccountMarketplaceInput'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('setAccountMarketplaceInput', 'Required parameter "setAccountMarketplaceInput" was null or undefined when calling setAccountMarketplace().');
|
|
257
|
+
}
|
|
258
|
+
queryParameters = {};
|
|
259
|
+
headerParameters = {};
|
|
260
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
261
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
262
|
+
_a = headerParameters;
|
|
263
|
+
_b = "apikey";
|
|
264
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
265
|
+
case 1:
|
|
266
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
267
|
+
_c.label = 2;
|
|
268
|
+
case 2:
|
|
269
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
270
|
+
token = this.configuration.accessToken;
|
|
271
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
272
|
+
case 3:
|
|
273
|
+
tokenString = _c.sent();
|
|
274
|
+
if (tokenString) {
|
|
275
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
276
|
+
}
|
|
277
|
+
_c.label = 4;
|
|
278
|
+
case 4: return [4 /*yield*/, this.request({
|
|
279
|
+
path: "/private/marketplaces/{code}".replace("{".concat("code", "}"), encodeURIComponent(String(requestParameters['code']))),
|
|
280
|
+
method: 'PUT',
|
|
281
|
+
headers: headerParameters,
|
|
282
|
+
query: queryParameters,
|
|
283
|
+
body: (0, index_1.SetAccountMarketplaceInputToJSON)(requestParameters['setAccountMarketplaceInput']),
|
|
284
|
+
}, initOverrides)];
|
|
285
|
+
case 5:
|
|
286
|
+
response = _c.sent();
|
|
287
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* 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.
|
|
294
|
+
* Link the account to a marketplace
|
|
295
|
+
*/
|
|
296
|
+
MarketplacesApi.prototype.setAccountMarketplace = function (requestParameters, initOverrides) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
298
|
+
return __generator(this, function (_a) {
|
|
299
|
+
switch (_a.label) {
|
|
300
|
+
case 0: return [4 /*yield*/, this.setAccountMarketplaceRaw(requestParameters, initOverrides)];
|
|
301
|
+
case 1:
|
|
302
|
+
_a.sent();
|
|
303
|
+
return [2 /*return*/];
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
};
|
|
308
|
+
return MarketplacesApi;
|
|
309
|
+
}(runtime.BaseAPI));
|
|
310
|
+
exports.MarketplacesApi = MarketplacesApi;
|
|
311
|
+
/**
|
|
312
|
+
* @export
|
|
313
|
+
*/
|
|
314
|
+
exports.DeleteAccountMarketplaceCodeEnum = {
|
|
315
|
+
NAMESHIFT: 'nameshift',
|
|
316
|
+
SEDO: 'sedo',
|
|
317
|
+
AFTERNIC: 'afternic',
|
|
318
|
+
ATOM: 'atom',
|
|
319
|
+
SPACESHIP: 'spaceship',
|
|
320
|
+
NAMECLUB: 'nameclub'
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* @export
|
|
324
|
+
*/
|
|
325
|
+
exports.SetAccountMarketplaceCodeEnum = {
|
|
326
|
+
NAMESHIFT: 'nameshift',
|
|
327
|
+
SEDO: 'sedo',
|
|
328
|
+
AFTERNIC: 'afternic',
|
|
329
|
+
ATOM: 'atom',
|
|
330
|
+
SPACESHIP: 'spaceship',
|
|
331
|
+
NAMECLUB: 'nameclub'
|
|
332
|
+
};
|
|
@@ -36,42 +36,42 @@ export interface NotificationsApiListNotificationsRequest {
|
|
|
36
36
|
*/
|
|
37
37
|
export declare class NotificationsApi extends runtime.BaseAPI {
|
|
38
38
|
/**
|
|
39
|
-
* Marks multiple seller notifications as read or unread based on the readStatus parameter.
|
|
39
|
+
* Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
40
40
|
* Bulk mark notifications as read or unread
|
|
41
41
|
*/
|
|
42
42
|
bulkMarkNotificationsAsReadRaw(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
43
|
/**
|
|
44
|
-
* Marks multiple seller notifications as read or unread based on the readStatus parameter.
|
|
44
|
+
* Marks multiple seller notifications as read or unread based on the readStatus parameter. **API key scope required:** `NOTIFICATIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
45
45
|
* Bulk mark notifications as read or unread
|
|
46
46
|
*/
|
|
47
47
|
bulkMarkNotificationsAsRead(requestParameters: NotificationsApiBulkMarkNotificationsAsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
48
48
|
/**
|
|
49
|
-
* Downloads a file attachment from a seller notification.
|
|
49
|
+
* Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
50
50
|
* Download notification attachment
|
|
51
51
|
*/
|
|
52
52
|
downloadNotificationAttachmentRaw(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
53
53
|
/**
|
|
54
|
-
* Downloads a file attachment from a seller notification.
|
|
54
|
+
* Downloads a file attachment from a seller notification. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
55
55
|
* Download notification attachment
|
|
56
56
|
*/
|
|
57
57
|
downloadNotificationAttachment(requestParameters: NotificationsApiDownloadNotificationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
58
58
|
/**
|
|
59
|
-
* Returns notification information for the seller user.
|
|
59
|
+
* Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
60
60
|
* Get notification details
|
|
61
61
|
*/
|
|
62
62
|
getNotificationByIdRaw(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserNotificationDto>>;
|
|
63
63
|
/**
|
|
64
|
-
* Returns notification information for the seller user.
|
|
64
|
+
* Returns notification information for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
65
65
|
* Get notification details
|
|
66
66
|
*/
|
|
67
67
|
getNotificationById(requestParameters: NotificationsApiGetNotificationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationDto>;
|
|
68
68
|
/**
|
|
69
|
-
* Lists notifications for the seller user.
|
|
69
|
+
* Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
70
70
|
* List seller notifications
|
|
71
71
|
*/
|
|
72
72
|
listNotificationsRaw(requestParameters: NotificationsApiListNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListNotifications200Response>>;
|
|
73
73
|
/**
|
|
74
|
-
* Lists notifications for the seller user.
|
|
74
|
+
* Lists notifications for the seller user. **API key scope required:** `NOTIFICATIONS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
75
75
|
* List seller notifications
|
|
76
76
|
*/
|
|
77
77
|
listNotifications(requestParameters?: NotificationsApiListNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListNotifications200Response>;
|