@rlvt/datasources-openapi-client 0.0.0-cc8d24f → 0.0.0-ce515f8

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/base.ts DELETED
@@ -1,71 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * frontend
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: cc8d24fc19b3c987ee663cb4712afd411cd96c8d
8
- *
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
-
15
-
16
- import { Configuration } from "./configuration";
17
- // Some imports not used depending on template conditions
18
- // @ts-ignore
19
- import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
20
-
21
- export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
22
-
23
- /**
24
- *
25
- * @export
26
- */
27
- export const COLLECTION_FORMATS = {
28
- csv: ",",
29
- ssv: " ",
30
- tsv: "\t",
31
- pipes: "|",
32
- };
33
-
34
- /**
35
- *
36
- * @export
37
- * @interface RequestArgs
38
- */
39
- export interface RequestArgs {
40
- url: string;
41
- options: any;
42
- }
43
-
44
- /**
45
- *
46
- * @export
47
- * @class BaseAPI
48
- */
49
- export class BaseAPI {
50
- protected configuration: Configuration | undefined;
51
-
52
- constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
53
- if (configuration) {
54
- this.configuration = configuration;
55
- this.basePath = configuration.basePath || this.basePath;
56
- }
57
- }
58
- };
59
-
60
- /**
61
- *
62
- * @export
63
- * @class RequiredError
64
- * @extends {Error}
65
- */
66
- export class RequiredError extends Error {
67
- name: "RequiredError" = "RequiredError";
68
- constructor(public field: string, msg?: string) {
69
- super(msg);
70
- }
71
- }
package/build/base.js DELETED
@@ -1,65 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * frontend
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: cc8d24fc19b3c987ee663cb4712afd411cd96c8d
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
- // Some imports not used depending on template conditions
21
- // @ts-ignore
22
- const axios_1 = __importDefault(require("axios"));
23
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
24
- /**
25
- *
26
- * @export
27
- */
28
- exports.COLLECTION_FORMATS = {
29
- csv: ",",
30
- ssv: " ",
31
- tsv: "\t",
32
- pipes: "|",
33
- };
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
- class BaseAPI {
40
- constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
41
- this.basePath = basePath;
42
- this.axios = axios;
43
- if (configuration) {
44
- this.configuration = configuration;
45
- this.basePath = configuration.basePath || this.basePath;
46
- }
47
- }
48
- }
49
- exports.BaseAPI = BaseAPI;
50
- ;
51
- /**
52
- *
53
- * @export
54
- * @class RequiredError
55
- * @extends {Error}
56
- */
57
- class RequiredError extends Error {
58
- constructor(field, msg) {
59
- super(msg);
60
- this.field = field;
61
- this.name = "RequiredError";
62
- }
63
- }
64
- exports.RequiredError = RequiredError;
65
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQU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
- /**
5
- * frontend
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: cc8d24fc19b3c987ee663cb4712afd411cd96c8d
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.Configuration = void 0;
17
- class Configuration {
18
- constructor(param = {}) {
19
- this.apiKey = param.apiKey;
20
- this.username = param.username;
21
- this.password = param.password;
22
- this.accessToken = param.accessToken;
23
- this.basePath = param.basePath;
24
- this.baseOptions = param.baseOptions;
25
- this.formDataCtor = param.formDataCtor;
26
- }
27
- /**
28
- * Check if the given MIME is a JSON MIME.
29
- * JSON MIME examples:
30
- * application/json
31
- * application/json; charset=UTF8
32
- * APPLICATION/JSON
33
- * application/vnd.company+json
34
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
35
- * @return True if the given MIME is JSON, false otherwise.
36
- */
37
- isJsonMime(mime) {
38
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
39
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
40
- }
41
- }
42
- exports.Configuration = Configuration;
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2NvbmZpZ3VyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBYUgsTUFBYSxhQUFhO0lBbUR0QixZQUFZLFFBQWlDLEVBQUU7UUFDM0MsSUFBSSxDQUFDLE1BQU0sR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDO1FBQzNCLElBQUksQ0FBQyxRQUFRLEdBQUcsS0FBSyxDQUFDLFFBQVEsQ0FBQztRQUMvQixJQUFJLENBQUMsUUFBUSxHQUFHLEtBQUssQ0FBQyxRQUFRLENBQUM7UUFDL0IsSUFBSSxDQUFDLFdBQVcsR0FBRyxLQUFLLENBQUMsV0FBVyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxRQUFRLEdBQUcsS0FBSyxDQUFDLFFBQVEsQ0FBQztRQUMvQixJQUFJLENBQUMsV0FBVyxHQUFHLEtBQUssQ0FBQyxXQUFXLENBQUM7UUFDckMsSUFBSSxDQUFDLFlBQVksR0FBRyxLQUFLLENBQUMsWUFBWSxDQUFDO0lBQzNDLENBQUM7SUFFRDs7Ozs7Ozs7O09BU0c7SUFDSSxVQUFVLENBQUMsSUFBWTtRQUMxQixNQUFNLFFBQVEsR0FBVyxJQUFJLE1BQU0sQ0FBQywrREFBK0QsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUMxRyxPQUFPLElBQUksS0FBSyxJQUFJLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLElBQUksQ0FBQyxXQUFXLEVBQUUsS0FBSyw2QkFBNkIsQ0FBQyxDQUFDO0lBQzFHLENBQUM7Q0FDSjtBQTNFRCxzQ0EyRUMifQ==
package/configuration.ts DELETED
@@ -1,101 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * frontend
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: cc8d24fc19b3c987ee663cb4712afd411cd96c8d
8
- *
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
-
15
-
16
- export interface ConfigurationParameters {
17
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
- username?: string;
19
- password?: string;
20
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
- basePath?: string;
22
- baseOptions?: any;
23
- formDataCtor?: new () => any;
24
- }
25
-
26
- export class Configuration {
27
- /**
28
- * parameter for apiKey security
29
- * @param name security name
30
- * @memberof Configuration
31
- */
32
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
33
- /**
34
- * parameter for basic security
35
- *
36
- * @type {string}
37
- * @memberof Configuration
38
- */
39
- username?: string;
40
- /**
41
- * parameter for basic security
42
- *
43
- * @type {string}
44
- * @memberof Configuration
45
- */
46
- password?: string;
47
- /**
48
- * parameter for oauth2 security
49
- * @param name security name
50
- * @param scopes oauth2 scope
51
- * @memberof Configuration
52
- */
53
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
- /**
55
- * override base path
56
- *
57
- * @type {string}
58
- * @memberof Configuration
59
- */
60
- basePath?: string;
61
- /**
62
- * base options for axios calls
63
- *
64
- * @type {any}
65
- * @memberof Configuration
66
- */
67
- baseOptions?: any;
68
- /**
69
- * The FormData constructor that will be used to create multipart form data
70
- * requests. You can inject this here so that execution environments that
71
- * do not support the FormData class can still run the generated client.
72
- *
73
- * @type {new () => FormData}
74
- */
75
- formDataCtor?: new () => any;
76
-
77
- constructor(param: ConfigurationParameters = {}) {
78
- this.apiKey = param.apiKey;
79
- this.username = param.username;
80
- this.password = param.password;
81
- this.accessToken = param.accessToken;
82
- this.basePath = param.basePath;
83
- this.baseOptions = param.baseOptions;
84
- this.formDataCtor = param.formDataCtor;
85
- }
86
-
87
- /**
88
- * Check if the given MIME is a JSON MIME.
89
- * JSON MIME examples:
90
- * application/json
91
- * application/json; charset=UTF8
92
- * APPLICATION/JSON
93
- * application/vnd.company+json
94
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
95
- * @return True if the given MIME is JSON, false otherwise.
96
- */
97
- public isJsonMime(mime: string): boolean {
98
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
99
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
100
- }
101
- }
package/git_push.sh DELETED
@@ -1,58 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=`git remote`
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
58
-
package/index.ts DELETED
@@ -1,18 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * frontend
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: cc8d24fc19b3c987ee663cb4712afd411cd96c8d
8
- *
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
-
15
-
16
- export * from "./api";
17
- export * from "./configuration";
18
-
@@ -1,22 +0,0 @@
1
- {
2
- "name": "@rlvt/datasources-openapi-client",
3
- "version": "{{PKG_VERSION}}",
4
- "description": "Openapi client for reelevant service",
5
- "main": "build/index.js",
6
- "repository": "https://github.com/reelevant-tech/openapi-clients",
7
- "author": "Reelevant",
8
- "license": "MIT",
9
- "publishconfig": {
10
- "access": "private"
11
- },
12
- "scripts": {
13
- "build": "tsc --project .",
14
- "prepublish": "yarn build"
15
- },
16
- "dependencies": {
17
- "axios": "^0.20.0"
18
- },
19
- "devDependencies": {
20
- "typescript": "^4.0.3"
21
- }
22
- }
package/tsconfig.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "experimentalDecorators": true,
4
- "allowUnreachableCode": false,
5
- "allowUnusedLabels": false,
6
- "forceConsistentCasingInFileNames": true,
7
- "module": "commonjs",
8
- "declaration": false,
9
- "importHelpers": false,
10
- "noEmitOnError": true,
11
- "noFallthroughCasesInSwitch": true,
12
- "noImplicitReturns": true,
13
- "noUnusedLocals": true,
14
- "pretty": true,
15
- "inlineSourceMap": true,
16
- "noImplicitThis": true,
17
- "noImplicitAny": true,
18
- "strict": true,
19
- "strictNullChecks": false,
20
- "skipLibCheck": true,
21
- "target": "es2019",
22
- "baseUrl": ".",
23
- "esModuleInterop": true,
24
- "emitDecoratorMetadata": true,
25
- "resolveJsonModule": true,
26
- "rootDirs": [ "./src" ],
27
- "outDir": "./build"
28
- },
29
- "exclude": [
30
- "node_modules",
31
- "build",
32
- "tests"
33
- ]
34
- }