@tradecafe/offer-service-sdk 0.0.21 → 0.0.22

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 (36) hide show
  1. package/api/automatedOffersApi.ts +0 -136
  2. package/api/futureBidsApi.ts +61 -0
  3. package/package.json +1 -1
  4. package/dist/api/apis.d.ts +0 -20
  5. package/dist/api/apis.js +0 -57
  6. package/dist/api/apis.js.map +0 -1
  7. package/dist/api/automatedOffersApi.d.ts +0 -119
  8. package/dist/api/automatedOffersApi.js +0 -931
  9. package/dist/api/automatedOffersApi.js.map +0 -1
  10. package/dist/api/futureBidsApi.d.ts +0 -55
  11. package/dist/api/futureBidsApi.js +0 -394
  12. package/dist/api/futureBidsApi.js.map +0 -1
  13. package/dist/api/healthApi.d.ts +0 -32
  14. package/dist/api/healthApi.js +0 -175
  15. package/dist/api/healthApi.js.map +0 -1
  16. package/dist/api/matchedOffersApi.d.ts +0 -159
  17. package/dist/api/matchedOffersApi.js +0 -1262
  18. package/dist/api/matchedOffersApi.js.map +0 -1
  19. package/dist/api/offersApi.d.ts +0 -183
  20. package/dist/api/offersApi.js +0 -1460
  21. package/dist/api/offersApi.js.map +0 -1
  22. package/dist/api.d.ts +0 -2
  23. package/dist/api.js +0 -19
  24. package/dist/api.js.map +0 -1
  25. package/dist/model/healthControllerPing200Response.d.ts +0 -24
  26. package/dist/model/healthControllerPing200Response.js +0 -36
  27. package/dist/model/healthControllerPing200Response.js.map +0 -1
  28. package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +0 -10
  29. package/dist/model/healthControllerPing200ResponseInfoValue.js +0 -37
  30. package/dist/model/healthControllerPing200ResponseInfoValue.js.map +0 -1
  31. package/dist/model/healthControllerPing503Response.d.ts +0 -24
  32. package/dist/model/healthControllerPing503Response.js +0 -36
  33. package/dist/model/healthControllerPing503Response.js.map +0 -1
  34. package/dist/model/models.d.ts +0 -49
  35. package/dist/model/models.js +0 -232
  36. package/dist/model/models.js.map +0 -1
@@ -460,67 +460,6 @@ export class AutomatedOffersApi {
460
460
  });
461
461
  });
462
462
  }
463
- /**
464
- *
465
- * @summary Get Relistings for execution
466
- * @param account
467
- */
468
- public async automatedOffersControllerGetrelistingsforexecution (account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
469
- const localVarPath = this.basePath + '/automated-offers/{account}/getRelistingsForExecution'
470
- .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
471
- let localVarQueryParameters: any = {};
472
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
473
- let localVarFormParams: any = {};
474
-
475
- // verify required parameter 'account' is not null or undefined
476
- if (account === null || account === undefined) {
477
- throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerGetrelistingsforexecution.');
478
- }
479
-
480
- (<any>Object).assign(localVarHeaderParams, options.headers);
481
-
482
- let localVarUseFormData = false;
483
-
484
- let localVarRequestOptions: localVarRequest.Options = {
485
- method: 'GET',
486
- qs: localVarQueryParameters,
487
- headers: localVarHeaderParams,
488
- uri: localVarPath,
489
- useQuerystring: this._useQuerystring,
490
- json: true,
491
- };
492
-
493
- let authenticationPromise = Promise.resolve();
494
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
495
-
496
- let interceptorPromise = authenticationPromise;
497
- for (const interceptor of this.interceptors) {
498
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
499
- }
500
-
501
- return interceptorPromise.then(() => {
502
- if (Object.keys(localVarFormParams).length) {
503
- if (localVarUseFormData) {
504
- (<any>localVarRequestOptions).formData = localVarFormParams;
505
- } else {
506
- localVarRequestOptions.form = localVarFormParams;
507
- }
508
- }
509
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
510
- localVarRequest(localVarRequestOptions, (error, response, body) => {
511
- if (error) {
512
- reject(error);
513
- } else {
514
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
515
- resolve({ response: response, body: body });
516
- } else {
517
- reject(new HttpError(response, body, response.statusCode));
518
- }
519
- }
520
- });
521
- });
522
- });
523
- }
524
463
  /**
525
464
  *
526
465
  * @summary Removes the automated offer with the provided ID
@@ -664,81 +603,6 @@ export class AutomatedOffersApi {
664
603
  });
665
604
  });
666
605
  }
667
- /**
668
- *
669
- * @summary Update Relistings after execution
670
- * @param automatedOfferId
671
- * @param id
672
- * @param account
673
- */
674
- public async automatedOffersControllerUpdaterelistingsafterexecution (automatedOfferId: string, id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
675
- const localVarPath = this.basePath + '/automated-offers/{account}/{automatedOfferId}/relistings/{id}/executed'
676
- .replace('{' + 'automatedOfferId' + '}', encodeURIComponent(String(automatedOfferId)))
677
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
678
- .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
679
- let localVarQueryParameters: any = {};
680
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
681
- let localVarFormParams: any = {};
682
-
683
- // verify required parameter 'automatedOfferId' is not null or undefined
684
- if (automatedOfferId === null || automatedOfferId === undefined) {
685
- throw new Error('Required parameter automatedOfferId was null or undefined when calling automatedOffersControllerUpdaterelistingsafterexecution.');
686
- }
687
-
688
- // verify required parameter 'id' is not null or undefined
689
- if (id === null || id === undefined) {
690
- throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerUpdaterelistingsafterexecution.');
691
- }
692
-
693
- // verify required parameter 'account' is not null or undefined
694
- if (account === null || account === undefined) {
695
- throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerUpdaterelistingsafterexecution.');
696
- }
697
-
698
- (<any>Object).assign(localVarHeaderParams, options.headers);
699
-
700
- let localVarUseFormData = false;
701
-
702
- let localVarRequestOptions: localVarRequest.Options = {
703
- method: 'PUT',
704
- qs: localVarQueryParameters,
705
- headers: localVarHeaderParams,
706
- uri: localVarPath,
707
- useQuerystring: this._useQuerystring,
708
- json: true,
709
- };
710
-
711
- let authenticationPromise = Promise.resolve();
712
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
713
-
714
- let interceptorPromise = authenticationPromise;
715
- for (const interceptor of this.interceptors) {
716
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
717
- }
718
-
719
- return interceptorPromise.then(() => {
720
- if (Object.keys(localVarFormParams).length) {
721
- if (localVarUseFormData) {
722
- (<any>localVarRequestOptions).formData = localVarFormParams;
723
- } else {
724
- localVarRequestOptions.form = localVarFormParams;
725
- }
726
- }
727
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
728
- localVarRequest(localVarRequestOptions, (error, response, body) => {
729
- if (error) {
730
- reject(error);
731
- } else {
732
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
733
- resolve({ response: response, body: body });
734
- } else {
735
- reject(new HttpError(response, body, response.statusCode));
736
- }
737
- }
738
- });
739
- });
740
- });
741
- }
742
606
  /**
743
607
  *
744
608
  * @summary Updates the relisting status
@@ -250,6 +250,67 @@ export class FutureBidsApi {
250
250
  });
251
251
  });
252
252
  }
253
+ /**
254
+ *
255
+ * @summary Get future bids statistics
256
+ * @param account
257
+ */
258
+ public async futureBidsControllerGetstats (account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
259
+ const localVarPath = this.basePath + '/future-bids/{account}/statistics'
260
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
261
+ let localVarQueryParameters: any = {};
262
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
263
+ let localVarFormParams: any = {};
264
+
265
+ // verify required parameter 'account' is not null or undefined
266
+ if (account === null || account === undefined) {
267
+ throw new Error('Required parameter account was null or undefined when calling futureBidsControllerGetstats.');
268
+ }
269
+
270
+ (<any>Object).assign(localVarHeaderParams, options.headers);
271
+
272
+ let localVarUseFormData = false;
273
+
274
+ let localVarRequestOptions: localVarRequest.Options = {
275
+ method: 'POST',
276
+ qs: localVarQueryParameters,
277
+ headers: localVarHeaderParams,
278
+ uri: localVarPath,
279
+ useQuerystring: this._useQuerystring,
280
+ json: true,
281
+ };
282
+
283
+ let authenticationPromise = Promise.resolve();
284
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
285
+
286
+ let interceptorPromise = authenticationPromise;
287
+ for (const interceptor of this.interceptors) {
288
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
289
+ }
290
+
291
+ return interceptorPromise.then(() => {
292
+ if (Object.keys(localVarFormParams).length) {
293
+ if (localVarUseFormData) {
294
+ (<any>localVarRequestOptions).formData = localVarFormParams;
295
+ } else {
296
+ localVarRequestOptions.form = localVarFormParams;
297
+ }
298
+ }
299
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
300
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
301
+ if (error) {
302
+ reject(error);
303
+ } else {
304
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
305
+ resolve({ response: response, body: body });
306
+ } else {
307
+ reject(new HttpError(response, body, response.statusCode));
308
+ }
309
+ }
310
+ });
311
+ });
312
+ });
313
+ }
253
314
  /**
254
315
  *
255
316
  * @summary Remove future bid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradecafe/offer-service-sdk",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "NodeJS client for @tradecafe/offer-service-sdk",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,20 +0,0 @@
1
- /// <reference types="node" />
2
- export * from './automatedOffersApi';
3
- import { AutomatedOffersApi } from './automatedOffersApi';
4
- export * from './futureBidsApi';
5
- import { FutureBidsApi } from './futureBidsApi';
6
- export * from './healthApi';
7
- import { HealthApi } from './healthApi';
8
- export * from './matchedOffersApi';
9
- import { MatchedOffersApi } from './matchedOffersApi';
10
- export * from './offersApi';
11
- import { OffersApi } from './offersApi';
12
- import * as http from 'http';
13
- export declare class HttpError extends Error {
14
- response: http.IncomingMessage;
15
- body: any;
16
- statusCode?: number | undefined;
17
- constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
18
- }
19
- export { RequestFile } from '../model/models';
20
- export declare const APIS: (typeof AutomatedOffersApi | typeof FutureBidsApi | typeof HealthApi | typeof MatchedOffersApi | typeof OffersApi)[];
package/dist/api/apis.js DELETED
@@ -1,57 +0,0 @@
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("./automatedOffersApi"), exports);
34
- var automatedOffersApi_1 = require("./automatedOffersApi");
35
- __exportStar(require("./futureBidsApi"), exports);
36
- var futureBidsApi_1 = require("./futureBidsApi");
37
- __exportStar(require("./healthApi"), exports);
38
- var healthApi_1 = require("./healthApi");
39
- __exportStar(require("./matchedOffersApi"), exports);
40
- var matchedOffersApi_1 = require("./matchedOffersApi");
41
- __exportStar(require("./offersApi"), exports);
42
- var offersApi_1 = require("./offersApi");
43
- var HttpError = (function (_super) {
44
- __extends(HttpError, _super);
45
- function HttpError(response, body, statusCode) {
46
- var _this = _super.call(this, 'HTTP request failed') || this;
47
- _this.response = response;
48
- _this.body = body;
49
- _this.statusCode = statusCode;
50
- _this.name = 'HttpError';
51
- return _this;
52
- }
53
- return HttpError;
54
- }(Error));
55
- exports.HttpError = HttpError;
56
- exports.APIS = [automatedOffersApi_1.AutomatedOffersApi, futureBidsApi_1.FutureBidsApi, healthApi_1.HealthApi, matchedOffersApi_1.MatchedOffersApi, offersApi_1.OffersApi];
57
- //# sourceMappingURL=apis.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apis.js","sourceRoot":"","sources":["../../api/apis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAA0D;AAC1D,kDAAgC;AAChC,iDAAgD;AAChD,8CAA4B;AAC5B,yCAAwC;AACxC,qDAAmC;AACnC,uDAAsD;AACtD,8CAA4B;AAC5B,yCAAwC;AAGxC;IAA+B,6BAAK;IAChC,mBAAoB,QAA8B,EAAS,IAAS,EAAS,UAAmB;QAAhG,YACI,kBAAM,qBAAqB,CAAC,SAE/B;QAHmB,cAAQ,GAAR,QAAQ,CAAsB;QAAS,UAAI,GAAJ,IAAI,CAAK;QAAS,gBAAU,GAAV,UAAU,CAAS;QAE5F,KAAI,CAAC,IAAI,GAAG,WAAW,CAAC;;IAC5B,CAAC;IACL,gBAAC;AAAD,CAAC,AALD,CAA+B,KAAK,GAKnC;AALY,8BAAS;AAST,QAAA,IAAI,GAAG,CAAC,uCAAkB,EAAE,6BAAa,EAAE,qBAAS,EAAE,mCAAgB,EAAE,qBAAS,CAAC,CAAC"}
@@ -1,119 +0,0 @@
1
- /// <reference types="node" />
2
- import http from 'http';
3
- import { Authentication, Interceptor } from '../model/models';
4
- export declare enum AutomatedOffersApiApiKeys {
5
- }
6
- export declare class AutomatedOffersApi {
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: AutomatedOffersApiApiKeys, value: string): void;
22
- addInterceptor(interceptor: Interceptor): void;
23
- automatedOffersControllerCreate(account: string, body: object, options?: {
24
- headers: {
25
- [name: string]: string;
26
- };
27
- }): Promise<{
28
- response: http.IncomingMessage;
29
- body?: any;
30
- }>;
31
- automatedOffersControllerFilter(account: string, skip?: number, limit?: number, sort?: string, body?: object, options?: {
32
- headers: {
33
- [name: string]: string;
34
- };
35
- }): Promise<{
36
- response: http.IncomingMessage;
37
- body?: any;
38
- }>;
39
- automatedOffersControllerFindall(account: string, body: object, skip?: number, limit?: number, sort?: string, options?: {
40
- headers: {
41
- [name: string]: string;
42
- };
43
- }): Promise<{
44
- response: http.IncomingMessage;
45
- body?: any;
46
- }>;
47
- automatedOffersControllerFindone(id: string, account: string, options?: {
48
- headers: {
49
- [name: string]: string;
50
- };
51
- }): Promise<{
52
- response: http.IncomingMessage;
53
- body?: any;
54
- }>;
55
- automatedOffersControllerGetbids(account: string, skip?: number, limit?: number, sort?: string, body?: object, options?: {
56
- headers: {
57
- [name: string]: string;
58
- };
59
- }): Promise<{
60
- response: http.IncomingMessage;
61
- body?: any;
62
- }>;
63
- automatedOffersControllerGetrelistingsforexecution(account: string, options?: {
64
- headers: {
65
- [name: string]: string;
66
- };
67
- }): Promise<{
68
- response: http.IncomingMessage;
69
- body?: any;
70
- }>;
71
- automatedOffersControllerRemove(id: string, account: string, options?: {
72
- headers: {
73
- [name: string]: string;
74
- };
75
- }): Promise<{
76
- response: http.IncomingMessage;
77
- body?: any;
78
- }>;
79
- automatedOffersControllerUpdate(id: string, account: string, body: object, options?: {
80
- headers: {
81
- [name: string]: string;
82
- };
83
- }): Promise<{
84
- response: http.IncomingMessage;
85
- body?: any;
86
- }>;
87
- automatedOffersControllerUpdaterelistingsafterexecution(automatedOfferId: string, id: string, account: string, options?: {
88
- headers: {
89
- [name: string]: string;
90
- };
91
- }): Promise<{
92
- response: http.IncomingMessage;
93
- body?: any;
94
- }>;
95
- automatedOffersControllerUpdaterelistingstatus(automatedOfferId: string, id: string, account: string, body: object, options?: {
96
- headers: {
97
- [name: string]: string;
98
- };
99
- }): Promise<{
100
- response: http.IncomingMessage;
101
- body?: any;
102
- }>;
103
- automatedOffersControllerUpdatestatus(account: string, body: object, options?: {
104
- headers: {
105
- [name: string]: string;
106
- };
107
- }): Promise<{
108
- response: http.IncomingMessage;
109
- body?: any;
110
- }>;
111
- automatedOffersControllerViews(account: string, body?: object, options?: {
112
- headers: {
113
- [name: string]: string;
114
- };
115
- }): Promise<{
116
- response: http.IncomingMessage;
117
- body?: any;
118
- }>;
119
- }