@plyaz/core 1.7.2 → 1.8.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.
@@ -3739,10 +3739,8 @@ var init_CoreInitializer = __esm({
3739
3739
  });
3740
3740
  const backendFlagStore = createStandaloneFeatureFlagStore();
3741
3741
  const compositeStore = {
3742
- // Error store methods
3743
- ...backendErrorStore,
3744
- // Feature flag store methods
3745
- ...backendFlagStore
3742
+ errors: backendErrorStore,
3743
+ featureFlags: backendFlagStore
3746
3744
  };
3747
3745
  _Core._rootStore = {
3748
3746
  getState: /* @__PURE__ */ __name(() => compositeStore, "getState"),
@@ -7767,22 +7765,23 @@ var init_FrontendExampleDomainService = __esm({
7767
7765
  // Fetchers - using apiClient directly for testing/example purposes
7768
7766
  // In production, these would be imported from @plyaz/api services
7769
7767
  // Note: Validation is handled by validator class, mapping by mapper class
7768
+ // Note: Use relative paths since apiClient.baseURL is already set to apiBasePath
7770
7769
  fetchers: {
7771
7770
  fetchAll: /* @__PURE__ */ __name(async (query) => {
7772
- return this.apiClient.get(apiBasePath, { params: query });
7771
+ return this.apiClient.get("", { params: query });
7773
7772
  }, "fetchAll"),
7774
7773
  fetchById: /* @__PURE__ */ __name(async (id) => {
7775
- return this.apiClient.get(`${apiBasePath}/${id}`);
7774
+ return this.apiClient.get(`/${id}`);
7776
7775
  }, "fetchById"),
7777
7776
  create: /* @__PURE__ */ __name(async (data) => {
7778
- return this.apiClient.post(apiBasePath, data);
7777
+ return this.apiClient.post("", data);
7779
7778
  }, "create"),
7780
7779
  update: /* @__PURE__ */ __name(async (payload) => {
7781
7780
  const { id, data } = payload;
7782
- return this.apiClient.patch(`${apiBasePath}/${id}`, data);
7781
+ return this.apiClient.patch(`/${id}`, data);
7783
7782
  }, "update"),
7784
7783
  delete: /* @__PURE__ */ __name(async (id) => {
7785
- return this.apiClient.delete(`${apiBasePath}/${id}`);
7784
+ return this.apiClient.delete(`/${id}`);
7786
7785
  }, "delete")
7787
7786
  }
7788
7787
  // Store handlers - customize how data syncs to store