rest-client-vue 1.0.0-a1

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.
@@ -0,0 +1,277 @@
1
+ import { Resource, ResourceId } from '../rest-collection-resources.js';
2
+ import { MakeCustomApiRequestParams } from '../rest-resource.js';
3
+ import { StoreRegistry } from '../rest-store-registry.js';
4
+ /** Options that govern the behavior of a REST resource data store. */
5
+ export interface RestResourceStoreOptions {
6
+ idProperty: string;
7
+ resourceId?: ResourceId;
8
+ restCollectionUrl?: string;
9
+ resourceUrl?: string | null;
10
+ referencePathsToExpand?: string[];
11
+ }
12
+ /** Default options that govern the behavior of a REST resource data store */
13
+ export declare const DEFAULT_REST_RESOURCE_STORE_OPTIONS: RestResourceStoreOptions;
14
+ export type RestResourceStatus = 'Uninitialized' | 'NotLoaded' | 'Loading' | 'Loaded' | 'Failed';
15
+ export type RestResourceStoreStatus = 'NotLoaded' | 'Loading' | 'Loaded' | 'Failed';
16
+ /** A REST collection's state, including settings and contents. */
17
+ export interface RestResourceStoreState {
18
+ idProperty: string;
19
+ resourceId: ResourceId | null;
20
+ resourceUrl: string | null;
21
+ resource: Resource | null;
22
+ status: RestResourceStoreStatus;
23
+ referencePathsToExpand: string[] | null;
24
+ _loadId?: string;
25
+ }
26
+ interface RestResourceQueryParams {
27
+ /** Deterministically JSON-serialized array of path strings to expand. */
28
+ r?: string;
29
+ }
30
+ declare const makeStore: (storeId: string, options: RestResourceStoreOptions) => import("pinia").StoreDefinition<string, RestResourceStoreState, {
31
+ currentResourceUrl: (state: {
32
+ idProperty: string;
33
+ resourceId: ResourceId | null;
34
+ resourceUrl: string | null;
35
+ resource: Resource | null;
36
+ status: RestResourceStoreStatus;
37
+ referencePathsToExpand: string[] | null;
38
+ _loadId?: string | undefined;
39
+ } & import("pinia").PiniaCustomStateProperties<RestResourceStoreState>) => string | null;
40
+ /** Get the REST query parameters that can be determined from the options. */
41
+ fixedQueryParams: (state: {
42
+ idProperty: string;
43
+ resourceId: ResourceId | null;
44
+ resourceUrl: string | null;
45
+ resource: Resource | null;
46
+ status: RestResourceStoreStatus;
47
+ referencePathsToExpand: string[] | null;
48
+ _loadId?: string | undefined;
49
+ } & import("pinia").PiniaCustomStateProperties<RestResourceStoreState>) => RestResourceQueryParams;
50
+ }, {
51
+ /**
52
+ * Reset the store to its initial state.
53
+ *
54
+ * Configuration is retained, but REST resource content and contextual state are reset.
55
+ */
56
+ reset(): void;
57
+ setResourceId(resourceId: ResourceId): Promise<void>;
58
+ setResourceUrl(resourceUrl: string): Promise<void>;
59
+ /**
60
+ * Clear the resource.
61
+ *
62
+ * Configuration and contextual state are retained, but REST collection contents are reset.
63
+ */
64
+ clear(): void;
65
+ /**
66
+ * Load the resource, if it has not been loaded.
67
+ *
68
+ * The resource will be loaded if its current status is not Loaded, Loading, or Failed.
69
+ */
70
+ ensureResourceLoaded(): Promise<void>;
71
+ /**
72
+ * Load the resource.
73
+ *
74
+ * @return A promise that resolves when the resource has been loaded.
75
+ */
76
+ loadResource(): Promise<void>;
77
+ /**
78
+ * Verify that the resource does not exist in the remote collection.
79
+ *
80
+ * After checking the remote collection and verifying that the resource does not exist, this function calls
81
+ * {@link recordDeletion} to delete it from the local collection.
82
+ *
83
+ * @return true if the record does not exist in the remote collection, false if it does or if an error occurred.
84
+ */
85
+ checkForDeletedResource(): Promise<boolean>;
86
+ /**
87
+ * Record a deletion, removing the deleted resource from the local collection.
88
+ *
89
+ * This should be called after deleting the resource from the remote collection. It is called, for instance, by
90
+ * {@link deleteResource}; but it can also be called when the application is aware of a deletion from the remote
91
+ * collection made by other means.
92
+ */
93
+ recordDeletion(): void;
94
+ /**
95
+ * Record an insertion, adding the inserted resource to the local collection.
96
+ *
97
+ * This should be called after inserting a resource into the remote collection. It is called, for instance, by
98
+ * {@link saveResource}; but it can also be called when the application is aware of insertions into the remote
99
+ * collection made by other means.
100
+ *
101
+ * This should only be called if the inserted resource is a saved version of the resource tracked by this store.
102
+ * Otherwise the store's resource may not match its resourceId and resourceUrl properties when the function
103
+ * returns.
104
+ *
105
+ * It is important that the resources to be added to the local collection have the same object-graph
106
+ * characteristics as other resources in the local collection. (These characteristics include property inclusions
107
+ * and exclusions, as well as reference expansions.) To ensure this, you may call {@refreshResource} to fetch the
108
+ * resource using the collection's settings.
109
+ *
110
+ * @param resource The resource that has been inserted.
111
+ */
112
+ recordInsertion(resource: Resource): void;
113
+ /**
114
+ * Record an update, making the same changes in the local resource.
115
+ *
116
+ * This should be called after updating a remote resource. It is called, for instance, by {@link saveResource} and
117
+ * {@link refreshResource}; but it can also be called when the application is aware of updates in the remote
118
+ * collection made by other means.
119
+ *
120
+ * This should only be called if the inserted resource is a saved version of the resource tracked by this store.
121
+ * Otherwise the store's resource may not match its resourceId and resourceUrl properties when the function
122
+ * returns.
123
+ *
124
+ * It is important that the resource have the same object-graph characteristics as other resources in the local
125
+ * collection. (These characteristics include property inclusions and exclusions, as well as reference
126
+ * expansions.) To ensure this, you may instead call {@refreshResource} to fetch the resource using the
127
+ * collection's settings; this will in turn call {@link recordUpdate}.
128
+ *
129
+ * @param resource The resource that has been updated.
130
+ */
131
+ recordUpdate(resource: Resource): void;
132
+ refreshResource(): Promise<Resource | null>;
133
+ /**
134
+ * Delete the resource.
135
+ *
136
+ * A delete request is sent to the REST API. If it succeeds, the resource is removed from the local store.
137
+ */
138
+ deleteResource(): Promise<void>;
139
+ /**
140
+ * Write a new or updated resource to the remote resource, then mirror the change locally.
141
+ *
142
+ * After writing changes, {@link refreshResource} is called to ensure that the local resource (which is also the
143
+ * return value) has the same object-graph characteristics as the rest of the local collection.
144
+ *
145
+ * @param resource The new or updated resource. If it has an ID, an update will be attempted; otherwise it will be
146
+ * created.
147
+ * @returns The refreshed local resource after the change has been persisted to the remote collection, or null if
148
+ * the operation failed.
149
+ */
150
+ saveResource(resource: Resource): Promise<Resource | null>;
151
+ makeCustomApiRequest(params: MakeCustomApiRequestParams): Promise<any>;
152
+ }>;
153
+ export type RestResourceStore = ReturnType<ReturnType<typeof makeStore>>;
154
+ export declare const storeRegistry: StoreRegistry<import("pinia").Store<string, RestResourceStoreState, {
155
+ currentResourceUrl: (state: {
156
+ idProperty: string;
157
+ resourceId: ResourceId | null;
158
+ resourceUrl: string | null;
159
+ resource: Resource | null;
160
+ status: RestResourceStoreStatus;
161
+ referencePathsToExpand: string[] | null;
162
+ _loadId?: string | undefined;
163
+ } & import("pinia").PiniaCustomStateProperties<RestResourceStoreState>) => string | null;
164
+ /** Get the REST query parameters that can be determined from the options. */
165
+ fixedQueryParams: (state: {
166
+ idProperty: string;
167
+ resourceId: ResourceId | null;
168
+ resourceUrl: string | null;
169
+ resource: Resource | null;
170
+ status: RestResourceStoreStatus;
171
+ referencePathsToExpand: string[] | null;
172
+ _loadId?: string | undefined;
173
+ } & import("pinia").PiniaCustomStateProperties<RestResourceStoreState>) => RestResourceQueryParams;
174
+ }, {
175
+ /**
176
+ * Reset the store to its initial state.
177
+ *
178
+ * Configuration is retained, but REST resource content and contextual state are reset.
179
+ */
180
+ reset(): void;
181
+ setResourceId(resourceId: ResourceId): Promise<void>;
182
+ setResourceUrl(resourceUrl: string): Promise<void>;
183
+ /**
184
+ * Clear the resource.
185
+ *
186
+ * Configuration and contextual state are retained, but REST collection contents are reset.
187
+ */
188
+ clear(): void;
189
+ /**
190
+ * Load the resource, if it has not been loaded.
191
+ *
192
+ * The resource will be loaded if its current status is not Loaded, Loading, or Failed.
193
+ */
194
+ ensureResourceLoaded(): Promise<void>;
195
+ /**
196
+ * Load the resource.
197
+ *
198
+ * @return A promise that resolves when the resource has been loaded.
199
+ */
200
+ loadResource(): Promise<void>;
201
+ /**
202
+ * Verify that the resource does not exist in the remote collection.
203
+ *
204
+ * After checking the remote collection and verifying that the resource does not exist, this function calls
205
+ * {@link recordDeletion} to delete it from the local collection.
206
+ *
207
+ * @return true if the record does not exist in the remote collection, false if it does or if an error occurred.
208
+ */
209
+ checkForDeletedResource(): Promise<boolean>;
210
+ /**
211
+ * Record a deletion, removing the deleted resource from the local collection.
212
+ *
213
+ * This should be called after deleting the resource from the remote collection. It is called, for instance, by
214
+ * {@link deleteResource}; but it can also be called when the application is aware of a deletion from the remote
215
+ * collection made by other means.
216
+ */
217
+ recordDeletion(): void;
218
+ /**
219
+ * Record an insertion, adding the inserted resource to the local collection.
220
+ *
221
+ * This should be called after inserting a resource into the remote collection. It is called, for instance, by
222
+ * {@link saveResource}; but it can also be called when the application is aware of insertions into the remote
223
+ * collection made by other means.
224
+ *
225
+ * This should only be called if the inserted resource is a saved version of the resource tracked by this store.
226
+ * Otherwise the store's resource may not match its resourceId and resourceUrl properties when the function
227
+ * returns.
228
+ *
229
+ * It is important that the resources to be added to the local collection have the same object-graph
230
+ * characteristics as other resources in the local collection. (These characteristics include property inclusions
231
+ * and exclusions, as well as reference expansions.) To ensure this, you may call {@refreshResource} to fetch the
232
+ * resource using the collection's settings.
233
+ *
234
+ * @param resource The resource that has been inserted.
235
+ */
236
+ recordInsertion(resource: Resource): void;
237
+ /**
238
+ * Record an update, making the same changes in the local resource.
239
+ *
240
+ * This should be called after updating a remote resource. It is called, for instance, by {@link saveResource} and
241
+ * {@link refreshResource}; but it can also be called when the application is aware of updates in the remote
242
+ * collection made by other means.
243
+ *
244
+ * This should only be called if the inserted resource is a saved version of the resource tracked by this store.
245
+ * Otherwise the store's resource may not match its resourceId and resourceUrl properties when the function
246
+ * returns.
247
+ *
248
+ * It is important that the resource have the same object-graph characteristics as other resources in the local
249
+ * collection. (These characteristics include property inclusions and exclusions, as well as reference
250
+ * expansions.) To ensure this, you may instead call {@refreshResource} to fetch the resource using the
251
+ * collection's settings; this will in turn call {@link recordUpdate}.
252
+ *
253
+ * @param resource The resource that has been updated.
254
+ */
255
+ recordUpdate(resource: Resource): void;
256
+ refreshResource(): Promise<Resource | null>;
257
+ /**
258
+ * Delete the resource.
259
+ *
260
+ * A delete request is sent to the REST API. If it succeeds, the resource is removed from the local store.
261
+ */
262
+ deleteResource(): Promise<void>;
263
+ /**
264
+ * Write a new or updated resource to the remote resource, then mirror the change locally.
265
+ *
266
+ * After writing changes, {@link refreshResource} is called to ensure that the local resource (which is also the
267
+ * return value) has the same object-graph characteristics as the rest of the local collection.
268
+ *
269
+ * @param resource The new or updated resource. If it has an ID, an update will be attempted; otherwise it will be
270
+ * created.
271
+ * @returns The refreshed local resource after the change has been persisted to the remote collection, or null if
272
+ * the operation failed.
273
+ */
274
+ saveResource(resource: Resource): Promise<Resource | null>;
275
+ makeCustomApiRequest(params: MakeCustomApiRequestParams): Promise<any>;
276
+ }>>;
277
+ export default makeStore;
@@ -0,0 +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"}
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "rest-client-vue",
3
+ "version": "1.0.0-a1",
4
+ "author": {
5
+ "name": "Jeremy Stone",
6
+ "email": "stoneje@msn.com"
7
+ },
8
+ "bugs": {
9
+ "url": "https://github.com/bbi-lab/rest-client-vue/issues"
10
+ },
11
+ "description": "REST API client for Vue.js applications",
12
+ "keywords": [
13
+ "vue",
14
+ "vuejs",
15
+ "rest",
16
+ "api",
17
+ "client",
18
+ "pinia"
19
+ ],
20
+ "homepage": "https://github.com/bbi-lab/rest-client-vue#readme",
21
+ "license": "MIT",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/bbi-lab/rest-client-vue.git"
25
+ },
26
+ "scripts": {
27
+ "build": "vite build && vue-tsc --emitDeclarationOnly",
28
+ "test": "jest",
29
+ "types": "vue-tsc"
30
+ },
31
+ "exports": {
32
+ ".": {
33
+ "import": "./dist/rest-client-vue.js",
34
+ "require": "./dist/rest-client-vue.umd.cjs"
35
+ }
36
+ },
37
+ "files": [
38
+ "dist"
39
+ ],
40
+ "main": "dist/rest-client-vue.umd.cjs",
41
+ "module": "dist/rest-client-vue.js",
42
+ "type": "module",
43
+ "types": "dist/index.d.ts",
44
+ "dependencies": {
45
+ "axios": "^1.6.2",
46
+ "jsog": "^1.0.7",
47
+ "json-stringify-deterministic": "^1.0.12",
48
+ "lodash": "^4.17.21",
49
+ "uuid": "^9.0.1"
50
+ },
51
+ "devDependencies": {
52
+ "@types/lodash": "^4.14.202",
53
+ "@types/uuid": "^9.0.7",
54
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
55
+ "@typescript-eslint/parser": "^6.13.2",
56
+ "@vitejs/plugin-vue": "^4.5.2",
57
+ "eslint": "^8.55.0",
58
+ "eslint-config-google": "~0.14.0",
59
+ "eslint-plugin-vue": "^9.9.0",
60
+ "path": "^0.12.7",
61
+ "typescript": "^5.3.3",
62
+ "vite": "^5.0.7",
63
+ "vite-plugin-eslint": "^1.8.1",
64
+ "vue-tsc": "^1.8.25"
65
+ },
66
+ "optionalDependencies": {
67
+ "vuejs-logger": "^1.5.5"
68
+ },
69
+ "peerDependencies": {
70
+ "pinia": "^2.1.7",
71
+ "vue": "^3.3.11"
72
+ }
73
+ }