@randock/nameshift-api-client 0.0.407 → 0.0.409

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.
@@ -405,6 +405,7 @@ src/models/SellerInvoiceSellerAccountDto.ts
405
405
  src/models/SellerLeadDetails.ts
406
406
  src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts
407
407
  src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts
408
+ src/models/SellerSalesByTldStatsItemDto.ts
408
409
  src/models/SellerSalesCountStatsItemDto.ts
409
410
  src/models/SellerScaleChallengeListItemDto.ts
410
411
  src/models/SellerSecurityUserAccountDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.407
1
+ ## @randock/nameshift-api-client@0.0.409
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.407 --save
39
+ npm install @randock/nameshift-api-client@0.0.409 --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
- 0304ce0f5164c45e5fe34c00938ac8903109c99ee74e17684495d0e13cc4e6caa212561b14ba14d5bfe049bc46334e70
47
+ 3a21e74a97c748a824848f91596741d737684871b238e4c6b3d49da332de25fe897dff95c386acc4316629dd503d1c2e
@@ -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, DomainStatsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -70,6 +70,11 @@ export interface AdminApiGetAdminDashboardStatsRequest {
70
70
  export interface AdminApiGetAdminDomainTransferDetailsRequest {
71
71
  domainTransferId: string;
72
72
  }
73
+ export interface AdminApiGetAdminSalesByTldRequest {
74
+ currency: string;
75
+ accountId?: string;
76
+ dateRange?: any | null;
77
+ }
73
78
  export interface AdminApiGetAllAccountsSalesCountRequest {
74
79
  dateRange?: any | null;
75
80
  }
@@ -358,6 +363,14 @@ export declare class AdminApi extends runtime.BaseAPI {
358
363
  *
359
364
  */
360
365
  getAdminDomainTransferDetails(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferDetailsDto>;
366
+ /**
367
+ *
368
+ */
369
+ getAdminSalesByTldRaw(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>>;
370
+ /**
371
+ *
372
+ */
373
+ getAdminSalesByTld(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>>;
361
374
  /**
362
375
  *
363
376
  */
@@ -1038,6 +1038,68 @@ var AdminApi = /** @class */ (function (_super) {
1038
1038
  });
1039
1039
  });
1040
1040
  };
1041
+ /**
1042
+ *
1043
+ */
1044
+ AdminApi.prototype.getAdminSalesByTldRaw = function (requestParameters, initOverrides) {
1045
+ return __awaiter(this, void 0, void 0, function () {
1046
+ var queryParameters, headerParameters, token, tokenString, response;
1047
+ return __generator(this, function (_a) {
1048
+ switch (_a.label) {
1049
+ case 0:
1050
+ if (requestParameters['currency'] == null) {
1051
+ throw new runtime.RequiredError('currency', 'Required parameter "currency" was null or undefined when calling getAdminSalesByTld().');
1052
+ }
1053
+ queryParameters = {};
1054
+ if (requestParameters['currency'] != null) {
1055
+ queryParameters['currency'] = requestParameters['currency'];
1056
+ }
1057
+ if (requestParameters['accountId'] != null) {
1058
+ queryParameters['accountId'] = requestParameters['accountId'];
1059
+ }
1060
+ if (requestParameters['dateRange'] != null) {
1061
+ queryParameters['dateRange'] = requestParameters['dateRange'];
1062
+ }
1063
+ headerParameters = {};
1064
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1065
+ token = this.configuration.accessToken;
1066
+ return [4 /*yield*/, token("bearer", [])];
1067
+ case 1:
1068
+ tokenString = _a.sent();
1069
+ if (tokenString) {
1070
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1071
+ }
1072
+ _a.label = 2;
1073
+ case 2: return [4 /*yield*/, this.request({
1074
+ path: "/admin/stats/sales-by-tld",
1075
+ method: 'GET',
1076
+ headers: headerParameters,
1077
+ query: queryParameters,
1078
+ }, initOverrides)];
1079
+ case 3:
1080
+ response = _a.sent();
1081
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesByTldStatsItemDtoFromJSON); })];
1082
+ }
1083
+ });
1084
+ });
1085
+ };
1086
+ /**
1087
+ *
1088
+ */
1089
+ AdminApi.prototype.getAdminSalesByTld = function (requestParameters, initOverrides) {
1090
+ return __awaiter(this, void 0, void 0, function () {
1091
+ var response;
1092
+ return __generator(this, function (_a) {
1093
+ switch (_a.label) {
1094
+ case 0: return [4 /*yield*/, this.getAdminSalesByTldRaw(requestParameters, initOverrides)];
1095
+ case 1:
1096
+ response = _a.sent();
1097
+ return [4 /*yield*/, response.value()];
1098
+ case 2: return [2 /*return*/, _a.sent()];
1099
+ }
1100
+ });
1101
+ });
1102
+ };
1041
1103
  /**
1042
1104
  *
1043
1105
  */
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { SellerPendingPayoutsByCurrencyStatsItemDto, SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto, SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto } from '../models/index';
13
+ import type { SellerPendingPayoutsByCurrencyStatsItemDto, SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SellerTotalEarningsByCurrencyOverTimeStatsItemDto, SellerTotalEarningsByCurrencyStatsItemDto, SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto } from '../models/index';
14
+ export interface StatsApiGetSalesByTldRequest {
15
+ currency: string;
16
+ dateRange?: any | null;
17
+ }
14
18
  export interface StatsApiGetSalesCountRequest {
15
19
  dateRange?: any | null;
16
20
  }
@@ -40,6 +44,14 @@ export declare class StatsApi extends runtime.BaseAPI {
40
44
  *
41
45
  */
42
46
  getRemainingVsTotalLeaseToOwnByCurrency(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto>>;
47
+ /**
48
+ *
49
+ */
50
+ getSalesByTldRaw(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>>;
51
+ /**
52
+ *
53
+ */
54
+ getSalesByTld(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>>;
43
55
  /**
44
56
  *
45
57
  */
@@ -175,6 +175,65 @@ var StatsApi = /** @class */ (function (_super) {
175
175
  });
176
176
  });
177
177
  };
178
+ /**
179
+ *
180
+ */
181
+ StatsApi.prototype.getSalesByTldRaw = function (requestParameters, initOverrides) {
182
+ return __awaiter(this, void 0, void 0, function () {
183
+ var queryParameters, headerParameters, token, tokenString, response;
184
+ return __generator(this, function (_a) {
185
+ switch (_a.label) {
186
+ case 0:
187
+ if (requestParameters['currency'] == null) {
188
+ throw new runtime.RequiredError('currency', 'Required parameter "currency" was null or undefined when calling getSalesByTld().');
189
+ }
190
+ queryParameters = {};
191
+ if (requestParameters['currency'] != null) {
192
+ queryParameters['currency'] = requestParameters['currency'];
193
+ }
194
+ if (requestParameters['dateRange'] != null) {
195
+ queryParameters['dateRange'] = requestParameters['dateRange'];
196
+ }
197
+ headerParameters = {};
198
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
199
+ token = this.configuration.accessToken;
200
+ return [4 /*yield*/, token("bearer", [])];
201
+ case 1:
202
+ tokenString = _a.sent();
203
+ if (tokenString) {
204
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
205
+ }
206
+ _a.label = 2;
207
+ case 2: return [4 /*yield*/, this.request({
208
+ path: "/private/stats/sales-by-tld",
209
+ method: 'GET',
210
+ headers: headerParameters,
211
+ query: queryParameters,
212
+ }, initOverrides)];
213
+ case 3:
214
+ response = _a.sent();
215
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SellerSalesByTldStatsItemDtoFromJSON); })];
216
+ }
217
+ });
218
+ });
219
+ };
220
+ /**
221
+ *
222
+ */
223
+ StatsApi.prototype.getSalesByTld = function (requestParameters, initOverrides) {
224
+ return __awaiter(this, void 0, void 0, function () {
225
+ var response;
226
+ return __generator(this, function (_a) {
227
+ switch (_a.label) {
228
+ case 0: return [4 /*yield*/, this.getSalesByTldRaw(requestParameters, initOverrides)];
229
+ case 1:
230
+ response = _a.sent();
231
+ return [4 /*yield*/, response.value()];
232
+ case 2: return [2 /*return*/, _a.sent()];
233
+ }
234
+ });
235
+ });
236
+ };
178
237
  /**
179
238
  *
180
239
  */
@@ -15,6 +15,18 @@
15
15
  * @interface DomainTransferDetailWorkflowStepActionDto
16
16
  */
17
17
  export interface DomainTransferDetailWorkflowStepActionDto {
18
+ /**
19
+ * Whether the action is triggered manually or by the periodic scheduler
20
+ * @type {string}
21
+ * @memberof DomainTransferDetailWorkflowStepActionDto
22
+ */
23
+ invocationType: DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum;
24
+ /**
25
+ * For periodic actions, UTC instant when the periodic time gate becomes satisfied; null if not periodic or the gate is already open
26
+ * @type {Date}
27
+ * @memberof DomainTransferDetailWorkflowStepActionDto
28
+ */
29
+ nextAllowedInvocationAt: Date | null;
18
30
  /**
19
31
  * The domain transfer workflow step action name
20
32
  * @type {string}
@@ -28,6 +40,14 @@ export interface DomainTransferDetailWorkflowStepActionDto {
28
40
  */
29
41
  isAllowed: boolean;
30
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum: {
47
+ readonly MANUALLY: "manually";
48
+ readonly PERIODIC: "periodic";
49
+ };
50
+ export type DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum = typeof DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum[keyof typeof DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum];
31
51
  /**
32
52
  * Check if a given object implements the DomainTransferDetailWorkflowStepActionDto interface.
33
53
  */
@@ -13,15 +13,27 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum = void 0;
16
17
  exports.instanceOfDomainTransferDetailWorkflowStepActionDto = instanceOfDomainTransferDetailWorkflowStepActionDto;
17
18
  exports.DomainTransferDetailWorkflowStepActionDtoFromJSON = DomainTransferDetailWorkflowStepActionDtoFromJSON;
18
19
  exports.DomainTransferDetailWorkflowStepActionDtoFromJSONTyped = DomainTransferDetailWorkflowStepActionDtoFromJSONTyped;
19
20
  exports.DomainTransferDetailWorkflowStepActionDtoToJSON = DomainTransferDetailWorkflowStepActionDtoToJSON;
20
21
  exports.DomainTransferDetailWorkflowStepActionDtoToJSONTyped = DomainTransferDetailWorkflowStepActionDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum = {
26
+ MANUALLY: 'manually',
27
+ PERIODIC: 'periodic'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the DomainTransferDetailWorkflowStepActionDto interface.
23
31
  */
24
32
  function instanceOfDomainTransferDetailWorkflowStepActionDto(value) {
33
+ if (!('invocationType' in value) || value['invocationType'] === undefined)
34
+ return false;
35
+ if (!('nextAllowedInvocationAt' in value) || value['nextAllowedInvocationAt'] === undefined)
36
+ return false;
25
37
  if (!('name' in value) || value['name'] === undefined)
26
38
  return false;
27
39
  if (!('isAllowed' in value) || value['isAllowed'] === undefined)
@@ -36,6 +48,8 @@ function DomainTransferDetailWorkflowStepActionDtoFromJSONTyped(json, ignoreDisc
36
48
  return json;
37
49
  }
38
50
  return {
51
+ 'invocationType': json['invocationType'],
52
+ 'nextAllowedInvocationAt': (json['nextAllowedInvocationAt'] == null ? null : new Date(json['nextAllowedInvocationAt'])),
39
53
  'name': json['name'],
40
54
  'isAllowed': json['isAllowed'],
41
55
  };
@@ -49,6 +63,8 @@ function DomainTransferDetailWorkflowStepActionDtoToJSONTyped(value, ignoreDiscr
49
63
  return value;
50
64
  }
51
65
  return {
66
+ 'invocationType': value['invocationType'],
67
+ 'nextAllowedInvocationAt': (value['nextAllowedInvocationAt'] == null ? null : value['nextAllowedInvocationAt'].toISOString()),
52
68
  'name': value['name'],
53
69
  'isAllowed': value['isAllowed'],
54
70
  };
@@ -0,0 +1,56 @@
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 SellerSalesByTldStatsItemDto
16
+ */
17
+ export interface SellerSalesByTldStatsItemDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SellerSalesByTldStatsItemDto
22
+ */
23
+ tld: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SellerSalesByTldStatsItemDto
28
+ */
29
+ totalSales: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SellerSalesByTldStatsItemDto
34
+ */
35
+ avgSalePrice: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SellerSalesByTldStatsItemDto
40
+ */
41
+ totalSalesAmount: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SellerSalesByTldStatsItemDto
46
+ */
47
+ currency: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SellerSalesByTldStatsItemDto interface.
51
+ */
52
+ export declare function instanceOfSellerSalesByTldStatsItemDto(value: object): value is SellerSalesByTldStatsItemDto;
53
+ export declare function SellerSalesByTldStatsItemDtoFromJSON(json: any): SellerSalesByTldStatsItemDto;
54
+ export declare function SellerSalesByTldStatsItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSalesByTldStatsItemDto;
55
+ export declare function SellerSalesByTldStatsItemDtoToJSON(json: any): SellerSalesByTldStatsItemDto;
56
+ export declare function SellerSalesByTldStatsItemDtoToJSONTyped(value?: SellerSalesByTldStatsItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfSellerSalesByTldStatsItemDto = instanceOfSellerSalesByTldStatsItemDto;
17
+ exports.SellerSalesByTldStatsItemDtoFromJSON = SellerSalesByTldStatsItemDtoFromJSON;
18
+ exports.SellerSalesByTldStatsItemDtoFromJSONTyped = SellerSalesByTldStatsItemDtoFromJSONTyped;
19
+ exports.SellerSalesByTldStatsItemDtoToJSON = SellerSalesByTldStatsItemDtoToJSON;
20
+ exports.SellerSalesByTldStatsItemDtoToJSONTyped = SellerSalesByTldStatsItemDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SellerSalesByTldStatsItemDto interface.
23
+ */
24
+ function instanceOfSellerSalesByTldStatsItemDto(value) {
25
+ if (!('tld' in value) || value['tld'] === undefined)
26
+ return false;
27
+ if (!('totalSales' in value) || value['totalSales'] === undefined)
28
+ return false;
29
+ if (!('avgSalePrice' in value) || value['avgSalePrice'] === undefined)
30
+ return false;
31
+ if (!('totalSalesAmount' in value) || value['totalSalesAmount'] === undefined)
32
+ return false;
33
+ if (!('currency' in value) || value['currency'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function SellerSalesByTldStatsItemDtoFromJSON(json) {
38
+ return SellerSalesByTldStatsItemDtoFromJSONTyped(json, false);
39
+ }
40
+ function SellerSalesByTldStatsItemDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'tld': json['tld'],
46
+ 'totalSales': json['totalSales'],
47
+ 'avgSalePrice': json['avgSalePrice'],
48
+ 'totalSalesAmount': json['totalSalesAmount'],
49
+ 'currency': json['currency'],
50
+ };
51
+ }
52
+ function SellerSalesByTldStatsItemDtoToJSON(json) {
53
+ return SellerSalesByTldStatsItemDtoToJSONTyped(json, false);
54
+ }
55
+ function SellerSalesByTldStatsItemDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'tld': value['tld'],
62
+ 'totalSales': value['totalSales'],
63
+ 'avgSalePrice': value['avgSalePrice'],
64
+ 'totalSalesAmount': value['totalSalesAmount'],
65
+ 'currency': value['currency'],
66
+ };
67
+ }
@@ -369,6 +369,7 @@ export * from './SellerInvoiceSellerAccountDto';
369
369
  export * from './SellerLeadDetails';
370
370
  export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
371
371
  export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
372
+ export * from './SellerSalesByTldStatsItemDto';
372
373
  export * from './SellerSalesCountStatsItemDto';
373
374
  export * from './SellerScaleChallengeListItemDto';
374
375
  export * from './SellerSecurityUserAccountDto';
@@ -387,6 +387,7 @@ __exportStar(require("./SellerInvoiceSellerAccountDto"), exports);
387
387
  __exportStar(require("./SellerLeadDetails"), exports);
388
388
  __exportStar(require("./SellerPendingPayoutsByCurrencyStatsItemDto"), exports);
389
389
  __exportStar(require("./SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto"), exports);
390
+ __exportStar(require("./SellerSalesByTldStatsItemDto"), exports);
390
391
  __exportStar(require("./SellerSalesCountStatsItemDto"), exports);
391
392
  __exportStar(require("./SellerScaleChallengeListItemDto"), exports);
392
393
  __exportStar(require("./SellerSecurityUserAccountDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.407",
3
+ "version": "0.0.409",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -50,6 +50,7 @@ import type {
50
50
  ListDomains200Response,
51
51
  NotFoundException,
52
52
  ObjectId,
53
+ SellerSalesByTldStatsItemDto,
53
54
  SellerSalesCountStatsItemDto,
54
55
  SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
55
56
  SubscriptionDetailsDto,
@@ -129,6 +130,8 @@ import {
129
130
  NotFoundExceptionToJSON,
130
131
  ObjectIdFromJSON,
131
132
  ObjectIdToJSON,
133
+ SellerSalesByTldStatsItemDtoFromJSON,
134
+ SellerSalesByTldStatsItemDtoToJSON,
132
135
  SellerSalesCountStatsItemDtoFromJSON,
133
136
  SellerSalesCountStatsItemDtoToJSON,
134
137
  SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON,
@@ -222,6 +225,12 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
222
225
  domainTransferId: string;
223
226
  }
224
227
 
228
+ export interface AdminApiGetAdminSalesByTldRequest {
229
+ currency: string;
230
+ accountId?: string;
231
+ dateRange?: any | null;
232
+ }
233
+
225
234
  export interface AdminApiGetAllAccountsSalesCountRequest {
226
235
  dateRange?: any | null;
227
236
  }
@@ -1163,6 +1172,59 @@ export class AdminApi extends runtime.BaseAPI {
1163
1172
  return await response.value();
1164
1173
  }
1165
1174
 
1175
+ /**
1176
+ *
1177
+ */
1178
+ async getAdminSalesByTldRaw(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>> {
1179
+ if (requestParameters['currency'] == null) {
1180
+ throw new runtime.RequiredError(
1181
+ 'currency',
1182
+ 'Required parameter "currency" was null or undefined when calling getAdminSalesByTld().'
1183
+ );
1184
+ }
1185
+
1186
+ const queryParameters: any = {};
1187
+
1188
+ if (requestParameters['currency'] != null) {
1189
+ queryParameters['currency'] = requestParameters['currency'];
1190
+ }
1191
+
1192
+ if (requestParameters['accountId'] != null) {
1193
+ queryParameters['accountId'] = requestParameters['accountId'];
1194
+ }
1195
+
1196
+ if (requestParameters['dateRange'] != null) {
1197
+ queryParameters['dateRange'] = requestParameters['dateRange'];
1198
+ }
1199
+
1200
+ const headerParameters: runtime.HTTPHeaders = {};
1201
+
1202
+ if (this.configuration && this.configuration.accessToken) {
1203
+ const token = this.configuration.accessToken;
1204
+ const tokenString = await token("bearer", []);
1205
+
1206
+ if (tokenString) {
1207
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1208
+ }
1209
+ }
1210
+ const response = await this.request({
1211
+ path: `/admin/stats/sales-by-tld`,
1212
+ method: 'GET',
1213
+ headers: headerParameters,
1214
+ query: queryParameters,
1215
+ }, initOverrides);
1216
+
1217
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SellerSalesByTldStatsItemDtoFromJSON));
1218
+ }
1219
+
1220
+ /**
1221
+ *
1222
+ */
1223
+ async getAdminSalesByTld(requestParameters: AdminApiGetAdminSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>> {
1224
+ const response = await this.getAdminSalesByTldRaw(requestParameters, initOverrides);
1225
+ return await response.value();
1226
+ }
1227
+
1166
1228
  /**
1167
1229
  *
1168
1230
  */
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  SellerPendingPayoutsByCurrencyStatsItemDto,
19
19
  SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto,
20
+ SellerSalesByTldStatsItemDto,
20
21
  SellerSalesCountStatsItemDto,
21
22
  SellerTotalEarningsByCurrencyOverTimeStatsItemDto,
22
23
  SellerTotalEarningsByCurrencyStatsItemDto,
@@ -28,6 +29,8 @@ import {
28
29
  SellerPendingPayoutsByCurrencyStatsItemDtoToJSON,
29
30
  SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoFromJSON,
30
31
  SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDtoToJSON,
32
+ SellerSalesByTldStatsItemDtoFromJSON,
33
+ SellerSalesByTldStatsItemDtoToJSON,
31
34
  SellerSalesCountStatsItemDtoFromJSON,
32
35
  SellerSalesCountStatsItemDtoToJSON,
33
36
  SellerTotalEarningsByCurrencyOverTimeStatsItemDtoFromJSON,
@@ -40,6 +43,11 @@ import {
40
43
  ValidationExceptionToJSON,
41
44
  } from '../models/index';
42
45
 
46
+ export interface StatsApiGetSalesByTldRequest {
47
+ currency: string;
48
+ dateRange?: any | null;
49
+ }
50
+
43
51
  export interface StatsApiGetSalesCountRequest {
44
52
  dateRange?: any | null;
45
53
  }
@@ -125,6 +133,55 @@ export class StatsApi extends runtime.BaseAPI {
125
133
  return await response.value();
126
134
  }
127
135
 
136
+ /**
137
+ *
138
+ */
139
+ async getSalesByTldRaw(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SellerSalesByTldStatsItemDto>>> {
140
+ if (requestParameters['currency'] == null) {
141
+ throw new runtime.RequiredError(
142
+ 'currency',
143
+ 'Required parameter "currency" was null or undefined when calling getSalesByTld().'
144
+ );
145
+ }
146
+
147
+ const queryParameters: any = {};
148
+
149
+ if (requestParameters['currency'] != null) {
150
+ queryParameters['currency'] = requestParameters['currency'];
151
+ }
152
+
153
+ if (requestParameters['dateRange'] != null) {
154
+ queryParameters['dateRange'] = requestParameters['dateRange'];
155
+ }
156
+
157
+ const headerParameters: runtime.HTTPHeaders = {};
158
+
159
+ if (this.configuration && this.configuration.accessToken) {
160
+ const token = this.configuration.accessToken;
161
+ const tokenString = await token("bearer", []);
162
+
163
+ if (tokenString) {
164
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
165
+ }
166
+ }
167
+ const response = await this.request({
168
+ path: `/private/stats/sales-by-tld`,
169
+ method: 'GET',
170
+ headers: headerParameters,
171
+ query: queryParameters,
172
+ }, initOverrides);
173
+
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SellerSalesByTldStatsItemDtoFromJSON));
175
+ }
176
+
177
+ /**
178
+ *
179
+ */
180
+ async getSalesByTld(requestParameters: StatsApiGetSalesByTldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesByTldStatsItemDto>> {
181
+ const response = await this.getSalesByTldRaw(requestParameters, initOverrides);
182
+ return await response.value();
183
+ }
184
+
128
185
  /**
129
186
  *
130
187
  */
@@ -19,6 +19,18 @@ import { mapValues } from '../runtime';
19
19
  * @interface DomainTransferDetailWorkflowStepActionDto
20
20
  */
21
21
  export interface DomainTransferDetailWorkflowStepActionDto {
22
+ /**
23
+ * Whether the action is triggered manually or by the periodic scheduler
24
+ * @type {string}
25
+ * @memberof DomainTransferDetailWorkflowStepActionDto
26
+ */
27
+ invocationType: DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum;
28
+ /**
29
+ * For periodic actions, UTC instant when the periodic time gate becomes satisfied; null if not periodic or the gate is already open
30
+ * @type {Date}
31
+ * @memberof DomainTransferDetailWorkflowStepActionDto
32
+ */
33
+ nextAllowedInvocationAt: Date | null;
22
34
  /**
23
35
  * The domain transfer workflow step action name
24
36
  * @type {string}
@@ -33,10 +45,23 @@ export interface DomainTransferDetailWorkflowStepActionDto {
33
45
  isAllowed: boolean;
34
46
  }
35
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum = {
53
+ MANUALLY: 'manually',
54
+ PERIODIC: 'periodic'
55
+ } as const;
56
+ export type DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum = typeof DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum[keyof typeof DomainTransferDetailWorkflowStepActionDtoInvocationTypeEnum];
57
+
58
+
36
59
  /**
37
60
  * Check if a given object implements the DomainTransferDetailWorkflowStepActionDto interface.
38
61
  */
39
62
  export function instanceOfDomainTransferDetailWorkflowStepActionDto(value: object): value is DomainTransferDetailWorkflowStepActionDto {
63
+ if (!('invocationType' in value) || value['invocationType'] === undefined) return false;
64
+ if (!('nextAllowedInvocationAt' in value) || value['nextAllowedInvocationAt'] === undefined) return false;
40
65
  if (!('name' in value) || value['name'] === undefined) return false;
41
66
  if (!('isAllowed' in value) || value['isAllowed'] === undefined) return false;
42
67
  return true;
@@ -52,6 +77,8 @@ export function DomainTransferDetailWorkflowStepActionDtoFromJSONTyped(json: any
52
77
  }
53
78
  return {
54
79
 
80
+ 'invocationType': json['invocationType'],
81
+ 'nextAllowedInvocationAt': (json['nextAllowedInvocationAt'] == null ? null : new Date(json['nextAllowedInvocationAt'])),
55
82
  'name': json['name'],
56
83
  'isAllowed': json['isAllowed'],
57
84
  };
@@ -68,6 +95,8 @@ export function DomainTransferDetailWorkflowStepActionDtoToJSONTyped(value?: Dom
68
95
 
69
96
  return {
70
97
 
98
+ 'invocationType': value['invocationType'],
99
+ 'nextAllowedInvocationAt': (value['nextAllowedInvocationAt'] == null ? null : (value['nextAllowedInvocationAt'] as any).toISOString()),
71
100
  'name': value['name'],
72
101
  'isAllowed': value['isAllowed'],
73
102
  };
@@ -0,0 +1,102 @@
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 SellerSalesByTldStatsItemDto
20
+ */
21
+ export interface SellerSalesByTldStatsItemDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SellerSalesByTldStatsItemDto
26
+ */
27
+ tld: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof SellerSalesByTldStatsItemDto
32
+ */
33
+ totalSales: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof SellerSalesByTldStatsItemDto
38
+ */
39
+ avgSalePrice: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof SellerSalesByTldStatsItemDto
44
+ */
45
+ totalSalesAmount: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof SellerSalesByTldStatsItemDto
50
+ */
51
+ currency: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the SellerSalesByTldStatsItemDto interface.
56
+ */
57
+ export function instanceOfSellerSalesByTldStatsItemDto(value: object): value is SellerSalesByTldStatsItemDto {
58
+ if (!('tld' in value) || value['tld'] === undefined) return false;
59
+ if (!('totalSales' in value) || value['totalSales'] === undefined) return false;
60
+ if (!('avgSalePrice' in value) || value['avgSalePrice'] === undefined) return false;
61
+ if (!('totalSalesAmount' in value) || value['totalSalesAmount'] === undefined) return false;
62
+ if (!('currency' in value) || value['currency'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function SellerSalesByTldStatsItemDtoFromJSON(json: any): SellerSalesByTldStatsItemDto {
67
+ return SellerSalesByTldStatsItemDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function SellerSalesByTldStatsItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSalesByTldStatsItemDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'tld': json['tld'],
77
+ 'totalSales': json['totalSales'],
78
+ 'avgSalePrice': json['avgSalePrice'],
79
+ 'totalSalesAmount': json['totalSalesAmount'],
80
+ 'currency': json['currency'],
81
+ };
82
+ }
83
+
84
+ export function SellerSalesByTldStatsItemDtoToJSON(json: any): SellerSalesByTldStatsItemDto {
85
+ return SellerSalesByTldStatsItemDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function SellerSalesByTldStatsItemDtoToJSONTyped(value?: SellerSalesByTldStatsItemDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'tld': value['tld'],
96
+ 'totalSales': value['totalSales'],
97
+ 'avgSalePrice': value['avgSalePrice'],
98
+ 'totalSalesAmount': value['totalSalesAmount'],
99
+ 'currency': value['currency'],
100
+ };
101
+ }
102
+
@@ -371,6 +371,7 @@ export * from './SellerInvoiceSellerAccountDto';
371
371
  export * from './SellerLeadDetails';
372
372
  export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
373
373
  export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
374
+ export * from './SellerSalesByTldStatsItemDto';
374
375
  export * from './SellerSalesCountStatsItemDto';
375
376
  export * from './SellerScaleChallengeListItemDto';
376
377
  export * from './SellerSecurityUserAccountDto';