@randock/nameshift-api-client 0.0.384 → 0.0.385
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/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/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.385
|
|
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.385 --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
|
+
a8b83b577ecbfe74123991b67e9a91ec3d56e613b072734726b4c01bdec6ab6e5766daf024cedc8470eceb6180c44475
|
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
|
}
|
|
@@ -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;
|
|
@@ -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.instanceOfUpdateFeatureFlagInput = instanceOfUpdateFeatureFlagInput;
|
|
17
|
+
exports.UpdateFeatureFlagInputFromJSON = UpdateFeatureFlagInputFromJSON;
|
|
18
|
+
exports.UpdateFeatureFlagInputFromJSONTyped = UpdateFeatureFlagInputFromJSONTyped;
|
|
19
|
+
exports.UpdateFeatureFlagInputToJSON = UpdateFeatureFlagInputToJSON;
|
|
20
|
+
exports.UpdateFeatureFlagInputToJSONTyped = UpdateFeatureFlagInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateFeatureFlagInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateFeatureFlagInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateFeatureFlagInputFromJSON(json) {
|
|
28
|
+
return UpdateFeatureFlagInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateFeatureFlagInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
'whitelistedAccounts': json['whitelistedAccounts'] == null ? undefined : json['whitelistedAccounts'],
|
|
37
|
+
'blacklistedAccounts': json['blacklistedAccounts'] == null ? undefined : json['blacklistedAccounts'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateFeatureFlagInputToJSON(json) {
|
|
41
|
+
return UpdateFeatureFlagInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateFeatureFlagInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'enabled': value['enabled'],
|
|
50
|
+
'whitelistedAccounts': value['whitelistedAccounts'],
|
|
51
|
+
'blacklistedAccounts': value['blacklistedAccounts'],
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -197,6 +197,7 @@ export * from './DomainTransferWorkflowDto';
|
|
|
197
197
|
export * from './DomainUrlDto';
|
|
198
198
|
export * from './DomainVerificationStatusDto';
|
|
199
199
|
export * from './EppBatchUpdateInput';
|
|
200
|
+
export * from './FeatureFlagListItemDto';
|
|
200
201
|
export * from './FixedCommissionPayloadDto';
|
|
201
202
|
export * from './FixedCommissionPayloadInput';
|
|
202
203
|
export * from './FixedCommissionReasonPayloadDto';
|
|
@@ -207,6 +208,7 @@ export * from './GetAllAffiliateCommissions200Response';
|
|
|
207
208
|
export * from './GetAllAuctions200Response';
|
|
208
209
|
export * from './GetAllAuctions200Response1';
|
|
209
210
|
export * from './GetAllDomainTransfers200Response';
|
|
211
|
+
export * from './GetAllFeatureFlags200Response';
|
|
210
212
|
export * from './GetAllInvoices200Response';
|
|
211
213
|
export * from './GetAllOrders200Response';
|
|
212
214
|
export * from './GetAllOwnedDomains200Response';
|
|
@@ -421,6 +423,7 @@ export * from './UpdateChallengeInput';
|
|
|
421
423
|
export * from './UpdateDomainInput';
|
|
422
424
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
423
425
|
export * from './UpdateDomainTransferIpsTagInput';
|
|
426
|
+
export * from './UpdateFeatureFlagInput';
|
|
424
427
|
export * from './UpdateLeadInput';
|
|
425
428
|
export * from './UpdateLeadMuteStatusForBuyerInput';
|
|
426
429
|
export * from './UpdateLeadMuteStatusInput';
|
package/dist/models/index.js
CHANGED
|
@@ -215,6 +215,7 @@ __exportStar(require("./DomainTransferWorkflowDto"), exports);
|
|
|
215
215
|
__exportStar(require("./DomainUrlDto"), exports);
|
|
216
216
|
__exportStar(require("./DomainVerificationStatusDto"), exports);
|
|
217
217
|
__exportStar(require("./EppBatchUpdateInput"), exports);
|
|
218
|
+
__exportStar(require("./FeatureFlagListItemDto"), exports);
|
|
218
219
|
__exportStar(require("./FixedCommissionPayloadDto"), exports);
|
|
219
220
|
__exportStar(require("./FixedCommissionPayloadInput"), exports);
|
|
220
221
|
__exportStar(require("./FixedCommissionReasonPayloadDto"), exports);
|
|
@@ -225,6 +226,7 @@ __exportStar(require("./GetAllAffiliateCommissions200Response"), exports);
|
|
|
225
226
|
__exportStar(require("./GetAllAuctions200Response"), exports);
|
|
226
227
|
__exportStar(require("./GetAllAuctions200Response1"), exports);
|
|
227
228
|
__exportStar(require("./GetAllDomainTransfers200Response"), exports);
|
|
229
|
+
__exportStar(require("./GetAllFeatureFlags200Response"), exports);
|
|
228
230
|
__exportStar(require("./GetAllInvoices200Response"), exports);
|
|
229
231
|
__exportStar(require("./GetAllOrders200Response"), exports);
|
|
230
232
|
__exportStar(require("./GetAllOwnedDomains200Response"), exports);
|
|
@@ -439,6 +441,7 @@ __exportStar(require("./UpdateChallengeInput"), exports);
|
|
|
439
441
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
440
442
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
441
443
|
__exportStar(require("./UpdateDomainTransferIpsTagInput"), exports);
|
|
444
|
+
__exportStar(require("./UpdateFeatureFlagInput"), exports);
|
|
442
445
|
__exportStar(require("./UpdateLeadInput"), exports);
|
|
443
446
|
__exportStar(require("./UpdateLeadMuteStatusForBuyerInput"), exports);
|
|
444
447
|
__exportStar(require("./UpdateLeadMuteStatusInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -36,6 +36,7 @@ import type {
|
|
|
36
36
|
DomainTransferDetailsDto,
|
|
37
37
|
GetAccountChallengeRewardUsagesListDto,
|
|
38
38
|
GetAllAuctions200Response,
|
|
39
|
+
GetAllFeatureFlags200Response,
|
|
39
40
|
GetAllInvoices200Response,
|
|
40
41
|
GetAllOrders200Response,
|
|
41
42
|
GetAllOwnedDomains200Response,
|
|
@@ -52,6 +53,7 @@ import type {
|
|
|
52
53
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
|
|
53
54
|
SubscriptionDetailsDto,
|
|
54
55
|
UpdateChallengeInput,
|
|
56
|
+
UpdateFeatureFlagInput,
|
|
55
57
|
ValidationException,
|
|
56
58
|
} from '../models/index';
|
|
57
59
|
import {
|
|
@@ -97,6 +99,8 @@ import {
|
|
|
97
99
|
GetAccountChallengeRewardUsagesListDtoToJSON,
|
|
98
100
|
GetAllAuctions200ResponseFromJSON,
|
|
99
101
|
GetAllAuctions200ResponseToJSON,
|
|
102
|
+
GetAllFeatureFlags200ResponseFromJSON,
|
|
103
|
+
GetAllFeatureFlags200ResponseToJSON,
|
|
100
104
|
GetAllInvoices200ResponseFromJSON,
|
|
101
105
|
GetAllInvoices200ResponseToJSON,
|
|
102
106
|
GetAllOrders200ResponseFromJSON,
|
|
@@ -129,6 +133,8 @@ import {
|
|
|
129
133
|
SubscriptionDetailsDtoToJSON,
|
|
130
134
|
UpdateChallengeInputFromJSON,
|
|
131
135
|
UpdateChallengeInputToJSON,
|
|
136
|
+
UpdateFeatureFlagInputFromJSON,
|
|
137
|
+
UpdateFeatureFlagInputToJSON,
|
|
132
138
|
ValidationExceptionFromJSON,
|
|
133
139
|
ValidationExceptionToJSON,
|
|
134
140
|
} from '../models/index';
|
|
@@ -209,6 +215,13 @@ export interface AdminApiGetAllAuctionsRequest {
|
|
|
209
215
|
sortBy?: Array<string>;
|
|
210
216
|
}
|
|
211
217
|
|
|
218
|
+
export interface AdminApiGetAllFeatureFlagsRequest {
|
|
219
|
+
filter?: object;
|
|
220
|
+
page?: number;
|
|
221
|
+
limit?: number;
|
|
222
|
+
sortBy?: Array<string>;
|
|
223
|
+
}
|
|
224
|
+
|
|
212
225
|
export interface AdminApiGetAllInvoicesRequest {
|
|
213
226
|
filter?: object;
|
|
214
227
|
page?: number;
|
|
@@ -335,6 +348,11 @@ export interface AdminApiUpdateChallengeRequest {
|
|
|
335
348
|
updateChallengeInput: UpdateChallengeInput;
|
|
336
349
|
}
|
|
337
350
|
|
|
351
|
+
export interface AdminApiUpdateFeatureFlagRequest {
|
|
352
|
+
featureFlagId: string;
|
|
353
|
+
updateFeatureFlagInput: UpdateFeatureFlagInput;
|
|
354
|
+
}
|
|
355
|
+
|
|
338
356
|
export interface AdminApiVerifyAccountAliasRequest {
|
|
339
357
|
accountId: string;
|
|
340
358
|
}
|
|
@@ -1078,6 +1096,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1078
1096
|
return await response.value();
|
|
1079
1097
|
}
|
|
1080
1098
|
|
|
1099
|
+
/**
|
|
1100
|
+
*
|
|
1101
|
+
*/
|
|
1102
|
+
async getAllFeatureFlagsRaw(requestParameters: AdminApiGetAllFeatureFlagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllFeatureFlags200Response>> {
|
|
1103
|
+
const queryParameters: any = {};
|
|
1104
|
+
|
|
1105
|
+
if (requestParameters['filter'] != null) {
|
|
1106
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
if (requestParameters['page'] != null) {
|
|
1110
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
if (requestParameters['limit'] != null) {
|
|
1114
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
if (requestParameters['sortBy'] != null) {
|
|
1118
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1122
|
+
|
|
1123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1124
|
+
const token = this.configuration.accessToken;
|
|
1125
|
+
const tokenString = await token("bearer", []);
|
|
1126
|
+
|
|
1127
|
+
if (tokenString) {
|
|
1128
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
const response = await this.request({
|
|
1132
|
+
path: `/admin/feature-flags`,
|
|
1133
|
+
method: 'GET',
|
|
1134
|
+
headers: headerParameters,
|
|
1135
|
+
query: queryParameters,
|
|
1136
|
+
}, initOverrides);
|
|
1137
|
+
|
|
1138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAllFeatureFlags200ResponseFromJSON(jsonValue));
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
*
|
|
1143
|
+
*/
|
|
1144
|
+
async getAllFeatureFlags(requestParameters: AdminApiGetAllFeatureFlagsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllFeatureFlags200Response> {
|
|
1145
|
+
const response = await this.getAllFeatureFlagsRaw(requestParameters, initOverrides);
|
|
1146
|
+
return await response.value();
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1081
1149
|
/**
|
|
1082
1150
|
*
|
|
1083
1151
|
*/
|
|
@@ -2225,6 +2293,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2225
2293
|
await this.updateChallengeRaw(requestParameters, initOverrides);
|
|
2226
2294
|
}
|
|
2227
2295
|
|
|
2296
|
+
/**
|
|
2297
|
+
*
|
|
2298
|
+
*/
|
|
2299
|
+
async updateFeatureFlagRaw(requestParameters: AdminApiUpdateFeatureFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2300
|
+
if (requestParameters['featureFlagId'] == null) {
|
|
2301
|
+
throw new runtime.RequiredError(
|
|
2302
|
+
'featureFlagId',
|
|
2303
|
+
'Required parameter "featureFlagId" was null or undefined when calling updateFeatureFlag().'
|
|
2304
|
+
);
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
if (requestParameters['updateFeatureFlagInput'] == null) {
|
|
2308
|
+
throw new runtime.RequiredError(
|
|
2309
|
+
'updateFeatureFlagInput',
|
|
2310
|
+
'Required parameter "updateFeatureFlagInput" was null or undefined when calling updateFeatureFlag().'
|
|
2311
|
+
);
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
const queryParameters: any = {};
|
|
2315
|
+
|
|
2316
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2317
|
+
|
|
2318
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2319
|
+
|
|
2320
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2321
|
+
const token = this.configuration.accessToken;
|
|
2322
|
+
const tokenString = await token("bearer", []);
|
|
2323
|
+
|
|
2324
|
+
if (tokenString) {
|
|
2325
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
const response = await this.request({
|
|
2329
|
+
path: `/admin/feature-flags/{featureFlagId}`.replace(`{${"featureFlagId"}}`, encodeURIComponent(String(requestParameters['featureFlagId']))),
|
|
2330
|
+
method: 'PATCH',
|
|
2331
|
+
headers: headerParameters,
|
|
2332
|
+
query: queryParameters,
|
|
2333
|
+
body: UpdateFeatureFlagInputToJSON(requestParameters['updateFeatureFlagInput']),
|
|
2334
|
+
}, initOverrides);
|
|
2335
|
+
|
|
2336
|
+
return new runtime.VoidApiResponse(response);
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
*
|
|
2341
|
+
*/
|
|
2342
|
+
async updateFeatureFlag(requestParameters: AdminApiUpdateFeatureFlagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2343
|
+
await this.updateFeatureFlagRaw(requestParameters, initOverrides);
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2228
2346
|
/**
|
|
2229
2347
|
*
|
|
2230
2348
|
*/
|
|
@@ -0,0 +1,148 @@
|
|
|
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 FeatureFlagListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface FeatureFlagListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof FeatureFlagListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FeatureFlagListItemDto
|
|
32
|
+
*/
|
|
33
|
+
name: FeatureFlagListItemDtoNameEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof FeatureFlagListItemDto
|
|
38
|
+
*/
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof FeatureFlagListItemDto
|
|
44
|
+
*/
|
|
45
|
+
whitelistedAccounts: Array<string> | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof FeatureFlagListItemDto
|
|
50
|
+
*/
|
|
51
|
+
blacklistedAccounts: Array<string> | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof FeatureFlagListItemDto
|
|
56
|
+
*/
|
|
57
|
+
availabilityStart: Date;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof FeatureFlagListItemDto
|
|
62
|
+
*/
|
|
63
|
+
availabilityEnd: Date | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const FeatureFlagListItemDtoNameEnum = {
|
|
71
|
+
LEASE_TO_OWN: 'LEASE_TO_OWN',
|
|
72
|
+
RENT: 'RENT',
|
|
73
|
+
SEO_METRICS: 'SEO_METRICS',
|
|
74
|
+
BANK_PAYOUTS: 'BANK_PAYOUTS',
|
|
75
|
+
ZERO_COMMISSION: 'ZERO_COMMISSION',
|
|
76
|
+
COMMISSION_7_5: 'COMMISSION_7_5',
|
|
77
|
+
LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
|
|
78
|
+
AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
|
|
79
|
+
DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
|
|
80
|
+
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
|
|
81
|
+
SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
|
|
82
|
+
NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
|
|
83
|
+
DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
|
|
84
|
+
CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
|
|
85
|
+
QUADERNO_TAXES: 'QUADERNO_TAXES',
|
|
86
|
+
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
87
|
+
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
88
|
+
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
89
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
90
|
+
} as const;
|
|
91
|
+
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfFeatureFlagListItemDto(value: object): value is FeatureFlagListItemDto {
|
|
98
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
99
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
100
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
101
|
+
if (!('whitelistedAccounts' in value) || value['whitelistedAccounts'] === undefined) return false;
|
|
102
|
+
if (!('blacklistedAccounts' in value) || value['blacklistedAccounts'] === undefined) return false;
|
|
103
|
+
if (!('availabilityStart' in value) || value['availabilityStart'] === undefined) return false;
|
|
104
|
+
if (!('availabilityEnd' in value) || value['availabilityEnd'] === undefined) return false;
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function FeatureFlagListItemDtoFromJSON(json: any): FeatureFlagListItemDto {
|
|
109
|
+
return FeatureFlagListItemDtoFromJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function FeatureFlagListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureFlagListItemDto {
|
|
113
|
+
if (json == null) {
|
|
114
|
+
return json;
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'id': json['id'],
|
|
119
|
+
'name': json['name'],
|
|
120
|
+
'enabled': json['enabled'],
|
|
121
|
+
'whitelistedAccounts': json['whitelistedAccounts'] == null ? null : json['whitelistedAccounts'],
|
|
122
|
+
'blacklistedAccounts': json['blacklistedAccounts'] == null ? null : json['blacklistedAccounts'],
|
|
123
|
+
'availabilityStart': (new Date(json['availabilityStart'])),
|
|
124
|
+
'availabilityEnd': (json['availabilityEnd'] == null ? null : new Date(json['availabilityEnd'])),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function FeatureFlagListItemDtoToJSON(json: any): FeatureFlagListItemDto {
|
|
129
|
+
return FeatureFlagListItemDtoToJSONTyped(json, false);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function FeatureFlagListItemDtoToJSONTyped(value?: FeatureFlagListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
133
|
+
if (value == null) {
|
|
134
|
+
return value;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return {
|
|
138
|
+
|
|
139
|
+
'id': value['id'],
|
|
140
|
+
'name': value['name'],
|
|
141
|
+
'enabled': value['enabled'],
|
|
142
|
+
'whitelistedAccounts': value['whitelistedAccounts'],
|
|
143
|
+
'blacklistedAccounts': value['blacklistedAccounts'],
|
|
144
|
+
'availabilityStart': ((value['availabilityStart']).toISOString()),
|
|
145
|
+
'availabilityEnd': (value['availabilityEnd'] == null ? null : (value['availabilityEnd'] as any).toISOString()),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { FeatureFlagListItemDto } from './FeatureFlagListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
FeatureFlagListItemDtoFromJSON,
|
|
26
|
+
FeatureFlagListItemDtoFromJSONTyped,
|
|
27
|
+
FeatureFlagListItemDtoToJSON,
|
|
28
|
+
FeatureFlagListItemDtoToJSONTyped,
|
|
29
|
+
} from './FeatureFlagListItemDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetAllFeatureFlags200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface GetAllFeatureFlags200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<FeatureFlagListItemDto>}
|
|
47
|
+
* @memberof GetAllFeatureFlags200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<FeatureFlagListItemDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetAllFeatureFlags200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetAllFeatureFlags200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetAllFeatureFlags200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetAllFeatureFlags200Response(value: object): value is GetAllFeatureFlags200Response {
|
|
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 GetAllFeatureFlags200ResponseFromJSON(json: any): GetAllFeatureFlags200Response {
|
|
75
|
+
return GetAllFeatureFlags200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetAllFeatureFlags200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllFeatureFlags200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(FeatureFlagListItemDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetAllFeatureFlags200ResponseToJSON(json: any): GetAllFeatureFlags200Response {
|
|
91
|
+
return GetAllFeatureFlags200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetAllFeatureFlags200ResponseToJSONTyped(value?: GetAllFeatureFlags200Response | 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(FeatureFlagListItemDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -67,6 +67,12 @@ export interface ListAccountMetricsDto {
|
|
|
67
67
|
* @memberof ListAccountMetricsDto
|
|
68
68
|
*/
|
|
69
69
|
pointingDomainsNumber: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ListAccountMetricsDto
|
|
74
|
+
*/
|
|
75
|
+
pendingChallengesToCollectNumber: number;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
/**
|
|
@@ -81,6 +87,7 @@ export function instanceOfListAccountMetricsDto(value: object): value is ListAcc
|
|
|
81
87
|
if (!('soldDomainsNumber' in value) || value['soldDomainsNumber'] === undefined) return false;
|
|
82
88
|
if (!('referralsNumber' in value) || value['referralsNumber'] === undefined) return false;
|
|
83
89
|
if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined) return false;
|
|
90
|
+
if (!('pendingChallengesToCollectNumber' in value) || value['pendingChallengesToCollectNumber'] === undefined) return false;
|
|
84
91
|
return true;
|
|
85
92
|
}
|
|
86
93
|
|
|
@@ -102,6 +109,7 @@ export function ListAccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
102
109
|
'soldDomainsNumber': json['soldDomainsNumber'],
|
|
103
110
|
'referralsNumber': json['referralsNumber'],
|
|
104
111
|
'pointingDomainsNumber': json['pointingDomainsNumber'],
|
|
112
|
+
'pendingChallengesToCollectNumber': json['pendingChallengesToCollectNumber'],
|
|
105
113
|
};
|
|
106
114
|
}
|
|
107
115
|
|
|
@@ -124,6 +132,7 @@ export function ListAccountMetricsDtoToJSONTyped(value?: ListAccountMetricsDto |
|
|
|
124
132
|
'soldDomainsNumber': value['soldDomainsNumber'],
|
|
125
133
|
'referralsNumber': value['referralsNumber'],
|
|
126
134
|
'pointingDomainsNumber': value['pointingDomainsNumber'],
|
|
135
|
+
'pendingChallengesToCollectNumber': value['pendingChallengesToCollectNumber'],
|
|
127
136
|
};
|
|
128
137
|
}
|
|
129
138
|
|
|
@@ -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 UpdateFeatureFlagInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateFeatureFlagInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateFeatureFlagInput
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof UpdateFeatureFlagInput
|
|
32
|
+
*/
|
|
33
|
+
whitelistedAccounts?: Array<string> | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof UpdateFeatureFlagInput
|
|
38
|
+
*/
|
|
39
|
+
blacklistedAccounts?: Array<string> | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateFeatureFlagInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateFeatureFlagInput(value: object): value is UpdateFeatureFlagInput {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UpdateFeatureFlagInputFromJSON(json: any): UpdateFeatureFlagInput {
|
|
50
|
+
return UpdateFeatureFlagInputFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdateFeatureFlagInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFeatureFlagInput {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
60
|
+
'whitelistedAccounts': json['whitelistedAccounts'] == null ? undefined : json['whitelistedAccounts'],
|
|
61
|
+
'blacklistedAccounts': json['blacklistedAccounts'] == null ? undefined : json['blacklistedAccounts'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function UpdateFeatureFlagInputToJSON(json: any): UpdateFeatureFlagInput {
|
|
66
|
+
return UpdateFeatureFlagInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateFeatureFlagInputToJSONTyped(value?: UpdateFeatureFlagInput | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'enabled': value['enabled'],
|
|
77
|
+
'whitelistedAccounts': value['whitelistedAccounts'],
|
|
78
|
+
'blacklistedAccounts': value['blacklistedAccounts'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -199,6 +199,7 @@ export * from './DomainTransferWorkflowDto';
|
|
|
199
199
|
export * from './DomainUrlDto';
|
|
200
200
|
export * from './DomainVerificationStatusDto';
|
|
201
201
|
export * from './EppBatchUpdateInput';
|
|
202
|
+
export * from './FeatureFlagListItemDto';
|
|
202
203
|
export * from './FixedCommissionPayloadDto';
|
|
203
204
|
export * from './FixedCommissionPayloadInput';
|
|
204
205
|
export * from './FixedCommissionReasonPayloadDto';
|
|
@@ -209,6 +210,7 @@ export * from './GetAllAffiliateCommissions200Response';
|
|
|
209
210
|
export * from './GetAllAuctions200Response';
|
|
210
211
|
export * from './GetAllAuctions200Response1';
|
|
211
212
|
export * from './GetAllDomainTransfers200Response';
|
|
213
|
+
export * from './GetAllFeatureFlags200Response';
|
|
212
214
|
export * from './GetAllInvoices200Response';
|
|
213
215
|
export * from './GetAllOrders200Response';
|
|
214
216
|
export * from './GetAllOwnedDomains200Response';
|
|
@@ -423,6 +425,7 @@ export * from './UpdateChallengeInput';
|
|
|
423
425
|
export * from './UpdateDomainInput';
|
|
424
426
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
425
427
|
export * from './UpdateDomainTransferIpsTagInput';
|
|
428
|
+
export * from './UpdateFeatureFlagInput';
|
|
426
429
|
export * from './UpdateLeadInput';
|
|
427
430
|
export * from './UpdateLeadMuteStatusForBuyerInput';
|
|
428
431
|
export * from './UpdateLeadMuteStatusInput';
|