arky-sdk 0.7.104 → 0.7.105

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/admin.cjs CHANGED
@@ -1257,6 +1257,20 @@ var createActivityAdminApi = (apiConfig) => ({
1257
1257
  `/v1/stores/${store_id}/activities/timeline`,
1258
1258
  { ...options, params: queryParams }
1259
1259
  );
1260
+ },
1261
+ async find(params, options) {
1262
+ const store_id = apiConfig.storeId;
1263
+ const queryParams = {};
1264
+ if (params.customer_id) queryParams.customer_id = params.customer_id;
1265
+ if (params.types && params.types.length > 0) queryParams.types = params.types;
1266
+ if (params.from !== void 0) queryParams.from = params.from;
1267
+ if (params.to !== void 0) queryParams.to = params.to;
1268
+ if (params.limit !== void 0) queryParams.limit = params.limit;
1269
+ if (params.cursor) queryParams.cursor = params.cursor;
1270
+ return apiConfig.httpClient.get(
1271
+ `/v1/stores/${store_id}/activities`,
1272
+ { ...options, params: queryParams }
1273
+ );
1260
1274
  }
1261
1275
  });
1262
1276
  var createCustomerApi = (apiConfig) => {
@@ -1724,14 +1738,11 @@ var createFormApi = (apiConfig) => {
1724
1738
  );
1725
1739
  },
1726
1740
  async getSubmissions(params, options) {
1727
- const { store_id, form_id, ...queryParams } = params;
1741
+ const { store_id, ...queryParams } = params;
1728
1742
  const target_store_id = store_id || apiConfig.storeId;
1729
1743
  return apiConfig.httpClient.get(
1730
- `/v1/stores/${target_store_id}/forms/${form_id}/submissions`,
1731
- {
1732
- ...options,
1733
- params: { ...queryParams, form_id, store_id: target_store_id }
1734
- }
1744
+ `/v1/stores/${target_store_id}/forms/submissions`,
1745
+ { ...options, params: queryParams }
1735
1746
  );
1736
1747
  },
1737
1748
  async getSubmission(params, options) {