@cords/sdk 0.1.12 → 0.1.13

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
@@ -188,7 +188,7 @@ declare const CordsAPI: ({ apiKey, version, referer, baseUrl: customBaseUrl, }:
188
188
  };
189
189
  declare const CordsPartnerAPI: ({ apiKey, version, referer, baseUrl: customBaseUrl, apiKeyId, }: APIOptions & {
190
190
  /** Default API key ID filter. Can be overridden. */
191
- apiKeyId: string;
191
+ apiKeyId?: string;
192
192
  }) => {
193
193
  report: (options?: ReportOptions) => Promise<{
194
194
  data: ReportRecordType[];
package/dist/index.d.ts CHANGED
@@ -188,7 +188,7 @@ declare const CordsAPI: ({ apiKey, version, referer, baseUrl: customBaseUrl, }:
188
188
  };
189
189
  declare const CordsPartnerAPI: ({ apiKey, version, referer, baseUrl: customBaseUrl, apiKeyId, }: APIOptions & {
190
190
  /** Default API key ID filter. Can be overridden. */
191
- apiKeyId: string;
191
+ apiKeyId?: string;
192
192
  }) => {
193
193
  report: (options?: ReportOptions) => Promise<{
194
194
  data: ReportRecordType[];
package/dist/index.js CHANGED
@@ -225,8 +225,8 @@ var CordsPartnerAPI = ({
225
225
  params.append("filters[search-term]", options.searchTerm);
226
226
  if (options == null ? void 0 : options.keyType)
227
227
  params.append("filters[key-type]", options.keyType);
228
- if ((options == null ? void 0 : options.apiKey) || apiKeyId)
229
- params.append("filters[api-key]", (options == null ? void 0 : options.apiKey) || apiKeyId);
228
+ const apiKey2 = (options == null ? void 0 : options.apiKey) || apiKeyId;
229
+ if (apiKey2) params.append("filters[api-key]", apiKey2);
230
230
  if (options == null ? void 0 : options.type) params.append("filters[type]", options.type);
231
231
  if (options == null ? void 0 : options.province)
232
232
  params.append("filters[province]", options.province);
@@ -256,8 +256,8 @@ var CordsPartnerAPI = ({
256
256
  params.append("filters[search-term]", options.searchTerm);
257
257
  if (options == null ? void 0 : options.keyType)
258
258
  params.append("filters[key-type]", options.keyType);
259
- if ((options == null ? void 0 : options.apiKey) || apiKeyId)
260
- params.append("filters[api-key]", (options == null ? void 0 : options.apiKey) || apiKeyId);
259
+ const apiKey2 = (options == null ? void 0 : options.apiKey) || apiKeyId;
260
+ if (apiKey2) params.append("filters[api-key]", apiKey2);
261
261
  if (options == null ? void 0 : options.type) params.append("filters[type]", options.type);
262
262
  if (options == null ? void 0 : options.province)
263
263
  params.append("filters[province]", options.province);
package/dist/index.mjs CHANGED
@@ -202,8 +202,8 @@ var CordsPartnerAPI = ({
202
202
  params.append("filters[search-term]", options.searchTerm);
203
203
  if (options == null ? void 0 : options.keyType)
204
204
  params.append("filters[key-type]", options.keyType);
205
- if ((options == null ? void 0 : options.apiKey) || apiKeyId)
206
- params.append("filters[api-key]", (options == null ? void 0 : options.apiKey) || apiKeyId);
205
+ const apiKey2 = (options == null ? void 0 : options.apiKey) || apiKeyId;
206
+ if (apiKey2) params.append("filters[api-key]", apiKey2);
207
207
  if (options == null ? void 0 : options.type) params.append("filters[type]", options.type);
208
208
  if (options == null ? void 0 : options.province)
209
209
  params.append("filters[province]", options.province);
@@ -233,8 +233,8 @@ var CordsPartnerAPI = ({
233
233
  params.append("filters[search-term]", options.searchTerm);
234
234
  if (options == null ? void 0 : options.keyType)
235
235
  params.append("filters[key-type]", options.keyType);
236
- if ((options == null ? void 0 : options.apiKey) || apiKeyId)
237
- params.append("filters[api-key]", (options == null ? void 0 : options.apiKey) || apiKeyId);
236
+ const apiKey2 = (options == null ? void 0 : options.apiKey) || apiKeyId;
237
+ if (apiKey2) params.append("filters[api-key]", apiKey2);
238
238
  if (options == null ? void 0 : options.type) params.append("filters[type]", options.type);
239
239
  if (options == null ? void 0 : options.province)
240
240
  params.append("filters[province]", options.province);
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.12",
6
+ "version": "0.1.13",
7
7
  "private": false,
8
8
  "publishConfig": {
9
9
  "access": "public"