orak-util-ts 1.0.0 → 1.0.2
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 +9 -98
- package/dist/orak-util-ts.cjs +1 -0
- package/dist/orak-util-ts.d.cts +195 -0
- package/dist/orak-util-ts.d.ts +195 -0
- package/dist/orak-util-ts.global.js +19 -0
- package/dist/orak-util-ts.js +1 -0
- package/package.json +51 -90
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1,103 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
<h1>Orak Software Utility Typescript Library</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Fikeybean
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- Formats TypeScript code using [Prettier](https://prettier.io).
|
|
7
|
-
- Lints TypeScript code using [ESLint](https://eslint.org).
|
|
8
|
-
- Runs unit tests using [AVA](https://github.com/avajs/ava).
|
|
9
|
-
- Generates code coverage reports using NYC.
|
|
10
|
-
- Generates HTML documentation using [TypeDoc](https://typedoc.org).
|
|
11
|
-
- Uses [Husky](https://github.com/typicode/husky) Git hooks and [Lint-staged](https://github.com/okonet/lint-staged) pre-commit hooks.
|
|
5
|
+
This class wraps a map field with convenient methods.
|
|
12
6
|
|
|
13
|
-
## Installation
|
|
14
7
|
|
|
15
|
-
|
|
8
|
+
# package.json çıkarılanlar
|
|
16
9
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npm install
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
There are several scripts available to help you get started:
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
Compile the TypeScript code using both the `tsconfig.json` and `tsconfig.module.json` files.
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
npm run build
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
Formats the TypeScript code using Prettier and lints the code using ESLint, fixing any issues found.
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npm run fix
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
Lints the TypeScript code using ESLint, checks the code formatting using Prettier, and runs the unit tests using AVA.
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
npm run test
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
Watches for changes in the TypeScript code and recompiles the code using `tsconfig.json`.
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm run watch:build
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
Watches for changes in the TypeScript code and re-runs the unit tests using AVA.
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
npm run watch:test
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
Generates an HTML report of the code coverage using NYC and opens the report in the browser.
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
npm run cov
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
Generates HTML documentation of the TypeScript code and opens the documentation in the browser.
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
npm run doc
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
The template uses [Husky](https://github.com/typicode/husky) and [Lint-staged](https://github.com/okonet/lint-staged) to run pre-commit hooks that ensure your code is formatted, linted, tested, and documented before committing.
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
For more information on available scripts, see the `Scripts` section of the `package.json` file.
|
|
92
|
-
|
|
93
|
-
## Contributing
|
|
94
|
-
|
|
95
|
-
To contribute to the project, please follow the guidelines for submitting issues and pull requests.
|
|
96
|
-
|
|
97
|
-
## License
|
|
98
|
-
|
|
99
|
-
This project is licensed under the MIT License.
|
|
100
|
-
|
|
101
|
-
## Acknowledgements
|
|
102
|
-
|
|
103
|
-
This project uses Prettier, ESLint, AVA, NYC, Husky, Lint-staged, TypeDoc.
|
|
10
|
+
esbuildOptions(options) {
|
|
11
|
+
//options.minifyIdentifiers = false; // Değişken ve class isimlerini küçültme
|
|
12
|
+
//options.keepNames = true; // Fonksiyon ve class isimlerini koru
|
|
13
|
+
console.log(options); // Burada ayarları kontrol et
|
|
14
|
+
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(t,e)=>{for(var r in e)__defProp(t,r,{get:e[r],enumerable:!0})},__copyProps=(t,e,r,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let i of __getOwnPropNames(e))__hasOwnProp.call(t,i)||i===r||__defProp(t,i,{get:()=>e[i],enumerable:!(s=__getOwnPropDesc(e,i))||s.enumerable});return t},__toESM=(t,e,r)=>(r=null!=t?__create(__getProtoOf(t)):{},__copyProps(!e&&t&&t.__esModule?r:__defProp(r,"default",{value:t,enumerable:!0}),t)),__toCommonJS=t=>__copyProps(__defProp({},"__esModule",{value:!0}),t),src_exports={};__export(src_exports,{Fdr:()=>Fdr,FiCol:()=>FiCol,FiFetchClient:()=>FiFetchClient,FiHttpClient:()=>FiHttpClient,FiKeyEntity:()=>FiKeyEntity,FiKeybean:()=>FiKeybean,FiLocalStorage:()=>FiLocalStorage,FiLog:()=>FiLog,FiMeta:()=>FiMeta,FiNumber:()=>FiNumber,FiString:()=>FiString,FicList:()=>FicList,FkbList:()=>FkbList}),module.exports=__toCommonJS(src_exports);var FiKeyEntity=class{constructor(){this.mapData=new Map}fiPut(t,e){return this.mapData.set(t,e),this}fiGet(t){if(null!=t)return this.mapData.get(t)}},FiFetchClient=class{constructor(t,e={}){this.baseUrl=t,this.defaultHeaders=e}async request(t,e={}){const r=`${this.baseUrl}${t}`,s={...this.defaultHeaders,...e.headers||{}};try{const t=await fetch(r,{...e,headers:s});if(!t.ok)throw new Error(`Fetch error: ${t.status} - ${t.statusText}`);return t.headers.get("Content-Type")?.includes("application/json")?await t.json():await t.text()}catch(t){throw console.error("Request failed:",t),t}}async get(t,e){return this.request(t,{method:"GET",headers:e})}async post(t,e,r){return this.request(t,{method:"POST",headers:{"Content-Type":"application/json",...r},body:JSON.stringify(e)})}async put(t,e,r){return this.request(t,{method:"PUT",headers:{"Content-Type":"application/json",...r},body:JSON.stringify(e)})}async delete(t,e){return this.request(t,{method:"DELETE",headers:e})}},import_axios=__toESM(require("axios"),1),FiHttpClient=class{constructor(t,e=1e4,r){const s={"Content-Type":"application/json",...r?.getAsObject()};this.axiosInstance=import_axios.default.create({baseURL:t,timeout:e,headers:s}),this.initializeResponseInterceptor()}initializeResponseInterceptor(){this.axiosInstance.interceptors.response.use(this.handleResponse,this.handleError)}handleResponse({data:t}){return t}handleError(t){return console.error("API Hatası:",t),Promise.reject(t.message||"Bir hata oluştu")}async get(t,e){return this.axiosInstance.get(t,e)}async post(t,e,r){return this.axiosInstance.post(t,e,r)}async put(t,e,r){return this.axiosInstance.put(t,e,r)}async delete(t,e){return this.axiosInstance.delete(t,e)}},FiString=class{static cropWitDot(t,e){return this.crop(t,e,"..")}static crop(t,e,r=""){return t?t.length>e?t.substring(0,e)+r:t:""}static joinComma(t,e){return t&&0!==t.length?t.map(e).join(", "):""}static orEmpty(t){return null==t?"":t}},FiNumber=class{static orZero(t){return null==t?0:t}static orMinusOne(t){return null==t?-1:t}},FiMeta=class _FiMeta{static create(t){let e=new _FiMeta;return e.fimTxKey=t,e}getTxKeyNtn(){return FiString.orEmpty(this.fimTxKey)}getTxValueNtn(){return FiString.orEmpty(this.fimTxValue)}getLnKeyOrMinusOne(){return FiNumber.orMinusOne(this.fimLnKey)}},Fdr=class{getLogListNtn(){return null==this.logList&&(this.logList=new Array),this.logList}},FiLog=class{},FiCol=class _FiCol{static bui(t,e){let r=new _FiCol;return r.ofcTxFieldName=t,r.ofcTxHeader=e,r}},FiKeybean=class{constructor(){this.mapData=new Map}fiPut(t,e){return this.mapData.set(t,e),this}fiGetAsStringNtn(t){return null==t?"":this.mapData.has(t)?this.mapData.get(t).toString():""}fiGet(t){if(null!=t)return this.mapData.get(t)}getAsObject(){const t={};for(const[e,r]of this.mapData.entries())t[e]=r;return t}},FkbList=class{constructor(){this.fkbList=[]}add(t){this.push(t)}push(t){this.fkbList.push(t)}getFkbListInit(){return null==this.fkbList&&(this.fkbList=[]),this.fkbList}getArray(){return this.fkbList}},FicList=class{constructor(){this.ficList=[]}add(t){this.push(t)}push(t){this.ficList.push(t)}getFicListInit(){return null==this.ficList&&(this.ficList=[]),this.ficList}getFl(){return this.ficList}},FiLocalStorage=class{static set(t,e){try{const r="string"==typeof e?e:JSON.stringify(e);window.localStorage.setItem(t,r)}catch(t){console.error("FiLocalStorage.set error:",t)}}static get(t){try{const e=window.localStorage.getItem(t);if(null===e)return null;try{return JSON.parse(e)}catch{return e}}catch(t){return console.error("FiLocalStorage.get error:",t),null}}static remove(t){try{window.localStorage.removeItem(t)}catch(t){console.error("FiLocalStorage.remove error:",t)}}static clear(){try{window.localStorage.clear()}catch(t){console.error("FiLocalStorage.clear error:",t)}}static exist(t){try{return null!==window.localStorage.getItem(t)}catch(t){return console.error("FiLocalStorage.exist error:",t),!1}}};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
|
|
3
|
+
declare class FiKeyEntity<T> {
|
|
4
|
+
mapData: Map<string, T>;
|
|
5
|
+
fiPut(txKey: string, value: T): FiKeyEntity<T>;
|
|
6
|
+
fiGet(txKey: string | undefined): any;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* FiFetchClient
|
|
12
|
+
*/
|
|
13
|
+
declare class FiFetchClient {
|
|
14
|
+
private baseUrl;
|
|
15
|
+
private defaultHeaders;
|
|
16
|
+
constructor(baseUrl: string, defaultHeaders?: HeadersInit);
|
|
17
|
+
private request;
|
|
18
|
+
get<T>(endpoint: string, headers?: HeadersInit): Promise<T>;
|
|
19
|
+
post<T>(endpoint: string, body?: unknown, headers?: HeadersInit): Promise<T>;
|
|
20
|
+
put<T>(endpoint: string, body?: unknown, headers?: HeadersInit): Promise<T>;
|
|
21
|
+
delete<T>(endpoint: string, headers?: HeadersInit): Promise<T>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class FiKeybean {
|
|
25
|
+
mapData: Map<string, any>;
|
|
26
|
+
fiPut(txKey: string, value: any): FiKeybean;
|
|
27
|
+
fiGetAsStringNtn(txKey: string | undefined): string;
|
|
28
|
+
fiGet(txKey: string | undefined): any;
|
|
29
|
+
getAsObject(): Record<string, any>;
|
|
30
|
+
constructor();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class FiHttpClient {
|
|
34
|
+
private axiosInstance;
|
|
35
|
+
constructor(baseURL: string, timeout?: number, fkbExtraHeaders?: FiKeybean);
|
|
36
|
+
private initializeResponseInterceptor;
|
|
37
|
+
private handleResponse;
|
|
38
|
+
private handleError;
|
|
39
|
+
get<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
40
|
+
post<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<T>;
|
|
41
|
+
put<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<T>;
|
|
42
|
+
delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class FiString {
|
|
46
|
+
static cropWitDot(musTXTUNVAN: string, arg1: number): string;
|
|
47
|
+
static crop(txValue: string, lnSize: number, txSuffix?: string): string;
|
|
48
|
+
static joinComma(iskProList: any, fnValue: (item: any) => any): any;
|
|
49
|
+
static orEmpty(value: string | undefined): string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class FiNumber {
|
|
53
|
+
static orZero(value: number | undefined): number;
|
|
54
|
+
static orMinusOne(value: number | undefined): number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface IFiMeta {
|
|
58
|
+
fimTxKey?: string;
|
|
59
|
+
fimTxValue?: string;
|
|
60
|
+
fimLnKey?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class FiMeta implements IFiMeta {
|
|
64
|
+
fimTxKey?: string;
|
|
65
|
+
fimTxValue?: string;
|
|
66
|
+
fimLnKey?: number;
|
|
67
|
+
static create(txKey: string): FiMeta;
|
|
68
|
+
getTxKeyNtn(): string;
|
|
69
|
+
getTxValueNtn(): string;
|
|
70
|
+
getLnKeyOrMinusOne(): number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class FiLog {
|
|
74
|
+
logTxMessage?: string;
|
|
75
|
+
logTxType?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class Fdr {
|
|
79
|
+
boResult?: boolean;
|
|
80
|
+
message?: string;
|
|
81
|
+
value?: object;
|
|
82
|
+
lnResponseCode?: number;
|
|
83
|
+
txId?: string;
|
|
84
|
+
txName?: string;
|
|
85
|
+
logList?: Array<FiLog>;
|
|
86
|
+
rowsAffected?: number;
|
|
87
|
+
lnTotalCount?: number;
|
|
88
|
+
boFalseExist?: boolean;
|
|
89
|
+
listException?: Array<object>;
|
|
90
|
+
lnStatus?: number;
|
|
91
|
+
getLogListNtn(): Array<FiLog>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare class FiCol {
|
|
95
|
+
ofcTxFieldName?: string;
|
|
96
|
+
ofcTxHeader?: string;
|
|
97
|
+
ofcTxDbFieldName?: string;
|
|
98
|
+
ofcBoUniqGro1?: boolean;
|
|
99
|
+
ofcBoNullable?: boolean;
|
|
100
|
+
ofcBoUnique?: boolean;
|
|
101
|
+
ofcBoUtfSupport?: boolean;
|
|
102
|
+
ofcTxDefValue?: string;
|
|
103
|
+
ofcTxCollation?: string;
|
|
104
|
+
ofcTxTypeName?: string;
|
|
105
|
+
ofcLnLength?: number;
|
|
106
|
+
ofcLnPrecision?: number;
|
|
107
|
+
ofcLnScale?: number;
|
|
108
|
+
ofcBoFilterLike?: boolean;
|
|
109
|
+
ofcTxFieldType?: string;
|
|
110
|
+
ofcTxEntityName?: string;
|
|
111
|
+
oftBoTransient?: boolean;
|
|
112
|
+
txLabel?: string;
|
|
113
|
+
txGuid?: string;
|
|
114
|
+
ofiTxIdType?: string;
|
|
115
|
+
printSize?: number;
|
|
116
|
+
colType?: string;
|
|
117
|
+
boEditable?: boolean;
|
|
118
|
+
boHidden?: boolean;
|
|
119
|
+
boOptional?: boolean;
|
|
120
|
+
boExist?: boolean;
|
|
121
|
+
boRequired?: boolean;
|
|
122
|
+
boEnabled?: boolean;
|
|
123
|
+
entity?: object;
|
|
124
|
+
filterValue?: object;
|
|
125
|
+
boFilterable?: boolean;
|
|
126
|
+
filterNodeClass?: string;
|
|
127
|
+
funcFormatter?: Function;
|
|
128
|
+
colEditorClass?: string;
|
|
129
|
+
colValue?: object;
|
|
130
|
+
colEditorNodeText?: string;
|
|
131
|
+
boNullable?: boolean;
|
|
132
|
+
boNonUpdatable?: boolean;
|
|
133
|
+
boNonEditableForForm?: boolean;
|
|
134
|
+
txParamName?: string;
|
|
135
|
+
boKeyIdField?: boolean;
|
|
136
|
+
boKeyIdentityField?: boolean;
|
|
137
|
+
boUpdateFieldForQuery?: boolean;
|
|
138
|
+
boInsertFieldForQuery?: boolean;
|
|
139
|
+
boParamStatus?: boolean;
|
|
140
|
+
boFilterLike?: boolean;
|
|
141
|
+
lnCode?: number;
|
|
142
|
+
boEditorOnlyNumber?: boolean;
|
|
143
|
+
boWhereField?: boolean;
|
|
144
|
+
static bui(txFieldName: string, txHeader: string): FiCol;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare class FkbList {
|
|
148
|
+
fkbList: Array<FiKeybean>;
|
|
149
|
+
constructor();
|
|
150
|
+
add(fkb: FiKeybean): void;
|
|
151
|
+
push(fkb: FiKeybean): void;
|
|
152
|
+
getFkbListInit(): Array<FiKeybean>;
|
|
153
|
+
getArray(): Array<FiKeybean>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class FicList {
|
|
157
|
+
ficList: Array<FiCol>;
|
|
158
|
+
constructor();
|
|
159
|
+
add(fic: FiCol): void;
|
|
160
|
+
push(fic: FiCol): void;
|
|
161
|
+
getFicListInit(): Array<FiCol>;
|
|
162
|
+
getFl(): FiCol[];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class FiLocalStorage {
|
|
166
|
+
/**
|
|
167
|
+
* Anahtar ile localStorage'a veri kaydeder
|
|
168
|
+
* @param key string
|
|
169
|
+
* @param value any
|
|
170
|
+
*/
|
|
171
|
+
static set(key: string, value: any): void;
|
|
172
|
+
/**
|
|
173
|
+
* Anahtar ile localStorage'dan veri okur
|
|
174
|
+
* @param key string
|
|
175
|
+
* @returns any | null
|
|
176
|
+
*/
|
|
177
|
+
static get<T = any>(key: string): T | null;
|
|
178
|
+
/**
|
|
179
|
+
* Anahtar ile localStorage'dan veriyi siler
|
|
180
|
+
* @param key string
|
|
181
|
+
*/
|
|
182
|
+
static remove(key: string): void;
|
|
183
|
+
/**
|
|
184
|
+
* Tüm localStorage verisini temizler
|
|
185
|
+
*/
|
|
186
|
+
static clear(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Anahtar localStorage'da var mı kontrol eder
|
|
189
|
+
* @param key string
|
|
190
|
+
* @returns boolean
|
|
191
|
+
*/
|
|
192
|
+
static exist(key: string): boolean;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export { Fdr, FiCol, FiFetchClient, FiHttpClient, FiKeyEntity, FiKeybean, FiLocalStorage, FiLog, FiMeta, FiNumber, FiString, FicList, FkbList, type IFiMeta };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
|
|
3
|
+
declare class FiKeyEntity<T> {
|
|
4
|
+
mapData: Map<string, T>;
|
|
5
|
+
fiPut(txKey: string, value: T): FiKeyEntity<T>;
|
|
6
|
+
fiGet(txKey: string | undefined): any;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* FiFetchClient
|
|
12
|
+
*/
|
|
13
|
+
declare class FiFetchClient {
|
|
14
|
+
private baseUrl;
|
|
15
|
+
private defaultHeaders;
|
|
16
|
+
constructor(baseUrl: string, defaultHeaders?: HeadersInit);
|
|
17
|
+
private request;
|
|
18
|
+
get<T>(endpoint: string, headers?: HeadersInit): Promise<T>;
|
|
19
|
+
post<T>(endpoint: string, body?: unknown, headers?: HeadersInit): Promise<T>;
|
|
20
|
+
put<T>(endpoint: string, body?: unknown, headers?: HeadersInit): Promise<T>;
|
|
21
|
+
delete<T>(endpoint: string, headers?: HeadersInit): Promise<T>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class FiKeybean {
|
|
25
|
+
mapData: Map<string, any>;
|
|
26
|
+
fiPut(txKey: string, value: any): FiKeybean;
|
|
27
|
+
fiGetAsStringNtn(txKey: string | undefined): string;
|
|
28
|
+
fiGet(txKey: string | undefined): any;
|
|
29
|
+
getAsObject(): Record<string, any>;
|
|
30
|
+
constructor();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class FiHttpClient {
|
|
34
|
+
private axiosInstance;
|
|
35
|
+
constructor(baseURL: string, timeout?: number, fkbExtraHeaders?: FiKeybean);
|
|
36
|
+
private initializeResponseInterceptor;
|
|
37
|
+
private handleResponse;
|
|
38
|
+
private handleError;
|
|
39
|
+
get<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
40
|
+
post<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<T>;
|
|
41
|
+
put<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<T>;
|
|
42
|
+
delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class FiString {
|
|
46
|
+
static cropWitDot(musTXTUNVAN: string, arg1: number): string;
|
|
47
|
+
static crop(txValue: string, lnSize: number, txSuffix?: string): string;
|
|
48
|
+
static joinComma(iskProList: any, fnValue: (item: any) => any): any;
|
|
49
|
+
static orEmpty(value: string | undefined): string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class FiNumber {
|
|
53
|
+
static orZero(value: number | undefined): number;
|
|
54
|
+
static orMinusOne(value: number | undefined): number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface IFiMeta {
|
|
58
|
+
fimTxKey?: string;
|
|
59
|
+
fimTxValue?: string;
|
|
60
|
+
fimLnKey?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class FiMeta implements IFiMeta {
|
|
64
|
+
fimTxKey?: string;
|
|
65
|
+
fimTxValue?: string;
|
|
66
|
+
fimLnKey?: number;
|
|
67
|
+
static create(txKey: string): FiMeta;
|
|
68
|
+
getTxKeyNtn(): string;
|
|
69
|
+
getTxValueNtn(): string;
|
|
70
|
+
getLnKeyOrMinusOne(): number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class FiLog {
|
|
74
|
+
logTxMessage?: string;
|
|
75
|
+
logTxType?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class Fdr {
|
|
79
|
+
boResult?: boolean;
|
|
80
|
+
message?: string;
|
|
81
|
+
value?: object;
|
|
82
|
+
lnResponseCode?: number;
|
|
83
|
+
txId?: string;
|
|
84
|
+
txName?: string;
|
|
85
|
+
logList?: Array<FiLog>;
|
|
86
|
+
rowsAffected?: number;
|
|
87
|
+
lnTotalCount?: number;
|
|
88
|
+
boFalseExist?: boolean;
|
|
89
|
+
listException?: Array<object>;
|
|
90
|
+
lnStatus?: number;
|
|
91
|
+
getLogListNtn(): Array<FiLog>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare class FiCol {
|
|
95
|
+
ofcTxFieldName?: string;
|
|
96
|
+
ofcTxHeader?: string;
|
|
97
|
+
ofcTxDbFieldName?: string;
|
|
98
|
+
ofcBoUniqGro1?: boolean;
|
|
99
|
+
ofcBoNullable?: boolean;
|
|
100
|
+
ofcBoUnique?: boolean;
|
|
101
|
+
ofcBoUtfSupport?: boolean;
|
|
102
|
+
ofcTxDefValue?: string;
|
|
103
|
+
ofcTxCollation?: string;
|
|
104
|
+
ofcTxTypeName?: string;
|
|
105
|
+
ofcLnLength?: number;
|
|
106
|
+
ofcLnPrecision?: number;
|
|
107
|
+
ofcLnScale?: number;
|
|
108
|
+
ofcBoFilterLike?: boolean;
|
|
109
|
+
ofcTxFieldType?: string;
|
|
110
|
+
ofcTxEntityName?: string;
|
|
111
|
+
oftBoTransient?: boolean;
|
|
112
|
+
txLabel?: string;
|
|
113
|
+
txGuid?: string;
|
|
114
|
+
ofiTxIdType?: string;
|
|
115
|
+
printSize?: number;
|
|
116
|
+
colType?: string;
|
|
117
|
+
boEditable?: boolean;
|
|
118
|
+
boHidden?: boolean;
|
|
119
|
+
boOptional?: boolean;
|
|
120
|
+
boExist?: boolean;
|
|
121
|
+
boRequired?: boolean;
|
|
122
|
+
boEnabled?: boolean;
|
|
123
|
+
entity?: object;
|
|
124
|
+
filterValue?: object;
|
|
125
|
+
boFilterable?: boolean;
|
|
126
|
+
filterNodeClass?: string;
|
|
127
|
+
funcFormatter?: Function;
|
|
128
|
+
colEditorClass?: string;
|
|
129
|
+
colValue?: object;
|
|
130
|
+
colEditorNodeText?: string;
|
|
131
|
+
boNullable?: boolean;
|
|
132
|
+
boNonUpdatable?: boolean;
|
|
133
|
+
boNonEditableForForm?: boolean;
|
|
134
|
+
txParamName?: string;
|
|
135
|
+
boKeyIdField?: boolean;
|
|
136
|
+
boKeyIdentityField?: boolean;
|
|
137
|
+
boUpdateFieldForQuery?: boolean;
|
|
138
|
+
boInsertFieldForQuery?: boolean;
|
|
139
|
+
boParamStatus?: boolean;
|
|
140
|
+
boFilterLike?: boolean;
|
|
141
|
+
lnCode?: number;
|
|
142
|
+
boEditorOnlyNumber?: boolean;
|
|
143
|
+
boWhereField?: boolean;
|
|
144
|
+
static bui(txFieldName: string, txHeader: string): FiCol;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare class FkbList {
|
|
148
|
+
fkbList: Array<FiKeybean>;
|
|
149
|
+
constructor();
|
|
150
|
+
add(fkb: FiKeybean): void;
|
|
151
|
+
push(fkb: FiKeybean): void;
|
|
152
|
+
getFkbListInit(): Array<FiKeybean>;
|
|
153
|
+
getArray(): Array<FiKeybean>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class FicList {
|
|
157
|
+
ficList: Array<FiCol>;
|
|
158
|
+
constructor();
|
|
159
|
+
add(fic: FiCol): void;
|
|
160
|
+
push(fic: FiCol): void;
|
|
161
|
+
getFicListInit(): Array<FiCol>;
|
|
162
|
+
getFl(): FiCol[];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class FiLocalStorage {
|
|
166
|
+
/**
|
|
167
|
+
* Anahtar ile localStorage'a veri kaydeder
|
|
168
|
+
* @param key string
|
|
169
|
+
* @param value any
|
|
170
|
+
*/
|
|
171
|
+
static set(key: string, value: any): void;
|
|
172
|
+
/**
|
|
173
|
+
* Anahtar ile localStorage'dan veri okur
|
|
174
|
+
* @param key string
|
|
175
|
+
* @returns any | null
|
|
176
|
+
*/
|
|
177
|
+
static get<T = any>(key: string): T | null;
|
|
178
|
+
/**
|
|
179
|
+
* Anahtar ile localStorage'dan veriyi siler
|
|
180
|
+
* @param key string
|
|
181
|
+
*/
|
|
182
|
+
static remove(key: string): void;
|
|
183
|
+
/**
|
|
184
|
+
* Tüm localStorage verisini temizler
|
|
185
|
+
*/
|
|
186
|
+
static clear(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Anahtar localStorage'da var mı kontrol eder
|
|
189
|
+
* @param key string
|
|
190
|
+
* @returns boolean
|
|
191
|
+
*/
|
|
192
|
+
static exist(key: string): boolean;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export { Fdr, FiCol, FiFetchClient, FiHttpClient, FiKeyEntity, FiKeybean, FiLocalStorage, FiLog, FiMeta, FiNumber, FiString, FicList, FkbList, type IFiMeta };
|