@sankhyalabs/core-docs 0.0.0-bugfix-dev-KB-6165.0
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 +63 -0
- package/classes/ApplicationContext.md +90 -0
- package/classes/ArrayUtils.md +99 -0
- package/classes/AuthorizedServiceCaller.md +76 -0
- package/classes/Change.md +190 -0
- package/classes/DataUnit.md +2453 -0
- package/classes/DataUnitAction.md +96 -0
- package/classes/DataUnitStorage.md +116 -0
- package/classes/DateUtils.md +327 -0
- package/classes/ElementIDUtils.md +308 -0
- package/classes/ErrorException.md +214 -0
- package/classes/ErrorTracking.md +62 -0
- package/classes/FloatingManager.md +530 -0
- package/classes/HTMLBuilder.md +45 -0
- package/classes/HttpProvider.md +96 -0
- package/classes/JSUtils.md +115 -0
- package/classes/MaskFormatter-1.md +347 -0
- package/classes/NumberUtils.md +335 -0
- package/classes/ObjectUtils.md +160 -0
- package/classes/OnboardingUtils.md +126 -0
- package/classes/PromiseSync.md +91 -0
- package/classes/ReadyUtil.md +115 -0
- package/classes/RequestMetadata.md +84 -0
- package/classes/SelectionInfo.md +168 -0
- package/classes/SkwHttpProvider.md +109 -0
- package/classes/StringUtils.md +562 -0
- package/classes/TimeFormatter.md +98 -0
- package/classes/UserAgentUtils.md +58 -0
- package/classes/VersionUtils.md +42 -0
- package/classes/WaitingChangeException.md +200 -0
- package/classes/WarningException.md +214 -0
- package/enums/Action.md +294 -0
- package/enums/ChangeOperation.md +52 -0
- package/enums/DataType.md +63 -0
- package/enums/DependencyType.md +41 -0
- package/enums/SelectionMode.md +30 -0
- package/enums/SortMode.md +30 -0
- package/enums/UserInterface.md +195 -0
- package/interfaces/ChildDescriptor.md +41 -0
- package/interfaces/ChildLink.md +30 -0
- package/interfaces/DUActionInterceptor.md +29 -0
- package/interfaces/ExecutionContext.md +58 -0
- package/interfaces/FieldDescriptor.md +140 -0
- package/interfaces/Filter.md +41 -0
- package/interfaces/IElementIDInfo.md +30 -0
- package/interfaces/LoadDataRequest.md +101 -0
- package/interfaces/LoadDataResponse.md +36 -0
- package/interfaces/PageRequest.md +41 -0
- package/interfaces/PaginationInfo.md +75 -0
- package/interfaces/PromiseSyncCallback.md +39 -0
- package/interfaces/QuickFilter.md +41 -0
- package/interfaces/Record.md +62 -0
- package/interfaces/SavedRecord.md +85 -0
- package/interfaces/Sort.md +41 -0
- package/interfaces/SortingProvider.md +29 -0
- package/interfaces/UnitMetadata.md +52 -0
- package/interfaces/WaitingChange.md +41 -0
- package/modules/MaskFormatter.md +37 -0
- package/modules.md +74 -0
- package/package.json +14 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ReadyUtil
|
2
|
+
|
3
|
+
# Class: ReadyUtil
|
4
|
+
|
5
|
+
`ReadyUtil`: Registra processos que serão invocados após a conclusão de operações.
|
6
|
+
|
7
|
+
## Table of contents
|
8
|
+
|
9
|
+
### Constructors
|
10
|
+
|
11
|
+
- [constructor](ReadyUtil.md#constructor)
|
12
|
+
|
13
|
+
### Properties
|
14
|
+
|
15
|
+
- [promise](ReadyUtil.md#promise)
|
16
|
+
- [resolve](ReadyUtil.md#resolve)
|
17
|
+
|
18
|
+
### Methods
|
19
|
+
|
20
|
+
- [clean](ReadyUtil.md#clean)
|
21
|
+
- [end](ReadyUtil.md#end)
|
22
|
+
- [start](ReadyUtil.md#start)
|
23
|
+
- [whenReady](ReadyUtil.md#whenready)
|
24
|
+
|
25
|
+
## Constructors
|
26
|
+
|
27
|
+
### constructor
|
28
|
+
|
29
|
+
• **new ReadyUtil**()
|
30
|
+
|
31
|
+
## Properties
|
32
|
+
|
33
|
+
### promise
|
34
|
+
|
35
|
+
• `Private` **promise**: `any`
|
36
|
+
|
37
|
+
#### Defined in
|
38
|
+
|
39
|
+
src/utils/ReadyUtil.ts:6
|
40
|
+
|
41
|
+
___
|
42
|
+
|
43
|
+
### resolve
|
44
|
+
|
45
|
+
• `Private` **resolve**: `any`
|
46
|
+
|
47
|
+
#### Defined in
|
48
|
+
|
49
|
+
src/utils/ReadyUtil.ts:5
|
50
|
+
|
51
|
+
## Methods
|
52
|
+
|
53
|
+
### clean
|
54
|
+
|
55
|
+
▸ `Private` **clean**(): `void`
|
56
|
+
|
57
|
+
Limpa o estado da instancia ao finalizar a execução do processo registrado.
|
58
|
+
|
59
|
+
#### Returns
|
60
|
+
|
61
|
+
`void`
|
62
|
+
|
63
|
+
#### Defined in
|
64
|
+
|
65
|
+
src/utils/ReadyUtil.ts:11
|
66
|
+
|
67
|
+
___
|
68
|
+
|
69
|
+
### end
|
70
|
+
|
71
|
+
▸ **end**(): `void`
|
72
|
+
|
73
|
+
Executa processo atribuído.
|
74
|
+
|
75
|
+
#### Returns
|
76
|
+
|
77
|
+
`void`
|
78
|
+
|
79
|
+
#### Defined in
|
80
|
+
|
81
|
+
src/utils/ReadyUtil.ts:28
|
82
|
+
|
83
|
+
___
|
84
|
+
|
85
|
+
### start
|
86
|
+
|
87
|
+
▸ `Private` **start**(): `void`
|
88
|
+
|
89
|
+
Inicializa o estado da instancia ao registrar processo.
|
90
|
+
|
91
|
+
#### Returns
|
92
|
+
|
93
|
+
`void`
|
94
|
+
|
95
|
+
#### Defined in
|
96
|
+
|
97
|
+
src/utils/ReadyUtil.ts:19
|
98
|
+
|
99
|
+
___
|
100
|
+
|
101
|
+
### whenReady
|
102
|
+
|
103
|
+
▸ **whenReady**(): `Promise`<`unknown`\>
|
104
|
+
|
105
|
+
Atribui processo que será executado por operações que o invocarem no método 'end'.
|
106
|
+
|
107
|
+
#### Returns
|
108
|
+
|
109
|
+
`Promise`<`unknown`\>
|
110
|
+
|
111
|
+
Promise que deve conter o código do processo.
|
112
|
+
|
113
|
+
#### Defined in
|
114
|
+
|
115
|
+
src/utils/ReadyUtil.ts:36
|
@@ -0,0 +1,84 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / RequestMetadata
|
2
|
+
|
3
|
+
# Class: RequestMetadata
|
4
|
+
|
5
|
+
Representa as propriedades necessárias para se executar uma requisição.
|
6
|
+
|
7
|
+
## Table of contents
|
8
|
+
|
9
|
+
### Constructors
|
10
|
+
|
11
|
+
- [constructor](RequestMetadata.md#constructor)
|
12
|
+
|
13
|
+
### Properties
|
14
|
+
|
15
|
+
- [headers](RequestMetadata.md#headers)
|
16
|
+
- [method](RequestMetadata.md#method)
|
17
|
+
- [timeout](RequestMetadata.md#timeout)
|
18
|
+
- [url](RequestMetadata.md#url)
|
19
|
+
|
20
|
+
## Constructors
|
21
|
+
|
22
|
+
### constructor
|
23
|
+
|
24
|
+
• **new RequestMetadata**(`url`, `method`, `headers?`)
|
25
|
+
|
26
|
+
#### Parameters
|
27
|
+
|
28
|
+
| Name | Type | Description |
|
29
|
+
| :------ | :------ | :------ |
|
30
|
+
| `url` | `string` | A URL que deve ser chamada. |
|
31
|
+
| `method` | `Method` | O Método da requisição (GET, PUT, POST ou DELETE). |
|
32
|
+
| `headers?` | `Header`[] | - |
|
33
|
+
|
34
|
+
#### Defined in
|
35
|
+
|
36
|
+
src/http/RequestMetadata.ts:22
|
37
|
+
|
38
|
+
## Properties
|
39
|
+
|
40
|
+
### headers
|
41
|
+
|
42
|
+
• **headers**: `Header`[]
|
43
|
+
|
44
|
+
Headers para serem enviados na requisição
|
45
|
+
|
46
|
+
#### Defined in
|
47
|
+
|
48
|
+
src/http/RequestMetadata.ts:16
|
49
|
+
|
50
|
+
___
|
51
|
+
|
52
|
+
### method
|
53
|
+
|
54
|
+
• **method**: `Method`
|
55
|
+
|
56
|
+
O verbo HTTP
|
57
|
+
|
58
|
+
#### Defined in
|
59
|
+
|
60
|
+
src/http/RequestMetadata.ts:10
|
61
|
+
|
62
|
+
___
|
63
|
+
|
64
|
+
### timeout
|
65
|
+
|
66
|
+
• **timeout**: `number` = `30000`
|
67
|
+
|
68
|
+
Tempo limite de espera pela resposta
|
69
|
+
|
70
|
+
#### Defined in
|
71
|
+
|
72
|
+
src/http/RequestMetadata.ts:13
|
73
|
+
|
74
|
+
___
|
75
|
+
|
76
|
+
### url
|
77
|
+
|
78
|
+
• **url**: `string`
|
79
|
+
|
80
|
+
A URL a ser chamada
|
81
|
+
|
82
|
+
#### Defined in
|
83
|
+
|
84
|
+
src/http/RequestMetadata.ts:7
|
@@ -0,0 +1,168 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / SelectionInfo
|
2
|
+
|
3
|
+
# Class: SelectionInfo
|
4
|
+
|
5
|
+
## Table of contents
|
6
|
+
|
7
|
+
### Constructors
|
8
|
+
|
9
|
+
- [constructor](SelectionInfo.md#constructor)
|
10
|
+
|
11
|
+
### Properties
|
12
|
+
|
13
|
+
- [\_records](SelectionInfo.md#_records)
|
14
|
+
- [\_total](SelectionInfo.md#_total)
|
15
|
+
- [filters](SelectionInfo.md#filters)
|
16
|
+
- [mode](SelectionInfo.md#mode)
|
17
|
+
- [sort](SelectionInfo.md#sort)
|
18
|
+
|
19
|
+
### Accessors
|
20
|
+
|
21
|
+
- [length](SelectionInfo.md#length)
|
22
|
+
- [recordIds](SelectionInfo.md#recordids)
|
23
|
+
- [records](SelectionInfo.md#records)
|
24
|
+
|
25
|
+
### Methods
|
26
|
+
|
27
|
+
- [isAllRecords](SelectionInfo.md#isallrecords)
|
28
|
+
- [isEmpty](SelectionInfo.md#isempty)
|
29
|
+
|
30
|
+
## Constructors
|
31
|
+
|
32
|
+
### constructor
|
33
|
+
|
34
|
+
• **new SelectionInfo**(`records`, `mode?`, `total?`, `filters?`, `sort?`)
|
35
|
+
|
36
|
+
#### Parameters
|
37
|
+
|
38
|
+
| Name | Type | Default value |
|
39
|
+
| :------ | :------ | :------ |
|
40
|
+
| `records` | [`Record`](../interfaces/Record.md)[] | `undefined` |
|
41
|
+
| `mode` | [`SelectionMode`](../enums/SelectionMode.md) | `SelectionMode.SOME_RECORDS` |
|
42
|
+
| `total?` | `number` | `undefined` |
|
43
|
+
| `filters?` | [`Filter`](../interfaces/Filter.md)[] | `undefined` |
|
44
|
+
| `sort?` | [`Sort`](../interfaces/Sort.md)[] | `undefined` |
|
45
|
+
|
46
|
+
#### Defined in
|
47
|
+
|
48
|
+
src/dataunit/DataUnit.ts:1796
|
49
|
+
|
50
|
+
## Properties
|
51
|
+
|
52
|
+
### \_records
|
53
|
+
|
54
|
+
• `Private` **\_records**: [`Record`](../interfaces/Record.md)[]
|
55
|
+
|
56
|
+
#### Defined in
|
57
|
+
|
58
|
+
src/dataunit/DataUnit.ts:1790
|
59
|
+
|
60
|
+
___
|
61
|
+
|
62
|
+
### \_total
|
63
|
+
|
64
|
+
• `Private` `Optional` **\_total**: `number`
|
65
|
+
|
66
|
+
#### Defined in
|
67
|
+
|
68
|
+
src/dataunit/DataUnit.ts:1792
|
69
|
+
|
70
|
+
___
|
71
|
+
|
72
|
+
### filters
|
73
|
+
|
74
|
+
• `Optional` **filters**: [`Filter`](../interfaces/Filter.md)[]
|
75
|
+
|
76
|
+
#### Defined in
|
77
|
+
|
78
|
+
src/dataunit/DataUnit.ts:1793
|
79
|
+
|
80
|
+
___
|
81
|
+
|
82
|
+
### mode
|
83
|
+
|
84
|
+
• **mode**: [`SelectionMode`](../enums/SelectionMode.md)
|
85
|
+
|
86
|
+
#### Defined in
|
87
|
+
|
88
|
+
src/dataunit/DataUnit.ts:1791
|
89
|
+
|
90
|
+
___
|
91
|
+
|
92
|
+
### sort
|
93
|
+
|
94
|
+
• `Optional` **sort**: [`Sort`](../interfaces/Sort.md)[]
|
95
|
+
|
96
|
+
#### Defined in
|
97
|
+
|
98
|
+
src/dataunit/DataUnit.ts:1794
|
99
|
+
|
100
|
+
## Accessors
|
101
|
+
|
102
|
+
### length
|
103
|
+
|
104
|
+
• `get` **length**(): `number`
|
105
|
+
|
106
|
+
#### Returns
|
107
|
+
|
108
|
+
`number`
|
109
|
+
|
110
|
+
#### Defined in
|
111
|
+
|
112
|
+
src/dataunit/DataUnit.ts:1821
|
113
|
+
|
114
|
+
___
|
115
|
+
|
116
|
+
### recordIds
|
117
|
+
|
118
|
+
• `get` **recordIds**(): `undefined` \| `string`[]
|
119
|
+
|
120
|
+
#### Returns
|
121
|
+
|
122
|
+
`undefined` \| `string`[]
|
123
|
+
|
124
|
+
#### Defined in
|
125
|
+
|
126
|
+
src/dataunit/DataUnit.ts:1811
|
127
|
+
|
128
|
+
___
|
129
|
+
|
130
|
+
### records
|
131
|
+
|
132
|
+
• `get` **records**(): `undefined` \| [`Record`](../interfaces/Record.md)[]
|
133
|
+
|
134
|
+
#### Returns
|
135
|
+
|
136
|
+
`undefined` \| [`Record`](../interfaces/Record.md)[]
|
137
|
+
|
138
|
+
#### Defined in
|
139
|
+
|
140
|
+
src/dataunit/DataUnit.ts:1804
|
141
|
+
|
142
|
+
## Methods
|
143
|
+
|
144
|
+
### isAllRecords
|
145
|
+
|
146
|
+
▸ **isAllRecords**(): `boolean`
|
147
|
+
|
148
|
+
#### Returns
|
149
|
+
|
150
|
+
`boolean`
|
151
|
+
|
152
|
+
#### Defined in
|
153
|
+
|
154
|
+
src/dataunit/DataUnit.ts:1828
|
155
|
+
|
156
|
+
___
|
157
|
+
|
158
|
+
### isEmpty
|
159
|
+
|
160
|
+
▸ **isEmpty**(): `boolean`
|
161
|
+
|
162
|
+
#### Returns
|
163
|
+
|
164
|
+
`boolean`
|
165
|
+
|
166
|
+
#### Defined in
|
167
|
+
|
168
|
+
src/dataunit/DataUnit.ts:1832
|
@@ -0,0 +1,109 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / SkwHttpProvider
|
2
|
+
|
3
|
+
# Class: SkwHttpProvider
|
4
|
+
|
5
|
+
## Table of contents
|
6
|
+
|
7
|
+
### Constructors
|
8
|
+
|
9
|
+
- [constructor](SkwHttpProvider.md#constructor)
|
10
|
+
|
11
|
+
### Properties
|
12
|
+
|
13
|
+
- [STATUS\_CANCELED](SkwHttpProvider.md#status_canceled)
|
14
|
+
- [STATUS\_ERROR](SkwHttpProvider.md#status_error)
|
15
|
+
- [STATUS\_INFO](SkwHttpProvider.md#status_info)
|
16
|
+
- [STATUS\_OK](SkwHttpProvider.md#status_ok)
|
17
|
+
- [STATUS\_TIMEOUT](SkwHttpProvider.md#status_timeout)
|
18
|
+
- [\_counter](SkwHttpProvider.md#_counter)
|
19
|
+
|
20
|
+
### Methods
|
21
|
+
|
22
|
+
- [callService](SkwHttpProvider.md#callservice)
|
23
|
+
|
24
|
+
## Constructors
|
25
|
+
|
26
|
+
### constructor
|
27
|
+
|
28
|
+
• **new SkwHttpProvider**()
|
29
|
+
|
30
|
+
## Properties
|
31
|
+
|
32
|
+
### STATUS\_CANCELED
|
33
|
+
|
34
|
+
▪ `Static` **STATUS\_CANCELED**: `number` = `4`
|
35
|
+
|
36
|
+
#### Defined in
|
37
|
+
|
38
|
+
src/http/SkwHttpProvider.ts:11
|
39
|
+
|
40
|
+
___
|
41
|
+
|
42
|
+
### STATUS\_ERROR
|
43
|
+
|
44
|
+
▪ `Static` **STATUS\_ERROR**: `number` = `0`
|
45
|
+
|
46
|
+
#### Defined in
|
47
|
+
|
48
|
+
src/http/SkwHttpProvider.ts:7
|
49
|
+
|
50
|
+
___
|
51
|
+
|
52
|
+
### STATUS\_INFO
|
53
|
+
|
54
|
+
▪ `Static` **STATUS\_INFO**: `number` = `2`
|
55
|
+
|
56
|
+
#### Defined in
|
57
|
+
|
58
|
+
src/http/SkwHttpProvider.ts:9
|
59
|
+
|
60
|
+
___
|
61
|
+
|
62
|
+
### STATUS\_OK
|
63
|
+
|
64
|
+
▪ `Static` **STATUS\_OK**: `number` = `1`
|
65
|
+
|
66
|
+
#### Defined in
|
67
|
+
|
68
|
+
src/http/SkwHttpProvider.ts:8
|
69
|
+
|
70
|
+
___
|
71
|
+
|
72
|
+
### STATUS\_TIMEOUT
|
73
|
+
|
74
|
+
▪ `Static` **STATUS\_TIMEOUT**: `number` = `3`
|
75
|
+
|
76
|
+
#### Defined in
|
77
|
+
|
78
|
+
src/http/SkwHttpProvider.ts:10
|
79
|
+
|
80
|
+
___
|
81
|
+
|
82
|
+
### \_counter
|
83
|
+
|
84
|
+
▪ `Static` **\_counter**: `number` = `0`
|
85
|
+
|
86
|
+
#### Defined in
|
87
|
+
|
88
|
+
src/http/SkwHttpProvider.ts:5
|
89
|
+
|
90
|
+
## Methods
|
91
|
+
|
92
|
+
### callService
|
93
|
+
|
94
|
+
▸ `Static` **callService**(`serviceName`, `content`): `Promise`<`Object`\>
|
95
|
+
|
96
|
+
#### Parameters
|
97
|
+
|
98
|
+
| Name | Type |
|
99
|
+
| :------ | :------ |
|
100
|
+
| `serviceName` | `string` |
|
101
|
+
| `content` | `Object` |
|
102
|
+
|
103
|
+
#### Returns
|
104
|
+
|
105
|
+
`Promise`<`Object`\>
|
106
|
+
|
107
|
+
#### Defined in
|
108
|
+
|
109
|
+
src/http/SkwHttpProvider.ts:13
|