@randock/nameshift-api-client 0.0.564 → 0.0.565
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 +5 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +36 -1
- package/dist/apis/AdminApi.js +133 -0
- package/dist/apis/SettingsSearchApi.d.ts +31 -0
- package/dist/apis/SettingsSearchApi.js +135 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/GetSettingsSearchMisses200Response.d.ts +47 -0
- package/dist/models/GetSettingsSearchMisses200Response.js +62 -0
- package/dist/models/RecordSettingsSearchMissInput.d.ts +38 -0
- package/dist/models/RecordSettingsSearchMissInput.js +55 -0
- package/dist/models/SettingsSearchMissCountDto.d.ts +50 -0
- package/dist/models/SettingsSearchMissCountDto.js +63 -0
- package/dist/models/SettingsSearchMissDto.d.ts +56 -0
- package/dist/models/SettingsSearchMissDto.js +67 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +129 -0
- package/src/apis/SettingsSearchApi.ts +82 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetSettingsSearchMisses200Response.ts +106 -0
- package/src/models/RecordSettingsSearchMissInput.ts +75 -0
- package/src/models/SettingsSearchMissCountDto.ts +93 -0
- package/src/models/SettingsSearchMissDto.ts +102 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,50 @@
|
|
|
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 SettingsSearchMissCountDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SettingsSearchMissCountDto {
|
|
18
|
+
/**
|
|
19
|
+
* Trimmed, lower-cased query.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SettingsSearchMissCountDto
|
|
22
|
+
*/
|
|
23
|
+
query: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of times it came back empty.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SettingsSearchMissCountDto
|
|
28
|
+
*/
|
|
29
|
+
count: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of distinct accounts that searched it.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SettingsSearchMissCountDto
|
|
34
|
+
*/
|
|
35
|
+
accounts: number;
|
|
36
|
+
/**
|
|
37
|
+
* Most recent time it came back empty.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof SettingsSearchMissCountDto
|
|
40
|
+
*/
|
|
41
|
+
lastSeenAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SettingsSearchMissCountDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSettingsSearchMissCountDto(value: object): value is SettingsSearchMissCountDto;
|
|
47
|
+
export declare function SettingsSearchMissCountDtoFromJSON(json: any): SettingsSearchMissCountDto;
|
|
48
|
+
export declare function SettingsSearchMissCountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsSearchMissCountDto;
|
|
49
|
+
export declare function SettingsSearchMissCountDtoToJSON(json: any): SettingsSearchMissCountDto;
|
|
50
|
+
export declare function SettingsSearchMissCountDtoToJSONTyped(value?: SettingsSearchMissCountDto | 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.instanceOfSettingsSearchMissCountDto = instanceOfSettingsSearchMissCountDto;
|
|
17
|
+
exports.SettingsSearchMissCountDtoFromJSON = SettingsSearchMissCountDtoFromJSON;
|
|
18
|
+
exports.SettingsSearchMissCountDtoFromJSONTyped = SettingsSearchMissCountDtoFromJSONTyped;
|
|
19
|
+
exports.SettingsSearchMissCountDtoToJSON = SettingsSearchMissCountDtoToJSON;
|
|
20
|
+
exports.SettingsSearchMissCountDtoToJSONTyped = SettingsSearchMissCountDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SettingsSearchMissCountDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSettingsSearchMissCountDto(value) {
|
|
25
|
+
if (!('query' in value) || value['query'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('accounts' in value) || value['accounts'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SettingsSearchMissCountDtoFromJSON(json) {
|
|
36
|
+
return SettingsSearchMissCountDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SettingsSearchMissCountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'query': json['query'],
|
|
44
|
+
'count': json['count'],
|
|
45
|
+
'accounts': json['accounts'],
|
|
46
|
+
'lastSeenAt': (new Date(json['lastSeenAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function SettingsSearchMissCountDtoToJSON(json) {
|
|
50
|
+
return SettingsSearchMissCountDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SettingsSearchMissCountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'query': value['query'],
|
|
59
|
+
'count': value['count'],
|
|
60
|
+
'accounts': value['accounts'],
|
|
61
|
+
'lastSeenAt': ((value['lastSeenAt']).toISOString()),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SettingsSearchMissDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SettingsSearchMissDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SettingsSearchMissDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* What was searched for: trimmed and lower-cased user input.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SettingsSearchMissDto
|
|
28
|
+
*/
|
|
29
|
+
query: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SettingsSearchMissDto
|
|
34
|
+
*/
|
|
35
|
+
locale: string;
|
|
36
|
+
/**
|
|
37
|
+
* Account the search came from; null once it was deleted.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SettingsSearchMissDto
|
|
40
|
+
*/
|
|
41
|
+
accountId: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof SettingsSearchMissDto
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SettingsSearchMissDto interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSettingsSearchMissDto(value: object): value is SettingsSearchMissDto;
|
|
53
|
+
export declare function SettingsSearchMissDtoFromJSON(json: any): SettingsSearchMissDto;
|
|
54
|
+
export declare function SettingsSearchMissDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsSearchMissDto;
|
|
55
|
+
export declare function SettingsSearchMissDtoToJSON(json: any): SettingsSearchMissDto;
|
|
56
|
+
export declare function SettingsSearchMissDtoToJSONTyped(value?: SettingsSearchMissDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfSettingsSearchMissDto = instanceOfSettingsSearchMissDto;
|
|
17
|
+
exports.SettingsSearchMissDtoFromJSON = SettingsSearchMissDtoFromJSON;
|
|
18
|
+
exports.SettingsSearchMissDtoFromJSONTyped = SettingsSearchMissDtoFromJSONTyped;
|
|
19
|
+
exports.SettingsSearchMissDtoToJSON = SettingsSearchMissDtoToJSON;
|
|
20
|
+
exports.SettingsSearchMissDtoToJSONTyped = SettingsSearchMissDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SettingsSearchMissDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSettingsSearchMissDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('query' in value) || value['query'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('locale' in value) || value['locale'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function SettingsSearchMissDtoFromJSON(json) {
|
|
38
|
+
return SettingsSearchMissDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function SettingsSearchMissDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'query': json['query'],
|
|
47
|
+
'locale': json['locale'],
|
|
48
|
+
'accountId': json['accountId'],
|
|
49
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function SettingsSearchMissDtoToJSON(json) {
|
|
53
|
+
return SettingsSearchMissDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function SettingsSearchMissDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'query': value['query'],
|
|
63
|
+
'locale': value['locale'],
|
|
64
|
+
'accountId': value['accountId'],
|
|
65
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -374,6 +374,7 @@ export * from './GetMarketingSales200Response';
|
|
|
374
374
|
export * from './GetQuickReplies200Response';
|
|
375
375
|
export * from './GetSellerChallengesListDto';
|
|
376
376
|
export * from './GetSellerChallengesListDtoChallengesInner';
|
|
377
|
+
export * from './GetSettingsSearchMisses200Response';
|
|
377
378
|
export * from './HistoricalMetrics';
|
|
378
379
|
export * from './HttpException';
|
|
379
380
|
export * from './ImportDomainsResponseDto';
|
|
@@ -585,6 +586,7 @@ export * from './QuickReplyInput';
|
|
|
585
586
|
export * from './QuickReplyVariableEnum';
|
|
586
587
|
export * from './ReauthenticateWithPasskeyInput';
|
|
587
588
|
export * from './ReauthenticationDto';
|
|
589
|
+
export * from './RecordSettingsSearchMissInput';
|
|
588
590
|
export * from './RecoveryCodesDto';
|
|
589
591
|
export * from './RegisterAccountInput';
|
|
590
592
|
export * from './RegisterAccountPortfolioSizeInput';
|
|
@@ -657,6 +659,8 @@ export * from './SetDomainTransferConfirmationInput';
|
|
|
657
659
|
export * from './SetNewPasswordInput';
|
|
658
660
|
export * from './SetPayoutFrequencyInput';
|
|
659
661
|
export * from './SetPayoutProviderInput';
|
|
662
|
+
export * from './SettingsSearchMissCountDto';
|
|
663
|
+
export * from './SettingsSearchMissDto';
|
|
660
664
|
export * from './SimulateAutomationsInput';
|
|
661
665
|
export * from './SimulateCommissionInput';
|
|
662
666
|
export * from './StartAuctionInput';
|
package/dist/models/index.js
CHANGED
|
@@ -392,6 +392,7 @@ __exportStar(require("./GetMarketingSales200Response"), exports);
|
|
|
392
392
|
__exportStar(require("./GetQuickReplies200Response"), exports);
|
|
393
393
|
__exportStar(require("./GetSellerChallengesListDto"), exports);
|
|
394
394
|
__exportStar(require("./GetSellerChallengesListDtoChallengesInner"), exports);
|
|
395
|
+
__exportStar(require("./GetSettingsSearchMisses200Response"), exports);
|
|
395
396
|
__exportStar(require("./HistoricalMetrics"), exports);
|
|
396
397
|
__exportStar(require("./HttpException"), exports);
|
|
397
398
|
__exportStar(require("./ImportDomainsResponseDto"), exports);
|
|
@@ -603,6 +604,7 @@ __exportStar(require("./QuickReplyInput"), exports);
|
|
|
603
604
|
__exportStar(require("./QuickReplyVariableEnum"), exports);
|
|
604
605
|
__exportStar(require("./ReauthenticateWithPasskeyInput"), exports);
|
|
605
606
|
__exportStar(require("./ReauthenticationDto"), exports);
|
|
607
|
+
__exportStar(require("./RecordSettingsSearchMissInput"), exports);
|
|
606
608
|
__exportStar(require("./RecoveryCodesDto"), exports);
|
|
607
609
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
608
610
|
__exportStar(require("./RegisterAccountPortfolioSizeInput"), exports);
|
|
@@ -675,6 +677,8 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
|
675
677
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
676
678
|
__exportStar(require("./SetPayoutFrequencyInput"), exports);
|
|
677
679
|
__exportStar(require("./SetPayoutProviderInput"), exports);
|
|
680
|
+
__exportStar(require("./SettingsSearchMissCountDto"), exports);
|
|
681
|
+
__exportStar(require("./SettingsSearchMissDto"), exports);
|
|
678
682
|
__exportStar(require("./SimulateAutomationsInput"), exports);
|
|
679
683
|
__exportStar(require("./SimulateCommissionInput"), exports);
|
|
680
684
|
__exportStar(require("./StartAuctionInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -59,6 +59,7 @@ import type {
|
|
|
59
59
|
GetAllOrders200Response,
|
|
60
60
|
GetAllOwnedDomains200Response,
|
|
61
61
|
GetAllSubscriptions200Response,
|
|
62
|
+
GetSettingsSearchMisses200Response,
|
|
62
63
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
|
|
63
64
|
LeadEnrichmentDto,
|
|
64
65
|
LeadMessageDto,
|
|
@@ -92,6 +93,7 @@ import type {
|
|
|
92
93
|
SellerSalesCountStatsItemDto,
|
|
93
94
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
|
|
94
95
|
SendNewsletterPreviewInput,
|
|
96
|
+
SettingsSearchMissCountDto,
|
|
95
97
|
SimulateCommissionInput,
|
|
96
98
|
StatsFilterInputDateRange,
|
|
97
99
|
SubscriptionDetailsDto,
|
|
@@ -196,6 +198,8 @@ import {
|
|
|
196
198
|
GetAllOwnedDomains200ResponseToJSON,
|
|
197
199
|
GetAllSubscriptions200ResponseFromJSON,
|
|
198
200
|
GetAllSubscriptions200ResponseToJSON,
|
|
201
|
+
GetSettingsSearchMisses200ResponseFromJSON,
|
|
202
|
+
GetSettingsSearchMisses200ResponseToJSON,
|
|
199
203
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON,
|
|
200
204
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
|
|
201
205
|
LeadEnrichmentDtoFromJSON,
|
|
@@ -262,6 +266,8 @@ import {
|
|
|
262
266
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON,
|
|
263
267
|
SendNewsletterPreviewInputFromJSON,
|
|
264
268
|
SendNewsletterPreviewInputToJSON,
|
|
269
|
+
SettingsSearchMissCountDtoFromJSON,
|
|
270
|
+
SettingsSearchMissCountDtoToJSON,
|
|
265
271
|
SimulateCommissionInputFromJSON,
|
|
266
272
|
SimulateCommissionInputToJSON,
|
|
267
273
|
StatsFilterInputDateRangeFromJSON,
|
|
@@ -582,6 +588,21 @@ export interface AdminApiGetNewsletterRequest {
|
|
|
582
588
|
newsletterId: string;
|
|
583
589
|
}
|
|
584
590
|
|
|
591
|
+
export interface AdminApiGetSettingsSearchMissCountsRequest {
|
|
592
|
+
from?: Date;
|
|
593
|
+
to?: Date;
|
|
594
|
+
limit?: number;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export interface AdminApiGetSettingsSearchMissesRequest {
|
|
598
|
+
from?: Date;
|
|
599
|
+
to?: Date;
|
|
600
|
+
filter?: { [key: string]: string; };
|
|
601
|
+
page?: number;
|
|
602
|
+
limit?: number;
|
|
603
|
+
sortBy?: Array<string>;
|
|
604
|
+
}
|
|
605
|
+
|
|
585
606
|
export interface AdminApiGetSubscriptionDetailsRequest {
|
|
586
607
|
subscriptionId: string;
|
|
587
608
|
}
|
|
@@ -3581,6 +3602,114 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3581
3602
|
return await response.value();
|
|
3582
3603
|
}
|
|
3583
3604
|
|
|
3605
|
+
/**
|
|
3606
|
+
* Groups the recorded searches by query, most frequent first, capped at `limit` queries.
|
|
3607
|
+
* Count settings searches without results per query
|
|
3608
|
+
*/
|
|
3609
|
+
async getSettingsSearchMissCountsRaw(requestParameters: AdminApiGetSettingsSearchMissCountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SettingsSearchMissCountDto>>> {
|
|
3610
|
+
const queryParameters: any = {};
|
|
3611
|
+
|
|
3612
|
+
if (requestParameters['from'] != null) {
|
|
3613
|
+
queryParameters['from'] = (requestParameters['from'] as any).toISOString();
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3616
|
+
if (requestParameters['to'] != null) {
|
|
3617
|
+
queryParameters['to'] = (requestParameters['to'] as any).toISOString();
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
if (requestParameters['limit'] != null) {
|
|
3621
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3625
|
+
|
|
3626
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3627
|
+
const token = this.configuration.accessToken;
|
|
3628
|
+
const tokenString = await token("bearer", []);
|
|
3629
|
+
|
|
3630
|
+
if (tokenString) {
|
|
3631
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
const response = await this.request({
|
|
3635
|
+
path: `/admin/settings-search-misses/counts`,
|
|
3636
|
+
method: 'GET',
|
|
3637
|
+
headers: headerParameters,
|
|
3638
|
+
query: queryParameters,
|
|
3639
|
+
}, initOverrides);
|
|
3640
|
+
|
|
3641
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SettingsSearchMissCountDtoFromJSON));
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* Groups the recorded searches by query, most frequent first, capped at `limit` queries.
|
|
3646
|
+
* Count settings searches without results per query
|
|
3647
|
+
*/
|
|
3648
|
+
async getSettingsSearchMissCounts(requestParameters: AdminApiGetSettingsSearchMissCountsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SettingsSearchMissCountDto>> {
|
|
3649
|
+
const response = await this.getSettingsSearchMissCountsRaw(requestParameters, initOverrides);
|
|
3650
|
+
return await response.value();
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
/**
|
|
3654
|
+
* Lists the recorded settings searches that returned nothing, newest first.
|
|
3655
|
+
* List settings searches without results
|
|
3656
|
+
*/
|
|
3657
|
+
async getSettingsSearchMissesRaw(requestParameters: AdminApiGetSettingsSearchMissesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSettingsSearchMisses200Response>> {
|
|
3658
|
+
const queryParameters: any = {};
|
|
3659
|
+
|
|
3660
|
+
if (requestParameters['from'] != null) {
|
|
3661
|
+
queryParameters['from'] = (requestParameters['from'] as any).toISOString();
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
if (requestParameters['to'] != null) {
|
|
3665
|
+
queryParameters['to'] = (requestParameters['to'] as any).toISOString();
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
if (requestParameters['filter'] != null) {
|
|
3669
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
if (requestParameters['page'] != null) {
|
|
3673
|
+
queryParameters['page'] = requestParameters['page'];
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
if (requestParameters['limit'] != null) {
|
|
3677
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
if (requestParameters['sortBy'] != null) {
|
|
3681
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3685
|
+
|
|
3686
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3687
|
+
const token = this.configuration.accessToken;
|
|
3688
|
+
const tokenString = await token("bearer", []);
|
|
3689
|
+
|
|
3690
|
+
if (tokenString) {
|
|
3691
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3692
|
+
}
|
|
3693
|
+
}
|
|
3694
|
+
const response = await this.request({
|
|
3695
|
+
path: `/admin/settings-search-misses`,
|
|
3696
|
+
method: 'GET',
|
|
3697
|
+
headers: headerParameters,
|
|
3698
|
+
query: queryParameters,
|
|
3699
|
+
}, initOverrides);
|
|
3700
|
+
|
|
3701
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetSettingsSearchMisses200ResponseFromJSON(jsonValue));
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
/**
|
|
3705
|
+
* Lists the recorded settings searches that returned nothing, newest first.
|
|
3706
|
+
* List settings searches without results
|
|
3707
|
+
*/
|
|
3708
|
+
async getSettingsSearchMisses(requestParameters: AdminApiGetSettingsSearchMissesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSettingsSearchMisses200Response> {
|
|
3709
|
+
const response = await this.getSettingsSearchMissesRaw(requestParameters, initOverrides);
|
|
3710
|
+
return await response.value();
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3584
3713
|
/**
|
|
3585
3714
|
* Returns subscription information.
|
|
3586
3715
|
* Get subscription details
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
RecordSettingsSearchMissInput,
|
|
19
|
+
ValidationException,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
RecordSettingsSearchMissInputFromJSON,
|
|
23
|
+
RecordSettingsSearchMissInputToJSON,
|
|
24
|
+
ValidationExceptionFromJSON,
|
|
25
|
+
ValidationExceptionToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface SettingsSearchApiRecordSettingsSearchMissRequest {
|
|
29
|
+
recordSettingsSearchMissInput: RecordSettingsSearchMissInput;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export class SettingsSearchApi extends runtime.BaseAPI {
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Records, with the seller account, a settings search that returned nothing, to learn what people cannot find. Nothing is recorded while an admin is logged in as the user; the call still answers 204.
|
|
39
|
+
* Record a settings search without results
|
|
40
|
+
*/
|
|
41
|
+
async recordSettingsSearchMissRaw(requestParameters: SettingsSearchApiRecordSettingsSearchMissRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
42
|
+
if (requestParameters['recordSettingsSearchMissInput'] == null) {
|
|
43
|
+
throw new runtime.RequiredError(
|
|
44
|
+
'recordSettingsSearchMissInput',
|
|
45
|
+
'Required parameter "recordSettingsSearchMissInput" was null or undefined when calling recordSettingsSearchMiss().'
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const queryParameters: any = {};
|
|
50
|
+
|
|
51
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
52
|
+
|
|
53
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
54
|
+
|
|
55
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
56
|
+
const token = this.configuration.accessToken;
|
|
57
|
+
const tokenString = await token("bearer", []);
|
|
58
|
+
|
|
59
|
+
if (tokenString) {
|
|
60
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const response = await this.request({
|
|
64
|
+
path: `/private/settings-search-misses`,
|
|
65
|
+
method: 'POST',
|
|
66
|
+
headers: headerParameters,
|
|
67
|
+
query: queryParameters,
|
|
68
|
+
body: RecordSettingsSearchMissInputToJSON(requestParameters['recordSettingsSearchMissInput']),
|
|
69
|
+
}, initOverrides);
|
|
70
|
+
|
|
71
|
+
return new runtime.VoidApiResponse(response);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Records, with the seller account, a settings search that returned nothing, to learn what people cannot find. Nothing is recorded while an admin is logged in as the user; the call still answers 204.
|
|
76
|
+
* Record a settings search without results
|
|
77
|
+
*/
|
|
78
|
+
async recordSettingsSearchMiss(requestParameters: SettingsSearchApiRecordSettingsSearchMissRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
79
|
+
await this.recordSettingsSearchMissRaw(requestParameters, initOverrides);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './OrdersPublicApi';
|
|
|
34
34
|
export * from './PartnerApi';
|
|
35
35
|
export * from './QuickRepliesApi';
|
|
36
36
|
export * from './SalesPublicApi';
|
|
37
|
+
export * from './SettingsSearchApi';
|
|
37
38
|
export * from './StatsApi';
|
|
38
39
|
export * from './SubscriptionsApi';
|
|
39
40
|
export * from './SubscriptionsPublicApi';
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
24
|
+
import {
|
|
25
|
+
PaginateResponseMetaFromJSON,
|
|
26
|
+
PaginateResponseMetaFromJSONTyped,
|
|
27
|
+
PaginateResponseMetaToJSON,
|
|
28
|
+
PaginateResponseMetaToJSONTyped,
|
|
29
|
+
} from './PaginateResponseMeta';
|
|
30
|
+
import type { SettingsSearchMissDto } from './SettingsSearchMissDto';
|
|
31
|
+
import {
|
|
32
|
+
SettingsSearchMissDtoFromJSON,
|
|
33
|
+
SettingsSearchMissDtoFromJSONTyped,
|
|
34
|
+
SettingsSearchMissDtoToJSON,
|
|
35
|
+
SettingsSearchMissDtoToJSONTyped,
|
|
36
|
+
} from './SettingsSearchMissDto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetSettingsSearchMisses200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface GetSettingsSearchMisses200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<SettingsSearchMissDto>}
|
|
47
|
+
* @memberof GetSettingsSearchMisses200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<SettingsSearchMissDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetSettingsSearchMisses200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetSettingsSearchMisses200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetSettingsSearchMisses200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetSettingsSearchMisses200Response(value: object): value is GetSettingsSearchMisses200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetSettingsSearchMisses200ResponseFromJSON(json: any): GetSettingsSearchMisses200Response {
|
|
75
|
+
return GetSettingsSearchMisses200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetSettingsSearchMisses200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSettingsSearchMisses200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(SettingsSearchMissDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetSettingsSearchMisses200ResponseToJSON(json: any): GetSettingsSearchMisses200Response {
|
|
91
|
+
return GetSettingsSearchMisses200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetSettingsSearchMisses200ResponseToJSONTyped(value?: GetSettingsSearchMisses200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(SettingsSearchMissDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|