@payfit/audit-log 1.0.6 → 1.0.8-rc1
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/transport/generated/api/default-api.d.ts +4 -4
- package/dist/transport/generated/api/default-api.js +9 -9
- package/dist/transport/generated/api/default-api.js.map +1 -1
- package/dist/transport/generated/base.js +1 -1
- package/dist/transport/generated/base.js.map +1 -1
- package/dist/transport/implementation.js +1 -1
- package/dist/transport/implementation.js.map +1 -1
- package/package.json +7 -7
- package/playground/index.ts +1 -1
- package/src/transport/generated/api/default-api.ts +9 -9
- package/src/transport/generated/base.ts +1 -1
- package/src/transport/implementation.ts +1 -1
|
@@ -25,7 +25,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
v1LogPost: (inlineObject: InlineObject, options?: any) => Promise<RequestArgs>;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* DefaultApi - functional programming interface
|
|
@@ -39,7 +39,7 @@ export declare const DefaultApiFp: (configuration?: Configuration | undefined) =
|
|
|
39
39
|
* @param {*} [options] Override http request option.
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
v1LogPost(inlineObject: InlineObject, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<void>>;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* DefaultApi - factory interface
|
|
@@ -53,7 +53,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration | undefin
|
|
|
53
53
|
* @param {*} [options] Override http request option.
|
|
54
54
|
* @throws {RequiredError}
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
v1LogPost(inlineObject: InlineObject, options?: any): AxiosPromise<void>;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
59
|
* DefaultApi - object-oriented interface
|
|
@@ -70,5 +70,5 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
* @memberof DefaultApi
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
v1LogPost(inlineObject: InlineObject, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
|
74
74
|
}
|
|
@@ -62,12 +62,12 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
v1LogPost: (inlineObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
// verify required parameter 'inlineObject' is not null or undefined
|
|
67
67
|
if (inlineObject === null || inlineObject === undefined) {
|
|
68
|
-
throw new base_1.RequiredError('inlineObject', 'Required parameter inlineObject was null or undefined when calling
|
|
68
|
+
throw new base_1.RequiredError('inlineObject', 'Required parameter inlineObject was null or undefined when calling v1LogPost.');
|
|
69
69
|
}
|
|
70
|
-
const localVarPath = `/log`;
|
|
70
|
+
const localVarPath = `/v1/log`;
|
|
71
71
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
72
72
|
let baseOptions;
|
|
73
73
|
if (configuration) {
|
|
@@ -104,9 +104,9 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
v1LogPost(inlineObject, options) {
|
|
108
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
const localVarAxiosArgs = yield exports.DefaultApiAxiosParamCreator(configuration).
|
|
109
|
+
const localVarAxiosArgs = yield exports.DefaultApiAxiosParamCreator(configuration).v1LogPost(inlineObject, options);
|
|
110
110
|
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
|
|
111
111
|
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
112
112
|
return axios.request(axiosRequestArgs);
|
|
@@ -128,8 +128,8 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
128
128
|
* @param {*} [options] Override http request option.
|
|
129
129
|
* @throws {RequiredError}
|
|
130
130
|
*/
|
|
131
|
-
|
|
132
|
-
return exports.DefaultApiFp(configuration).
|
|
131
|
+
v1LogPost(inlineObject, options) {
|
|
132
|
+
return exports.DefaultApiFp(configuration).v1LogPost(inlineObject, options).then((request) => request(axios, basePath));
|
|
133
133
|
},
|
|
134
134
|
};
|
|
135
135
|
};
|
|
@@ -148,8 +148,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
148
148
|
* @throws {RequiredError}
|
|
149
149
|
* @memberof DefaultApi
|
|
150
150
|
*/
|
|
151
|
-
|
|
152
|
-
return exports.DefaultApiFp(this.configuration).
|
|
151
|
+
v1LogPost(inlineObject, options) {
|
|
152
|
+
return exports.DefaultApiFp(this.configuration).v1LogPost(inlineObject, options).then((request) => request(this.axios, this.basePath));
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
exports.DefaultApi = DefaultApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-api.js","sourceRoot":"","sources":["../../../../src/transport/generated/api/default-api.ts"],"names":[],"mappings":";AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,qDAAuC;AACvC,kDAAiE;AAEjE,yDAAyD;AACzD,aAAa;AACb,kCAA6F;AAG7F;;;GAGG;AACU,QAAA,2BAA2B,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACH;;;;;;WAMG;QACH,
|
|
1
|
+
{"version":3,"file":"default-api.js","sourceRoot":"","sources":["../../../../src/transport/generated/api/default-api.ts"],"names":[],"mappings":";AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;;;;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AAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACpH,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAa,UAAW,SAAQ,cAAO;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,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnI,CAAC;CAEJ;AAbD,gCAaC"}
|
|
@@ -19,7 +19,7 @@ exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.B
|
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
|
-
exports.BASE_PATH = "http://localhost:8090
|
|
22
|
+
exports.BASE_PATH = "http://localhost:8090".replace(/\/+$/, "");
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @export
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,uBAAuB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAErE;;;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../src/transport/implementation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AAKxC,MAAa,SAAS;IAGpB,YAAsB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAClC,IAAI,CAAC,GAAG,GAAG,IAAI,sBAAU,CAAC;YACxB,QAAQ,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC,CAAA;IACJ,CAAC;IAEK,MAAM,CAAC,YAA0B;;;YACrC,IAAI;gBACF,MAAM,IAAI,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../src/transport/implementation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AAKxC,MAAa,SAAS;IAGpB,YAAsB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAClC,IAAI,CAAC,GAAG,GAAG,IAAI,sBAAU,CAAC;YACxB,QAAQ,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC,CAAA;IACJ,CAAC;IAEK,MAAM,CAAC,YAA0B;;;YACrC,IAAI;gBACF,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;aACvC;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;oBACrB,MAAM,GAAG,CAAA;iBACV;gBAED,MAAM,OAAO,GAAG,OAAA,GAAG,CAAC,QAAQ,0CAAE,IAAI,KAAI,GAAG,CAAC,OAAO,CAAA;gBACjD,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAA;aACzB;;KACF;CACF;AArBD,8BAqBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/audit-log",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8-rc1",
|
|
4
4
|
"description": "Library to handle audit logs at Payfit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
"author": "",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"axios": "
|
|
17
|
+
"axios": "0.21.1",
|
|
18
18
|
"lodash": "^4.17.20",
|
|
19
19
|
"uuid": "^7.0.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@openapitools/openapi-generator-cli": "2.
|
|
22
|
+
"@openapitools/openapi-generator-cli": "2.2.3",
|
|
23
23
|
"@types/lodash": "4.14.168",
|
|
24
|
-
"@types/node": "14.14.
|
|
24
|
+
"@types/node": "14.14.35",
|
|
25
25
|
"@types/uuid": "3.4.9",
|
|
26
26
|
"prettier": "2.2.1",
|
|
27
27
|
"rimraf": "3.0.2",
|
|
28
|
-
"ts-node": "
|
|
29
|
-
"ts-node-dev": "1.1.
|
|
28
|
+
"ts-node": "10.2.1",
|
|
29
|
+
"ts-node-dev": "1.1.6",
|
|
30
30
|
"tslint": "5.20.1",
|
|
31
31
|
"tslint-config-prettier": "1.18.0",
|
|
32
|
-
"typescript": "3.9.
|
|
32
|
+
"typescript": "3.9.9"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/playground/index.ts
CHANGED
|
@@ -33,12 +33,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
33
33
|
* @param {*} [options] Override http request option.
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
v1LogPost: async (inlineObject: InlineObject, options: any = {}): Promise<RequestArgs> => {
|
|
37
37
|
// verify required parameter 'inlineObject' is not null or undefined
|
|
38
38
|
if (inlineObject === null || inlineObject === undefined) {
|
|
39
|
-
throw new RequiredError('inlineObject','Required parameter inlineObject was null or undefined when calling
|
|
39
|
+
throw new RequiredError('inlineObject','Required parameter inlineObject was null or undefined when calling v1LogPost.');
|
|
40
40
|
}
|
|
41
|
-
const localVarPath = `/log`;
|
|
41
|
+
const localVarPath = `/v1/log`;
|
|
42
42
|
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
43
43
|
let baseOptions;
|
|
44
44
|
if (configuration) {
|
|
@@ -81,8 +81,8 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
81
81
|
* @param {*} [options] Override http request option.
|
|
82
82
|
* @throws {RequiredError}
|
|
83
83
|
*/
|
|
84
|
-
async
|
|
85
|
-
const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).
|
|
84
|
+
async v1LogPost(inlineObject: InlineObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
85
|
+
const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).v1LogPost(inlineObject, options);
|
|
86
86
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
87
87
|
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
88
88
|
return axios.request(axiosRequestArgs);
|
|
@@ -104,8 +104,8 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
return DefaultApiFp(configuration).
|
|
107
|
+
v1LogPost(inlineObject: InlineObject, options?: any): AxiosPromise<void> {
|
|
108
|
+
return DefaultApiFp(configuration).v1LogPost(inlineObject, options).then((request) => request(axios, basePath));
|
|
109
109
|
},
|
|
110
110
|
};
|
|
111
111
|
};
|
|
@@ -125,8 +125,8 @@ export class DefaultApi extends BaseAPI {
|
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
* @memberof DefaultApi
|
|
127
127
|
*/
|
|
128
|
-
public
|
|
129
|
-
return DefaultApiFp(this.configuration).
|
|
128
|
+
public v1LogPost(inlineObject: InlineObject, options?: any) {
|
|
129
|
+
return DefaultApiFp(this.configuration).v1LogPost(inlineObject, options).then((request) => request(this.axios, this.basePath));
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
}
|
|
@@ -17,7 +17,7 @@ import { Configuration } from "./configuration";
|
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
|
|
19
19
|
|
|
20
|
-
export const BASE_PATH = "http://localhost:8090
|
|
20
|
+
export const BASE_PATH = "http://localhost:8090".replace(/\/+$/, "");
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
*
|