@randock/nameshift-api-client 0.0.384 → 0.0.386
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 +3 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +27 -1
- package/dist/apis/AdminApi.js +119 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +93 -0
- package/dist/models/FeatureFlagListItemDto.js +100 -0
- package/dist/models/GetAllFeatureFlags200Response.d.ts +47 -0
- package/dist/models/GetAllFeatureFlags200Response.js +62 -0
- package/dist/models/ListAccountMetricsDto.d.ts +6 -0
- package/dist/models/ListAccountMetricsDto.js +4 -0
- package/dist/models/OrderListItemDto.d.ts +6 -0
- package/dist/models/OrderListItemDto.js +4 -0
- package/dist/models/UpdateFeatureFlagInput.d.ts +44 -0
- package/dist/models/UpdateFeatureFlagInput.js +53 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +118 -0
- package/src/models/FeatureFlagListItemDto.ts +148 -0
- package/src/models/GetAllFeatureFlags200Response.ts +106 -0
- package/src/models/ListAccountMetricsDto.ts +9 -0
- package/src/models/OrderListItemDto.ts +9 -0
- package/src/models/UpdateFeatureFlagInput.ts +81 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -233,6 +233,7 @@ src/models/DomainTransferWorkflowDto.ts
|
|
|
233
233
|
src/models/DomainUrlDto.ts
|
|
234
234
|
src/models/DomainVerificationStatusDto.ts
|
|
235
235
|
src/models/EppBatchUpdateInput.ts
|
|
236
|
+
src/models/FeatureFlagListItemDto.ts
|
|
236
237
|
src/models/FixedCommissionPayloadDto.ts
|
|
237
238
|
src/models/FixedCommissionPayloadInput.ts
|
|
238
239
|
src/models/FixedCommissionReasonPayloadDto.ts
|
|
@@ -243,6 +244,7 @@ src/models/GetAllAffiliateCommissions200Response.ts
|
|
|
243
244
|
src/models/GetAllAuctions200Response.ts
|
|
244
245
|
src/models/GetAllAuctions200Response1.ts
|
|
245
246
|
src/models/GetAllDomainTransfers200Response.ts
|
|
247
|
+
src/models/GetAllFeatureFlags200Response.ts
|
|
246
248
|
src/models/GetAllInvoices200Response.ts
|
|
247
249
|
src/models/GetAllOrders200Response.ts
|
|
248
250
|
src/models/GetAllOwnedDomains200Response.ts
|
|
@@ -457,6 +459,7 @@ src/models/UpdateChallengeInput.ts
|
|
|
457
459
|
src/models/UpdateDomainInput.ts
|
|
458
460
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
459
461
|
src/models/UpdateDomainTransferIpsTagInput.ts
|
|
462
|
+
src/models/UpdateFeatureFlagInput.ts
|
|
460
463
|
src/models/UpdateLeadInput.ts
|
|
461
464
|
src/models/UpdateLeadMuteStatusForBuyerInput.ts
|
|
462
465
|
src/models/UpdateLeadMuteStatusInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.386
|
|
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.386 --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
|
+
7e916c757520c417f6a78af2488bd1a14da593268031ec049a70393e7f2f5cc9a692a610af7e8d3bd2a690aec1d1f8eb
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateChallengeInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -70,6 +70,12 @@ export interface AdminApiGetAllAuctionsRequest {
|
|
|
70
70
|
limit?: number;
|
|
71
71
|
sortBy?: Array<string>;
|
|
72
72
|
}
|
|
73
|
+
export interface AdminApiGetAllFeatureFlagsRequest {
|
|
74
|
+
filter?: object;
|
|
75
|
+
page?: number;
|
|
76
|
+
limit?: number;
|
|
77
|
+
sortBy?: Array<string>;
|
|
78
|
+
}
|
|
73
79
|
export interface AdminApiGetAllInvoicesRequest {
|
|
74
80
|
filter?: object;
|
|
75
81
|
page?: number;
|
|
@@ -172,6 +178,10 @@ export interface AdminApiUpdateChallengeRequest {
|
|
|
172
178
|
id: string;
|
|
173
179
|
updateChallengeInput: UpdateChallengeInput;
|
|
174
180
|
}
|
|
181
|
+
export interface AdminApiUpdateFeatureFlagRequest {
|
|
182
|
+
featureFlagId: string;
|
|
183
|
+
updateFeatureFlagInput: UpdateFeatureFlagInput;
|
|
184
|
+
}
|
|
175
185
|
export interface AdminApiVerifyAccountAliasRequest {
|
|
176
186
|
accountId: string;
|
|
177
187
|
}
|
|
@@ -318,6 +328,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
318
328
|
*
|
|
319
329
|
*/
|
|
320
330
|
getAllAuctions(requestParameters?: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response>;
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
*/
|
|
334
|
+
getAllFeatureFlagsRaw(requestParameters: AdminApiGetAllFeatureFlagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllFeatureFlags200Response>>;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
*/
|
|
338
|
+
getAllFeatureFlags(requestParameters?: AdminApiGetAllFeatureFlagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllFeatureFlags200Response>;
|
|
321
339
|
/**
|
|
322
340
|
*
|
|
323
341
|
*/
|
|
@@ -518,6 +536,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
518
536
|
*
|
|
519
537
|
*/
|
|
520
538
|
updateChallenge(requestParameters: AdminApiUpdateChallengeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
*/
|
|
542
|
+
updateFeatureFlagRaw(requestParameters: AdminApiUpdateFeatureFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
*/
|
|
546
|
+
updateFeatureFlag(requestParameters: AdminApiUpdateFeatureFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
521
547
|
/**
|
|
522
548
|
*
|
|
523
549
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -1002,6 +1002,69 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1002
1002
|
});
|
|
1003
1003
|
});
|
|
1004
1004
|
};
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
*/
|
|
1008
|
+
AdminApi.prototype.getAllFeatureFlagsRaw = function (requestParameters, initOverrides) {
|
|
1009
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1010
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1011
|
+
return __generator(this, function (_a) {
|
|
1012
|
+
switch (_a.label) {
|
|
1013
|
+
case 0:
|
|
1014
|
+
queryParameters = {};
|
|
1015
|
+
if (requestParameters['filter'] != null) {
|
|
1016
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1017
|
+
}
|
|
1018
|
+
if (requestParameters['page'] != null) {
|
|
1019
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1020
|
+
}
|
|
1021
|
+
if (requestParameters['limit'] != null) {
|
|
1022
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1023
|
+
}
|
|
1024
|
+
if (requestParameters['sortBy'] != null) {
|
|
1025
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1026
|
+
}
|
|
1027
|
+
headerParameters = {};
|
|
1028
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1029
|
+
token = this.configuration.accessToken;
|
|
1030
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1031
|
+
case 1:
|
|
1032
|
+
tokenString = _a.sent();
|
|
1033
|
+
if (tokenString) {
|
|
1034
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1035
|
+
}
|
|
1036
|
+
_a.label = 2;
|
|
1037
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1038
|
+
path: "/admin/feature-flags",
|
|
1039
|
+
method: 'GET',
|
|
1040
|
+
headers: headerParameters,
|
|
1041
|
+
query: queryParameters,
|
|
1042
|
+
}, initOverrides)];
|
|
1043
|
+
case 3:
|
|
1044
|
+
response = _a.sent();
|
|
1045
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllFeatureFlags200ResponseFromJSON)(jsonValue); })];
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
*/
|
|
1053
|
+
AdminApi.prototype.getAllFeatureFlags = function () {
|
|
1054
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
1055
|
+
var response;
|
|
1056
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1057
|
+
return __generator(this, function (_a) {
|
|
1058
|
+
switch (_a.label) {
|
|
1059
|
+
case 0: return [4 /*yield*/, this.getAllFeatureFlagsRaw(requestParameters, initOverrides)];
|
|
1060
|
+
case 1:
|
|
1061
|
+
response = _a.sent();
|
|
1062
|
+
return [4 /*yield*/, response.value()];
|
|
1063
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
});
|
|
1067
|
+
};
|
|
1005
1068
|
/**
|
|
1006
1069
|
*
|
|
1007
1070
|
*/
|
|
@@ -2420,6 +2483,62 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2420
2483
|
});
|
|
2421
2484
|
});
|
|
2422
2485
|
};
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
*/
|
|
2489
|
+
AdminApi.prototype.updateFeatureFlagRaw = function (requestParameters, initOverrides) {
|
|
2490
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2491
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2492
|
+
return __generator(this, function (_a) {
|
|
2493
|
+
switch (_a.label) {
|
|
2494
|
+
case 0:
|
|
2495
|
+
if (requestParameters['featureFlagId'] == null) {
|
|
2496
|
+
throw new runtime.RequiredError('featureFlagId', 'Required parameter "featureFlagId" was null or undefined when calling updateFeatureFlag().');
|
|
2497
|
+
}
|
|
2498
|
+
if (requestParameters['updateFeatureFlagInput'] == null) {
|
|
2499
|
+
throw new runtime.RequiredError('updateFeatureFlagInput', 'Required parameter "updateFeatureFlagInput" was null or undefined when calling updateFeatureFlag().');
|
|
2500
|
+
}
|
|
2501
|
+
queryParameters = {};
|
|
2502
|
+
headerParameters = {};
|
|
2503
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2504
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2505
|
+
token = this.configuration.accessToken;
|
|
2506
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2507
|
+
case 1:
|
|
2508
|
+
tokenString = _a.sent();
|
|
2509
|
+
if (tokenString) {
|
|
2510
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2511
|
+
}
|
|
2512
|
+
_a.label = 2;
|
|
2513
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2514
|
+
path: "/admin/feature-flags/{featureFlagId}".replace("{".concat("featureFlagId", "}"), encodeURIComponent(String(requestParameters['featureFlagId']))),
|
|
2515
|
+
method: 'PATCH',
|
|
2516
|
+
headers: headerParameters,
|
|
2517
|
+
query: queryParameters,
|
|
2518
|
+
body: (0, index_1.UpdateFeatureFlagInputToJSON)(requestParameters['updateFeatureFlagInput']),
|
|
2519
|
+
}, initOverrides)];
|
|
2520
|
+
case 3:
|
|
2521
|
+
response = _a.sent();
|
|
2522
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
});
|
|
2526
|
+
};
|
|
2527
|
+
/**
|
|
2528
|
+
*
|
|
2529
|
+
*/
|
|
2530
|
+
AdminApi.prototype.updateFeatureFlag = function (requestParameters, initOverrides) {
|
|
2531
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2532
|
+
return __generator(this, function (_a) {
|
|
2533
|
+
switch (_a.label) {
|
|
2534
|
+
case 0: return [4 /*yield*/, this.updateFeatureFlagRaw(requestParameters, initOverrides)];
|
|
2535
|
+
case 1:
|
|
2536
|
+
_a.sent();
|
|
2537
|
+
return [2 /*return*/];
|
|
2538
|
+
}
|
|
2539
|
+
});
|
|
2540
|
+
});
|
|
2541
|
+
};
|
|
2423
2542
|
/**
|
|
2424
2543
|
*
|
|
2425
2544
|
*/
|
|
@@ -0,0 +1,93 @@
|
|
|
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 FeatureFlagListItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface FeatureFlagListItemDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FeatureFlagListItemDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FeatureFlagListItemDto
|
|
28
|
+
*/
|
|
29
|
+
name: FeatureFlagListItemDtoNameEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof FeatureFlagListItemDto
|
|
34
|
+
*/
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof FeatureFlagListItemDto
|
|
40
|
+
*/
|
|
41
|
+
whitelistedAccounts: Array<string> | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof FeatureFlagListItemDto
|
|
46
|
+
*/
|
|
47
|
+
blacklistedAccounts: Array<string> | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof FeatureFlagListItemDto
|
|
52
|
+
*/
|
|
53
|
+
availabilityStart: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof FeatureFlagListItemDto
|
|
58
|
+
*/
|
|
59
|
+
availabilityEnd: Date | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const FeatureFlagListItemDtoNameEnum: {
|
|
65
|
+
readonly LEASE_TO_OWN: "LEASE_TO_OWN";
|
|
66
|
+
readonly RENT: "RENT";
|
|
67
|
+
readonly SEO_METRICS: "SEO_METRICS";
|
|
68
|
+
readonly BANK_PAYOUTS: "BANK_PAYOUTS";
|
|
69
|
+
readonly ZERO_COMMISSION: "ZERO_COMMISSION";
|
|
70
|
+
readonly COMMISSION_7_5: "COMMISSION_7_5";
|
|
71
|
+
readonly LEAD_PRICE_NEGOTIATOR_AI_AGENT: "LEAD_PRICE_NEGOTIATOR_AI_AGENT";
|
|
72
|
+
readonly AFFILIATE_PROGRAM: "AFFILIATE_PROGRAM";
|
|
73
|
+
readonly DOMAIN_AFFILIATE_PROGRAM: "DOMAIN_AFFILIATE_PROGRAM";
|
|
74
|
+
readonly SELLER_STATS_DASHBOARD: "SELLER_STATS_DASHBOARD";
|
|
75
|
+
readonly SELLER_TRANSFER_COSTS_PAYMENT: "SELLER_TRANSFER_COSTS_PAYMENT";
|
|
76
|
+
readonly NOTIFICATIONS_MANAGER: "NOTIFICATIONS_MANAGER";
|
|
77
|
+
readonly DOMAIN_AUCTIONS: "DOMAIN_AUCTIONS";
|
|
78
|
+
readonly CRYPTO_PAYMENT_METHOD: "CRYPTO_PAYMENT_METHOD";
|
|
79
|
+
readonly QUADERNO_TAXES: "QUADERNO_TAXES";
|
|
80
|
+
readonly ACCOUNT_ALIAS_LINK: "ACCOUNT_ALIAS_LINK";
|
|
81
|
+
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
82
|
+
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
83
|
+
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
84
|
+
};
|
|
85
|
+
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfFeatureFlagListItemDto(value: object): value is FeatureFlagListItemDto;
|
|
90
|
+
export declare function FeatureFlagListItemDtoFromJSON(json: any): FeatureFlagListItemDto;
|
|
91
|
+
export declare function FeatureFlagListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureFlagListItemDto;
|
|
92
|
+
export declare function FeatureFlagListItemDtoToJSON(json: any): FeatureFlagListItemDto;
|
|
93
|
+
export declare function FeatureFlagListItemDtoToJSONTyped(value?: FeatureFlagListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,100 @@
|
|
|
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.FeatureFlagListItemDtoNameEnum = void 0;
|
|
17
|
+
exports.instanceOfFeatureFlagListItemDto = instanceOfFeatureFlagListItemDto;
|
|
18
|
+
exports.FeatureFlagListItemDtoFromJSON = FeatureFlagListItemDtoFromJSON;
|
|
19
|
+
exports.FeatureFlagListItemDtoFromJSONTyped = FeatureFlagListItemDtoFromJSONTyped;
|
|
20
|
+
exports.FeatureFlagListItemDtoToJSON = FeatureFlagListItemDtoToJSON;
|
|
21
|
+
exports.FeatureFlagListItemDtoToJSONTyped = FeatureFlagListItemDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.FeatureFlagListItemDtoNameEnum = {
|
|
26
|
+
LEASE_TO_OWN: 'LEASE_TO_OWN',
|
|
27
|
+
RENT: 'RENT',
|
|
28
|
+
SEO_METRICS: 'SEO_METRICS',
|
|
29
|
+
BANK_PAYOUTS: 'BANK_PAYOUTS',
|
|
30
|
+
ZERO_COMMISSION: 'ZERO_COMMISSION',
|
|
31
|
+
COMMISSION_7_5: 'COMMISSION_7_5',
|
|
32
|
+
LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
|
|
33
|
+
AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
|
|
34
|
+
DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
|
|
35
|
+
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
|
|
36
|
+
SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
|
|
37
|
+
NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
|
|
38
|
+
DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
|
|
39
|
+
CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
|
|
40
|
+
QUADERNO_TAXES: 'QUADERNO_TAXES',
|
|
41
|
+
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
42
|
+
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
43
|
+
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
44
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
48
|
+
*/
|
|
49
|
+
function instanceOfFeatureFlagListItemDto(value) {
|
|
50
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('whitelistedAccounts' in value) || value['whitelistedAccounts'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('blacklistedAccounts' in value) || value['blacklistedAccounts'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('availabilityStart' in value) || value['availabilityStart'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('availabilityEnd' in value) || value['availabilityEnd'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
function FeatureFlagListItemDtoFromJSON(json) {
|
|
67
|
+
return FeatureFlagListItemDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function FeatureFlagListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': json['id'],
|
|
75
|
+
'name': json['name'],
|
|
76
|
+
'enabled': json['enabled'],
|
|
77
|
+
'whitelistedAccounts': json['whitelistedAccounts'] == null ? null : json['whitelistedAccounts'],
|
|
78
|
+
'blacklistedAccounts': json['blacklistedAccounts'] == null ? null : json['blacklistedAccounts'],
|
|
79
|
+
'availabilityStart': (new Date(json['availabilityStart'])),
|
|
80
|
+
'availabilityEnd': (json['availabilityEnd'] == null ? null : new Date(json['availabilityEnd'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function FeatureFlagListItemDtoToJSON(json) {
|
|
84
|
+
return FeatureFlagListItemDtoToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
function FeatureFlagListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
87
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
'id': value['id'],
|
|
93
|
+
'name': value['name'],
|
|
94
|
+
'enabled': value['enabled'],
|
|
95
|
+
'whitelistedAccounts': value['whitelistedAccounts'],
|
|
96
|
+
'blacklistedAccounts': value['blacklistedAccounts'],
|
|
97
|
+
'availabilityStart': ((value['availabilityStart']).toISOString()),
|
|
98
|
+
'availabilityEnd': (value['availabilityEnd'] == null ? null : value['availabilityEnd'].toISOString()),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { FeatureFlagListItemDto } from './FeatureFlagListItemDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetAllFeatureFlags200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface GetAllFeatureFlags200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<FeatureFlagListItemDto>}
|
|
24
|
+
* @memberof GetAllFeatureFlags200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<FeatureFlagListItemDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof GetAllFeatureFlags200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof GetAllFeatureFlags200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetAllFeatureFlags200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetAllFeatureFlags200Response(value: object): value is GetAllFeatureFlags200Response;
|
|
44
|
+
export declare function GetAllFeatureFlags200ResponseFromJSON(json: any): GetAllFeatureFlags200Response;
|
|
45
|
+
export declare function GetAllFeatureFlags200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllFeatureFlags200Response;
|
|
46
|
+
export declare function GetAllFeatureFlags200ResponseToJSON(json: any): GetAllFeatureFlags200Response;
|
|
47
|
+
export declare function GetAllFeatureFlags200ResponseToJSONTyped(value?: GetAllFeatureFlags200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfGetAllFeatureFlags200Response = instanceOfGetAllFeatureFlags200Response;
|
|
17
|
+
exports.GetAllFeatureFlags200ResponseFromJSON = GetAllFeatureFlags200ResponseFromJSON;
|
|
18
|
+
exports.GetAllFeatureFlags200ResponseFromJSONTyped = GetAllFeatureFlags200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetAllFeatureFlags200ResponseToJSON = GetAllFeatureFlags200ResponseToJSON;
|
|
20
|
+
exports.GetAllFeatureFlags200ResponseToJSONTyped = GetAllFeatureFlags200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var FeatureFlagListItemDto_1 = require("./FeatureFlagListItemDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetAllFeatureFlags200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetAllFeatureFlags200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetAllFeatureFlags200ResponseFromJSON(json) {
|
|
37
|
+
return GetAllFeatureFlags200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetAllFeatureFlags200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(FeatureFlagListItemDto_1.FeatureFlagListItemDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetAllFeatureFlags200ResponseToJSON(json) {
|
|
50
|
+
return GetAllFeatureFlags200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetAllFeatureFlags200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(FeatureFlagListItemDto_1.FeatureFlagListItemDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -63,6 +63,12 @@ export interface ListAccountMetricsDto {
|
|
|
63
63
|
* @memberof ListAccountMetricsDto
|
|
64
64
|
*/
|
|
65
65
|
pointingDomainsNumber: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ListAccountMetricsDto
|
|
70
|
+
*/
|
|
71
|
+
pendingChallengesToCollectNumber: number;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* Check if a given object implements the ListAccountMetricsDto interface.
|
|
@@ -38,6 +38,8 @@ function instanceOfListAccountMetricsDto(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('pendingChallengesToCollectNumber' in value) || value['pendingChallengesToCollectNumber'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
return true;
|
|
42
44
|
}
|
|
43
45
|
function ListAccountMetricsDtoFromJSON(json) {
|
|
@@ -56,6 +58,7 @@ function ListAccountMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'soldDomainsNumber': json['soldDomainsNumber'],
|
|
57
59
|
'referralsNumber': json['referralsNumber'],
|
|
58
60
|
'pointingDomainsNumber': json['pointingDomainsNumber'],
|
|
61
|
+
'pendingChallengesToCollectNumber': json['pendingChallengesToCollectNumber'],
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
function ListAccountMetricsDtoToJSON(json) {
|
|
@@ -75,5 +78,6 @@ function ListAccountMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
78
|
'soldDomainsNumber': value['soldDomainsNumber'],
|
|
76
79
|
'referralsNumber': value['referralsNumber'],
|
|
77
80
|
'pointingDomainsNumber': value['pointingDomainsNumber'],
|
|
81
|
+
'pendingChallengesToCollectNumber': value['pendingChallengesToCollectNumber'],
|
|
78
82
|
};
|
|
79
83
|
}
|
|
@@ -67,6 +67,12 @@ export interface OrderListItemDto {
|
|
|
67
67
|
* @memberof OrderListItemDto
|
|
68
68
|
*/
|
|
69
69
|
basePrice: MoneyDto | null;
|
|
70
|
+
/**
|
|
71
|
+
* The order base price converted to EUR
|
|
72
|
+
* @type {MoneyDto}
|
|
73
|
+
* @memberof OrderListItemDto
|
|
74
|
+
*/
|
|
75
|
+
basePriceEur: MoneyDto | null;
|
|
70
76
|
/**
|
|
71
77
|
* The order lead ID
|
|
72
78
|
* @type {object}
|
|
@@ -52,6 +52,8 @@ function instanceOfOrderListItemDto(value) {
|
|
|
52
52
|
return false;
|
|
53
53
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
54
54
|
return false;
|
|
55
|
+
if (!('basePriceEur' in value) || value['basePriceEur'] === undefined)
|
|
56
|
+
return false;
|
|
55
57
|
if (!('leadId' in value) || value['leadId'] === undefined)
|
|
56
58
|
return false;
|
|
57
59
|
if (!('auctionId' in value) || value['auctionId'] === undefined)
|
|
@@ -76,6 +78,7 @@ function OrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
78
|
'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
77
79
|
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
|
|
78
80
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
81
|
+
'basePriceEur': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePriceEur']),
|
|
79
82
|
'leadId': json['leadId'],
|
|
80
83
|
'auctionId': json['auctionId'],
|
|
81
84
|
'domainTransferId': json['domainTransferId'],
|
|
@@ -98,6 +101,7 @@ function OrderListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
98
101
|
'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
99
102
|
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
|
|
100
103
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
104
|
+
'basePriceEur': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePriceEur']),
|
|
101
105
|
'leadId': value['leadId'],
|
|
102
106
|
'auctionId': value['auctionId'],
|
|
103
107
|
'domainTransferId': value['domainTransferId'],
|
|
@@ -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 UpdateFeatureFlagInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateFeatureFlagInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UpdateFeatureFlagInput
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof UpdateFeatureFlagInput
|
|
28
|
+
*/
|
|
29
|
+
whitelistedAccounts?: Array<string> | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof UpdateFeatureFlagInput
|
|
34
|
+
*/
|
|
35
|
+
blacklistedAccounts?: Array<string> | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UpdateFeatureFlagInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUpdateFeatureFlagInput(value: object): value is UpdateFeatureFlagInput;
|
|
41
|
+
export declare function UpdateFeatureFlagInputFromJSON(json: any): UpdateFeatureFlagInput;
|
|
42
|
+
export declare function UpdateFeatureFlagInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFeatureFlagInput;
|
|
43
|
+
export declare function UpdateFeatureFlagInputToJSON(json: any): UpdateFeatureFlagInput;
|
|
44
|
+
export declare function UpdateFeatureFlagInputToJSONTyped(value?: UpdateFeatureFlagInput | null, ignoreDiscriminator?: boolean): any;
|