@randock/nameshift-api-client 0.0.347 → 0.0.349

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.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +9 -1
  2. package/README.md +3 -3
  3. package/dist/apis/AuctionsPublicApi.d.ts +16 -1
  4. package/dist/apis/AuctionsPublicApi.js +57 -0
  5. package/dist/apis/PartnerApi.d.ts +43 -0
  6. package/dist/apis/{PartnerDomainsApi.js → PartnerApi.js} +78 -16
  7. package/dist/apis/index.d.ts +1 -1
  8. package/dist/apis/index.js +1 -1
  9. package/dist/models/List200Response4.d.ts +65 -0
  10. package/dist/models/List200Response4.js +74 -0
  11. package/dist/models/ListAuctions200Response.d.ts +59 -0
  12. package/dist/models/ListAuctions200Response.js +70 -0
  13. package/dist/models/PartnerAuctionDto.d.ts +69 -0
  14. package/dist/models/PartnerAuctionDto.js +76 -0
  15. package/dist/models/PublicAuctionListItemDto.d.ts +93 -0
  16. package/dist/models/PublicAuctionListItemDto.js +96 -0
  17. package/dist/models/PublicAuctionListItemDtoDomainInformation.d.ts +63 -0
  18. package/dist/models/PublicAuctionListItemDtoDomainInformation.js +72 -0
  19. package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.d.ts +56 -0
  20. package/dist/models/PublicAuctionListItemDtoDomainMozMetrics.js +67 -0
  21. package/dist/models/PublicAuctionListItemDtoDomainSeo.d.ts +33 -0
  22. package/dist/models/PublicAuctionListItemDtoDomainSeo.js +52 -0
  23. package/dist/models/PublicDomainDto.d.ts +7 -0
  24. package/dist/models/PublicDomainDto.js +5 -0
  25. package/dist/models/PublicDomainDtoAuction.d.ts +39 -0
  26. package/dist/models/PublicDomainDtoAuction.js +56 -0
  27. package/dist/models/index.d.ts +8 -0
  28. package/dist/models/index.js +8 -0
  29. package/package.json +1 -1
  30. package/src/apis/AuctionsPublicApi.ts +63 -0
  31. package/src/apis/{PartnerDomainsApi.ts → PartnerApi.ts} +54 -4
  32. package/src/apis/index.ts +1 -1
  33. package/src/models/List200Response4.ts +126 -0
  34. package/src/models/ListAuctions200Response.ts +117 -0
  35. package/src/models/PartnerAuctionDto.ts +128 -0
  36. package/src/models/PublicAuctionListItemDto.ts +167 -0
  37. package/src/models/PublicAuctionListItemDtoDomainInformation.ts +119 -0
  38. package/src/models/PublicAuctionListItemDtoDomainMozMetrics.ts +102 -0
  39. package/src/models/PublicAuctionListItemDtoDomainSeo.ts +74 -0
  40. package/src/models/PublicDomainDto.ts +16 -0
  41. package/src/models/PublicDomainDtoAuction.ts +83 -0
  42. package/src/models/index.ts +8 -0
  43. package/dist/apis/PartnerDomainsApi.d.ts +0 -31
@@ -20,7 +20,7 @@ src/apis/LeadsApi.ts
20
20
  src/apis/LeadsPublicApi.ts
21
21
  src/apis/NotificationsApi.ts
22
22
  src/apis/OrdersPublicApi.ts
23
- src/apis/PartnerDomainsApi.ts
23
+ src/apis/PartnerApi.ts
24
24
  src/apis/SalesPublicApi.ts
25
25
  src/apis/StatsApi.ts
26
26
  src/apis/StripePublicApi.ts
@@ -232,9 +232,11 @@ src/models/List200Response.ts
232
232
  src/models/List200Response1.ts
233
233
  src/models/List200Response2.ts
234
234
  src/models/List200Response3.ts
235
+ src/models/List200Response4.ts
235
236
  src/models/ListAccountMetricsDto.ts
236
237
  src/models/ListAccountUserDto.ts
237
238
  src/models/ListAccounts200Response.ts
239
+ src/models/ListAuctions200Response.ts
238
240
  src/models/ListBankAccounts200Response.ts
239
241
  src/models/ListBuyerNotifications200Response.ts
240
242
  src/models/ListDomains200Response.ts
@@ -268,9 +270,15 @@ src/models/PaginateResponse.ts
268
270
  src/models/PaginateResponseLinks.ts
269
271
  src/models/PaginateResponseMeta.ts
270
272
  src/models/ParsedDomainDto.ts
273
+ src/models/PartnerAuctionDto.ts
271
274
  src/models/PrivateAccountGetMeResponse.ts
272
275
  src/models/PublicAccountInformationDto.ts
276
+ src/models/PublicAuctionListItemDto.ts
277
+ src/models/PublicAuctionListItemDtoDomainInformation.ts
278
+ src/models/PublicAuctionListItemDtoDomainMozMetrics.ts
279
+ src/models/PublicAuctionListItemDtoDomainSeo.ts
273
280
  src/models/PublicDomainDto.ts
281
+ src/models/PublicDomainDtoAuction.ts
274
282
  src/models/PublicDomainDtoSeo.ts
275
283
  src/models/PublicDomainDtoSeoMoz.ts
276
284
  src/models/PublicLeadBuyerDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.347
1
+ ## @randock/nameshift-api-client@0.0.349
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.347 --save
39
+ npm install @randock/nameshift-api-client@0.0.349 --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
- ee256f25d179b05c3b4481ccda30d3a0ca93d4479dbc418d4408e50acbdf51b6ce7e2ee2d66c89dbbeee31338afe01b7
47
+ c64965be3b97a522b135e88ba750eeec1bc92a52029b2bd59bb6d426e9703e254a405a00dca3b7991ad0c3b32d0eb2ff
@@ -10,10 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AuctionDto } from '../models/index';
13
+ import type { AuctionDto, List200Response4, SortDto } from '../models/index';
14
14
  export interface AuctionsPublicApiGetAuctionRequest {
15
15
  auctionId: string;
16
16
  }
17
+ export interface AuctionsPublicApiListRequest {
18
+ limit?: number;
19
+ sort?: Array<SortDto>;
20
+ filter?: string;
21
+ search?: string;
22
+ cursor?: string;
23
+ }
17
24
  /**
18
25
  *
19
26
  */
@@ -26,4 +33,12 @@ export declare class AuctionsPublicApi extends runtime.BaseAPI {
26
33
  *
27
34
  */
28
35
  getAuction(requestParameters: AuctionsPublicApiGetAuctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuctionDto>;
36
+ /**
37
+ *
38
+ */
39
+ listRaw(requestParameters: AuctionsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response4>>;
40
+ /**
41
+ *
42
+ */
43
+ list(requestParameters?: AuctionsPublicApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response4>;
29
44
  }
@@ -119,6 +119,63 @@ var AuctionsPublicApi = /** @class */ (function (_super) {
119
119
  });
120
120
  });
121
121
  };
122
+ /**
123
+ *
124
+ */
125
+ AuctionsPublicApi.prototype.listRaw = function (requestParameters, initOverrides) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ var queryParameters, headerParameters, response;
128
+ return __generator(this, function (_a) {
129
+ switch (_a.label) {
130
+ case 0:
131
+ queryParameters = {};
132
+ if (requestParameters['limit'] != null) {
133
+ queryParameters['limit'] = requestParameters['limit'];
134
+ }
135
+ if (requestParameters['sort'] != null) {
136
+ queryParameters['sort'] = requestParameters['sort'];
137
+ }
138
+ if (requestParameters['filter'] != null) {
139
+ queryParameters['filter'] = requestParameters['filter'];
140
+ }
141
+ if (requestParameters['search'] != null) {
142
+ queryParameters['search'] = requestParameters['search'];
143
+ }
144
+ if (requestParameters['cursor'] != null) {
145
+ queryParameters['cursor'] = requestParameters['cursor'];
146
+ }
147
+ headerParameters = {};
148
+ return [4 /*yield*/, this.request({
149
+ path: "/auctions",
150
+ method: 'GET',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides)];
154
+ case 1:
155
+ response = _a.sent();
156
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response4FromJSON)(jsonValue); })];
157
+ }
158
+ });
159
+ });
160
+ };
161
+ /**
162
+ *
163
+ */
164
+ AuctionsPublicApi.prototype.list = function () {
165
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
166
+ var response;
167
+ if (requestParameters === void 0) { requestParameters = {}; }
168
+ return __generator(this, function (_a) {
169
+ switch (_a.label) {
170
+ case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
171
+ case 1:
172
+ response = _a.sent();
173
+ return [4 /*yield*/, response.value()];
174
+ case 2: return [2 /*return*/, _a.sent()];
175
+ }
176
+ });
177
+ });
178
+ };
122
179
  return AuctionsPublicApi;
123
180
  }(runtime.BaseAPI));
124
181
  exports.AuctionsPublicApi = AuctionsPublicApi;
@@ -0,0 +1,43 @@
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 * as runtime from '../runtime';
13
+ import type { ListAuctions200Response, ListDomainsWithUpdatedPricing200Response } from '../models/index';
14
+ export interface PartnerApiListAuctionsRequest {
15
+ limit?: number;
16
+ cursor?: string;
17
+ }
18
+ export interface PartnerApiListDomainsWithUpdatedPricingRequest {
19
+ dateFrom: string;
20
+ limit?: number;
21
+ cursor?: string;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class PartnerApi extends runtime.BaseAPI {
27
+ /**
28
+ *
29
+ */
30
+ listAuctionsRaw(requestParameters: PartnerApiListAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAuctions200Response>>;
31
+ /**
32
+ *
33
+ */
34
+ listAuctions(requestParameters?: PartnerApiListAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAuctions200Response>;
35
+ /**
36
+ *
37
+ */
38
+ listDomainsWithUpdatedPricingRaw(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>>;
39
+ /**
40
+ *
41
+ */
42
+ listDomainsWithUpdatedPricing(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response>;
43
+ }
@@ -64,25 +64,80 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.PartnerDomainsApi = void 0;
67
+ exports.PartnerApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
71
71
  *
72
72
  */
73
- var PartnerDomainsApi = /** @class */ (function (_super) {
74
- __extends(PartnerDomainsApi, _super);
75
- function PartnerDomainsApi() {
73
+ var PartnerApi = /** @class */ (function (_super) {
74
+ __extends(PartnerApi, _super);
75
+ function PartnerApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
79
  *
80
80
  */
81
- PartnerDomainsApi.prototype.listDomainsWithUpdatedPricingRaw = function (requestParameters, initOverrides) {
81
+ PartnerApi.prototype.listAuctionsRaw = function (requestParameters, initOverrides) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, response;
83
+ var queryParameters, headerParameters, _a, _b, response;
84
+ return __generator(this, function (_c) {
85
+ switch (_c.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ if (requestParameters['limit'] != null) {
89
+ queryParameters['limit'] = requestParameters['limit'];
90
+ }
91
+ if (requestParameters['cursor'] != null) {
92
+ queryParameters['cursor'] = requestParameters['cursor'];
93
+ }
94
+ headerParameters = {};
95
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
96
+ _a = headerParameters;
97
+ _b = "apikey";
98
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
99
+ case 1:
100
+ _a[_b] = _c.sent(); // api_key authentication
101
+ _c.label = 2;
102
+ case 2: return [4 /*yield*/, this.request({
103
+ path: "/partner/auctions",
104
+ method: 'GET',
105
+ headers: headerParameters,
106
+ query: queryParameters,
107
+ }, initOverrides)];
108
+ case 3:
109
+ response = _c.sent();
110
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListAuctions200ResponseFromJSON)(jsonValue); })];
111
+ }
112
+ });
113
+ });
114
+ };
115
+ /**
116
+ *
117
+ */
118
+ PartnerApi.prototype.listAuctions = function () {
119
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
120
+ var response;
121
+ if (requestParameters === void 0) { requestParameters = {}; }
84
122
  return __generator(this, function (_a) {
85
123
  switch (_a.label) {
124
+ case 0: return [4 /*yield*/, this.listAuctionsRaw(requestParameters, initOverrides)];
125
+ case 1:
126
+ response = _a.sent();
127
+ return [4 /*yield*/, response.value()];
128
+ case 2: return [2 /*return*/, _a.sent()];
129
+ }
130
+ });
131
+ });
132
+ };
133
+ /**
134
+ *
135
+ */
136
+ PartnerApi.prototype.listDomainsWithUpdatedPricingRaw = function (requestParameters, initOverrides) {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ var queryParameters, headerParameters, _a, _b, response;
139
+ return __generator(this, function (_c) {
140
+ switch (_c.label) {
86
141
  case 0:
87
142
  if (requestParameters['dateFrom'] == null) {
88
143
  throw new runtime.RequiredError('dateFrom', 'Required parameter "dateFrom" was null or undefined when calling listDomainsWithUpdatedPricing().');
@@ -98,14 +153,21 @@ var PartnerDomainsApi = /** @class */ (function (_super) {
98
153
  queryParameters['cursor'] = requestParameters['cursor'];
99
154
  }
100
155
  headerParameters = {};
101
- return [4 /*yield*/, this.request({
102
- path: "/partner/domains/updated-prices",
103
- method: 'GET',
104
- headers: headerParameters,
105
- query: queryParameters,
106
- }, initOverrides)];
156
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
157
+ _a = headerParameters;
158
+ _b = "apikey";
159
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
107
160
  case 1:
108
- response = _a.sent();
161
+ _a[_b] = _c.sent(); // api_key authentication
162
+ _c.label = 2;
163
+ case 2: return [4 /*yield*/, this.request({
164
+ path: "/partner/domains/updated-prices",
165
+ method: 'GET',
166
+ headers: headerParameters,
167
+ query: queryParameters,
168
+ }, initOverrides)];
169
+ case 3:
170
+ response = _c.sent();
109
171
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListDomainsWithUpdatedPricing200ResponseFromJSON)(jsonValue); })];
110
172
  }
111
173
  });
@@ -114,7 +176,7 @@ var PartnerDomainsApi = /** @class */ (function (_super) {
114
176
  /**
115
177
  *
116
178
  */
117
- PartnerDomainsApi.prototype.listDomainsWithUpdatedPricing = function (requestParameters, initOverrides) {
179
+ PartnerApi.prototype.listDomainsWithUpdatedPricing = function (requestParameters, initOverrides) {
118
180
  return __awaiter(this, void 0, void 0, function () {
119
181
  var response;
120
182
  return __generator(this, function (_a) {
@@ -128,6 +190,6 @@ var PartnerDomainsApi = /** @class */ (function (_super) {
128
190
  });
129
191
  });
130
192
  };
131
- return PartnerDomainsApi;
193
+ return PartnerApi;
132
194
  }(runtime.BaseAPI));
133
- exports.PartnerDomainsApi = PartnerDomainsApi;
195
+ exports.PartnerApi = PartnerApi;
@@ -15,7 +15,7 @@ export * from './LeadsApi';
15
15
  export * from './LeadsPublicApi';
16
16
  export * from './NotificationsApi';
17
17
  export * from './OrdersPublicApi';
18
- export * from './PartnerDomainsApi';
18
+ export * from './PartnerApi';
19
19
  export * from './SalesPublicApi';
20
20
  export * from './StatsApi';
21
21
  export * from './StripePublicApi';
@@ -33,7 +33,7 @@ __exportStar(require("./LeadsApi"), exports);
33
33
  __exportStar(require("./LeadsPublicApi"), exports);
34
34
  __exportStar(require("./NotificationsApi"), exports);
35
35
  __exportStar(require("./OrdersPublicApi"), exports);
36
- __exportStar(require("./PartnerDomainsApi"), exports);
36
+ __exportStar(require("./PartnerApi"), exports);
37
37
  __exportStar(require("./SalesPublicApi"), exports);
38
38
  __exportStar(require("./StatsApi"), exports);
39
39
  __exportStar(require("./StripePublicApi"), exports);
@@ -0,0 +1,65 @@
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
13
+ import type { PublicAuctionListItemDto } from './PublicAuctionListItemDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface List200Response4
18
+ */
19
+ export interface List200Response4 {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof List200Response4
24
+ */
25
+ limit: number;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof List200Response4
30
+ */
31
+ type: List200Response4TypeEnum;
32
+ /**
33
+ *
34
+ * @type {CursorBasedPageInfo}
35
+ * @memberof List200Response4
36
+ */
37
+ pagination: CursorBasedPageInfo;
38
+ /**
39
+ *
40
+ * @type {object}
41
+ * @memberof List200Response4
42
+ */
43
+ aggregations: object;
44
+ /**
45
+ *
46
+ * @type {Array<PublicAuctionListItemDto>}
47
+ * @memberof List200Response4
48
+ */
49
+ data?: Array<PublicAuctionListItemDto>;
50
+ }
51
+ /**
52
+ * @export
53
+ */
54
+ export declare const List200Response4TypeEnum: {
55
+ readonly CURSOR: "cursor";
56
+ };
57
+ export type List200Response4TypeEnum = typeof List200Response4TypeEnum[keyof typeof List200Response4TypeEnum];
58
+ /**
59
+ * Check if a given object implements the List200Response4 interface.
60
+ */
61
+ export declare function instanceOfList200Response4(value: object): value is List200Response4;
62
+ export declare function List200Response4FromJSON(json: any): List200Response4;
63
+ export declare function List200Response4FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response4;
64
+ export declare function List200Response4ToJSON(json: any): List200Response4;
65
+ export declare function List200Response4ToJSONTyped(value?: List200Response4 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.List200Response4TypeEnum = void 0;
17
+ exports.instanceOfList200Response4 = instanceOfList200Response4;
18
+ exports.List200Response4FromJSON = List200Response4FromJSON;
19
+ exports.List200Response4FromJSONTyped = List200Response4FromJSONTyped;
20
+ exports.List200Response4ToJSON = List200Response4ToJSON;
21
+ exports.List200Response4ToJSONTyped = List200Response4ToJSONTyped;
22
+ var CursorBasedPageInfo_1 = require("./CursorBasedPageInfo");
23
+ var PublicAuctionListItemDto_1 = require("./PublicAuctionListItemDto");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.List200Response4TypeEnum = {
28
+ CURSOR: 'cursor'
29
+ };
30
+ /**
31
+ * Check if a given object implements the List200Response4 interface.
32
+ */
33
+ function instanceOfList200Response4(value) {
34
+ if (!('limit' in value) || value['limit'] === undefined)
35
+ return false;
36
+ if (!('type' in value) || value['type'] === undefined)
37
+ return false;
38
+ if (!('pagination' in value) || value['pagination'] === undefined)
39
+ return false;
40
+ if (!('aggregations' in value) || value['aggregations'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function List200Response4FromJSON(json) {
45
+ return List200Response4FromJSONTyped(json, false);
46
+ }
47
+ function List200Response4FromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'limit': json['limit'],
53
+ 'type': json['type'],
54
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoFromJSON)(json['pagination']),
55
+ 'aggregations': json['aggregations'],
56
+ 'data': json['data'] == null ? undefined : (json['data'].map(PublicAuctionListItemDto_1.PublicAuctionListItemDtoFromJSON)),
57
+ };
58
+ }
59
+ function List200Response4ToJSON(json) {
60
+ return List200Response4ToJSONTyped(json, false);
61
+ }
62
+ function List200Response4ToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'limit': value['limit'],
69
+ 'type': value['type'],
70
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoToJSON)(value['pagination']),
71
+ 'aggregations': value['aggregations'],
72
+ 'data': value['data'] == null ? undefined : (value['data'].map(PublicAuctionListItemDto_1.PublicAuctionListItemDtoToJSON)),
73
+ };
74
+ }
@@ -0,0 +1,59 @@
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
13
+ import type { PartnerAuctionDto } from './PartnerAuctionDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ListAuctions200Response
18
+ */
19
+ export interface ListAuctions200Response {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof ListAuctions200Response
24
+ */
25
+ limit: number;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ListAuctions200Response
30
+ */
31
+ type: ListAuctions200ResponseTypeEnum;
32
+ /**
33
+ *
34
+ * @type {CursorBasedPageInfo}
35
+ * @memberof ListAuctions200Response
36
+ */
37
+ pagination: CursorBasedPageInfo;
38
+ /**
39
+ *
40
+ * @type {Array<PartnerAuctionDto>}
41
+ * @memberof ListAuctions200Response
42
+ */
43
+ data?: Array<PartnerAuctionDto>;
44
+ }
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const ListAuctions200ResponseTypeEnum: {
49
+ readonly CURSOR: "cursor";
50
+ };
51
+ export type ListAuctions200ResponseTypeEnum = typeof ListAuctions200ResponseTypeEnum[keyof typeof ListAuctions200ResponseTypeEnum];
52
+ /**
53
+ * Check if a given object implements the ListAuctions200Response interface.
54
+ */
55
+ export declare function instanceOfListAuctions200Response(value: object): value is ListAuctions200Response;
56
+ export declare function ListAuctions200ResponseFromJSON(json: any): ListAuctions200Response;
57
+ export declare function ListAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAuctions200Response;
58
+ export declare function ListAuctions200ResponseToJSON(json: any): ListAuctions200Response;
59
+ export declare function ListAuctions200ResponseToJSONTyped(value?: ListAuctions200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.ListAuctions200ResponseTypeEnum = void 0;
17
+ exports.instanceOfListAuctions200Response = instanceOfListAuctions200Response;
18
+ exports.ListAuctions200ResponseFromJSON = ListAuctions200ResponseFromJSON;
19
+ exports.ListAuctions200ResponseFromJSONTyped = ListAuctions200ResponseFromJSONTyped;
20
+ exports.ListAuctions200ResponseToJSON = ListAuctions200ResponseToJSON;
21
+ exports.ListAuctions200ResponseToJSONTyped = ListAuctions200ResponseToJSONTyped;
22
+ var CursorBasedPageInfo_1 = require("./CursorBasedPageInfo");
23
+ var PartnerAuctionDto_1 = require("./PartnerAuctionDto");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ListAuctions200ResponseTypeEnum = {
28
+ CURSOR: 'cursor'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ListAuctions200Response interface.
32
+ */
33
+ function instanceOfListAuctions200Response(value) {
34
+ if (!('limit' in value) || value['limit'] === undefined)
35
+ return false;
36
+ if (!('type' in value) || value['type'] === undefined)
37
+ return false;
38
+ if (!('pagination' in value) || value['pagination'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function ListAuctions200ResponseFromJSON(json) {
43
+ return ListAuctions200ResponseFromJSONTyped(json, false);
44
+ }
45
+ function ListAuctions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'limit': json['limit'],
51
+ 'type': json['type'],
52
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoFromJSON)(json['pagination']),
53
+ 'data': json['data'] == null ? undefined : (json['data'].map(PartnerAuctionDto_1.PartnerAuctionDtoFromJSON)),
54
+ };
55
+ }
56
+ function ListAuctions200ResponseToJSON(json) {
57
+ return ListAuctions200ResponseToJSONTyped(json, false);
58
+ }
59
+ function ListAuctions200ResponseToJSONTyped(value, ignoreDiscriminator) {
60
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'limit': value['limit'],
66
+ 'type': value['type'],
67
+ 'pagination': (0, CursorBasedPageInfo_1.CursorBasedPageInfoToJSON)(value['pagination']),
68
+ 'data': value['data'] == null ? undefined : (value['data'].map(PartnerAuctionDto_1.PartnerAuctionDtoToJSON)),
69
+ };
70
+ }