orak-util-ts 1.0.0 → 1.0.11
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 +11 -97
- package/dist/orak-util-ts.cjs +1 -0
- package/dist/orak-util-ts.d.cts +322 -0
- package/dist/orak-util-ts.d.ts +322 -0
- package/dist/orak-util-ts.global.js +19 -0
- package/dist/orak-util-ts.js +1 -0
- package/package.json +58 -90
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1,103 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
**Orak Software Utility Typescript Library**
|
|
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
|
-
|
|
10
|
+
```js
|
|
11
|
+
esbuildOptions(options) {
|
|
12
|
+
//options.minifyIdentifiers = false; // Değişken ve class isimlerini küçültme
|
|
13
|
+
//options.keepNames = true; // Fonksiyon ve class isimlerini koru
|
|
14
|
+
console.log(options); // Burada ayarları kontrol et
|
|
15
|
+
},
|
|
20
16
|
|
|
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.
|
|
17
|
+
```
|
|
@@ -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,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let s of __getOwnPropNames(e))__hasOwnProp.call(t,s)||s===r||__defProp(t,s,{get:()=>e[s],enumerable:!(i=__getOwnPropDesc(e,s))||i.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,FiApp:()=>FiApp,FiCol:()=>FiCol,FiConnConfig:()=>FiConnConfig,FiEnv:()=>FiEnv,FiFetchClient:()=>FiFetchClient,FiHttpClient:()=>FiHttpClient,FiKeyEntity:()=>FiKeyEntity,FiKeybean:()=>FiKeybean,FiLocalStorage:()=>FiLocalStorage,FiLog:()=>FiLog,FiLogger:()=>FiLogger,FiMeta:()=>FiMeta,FiNumber:()=>FiNumber,FiObject:()=>FiObject,FiQuery:()=>FiQuery,FiQueryUtil:()=>FiQueryUtil,FiQugen:()=>FiQugen,FiString:()=>FiString,FicList:()=>FicList,FimFiCol:()=>FimFiCol,FimFiReq:()=>FimFiReq,FimFiRes:()=>FimFiRes,FkbList:()=>FkbList}),module.exports=__toCommonJS(src_exports);var FiConnConfig=class{},FiQuery=class{},FiQueryUtil=class{},FiQugen=class{},FiNumber=class{static orZero(t){return null==t?0:t}static orMinusOne(t){return null==t?-1:t}},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}},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)}},FimFiRes=class{static fsBoTknValid(){return FiMeta.create("fsBoTknValid")}static fsBoResult(){return FiMeta.create("fsBoResult")}static fsRefFdr(){return FiMeta.create("fsRefFdr")}static fsRefValue(){return FiMeta.create("fsRefValue")}static fsTxVer(){return FiMeta.create("fsTxVer")}static fsTxMessage(){return FiMeta.create("fsTxMessage")}static fsLnErrorCode(){return FiMeta.create("fsLnErrorCode")}static fsTxToken(){return FiMeta.create("fsTxToken")}},FiObject=class{constructor(t){this.refValue=t||{}}getValueByFiMeta(t){return null==t||null==t||null==t.fimTxKey?null:this.refValue[t.getTxKeyNtn()]}getValueByFkb(t){return null==t||null==t||null==t.getFieldName()?null:this.refValue[t.getFieldName()]}},FimFiReq=class{static frTxProfile(){return FiMeta.create("frTxProfile")}static frTxUser(){return FiMeta.create("frTxUser")}static frTxPass(){return FiMeta.create("frTxPass")}static frTxToken(){return FiMeta.create("frTxToken")}static frFkbParams(){return FiMeta.create("frFkbParams")}static frBoShowDoc(){return FiMeta.create("frBoShowDoc")}static frTxDb(){return FiMeta.create("frTxDb")}},FiApp=class{},FiLogger=class{static debug(t,e,r){r&&r()&&console.log(t)}static error(t,e){}static errorFront(t,e){}},FiEnv=class{},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}`,i={...this.defaultHeaders,...e.headers||{}};try{const t=await fetch(r,{...e,headers:i});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 i={"Content-Type":"application/json",...r?.getAsObject()};this.axiosInstance=import_axios.default.create({baseURL:t,timeout:e,headers:i}),this.initializeResponseInterceptor()}getAxiosInstance(){return this.axiosInstance}initializeResponseInterceptor(){this.axiosInstance.interceptors.response.use(this.handleResponse,this.handleError)}handleResponse(t){return Promise.resolve(t)}handleError(t){return console.error("API Hatası:",t),Promise.reject(t)}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)}},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}},FimFiCol=class{static ofcTxDesc(){return FiMeta.create("ofcTxDesc")}static ofcTxPrefix(){return FiMeta.create("ofcTxPrefix")}static ofcTxEntityName(){return FiMeta.create("ofcTxEntityName")}static ofcTxFieldName(){return FiMeta.create("ofcTxFieldName")}static ofcTxFieldType(){return FiMeta.create("ofcTxFieldType")}static ofcTxHeader(){return FiMeta.create("ofcTxHeader")}static ofcTxDbField(){return FiMeta.create("ofcTxDbField")}static ofcTxRefField(){return FiMeta.create("ofcTxRefField")}static ofcLnLength(){return FiMeta.create("ofcLnLength")}static ofcLnPrecision(){return FiMeta.create("ofcLnPrecision")}static ofcLnScale(){return FiMeta.create("ofcLnScale")}static ofcBoNullable(){return FiMeta.create("ofcBoNullable")}static ofcTxIdType(){return FiMeta.create("ofcTxIdType")}static ofcBoTransient(){return FiMeta.create("ofcBoTransient")}static ofcBoUnique(){return FiMeta.create("ofcBoUnique")}static ofcBoUniqGro1(){return FiMeta.create("ofcBoUniqGro1")}static ofcTxDefValue(){return FiMeta.create("ofcTxDefValue")}},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():""}getAsStringNtn(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}addFieldByFiMeta(t,e){this.fiPut(t.getTxKeyNtn(),e)}addFieldByFm(t,e){this.addFieldByFiMeta(t,e)}getFieldName(){return this.fiGetAsStringNtn(FimFiCol.ofcTxFieldName().fimTxKey)}isNumber(){const t=this.fiGetAsStringNtn(FimFiCol.ofcTxFieldType().fimTxKey).toLowerCase();return"number"===t||"float"===t||"double"===t||"int"===t}},FkbList=class{constructor(){this.fkbList=[]}add(t){this.push(t)}push(t){this.fkbList.push(t)}getFkbListInit(){return null!=this.fkbList&&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,322 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
|
|
3
|
+
declare class FiConnConfig {
|
|
4
|
+
txServer?: string;
|
|
5
|
+
txDatabase?: string;
|
|
6
|
+
txUsername?: string;
|
|
7
|
+
txPass?: string;
|
|
8
|
+
txDbType?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
declare class FiQuery {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class FiQueryUtil {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class FiQugen {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface IFiMeta {
|
|
24
|
+
fimTxKey?: string;
|
|
25
|
+
fimTxValue?: string;
|
|
26
|
+
fimLnKey?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class FiMeta implements IFiMeta {
|
|
30
|
+
fimTxKey?: string;
|
|
31
|
+
fimTxValue?: string;
|
|
32
|
+
fimLnKey?: number;
|
|
33
|
+
static create(txKey: string): FiMeta;
|
|
34
|
+
getTxKeyNtn(): string;
|
|
35
|
+
getTxValueNtn(): string;
|
|
36
|
+
getLnKeyOrMinusOne(): number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class FimFiRes {
|
|
40
|
+
static fsBoTknValid(): FiMeta;
|
|
41
|
+
static fsBoResult(): FiMeta;
|
|
42
|
+
static fsRefFdr(): FiMeta;
|
|
43
|
+
static fsRefValue(): FiMeta;
|
|
44
|
+
static fsTxVer(): FiMeta;
|
|
45
|
+
static fsTxMessage(): FiMeta;
|
|
46
|
+
static fsLnErrorCode(): FiMeta;
|
|
47
|
+
static fsTxToken(): FiMeta;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class FiKeybean {
|
|
51
|
+
mapData: Map<string, any>;
|
|
52
|
+
fiPut(txKey: string, value: any): FiKeybean;
|
|
53
|
+
fiGetAsStringNtn(txKey: string | undefined): string;
|
|
54
|
+
getAsStringNtn(txKey: string | undefined): string;
|
|
55
|
+
fiGet(txKey: string | undefined): any;
|
|
56
|
+
getAsObject(): Record<string, any>;
|
|
57
|
+
constructor();
|
|
58
|
+
addFieldByFiMeta(fiMeta: FiMeta, txValue: any): void;
|
|
59
|
+
/**
|
|
60
|
+
* addFieldByFiMeta shortcut method
|
|
61
|
+
*
|
|
62
|
+
* @param fiMeta
|
|
63
|
+
* @param txValue
|
|
64
|
+
*/
|
|
65
|
+
addFieldByFm(fiMeta: FiMeta, txValue: any): void;
|
|
66
|
+
getFieldName(): string;
|
|
67
|
+
isNumber(): boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class FiObject {
|
|
71
|
+
refValue: Record<string, any>;
|
|
72
|
+
constructor(refValue?: Record<string, any>);
|
|
73
|
+
getValueByFiMeta(fiMeta: FiMeta): any;
|
|
74
|
+
getValueByFkb(fkb: FiKeybean): any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class FimFiReq {
|
|
78
|
+
static frTxProfile(): FiMeta;
|
|
79
|
+
static frTxUser(): FiMeta;
|
|
80
|
+
static frTxPass(): FiMeta;
|
|
81
|
+
static frTxToken(): FiMeta;
|
|
82
|
+
static frFkbParams(): FiMeta;
|
|
83
|
+
static frBoShowDoc(): FiMeta;
|
|
84
|
+
static frTxDb(): FiMeta;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface IFiBaseLogger {
|
|
88
|
+
debug(message: unknown, label?: string): void;
|
|
89
|
+
error(message: unknown, label?: string): void;
|
|
90
|
+
errorFront(message: unknown, label?: string): void;
|
|
91
|
+
checkDebugEnv(): boolean;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface IFiConfiger {
|
|
95
|
+
getFiConnConfig(connProfile: string): FiConnConfig;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* App ilgili objeler burada tutulur
|
|
100
|
+
*/
|
|
101
|
+
declare class FiApp {
|
|
102
|
+
static fiLogger?: IFiBaseLogger;
|
|
103
|
+
static fiConfiger?: IFiConfiger;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare class FiLogger {
|
|
107
|
+
static debug(message: unknown, label?: string, fnCheckDebug?: () => boolean): void;
|
|
108
|
+
static error(message: unknown, label?: string): void;
|
|
109
|
+
static errorFront(message: unknown, label?: string): void;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class FiEnv {
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare class FiKeyEntity<T> {
|
|
116
|
+
mapData: Map<string, T>;
|
|
117
|
+
fiPut(txKey: string, value: T): FiKeyEntity<T>;
|
|
118
|
+
fiGet(txKey: string | undefined): any;
|
|
119
|
+
constructor();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* FiFetchClient
|
|
124
|
+
*/
|
|
125
|
+
declare class FiFetchClient {
|
|
126
|
+
private baseUrl;
|
|
127
|
+
private defaultHeaders;
|
|
128
|
+
constructor(baseUrl: string, defaultHeaders?: HeadersInit);
|
|
129
|
+
private request;
|
|
130
|
+
get<T>(endpoint: string, headers?: HeadersInit): Promise<T>;
|
|
131
|
+
post<T>(endpoint: string, body?: unknown, headers?: HeadersInit): Promise<T>;
|
|
132
|
+
put<T>(endpoint: string, body?: unknown, headers?: HeadersInit): Promise<T>;
|
|
133
|
+
delete<T>(endpoint: string, headers?: HeadersInit): Promise<T>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class FiHttpClient {
|
|
137
|
+
private axiosInstance;
|
|
138
|
+
constructor(baseURL: string, timeout?: number, fkbExtraHeaders?: FiKeybean);
|
|
139
|
+
getAxiosInstance(): AxiosInstance;
|
|
140
|
+
private initializeResponseInterceptor;
|
|
141
|
+
private handleResponse;
|
|
142
|
+
private handleError;
|
|
143
|
+
get<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
144
|
+
post<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<T>;
|
|
145
|
+
put<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<T>;
|
|
146
|
+
delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class FiString {
|
|
150
|
+
static cropWitDot(txValue: string, arg1: number): string;
|
|
151
|
+
static crop(txValue: string, lnSize: number, txSuffix?: string): string;
|
|
152
|
+
static joinComma(iskProList: any, fnValue: (item: any) => any): any;
|
|
153
|
+
static orEmpty(value: string | undefined): string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class FiNumber {
|
|
157
|
+
static orZero(value: number | undefined): number;
|
|
158
|
+
static orMinusOne(value: number | undefined): number;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare class FiLog {
|
|
162
|
+
logTxMessage?: string;
|
|
163
|
+
logTxType?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare class Fdr {
|
|
167
|
+
boResult?: boolean;
|
|
168
|
+
message?: string;
|
|
169
|
+
value?: object;
|
|
170
|
+
lnResponseCode?: number;
|
|
171
|
+
txId?: string;
|
|
172
|
+
txName?: string;
|
|
173
|
+
logList?: Array<FiLog>;
|
|
174
|
+
rowsAffected?: number;
|
|
175
|
+
lnTotalCount?: number;
|
|
176
|
+
boFalseExist?: boolean;
|
|
177
|
+
listException?: Array<object>;
|
|
178
|
+
lnStatus?: number;
|
|
179
|
+
getLogListNtn(): Array<FiLog>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare class FiCol {
|
|
183
|
+
ofcTxFieldName?: string;
|
|
184
|
+
ofcTxHeader?: string;
|
|
185
|
+
ofcTxDbFieldName?: string;
|
|
186
|
+
ofcBoUniqGro1?: boolean;
|
|
187
|
+
ofcBoNullable?: boolean;
|
|
188
|
+
ofcBoUnique?: boolean;
|
|
189
|
+
ofcBoUtfSupport?: boolean;
|
|
190
|
+
ofcTxDefValue?: string;
|
|
191
|
+
ofcTxCollation?: string;
|
|
192
|
+
ofcTxTypeName?: string;
|
|
193
|
+
ofcLnLength?: number;
|
|
194
|
+
ofcLnPrecision?: number;
|
|
195
|
+
ofcLnScale?: number;
|
|
196
|
+
ofcBoFilterLike?: boolean;
|
|
197
|
+
ofcTxFieldType?: string;
|
|
198
|
+
ofcTxEntityName?: string;
|
|
199
|
+
oftBoTransient?: boolean;
|
|
200
|
+
txLabel?: string;
|
|
201
|
+
txGuid?: string;
|
|
202
|
+
ofiTxIdType?: string;
|
|
203
|
+
printSize?: number;
|
|
204
|
+
colType?: string;
|
|
205
|
+
boEditable?: boolean;
|
|
206
|
+
boHidden?: boolean;
|
|
207
|
+
boOptional?: boolean;
|
|
208
|
+
boExist?: boolean;
|
|
209
|
+
boRequired?: boolean;
|
|
210
|
+
boEnabled?: boolean;
|
|
211
|
+
entity?: object;
|
|
212
|
+
filterValue?: object;
|
|
213
|
+
boFilterable?: boolean;
|
|
214
|
+
filterNodeClass?: string;
|
|
215
|
+
funcFormatter?: Function;
|
|
216
|
+
colEditorClass?: string;
|
|
217
|
+
colValue?: object;
|
|
218
|
+
colEditorNodeText?: string;
|
|
219
|
+
boNullable?: boolean;
|
|
220
|
+
boNonUpdatable?: boolean;
|
|
221
|
+
boNonEditableForForm?: boolean;
|
|
222
|
+
txParamName?: string;
|
|
223
|
+
boKeyIdField?: boolean;
|
|
224
|
+
boKeyIdentityField?: boolean;
|
|
225
|
+
boUpdateFieldForQuery?: boolean;
|
|
226
|
+
boInsertFieldForQuery?: boolean;
|
|
227
|
+
boParamStatus?: boolean;
|
|
228
|
+
boFilterLike?: boolean;
|
|
229
|
+
lnCode?: number;
|
|
230
|
+
boEditorOnlyNumber?: boolean;
|
|
231
|
+
boWhereField?: boolean;
|
|
232
|
+
static bui(txFieldName: string, txHeader: string): FiCol;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare class FkbList {
|
|
236
|
+
fkbList: Array<FiKeybean>;
|
|
237
|
+
constructor();
|
|
238
|
+
add(fkb: FiKeybean): void;
|
|
239
|
+
push(fkb: FiKeybean): void;
|
|
240
|
+
getFkbListInit(): Array<FiKeybean>;
|
|
241
|
+
getArray(): Array<FiKeybean>;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare class FicList {
|
|
245
|
+
ficList: Array<FiCol>;
|
|
246
|
+
constructor();
|
|
247
|
+
add(fic: FiCol): void;
|
|
248
|
+
push(fic: FiCol): void;
|
|
249
|
+
getFicListInit(): Array<FiCol>;
|
|
250
|
+
getFl(): FiCol[];
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Güvenlik sebebiyle localStorage işlemlerini lokal sınıftan kullanın.
|
|
255
|
+
*
|
|
256
|
+
* Bu sınıf metodlarından örnek kullanımlarını görebilirsiniz
|
|
257
|
+
*/
|
|
258
|
+
declare class FiLocalStorage {
|
|
259
|
+
/**
|
|
260
|
+
* Anahtar ile localStorage'a veri kaydeder
|
|
261
|
+
* @param key string
|
|
262
|
+
* @param value any
|
|
263
|
+
*/
|
|
264
|
+
static set(key: string, value: any): void;
|
|
265
|
+
/**
|
|
266
|
+
* Anahtar ile localStorage'dan veri okur
|
|
267
|
+
* @param key string
|
|
268
|
+
* @returns any | null
|
|
269
|
+
*/
|
|
270
|
+
static get<T = any>(key: string): T | null;
|
|
271
|
+
/**
|
|
272
|
+
* Anahtar ile localStorage'dan veriyi siler
|
|
273
|
+
* @param key string
|
|
274
|
+
*/
|
|
275
|
+
static remove(key: string): void;
|
|
276
|
+
/**
|
|
277
|
+
* Tüm localStorage verisini temizler
|
|
278
|
+
*/
|
|
279
|
+
static clear(): void;
|
|
280
|
+
/**
|
|
281
|
+
* Anahtar localStorage'da var mı kontrol eder
|
|
282
|
+
* @param key string
|
|
283
|
+
* @returns boolean
|
|
284
|
+
*/
|
|
285
|
+
static exist(key: string): boolean;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
declare class FimFiCol {
|
|
289
|
+
static ofcTxDesc(): FiMeta;
|
|
290
|
+
static ofcTxPrefix(): FiMeta;
|
|
291
|
+
static ofcTxEntityName(): FiMeta;
|
|
292
|
+
static ofcTxFieldName(): FiMeta;
|
|
293
|
+
static ofcTxFieldType(): FiMeta;
|
|
294
|
+
static ofcTxHeader(): FiMeta;
|
|
295
|
+
static ofcTxDbField(): FiMeta;
|
|
296
|
+
static ofcTxRefField(): FiMeta;
|
|
297
|
+
static ofcLnLength(): FiMeta;
|
|
298
|
+
static ofcLnPrecision(): FiMeta;
|
|
299
|
+
static ofcLnScale(): FiMeta;
|
|
300
|
+
static ofcBoNullable(): FiMeta;
|
|
301
|
+
static ofcTxIdType(): FiMeta;
|
|
302
|
+
static ofcBoTransient(): FiMeta;
|
|
303
|
+
static ofcBoUnique(): FiMeta;
|
|
304
|
+
static ofcBoUniqGro1(): FiMeta;
|
|
305
|
+
static ofcTxDefValue(): FiMeta;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
interface IFiTableFic {
|
|
309
|
+
getITxTableName(): string;
|
|
310
|
+
getITxPrefix(): string;
|
|
311
|
+
genITableCols(): FicList;
|
|
312
|
+
genITableColsTrans(): FicList;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
interface IFiTableFkb {
|
|
316
|
+
getITxTableName(): string;
|
|
317
|
+
getITxPrefix(): string;
|
|
318
|
+
genITableCols(): FkbList;
|
|
319
|
+
genITableColsTrans(): FkbList;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export { Fdr, FiApp, FiCol, FiConnConfig, FiEnv, FiFetchClient, FiHttpClient, FiKeyEntity, FiKeybean, FiLocalStorage, FiLog, FiLogger, FiMeta, FiNumber, FiObject, FiQuery, FiQueryUtil, FiQugen, FiString, FicList, FimFiCol, FimFiReq, FimFiRes, FkbList, type IFiBaseLogger, type IFiConfiger, type IFiMeta, type IFiTableFic, type IFiTableFkb };
|