jsegd-fluig-types 1.0.15 → 1.0.17

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.15-blue.svg)
3
+ ![Version](https://img.shields.io/badge/version-1.0.17-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,31 @@ 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?: { [key: string]: unknown } | { [key: string]: unknown }[];
16
+ options?: {
17
+ encoding: "UTF-8" | "ISO-8859-1";
18
+ mediaType:
19
+ | "application/json"
20
+ | "application/xml"
21
+ | "text/plain"
22
+ | "multipart/form-data";
23
+ useSSL: boolean;
24
+ };
25
+ headers?: {
26
+ "Content-Type":
27
+ | "application/json;charset=UTF-8"
28
+ | "application/xml;charset=UTF-8"
29
+ | "text/plain;charset=UTF-8"
30
+ | "multipart/form-data";
31
+ };
32
+ }
14
33
  interface WKValues {
15
34
  WKDef: string;
16
35
  WKVersDef: string;
@@ -34,7 +53,6 @@ declare global {
34
53
  WKActualThread: string;
35
54
  }
36
55
 
37
-
38
56
  /**
39
57
  * GlobalVars
40
58
  *
@@ -259,30 +277,30 @@ declare global {
259
277
  // #########################################################################
260
278
  // ########################## ServiceManager Types #########################
261
279
  // #########################################################################
262
-
280
+
263
281
  // Mapeamento de classes Java comuns no Fluig
264
282
  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;
283
+ "java.util.ArrayList": java.util.ArrayList<any>;
284
+ "java.util.HashMap": java.util.HashMap<any, any>;
285
+ "java.util.List": java.util.List<any>;
286
+ "java.util.Collection": java.util.Collection<any>;
287
+ "java.util.Map": java.util.Map<any, any>;
288
+ "java.lang.String": java.lang.String;
289
+ "java.lang.Integer": java.lang.Integer;
290
+ "java.lang.Long": java.lang.Long;
291
+ "java.lang.Object": java.lang.Object;
292
+ "java.sql.ResultSet": java.sql.ResultSet;
293
+ "java.sql.Date": java.sql.Date;
294
+ "java.sql.Timestamp": java.sql.Timestamp;
295
+ "javax.naming.InitialContext": javax.naming.InitialContext;
296
+ "com.fluig.sdk.api.FluigAPI": com.fluig.sdk.api.FluigAPI;
297
+ "com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService": com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService;
280
298
  }
281
299
 
282
300
  class ServiceManager {
283
301
  static getService(serviceName: string): Service;
284
302
  }
285
-
303
+
286
304
  class Service {
287
305
  getBean(): {
288
306
  /**
@@ -292,13 +310,13 @@ declare global {
292
310
  * @example
293
311
  * const arrayList = service.getBean().instantiate('java.util.ArrayList');
294
312
  * arrayList.add("item"); // Métodos do ArrayList disponíveis
295
- *
313
+ *
296
314
  * const hashMap = service.getBean().instantiate('java.util.HashMap');
297
315
  * hashMap.put("key", "value"); // Métodos do HashMap disponíveis
298
- *
316
+ *
299
317
  * const fluigAPI = service.getBean().instantiate('com.fluig.sdk.api.FluigAPI');
300
318
  * fluigAPI.getUserService(); // Métodos da FluigAPI disponíveis
301
- *
319
+ *
302
320
  * const workflowService = service.getBean().instantiate('com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService');
303
321
  * workflowService.startProcess(...); // Métodos do ECMWorkflowEngineService disponíveis
304
322
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsegd-fluig-types",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Pacote de tipos para fluig",
5
5
  "license": "CC-BY-NC-ND-4.0",
6
6
  "author": "Elemar Deckmann",