@carbonorm/carbonreact 3.4.1 → 3.4.4
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/CarbonReact.d.ts +0 -3
- package/dist/api/hoc/getStatefulObjectWithWhere.d.ts +11 -0
- package/dist/api/hoc/watchInputElementChangeEvent.d.ts +2 -0
- package/dist/api/rest/C6.d.ts +579 -0
- package/dist/api/rest/Carbons.d.ts +88 -0
- package/dist/api/rest/Carbons.test.d.ts +14 -0
- package/dist/api/rest/Chat_Messages.d.ts +88 -0
- package/dist/api/rest/Chat_Messages.test.d.ts +20 -0
- package/dist/api/rest/Documentation.d.ts +88 -0
- package/dist/api/rest/Documentation.test.d.ts +11 -0
- package/dist/api/rest/Feature_Group_References.d.ts +88 -0
- package/dist/api/rest/Feature_Group_References.test.d.ts +13 -0
- package/dist/api/rest/Features.d.ts +88 -0
- package/dist/api/rest/Features.test.d.ts +14 -0
- package/dist/api/rest/Group_References.d.ts +88 -0
- package/dist/api/rest/Group_References.test.d.ts +13 -0
- package/dist/api/rest/Groups.d.ts +88 -0
- package/dist/api/rest/Groups.test.d.ts +15 -0
- package/dist/api/rest/History_Logs.d.ts +88 -0
- package/dist/api/rest/History_Logs.test.d.ts +13 -0
- package/dist/api/rest/Likes.d.ts +88 -0
- package/dist/api/rest/Likes.test.d.ts +13 -0
- package/dist/api/rest/Location_References.d.ts +88 -0
- package/dist/api/rest/Location_References.test.d.ts +14 -0
- package/dist/api/rest/Locations.d.ts +88 -0
- package/dist/api/rest/Locations.test.d.ts +18 -0
- package/dist/api/rest/Photos.d.ts +88 -0
- package/dist/api/rest/Photos.test.d.ts +20 -0
- package/dist/api/rest/Posts.d.ts +88 -0
- package/dist/api/rest/Posts.test.d.ts +22 -0
- package/dist/api/rest/Projects.d.ts +88 -0
- package/dist/api/rest/Projects.test.d.ts +21 -0
- package/dist/api/rest/Reports.d.ts +88 -0
- package/dist/api/rest/Reports.test.d.ts +11 -0
- package/dist/api/rest/Sessions.d.ts +88 -0
- package/dist/api/rest/Sessions.test.d.ts +14 -0
- package/dist/api/rest/Subscription.d.ts +88 -0
- package/dist/api/rest/Subscription.test.d.ts +20 -0
- package/dist/api/rest/User_Followers.d.ts +88 -0
- package/dist/api/rest/User_Followers.test.d.ts +16 -0
- package/dist/api/rest/User_Groups.d.ts +88 -0
- package/dist/api/rest/User_Groups.test.d.ts +13 -0
- package/dist/api/rest/User_Messages.d.ts +88 -0
- package/dist/api/rest/User_Messages.test.d.ts +20 -0
- package/dist/api/rest/User_Sessions.d.ts +88 -0
- package/dist/api/rest/User_Sessions.test.d.ts +14 -0
- package/dist/api/rest/User_Tasks.d.ts +88 -0
- package/dist/api/rest/User_Tasks.test.d.ts +22 -0
- package/dist/api/rest/Users.d.ts +88 -0
- package/dist/api/rest/Users.test.d.ts +44 -0
- package/dist/api/rest/WsLiveUpdates.d.ts +3 -0
- package/dist/components/WebSocket/CarbonWebSocket.d.ts +8 -4
- package/dist/index.cjs.js +5056 -2124
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +53 -0
- package/dist/index.esm.js +4957 -2105
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/CarbonReact.tsx +0 -3
- package/src/api/hoc/getStatefulObjectWithWhere.tsx +17 -0
- package/src/api/hoc/watchInputElementChangeEvent.tsx +24 -0
- package/src/api/rest/C6.tsx +2687 -0
- package/src/api/rest/Carbons.test.tsx +128 -0
- package/src/api/rest/Carbons.tsx +145 -0
- package/src/api/rest/Chat_Messages.test.tsx +138 -0
- package/src/api/rest/Chat_Messages.tsx +151 -0
- package/src/api/rest/Documentation.test.tsx +128 -0
- package/src/api/rest/Documentation.tsx +142 -0
- package/src/api/rest/Feature_Group_References.test.tsx +126 -0
- package/src/api/rest/Feature_Group_References.tsx +144 -0
- package/src/api/rest/Features.test.tsx +128 -0
- package/src/api/rest/Features.tsx +145 -0
- package/src/api/rest/Group_References.test.tsx +126 -0
- package/src/api/rest/Group_References.tsx +144 -0
- package/src/api/rest/Groups.test.tsx +130 -0
- package/src/api/rest/Groups.tsx +146 -0
- package/src/api/rest/History_Logs.test.tsx +130 -0
- package/src/api/rest/History_Logs.tsx +144 -0
- package/src/api/rest/Likes.test.tsx +126 -0
- package/src/api/rest/Likes.tsx +144 -0
- package/src/api/rest/Location_References.test.tsx +128 -0
- package/src/api/rest/Location_References.tsx +145 -0
- package/src/api/rest/Locations.test.tsx +137 -0
- package/src/api/rest/Locations.tsx +149 -0
- package/src/api/rest/Photos.test.tsx +139 -0
- package/src/api/rest/Photos.tsx +151 -0
- package/src/api/rest/Posts.test.tsx +142 -0
- package/src/api/rest/Posts.tsx +153 -0
- package/src/api/rest/Projects.test.tsx +144 -0
- package/src/api/rest/Projects.tsx +152 -0
- package/src/api/rest/Reports.test.tsx +128 -0
- package/src/api/rest/Reports.tsx +142 -0
- package/src/api/rest/Sessions.test.tsx +133 -0
- package/src/api/rest/Sessions.tsx +145 -0
- package/src/api/rest/Subscription.test.tsx +138 -0
- package/src/api/rest/Subscription.tsx +151 -0
- package/src/api/rest/User_Followers.test.tsx +130 -0
- package/src/api/rest/User_Followers.tsx +147 -0
- package/src/api/rest/User_Groups.test.tsx +126 -0
- package/src/api/rest/User_Groups.tsx +144 -0
- package/src/api/rest/User_Messages.test.tsx +137 -0
- package/src/api/rest/User_Messages.tsx +151 -0
- package/src/api/rest/User_Sessions.test.tsx +133 -0
- package/src/api/rest/User_Sessions.tsx +145 -0
- package/src/api/rest/User_Tasks.test.tsx +141 -0
- package/src/api/rest/User_Tasks.tsx +153 -0
- package/src/api/rest/Users.test.tsx +193 -0
- package/src/api/rest/Users.tsx +175 -0
- package/src/api/rest/WsLiveUpdates.tsx +150 -0
- package/src/components/WebSocket/CarbonWebSocket.tsx +22 -11
- package/src/index.ts +53 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { iUser_Followers } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_user_followers` (
|
|
4
|
+
`follower_table_id` binary(16) NOT NULL,
|
|
5
|
+
`follows_user_id` binary(16) NOT NULL,
|
|
6
|
+
`user_id` binary(16) NOT NULL,
|
|
7
|
+
PRIMARY KEY (`follower_table_id`),
|
|
8
|
+
KEY `followers_entity_entity_pk_fk` (`follows_user_id`),
|
|
9
|
+
KEY `followers_entity_entity_followers_pk_fk` (`user_id`),
|
|
10
|
+
CONSTRAINT `carbon_user_followers_carbons_entity_pk_fk` FOREIGN KEY (`follower_table_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
11
|
+
CONSTRAINT `followers_entity_entity_follows_pk_fk` FOREIGN KEY (`follows_user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
12
|
+
CONSTRAINT `followers_entity_followers_pk_fk` FOREIGN KEY (`user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
13
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
14
|
+
**/
|
|
15
|
+
declare const Test_Data: iUser_Followers;
|
|
16
|
+
export default Test_Data;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { iAPI, Modify } from "restRequest";
|
|
4
|
+
import { iUser_Groups } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iUser_Groups, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
7
|
+
cacheResults?: boolean | undefined;
|
|
8
|
+
fetchDependencies?: boolean | undefined;
|
|
9
|
+
debug?: boolean | undefined;
|
|
10
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
11
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
12
|
+
blocking?: boolean | undefined;
|
|
13
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Groups>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateUser_Groups(response: AxiosResponse<iPutC6RestResponse<iUser_Groups>>, request: iAPI<Modify<iUser_Groups, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iUser_Groups, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
19
|
+
cacheResults?: boolean | undefined;
|
|
20
|
+
fetchDependencies?: boolean | undefined;
|
|
21
|
+
debug?: boolean | undefined;
|
|
22
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
23
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
24
|
+
blocking?: boolean | undefined;
|
|
25
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Groups, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateUser_Groups(response: AxiosResponse<iPostC6RestResponse<iUser_Groups>>, request: iAPI<Modify<iUser_Groups, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iUser_Groups, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
31
|
+
cacheResults?: boolean | undefined;
|
|
32
|
+
fetchDependencies?: boolean | undefined;
|
|
33
|
+
debug?: boolean | undefined;
|
|
34
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
35
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
36
|
+
blocking?: boolean | undefined;
|
|
37
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Groups>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateUser_Groups(_response: AxiosResponse<iDeleteC6RestResponse<iUser_Groups>>, request: iAPI<Modify<iUser_Groups, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iUser_Groups, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
43
|
+
cacheResults?: boolean | undefined;
|
|
44
|
+
fetchDependencies?: boolean | undefined;
|
|
45
|
+
debug?: boolean | undefined;
|
|
46
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
47
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
48
|
+
blocking?: boolean | undefined;
|
|
49
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Groups, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iUser_Groups, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
53
|
+
cacheResults?: boolean | undefined;
|
|
54
|
+
fetchDependencies?: boolean | undefined;
|
|
55
|
+
debug?: boolean | undefined;
|
|
56
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
57
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
58
|
+
blocking?: boolean | undefined;
|
|
59
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Groups>>;
|
|
60
|
+
Post: (request?: (Omit<iUser_Groups, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
62
|
+
cacheResults?: boolean | undefined;
|
|
63
|
+
fetchDependencies?: boolean | undefined;
|
|
64
|
+
debug?: boolean | undefined;
|
|
65
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
66
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
67
|
+
blocking?: boolean | undefined;
|
|
68
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Groups>>;
|
|
69
|
+
Put: (request?: (Omit<iUser_Groups, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
71
|
+
cacheResults?: boolean | undefined;
|
|
72
|
+
fetchDependencies?: boolean | undefined;
|
|
73
|
+
debug?: boolean | undefined;
|
|
74
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
75
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
76
|
+
blocking?: boolean | undefined;
|
|
77
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Groups, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iUser_Groups, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iUser_Groups, never>[] | undefined;
|
|
80
|
+
cacheResults?: boolean | undefined;
|
|
81
|
+
fetchDependencies?: boolean | undefined;
|
|
82
|
+
debug?: boolean | undefined;
|
|
83
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
84
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
85
|
+
blocking?: boolean | undefined;
|
|
86
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Groups, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { iUser_Groups } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_user_groups` (
|
|
4
|
+
`group_id` binary(16) DEFAULT NULL,
|
|
5
|
+
`user_id` binary(16) DEFAULT NULL,
|
|
6
|
+
KEY `carbon_user_groups_carbons_entity_pk_fk` (`group_id`),
|
|
7
|
+
KEY `carbon_user_groups_carbons_entity_pk_fk_2` (`user_id`),
|
|
8
|
+
CONSTRAINT `carbon_user_groups_carbons_entity_pk_fk` FOREIGN KEY (`group_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
9
|
+
CONSTRAINT `carbon_user_groups_carbons_entity_pk_fk_2` FOREIGN KEY (`user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
10
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
11
|
+
**/
|
|
12
|
+
declare const Test_Data: iUser_Groups;
|
|
13
|
+
export default Test_Data;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { iAPI, Modify } from "restRequest";
|
|
4
|
+
import { iUser_Messages } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iUser_Messages, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
7
|
+
cacheResults?: boolean | undefined;
|
|
8
|
+
fetchDependencies?: boolean | undefined;
|
|
9
|
+
debug?: boolean | undefined;
|
|
10
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
11
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
12
|
+
blocking?: boolean | undefined;
|
|
13
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Messages>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateUser_Messages(response: AxiosResponse<iPutC6RestResponse<iUser_Messages>>, request: iAPI<Modify<iUser_Messages, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iUser_Messages, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
19
|
+
cacheResults?: boolean | undefined;
|
|
20
|
+
fetchDependencies?: boolean | undefined;
|
|
21
|
+
debug?: boolean | undefined;
|
|
22
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
23
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
24
|
+
blocking?: boolean | undefined;
|
|
25
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Messages, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateUser_Messages(response: AxiosResponse<iPostC6RestResponse<iUser_Messages>>, request: iAPI<Modify<iUser_Messages, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iUser_Messages, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
31
|
+
cacheResults?: boolean | undefined;
|
|
32
|
+
fetchDependencies?: boolean | undefined;
|
|
33
|
+
debug?: boolean | undefined;
|
|
34
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
35
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
36
|
+
blocking?: boolean | undefined;
|
|
37
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Messages>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateUser_Messages(_response: AxiosResponse<iDeleteC6RestResponse<iUser_Messages>>, request: iAPI<Modify<iUser_Messages, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iUser_Messages, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
43
|
+
cacheResults?: boolean | undefined;
|
|
44
|
+
fetchDependencies?: boolean | undefined;
|
|
45
|
+
debug?: boolean | undefined;
|
|
46
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
47
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
48
|
+
blocking?: boolean | undefined;
|
|
49
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Messages, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iUser_Messages, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
53
|
+
cacheResults?: boolean | undefined;
|
|
54
|
+
fetchDependencies?: boolean | undefined;
|
|
55
|
+
debug?: boolean | undefined;
|
|
56
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
57
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
58
|
+
blocking?: boolean | undefined;
|
|
59
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Messages>>;
|
|
60
|
+
Post: (request?: (Omit<iUser_Messages, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
62
|
+
cacheResults?: boolean | undefined;
|
|
63
|
+
fetchDependencies?: boolean | undefined;
|
|
64
|
+
debug?: boolean | undefined;
|
|
65
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
66
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
67
|
+
blocking?: boolean | undefined;
|
|
68
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Messages>>;
|
|
69
|
+
Put: (request?: (Omit<iUser_Messages, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
71
|
+
cacheResults?: boolean | undefined;
|
|
72
|
+
fetchDependencies?: boolean | undefined;
|
|
73
|
+
debug?: boolean | undefined;
|
|
74
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
75
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
76
|
+
blocking?: boolean | undefined;
|
|
77
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Messages, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iUser_Messages, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iUser_Messages, never>[] | undefined;
|
|
80
|
+
cacheResults?: boolean | undefined;
|
|
81
|
+
fetchDependencies?: boolean | undefined;
|
|
82
|
+
debug?: boolean | undefined;
|
|
83
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
84
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
85
|
+
blocking?: boolean | undefined;
|
|
86
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Messages, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { iUser_Messages } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_user_messages` (
|
|
4
|
+
`message_id` binary(16) NOT NULL,
|
|
5
|
+
`from_user_id` binary(16) NOT NULL,
|
|
6
|
+
`to_user_id` binary(16) NOT NULL,
|
|
7
|
+
`message` text NOT NULL,
|
|
8
|
+
`message_read` tinyint DEFAULT '0',
|
|
9
|
+
`creation_date` datetime DEFAULT CURRENT_TIMESTAMP,
|
|
10
|
+
PRIMARY KEY (`message_id`),
|
|
11
|
+
KEY `messages_entity_entity_pk_fk` (`message_id`),
|
|
12
|
+
KEY `messages_entity_user_from_pk_fk` (`to_user_id`),
|
|
13
|
+
KEY `carbon_user_messages_carbon_entity_pk_fk` (`from_user_id`),
|
|
14
|
+
CONSTRAINT `carbon_user_messages_carbon_entity_pk_fk` FOREIGN KEY (`from_user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
15
|
+
CONSTRAINT `messages_entity_entity_pk_fk` FOREIGN KEY (`message_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
16
|
+
CONSTRAINT `messages_entity_user_from_pk_fk` FOREIGN KEY (`to_user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
17
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
18
|
+
**/
|
|
19
|
+
declare const Test_Data: iUser_Messages;
|
|
20
|
+
export default Test_Data;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { iAPI, Modify } from "restRequest";
|
|
4
|
+
import { iUser_Sessions } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iUser_Sessions, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
7
|
+
cacheResults?: boolean | undefined;
|
|
8
|
+
fetchDependencies?: boolean | undefined;
|
|
9
|
+
debug?: boolean | undefined;
|
|
10
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
11
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
12
|
+
blocking?: boolean | undefined;
|
|
13
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Sessions>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateUser_Sessions(response: AxiosResponse<iPutC6RestResponse<iUser_Sessions>>, request: iAPI<Modify<iUser_Sessions, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iUser_Sessions, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
19
|
+
cacheResults?: boolean | undefined;
|
|
20
|
+
fetchDependencies?: boolean | undefined;
|
|
21
|
+
debug?: boolean | undefined;
|
|
22
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
23
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
24
|
+
blocking?: boolean | undefined;
|
|
25
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Sessions, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateUser_Sessions(response: AxiosResponse<iPostC6RestResponse<iUser_Sessions>>, request: iAPI<Modify<iUser_Sessions, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iUser_Sessions, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
31
|
+
cacheResults?: boolean | undefined;
|
|
32
|
+
fetchDependencies?: boolean | undefined;
|
|
33
|
+
debug?: boolean | undefined;
|
|
34
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
35
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
36
|
+
blocking?: boolean | undefined;
|
|
37
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Sessions>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateUser_Sessions(_response: AxiosResponse<iDeleteC6RestResponse<iUser_Sessions>>, request: iAPI<Modify<iUser_Sessions, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iUser_Sessions, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
43
|
+
cacheResults?: boolean | undefined;
|
|
44
|
+
fetchDependencies?: boolean | undefined;
|
|
45
|
+
debug?: boolean | undefined;
|
|
46
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
47
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
48
|
+
blocking?: boolean | undefined;
|
|
49
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Sessions, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iUser_Sessions, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
53
|
+
cacheResults?: boolean | undefined;
|
|
54
|
+
fetchDependencies?: boolean | undefined;
|
|
55
|
+
debug?: boolean | undefined;
|
|
56
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
57
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
58
|
+
blocking?: boolean | undefined;
|
|
59
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Sessions>>;
|
|
60
|
+
Post: (request?: (Omit<iUser_Sessions, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
62
|
+
cacheResults?: boolean | undefined;
|
|
63
|
+
fetchDependencies?: boolean | undefined;
|
|
64
|
+
debug?: boolean | undefined;
|
|
65
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
66
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
67
|
+
blocking?: boolean | undefined;
|
|
68
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Sessions>>;
|
|
69
|
+
Put: (request?: (Omit<iUser_Sessions, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
71
|
+
cacheResults?: boolean | undefined;
|
|
72
|
+
fetchDependencies?: boolean | undefined;
|
|
73
|
+
debug?: boolean | undefined;
|
|
74
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
75
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
76
|
+
blocking?: boolean | undefined;
|
|
77
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Sessions, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iUser_Sessions, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iUser_Sessions, never>[] | undefined;
|
|
80
|
+
cacheResults?: boolean | undefined;
|
|
81
|
+
fetchDependencies?: boolean | undefined;
|
|
82
|
+
debug?: boolean | undefined;
|
|
83
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
84
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
85
|
+
blocking?: boolean | undefined;
|
|
86
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Sessions, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { iUser_Sessions } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_user_sessions` (
|
|
4
|
+
`user_id` binary(16) NOT NULL,
|
|
5
|
+
`user_ip` varchar(60) DEFAULT NULL,
|
|
6
|
+
`session_id` varchar(255) NOT NULL,
|
|
7
|
+
`session_expires` datetime NOT NULL,
|
|
8
|
+
`session_data` text,
|
|
9
|
+
`user_online_status` tinyint DEFAULT '1',
|
|
10
|
+
PRIMARY KEY (`session_id`)
|
|
11
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
12
|
+
**/
|
|
13
|
+
declare const Test_Data: iUser_Sessions;
|
|
14
|
+
export default Test_Data;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { iAPI, Modify } from "restRequest";
|
|
4
|
+
import { iUser_Tasks } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iUser_Tasks, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
7
|
+
cacheResults?: boolean | undefined;
|
|
8
|
+
fetchDependencies?: boolean | undefined;
|
|
9
|
+
debug?: boolean | undefined;
|
|
10
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
11
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
12
|
+
blocking?: boolean | undefined;
|
|
13
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Tasks>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateUser_Tasks(response: AxiosResponse<iPutC6RestResponse<iUser_Tasks>>, request: iAPI<Modify<iUser_Tasks, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iUser_Tasks, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
19
|
+
cacheResults?: boolean | undefined;
|
|
20
|
+
fetchDependencies?: boolean | undefined;
|
|
21
|
+
debug?: boolean | undefined;
|
|
22
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
23
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
24
|
+
blocking?: boolean | undefined;
|
|
25
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Tasks, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateUser_Tasks(response: AxiosResponse<iPostC6RestResponse<iUser_Tasks>>, request: iAPI<Modify<iUser_Tasks, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iUser_Tasks, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
31
|
+
cacheResults?: boolean | undefined;
|
|
32
|
+
fetchDependencies?: boolean | undefined;
|
|
33
|
+
debug?: boolean | undefined;
|
|
34
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
35
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
36
|
+
blocking?: boolean | undefined;
|
|
37
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Tasks>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateUser_Tasks(_response: AxiosResponse<iDeleteC6RestResponse<iUser_Tasks>>, request: iAPI<Modify<iUser_Tasks, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iUser_Tasks, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
43
|
+
cacheResults?: boolean | undefined;
|
|
44
|
+
fetchDependencies?: boolean | undefined;
|
|
45
|
+
debug?: boolean | undefined;
|
|
46
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
47
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
48
|
+
blocking?: boolean | undefined;
|
|
49
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Tasks, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iUser_Tasks, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
53
|
+
cacheResults?: boolean | undefined;
|
|
54
|
+
fetchDependencies?: boolean | undefined;
|
|
55
|
+
debug?: boolean | undefined;
|
|
56
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
57
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
58
|
+
blocking?: boolean | undefined;
|
|
59
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUser_Tasks>>;
|
|
60
|
+
Post: (request?: (Omit<iUser_Tasks, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
62
|
+
cacheResults?: boolean | undefined;
|
|
63
|
+
fetchDependencies?: boolean | undefined;
|
|
64
|
+
debug?: boolean | undefined;
|
|
65
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
66
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
67
|
+
blocking?: boolean | undefined;
|
|
68
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUser_Tasks>>;
|
|
69
|
+
Put: (request?: (Omit<iUser_Tasks, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
71
|
+
cacheResults?: boolean | undefined;
|
|
72
|
+
fetchDependencies?: boolean | undefined;
|
|
73
|
+
debug?: boolean | undefined;
|
|
74
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
75
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
76
|
+
blocking?: boolean | undefined;
|
|
77
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUser_Tasks, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iUser_Tasks, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iUser_Tasks, never>[] | undefined;
|
|
80
|
+
cacheResults?: boolean | undefined;
|
|
81
|
+
fetchDependencies?: boolean | undefined;
|
|
82
|
+
debug?: boolean | undefined;
|
|
83
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
84
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
85
|
+
blocking?: boolean | undefined;
|
|
86
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUser_Tasks, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { iUser_Tasks } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_user_tasks` (
|
|
4
|
+
`task_id` binary(16) NOT NULL,
|
|
5
|
+
`user_id` binary(16) NOT NULL COMMENT 'This is the user the task is being assigned to',
|
|
6
|
+
`from_id` binary(16) DEFAULT NULL COMMENT 'Keeping this colum so forgen key will remove task if user deleted',
|
|
7
|
+
`task_name` varchar(40) NOT NULL,
|
|
8
|
+
`task_description` varchar(225) DEFAULT NULL,
|
|
9
|
+
`percent_complete` int DEFAULT '0',
|
|
10
|
+
`start_date` datetime DEFAULT NULL,
|
|
11
|
+
`end_date` datetime DEFAULT NULL,
|
|
12
|
+
PRIMARY KEY (`task_id`),
|
|
13
|
+
KEY `user_tasks_entity_entity_pk_fk` (`from_id`),
|
|
14
|
+
KEY `user_tasks_entity_task_pk_fk` (`task_id`),
|
|
15
|
+
KEY `carbon_user_tasks_carbons_entity_pk_fk_2` (`user_id`),
|
|
16
|
+
CONSTRAINT `carbon_user_tasks_carbons_entity_pk_fk` FOREIGN KEY (`task_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
17
|
+
CONSTRAINT `carbon_user_tasks_carbons_entity_pk_fk_2` FOREIGN KEY (`user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
18
|
+
CONSTRAINT `carbon_user_tasks_carbons_entity_pk_fk_3` FOREIGN KEY (`from_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
19
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
20
|
+
**/
|
|
21
|
+
declare const Test_Data: iUser_Tasks;
|
|
22
|
+
export default Test_Data;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { iAPI, Modify } from "restRequest";
|
|
4
|
+
import { iUsers } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iUsers, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
7
|
+
cacheResults?: boolean | undefined;
|
|
8
|
+
fetchDependencies?: boolean | undefined;
|
|
9
|
+
debug?: boolean | undefined;
|
|
10
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
11
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
12
|
+
blocking?: boolean | undefined;
|
|
13
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUsers>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateUsers(response: AxiosResponse<iPutC6RestResponse<iUsers>>, request: iAPI<Modify<iUsers, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iUsers, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
19
|
+
cacheResults?: boolean | undefined;
|
|
20
|
+
fetchDependencies?: boolean | undefined;
|
|
21
|
+
debug?: boolean | undefined;
|
|
22
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
23
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
24
|
+
blocking?: boolean | undefined;
|
|
25
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUsers, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateUsers(response: AxiosResponse<iPostC6RestResponse<iUsers>>, request: iAPI<Modify<iUsers, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iUsers, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
31
|
+
cacheResults?: boolean | undefined;
|
|
32
|
+
fetchDependencies?: boolean | undefined;
|
|
33
|
+
debug?: boolean | undefined;
|
|
34
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
35
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
36
|
+
blocking?: boolean | undefined;
|
|
37
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUsers>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateUsers(_response: AxiosResponse<iDeleteC6RestResponse<iUsers>>, request: iAPI<Modify<iUsers, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iUsers, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
43
|
+
cacheResults?: boolean | undefined;
|
|
44
|
+
fetchDependencies?: boolean | undefined;
|
|
45
|
+
debug?: boolean | undefined;
|
|
46
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
47
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
48
|
+
blocking?: boolean | undefined;
|
|
49
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUsers, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iUsers, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
53
|
+
cacheResults?: boolean | undefined;
|
|
54
|
+
fetchDependencies?: boolean | undefined;
|
|
55
|
+
debug?: boolean | undefined;
|
|
56
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
57
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
58
|
+
blocking?: boolean | undefined;
|
|
59
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iUsers>>;
|
|
60
|
+
Post: (request?: (Omit<iUsers, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
62
|
+
cacheResults?: boolean | undefined;
|
|
63
|
+
fetchDependencies?: boolean | undefined;
|
|
64
|
+
debug?: boolean | undefined;
|
|
65
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
66
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
67
|
+
blocking?: boolean | undefined;
|
|
68
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPostC6RestResponse<iUsers>>;
|
|
69
|
+
Put: (request?: (Omit<iUsers, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
71
|
+
cacheResults?: boolean | undefined;
|
|
72
|
+
fetchDependencies?: boolean | undefined;
|
|
73
|
+
debug?: boolean | undefined;
|
|
74
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
75
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
76
|
+
blocking?: boolean | undefined;
|
|
77
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iPutC6RestResponse<iUsers, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iUsers, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iUsers, never>[] | undefined;
|
|
80
|
+
cacheResults?: boolean | undefined;
|
|
81
|
+
fetchDependencies?: boolean | undefined;
|
|
82
|
+
debug?: boolean | undefined;
|
|
83
|
+
success?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
84
|
+
error?: string | ((r: AxiosResponse<any, any>) => string | void) | undefined;
|
|
85
|
+
blocking?: boolean | undefined;
|
|
86
|
+
}) | undefined) => import("@carbonorm/carbonnode").apiReturn<iDeleteC6RestResponse<iUsers, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { iUsers } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_users` (
|
|
4
|
+
`user_username` varchar(100) NOT NULL,
|
|
5
|
+
`user_password` varchar(225) NOT NULL,
|
|
6
|
+
`user_id` binary(16) NOT NULL,
|
|
7
|
+
`user_type` varchar(20) NOT NULL DEFAULT 'Athlete',
|
|
8
|
+
`user_sport` varchar(20) DEFAULT 'GOLF',
|
|
9
|
+
`user_session_id` varchar(225) DEFAULT NULL,
|
|
10
|
+
`user_facebook_id` varchar(225) DEFAULT NULL,
|
|
11
|
+
`user_first_name` varchar(25) NOT NULL,
|
|
12
|
+
`user_last_name` varchar(25) NOT NULL,
|
|
13
|
+
`user_profile_pic` longblob,
|
|
14
|
+
`user_profile_uri` varchar(225) DEFAULT NULL,
|
|
15
|
+
`user_cover_photo` longblob,
|
|
16
|
+
`user_birthday` varchar(9) DEFAULT NULL,
|
|
17
|
+
`user_gender` varchar(25) DEFAULT NULL,
|
|
18
|
+
`user_about_me` varchar(225) DEFAULT NULL,
|
|
19
|
+
`user_rank` int DEFAULT '0',
|
|
20
|
+
`user_email` varchar(50) NOT NULL,
|
|
21
|
+
`user_email_code` varchar(225) DEFAULT NULL,
|
|
22
|
+
`user_email_confirmed` tinyint DEFAULT '0' COMMENT 'need to change to enums, but no support in rest yet',
|
|
23
|
+
`user_generated_string` varchar(200) DEFAULT NULL,
|
|
24
|
+
`user_membership` int DEFAULT '0',
|
|
25
|
+
`user_deactivated` tinyint DEFAULT '0',
|
|
26
|
+
`user_last_login` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
27
|
+
`user_ip` varchar(20) NOT NULL,
|
|
28
|
+
`user_education_history` varchar(200) DEFAULT NULL,
|
|
29
|
+
`user_creation_date` datetime DEFAULT CURRENT_TIMESTAMP,
|
|
30
|
+
`user_education` varchar(255) DEFAULT NULL,
|
|
31
|
+
`user_notes` text,
|
|
32
|
+
`user_skills` varchar(255) DEFAULT NULL,
|
|
33
|
+
`user_is_moderator` tinyint(1) NOT NULL DEFAULT '0',
|
|
34
|
+
`user_is_administrator` tinyint(1) NOT NULL DEFAULT '0',
|
|
35
|
+
`user_is_caller` tinyint(1) NOT NULL DEFAULT '0',
|
|
36
|
+
PRIMARY KEY (`user_id`),
|
|
37
|
+
UNIQUE KEY `carbon_users_user_username_uindex` (`user_username`),
|
|
38
|
+
UNIQUE KEY `user_user_profile_uri_uindex` (`user_profile_uri`),
|
|
39
|
+
UNIQUE KEY `carbon_users_user_facebook_id_uindex` (`user_facebook_id`),
|
|
40
|
+
CONSTRAINT `user_entity_entity_pk_fk` FOREIGN KEY (`user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
41
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
42
|
+
**/
|
|
43
|
+
declare const Test_Data: iUsers;
|
|
44
|
+
export default Test_Data;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { tC6Tables } from "@carbonorm/carbonnode";
|
|
2
|
+
export interface iCarbonWebSocketProps {
|
|
3
|
+
url?: string;
|
|
4
|
+
timeoutSeconds?: number;
|
|
5
|
+
heartbeatSeconds?: number;
|
|
6
|
+
TABLES?: tC6Tables;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* @function connect
|
|
4
10
|
* This function establishes a connection with the websocket and also ensures constant reconnection if connection closes
|
|
5
11
|
**/
|
|
6
|
-
export declare function initiateWebsocket({ TABLES }?:
|
|
7
|
-
|
|
8
|
-
}): void;
|
|
9
|
-
export default function (): null;
|
|
12
|
+
export declare function initiateWebsocket({ TABLES, url, timeoutSeconds, heartbeatSeconds }?: iCarbonWebSocketProps): void;
|
|
13
|
+
export default function (props: iCarbonWebSocketProps): null;
|