@orpc/pinia-colada 2.0.0-beta.24 → 2.0.0-beta.26
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 +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +6 -6
- package/package.json +6 -5
package/dist/index.d.mts
CHANGED
|
@@ -129,7 +129,7 @@ type OperationKey<TType extends OperationType, TInput> = EntryKey & ([path: stri
|
|
|
129
129
|
* The input is serialized to JSON-compatible values because Pinia Colada
|
|
130
130
|
* requires entry keys to be serializable.
|
|
131
131
|
*
|
|
132
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
132
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
133
133
|
*/
|
|
134
134
|
declare function generateOperationKey<TType extends OperationType, TInput>(path: string[], options?: OperationKeyOptions<TType, TInput>): OperationKey<TType, TInput>;
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ declare class SharedUtils<TInput> {
|
|
|
140
140
|
/**
|
|
141
141
|
* Generate a **partial matching** key for actions like revalidating queries, checking mutation status, etc.
|
|
142
142
|
*
|
|
143
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
143
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
144
144
|
*/
|
|
145
145
|
key<TType extends OperationType>(options?: Omit<OperationKeyOptions<TType, TInput>, 'prefix'>): OperationKey<TType, TInput>;
|
|
146
146
|
}
|
|
@@ -270,7 +270,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
270
270
|
/**
|
|
271
271
|
* Generate a **full matching** key for useQuery/...
|
|
272
272
|
*
|
|
273
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
273
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
274
274
|
*/
|
|
275
275
|
queryKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): EntryKeyTagged<TOutput, TError>;
|
|
276
276
|
/**
|
|
@@ -282,7 +282,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
282
282
|
/**
|
|
283
283
|
* Generate a **full matching** key for [Streamed Query Options](https://orpc.dev/docs/integrations/pinia-colada#streamed-query-options-utility).
|
|
284
284
|
*
|
|
285
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
285
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
286
286
|
*/
|
|
287
287
|
streamedKey(...rest: MaybeOptionalOptions<StreamedKeyOptions<TInput>>): EntryKeyTagged<InferStreamedQueryOutput<TOutput>, TError>;
|
|
288
288
|
/**
|
|
@@ -294,7 +294,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
294
294
|
/**
|
|
295
295
|
* Generate a **full matching** key for [Live Query Options](https://orpc.dev/docs/integrations/pinia-colada#live-query-options-utility).
|
|
296
296
|
*
|
|
297
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
297
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
298
298
|
*/
|
|
299
299
|
liveKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): EntryKeyTagged<InferLiveQueryOutput<TOutput>, TError>;
|
|
300
300
|
/**
|
|
@@ -306,7 +306,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
306
306
|
/**
|
|
307
307
|
* Generate a **full matching** key for useInfiniteQuery/...
|
|
308
308
|
*
|
|
309
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
309
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
310
310
|
*/
|
|
311
311
|
infiniteKey<UPageParam>(optionsIn: InfiniteKeyOptions<TInput, UPageParam>): EntryKeyTagged<UseInfiniteQueryData<TOutput, UPageParam>, TError>;
|
|
312
312
|
/**
|
|
@@ -318,7 +318,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
318
318
|
/**
|
|
319
319
|
* Generate a **full matching** key for useMutation/...
|
|
320
320
|
*
|
|
321
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
321
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
322
322
|
*/
|
|
323
323
|
mutationKey(...rest: MaybeOptionalOptions<MutationKeyOptions<TInput>>): MutationOptionsOut<TInput, TOutput, TError, _EmptyObject>['key'];
|
|
324
324
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ type OperationKey<TType extends OperationType, TInput> = EntryKey & ([path: stri
|
|
|
129
129
|
* The input is serialized to JSON-compatible values because Pinia Colada
|
|
130
130
|
* requires entry keys to be serializable.
|
|
131
131
|
*
|
|
132
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
132
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
133
133
|
*/
|
|
134
134
|
declare function generateOperationKey<TType extends OperationType, TInput>(path: string[], options?: OperationKeyOptions<TType, TInput>): OperationKey<TType, TInput>;
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ declare class SharedUtils<TInput> {
|
|
|
140
140
|
/**
|
|
141
141
|
* Generate a **partial matching** key for actions like revalidating queries, checking mutation status, etc.
|
|
142
142
|
*
|
|
143
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
143
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
144
144
|
*/
|
|
145
145
|
key<TType extends OperationType>(options?: Omit<OperationKeyOptions<TType, TInput>, 'prefix'>): OperationKey<TType, TInput>;
|
|
146
146
|
}
|
|
@@ -270,7 +270,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
270
270
|
/**
|
|
271
271
|
* Generate a **full matching** key for useQuery/...
|
|
272
272
|
*
|
|
273
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
273
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
274
274
|
*/
|
|
275
275
|
queryKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): EntryKeyTagged<TOutput, TError>;
|
|
276
276
|
/**
|
|
@@ -282,7 +282,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
282
282
|
/**
|
|
283
283
|
* Generate a **full matching** key for [Streamed Query Options](https://orpc.dev/docs/integrations/pinia-colada#streamed-query-options-utility).
|
|
284
284
|
*
|
|
285
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
285
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
286
286
|
*/
|
|
287
287
|
streamedKey(...rest: MaybeOptionalOptions<StreamedKeyOptions<TInput>>): EntryKeyTagged<InferStreamedQueryOutput<TOutput>, TError>;
|
|
288
288
|
/**
|
|
@@ -294,7 +294,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
294
294
|
/**
|
|
295
295
|
* Generate a **full matching** key for [Live Query Options](https://orpc.dev/docs/integrations/pinia-colada#live-query-options-utility).
|
|
296
296
|
*
|
|
297
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
297
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
298
298
|
*/
|
|
299
299
|
liveKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): EntryKeyTagged<InferLiveQueryOutput<TOutput>, TError>;
|
|
300
300
|
/**
|
|
@@ -306,7 +306,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
306
306
|
/**
|
|
307
307
|
* Generate a **full matching** key for useInfiniteQuery/...
|
|
308
308
|
*
|
|
309
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
309
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
310
310
|
*/
|
|
311
311
|
infiniteKey<UPageParam>(optionsIn: InfiniteKeyOptions<TInput, UPageParam>): EntryKeyTagged<UseInfiniteQueryData<TOutput, UPageParam>, TError>;
|
|
312
312
|
/**
|
|
@@ -318,7 +318,7 @@ declare class ProcedureUtils<TClientContext extends ClientContext, TInput, TOutp
|
|
|
318
318
|
/**
|
|
319
319
|
* Generate a **full matching** key for useMutation/...
|
|
320
320
|
*
|
|
321
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
321
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
322
322
|
*/
|
|
323
323
|
mutationKey(...rest: MaybeOptionalOptions<MutationKeyOptions<TInput>>): MutationOptionsOut<TInput, TOutput, TError, _EmptyObject>['key'];
|
|
324
324
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ class SharedUtils {
|
|
|
68
68
|
/**
|
|
69
69
|
* Generate a **partial matching** key for actions like revalidating queries, checking mutation status, etc.
|
|
70
70
|
*
|
|
71
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
71
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
72
72
|
*/
|
|
73
73
|
key(options = {}) {
|
|
74
74
|
return generateOperationKey(this.path, { ...options, prefix: this.options.prefix });
|
|
@@ -193,7 +193,7 @@ class ProcedureUtils extends SharedUtils {
|
|
|
193
193
|
/**
|
|
194
194
|
* Generate a **full matching** key for useQuery/...
|
|
195
195
|
*
|
|
196
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
196
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
197
197
|
*/
|
|
198
198
|
queryKey(...rest) {
|
|
199
199
|
let optionsIn = resolveMaybeOptionalOptions(rest);
|
|
@@ -250,7 +250,7 @@ class ProcedureUtils extends SharedUtils {
|
|
|
250
250
|
/**
|
|
251
251
|
* Generate a **full matching** key for [Streamed Query Options](https://orpc.dev/docs/integrations/pinia-colada#streamed-query-options-utility).
|
|
252
252
|
*
|
|
253
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
253
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
254
254
|
*/
|
|
255
255
|
streamedKey(...rest) {
|
|
256
256
|
let optionsIn = resolveMaybeOptionalOptions(rest);
|
|
@@ -316,7 +316,7 @@ class ProcedureUtils extends SharedUtils {
|
|
|
316
316
|
/**
|
|
317
317
|
* Generate a **full matching** key for [Live Query Options](https://orpc.dev/docs/integrations/pinia-colada#live-query-options-utility).
|
|
318
318
|
*
|
|
319
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
319
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
320
320
|
*/
|
|
321
321
|
liveKey(...rest) {
|
|
322
322
|
let optionsIn = resolveMaybeOptionalOptions(rest);
|
|
@@ -379,7 +379,7 @@ class ProcedureUtils extends SharedUtils {
|
|
|
379
379
|
/**
|
|
380
380
|
* Generate a **full matching** key for useInfiniteQuery/...
|
|
381
381
|
*
|
|
382
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
382
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
383
383
|
*/
|
|
384
384
|
infiniteKey(optionsIn) {
|
|
385
385
|
if (typeof this.options.infiniteKey === "function") {
|
|
@@ -440,7 +440,7 @@ class ProcedureUtils extends SharedUtils {
|
|
|
440
440
|
/**
|
|
441
441
|
* Generate a **full matching** key for useMutation/...
|
|
442
442
|
*
|
|
443
|
-
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#
|
|
443
|
+
* @see {@link https://orpc.dev/docs/integrations/pinia-colada#querymutation-key | Pinia Colada Integration - Query/Mutation Key}
|
|
444
444
|
*/
|
|
445
445
|
mutationKey(...rest) {
|
|
446
446
|
let optionsIn = resolveMaybeOptionalOptions(rest);
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/pinia-colada",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.26",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"funding": "https://github.com/sponsors/dinwwwh",
|
|
6
7
|
"homepage": "https://orpc.dev",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
@@ -32,10 +33,10 @@
|
|
|
32
33
|
"vue": ">=3.5.17"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@orpc/client": "2.0.0-beta.
|
|
36
|
-
"@orpc/
|
|
37
|
-
"@orpc/
|
|
38
|
-
"@orpc/shared": "2.0.0-beta.
|
|
36
|
+
"@orpc/client": "2.0.0-beta.26",
|
|
37
|
+
"@orpc/openapi": "2.0.0-beta.26",
|
|
38
|
+
"@orpc/contract": "2.0.0-beta.26",
|
|
39
|
+
"@orpc/shared": "2.0.0-beta.26"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@pinia/colada": "^1.4.2",
|