@randock/nameshift-api-client 0.0.390 → 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.390
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.390 --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
- 5e0efeb441bea9bf99d6486c5fe7c76d30cc9dbd64911d2ffe1ba247905b915ff843978e72fd2b03dd5028be8ca2b103
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
  */
@@ -40,6 +40,12 @@ export interface BuyerDomainTransferListItemDto {
40
40
  * @memberof BuyerDomainTransferListItemDto
41
41
  */
42
42
  requirements: object;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof BuyerDomainTransferListItemDto
47
+ */
48
+ invoiceId: string;
43
49
  /**
44
50
  * The buyer domain transfer ID
45
51
  * @type {object}
@@ -70,6 +76,18 @@ export interface BuyerDomainTransferListItemDto {
70
76
  * @memberof BuyerDomainTransferListItemDto
71
77
  */
72
78
  isOfferExpired: boolean;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof BuyerDomainTransferListItemDto
83
+ */
84
+ invoiceNumber: string | null;
85
+ /**
86
+ *
87
+ * @type {boolean}
88
+ * @memberof BuyerDomainTransferListItemDto
89
+ */
90
+ canBeProforma: boolean;
73
91
  }
74
92
  /**
75
93
  * @export
@@ -52,6 +52,8 @@ function instanceOfBuyerDomainTransferListItemDto(value) {
52
52
  return false;
53
53
  if (!('requirements' in value) || value['requirements'] === undefined)
54
54
  return false;
55
+ if (!('invoiceId' in value) || value['invoiceId'] === undefined)
56
+ return false;
55
57
  if (!('domainTransferId' in value) || value['domainTransferId'] === undefined)
56
58
  return false;
57
59
  if (!('domain' in value) || value['domain'] === undefined)
@@ -62,6 +64,10 @@ function instanceOfBuyerDomainTransferListItemDto(value) {
62
64
  return false;
63
65
  if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined)
64
66
  return false;
67
+ if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined)
68
+ return false;
69
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined)
70
+ return false;
65
71
  return true;
66
72
  }
67
73
  function BuyerDomainTransferListItemDtoFromJSON(json) {
@@ -76,11 +82,14 @@ function BuyerDomainTransferListItemDtoFromJSONTyped(json, ignoreDiscriminator)
76
82
  'invoiceStatus': json['invoiceStatus'],
77
83
  'domainTransferStatus': json['domainTransferStatus'],
78
84
  'requirements': json['requirements'],
85
+ 'invoiceId': json['invoiceId'],
79
86
  'domainTransferId': json['domainTransferId'],
80
87
  'domain': (0, BuyerDomainTransferListItemDomainDto_1.BuyerDomainTransferListItemDomainDtoFromJSON)(json['domain']),
81
88
  'createdAt': (new Date(json['createdAt'])),
82
89
  'ipsTag': json['ipsTag'],
83
90
  'isOfferExpired': json['isOfferExpired'],
91
+ 'invoiceNumber': json['invoiceNumber'],
92
+ 'canBeProforma': json['canBeProforma'],
84
93
  };
85
94
  }
86
95
  function BuyerDomainTransferListItemDtoToJSON(json) {
@@ -96,10 +105,13 @@ function BuyerDomainTransferListItemDtoToJSONTyped(value, ignoreDiscriminator) {
96
105
  'invoiceStatus': value['invoiceStatus'],
97
106
  'domainTransferStatus': value['domainTransferStatus'],
98
107
  'requirements': value['requirements'],
108
+ 'invoiceId': value['invoiceId'],
99
109
  'domainTransferId': value['domainTransferId'],
100
110
  'domain': (0, BuyerDomainTransferListItemDomainDto_1.BuyerDomainTransferListItemDomainDtoToJSON)(value['domain']),
101
111
  'createdAt': ((value['createdAt']).toISOString()),
102
112
  'ipsTag': value['ipsTag'],
103
113
  'isOfferExpired': value['isOfferExpired'],
114
+ 'invoiceNumber': value['invoiceNumber'],
115
+ 'canBeProforma': value['canBeProforma'],
104
116
  };
105
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.390",
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
  */
@@ -51,6 +51,12 @@ export interface BuyerDomainTransferListItemDto {
51
51
  * @memberof BuyerDomainTransferListItemDto
52
52
  */
53
53
  requirements: object;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof BuyerDomainTransferListItemDto
58
+ */
59
+ invoiceId: string;
54
60
  /**
55
61
  * The buyer domain transfer ID
56
62
  * @type {object}
@@ -81,6 +87,18 @@ export interface BuyerDomainTransferListItemDto {
81
87
  * @memberof BuyerDomainTransferListItemDto
82
88
  */
83
89
  isOfferExpired: boolean;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof BuyerDomainTransferListItemDto
94
+ */
95
+ invoiceNumber: string | null;
96
+ /**
97
+ *
98
+ * @type {boolean}
99
+ * @memberof BuyerDomainTransferListItemDto
100
+ */
101
+ canBeProforma: boolean;
84
102
  }
85
103
 
86
104
 
@@ -117,11 +135,14 @@ export function instanceOfBuyerDomainTransferListItemDto(value: object): value i
117
135
  if (!('invoiceStatus' in value) || value['invoiceStatus'] === undefined) return false;
118
136
  if (!('domainTransferStatus' in value) || value['domainTransferStatus'] === undefined) return false;
119
137
  if (!('requirements' in value) || value['requirements'] === undefined) return false;
138
+ if (!('invoiceId' in value) || value['invoiceId'] === undefined) return false;
120
139
  if (!('domainTransferId' in value) || value['domainTransferId'] === undefined) return false;
121
140
  if (!('domain' in value) || value['domain'] === undefined) return false;
122
141
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
123
142
  if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
124
143
  if (!('isOfferExpired' in value) || value['isOfferExpired'] === undefined) return false;
144
+ if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined) return false;
145
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined) return false;
125
146
  return true;
126
147
  }
127
148
 
@@ -139,11 +160,14 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
139
160
  'invoiceStatus': json['invoiceStatus'],
140
161
  'domainTransferStatus': json['domainTransferStatus'],
141
162
  'requirements': json['requirements'],
163
+ 'invoiceId': json['invoiceId'],
142
164
  'domainTransferId': json['domainTransferId'],
143
165
  'domain': BuyerDomainTransferListItemDomainDtoFromJSON(json['domain']),
144
166
  'createdAt': (new Date(json['createdAt'])),
145
167
  'ipsTag': json['ipsTag'],
146
168
  'isOfferExpired': json['isOfferExpired'],
169
+ 'invoiceNumber': json['invoiceNumber'],
170
+ 'canBeProforma': json['canBeProforma'],
147
171
  };
148
172
  }
149
173
 
@@ -162,11 +186,14 @@ export function BuyerDomainTransferListItemDtoToJSONTyped(value?: BuyerDomainTra
162
186
  'invoiceStatus': value['invoiceStatus'],
163
187
  'domainTransferStatus': value['domainTransferStatus'],
164
188
  'requirements': value['requirements'],
189
+ 'invoiceId': value['invoiceId'],
165
190
  'domainTransferId': value['domainTransferId'],
166
191
  'domain': BuyerDomainTransferListItemDomainDtoToJSON(value['domain']),
167
192
  'createdAt': ((value['createdAt']).toISOString()),
168
193
  'ipsTag': value['ipsTag'],
169
194
  'isOfferExpired': value['isOfferExpired'],
195
+ 'invoiceNumber': value['invoiceNumber'],
196
+ 'canBeProforma': value['canBeProforma'],
170
197
  };
171
198
  }
172
199