@randock/nameshift-api-client 0.0.391 → 0.0.393

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.393
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.393 --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
+ 35c115e10490a14f5890d9c147334841e45e0a8c112fe4f8f4d9de3542966aa3d42531466936f2493b733640e4ce3565
@@ -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
  }
@@ -179,6 +182,9 @@ export interface AdminApiSyncAccountStatsRequest {
179
182
  export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
180
183
  accountId: string;
181
184
  }
185
+ export interface AdminApiSyncOwnedDomainFromRegistryRequest {
186
+ id: string;
187
+ }
182
188
  export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
183
189
  accountId: string;
184
190
  updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
@@ -405,6 +411,14 @@ export declare class AdminApi extends runtime.BaseAPI {
405
411
  *
406
412
  */
407
413
  getCompanyStats(requestParameters?: AdminApiGetCompanyStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminCompanyStatsDto>;
414
+ /**
415
+ *
416
+ */
417
+ getDomainStatsRaw(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainStatsDto>>;
418
+ /**
419
+ *
420
+ */
421
+ getDomainStats(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainStatsDto>;
408
422
  /**
409
423
  *
410
424
  */
@@ -557,6 +571,14 @@ export declare class AdminApi extends runtime.BaseAPI {
557
571
  *
558
572
  */
559
573
  syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
574
+ /**
575
+ *
576
+ */
577
+ syncOwnedDomainFromRegistryRaw(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
578
+ /**
579
+ *
580
+ */
581
+ syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
560
582
  /**
561
583
  *
562
584
  */
@@ -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
  */
@@ -2524,6 +2577,57 @@ var AdminApi = /** @class */ (function (_super) {
2524
2577
  });
2525
2578
  });
2526
2579
  };
2580
+ /**
2581
+ *
2582
+ */
2583
+ AdminApi.prototype.syncOwnedDomainFromRegistryRaw = function (requestParameters, initOverrides) {
2584
+ return __awaiter(this, void 0, void 0, function () {
2585
+ var queryParameters, headerParameters, token, tokenString, response;
2586
+ return __generator(this, function (_a) {
2587
+ switch (_a.label) {
2588
+ case 0:
2589
+ if (requestParameters['id'] == null) {
2590
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling syncOwnedDomainFromRegistry().');
2591
+ }
2592
+ queryParameters = {};
2593
+ headerParameters = {};
2594
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2595
+ token = this.configuration.accessToken;
2596
+ return [4 /*yield*/, token("bearer", [])];
2597
+ case 1:
2598
+ tokenString = _a.sent();
2599
+ if (tokenString) {
2600
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2601
+ }
2602
+ _a.label = 2;
2603
+ case 2: return [4 /*yield*/, this.request({
2604
+ path: "/admin/owned-domains/{id}/sync-from-registry".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id']))),
2605
+ method: 'POST',
2606
+ headers: headerParameters,
2607
+ query: queryParameters,
2608
+ }, initOverrides)];
2609
+ case 3:
2610
+ response = _a.sent();
2611
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
2612
+ }
2613
+ });
2614
+ });
2615
+ };
2616
+ /**
2617
+ *
2618
+ */
2619
+ AdminApi.prototype.syncOwnedDomainFromRegistry = function (requestParameters, initOverrides) {
2620
+ return __awaiter(this, void 0, void 0, function () {
2621
+ return __generator(this, function (_a) {
2622
+ switch (_a.label) {
2623
+ case 0: return [4 /*yield*/, this.syncOwnedDomainFromRegistryRaw(requestParameters, initOverrides)];
2624
+ case 1:
2625
+ _a.sent();
2626
+ return [2 /*return*/];
2627
+ }
2628
+ });
2629
+ });
2630
+ };
2527
2631
  /**
2528
2632
  *
2529
2633
  */
@@ -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.393",
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
  }
@@ -353,6 +360,10 @@ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
353
360
  accountId: string;
354
361
  }
355
362
 
363
+ export interface AdminApiSyncOwnedDomainFromRegistryRequest {
364
+ id: string;
365
+ }
366
+
356
367
  export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
357
368
  accountId: string;
358
369
  updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
@@ -1484,6 +1495,47 @@ export class AdminApi extends runtime.BaseAPI {
1484
1495
  return await response.value();
1485
1496
  }
1486
1497
 
1498
+ /**
1499
+ *
1500
+ */
1501
+ async getDomainStatsRaw(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainStatsDto>> {
1502
+ if (requestParameters['domainName'] == null) {
1503
+ throw new runtime.RequiredError(
1504
+ 'domainName',
1505
+ 'Required parameter "domainName" was null or undefined when calling getDomainStats().'
1506
+ );
1507
+ }
1508
+
1509
+ const queryParameters: any = {};
1510
+
1511
+ const headerParameters: runtime.HTTPHeaders = {};
1512
+
1513
+ if (this.configuration && this.configuration.accessToken) {
1514
+ const token = this.configuration.accessToken;
1515
+ const tokenString = await token("bearer", []);
1516
+
1517
+ if (tokenString) {
1518
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1519
+ }
1520
+ }
1521
+ const response = await this.request({
1522
+ path: `/admin/domains/by-name/{domainName}/stats`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
1523
+ method: 'GET',
1524
+ headers: headerParameters,
1525
+ query: queryParameters,
1526
+ }, initOverrides);
1527
+
1528
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainStatsDtoFromJSON(jsonValue));
1529
+ }
1530
+
1531
+ /**
1532
+ *
1533
+ */
1534
+ async getDomainStats(requestParameters: AdminApiGetDomainStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainStatsDto> {
1535
+ const response = await this.getDomainStatsRaw(requestParameters, initOverrides);
1536
+ return await response.value();
1537
+ }
1538
+
1487
1539
  /**
1488
1540
  *
1489
1541
  */
@@ -2333,6 +2385,46 @@ export class AdminApi extends runtime.BaseAPI {
2333
2385
  await this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
2334
2386
  }
2335
2387
 
2388
+ /**
2389
+ *
2390
+ */
2391
+ async syncOwnedDomainFromRegistryRaw(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2392
+ if (requestParameters['id'] == null) {
2393
+ throw new runtime.RequiredError(
2394
+ 'id',
2395
+ 'Required parameter "id" was null or undefined when calling syncOwnedDomainFromRegistry().'
2396
+ );
2397
+ }
2398
+
2399
+ const queryParameters: any = {};
2400
+
2401
+ const headerParameters: runtime.HTTPHeaders = {};
2402
+
2403
+ if (this.configuration && this.configuration.accessToken) {
2404
+ const token = this.configuration.accessToken;
2405
+ const tokenString = await token("bearer", []);
2406
+
2407
+ if (tokenString) {
2408
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2409
+ }
2410
+ }
2411
+ const response = await this.request({
2412
+ path: `/admin/owned-domains/{id}/sync-from-registry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
2413
+ method: 'POST',
2414
+ headers: headerParameters,
2415
+ query: queryParameters,
2416
+ }, initOverrides);
2417
+
2418
+ return new runtime.VoidApiResponse(response);
2419
+ }
2420
+
2421
+ /**
2422
+ *
2423
+ */
2424
+ async syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2425
+ await this.syncOwnedDomainFromRegistryRaw(requestParameters, initOverrides);
2426
+ }
2427
+
2336
2428
  /**
2337
2429
  *
2338
2430
  */
@@ -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