@payfit/audit-log 1.0.0-alpha8 → 1.0.0-rc.10
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/README.md +92 -0
- package/dist/es/index.js +411 -0
- package/dist/es/index.js.map +1 -0
- package/dist/index.d.ts +32 -12
- package/dist/node/index.js +419 -0
- package/dist/node/index.js.map +1 -0
- package/package.json +42 -19
- package/.prettierrc +0 -5
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
- package/dist/transport/generated/api/default-api.d.ts +0 -74
- package/dist/transport/generated/api/default-api.js +0 -131
- package/dist/transport/generated/api/default-api.js.map +0 -1
- package/dist/transport/generated/api.d.ts +0 -12
- package/dist/transport/generated/api.js +0 -19
- package/dist/transport/generated/api.js.map +0 -1
- package/dist/transport/generated/base.d.ts +0 -55
- package/dist/transport/generated/base.js +0 -63
- package/dist/transport/generated/base.js.map +0 -1
- package/dist/transport/generated/configuration.d.ts +0 -63
- package/dist/transport/generated/configuration.js +0 -26
- package/dist/transport/generated/configuration.js.map +0 -1
- package/dist/transport/generated/index.d.ts +0 -13
- package/dist/transport/generated/index.js +0 -20
- package/dist/transport/generated/index.js.map +0 -1
- package/dist/transport/generated/model/index.d.ts +0 -1
- package/dist/transport/generated/model/index.js +0 -3
- package/dist/transport/generated/model/index.js.map +0 -1
- package/dist/transport/generated/model/inline-object.d.ts +0 -120
- package/dist/transport/generated/model/inline-object.js +0 -15
- package/dist/transport/generated/model/inline-object.js.map +0 -1
- package/dist/transport/implementation.d.ts +0 -8
- package/dist/transport/implementation.js +0 -39
- package/dist/transport/implementation.js.map +0 -1
- package/dist/transport/interface.d.ts +0 -10
- package/dist/transport/interface.js +0 -3
- package/dist/transport/interface.js.map +0 -1
- package/openapi-codegen-config.yml +0 -6
- package/playground/index.ts +0 -26
- package/src/index.ts +0 -120
- package/src/transport/generated/.openapi-generator/VERSION +0 -1
- package/src/transport/generated/.openapi-generator-ignore +0 -23
- package/src/transport/generated/api/default-api.ts +0 -131
- package/src/transport/generated/api.ts +0 -17
- package/src/transport/generated/base.ts +0 -70
- package/src/transport/generated/configuration.ts +0 -75
- package/src/transport/generated/git_push.sh +0 -58
- package/src/transport/generated/index.ts +0 -16
- package/src/transport/generated/model/index.ts +0 -1
- package/src/transport/generated/model/inline-object.ts +0 -126
- package/src/transport/implementation.ts +0 -23
- package/src/transport/interface.ts +0 -12
- package/tsconfig.json +0 -25
- package/tslint.json +0 -12
package/package.json
CHANGED
|
@@ -1,30 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/audit-log",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc.10",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/PayFit/audit-logs.git",
|
|
7
|
+
"directory": "sdk"
|
|
8
|
+
},
|
|
4
9
|
"description": "Library to handle audit logs at Payfit",
|
|
5
|
-
"main": "dist/index.js",
|
|
10
|
+
"main": "dist/node/index.js",
|
|
11
|
+
"module": "dist/es/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
6
13
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
14
|
+
"generate": "openapi-generator-cli generate -i ../pkg/broker/v1/swagger/openapi.json -g typescript-axios -o src/transport/generated -c openapi-codegen-config.yml",
|
|
15
|
+
"build": "rimraf dist && rollup --config node:@payfit/rollup-config",
|
|
16
|
+
"prepack": "npm run build",
|
|
17
|
+
"lint": "eslint .",
|
|
18
|
+
"start:playground": "ts-node src/playground.ts",
|
|
19
|
+
"format:check": "prettier --check .",
|
|
20
|
+
"format:fix": "prettier --write .",
|
|
21
|
+
"release": "semantic-release --noCi"
|
|
11
22
|
},
|
|
12
23
|
"author": "",
|
|
13
24
|
"license": "ISC",
|
|
14
25
|
"dependencies": {
|
|
15
|
-
"axios": "0.
|
|
16
|
-
"lodash": "4.17.
|
|
17
|
-
"uuid": "
|
|
26
|
+
"axios": "^0.26.0",
|
|
27
|
+
"lodash": "^4.17.20",
|
|
28
|
+
"uuid": "^8.3.2"
|
|
18
29
|
},
|
|
19
30
|
"devDependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
31
|
+
"@openapitools/openapi-generator-cli": "2.4.26",
|
|
32
|
+
"@payfit/browserslist-config": "1.1.1",
|
|
33
|
+
"@payfit/eslint-config": "0.11.0",
|
|
34
|
+
"@payfit/rollup-config": "1.8.1",
|
|
35
|
+
"@payfit/semantic-release-package-config": "6.7.1",
|
|
36
|
+
"@payfit/tsconfig": "0.4.0",
|
|
37
|
+
"@types/lodash": "4.14.178",
|
|
38
|
+
"@types/node": "17.0.0",
|
|
39
|
+
"@types/uuid": "8.3.4",
|
|
40
|
+
"eslint": "8.9.0",
|
|
41
|
+
"prettier": "2.5.1",
|
|
42
|
+
"rimraf": "3.0.2",
|
|
43
|
+
"semantic-release": "19.0.2",
|
|
44
|
+
"ts-node": "10.5.0",
|
|
45
|
+
"typescript": "4.5.5"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"registry": "https://registry.npmjs.org/"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist"
|
|
52
|
+
]
|
|
30
53
|
}
|
package/.prettierrc
DELETED
package/dist/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
const uuid_1 = require("uuid");
|
|
12
|
-
const implementation_1 = require("./transport/implementation");
|
|
13
|
-
class AuditLogger {
|
|
14
|
-
constructor(params) {
|
|
15
|
-
this.params = params;
|
|
16
|
-
this.transport = new implementation_1.Transport(params.apiUrl);
|
|
17
|
-
}
|
|
18
|
-
log(data) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const uuid = uuid_1.v4();
|
|
21
|
-
const { environment, service } = this.params;
|
|
22
|
-
const timestamp = new Date().getTime();
|
|
23
|
-
const log = Object.assign({}, data, { service, id: uuid, environment,
|
|
24
|
-
timestamp });
|
|
25
|
-
yield this.transport.create(log);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.AuditLogger = AuditLogger;
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,+BAAmC;AAEnC,+DAAsD;AA+FtD,MAAa,WAAW;IAGtB,YAAsB,MAAkC;QAAlC,WAAM,GAAN,MAAM,CAA4B;QACtD,IAAI,CAAC,SAAS,GAAG,IAAI,0BAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC/C,CAAC;IAEK,GAAG,CAAC,IAAmB;;YAC3B,MAAM,IAAI,GAAG,SAAM,EAAE,CAAA;YACrB,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAA;YAC5C,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;YAEtC,MAAM,GAAG,qBACJ,IAAI,IACP,OAAO,EACP,EAAE,EAAE,IAAI,EACR,WAAW;gBACX,SAAS,GACV,CAAA;YAED,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAClC,CAAC;KAAA;CACF;AAtBD,kCAsBC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audit Logs
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: damian.bursztyn@payfit.com
|
|
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
|
-
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { InlineObject } from '../model';
|
|
16
|
-
/**
|
|
17
|
-
* DefaultApi - axios parameter creator
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Creates Audit Log event
|
|
24
|
-
* @param {InlineObject} inlineObject
|
|
25
|
-
* @param {*} [options] Override http request option.
|
|
26
|
-
* @throws {RequiredError}
|
|
27
|
-
*/
|
|
28
|
-
v1LogPost(inlineObject: InlineObject, options?: any): RequestArgs;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* DefaultApi - functional programming interface
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export declare const DefaultApiFp: (configuration?: Configuration | undefined) => {
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @summary Creates Audit Log event
|
|
38
|
-
* @param {InlineObject} inlineObject
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
v1LogPost(inlineObject: InlineObject, options?: any): (axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* DefaultApi - factory interface
|
|
46
|
-
* @export
|
|
47
|
-
*/
|
|
48
|
-
export declare const DefaultApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @summary Creates Audit Log event
|
|
52
|
-
* @param {InlineObject} inlineObject
|
|
53
|
-
* @param {*} [options] Override http request option.
|
|
54
|
-
* @throws {RequiredError}
|
|
55
|
-
*/
|
|
56
|
-
v1LogPost(inlineObject: InlineObject, options?: any): AxiosPromise<void>;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* DefaultApi - object-oriented interface
|
|
60
|
-
* @export
|
|
61
|
-
* @class DefaultApi
|
|
62
|
-
* @extends {BaseAPI}
|
|
63
|
-
*/
|
|
64
|
-
export declare class DefaultApi extends BaseAPI {
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @summary Creates Audit Log event
|
|
68
|
-
* @param {InlineObject} inlineObject
|
|
69
|
-
* @param {*} [options] Override http request option.
|
|
70
|
-
* @throws {RequiredError}
|
|
71
|
-
* @memberof DefaultApi
|
|
72
|
-
*/
|
|
73
|
-
v1LogPost(inlineObject: InlineObject, options?: any): AxiosPromise<void>;
|
|
74
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// tslint:disable
|
|
3
|
-
/**
|
|
4
|
-
* Audit Logs
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: damian.bursztyn@payfit.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
18
|
-
result["default"] = mod;
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
const globalImportUrl = __importStar(require("url"));
|
|
26
|
-
const axios_1 = __importDefault(require("axios"));
|
|
27
|
-
// Some imports not used depending on template conditions
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
const base_1 = require("../base");
|
|
30
|
-
/**
|
|
31
|
-
* DefaultApi - axios parameter creator
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
35
|
-
return {
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @summary Creates Audit Log event
|
|
39
|
-
* @param {InlineObject} inlineObject
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
*/
|
|
43
|
-
v1LogPost(inlineObject, options = {}) {
|
|
44
|
-
// verify required parameter 'inlineObject' is not null or undefined
|
|
45
|
-
if (inlineObject === null || inlineObject === undefined) {
|
|
46
|
-
throw new base_1.RequiredError('inlineObject', 'Required parameter inlineObject was null or undefined when calling v1LogPost.');
|
|
47
|
-
}
|
|
48
|
-
const localVarPath = `/v1/log`;
|
|
49
|
-
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
50
|
-
let baseOptions;
|
|
51
|
-
if (configuration) {
|
|
52
|
-
baseOptions = configuration.baseOptions;
|
|
53
|
-
}
|
|
54
|
-
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options);
|
|
55
|
-
const localVarHeaderParameter = {};
|
|
56
|
-
const localVarQueryParameter = {};
|
|
57
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
59
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
60
|
-
delete localVarUrlObj.search;
|
|
61
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
62
|
-
const needsSerialization = (typeof inlineObject !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
63
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(inlineObject !== undefined ? inlineObject : {}) : (inlineObject || "");
|
|
64
|
-
return {
|
|
65
|
-
url: globalImportUrl.format(localVarUrlObj),
|
|
66
|
-
options: localVarRequestOptions,
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* DefaultApi - functional programming interface
|
|
73
|
-
* @export
|
|
74
|
-
*/
|
|
75
|
-
exports.DefaultApiFp = function (configuration) {
|
|
76
|
-
return {
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @summary Creates Audit Log event
|
|
80
|
-
* @param {InlineObject} inlineObject
|
|
81
|
-
* @param {*} [options] Override http request option.
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
*/
|
|
84
|
-
v1LogPost(inlineObject, options) {
|
|
85
|
-
const localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).v1LogPost(inlineObject, options);
|
|
86
|
-
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
87
|
-
const axiosRequestArgs = Object.assign({}, localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
|
|
88
|
-
return axios.request(axiosRequestArgs);
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* DefaultApi - factory interface
|
|
95
|
-
* @export
|
|
96
|
-
*/
|
|
97
|
-
exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
98
|
-
return {
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary Creates Audit Log event
|
|
102
|
-
* @param {InlineObject} inlineObject
|
|
103
|
-
* @param {*} [options] Override http request option.
|
|
104
|
-
* @throws {RequiredError}
|
|
105
|
-
*/
|
|
106
|
-
v1LogPost(inlineObject, options) {
|
|
107
|
-
return exports.DefaultApiFp(configuration).v1LogPost(inlineObject, options)(axios, basePath);
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* DefaultApi - object-oriented interface
|
|
113
|
-
* @export
|
|
114
|
-
* @class DefaultApi
|
|
115
|
-
* @extends {BaseAPI}
|
|
116
|
-
*/
|
|
117
|
-
class DefaultApi extends base_1.BaseAPI {
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @summary Creates Audit Log event
|
|
121
|
-
* @param {InlineObject} inlineObject
|
|
122
|
-
* @param {*} [options] Override http request option.
|
|
123
|
-
* @throws {RequiredError}
|
|
124
|
-
* @memberof DefaultApi
|
|
125
|
-
*/
|
|
126
|
-
v1LogPost(inlineObject, options) {
|
|
127
|
-
return exports.DefaultApiFp(this.configuration).v1LogPost(inlineObject, options)(this.axios, this.basePath);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
exports.DefaultApi = DefaultApi;
|
|
131
|
-
//# sourceMappingURL=default-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file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AO;IACnC;;;;;;;OAOG;IACI,SAAS,CAAC,YAA0B,EAAE,OAAa;QACtD,OAAO,oBAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxG,CAAC;CAEJ;AAbD,gCAaC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audit Logs
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: damian.bursztyn@payfit.com
|
|
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
|
-
export * from './api/default-api';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// tslint:disable
|
|
3
|
-
/**
|
|
4
|
-
* Audit Logs
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: damian.bursztyn@payfit.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
function __export(m) {
|
|
15
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
__export(require("./api/default-api"));
|
|
19
|
-
//# sourceMappingURL=api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/transport/generated/api.ts"],"names":[],"mappings":";AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;;;;;AAIH,uCAAkC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audit Logs
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: damian.bursztyn@payfit.com
|
|
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
|
-
import { Configuration } from "./configuration";
|
|
13
|
-
import { AxiosInstance } from 'axios';
|
|
14
|
-
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare const COLLECTION_FORMATS: {
|
|
20
|
-
csv: string;
|
|
21
|
-
ssv: string;
|
|
22
|
-
tsv: string;
|
|
23
|
-
pipes: string;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
|
-
export interface RequestArgs {
|
|
31
|
-
url: string;
|
|
32
|
-
options: any;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
|
-
export declare class BaseAPI {
|
|
40
|
-
protected basePath: string;
|
|
41
|
-
protected axios: AxiosInstance;
|
|
42
|
-
protected configuration: Configuration | undefined;
|
|
43
|
-
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
|
-
export declare class RequiredError extends Error {
|
|
52
|
-
field: string;
|
|
53
|
-
name: "RequiredError";
|
|
54
|
-
constructor(field: string, msg?: string);
|
|
55
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// tslint:disable
|
|
3
|
-
/**
|
|
4
|
-
* Audit Logs
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: damian.bursztyn@payfit.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
const axios_1 = __importDefault(require("axios"));
|
|
21
|
-
exports.BASE_PATH = "http://localhost:8081/v1".replace(/\/+$/, "");
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.COLLECTION_FORMATS = {
|
|
27
|
-
csv: ",",
|
|
28
|
-
ssv: " ",
|
|
29
|
-
tsv: "\t",
|
|
30
|
-
pipes: "|",
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @export
|
|
35
|
-
* @class BaseAPI
|
|
36
|
-
*/
|
|
37
|
-
class BaseAPI {
|
|
38
|
-
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
39
|
-
this.basePath = basePath;
|
|
40
|
-
this.axios = axios;
|
|
41
|
-
if (configuration) {
|
|
42
|
-
this.configuration = configuration;
|
|
43
|
-
this.basePath = configuration.basePath || this.basePath;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.BaseAPI = BaseAPI;
|
|
48
|
-
;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @export
|
|
52
|
-
* @class RequiredError
|
|
53
|
-
* @extends {Error}
|
|
54
|
-
*/
|
|
55
|
-
class RequiredError extends Error {
|
|
56
|
-
constructor(field, msg) {
|
|
57
|
-
super(msg);
|
|
58
|
-
this.field = field;
|
|
59
|
-
this.name = "RequiredError";
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.RequiredError = RequiredError;
|
|
63
|
-
//# sourceMappingURL=base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/transport/generated/base.ts"],"names":[],"mappings":";AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;;;;;AAIH,yDAAyD;AACzD,aAAa;AACb,kDAAiE;AAEpD,QAAA,SAAS,GAAG,0BAA0B,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAa,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,iBAAS,EAAY,QAAuB,eAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC3D;IACL,CAAC;CACJ;AATD,0BASC;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAa,aAAc,SAAQ,KAAK;IAEpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QADhC,SAAI,GAAoB,eAAe,CAAC;IAGxC,CAAC;CACJ;AALD,sCAKC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audit Logs
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: damian.bursztyn@payfit.com
|
|
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
|
-
export interface ConfigurationParameters {
|
|
13
|
-
apiKey?: string | ((name: string) => string);
|
|
14
|
-
username?: string;
|
|
15
|
-
password?: string;
|
|
16
|
-
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
|
17
|
-
basePath?: string;
|
|
18
|
-
baseOptions?: any;
|
|
19
|
-
}
|
|
20
|
-
export declare class Configuration {
|
|
21
|
-
/**
|
|
22
|
-
* parameter for apiKey security
|
|
23
|
-
* @param name security name
|
|
24
|
-
* @memberof Configuration
|
|
25
|
-
*/
|
|
26
|
-
apiKey?: string | ((name: string) => string);
|
|
27
|
-
/**
|
|
28
|
-
* parameter for basic security
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Configuration
|
|
32
|
-
*/
|
|
33
|
-
username?: string;
|
|
34
|
-
/**
|
|
35
|
-
* parameter for basic security
|
|
36
|
-
*
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof Configuration
|
|
39
|
-
*/
|
|
40
|
-
password?: string;
|
|
41
|
-
/**
|
|
42
|
-
* parameter for oauth2 security
|
|
43
|
-
* @param name security name
|
|
44
|
-
* @param scopes oauth2 scope
|
|
45
|
-
* @memberof Configuration
|
|
46
|
-
*/
|
|
47
|
-
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
|
48
|
-
/**
|
|
49
|
-
* override base path
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof Configuration
|
|
53
|
-
*/
|
|
54
|
-
basePath?: string;
|
|
55
|
-
/**
|
|
56
|
-
* base options for axios calls
|
|
57
|
-
*
|
|
58
|
-
* @type {any}
|
|
59
|
-
* @memberof Configuration
|
|
60
|
-
*/
|
|
61
|
-
baseOptions?: any;
|
|
62
|
-
constructor(param?: ConfigurationParameters);
|
|
63
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// tslint:disable
|
|
3
|
-
/**
|
|
4
|
-
* Audit Logs
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: damian.bursztyn@payfit.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
class Configuration {
|
|
16
|
-
constructor(param = {}) {
|
|
17
|
-
this.apiKey = param.apiKey;
|
|
18
|
-
this.username = param.username;
|
|
19
|
-
this.password = param.password;
|
|
20
|
-
this.accessToken = param.accessToken;
|
|
21
|
-
this.basePath = param.basePath;
|
|
22
|
-
this.baseOptions = param.baseOptions;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.Configuration = Configuration;
|
|
26
|
-
//# sourceMappingURL=configuration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/transport/generated/configuration.ts"],"names":[],"mappings":";AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;;AAYH,MAAa,aAAa;IA2CtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;IACzC,CAAC;CACJ;AAnDD,sCAmDC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audit Logs
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: damian.bursztyn@payfit.com
|
|
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
|
-
export * from "./api";
|
|
13
|
-
export * from "./configuration";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// tslint:disable
|
|
3
|
-
/**
|
|
4
|
-
* Audit Logs
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: damian.bursztyn@payfit.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
function __export(m) {
|
|
15
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
__export(require("./api"));
|
|
19
|
-
__export(require("./configuration"));
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transport/generated/index.ts"],"names":[],"mappings":";AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;;;;;AAGH,2BAAsB;AACtB,qCAAgC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './inline-object';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/transport/generated/model/index.ts"],"names":[],"mappings":""}
|