@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.
Files changed (111) hide show
  1. package/dist/CarbonReact.d.ts +0 -3
  2. package/dist/api/hoc/getStatefulObjectWithWhere.d.ts +11 -0
  3. package/dist/api/hoc/watchInputElementChangeEvent.d.ts +2 -0
  4. package/dist/api/rest/C6.d.ts +579 -0
  5. package/dist/api/rest/Carbons.d.ts +88 -0
  6. package/dist/api/rest/Carbons.test.d.ts +14 -0
  7. package/dist/api/rest/Chat_Messages.d.ts +88 -0
  8. package/dist/api/rest/Chat_Messages.test.d.ts +20 -0
  9. package/dist/api/rest/Documentation.d.ts +88 -0
  10. package/dist/api/rest/Documentation.test.d.ts +11 -0
  11. package/dist/api/rest/Feature_Group_References.d.ts +88 -0
  12. package/dist/api/rest/Feature_Group_References.test.d.ts +13 -0
  13. package/dist/api/rest/Features.d.ts +88 -0
  14. package/dist/api/rest/Features.test.d.ts +14 -0
  15. package/dist/api/rest/Group_References.d.ts +88 -0
  16. package/dist/api/rest/Group_References.test.d.ts +13 -0
  17. package/dist/api/rest/Groups.d.ts +88 -0
  18. package/dist/api/rest/Groups.test.d.ts +15 -0
  19. package/dist/api/rest/History_Logs.d.ts +88 -0
  20. package/dist/api/rest/History_Logs.test.d.ts +13 -0
  21. package/dist/api/rest/Likes.d.ts +88 -0
  22. package/dist/api/rest/Likes.test.d.ts +13 -0
  23. package/dist/api/rest/Location_References.d.ts +88 -0
  24. package/dist/api/rest/Location_References.test.d.ts +14 -0
  25. package/dist/api/rest/Locations.d.ts +88 -0
  26. package/dist/api/rest/Locations.test.d.ts +18 -0
  27. package/dist/api/rest/Photos.d.ts +88 -0
  28. package/dist/api/rest/Photos.test.d.ts +20 -0
  29. package/dist/api/rest/Posts.d.ts +88 -0
  30. package/dist/api/rest/Posts.test.d.ts +22 -0
  31. package/dist/api/rest/Projects.d.ts +88 -0
  32. package/dist/api/rest/Projects.test.d.ts +21 -0
  33. package/dist/api/rest/Reports.d.ts +88 -0
  34. package/dist/api/rest/Reports.test.d.ts +11 -0
  35. package/dist/api/rest/Sessions.d.ts +88 -0
  36. package/dist/api/rest/Sessions.test.d.ts +14 -0
  37. package/dist/api/rest/Subscription.d.ts +88 -0
  38. package/dist/api/rest/Subscription.test.d.ts +20 -0
  39. package/dist/api/rest/User_Followers.d.ts +88 -0
  40. package/dist/api/rest/User_Followers.test.d.ts +16 -0
  41. package/dist/api/rest/User_Groups.d.ts +88 -0
  42. package/dist/api/rest/User_Groups.test.d.ts +13 -0
  43. package/dist/api/rest/User_Messages.d.ts +88 -0
  44. package/dist/api/rest/User_Messages.test.d.ts +20 -0
  45. package/dist/api/rest/User_Sessions.d.ts +88 -0
  46. package/dist/api/rest/User_Sessions.test.d.ts +14 -0
  47. package/dist/api/rest/User_Tasks.d.ts +88 -0
  48. package/dist/api/rest/User_Tasks.test.d.ts +22 -0
  49. package/dist/api/rest/Users.d.ts +88 -0
  50. package/dist/api/rest/Users.test.d.ts +44 -0
  51. package/dist/api/rest/WsLiveUpdates.d.ts +3 -0
  52. package/dist/components/WebSocket/CarbonWebSocket.d.ts +8 -4
  53. package/dist/index.cjs.js +5056 -2124
  54. package/dist/index.cjs.js.map +1 -1
  55. package/dist/index.d.ts +53 -0
  56. package/dist/index.esm.js +4957 -2105
  57. package/dist/index.esm.js.map +1 -1
  58. package/package.json +2 -2
  59. package/src/CarbonReact.tsx +0 -3
  60. package/src/api/hoc/getStatefulObjectWithWhere.tsx +17 -0
  61. package/src/api/hoc/watchInputElementChangeEvent.tsx +24 -0
  62. package/src/api/rest/C6.tsx +2687 -0
  63. package/src/api/rest/Carbons.test.tsx +128 -0
  64. package/src/api/rest/Carbons.tsx +145 -0
  65. package/src/api/rest/Chat_Messages.test.tsx +138 -0
  66. package/src/api/rest/Chat_Messages.tsx +151 -0
  67. package/src/api/rest/Documentation.test.tsx +128 -0
  68. package/src/api/rest/Documentation.tsx +142 -0
  69. package/src/api/rest/Feature_Group_References.test.tsx +126 -0
  70. package/src/api/rest/Feature_Group_References.tsx +144 -0
  71. package/src/api/rest/Features.test.tsx +128 -0
  72. package/src/api/rest/Features.tsx +145 -0
  73. package/src/api/rest/Group_References.test.tsx +126 -0
  74. package/src/api/rest/Group_References.tsx +144 -0
  75. package/src/api/rest/Groups.test.tsx +130 -0
  76. package/src/api/rest/Groups.tsx +146 -0
  77. package/src/api/rest/History_Logs.test.tsx +130 -0
  78. package/src/api/rest/History_Logs.tsx +144 -0
  79. package/src/api/rest/Likes.test.tsx +126 -0
  80. package/src/api/rest/Likes.tsx +144 -0
  81. package/src/api/rest/Location_References.test.tsx +128 -0
  82. package/src/api/rest/Location_References.tsx +145 -0
  83. package/src/api/rest/Locations.test.tsx +137 -0
  84. package/src/api/rest/Locations.tsx +149 -0
  85. package/src/api/rest/Photos.test.tsx +139 -0
  86. package/src/api/rest/Photos.tsx +151 -0
  87. package/src/api/rest/Posts.test.tsx +142 -0
  88. package/src/api/rest/Posts.tsx +153 -0
  89. package/src/api/rest/Projects.test.tsx +144 -0
  90. package/src/api/rest/Projects.tsx +152 -0
  91. package/src/api/rest/Reports.test.tsx +128 -0
  92. package/src/api/rest/Reports.tsx +142 -0
  93. package/src/api/rest/Sessions.test.tsx +133 -0
  94. package/src/api/rest/Sessions.tsx +145 -0
  95. package/src/api/rest/Subscription.test.tsx +138 -0
  96. package/src/api/rest/Subscription.tsx +151 -0
  97. package/src/api/rest/User_Followers.test.tsx +130 -0
  98. package/src/api/rest/User_Followers.tsx +147 -0
  99. package/src/api/rest/User_Groups.test.tsx +126 -0
  100. package/src/api/rest/User_Groups.tsx +144 -0
  101. package/src/api/rest/User_Messages.test.tsx +137 -0
  102. package/src/api/rest/User_Messages.tsx +151 -0
  103. package/src/api/rest/User_Sessions.test.tsx +133 -0
  104. package/src/api/rest/User_Sessions.tsx +145 -0
  105. package/src/api/rest/User_Tasks.test.tsx +141 -0
  106. package/src/api/rest/User_Tasks.tsx +153 -0
  107. package/src/api/rest/Users.test.tsx +193 -0
  108. package/src/api/rest/Users.tsx +175 -0
  109. package/src/api/rest/WsLiveUpdates.tsx +150 -0
  110. package/src/components/WebSocket/CarbonWebSocket.tsx +22 -11
  111. 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 { iGroups } from "./C6";
5
+ export declare const Get: (request?: (Omit<iGroups, never> & {
6
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups>>;
14
+ type PutCustomAndRequiredFields = {};
15
+ type PutRequestTableOverrides = {};
16
+ export declare function putStateGroups(response: AxiosResponse<iPutC6RestResponse<iGroups>>, request: iAPI<Modify<iGroups, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
17
+ export declare const Put: (request?: (Omit<iGroups, never> & {
18
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups, any>>;
26
+ type PostCustomAndRequiredFields = {};
27
+ type PostRequestTableOverrides = {};
28
+ export declare function postStateGroups(response: AxiosResponse<iPostC6RestResponse<iGroups>>, request: iAPI<Modify<iGroups, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
29
+ export declare const Post: (request?: (Omit<iGroups, never> & {
30
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups>>;
38
+ type DeleteCustomAndRequiredFields = {};
39
+ type DeleteRequestTableOverrides = {};
40
+ export declare function deleteStateGroups(_response: AxiosResponse<iDeleteC6RestResponse<iGroups>>, request: iAPI<Modify<iGroups, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
41
+ export declare const Delete: (request?: (Omit<iGroups, never> & {
42
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups, any>>;
50
+ declare const _default: {
51
+ Get: (request?: (Omit<iGroups, never> & {
52
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups>>;
60
+ Post: (request?: (Omit<iGroups, never> & {
61
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups>>;
69
+ Put: (request?: (Omit<iGroups, never> & {
70
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups, any>>;
78
+ Delete: (request?: (Omit<iGroups, never> & {
79
+ dataInsertMultipleRows?: Omit<iGroups, 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<iGroups, any>>;
87
+ };
88
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { iGroups } from "api/rest/C6";
2
+ /**
3
+ CREATE TABLE `carbon_groups` (
4
+ `group_name` varchar(20) NOT NULL,
5
+ `entity_id` binary(16) NOT NULL,
6
+ `created_by` binary(16) NOT NULL,
7
+ `creation_date` datetime DEFAULT CURRENT_TIMESTAMP,
8
+ PRIMARY KEY (`entity_id`),
9
+ KEY `carbon_feature_groups_carbons_entity_pk_fk_2` (`created_by`),
10
+ CONSTRAINT `carbon_feature_groups_carbons_entity_pk_fk` FOREIGN KEY (`entity_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
11
+ CONSTRAINT `carbon_feature_groups_carbons_entity_pk_fk_2` FOREIGN KEY (`created_by`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
12
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
13
+ **/
14
+ declare const Test_Data: iGroups;
15
+ 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 { iHistory_Logs } from "./C6";
5
+ export declare const Get: (request?: (Omit<iHistory_Logs, never> & {
6
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs>>;
14
+ type PutCustomAndRequiredFields = {};
15
+ type PutRequestTableOverrides = {};
16
+ export declare function putStateHistory_Logs(response: AxiosResponse<iPutC6RestResponse<iHistory_Logs>>, request: iAPI<Modify<iHistory_Logs, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
17
+ export declare const Put: (request?: (Omit<iHistory_Logs, never> & {
18
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs, any>>;
26
+ type PostCustomAndRequiredFields = {};
27
+ type PostRequestTableOverrides = {};
28
+ export declare function postStateHistory_Logs(response: AxiosResponse<iPostC6RestResponse<iHistory_Logs>>, request: iAPI<Modify<iHistory_Logs, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
29
+ export declare const Post: (request?: (Omit<iHistory_Logs, never> & {
30
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs>>;
38
+ type DeleteCustomAndRequiredFields = {};
39
+ type DeleteRequestTableOverrides = {};
40
+ export declare function deleteStateHistory_Logs(_response: AxiosResponse<iDeleteC6RestResponse<iHistory_Logs>>, request: iAPI<Modify<iHistory_Logs, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
41
+ export declare const Delete: (request?: (Omit<iHistory_Logs, never> & {
42
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs, any>>;
50
+ declare const _default: {
51
+ Get: (request?: (Omit<iHistory_Logs, never> & {
52
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs>>;
60
+ Post: (request?: (Omit<iHistory_Logs, never> & {
61
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs>>;
69
+ Put: (request?: (Omit<iHistory_Logs, never> & {
70
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs, any>>;
78
+ Delete: (request?: (Omit<iHistory_Logs, never> & {
79
+ dataInsertMultipleRows?: Omit<iHistory_Logs, 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<iHistory_Logs, any>>;
87
+ };
88
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { iHistory_Logs } from "api/rest/C6";
2
+ /**
3
+ CREATE TABLE `carbon_history_logs` (
4
+ `history_uuid` binary(16) NOT NULL,
5
+ `history_table` varchar(255) DEFAULT NULL,
6
+ `history_type` varchar(20) DEFAULT NULL,
7
+ `history_data` json DEFAULT NULL,
8
+ `history_original_query` varchar(1024) DEFAULT NULL,
9
+ `history_time` datetime DEFAULT CURRENT_TIMESTAMP
10
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
11
+ **/
12
+ declare const Test_Data: iHistory_Logs;
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 { iLikes } from "./C6";
5
+ export declare const Get: (request?: (Omit<iLikes, never> & {
6
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes>>;
14
+ type PutCustomAndRequiredFields = {};
15
+ type PutRequestTableOverrides = {};
16
+ export declare function putStateLikes(response: AxiosResponse<iPutC6RestResponse<iLikes>>, request: iAPI<Modify<iLikes, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
17
+ export declare const Put: (request?: (Omit<iLikes, never> & {
18
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes, any>>;
26
+ type PostCustomAndRequiredFields = {};
27
+ type PostRequestTableOverrides = {};
28
+ export declare function postStateLikes(response: AxiosResponse<iPostC6RestResponse<iLikes>>, request: iAPI<Modify<iLikes, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
29
+ export declare const Post: (request?: (Omit<iLikes, never> & {
30
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes>>;
38
+ type DeleteCustomAndRequiredFields = {};
39
+ type DeleteRequestTableOverrides = {};
40
+ export declare function deleteStateLikes(_response: AxiosResponse<iDeleteC6RestResponse<iLikes>>, request: iAPI<Modify<iLikes, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
41
+ export declare const Delete: (request?: (Omit<iLikes, never> & {
42
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes, any>>;
50
+ declare const _default: {
51
+ Get: (request?: (Omit<iLikes, never> & {
52
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes>>;
60
+ Post: (request?: (Omit<iLikes, never> & {
61
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes>>;
69
+ Put: (request?: (Omit<iLikes, never> & {
70
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes, any>>;
78
+ Delete: (request?: (Omit<iLikes, never> & {
79
+ dataInsertMultipleRows?: Omit<iLikes, 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<iLikes, any>>;
87
+ };
88
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { iLikes } from "api/rest/C6";
2
+ /**
3
+ CREATE TABLE `carbon_likes` (
4
+ `like_user_id` binary(16) NOT NULL,
5
+ `like_entity_id` binary(16) NOT NULL,
6
+ KEY `carbon_likes_carbon_carbons_entity_pk_fk` (`like_user_id`),
7
+ KEY `carbon_likes_carbon_carbons_entity_pk_fk2` (`like_entity_id`),
8
+ CONSTRAINT `carbon_likes_carbon_carbons_entity_pk_fk` FOREIGN KEY (`like_user_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
9
+ CONSTRAINT `carbon_likes_carbon_carbons_entity_pk_fk2` FOREIGN KEY (`like_entity_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: iLikes;
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 { iLocation_References } from "./C6";
5
+ export declare const Get: (request?: (Omit<iLocation_References, never> & {
6
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References>>;
14
+ type PutCustomAndRequiredFields = {};
15
+ type PutRequestTableOverrides = {};
16
+ export declare function putStateLocation_References(response: AxiosResponse<iPutC6RestResponse<iLocation_References>>, request: iAPI<Modify<iLocation_References, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
17
+ export declare const Put: (request?: (Omit<iLocation_References, never> & {
18
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References, any>>;
26
+ type PostCustomAndRequiredFields = {};
27
+ type PostRequestTableOverrides = {};
28
+ export declare function postStateLocation_References(response: AxiosResponse<iPostC6RestResponse<iLocation_References>>, request: iAPI<Modify<iLocation_References, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
29
+ export declare const Post: (request?: (Omit<iLocation_References, never> & {
30
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References>>;
38
+ type DeleteCustomAndRequiredFields = {};
39
+ type DeleteRequestTableOverrides = {};
40
+ export declare function deleteStateLocation_References(_response: AxiosResponse<iDeleteC6RestResponse<iLocation_References>>, request: iAPI<Modify<iLocation_References, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
41
+ export declare const Delete: (request?: (Omit<iLocation_References, never> & {
42
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References, any>>;
50
+ declare const _default: {
51
+ Get: (request?: (Omit<iLocation_References, never> & {
52
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References>>;
60
+ Post: (request?: (Omit<iLocation_References, never> & {
61
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References>>;
69
+ Put: (request?: (Omit<iLocation_References, never> & {
70
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References, any>>;
78
+ Delete: (request?: (Omit<iLocation_References, never> & {
79
+ dataInsertMultipleRows?: Omit<iLocation_References, 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<iLocation_References, any>>;
87
+ };
88
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { iLocation_References } from "api/rest/C6";
2
+ /**
3
+ CREATE TABLE `carbon_location_references` (
4
+ `entity_reference` binary(16) NOT NULL,
5
+ `location_reference` binary(16) NOT NULL,
6
+ `location_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
7
+ KEY `carbon_location_references_carbons_entity_pk_fk` (`entity_reference`),
8
+ KEY `carbon_location_references_carbons_entity_pk_fk_2` (`location_reference`),
9
+ CONSTRAINT `carbon_location_references_carbons_entity_pk_fk` FOREIGN KEY (`entity_reference`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
10
+ CONSTRAINT `carbon_location_references_carbons_entity_pk_fk_2` FOREIGN KEY (`location_reference`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
11
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
12
+ **/
13
+ declare const Test_Data: iLocation_References;
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 { iLocations } from "./C6";
5
+ export declare const Get: (request?: (Omit<iLocations, never> & {
6
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations>>;
14
+ type PutCustomAndRequiredFields = {};
15
+ type PutRequestTableOverrides = {};
16
+ export declare function putStateLocations(response: AxiosResponse<iPutC6RestResponse<iLocations>>, request: iAPI<Modify<iLocations, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
17
+ export declare const Put: (request?: (Omit<iLocations, never> & {
18
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations, any>>;
26
+ type PostCustomAndRequiredFields = {};
27
+ type PostRequestTableOverrides = {};
28
+ export declare function postStateLocations(response: AxiosResponse<iPostC6RestResponse<iLocations>>, request: iAPI<Modify<iLocations, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
29
+ export declare const Post: (request?: (Omit<iLocations, never> & {
30
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations>>;
38
+ type DeleteCustomAndRequiredFields = {};
39
+ type DeleteRequestTableOverrides = {};
40
+ export declare function deleteStateLocations(_response: AxiosResponse<iDeleteC6RestResponse<iLocations>>, request: iAPI<Modify<iLocations, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
41
+ export declare const Delete: (request?: (Omit<iLocations, never> & {
42
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations, any>>;
50
+ declare const _default: {
51
+ Get: (request?: (Omit<iLocations, never> & {
52
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations>>;
60
+ Post: (request?: (Omit<iLocations, never> & {
61
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations>>;
69
+ Put: (request?: (Omit<iLocations, never> & {
70
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations, any>>;
78
+ Delete: (request?: (Omit<iLocations, never> & {
79
+ dataInsertMultipleRows?: Omit<iLocations, 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<iLocations, any>>;
87
+ };
88
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { iLocations } from "api/rest/C6";
2
+ /**
3
+ CREATE TABLE `carbon_locations` (
4
+ `entity_id` binary(16) NOT NULL,
5
+ `latitude` varchar(225) DEFAULT NULL,
6
+ `longitude` varchar(225) DEFAULT NULL,
7
+ `street` varchar(225) DEFAULT NULL,
8
+ `city` varchar(40) DEFAULT NULL,
9
+ `state` varchar(10) DEFAULT NULL,
10
+ `elevation` varchar(40) DEFAULT NULL,
11
+ `zip` int DEFAULT NULL,
12
+ PRIMARY KEY (`entity_id`),
13
+ UNIQUE KEY `entity_location_entity_id_uindex` (`entity_id`),
14
+ CONSTRAINT `entity_location_entity_entity_pk_fk` FOREIGN KEY (`entity_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE
15
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
16
+ **/
17
+ declare const Test_Data: iLocations;
18
+ 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 { iPhotos } from "./C6";
5
+ export declare const Get: (request?: (Omit<iPhotos, never> & {
6
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos>>;
14
+ type PutCustomAndRequiredFields = {};
15
+ type PutRequestTableOverrides = {};
16
+ export declare function putStatePhotos(response: AxiosResponse<iPutC6RestResponse<iPhotos>>, request: iAPI<Modify<iPhotos, PutRequestTableOverrides>> & PutCustomAndRequiredFields): void;
17
+ export declare const Put: (request?: (Omit<iPhotos, never> & {
18
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos, any>>;
26
+ type PostCustomAndRequiredFields = {};
27
+ type PostRequestTableOverrides = {};
28
+ export declare function postStatePhotos(response: AxiosResponse<iPostC6RestResponse<iPhotos>>, request: iAPI<Modify<iPhotos, PostRequestTableOverrides>> & PostCustomAndRequiredFields, id: string | number | boolean): void;
29
+ export declare const Post: (request?: (Omit<iPhotos, never> & {
30
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos>>;
38
+ type DeleteCustomAndRequiredFields = {};
39
+ type DeleteRequestTableOverrides = {};
40
+ export declare function deleteStatePhotos(_response: AxiosResponse<iDeleteC6RestResponse<iPhotos>>, request: iAPI<Modify<iPhotos, DeleteRequestTableOverrides>> & DeleteCustomAndRequiredFields): void;
41
+ export declare const Delete: (request?: (Omit<iPhotos, never> & {
42
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos, any>>;
50
+ declare const _default: {
51
+ Get: (request?: (Omit<iPhotos, never> & {
52
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos>>;
60
+ Post: (request?: (Omit<iPhotos, never> & {
61
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos>>;
69
+ Put: (request?: (Omit<iPhotos, never> & {
70
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos, any>>;
78
+ Delete: (request?: (Omit<iPhotos, never> & {
79
+ dataInsertMultipleRows?: Omit<iPhotos, 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<iPhotos, any>>;
87
+ };
88
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { iPhotos } from "api/rest/C6";
2
+ /**
3
+ CREATE TABLE `carbon_photos` (
4
+ `parent_id` binary(16) NOT NULL,
5
+ `photo_id` binary(16) NOT NULL,
6
+ `user_id` binary(16) NOT NULL,
7
+ `photo_src` longblob NOT NULL,
8
+ `photo_description` text,
9
+ `photo_upload_date` datetime DEFAULT CURRENT_TIMESTAMP,
10
+ PRIMARY KEY (`photo_id`),
11
+ UNIQUE KEY `entity_photos_photo_id_uindex` (`photo_id`),
12
+ KEY `photos_entity_user_pk_fk` (`user_id`),
13
+ KEY `carbon_photos_carbon_carbons_entity_pk_fk2` (`parent_id`),
14
+ CONSTRAINT `carbon_photos_carbon_carbons_entity_pk_fk` FOREIGN KEY (`photo_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
15
+ CONSTRAINT `carbon_photos_carbon_carbons_entity_pk_fk2` FOREIGN KEY (`parent_id`) REFERENCES `carbon_carbons` (`entity_pk`) ON DELETE CASCADE ON UPDATE CASCADE,
16
+ CONSTRAINT `carbon_photos_carbon_carbons_entity_pk_fk3` FOREIGN KEY (`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: iPhotos;
20
+ export default Test_Data;