@randock/nameshift-api-client 0.0.457 → 0.0.459

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.
@@ -422,6 +422,7 @@ src/models/RegisterAccountInput.ts
422
422
  src/models/RegisterAccountPortfolioSizeInput.ts
423
423
  src/models/RegisterAuctionBuyerPhoneInput.ts
424
424
  src/models/RegisterInput.ts
425
+ src/models/RegisterUserPushTokenInput.ts
425
426
  src/models/RelatedDomainsDto.ts
426
427
  src/models/RelatedLeadDto.ts
427
428
  src/models/RelatedSellerDomain.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.457
1
+ ## @randock/nameshift-api-client@0.0.459
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.457 --save
39
+ npm install @randock/nameshift-api-client@0.0.459 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 1e7ddcd162f261d25d71c0a77b773476499f6899669342ef74664cce9bcdc4fc8bb64cdd383965224169ca3d505320f3
47
+ 79a2dcc8fe20c8a5eaad39e69e36cb8057936ee730cff4f19ebced8a1739d87b95d389d804930a70d88e659321015737
@@ -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
@@ -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
@@ -29,6 +29,14 @@ export interface GetAccountNameshiftCommissionsResponseDto {
29
29
  * @memberof GetAccountNameshiftCommissionsResponseDto
30
30
  */
31
31
  details: Array<AccountNameshiftCommissionItemDto>;
32
+ /**
33
+ * The account's live domain count per extension, keyed by lower-case TLD (for example { "com": 241 }). Extensions the account holds no domains in are omitted. Lets a client weight each commission rule by how much of the portfolio it governs.
34
+ * @type {{ [key: string]: number; }}
35
+ * @memberof GetAccountNameshiftCommissionsResponseDto
36
+ */
37
+ domainCountsByTld: {
38
+ [key: string]: number;
39
+ };
32
40
  }
33
41
  /**
34
42
  * Check if a given object implements the GetAccountNameshiftCommissionsResponseDto interface.
@@ -28,6 +28,8 @@ function instanceOfGetAccountNameshiftCommissionsResponseDto(value) {
28
28
  return false;
29
29
  if (!('details' in value) || value['details'] === undefined)
30
30
  return false;
31
+ if (!('domainCountsByTld' in value) || value['domainCountsByTld'] === undefined)
32
+ return false;
31
33
  return true;
32
34
  }
33
35
  function GetAccountNameshiftCommissionsResponseDtoFromJSON(json) {
@@ -40,6 +42,7 @@ function GetAccountNameshiftCommissionsResponseDtoFromJSONTyped(json, ignoreDisc
40
42
  return {
41
43
  'current': (0, AccountNameshiftCommissionBySubtypePercentagesDto_1.AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON)(json['current']),
42
44
  'details': (json['details'].map(AccountNameshiftCommissionItemDto_1.AccountNameshiftCommissionItemDtoFromJSON)),
45
+ 'domainCountsByTld': json['domainCountsByTld'],
43
46
  };
44
47
  }
45
48
  function GetAccountNameshiftCommissionsResponseDtoToJSON(json) {
@@ -53,5 +56,6 @@ function GetAccountNameshiftCommissionsResponseDtoToJSONTyped(value, ignoreDiscr
53
56
  return {
54
57
  'current': (0, AccountNameshiftCommissionBySubtypePercentagesDto_1.AccountNameshiftCommissionBySubtypePercentagesDtoToJSON)(value['current']),
55
58
  'details': (value['details'].map(AccountNameshiftCommissionItemDto_1.AccountNameshiftCommissionItemDtoToJSON)),
59
+ 'domainCountsByTld': value['domainCountsByTld'],
56
60
  };
57
61
  }
@@ -0,0 +1,46 @@
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 RegisterUserPushTokenInput
16
+ */
17
+ export interface RegisterUserPushTokenInput {
18
+ /**
19
+ * Expo push token identifying this device
20
+ * @type {string}
21
+ * @memberof RegisterUserPushTokenInput
22
+ */
23
+ token: string;
24
+ /**
25
+ * Platform of the device the token belongs to
26
+ * @type {string}
27
+ * @memberof RegisterUserPushTokenInput
28
+ */
29
+ platform: RegisterUserPushTokenInputPlatformEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const RegisterUserPushTokenInputPlatformEnum: {
35
+ readonly IOS: "ios";
36
+ readonly ANDROID: "android";
37
+ };
38
+ export type RegisterUserPushTokenInputPlatformEnum = typeof RegisterUserPushTokenInputPlatformEnum[keyof typeof RegisterUserPushTokenInputPlatformEnum];
39
+ /**
40
+ * Check if a given object implements the RegisterUserPushTokenInput interface.
41
+ */
42
+ export declare function instanceOfRegisterUserPushTokenInput(value: object): value is RegisterUserPushTokenInput;
43
+ export declare function RegisterUserPushTokenInputFromJSON(json: any): RegisterUserPushTokenInput;
44
+ export declare function RegisterUserPushTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterUserPushTokenInput;
45
+ export declare function RegisterUserPushTokenInputToJSON(json: any): RegisterUserPushTokenInput;
46
+ export declare function RegisterUserPushTokenInputToJSONTyped(value?: RegisterUserPushTokenInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.RegisterUserPushTokenInputPlatformEnum = void 0;
17
+ exports.instanceOfRegisterUserPushTokenInput = instanceOfRegisterUserPushTokenInput;
18
+ exports.RegisterUserPushTokenInputFromJSON = RegisterUserPushTokenInputFromJSON;
19
+ exports.RegisterUserPushTokenInputFromJSONTyped = RegisterUserPushTokenInputFromJSONTyped;
20
+ exports.RegisterUserPushTokenInputToJSON = RegisterUserPushTokenInputToJSON;
21
+ exports.RegisterUserPushTokenInputToJSONTyped = RegisterUserPushTokenInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.RegisterUserPushTokenInputPlatformEnum = {
26
+ IOS: 'ios',
27
+ ANDROID: 'android'
28
+ };
29
+ /**
30
+ * Check if a given object implements the RegisterUserPushTokenInput interface.
31
+ */
32
+ function instanceOfRegisterUserPushTokenInput(value) {
33
+ if (!('token' in value) || value['token'] === undefined)
34
+ return false;
35
+ if (!('platform' in value) || value['platform'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function RegisterUserPushTokenInputFromJSON(json) {
40
+ return RegisterUserPushTokenInputFromJSONTyped(json, false);
41
+ }
42
+ function RegisterUserPushTokenInputFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'token': json['token'],
48
+ 'platform': json['platform'],
49
+ };
50
+ }
51
+ function RegisterUserPushTokenInputToJSON(json) {
52
+ return RegisterUserPushTokenInputToJSONTyped(json, false);
53
+ }
54
+ function RegisterUserPushTokenInputToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'token': value['token'],
61
+ 'platform': value['platform'],
62
+ };
63
+ }
@@ -383,6 +383,7 @@ export * from './RegisterAccountInput';
383
383
  export * from './RegisterAccountPortfolioSizeInput';
384
384
  export * from './RegisterAuctionBuyerPhoneInput';
385
385
  export * from './RegisterInput';
386
+ export * from './RegisterUserPushTokenInput';
386
387
  export * from './RelatedDomainsDto';
387
388
  export * from './RelatedLeadDto';
388
389
  export * from './RelatedSellerDomain';
@@ -401,6 +401,7 @@ __exportStar(require("./RegisterAccountInput"), exports);
401
401
  __exportStar(require("./RegisterAccountPortfolioSizeInput"), exports);
402
402
  __exportStar(require("./RegisterAuctionBuyerPhoneInput"), exports);
403
403
  __exportStar(require("./RegisterInput"), exports);
404
+ __exportStar(require("./RegisterUserPushTokenInput"), exports);
404
405
  __exportStar(require("./RelatedDomainsDto"), exports);
405
406
  __exportStar(require("./RelatedLeadDto"), exports);
406
407
  __exportStar(require("./RelatedSellerDomain"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.457",
3
+ "version": "0.0.459",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ChangeUserEmailWithOtpInput,
19
+ RegisterUserPushTokenInput,
19
20
  RequestUserEmailChangeOtpInput,
20
21
  StoreUserLocaleInput,
21
22
  UpdateUserNotificationSettingsInput,
@@ -25,6 +26,8 @@ import type {
25
26
  import {
26
27
  ChangeUserEmailWithOtpInputFromJSON,
27
28
  ChangeUserEmailWithOtpInputToJSON,
29
+ RegisterUserPushTokenInputFromJSON,
30
+ RegisterUserPushTokenInputToJSON,
28
31
  RequestUserEmailChangeOtpInputFromJSON,
29
32
  RequestUserEmailChangeOtpInputToJSON,
30
33
  StoreUserLocaleInputFromJSON,
@@ -41,6 +44,14 @@ export interface UsersApiChangeUserEmailWithOtpRequest {
41
44
  changeUserEmailWithOtpInput: ChangeUserEmailWithOtpInput;
42
45
  }
43
46
 
47
+ export interface UsersApiRegisterUserPushTokenRequest {
48
+ registerUserPushTokenInput: RegisterUserPushTokenInput;
49
+ }
50
+
51
+ export interface UsersApiRemoveUserPushTokenRequest {
52
+ token: string;
53
+ }
54
+
44
55
  export interface UsersApiRequestUserEmailChangeOtpRequest {
45
56
  requestUserEmailChangeOtpInput: RequestUserEmailChangeOtpInput;
46
57
  }
@@ -147,6 +158,93 @@ export class UsersApi extends runtime.BaseAPI {
147
158
  return await response.value();
148
159
  }
149
160
 
161
+ /**
162
+ * Registers (or refreshes) an Expo push token for the current user and device. Seller session only.
163
+ * Register a push token
164
+ */
165
+ async registerUserPushTokenRaw(requestParameters: UsersApiRegisterUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
166
+ if (requestParameters['registerUserPushTokenInput'] == null) {
167
+ throw new runtime.RequiredError(
168
+ 'registerUserPushTokenInput',
169
+ 'Required parameter "registerUserPushTokenInput" was null or undefined when calling registerUserPushToken().'
170
+ );
171
+ }
172
+
173
+ const queryParameters: any = {};
174
+
175
+ const headerParameters: runtime.HTTPHeaders = {};
176
+
177
+ headerParameters['Content-Type'] = 'application/json';
178
+
179
+ if (this.configuration && this.configuration.accessToken) {
180
+ const token = this.configuration.accessToken;
181
+ const tokenString = await token("bearer", []);
182
+
183
+ if (tokenString) {
184
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
185
+ }
186
+ }
187
+ const response = await this.request({
188
+ path: `/private/users/push-tokens`,
189
+ method: 'PUT',
190
+ headers: headerParameters,
191
+ query: queryParameters,
192
+ body: RegisterUserPushTokenInputToJSON(requestParameters['registerUserPushTokenInput']),
193
+ }, initOverrides);
194
+
195
+ return new runtime.VoidApiResponse(response);
196
+ }
197
+
198
+ /**
199
+ * Registers (or refreshes) an Expo push token for the current user and device. Seller session only.
200
+ * Register a push token
201
+ */
202
+ async registerUserPushToken(requestParameters: UsersApiRegisterUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
203
+ await this.registerUserPushTokenRaw(requestParameters, initOverrides);
204
+ }
205
+
206
+ /**
207
+ * Unregisters an Expo push token for the current user, e.g. on logout. Seller session only.
208
+ * Remove a push token
209
+ */
210
+ async removeUserPushTokenRaw(requestParameters: UsersApiRemoveUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
211
+ if (requestParameters['token'] == null) {
212
+ throw new runtime.RequiredError(
213
+ 'token',
214
+ 'Required parameter "token" was null or undefined when calling removeUserPushToken().'
215
+ );
216
+ }
217
+
218
+ const queryParameters: any = {};
219
+
220
+ const headerParameters: runtime.HTTPHeaders = {};
221
+
222
+ if (this.configuration && this.configuration.accessToken) {
223
+ const token = this.configuration.accessToken;
224
+ const tokenString = await token("bearer", []);
225
+
226
+ if (tokenString) {
227
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
228
+ }
229
+ }
230
+ const response = await this.request({
231
+ path: `/private/users/push-tokens/{token}`.replace(`{${"token"}}`, encodeURIComponent(String(requestParameters['token']))),
232
+ method: 'DELETE',
233
+ headers: headerParameters,
234
+ query: queryParameters,
235
+ }, initOverrides);
236
+
237
+ return new runtime.VoidApiResponse(response);
238
+ }
239
+
240
+ /**
241
+ * Unregisters an Expo push token for the current user, e.g. on logout. Seller session only.
242
+ * Remove a push token
243
+ */
244
+ async removeUserPushToken(requestParameters: UsersApiRemoveUserPushTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
245
+ await this.removeUserPushTokenRaw(requestParameters, initOverrides);
246
+ }
247
+
150
248
  /**
151
249
  * 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.
152
250
  * Request email change OTP
@@ -46,6 +46,12 @@ export interface GetAccountNameshiftCommissionsResponseDto {
46
46
  * @memberof GetAccountNameshiftCommissionsResponseDto
47
47
  */
48
48
  details: Array<AccountNameshiftCommissionItemDto>;
49
+ /**
50
+ * The account's live domain count per extension, keyed by lower-case TLD (for example { "com": 241 }). Extensions the account holds no domains in are omitted. Lets a client weight each commission rule by how much of the portfolio it governs.
51
+ * @type {{ [key: string]: number; }}
52
+ * @memberof GetAccountNameshiftCommissionsResponseDto
53
+ */
54
+ domainCountsByTld: { [key: string]: number; };
49
55
  }
50
56
 
51
57
  /**
@@ -54,6 +60,7 @@ export interface GetAccountNameshiftCommissionsResponseDto {
54
60
  export function instanceOfGetAccountNameshiftCommissionsResponseDto(value: object): value is GetAccountNameshiftCommissionsResponseDto {
55
61
  if (!('current' in value) || value['current'] === undefined) return false;
56
62
  if (!('details' in value) || value['details'] === undefined) return false;
63
+ if (!('domainCountsByTld' in value) || value['domainCountsByTld'] === undefined) return false;
57
64
  return true;
58
65
  }
59
66
 
@@ -69,6 +76,7 @@ export function GetAccountNameshiftCommissionsResponseDtoFromJSONTyped(json: any
69
76
 
70
77
  'current': AccountNameshiftCommissionBySubtypePercentagesDtoFromJSON(json['current']),
71
78
  'details': ((json['details'] as Array<any>).map(AccountNameshiftCommissionItemDtoFromJSON)),
79
+ 'domainCountsByTld': json['domainCountsByTld'],
72
80
  };
73
81
  }
74
82
 
@@ -85,6 +93,7 @@ export function GetAccountNameshiftCommissionsResponseDtoToJSONTyped(value?: Get
85
93
 
86
94
  'current': AccountNameshiftCommissionBySubtypePercentagesDtoToJSON(value['current']),
87
95
  'details': ((value['details'] as Array<any>).map(AccountNameshiftCommissionItemDtoToJSON)),
96
+ 'domainCountsByTld': value['domainCountsByTld'],
88
97
  };
89
98
  }
90
99
 
@@ -0,0 +1,86 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RegisterUserPushTokenInput
20
+ */
21
+ export interface RegisterUserPushTokenInput {
22
+ /**
23
+ * Expo push token identifying this device
24
+ * @type {string}
25
+ * @memberof RegisterUserPushTokenInput
26
+ */
27
+ token: string;
28
+ /**
29
+ * Platform of the device the token belongs to
30
+ * @type {string}
31
+ * @memberof RegisterUserPushTokenInput
32
+ */
33
+ platform: RegisterUserPushTokenInputPlatformEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const RegisterUserPushTokenInputPlatformEnum = {
41
+ IOS: 'ios',
42
+ ANDROID: 'android'
43
+ } as const;
44
+ export type RegisterUserPushTokenInputPlatformEnum = typeof RegisterUserPushTokenInputPlatformEnum[keyof typeof RegisterUserPushTokenInputPlatformEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the RegisterUserPushTokenInput interface.
49
+ */
50
+ export function instanceOfRegisterUserPushTokenInput(value: object): value is RegisterUserPushTokenInput {
51
+ if (!('token' in value) || value['token'] === undefined) return false;
52
+ if (!('platform' in value) || value['platform'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function RegisterUserPushTokenInputFromJSON(json: any): RegisterUserPushTokenInput {
57
+ return RegisterUserPushTokenInputFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function RegisterUserPushTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterUserPushTokenInput {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'token': json['token'],
67
+ 'platform': json['platform'],
68
+ };
69
+ }
70
+
71
+ export function RegisterUserPushTokenInputToJSON(json: any): RegisterUserPushTokenInput {
72
+ return RegisterUserPushTokenInputToJSONTyped(json, false);
73
+ }
74
+
75
+ export function RegisterUserPushTokenInputToJSONTyped(value?: RegisterUserPushTokenInput | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'token': value['token'],
83
+ 'platform': value['platform'],
84
+ };
85
+ }
86
+
@@ -385,6 +385,7 @@ export * from './RegisterAccountInput';
385
385
  export * from './RegisterAccountPortfolioSizeInput';
386
386
  export * from './RegisterAuctionBuyerPhoneInput';
387
387
  export * from './RegisterInput';
388
+ export * from './RegisterUserPushTokenInput';
388
389
  export * from './RelatedDomainsDto';
389
390
  export * from './RelatedLeadDto';
390
391
  export * from './RelatedSellerDomain';