@tradecafe/offer-service-sdk 0.0.7 → 0.0.9

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.
@@ -1,15 +1,15 @@
1
- .gitignore
2
- .openapi-generator-ignore
3
- api.ts
4
- api/apis.ts
5
- api/futureBidsApi.ts
6
- api/healthApi.ts
7
- api/matchedOffersApi.ts
8
- api/offersApi.ts
9
- git_push.sh
10
- model/healthControllerPing200Response.ts
11
- model/healthControllerPing200ResponseInfoValue.ts
12
- model/healthControllerPing503Response.ts
13
- model/models.ts
14
- package.json
15
- tsconfig.json
1
+ .gitignore
2
+ .openapi-generator-ignore
3
+ api.ts
4
+ api/apis.ts
5
+ api/futureBidsApi.ts
6
+ api/healthApi.ts
7
+ api/matchedOffersApi.ts
8
+ api/offersApi.ts
9
+ git_push.sh
10
+ model/healthControllerPing200Response.ts
11
+ model/healthControllerPing200ResponseInfoValue.ts
12
+ model/healthControllerPing503Response.ts
13
+ model/models.ts
14
+ package.json
15
+ tsconfig.json
@@ -90,12 +90,14 @@ export class FutureBidsApi {
90
90
  * @summary Adds future bid to the matched offer with the provided ID
91
91
  * @param matchedOfferId
92
92
  * @param userId
93
+ * @param account
93
94
  * @param body
94
95
  */
95
- public async futureBidsControllerAddfuturebid (matchedOfferId: string, userId: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
96
- const localVarPath = this.basePath + '/future-bids/{matchedOfferId}/{userId}'
96
+ public async futureBidsControllerAddfuturebid (matchedOfferId: string, userId: string, account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
97
+ const localVarPath = this.basePath + '/future-bids/{account}/{matchedOfferId}/{userId}'
97
98
  .replace('{' + 'matchedOfferId' + '}', encodeURIComponent(String(matchedOfferId)))
98
- .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
99
+ .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
100
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
99
101
  let localVarQueryParameters: any = {};
100
102
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
101
103
  let localVarFormParams: any = {};
@@ -110,6 +112,11 @@ export class FutureBidsApi {
110
112
  throw new Error('Required parameter userId was null or undefined when calling futureBidsControllerAddfuturebid.');
111
113
  }
112
114
 
115
+ // verify required parameter 'account' is not null or undefined
116
+ if (account === null || account === undefined) {
117
+ throw new Error('Required parameter account was null or undefined when calling futureBidsControllerAddfuturebid.');
118
+ }
119
+
113
120
  // verify required parameter 'body' is not null or undefined
114
121
  if (body === null || body === undefined) {
115
122
  throw new Error('Required parameter body was null or undefined when calling futureBidsControllerAddfuturebid.');
@@ -163,17 +170,24 @@ export class FutureBidsApi {
163
170
  /**
164
171
  *
165
172
  * @summary Retrieves a list of all future bids
173
+ * @param account
166
174
  * @param body
167
175
  * @param skip
168
176
  * @param limit
169
177
  * @param sort
170
178
  */
171
- public async futureBidsControllerFindall (body: object, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
172
- const localVarPath = this.basePath + '/future-bids';
179
+ public async futureBidsControllerFindall (account: string, body: object, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
180
+ const localVarPath = this.basePath + '/future-bids/{account}'
181
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
173
182
  let localVarQueryParameters: any = {};
174
183
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
175
184
  let localVarFormParams: any = {};
176
185
 
186
+ // verify required parameter 'account' is not null or undefined
187
+ if (account === null || account === undefined) {
188
+ throw new Error('Required parameter account was null or undefined when calling futureBidsControllerFindall.');
189
+ }
190
+
177
191
  // verify required parameter 'body' is not null or undefined
178
192
  if (body === null || body === undefined) {
179
193
  throw new Error('Required parameter body was null or undefined when calling futureBidsControllerFindall.');
@@ -240,10 +254,12 @@ export class FutureBidsApi {
240
254
  *
241
255
  * @summary Remove future bid
242
256
  * @param id
257
+ * @param account
243
258
  */
244
- public async futureBidsControllerRemovefuturebid (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
245
- const localVarPath = this.basePath + '/future-bids/{id}'
246
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
259
+ public async futureBidsControllerRemovefuturebid (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
260
+ const localVarPath = this.basePath + '/future-bids/{account}/{id}'
261
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
262
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
247
263
  let localVarQueryParameters: any = {};
248
264
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
249
265
  let localVarFormParams: any = {};
@@ -253,6 +269,11 @@ export class FutureBidsApi {
253
269
  throw new Error('Required parameter id was null or undefined when calling futureBidsControllerRemovefuturebid.');
254
270
  }
255
271
 
272
+ // verify required parameter 'account' is not null or undefined
273
+ if (account === null || account === undefined) {
274
+ throw new Error('Required parameter account was null or undefined when calling futureBidsControllerRemovefuturebid.');
275
+ }
276
+
256
277
  (<any>Object).assign(localVarHeaderParams, options.headers);
257
278
 
258
279
  let localVarUseFormData = false;
@@ -301,11 +322,13 @@ export class FutureBidsApi {
301
322
  *
302
323
  * @summary update the future bid
303
324
  * @param id
325
+ * @param account
304
326
  * @param body
305
327
  */
306
- public async futureBidsControllerUpdate (id: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
307
- const localVarPath = this.basePath + '/future-bids/{id}'
308
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
328
+ public async futureBidsControllerUpdate (id: string, account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
329
+ const localVarPath = this.basePath + '/future-bids/{account}/{id}'
330
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
331
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
309
332
  let localVarQueryParameters: any = {};
310
333
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
311
334
  let localVarFormParams: any = {};
@@ -315,6 +338,11 @@ export class FutureBidsApi {
315
338
  throw new Error('Required parameter id was null or undefined when calling futureBidsControllerUpdate.');
316
339
  }
317
340
 
341
+ // verify required parameter 'account' is not null or undefined
342
+ if (account === null || account === undefined) {
343
+ throw new Error('Required parameter account was null or undefined when calling futureBidsControllerUpdate.');
344
+ }
345
+
318
346
  // verify required parameter 'body' is not null or undefined
319
347
  if (body === null || body === undefined) {
320
348
  throw new Error('Required parameter body was null or undefined when calling futureBidsControllerUpdate.');
@@ -806,7 +806,7 @@ export class MatchedOffersApi {
806
806
  }
807
807
  /**
808
808
  *
809
- * @summary Set confirmation index for the matched offer with the provided ID
809
+ * @summary Sets confirmation index for the matched offer with the provided ID
810
810
  * @param id
811
811
  * @param account
812
812
  * @param body
package/api/offersApi.ts CHANGED
@@ -237,7 +237,7 @@ export class OffersApi {
237
237
  }
238
238
  /**
239
239
  *
240
- * @summary Attach matched offers to the offer
240
+ * @summary Attach matched offer(s) to the offer
241
241
  * @param id
242
242
  * @param account
243
243
  * @param body
@@ -312,7 +312,7 @@ export class OffersApi {
312
312
  }
313
313
  /**
314
314
  *
315
- * @summary Cancel the offer with the provided ID
315
+ * @summary Cancel the offers with the provided IDs
316
316
  * @param account
317
317
  * @param body
318
318
  */
@@ -338,7 +338,7 @@ export class OffersApi {
338
338
  let localVarUseFormData = false;
339
339
 
340
340
  let localVarRequestOptions: localVarRequest.Options = {
341
- method: 'GET',
341
+ method: 'PUT',
342
342
  qs: localVarQueryParameters,
343
343
  headers: localVarHeaderParams,
344
344
  uri: localVarPath,
@@ -1303,7 +1303,7 @@ export class OffersApi {
1303
1303
  }
1304
1304
  /**
1305
1305
  *
1306
- * @summary Updates the offer status with the provided ID
1306
+ * @summary Updates the offer status of offers with the provided IDs
1307
1307
  * @param account
1308
1308
  * @param body
1309
1309
  */
@@ -1371,7 +1371,7 @@ export class OffersApi {
1371
1371
  }
1372
1372
  /**
1373
1373
  *
1374
- * @summary Validate the status with the provided ID
1374
+ * @summary Validate the status update for offers with the provided IDs
1375
1375
  * @param account
1376
1376
  * @param body
1377
1377
  */
@@ -1,18 +1,18 @@
1
- /// <reference types="node" />
2
- export * from './futureBidsApi';
3
- import { FutureBidsApi } from './futureBidsApi';
4
- export * from './healthApi';
5
- import { HealthApi } from './healthApi';
6
- export * from './matchedOffersApi';
7
- import { MatchedOffersApi } from './matchedOffersApi';
8
- export * from './offersApi';
9
- import { OffersApi } from './offersApi';
10
- import * as http from 'http';
11
- export declare class HttpError extends Error {
12
- response: http.IncomingMessage;
13
- body: any;
14
- statusCode?: number | undefined;
15
- constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
16
- }
17
- export { RequestFile } from '../model/models';
18
- export declare const APIS: (typeof FutureBidsApi | typeof HealthApi | typeof MatchedOffersApi | typeof OffersApi)[];
1
+ /// <reference types="node" />
2
+ export * from './futureBidsApi';
3
+ import { FutureBidsApi } from './futureBidsApi';
4
+ export * from './healthApi';
5
+ import { HealthApi } from './healthApi';
6
+ export * from './matchedOffersApi';
7
+ import { MatchedOffersApi } from './matchedOffersApi';
8
+ export * from './offersApi';
9
+ import { OffersApi } from './offersApi';
10
+ import * as http from 'http';
11
+ export declare class HttpError extends Error {
12
+ response: http.IncomingMessage;
13
+ body: any;
14
+ statusCode?: number | undefined;
15
+ constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
16
+ }
17
+ export { RequestFile } from '../model/models';
18
+ export declare const APIS: (typeof FutureBidsApi | typeof HealthApi | typeof MatchedOffersApi | typeof OffersApi)[];
package/dist/api/apis.js CHANGED
@@ -1,55 +1,55 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.APIS = exports.HttpError = void 0;
33
- __exportStar(require("./futureBidsApi"), exports);
34
- var futureBidsApi_1 = require("./futureBidsApi");
35
- __exportStar(require("./healthApi"), exports);
36
- var healthApi_1 = require("./healthApi");
37
- __exportStar(require("./matchedOffersApi"), exports);
38
- var matchedOffersApi_1 = require("./matchedOffersApi");
39
- __exportStar(require("./offersApi"), exports);
40
- var offersApi_1 = require("./offersApi");
41
- var HttpError = (function (_super) {
42
- __extends(HttpError, _super);
43
- function HttpError(response, body, statusCode) {
44
- var _this = _super.call(this, 'HTTP request failed') || this;
45
- _this.response = response;
46
- _this.body = body;
47
- _this.statusCode = statusCode;
48
- _this.name = 'HttpError';
49
- return _this;
50
- }
51
- return HttpError;
52
- }(Error));
53
- exports.HttpError = HttpError;
54
- exports.APIS = [futureBidsApi_1.FutureBidsApi, healthApi_1.HealthApi, matchedOffersApi_1.MatchedOffersApi, offersApi_1.OffersApi];
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.APIS = exports.HttpError = void 0;
33
+ __exportStar(require("./futureBidsApi"), exports);
34
+ var futureBidsApi_1 = require("./futureBidsApi");
35
+ __exportStar(require("./healthApi"), exports);
36
+ var healthApi_1 = require("./healthApi");
37
+ __exportStar(require("./matchedOffersApi"), exports);
38
+ var matchedOffersApi_1 = require("./matchedOffersApi");
39
+ __exportStar(require("./offersApi"), exports);
40
+ var offersApi_1 = require("./offersApi");
41
+ var HttpError = (function (_super) {
42
+ __extends(HttpError, _super);
43
+ function HttpError(response, body, statusCode) {
44
+ var _this = _super.call(this, 'HTTP request failed') || this;
45
+ _this.response = response;
46
+ _this.body = body;
47
+ _this.statusCode = statusCode;
48
+ _this.name = 'HttpError';
49
+ return _this;
50
+ }
51
+ return HttpError;
52
+ }(Error));
53
+ exports.HttpError = HttpError;
54
+ exports.APIS = [futureBidsApi_1.FutureBidsApi, healthApi_1.HealthApi, matchedOffersApi_1.MatchedOffersApi, offersApi_1.OffersApi];
55
55
  //# sourceMappingURL=apis.js.map
@@ -1,55 +1,55 @@
1
- /// <reference types="node" />
2
- import http from 'http';
3
- import { Authentication, Interceptor } from '../model/models';
4
- export declare enum FutureBidsApiApiKeys {
5
- }
6
- export declare class FutureBidsApi {
7
- protected _basePath: string;
8
- protected _defaultHeaders: any;
9
- protected _useQuerystring: boolean;
10
- protected authentications: {
11
- default: Authentication;
12
- };
13
- protected interceptors: Interceptor[];
14
- constructor(basePath?: string);
15
- set useQuerystring(value: boolean);
16
- set basePath(basePath: string);
17
- set defaultHeaders(defaultHeaders: any);
18
- get defaultHeaders(): any;
19
- get basePath(): string;
20
- setDefaultAuthentication(auth: Authentication): void;
21
- setApiKey(key: FutureBidsApiApiKeys, value: string): void;
22
- addInterceptor(interceptor: Interceptor): void;
23
- futureBidsControllerAddfuturebid(matchedOfferId: string, userId: string, body: object, options?: {
24
- headers: {
25
- [name: string]: string;
26
- };
27
- }): Promise<{
28
- response: http.IncomingMessage;
29
- body?: any;
30
- }>;
31
- futureBidsControllerFindall(body: object, skip?: number, limit?: number, sort?: string, options?: {
32
- headers: {
33
- [name: string]: string;
34
- };
35
- }): Promise<{
36
- response: http.IncomingMessage;
37
- body?: any;
38
- }>;
39
- futureBidsControllerRemovefuturebid(id: string, options?: {
40
- headers: {
41
- [name: string]: string;
42
- };
43
- }): Promise<{
44
- response: http.IncomingMessage;
45
- body?: any;
46
- }>;
47
- futureBidsControllerUpdate(id: string, body: object, options?: {
48
- headers: {
49
- [name: string]: string;
50
- };
51
- }): Promise<{
52
- response: http.IncomingMessage;
53
- body?: any;
54
- }>;
55
- }
1
+ /// <reference types="node" />
2
+ import http from 'http';
3
+ import { Authentication, Interceptor } from '../model/models';
4
+ export declare enum FutureBidsApiApiKeys {
5
+ }
6
+ export declare class FutureBidsApi {
7
+ protected _basePath: string;
8
+ protected _defaultHeaders: any;
9
+ protected _useQuerystring: boolean;
10
+ protected authentications: {
11
+ default: Authentication;
12
+ };
13
+ protected interceptors: Interceptor[];
14
+ constructor(basePath?: string);
15
+ set useQuerystring(value: boolean);
16
+ set basePath(basePath: string);
17
+ set defaultHeaders(defaultHeaders: any);
18
+ get defaultHeaders(): any;
19
+ get basePath(): string;
20
+ setDefaultAuthentication(auth: Authentication): void;
21
+ setApiKey(key: FutureBidsApiApiKeys, value: string): void;
22
+ addInterceptor(interceptor: Interceptor): void;
23
+ futureBidsControllerAddfuturebid(matchedOfferId: string, userId: string, account: string, body: object, options?: {
24
+ headers: {
25
+ [name: string]: string;
26
+ };
27
+ }): Promise<{
28
+ response: http.IncomingMessage;
29
+ body?: any;
30
+ }>;
31
+ futureBidsControllerFindall(account: string, body: object, skip?: number, limit?: number, sort?: string, options?: {
32
+ headers: {
33
+ [name: string]: string;
34
+ };
35
+ }): Promise<{
36
+ response: http.IncomingMessage;
37
+ body?: any;
38
+ }>;
39
+ futureBidsControllerRemovefuturebid(id: string, account: string, options?: {
40
+ headers: {
41
+ [name: string]: string;
42
+ };
43
+ }): Promise<{
44
+ response: http.IncomingMessage;
45
+ body?: any;
46
+ }>;
47
+ futureBidsControllerUpdate(id: string, account: string, body: object, options?: {
48
+ headers: {
49
+ [name: string]: string;
50
+ };
51
+ }): Promise<{
52
+ response: http.IncomingMessage;
53
+ body?: any;
54
+ }>;
55
+ }