@fluentcommerce/fc-connect-sdk 0.1.51 → 0.1.53

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.
@@ -77,6 +77,58 @@ if (result.errors) {
77
77
  }
78
78
  ```
79
79
 
80
+ ### FluentEventQueryParams
81
+
82
+ Query params for Event Log/Audit search (`GET /api/v4.1/event`).
83
+
84
+ ```typescript
85
+ interface FluentEventQueryParams {
86
+ start?: number;
87
+ count?: number;
88
+ from?: string;
89
+ to?: string;
90
+ name?: string;
91
+ category?: string;
92
+ retailerId?: string | number;
93
+ eventType?: string;
94
+ eventStatus?: string;
95
+ 'context.rootEntityType'?: string;
96
+ 'context.rootEntityId'?: string | number;
97
+ 'context.rootEntityRef'?: string;
98
+ 'context.entityType'?: string;
99
+ 'context.entityId'?: string | number;
100
+ 'context.entityRef'?: string;
101
+ }
102
+ ```
103
+
104
+ ### FluentEventLogResponse
105
+
106
+ Response from Event Log search (`client.getEvents()`).
107
+
108
+ ```typescript
109
+ interface FluentEventLogResponse {
110
+ start: number;
111
+ count: number;
112
+ hasMore: boolean;
113
+ results: FluentEventLogItem[];
114
+ }
115
+
116
+ interface FluentEventLogItem {
117
+ id: string;
118
+ name: string;
119
+ type?: string;
120
+ accountId?: string;
121
+ retailerId?: string;
122
+ category?: string;
123
+ context?: FluentEventLogContext;
124
+ eventStatus?: string;
125
+ attributes?: FluentEventLogAttribute[] | Record<string, AttributeValue> | null;
126
+ source?: string | null;
127
+ generatedBy?: string;
128
+ generatedOn?: string;
129
+ }
130
+ ```
131
+
80
132
  ## Enums
81
133
 
82
134
  ### BatchAction
@@ -68,7 +68,7 @@ import {
68
68
 
69
69
  The main entry point for SDK operations. Learn how to create clients, execute GraphQL operations, send events, and manage batch jobs.
70
70
 
71
- **Key APIs:** `createClient()`, `FluentClient`, `graphql(payload)`, `sendEvent()`, `createJob()`, `sendBatch()`
71
+ **Key APIs:** `createClient()`, `FluentClient`, `graphql(payload)`, `sendEvent()`, `getEvents()`, `getEventById()`, `createJob()`, `sendBatch()`
72
72
 
73
73
  [View Module →](./modules/api-reference-01-client-api.md)
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentcommerce/fc-connect-sdk",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "description": "Fluent Commerce SDK - Deno & Node.js Compatible",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -109,7 +109,7 @@
109
109
  "@types/ssh2-sftp-client": "^9.0.5",
110
110
  "@typescript-eslint/eslint-plugin": "^7.0.0",
111
111
  "@typescript-eslint/parser": "^7.0.0",
112
- "@versori/run": "^0.4.4",
112
+ "@versori/run": "^0.4.18",
113
113
  "chalk": "^4.1.2",
114
114
  "dotenv": "^17.2.2",
115
115
  "eslint": "^8.57.0",