@randock/nameshift-api-client 0.0.395 → 0.0.397

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.395
1
+ ## @randock/nameshift-api-client@0.0.397
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.395 --save
39
+ npm install @randock/nameshift-api-client@0.0.397 --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
- ea353a14548b68259ed9f7902ef5bad1642b9d6fc4548a656eb1cfe7ded122e3161e656d00e5ca54513b3f98262038c2
47
+ 582690c719875a7b8b63fa164d06ca2cb0ab4f64886b99a254b06266cc50c828a1ea71a2f6b91125f56cc3528abbd788
@@ -18,6 +18,9 @@ export interface OrdersPublicApiCreateOrderManualTransactionRequest {
18
18
  orderId: string;
19
19
  createManualTransactionInput: CreateManualTransactionInput;
20
20
  }
21
+ export interface OrdersPublicApiDownloadOrderProformaInvoiceRequest {
22
+ orderId: string;
23
+ }
21
24
  export interface OrdersPublicApiGetOrderRequest {
22
25
  orderId: string;
23
26
  }
@@ -47,6 +50,14 @@ export declare class OrdersPublicApi extends runtime.BaseAPI {
47
50
  * Create a new manual transaction for order invoice
48
51
  */
49
52
  createOrderManualTransaction(requestParameters: OrdersPublicApiCreateOrderManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
53
+ /**
54
+ *
55
+ */
56
+ downloadOrderProformaInvoiceRaw(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
57
+ /**
58
+ *
59
+ */
60
+ downloadOrderProformaInvoice(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
50
61
  /**
51
62
  *
52
63
  */
@@ -170,6 +170,50 @@ var OrdersPublicApi = /** @class */ (function (_super) {
170
170
  });
171
171
  });
172
172
  };
173
+ /**
174
+ *
175
+ */
176
+ OrdersPublicApi.prototype.downloadOrderProformaInvoiceRaw = function (requestParameters, initOverrides) {
177
+ return __awaiter(this, void 0, void 0, function () {
178
+ var queryParameters, headerParameters, response;
179
+ return __generator(this, function (_a) {
180
+ switch (_a.label) {
181
+ case 0:
182
+ if (requestParameters['orderId'] == null) {
183
+ throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling downloadOrderProformaInvoice().');
184
+ }
185
+ queryParameters = {};
186
+ headerParameters = {};
187
+ return [4 /*yield*/, this.request({
188
+ path: "/orders/{orderId}/proforma/download".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
189
+ method: 'GET',
190
+ headers: headerParameters,
191
+ query: queryParameters,
192
+ }, initOverrides)];
193
+ case 1:
194
+ response = _a.sent();
195
+ return [2 /*return*/, new runtime.BlobApiResponse(response)];
196
+ }
197
+ });
198
+ });
199
+ };
200
+ /**
201
+ *
202
+ */
203
+ OrdersPublicApi.prototype.downloadOrderProformaInvoice = function (requestParameters, initOverrides) {
204
+ return __awaiter(this, void 0, void 0, function () {
205
+ var response;
206
+ return __generator(this, function (_a) {
207
+ switch (_a.label) {
208
+ case 0: return [4 /*yield*/, this.downloadOrderProformaInvoiceRaw(requestParameters, initOverrides)];
209
+ case 1:
210
+ response = _a.sent();
211
+ return [4 /*yield*/, response.value()];
212
+ case 2: return [2 /*return*/, _a.sent()];
213
+ }
214
+ });
215
+ });
216
+ };
173
217
  /**
174
218
  *
175
219
  */
@@ -18,6 +18,10 @@ export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionReques
18
18
  subscriptionId: string;
19
19
  createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
20
20
  }
21
+ export interface SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest {
22
+ subscriptionId: string;
23
+ invoiceId: string;
24
+ }
21
25
  export interface SubscriptionsPublicApiGetSubscriptionRequest {
22
26
  subscriptionId: string;
23
27
  }
@@ -51,6 +55,16 @@ export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
51
55
  * Create a new manual transaction for subscription invoice
52
56
  */
53
57
  createSubscriptionManualTransaction(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
58
+ /**
59
+ * Downloads a pro-forma invoice for a specific subscription
60
+ * Download subscription pro-forma invoice
61
+ */
62
+ downloadSubscriptionProformaInvoiceRaw(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
63
+ /**
64
+ * Downloads a pro-forma invoice for a specific subscription
65
+ * Download subscription pro-forma invoice
66
+ */
67
+ downloadSubscriptionProformaInvoice(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
54
68
  /**
55
69
  *
56
70
  */
@@ -170,6 +170,55 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
170
170
  });
171
171
  });
172
172
  };
173
+ /**
174
+ * Downloads a pro-forma invoice for a specific subscription
175
+ * Download subscription pro-forma invoice
176
+ */
177
+ SubscriptionsPublicApi.prototype.downloadSubscriptionProformaInvoiceRaw = function (requestParameters, initOverrides) {
178
+ return __awaiter(this, void 0, void 0, function () {
179
+ var queryParameters, headerParameters, response;
180
+ return __generator(this, function (_a) {
181
+ switch (_a.label) {
182
+ case 0:
183
+ if (requestParameters['subscriptionId'] == null) {
184
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling downloadSubscriptionProformaInvoice().');
185
+ }
186
+ if (requestParameters['invoiceId'] == null) {
187
+ throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling downloadSubscriptionProformaInvoice().');
188
+ }
189
+ queryParameters = {};
190
+ headerParameters = {};
191
+ return [4 /*yield*/, this.request({
192
+ path: "/subscriptions/{subscriptionId}/invoices/{invoiceId}/proforma/download".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
193
+ method: 'GET',
194
+ headers: headerParameters,
195
+ query: queryParameters,
196
+ }, initOverrides)];
197
+ case 1:
198
+ response = _a.sent();
199
+ return [2 /*return*/, new runtime.BlobApiResponse(response)];
200
+ }
201
+ });
202
+ });
203
+ };
204
+ /**
205
+ * Downloads a pro-forma invoice for a specific subscription
206
+ * Download subscription pro-forma invoice
207
+ */
208
+ SubscriptionsPublicApi.prototype.downloadSubscriptionProformaInvoice = function (requestParameters, initOverrides) {
209
+ return __awaiter(this, void 0, void 0, function () {
210
+ var response;
211
+ return __generator(this, function (_a) {
212
+ switch (_a.label) {
213
+ case 0: return [4 /*yield*/, this.downloadSubscriptionProformaInvoiceRaw(requestParameters, initOverrides)];
214
+ case 1:
215
+ response = _a.sent();
216
+ return [4 /*yield*/, response.value()];
217
+ case 2: return [2 /*return*/, _a.sent()];
218
+ }
219
+ });
220
+ });
221
+ };
173
222
  /**
174
223
  *
175
224
  */
@@ -27,18 +27,6 @@ export interface AuctionsStatsDto {
27
27
  * @memberof AuctionsStatsDto
28
28
  */
29
29
  totalAuctionsCount: number;
30
- /**
31
- * Number of finished auctions that ended with a sale (had a bid)
32
- * @type {number}
33
- * @memberof AuctionsStatsDto
34
- */
35
- finishedAuctionsWithSaleCount: number;
36
- /**
37
- * Number of finished auctions that ended without a sale (no bid)
38
- * @type {number}
39
- * @memberof AuctionsStatsDto
40
- */
41
- finishedAuctionsWithoutSaleCount: number;
42
30
  /**
43
31
  * Total number of distinct accounts that use paid auctions
44
32
  * @type {number}
@@ -26,10 +26,6 @@ function instanceOfAuctionsStatsDto(value) {
26
26
  return false;
27
27
  if (!('totalAuctionsCount' in value) || value['totalAuctionsCount'] === undefined)
28
28
  return false;
29
- if (!('finishedAuctionsWithSaleCount' in value) || value['finishedAuctionsWithSaleCount'] === undefined)
30
- return false;
31
- if (!('finishedAuctionsWithoutSaleCount' in value) || value['finishedAuctionsWithoutSaleCount'] === undefined)
32
- return false;
33
29
  if (!('accountsUsingPaidAuctionsCount' in value) || value['accountsUsingPaidAuctionsCount'] === undefined)
34
30
  return false;
35
31
  return true;
@@ -44,8 +40,6 @@ function AuctionsStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
44
40
  return {
45
41
  'paidAuctionsCount': json['paidAuctionsCount'],
46
42
  'totalAuctionsCount': json['totalAuctionsCount'],
47
- 'finishedAuctionsWithSaleCount': json['finishedAuctionsWithSaleCount'],
48
- 'finishedAuctionsWithoutSaleCount': json['finishedAuctionsWithoutSaleCount'],
49
43
  'accountsUsingPaidAuctionsCount': json['accountsUsingPaidAuctionsCount'],
50
44
  };
51
45
  }
@@ -60,8 +54,6 @@ function AuctionsStatsDtoToJSONTyped(value, ignoreDiscriminator) {
60
54
  return {
61
55
  'paidAuctionsCount': value['paidAuctionsCount'],
62
56
  'totalAuctionsCount': value['totalAuctionsCount'],
63
- 'finishedAuctionsWithSaleCount': value['finishedAuctionsWithSaleCount'],
64
- 'finishedAuctionsWithoutSaleCount': value['finishedAuctionsWithoutSaleCount'],
65
57
  'accountsUsingPaidAuctionsCount': value['accountsUsingPaidAuctionsCount'],
66
58
  };
67
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.395",
3
+ "version": "0.0.397",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -52,6 +52,10 @@ export interface OrdersPublicApiCreateOrderManualTransactionRequest {
52
52
  createManualTransactionInput: CreateManualTransactionInput;
53
53
  }
54
54
 
55
+ export interface OrdersPublicApiDownloadOrderProformaInvoiceRequest {
56
+ orderId: string;
57
+ }
58
+
55
59
  export interface OrdersPublicApiGetOrderRequest {
56
60
  orderId: string;
57
61
  }
@@ -146,6 +150,39 @@ export class OrdersPublicApi extends runtime.BaseAPI {
146
150
  await this.createOrderManualTransactionRaw(requestParameters, initOverrides);
147
151
  }
148
152
 
153
+ /**
154
+ *
155
+ */
156
+ async downloadOrderProformaInvoiceRaw(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
157
+ if (requestParameters['orderId'] == null) {
158
+ throw new runtime.RequiredError(
159
+ 'orderId',
160
+ 'Required parameter "orderId" was null or undefined when calling downloadOrderProformaInvoice().'
161
+ );
162
+ }
163
+
164
+ const queryParameters: any = {};
165
+
166
+ const headerParameters: runtime.HTTPHeaders = {};
167
+
168
+ const response = await this.request({
169
+ path: `/orders/{orderId}/proforma/download`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides);
174
+
175
+ return new runtime.BlobApiResponse(response);
176
+ }
177
+
178
+ /**
179
+ *
180
+ */
181
+ async downloadOrderProformaInvoice(requestParameters: OrdersPublicApiDownloadOrderProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
182
+ const response = await this.downloadOrderProformaInvoiceRaw(requestParameters, initOverrides);
183
+ return await response.value();
184
+ }
185
+
149
186
  /**
150
187
  *
151
188
  */
@@ -52,6 +52,11 @@ export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionReques
52
52
  createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
53
53
  }
54
54
 
55
+ export interface SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest {
56
+ subscriptionId: string;
57
+ invoiceId: string;
58
+ }
59
+
55
60
  export interface SubscriptionsPublicApiGetSubscriptionRequest {
56
61
  subscriptionId: string;
57
62
  }
@@ -151,6 +156,48 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
151
156
  await this.createSubscriptionManualTransactionRaw(requestParameters, initOverrides);
152
157
  }
153
158
 
159
+ /**
160
+ * Downloads a pro-forma invoice for a specific subscription
161
+ * Download subscription pro-forma invoice
162
+ */
163
+ async downloadSubscriptionProformaInvoiceRaw(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
164
+ if (requestParameters['subscriptionId'] == null) {
165
+ throw new runtime.RequiredError(
166
+ 'subscriptionId',
167
+ 'Required parameter "subscriptionId" was null or undefined when calling downloadSubscriptionProformaInvoice().'
168
+ );
169
+ }
170
+
171
+ if (requestParameters['invoiceId'] == null) {
172
+ throw new runtime.RequiredError(
173
+ 'invoiceId',
174
+ 'Required parameter "invoiceId" was null or undefined when calling downloadSubscriptionProformaInvoice().'
175
+ );
176
+ }
177
+
178
+ const queryParameters: any = {};
179
+
180
+ const headerParameters: runtime.HTTPHeaders = {};
181
+
182
+ const response = await this.request({
183
+ path: `/subscriptions/{subscriptionId}/invoices/{invoiceId}/proforma/download`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
184
+ method: 'GET',
185
+ headers: headerParameters,
186
+ query: queryParameters,
187
+ }, initOverrides);
188
+
189
+ return new runtime.BlobApiResponse(response);
190
+ }
191
+
192
+ /**
193
+ * Downloads a pro-forma invoice for a specific subscription
194
+ * Download subscription pro-forma invoice
195
+ */
196
+ async downloadSubscriptionProformaInvoice(requestParameters: SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
197
+ const response = await this.downloadSubscriptionProformaInvoiceRaw(requestParameters, initOverrides);
198
+ return await response.value();
199
+ }
200
+
154
201
  /**
155
202
  *
156
203
  */
@@ -31,18 +31,6 @@ export interface AuctionsStatsDto {
31
31
  * @memberof AuctionsStatsDto
32
32
  */
33
33
  totalAuctionsCount: number;
34
- /**
35
- * Number of finished auctions that ended with a sale (had a bid)
36
- * @type {number}
37
- * @memberof AuctionsStatsDto
38
- */
39
- finishedAuctionsWithSaleCount: number;
40
- /**
41
- * Number of finished auctions that ended without a sale (no bid)
42
- * @type {number}
43
- * @memberof AuctionsStatsDto
44
- */
45
- finishedAuctionsWithoutSaleCount: number;
46
34
  /**
47
35
  * Total number of distinct accounts that use paid auctions
48
36
  * @type {number}
@@ -57,8 +45,6 @@ export interface AuctionsStatsDto {
57
45
  export function instanceOfAuctionsStatsDto(value: object): value is AuctionsStatsDto {
58
46
  if (!('paidAuctionsCount' in value) || value['paidAuctionsCount'] === undefined) return false;
59
47
  if (!('totalAuctionsCount' in value) || value['totalAuctionsCount'] === undefined) return false;
60
- if (!('finishedAuctionsWithSaleCount' in value) || value['finishedAuctionsWithSaleCount'] === undefined) return false;
61
- if (!('finishedAuctionsWithoutSaleCount' in value) || value['finishedAuctionsWithoutSaleCount'] === undefined) return false;
62
48
  if (!('accountsUsingPaidAuctionsCount' in value) || value['accountsUsingPaidAuctionsCount'] === undefined) return false;
63
49
  return true;
64
50
  }
@@ -75,8 +61,6 @@ export function AuctionsStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
75
61
 
76
62
  'paidAuctionsCount': json['paidAuctionsCount'],
77
63
  'totalAuctionsCount': json['totalAuctionsCount'],
78
- 'finishedAuctionsWithSaleCount': json['finishedAuctionsWithSaleCount'],
79
- 'finishedAuctionsWithoutSaleCount': json['finishedAuctionsWithoutSaleCount'],
80
64
  'accountsUsingPaidAuctionsCount': json['accountsUsingPaidAuctionsCount'],
81
65
  };
82
66
  }
@@ -94,8 +78,6 @@ export function AuctionsStatsDtoToJSONTyped(value?: AuctionsStatsDto | null, ign
94
78
 
95
79
  'paidAuctionsCount': value['paidAuctionsCount'],
96
80
  'totalAuctionsCount': value['totalAuctionsCount'],
97
- 'finishedAuctionsWithSaleCount': value['finishedAuctionsWithSaleCount'],
98
- 'finishedAuctionsWithoutSaleCount': value['finishedAuctionsWithoutSaleCount'],
99
81
  'accountsUsingPaidAuctionsCount': value['accountsUsingPaidAuctionsCount'],
100
82
  };
101
83
  }