jsegd-fluig-types 1.0.14 → 1.0.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # jsegd-fluig-types
2
2
 
3
- ![Version](https://img.shields.io/badge/version-1.0.14-blue.svg)
3
+ ![Version](https://img.shields.io/badge/version-1.0.16-blue.svg)
4
4
  ![License](https://img.shields.io/badge/license-CC--BY--NC--ND--4.0-green.svg)
5
5
 
6
6
  Pacote de tipos TypeScript para desenvolvimento com a plataforma Fluig. Este pacote fornece tipagens completas para APIs do Fluig, facilitando o desenvolvimento tanto no frontend quanto no backend, incluindo suporte para webservices e implementações duais de DatasetFactory.
@@ -5,12 +5,33 @@ declare enum FormMod {
5
5
  "NONE" = "NONE",
6
6
  }
7
7
 
8
-
9
- declare type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
10
-
11
8
  declare global {
12
-
13
-
9
+ interface ServiceRequestOptions {
10
+ companyId: string;
11
+ serviceCode: string;
12
+ endpoint: string;
13
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT" ;
14
+ timeoutService: string;
15
+ params: {
16
+ [key: string]: unknown;
17
+ };
18
+ options?: {
19
+ encoding: "UTF-8" | "ISO-8859-1";
20
+ mediaType:
21
+ | "application/json"
22
+ | "application/xml"
23
+ | "text/plain"
24
+ | "multipart/form-data";
25
+ useSSL: boolean;
26
+ };
27
+ headers?: {
28
+ "Content-Type":
29
+ | "application/json;charset=UTF-8"
30
+ | "application/xml;charset=UTF-8"
31
+ | "text/plain;charset=UTF-8"
32
+ | "multipart/form-data";
33
+ };
34
+ }
14
35
  interface WKValues {
15
36
  WKDef: string;
16
37
  WKVersDef: string;
@@ -34,7 +55,6 @@ declare global {
34
55
  WKActualThread: string;
35
56
  }
36
57
 
37
-
38
58
  /**
39
59
  * GlobalVars
40
60
  *
@@ -259,30 +279,30 @@ declare global {
259
279
  // #########################################################################
260
280
  // ########################## ServiceManager Types #########################
261
281
  // #########################################################################
262
-
282
+
263
283
  // Mapeamento de classes Java comuns no Fluig
264
284
  interface ClassNameMap {
265
- 'java.util.ArrayList': java.util.ArrayList<any>;
266
- 'java.util.HashMap': java.util.HashMap<any, any>;
267
- 'java.util.List': java.util.List<any>;
268
- 'java.util.Collection': java.util.Collection<any>;
269
- 'java.util.Map': java.util.Map<any, any>;
270
- 'java.lang.String': java.lang.String;
271
- 'java.lang.Integer': java.lang.Integer;
272
- 'java.lang.Long': java.lang.Long;
273
- 'java.lang.Object': java.lang.Object;
274
- 'java.sql.ResultSet': java.sql.ResultSet;
275
- 'java.sql.Date': java.sql.Date;
276
- 'java.sql.Timestamp': java.sql.Timestamp;
277
- 'javax.naming.InitialContext': javax.naming.InitialContext;
278
- 'com.fluig.sdk.api.FluigAPI': com.fluig.sdk.api.FluigAPI;
279
- 'com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService': com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService;
285
+ "java.util.ArrayList": java.util.ArrayList<any>;
286
+ "java.util.HashMap": java.util.HashMap<any, any>;
287
+ "java.util.List": java.util.List<any>;
288
+ "java.util.Collection": java.util.Collection<any>;
289
+ "java.util.Map": java.util.Map<any, any>;
290
+ "java.lang.String": java.lang.String;
291
+ "java.lang.Integer": java.lang.Integer;
292
+ "java.lang.Long": java.lang.Long;
293
+ "java.lang.Object": java.lang.Object;
294
+ "java.sql.ResultSet": java.sql.ResultSet;
295
+ "java.sql.Date": java.sql.Date;
296
+ "java.sql.Timestamp": java.sql.Timestamp;
297
+ "javax.naming.InitialContext": javax.naming.InitialContext;
298
+ "com.fluig.sdk.api.FluigAPI": com.fluig.sdk.api.FluigAPI;
299
+ "com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService": com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService;
280
300
  }
281
301
 
282
302
  class ServiceManager {
283
303
  static getService(serviceName: string): Service;
284
304
  }
285
-
305
+
286
306
  class Service {
287
307
  getBean(): {
288
308
  /**
@@ -292,13 +312,13 @@ declare global {
292
312
  * @example
293
313
  * const arrayList = service.getBean().instantiate('java.util.ArrayList');
294
314
  * arrayList.add("item"); // Métodos do ArrayList disponíveis
295
- *
315
+ *
296
316
  * const hashMap = service.getBean().instantiate('java.util.HashMap');
297
317
  * hashMap.put("key", "value"); // Métodos do HashMap disponíveis
298
- *
318
+ *
299
319
  * const fluigAPI = service.getBean().instantiate('com.fluig.sdk.api.FluigAPI');
300
320
  * fluigAPI.getUserService(); // Métodos da FluigAPI disponíveis
301
- *
321
+ *
302
322
  * const workflowService = service.getBean().instantiate('com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService');
303
323
  * workflowService.startProcess(...); // Métodos do ECMWorkflowEngineService disponíveis
304
324
  */
@@ -7,10 +7,10 @@ declare enum DatasetFieldType {
7
7
  }
8
8
 
9
9
  declare enum Status {
10
- SUCCESS = "success",
11
- ERROR = "error",
12
- WARNING = "warning",
13
- FAIL = "fail",
10
+ SUCCESS = "SUCCESS",
11
+ ERROR = "ERROR",
12
+ WARNING = "WARNING",
13
+ FAIL = "FAIL",
14
14
  }
15
15
  declare global {
16
16
  enum ConstraintType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsegd-fluig-types",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Pacote de tipos para fluig",
5
5
  "license": "CC-BY-NC-ND-4.0",
6
6
  "author": "Elemar Deckmann",