jsegd-fluig-types 1.0.30 → 1.0.33
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/package.json +1 -1
- package/types/fluig/fluig.api.d.ts +51 -51
- package/types/fluig/fluig.backend.d.ts +22 -20
- package/types/fluig/fluig.dataset.d.ts +182 -199
- package/types/fluig/fluig.frontend.d.ts +157 -109
- package/types/fluig/fluig.sdk.d.ts +367 -318
- package/types/fluig/fluig.webservice.d.ts +776 -241
- package/types/java/java.d.ts +161 -0
package/package.json
CHANGED
|
@@ -3,64 +3,64 @@
|
|
|
3
3
|
* Endpoint: GET /v2/dataset-handle/search
|
|
4
4
|
*/
|
|
5
5
|
declare global {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
interface SearchDatasetValuesParams {
|
|
7
|
+
/**
|
|
8
|
+
* Dataset code to be used as a filter.
|
|
9
|
+
* (Obrigatório)
|
|
10
|
+
*/
|
|
11
|
+
datasetId: string
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Dataset fields that will be returned.
|
|
15
|
+
* Se não informado, todos os campos serão retornados.
|
|
16
|
+
*/
|
|
17
|
+
field?: string[]
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Quantos registros serão ignorados antes de retornar os valores.
|
|
21
|
+
* Usado em conjunto com `limit` para paginação.
|
|
22
|
+
*/
|
|
23
|
+
offset?: number
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Número máximo de registros retornados.
|
|
27
|
+
* Padrão: 300. Use 0 para buscar todos (não recomendado).
|
|
28
|
+
*/
|
|
29
|
+
limit?: number
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Campo para ordenação dos resultados.
|
|
33
|
+
* Pode incluir "_ASC" ou "_DESC" para definir a ordem.
|
|
34
|
+
*/
|
|
35
|
+
orderby?: string
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Nome dos campos usados como filtros (constraints).
|
|
39
|
+
* É possível informar vários campos.
|
|
40
|
+
*/
|
|
41
|
+
constraintsField?: string[]
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Valores iniciais usados para filtrar (mesma ordem de `constraintsField`).
|
|
45
|
+
*/
|
|
46
|
+
constraintsInitialValue?: string[]
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Valores finais usados para filtros por faixa (mesma ordem de `constraintsField`).
|
|
50
|
+
*/
|
|
51
|
+
constraintsFinalValue?: string[]
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Tipo de restrição — valores permitidos: "MUST", "MUST_NOT", "SHOULD".
|
|
55
|
+
*/
|
|
56
|
+
constraintsType?: ('MUST' | 'MUST_NOT' | 'SHOULD')[]
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Define se a busca é parcial (LIKE) ou exata.
|
|
60
|
+
* true → aceita valores parciais (%)
|
|
61
|
+
* false → exige correspondência exata
|
|
62
|
+
*/
|
|
63
|
+
constraintsLikeSearch?: boolean[]
|
|
64
|
+
}
|
|
65
65
|
}
|
|
66
|
-
export {}
|
|
66
|
+
export {}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
interface StartProcessConfig {
|
|
2
|
+
processId: string
|
|
3
|
+
chosenState: number
|
|
4
|
+
colleagues: java.util.ArrayList<java.lang.String>
|
|
5
|
+
comments: string
|
|
6
|
+
completeTask: boolean
|
|
7
|
+
cardData: java.util.HashMap<java.lang.String, java.lang.String>
|
|
8
|
+
managerMode: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
declare global {
|
|
2
12
|
enum FormMod {
|
|
3
13
|
ADD = 'ADD',
|
|
@@ -90,7 +100,7 @@ declare global {
|
|
|
90
100
|
function getValue(key: 'WKCompany'): string
|
|
91
101
|
function getValue(key: 'WKUser'): string
|
|
92
102
|
function getValue(key: 'WKUserComment'): string
|
|
93
|
-
function getValue(key: 'WKCompletTask'):
|
|
103
|
+
function getValue(key: 'WKCompletTask'): string
|
|
94
104
|
function getValue(key: 'WKNextState'): string
|
|
95
105
|
function getValue(key: 'WKCardId'): string
|
|
96
106
|
function getValue(key: 'WKFormId'): string
|
|
@@ -141,15 +151,7 @@ declare global {
|
|
|
141
151
|
static setTaskComments(userId: string, processId: number, threadId: number, comment: string): void
|
|
142
152
|
static getAdvancedProperty(nomePropriedade: string): string
|
|
143
153
|
static getCardData(numProcesso: number): java.util.HashMap<string, string>
|
|
144
|
-
static startProcess(
|
|
145
|
-
processId: string,
|
|
146
|
-
taskNumber: number,
|
|
147
|
-
users: java.util.ArrayList<java.lang.String>,
|
|
148
|
-
comment?: string,
|
|
149
|
-
taskFinished?: boolean,
|
|
150
|
-
form?: java.util.HashMap<java.lang.String, java.lang.String>,
|
|
151
|
-
managerMode?: boolean
|
|
152
|
-
): java.util.HashMap<string, string>
|
|
154
|
+
static startProcess(StartProcessConfig: StartProcessConfig): java.util.HashMap<string, string>
|
|
153
155
|
static calculateDeadLineHours(deadlineDate: Date, seconds: number, deadlineInHours: number, periodId: string): unknown
|
|
154
156
|
static calculateDeadLineTime(deadlineDate: Date, seconds: number, deadlineInHours: number, periodId: string): unknown
|
|
155
157
|
static setColleagueReplacement(responsible: string): void
|
|
@@ -204,10 +206,10 @@ declare global {
|
|
|
204
206
|
class customHTML {
|
|
205
207
|
append(html: string): void
|
|
206
208
|
}
|
|
207
|
-
export type DisplayFieldsHandler = (form: FormController, customHTML: customHTML) => void
|
|
208
|
-
export type EnableFieldsHandler
|
|
209
|
-
export type InputFieldsHandler
|
|
210
|
-
export type ValidateFormHandler
|
|
209
|
+
export type DisplayFieldsHandler = (form: FormController, customHTML: customHTML) => void
|
|
210
|
+
export type EnableFieldsHandler = (form: FormController) => void
|
|
211
|
+
export type InputFieldsHandler = (form: FormController) => void
|
|
212
|
+
export type ValidateFormHandler = (form: FormController) => void
|
|
211
213
|
|
|
212
214
|
// #########################################################################
|
|
213
215
|
// ####################### Definição de Log ################################
|
|
@@ -226,11 +228,11 @@ declare global {
|
|
|
226
228
|
|
|
227
229
|
// Mapeamento de classes Java comuns no Fluig
|
|
228
230
|
interface ClassNameMap {
|
|
229
|
-
'java.util.ArrayList': java.util.ArrayList<
|
|
230
|
-
'java.util.HashMap': java.util.HashMap<
|
|
231
|
-
'java.util.List': java.util.List<
|
|
232
|
-
'java.util.Collection': java.util.Collection<
|
|
233
|
-
'java.util.Map': java.util.Map<
|
|
231
|
+
'java.util.ArrayList': java.util.ArrayList<unknown>
|
|
232
|
+
'java.util.HashMap': java.util.HashMap<unknown, unknown>
|
|
233
|
+
'java.util.List': java.util.List<unknown>
|
|
234
|
+
'java.util.Collection': java.util.Collection<unknown>
|
|
235
|
+
'java.util.Map': java.util.Map<unknown, unknown>
|
|
234
236
|
'java.lang.String': java.lang.String
|
|
235
237
|
'java.lang.Integer': java.lang.Integer
|
|
236
238
|
'java.lang.Long': java.lang.Long
|
|
@@ -267,7 +269,7 @@ declare global {
|
|
|
267
269
|
* workflowService.startProcess(...); // Métodos do ECMWorkflowEngineService disponíveis
|
|
268
270
|
*/
|
|
269
271
|
instantiate<T extends keyof ClassNameMap>(className: T): ClassNameMap[T]
|
|
270
|
-
instantiate<T =
|
|
272
|
+
instantiate<T = unknown>(className: string): T
|
|
271
273
|
}
|
|
272
274
|
}
|
|
273
275
|
/**
|
|
@@ -1,201 +1,184 @@
|
|
|
1
1
|
declare global {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
//
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* Define a estrutura do dataset.
|
|
184
|
-
* @example
|
|
185
|
-
* function defineStructure(): void{
|
|
186
|
-
* AddColumn("NOME", DatasetFieldType.STRING);
|
|
187
|
-
* AddColumn("IDADE", DatasetFieldType.NUMBER);
|
|
188
|
-
* setKey(["NOME"]);
|
|
189
|
-
* addIndex(["IDADE"]);
|
|
190
|
-
* };
|
|
191
|
-
*/
|
|
192
|
-
function defineStructure(): void;
|
|
193
|
-
function onSync(lastSyncDate: Date): DefaultDataset;
|
|
194
|
-
function createDataset(
|
|
195
|
-
fields: string[],
|
|
196
|
-
constraints: SearchConstraint[],
|
|
197
|
-
sortFields: string[],
|
|
198
|
-
): DefaultDataset;
|
|
199
|
-
function onMobileSync(user: string): void;
|
|
2
|
+
enum DatasetFieldType {
|
|
3
|
+
NUMBER = 'NUMBER',
|
|
4
|
+
DATE = 'DATE',
|
|
5
|
+
BOOLEAN = 'BOOLEAN',
|
|
6
|
+
STRING = 'STRING',
|
|
7
|
+
TEXT = 'TEXT',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
enum ConstraintType {
|
|
11
|
+
MUST = 1,
|
|
12
|
+
SHOULD = 2,
|
|
13
|
+
MUST_NOT = 3,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface SearchConstraintBase {
|
|
17
|
+
fieldName: string
|
|
18
|
+
initialValue: string
|
|
19
|
+
finalValue: string
|
|
20
|
+
constraintType: ConstraintType
|
|
21
|
+
likeSearch: boolean
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface SearchConstraintBackend extends SearchConstraintBase {
|
|
25
|
+
setLikeSearch(likeSearch: boolean): void
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type SearchConstraint = typeof window extends undefined ? SearchConstraintBackend : SearchConstraintBase
|
|
29
|
+
|
|
30
|
+
interface DatasetRequest {
|
|
31
|
+
name: string
|
|
32
|
+
fields: string[]
|
|
33
|
+
constraints: SearchConstraint[]
|
|
34
|
+
order: string[]
|
|
35
|
+
}
|
|
36
|
+
interface ErrorDetail {
|
|
37
|
+
code: string
|
|
38
|
+
message: string
|
|
39
|
+
type?: 'validation' | 'business' | 'system' | 'network' | 'auth'
|
|
40
|
+
details?: string
|
|
41
|
+
}
|
|
42
|
+
interface DatasetResponseValues {
|
|
43
|
+
status: number
|
|
44
|
+
message: string
|
|
45
|
+
data?: unknown
|
|
46
|
+
errors?: ErrorDetail[]
|
|
47
|
+
timestamp: number
|
|
48
|
+
}
|
|
49
|
+
interface DatasetResponse {
|
|
50
|
+
response: DatasetResponseValues
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface ServiceRequestParams {
|
|
54
|
+
serviceCode: string
|
|
55
|
+
endpoint: string
|
|
56
|
+
method?: string
|
|
57
|
+
timeoutService?: string | number
|
|
58
|
+
options?: Record<string, unknown>
|
|
59
|
+
headers?: Record<string, string>
|
|
60
|
+
params?: unknown
|
|
61
|
+
strParams?: string
|
|
62
|
+
}
|
|
63
|
+
interface DatasetWcmResult<T = unknown> {
|
|
64
|
+
columns: string[]
|
|
65
|
+
values: T[]
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface DatasetCallback {
|
|
69
|
+
success: (data: DatasetWcmResult) => void
|
|
70
|
+
error?: (jqXHR?: unknown, textStatus?: string, errorThrown?: unknown) => void
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Classe que representa um Dataset padrão do Fluig
|
|
74
|
+
class DefaultDataset {
|
|
75
|
+
rowsCount: number
|
|
76
|
+
// Implementação para adicionar uma coluna ao Dataset
|
|
77
|
+
addColumn(colName: keyof DatasetResponse): void
|
|
78
|
+
addColumn(colName: java.lang.String): void
|
|
79
|
+
|
|
80
|
+
// Implementação para adicionar uma linha ao Dataset
|
|
81
|
+
addRow(values: DatasetResponse): void
|
|
82
|
+
addRow(values: java.lang.Object[]): void
|
|
83
|
+
|
|
84
|
+
// Implementação para atualizar uma linha do Dataset
|
|
85
|
+
updateRow(values: java.lang.Object[]): void
|
|
86
|
+
|
|
87
|
+
// Implementação para adicionar ou atualizar uma linha do Dataset
|
|
88
|
+
addOrUpdateRow(values: java.lang.Object[]): void
|
|
89
|
+
|
|
90
|
+
// Implementação para remover uma linha do Dataset
|
|
91
|
+
deleteRow(values: java.lang.Object[]): void
|
|
92
|
+
|
|
93
|
+
// Implementação para retornar o nome de uma coluna do Dataset
|
|
94
|
+
getColumnName(colNum: number): java.lang.String
|
|
95
|
+
|
|
96
|
+
// Implementação para retornar os nomes das colunas do Dataset
|
|
97
|
+
getColumnsName(): java.lang.String[]
|
|
98
|
+
|
|
99
|
+
// Implementação para retornar a quantidade de colunas de um Dataset
|
|
100
|
+
getColumnsCount(): number
|
|
101
|
+
|
|
102
|
+
// Implementação para retornar os valores do Dataset na forma de uma lista contendo mapas
|
|
103
|
+
getMap(): java.util.ArrayList<java.util.HashMap<java.lang.String, java.lang.Object>>
|
|
104
|
+
|
|
105
|
+
// Implementação para retornar a quantidade de linhas disponíveis no Dataset
|
|
106
|
+
getRowsCount(): number
|
|
107
|
+
|
|
108
|
+
// Implementação para retornar um subconjunto dos dados do Dataset, na forma de um novo Dataset
|
|
109
|
+
getSubDataset(field: java.lang.String, value: java.lang.Object): DefaultDataset
|
|
110
|
+
|
|
111
|
+
// Implementação para retornar o valor armazenado no Dataset, na linha e coluna passadas por parâmetro
|
|
112
|
+
getValue(row: number, col: number): java.lang.Object
|
|
113
|
+
|
|
114
|
+
// Implementação para retornar o valor armazenado no Dataset, na linha passada e campo passados por parâmetro
|
|
115
|
+
getValue(row: number, colName: java.lang.String): java.lang.Object
|
|
116
|
+
|
|
117
|
+
// Implementação para retornar todos os valores de um Dataset, na forma de um array bidimensional
|
|
118
|
+
getValues(): java.lang.Object[][]
|
|
119
|
+
|
|
120
|
+
// Implementação para retornar um ResultSet contendo os dados do Dataset.
|
|
121
|
+
toResultSet(): java.sql.ResultSet
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Cria uma nova instância do DatasetBuilder
|
|
125
|
+
class DatasetBuilder {
|
|
126
|
+
// Cria um novo Dataset
|
|
127
|
+
static newDataset(): DefaultDataset
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
class DatasetFactory {
|
|
131
|
+
// backend
|
|
132
|
+
static createConstraint(
|
|
133
|
+
field: java.lang.String,
|
|
134
|
+
initialValue: java.lang.String,
|
|
135
|
+
finalValue: java.lang.String,
|
|
136
|
+
type: ConstraintType
|
|
137
|
+
): SearchConstraint
|
|
138
|
+
// frontend
|
|
139
|
+
static createConstraint(field: string, initialValue: string, finalValue: string, type: ConstraintType, likeSearch?: boolean): SearchConstraint
|
|
140
|
+
|
|
141
|
+
// backend
|
|
142
|
+
static getDataset(
|
|
143
|
+
name: java.lang.String,
|
|
144
|
+
fields: java.lang.String[],
|
|
145
|
+
constraints: SearchConstraint[],
|
|
146
|
+
order: java.lang.String[]
|
|
147
|
+
): DefaultDataset
|
|
148
|
+
// frontend
|
|
149
|
+
static getDataset(
|
|
150
|
+
name: string,
|
|
151
|
+
fields: string[],
|
|
152
|
+
constraints: SearchConstraint[],
|
|
153
|
+
order: string[],
|
|
154
|
+
callback?: DatasetCallback
|
|
155
|
+
): DatasetWcmResult<unknown>
|
|
156
|
+
|
|
157
|
+
getAvailableDatasets(): java.util.List<java.lang.String>
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Cria um campo na tabela com o nome e tipo informados. O nome sempre deve ser informado em caracteres maiúsculos. O tipo de campo pode ser omitido e neste caso o campo será criado com o tipo String
|
|
161
|
+
function AddColumn(field: java.lang.String, type: DatasetFieldType): void
|
|
162
|
+
|
|
163
|
+
// Determina quais são os campos chaves para o dataset. No banco de dados será criado um índice utilizando os campos informados neste método. Esses campos serão utilizados na localização dos registros para atualização ou remoção das linhas através dos métodos updateRow e deleteRow. Importante informar apenas campos que foram previamente definidos com a função addColumn. Devem ser informados em caracteres maiúsculos.
|
|
164
|
+
function setKey(fields: java.lang.String[]): void
|
|
165
|
+
|
|
166
|
+
// Permite adicionar mais índices para obtenção de maior performance nas consultas do dataset. Devem ser informados em caracteres maiúsculos.
|
|
167
|
+
function addIndex(fields: java.lang.String[]): void
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Define a estrutura do dataset.
|
|
171
|
+
* @example
|
|
172
|
+
* function defineStructure(): void{
|
|
173
|
+
* AddColumn("NOME", DatasetFieldType.STRING);
|
|
174
|
+
* AddColumn("IDADE", DatasetFieldType.NUMBER);
|
|
175
|
+
* setKey(["NOME"]);
|
|
176
|
+
* addIndex(["IDADE"]);
|
|
177
|
+
* };
|
|
178
|
+
*/
|
|
179
|
+
function defineStructure(): void
|
|
180
|
+
function onSync(lastSyncDate: Date): DefaultDataset
|
|
181
|
+
function createDataset(fields: string[], constraints: SearchConstraint[], sortFields: string[]): DefaultDataset
|
|
182
|
+
function onMobileSync(user: string): void
|
|
200
183
|
}
|
|
201
|
-
export {}
|
|
184
|
+
export {}
|