@randock/nameshift-api-client 0.0.347 → 0.0.348

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.
@@ -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
@@ -235,6 +235,7 @@ src/models/List200Response3.ts
235
235
  src/models/ListAccountMetricsDto.ts
236
236
  src/models/ListAccountUserDto.ts
237
237
  src/models/ListAccounts200Response.ts
238
+ src/models/ListAuctions200Response.ts
238
239
  src/models/ListBankAccounts200Response.ts
239
240
  src/models/ListBuyerNotifications200Response.ts
240
241
  src/models/ListDomains200Response.ts
@@ -268,6 +269,7 @@ src/models/PaginateResponse.ts
268
269
  src/models/PaginateResponseLinks.ts
269
270
  src/models/PaginateResponseMeta.ts
270
271
  src/models/ParsedDomainDto.ts
272
+ src/models/PartnerAuctionDto.ts
271
273
  src/models/PrivateAccountGetMeResponse.ts
272
274
  src/models/PublicAccountInformationDto.ts
273
275
  src/models/PublicDomainDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.347
1
+ ## @randock/nameshift-api-client@0.0.348
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.348 --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
+ 70bef346b71bd882a28888ca04dfa1796a96e123148a1a6be2a0965d7fd7886dc6cb4cbe2f4e08c1992f5e6bc969b344
@@ -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,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
+ }
@@ -0,0 +1,69 @@
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PartnerAuctionDto
17
+ */
18
+ export interface PartnerAuctionDto {
19
+ /**
20
+ * Auction ID
21
+ * @type {string}
22
+ * @memberof PartnerAuctionDto
23
+ */
24
+ id: string;
25
+ /**
26
+ * Domain display name
27
+ * @type {string}
28
+ * @memberof PartnerAuctionDto
29
+ */
30
+ domainDisplayName: string;
31
+ /**
32
+ * Number of bids
33
+ * @type {number}
34
+ * @memberof PartnerAuctionDto
35
+ */
36
+ numberOfBids: number;
37
+ /**
38
+ * Highest bid amount
39
+ * @type {MoneyDto}
40
+ * @memberof PartnerAuctionDto
41
+ */
42
+ highestBid: MoneyDto | null;
43
+ /**
44
+ * Currency code
45
+ * @type {string}
46
+ * @memberof PartnerAuctionDto
47
+ */
48
+ currencyCode: string;
49
+ /**
50
+ * Auction end date
51
+ * @type {Date}
52
+ * @memberof PartnerAuctionDto
53
+ */
54
+ endDate: Date;
55
+ /**
56
+ * Auction start date
57
+ * @type {Date}
58
+ * @memberof PartnerAuctionDto
59
+ */
60
+ startDate: Date;
61
+ }
62
+ /**
63
+ * Check if a given object implements the PartnerAuctionDto interface.
64
+ */
65
+ export declare function instanceOfPartnerAuctionDto(value: object): value is PartnerAuctionDto;
66
+ export declare function PartnerAuctionDtoFromJSON(json: any): PartnerAuctionDto;
67
+ export declare function PartnerAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerAuctionDto;
68
+ export declare function PartnerAuctionDtoToJSON(json: any): PartnerAuctionDto;
69
+ export declare function PartnerAuctionDtoToJSONTyped(value?: PartnerAuctionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.instanceOfPartnerAuctionDto = instanceOfPartnerAuctionDto;
17
+ exports.PartnerAuctionDtoFromJSON = PartnerAuctionDtoFromJSON;
18
+ exports.PartnerAuctionDtoFromJSONTyped = PartnerAuctionDtoFromJSONTyped;
19
+ exports.PartnerAuctionDtoToJSON = PartnerAuctionDtoToJSON;
20
+ exports.PartnerAuctionDtoToJSONTyped = PartnerAuctionDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the PartnerAuctionDto interface.
24
+ */
25
+ function instanceOfPartnerAuctionDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined)
29
+ return false;
30
+ if (!('numberOfBids' in value) || value['numberOfBids'] === undefined)
31
+ return false;
32
+ if (!('highestBid' in value) || value['highestBid'] === undefined)
33
+ return false;
34
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
35
+ return false;
36
+ if (!('endDate' in value) || value['endDate'] === undefined)
37
+ return false;
38
+ if (!('startDate' in value) || value['startDate'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function PartnerAuctionDtoFromJSON(json) {
43
+ return PartnerAuctionDtoFromJSONTyped(json, false);
44
+ }
45
+ function PartnerAuctionDtoFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'id': json['id'],
51
+ 'domainDisplayName': json['domainDisplayName'],
52
+ 'numberOfBids': json['numberOfBids'],
53
+ 'highestBid': (0, MoneyDto_1.MoneyDtoFromJSON)(json['highestBid']),
54
+ 'currencyCode': json['currencyCode'],
55
+ 'endDate': (new Date(json['endDate'])),
56
+ 'startDate': (new Date(json['startDate'])),
57
+ };
58
+ }
59
+ function PartnerAuctionDtoToJSON(json) {
60
+ return PartnerAuctionDtoToJSONTyped(json, false);
61
+ }
62
+ function PartnerAuctionDtoToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'domainDisplayName': value['domainDisplayName'],
70
+ 'numberOfBids': value['numberOfBids'],
71
+ 'highestBid': (0, MoneyDto_1.MoneyDtoToJSON)(value['highestBid']),
72
+ 'currencyCode': value['currencyCode'],
73
+ 'endDate': ((value['endDate']).toISOString()),
74
+ 'startDate': ((value['startDate']).toISOString()),
75
+ };
76
+ }
@@ -201,6 +201,7 @@ export * from './List200Response3';
201
201
  export * from './ListAccountMetricsDto';
202
202
  export * from './ListAccountUserDto';
203
203
  export * from './ListAccounts200Response';
204
+ export * from './ListAuctions200Response';
204
205
  export * from './ListBankAccounts200Response';
205
206
  export * from './ListBuyerNotifications200Response';
206
207
  export * from './ListDomains200Response';
@@ -234,6 +235,7 @@ export * from './PaginateResponse';
234
235
  export * from './PaginateResponseLinks';
235
236
  export * from './PaginateResponseMeta';
236
237
  export * from './ParsedDomainDto';
238
+ export * from './PartnerAuctionDto';
237
239
  export * from './PrivateAccountGetMeResponse';
238
240
  export * from './PublicAccountInformationDto';
239
241
  export * from './PublicDomainDto';
@@ -219,6 +219,7 @@ __exportStar(require("./List200Response3"), exports);
219
219
  __exportStar(require("./ListAccountMetricsDto"), exports);
220
220
  __exportStar(require("./ListAccountUserDto"), exports);
221
221
  __exportStar(require("./ListAccounts200Response"), exports);
222
+ __exportStar(require("./ListAuctions200Response"), exports);
222
223
  __exportStar(require("./ListBankAccounts200Response"), exports);
223
224
  __exportStar(require("./ListBuyerNotifications200Response"), exports);
224
225
  __exportStar(require("./ListDomains200Response"), exports);
@@ -252,6 +253,7 @@ __exportStar(require("./PaginateResponse"), exports);
252
253
  __exportStar(require("./PaginateResponseLinks"), exports);
253
254
  __exportStar(require("./PaginateResponseMeta"), exports);
254
255
  __exportStar(require("./ParsedDomainDto"), exports);
256
+ __exportStar(require("./PartnerAuctionDto"), exports);
255
257
  __exportStar(require("./PrivateAccountGetMeResponse"), exports);
256
258
  __exportStar(require("./PublicAccountInformationDto"), exports);
257
259
  __exportStar(require("./PublicDomainDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.347",
3
+ "version": "0.0.348",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,17 +15,25 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ListAuctions200Response,
18
19
  ListDomainsWithUpdatedPricing200Response,
19
20
  ValidationException,
20
21
  } from '../models/index';
21
22
  import {
23
+ ListAuctions200ResponseFromJSON,
24
+ ListAuctions200ResponseToJSON,
22
25
  ListDomainsWithUpdatedPricing200ResponseFromJSON,
23
26
  ListDomainsWithUpdatedPricing200ResponseToJSON,
24
27
  ValidationExceptionFromJSON,
25
28
  ValidationExceptionToJSON,
26
29
  } from '../models/index';
27
30
 
28
- export interface PartnerDomainsApiListDomainsWithUpdatedPricingRequest {
31
+ export interface PartnerApiListAuctionsRequest {
32
+ limit?: number;
33
+ cursor?: string;
34
+ }
35
+
36
+ export interface PartnerApiListDomainsWithUpdatedPricingRequest {
29
37
  dateFrom: string;
30
38
  limit?: number;
31
39
  cursor?: string;
@@ -34,12 +42,50 @@ export interface PartnerDomainsApiListDomainsWithUpdatedPricingRequest {
34
42
  /**
35
43
  *
36
44
  */
37
- export class PartnerDomainsApi extends runtime.BaseAPI {
45
+ export class PartnerApi extends runtime.BaseAPI {
38
46
 
39
47
  /**
40
48
  *
41
49
  */
42
- async listDomainsWithUpdatedPricingRaw(requestParameters: PartnerDomainsApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>> {
50
+ async listAuctionsRaw(requestParameters: PartnerApiListAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAuctions200Response>> {
51
+ const queryParameters: any = {};
52
+
53
+ if (requestParameters['limit'] != null) {
54
+ queryParameters['limit'] = requestParameters['limit'];
55
+ }
56
+
57
+ if (requestParameters['cursor'] != null) {
58
+ queryParameters['cursor'] = requestParameters['cursor'];
59
+ }
60
+
61
+ const headerParameters: runtime.HTTPHeaders = {};
62
+
63
+ if (this.configuration && this.configuration.apiKey) {
64
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
65
+ }
66
+
67
+ const response = await this.request({
68
+ path: `/partner/auctions`,
69
+ method: 'GET',
70
+ headers: headerParameters,
71
+ query: queryParameters,
72
+ }, initOverrides);
73
+
74
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListAuctions200ResponseFromJSON(jsonValue));
75
+ }
76
+
77
+ /**
78
+ *
79
+ */
80
+ async listAuctions(requestParameters: PartnerApiListAuctionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAuctions200Response> {
81
+ const response = await this.listAuctionsRaw(requestParameters, initOverrides);
82
+ return await response.value();
83
+ }
84
+
85
+ /**
86
+ *
87
+ */
88
+ async listDomainsWithUpdatedPricingRaw(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>> {
43
89
  if (requestParameters['dateFrom'] == null) {
44
90
  throw new runtime.RequiredError(
45
91
  'dateFrom',
@@ -63,6 +109,10 @@ export class PartnerDomainsApi extends runtime.BaseAPI {
63
109
 
64
110
  const headerParameters: runtime.HTTPHeaders = {};
65
111
 
112
+ if (this.configuration && this.configuration.apiKey) {
113
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
114
+ }
115
+
66
116
  const response = await this.request({
67
117
  path: `/partner/domains/updated-prices`,
68
118
  method: 'GET',
@@ -76,7 +126,7 @@ export class PartnerDomainsApi extends runtime.BaseAPI {
76
126
  /**
77
127
  *
78
128
  */
79
- async listDomainsWithUpdatedPricing(requestParameters: PartnerDomainsApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response> {
129
+ async listDomainsWithUpdatedPricing(requestParameters: PartnerApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response> {
80
130
  const response = await this.listDomainsWithUpdatedPricingRaw(requestParameters, initOverrides);
81
131
  return await response.value();
82
132
  }
package/src/apis/index.ts CHANGED
@@ -17,7 +17,7 @@ export * from './LeadsApi';
17
17
  export * from './LeadsPublicApi';
18
18
  export * from './NotificationsApi';
19
19
  export * from './OrdersPublicApi';
20
- export * from './PartnerDomainsApi';
20
+ export * from './PartnerApi';
21
21
  export * from './SalesPublicApi';
22
22
  export * from './StatsApi';
23
23
  export * from './StripePublicApi';
@@ -0,0 +1,117 @@
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 { CursorBasedPageInfo } from './CursorBasedPageInfo';
17
+ import {
18
+ CursorBasedPageInfoFromJSON,
19
+ CursorBasedPageInfoFromJSONTyped,
20
+ CursorBasedPageInfoToJSON,
21
+ CursorBasedPageInfoToJSONTyped,
22
+ } from './CursorBasedPageInfo';
23
+ import type { PartnerAuctionDto } from './PartnerAuctionDto';
24
+ import {
25
+ PartnerAuctionDtoFromJSON,
26
+ PartnerAuctionDtoFromJSONTyped,
27
+ PartnerAuctionDtoToJSON,
28
+ PartnerAuctionDtoToJSONTyped,
29
+ } from './PartnerAuctionDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ListAuctions200Response
35
+ */
36
+ export interface ListAuctions200Response {
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ListAuctions200Response
41
+ */
42
+ limit: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ListAuctions200Response
47
+ */
48
+ type: ListAuctions200ResponseTypeEnum;
49
+ /**
50
+ *
51
+ * @type {CursorBasedPageInfo}
52
+ * @memberof ListAuctions200Response
53
+ */
54
+ pagination: CursorBasedPageInfo;
55
+ /**
56
+ *
57
+ * @type {Array<PartnerAuctionDto>}
58
+ * @memberof ListAuctions200Response
59
+ */
60
+ data?: Array<PartnerAuctionDto>;
61
+ }
62
+
63
+
64
+ /**
65
+ * @export
66
+ */
67
+ export const ListAuctions200ResponseTypeEnum = {
68
+ CURSOR: 'cursor'
69
+ } as const;
70
+ export type ListAuctions200ResponseTypeEnum = typeof ListAuctions200ResponseTypeEnum[keyof typeof ListAuctions200ResponseTypeEnum];
71
+
72
+
73
+ /**
74
+ * Check if a given object implements the ListAuctions200Response interface.
75
+ */
76
+ export function instanceOfListAuctions200Response(value: object): value is ListAuctions200Response {
77
+ if (!('limit' in value) || value['limit'] === undefined) return false;
78
+ if (!('type' in value) || value['type'] === undefined) return false;
79
+ if (!('pagination' in value) || value['pagination'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function ListAuctions200ResponseFromJSON(json: any): ListAuctions200Response {
84
+ return ListAuctions200ResponseFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function ListAuctions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAuctions200Response {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'limit': json['limit'],
94
+ 'type': json['type'],
95
+ 'pagination': CursorBasedPageInfoFromJSON(json['pagination']),
96
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PartnerAuctionDtoFromJSON)),
97
+ };
98
+ }
99
+
100
+ export function ListAuctions200ResponseToJSON(json: any): ListAuctions200Response {
101
+ return ListAuctions200ResponseToJSONTyped(json, false);
102
+ }
103
+
104
+ export function ListAuctions200ResponseToJSONTyped(value?: ListAuctions200Response | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'limit': value['limit'],
112
+ 'type': value['type'],
113
+ 'pagination': CursorBasedPageInfoToJSON(value['pagination']),
114
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PartnerAuctionDtoToJSON)),
115
+ };
116
+ }
117
+
@@ -0,0 +1,128 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PartnerAuctionDto
28
+ */
29
+ export interface PartnerAuctionDto {
30
+ /**
31
+ * Auction ID
32
+ * @type {string}
33
+ * @memberof PartnerAuctionDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * Domain display name
38
+ * @type {string}
39
+ * @memberof PartnerAuctionDto
40
+ */
41
+ domainDisplayName: string;
42
+ /**
43
+ * Number of bids
44
+ * @type {number}
45
+ * @memberof PartnerAuctionDto
46
+ */
47
+ numberOfBids: number;
48
+ /**
49
+ * Highest bid amount
50
+ * @type {MoneyDto}
51
+ * @memberof PartnerAuctionDto
52
+ */
53
+ highestBid: MoneyDto | null;
54
+ /**
55
+ * Currency code
56
+ * @type {string}
57
+ * @memberof PartnerAuctionDto
58
+ */
59
+ currencyCode: string;
60
+ /**
61
+ * Auction end date
62
+ * @type {Date}
63
+ * @memberof PartnerAuctionDto
64
+ */
65
+ endDate: Date;
66
+ /**
67
+ * Auction start date
68
+ * @type {Date}
69
+ * @memberof PartnerAuctionDto
70
+ */
71
+ startDate: Date;
72
+ }
73
+
74
+ /**
75
+ * Check if a given object implements the PartnerAuctionDto interface.
76
+ */
77
+ export function instanceOfPartnerAuctionDto(value: object): value is PartnerAuctionDto {
78
+ if (!('id' in value) || value['id'] === undefined) return false;
79
+ if (!('domainDisplayName' in value) || value['domainDisplayName'] === undefined) return false;
80
+ if (!('numberOfBids' in value) || value['numberOfBids'] === undefined) return false;
81
+ if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
82
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
83
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
84
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function PartnerAuctionDtoFromJSON(json: any): PartnerAuctionDto {
89
+ return PartnerAuctionDtoFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function PartnerAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerAuctionDto {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'id': json['id'],
99
+ 'domainDisplayName': json['domainDisplayName'],
100
+ 'numberOfBids': json['numberOfBids'],
101
+ 'highestBid': MoneyDtoFromJSON(json['highestBid']),
102
+ 'currencyCode': json['currencyCode'],
103
+ 'endDate': (new Date(json['endDate'])),
104
+ 'startDate': (new Date(json['startDate'])),
105
+ };
106
+ }
107
+
108
+ export function PartnerAuctionDtoToJSON(json: any): PartnerAuctionDto {
109
+ return PartnerAuctionDtoToJSONTyped(json, false);
110
+ }
111
+
112
+ export function PartnerAuctionDtoToJSONTyped(value?: PartnerAuctionDto | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'domainDisplayName': value['domainDisplayName'],
121
+ 'numberOfBids': value['numberOfBids'],
122
+ 'highestBid': MoneyDtoToJSON(value['highestBid']),
123
+ 'currencyCode': value['currencyCode'],
124
+ 'endDate': ((value['endDate']).toISOString()),
125
+ 'startDate': ((value['startDate']).toISOString()),
126
+ };
127
+ }
128
+
@@ -203,6 +203,7 @@ export * from './List200Response3';
203
203
  export * from './ListAccountMetricsDto';
204
204
  export * from './ListAccountUserDto';
205
205
  export * from './ListAccounts200Response';
206
+ export * from './ListAuctions200Response';
206
207
  export * from './ListBankAccounts200Response';
207
208
  export * from './ListBuyerNotifications200Response';
208
209
  export * from './ListDomains200Response';
@@ -236,6 +237,7 @@ export * from './PaginateResponse';
236
237
  export * from './PaginateResponseLinks';
237
238
  export * from './PaginateResponseMeta';
238
239
  export * from './ParsedDomainDto';
240
+ export * from './PartnerAuctionDto';
239
241
  export * from './PrivateAccountGetMeResponse';
240
242
  export * from './PublicAccountInformationDto';
241
243
  export * from './PublicDomainDto';
@@ -1,31 +0,0 @@
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 { ListDomainsWithUpdatedPricing200Response } from '../models/index';
14
- export interface PartnerDomainsApiListDomainsWithUpdatedPricingRequest {
15
- dateFrom: string;
16
- limit?: number;
17
- cursor?: string;
18
- }
19
- /**
20
- *
21
- */
22
- export declare class PartnerDomainsApi extends runtime.BaseAPI {
23
- /**
24
- *
25
- */
26
- listDomainsWithUpdatedPricingRaw(requestParameters: PartnerDomainsApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDomainsWithUpdatedPricing200Response>>;
27
- /**
28
- *
29
- */
30
- listDomainsWithUpdatedPricing(requestParameters: PartnerDomainsApiListDomainsWithUpdatedPricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDomainsWithUpdatedPricing200Response>;
31
- }