@sankhyalabs/core-docs 2.3.0 → 2.3.1-SKA-61927.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.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/README.md +0 -57
  3. package/classes/ApplicationContext.md +0 -76
  4. package/classes/ArrayUtils.md +0 -89
  5. package/classes/AuthorizedServiceCaller.md +0 -76
  6. package/classes/Change.md +0 -168
  7. package/classes/DataUnit.md +0 -1394
  8. package/classes/DataUnitAction.md +0 -96
  9. package/classes/DateUtils.md +0 -190
  10. package/classes/ElementIDUtils.md +0 -222
  11. package/classes/ErrorException.md +0 -204
  12. package/classes/ErrorTracking.md +0 -54
  13. package/classes/FloatingManager.md +0 -384
  14. package/classes/HttpProvider.md +0 -96
  15. package/classes/MaskFormatter-1.md +0 -336
  16. package/classes/NumberUtils.md +0 -188
  17. package/classes/ObjectUtils.md +0 -81
  18. package/classes/ReadyUtil.md +0 -103
  19. package/classes/RequestMetadata.md +0 -84
  20. package/classes/SkwHttpProvider.md +0 -109
  21. package/classes/StringUtils.md +0 -315
  22. package/classes/TimeFormatter.md +0 -98
  23. package/classes/UserAgentUtils.md +0 -48
  24. package/classes/WaitingChangeException.md +0 -192
  25. package/classes/WarningException.md +0 -204
  26. package/enums/Action.md +0 -250
  27. package/enums/ChangeOperation.md +0 -52
  28. package/enums/DataType.md +0 -63
  29. package/enums/DependencyType.md +0 -41
  30. package/enums/SortMode.md +0 -30
  31. package/enums/UserInterface.md +0 -195
  32. package/interfaces/DUActionInterceptor.md +0 -29
  33. package/interfaces/ExecutionContext.md +0 -58
  34. package/interfaces/FieldDescriptor.md +0 -129
  35. package/interfaces/Filter.md +0 -41
  36. package/interfaces/IElementIDInfo.md +0 -30
  37. package/interfaces/LoadDataRequest.md +0 -63
  38. package/interfaces/LoadDataResponse.md +0 -30
  39. package/interfaces/PageRequest.md +0 -41
  40. package/interfaces/PaginationInfo.md +0 -63
  41. package/interfaces/QuickFilter.md +0 -30
  42. package/interfaces/Record.md +0 -40
  43. package/interfaces/SavedRecord.md +0 -55
  44. package/interfaces/Sort.md +0 -41
  45. package/interfaces/SortingProvider.md +0 -29
  46. package/interfaces/UnitMetadata.md +0 -41
  47. package/interfaces/WaitingChange.md +0 -41
  48. package/modules/MaskFormatter.md +0 -37
  49. package/modules.md +0 -63
@@ -1,84 +0,0 @@
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
@@ -1,109 +0,0 @@
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
@@ -1,315 +0,0 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / StringUtils
2
-
3
- # Class: StringUtils
4
-
5
- Classe com utiliários comuns para Strings.
6
-
7
- ## Table of contents
8
-
9
- ### Constructors
10
-
11
- - [constructor](StringUtils.md#constructor)
12
-
13
- ### Methods
14
-
15
- - [compare](StringUtils.md#compare)
16
- - [getBooleanValue](StringUtils.md#getbooleanvalue)
17
- - [hashCode](StringUtils.md#hashcode)
18
- - [isEmpty](StringUtils.md#isempty)
19
- - [padEnd](StringUtils.md#padend)
20
- - [padStart](StringUtils.md#padstart)
21
- - [replaceAccentuatedChars](StringUtils.md#replaceaccentuatedchars)
22
- - [replaceAccentuatedCharsKeepSymbols](StringUtils.md#replaceaccentuatedcharskeepsymbols)
23
- - [toCamelCase](StringUtils.md#tocamelcase)
24
- - [toKebabCase](StringUtils.md#tokebabcase)
25
- - [toPascalCase](StringUtils.md#topascalcase)
26
- - [toSnakeCase](StringUtils.md#tosnakecase)
27
-
28
- ## Constructors
29
-
30
- ### constructor
31
-
32
- • **new StringUtils**()
33
-
34
- ## Methods
35
-
36
- ### compare
37
-
38
- ▸ `Static` **compare**(`a`, `b`): `number`
39
-
40
- Utilitário para determinar a ordem de strings. Geralmente usado no método "sort" de um array.
41
- Retorna um número negativo se o primeiro argumento é menor que o segundo, zero se os dois são iguais
42
- e um número positivo quando o primeiro é maior que o segundo.if they're equal, and a positive value otherwise.
43
-
44
- #### Parameters
45
-
46
- | Name | Type | Description |
47
- | :------ | :------ | :------ |
48
- | `a` | `string` | Primeira string para comparação |
49
- | `b` | `string` | Segunda string para comparação |
50
-
51
- #### Returns
52
-
53
- `number`
54
-
55
- Um valor maior, menor ou igual a zero para determinar se a ordem precisa ser alterada.
56
-
57
- #### Defined in
58
-
59
- src/utils/StringUtils.ts:126
60
-
61
- ___
62
-
63
- ### getBooleanValue
64
-
65
- ▸ `Static` **getBooleanValue**(`value`, `defaultValue?`): `boolean`
66
-
67
- Converte um valor em string para booleano
68
-
69
- #### Parameters
70
-
71
- | Name | Type | Default value | Description |
72
- | :------ | :------ | :------ | :------ |
73
- | `value` | `string` | `undefined` | Valor a ser convertido |
74
- | `defaultValue` | `boolean` | `false` | Será retornado esse caso seja passado valores diferentes do esperado(true, false, "true", "false", "S", "N") |
75
-
76
- #### Returns
77
-
78
- `boolean`
79
-
80
- #### Defined in
81
-
82
- src/utils/StringUtils.ts:89
83
-
84
- ___
85
-
86
- ### hashCode
87
-
88
- ▸ `Static` **hashCode**(`value`): `string`
89
-
90
- Calcula um código hash para uma string.
91
-
92
- #### Parameters
93
-
94
- | Name | Type | Description |
95
- | :------ | :------ | :------ |
96
- | `value` | `string` | String que será gerado o hash code. |
97
-
98
- #### Returns
99
-
100
- `string`
101
-
102
- #### Defined in
103
-
104
- src/utils/StringUtils.ts:73
105
-
106
- ___
107
-
108
- ### isEmpty
109
-
110
- ▸ `Static` **isEmpty**(`value`): `Boolean`
111
-
112
- Verifica se a string está vazia.
113
- Valores null e undefined são considerados como vazio.
114
-
115
- #### Parameters
116
-
117
- | Name | Type | Description |
118
- | :------ | :------ | :------ |
119
- | `value` | `any` | String para ser validada. |
120
-
121
- #### Returns
122
-
123
- `Boolean`
124
-
125
- #### Defined in
126
-
127
- src/utils/StringUtils.ts:12
128
-
129
- ___
130
-
131
- ### padEnd
132
-
133
- ▸ `Static` **padEnd**(`str`, `len`, `pad?`): `string`
134
-
135
- #### Parameters
136
-
137
- | Name | Type | Default value |
138
- | :------ | :------ | :------ |
139
- | `str` | `string` | `undefined` |
140
- | `len` | `number` | `undefined` |
141
- | `pad` | `string` | `" "` |
142
-
143
- #### Returns
144
-
145
- `string`
146
-
147
- #### Defined in
148
-
149
- src/utils/StringUtils.ts:109
150
-
151
- ___
152
-
153
- ### padStart
154
-
155
- ▸ `Static` **padStart**(`str`, `len`, `pad?`): `string`
156
-
157
- #### Parameters
158
-
159
- | Name | Type | Default value |
160
- | :------ | :------ | :------ |
161
- | `str` | `string` | `undefined` |
162
- | `len` | `number` | `undefined` |
163
- | `pad` | `string` | `" "` |
164
-
165
- #### Returns
166
-
167
- `string`
168
-
169
- #### Defined in
170
-
171
- src/utils/StringUtils.ts:101
172
-
173
- ___
174
-
175
- ### replaceAccentuatedChars
176
-
177
- ▸ `Static` **replaceAccentuatedChars**(`text`): `string`
178
-
179
- Remove acentos de vogais, substitui Ç por c e retorna a string em caixa alta.
180
-
181
- #### Parameters
182
-
183
- | Name | Type |
184
- | :------ | :------ |
185
- | `text` | `string` |
186
-
187
- #### Returns
188
-
189
- `string`
190
-
191
- #### Defined in
192
-
193
- src/utils/StringUtils.ts:34
194
-
195
- ___
196
-
197
- ### replaceAccentuatedCharsKeepSymbols
198
-
199
- ▸ `Static` **replaceAccentuatedCharsKeepSymbols**(`text`): `string`
200
-
201
- Remove acentos de vogais, substitui Ç por c e retorna a string em caixa alta mantendo espaços e símbolos.
202
-
203
- #### Parameters
204
-
205
- | Name | Type | Description |
206
- | :------ | :------ | :------ |
207
- | `text` | `string` | String para ser transformada. |
208
-
209
- #### Returns
210
-
211
- `string`
212
-
213
- #### Defined in
214
-
215
- src/utils/StringUtils.ts:65
216
-
217
- ___
218
-
219
- ### toCamelCase
220
-
221
- ▸ `Static` **toCamelCase**(`value`): `string`
222
-
223
- Utilitário para converter string em camelCase
224
- Combina palavras compostas ou frases, alterando a inicial de cada uma, a partir da primeira, para maiúscula e unidas sem espaços.
225
-
226
- #### Parameters
227
-
228
- | Name | Type | Description |
229
- | :------ | :------ | :------ |
230
- | `value` | `string` | String a ser convertida |
231
-
232
- #### Returns
233
-
234
- `string`
235
-
236
- String convertida em camelCase
237
-
238
- #### Defined in
239
-
240
- src/utils/StringUtils.ts:149
241
-
242
- ___
243
-
244
- ### toKebabCase
245
-
246
- ▸ `Static` **toKebabCase**(`value`): `string`
247
-
248
- Utilitário para converter string em kebab-case
249
- Combina palavras substituindo cada espaço por um traço (-) convertendo todas as letras para minúsculas
250
-
251
- #### Parameters
252
-
253
- | Name | Type | Description |
254
- | :------ | :------ | :------ |
255
- | `value` | `string` | String a ser convertida |
256
-
257
- #### Returns
258
-
259
- `string`
260
-
261
- String convertida em KebabCase
262
-
263
- #### Defined in
264
-
265
- src/utils/StringUtils.ts:192
266
-
267
- ___
268
-
269
- ### toPascalCase
270
-
271
- ▸ `Static` **toPascalCase**(`value`): `string`
272
-
273
- Utilitário para converter string em PascalCase
274
- Combina palavras colocando todas as palavras em minúsculas (mesmo a primeira palavra) removendo espaços
275
-
276
- #### Parameters
277
-
278
- | Name | Type | Description |
279
- | :------ | :------ | :------ |
280
- | `value` | `string` | String a ser convertida |
281
-
282
- #### Returns
283
-
284
- `string`
285
-
286
- String convertida em PascalCase
287
-
288
- #### Defined in
289
-
290
- src/utils/StringUtils.ts:165
291
-
292
- ___
293
-
294
- ### toSnakeCase
295
-
296
- ▸ `Static` **toSnakeCase**(`value`): `string`
297
-
298
- Utilitário para converter string em snake_case
299
- Combina palavras substituindo cada espaço por um unsderscore (_) convertendo todas as letras para minúsculas
300
-
301
- #### Parameters
302
-
303
- | Name | Type | Description |
304
- | :------ | :------ | :------ |
305
- | `value` | `string` | String a ser convertida |
306
-
307
- #### Returns
308
-
309
- `string`
310
-
311
- String convertida em snake_case
312
-
313
- #### Defined in
314
-
315
- src/utils/StringUtils.ts:178
@@ -1,98 +0,0 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / TimeFormatter
2
-
3
- # Class: TimeFormatter
4
-
5
- `TimeFormatter` é um utilitário para formatação de strings desformatadas em strings válidas de horários
6
-
7
- ## Table of contents
8
-
9
- ### Constructors
10
-
11
- - [constructor](TimeFormatter.md#constructor)
12
-
13
- ### Properties
14
-
15
- - [\_maskFormatter](TimeFormatter.md#_maskformatter)
16
-
17
- ### Methods
18
-
19
- - [prepareValue](TimeFormatter.md#preparevalue)
20
- - [validateTime](TimeFormatter.md#validatetime)
21
-
22
- ## Constructors
23
-
24
- ### constructor
25
-
26
- • **new TimeFormatter**()
27
-
28
- ## Properties
29
-
30
- ### \_maskFormatter
31
-
32
- ▪ `Static` **\_maskFormatter**: [`MaskFormatter`](MaskFormatter-1.md)
33
-
34
- #### Defined in
35
-
36
- src/utils/TimeFormatter.ts:8
37
-
38
- ## Methods
39
-
40
- ### prepareValue
41
-
42
- ▸ `Static` **prepareValue**(`value`, `showSeconds`): `string`
43
-
44
- @prepareValue: converts an unformated time string into a formatted time.
45
-
46
- **`Exemples`**
47
-
48
- @"1012" | "10:12"
49
- @"10:12" | "10:12:00"
50
- @"100112" | "10:01:12"
51
-
52
- #### Parameters
53
-
54
- | Name | Type | Description |
55
- | :------ | :------ | :------ |
56
- | `value` | `string` | unformated time string to convert |
57
- | `showSeconds` | `boolean` | - |
58
-
59
- #### Returns
60
-
61
- `string`
62
-
63
- formatted time string
64
-
65
- #### Defined in
66
-
67
- src/utils/TimeFormatter.ts:22
68
-
69
- ___
70
-
71
- ### validateTime
72
-
73
- ▸ `Static` **validateTime**(`value`, `showSeconds`): `boolean`
74
-
75
- @validateTime: validates if an input string has the corect time format.
76
-
77
- **`Exemples`**
78
-
79
- @"1012" | true
80
- @"14e4" | false
81
- @"2624" | false
82
-
83
- #### Parameters
84
-
85
- | Name | Type | Description |
86
- | :------ | :------ | :------ |
87
- | `value` | `string` | input string to validate |
88
- | `showSeconds` | `boolean` | - |
89
-
90
- #### Returns
91
-
92
- `boolean`
93
-
94
- true or false
95
-
96
- #### Defined in
97
-
98
- src/utils/TimeFormatter.ts:64
@@ -1,48 +0,0 @@
1
- [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / UserAgentUtils
2
-
3
- # Class: UserAgentUtils
4
-
5
- ## Table of contents
6
-
7
- ### Constructors
8
-
9
- - [constructor](UserAgentUtils.md#constructor)
10
-
11
- ### Methods
12
-
13
- - [getBrowserInfo](UserAgentUtils.md#getbrowserinfo)
14
- - [isFirefox](UserAgentUtils.md#isfirefox)
15
-
16
- ## Constructors
17
-
18
- ### constructor
19
-
20
- • **new UserAgentUtils**()
21
-
22
- ## Methods
23
-
24
- ### getBrowserInfo
25
-
26
- ▸ `Static` **getBrowserInfo**(): `any`
27
-
28
- #### Returns
29
-
30
- `any`
31
-
32
- #### Defined in
33
-
34
- src/utils/UserAgentUtils/index.ts:10
35
-
36
- ___
37
-
38
- ### isFirefox
39
-
40
- ▸ `Static` **isFirefox**(): `boolean`
41
-
42
- #### Returns
43
-
44
- `boolean`
45
-
46
- #### Defined in
47
-
48
- src/utils/UserAgentUtils/index.ts:5