@chill-sharp/vue-client 1.1.12 → 1.1.15

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/src/index.ts CHANGED
@@ -1,78 +1,78 @@
1
- /*
2
- * ChillSharp is a lightweight .NET library that sits on top of Entity Framework Core
3
- * and turns an existing data model into a fully working REST API with almost no setup.
4
- * Copyright (C) 2025 Andrea Piovesan
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU Affero General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU Affero General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Affero General Public License
17
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
18
- */
19
-
20
- export { createChillSharpClient, createChillSharpPlugin, useChillSharpClient } from "./plugin.js";
21
- export {
22
- useAutocompleteMutation,
23
- useCurrentUserPreferences,
24
- useEntityChanges,
25
- useEntityMutation,
26
- useQueryMutation,
27
- useSchema,
28
- useSchemaList,
29
- useTest,
30
- useText,
31
- useTexts,
32
- useValidateMutation,
33
- useVersion
34
- } from "./composables.js";
35
- export type { ChillSharpVueOptions } from "./plugin.js";
36
- export type { UseChillAsyncState, UseChillMutationState, UseChillSubscriptionState } from "./composables.js";
37
- export { API_BASE_PATH, ChillSharpClient, ChillSharpClientError, PermissionAction, PermissionEffect, PermissionScope } from "@chill-sharp/ts-client";
38
- export { CHILL_SHARP_VUE_CLIENT_VERSION } from "./version.js";
39
- export type {
40
- AuthPermissionRule,
41
- AuthPermissionRuleItem,
42
- AuthRoleDetailsResponse,
43
- AuthRoleListItem,
44
- AuthRolePermissions,
45
- AuthTokenResponse,
46
- AuthUserDetailsResponse,
47
- AuthUserListItem,
48
- ChillDtoEntity,
49
- ChillUserPreferences,
50
- ChillDtoEntityOptions,
51
- ChillDtoMenuItem,
52
- ChillDtoProperty,
53
- ChillDtoPropertySchema,
54
- ChillDtoQuery,
55
- ChillDtoSchema,
56
- ChillDtoSchemaRelation,
57
- ChillDtoSchemaRelationLabel,
58
- ChillDtoSchemaListItem,
59
- ChillAttachmentUploadFile,
60
- ChillAttachmentUploadOptions,
61
- ChillEntityChangeAction,
62
- ChillEntityChangeCallback,
63
- ChillEntityChangeNotification,
64
- ChillEntityChangeSubscription,
65
- ChillOrdering,
66
- ChillPagination,
67
- ChillSharpClientOptions,
68
- GetAuthPermissionsResponse,
69
- GetTextRequest,
70
- GetTextResponse,
71
- JsonObject,
72
- JsonPrimitive,
73
- JsonValue,
74
- RegisterAuthIdentityRequest,
75
- SetAuthRoleRequest,
76
- SetAuthUserRequest
77
- } from "@chill-sharp/ts-client";
78
-
1
+ /*
2
+ * ChillSharp is a lightweight .NET library that sits on top of Entity Framework Core
3
+ * and turns an existing data model into a fully working REST API with almost no setup.
4
+ * Copyright (C) 2025 Andrea Piovesan
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU Affero General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Affero General Public License
17
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+
20
+ export { createChillSharpClient, createChillSharpPlugin, useChillSharpClient } from "./plugin.js";
21
+ export {
22
+ useAutocompleteMutation,
23
+ useCurrentUserPreferences,
24
+ useEntityChanges,
25
+ useEntityMutation,
26
+ useQueryMutation,
27
+ useSchema,
28
+ useSchemaList,
29
+ useTest,
30
+ useText,
31
+ useTexts,
32
+ useValidateMutation,
33
+ useVersion
34
+ } from "./composables.js";
35
+ export type { ChillSharpVueOptions } from "./plugin.js";
36
+ export type { UseChillAsyncState, UseChillMutationState, UseChillSubscriptionState } from "./composables.js";
37
+ export { API_BASE_PATH, ChillSharpClient, ChillSharpClientError, PermissionAction, PermissionEffect, PermissionScope } from "@chill-sharp/ts-client";
38
+ export { CHILL_SHARP_VUE_CLIENT_VERSION } from "./version.js";
39
+ export type {
40
+ AuthPermissionRule,
41
+ AuthPermissionRuleItem,
42
+ AuthRoleDetailsResponse,
43
+ AuthRoleListItem,
44
+ AuthRolePermissions,
45
+ AuthTokenResponse,
46
+ AuthUserDetailsResponse,
47
+ AuthUserListItem,
48
+ ChillDtoEntity,
49
+ ChillUserPreferences,
50
+ ChillDtoEntityOptions,
51
+ ChillDtoMenuItem,
52
+ ChillDtoProperty,
53
+ ChillDtoPropertySchema,
54
+ ChillDtoQuery,
55
+ ChillDtoSchema,
56
+ ChillDtoSchemaRelation,
57
+ ChillDtoSchemaRelationLabel,
58
+ ChillDtoSchemaListItem,
59
+ ChillAttachmentUploadFile,
60
+ ChillAttachmentUploadOptions,
61
+ ChillEntityChangeAction,
62
+ ChillEntityChangeCallback,
63
+ ChillEntityChangeNotification,
64
+ ChillEntityChangeSubscription,
65
+ ChillOrdering,
66
+ ChillPagination,
67
+ ChillSharpClientOptions,
68
+ GetAuthPermissionsResponse,
69
+ GetTextRequest,
70
+ GetTextResponse,
71
+ JsonObject,
72
+ JsonPrimitive,
73
+ JsonValue,
74
+ RegisterAuthIdentityRequest,
75
+ SetAuthRoleRequest,
76
+ SetAuthUserRequest
77
+ } from "@chill-sharp/ts-client";
78
+
package/src/plugin.ts CHANGED
@@ -1,58 +1,58 @@
1
- /*
2
- * ChillSharp is a lightweight .NET library that sits on top of Entity Framework Core
3
- * and turns an existing data model into a fully working REST API with almost no setup.
4
- * Copyright (C) 2025 Andrea Piovesan
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU Affero General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU Affero General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Affero General Public License
17
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
18
- */
19
-
20
- import type { App, InjectionKey, Plugin } from "vue";
21
- import { inject } from "vue";
22
- import { ChillSharpClient } from "@chill-sharp/ts-client";
23
- import type { ChillSharpClientOptions } from "@chill-sharp/ts-client";
24
-
25
- export interface ChillSharpVueOptions {
26
- baseUrl: string;
27
- client?: ChillSharpClient;
28
- options?: ChillSharpClientOptions;
29
- }
30
-
31
- export const chillSharpClientKey: InjectionKey<ChillSharpClient> = Symbol("ChillSharpClient");
32
-
33
- export function createChillSharpClient(options: ChillSharpVueOptions): ChillSharpClient {
34
- if (options.client) {
35
- return options.client;
36
- }
37
-
38
- return new ChillSharpClient(options.baseUrl, options.options);
39
- }
40
-
41
- export function createChillSharpPlugin(options: ChillSharpVueOptions): Plugin {
42
- const client = createChillSharpClient(options);
43
-
44
- return {
45
- install(app: App) {
46
- app.provide(chillSharpClientKey, client);
47
- }
48
- };
49
- }
50
-
51
- export function useChillSharpClient(): ChillSharpClient {
52
- const client = inject(chillSharpClientKey, null);
53
- if (!client) {
54
- throw new Error("useChillSharpClient requires createChillSharpPlugin() to be installed.");
55
- }
56
-
57
- return client;
58
- }
1
+ /*
2
+ * ChillSharp is a lightweight .NET library that sits on top of Entity Framework Core
3
+ * and turns an existing data model into a fully working REST API with almost no setup.
4
+ * Copyright (C) 2025 Andrea Piovesan
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU Affero General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Affero General Public License
17
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+
20
+ import type { App, InjectionKey, Plugin } from "vue";
21
+ import { inject } from "vue";
22
+ import { ChillSharpClient } from "@chill-sharp/ts-client";
23
+ import type { ChillSharpClientOptions } from "@chill-sharp/ts-client";
24
+
25
+ export interface ChillSharpVueOptions {
26
+ baseUrl: string;
27
+ client?: ChillSharpClient;
28
+ options?: ChillSharpClientOptions;
29
+ }
30
+
31
+ export const chillSharpClientKey: InjectionKey<ChillSharpClient> = Symbol("ChillSharpClient");
32
+
33
+ export function createChillSharpClient(options: ChillSharpVueOptions): ChillSharpClient {
34
+ if (options.client) {
35
+ return options.client;
36
+ }
37
+
38
+ return new ChillSharpClient(options.baseUrl, options.options);
39
+ }
40
+
41
+ export function createChillSharpPlugin(options: ChillSharpVueOptions): Plugin {
42
+ const client = createChillSharpClient(options);
43
+
44
+ return {
45
+ install(app: App) {
46
+ app.provide(chillSharpClientKey, client);
47
+ }
48
+ };
49
+ }
50
+
51
+ export function useChillSharpClient(): ChillSharpClient {
52
+ const client = inject(chillSharpClientKey, null);
53
+ if (!client) {
54
+ throw new Error("useChillSharpClient requires createChillSharpPlugin() to be installed.");
55
+ }
56
+
57
+ return client;
58
+ }
package/src/version.ts CHANGED
@@ -1,20 +1,20 @@
1
- /*
2
- * ChillSharp is a lightweight .NET library that sits on top of Entity Framework Core
3
- * and turns an existing data model into a fully working REST API with almost no setup.
4
- * Copyright (C) 2025 Andrea Piovesan
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU Affero General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU Affero General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Affero General Public License
17
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
18
- */
19
-
20
- export const CHILL_SHARP_VUE_CLIENT_VERSION = "0.1.0";
1
+ /*
2
+ * ChillSharp is a lightweight .NET library that sits on top of Entity Framework Core
3
+ * and turns an existing data model into a fully working REST API with almost no setup.
4
+ * Copyright (C) 2025 Andrea Piovesan
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU Affero General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Affero General Public License
17
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+
20
+ export const CHILL_SHARP_VUE_CLIENT_VERSION = "0.1.0";