@payfit/audit-log 2.0.1 → 2.1.1

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.
Files changed (55) hide show
  1. package/dist/es/index.js +411 -0
  2. package/dist/es/index.js.map +1 -0
  3. package/dist/index.d.ts +11 -10
  4. package/dist/node/index.js +419 -0
  5. package/dist/node/index.js.map +1 -0
  6. package/package.json +38 -19
  7. package/.prettierrc +0 -5
  8. package/CHANGELOG.md +0 -13
  9. package/dist/index.js +0 -44
  10. package/dist/index.js.map +0 -1
  11. package/dist/transport/generated/api/default-api.d.ts +0 -74
  12. package/dist/transport/generated/api/default-api.js +0 -156
  13. package/dist/transport/generated/api/default-api.js.map +0 -1
  14. package/dist/transport/generated/api.d.ts +0 -12
  15. package/dist/transport/generated/api.js +0 -26
  16. package/dist/transport/generated/api.js.map +0 -1
  17. package/dist/transport/generated/base.d.ts +0 -55
  18. package/dist/transport/generated/base.js +0 -64
  19. package/dist/transport/generated/base.js.map +0 -1
  20. package/dist/transport/generated/configuration.d.ts +0 -63
  21. package/dist/transport/generated/configuration.js +0 -27
  22. package/dist/transport/generated/configuration.js.map +0 -1
  23. package/dist/transport/generated/index.d.ts +0 -13
  24. package/dist/transport/generated/index.js +0 -27
  25. package/dist/transport/generated/index.js.map +0 -1
  26. package/dist/transport/generated/model/index.d.ts +0 -1
  27. package/dist/transport/generated/model/index.js +0 -14
  28. package/dist/transport/generated/model/index.js.map +0 -1
  29. package/dist/transport/generated/model/inline-object.d.ts +0 -138
  30. package/dist/transport/generated/model/inline-object.js +0 -15
  31. package/dist/transport/generated/model/inline-object.js.map +0 -1
  32. package/dist/transport/implementation.d.ts +0 -9
  33. package/dist/transport/implementation.js +0 -38
  34. package/dist/transport/implementation.js.map +0 -1
  35. package/dist/transport/interface.d.ts +0 -25
  36. package/dist/transport/interface.js +0 -3
  37. package/dist/transport/interface.js.map +0 -1
  38. package/openapi-codegen-config.yml +0 -6
  39. package/openapitools.json +0 -6
  40. package/playground/index.ts +0 -37
  41. package/src/index.ts +0 -199
  42. package/src/transport/generated/.openapi-generator/VERSION +0 -1
  43. package/src/transport/generated/.openapi-generator-ignore +0 -23
  44. package/src/transport/generated/api/default-api.ts +0 -132
  45. package/src/transport/generated/api.ts +0 -17
  46. package/src/transport/generated/base.ts +0 -70
  47. package/src/transport/generated/configuration.ts +0 -75
  48. package/src/transport/generated/git_push.sh +0 -58
  49. package/src/transport/generated/index.ts +0 -16
  50. package/src/transport/generated/model/index.ts +0 -1
  51. package/src/transport/generated/model/inline-object.ts +0 -144
  52. package/src/transport/implementation.ts +0 -27
  53. package/src/transport/interface.ts +0 -28
  54. package/tsconfig.json +0 -25
  55. package/tslint.json +0 -12
@@ -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) => Promise<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): Promise<(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): Promise<import("axios").AxiosResponse<void, any>>;
74
- }
@@ -1,156 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
- }) : (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- }));
21
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
- Object.defineProperty(o, "default", { enumerable: true, value: v });
23
- }) : function(o, v) {
24
- o["default"] = v;
25
- });
26
- var __importStar = (this && this.__importStar) || function (mod) {
27
- if (mod && mod.__esModule) return mod;
28
- var result = {};
29
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
- __setModuleDefault(result, mod);
31
- return result;
32
- };
33
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
- return new (P || (P = Promise))(function (resolve, reject) {
36
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
- step((generator = generator.apply(thisArg, _arguments || [])).next());
40
- });
41
- };
42
- var __importDefault = (this && this.__importDefault) || function (mod) {
43
- return (mod && mod.__esModule) ? mod : { "default": mod };
44
- };
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
47
- const globalImportUrl = __importStar(require("url"));
48
- const axios_1 = __importDefault(require("axios"));
49
- // Some imports not used depending on template conditions
50
- // @ts-ignore
51
- const base_1 = require("../base");
52
- /**
53
- * DefaultApi - axios parameter creator
54
- * @export
55
- */
56
- exports.DefaultApiAxiosParamCreator = function (configuration) {
57
- return {
58
- /**
59
- *
60
- * @summary Creates Audit Log event
61
- * @param {InlineObject} inlineObject
62
- * @param {*} [options] Override http request option.
63
- * @throws {RequiredError}
64
- */
65
- v1LogPost: (inlineObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
66
- // verify required parameter 'inlineObject' is not null or undefined
67
- if (inlineObject === null || inlineObject === undefined) {
68
- throw new base_1.RequiredError('inlineObject', 'Required parameter inlineObject was null or undefined when calling v1LogPost.');
69
- }
70
- const localVarPath = `/v1/log`;
71
- const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
72
- let baseOptions;
73
- if (configuration) {
74
- baseOptions = configuration.baseOptions;
75
- }
76
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
77
- const localVarHeaderParameter = {};
78
- const localVarQueryParameter = {};
79
- localVarHeaderParameter['Content-Type'] = 'application/json';
80
- localVarUrlObj.query = Object.assign(Object.assign(Object.assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
81
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
82
- delete localVarUrlObj.search;
83
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
85
- const needsSerialization = (typeof inlineObject !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
86
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(inlineObject !== undefined ? inlineObject : {}) : (inlineObject || "");
87
- return {
88
- url: globalImportUrl.format(localVarUrlObj),
89
- options: localVarRequestOptions,
90
- };
91
- }),
92
- };
93
- };
94
- /**
95
- * DefaultApi - functional programming interface
96
- * @export
97
- */
98
- exports.DefaultApiFp = function (configuration) {
99
- return {
100
- /**
101
- *
102
- * @summary Creates Audit Log event
103
- * @param {InlineObject} inlineObject
104
- * @param {*} [options] Override http request option.
105
- * @throws {RequiredError}
106
- */
107
- v1LogPost(inlineObject, options) {
108
- return __awaiter(this, void 0, void 0, function* () {
109
- const localVarAxiosArgs = yield exports.DefaultApiAxiosParamCreator(configuration).v1LogPost(inlineObject, options);
110
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
111
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
112
- return axios.request(axiosRequestArgs);
113
- };
114
- });
115
- },
116
- };
117
- };
118
- /**
119
- * DefaultApi - factory interface
120
- * @export
121
- */
122
- exports.DefaultApiFactory = function (configuration, basePath, axios) {
123
- return {
124
- /**
125
- *
126
- * @summary Creates Audit Log event
127
- * @param {InlineObject} inlineObject
128
- * @param {*} [options] Override http request option.
129
- * @throws {RequiredError}
130
- */
131
- v1LogPost(inlineObject, options) {
132
- return exports.DefaultApiFp(configuration).v1LogPost(inlineObject, options).then((request) => request(axios, basePath));
133
- },
134
- };
135
- };
136
- /**
137
- * DefaultApi - object-oriented interface
138
- * @export
139
- * @class DefaultApi
140
- * @extends {BaseAPI}
141
- */
142
- class DefaultApi extends base_1.BaseAPI {
143
- /**
144
- *
145
- * @summary Creates Audit Log event
146
- * @param {InlineObject} inlineObject
147
- * @param {*} [options] Override http request option.
148
- * @throws {RequiredError}
149
- * @memberof DefaultApi
150
- */
151
- v1LogPost(inlineObject, options) {
152
- return exports.DefaultApiFp(this.configuration).v1LogPost(inlineObject, options).then((request) => request(this.axios, this.basePath));
153
- }
154
- }
155
- exports.DefaultApi = DefaultApi;
156
- //# sourceMappingURL=default-api.js.map
@@ -1 +0,0 @@
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,SAAS,EAAE,CAAO,YAA0B,EAAE,UAAe,EAAE,EAAwB,EAAE;YACrF,oEAAoE;YACpE,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,SAAS,EAAE;gBACrD,MAAM,IAAI,oBAAa,CAAC,cAAc,EAAC,+EAA+E,CAAC,CAAC;aAC3H;YACD,MAAM,YAAY,GAAG,SAAS,CAAC;YAC/B,MAAM,cAAc,GAAG,eAAe,CAAC,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@ -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,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
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
- }) : (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- }));
21
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- __exportStar(require("./api/default-api"), exports);
26
- //# 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,oDAAkC"}
@@ -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,64 +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
- exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
19
- // Some imports not used depending on template conditions
20
- // @ts-ignore
21
- const axios_1 = __importDefault(require("axios"));
22
- exports.BASE_PATH = "http://localhost:8090".replace(/\/+$/, "");
23
- /**
24
- *
25
- * @export
26
- */
27
- exports.COLLECTION_FORMATS = {
28
- csv: ",",
29
- ssv: " ",
30
- tsv: "\t",
31
- pipes: "|",
32
- };
33
- /**
34
- *
35
- * @export
36
- * @class BaseAPI
37
- */
38
- class BaseAPI {
39
- constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
40
- this.basePath = basePath;
41
- this.axios = axios;
42
- if (configuration) {
43
- this.configuration = configuration;
44
- this.basePath = configuration.basePath || this.basePath;
45
- }
46
- }
47
- }
48
- exports.BaseAPI = BaseAPI;
49
- ;
50
- /**
51
- *
52
- * @export
53
- * @class RequiredError
54
- * @extends {Error}
55
- */
56
- class RequiredError extends Error {
57
- constructor(field, msg) {
58
- super(msg);
59
- this.field = field;
60
- this.name = "RequiredError";
61
- }
62
- }
63
- exports.RequiredError = RequiredError;
64
- //# 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,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,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 | Promise<string> | ((name: string) => string) | ((name: string) => Promise<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 | Promise<string> | ((name: string) => string) | ((name: string) => Promise<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,27 +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
- exports.Configuration = void 0;
16
- class Configuration {
17
- constructor(param = {}) {
18
- this.apiKey = param.apiKey;
19
- this.username = param.username;
20
- this.password = param.password;
21
- this.accessToken = param.accessToken;
22
- this.basePath = param.basePath;
23
- this.baseOptions = param.baseOptions;
24
- }
25
- }
26
- exports.Configuration = Configuration;
27
- //# 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,27 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
- }) : (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- }));
21
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- __exportStar(require("./api"), exports);
26
- __exportStar(require("./configuration"), exports);
27
- //# 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,wCAAsB;AACtB,kDAAgC"}
@@ -1 +0,0 @@
1
- export * from './inline-object';
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./inline-object"), exports);
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/transport/generated/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC"}