@randock/nameshift-api-client 0.0.458 → 0.0.460
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 +11 -0
- package/README.md +3 -3
- package/dist/apis/DomainsApi.d.ts +43 -9
- package/dist/apis/DomainsApi.js +156 -10
- package/dist/apis/JobsApi.d.ts +51 -0
- package/dist/apis/JobsApi.js +222 -0
- package/dist/apis/UsersApi.d.ts +27 -1
- package/dist/apis/UsersApi.js +108 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApplyDomainEditInput.d.ts +40 -0
- package/dist/models/ApplyDomainEditInput.js +53 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/DomainEditPreviewDto.d.ts +83 -0
- package/dist/models/DomainEditPreviewDto.js +84 -0
- package/dist/models/DomainEditPreviewRowDto.d.ts +60 -0
- package/dist/models/DomainEditPreviewRowDto.js +67 -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/JobDto.d.ts +101 -0
- package/dist/models/JobDto.js +98 -0
- package/dist/models/JobFailureDto.d.ts +38 -0
- package/dist/models/JobFailureDto.js +55 -0
- package/dist/models/JobStatus.d.ts +27 -0
- package/dist/models/JobStatus.js +53 -0
- package/dist/models/JobType.d.ts +24 -0
- package/dist/models/JobType.js +50 -0
- package/dist/models/ListJobs200Response.d.ts +47 -0
- package/dist/models/ListJobs200Response.js +62 -0
- package/dist/models/PreviewDomainEditInput.d.ts +38 -0
- package/dist/models/PreviewDomainEditInput.js +53 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/RegisterUserPushTokenInput.d.ts +46 -0
- package/dist/models/RegisterUserPushTokenInput.js +63 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +154 -12
- package/src/apis/JobsApi.ts +163 -0
- package/src/apis/UsersApi.ts +98 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ApplyDomainEditInput.ts +74 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/DomainEditPreviewDto.ts +146 -0
- package/src/models/DomainEditPreviewRowDto.ts +102 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/JobDto.ts +189 -0
- package/src/models/JobFailureDto.ts +75 -0
- package/src/models/JobStatus.ts +55 -0
- package/src/models/JobType.ts +52 -0
- package/src/models/ListJobs200Response.ts +106 -0
- package/src/models/PreviewDomainEditInput.ts +74 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/RegisterUserPushTokenInput.ts +86 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,222 @@
|
|
|
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.JobsApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var JobsApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(JobsApi, _super);
|
|
75
|
+
function JobsApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Progress and result of one job belonging to the account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
80
|
+
* Get a background job
|
|
81
|
+
*/
|
|
82
|
+
JobsApi.prototype.getJobRaw = 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['jobId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('jobId', 'Required parameter "jobId" was null or undefined when calling getJob().');
|
|
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/jobs/{jobId}".replace("{".concat("jobId", "}"), encodeURIComponent(String(requestParameters['jobId']))),
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 5:
|
|
117
|
+
response = _c.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.JobDtoFromJSON)(jsonValue); })];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Progress and result of one job belonging to the account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
125
|
+
* Get a background job
|
|
126
|
+
*/
|
|
127
|
+
JobsApi.prototype.getJob = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0: return [4 /*yield*/, this.getJobRaw(requestParameters, initOverrides)];
|
|
133
|
+
case 1:
|
|
134
|
+
response = _a.sent();
|
|
135
|
+
return [4 /*yield*/, response.value()];
|
|
136
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* The account\'s own background jobs, newest first. Filter on status while polling, so watching a run costs nothing however long the history is. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
143
|
+
* List background jobs
|
|
144
|
+
*/
|
|
145
|
+
JobsApi.prototype.listJobsRaw = function (requestParameters, initOverrides) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
147
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
148
|
+
return __generator(this, function (_c) {
|
|
149
|
+
switch (_c.label) {
|
|
150
|
+
case 0:
|
|
151
|
+
queryParameters = {};
|
|
152
|
+
if (requestParameters['filter'] != null) {
|
|
153
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
154
|
+
}
|
|
155
|
+
if (requestParameters['page'] != null) {
|
|
156
|
+
queryParameters['page'] = requestParameters['page'];
|
|
157
|
+
}
|
|
158
|
+
if (requestParameters['limit'] != null) {
|
|
159
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
160
|
+
}
|
|
161
|
+
if (requestParameters['sortBy'] != null) {
|
|
162
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
163
|
+
}
|
|
164
|
+
if (requestParameters['filterStatus'] != null) {
|
|
165
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
166
|
+
}
|
|
167
|
+
if (requestParameters['filterType'] != null) {
|
|
168
|
+
queryParameters['filter[type]'] = requestParameters['filterType'];
|
|
169
|
+
}
|
|
170
|
+
headerParameters = {};
|
|
171
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
172
|
+
_a = headerParameters;
|
|
173
|
+
_b = "apikey";
|
|
174
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
175
|
+
case 1:
|
|
176
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
177
|
+
_c.label = 2;
|
|
178
|
+
case 2:
|
|
179
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
180
|
+
token = this.configuration.accessToken;
|
|
181
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
182
|
+
case 3:
|
|
183
|
+
tokenString = _c.sent();
|
|
184
|
+
if (tokenString) {
|
|
185
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
186
|
+
}
|
|
187
|
+
_c.label = 4;
|
|
188
|
+
case 4: return [4 /*yield*/, this.request({
|
|
189
|
+
path: "/private/jobs",
|
|
190
|
+
method: 'GET',
|
|
191
|
+
headers: headerParameters,
|
|
192
|
+
query: queryParameters,
|
|
193
|
+
}, initOverrides)];
|
|
194
|
+
case 5:
|
|
195
|
+
response = _c.sent();
|
|
196
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListJobs200ResponseFromJSON)(jsonValue); })];
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* The account\'s own background jobs, newest first. Filter on status while polling, so watching a run costs nothing however long the history is. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
203
|
+
* List background jobs
|
|
204
|
+
*/
|
|
205
|
+
JobsApi.prototype.listJobs = function () {
|
|
206
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
207
|
+
var response;
|
|
208
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0: return [4 /*yield*/, this.listJobsRaw(requestParameters, initOverrides)];
|
|
212
|
+
case 1:
|
|
213
|
+
response = _a.sent();
|
|
214
|
+
return [4 /*yield*/, response.value()];
|
|
215
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
return JobsApi;
|
|
221
|
+
}(runtime.BaseAPI));
|
|
222
|
+
exports.JobsApi = JobsApi;
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -10,10 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ChangeUserEmailWithOtpInput, RequestUserEmailChangeOtpInput, StoreUserLocaleInput, UpdateUserNotificationSettingsInput, UserNotificationSettingsDto } from '../models/index';
|
|
13
|
+
import type { ChangeUserEmailWithOtpInput, RegisterUserPushTokenInput, RequestUserEmailChangeOtpInput, StoreUserLocaleInput, UpdateUserNotificationSettingsInput, UserNotificationSettingsDto } from '../models/index';
|
|
14
14
|
export interface UsersApiChangeUserEmailWithOtpRequest {
|
|
15
15
|
changeUserEmailWithOtpInput: ChangeUserEmailWithOtpInput;
|
|
16
16
|
}
|
|
17
|
+
export interface UsersApiRegisterUserPushTokenRequest {
|
|
18
|
+
registerUserPushTokenInput: RegisterUserPushTokenInput;
|
|
19
|
+
}
|
|
20
|
+
export interface UsersApiRemoveUserPushTokenRequest {
|
|
21
|
+
token: string;
|
|
22
|
+
}
|
|
17
23
|
export interface UsersApiRequestUserEmailChangeOtpRequest {
|
|
18
24
|
requestUserEmailChangeOtpInput: RequestUserEmailChangeOtpInput;
|
|
19
25
|
}
|
|
@@ -47,6 +53,26 @@ export declare class UsersApi extends runtime.BaseAPI {
|
|
|
47
53
|
* Get user notification settings
|
|
48
54
|
*/
|
|
49
55
|
getUserNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserNotificationSettingsDto>;
|
|
56
|
+
/**
|
|
57
|
+
* Registers (or refreshes) an Expo push token for the current user and device. Seller session only.
|
|
58
|
+
* Register a push token
|
|
59
|
+
*/
|
|
60
|
+
registerUserPushTokenRaw(requestParameters: UsersApiRegisterUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
61
|
+
/**
|
|
62
|
+
* Registers (or refreshes) an Expo push token for the current user and device. Seller session only.
|
|
63
|
+
* Register a push token
|
|
64
|
+
*/
|
|
65
|
+
registerUserPushToken(requestParameters: UsersApiRegisterUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Unregisters an Expo push token for the current user, e.g. on logout. Seller session only.
|
|
68
|
+
* Remove a push token
|
|
69
|
+
*/
|
|
70
|
+
removeUserPushTokenRaw(requestParameters: UsersApiRemoveUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
71
|
+
/**
|
|
72
|
+
* Unregisters an Expo push token for the current user, e.g. on logout. Seller session only.
|
|
73
|
+
* Remove a push token
|
|
74
|
+
*/
|
|
75
|
+
removeUserPushToken(requestParameters: UsersApiRemoveUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
50
76
|
/**
|
|
51
77
|
* Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
52
78
|
* Request email change OTP
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -198,6 +198,114 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
|
+
/**
|
|
202
|
+
* Registers (or refreshes) an Expo push token for the current user and device. Seller session only.
|
|
203
|
+
* Register a push token
|
|
204
|
+
*/
|
|
205
|
+
UsersApi.prototype.registerUserPushTokenRaw = function (requestParameters, initOverrides) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
207
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
208
|
+
return __generator(this, function (_a) {
|
|
209
|
+
switch (_a.label) {
|
|
210
|
+
case 0:
|
|
211
|
+
if (requestParameters['registerUserPushTokenInput'] == null) {
|
|
212
|
+
throw new runtime.RequiredError('registerUserPushTokenInput', 'Required parameter "registerUserPushTokenInput" was null or undefined when calling registerUserPushToken().');
|
|
213
|
+
}
|
|
214
|
+
queryParameters = {};
|
|
215
|
+
headerParameters = {};
|
|
216
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
217
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
218
|
+
token = this.configuration.accessToken;
|
|
219
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
220
|
+
case 1:
|
|
221
|
+
tokenString = _a.sent();
|
|
222
|
+
if (tokenString) {
|
|
223
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
224
|
+
}
|
|
225
|
+
_a.label = 2;
|
|
226
|
+
case 2: return [4 /*yield*/, this.request({
|
|
227
|
+
path: "/private/users/push-tokens",
|
|
228
|
+
method: 'PUT',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
body: (0, index_1.RegisterUserPushTokenInputToJSON)(requestParameters['registerUserPushTokenInput']),
|
|
232
|
+
}, initOverrides)];
|
|
233
|
+
case 3:
|
|
234
|
+
response = _a.sent();
|
|
235
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Registers (or refreshes) an Expo push token for the current user and device. Seller session only.
|
|
242
|
+
* Register a push token
|
|
243
|
+
*/
|
|
244
|
+
UsersApi.prototype.registerUserPushToken = function (requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
246
|
+
return __generator(this, function (_a) {
|
|
247
|
+
switch (_a.label) {
|
|
248
|
+
case 0: return [4 /*yield*/, this.registerUserPushTokenRaw(requestParameters, initOverrides)];
|
|
249
|
+
case 1:
|
|
250
|
+
_a.sent();
|
|
251
|
+
return [2 /*return*/];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Unregisters an Expo push token for the current user, e.g. on logout. Seller session only.
|
|
258
|
+
* Remove a push token
|
|
259
|
+
*/
|
|
260
|
+
UsersApi.prototype.removeUserPushTokenRaw = function (requestParameters, initOverrides) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
262
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
263
|
+
return __generator(this, function (_a) {
|
|
264
|
+
switch (_a.label) {
|
|
265
|
+
case 0:
|
|
266
|
+
if (requestParameters['token'] == null) {
|
|
267
|
+
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling removeUserPushToken().');
|
|
268
|
+
}
|
|
269
|
+
queryParameters = {};
|
|
270
|
+
headerParameters = {};
|
|
271
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
272
|
+
token = this.configuration.accessToken;
|
|
273
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
274
|
+
case 1:
|
|
275
|
+
tokenString = _a.sent();
|
|
276
|
+
if (tokenString) {
|
|
277
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
278
|
+
}
|
|
279
|
+
_a.label = 2;
|
|
280
|
+
case 2: return [4 /*yield*/, this.request({
|
|
281
|
+
path: "/private/users/push-tokens/{token}".replace("{".concat("token", "}"), encodeURIComponent(String(requestParameters['token']))),
|
|
282
|
+
method: 'DELETE',
|
|
283
|
+
headers: headerParameters,
|
|
284
|
+
query: queryParameters,
|
|
285
|
+
}, initOverrides)];
|
|
286
|
+
case 3:
|
|
287
|
+
response = _a.sent();
|
|
288
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Unregisters an Expo push token for the current user, e.g. on logout. Seller session only.
|
|
295
|
+
* Remove a push token
|
|
296
|
+
*/
|
|
297
|
+
UsersApi.prototype.removeUserPushToken = function (requestParameters, initOverrides) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
299
|
+
return __generator(this, function (_a) {
|
|
300
|
+
switch (_a.label) {
|
|
301
|
+
case 0: return [4 /*yield*/, this.removeUserPushTokenRaw(requestParameters, initOverrides)];
|
|
302
|
+
case 1:
|
|
303
|
+
_a.sent();
|
|
304
|
+
return [2 /*return*/];
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
};
|
|
201
309
|
/**
|
|
202
310
|
* Sends a one-time password to the new email address to verify ownership before changing the account email. **API key scope required:** `USER_EMAIL_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
203
311
|
* Request email change OTP
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./DomainsApi"), exports);
|
|
|
32
32
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
33
33
|
__exportStar(require("./EppApi"), exports);
|
|
34
34
|
__exportStar(require("./InvoicesApi"), exports);
|
|
35
|
+
__exportStar(require("./JobsApi"), exports);
|
|
35
36
|
__exportStar(require("./LeadsApi"), exports);
|
|
36
37
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
37
38
|
__exportStar(require("./MarketApi"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApplyDomainEditInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplyDomainEditInput {
|
|
18
|
+
/**
|
|
19
|
+
* The selected domains. Omit to apply to everything the filter and searchFilter match.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ApplyDomainEditInput
|
|
22
|
+
*/
|
|
23
|
+
domainIds?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The operations returned by the preview, sent back unchanged. Validated again here.
|
|
26
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
27
|
+
* @memberof ApplyDomainEditInput
|
|
28
|
+
*/
|
|
29
|
+
operations: Array<{
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ApplyDomainEditInput interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfApplyDomainEditInput(value: object): value is ApplyDomainEditInput;
|
|
37
|
+
export declare function ApplyDomainEditInputFromJSON(json: any): ApplyDomainEditInput;
|
|
38
|
+
export declare function ApplyDomainEditInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplyDomainEditInput;
|
|
39
|
+
export declare function ApplyDomainEditInputToJSON(json: any): ApplyDomainEditInput;
|
|
40
|
+
export declare function ApplyDomainEditInputToJSONTyped(value?: ApplyDomainEditInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfApplyDomainEditInput = instanceOfApplyDomainEditInput;
|
|
17
|
+
exports.ApplyDomainEditInputFromJSON = ApplyDomainEditInputFromJSON;
|
|
18
|
+
exports.ApplyDomainEditInputFromJSONTyped = ApplyDomainEditInputFromJSONTyped;
|
|
19
|
+
exports.ApplyDomainEditInputToJSON = ApplyDomainEditInputToJSON;
|
|
20
|
+
exports.ApplyDomainEditInputToJSONTyped = ApplyDomainEditInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApplyDomainEditInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApplyDomainEditInput(value) {
|
|
25
|
+
if (!('operations' in value) || value['operations'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApplyDomainEditInputFromJSON(json) {
|
|
30
|
+
return ApplyDomainEditInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApplyDomainEditInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'domainIds': json['domainIds'] == null ? undefined : json['domainIds'],
|
|
38
|
+
'operations': json['operations'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApplyDomainEditInputToJSON(json) {
|
|
42
|
+
return ApplyDomainEditInputToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApplyDomainEditInputToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'domainIds': value['domainIds'],
|
|
51
|
+
'operations': value['operations'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -120,6 +120,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
120
120
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
121
121
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
122
122
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
123
|
+
readonly BULK_EDIT_DOMAINS_FINISHED: "bulk_edit_domains_finished";
|
|
123
124
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
124
125
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
125
126
|
readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
|
|
@@ -81,6 +81,7 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
81
81
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
82
82
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
83
83
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
84
|
+
BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
|
|
84
85
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
85
86
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
86
87
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
@@ -113,6 +113,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
113
113
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
114
114
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
115
115
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
116
|
+
readonly BULK_EDIT_DOMAINS_FINISHED: "bulk_edit_domains_finished";
|
|
116
117
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
117
118
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
118
119
|
readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
|
|
@@ -80,6 +80,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
80
80
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
81
81
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
82
82
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
83
|
+
BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
|
|
83
84
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
84
85
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
85
86
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
@@ -0,0 +1,83 @@
|
|
|
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 type { DomainEditPreviewRowDto } from './DomainEditPreviewRowDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DomainEditPreviewDto
|
|
17
|
+
*/
|
|
18
|
+
export interface DomainEditPreviewDto {
|
|
19
|
+
/**
|
|
20
|
+
* False when the request could not be expressed. No operations are returned and nothing may be applied.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof DomainEditPreviewDto
|
|
23
|
+
*/
|
|
24
|
+
understood: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* One sentence describing the change, for the seller.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DomainEditPreviewDto
|
|
29
|
+
*/
|
|
30
|
+
summary: string;
|
|
31
|
+
/**
|
|
32
|
+
* True when the request applies to only some of the selected domains. An edit has no conditions, so the seller narrows the list with search or filters first and then edits what is left.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof DomainEditPreviewDto
|
|
35
|
+
*/
|
|
36
|
+
needsFilter: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof DomainEditPreviewDto
|
|
41
|
+
*/
|
|
42
|
+
unresolved: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The operations to send back when the seller accepts. Opaque to the client; validated server-side.
|
|
45
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
46
|
+
* @memberof DomainEditPreviewDto
|
|
47
|
+
*/
|
|
48
|
+
operations: Array<{
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* How many domains the edit would change.
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof DomainEditPreviewDto
|
|
55
|
+
*/
|
|
56
|
+
count: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<DomainEditPreviewRowDto>}
|
|
60
|
+
* @memberof DomainEditPreviewDto
|
|
61
|
+
*/
|
|
62
|
+
sample: Array<DomainEditPreviewRowDto>;
|
|
63
|
+
/**
|
|
64
|
+
* The currency every price moves to, when the edit changes it. Null otherwise.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof DomainEditPreviewDto
|
|
67
|
+
*/
|
|
68
|
+
toCurrencyCode: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* Whether prices the edit does not replace are converted at the exchange rate, or kept at their current number under the new currency. Only meaningful alongside toCurrencyCode.
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof DomainEditPreviewDto
|
|
73
|
+
*/
|
|
74
|
+
convertsPrices: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the DomainEditPreviewDto interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfDomainEditPreviewDto(value: object): value is DomainEditPreviewDto;
|
|
80
|
+
export declare function DomainEditPreviewDtoFromJSON(json: any): DomainEditPreviewDto;
|
|
81
|
+
export declare function DomainEditPreviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainEditPreviewDto;
|
|
82
|
+
export declare function DomainEditPreviewDtoToJSON(json: any): DomainEditPreviewDto;
|
|
83
|
+
export declare function DomainEditPreviewDtoToJSONTyped(value?: DomainEditPreviewDto | null, ignoreDiscriminator?: boolean): any;
|