@tradecafe/offer-service-sdk 0.0.23 → 0.0.25

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,16 +1,16 @@
1
- .gitignore
2
- .openapi-generator-ignore
3
- api.ts
4
- api/apis.ts
5
- api/automatedOffersApi.ts
6
- api/futureBidsApi.ts
7
- api/healthApi.ts
8
- api/matchedOffersApi.ts
9
- api/offersApi.ts
10
- git_push.sh
11
- model/healthControllerPing200Response.ts
12
- model/healthControllerPing200ResponseInfoValue.ts
13
- model/healthControllerPing503Response.ts
14
- model/models.ts
15
- package.json
16
- tsconfig.json
1
+ .gitignore
2
+ .openapi-generator-ignore
3
+ api.ts
4
+ api/apis.ts
5
+ api/automatedOffersApi.ts
6
+ api/futureBidsApi.ts
7
+ api/healthApi.ts
8
+ api/matchedOffersApi.ts
9
+ api/offersApi.ts
10
+ git_push.sh
11
+ model/healthControllerPing200Response.ts
12
+ model/healthControllerPing200ResponseInfoValue.ts
13
+ model/healthControllerPing503Response.ts
14
+ model/models.ts
15
+ package.json
16
+ tsconfig.json
package/api/offersApi.ts CHANGED
@@ -867,11 +867,12 @@ export class OffersApi {
867
867
  }
868
868
  /**
869
869
  *
870
- * @summary Locks the offer with the provided ID
870
+ * @summary Locks the offer with the specified ID, including details if provided
871
871
  * @param id
872
872
  * @param account
873
+ * @param body
873
874
  */
874
- public async offersControllerLock (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
875
+ public async offersControllerLock (id: string, account: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
875
876
  const localVarPath = this.basePath + '/offers/{account}/{id}/lock'
876
877
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
877
878
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -900,6 +901,7 @@ export class OffersApi {
900
901
  uri: localVarPath,
901
902
  useQuerystring: this._useQuerystring,
902
903
  json: true,
904
+ body: ObjectSerializer.serialize(body, "object")
903
905
  };
904
906
 
905
907
  let authenticationPromise = Promise.resolve();
@@ -1,20 +1,20 @@
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)[];
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 CHANGED
@@ -1,57 +1,57 @@
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];
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
57
  //# sourceMappingURL=apis.js.map
@@ -1,103 +1,103 @@
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
- automatedOffersControllerRemove(id: string, account: string, options?: {
64
- headers: {
65
- [name: string]: string;
66
- };
67
- }): Promise<{
68
- response: http.IncomingMessage;
69
- body?: any;
70
- }>;
71
- automatedOffersControllerUpdate(id: string, account: string, body: object, options?: {
72
- headers: {
73
- [name: string]: string;
74
- };
75
- }): Promise<{
76
- response: http.IncomingMessage;
77
- body?: any;
78
- }>;
79
- automatedOffersControllerUpdaterelistingstatus(automatedOfferId: string, 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
- automatedOffersControllerUpdatestatus(account: string, body: object, options?: {
88
- headers: {
89
- [name: string]: string;
90
- };
91
- }): Promise<{
92
- response: http.IncomingMessage;
93
- body?: any;
94
- }>;
95
- automatedOffersControllerViews(account: string, body?: object, options?: {
96
- headers: {
97
- [name: string]: string;
98
- };
99
- }): Promise<{
100
- response: http.IncomingMessage;
101
- body?: any;
102
- }>;
103
- }
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
+ automatedOffersControllerRemove(id: string, account: string, options?: {
64
+ headers: {
65
+ [name: string]: string;
66
+ };
67
+ }): Promise<{
68
+ response: http.IncomingMessage;
69
+ body?: any;
70
+ }>;
71
+ automatedOffersControllerUpdate(id: string, account: string, body: object, options?: {
72
+ headers: {
73
+ [name: string]: string;
74
+ };
75
+ }): Promise<{
76
+ response: http.IncomingMessage;
77
+ body?: any;
78
+ }>;
79
+ automatedOffersControllerUpdaterelistingstatus(automatedOfferId: string, 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
+ automatedOffersControllerUpdatestatus(account: string, body: object, options?: {
88
+ headers: {
89
+ [name: string]: string;
90
+ };
91
+ }): Promise<{
92
+ response: http.IncomingMessage;
93
+ body?: any;
94
+ }>;
95
+ automatedOffersControllerViews(account: string, body?: object, options?: {
96
+ headers: {
97
+ [name: string]: string;
98
+ };
99
+ }): Promise<{
100
+ response: http.IncomingMessage;
101
+ body?: any;
102
+ }>;
103
+ }