rest-client-vue 1.0.0 → 1.1.1-b1
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.ts +524 -0
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/queries.d.ts +1 -0
- package/dist/src/queries.d.ts.map +1 -0
- package/dist/src/rest-collection-resources.d.ts +1 -0
- package/dist/src/rest-collection-resources.d.ts.map +1 -0
- package/dist/src/rest-collection.d.ts +13 -12
- package/dist/src/rest-collection.d.ts.map +1 -0
- package/dist/src/rest-resource.d.ts +8 -7
- package/dist/src/rest-resource.d.ts.map +1 -0
- package/dist/src/rest-store-registry.d.ts +1 -0
- package/dist/src/rest-store-registry.d.ts.map +1 -0
- package/dist/src/stores/rest-collection-store.d.ts +3 -2
- package/dist/src/stores/rest-collection-store.d.ts.map +1 -0
- package/dist/src/stores/rest-resource-store.d.ts +1 -0
- package/dist/src/stores/rest-resource-store.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
ADDED
@@ -0,0 +1,524 @@
|
|
1
|
+
import { Method } from 'axios';
|
2
|
+
import { Ref } from 'vue';
|
3
|
+
|
4
|
+
export declare class ApiClientError extends Error {
|
5
|
+
context: object | undefined;
|
6
|
+
innerError: any;
|
7
|
+
constructor(message: any, context?: object | undefined, innerError?: any);
|
8
|
+
}
|
9
|
+
|
10
|
+
export declare const clearAllRestCollections: () => void;
|
11
|
+
|
12
|
+
export declare interface ConcreteRestCollectionStoreOptionsInput {
|
13
|
+
detail?: {
|
14
|
+
allowMultiple?: boolean;
|
15
|
+
autoEdit?: boolean;
|
16
|
+
autoFromMultipleSelection?: boolean;
|
17
|
+
autoFromSingleInsertion?: boolean;
|
18
|
+
autoFromSingleSelection?: boolean;
|
19
|
+
constrainToSelection?: boolean;
|
20
|
+
};
|
21
|
+
filter?: {
|
22
|
+
namedFilter?: string | null;
|
23
|
+
query?: any | null;
|
24
|
+
resourceIds?: ResourceId[] | null;
|
25
|
+
};
|
26
|
+
limit?: number | null;
|
27
|
+
limitTransientDataToLocalCollection?: boolean;
|
28
|
+
loadId?: string | null;
|
29
|
+
loading?: {
|
30
|
+
firstPageSize?: number | null;
|
31
|
+
pageSize?: number | null;
|
32
|
+
};
|
33
|
+
order?: [any, string][];
|
34
|
+
referencePathsToExpand?: string[];
|
35
|
+
restCollectionUrl?: string | null;
|
36
|
+
}
|
37
|
+
|
38
|
+
export declare interface ConcreteRestResourceStoreOptionsInput {
|
39
|
+
referencePathsToExpand?: string[];
|
40
|
+
resourceId?: ResourceId;
|
41
|
+
resourceUrl?: string;
|
42
|
+
}
|
43
|
+
|
44
|
+
export declare function initRestClient(config: RestClientConfigInput): void;
|
45
|
+
|
46
|
+
export declare interface LoadResourcesParams {
|
47
|
+
firstPageSize?: number;
|
48
|
+
pageSize?: number;
|
49
|
+
}
|
50
|
+
|
51
|
+
export declare interface MakeCustomApiRequestParams {
|
52
|
+
method?: Method;
|
53
|
+
subpath?: string;
|
54
|
+
url?: string;
|
55
|
+
data?: any;
|
56
|
+
}
|
57
|
+
|
58
|
+
/** A resource from a REST collection. */
|
59
|
+
export declare type Resource = object;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* A primary key value identifying a resource within its collection.
|
63
|
+
*
|
64
|
+
* Every resource must have an ID, which is currently assumed to be stored in its _id property.
|
65
|
+
*/
|
66
|
+
export declare type ResourceId<T = string | number> = T;
|
67
|
+
|
68
|
+
/** A subcollection belonging to each resource of a certain type. */
|
69
|
+
export declare interface ResourceSubcollection {
|
70
|
+
/** The subcollection name, which is used in constructing its path. */
|
71
|
+
name: string;
|
72
|
+
/** The resource type of subcollection members. */
|
73
|
+
type: ResourceType;
|
74
|
+
}
|
75
|
+
|
76
|
+
/** A REST resource type, i.e. a description of items in one REST collection. */
|
77
|
+
export declare interface ResourceType {
|
78
|
+
/** The REST collection name, which is used in constructing its path. */
|
79
|
+
collectionName: string;
|
80
|
+
/** The property path (in dot notation) for each resource's primary key. */
|
81
|
+
idProperty?: string;
|
82
|
+
/** Subcollections of each resource. */
|
83
|
+
subcollections?: ResourceSubcollection[];
|
84
|
+
/** Custom data attached by the client. */
|
85
|
+
custom?: {
|
86
|
+
[key: string]: any;
|
87
|
+
};
|
88
|
+
}
|
89
|
+
|
90
|
+
export declare const restClient: {
|
91
|
+
config: RestClientConfig;
|
92
|
+
};
|
93
|
+
|
94
|
+
declare interface RestClientConfig extends RestClientConfigInput {
|
95
|
+
apiBaseUrl: string;
|
96
|
+
useVueLogger: boolean;
|
97
|
+
}
|
98
|
+
|
99
|
+
declare interface RestClientConfigInput {
|
100
|
+
apiBaseUrl?: string;
|
101
|
+
useVueLogger?: boolean;
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* A REST collection.
|
106
|
+
*
|
107
|
+
* This represents a collection of resources (records) fetched from a REST API. Most commonly, it represents all the
|
108
|
+
* resources from one collection endpoint of the REST API; but filters can be added when using a REST API that supports
|
109
|
+
* them.
|
110
|
+
*/
|
111
|
+
export declare interface RestCollection<T extends Resource = Resource> {
|
112
|
+
/**
|
113
|
+
* The REST collection's unique ID, which is used as the ID of its Pinia store.
|
114
|
+
*
|
115
|
+
* If you want to share the store with another component, you can pass this ID when creating the second component's
|
116
|
+
* {@link RestCollection}.
|
117
|
+
*/
|
118
|
+
collectionId: Ref<string | null>;
|
119
|
+
/** The draft batch ID, if one was passed in {@link RestCollectionOptions.draftBatchId}. */
|
120
|
+
draftBatchId: Ref<string | undefined>;
|
121
|
+
/** A flag indicating whether accessing the local collection will fetch data from the remote collection. */
|
122
|
+
enabled: Ref<boolean>;
|
123
|
+
/**
|
124
|
+
* The resource type for this collection.
|
125
|
+
*
|
126
|
+
* To allow for asynchronous loading of resource types, this may be undefined.
|
127
|
+
*/
|
128
|
+
resourceType: Ref<ResourceType | undefined>;
|
129
|
+
/** A status indicating whether resources have been loaded yet from the REST API. */
|
130
|
+
status: Ref<RestCollectionStatus>;
|
131
|
+
batchSaveAttempted: Ref<boolean>;
|
132
|
+
listNavigators: {
|
133
|
+
[name: string]: any;
|
134
|
+
};
|
135
|
+
/**
|
136
|
+
* An array of resources that have failed validation. The client must manage this list by calling
|
137
|
+
* {@link setInvalidResourceIds}
|
138
|
+
**/
|
139
|
+
invalidResources: Ref<T[]>;
|
140
|
+
/** The array of resources that have been loaded from the REST API into the local collection. */
|
141
|
+
resources: Ref<T[]>;
|
142
|
+
/** Transient data that a client has associated with the resources via {@link setTransientDataForResources}. */
|
143
|
+
transientData: Ref<any[]>;
|
144
|
+
/** Resources in the current detail view, a sublist of {@link resources}. */
|
145
|
+
detailSelection: Ref<T[]>;
|
146
|
+
/** A flag indicating whether the detail selection is currently being edited or only displayed. */
|
147
|
+
editingDetailSelection: Ref<boolean>;
|
148
|
+
/** The current selection, a sublist of {@link resources}. */
|
149
|
+
selection: Ref<T[]>;
|
150
|
+
/**
|
151
|
+
* Apply new configuration options.
|
152
|
+
*
|
153
|
+
* The result is much like creating a new RestCollection, except that the client can continue using the same
|
154
|
+
* properties.
|
155
|
+
*
|
156
|
+
* @param options New options to apply.
|
157
|
+
*/
|
158
|
+
reconfigureCollection: (options: RestCollectionOptions) => void;
|
159
|
+
setEditingDetailSelection: (editingDetailSelection: boolean) => void;
|
160
|
+
setEnabled: (enabled: boolean) => void;
|
161
|
+
/**
|
162
|
+
* Set filter consisting of a list of resource IDs to fetch from the collection.
|
163
|
+
*
|
164
|
+
* This relies on a filtering request format that is not a part of the informal REST standard, so use of this method
|
165
|
+
* should be limited to APIs that adhere to our extended REST standard, i.e. TODO.
|
166
|
+
*
|
167
|
+
* If the previous state was anything other than NotLoaded, the collection will be immediately refreshed as if the
|
168
|
+
* client had called {@link loadResources}. Calls made with await will return once the first page of results have
|
169
|
+
* loaded or failed (just as when you call {@link loadResources} with await).
|
170
|
+
*
|
171
|
+
* @param filterResourceIds The list if resource IDs to fetch from the REST collection.
|
172
|
+
* @return A promise that resolves when the first page of resources is loaded, or immediately if the collection does
|
173
|
+
* not need to be reloaded.
|
174
|
+
*/
|
175
|
+
setFilterResourceIds: (filterResourceIds: ResourceId[]) => Promise<void>;
|
176
|
+
/**
|
177
|
+
* Apply a new filter query.
|
178
|
+
*
|
179
|
+
* Since filter queries are not a part of the informal REST standard, use of this method should be limited to APIs
|
180
|
+
* that adhere to our extended REST standard, i.e. TODO.
|
181
|
+
*
|
182
|
+
* If the previous state was anything other than NotLoaded, the collection will be immediately refreshed as if the
|
183
|
+
* client had called {@link loadResources}. Calls made with await will return once the first page of results have
|
184
|
+
* loaded or failed (just as when you call {@link loadResources} with await).
|
185
|
+
*
|
186
|
+
* @param query The query for filtering the REST collection. This will be sent to the REST API as a query parameter.
|
187
|
+
*/
|
188
|
+
setQuery: (query: any | null | ((resourceType: ResourceType) => any | null)) => Promise<void>;
|
189
|
+
/**
|
190
|
+
* Ensure that a Pinia store has been created for this REST collection.
|
191
|
+
*
|
192
|
+
* This does not normally need to be called, because it will happen automatically when the {@link RestCollection} is
|
193
|
+
* created and when {@link collectionId}, {@link resourceType}, or options change.
|
194
|
+
*
|
195
|
+
* @return true if the store has been created or replaced. (Note that false does not indicate that the store does not
|
196
|
+
* exist.)
|
197
|
+
*/
|
198
|
+
ensureStore: () => boolean;
|
199
|
+
setBatchSaveAttempted: (batchSaveAttempted: boolean) => void;
|
200
|
+
/** Return the {@link RestCollection} to the NotLoaded state, where no resources have been fetched yet. */
|
201
|
+
clear: () => void;
|
202
|
+
/**
|
203
|
+
* Fetch the collection from the REST API, if this has not happened yet.
|
204
|
+
*
|
205
|
+
* A client that observes changes to the reactive property {@link resources} should never need to call this.
|
206
|
+
*
|
207
|
+
* @return A promise that resolves when the first page of results have loaded or loading has failed.
|
208
|
+
*/
|
209
|
+
ensureCollectionLoaded: () => Promise<void>;
|
210
|
+
/**
|
211
|
+
* Fetch the collection from the REST API.
|
212
|
+
*
|
213
|
+
* A client that observes changes to the reactive property {@link resources} should never need to call this.
|
214
|
+
*
|
215
|
+
* If you call this with await, the call will return once the first page of results have loaded or failed.
|
216
|
+
*
|
217
|
+
* @param payload Parameters governing page size.
|
218
|
+
* @return A promise that resolves when the first page of results have loaded or loading has failed.
|
219
|
+
*/
|
220
|
+
loadResources: (params: LoadResourcesParams) => Promise<void>;
|
221
|
+
/**
|
222
|
+
* Start editing a new resource, whose properties are all undefined except for any passed in the parameter.
|
223
|
+
*
|
224
|
+
* @param resourceDefaults An object containing initial property values for the new resource.
|
225
|
+
*/
|
226
|
+
addResource: (resourceDefaults?: T) => void;
|
227
|
+
checkForDeletedResource: (resourceId: ResourceId) => Promise<boolean>;
|
228
|
+
recordDeletion: (resourceId: ResourceId) => void;
|
229
|
+
recordInsertion: (resource: T, { insertAtBeginning, transientData }?: {
|
230
|
+
insertAtBeginning?: boolean;
|
231
|
+
transientData?: any;
|
232
|
+
}) => void;
|
233
|
+
recordUpdate: (resource: T) => void;
|
234
|
+
/**
|
235
|
+
* Refresh one resource by fetching it again from the REST API.
|
236
|
+
*
|
237
|
+
* If you call this with await, it will return once the API call has completed.
|
238
|
+
*
|
239
|
+
* @param resourceId The ID of the resource to refresh.
|
240
|
+
*/
|
241
|
+
refreshResource: (resourceId: ResourceId) => Promise<T | null | undefined>;
|
242
|
+
/**
|
243
|
+
* Delete one resource.
|
244
|
+
*
|
245
|
+
* If you call this with await, it will return once the API call has completed.
|
246
|
+
*
|
247
|
+
* @param resourceId The ID of the resource to delete.
|
248
|
+
*/
|
249
|
+
deleteResource: (resourceId: ResourceId) => Promise<void>;
|
250
|
+
/**
|
251
|
+
* Save one resource (new or updated).
|
252
|
+
*
|
253
|
+
* The resource will be updated if it has a resource ID, created if not.
|
254
|
+
*
|
255
|
+
* If you call this with await, it will return once the API call has completed, and if the APi call succeeded, it will
|
256
|
+
* return the newly saved item.
|
257
|
+
*
|
258
|
+
* @param resource The resource to create or update.
|
259
|
+
*/
|
260
|
+
saveResource: (resource: T) => Promise<T | null | undefined>;
|
261
|
+
/**
|
262
|
+
* Save multiple resources (new or updated).
|
263
|
+
*
|
264
|
+
* Each resource will be updated if it has a resource ID, created if not.
|
265
|
+
*
|
266
|
+
* If you call this with await, it will return once the API call has completed, and if the APi call succeeded, it will
|
267
|
+
* return the newly saved item.
|
268
|
+
*
|
269
|
+
* @param params TODO
|
270
|
+
*/
|
271
|
+
saveResources: (resources: T[]) => Promise<T[] | undefined>;
|
272
|
+
/**
|
273
|
+
* Record which resources have failed validation.
|
274
|
+
*
|
275
|
+
* The REST collection does not interact directly with any validation code. The ability to record which resources
|
276
|
+
* failed validation is purely a convenience for clients that want to store this information. To store more complex
|
277
|
+
* information about validation, consider setting transient data associated with resources.
|
278
|
+
*
|
279
|
+
* @param resourceIds The IDs of all resources that failed validation.
|
280
|
+
*/
|
281
|
+
setInvalidResourceIds: (resourceIds: ResourceId[]) => void;
|
282
|
+
/** Clear all transient data associated with resources. */
|
283
|
+
clearTransientData: () => void;
|
284
|
+
/**
|
285
|
+
* Associate transient data with REST resources that have been fetched from the API.
|
286
|
+
*
|
287
|
+
* @param params Parameters, including transient data for zero or more resources, keyed by resource ID.
|
288
|
+
*/
|
289
|
+
setTransientDataForResources: (params: SetTransientDataParams) => void;
|
290
|
+
clearSelection: () => void;
|
291
|
+
deselectResources: (resourceIds: ResourceId[]) => void;
|
292
|
+
selectResources: (resourceIds: ResourceId[], options?: SelectResourcesOptions) => void;
|
293
|
+
hideDetail: () => void;
|
294
|
+
deregisterEditor: (editor: any) => void;
|
295
|
+
registerEditor: (editor: any) => void;
|
296
|
+
deregisterListNavigator: ({ name, listNavigator }: {
|
297
|
+
name: string;
|
298
|
+
listNavigator: any;
|
299
|
+
}) => void;
|
300
|
+
registerListNavigator: ({ name, listNavigator }: {
|
301
|
+
name: string;
|
302
|
+
listNavigator: any;
|
303
|
+
}) => void;
|
304
|
+
onItemsStoreReady: (callback: RestCollectionStoreReadyCallback) => void;
|
305
|
+
}
|
306
|
+
|
307
|
+
/** Options that define a REST collection. */
|
308
|
+
export declare interface RestCollectionOptions {
|
309
|
+
/**
|
310
|
+
* The REST collection's unique identifier, which will be used as the ID of its Pinia store.
|
311
|
+
*
|
312
|
+
* This is normally generated, and the generated ID may be accessed using the collection's {@link collectionId}
|
313
|
+
* property.
|
314
|
+
*
|
315
|
+
* There are two circumstances where you may want to specify a collection ID:
|
316
|
+
* 1. You have already created a collection and want to give another Vue component access to it. In this case, pass
|
317
|
+
* the value of the collection's {@link collectionId} property in the options to the second component's
|
318
|
+
* {@link useRestCollection} call.
|
319
|
+
* 2. You want to assign a canonical ID to the collection, so that components can call {@link useRestCollection} to
|
320
|
+
* create it or to access it if it already exists. In this case, you can assign the ID manually, but you must ensure
|
321
|
+
* that it does not conflict with any other Pinia store IDs used in the Vue application.
|
322
|
+
*
|
323
|
+
* - If not specified, an unique ID will be generated.
|
324
|
+
* - If specified, the REST collection will check whether a Pinia store with this ID already exists.
|
325
|
+
* - If one exists, that store will be used, and other options will be ignored. This is a way to have multiple
|
326
|
+
* components' {@link RestCollection}s share a single data store.
|
327
|
+
* - If a Pinia store does not exist, then when creating a new collection, the ID will be used instead of generating
|
328
|
+
* a new unique ID.
|
329
|
+
*/
|
330
|
+
collectionId?: string;
|
331
|
+
draftBatchId?: string;
|
332
|
+
enabled?: boolean;
|
333
|
+
/** The resource type. */
|
334
|
+
resourceType?: Ref<ResourceType | undefined> | ResourceType;
|
335
|
+
/** Options that govern the behavior of the REST collections's data store module. */
|
336
|
+
options?: RestCollectionStoreOptionsInput;
|
337
|
+
}
|
338
|
+
|
339
|
+
export declare type RestCollectionOrder = any;
|
340
|
+
|
341
|
+
export declare type RestCollectionQuery = any;
|
342
|
+
|
343
|
+
declare type RestCollectionStatus = 'Uninitialized' | 'NotLoaded' | 'Loading' | 'LoadingMore' | 'Loaded' | 'Failed';
|
344
|
+
|
345
|
+
export declare interface RestCollectionStoreOptionsInput {
|
346
|
+
detail?: {
|
347
|
+
allowMultiple?: boolean;
|
348
|
+
autoEdit?: boolean;
|
349
|
+
autoFromMultipleSelection?: boolean;
|
350
|
+
autoFromSingleInsertion?: boolean;
|
351
|
+
autoFromSingleSelection?: boolean;
|
352
|
+
constrainToSelection?: boolean;
|
353
|
+
};
|
354
|
+
filter?: {
|
355
|
+
namedFilter?: string | null;
|
356
|
+
query?: any | null | ((resourceType: ResourceType) => any | null);
|
357
|
+
resourceIds?: ResourceId[] | null;
|
358
|
+
};
|
359
|
+
limit?: number | null;
|
360
|
+
limitTransientDataToLocalCollection?: boolean;
|
361
|
+
loadId?: string | null;
|
362
|
+
loading?: {
|
363
|
+
firstPageSize?: number | null;
|
364
|
+
pageSize?: number | null;
|
365
|
+
};
|
366
|
+
order?: [any, string][];
|
367
|
+
referencePathsToExpand?: string[] | ((resourceType: ResourceType) => string[]);
|
368
|
+
restCollectionUrl?: string | null;
|
369
|
+
}
|
370
|
+
|
371
|
+
export declare type RestCollectionStoreReadyCallback = (() => void) | (() => Promise<void>);
|
372
|
+
|
373
|
+
/**
|
374
|
+
* A REST resource client.
|
375
|
+
*
|
376
|
+
* This represents one resource fetched from a REST API. More commonly, clients will use a {@link RestCollection}, but
|
377
|
+
* {@link RestResourceClient} is sometimes useful for consuming individual responses from APIs that are not really
|
378
|
+
* RESTful.
|
379
|
+
*/
|
380
|
+
export declare interface RestResourceClient<T extends Resource = Resource> {
|
381
|
+
/**
|
382
|
+
* The REST resource client's unique identifier, which is the ID of its Pinia store.
|
383
|
+
*
|
384
|
+
* If you want to share the store with another component, you can pass this ID when creating the second component's
|
385
|
+
* {@link RestResourceClient}.
|
386
|
+
*/
|
387
|
+
resourceClientId: Ref<string | null>;
|
388
|
+
/** The draft batch ID, if one was passed in {@link RestCollectionOptions.draftBatchId}. */
|
389
|
+
draftBatchId: Ref<string | undefined>;
|
390
|
+
/** A flag indicating whether accessing the local collection will fetch data from the remote collection. */
|
391
|
+
enabled: Ref<boolean>;
|
392
|
+
/**
|
393
|
+
* The resource type for this collection.
|
394
|
+
*
|
395
|
+
* To allow for asynchronous loading of resource types, this may be undefined.
|
396
|
+
*/
|
397
|
+
resourceType: Ref<ResourceType | undefined>;
|
398
|
+
/** A status indicating whether resources have been loaded yet from the REST API. */
|
399
|
+
status: Ref<RestResourceStatus>;
|
400
|
+
/** The local version of the resource loaded from the REST API. */
|
401
|
+
resource: Ref<T>;
|
402
|
+
/** The ID of the REST resource. */
|
403
|
+
resourceId: Ref<ResourceId | null>;
|
404
|
+
/** The URL of the REST resource. */
|
405
|
+
resourceUrl: Ref<string | null>;
|
406
|
+
/**
|
407
|
+
* Apply new configuration options.
|
408
|
+
*
|
409
|
+
* The result is much like creating a new RestCollection, except that the client can continue using the same
|
410
|
+
* properties.
|
411
|
+
*
|
412
|
+
* @param options New options to apply.
|
413
|
+
*/
|
414
|
+
reconfigureClient: (options: RestResourceOptions) => void;
|
415
|
+
setEnabled: (enabled: boolean) => void;
|
416
|
+
setResourceId: (resourceId: ResourceId) => Promise<void>;
|
417
|
+
setResourceUrl: (resourceUrl: string) => Promise<void>;
|
418
|
+
/**
|
419
|
+
* Ensure that a Pinia store has been created for this REST resource.
|
420
|
+
*
|
421
|
+
* This does not normally need to be called, because it will happen automatically when the {@link RestResourceClient}
|
422
|
+
* is created and when {@link resourceClientId}, {@link resourceType}, or options change.
|
423
|
+
*
|
424
|
+
* @return true if the store has been created or replaced. (Note that false does not indicate that the store does not
|
425
|
+
* exist.)
|
426
|
+
*/
|
427
|
+
ensureStore: () => boolean;
|
428
|
+
/** Return the {@link RestResourceClient} to the NotLoaded state, where no resource has been fetched yet. */
|
429
|
+
clear: () => void;
|
430
|
+
/**
|
431
|
+
* Fetch the resource from the REST API, if this has not happened yet.
|
432
|
+
*
|
433
|
+
* A client that observes changes to the reactive property {@link resource} should never need to call this.
|
434
|
+
*
|
435
|
+
* @return A promise that returns when the resource has loaded or loading has failed.
|
436
|
+
*/
|
437
|
+
ensureResourceLoaded: () => Promise<void>;
|
438
|
+
/**
|
439
|
+
* Load the resource from the REST API.
|
440
|
+
*
|
441
|
+
* A client that observes changes to the reactive property {@link resource} should never need to call this.
|
442
|
+
*
|
443
|
+
* @return A promise that returns when the resource has loaded or loading has failed.
|
444
|
+
*/
|
445
|
+
loadResource: () => Promise<void>;
|
446
|
+
/**
|
447
|
+
* Start editing a new resource, whose properties are all undefined except for any passed in the parameter.
|
448
|
+
*
|
449
|
+
* @param resourceDefaults An object containing initial property values for the new resource.
|
450
|
+
*/
|
451
|
+
checkForDeletedResource: () => Promise<boolean>;
|
452
|
+
recordDeletion: () => void;
|
453
|
+
recordInsertion: (resource: T) => void;
|
454
|
+
recordUpdate: (resource: T) => void;
|
455
|
+
refreshResource: () => Promise<T | null | undefined>;
|
456
|
+
deleteResource: () => Promise<void>;
|
457
|
+
saveResource: (resource: T) => Promise<T | null | undefined>;
|
458
|
+
makeCustomApiRequest: (params: MakeCustomApiRequestParams) => Promise<any>;
|
459
|
+
}
|
460
|
+
|
461
|
+
/** Options that define a REST resource client. */
|
462
|
+
export declare interface RestResourceOptions {
|
463
|
+
/**
|
464
|
+
* The REST resource client's unique identifier, which will be used as the ID of its Pinia store.
|
465
|
+
*
|
466
|
+
* This is normally generated, and the generated ID may be accessed using the resource client's
|
467
|
+
* {@link resourceClientId} property.
|
468
|
+
*
|
469
|
+
* There are two circumstances where you may want to specify a resource client ID:
|
470
|
+
* 1. You have already created a resource client and want to give another Vue component access to it. In this case,
|
471
|
+
* pass the value of the collection's {@link resourceClientId} property in the options to the second component's
|
472
|
+
* {@link useRestResource} call.
|
473
|
+
* 2. You want to assign a canonical ID to the client, so that components can call {@link useRestResrouce} to create
|
474
|
+
* it or to access it if it already exists. In this case, you can assign the ID manually, but you must ensure that
|
475
|
+
* it does not conflict with any other Pinia store IDs used in the Vue application.
|
476
|
+
*
|
477
|
+
* - If not specified, an unique ID will be generated.
|
478
|
+
* - If specified, the REST resource client will check whether a Pinia store with this ID already exists.
|
479
|
+
* - If one exists, that store will be used, and other options will be ignored. This is a way to have multiple
|
480
|
+
* components' {@link RestResource}s share a single data store.
|
481
|
+
* - If a Pinia store does not exist, then when creating a new resource client, the ID will be used instead of
|
482
|
+
* generating a new unique ID.
|
483
|
+
*/
|
484
|
+
resourceClientId?: string;
|
485
|
+
draftBatchId?: string;
|
486
|
+
enabled?: boolean;
|
487
|
+
/** The resource type. */
|
488
|
+
resourceType?: Ref<ResourceType | undefined> | ResourceType;
|
489
|
+
/** Options that govern the behavior of the REST resource's data store module. */
|
490
|
+
options?: RestResourceStoreOptionsInput;
|
491
|
+
}
|
492
|
+
|
493
|
+
declare type RestResourceStatus = 'Uninitialized' | 'NotLoaded' | 'Loading' | 'Loaded' | 'Failed';
|
494
|
+
|
495
|
+
export declare interface RestResourceStoreOptionsInput {
|
496
|
+
referencePathsToExpand?: string[] | ((resourceType: ResourceType) => string[]);
|
497
|
+
resourceId?: ResourceId;
|
498
|
+
resourceUrl?: string;
|
499
|
+
}
|
500
|
+
|
501
|
+
export declare interface SelectResourcesOptions {
|
502
|
+
addToSelection?: boolean;
|
503
|
+
edit?: boolean;
|
504
|
+
}
|
505
|
+
|
506
|
+
/** Parameters to {@link RestCollection.setTransientDataForResources} */
|
507
|
+
export declare interface SetTransientDataParams {
|
508
|
+
/** Transient data keyed by resource ID. */
|
509
|
+
transientData: {
|
510
|
+
/** Transient data for one resource. */
|
511
|
+
[resourceId: ResourceId]: object;
|
512
|
+
};
|
513
|
+
/**
|
514
|
+
* Flag indicating whether new transient data should replace existing transient data for each resource or be merged
|
515
|
+
* with it.
|
516
|
+
*/
|
517
|
+
merge?: boolean;
|
518
|
+
}
|
519
|
+
|
520
|
+
export declare const useRestCollection: <T extends object = object>(params?: RestCollectionOptions) => RestCollection<T>;
|
521
|
+
|
522
|
+
export declare const useRestResource: <T extends object = object>(params?: RestResourceOptions) => RestResourceClient<T>;
|
523
|
+
|
524
|
+
export { }
|
package/dist/src/config.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,gBAAiB,SAAQ,qBAAqB;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,0BAA0B;;;CAGtC,CAAA"}
|
package/dist/src/errors.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAe,SAAQ,KAAK;IACvC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,UAAU,EAAE,GAAG,CAAA;gBAEH,OAAO,EAAE,GAAG,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,EAAE,UAAU,GAAE,GAAe;CAK/F"}
|
package/dist/src/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA6B,gBAAgB,EAAE,qBAAqB,EAAC,MAAM,aAAa,CAAA;AAE/F,eAAO,MAAM,UAAU,EAAE;IACvB,MAAM,EAAE,gBAAgB,CAAA;CAGzB,CAAA;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,qBAAqB,QAE3D;AAED,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,sBAAsB,CAAA;AACjE,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,oBAAoB,CAAA;AAC7D,cAAc,oBAAoB,CAAA;AAClC,cAAc,gCAAgC,CAAA"}
|
package/dist/src/queries.d.ts
CHANGED
@@ -93,3 +93,4 @@ export declare function queryClauseIsSimple(clause: QueryClause): clause is Quer
|
|
93
93
|
export declare function queryClauseIsAnd(clause: QueryClause): clause is QueryAndClause;
|
94
94
|
export declare function queryClauseIsOr(clause: QueryClause): clause is QueryOrClause;
|
95
95
|
export declare function queryClauseIsNot(clause: QueryClause): clause is QueryNotClause;
|
96
|
+
//# sourceMappingURL=queries.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/queries.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG,MAAM,CAAA;AACpC,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;AACnD,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,iBAAiB,CAAA;AAE9D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAChC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAA;AAEnC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AAC5D,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAA;AAClD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAE9B,MAAM,WAAW,uBAAuB;IAAE,QAAQ,EAAE,CAAC,uBAAuB,GAAG,mBAAmB,CAAC,EAAE,CAAA;CAAC;AACtG,MAAM,WAAW,uBAAuB;IAAE,QAAQ,EAAE,aAAa,CAAA;CAAC;AAClE,MAAM,WAAW,2BAA2B;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAC;AACxE,MAAM,WAAW,uBAAuB;IAAE,IAAI,EAAE,0BAA0B,CAAA;CAAC;AAC3E,MAAM,WAAW,uBAAuB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,CAAC,uBAAuB,GAAG,mBAAmB,CAAC,EAAE,CAAA;CA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AAqB;IACpC,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAA;IACZ,kDAAkD;IAClD,IAAI,EAAE,YAAY,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,IAAI,CAAC,CAAA;AAE/C,yCAAyC;AACzC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAA;AAE7B,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAA;AAErC,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAA"}
|
@@ -111,7 +111,7 @@ export type RestCollectionStoreReadyCallback = (() => void) | (() => Promise<voi
|
|
111
111
|
* resources from one collection endpoint of the REST API; but filters can be added when using a REST API that supports
|
112
112
|
* them.
|
113
113
|
*/
|
114
|
-
export interface RestCollection {
|
114
|
+
export interface RestCollection<T extends Resource = Resource> {
|
115
115
|
/**
|
116
116
|
* The REST collection's unique ID, which is used as the ID of its Pinia store.
|
117
117
|
*
|
@@ -139,17 +139,17 @@ export interface RestCollection {
|
|
139
139
|
* An array of resources that have failed validation. The client must manage this list by calling
|
140
140
|
* {@link setInvalidResourceIds}
|
141
141
|
**/
|
142
|
-
invalidResources: Ref<
|
142
|
+
invalidResources: Ref<T[]>;
|
143
143
|
/** The array of resources that have been loaded from the REST API into the local collection. */
|
144
|
-
resources: Ref<
|
144
|
+
resources: Ref<T[]>;
|
145
145
|
/** Transient data that a client has associated with the resources via {@link setTransientDataForResources}. */
|
146
146
|
transientData: Ref<any[]>;
|
147
147
|
/** Resources in the current detail view, a sublist of {@link resources}. */
|
148
|
-
detailSelection: Ref<
|
148
|
+
detailSelection: Ref<T[]>;
|
149
149
|
/** A flag indicating whether the detail selection is currently being edited or only displayed. */
|
150
150
|
editingDetailSelection: Ref<boolean>;
|
151
151
|
/** The current selection, a sublist of {@link resources}. */
|
152
|
-
selection: Ref<
|
152
|
+
selection: Ref<T[]>;
|
153
153
|
/**
|
154
154
|
* Apply new configuration options.
|
155
155
|
*
|
@@ -226,14 +226,14 @@ export interface RestCollection {
|
|
226
226
|
*
|
227
227
|
* @param resourceDefaults An object containing initial property values for the new resource.
|
228
228
|
*/
|
229
|
-
addResource: (resourceDefaults?:
|
229
|
+
addResource: (resourceDefaults?: T) => void;
|
230
230
|
checkForDeletedResource: (resourceId: ResourceId) => Promise<boolean>;
|
231
231
|
recordDeletion: (resourceId: ResourceId) => void;
|
232
|
-
recordInsertion: (resource:
|
232
|
+
recordInsertion: (resource: T, { insertAtBeginning, transientData }?: {
|
233
233
|
insertAtBeginning?: boolean;
|
234
234
|
transientData?: any;
|
235
235
|
}) => void;
|
236
|
-
recordUpdate: (resource:
|
236
|
+
recordUpdate: (resource: T) => void;
|
237
237
|
/**
|
238
238
|
* Refresh one resource by fetching it again from the REST API.
|
239
239
|
*
|
@@ -241,7 +241,7 @@ export interface RestCollection {
|
|
241
241
|
*
|
242
242
|
* @param resourceId The ID of the resource to refresh.
|
243
243
|
*/
|
244
|
-
refreshResource: (resourceId: ResourceId) => Promise<
|
244
|
+
refreshResource: (resourceId: ResourceId) => Promise<T | null | undefined>;
|
245
245
|
/**
|
246
246
|
* Delete one resource.
|
247
247
|
*
|
@@ -260,7 +260,7 @@ export interface RestCollection {
|
|
260
260
|
*
|
261
261
|
* @param resource The resource to create or update.
|
262
262
|
*/
|
263
|
-
saveResource: (resource:
|
263
|
+
saveResource: (resource: T) => Promise<T | null | undefined>;
|
264
264
|
/**
|
265
265
|
* Save multiple resources (new or updated).
|
266
266
|
*
|
@@ -271,7 +271,7 @@ export interface RestCollection {
|
|
271
271
|
*
|
272
272
|
* @param params TODO
|
273
273
|
*/
|
274
|
-
saveResources: (resources:
|
274
|
+
saveResources: (resources: T[]) => Promise<T[] | undefined>;
|
275
275
|
/**
|
276
276
|
* Record which resources have failed validation.
|
277
277
|
*
|
@@ -306,6 +306,7 @@ export interface RestCollection {
|
|
306
306
|
}) => void;
|
307
307
|
onItemsStoreReady: (callback: RestCollectionStoreReadyCallback) => void;
|
308
308
|
}
|
309
|
-
declare const _default: (params?: RestCollectionOptions) => RestCollection
|
309
|
+
declare const _default: <T extends object = object>(params?: RestCollectionOptions) => RestCollection<T>;
|
310
310
|
export default _default;
|
311
311
|
export declare const clearAllRestCollections: () => void;
|
312
|
+
//# sourceMappingURL=rest-collection.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rest-collection.d.ts","sourceRoot":"","sources":["../../src/rest-collection.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,GAAG,EAAe,MAAM,KAAK,CAAA;AAI9D,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,gCAAgC,CAAA;AACjF,OAAkB,EAEhB,oBAAoB,EAIrB,MAAM,mCAAmC,CAAA;AAE1C,6CAA6C;AAC7C,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yBAAyB;IACzB,YAAY,CAAC,EAAE,GAAG,CAAC,YAAY,GAAG,SAAS,CAAC,GAAG,YAAY,CAAA;IAC3D,oFAAoF;IACpF,OAAO,CAAC,EAAE,+BAA+B,CAAA;CAC1C;AAED,MAAM,WAAW,uCAAuC;IACtD,MAAM,CAAC,EAAE;QACP,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,yBAAyB,CAAC,EAAE,OAAO,CAAA;QACnC,uBAAuB,CAAC,EAAE,OAAO,CAAA;QACjC,uBAAuB,CAAC,EAAE,OAAO,CAAA;QACjC,oBAAoB,CAAC,EAAE,OAAO,CAAA;KAC/B,CAAC;IACF,MAAM,CAAC,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC3B,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,C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AAA;IAM1D,0DAA0D;IAC1D,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAE9B;;;;OAIG;IACH,4BAA4B,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAMtE,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,iBAAiB,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACtD,eAAe,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAMtF,UAAU,EAAE,MAAM,IAAI,CAAA;IAMtB,gBAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAA;IACvC,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAA;IAMrC,uBAAuB,EAAE,CAAC,EAAC,IAAI,EAAE,aAAa,EAAC,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,GAAG,CAAA;KAAC,KAAK,IAAI,CAAA;IAC5F,qBAAqB,EAAE,CAAC,EAAC,IAAI,EAAE,aAAa,EAAC,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,GAAG,CAAA;KAAC,KAAK,IAAI,CAAA;IAM1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,gCAAgC,KAAK,IAAI,CAAA;CACxE;6DAEsD,qBAAqB;AAA5E,wBAucC;AAED,eAAO,MAAM,uBAAuB,YAA2C,CAAA"}
|
@@ -56,7 +56,7 @@ export interface MakeCustomApiRequestParams {
|
|
56
56
|
* {@link RestResourceClient} is sometimes useful for consuming individual responses from APIs that are not really
|
57
57
|
* RESTful.
|
58
58
|
*/
|
59
|
-
export interface RestResourceClient {
|
59
|
+
export interface RestResourceClient<T extends Resource = Resource> {
|
60
60
|
/**
|
61
61
|
* The REST resource client's unique identifier, which is the ID of its Pinia store.
|
62
62
|
*
|
@@ -77,7 +77,7 @@ export interface RestResourceClient {
|
|
77
77
|
/** A status indicating whether resources have been loaded yet from the REST API. */
|
78
78
|
status: Ref<RestResourceStatus>;
|
79
79
|
/** The local version of the resource loaded from the REST API. */
|
80
|
-
resource: Ref<
|
80
|
+
resource: Ref<T>;
|
81
81
|
/** The ID of the REST resource. */
|
82
82
|
resourceId: Ref<ResourceId | null>;
|
83
83
|
/** The URL of the REST resource. */
|
@@ -129,12 +129,13 @@ export interface RestResourceClient {
|
|
129
129
|
*/
|
130
130
|
checkForDeletedResource: () => Promise<boolean>;
|
131
131
|
recordDeletion: () => void;
|
132
|
-
recordInsertion: (resource:
|
133
|
-
recordUpdate: (resource:
|
134
|
-
refreshResource: () => Promise<
|
132
|
+
recordInsertion: (resource: T) => void;
|
133
|
+
recordUpdate: (resource: T) => void;
|
134
|
+
refreshResource: () => Promise<T | null | undefined>;
|
135
135
|
deleteResource: () => Promise<void>;
|
136
|
-
saveResource: (resource:
|
136
|
+
saveResource: (resource: T) => Promise<T | null | undefined>;
|
137
137
|
makeCustomApiRequest: (params: MakeCustomApiRequestParams) => Promise<any>;
|
138
138
|
}
|
139
|
-
declare const _default: (params?: RestResourceOptions) => RestResourceClient
|
139
|
+
declare const _default: <T extends object = object>(params?: RestResourceOptions) => RestResourceClient<T>;
|
140
140
|
export default _default;
|
141
|
+
//# sourceMappingURL=rest-resource.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rest-resource.d.ts","sourceRoot":"","sources":["../../src/rest-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAG5B,OAAO,EAAgB,GAAG,EAAe,MAAM,KAAK,CAAA;AAGpD,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,gCAAgC,CAAA;AACjF,OAAkB,EAEhB,kBAAkB,EAInB,MAAM,iCAAiC,CAAA;AAExC,kDAAkD;AAClD,MAAM,WAAW,mBAAmB;IAClC;;;;;;;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AAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAM5D,oBAAoB,EAAE,CAAC,MAAM,EAAE,0BAA0B,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAC3E;6DAEsD,mBAAmB;AAA1E,wBAoVC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rest-store-registry.d.ts","sourceRoot":"","sources":["../../src/rest-store-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AAEjE,qBAAa,aAAa,CAAC,CAAC,SAAS,mBAAmB,GAAG,iBAAiB;;IAG1E,cAAc;IAMd,YAAY,CAAC,EAAE,EAAE,MAAM;IAOvB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,CAAC;IAIvB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;CAGnC"}
|
@@ -321,7 +321,7 @@ declare const makeStore: (storeId: string, options: RestCollectionStoreOptions)
|
|
321
321
|
* has an ID, an update will be attempted, while otherwise it will be added.
|
322
322
|
* @returns An array of refreshed local resources, one for each remote resource whose save operation succeeded.
|
323
323
|
*/
|
324
|
-
saveResources(resources: Resource[]): Promise<
|
324
|
+
saveResources(resources: Resource[]): Promise<Resource[]>;
|
325
325
|
/** Clear all transient data. */
|
326
326
|
clearTransientData(): void;
|
327
327
|
/**
|
@@ -670,7 +670,7 @@ export declare const storeRegistry: StoreRegistry<import("pinia").Store<string,
|
|
670
670
|
* has an ID, an update will be attempted, while otherwise it will be added.
|
671
671
|
* @returns An array of refreshed local resources, one for each remote resource whose save operation succeeded.
|
672
672
|
*/
|
673
|
-
saveResources(resources: Resource[]): Promise<
|
673
|
+
saveResources(resources: Resource[]): Promise<Resource[]>;
|
674
674
|
/** Clear all transient data. */
|
675
675
|
clearTransientData(): void;
|
676
676
|
/**
|
@@ -773,3 +773,4 @@ export declare const storeRegistry: StoreRegistry<import("pinia").Store<string,
|
|
773
773
|
}): void;
|
774
774
|
}>>;
|
775
775
|
export default makeStore;
|
776
|
+
//# sourceMappingURL=rest-collection-store.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rest-collection-store.d.ts","sourceRoot":"","sources":["../../../src/stores/rest-collection-store.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,uBAAuB,CAAA;AACpF,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAC,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,eAAe,CAAA;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AAsBvD,2FAA2F;AAC3F,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,KAAK,EAAE,GAAG,GAAG,IAAI,CAAA;IACjB,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;CACjC;AAED,0EAA0E;AAC1E,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE;QACN,aAAa,EAAE,OAAO,CAAA;QACtB,QAAQ,EAAE,OAAO,CAAA;QACjB,yBAAyB,EAAE,OAAO,CAAA;QAClC,uBAAuB,EAAE,OAAO,CAAA;QAChC,uBAAuB,EAAE,OAAO,CAAA;QAChC,oBAAoB,EAAE,OAAO,CAAA;KAC9B,CAAC;IACF,MAAM,EAAE,oBAAoB,CAAA;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,mCAAmC,EAAE,OAAO,CAAA;IAC5C,OAAO,EAAE;QACP,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,sBAAsB,CAAC,EAAE,MAAM,E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,IAAI;;+EA4BN,MAAM,GAAG,IAAI;IAO1C,8EAA8E;;oBAxCtE,MAAM;oBACN,UAAU,GAAG,IAAI;qBAChB,MAAM,GAAG,IAAI;kBAChB,QAAQ,GAAG,IAAI;gBACjB,uBAAuB;gCACP,MAAM,EAAE,GAAG,IAAI;;+EAoCR,uBAAuB;;IAgBlD;;;;OAIG;;8BAS6B,UAAU;gCAQR,MAAM;IAYxC;;;;OAIG;;IASH;;;;OAIG;;IAOH;;;;OAIG;;IAwDH;;;;;;;OAOG;;IAqBH;;;;;;OAMG;;IAMH;;;;;;;;;;;;;;;;;OAiBG;8BACuB,QAAQ;IAOlC;;;;;;;;;;;;;;;;;OAiBG;2BACoB,QAAQ;uBAON,QAAQ,QAAQ,GAAG,IAAI,CAAC;IASjD;;;;OAIG;;IAeH;;;;;;;;;;OAUG;2BAC0B,QAAQ,GAAG,QAAQ,QAAQ,GAAG,IAAI,CAAC;iCAoC7B,0BAA0B,GAAG,QAAQ,GAAG,CAAC;GA2Cf,CAAA;AAEnE,eAAe,SAAS,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@vue/shared/dist/shared.d.ts","../node_modules/@vue/reactivity/dist/reactivity.d.ts","../node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../node_modules/csstype/index.d.ts","../node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../node_modules/vue/jsx-runtime/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/source-map-js/source-map.d.ts","../node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../node_modules/vue/jsx.d.ts","../node_modules/vue/dist/vue.d.ts","../__vls_types.d.ts","../src/config.ts","../src/errors.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts","../node_modules/@types/uuid/index.d.ts","../src/queries.ts","../src/rest-collection-resources.ts","../node_modules/axios/index.d.ts","../node_modules/json-stringify-deterministic/lib/index.d.ts","../node_modules/pinia/node_modules/vue-demi/lib/index.d.ts","../node_modules/pinia/dist/pinia.d.ts","../src/rest-resource.ts","../src/stores/rest-resource-store.ts","../src/rest-store-registry.ts","../src/stores/rest-collection-store.ts","../src/rest-collection.ts","../src/index.ts","../src/@types/jsog/index.d.ts","../src/@types/path/index.d.ts","../node_modules/@types/eslint/helpers.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/eslint/index.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts"],"fileInfos":[{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"root":[[58,60],75,76,[81,88]],"options":{"allowImportingTsExtensions":true,"allowJs":false,"allowSyntheticDefaultImports":true,"checkJs":false,"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":1,"module":99,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true},"fileIdsList":[[48,50,51,57,80],[89,90,91],[61,63,64,65,66,67,68,69,70,71,72,73],[61,62,64,65,66,67,68,69,70,71,72,73],[62,63,64,65,66,67,68,69,70,71,72,73],[61,62,63,65,66,67,68,69,70,71,72,73],[61,62,63,64,66,67,68,69,70,71,72,73],[61,62,63,64,65,67,68,69,70,71,72,73],[61,62,63,64,65,66,68,69,70,71,72,73],[61,62,63,64,65,66,67,69,70,71,72,73],[61,62,63,64,65,66,67,68,70,71,72,73],[61,62,63,64,65,66,67,68,69,71,72,73],[61,62,63,64,65,66,67,68,69,70,72,73],[61,62,63,64,65,66,67,68,69,70,71,73],[61,62,63,64,65,66,67,68,69,70,71,72],[93,132],[93,117,132],[132],[93],[93,118,132],[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],[118,132],[46,52,53],[54],[46],[46,47,48,50],[47,48,49,80],[48,79],[57],[53],[50,55,56],[50],[59,60,73,76,81,85],[57,73,74,75,76,84,86],[57,73,74,76,77,82,86],[82,84],[73,74,75,76,77,78,80,83,85,87],[73,74,76,77,78,80,81,83,87]],"referencedMap":[[58,1],[92,2],[62,3],[63,4],[61,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,15],[117,16],[118,17],[93,18],[96,18],[115,16],[116,16],[106,16],[105,19],[103,16],[98,16],[111,16],[109,16],[113,16],[97,16],[110,16],[114,16],[99,16],[100,16],[112,16],[94,16],[101,16],[102,16],[104,16],[108,16],[119,20],[107,16],[95,16],[132,21],[126,20],[128,22],[127,20],[120,20],[121,20],[123,20],[125,20],[129,22],[130,22],[122,22],[124,22],[54,23],[55,24],[47,25],[48,26],[50,27],[80,28],[79,29],[53,30],[57,31],[51,32],[56,32],[86,33],[85,34],[81,35],[83,36],[84,37],[82,38]],"exportedModulesMap":[[58,1],[92,2],[62,3],[63,4],[61,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,15],[117,16],[118,17],[93,18],[96,18],[115,16],[116,16],[106,16],[105,19],[103,16],[98,16],[111,16],[109,16],[113,16],[97,16],[110,16],[114,16],[99,16],[100,16],[112,16],[94,16],[101,16],[102,16],[104,16],[108,16],[119,20],[107,16],[95,16],[132,21],[126,20],[128,22],[127,20],[120,20],[121,20],[123,20],[125,20],[129,22],[130,22],[122,22],[124,22],[54,23],[55,24],[47,25],[48,26],[50,27],[80,28],[79,29],[53,30],[57,31],[51,32],[56,32],[86,33],[85,34],[81,35],[83,36],[84,37],[82,38]],"semanticDiagnosticsPerFile":[58,52,89,92,90,91,62,63,61,64,65,66,67,68,69,70,71,72,73,117,118,93,96,115,116,106,105,103,98,111,109,113,97,110,114,99,100,112,94,101,102,104,108,119,107,95,132,131,126,128,127,120,121,123,125,129,130,122,124,74,54,55,47,48,50,46,77,49,78,80,79,53,44,45,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,1,57,51,56,87,88,59,60,86,75,76,85,81,83,84,82],"emitSignatures":[59,60,75,76,81,82,83,84,85,86]},"version":"5.3.3"}
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@vue/shared/dist/shared.d.ts","../node_modules/@vue/reactivity/dist/reactivity.d.ts","../node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../node_modules/csstype/index.d.ts","../node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../node_modules/vue/jsx-runtime/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/source-map-js/source-map.d.ts","../node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../node_modules/vue/jsx.d.ts","../node_modules/vue/dist/vue.d.ts","../__vls_types.d.ts","../src/config.ts","../src/errors.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts","../node_modules/@types/uuid/index.d.ts","../src/queries.ts","../src/rest-collection-resources.ts","../node_modules/axios/index.d.ts","../node_modules/json-stringify-deterministic/lib/index.d.ts","../node_modules/pinia/node_modules/vue-demi/lib/index.d.ts","../node_modules/pinia/dist/pinia.d.ts","../src/rest-resource.ts","../src/stores/rest-resource-store.ts","../src/rest-store-registry.ts","../src/stores/rest-collection-store.ts","../src/rest-collection.ts","../src/index.ts","../src/@types/jsog/index.d.ts","../src/@types/path/index.d.ts","../node_modules/@types/eslint/helpers.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/eslint/index.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts"],"fileInfos":[{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"root":[[58,60],75,76,[81,88]],"options":{"allowImportingTsExtensions":true,"allowJs":false,"allowSyntheticDefaultImports":true,"checkJs":false,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":1,"module":99,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true},"fileIdsList":[[48,50,51,57,80],[89,90,91],[61,63,64,65,66,67,68,69,70,71,72,73],[61,62,64,65,66,67,68,69,70,71,72,73],[62,63,64,65,66,67,68,69,70,71,72,73],[61,62,63,65,66,67,68,69,70,71,72,73],[61,62,63,64,66,67,68,69,70,71,72,73],[61,62,63,64,65,67,68,69,70,71,72,73],[61,62,63,64,65,66,68,69,70,71,72,73],[61,62,63,64,65,66,67,69,70,71,72,73],[61,62,63,64,65,66,67,68,70,71,72,73],[61,62,63,64,65,66,67,68,69,71,72,73],[61,62,63,64,65,66,67,68,69,70,72,73],[61,62,63,64,65,66,67,68,69,70,71,73],[61,62,63,64,65,66,67,68,69,70,71,72],[93,132],[93,117,132],[132],[93],[93,118,132],[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],[118,132],[46,52,53],[54],[46],[46,47,48,50],[47,48,49,80],[48,79],[57],[53],[50,55,56],[50],[59,60,73,76,81,85],[57,73,74,75,76,84,86],[57,73,74,76,77,82,86],[82,84],[73,74,75,76,77,78,80,83,85,87],[73,74,76,77,78,80,81,83,87]],"referencedMap":[[58,1],[92,2],[62,3],[63,4],[61,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,15],[117,16],[118,17],[93,18],[96,18],[115,16],[116,16],[106,16],[105,19],[103,16],[98,16],[111,16],[109,16],[113,16],[97,16],[110,16],[114,16],[99,16],[100,16],[112,16],[94,16],[101,16],[102,16],[104,16],[108,16],[119,20],[107,16],[95,16],[132,21],[126,20],[128,22],[127,20],[120,20],[121,20],[123,20],[125,20],[129,22],[130,22],[122,22],[124,22],[54,23],[55,24],[47,25],[48,26],[50,27],[80,28],[79,29],[53,30],[57,31],[51,32],[56,32],[86,33],[85,34],[81,35],[83,36],[84,37],[82,38]],"exportedModulesMap":[[58,1],[92,2],[62,3],[63,4],[61,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,15],[117,16],[118,17],[93,18],[96,18],[115,16],[116,16],[106,16],[105,19],[103,16],[98,16],[111,16],[109,16],[113,16],[97,16],[110,16],[114,16],[99,16],[100,16],[112,16],[94,16],[101,16],[102,16],[104,16],[108,16],[119,20],[107,16],[95,16],[132,21],[126,20],[128,22],[127,20],[120,20],[121,20],[123,20],[125,20],[129,22],[130,22],[122,22],[124,22],[54,23],[55,24],[47,25],[48,26],[50,27],[80,28],[79,29],[53,30],[57,31],[51,32],[56,32],[86,33],[85,34],[81,35],[83,36],[84,37],[82,38]],"semanticDiagnosticsPerFile":[58,52,89,92,90,91,62,63,61,64,65,66,67,68,69,70,71,72,73,117,118,93,96,115,116,106,105,103,98,111,109,113,97,110,114,99,100,112,94,101,102,104,108,119,107,95,132,131,126,128,127,120,121,123,125,129,130,122,124,74,54,55,47,48,50,46,77,49,78,80,79,53,44,45,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,1,57,51,56,87,88,59,60,86,75,76,85,81,83,84,82],"emitSignatures":[59,60,75,76,81,82,83,84,85,86]},"version":"5.3.3"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rest-client-vue",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.1.1b1",
|
4
4
|
"author": {
|
5
5
|
"name": "Jeremy Stone",
|
6
6
|
"email": "stoneje@msn.com"
|
@@ -60,6 +60,7 @@
|
|
60
60
|
"path": "^0.12.7",
|
61
61
|
"typescript": "^5.3.3",
|
62
62
|
"vite": "^5.0.7",
|
63
|
+
"vite-plugin-dts": "^3.7.3",
|
63
64
|
"vite-plugin-eslint": "^1.8.1",
|
64
65
|
"vue-tsc": "^1.8.25"
|
65
66
|
},
|