@slotchain/sdk 1.5.0 → 1.6.0

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.cjs.js CHANGED
@@ -198,7 +198,16 @@ var TenantClient = class {
198
198
  `/api/v1/tenants/${slug}`,
199
199
  { params: { includeServices } }
200
200
  );
201
- return response.data;
201
+ const data = response.data;
202
+ if (data?.data?.services) {
203
+ data.data.services = data.data.services.filter((s) => !s.deleted_at).map((s) => ({
204
+ ...s,
205
+ serviceItems: (s.serviceItems ?? []).filter(
206
+ (item) => !item.deleted_at && !item.withdrawn_at
207
+ )
208
+ }));
209
+ }
210
+ return data;
202
211
  }
203
212
  };
204
213