@randock/nameshift-api-client 0.0.391 → 0.0.392

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.391
1
+ ## @randock/nameshift-api-client@0.0.392
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.391 --save
39
+ npm install @randock/nameshift-api-client@0.0.392 --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
- a6a5cb195c553c99861689cc42d8a88e46c3389f243a1807427ff7715524f1e336a3bf2b8b0224a6d759a385e90ae956
47
+ 4265f6934a143d4b70d649d8df17528f48b2019cfffebd08c4fc6719c83064a23f91d5c052a382fafcd4a09eb1bcda28
@@ -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, 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, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -109,6 +109,9 @@ export interface AdminApiGetAllSubscriptionsRequest {
109
109
  export interface AdminApiGetCompanyStatsRequest {
110
110
  dateRange?: any | null;
111
111
  }
112
+ export interface AdminApiGetDomainStatsRequest {
113
+ domainName: string;
114
+ }
112
115
  export interface AdminApiGetLedgerMutationAttachmentRequest {
113
116
  attachmentId: string;
114
117
  }
@@ -405,6 +408,14 @@ export declare class AdminApi extends runtime.BaseAPI {
405
408
  *
406
409
  */
407
410
  getCompanyStats(requestParameters?: AdminApiGetCompanyStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminCompanyStatsDto>;
411
+ /**
412
+ *
413
+ */
414
+ getDomainStatsRaw(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainStatsDto>>;
415
+ /**
416
+ *
417
+ */
418
+ getDomainStats(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainStatsDto>;
408
419
  /**
409
420
  *
410
421
  */
@@ -1473,6 +1473,59 @@ var AdminApi = /** @class */ (function (_super) {
1473
1473
  });
1474
1474
  });
1475
1475
  };
1476
+ /**
1477
+ *
1478
+ */
1479
+ AdminApi.prototype.getDomainStatsRaw = function (requestParameters, initOverrides) {
1480
+ return __awaiter(this, void 0, void 0, function () {
1481
+ var queryParameters, headerParameters, token, tokenString, response;
1482
+ return __generator(this, function (_a) {
1483
+ switch (_a.label) {
1484
+ case 0:
1485
+ if (requestParameters['domainName'] == null) {
1486
+ throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainStats().');
1487
+ }
1488
+ queryParameters = {};
1489
+ headerParameters = {};
1490
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1491
+ token = this.configuration.accessToken;
1492
+ return [4 /*yield*/, token("bearer", [])];
1493
+ case 1:
1494
+ tokenString = _a.sent();
1495
+ if (tokenString) {
1496
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1497
+ }
1498
+ _a.label = 2;
1499
+ case 2: return [4 /*yield*/, this.request({
1500
+ path: "/admin/domains/by-name/{domainName}/stats".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
1501
+ method: 'GET',
1502
+ headers: headerParameters,
1503
+ query: queryParameters,
1504
+ }, initOverrides)];
1505
+ case 3:
1506
+ response = _a.sent();
1507
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainStatsDtoFromJSON)(jsonValue); })];
1508
+ }
1509
+ });
1510
+ });
1511
+ };
1512
+ /**
1513
+ *
1514
+ */
1515
+ AdminApi.prototype.getDomainStats = function (requestParameters, initOverrides) {
1516
+ return __awaiter(this, void 0, void 0, function () {
1517
+ var response;
1518
+ return __generator(this, function (_a) {
1519
+ switch (_a.label) {
1520
+ case 0: return [4 /*yield*/, this.getDomainStatsRaw(requestParameters, initOverrides)];
1521
+ case 1:
1522
+ response = _a.sent();
1523
+ return [4 /*yield*/, response.value()];
1524
+ case 2: return [2 /*return*/, _a.sent()];
1525
+ }
1526
+ });
1527
+ });
1528
+ };
1476
1529
  /**
1477
1530
  *
1478
1531
  */
@@ -82,6 +82,12 @@ export interface BuyerDomainTransferListItemDto {
82
82
  * @memberof BuyerDomainTransferListItemDto
83
83
  */
84
84
  invoiceNumber: string | null;
85
+ /**
86
+ *
87
+ * @type {boolean}
88
+ * @memberof BuyerDomainTransferListItemDto
89
+ */
90
+ canBeProforma: boolean;
85
91
  }
86
92
  /**
87
93
  * @export
@@ -66,6 +66,8 @@ function instanceOfBuyerDomainTransferListItemDto(value) {
66
66
  return false;
67
67
  if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined)
68
68
  return false;
69
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined)
70
+ return false;
69
71
  return true;
70
72
  }
71
73
  function BuyerDomainTransferListItemDtoFromJSON(json) {
@@ -87,6 +89,7 @@ function BuyerDomainTransferListItemDtoFromJSONTyped(json, ignoreDiscriminator)
87
89
  'ipsTag': json['ipsTag'],
88
90
  'isOfferExpired': json['isOfferExpired'],
89
91
  'invoiceNumber': json['invoiceNumber'],
92
+ 'canBeProforma': json['canBeProforma'],
90
93
  };
91
94
  }
92
95
  function BuyerDomainTransferListItemDtoToJSON(json) {
@@ -109,5 +112,6 @@ function BuyerDomainTransferListItemDtoToJSONTyped(value, ignoreDiscriminator) {
109
112
  'ipsTag': value['ipsTag'],
110
113
  'isOfferExpired': value['isOfferExpired'],
111
114
  'invoiceNumber': value['invoiceNumber'],
115
+ 'canBeProforma': value['canBeProforma'],
112
116
  };
113
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.391",
3
+ "version": "0.0.392",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -33,6 +33,7 @@ import type {
33
33
  ConflictException,
34
34
  CreateChallengeInput,
35
35
  DomainLockDto,
36
+ DomainStatsDto,
36
37
  DomainTransferDetailsDto,
37
38
  GetAccountChallengeRewardUsagesListDto,
38
39
  GetAllAuctions200Response,
@@ -94,6 +95,8 @@ import {
94
95
  CreateChallengeInputToJSON,
95
96
  DomainLockDtoFromJSON,
96
97
  DomainLockDtoToJSON,
98
+ DomainStatsDtoFromJSON,
99
+ DomainStatsDtoToJSON,
97
100
  DomainTransferDetailsDtoFromJSON,
98
101
  DomainTransferDetailsDtoToJSON,
99
102
  GetAccountChallengeRewardUsagesListDtoFromJSON,
@@ -265,6 +268,10 @@ export interface AdminApiGetCompanyStatsRequest {
265
268
  dateRange?: any | null;
266
269
  }
267
270
 
271
+ export interface AdminApiGetDomainStatsRequest {
272
+ domainName: string;
273
+ }
274
+
268
275
  export interface AdminApiGetLedgerMutationAttachmentRequest {
269
276
  attachmentId: string;
270
277
  }
@@ -1484,6 +1491,47 @@ export class AdminApi extends runtime.BaseAPI {
1484
1491
  return await response.value();
1485
1492
  }
1486
1493
 
1494
+ /**
1495
+ *
1496
+ */
1497
+ async getDomainStatsRaw(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainStatsDto>> {
1498
+ if (requestParameters['domainName'] == null) {
1499
+ throw new runtime.RequiredError(
1500
+ 'domainName',
1501
+ 'Required parameter "domainName" was null or undefined when calling getDomainStats().'
1502
+ );
1503
+ }
1504
+
1505
+ const queryParameters: any = {};
1506
+
1507
+ const headerParameters: runtime.HTTPHeaders = {};
1508
+
1509
+ if (this.configuration && this.configuration.accessToken) {
1510
+ const token = this.configuration.accessToken;
1511
+ const tokenString = await token("bearer", []);
1512
+
1513
+ if (tokenString) {
1514
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1515
+ }
1516
+ }
1517
+ const response = await this.request({
1518
+ path: `/admin/domains/by-name/{domainName}/stats`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
1519
+ method: 'GET',
1520
+ headers: headerParameters,
1521
+ query: queryParameters,
1522
+ }, initOverrides);
1523
+
1524
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainStatsDtoFromJSON(jsonValue));
1525
+ }
1526
+
1527
+ /**
1528
+ *
1529
+ */
1530
+ async getDomainStats(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainStatsDto> {
1531
+ const response = await this.getDomainStatsRaw(requestParameters, initOverrides);
1532
+ return await response.value();
1533
+ }
1534
+
1487
1535
  /**
1488
1536
  *
1489
1537
  */
@@ -93,6 +93,12 @@ export interface BuyerDomainTransferListItemDto {
93
93
  * @memberof BuyerDomainTransferListItemDto
94
94
  */
95
95
  invoiceNumber: string | null;
96
+ /**
97
+ *
98
+ * @type {boolean}
99
+ * @memberof BuyerDomainTransferListItemDto
100
+ */
101
+ canBeProforma: boolean;
96
102
  }
97
103
 
98
104
 
@@ -136,6 +142,7 @@ export function instanceOfBuyerDomainTransferListItemDto(value: object): value i
136
142
  if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
137
143
  if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined) return false;
138
144
  if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined) return false;
145
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined) return false;
139
146
  return true;
140
147
  }
141
148
 
@@ -160,6 +167,7 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
160
167
  'ipsTag': json['ipsTag'],
161
168
  'isOfferExpired': json['isOfferExpired'],
162
169
  'invoiceNumber': json['invoiceNumber'],
170
+ 'canBeProforma': json['canBeProforma'],
163
171
  };
164
172
  }
165
173
 
@@ -185,6 +193,7 @@ export function BuyerDomainTransferListItemDtoToJSONTyped(value?: BuyerDomainTra
185
193
  'ipsTag': value['ipsTag'],
186
194
  'isOfferExpired': value['isOfferExpired'],
187
195
  'invoiceNumber': value['invoiceNumber'],
196
+ 'canBeProforma': value['canBeProforma'],
188
197
  };
189
198
  }
190
199