@cords/sdk 0.1.18 → 0.1.20

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
@@ -123,8 +123,10 @@ type ReportOptions = {
123
123
  postalCode?: string;
124
124
  /** The country that the search was set to must include value */
125
125
  country?: string;
126
- /** 25 results are included per page */
126
+ /** Page number */
127
127
  page?: PageOptions["page"];
128
+ /** Page size: default is 25, max is 10000 */
129
+ pageSize?: PageOptions["pageSize"];
128
130
  /** Type of report */
129
131
  type?: "view" | "search";
130
132
  dates?: {
@@ -133,6 +135,7 @@ type ReportOptions = {
133
135
  };
134
136
  };
135
137
  type ReportRecordType = {
138
+ id: number;
136
139
  ip: string;
137
140
  apiKey: string;
138
141
  searchString: string;
@@ -141,8 +144,8 @@ type ReportRecordType = {
141
144
  province: string | null;
142
145
  derivedProvince: string | null;
143
146
  derivedCity: string | null;
144
- derivedLat: string | null;
145
- derivedLng: string | null;
147
+ derivedLat: number | null;
148
+ derivedLng: number | null;
146
149
  type: "view" | "search";
147
150
  createdDate: Date;
148
151
  email: string;
package/dist/index.d.ts CHANGED
@@ -123,8 +123,10 @@ type ReportOptions = {
123
123
  postalCode?: string;
124
124
  /** The country that the search was set to must include value */
125
125
  country?: string;
126
- /** 25 results are included per page */
126
+ /** Page number */
127
127
  page?: PageOptions["page"];
128
+ /** Page size: default is 25, max is 10000 */
129
+ pageSize?: PageOptions["pageSize"];
128
130
  /** Type of report */
129
131
  type?: "view" | "search";
130
132
  dates?: {
@@ -133,6 +135,7 @@ type ReportOptions = {
133
135
  };
134
136
  };
135
137
  type ReportRecordType = {
138
+ id: number;
136
139
  ip: string;
137
140
  apiKey: string;
138
141
  searchString: string;
@@ -141,8 +144,8 @@ type ReportRecordType = {
141
144
  province: string | null;
142
145
  derivedProvince: string | null;
143
146
  derivedCity: string | null;
144
- derivedLat: string | null;
145
- derivedLng: string | null;
147
+ derivedLat: number | null;
148
+ derivedLng: number | null;
146
149
  type: "view" | "search";
147
150
  createdDate: Date;
148
151
  email: string;
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.18",
6
+ "version": "0.1.20",
7
7
  "private": false,
8
8
  "publishConfig": {
9
9
  "access": "public"