@bluecopa/react 0.1.20 → 0.1.21

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.
@@ -1,21 +1,5 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- export interface AuditRecord {
3
- source: 'UI' | 'BACKEND';
4
- userId: string;
5
- entityId: string;
6
- entityType: string;
7
- entitySubType?: string;
8
- action: 'CREATE' | 'UPDATE' | 'DELETE';
9
- oldValue?: string;
10
- newValue?: string;
11
- additionalDetails?: any;
12
- eventType: 'WORKFLOW' | 'API' | 'PROCESS' | 'DELEGATED_TASK';
13
- eventId: string;
14
- eventTimestamp: string;
15
- }
16
- export interface CreateAuditLogRequest {
17
- auditRecords: AuditRecord[];
18
- }
2
+ import { CreateAuditLogRequest } from '@bluecopa/core';
19
3
  export interface CreateAuditLogResponse {
20
4
  success: boolean;
21
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateAuditLog.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateAuditLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,IAAI,GAAG,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,SAAS,EAAE,UAAU,GAAG,KAAK,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,KAAK,GACX,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAOzE"}
1
+ {"version":3,"file":"useCreateAuditLog.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateAuditLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAW,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,KAAK,GACX,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAOzE"}
@@ -1,14 +1,5 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- export interface FileUploadRequest {
3
- path?: string;
4
- contentType?: string;
5
- method?: string;
6
- data: any;
7
- uploadType?: string;
8
- }
9
- export interface FileUploadResponse {
10
- fileId: string;
11
- }
2
+ import { FileUploadRequest, FileUploadResponse } from '@bluecopa/core';
12
3
  /**
13
4
  * Custom hook for uploading files to S3 using TanStack React Query
14
5
  * @param options - Mutation options
@@ -1 +1 @@
1
- {"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../src/hooks/useFileUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,KAAK,GACX,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAQjE"}
1
+ {"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../src/hooks/useFileUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAW,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,KAAK,GACX,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAQjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useGetFormById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetFormById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAItE;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,KAAK,GACX,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAY5B"}
1
+ {"version":3,"file":"useGetFormById.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetFormById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGtE;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,KAAK,GACX,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAY5B"}
@@ -1,14 +1,5 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- export interface RunReconRequest {
3
- workflowId: string;
4
- runId?: string;
5
- fullRefresh?: boolean;
6
- }
7
- export interface RunReconResponse {
8
- success: boolean;
9
- data?: any;
10
- message?: string;
11
- }
2
+ import { RunReconRequest, RunReconResponse } from '@bluecopa/core';
12
3
  /**
13
4
  * Custom hook for running a reconciliation workflow using TanStack React Query
14
5
  * @param options - Mutation options
@@ -1 +1 @@
1
- {"version":3,"file":"useRunRecon.d.ts","sourceRoot":"","sources":["../../src/hooks/useRunRecon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,OAAO,KAAK,GACX,iBAAiB,CAAC,gBAAgB,EAAE,KAAK,EAAE,eAAe,CAAC,CAQ7D"}
1
+ {"version":3,"file":"useRunRecon.d.ts","sourceRoot":"","sources":["../../src/hooks/useRunRecon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAW,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAG5E;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,OAAO,KAAK,GACX,iBAAiB,CAAC,gBAAgB,EAAE,KAAK,EAAE,eAAe,CAAC,CAQ7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/react",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Bluecopa react library with TanStack Query integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
@@ -27,7 +27,7 @@
27
27
  "react-dom": ">=18.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@bluecopa/core": "0.1.18",
30
+ "@bluecopa/core": "0.1.19",
31
31
  "@tanstack/react-query": "5.59.0",
32
32
  "@tanstack/react-query-devtools": "5.59.0"
33
33
  },