@gettersethya/mira-tanstack-adapter 0.1.0-alpha.16 → 0.1.0-alpha.17

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.
@@ -158,7 +158,7 @@ export declare function createCollectionAdapter(makeQueryOptions: MakeQueryOptio
158
158
  toEffect(): import("effect/Effect").Effect<{
159
159
  items: import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>[];
160
160
  nextCursor: number | null;
161
- }, import("@gettersethya/mira-client").MiraError, import("@effect/platform/HttpClient").HttpClient>;
161
+ }, import("@gettersethya/mira-client").MiraError, import("effect/http/HttpClient").HttpClient>;
162
162
  } & {
163
163
  queryKey: QueryKey;
164
164
  queryOptions: QueryOptionsShape<unknown>;
@@ -169,7 +169,7 @@ export declare function createCollectionAdapter(makeQueryOptions: MakeQueryOptio
169
169
  */
170
170
  getOne: (id: string, options?: Parameters<CollectionClient<F>["getOne"]>[1]) => {
171
171
  raw(): Promise<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>>;
172
- toEffect(): import("effect/Effect").Effect<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>, import("@gettersethya/mira-client").MiraError, import("@effect/platform/HttpClient").HttpClient>;
172
+ toEffect(): import("effect/Effect").Effect<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>, import("@gettersethya/mira-client").MiraError, import("effect/http/HttpClient").HttpClient>;
173
173
  } & {
174
174
  queryKey: QueryKey;
175
175
  queryOptions: QueryOptionsShape<unknown>;
@@ -180,7 +180,7 @@ export declare function createCollectionAdapter(makeQueryOptions: MakeQueryOptio
180
180
  */
181
181
  getFirstOrNone: (filter: (f: FilterBuilder<F>) => FilterNode, options?: Parameters<CollectionClient<F>["getFirstOrNone"]>[1]) => {
182
182
  raw(): Promise<import("effect/Option").Option<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>>>;
183
- toEffect(): import("effect/Effect").Effect<import("effect/Option").Option<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>>, import("@gettersethya/mira-client").MiraError, import("@effect/platform/HttpClient").HttpClient>;
183
+ toEffect(): import("effect/Effect").Effect<import("effect/Option").Option<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>>, import("@gettersethya/mira-client").MiraError, import("effect/http/HttpClient").HttpClient>;
184
184
  } & {
185
185
  queryKey: QueryKey;
186
186
  queryOptions: QueryOptionsShape<unknown>;
@@ -191,7 +191,7 @@ export declare function createCollectionAdapter(makeQueryOptions: MakeQueryOptio
191
191
  */
192
192
  getFullList: (options?: Parameters<CollectionClient<F>["getFullList"]>[0]) => {
193
193
  raw(): Promise<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>[]>;
194
- toEffect(): import("effect/Effect").Effect<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>[], import("@gettersethya/mira-client").MiraError, import("@effect/platform/HttpClient").HttpClient>;
194
+ toEffect(): import("effect/Effect").Effect<import("@gettersethya/mira-client").WithExpand<F, readonly import("@gettersethya/mira-client").RelationKeys<F>[]>[], import("@gettersethya/mira-client").MiraError, import("effect/http/HttpClient").HttpClient>;
195
195
  } & {
196
196
  queryKey: QueryKey;
197
197
  queryOptions: QueryOptionsShape<unknown>;
@@ -213,7 +213,7 @@ export declare function createCollectionAdapter(makeQueryOptions: MakeQueryOptio
213
213
  toEffect(input: {
214
214
  id: string;
215
215
  data: Partial<import("@gettersethya/mira-client").InferMutationInput<F>>;
216
- }): import("effect/Effect").Effect<import("@gettersethya/mira-client").InferRecord<F>, import("@gettersethya/mira-client").MiraError, import("@effect/platform/HttpClient").HttpClient>;
216
+ }): import("effect/Effect").Effect<import("@gettersethya/mira-client").InferRecord<F>, import("@gettersethya/mira-client").MiraError, import("effect/http/HttpClient").HttpClient>;
217
217
  } & {
218
218
  mutationOptions: MutationOptionsShape<unknown, unknown>;
219
219
  };
@@ -222,7 +222,7 @@ export declare function createCollectionAdapter(makeQueryOptions: MakeQueryOptio
222
222
  */
223
223
  delete: () => {
224
224
  raw(input: string): Promise<void>;
225
- toEffect(input: string): import("effect/Effect").Effect<void, import("@gettersethya/mira-client").MiraError, import("@effect/platform/HttpClient").HttpClient>;
225
+ toEffect(input: string): import("effect/Effect").Effect<void, import("@gettersethya/mira-client").MiraError, import("effect/http/HttpClient").HttpClient>;
226
226
  } & {
227
227
  mutationOptions: MutationOptionsShape<unknown, unknown>;
228
228
  };
@@ -263,7 +263,7 @@ export declare function createCollectionAdapter(makeQueryOptions: MakeQueryOptio
263
263
  }): import("effect/Effect").Effect<{
264
264
  token: string;
265
265
  record: import("@gettersethya/mira-client").InferRecord<F>;
266
- }, import("@gettersethya/mira-client").MiraError, import("@effect/platform/HttpClient").HttpClient>;
266
+ }, import("@gettersethya/mira-client").MiraError, import("effect/http/HttpClient").HttpClient>;
267
267
  };
268
268
  fields: import("@gettersethya/mira-client").CollectionFileFields<F>;
269
269
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettersethya/mira-tanstack-adapter",
3
- "version": "0.1.0-alpha.16",
3
+ "version": "0.1.0-alpha.17",
4
4
  "type": "module",
5
5
  "description": "TanStack Query adapters for @gettersethya/mira client SDK",
6
6
  "author": "Getter Sethya",
@@ -26,7 +26,8 @@
26
26
  "@gettersethya/mira-client": "*",
27
27
  "@tanstack/react-query": ">=5.0.0",
28
28
  "@tanstack/svelte-query": ">=5.0.0",
29
- "@tanstack/solid-query": ">=5.0.0"
29
+ "@tanstack/solid-query": ">=5.0.0",
30
+ "effect": "^4.0.0"
30
31
  },
31
32
  "peerDependenciesMeta": {
32
33
  "@tanstack/react-query": {
@@ -41,9 +42,10 @@
41
42
  },
42
43
  "devDependencies": {
43
44
  "@tanstack/react-query": "^5.0.0",
45
+ "effect": "^4.0.0",
44
46
  "typescript": "^6.0.3",
45
- "vitest": "^4.1.6",
46
- "@gettersethya/mira-client": "0.1.0-alpha.16"
47
+ "vitest": "^5.0.0",
48
+ "@gettersethya/mira-client": "0.1.0-alpha.17"
47
49
  },
48
50
  "publishConfig": {
49
51
  "access": "public"