@randock/nameshift-api-client 0.0.335 → 0.0.336

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.
@@ -78,6 +78,9 @@ src/models/AuctionBidMetricsDto.ts
78
78
  src/models/AuctionBuyerDto.ts
79
79
  src/models/AuctionBuyerWithTokenDto.ts
80
80
  src/models/AuctionDto.ts
81
+ src/models/AuctionListItemDto.ts
82
+ src/models/AuctionListItemDtoDomainInformation.ts
83
+ src/models/AuctionListItemDtoSellerAccount.ts
81
84
  src/models/BadRequestException.ts
82
85
  src/models/BatchDeleteBuyerLeadsInput.ts
83
86
  src/models/BatchImportPreviewDto.ts
@@ -164,6 +167,7 @@ src/models/DomainUrlDto.ts
164
167
  src/models/EppBatchUpdateInput.ts
165
168
  src/models/ForgotPasswordRequestInput.ts
166
169
  src/models/GetAllAffiliateCommissions200Response.ts
170
+ src/models/GetAllAuctions200Response.ts
167
171
  src/models/GetAllDomainTransfers200Response.ts
168
172
  src/models/GetAllInvoices200Response.ts
169
173
  src/models/GetAllOrders200Response.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.335
1
+ ## @randock/nameshift-api-client@0.0.336
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.335 --save
39
+ npm install @randock/nameshift-api-client@0.0.336 --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
- 3fa3cbe7495d824a05a4e6e50fa11bf71aa7061af3b37951d2a084a6c68602b86d1f78b70c1fa875122de2d7dff99d93
47
+ 5f3fa2441320299d8b72dd725d1fd5d46e2bb12b2d919a2e2e87b38c31d14256cf96f687632b8b1b4906c8f7e08e5fa3
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -43,6 +43,12 @@ export interface AdminApiGetAdminDomainTransferDetailsRequest {
43
43
  export interface AdminApiGetAllAccountsSalesCountRequest {
44
44
  dateRange?: any | null;
45
45
  }
46
+ export interface AdminApiGetAllAuctionsRequest {
47
+ filter?: object;
48
+ page?: number;
49
+ limit?: number;
50
+ sortBy?: Array<string>;
51
+ }
46
52
  export interface AdminApiGetAllInvoicesRequest {
47
53
  filter?: object;
48
54
  page?: number;
@@ -204,6 +210,14 @@ export declare class AdminApi extends runtime.BaseAPI {
204
210
  *
205
211
  */
206
212
  getAllAccountsSalesCount(requestParameters?: AdminApiGetAllAccountsSalesCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SellerSalesCountStatsItemDto>>;
213
+ /**
214
+ *
215
+ */
216
+ getAllAuctionsRaw(requestParameters: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response>>;
217
+ /**
218
+ *
219
+ */
220
+ getAllAuctions(requestParameters?: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response>;
207
221
  /**
208
222
  *
209
223
  */
@@ -569,6 +569,69 @@ var AdminApi = /** @class */ (function (_super) {
569
569
  });
570
570
  });
571
571
  };
572
+ /**
573
+ *
574
+ */
575
+ AdminApi.prototype.getAllAuctionsRaw = function (requestParameters, initOverrides) {
576
+ return __awaiter(this, void 0, void 0, function () {
577
+ var queryParameters, headerParameters, token, tokenString, response;
578
+ return __generator(this, function (_a) {
579
+ switch (_a.label) {
580
+ case 0:
581
+ queryParameters = {};
582
+ if (requestParameters['filter'] != null) {
583
+ queryParameters['filter'] = requestParameters['filter'];
584
+ }
585
+ if (requestParameters['page'] != null) {
586
+ queryParameters['page'] = requestParameters['page'];
587
+ }
588
+ if (requestParameters['limit'] != null) {
589
+ queryParameters['limit'] = requestParameters['limit'];
590
+ }
591
+ if (requestParameters['sortBy'] != null) {
592
+ queryParameters['sortBy'] = requestParameters['sortBy'];
593
+ }
594
+ headerParameters = {};
595
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
596
+ token = this.configuration.accessToken;
597
+ return [4 /*yield*/, token("bearer", [])];
598
+ case 1:
599
+ tokenString = _a.sent();
600
+ if (tokenString) {
601
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
602
+ }
603
+ _a.label = 2;
604
+ case 2: return [4 /*yield*/, this.request({
605
+ path: "/admin/auctions",
606
+ method: 'GET',
607
+ headers: headerParameters,
608
+ query: queryParameters,
609
+ }, initOverrides)];
610
+ case 3:
611
+ response = _a.sent();
612
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllAuctions200ResponseFromJSON)(jsonValue); })];
613
+ }
614
+ });
615
+ });
616
+ };
617
+ /**
618
+ *
619
+ */
620
+ AdminApi.prototype.getAllAuctions = function () {
621
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
622
+ var response;
623
+ if (requestParameters === void 0) { requestParameters = {}; }
624
+ return __generator(this, function (_a) {
625
+ switch (_a.label) {
626
+ case 0: return [4 /*yield*/, this.getAllAuctionsRaw(requestParameters, initOverrides)];
627
+ case 1:
628
+ response = _a.sent();
629
+ return [4 /*yield*/, response.value()];
630
+ case 2: return [2 /*return*/, _a.sent()];
631
+ }
632
+ });
633
+ });
634
+ };
572
635
  /**
573
636
  *
574
637
  */
@@ -0,0 +1,111 @@
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 { AuctionListItemDtoDomainInformation } from './AuctionListItemDtoDomainInformation';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ import type { AuctionListItemDtoSellerAccount } from './AuctionListItemDtoSellerAccount';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuctionListItemDto
19
+ */
20
+ export interface AuctionListItemDto {
21
+ /**
22
+ * Auction Id
23
+ * @type {string}
24
+ * @memberof AuctionListItemDto
25
+ */
26
+ id: string;
27
+ /**
28
+ * Auction status
29
+ * @type {string}
30
+ * @memberof AuctionListItemDto
31
+ */
32
+ status: AuctionListItemDtoStatusEnum;
33
+ /**
34
+ * Auction minimum bid
35
+ * @type {MoneyDto}
36
+ * @memberof AuctionListItemDto
37
+ */
38
+ minimumBid: MoneyDto;
39
+ /**
40
+ * Auction reserve price
41
+ * @type {MoneyDto}
42
+ * @memberof AuctionListItemDto
43
+ */
44
+ reservePrice: MoneyDto | null;
45
+ /**
46
+ * Auction highest bid
47
+ * @type {MoneyDto}
48
+ * @memberof AuctionListItemDto
49
+ */
50
+ highestBid: MoneyDto | null;
51
+ /**
52
+ * Auction start date
53
+ * @type {Date}
54
+ * @memberof AuctionListItemDto
55
+ */
56
+ startDate: Date;
57
+ /**
58
+ * Auction end date
59
+ * @type {Date}
60
+ * @memberof AuctionListItemDto
61
+ */
62
+ endDate: Date;
63
+ /**
64
+ * Auction finished at
65
+ * @type {Date}
66
+ * @memberof AuctionListItemDto
67
+ */
68
+ finishedAt: Date | null;
69
+ /**
70
+ * Auction creation date
71
+ * @type {Date}
72
+ * @memberof AuctionListItemDto
73
+ */
74
+ createdAt: Date;
75
+ /**
76
+ * Auction domain information
77
+ * @type {AuctionListItemDtoDomainInformation}
78
+ * @memberof AuctionListItemDto
79
+ */
80
+ domain: AuctionListItemDtoDomainInformation;
81
+ /**
82
+ * Auction seller account information
83
+ * @type {AuctionListItemDtoSellerAccount}
84
+ * @memberof AuctionListItemDto
85
+ */
86
+ sellerAccount: AuctionListItemDtoSellerAccount;
87
+ /**
88
+ * Auction number of bids
89
+ * @type {number}
90
+ * @memberof AuctionListItemDto
91
+ */
92
+ numberOfBids: number;
93
+ }
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const AuctionListItemDtoStatusEnum: {
98
+ readonly SCHEDULED: "scheduled";
99
+ readonly ACTIVE: "active";
100
+ readonly ENDED: "ended";
101
+ readonly FINISHED: "finished";
102
+ };
103
+ export type AuctionListItemDtoStatusEnum = typeof AuctionListItemDtoStatusEnum[keyof typeof AuctionListItemDtoStatusEnum];
104
+ /**
105
+ * Check if a given object implements the AuctionListItemDto interface.
106
+ */
107
+ export declare function instanceOfAuctionListItemDto(value: object): value is AuctionListItemDto;
108
+ export declare function AuctionListItemDtoFromJSON(json: any): AuctionListItemDto;
109
+ export declare function AuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDto;
110
+ export declare function AuctionListItemDtoToJSON(json: any): AuctionListItemDto;
111
+ export declare function AuctionListItemDtoToJSONTyped(value?: AuctionListItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,108 @@
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.AuctionListItemDtoStatusEnum = void 0;
17
+ exports.instanceOfAuctionListItemDto = instanceOfAuctionListItemDto;
18
+ exports.AuctionListItemDtoFromJSON = AuctionListItemDtoFromJSON;
19
+ exports.AuctionListItemDtoFromJSONTyped = AuctionListItemDtoFromJSONTyped;
20
+ exports.AuctionListItemDtoToJSON = AuctionListItemDtoToJSON;
21
+ exports.AuctionListItemDtoToJSONTyped = AuctionListItemDtoToJSONTyped;
22
+ var AuctionListItemDtoDomainInformation_1 = require("./AuctionListItemDtoDomainInformation");
23
+ var MoneyDto_1 = require("./MoneyDto");
24
+ var AuctionListItemDtoSellerAccount_1 = require("./AuctionListItemDtoSellerAccount");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.AuctionListItemDtoStatusEnum = {
29
+ SCHEDULED: 'scheduled',
30
+ ACTIVE: 'active',
31
+ ENDED: 'ended',
32
+ FINISHED: 'finished'
33
+ };
34
+ /**
35
+ * Check if a given object implements the AuctionListItemDto interface.
36
+ */
37
+ function instanceOfAuctionListItemDto(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('status' in value) || value['status'] === undefined)
41
+ return false;
42
+ if (!('minimumBid' in value) || value['minimumBid'] === undefined)
43
+ return false;
44
+ if (!('reservePrice' in value) || value['reservePrice'] === undefined)
45
+ return false;
46
+ if (!('highestBid' in value) || value['highestBid'] === undefined)
47
+ return false;
48
+ if (!('startDate' in value) || value['startDate'] === undefined)
49
+ return false;
50
+ if (!('endDate' in value) || value['endDate'] === undefined)
51
+ return false;
52
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined)
53
+ return false;
54
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
55
+ return false;
56
+ if (!('domain' in value) || value['domain'] === undefined)
57
+ return false;
58
+ if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
59
+ return false;
60
+ if (!('numberOfBids' in value) || value['numberOfBids'] === undefined)
61
+ return false;
62
+ return true;
63
+ }
64
+ function AuctionListItemDtoFromJSON(json) {
65
+ return AuctionListItemDtoFromJSONTyped(json, false);
66
+ }
67
+ function AuctionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+ 'id': json['id'],
73
+ 'status': json['status'],
74
+ 'minimumBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minimumBid']),
75
+ 'reservePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['reservePrice']),
76
+ 'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
77
+ 'startDate': (new Date(json['startDate'])),
78
+ 'endDate': (new Date(json['endDate'])),
79
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
80
+ 'createdAt': (new Date(json['createdAt'])),
81
+ 'domain': (0, AuctionListItemDtoDomainInformation_1.AuctionListItemDtoDomainInformationFromJSON)(json['domain']),
82
+ 'sellerAccount': (0, AuctionListItemDtoSellerAccount_1.AuctionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
83
+ 'numberOfBids': json['numberOfBids'],
84
+ };
85
+ }
86
+ function AuctionListItemDtoToJSON(json) {
87
+ return AuctionListItemDtoToJSONTyped(json, false);
88
+ }
89
+ function AuctionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
90
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+ return {
95
+ 'id': value['id'],
96
+ 'status': value['status'],
97
+ 'minimumBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['minimumBid']),
98
+ 'reservePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['reservePrice']),
99
+ 'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
100
+ 'startDate': ((value['startDate']).toISOString()),
101
+ 'endDate': ((value['endDate']).toISOString()),
102
+ 'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
103
+ 'createdAt': ((value['createdAt']).toISOString()),
104
+ 'domain': (0, AuctionListItemDtoDomainInformation_1.AuctionListItemDtoDomainInformationToJSON)(value['domain']),
105
+ 'sellerAccount': (0, AuctionListItemDtoSellerAccount_1.AuctionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
106
+ 'numberOfBids': value['numberOfBids'],
107
+ };
108
+ }
@@ -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 AuctionListItemDtoDomainInformation
16
+ */
17
+ export interface AuctionListItemDtoDomainInformation {
18
+ /**
19
+ * Domain TLD
20
+ * @type {string}
21
+ * @memberof AuctionListItemDtoDomainInformation
22
+ */
23
+ tld: string;
24
+ /**
25
+ * Domain name
26
+ * @type {string}
27
+ * @memberof AuctionListItemDtoDomainInformation
28
+ */
29
+ name: string;
30
+ /**
31
+ * Domain display name
32
+ * @type {string}
33
+ * @memberof AuctionListItemDtoDomainInformation
34
+ */
35
+ displayName: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AuctionListItemDtoDomainInformation interface.
39
+ */
40
+ export declare function instanceOfAuctionListItemDtoDomainInformation(value: object): value is AuctionListItemDtoDomainInformation;
41
+ export declare function AuctionListItemDtoDomainInformationFromJSON(json: any): AuctionListItemDtoDomainInformation;
42
+ export declare function AuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoDomainInformation;
43
+ export declare function AuctionListItemDtoDomainInformationToJSON(json: any): AuctionListItemDtoDomainInformation;
44
+ export declare function AuctionListItemDtoDomainInformationToJSONTyped(value?: AuctionListItemDtoDomainInformation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfAuctionListItemDtoDomainInformation = instanceOfAuctionListItemDtoDomainInformation;
17
+ exports.AuctionListItemDtoDomainInformationFromJSON = AuctionListItemDtoDomainInformationFromJSON;
18
+ exports.AuctionListItemDtoDomainInformationFromJSONTyped = AuctionListItemDtoDomainInformationFromJSONTyped;
19
+ exports.AuctionListItemDtoDomainInformationToJSON = AuctionListItemDtoDomainInformationToJSON;
20
+ exports.AuctionListItemDtoDomainInformationToJSONTyped = AuctionListItemDtoDomainInformationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuctionListItemDtoDomainInformation interface.
23
+ */
24
+ function instanceOfAuctionListItemDtoDomainInformation(value) {
25
+ if (!('tld' in value) || value['tld'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('displayName' in value) || value['displayName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AuctionListItemDtoDomainInformationFromJSON(json) {
34
+ return AuctionListItemDtoDomainInformationFromJSONTyped(json, false);
35
+ }
36
+ function AuctionListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'tld': json['tld'],
42
+ 'name': json['name'],
43
+ 'displayName': json['displayName'],
44
+ };
45
+ }
46
+ function AuctionListItemDtoDomainInformationToJSON(json) {
47
+ return AuctionListItemDtoDomainInformationToJSONTyped(json, false);
48
+ }
49
+ function AuctionListItemDtoDomainInformationToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'tld': value['tld'],
56
+ 'name': value['name'],
57
+ 'displayName': value['displayName'],
58
+ };
59
+ }
@@ -0,0 +1,50 @@
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 AuctionListItemDtoSellerAccount
16
+ */
17
+ export interface AuctionListItemDtoSellerAccount {
18
+ /**
19
+ * Account ID
20
+ * @type {string}
21
+ * @memberof AuctionListItemDtoSellerAccount
22
+ */
23
+ accountId: string;
24
+ /**
25
+ * Account identifier
26
+ * @type {string}
27
+ * @memberof AuctionListItemDtoSellerAccount
28
+ */
29
+ identifier: string;
30
+ /**
31
+ * Account name
32
+ * @type {string}
33
+ * @memberof AuctionListItemDtoSellerAccount
34
+ */
35
+ name: string | null;
36
+ /**
37
+ * Indicates if account is a business or not
38
+ * @type {boolean}
39
+ * @memberof AuctionListItemDtoSellerAccount
40
+ */
41
+ isBusiness: boolean | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AuctionListItemDtoSellerAccount interface.
45
+ */
46
+ export declare function instanceOfAuctionListItemDtoSellerAccount(value: object): value is AuctionListItemDtoSellerAccount;
47
+ export declare function AuctionListItemDtoSellerAccountFromJSON(json: any): AuctionListItemDtoSellerAccount;
48
+ export declare function AuctionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoSellerAccount;
49
+ export declare function AuctionListItemDtoSellerAccountToJSON(json: any): AuctionListItemDtoSellerAccount;
50
+ export declare function AuctionListItemDtoSellerAccountToJSONTyped(value?: AuctionListItemDtoSellerAccount | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfAuctionListItemDtoSellerAccount = instanceOfAuctionListItemDtoSellerAccount;
17
+ exports.AuctionListItemDtoSellerAccountFromJSON = AuctionListItemDtoSellerAccountFromJSON;
18
+ exports.AuctionListItemDtoSellerAccountFromJSONTyped = AuctionListItemDtoSellerAccountFromJSONTyped;
19
+ exports.AuctionListItemDtoSellerAccountToJSON = AuctionListItemDtoSellerAccountToJSON;
20
+ exports.AuctionListItemDtoSellerAccountToJSONTyped = AuctionListItemDtoSellerAccountToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuctionListItemDtoSellerAccount interface.
23
+ */
24
+ function instanceOfAuctionListItemDtoSellerAccount(value) {
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('identifier' in value) || value['identifier'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('isBusiness' in value) || value['isBusiness'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AuctionListItemDtoSellerAccountFromJSON(json) {
36
+ return AuctionListItemDtoSellerAccountFromJSONTyped(json, false);
37
+ }
38
+ function AuctionListItemDtoSellerAccountFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'accountId': json['accountId'],
44
+ 'identifier': json['identifier'],
45
+ 'name': json['name'],
46
+ 'isBusiness': json['isBusiness'],
47
+ };
48
+ }
49
+ function AuctionListItemDtoSellerAccountToJSON(json) {
50
+ return AuctionListItemDtoSellerAccountToJSONTyped(json, false);
51
+ }
52
+ function AuctionListItemDtoSellerAccountToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'accountId': value['accountId'],
59
+ 'identifier': value['identifier'],
60
+ 'name': value['name'],
61
+ 'isBusiness': value['isBusiness'],
62
+ };
63
+ }
@@ -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 { AuctionListItemDto } from './AuctionListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetAllAuctions200Response
19
+ */
20
+ export interface GetAllAuctions200Response {
21
+ /**
22
+ *
23
+ * @type {Array<AuctionListItemDto>}
24
+ * @memberof GetAllAuctions200Response
25
+ */
26
+ data: Array<AuctionListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetAllAuctions200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetAllAuctions200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetAllAuctions200Response interface.
42
+ */
43
+ export declare function instanceOfGetAllAuctions200Response(value: object): value is GetAllAuctions200Response;
44
+ export declare function GetAllAuctions200ResponseFromJSON(json: any): GetAllAuctions200Response;
45
+ export declare function GetAllAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAuctions200Response;
46
+ export declare function GetAllAuctions200ResponseToJSON(json: any): GetAllAuctions200Response;
47
+ export declare function GetAllAuctions200ResponseToJSONTyped(value?: GetAllAuctions200Response | 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.instanceOfGetAllAuctions200Response = instanceOfGetAllAuctions200Response;
17
+ exports.GetAllAuctions200ResponseFromJSON = GetAllAuctions200ResponseFromJSON;
18
+ exports.GetAllAuctions200ResponseFromJSONTyped = GetAllAuctions200ResponseFromJSONTyped;
19
+ exports.GetAllAuctions200ResponseToJSON = GetAllAuctions200ResponseToJSON;
20
+ exports.GetAllAuctions200ResponseToJSONTyped = GetAllAuctions200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var AuctionListItemDto_1 = require("./AuctionListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the GetAllAuctions200Response interface.
26
+ */
27
+ function instanceOfGetAllAuctions200Response(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 GetAllAuctions200ResponseFromJSON(json) {
37
+ return GetAllAuctions200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function GetAllAuctions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(AuctionListItemDto_1.AuctionListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function GetAllAuctions200ResponseToJSON(json) {
50
+ return GetAllAuctions200ResponseToJSONTyped(json, false);
51
+ }
52
+ function GetAllAuctions200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(AuctionListItemDto_1.AuctionListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -45,6 +45,9 @@ export * from './AuctionBidMetricsDto';
45
45
  export * from './AuctionBuyerDto';
46
46
  export * from './AuctionBuyerWithTokenDto';
47
47
  export * from './AuctionDto';
48
+ export * from './AuctionListItemDto';
49
+ export * from './AuctionListItemDtoDomainInformation';
50
+ export * from './AuctionListItemDtoSellerAccount';
48
51
  export * from './BadRequestException';
49
52
  export * from './BatchDeleteBuyerLeadsInput';
50
53
  export * from './BatchImportPreviewDto';
@@ -131,6 +134,7 @@ export * from './DomainUrlDto';
131
134
  export * from './EppBatchUpdateInput';
132
135
  export * from './ForgotPasswordRequestInput';
133
136
  export * from './GetAllAffiliateCommissions200Response';
137
+ export * from './GetAllAuctions200Response';
134
138
  export * from './GetAllDomainTransfers200Response';
135
139
  export * from './GetAllInvoices200Response';
136
140
  export * from './GetAllOrders200Response';
@@ -63,6 +63,9 @@ __exportStar(require("./AuctionBidMetricsDto"), exports);
63
63
  __exportStar(require("./AuctionBuyerDto"), exports);
64
64
  __exportStar(require("./AuctionBuyerWithTokenDto"), exports);
65
65
  __exportStar(require("./AuctionDto"), exports);
66
+ __exportStar(require("./AuctionListItemDto"), exports);
67
+ __exportStar(require("./AuctionListItemDtoDomainInformation"), exports);
68
+ __exportStar(require("./AuctionListItemDtoSellerAccount"), exports);
66
69
  __exportStar(require("./BadRequestException"), exports);
67
70
  __exportStar(require("./BatchDeleteBuyerLeadsInput"), exports);
68
71
  __exportStar(require("./BatchImportPreviewDto"), exports);
@@ -149,6 +152,7 @@ __exportStar(require("./DomainUrlDto"), exports);
149
152
  __exportStar(require("./EppBatchUpdateInput"), exports);
150
153
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
151
154
  __exportStar(require("./GetAllAffiliateCommissions200Response"), exports);
155
+ __exportStar(require("./GetAllAuctions200Response"), exports);
152
156
  __exportStar(require("./GetAllDomainTransfers200Response"), exports);
153
157
  __exportStar(require("./GetAllInvoices200Response"), exports);
154
158
  __exportStar(require("./GetAllOrders200Response"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.335",
3
+ "version": "0.0.336",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,6 +24,7 @@ import type {
24
24
  ChangeOrderStatusInput,
25
25
  ChangeSubscriptionStatusInput,
26
26
  DomainTransferDetailsDto,
27
+ GetAllAuctions200Response,
27
28
  GetAllInvoices200Response,
28
29
  GetAllOrders200Response,
29
30
  GetAllOwnedDomains200Response,
@@ -60,6 +61,8 @@ import {
60
61
  ChangeSubscriptionStatusInputToJSON,
61
62
  DomainTransferDetailsDtoFromJSON,
62
63
  DomainTransferDetailsDtoToJSON,
64
+ GetAllAuctions200ResponseFromJSON,
65
+ GetAllAuctions200ResponseToJSON,
63
66
  GetAllInvoices200ResponseFromJSON,
64
67
  GetAllInvoices200ResponseToJSON,
65
68
  GetAllOrders200ResponseFromJSON,
@@ -135,6 +138,13 @@ export interface AdminApiGetAllAccountsSalesCountRequest {
135
138
  dateRange?: any | null;
136
139
  }
137
140
 
141
+ export interface AdminApiGetAllAuctionsRequest {
142
+ filter?: object;
143
+ page?: number;
144
+ limit?: number;
145
+ sortBy?: Array<string>;
146
+ }
147
+
138
148
  export interface AdminApiGetAllInvoicesRequest {
139
149
  filter?: object;
140
150
  page?: number;
@@ -637,6 +647,56 @@ export class AdminApi extends runtime.BaseAPI {
637
647
  return await response.value();
638
648
  }
639
649
 
650
+ /**
651
+ *
652
+ */
653
+ async getAllAuctionsRaw(requestParameters: AdminApiGetAllAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAuctions200Response>> {
654
+ const queryParameters: any = {};
655
+
656
+ if (requestParameters['filter'] != null) {
657
+ queryParameters['filter'] = requestParameters['filter'];
658
+ }
659
+
660
+ if (requestParameters['page'] != null) {
661
+ queryParameters['page'] = requestParameters['page'];
662
+ }
663
+
664
+ if (requestParameters['limit'] != null) {
665
+ queryParameters['limit'] = requestParameters['limit'];
666
+ }
667
+
668
+ if (requestParameters['sortBy'] != null) {
669
+ queryParameters['sortBy'] = requestParameters['sortBy'];
670
+ }
671
+
672
+ const headerParameters: runtime.HTTPHeaders = {};
673
+
674
+ if (this.configuration && this.configuration.accessToken) {
675
+ const token = this.configuration.accessToken;
676
+ const tokenString = await token("bearer", []);
677
+
678
+ if (tokenString) {
679
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
680
+ }
681
+ }
682
+ const response = await this.request({
683
+ path: `/admin/auctions`,
684
+ method: 'GET',
685
+ headers: headerParameters,
686
+ query: queryParameters,
687
+ }, initOverrides);
688
+
689
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetAllAuctions200ResponseFromJSON(jsonValue));
690
+ }
691
+
692
+ /**
693
+ *
694
+ */
695
+ async getAllAuctions(requestParameters: AdminApiGetAllAuctionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAuctions200Response> {
696
+ const response = await this.getAllAuctionsRaw(requestParameters, initOverrides);
697
+ return await response.value();
698
+ }
699
+
640
700
  /**
641
701
  *
642
702
  */
@@ -0,0 +1,200 @@
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 { AuctionListItemDtoDomainInformation } from './AuctionListItemDtoDomainInformation';
17
+ import {
18
+ AuctionListItemDtoDomainInformationFromJSON,
19
+ AuctionListItemDtoDomainInformationFromJSONTyped,
20
+ AuctionListItemDtoDomainInformationToJSON,
21
+ AuctionListItemDtoDomainInformationToJSONTyped,
22
+ } from './AuctionListItemDtoDomainInformation';
23
+ import type { MoneyDto } from './MoneyDto';
24
+ import {
25
+ MoneyDtoFromJSON,
26
+ MoneyDtoFromJSONTyped,
27
+ MoneyDtoToJSON,
28
+ MoneyDtoToJSONTyped,
29
+ } from './MoneyDto';
30
+ import type { AuctionListItemDtoSellerAccount } from './AuctionListItemDtoSellerAccount';
31
+ import {
32
+ AuctionListItemDtoSellerAccountFromJSON,
33
+ AuctionListItemDtoSellerAccountFromJSONTyped,
34
+ AuctionListItemDtoSellerAccountToJSON,
35
+ AuctionListItemDtoSellerAccountToJSONTyped,
36
+ } from './AuctionListItemDtoSellerAccount';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface AuctionListItemDto
42
+ */
43
+ export interface AuctionListItemDto {
44
+ /**
45
+ * Auction Id
46
+ * @type {string}
47
+ * @memberof AuctionListItemDto
48
+ */
49
+ id: string;
50
+ /**
51
+ * Auction status
52
+ * @type {string}
53
+ * @memberof AuctionListItemDto
54
+ */
55
+ status: AuctionListItemDtoStatusEnum;
56
+ /**
57
+ * Auction minimum bid
58
+ * @type {MoneyDto}
59
+ * @memberof AuctionListItemDto
60
+ */
61
+ minimumBid: MoneyDto;
62
+ /**
63
+ * Auction reserve price
64
+ * @type {MoneyDto}
65
+ * @memberof AuctionListItemDto
66
+ */
67
+ reservePrice: MoneyDto | null;
68
+ /**
69
+ * Auction highest bid
70
+ * @type {MoneyDto}
71
+ * @memberof AuctionListItemDto
72
+ */
73
+ highestBid: MoneyDto | null;
74
+ /**
75
+ * Auction start date
76
+ * @type {Date}
77
+ * @memberof AuctionListItemDto
78
+ */
79
+ startDate: Date;
80
+ /**
81
+ * Auction end date
82
+ * @type {Date}
83
+ * @memberof AuctionListItemDto
84
+ */
85
+ endDate: Date;
86
+ /**
87
+ * Auction finished at
88
+ * @type {Date}
89
+ * @memberof AuctionListItemDto
90
+ */
91
+ finishedAt: Date | null;
92
+ /**
93
+ * Auction creation date
94
+ * @type {Date}
95
+ * @memberof AuctionListItemDto
96
+ */
97
+ createdAt: Date;
98
+ /**
99
+ * Auction domain information
100
+ * @type {AuctionListItemDtoDomainInformation}
101
+ * @memberof AuctionListItemDto
102
+ */
103
+ domain: AuctionListItemDtoDomainInformation;
104
+ /**
105
+ * Auction seller account information
106
+ * @type {AuctionListItemDtoSellerAccount}
107
+ * @memberof AuctionListItemDto
108
+ */
109
+ sellerAccount: AuctionListItemDtoSellerAccount;
110
+ /**
111
+ * Auction number of bids
112
+ * @type {number}
113
+ * @memberof AuctionListItemDto
114
+ */
115
+ numberOfBids: number;
116
+ }
117
+
118
+
119
+ /**
120
+ * @export
121
+ */
122
+ export const AuctionListItemDtoStatusEnum = {
123
+ SCHEDULED: 'scheduled',
124
+ ACTIVE: 'active',
125
+ ENDED: 'ended',
126
+ FINISHED: 'finished'
127
+ } as const;
128
+ export type AuctionListItemDtoStatusEnum = typeof AuctionListItemDtoStatusEnum[keyof typeof AuctionListItemDtoStatusEnum];
129
+
130
+
131
+ /**
132
+ * Check if a given object implements the AuctionListItemDto interface.
133
+ */
134
+ export function instanceOfAuctionListItemDto(value: object): value is AuctionListItemDto {
135
+ if (!('id' in value) || value['id'] === undefined) return false;
136
+ if (!('status' in value) || value['status'] === undefined) return false;
137
+ if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
138
+ if (!('reservePrice' in value) || value['reservePrice'] === undefined) return false;
139
+ if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
140
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
141
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
142
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined) return false;
143
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
144
+ if (!('domain' in value) || value['domain'] === undefined) return false;
145
+ if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
146
+ if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
147
+ return true;
148
+ }
149
+
150
+ export function AuctionListItemDtoFromJSON(json: any): AuctionListItemDto {
151
+ return AuctionListItemDtoFromJSONTyped(json, false);
152
+ }
153
+
154
+ export function AuctionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDto {
155
+ if (json == null) {
156
+ return json;
157
+ }
158
+ return {
159
+
160
+ 'id': json['id'],
161
+ 'status': json['status'],
162
+ 'minimumBid': MoneyDtoFromJSON(json['minimumBid']),
163
+ 'reservePrice': MoneyDtoFromJSON(json['reservePrice']),
164
+ 'highestBid': MoneyDtoFromJSON(json['highestBid']),
165
+ 'startDate': (new Date(json['startDate'])),
166
+ 'endDate': (new Date(json['endDate'])),
167
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
168
+ 'createdAt': (new Date(json['createdAt'])),
169
+ 'domain': AuctionListItemDtoDomainInformationFromJSON(json['domain']),
170
+ 'sellerAccount': AuctionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
171
+ 'numberOfBids': json['numberOfBids'],
172
+ };
173
+ }
174
+
175
+ export function AuctionListItemDtoToJSON(json: any): AuctionListItemDto {
176
+ return AuctionListItemDtoToJSONTyped(json, false);
177
+ }
178
+
179
+ export function AuctionListItemDtoToJSONTyped(value?: AuctionListItemDto | null, ignoreDiscriminator: boolean = false): any {
180
+ if (value == null) {
181
+ return value;
182
+ }
183
+
184
+ return {
185
+
186
+ 'id': value['id'],
187
+ 'status': value['status'],
188
+ 'minimumBid': MoneyDtoToJSON(value['minimumBid']),
189
+ 'reservePrice': MoneyDtoToJSON(value['reservePrice']),
190
+ 'highestBid': MoneyDtoToJSON(value['highestBid']),
191
+ 'startDate': ((value['startDate']).toISOString()),
192
+ 'endDate': ((value['endDate']).toISOString()),
193
+ 'finishedAt': (value['finishedAt'] == null ? null : (value['finishedAt'] as any).toISOString()),
194
+ 'createdAt': ((value['createdAt']).toISOString()),
195
+ 'domain': AuctionListItemDtoDomainInformationToJSON(value['domain']),
196
+ 'sellerAccount': AuctionListItemDtoSellerAccountToJSON(value['sellerAccount']),
197
+ 'numberOfBids': value['numberOfBids'],
198
+ };
199
+ }
200
+
@@ -0,0 +1,84 @@
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 AuctionListItemDtoDomainInformation
20
+ */
21
+ export interface AuctionListItemDtoDomainInformation {
22
+ /**
23
+ * Domain TLD
24
+ * @type {string}
25
+ * @memberof AuctionListItemDtoDomainInformation
26
+ */
27
+ tld: string;
28
+ /**
29
+ * Domain name
30
+ * @type {string}
31
+ * @memberof AuctionListItemDtoDomainInformation
32
+ */
33
+ name: string;
34
+ /**
35
+ * Domain display name
36
+ * @type {string}
37
+ * @memberof AuctionListItemDtoDomainInformation
38
+ */
39
+ displayName: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AuctionListItemDtoDomainInformation interface.
44
+ */
45
+ export function instanceOfAuctionListItemDtoDomainInformation(value: object): value is AuctionListItemDtoDomainInformation {
46
+ if (!('tld' in value) || value['tld'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AuctionListItemDtoDomainInformationFromJSON(json: any): AuctionListItemDtoDomainInformation {
53
+ return AuctionListItemDtoDomainInformationFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AuctionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoDomainInformation {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'tld': json['tld'],
63
+ 'name': json['name'],
64
+ 'displayName': json['displayName'],
65
+ };
66
+ }
67
+
68
+ export function AuctionListItemDtoDomainInformationToJSON(json: any): AuctionListItemDtoDomainInformation {
69
+ return AuctionListItemDtoDomainInformationToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AuctionListItemDtoDomainInformationToJSONTyped(value?: AuctionListItemDtoDomainInformation | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'tld': value['tld'],
80
+ 'name': value['name'],
81
+ 'displayName': value['displayName'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,93 @@
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 AuctionListItemDtoSellerAccount
20
+ */
21
+ export interface AuctionListItemDtoSellerAccount {
22
+ /**
23
+ * Account ID
24
+ * @type {string}
25
+ * @memberof AuctionListItemDtoSellerAccount
26
+ */
27
+ accountId: string;
28
+ /**
29
+ * Account identifier
30
+ * @type {string}
31
+ * @memberof AuctionListItemDtoSellerAccount
32
+ */
33
+ identifier: string;
34
+ /**
35
+ * Account name
36
+ * @type {string}
37
+ * @memberof AuctionListItemDtoSellerAccount
38
+ */
39
+ name: string | null;
40
+ /**
41
+ * Indicates if account is a business or not
42
+ * @type {boolean}
43
+ * @memberof AuctionListItemDtoSellerAccount
44
+ */
45
+ isBusiness: boolean | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AuctionListItemDtoSellerAccount interface.
50
+ */
51
+ export function instanceOfAuctionListItemDtoSellerAccount(value: object): value is AuctionListItemDtoSellerAccount {
52
+ if (!('accountId' in value) || value['accountId'] === undefined) return false;
53
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
54
+ if (!('name' in value) || value['name'] === undefined) return false;
55
+ if (!('isBusiness' in value) || value['isBusiness'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function AuctionListItemDtoSellerAccountFromJSON(json: any): AuctionListItemDtoSellerAccount {
60
+ return AuctionListItemDtoSellerAccountFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AuctionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuctionListItemDtoSellerAccount {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'accountId': json['accountId'],
70
+ 'identifier': json['identifier'],
71
+ 'name': json['name'],
72
+ 'isBusiness': json['isBusiness'],
73
+ };
74
+ }
75
+
76
+ export function AuctionListItemDtoSellerAccountToJSON(json: any): AuctionListItemDtoSellerAccount {
77
+ return AuctionListItemDtoSellerAccountToJSONTyped(json, false);
78
+ }
79
+
80
+ export function AuctionListItemDtoSellerAccountToJSONTyped(value?: AuctionListItemDtoSellerAccount | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'accountId': value['accountId'],
88
+ 'identifier': value['identifier'],
89
+ 'name': value['name'],
90
+ 'isBusiness': value['isBusiness'],
91
+ };
92
+ }
93
+
@@ -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 { AuctionListItemDto } from './AuctionListItemDto';
24
+ import {
25
+ AuctionListItemDtoFromJSON,
26
+ AuctionListItemDtoFromJSONTyped,
27
+ AuctionListItemDtoToJSON,
28
+ AuctionListItemDtoToJSONTyped,
29
+ } from './AuctionListItemDto';
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 GetAllAuctions200Response
42
+ */
43
+ export interface GetAllAuctions200Response {
44
+ /**
45
+ *
46
+ * @type {Array<AuctionListItemDto>}
47
+ * @memberof GetAllAuctions200Response
48
+ */
49
+ data: Array<AuctionListItemDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof GetAllAuctions200Response
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof GetAllAuctions200Response
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetAllAuctions200Response interface.
66
+ */
67
+ export function instanceOfGetAllAuctions200Response(value: object): value is GetAllAuctions200Response {
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 GetAllAuctions200ResponseFromJSON(json: any): GetAllAuctions200Response {
75
+ return GetAllAuctions200ResponseFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetAllAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAuctions200Response {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(AuctionListItemDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function GetAllAuctions200ResponseToJSON(json: any): GetAllAuctions200Response {
91
+ return GetAllAuctions200ResponseToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetAllAuctions200ResponseToJSONTyped(value?: GetAllAuctions200Response | 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(AuctionListItemDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -47,6 +47,9 @@ export * from './AuctionBidMetricsDto';
47
47
  export * from './AuctionBuyerDto';
48
48
  export * from './AuctionBuyerWithTokenDto';
49
49
  export * from './AuctionDto';
50
+ export * from './AuctionListItemDto';
51
+ export * from './AuctionListItemDtoDomainInformation';
52
+ export * from './AuctionListItemDtoSellerAccount';
50
53
  export * from './BadRequestException';
51
54
  export * from './BatchDeleteBuyerLeadsInput';
52
55
  export * from './BatchImportPreviewDto';
@@ -133,6 +136,7 @@ export * from './DomainUrlDto';
133
136
  export * from './EppBatchUpdateInput';
134
137
  export * from './ForgotPasswordRequestInput';
135
138
  export * from './GetAllAffiliateCommissions200Response';
139
+ export * from './GetAllAuctions200Response';
136
140
  export * from './GetAllDomainTransfers200Response';
137
141
  export * from './GetAllInvoices200Response';
138
142
  export * from './GetAllOrders200Response';