@randock/nameshift-api-client 0.0.186 → 0.0.187
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +12 -0
- package/dist/apis/AccountsApi.js +69 -0
- package/dist/models/AccountSettingsInput.d.ts +3 -8
- package/dist/models/AccountSettingsInput.js +3 -4
- package/dist/models/AccountSettingsLandingDto.d.ts +12 -0
- package/dist/models/AccountSettingsLandingDto.js +8 -0
- package/dist/models/DomainSellerDto.d.ts +12 -0
- package/dist/models/DomainSellerDto.js +8 -0
- package/dist/models/LandingPageInput.d.ts +44 -0
- package/dist/models/LandingPageInput.js +53 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +66 -0
- package/src/models/AccountSettingsInput.ts +11 -12
- package/src/models/AccountSettingsLandingDto.ts +18 -0
- package/src/models/DomainSellerDto.ts +18 -0
- package/src/models/LandingPageInput.ts +81 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -109,6 +109,7 @@ src/models/InvoiceItemDto.ts
|
|
|
109
109
|
src/models/InvoiceItemTaxDto.ts
|
|
110
110
|
src/models/InvoiceSellerAccountDto.ts
|
|
111
111
|
src/models/InvoiceTransactionDto.ts
|
|
112
|
+
src/models/LandingPageInput.ts
|
|
112
113
|
src/models/LeadDomainDto.ts
|
|
113
114
|
src/models/LeadDto.ts
|
|
114
115
|
src/models/LeadMessageData.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.187
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.187 --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
|
-
|
|
47
|
+
88a207aedf5ee1efc500e50b344a784bd8eb9ebcd6457e338cfb71234fe30998aaa3a23432b939bacb27bf5113abca6c
|
|
@@ -22,6 +22,10 @@ export interface AccountsApiPostReadAccountNotificationRequest {
|
|
|
22
22
|
accountId: string;
|
|
23
23
|
notificationId: string;
|
|
24
24
|
}
|
|
25
|
+
export interface AccountsApiPutAvatarRequest {
|
|
26
|
+
accountId: string;
|
|
27
|
+
file?: Blob | null;
|
|
28
|
+
}
|
|
25
29
|
export interface AccountsApiUpdateSettingsRequest {
|
|
26
30
|
accountId: string;
|
|
27
31
|
accountSettingsInput: AccountSettingsInput;
|
|
@@ -70,6 +74,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
70
74
|
*
|
|
71
75
|
*/
|
|
72
76
|
postReadAccountNotification(requestParameters: AccountsApiPostReadAccountNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
putAvatarRaw(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
putAvatar(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
73
85
|
/**
|
|
74
86
|
*
|
|
75
87
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -338,6 +338,75 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
};
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
AccountsApi.prototype.putAvatarRaw = function (requestParameters, initOverrides) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
346
|
+
var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
347
|
+
return __generator(this, function (_a) {
|
|
348
|
+
switch (_a.label) {
|
|
349
|
+
case 0:
|
|
350
|
+
if (requestParameters['accountId'] == null) {
|
|
351
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling putAvatar().');
|
|
352
|
+
}
|
|
353
|
+
queryParameters = {};
|
|
354
|
+
headerParameters = {};
|
|
355
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
356
|
+
token = this.configuration.accessToken;
|
|
357
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
358
|
+
case 1:
|
|
359
|
+
tokenString = _a.sent();
|
|
360
|
+
if (tokenString) {
|
|
361
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
362
|
+
}
|
|
363
|
+
_a.label = 2;
|
|
364
|
+
case 2:
|
|
365
|
+
consumes = [
|
|
366
|
+
{ contentType: 'multipart/form-data' },
|
|
367
|
+
];
|
|
368
|
+
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
369
|
+
useForm = false;
|
|
370
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
371
|
+
useForm = canConsumeForm;
|
|
372
|
+
if (useForm) {
|
|
373
|
+
formParams = new FormData();
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
formParams = new URLSearchParams();
|
|
377
|
+
}
|
|
378
|
+
if (requestParameters['file'] != null) {
|
|
379
|
+
formParams.append('file', requestParameters['file']);
|
|
380
|
+
}
|
|
381
|
+
return [4 /*yield*/, this.request({
|
|
382
|
+
path: "/private/accounts/{accountId}/settings/landing/avatar".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
383
|
+
method: 'PUT',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
body: formParams,
|
|
387
|
+
}, initOverrides)];
|
|
388
|
+
case 3:
|
|
389
|
+
response = _a.sent();
|
|
390
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
*/
|
|
398
|
+
AccountsApi.prototype.putAvatar = function (requestParameters, initOverrides) {
|
|
399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
400
|
+
return __generator(this, function (_a) {
|
|
401
|
+
switch (_a.label) {
|
|
402
|
+
case 0: return [4 /*yield*/, this.putAvatarRaw(requestParameters, initOverrides)];
|
|
403
|
+
case 1:
|
|
404
|
+
_a.sent();
|
|
405
|
+
return [2 /*return*/];
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
});
|
|
409
|
+
};
|
|
341
410
|
/**
|
|
342
411
|
*
|
|
343
412
|
*/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { LandingPageInput } from './LandingPageInput';
|
|
13
14
|
import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -37,16 +38,10 @@ export interface AccountSettingsInput {
|
|
|
37
38
|
sidnIdcode?: string | null;
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
|
-
* @type {
|
|
41
|
+
* @type {LandingPageInput}
|
|
41
42
|
* @memberof AccountSettingsInput
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {boolean}
|
|
47
|
-
* @memberof AccountSettingsInput
|
|
48
|
-
*/
|
|
49
|
-
showRelatedDomains?: boolean;
|
|
44
|
+
landingPage?: LandingPageInput;
|
|
50
45
|
/**
|
|
51
46
|
*
|
|
52
47
|
* @type {LeaseToOwnConfigurationInput}
|
|
@@ -19,6 +19,7 @@ exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
|
|
|
19
19
|
exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
|
|
20
20
|
exports.AccountSettingsInputToJSONTyped = AccountSettingsInputToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var LandingPageInput_1 = require("./LandingPageInput");
|
|
22
23
|
var LeaseToOwnConfigurationInput_1 = require("./LeaseToOwnConfigurationInput");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
@@ -37,8 +38,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
|
|
38
39
|
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
39
40
|
'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
|
|
40
|
-
'
|
|
41
|
-
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
41
|
+
'landingPage': json['landingPage'] == null ? undefined : (0, LandingPageInput_1.LandingPageInputFromJSON)(json['landingPage']),
|
|
42
42
|
'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputFromJSON)(json['leaseToOwn']),
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -54,8 +54,7 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
54
54
|
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
|
|
55
55
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
56
56
|
'sidnIdcode': value['sidnIdcode'],
|
|
57
|
-
'
|
|
58
|
-
'showRelatedDomains': value['showRelatedDomains'],
|
|
57
|
+
'landingPage': (0, LandingPageInput_1.LandingPageInputToJSON)(value['landingPage']),
|
|
59
58
|
'leaseToOwn': (0, LeaseToOwnConfigurationInput_1.LeaseToOwnConfigurationInputToJSON)(value['leaseToOwn']),
|
|
60
59
|
};
|
|
61
60
|
}
|
|
@@ -27,6 +27,18 @@ export interface AccountSettingsLandingDto {
|
|
|
27
27
|
* @memberof AccountSettingsLandingDto
|
|
28
28
|
*/
|
|
29
29
|
showRelatedDomains: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountSettingsLandingDto
|
|
34
|
+
*/
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccountSettingsLandingDto
|
|
40
|
+
*/
|
|
41
|
+
avatar: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the AccountSettingsLandingDto interface.
|
|
@@ -26,6 +26,10 @@ function instanceOfAccountSettingsLandingDto(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('avatar' in value) || value['avatar'] === undefined)
|
|
32
|
+
return false;
|
|
29
33
|
return true;
|
|
30
34
|
}
|
|
31
35
|
function AccountSettingsLandingDtoFromJSON(json) {
|
|
@@ -38,6 +42,8 @@ function AccountSettingsLandingDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
42
|
return {
|
|
39
43
|
'anonymous': json['anonymous'],
|
|
40
44
|
'showRelatedDomains': json['showRelatedDomains'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'avatar': json['avatar'],
|
|
41
47
|
};
|
|
42
48
|
}
|
|
43
49
|
function AccountSettingsLandingDtoToJSON(json) {
|
|
@@ -51,5 +57,7 @@ function AccountSettingsLandingDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
57
|
return {
|
|
52
58
|
'anonymous': value['anonymous'],
|
|
53
59
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'avatar': value['avatar'],
|
|
54
62
|
};
|
|
55
63
|
}
|
|
@@ -46,6 +46,18 @@ export interface DomainSellerDto {
|
|
|
46
46
|
* @memberof DomainSellerDto
|
|
47
47
|
*/
|
|
48
48
|
name: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The seller avatar
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof DomainSellerDto
|
|
53
|
+
*/
|
|
54
|
+
avatar: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The seller avatar
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof DomainSellerDto
|
|
59
|
+
*/
|
|
60
|
+
description: string | null;
|
|
49
61
|
/**
|
|
50
62
|
* The domain seller related domains
|
|
51
63
|
* @type {Array<RelatedSellerDomain>}
|
|
@@ -33,6 +33,10 @@ function instanceOfDomainSellerDto(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('name' in value) || value['name'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('avatar' in value) || value['avatar'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
39
|
+
return false;
|
|
36
40
|
if (!('relatedDomains' in value) || value['relatedDomains'] === undefined)
|
|
37
41
|
return false;
|
|
38
42
|
return true;
|
|
@@ -50,6 +54,8 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
51
55
|
'deliversIn': json['deliversIn'],
|
|
52
56
|
'name': json['name'],
|
|
57
|
+
'avatar': json['avatar'],
|
|
58
|
+
'description': json['description'],
|
|
53
59
|
'relatedDomains': (json['relatedDomains'] == null ? null : json['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
|
|
54
60
|
};
|
|
55
61
|
}
|
|
@@ -67,6 +73,8 @@ function DomainSellerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
73
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
68
74
|
'deliversIn': value['deliversIn'],
|
|
69
75
|
'name': value['name'],
|
|
76
|
+
'avatar': value['avatar'],
|
|
77
|
+
'description': value['description'],
|
|
70
78
|
'relatedDomains': (value['relatedDomains'] == null ? null : value['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
|
|
71
79
|
};
|
|
72
80
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 LandingPageInput
|
|
16
|
+
*/
|
|
17
|
+
export interface LandingPageInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LandingPageInput
|
|
22
|
+
*/
|
|
23
|
+
anonymous?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LandingPageInput
|
|
28
|
+
*/
|
|
29
|
+
showRelatedDomains?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LandingPageInput
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LandingPageInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLandingPageInput(value: object): value is LandingPageInput;
|
|
41
|
+
export declare function LandingPageInputFromJSON(json: any): LandingPageInput;
|
|
42
|
+
export declare function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingPageInput;
|
|
43
|
+
export declare function LandingPageInputToJSON(json: any): LandingPageInput;
|
|
44
|
+
export declare function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfLandingPageInput = instanceOfLandingPageInput;
|
|
17
|
+
exports.LandingPageInputFromJSON = LandingPageInputFromJSON;
|
|
18
|
+
exports.LandingPageInputFromJSONTyped = LandingPageInputFromJSONTyped;
|
|
19
|
+
exports.LandingPageInputToJSON = LandingPageInputToJSON;
|
|
20
|
+
exports.LandingPageInputToJSONTyped = LandingPageInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LandingPageInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLandingPageInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function LandingPageInputFromJSON(json) {
|
|
28
|
+
return LandingPageInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function LandingPageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
|
|
36
|
+
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
37
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function LandingPageInputToJSON(json) {
|
|
41
|
+
return LandingPageInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LandingPageInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'anonymous': value['anonymous'],
|
|
50
|
+
'showRelatedDomains': value['showRelatedDomains'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export * from './InvoiceItemDto';
|
|
|
86
86
|
export * from './InvoiceItemTaxDto';
|
|
87
87
|
export * from './InvoiceSellerAccountDto';
|
|
88
88
|
export * from './InvoiceTransactionDto';
|
|
89
|
+
export * from './LandingPageInput';
|
|
89
90
|
export * from './LeadDomainDto';
|
|
90
91
|
export * from './LeadDto';
|
|
91
92
|
export * from './LeadMessageData';
|
package/dist/models/index.js
CHANGED
|
@@ -104,6 +104,7 @@ __exportStar(require("./InvoiceItemDto"), exports);
|
|
|
104
104
|
__exportStar(require("./InvoiceItemTaxDto"), exports);
|
|
105
105
|
__exportStar(require("./InvoiceSellerAccountDto"), exports);
|
|
106
106
|
__exportStar(require("./InvoiceTransactionDto"), exports);
|
|
107
|
+
__exportStar(require("./LandingPageInput"), exports);
|
|
107
108
|
__exportStar(require("./LeadDomainDto"), exports);
|
|
108
109
|
__exportStar(require("./LeadDto"), exports);
|
|
109
110
|
__exportStar(require("./LeadMessageData"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -60,6 +60,11 @@ export interface AccountsApiPostReadAccountNotificationRequest {
|
|
|
60
60
|
notificationId: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export interface AccountsApiPutAvatarRequest {
|
|
64
|
+
accountId: string;
|
|
65
|
+
file?: Blob | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
63
68
|
export interface AccountsApiUpdateSettingsRequest {
|
|
64
69
|
accountId: string;
|
|
65
70
|
accountSettingsInput: AccountSettingsInput;
|
|
@@ -276,6 +281,67 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
276
281
|
await this.postReadAccountNotificationRaw(requestParameters, initOverrides);
|
|
277
282
|
}
|
|
278
283
|
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
*/
|
|
287
|
+
async putAvatarRaw(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
288
|
+
if (requestParameters['accountId'] == null) {
|
|
289
|
+
throw new runtime.RequiredError(
|
|
290
|
+
'accountId',
|
|
291
|
+
'Required parameter "accountId" was null or undefined when calling putAvatar().'
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
const queryParameters: any = {};
|
|
296
|
+
|
|
297
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
298
|
+
|
|
299
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
300
|
+
const token = this.configuration.accessToken;
|
|
301
|
+
const tokenString = await token("bearer", []);
|
|
302
|
+
|
|
303
|
+
if (tokenString) {
|
|
304
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
const consumes: runtime.Consume[] = [
|
|
308
|
+
{ contentType: 'multipart/form-data' },
|
|
309
|
+
];
|
|
310
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
311
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
312
|
+
|
|
313
|
+
let formParams: { append(param: string, value: any): any };
|
|
314
|
+
let useForm = false;
|
|
315
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
316
|
+
useForm = canConsumeForm;
|
|
317
|
+
if (useForm) {
|
|
318
|
+
formParams = new FormData();
|
|
319
|
+
} else {
|
|
320
|
+
formParams = new URLSearchParams();
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (requestParameters['file'] != null) {
|
|
324
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
const response = await this.request({
|
|
328
|
+
path: `/private/accounts/{accountId}/settings/landing/avatar`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
329
|
+
method: 'PUT',
|
|
330
|
+
headers: headerParameters,
|
|
331
|
+
query: queryParameters,
|
|
332
|
+
body: formParams,
|
|
333
|
+
}, initOverrides);
|
|
334
|
+
|
|
335
|
+
return new runtime.VoidApiResponse(response);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
*/
|
|
341
|
+
async putAvatar(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
342
|
+
await this.putAvatarRaw(requestParameters, initOverrides);
|
|
343
|
+
}
|
|
344
|
+
|
|
279
345
|
/**
|
|
280
346
|
*
|
|
281
347
|
*/
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
MoneyDtoToJSON,
|
|
21
21
|
MoneyDtoToJSONTyped,
|
|
22
22
|
} from './MoneyDto';
|
|
23
|
+
import type { LandingPageInput } from './LandingPageInput';
|
|
24
|
+
import {
|
|
25
|
+
LandingPageInputFromJSON,
|
|
26
|
+
LandingPageInputFromJSONTyped,
|
|
27
|
+
LandingPageInputToJSON,
|
|
28
|
+
LandingPageInputToJSONTyped,
|
|
29
|
+
} from './LandingPageInput';
|
|
23
30
|
import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
|
|
24
31
|
import {
|
|
25
32
|
LeaseToOwnConfigurationInputFromJSON,
|
|
@@ -54,16 +61,10 @@ export interface AccountSettingsInput {
|
|
|
54
61
|
sidnIdcode?: string | null;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
|
-
* @type {
|
|
58
|
-
* @memberof AccountSettingsInput
|
|
59
|
-
*/
|
|
60
|
-
anonymous?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
64
|
+
* @type {LandingPageInput}
|
|
64
65
|
* @memberof AccountSettingsInput
|
|
65
66
|
*/
|
|
66
|
-
|
|
67
|
+
landingPage?: LandingPageInput;
|
|
67
68
|
/**
|
|
68
69
|
*
|
|
69
70
|
* @type {LeaseToOwnConfigurationInput}
|
|
@@ -92,8 +93,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
92
93
|
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyDtoFromJSON(json['defaultStartingOffer']),
|
|
93
94
|
'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
|
|
94
95
|
'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
|
|
95
|
-
'
|
|
96
|
-
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
96
|
+
'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
|
|
97
97
|
'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -112,8 +112,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
|
|
|
112
112
|
'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
|
|
113
113
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
114
114
|
'sidnIdcode': value['sidnIdcode'],
|
|
115
|
-
'
|
|
116
|
-
'showRelatedDomains': value['showRelatedDomains'],
|
|
115
|
+
'landingPage': LandingPageInputToJSON(value['landingPage']),
|
|
117
116
|
'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
|
|
118
117
|
};
|
|
119
118
|
}
|
|
@@ -31,6 +31,18 @@ export interface AccountSettingsLandingDto {
|
|
|
31
31
|
* @memberof AccountSettingsLandingDto
|
|
32
32
|
*/
|
|
33
33
|
showRelatedDomains: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AccountSettingsLandingDto
|
|
38
|
+
*/
|
|
39
|
+
description: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AccountSettingsLandingDto
|
|
44
|
+
*/
|
|
45
|
+
avatar: string | null;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
/**
|
|
@@ -39,6 +51,8 @@ export interface AccountSettingsLandingDto {
|
|
|
39
51
|
export function instanceOfAccountSettingsLandingDto(value: object): value is AccountSettingsLandingDto {
|
|
40
52
|
if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
|
|
41
53
|
if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined) return false;
|
|
54
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
55
|
+
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
42
56
|
return true;
|
|
43
57
|
}
|
|
44
58
|
|
|
@@ -54,6 +68,8 @@ export function AccountSettingsLandingDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
54
68
|
|
|
55
69
|
'anonymous': json['anonymous'],
|
|
56
70
|
'showRelatedDomains': json['showRelatedDomains'],
|
|
71
|
+
'description': json['description'],
|
|
72
|
+
'avatar': json['avatar'],
|
|
57
73
|
};
|
|
58
74
|
}
|
|
59
75
|
|
|
@@ -70,6 +86,8 @@ export function AccountSettingsLandingDtoToJSONTyped(value?: AccountSettingsLand
|
|
|
70
86
|
|
|
71
87
|
'anonymous': value['anonymous'],
|
|
72
88
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
89
|
+
'description': value['description'],
|
|
90
|
+
'avatar': value['avatar'],
|
|
73
91
|
};
|
|
74
92
|
}
|
|
75
93
|
|
|
@@ -57,6 +57,18 @@ export interface DomainSellerDto {
|
|
|
57
57
|
* @memberof DomainSellerDto
|
|
58
58
|
*/
|
|
59
59
|
name: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The seller avatar
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DomainSellerDto
|
|
64
|
+
*/
|
|
65
|
+
avatar: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The seller avatar
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof DomainSellerDto
|
|
70
|
+
*/
|
|
71
|
+
description: string | null;
|
|
60
72
|
/**
|
|
61
73
|
* The domain seller related domains
|
|
62
74
|
* @type {Array<RelatedSellerDomain>}
|
|
@@ -74,6 +86,8 @@ export function instanceOfDomainSellerDto(value: object): value is DomainSellerD
|
|
|
74
86
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
75
87
|
if (!('deliversIn' in value) || value['deliversIn'] === undefined) return false;
|
|
76
88
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
89
|
+
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
90
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
77
91
|
if (!('relatedDomains' in value) || value['relatedDomains'] === undefined) return false;
|
|
78
92
|
return true;
|
|
79
93
|
}
|
|
@@ -93,6 +107,8 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
93
107
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
94
108
|
'deliversIn': json['deliversIn'],
|
|
95
109
|
'name': json['name'],
|
|
110
|
+
'avatar': json['avatar'],
|
|
111
|
+
'description': json['description'],
|
|
96
112
|
'relatedDomains': (json['relatedDomains'] == null ? null : (json['relatedDomains'] as Array<any>).map(RelatedSellerDomainFromJSON)),
|
|
97
113
|
};
|
|
98
114
|
}
|
|
@@ -113,6 +129,8 @@ export function DomainSellerDtoToJSONTyped(value?: DomainSellerDto | null, ignor
|
|
|
113
129
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
114
130
|
'deliversIn': value['deliversIn'],
|
|
115
131
|
'name': value['name'],
|
|
132
|
+
'avatar': value['avatar'],
|
|
133
|
+
'description': value['description'],
|
|
116
134
|
'relatedDomains': (value['relatedDomains'] == null ? null : (value['relatedDomains'] as Array<any>).map(RelatedSellerDomainToJSON)),
|
|
117
135
|
};
|
|
118
136
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 LandingPageInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LandingPageInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof LandingPageInput
|
|
26
|
+
*/
|
|
27
|
+
anonymous?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LandingPageInput
|
|
32
|
+
*/
|
|
33
|
+
showRelatedDomains?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LandingPageInput
|
|
38
|
+
*/
|
|
39
|
+
description?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LandingPageInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLandingPageInput(value: object): value is LandingPageInput {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LandingPageInputFromJSON(json: any): LandingPageInput {
|
|
50
|
+
return LandingPageInputFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingPageInput {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
|
|
60
|
+
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
61
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function LandingPageInputToJSON(json: any): LandingPageInput {
|
|
66
|
+
return LandingPageInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'anonymous': value['anonymous'],
|
|
77
|
+
'showRelatedDomains': value['showRelatedDomains'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -88,6 +88,7 @@ export * from './InvoiceItemDto';
|
|
|
88
88
|
export * from './InvoiceItemTaxDto';
|
|
89
89
|
export * from './InvoiceSellerAccountDto';
|
|
90
90
|
export * from './InvoiceTransactionDto';
|
|
91
|
+
export * from './LandingPageInput';
|
|
91
92
|
export * from './LeadDomainDto';
|
|
92
93
|
export * from './LeadDto';
|
|
93
94
|
export * from './LeadMessageData';
|