@carbonorm/carbonnode 5.0.1 → 6.0.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 (139) hide show
  1. package/dist/api/convertForRequestBody.d.ts +1 -1
  2. package/dist/api/restOrm.d.ts +6 -6
  3. package/dist/api/restRequest.d.ts +2 -2
  4. package/dist/{api/executors → executors}/HttpExecutor.d.ts +2 -2
  5. package/dist/{api/handlers → handlers}/ExpressHandler.d.ts +3 -3
  6. package/dist/index.cjs.js +229 -160
  7. package/dist/index.cjs.js.map +1 -1
  8. package/dist/index.d.ts +30 -29
  9. package/dist/index.esm.js +225 -161
  10. package/dist/index.esm.js.map +1 -1
  11. package/dist/{api/types → types}/ormGenerics.d.ts +1 -1
  12. package/dist/{api/types → types}/ormInterfaces.d.ts +7 -6
  13. package/dist/{api/utils → utils}/apiHelpers.d.ts +2 -2
  14. package/dist/{api/utils → utils}/cacheManager.d.ts +2 -2
  15. package/dist/utils/sqlAllowList.d.ts +5 -0
  16. package/dist/utils/toastRuntime.d.ts +5 -0
  17. package/dist/variables/toastOptions.d.ts +10 -1
  18. package/package.json +2 -7
  19. package/scripts/assets/handlebars/C6.test.ts.handlebars +4 -8
  20. package/src/__tests__/binaryHex.e2e.test.ts +1 -1
  21. package/src/__tests__/cacheManager.test.ts +2 -3
  22. package/src/__tests__/expressServer.e2e.test.ts +1 -1
  23. package/src/__tests__/fixtures/c6.fixture.ts +1 -1
  24. package/src/__tests__/fixtures/createTestServer.ts +2 -2
  25. package/src/__tests__/fixtures/pu.fixture.ts +1 -2
  26. package/src/__tests__/httpExecutorSingular.e2e.test.ts +1 -1
  27. package/src/__tests__/normalizeSingularRequest.test.ts +3 -3
  28. package/src/__tests__/sakila-db/C6.js +1 -1
  29. package/src/__tests__/sakila-db/C6.mysqldump.json +1 -1
  30. package/src/__tests__/sakila-db/C6.mysqldump.sql +1 -1
  31. package/src/__tests__/sakila-db/C6.test.ts +4 -8
  32. package/src/__tests__/sakila-db/C6.ts +1 -1
  33. package/src/__tests__/sakila-db/sqlResponses/C6.actor.post.json +3 -3
  34. package/src/__tests__/sakila-db/sqlResponses/C6.actor.post.latest.json +3 -3
  35. package/src/__tests__/sakila-db/sqlResponses/C6.actor.put.json +1 -1
  36. package/src/__tests__/sakila-db/sqlResponses/C6.actor.put.lookup.json +3 -3
  37. package/src/__tests__/sakila-db/sqlResponses/C6.address.post.json +5 -5
  38. package/src/__tests__/sakila-db/sqlResponses/C6.address.post.latest.json +5 -5
  39. package/src/__tests__/sakila-db/sqlResponses/C6.address.put.json +1 -1
  40. package/src/__tests__/sakila-db/sqlResponses/C6.address.put.lookup.json +5 -5
  41. package/src/__tests__/sakila-db/sqlResponses/C6.category.post.json +2 -2
  42. package/src/__tests__/sakila-db/sqlResponses/C6.category.post.latest.json +2 -2
  43. package/src/__tests__/sakila-db/sqlResponses/C6.category.put.json +1 -1
  44. package/src/__tests__/sakila-db/sqlResponses/C6.category.put.lookup.json +2 -2
  45. package/src/__tests__/sakila-db/sqlResponses/C6.city.post.json +2 -2
  46. package/src/__tests__/sakila-db/sqlResponses/C6.city.post.latest.json +2 -2
  47. package/src/__tests__/sakila-db/sqlResponses/C6.city.put.json +1 -1
  48. package/src/__tests__/sakila-db/sqlResponses/C6.city.put.lookup.json +2 -2
  49. package/src/__tests__/sakila-db/sqlResponses/C6.country.post.json +2 -2
  50. package/src/__tests__/sakila-db/sqlResponses/C6.country.post.latest.json +2 -2
  51. package/src/__tests__/sakila-db/sqlResponses/C6.country.put.json +1 -1
  52. package/src/__tests__/sakila-db/sqlResponses/C6.country.put.lookup.json +2 -2
  53. package/src/__tests__/sakila-db/sqlResponses/C6.customer.post.json +5 -5
  54. package/src/__tests__/sakila-db/sqlResponses/C6.customer.post.latest.json +5 -5
  55. package/src/__tests__/sakila-db/sqlResponses/C6.customer.put.json +1 -1
  56. package/src/__tests__/sakila-db/sqlResponses/C6.customer.put.lookup.json +5 -5
  57. package/src/__tests__/sakila-db/sqlResponses/C6.film.post.json +2 -2
  58. package/src/__tests__/sakila-db/sqlResponses/C6.film.post.latest.json +2 -2
  59. package/src/__tests__/sakila-db/sqlResponses/C6.film.put.json +1 -1
  60. package/src/__tests__/sakila-db/sqlResponses/C6.film.put.lookup.json +2 -2
  61. package/src/__tests__/sakila-db/sqlResponses/C6.inventory.post.json +1 -1
  62. package/src/__tests__/sakila-db/sqlResponses/C6.inventory.post.latest.json +1 -1
  63. package/src/__tests__/sakila-db/sqlResponses/C6.inventory.put.json +1 -1
  64. package/src/__tests__/sakila-db/sqlResponses/C6.inventory.put.lookup.json +1 -1
  65. package/src/__tests__/sakila-db/sqlResponses/C6.language.post.json +2 -2
  66. package/src/__tests__/sakila-db/sqlResponses/C6.language.post.latest.json +2 -2
  67. package/src/__tests__/sakila-db/sqlResponses/C6.language.put.json +1 -1
  68. package/src/__tests__/sakila-db/sqlResponses/C6.language.put.lookup.json +2 -2
  69. package/src/__tests__/sakila-db/sqlResponses/C6.payment.post.json +2 -2
  70. package/src/__tests__/sakila-db/sqlResponses/C6.payment.post.latest.json +2 -2
  71. package/src/__tests__/sakila-db/sqlResponses/C6.payment.put.lookup.json +2 -2
  72. package/src/__tests__/sakila-db/sqlResponses/C6.rental.post.json +3 -3
  73. package/src/__tests__/sakila-db/sqlResponses/C6.rental.post.latest.json +3 -3
  74. package/src/__tests__/sakila-db/sqlResponses/C6.rental.put.json +1 -1
  75. package/src/__tests__/sakila-db/sqlResponses/C6.rental.put.lookup.json +3 -3
  76. package/src/__tests__/sqlAllowList.test.ts +67 -74
  77. package/src/__tests__/sqlBuilders.complex.test.ts +3 -3
  78. package/src/__tests__/sqlBuilders.expressions.test.ts +2 -2
  79. package/src/__tests__/sqlBuilders.test.ts +5 -5
  80. package/src/__tests__/toastRuntime.test.ts +22 -0
  81. package/src/api/convertForRequestBody.ts +2 -2
  82. package/src/api/restOrm.ts +2 -2
  83. package/src/api/restRequest.ts +4 -5
  84. package/src/{api/executors → executors}/HttpExecutor.ts +21 -13
  85. package/src/{api/executors → executors}/SqlExecutor.ts +2 -2
  86. package/src/{api/handlers → handlers}/ExpressHandler.ts +5 -5
  87. package/src/index.ts +30 -29
  88. package/src/{api/orm → orm}/builders/AggregateBuilder.ts +1 -1
  89. package/src/{api/orm → orm}/builders/ConditionBuilder.ts +1 -1
  90. package/src/{api/orm → orm}/builders/JoinBuilder.ts +1 -1
  91. package/src/{api/orm → orm}/builders/PaginationBuilder.ts +1 -1
  92. package/src/{api/orm → orm}/queries/PostQueryBuilder.ts +1 -1
  93. package/src/{api/orm → orm}/queries/UpdateQueryBuilder.ts +1 -1
  94. package/src/{api/orm → orm}/queryHelpers.ts +1 -2
  95. package/src/{api/types → types}/ormGenerics.ts +1 -1
  96. package/src/{api/types → types}/ormInterfaces.ts +8 -6
  97. package/src/{api/utils → utils}/apiHelpers.ts +8 -8
  98. package/src/{api/utils → utils}/cacheManager.ts +2 -2
  99. package/src/{api/utils → utils}/normalizeSingularRequest.ts +1 -1
  100. package/src/utils/sqlAllowList.ts +120 -0
  101. package/src/{api/utils → utils}/testHelpers.ts +1 -1
  102. package/src/{api/utils → utils}/toastNotifier.ts +3 -3
  103. package/src/utils/toastRuntime.ts +22 -0
  104. package/src/variables/toastOptions.ts +10 -3
  105. package/dist/api/utils/sqlAllowList.d.ts +0 -2
  106. package/src/api/utils/sqlAllowList.ts +0 -54
  107. /package/dist/{api → constants}/C6Constants.d.ts +0 -0
  108. /package/dist/{api/executors → executors}/Executor.d.ts +0 -0
  109. /package/dist/{api/executors → executors}/SqlExecutor.d.ts +0 -0
  110. /package/dist/{api/orm → orm}/builders/AggregateBuilder.d.ts +0 -0
  111. /package/dist/{api/orm → orm}/builders/ConditionBuilder.d.ts +0 -0
  112. /package/dist/{api/orm → orm}/builders/JoinBuilder.d.ts +0 -0
  113. /package/dist/{api/orm → orm}/builders/PaginationBuilder.d.ts +0 -0
  114. /package/dist/{api/orm → orm}/queries/DeleteQueryBuilder.d.ts +0 -0
  115. /package/dist/{api/orm → orm}/queries/PostQueryBuilder.d.ts +0 -0
  116. /package/dist/{api/orm → orm}/queries/SelectQueryBuilder.d.ts +0 -0
  117. /package/dist/{api/orm → orm}/queries/UpdateQueryBuilder.d.ts +0 -0
  118. /package/dist/{api/orm → orm}/queryHelpers.d.ts +0 -0
  119. /package/dist/{api/orm → orm}/utils/sqlUtils.d.ts +0 -0
  120. /package/dist/{api/types → types}/dynamicFetching.d.ts +0 -0
  121. /package/dist/{api/types → types}/modifyTypes.d.ts +0 -0
  122. /package/dist/{api/types → types}/mysqlTypes.d.ts +0 -0
  123. /package/dist/{api/utils → utils}/determineRuntimeJsType.d.ts +0 -0
  124. /package/dist/{api/utils → utils}/logger.d.ts +0 -0
  125. /package/dist/{api/utils → utils}/normalizeSingularRequest.d.ts +0 -0
  126. /package/dist/{api/utils → utils}/sortAndSerializeQueryObject.d.ts +0 -0
  127. /package/dist/{api/utils → utils}/testHelpers.d.ts +0 -0
  128. /package/dist/{api/utils → utils}/toastNotifier.d.ts +0 -0
  129. /package/src/{api → constants}/C6Constants.ts +0 -0
  130. /package/src/{api/executors → executors}/Executor.ts +0 -0
  131. /package/src/{api/orm → orm}/queries/DeleteQueryBuilder.ts +0 -0
  132. /package/src/{api/orm → orm}/queries/SelectQueryBuilder.ts +0 -0
  133. /package/src/{api/orm → orm}/utils/sqlUtils.ts +0 -0
  134. /package/src/{api/types → types}/dynamicFetching.ts +0 -0
  135. /package/src/{api/types → types}/modifyTypes.ts +0 -0
  136. /package/src/{api/types → types}/mysqlTypes.ts +0 -0
  137. /package/src/{api/utils → utils}/determineRuntimeJsType.ts +0 -0
  138. /package/src/{api/utils → utils}/logger.ts +0 -0
  139. /package/src/{api/utils → utils}/sortAndSerializeQueryObject.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { iRestMethods } from './ormInterfaces';
1
+ import type { iRestMethods } from './ormInterfaces';
2
2
  export type OrmGenerics<RequestMethod extends iRestMethods = iRestMethods, RestShortTableName extends string | string[] = any, RestTableInterface extends Record<string, any> = any, PrimaryKey extends keyof RestTableInterface & string = keyof RestTableInterface & string, CustomAndRequiredFields extends Record<string, any> = any, RequestTableOverrides extends {
3
3
  [key in keyof RestTableInterface]: any;
4
4
  } = {
@@ -1,11 +1,12 @@
1
- import { AxiosInstance, AxiosPromise, AxiosResponse } from "axios";
2
- import { Pool } from "mysql2/promise";
1
+ import type { AxiosInstance, AxiosPromise, AxiosResponse } from "axios";
2
+ import type { Pool } from "mysql2/promise";
3
3
  import { eFetchDependencies } from "./dynamicFetching";
4
4
  import { Modify } from "./modifyTypes";
5
5
  import { JoinType, OrderDirection, SQLComparisonOperator, SQLFunction } from "./mysqlTypes";
6
- import { CarbonReact } from "@carbonorm/carbonreact";
7
- import { OrmGenerics } from "./ormGenerics";
8
- import { restOrm } from "../restOrm";
6
+ import type { CarbonReact } from "@carbonorm/carbonreact";
7
+ import type { OrmGenerics } from "./ormGenerics";
8
+ type RestOrmFactory = typeof import("../api/restOrm").restOrm;
9
+ type RestOrmReturn = ReturnType<RestOrmFactory<OrmGenerics<any>>>;
9
10
  export type iRestMethods = 'GET' | 'POST' | 'PUT' | 'DELETE';
10
11
  export declare const POST = "POST";
11
12
  export declare const PUT = "PUT";
@@ -249,7 +250,7 @@ export interface iC6Object<RestTableInterfaces extends {
249
250
  };
250
251
  PREFIX: string;
251
252
  ORM: {
252
- [K in Extract<keyof RestTableInterfaces, string>]: C6RestfulModel<K, RestTableInterfaces[K], keyof RestTableInterfaces[K] & string> & ReturnType<typeof restOrm<OrmGenerics<any>>>;
253
+ [K in Extract<keyof RestTableInterfaces, string>]: C6RestfulModel<K, RestTableInterfaces[K], keyof RestTableInterfaces[K] & string> & RestOrmReturn;
253
254
  };
254
255
  [key: string]: any;
255
256
  }
@@ -1,5 +1,5 @@
1
- import { AxiosResponse } from "axios";
2
- import { C6RestfulModel } from "../types/ormInterfaces";
1
+ import type { AxiosResponse } from "axios";
2
+ import type { C6RestfulModel } from "../types/ormInterfaces";
3
3
  export declare function TestRestfulResponse(response: AxiosResponse | any, success: ((r: AxiosResponse) => (string | void)) | string | undefined, error: ((r: AxiosResponse) => (string | void)) | string | undefined): string | boolean | number;
4
4
  export declare function removePrefixIfExists(tableName: string, prefix: string): string;
5
5
  export declare function removeInvalidKeys<iRestObject>(request: any, c6Tables: {
@@ -1,5 +1,5 @@
1
- import { AxiosPromise } from "axios";
2
- import { iCacheAPI } from "../types/ormInterfaces";
1
+ import type { AxiosPromise } from "axios";
2
+ import type { iCacheAPI } from "../types/ormInterfaces";
3
3
  export declare const apiRequestCache: Map<string, iCacheAPI<any>>;
4
4
  export declare const userCustomClearCache: (() => void)[];
5
5
  export declare function clearCache(props?: {
@@ -0,0 +1,5 @@
1
+ export declare const normalizeSql: (sql: string) => string;
2
+ export declare const loadSqlAllowList: (allowListPath: string) => Promise<Set<string>>;
3
+ export declare const extractSqlEntries: (payload: unknown) => string[];
4
+ export declare const collectSqlAllowListEntries: (payload: unknown, entries?: Set<string>) => Set<string>;
5
+ export declare const compileSqlAllowList: (allowListPath: string, entries: Iterable<string>) => Promise<string[]>;
@@ -0,0 +1,5 @@
1
+ import type { ToastOptions } from "variables/toastOptions";
2
+ export type ToastLevel = "success" | "error" | "info" | "warning";
3
+ export type ToastHandler = (level: ToastLevel, message: string, options?: ToastOptions) => void;
4
+ export declare const setToastHandler: (handler: ToastHandler | null) => void;
5
+ export declare const notifyToast: (level: ToastLevel, message: string, options?: ToastOptions) => void;
@@ -1,3 +1,12 @@
1
- import { ToastOptions } from "react-toastify";
1
+ export type ToastOptions = {
2
+ position?: string;
3
+ autoClose?: number | false;
4
+ hideProgressBar?: boolean;
5
+ closeOnClick?: boolean;
6
+ pauseOnHover?: boolean;
7
+ draggable?: boolean;
8
+ theme?: string;
9
+ [key: string]: unknown;
10
+ };
2
11
  export declare const toastOptions: ToastOptions;
3
12
  export declare const toastOptionsDevs: ToastOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonnode",
3
- "version": "5.0.1",
3
+ "version": "6.0.0",
4
4
  "browser": "dist/index.umd.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,8 +30,7 @@
30
30
  "peerDependencies": {
31
31
  "axios": "^1.10.0",
32
32
  "express": "^5.1.0",
33
- "mysql2": "^3.14.1",
34
- "react-toastify": "^11.0.5"
33
+ "mysql2": "^3.14.1"
35
34
  },
36
35
  "peerDependenciesMeta": {
37
36
  "axios": {
@@ -43,9 +42,6 @@
43
42
  "express": {
44
43
  "optional": true
45
44
  },
46
- "react-toastify": {
47
- "optional": true
48
- },
49
45
  "mysql2": {
50
46
  "optional": true
51
47
  }
@@ -72,7 +68,6 @@
72
68
  "postcss": "^8.4.27",
73
69
  "postcss-nested": "^6.0.1",
74
70
  "postcss-simple-vars": "^7.0.1",
75
- "react-toastify": "^11.0.5",
76
71
  "rimraf": "^5.0.1",
77
72
  "rollup": "^4.22.4",
78
73
  "rollup-plugin-includepaths": "^0.2.4",
@@ -4,7 +4,8 @@ import { fileURLToPath } from 'node:url';
4
4
  import { mkdir, writeFile } from 'node:fs/promises';
5
5
  import {
6
6
  checkAllRequestsComplete,
7
- normalizeSql,
7
+ collectSqlAllowListEntries,
8
+ compileSqlAllowList,
8
9
  type DetermineResponseDataType,
9
10
  type OrmGenerics,
10
11
  } from '@carbonorm/carbonnode';
@@ -63,10 +64,7 @@ async function recordSqlResponse<G extends OrmGenerics = OrmGenerics>(
63
64
  if (!response) return;
64
65
  const payload = unwrapResponse(response);
65
66
  if (!payload) return;
66
- const sqlValue = payload?.sql?.sql ?? (typeof payload?.sql === 'string' ? payload.sql : undefined);
67
- if (typeof sqlValue === 'string') {
68
- sqlAllowListEntries.add(normalizeSql(sqlValue));
69
- }
67
+ collectSqlAllowListEntries(payload, sqlAllowListEntries);
70
68
 
71
69
  await mkdir(sqlResponsesDir, { recursive: true });
72
70
  const filePath = path.join(sqlResponsesDir, `C6.${label}.json`);
@@ -74,9 +72,7 @@ async function recordSqlResponse<G extends OrmGenerics = OrmGenerics>(
74
72
  }
75
73
 
76
74
  async function finalizeSqlAllowList() {
77
- await mkdir(sqlResponsesDir, { recursive: true });
78
- const compiled = Array.from(sqlAllowListEntries).sort();
79
- await writeFile(sqlAllowListPath, JSON.stringify(compiled, null, 2));
75
+ await compileSqlAllowList(sqlAllowListPath, sqlAllowListEntries);
80
76
  }
81
77
 
82
78
  async function executeAndRecord<G extends OrmGenerics = OrmGenerics>(
@@ -1,6 +1,6 @@
1
1
  import { describe, it, expect, beforeAll, afterAll } from 'vitest';
2
2
  import mysql from 'mysql2/promise';
3
- import { C6C } from '../api/C6Constants';
3
+ import { C6C } from '../constants/C6Constants';
4
4
  import { restOrm } from '../api/restOrm';
5
5
  import { buildBinaryTestConfig } from './fixtures/c6.fixture';
6
6
 
@@ -5,8 +5,8 @@ import {
5
5
  checkCache,
6
6
  clearCache,
7
7
  setCache,
8
- } from "../api/utils/cacheManager";
9
- import { checkAllRequestsComplete } from "../api/utils/testHelpers";
8
+ } from "../utils/cacheManager";
9
+ import { checkAllRequestsComplete } from "../utils/testHelpers";
10
10
 
11
11
  describe("cacheManager with map storage", () => {
12
12
  const requestData = { id: 1 } as const;
@@ -64,4 +64,3 @@ describe("cacheManager with map storage", () => {
64
64
  (global as any).document = originalDocument;
65
65
  });
66
66
  });
67
-
@@ -3,7 +3,7 @@ import axios from "axios";
3
3
  import { AddressInfo } from "net";
4
4
  import {describe, it, expect, beforeAll, afterAll} from "vitest";
5
5
  import {Actor, C6, Film_Actor, GLOBAL_REST_PARAMETERS} from "./sakila-db/C6.js";
6
- import {C6C} from "../api/C6Constants";
6
+ import {C6C} from "../constants/C6Constants";
7
7
  import createTestServer from "./fixtures/createTestServer";
8
8
 
9
9
  let pool: mysql.Pool;
@@ -1,4 +1,4 @@
1
- import type { iRest, C6RestfulModel } from "../../api/types/ormInterfaces";
1
+ import type { iRest, C6RestfulModel } from "../../types/ormInterfaces";
2
2
 
3
3
  // Minimal C6 table descriptor for tests
4
4
  function tableModel<T extends Record<string, any>>(name: string, columns: Record<string, keyof T>): C6RestfulModel<string, T, keyof T & string> {
@@ -1,7 +1,7 @@
1
1
  import express, {Express} from "express";
2
2
  import {Pool} from "mysql2/promise";
3
- import {iC6Object} from "src/api/types/ormInterfaces";
4
- import {ExpressHandler} from "../../api/handlers/ExpressHandler";
3
+ import {iC6Object} from "../../types/ormInterfaces";
4
+ import {ExpressHandler} from "../../handlers/ExpressHandler";
5
5
 
6
6
  export function createTestServer({
7
7
  C6,
@@ -1,4 +1,4 @@
1
- import type { iRest, C6RestfulModel } from "../../api/types/ormInterfaces";
1
+ import type { iRest, C6RestfulModel } from "../../types/ormInterfaces";
2
2
 
3
3
  function tableModel<T extends Record<string, any>>(name: string, columns: Record<string, keyof T>): C6RestfulModel<string, T, keyof T & string> {
4
4
  const TYPE_VALIDATION: any = {};
@@ -69,4 +69,3 @@ export function buildPuSalesConfig() {
69
69
 
70
70
  return baseConfig;
71
71
  }
72
-
@@ -3,7 +3,7 @@ import axios from "axios";
3
3
  import { AddressInfo } from "net";
4
4
  import { describe, it, expect, beforeAll, afterAll, vi } from "vitest";
5
5
  import { Actor, C6, GLOBAL_REST_PARAMETERS } from "./sakila-db/C6.js";
6
- import { C6C } from "../api/C6Constants";
6
+ import { C6C } from "../constants/C6Constants";
7
7
  import createTestServer from "./fixtures/createTestServer";
8
8
 
9
9
  let pool: mysql.Pool;
@@ -1,7 +1,7 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { normalizeSingularRequest } from '../api/utils/normalizeSingularRequest';
3
- import { C6C } from '../api/C6Constants';
4
- import type { C6RestfulModel } from '../api/types/ormInterfaces';
2
+ import { normalizeSingularRequest } from '../utils/normalizeSingularRequest';
3
+ import { C6C } from '../constants/C6Constants';
4
+ import type { C6RestfulModel } from '../types/ormInterfaces';
5
5
 
6
6
  function makeModel(table: string, pkShorts: string[], extraCols: string[] = []): C6RestfulModel<any, any, any> {
7
7
  const COLUMNS: Record<string, string> = {};
@@ -1342,7 +1342,7 @@ export const TABLES = {
1342
1342
  };
1343
1343
  export const C6 = {
1344
1344
  ...C6Constants,
1345
- C6VERSION: '5.0.1',
1345
+ C6VERSION: '6.0.0',
1346
1346
  IMPORT: async (tableName) => {
1347
1347
  tableName = tableName.toLowerCase();
1348
1348
  // if tableName is not a key in the TABLES object then throw an error