@tradecafe/offer-service-sdk 0.0.1 → 0.0.2
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/dist/api/apis.d.ts +16 -0
- package/dist/api/apis.js +53 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/healthApi.d.ts +32 -0
- package/dist/api/healthApi.js +175 -0
- package/dist/api/healthApi.js.map +1 -0
- package/dist/api/matchedOffersApi.d.ts +127 -0
- package/dist/api/matchedOffersApi.js +994 -0
- package/dist/api/matchedOffersApi.js.map +1 -0
- package/dist/api/offersApi.d.ts +175 -0
- package/dist/api/offersApi.js +1398 -0
- package/dist/api/offersApi.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -0
- package/dist/api.js.map +1 -0
- package/dist/model/healthControllerPing200Response.d.ts +24 -0
- package/dist/model/healthControllerPing200Response.js +36 -0
- package/dist/model/healthControllerPing200Response.js.map +1 -0
- package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -0
- package/dist/model/healthControllerPing200ResponseInfoValue.js +37 -0
- package/dist/model/healthControllerPing200ResponseInfoValue.js.map +1 -0
- package/dist/model/healthControllerPing503Response.d.ts +24 -0
- package/dist/model/healthControllerPing503Response.js +36 -0
- package/dist/model/healthControllerPing503Response.js.map +1 -0
- package/dist/model/models.d.ts +49 -0
- package/dist/model/models.js +232 -0
- package/dist/model/models.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
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)[];
|
package/dist/api/apis.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
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];
|
|
53
|
+
//# sourceMappingURL=apis.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import http from 'http';
|
|
3
|
+
import { HealthControllerPing200Response } from '../model/healthControllerPing200Response';
|
|
4
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
5
|
+
export declare enum HealthApiApiKeys {
|
|
6
|
+
}
|
|
7
|
+
export declare class HealthApi {
|
|
8
|
+
protected _basePath: string;
|
|
9
|
+
protected _defaultHeaders: any;
|
|
10
|
+
protected _useQuerystring: boolean;
|
|
11
|
+
protected authentications: {
|
|
12
|
+
default: Authentication;
|
|
13
|
+
};
|
|
14
|
+
protected interceptors: Interceptor[];
|
|
15
|
+
constructor(basePath?: string);
|
|
16
|
+
set useQuerystring(value: boolean);
|
|
17
|
+
set basePath(basePath: string);
|
|
18
|
+
set defaultHeaders(defaultHeaders: any);
|
|
19
|
+
get defaultHeaders(): any;
|
|
20
|
+
get basePath(): string;
|
|
21
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
22
|
+
setApiKey(key: HealthApiApiKeys, value: string): void;
|
|
23
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
24
|
+
healthControllerPing(options?: {
|
|
25
|
+
headers: {
|
|
26
|
+
[name: string]: string;
|
|
27
|
+
};
|
|
28
|
+
}): Promise<{
|
|
29
|
+
response: http.IncomingMessage;
|
|
30
|
+
body: HealthControllerPing200Response;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.HealthApi = exports.HealthApiApiKeys = void 0;
|
|
43
|
+
var request_1 = __importDefault(require("request"));
|
|
44
|
+
var models_1 = require("../model/models");
|
|
45
|
+
var apis_1 = require("./apis");
|
|
46
|
+
var defaultBasePath = 'http://localhost';
|
|
47
|
+
var HealthApiApiKeys;
|
|
48
|
+
(function (HealthApiApiKeys) {
|
|
49
|
+
})(HealthApiApiKeys = exports.HealthApiApiKeys || (exports.HealthApiApiKeys = {}));
|
|
50
|
+
var HealthApi = (function () {
|
|
51
|
+
function HealthApi(basePathOrUsername, password, basePath) {
|
|
52
|
+
this._basePath = defaultBasePath;
|
|
53
|
+
this._defaultHeaders = {};
|
|
54
|
+
this._useQuerystring = false;
|
|
55
|
+
this.authentications = {
|
|
56
|
+
'default': new models_1.VoidAuth(),
|
|
57
|
+
};
|
|
58
|
+
this.interceptors = [];
|
|
59
|
+
if (password) {
|
|
60
|
+
if (basePath) {
|
|
61
|
+
this.basePath = basePath;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
if (basePathOrUsername) {
|
|
66
|
+
this.basePath = basePathOrUsername;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
Object.defineProperty(HealthApi.prototype, "useQuerystring", {
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this._useQuerystring = value;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(HealthApi.prototype, "basePath", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._basePath;
|
|
80
|
+
},
|
|
81
|
+
set: function (basePath) {
|
|
82
|
+
this._basePath = basePath;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(HealthApi.prototype, "defaultHeaders", {
|
|
88
|
+
get: function () {
|
|
89
|
+
return this._defaultHeaders;
|
|
90
|
+
},
|
|
91
|
+
set: function (defaultHeaders) {
|
|
92
|
+
this._defaultHeaders = defaultHeaders;
|
|
93
|
+
},
|
|
94
|
+
enumerable: false,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
HealthApi.prototype.setDefaultAuthentication = function (auth) {
|
|
98
|
+
this.authentications.default = auth;
|
|
99
|
+
};
|
|
100
|
+
HealthApi.prototype.setApiKey = function (key, value) {
|
|
101
|
+
this.authentications[HealthApiApiKeys[key]].apiKey = value;
|
|
102
|
+
};
|
|
103
|
+
HealthApi.prototype.addInterceptor = function (interceptor) {
|
|
104
|
+
this.interceptors.push(interceptor);
|
|
105
|
+
};
|
|
106
|
+
HealthApi.prototype.healthControllerPing = function (options) {
|
|
107
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
108
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
|
|
110
|
+
var _this = this;
|
|
111
|
+
return __generator(this, function (_b) {
|
|
112
|
+
localVarPath = this.basePath + '/ping';
|
|
113
|
+
localVarQueryParameters = {};
|
|
114
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
115
|
+
produces = ['application/json'];
|
|
116
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
117
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
121
|
+
}
|
|
122
|
+
localVarFormParams = {};
|
|
123
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
124
|
+
localVarUseFormData = false;
|
|
125
|
+
localVarRequestOptions = {
|
|
126
|
+
method: 'GET',
|
|
127
|
+
qs: localVarQueryParameters,
|
|
128
|
+
headers: localVarHeaderParams,
|
|
129
|
+
uri: localVarPath,
|
|
130
|
+
useQuerystring: this._useQuerystring,
|
|
131
|
+
json: true,
|
|
132
|
+
};
|
|
133
|
+
authenticationPromise = Promise.resolve();
|
|
134
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
135
|
+
interceptorPromise = authenticationPromise;
|
|
136
|
+
_loop_1 = function (interceptor) {
|
|
137
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
138
|
+
};
|
|
139
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
140
|
+
interceptor = _a[_i];
|
|
141
|
+
_loop_1(interceptor);
|
|
142
|
+
}
|
|
143
|
+
return [2, interceptorPromise.then(function () {
|
|
144
|
+
if (Object.keys(localVarFormParams).length) {
|
|
145
|
+
if (localVarUseFormData) {
|
|
146
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return new Promise(function (resolve, reject) {
|
|
153
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
154
|
+
if (error) {
|
|
155
|
+
reject(error);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
159
|
+
body = models_1.ObjectSerializer.deserialize(body, "HealthControllerPing200Response");
|
|
160
|
+
resolve({ response: response, body: body });
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
})];
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
return HealthApi;
|
|
173
|
+
}());
|
|
174
|
+
exports.HealthApi = HealthApi;
|
|
175
|
+
//# sourceMappingURL=healthApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthApi.js","sourceRoot":"","sources":["../../api/healthApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,oDAAsC;AAOtC,0CAA0F;AAE1F,+BAAgD;AAEhD,IAAI,eAAe,GAAG,kBAAkB,CAAC;AAMzC,IAAY,gBACX;AADD,WAAY,gBAAgB;AAC5B,CAAC,EADW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAC3B;AAED;IAYI,mBAAY,kBAA0B,EAAE,QAAiB,EAAE,QAAiB;QAXlE,cAAS,GAAG,eAAe,CAAC;QAC5B,oBAAe,GAAS,EAAE,CAAC;QAC3B,oBAAe,GAAa,KAAK,CAAC;QAElC,oBAAe,GAAG;YACxB,SAAS,EAAkB,IAAI,iBAAQ,EAAE;SAC5C,CAAA;QAES,iBAAY,GAAkB,EAAE,CAAC;QAIvC,IAAI,QAAQ,EAAE;YACV,IAAI,QAAQ,EAAE;gBACV,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;aAC5B;SACJ;aAAM;YACH,IAAI,kBAAkB,EAAE;gBACpB,IAAI,CAAC,QAAQ,GAAG,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,OAAO,CAA8E,UAAC,OAAO,EAAE,MAAM;4BAC5G,IAAA,iBAAe,EAAC,sBAAsB,EAAE,UAAC,KAAK,EAAE,QAAQ,EAAE,IAAI;gCAC1D,IAAI,KAAK,EAAE;oCACP,MAAM,CAAC,KAAK,CAAC,CAAC;iCACjB;qCAAM;oCACH,IAAI,QAAQ,CAAC,UAAU,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;wCACjF,IAAI,GAAG,yBAAgB,CAAC,WAAW,CAAC,IAAI,EAAE,iCAAiC,CAAC,CAAC;wCAC7E,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;qCAC/C;yCAAM;wCACH,MAAM,CAAC,IAAI,gBAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;qCAC9D;iCACJ;4BACL,CAAC,CAAC,CAAC;wBACP,CAAC,CAAC,CAAC;oBACP,CAAC,CAAC,EAAC;;;KACN;IACL,gBAAC;AAAD,CAAC,AArHD,IAqHC;AArHY,8BAAS"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import http from 'http';
|
|
3
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
4
|
+
export declare enum MatchedOffersApiApiKeys {
|
|
5
|
+
}
|
|
6
|
+
export declare class MatchedOffersApi {
|
|
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: MatchedOffersApiApiKeys, value: string): void;
|
|
22
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
23
|
+
matchedOffersControllerAddbid(id: 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
|
+
matchedOffersControllerCreate(account: string, body: object, options?: {
|
|
32
|
+
headers: {
|
|
33
|
+
[name: string]: string;
|
|
34
|
+
};
|
|
35
|
+
}): Promise<{
|
|
36
|
+
response: http.IncomingMessage;
|
|
37
|
+
body?: any;
|
|
38
|
+
}>;
|
|
39
|
+
matchedOffersControllerDeletebid(id: string, userId: string, account: string, options?: {
|
|
40
|
+
headers: {
|
|
41
|
+
[name: string]: string;
|
|
42
|
+
};
|
|
43
|
+
}): Promise<{
|
|
44
|
+
response: http.IncomingMessage;
|
|
45
|
+
body?: any;
|
|
46
|
+
}>;
|
|
47
|
+
matchedOffersControllerFilter(account: string, skip?: number, limit?: number, sort?: string, body?: object, options?: {
|
|
48
|
+
headers: {
|
|
49
|
+
[name: string]: string;
|
|
50
|
+
};
|
|
51
|
+
}): Promise<{
|
|
52
|
+
response: http.IncomingMessage;
|
|
53
|
+
body?: any;
|
|
54
|
+
}>;
|
|
55
|
+
matchedOffersControllerFindall(account: string, body: object, skip?: number, limit?: number, sort?: string, options?: {
|
|
56
|
+
headers: {
|
|
57
|
+
[name: string]: string;
|
|
58
|
+
};
|
|
59
|
+
}): Promise<{
|
|
60
|
+
response: http.IncomingMessage;
|
|
61
|
+
body?: any;
|
|
62
|
+
}>;
|
|
63
|
+
matchedOffersControllerFindcountries(account: string, options?: {
|
|
64
|
+
headers: {
|
|
65
|
+
[name: string]: string;
|
|
66
|
+
};
|
|
67
|
+
}): Promise<{
|
|
68
|
+
response: http.IncomingMessage;
|
|
69
|
+
body?: any;
|
|
70
|
+
}>;
|
|
71
|
+
matchedOffersControllerFindone(id: string, account: string, options?: {
|
|
72
|
+
headers: {
|
|
73
|
+
[name: string]: string;
|
|
74
|
+
};
|
|
75
|
+
}): Promise<{
|
|
76
|
+
response: http.IncomingMessage;
|
|
77
|
+
body?: any;
|
|
78
|
+
}>;
|
|
79
|
+
matchedOffersControllerGenerateoffernumber(id: string, account: string, options?: {
|
|
80
|
+
headers: {
|
|
81
|
+
[name: string]: string;
|
|
82
|
+
};
|
|
83
|
+
}): Promise<{
|
|
84
|
+
response: http.IncomingMessage;
|
|
85
|
+
body?: any;
|
|
86
|
+
}>;
|
|
87
|
+
matchedOffersControllerRemove(id: string, account: string, options?: {
|
|
88
|
+
headers: {
|
|
89
|
+
[name: string]: string;
|
|
90
|
+
};
|
|
91
|
+
}): Promise<{
|
|
92
|
+
response: http.IncomingMessage;
|
|
93
|
+
body?: any;
|
|
94
|
+
}>;
|
|
95
|
+
matchedOffersControllerSetconfirmindex(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
|
+
matchedOffersControllerTotal(account: string, options?: {
|
|
104
|
+
headers: {
|
|
105
|
+
[name: string]: string;
|
|
106
|
+
};
|
|
107
|
+
}): Promise<{
|
|
108
|
+
response: http.IncomingMessage;
|
|
109
|
+
body?: any;
|
|
110
|
+
}>;
|
|
111
|
+
matchedOffersControllerUpdate(id: string, account: string, body: object, options?: {
|
|
112
|
+
headers: {
|
|
113
|
+
[name: string]: string;
|
|
114
|
+
};
|
|
115
|
+
}): Promise<{
|
|
116
|
+
response: http.IncomingMessage;
|
|
117
|
+
body?: any;
|
|
118
|
+
}>;
|
|
119
|
+
matchedOffersControllerUpdatestatus(account: string, body: object, options?: {
|
|
120
|
+
headers: {
|
|
121
|
+
[name: string]: string;
|
|
122
|
+
};
|
|
123
|
+
}): Promise<{
|
|
124
|
+
response: http.IncomingMessage;
|
|
125
|
+
body?: any;
|
|
126
|
+
}>;
|
|
127
|
+
}
|