@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,88 @@
|
|
|
1
|
+
import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { iAPI, Modify } from "restRequest";
|
|
4
|
+
import { iPosts } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iPosts, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStatePosts(response: AxiosResponse<iPutC6RestResponse<iPosts>>, request: iAPI<Modify<iPosts, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iPosts, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStatePosts(response: AxiosResponse<iPostC6RestResponse<iPosts>>, request: iAPI<Modify<iPosts, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iPosts, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStatePosts(_response: AxiosResponse<iDeleteC6RestResponse<iPosts>>, request: iAPI<Modify<iPosts, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iPosts, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iPosts, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts>>;
|
|
60
|
+
Post: (request?: (Omit<iPosts, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts>>;
|
|
69
|
+
Put: (request?: (Omit<iPosts, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iPosts, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iPosts, 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<iPosts, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { iPosts } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_posts` (
|
|
4
|
+
`post_id` binary(16) NOT NULL,
|
|
5
|
+
`post_data` blob,
|
|
6
|
+
`post_author` binary(16) DEFAULT NULL,
|
|
7
|
+
`post_status` varchar(16) DEFAULT NULL,
|
|
8
|
+
`post_created_datetime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
+
`post_project_id` binary(16) DEFAULT NULL,
|
|
10
|
+
`post_parent_id` binary(16) DEFAULT NULL,
|
|
11
|
+
PRIMARY KEY (`post_id`),
|
|
12
|
+
KEY `carbon_posts_carbon_carbons_entity_pk_fk2` (`post_author`),
|
|
13
|
+
KEY `carbon_posts_carbon_carbons_entity_pk_fk3` (`post_project_id`),
|
|
14
|
+
KEY `carbon_posts_carbon_carbons_entity_pk_fk4` (`post_parent_id`),
|
|
15
|
+
CONSTRAINT `carbon_posts_carbon_carbons_entity_pk_fk` FOREIGN KEY (`post_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
16
|
+
CONSTRAINT `carbon_posts_carbon_carbons_entity_pk_fk2` FOREIGN KEY (`post_author`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
17
|
+
CONSTRAINT `carbon_posts_carbon_carbons_entity_pk_fk3` FOREIGN KEY (`post_project_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
18
|
+
CONSTRAINT `carbon_posts_carbon_carbons_entity_pk_fk4` FOREIGN KEY (`post_parent_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: iPosts;
|
|
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 { iProjects } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iProjects, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateProjects(response: AxiosResponse<iPutC6RestResponse<iProjects>>, request: iAPI<Modify<iProjects, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iProjects, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateProjects(response: AxiosResponse<iPostC6RestResponse<iProjects>>, request: iAPI<Modify<iProjects, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iProjects, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateProjects(_response: AxiosResponse<iDeleteC6RestResponse<iProjects>>, request: iAPI<Modify<iProjects, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iProjects, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iProjects, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects>>;
|
|
60
|
+
Post: (request?: (Omit<iProjects, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects>>;
|
|
69
|
+
Put: (request?: (Omit<iProjects, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iProjects, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iProjects, 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<iProjects, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { iProjects } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_projects` (
|
|
4
|
+
`project_id` binary(16) NOT NULL,
|
|
5
|
+
`project_name` varchar(255) DEFAULT NULL,
|
|
6
|
+
`project_start_date` datetime DEFAULT NULL,
|
|
7
|
+
`project_end_date` datetime DEFAULT NULL,
|
|
8
|
+
`project_description` text,
|
|
9
|
+
`project_leader` binary(16) DEFAULT NULL,
|
|
10
|
+
`project_cost` float DEFAULT NULL,
|
|
11
|
+
`project_overview_top` varchar(255) DEFAULT NULL COMMENT 'ie estimated monthly return',
|
|
12
|
+
`project_overview_bottom` varchar(255) DEFAULT NULL,
|
|
13
|
+
`project_ends` tinyint(1) DEFAULT NULL,
|
|
14
|
+
PRIMARY KEY (`project_id`),
|
|
15
|
+
KEY `carbon_projects_carbon_carbons_entity_pk_fk2` (`project_leader`),
|
|
16
|
+
CONSTRAINT `carbon_projects_carbon_carbons_entity_pk_fk` FOREIGN KEY (`project_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
17
|
+
CONSTRAINT `carbon_projects_carbon_carbons_entity_pk_fk2` FOREIGN KEY (`project_leader`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
18
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
19
|
+
**/
|
|
20
|
+
declare const Test_Data: iProjects;
|
|
21
|
+
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 { iReports } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iReports, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateReports(response: AxiosResponse<iPutC6RestResponse<iReports>>, request: iAPI<Modify<iReports, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iReports, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateReports(response: AxiosResponse<iPostC6RestResponse<iReports>>, request: iAPI<Modify<iReports, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iReports, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateReports(_response: AxiosResponse<iDeleteC6RestResponse<iReports>>, request: iAPI<Modify<iReports, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iReports, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iReports, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports>>;
|
|
60
|
+
Post: (request?: (Omit<iReports, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports>>;
|
|
69
|
+
Put: (request?: (Omit<iReports, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iReports, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iReports, 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<iReports, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { iReports } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_reports` (
|
|
4
|
+
`log_level` varchar(20) DEFAULT NULL,
|
|
5
|
+
`report` text,
|
|
6
|
+
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
7
|
+
`call_trace` text NOT NULL
|
|
8
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
9
|
+
**/
|
|
10
|
+
declare const Test_Data: iReports;
|
|
11
|
+
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 { iSessions } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iSessions, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateSessions(response: AxiosResponse<iPutC6RestResponse<iSessions>>, request: iAPI<Modify<iSessions, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iSessions, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateSessions(response: AxiosResponse<iPostC6RestResponse<iSessions>>, request: iAPI<Modify<iSessions, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iSessions, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateSessions(_response: AxiosResponse<iDeleteC6RestResponse<iSessions>>, request: iAPI<Modify<iSessions, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iSessions, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iSessions, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions>>;
|
|
60
|
+
Post: (request?: (Omit<iSessions, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions>>;
|
|
69
|
+
Put: (request?: (Omit<iSessions, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iSessions, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iSessions, 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<iSessions, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { iSessions } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_sessions` (
|
|
4
|
+
`user_id` binary(16) NOT NULL,
|
|
5
|
+
`user_ip` varchar(20) 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: iSessions;
|
|
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 { iSubscription } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iSubscription, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateSubscription(response: AxiosResponse<iPutC6RestResponse<iSubscription>>, request: iAPI<Modify<iSubscription, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iSubscription, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateSubscription(response: AxiosResponse<iPostC6RestResponse<iSubscription>>, request: iAPI<Modify<iSubscription, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iSubscription, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateSubscription(_response: AxiosResponse<iDeleteC6RestResponse<iSubscription>>, request: iAPI<Modify<iSubscription, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iSubscription, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iSubscription, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription>>;
|
|
60
|
+
Post: (request?: (Omit<iSubscription, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription>>;
|
|
69
|
+
Put: (request?: (Omit<iSubscription, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iSubscription, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iSubscription, 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<iSubscription, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { iSubscription } from "api/rest/C6";
|
|
2
|
+
/**
|
|
3
|
+
CREATE TABLE `carbon_subscription` (
|
|
4
|
+
`subscription_id` binary(16) NOT NULL,
|
|
5
|
+
`subscription_to_entity_id` binary(16) DEFAULT NULL,
|
|
6
|
+
`subscription_for_entity_id` binary(16) DEFAULT NULL,
|
|
7
|
+
`subscription_price` varchar(16) DEFAULT NULL,
|
|
8
|
+
`subscription_start_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
+
`subscription_end_date` datetime DEFAULT NULL,
|
|
10
|
+
`subscription_transaction_id` varchar(255) DEFAULT NULL,
|
|
11
|
+
PRIMARY KEY (`subscription_id`),
|
|
12
|
+
KEY `carbon_subscription_carbon_carbons_entity_pk_fk2` (`subscription_to_entity_id`),
|
|
13
|
+
KEY `carbon_subscription_carbon_carbons_entity_pk_fk3` (`subscription_for_entity_id`),
|
|
14
|
+
CONSTRAINT `carbon_subscription_carbon_carbons_entity_pk_fk` FOREIGN KEY (`subscription_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
15
|
+
CONSTRAINT `carbon_subscription_carbon_carbons_entity_pk_fk2` FOREIGN KEY (`subscription_to_entity_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
|
|
16
|
+
CONSTRAINT `carbon_subscription_carbon_carbons_entity_pk_fk3` FOREIGN KEY (`subscription_for_entity_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: iSubscription;
|
|
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_Followers } from "./C6";
|
|
5
|
+
export declare const Get: (request?: (Omit<iUser_Followers, never> & {
|
|
6
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers>>;
|
|
14
|
+
type PutCustomAndRequiredFields = {};
|
|
15
|
+
type PutRequestTableOverrides = {};
|
|
16
|
+
export declare function putStateUser_Followers(response: AxiosResponse<iPutC6RestResponse<iUser_Followers>>, request: iAPI<Modify<iUser_Followers, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
|
|
17
|
+
export declare const Put: (request?: (Omit<iUser_Followers, never> & {
|
|
18
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers, any>>;
|
|
26
|
+
type PostCustomAndRequiredFields = {};
|
|
27
|
+
type PostRequestTableOverrides = {};
|
|
28
|
+
export declare function postStateUser_Followers(response: AxiosResponse<iPostC6RestResponse<iUser_Followers>>, request: iAPI<Modify<iUser_Followers, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
|
|
29
|
+
export declare const Post: (request?: (Omit<iUser_Followers, never> & {
|
|
30
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers>>;
|
|
38
|
+
type DeleteCustomAndRequiredFields = {};
|
|
39
|
+
type DeleteRequestTableOverrides = {};
|
|
40
|
+
export declare function deleteStateUser_Followers(_response: AxiosResponse<iDeleteC6RestResponse<iUser_Followers>>, request: iAPI<Modify<iUser_Followers, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
|
|
41
|
+
export declare const Delete: (request?: (Omit<iUser_Followers, never> & {
|
|
42
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers, any>>;
|
|
50
|
+
declare const _default: {
|
|
51
|
+
Get: (request?: (Omit<iUser_Followers, never> & {
|
|
52
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers>>;
|
|
60
|
+
Post: (request?: (Omit<iUser_Followers, never> & {
|
|
61
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers>>;
|
|
69
|
+
Put: (request?: (Omit<iUser_Followers, never> & {
|
|
70
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers, any>>;
|
|
78
|
+
Delete: (request?: (Omit<iUser_Followers, never> & {
|
|
79
|
+
dataInsertMultipleRows?: Omit<iUser_Followers, 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_Followers, any>>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|