@infisale-client/api-client 1.1.4
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/LICENSE.md +9 -0
- package/README.md +11 -0
- package/dist/api/api.d.ts +8483 -0
- package/dist/api/api.js +2563 -0
- package/dist/api/api.mjs +2525 -0
- package/dist/api/base.d.ts +66 -0
- package/dist/api/base.js +67 -0
- package/dist/api/base.mjs +59 -0
- package/dist/api/common.d.ts +65 -0
- package/dist/api/common.js +145 -0
- package/dist/api/common.mjs +133 -0
- package/dist/api/configuration.d.ts +91 -0
- package/dist/api/configuration.js +43 -0
- package/dist/api/configuration.mjs +39 -0
- package/dist/api/index.d.ts +13 -0
- package/dist/api/index.js +31 -0
- package/dist/api/index.mjs +15 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +62 -0
- package/dist/index.mjs +29 -0
- package/package.json +40 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* etc-backend
|
|
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
|
+
*
|
|
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
|
+
export class Configuration {
|
|
15
|
+
constructor(param = {}) {
|
|
16
|
+
this.apiKey = param.apiKey;
|
|
17
|
+
this.username = param.username;
|
|
18
|
+
this.password = param.password;
|
|
19
|
+
this.accessToken = param.accessToken;
|
|
20
|
+
this.basePath = param.basePath;
|
|
21
|
+
this.serverIndex = param.serverIndex;
|
|
22
|
+
this.baseOptions = param.baseOptions;
|
|
23
|
+
this.formDataCtor = param.formDataCtor;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if the given MIME is a JSON MIME.
|
|
27
|
+
* JSON MIME examples:
|
|
28
|
+
* application/json
|
|
29
|
+
* application/json; charset=UTF8
|
|
30
|
+
* APPLICATION/JSON
|
|
31
|
+
* application/vnd.company+json
|
|
32
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
33
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
34
|
+
*/
|
|
35
|
+
isJsonMime(mime) {
|
|
36
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
37
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* etc-backend
|
|
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
|
+
*
|
|
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";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* etc-backend
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("./api.js"), exports);
|
|
31
|
+
__exportStar(require("./configuration.js"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* etc-backend
|
|
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
|
+
*
|
|
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
|
+
export * from "./api.mjs";
|
|
15
|
+
export * from "./configuration.mjs";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from './api';
|
|
2
|
+
import * as doc from './api';
|
|
3
|
+
import type { AxiosInstance, AxiosInterceptorManager, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
+
interface IApiClient {
|
|
5
|
+
UserApi: doc.UserApi;
|
|
6
|
+
AuthApi: doc.AuthApi;
|
|
7
|
+
CompanyApi: doc.CompanyApi;
|
|
8
|
+
AddressApi: doc.AddressApi;
|
|
9
|
+
PageApi: doc.PageApi;
|
|
10
|
+
ProductApi: doc.ProductApi;
|
|
11
|
+
CollectionApi: doc.CollectionApi;
|
|
12
|
+
interceptors: {
|
|
13
|
+
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
14
|
+
response: AxiosInterceptorManager<AxiosResponse>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare class ApiClient implements IApiClient {
|
|
18
|
+
private baseURL;
|
|
19
|
+
options?: {
|
|
20
|
+
headers?: Record<string, string>;
|
|
21
|
+
} | undefined;
|
|
22
|
+
api: AxiosInstance;
|
|
23
|
+
interceptors: {
|
|
24
|
+
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
25
|
+
response: AxiosInterceptorManager<AxiosResponse>;
|
|
26
|
+
};
|
|
27
|
+
UserApi: doc.UserApi;
|
|
28
|
+
AuthApi: doc.AuthApi;
|
|
29
|
+
CompanyApi: doc.CompanyApi;
|
|
30
|
+
AddressApi: doc.AddressApi;
|
|
31
|
+
PageApi: doc.PageApi;
|
|
32
|
+
ProductApi: doc.ProductApi;
|
|
33
|
+
CollectionApi: doc.CollectionApi;
|
|
34
|
+
constructor(baseURL: string, options?: {
|
|
35
|
+
headers?: Record<string, string>;
|
|
36
|
+
} | undefined);
|
|
37
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.ApiClient = void 0;
|
|
33
|
+
__exportStar(require("./api/index.js"), exports);
|
|
34
|
+
const doc = __importStar(require("./api/index.js"));
|
|
35
|
+
const axios_1 = __importDefault(require("axios"));
|
|
36
|
+
class ApiClient {
|
|
37
|
+
constructor(baseURL, options) {
|
|
38
|
+
this.baseURL = baseURL;
|
|
39
|
+
this.options = options;
|
|
40
|
+
this.api = axios_1.default.create({
|
|
41
|
+
baseURL: this.baseURL,
|
|
42
|
+
headers: {
|
|
43
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
44
|
+
Accept: 'application/json',
|
|
45
|
+
'Content-Type': 'application/json',
|
|
46
|
+
...options?.headers,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
this.UserApi = new doc.UserApi(undefined, this.baseURL, this.api);
|
|
50
|
+
this.AuthApi = new doc.AuthApi(undefined, this.baseURL, this.api);
|
|
51
|
+
this.CompanyApi = new doc.CompanyApi(undefined, this.baseURL, this.api);
|
|
52
|
+
this.AddressApi = new doc.AddressApi(undefined, this.baseURL, this.api);
|
|
53
|
+
this.PageApi = new doc.PageApi(undefined, this.baseURL, this.api);
|
|
54
|
+
this.ProductApi = new doc.ProductApi(undefined, this.baseURL, this.api);
|
|
55
|
+
this.CollectionApi = new doc.CollectionApi(undefined, this.baseURL, this.api);
|
|
56
|
+
this.interceptors = {
|
|
57
|
+
request: this.api.interceptors.request,
|
|
58
|
+
response: this.api.interceptors.response,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.ApiClient = ApiClient;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from "./api/index.mjs";
|
|
2
|
+
import * as doc from "./api/index.mjs";
|
|
3
|
+
import Axios from 'axios';
|
|
4
|
+
export class ApiClient {
|
|
5
|
+
constructor(baseURL, options) {
|
|
6
|
+
this.baseURL = baseURL;
|
|
7
|
+
this.options = options;
|
|
8
|
+
this.api = Axios.create({
|
|
9
|
+
baseURL: this.baseURL,
|
|
10
|
+
headers: {
|
|
11
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
12
|
+
Accept: 'application/json',
|
|
13
|
+
'Content-Type': 'application/json',
|
|
14
|
+
...options?.headers,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
this.UserApi = new doc.UserApi(undefined, this.baseURL, this.api);
|
|
18
|
+
this.AuthApi = new doc.AuthApi(undefined, this.baseURL, this.api);
|
|
19
|
+
this.CompanyApi = new doc.CompanyApi(undefined, this.baseURL, this.api);
|
|
20
|
+
this.AddressApi = new doc.AddressApi(undefined, this.baseURL, this.api);
|
|
21
|
+
this.PageApi = new doc.PageApi(undefined, this.baseURL, this.api);
|
|
22
|
+
this.ProductApi = new doc.ProductApi(undefined, this.baseURL, this.api);
|
|
23
|
+
this.CollectionApi = new doc.CollectionApi(undefined, this.baseURL, this.api);
|
|
24
|
+
this.interceptors = {
|
|
25
|
+
request: this.api.interceptors.request,
|
|
26
|
+
response: this.api.interceptors.response,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@infisale-client/api-client",
|
|
3
|
+
"version": "1.1.4",
|
|
4
|
+
"description": "api-client-sdk",
|
|
5
|
+
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
|
+
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
7
|
+
"private": false,
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"type": "commonjs",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "npm run openapi && npm exec tsc-multi",
|
|
14
|
+
"openapi": "openapi-generator generate -i swagger-client.json -g typescript-axios -o lib/api --additional-properties=useSingleRequestParameter=true,enumPropertyNaming=UPPERCASE"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
23
|
+
"directories": {
|
|
24
|
+
"lib": "lib"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"typescript": "^5.6.2"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"axios": "^1.7.7"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/infisale/infisale-client.git"
|
|
35
|
+
},
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
|
+
},
|
|
39
|
+
"gitHead": "936cf671efa80b7bb00ca1721e70543af2ab3b70"
|
|
40
|
+
}
|