@cords/sdk 0.1.17 → 0.1.18

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/dist/index.d.mts CHANGED
@@ -144,11 +144,7 @@ type ReportRecordType = {
144
144
  derivedLat: string | null;
145
145
  derivedLng: string | null;
146
146
  type: "view" | "search";
147
- createdDate: {
148
- date: string;
149
- timezone_type: number;
150
- timezone: string;
151
- };
147
+ createdDate: Date;
152
148
  email: string;
153
149
  filters: string[];
154
150
  searchEmbedding: number[] | null;
@@ -157,6 +153,7 @@ type ReportRecordType = {
157
153
  sid: string | null;
158
154
  fingerprint: string | null;
159
155
  lead: string | null;
156
+ entityId: string | null;
160
157
  };
161
158
 
162
159
  declare const CordsAPI: ({ apiKey, version, referer, baseUrl: customBaseUrl, }: APIOptions) => {
package/dist/index.d.ts CHANGED
@@ -144,11 +144,7 @@ type ReportRecordType = {
144
144
  derivedLat: string | null;
145
145
  derivedLng: string | null;
146
146
  type: "view" | "search";
147
- createdDate: {
148
- date: string;
149
- timezone_type: number;
150
- timezone: string;
151
- };
147
+ createdDate: Date;
152
148
  email: string;
153
149
  filters: string[];
154
150
  searchEmbedding: number[] | null;
@@ -157,6 +153,7 @@ type ReportRecordType = {
157
153
  sid: string | null;
158
154
  fingerprint: string | null;
159
155
  lead: string | null;
156
+ entityId: string | null;
160
157
  };
161
158
 
162
159
  declare const CordsAPI: ({ apiKey, version, referer, baseUrl: customBaseUrl, }: APIOptions) => {
package/dist/index.js CHANGED
@@ -252,7 +252,14 @@ var CordsPartnerAPI = ({
252
252
  url.toString() + "?" + params
253
253
  );
254
254
  const data = await res.json();
255
- return data;
255
+ return __spreadProps(__spreadValues({}, data), {
256
+ // Convert createdDate to Date
257
+ data: data.data.map(
258
+ (record) => __spreadProps(__spreadValues({}, record), {
259
+ createdDate: /* @__PURE__ */ new Date(record.createdDate.date + "Z")
260
+ })
261
+ )
262
+ });
256
263
  };
257
264
  const reportExport = async (options) => {
258
265
  const url = formatUrl("/partner/approved/report/export");
package/dist/index.mjs CHANGED
@@ -229,7 +229,14 @@ var CordsPartnerAPI = ({
229
229
  url.toString() + "?" + params
230
230
  );
231
231
  const data = await res.json();
232
- return data;
232
+ return __spreadProps(__spreadValues({}, data), {
233
+ // Convert createdDate to Date
234
+ data: data.data.map(
235
+ (record) => __spreadProps(__spreadValues({}, record), {
236
+ createdDate: /* @__PURE__ */ new Date(record.createdDate.date + "Z")
237
+ })
238
+ )
239
+ });
233
240
  };
234
241
  const reportExport = async (options) => {
235
242
  const url = formatUrl("/partner/approved/report/export");
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./dist/index.js",
4
4
  "module": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.ts",
6
- "version": "0.1.17",
6
+ "version": "0.1.18",
7
7
  "private": false,
8
8
  "publishConfig": {
9
9
  "access": "public"