@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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
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
|
|
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
|
|
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
|
-
|
|
229
|
-
|
|
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
|
-
|
|
260
|
-
|
|
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
|
-
|
|
206
|
-
|
|
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
|
-
|
|
237
|
-
|
|
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);
|