@chill-sharp/ts-client 1.1.12
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/README.md +707 -0
- package/dist/client.d.ts +533 -0
- package/dist/client.js +1030 -0
- package/dist/errors.d.ts +5 -0
- package/dist/errors.js +31 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +21 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +19 -0
- package/package.json +46 -0
- package/src/client.ts +1809 -0
- package/src/errors.ts +34 -0
- package/src/index.ts +87 -0
- package/src/test_tmp.txt +1 -0
- package/src/version.ts +20 -0
package/dist/errors.d.ts
ADDED
package/dist/errors.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
export class ChillSharpClientError extends Error {
|
|
20
|
+
statusCode;
|
|
21
|
+
responseText;
|
|
22
|
+
constructor(message, statusCode, responseText, cause) {
|
|
23
|
+
super(message);
|
|
24
|
+
this.name = "ChillSharpClientError";
|
|
25
|
+
this.statusCode = statusCode;
|
|
26
|
+
this.responseText = responseText;
|
|
27
|
+
if (cause !== undefined) {
|
|
28
|
+
this.cause = cause;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { API_BASE_PATH, ChillSharpClient, ChillDtoPropertyType, PermissionAction, PermissionEffect, PermissionScope } from "./client.js";
|
|
2
|
+
export { CHILL_SHARP_TS_CLIENT_VERSION } from "./version.js";
|
|
3
|
+
export type { AuthPermissionRule, AuthPermissionRuleItem, AuthRoleDetailsResponse, AuthRoleListItem, AuthRolePermissions, AuthTokenResponse, AuthUserDetailsResponse, AuthUserListItem, ChangePasswordRequest, ChangePasswordResponse, ChillUserPreferences, ChillDtoEntity, ChillDtoEntityOptions, ChillDtoMenuItem, ChillDtoProperty, ChillDtoPropertySchema, ChillDtoQuery, ChillDtoSchema, ChillDtoSchemaRelation, ChillDtoSchemaRelationLabel, ChillDtoSchemaListItem, ChillOrdering, ChillPagination, ChillValidationError, ChillEntityChangeAction, ChillEntityChangeCallback, ChillEntityChangeNotification, ChillEntityChangeSubscription, ChillAttachmentUploadFile, ChillAttachmentUploadOptions, ChillSharpClientOptions, CreateAuthPermissionRuleRequest, CreateAuthRoleRequest, CreateAuthUserRequest, GetAuthPermissionsResponse, GetTextRequest, GetTextResponse, JsonObject, JsonPrimitive, JsonValue, LoginAuthIdentityRequest, PasswordResetTokenResponse, RegisterAuthIdentityRequest, RequestPasswordResetRequest, ResetPasswordRequest, ResetPasswordResponse, SetAuthRoleRequest, SetAuthUserRequest, UpdateAuthPermissionRuleRequest, UpdateAuthRoleRequest, UpdateAuthUserRequest } from "./client.js";
|
|
4
|
+
export { ChillSharpClientError } from "./errors.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export { API_BASE_PATH, ChillSharpClient, ChillDtoPropertyType, PermissionAction, PermissionEffect, PermissionScope } from "./client.js";
|
|
20
|
+
export { CHILL_SHARP_TS_CLIENT_VERSION } from "./version.js";
|
|
21
|
+
export { ChillSharpClientError } from "./errors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CHILL_SHARP_TS_CLIENT_VERSION = "0.1.0";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export const CHILL_SHARP_TS_CLIENT_VERSION = "0.1.0";
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@chill-sharp/ts-client",
|
|
3
|
+
"repository": {
|
|
4
|
+
"type": "git",
|
|
5
|
+
"url": "git+https://github.com/e-500/chill-sharp.git",
|
|
6
|
+
"directory": "extra/chill-sharp-ts-client"
|
|
7
|
+
},
|
|
8
|
+
"version": "1.1.12",
|
|
9
|
+
"description": "TypeScript client for generic ChillSharp services",
|
|
10
|
+
"license": "AGPL-3.0-or-later",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"src",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -p tsconfig.json",
|
|
27
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
28
|
+
"prepare": "npm run build",
|
|
29
|
+
"prepack": "npm run build"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"chillsharp",
|
|
33
|
+
"typescript",
|
|
34
|
+
"client",
|
|
35
|
+
"rest",
|
|
36
|
+
"ef-core"
|
|
37
|
+
],
|
|
38
|
+
"author": "Andrea Piovesan",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@microsoft/signalr": "^8.0.17"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"typescript": "^5.8.2"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|