@tradecafe/offer-service-sdk 0.0.5 → 0.0.7

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,14 +1,15 @@
1
- .gitignore
2
- .openapi-generator-ignore
3
- api.ts
4
- api/apis.ts
5
- api/healthApi.ts
6
- api/matchedOffersApi.ts
7
- api/offersApi.ts
8
- git_push.sh
9
- model/healthControllerPing200Response.ts
10
- model/healthControllerPing200ResponseInfoValue.ts
11
- model/healthControllerPing503Response.ts
12
- model/models.ts
13
- package.json
14
- 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
package/api/apis.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './futureBidsApi';
2
+ import { FutureBidsApi } from './futureBidsApi';
1
3
  export * from './healthApi';
2
4
  import { HealthApi } from './healthApi';
3
5
  export * from './matchedOffersApi';
@@ -15,4 +17,4 @@ export class HttpError extends Error {
15
17
 
16
18
  export { RequestFile } from '../model/models';
17
19
 
18
- export const APIS = [HealthApi, MatchedOffersApi, OffersApi];
20
+ export const APIS = [FutureBidsApi, HealthApi, MatchedOffersApi, OffersApi];
@@ -0,0 +1,368 @@
1
+ /**
2
+ * TradeCafé Offer Service
3
+ * Offer Service allows supplies to submit product offers into the TradeCafe platform
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
+
13
+
14
+ import localVarRequest from 'request';
15
+ import http from 'http';
16
+
17
+ /* tslint:disable:no-unused-locals */
18
+
19
+ import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
20
+
21
+ import { HttpError, RequestFile } from './apis';
22
+
23
+ let defaultBasePath = 'http://localhost';
24
+
25
+ // ===============================================
26
+ // This file is autogenerated - Please do not edit
27
+ // ===============================================
28
+
29
+ export enum FutureBidsApiApiKeys {
30
+ }
31
+
32
+ export class FutureBidsApi {
33
+ protected _basePath = defaultBasePath;
34
+ protected _defaultHeaders : any = {};
35
+ protected _useQuerystring : boolean = false;
36
+
37
+ protected authentications = {
38
+ 'default': <Authentication>new VoidAuth(),
39
+ }
40
+
41
+ protected interceptors: Interceptor[] = [];
42
+
43
+ constructor(basePath?: string);
44
+ constructor(basePathOrUsername: string, password?: string, basePath?: string) {
45
+ if (password) {
46
+ if (basePath) {
47
+ this.basePath = basePath;
48
+ }
49
+ } else {
50
+ if (basePathOrUsername) {
51
+ this.basePath = basePathOrUsername
52
+ }
53
+ }
54
+ }
55
+
56
+ set useQuerystring(value: boolean) {
57
+ this._useQuerystring = value;
58
+ }
59
+
60
+ set basePath(basePath: string) {
61
+ this._basePath = basePath;
62
+ }
63
+
64
+ set defaultHeaders(defaultHeaders: any) {
65
+ this._defaultHeaders = defaultHeaders;
66
+ }
67
+
68
+ get defaultHeaders() {
69
+ return this._defaultHeaders;
70
+ }
71
+
72
+ get basePath() {
73
+ return this._basePath;
74
+ }
75
+
76
+ public setDefaultAuthentication(auth: Authentication) {
77
+ this.authentications.default = auth;
78
+ }
79
+
80
+ public setApiKey(key: FutureBidsApiApiKeys, value: string) {
81
+ (this.authentications as any)[FutureBidsApiApiKeys[key]].apiKey = value;
82
+ }
83
+
84
+ public addInterceptor(interceptor: Interceptor) {
85
+ this.interceptors.push(interceptor);
86
+ }
87
+
88
+ /**
89
+ *
90
+ * @summary Adds future bid to the matched offer with the provided ID
91
+ * @param matchedOfferId
92
+ * @param userId
93
+ * @param body
94
+ */
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}'
97
+ .replace('{' + 'matchedOfferId' + '}', encodeURIComponent(String(matchedOfferId)))
98
+ .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
99
+ let localVarQueryParameters: any = {};
100
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
101
+ let localVarFormParams: any = {};
102
+
103
+ // verify required parameter 'matchedOfferId' is not null or undefined
104
+ if (matchedOfferId === null || matchedOfferId === undefined) {
105
+ throw new Error('Required parameter matchedOfferId was null or undefined when calling futureBidsControllerAddfuturebid.');
106
+ }
107
+
108
+ // verify required parameter 'userId' is not null or undefined
109
+ if (userId === null || userId === undefined) {
110
+ throw new Error('Required parameter userId was null or undefined when calling futureBidsControllerAddfuturebid.');
111
+ }
112
+
113
+ // verify required parameter 'body' is not null or undefined
114
+ if (body === null || body === undefined) {
115
+ throw new Error('Required parameter body was null or undefined when calling futureBidsControllerAddfuturebid.');
116
+ }
117
+
118
+ (<any>Object).assign(localVarHeaderParams, options.headers);
119
+
120
+ let localVarUseFormData = false;
121
+
122
+ let localVarRequestOptions: localVarRequest.Options = {
123
+ method: 'POST',
124
+ qs: localVarQueryParameters,
125
+ headers: localVarHeaderParams,
126
+ uri: localVarPath,
127
+ useQuerystring: this._useQuerystring,
128
+ json: true,
129
+ body: ObjectSerializer.serialize(body, "object")
130
+ };
131
+
132
+ let authenticationPromise = Promise.resolve();
133
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
134
+
135
+ let interceptorPromise = authenticationPromise;
136
+ for (const interceptor of this.interceptors) {
137
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
138
+ }
139
+
140
+ return interceptorPromise.then(() => {
141
+ if (Object.keys(localVarFormParams).length) {
142
+ if (localVarUseFormData) {
143
+ (<any>localVarRequestOptions).formData = localVarFormParams;
144
+ } else {
145
+ localVarRequestOptions.form = localVarFormParams;
146
+ }
147
+ }
148
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
149
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
150
+ if (error) {
151
+ reject(error);
152
+ } else {
153
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
154
+ resolve({ response: response, body: body });
155
+ } else {
156
+ reject(new HttpError(response, body, response.statusCode));
157
+ }
158
+ }
159
+ });
160
+ });
161
+ });
162
+ }
163
+ /**
164
+ *
165
+ * @summary Retrieves a list of all future bids
166
+ * @param body
167
+ * @param skip
168
+ * @param limit
169
+ * @param sort
170
+ */
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';
173
+ let localVarQueryParameters: any = {};
174
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
175
+ let localVarFormParams: any = {};
176
+
177
+ // verify required parameter 'body' is not null or undefined
178
+ if (body === null || body === undefined) {
179
+ throw new Error('Required parameter body was null or undefined when calling futureBidsControllerFindall.');
180
+ }
181
+
182
+ if (skip !== undefined) {
183
+ localVarQueryParameters['skip'] = ObjectSerializer.serialize(skip, "number");
184
+ }
185
+
186
+ if (limit !== undefined) {
187
+ localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
188
+ }
189
+
190
+ if (sort !== undefined) {
191
+ localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
192
+ }
193
+
194
+ (<any>Object).assign(localVarHeaderParams, options.headers);
195
+
196
+ let localVarUseFormData = false;
197
+
198
+ let localVarRequestOptions: localVarRequest.Options = {
199
+ method: 'POST',
200
+ qs: localVarQueryParameters,
201
+ headers: localVarHeaderParams,
202
+ uri: localVarPath,
203
+ useQuerystring: this._useQuerystring,
204
+ json: true,
205
+ body: ObjectSerializer.serialize(body, "object")
206
+ };
207
+
208
+ let authenticationPromise = Promise.resolve();
209
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
210
+
211
+ let interceptorPromise = authenticationPromise;
212
+ for (const interceptor of this.interceptors) {
213
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
214
+ }
215
+
216
+ return interceptorPromise.then(() => {
217
+ if (Object.keys(localVarFormParams).length) {
218
+ if (localVarUseFormData) {
219
+ (<any>localVarRequestOptions).formData = localVarFormParams;
220
+ } else {
221
+ localVarRequestOptions.form = localVarFormParams;
222
+ }
223
+ }
224
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
225
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
226
+ if (error) {
227
+ reject(error);
228
+ } else {
229
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
230
+ resolve({ response: response, body: body });
231
+ } else {
232
+ reject(new HttpError(response, body, response.statusCode));
233
+ }
234
+ }
235
+ });
236
+ });
237
+ });
238
+ }
239
+ /**
240
+ *
241
+ * @summary Remove future bid
242
+ * @param id
243
+ */
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)));
247
+ let localVarQueryParameters: any = {};
248
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
249
+ let localVarFormParams: any = {};
250
+
251
+ // verify required parameter 'id' is not null or undefined
252
+ if (id === null || id === undefined) {
253
+ throw new Error('Required parameter id was null or undefined when calling futureBidsControllerRemovefuturebid.');
254
+ }
255
+
256
+ (<any>Object).assign(localVarHeaderParams, options.headers);
257
+
258
+ let localVarUseFormData = false;
259
+
260
+ let localVarRequestOptions: localVarRequest.Options = {
261
+ method: 'DELETE',
262
+ qs: localVarQueryParameters,
263
+ headers: localVarHeaderParams,
264
+ uri: localVarPath,
265
+ useQuerystring: this._useQuerystring,
266
+ json: true,
267
+ };
268
+
269
+ let authenticationPromise = Promise.resolve();
270
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
271
+
272
+ let interceptorPromise = authenticationPromise;
273
+ for (const interceptor of this.interceptors) {
274
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
275
+ }
276
+
277
+ return interceptorPromise.then(() => {
278
+ if (Object.keys(localVarFormParams).length) {
279
+ if (localVarUseFormData) {
280
+ (<any>localVarRequestOptions).formData = localVarFormParams;
281
+ } else {
282
+ localVarRequestOptions.form = localVarFormParams;
283
+ }
284
+ }
285
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
286
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
287
+ if (error) {
288
+ reject(error);
289
+ } else {
290
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
291
+ resolve({ response: response, body: body });
292
+ } else {
293
+ reject(new HttpError(response, body, response.statusCode));
294
+ }
295
+ }
296
+ });
297
+ });
298
+ });
299
+ }
300
+ /**
301
+ *
302
+ * @summary update the future bid
303
+ * @param id
304
+ * @param body
305
+ */
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)));
309
+ let localVarQueryParameters: any = {};
310
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
311
+ let localVarFormParams: any = {};
312
+
313
+ // verify required parameter 'id' is not null or undefined
314
+ if (id === null || id === undefined) {
315
+ throw new Error('Required parameter id was null or undefined when calling futureBidsControllerUpdate.');
316
+ }
317
+
318
+ // verify required parameter 'body' is not null or undefined
319
+ if (body === null || body === undefined) {
320
+ throw new Error('Required parameter body was null or undefined when calling futureBidsControllerUpdate.');
321
+ }
322
+
323
+ (<any>Object).assign(localVarHeaderParams, options.headers);
324
+
325
+ let localVarUseFormData = false;
326
+
327
+ let localVarRequestOptions: localVarRequest.Options = {
328
+ method: 'PUT',
329
+ qs: localVarQueryParameters,
330
+ headers: localVarHeaderParams,
331
+ uri: localVarPath,
332
+ useQuerystring: this._useQuerystring,
333
+ json: true,
334
+ body: ObjectSerializer.serialize(body, "object")
335
+ };
336
+
337
+ let authenticationPromise = Promise.resolve();
338
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
339
+
340
+ let interceptorPromise = authenticationPromise;
341
+ for (const interceptor of this.interceptors) {
342
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
343
+ }
344
+
345
+ return interceptorPromise.then(() => {
346
+ if (Object.keys(localVarFormParams).length) {
347
+ if (localVarUseFormData) {
348
+ (<any>localVarRequestOptions).formData = localVarFormParams;
349
+ } else {
350
+ localVarRequestOptions.form = localVarFormParams;
351
+ }
352
+ }
353
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
354
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
355
+ if (error) {
356
+ reject(error);
357
+ } else {
358
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
359
+ resolve({ response: response, body: body });
360
+ } else {
361
+ reject(new HttpError(response, body, response.statusCode));
362
+ }
363
+ }
364
+ });
365
+ });
366
+ });
367
+ }
368
+ }
@@ -1,16 +1,18 @@
1
- /// <reference types="node" />
2
- export * from './healthApi';
3
- import { HealthApi } from './healthApi';
4
- export * from './matchedOffersApi';
5
- import { MatchedOffersApi } from './matchedOffersApi';
6
- export * from './offersApi';
7
- import { OffersApi } from './offersApi';
8
- import * as http from 'http';
9
- export declare class HttpError extends Error {
10
- response: http.IncomingMessage;
11
- body: any;
12
- statusCode?: number | undefined;
13
- constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
14
- }
15
- export { RequestFile } from '../model/models';
16
- export declare const APIS: (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,53 +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("./healthApi"), exports);
34
- var healthApi_1 = require("./healthApi");
35
- __exportStar(require("./matchedOffersApi"), exports);
36
- var matchedOffersApi_1 = require("./matchedOffersApi");
37
- __exportStar(require("./offersApi"), exports);
38
- var offersApi_1 = require("./offersApi");
39
- var HttpError = (function (_super) {
40
- __extends(HttpError, _super);
41
- function HttpError(response, body, statusCode) {
42
- var _this = _super.call(this, 'HTTP request failed') || this;
43
- _this.response = response;
44
- _this.body = body;
45
- _this.statusCode = statusCode;
46
- _this.name = 'HttpError';
47
- return _this;
48
- }
49
- return HttpError;
50
- }(Error));
51
- exports.HttpError = HttpError;
52
- exports.APIS = [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];
53
55
  //# sourceMappingURL=apis.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"apis.js","sourceRoot":"","sources":["../../api/apis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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,qBAAS,EAAE,mCAAgB,EAAE,qBAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"apis.js","sourceRoot":"","sources":["../../api/apis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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,6BAAa,EAAE,qBAAS,EAAE,mCAAgB,EAAE,qBAAS,CAAC,CAAC"}
@@ -0,0 +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
+ }