@carbonorm/carbonnode 3.5.9 → 3.6.0

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 (80) hide show
  1. package/dist/api/orm/builders/ConditionBuilder.d.ts +1 -0
  2. package/dist/index.cjs.js +1252 -1002
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.js +1254 -1004
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +2 -5
  7. package/scripts/generateRestBindings.cjs +1 -1
  8. package/scripts/generateRestBindings.ts +1 -1
  9. package/src/api/convertForRequestBody.ts +1 -7
  10. package/src/api/executors/HttpExecutor.ts +1 -3
  11. package/src/api/executors/SqlExecutor.ts +2 -1
  12. package/src/api/orm/builders/ConditionBuilder.ts +20 -9
  13. package/src/api/orm/queries/DeleteQueryBuilder.ts +1 -0
  14. package/src/api/orm/queries/PostQueryBuilder.ts +1 -0
  15. package/src/api/orm/queries/SelectQueryBuilder.ts +1 -0
  16. package/src/api/orm/queries/UpdateQueryBuilder.ts +1 -0
  17. package/dist/api/builders/queryHelpers.d.ts +0 -4
  18. package/dist/api/builders/sqlBuilder.d.ts +0 -33
  19. package/dist/api/carbonSqlExecutor.d.ts +0 -17
  20. package/dist/api/interfaces/ormInterfaces.d.ts +0 -87
  21. package/dist/api/orm/SqlBuilder.d.ts +0 -17
  22. package/dist/api/rest/Blog_Categories.d.ts +0 -37
  23. package/dist/api/rest/Blog_Categories.test.d.ts +0 -11
  24. package/dist/api/rest/Blog_Images.d.ts +0 -37
  25. package/dist/api/rest/Blog_Images.test.d.ts +0 -15
  26. package/dist/api/rest/Blog_Post_Categories.d.ts +0 -37
  27. package/dist/api/rest/Blog_Post_Categories.test.d.ts +0 -13
  28. package/dist/api/rest/Blog_Post_Tags.d.ts +0 -37
  29. package/dist/api/rest/Blog_Post_Tags.test.d.ts +0 -13
  30. package/dist/api/rest/Blog_Posts.d.ts +0 -37
  31. package/dist/api/rest/Blog_Posts.test.d.ts +0 -21
  32. package/dist/api/rest/Blog_Tags.d.ts +0 -37
  33. package/dist/api/rest/Blog_Tags.test.d.ts +0 -11
  34. package/dist/api/rest/C6.d.ts +0 -1000
  35. package/dist/api/rest/Cache.d.ts +0 -37
  36. package/dist/api/rest/Cache.test.d.ts +0 -12
  37. package/dist/api/rest/Cities.d.ts +0 -37
  38. package/dist/api/rest/Cities.test.d.ts +0 -17
  39. package/dist/api/rest/Counties.d.ts +0 -37
  40. package/dist/api/rest/Counties.test.d.ts +0 -18
  41. package/dist/api/rest/Countries.d.ts +0 -37
  42. package/dist/api/rest/Countries.test.d.ts +0 -24
  43. package/dist/api/rest/Geometries.d.ts +0 -37
  44. package/dist/api/rest/Geometries.test.d.ts +0 -16
  45. package/dist/api/rest/Images.d.ts +0 -37
  46. package/dist/api/rest/Images.test.d.ts +0 -16
  47. package/dist/api/rest/Land_Section_Info.d.ts +0 -37
  48. package/dist/api/rest/Land_Section_Info.test.d.ts +0 -15
  49. package/dist/api/rest/Neighborhoods.d.ts +0 -37
  50. package/dist/api/rest/Neighborhoods.test.d.ts +0 -12
  51. package/dist/api/rest/Parcel_Building_Details.d.ts +0 -37
  52. package/dist/api/rest/Parcel_Building_Details.test.d.ts +0 -40
  53. package/dist/api/rest/Parcel_Neighborhoods.d.ts +0 -37
  54. package/dist/api/rest/Parcel_Neighborhoods.test.d.ts +0 -15
  55. package/dist/api/rest/Parcel_Owners.d.ts +0 -37
  56. package/dist/api/rest/Parcel_Owners.test.d.ts +0 -23
  57. package/dist/api/rest/Parcel_Sales.d.ts +0 -37
  58. package/dist/api/rest/Parcel_Sales.test.d.ts +0 -19
  59. package/dist/api/rest/Parcel_Tax_History.d.ts +0 -37
  60. package/dist/api/rest/Parcel_Tax_History.test.d.ts +0 -24
  61. package/dist/api/rest/Parcels.d.ts +0 -37
  62. package/dist/api/rest/Parcels.test.d.ts +0 -42
  63. package/dist/api/rest/Payment_Charge_Logs.d.ts +0 -37
  64. package/dist/api/rest/Payment_Charge_Logs.test.d.ts +0 -17
  65. package/dist/api/rest/Payment_Subscriptions.d.ts +0 -37
  66. package/dist/api/rest/Payment_Subscriptions.test.d.ts +0 -20
  67. package/dist/api/rest/Property_Units.d.ts +0 -37
  68. package/dist/api/rest/Property_Units.test.d.ts +0 -55
  69. package/dist/api/rest/Sources.d.ts +0 -37
  70. package/dist/api/rest/Sources.test.d.ts +0 -17
  71. package/dist/api/rest/States.d.ts +0 -37
  72. package/dist/api/rest/States.test.d.ts +0 -20
  73. package/dist/api/rest/Tax_Districts.d.ts +0 -37
  74. package/dist/api/rest/Tax_Districts.test.d.ts +0 -12
  75. package/dist/api/rest/Users.d.ts +0 -37
  76. package/dist/api/rest/Users.test.d.ts +0 -14
  77. package/dist/api/rest/Valuation_Reports.d.ts +0 -37
  78. package/dist/api/rest/Valuation_Reports.test.d.ts +0 -36
  79. package/dist/api/rest/Zip_Codes.d.ts +0 -37
  80. package/dist/api/rest/Zip_Codes.test.d.ts +0 -15
@@ -1,87 +0,0 @@
1
- import { apiReturn, iAPI, iDeleteC6RestResponse, iPostC6RestResponse, iGetC6RestResponse, iPutC6RestResponse, RequestGetPutDeleteBody } from "api/restRequest";
2
- import { AxiosResponse } from "axios";
3
- export interface stringMap {
4
- [key: string]: string;
5
- }
6
- export interface stringNumberMap {
7
- [key: string]: string | number;
8
- }
9
- export interface RegExpMap {
10
- [key: string]: RegExp | RegExpMap;
11
- }
12
- export interface complexMap {
13
- [key: string]: stringMap | stringNumberMap | stringMap[] | RegExpMap;
14
- }
15
- export interface iTypeValidation {
16
- MYSQL_TYPE: string;
17
- MAX_LENGTH: string;
18
- AUTO_INCREMENT: boolean;
19
- SKIP_COLUMN_IN_POST: boolean;
20
- }
21
- export type iRestReactiveLifecycle<T extends RequestGetPutDeleteBody> = {
22
- beforeProcessing?: (args: {
23
- request: T[];
24
- requestMeta?: any;
25
- }) => void | Promise<void>;
26
- beforeExecution?: (args: {
27
- request: T[];
28
- requestMeta?: any;
29
- }) => void | Promise<void>;
30
- afterExecution?: (args: {
31
- response: T[];
32
- request: T[];
33
- responseMeta?: any;
34
- }) => void | Promise<void>;
35
- afterCommit?: (args: {
36
- response: T[];
37
- request: T[];
38
- responseMeta?: any;
39
- }) => void | Promise<void>;
40
- };
41
- export interface iConstraint {
42
- TABLE: string;
43
- COLUMN: string;
44
- CONSTRAINT: string;
45
- }
46
- export interface iC6RestfulModel<RestShortTableNames extends string = string> {
47
- TABLE_NAME: RestShortTableNames;
48
- PRIMARY: string[];
49
- PRIMARY_SHORT: string[];
50
- COLUMNS: stringMap;
51
- LIFECYCLE_HOOKS: iRestReactiveLifecycle<RequestGetPutDeleteBody>[];
52
- REGEX_VALIDATION: RegExpMap;
53
- TYPE_VALIDATION: {
54
- [key: string]: iTypeValidation;
55
- };
56
- TABLE_REFERENCES: {
57
- [columnName: string]: iConstraint[];
58
- };
59
- TABLE_REFERENCED_BY: {
60
- [columnName: string]: iConstraint[];
61
- };
62
- }
63
- export interface iRestApiFunctions<RestData = any> {
64
- Delete: (request?: (iAPI<any> & any)) => apiReturn<iDeleteC6RestResponse<RestData>>;
65
- Post: (request?: (iAPI<any> & any)) => apiReturn<iPostC6RestResponse<RestData>>;
66
- Get: (request?: (iAPI<any> & any)) => apiReturn<iGetC6RestResponse<RestData>>;
67
- Put: (request?: (iAPI<any> & any)) => apiReturn<iPutC6RestResponse<RestData>>;
68
- }
69
- export interface iDynamicApiImport<RestData = any> {
70
- default: iRestApiFunctions<RestData>;
71
- postState?: (response: AxiosResponse<iPostC6RestResponse<RestData>>, request: iAPI<any>, id: string | number | boolean) => void;
72
- deleteState?: (response: AxiosResponse<iDeleteC6RestResponse<RestData>>, request: iAPI<any>) => void;
73
- putState?: (response: AxiosResponse<iPutC6RestResponse<RestData>>, request: iAPI<any>) => void;
74
- }
75
- export interface tC6Tables {
76
- [key: string]: (iC6RestfulModel & {
77
- [key: string]: any;
78
- });
79
- }
80
- export interface tC6RestApi {
81
- [key: string]: {
82
- REST: iRestApiFunctions;
83
- PUT: Function;
84
- POST: Function;
85
- DELETE: Function;
86
- };
87
- }
@@ -1,17 +0,0 @@
1
- import { Executor } from '../executors/Executor';
2
- import { OrmGenerics } from "../types/ormGenerics";
3
- import { SelectQueryBuilder } from './queries/SelectQueryBuilder';
4
- import { UpdateQueryBuilder } from './queries/UpdateQueryBuilder';
5
- import { DeleteQueryBuilder } from './queries/DeleteQueryBuilder';
6
- import { SqlBuilderResult } from "./utils/sqlUtils";
7
- export declare abstract class SqlBuilder<G extends OrmGenerics> extends Executor<G> {
8
- protected useNamedParams: boolean;
9
- private aggregateBuilder;
10
- private conditionBuilder;
11
- private joinBuilder;
12
- private paginationBuilder;
13
- protected selectQueryBuilder: SelectQueryBuilder<OrmGenerics>;
14
- protected updateQueryBuilder: UpdateQueryBuilder<OrmGenerics>;
15
- protected deleteQueryBuilder: DeleteQueryBuilder<OrmGenerics>;
16
- protected buildSelectQuery(table: RestShortTableName, primary: string | undefined, args: any, isSubSelect?: boolean): SqlBuilderResult;
17
- }
@@ -1,37 +0,0 @@
1
- import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
2
- import { iBlog_Categories } from "./C6";
3
- declare const Blog_Categories: {
4
- Get: (request?: Omit<iBlog_Categories, never> & {
5
- dataInsertMultipleRows?: Omit<iBlog_Categories, never>[] | undefined;
6
- cacheResults?: boolean;
7
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
8
- debug?: boolean;
9
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
10
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
11
- }) => Promise<(() => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iBlog_Categories>>) | import("axios").AxiosResponse<iGetC6RestResponse<iBlog_Categories>, any> | null | undefined>;
12
- Post: (request?: Omit<iBlog_Categories, never> & {
13
- dataInsertMultipleRows?: Omit<iBlog_Categories, never>[] | undefined;
14
- cacheResults?: boolean;
15
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
16
- debug?: boolean;
17
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
18
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
19
- }) => Promise<import("axios").AxiosResponse<iPostC6RestResponse<iBlog_Categories>, any> | null | undefined>;
20
- Put: (request?: Omit<iBlog_Categories, never> & {
21
- dataInsertMultipleRows?: Omit<iBlog_Categories, never>[] | undefined;
22
- cacheResults?: boolean;
23
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
24
- debug?: boolean;
25
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
26
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
27
- }) => Promise<import("axios").AxiosResponse<iPutC6RestResponse<iBlog_Categories, any>, any> | null | undefined>;
28
- Delete: (request?: Omit<iBlog_Categories, never> & {
29
- dataInsertMultipleRows?: Omit<iBlog_Categories, never>[] | undefined;
30
- cacheResults?: boolean;
31
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
32
- debug?: boolean;
33
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
34
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
35
- }) => Promise<import("axios").AxiosResponse<iDeleteC6RestResponse<iBlog_Categories, any>, any> | null | undefined>;
36
- };
37
- export default Blog_Categories;
@@ -1,11 +0,0 @@
1
- import { iBlog_Categories } from "api/rest/C6";
2
- /**
3
- CREATE TABLE `blog_categories` (
4
- `category_id` binary(16) NOT NULL DEFAULT (uuid_to_bin(uuid(),1)),
5
- `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
6
- PRIMARY KEY (`category_id`),
7
- UNIQUE KEY `name` (`name`)
8
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
9
- **/
10
- declare const Test_Data: iBlog_Categories;
11
- export default Test_Data;
@@ -1,37 +0,0 @@
1
- import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
2
- import { iBlog_Images } from "./C6";
3
- declare const Blog_Images: {
4
- Get: (request?: Omit<iBlog_Images, never> & {
5
- dataInsertMultipleRows?: Omit<iBlog_Images, never>[] | undefined;
6
- cacheResults?: boolean;
7
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
8
- debug?: boolean;
9
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
10
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
11
- }) => Promise<(() => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iBlog_Images>>) | import("axios").AxiosResponse<iGetC6RestResponse<iBlog_Images>, any> | null | undefined>;
12
- Post: (request?: Omit<iBlog_Images, never> & {
13
- dataInsertMultipleRows?: Omit<iBlog_Images, never>[] | undefined;
14
- cacheResults?: boolean;
15
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
16
- debug?: boolean;
17
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
18
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
19
- }) => Promise<import("axios").AxiosResponse<iPostC6RestResponse<iBlog_Images>, any> | null | undefined>;
20
- Put: (request?: Omit<iBlog_Images, never> & {
21
- dataInsertMultipleRows?: Omit<iBlog_Images, never>[] | undefined;
22
- cacheResults?: boolean;
23
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
24
- debug?: boolean;
25
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
26
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
27
- }) => Promise<import("axios").AxiosResponse<iPutC6RestResponse<iBlog_Images, any>, any> | null | undefined>;
28
- Delete: (request?: Omit<iBlog_Images, never> & {
29
- dataInsertMultipleRows?: Omit<iBlog_Images, never>[] | undefined;
30
- cacheResults?: boolean;
31
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
32
- debug?: boolean;
33
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
34
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
35
- }) => Promise<import("axios").AxiosResponse<iDeleteC6RestResponse<iBlog_Images, any>, any> | null | undefined>;
36
- };
37
- export default Blog_Images;
@@ -1,15 +0,0 @@
1
- import { iBlog_Images } from "api/rest/C6";
2
- /**
3
- CREATE TABLE `blog_images` (
4
- `image_id` binary(16) NOT NULL DEFAULT (uuid_to_bin(uuid(),1)),
5
- `post_id` binary(16) NOT NULL,
6
- `label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
7
- `data_uri` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
8
- `uploaded_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
9
- PRIMARY KEY (`image_id`),
10
- KEY `post_id` (`post_id`),
11
- CONSTRAINT `blog_images_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `blog_posts` (`post_id`) ON DELETE CASCADE
12
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
13
- **/
14
- declare const Test_Data: iBlog_Images;
15
- export default Test_Data;
@@ -1,37 +0,0 @@
1
- import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
2
- import { iBlog_Post_Categories } from "./C6";
3
- declare const Blog_Post_Categories: {
4
- Get: (request?: Omit<iBlog_Post_Categories, never> & {
5
- dataInsertMultipleRows?: Omit<iBlog_Post_Categories, never>[] | undefined;
6
- cacheResults?: boolean;
7
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
8
- debug?: boolean;
9
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
10
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
11
- }) => Promise<(() => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iBlog_Post_Categories>>) | import("axios").AxiosResponse<iGetC6RestResponse<iBlog_Post_Categories>, any> | null | undefined>;
12
- Post: (request?: Omit<iBlog_Post_Categories, never> & {
13
- dataInsertMultipleRows?: Omit<iBlog_Post_Categories, never>[] | undefined;
14
- cacheResults?: boolean;
15
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
16
- debug?: boolean;
17
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
18
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
19
- }) => Promise<import("axios").AxiosResponse<iPostC6RestResponse<iBlog_Post_Categories>, any> | null | undefined>;
20
- Put: (request?: Omit<iBlog_Post_Categories, never> & {
21
- dataInsertMultipleRows?: Omit<iBlog_Post_Categories, never>[] | undefined;
22
- cacheResults?: boolean;
23
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
24
- debug?: boolean;
25
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
26
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
27
- }) => Promise<import("axios").AxiosResponse<iPutC6RestResponse<iBlog_Post_Categories, any>, any> | null | undefined>;
28
- Delete: (request?: Omit<iBlog_Post_Categories, never> & {
29
- dataInsertMultipleRows?: Omit<iBlog_Post_Categories, never>[] | undefined;
30
- cacheResults?: boolean;
31
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
32
- debug?: boolean;
33
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
34
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
35
- }) => Promise<import("axios").AxiosResponse<iDeleteC6RestResponse<iBlog_Post_Categories, any>, any> | null | undefined>;
36
- };
37
- export default Blog_Post_Categories;
@@ -1,13 +0,0 @@
1
- import { iBlog_Post_Categories } from "api/rest/C6";
2
- /**
3
- CREATE TABLE `blog_post_categories` (
4
- `post_id` binary(16) NOT NULL,
5
- `category_id` binary(16) NOT NULL,
6
- PRIMARY KEY (`post_id`,`category_id`),
7
- KEY `category_id` (`category_id`),
8
- CONSTRAINT `blog_post_categories_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `blog_posts` (`post_id`) ON DELETE CASCADE,
9
- CONSTRAINT `blog_post_categories_ibfk_2` FOREIGN KEY (`category_id`) REFERENCES `blog_categories` (`category_id`) ON DELETE CASCADE
10
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
11
- **/
12
- declare const Test_Data: iBlog_Post_Categories;
13
- export default Test_Data;
@@ -1,37 +0,0 @@
1
- import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
2
- import { iBlog_Post_Tags } from "./C6";
3
- declare const Blog_Post_Tags: {
4
- Get: (request?: Omit<iBlog_Post_Tags, never> & {
5
- dataInsertMultipleRows?: Omit<iBlog_Post_Tags, never>[] | undefined;
6
- cacheResults?: boolean;
7
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
8
- debug?: boolean;
9
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
10
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
11
- }) => Promise<(() => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iBlog_Post_Tags>>) | import("axios").AxiosResponse<iGetC6RestResponse<iBlog_Post_Tags>, any> | null | undefined>;
12
- Post: (request?: Omit<iBlog_Post_Tags, never> & {
13
- dataInsertMultipleRows?: Omit<iBlog_Post_Tags, never>[] | undefined;
14
- cacheResults?: boolean;
15
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
16
- debug?: boolean;
17
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
18
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
19
- }) => Promise<import("axios").AxiosResponse<iPostC6RestResponse<iBlog_Post_Tags>, any> | null | undefined>;
20
- Put: (request?: Omit<iBlog_Post_Tags, never> & {
21
- dataInsertMultipleRows?: Omit<iBlog_Post_Tags, never>[] | undefined;
22
- cacheResults?: boolean;
23
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
24
- debug?: boolean;
25
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
26
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
27
- }) => Promise<import("axios").AxiosResponse<iPutC6RestResponse<iBlog_Post_Tags, any>, any> | null | undefined>;
28
- Delete: (request?: Omit<iBlog_Post_Tags, never> & {
29
- dataInsertMultipleRows?: Omit<iBlog_Post_Tags, never>[] | undefined;
30
- cacheResults?: boolean;
31
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
32
- debug?: boolean;
33
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
34
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
35
- }) => Promise<import("axios").AxiosResponse<iDeleteC6RestResponse<iBlog_Post_Tags, any>, any> | null | undefined>;
36
- };
37
- export default Blog_Post_Tags;
@@ -1,13 +0,0 @@
1
- import { iBlog_Post_Tags } from "api/rest/C6";
2
- /**
3
- CREATE TABLE `blog_post_tags` (
4
- `post_id` binary(16) NOT NULL,
5
- `tag_id` binary(16) NOT NULL,
6
- PRIMARY KEY (`post_id`,`tag_id`),
7
- KEY `tag_id` (`tag_id`),
8
- CONSTRAINT `blog_post_tags_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `blog_posts` (`post_id`) ON DELETE CASCADE,
9
- CONSTRAINT `blog_post_tags_ibfk_2` FOREIGN KEY (`tag_id`) REFERENCES `blog_tags` (`tag_id`) ON DELETE CASCADE
10
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
11
- **/
12
- declare const Test_Data: iBlog_Post_Tags;
13
- export default Test_Data;
@@ -1,37 +0,0 @@
1
- import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
2
- import { iBlog_Posts } from "./C6";
3
- declare const Blog_Posts: {
4
- Get: (request?: Omit<iBlog_Posts, never> & {
5
- dataInsertMultipleRows?: Omit<iBlog_Posts, never>[] | undefined;
6
- cacheResults?: boolean;
7
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
8
- debug?: boolean;
9
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
10
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
11
- }) => Promise<(() => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iBlog_Posts>>) | import("axios").AxiosResponse<iGetC6RestResponse<iBlog_Posts>, any> | null | undefined>;
12
- Post: (request?: Omit<iBlog_Posts, never> & {
13
- dataInsertMultipleRows?: Omit<iBlog_Posts, never>[] | undefined;
14
- cacheResults?: boolean;
15
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
16
- debug?: boolean;
17
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
18
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
19
- }) => Promise<import("axios").AxiosResponse<iPostC6RestResponse<iBlog_Posts>, any> | null | undefined>;
20
- Put: (request?: Omit<iBlog_Posts, never> & {
21
- dataInsertMultipleRows?: Omit<iBlog_Posts, never>[] | undefined;
22
- cacheResults?: boolean;
23
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
24
- debug?: boolean;
25
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
26
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
27
- }) => Promise<import("axios").AxiosResponse<iPutC6RestResponse<iBlog_Posts, any>, any> | null | undefined>;
28
- Delete: (request?: Omit<iBlog_Posts, never> & {
29
- dataInsertMultipleRows?: Omit<iBlog_Posts, never>[] | undefined;
30
- cacheResults?: boolean;
31
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
32
- debug?: boolean;
33
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
34
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
35
- }) => Promise<import("axios").AxiosResponse<iDeleteC6RestResponse<iBlog_Posts, any>, any> | null | undefined>;
36
- };
37
- export default Blog_Posts;
@@ -1,21 +0,0 @@
1
- import { iBlog_Posts } from "api/rest/C6";
2
- /**
3
- CREATE TABLE `blog_posts` (
4
- `post_id` binary(16) NOT NULL DEFAULT (uuid_to_bin(uuid(),1)),
5
- `author_id` binary(16) NOT NULL,
6
- `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
7
- `slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci GENERATED ALWAYS AS (lower(replace(`title`,_utf8mb4' ',_utf8mb4'-'))) STORED,
8
- `excerpt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
9
- `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
10
- `image_uri` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
11
- `status` enum('draft','published','archived') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'draft',
12
- `published_at` timestamp NULL DEFAULT NULL,
13
- `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
14
- `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
15
- PRIMARY KEY (`post_id`),
16
- KEY `author_id` (`author_id`),
17
- CONSTRAINT `blog_posts_ibfk_1` FOREIGN KEY (`author_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE
18
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
19
- **/
20
- declare const Test_Data: iBlog_Posts;
21
- export default Test_Data;
@@ -1,37 +0,0 @@
1
- import { iPostC6RestResponse, iDeleteC6RestResponse, iGetC6RestResponse, iPutC6RestResponse } from "@carbonorm/carbonnode";
2
- import { iBlog_Tags } from "./C6";
3
- declare const Blog_Tags: {
4
- Get: (request?: Omit<iBlog_Tags, never> & {
5
- dataInsertMultipleRows?: Omit<iBlog_Tags, never>[] | undefined;
6
- cacheResults?: boolean;
7
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
8
- debug?: boolean;
9
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
10
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
11
- }) => Promise<(() => import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<iBlog_Tags>>) | import("axios").AxiosResponse<iGetC6RestResponse<iBlog_Tags>, any> | null | undefined>;
12
- Post: (request?: Omit<iBlog_Tags, never> & {
13
- dataInsertMultipleRows?: Omit<iBlog_Tags, never>[] | undefined;
14
- cacheResults?: boolean;
15
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
16
- debug?: boolean;
17
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
18
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
19
- }) => Promise<import("axios").AxiosResponse<iPostC6RestResponse<iBlog_Tags>, any> | null | undefined>;
20
- Put: (request?: Omit<iBlog_Tags, never> & {
21
- dataInsertMultipleRows?: Omit<iBlog_Tags, never>[] | undefined;
22
- cacheResults?: boolean;
23
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
24
- debug?: boolean;
25
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
26
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
27
- }) => Promise<import("axios").AxiosResponse<iPutC6RestResponse<iBlog_Tags, any>, any> | null | undefined>;
28
- Delete: (request?: Omit<iBlog_Tags, never> & {
29
- dataInsertMultipleRows?: Omit<iBlog_Tags, never>[] | undefined;
30
- cacheResults?: boolean;
31
- fetchDependencies?: number | import("@carbonorm/carbonnode").eFetchDependencies | Awaited<import("@carbonorm/carbonnode").apiReturn<iGetC6RestResponse<any>>>[];
32
- debug?: boolean;
33
- success?: string | ((r: import("axios").AxiosResponse) => (string | void));
34
- error?: string | ((r: import("axios").AxiosResponse) => (string | void));
35
- }) => Promise<import("axios").AxiosResponse<iDeleteC6RestResponse<iBlog_Tags, any>, any> | null | undefined>;
36
- };
37
- export default Blog_Tags;
@@ -1,11 +0,0 @@
1
- import { iBlog_Tags } from "api/rest/C6";
2
- /**
3
- CREATE TABLE `blog_tags` (
4
- `tag_id` binary(16) NOT NULL DEFAULT (uuid_to_bin(uuid(),1)),
5
- `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
6
- PRIMARY KEY (`tag_id`),
7
- UNIQUE KEY `name` (`name`)
8
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
9
- **/
10
- declare const Test_Data: iBlog_Tags;
11
- export default Test_Data;