@cords/sdk 0.1.19 → 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.
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;
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;
package/dist/index.js CHANGED
@@ -241,6 +241,8 @@ var CordsPartnerAPI = ({
241
241
  if (options == null ? void 0 : options.country)
242
242
  params.append("filters[country]", options.country);
243
243
  if (options == null ? void 0 : options.page) params.append("page", options.page.toString());
244
+ if (options == null ? void 0 : options.pageSize)
245
+ params.append("pageSize", options.pageSize.toString());
244
246
  if (options == null ? void 0 : options.dates) {
245
247
  params.append(
246
248
  "filters[dates]",
package/dist/index.mjs CHANGED
@@ -218,6 +218,8 @@ var CordsPartnerAPI = ({
218
218
  if (options == null ? void 0 : options.country)
219
219
  params.append("filters[country]", options.country);
220
220
  if (options == null ? void 0 : options.page) params.append("page", options.page.toString());
221
+ if (options == null ? void 0 : options.pageSize)
222
+ params.append("pageSize", options.pageSize.toString());
221
223
  if (options == null ? void 0 : options.dates) {
222
224
  params.append(
223
225
  "filters[dates]",
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.19",
6
+ "version": "0.1.21",
7
7
  "private": false,
8
8
  "publishConfig": {
9
9
  "access": "public"