@carbonorm/carbonnode 3.7.18 → 3.7.19

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.
@@ -175,6 +175,44 @@ const address = {
175
175
  },],
176
176
  }
177
177
  };
178
+ const binary_test = {
179
+ TABLE_NAME: 'binary_test',
180
+ ID: 'binary_test.id',
181
+ BIN_COL: 'binary_test.bin_col',
182
+ PRIMARY: [
183
+ 'binary_test.id',
184
+ ],
185
+ PRIMARY_SHORT: [
186
+ 'id',
187
+ ],
188
+ COLUMNS: {
189
+ 'binary_test.id': 'id',
190
+ 'binary_test.bin_col': 'bin_col',
191
+ },
192
+ TYPE_VALIDATION: {
193
+ 'binary_test.id': {
194
+ MYSQL_TYPE: 'int',
195
+ MAX_LENGTH: '',
196
+ AUTO_INCREMENT: true,
197
+ SKIP_COLUMN_IN_POST: false
198
+ },
199
+ 'binary_test.bin_col': {
200
+ MYSQL_TYPE: 'binary',
201
+ MAX_LENGTH: '16',
202
+ AUTO_INCREMENT: false,
203
+ SKIP_COLUMN_IN_POST: false
204
+ },
205
+ },
206
+ REGEX_VALIDATION: {},
207
+ LIFECYCLE_HOOKS: {
208
+ GET: { beforeProcessing: {}, beforeExecution: {}, afterExecution: {}, afterCommit: {} },
209
+ PUT: { beforeProcessing: {}, beforeExecution: {}, afterExecution: {}, afterCommit: {} },
210
+ POST: { beforeProcessing: {}, beforeExecution: {}, afterExecution: {}, afterCommit: {} },
211
+ DELETE: { beforeProcessing: {}, beforeExecution: {}, afterExecution: {}, afterCommit: {} },
212
+ },
213
+ TABLE_REFERENCES: {},
214
+ TABLE_REFERENCED_BY: {}
215
+ };
178
216
  const category = {
179
217
  TABLE_NAME: 'category',
180
218
  CATEGORY_ID: 'category.category_id',
@@ -1300,11 +1338,11 @@ const store = {
1300
1338
  }
1301
1339
  };
1302
1340
  export const TABLES = {
1303
- actor, address, category, city, country, customer, film, film_actor, film_category, film_text, inventory, language, payment, rental, staff, store,
1341
+ actor, address, binary_test, category, city, country, customer, film, film_actor, film_category, film_text, inventory, language, payment, rental, staff, store,
1304
1342
  };
1305
1343
  export const C6 = {
1306
1344
  ...C6Constants,
1307
- C6VERSION: '3.7.18',
1345
+ C6VERSION: '3.7.19',
1308
1346
  IMPORT: async (tableName) => {
1309
1347
  tableName = tableName.toLowerCase();
1310
1348
  // if tableName is not a key in the TABLES object then throw an error
@@ -1333,6 +1371,7 @@ export const C6 = {
1333
1371
  export const initialRestfulObjectsState = {
1334
1372
  actor: undefined,
1335
1373
  address: undefined,
1374
+ binary_test: undefined,
1336
1375
  category: undefined,
1337
1376
  city: undefined,
1338
1377
  country: undefined,
@@ -1351,6 +1390,7 @@ export const initialRestfulObjectsState = {
1351
1390
  export const COLUMNS = {
1352
1391
  'actor.actor_id': 'actor_id', 'actor.first_name': 'first_name', 'actor.last_name': 'last_name', 'actor.last_update': 'last_update',
1353
1392
  'address.address_id': 'address_id', 'address.address': 'address', 'address.address2': 'address2', 'address.district': 'district', 'address.city_id': 'city_id', 'address.postal_code': 'postal_code', 'address.phone': 'phone', 'address.location': 'location', 'address.last_update': 'last_update',
1393
+ 'binary_test.id': 'id', 'binary_test.bin_col': 'bin_col',
1354
1394
  'category.category_id': 'category_id', 'category.name': 'name', 'category.last_update': 'last_update',
1355
1395
  'city.city_id': 'city_id', 'city.city': 'city', 'city.country_id': 'country_id', 'city.last_update': 'last_update',
1356
1396
  'country.country_id': 'country_id', 'country.country': 'country', 'country.last_update': 'last_update',
@@ -1384,6 +1424,13 @@ export const Address = {
1384
1424
  restModel: address
1385
1425
  }))
1386
1426
  };
1427
+ export const Binary_Test = {
1428
+ ...binary_test,
1429
+ ...restOrm(() => ({
1430
+ ...GLOBAL_REST_PARAMETERS,
1431
+ restModel: binary_test
1432
+ }))
1433
+ };
1387
1434
  export const Category = {
1388
1435
  ...category,
1389
1436
  ...restOrm(() => ({
@@ -1483,5 +1530,5 @@ export const Store = {
1483
1530
  }))
1484
1531
  };
1485
1532
  C6.ORM = {
1486
- Actor, Address, Category, City, Country, Customer, Film, Film_Actor, Film_Category, Film_Text, Inventory, Language, Payment, Rental, Staff, Store,
1533
+ Actor, Address, Binary_Test, Category, City, Country, Customer, Film, Film_Actor, Film_Category, Film_Text, Inventory, Language, Payment, Rental, Staff, Store,
1487
1534
  };
@@ -16,6 +16,7 @@ export const RestTablePrefix = '';
16
16
 
17
17
  export type RestTableNames = 'actor'
18
18
  | 'address'
19
+ | 'binary_test'
19
20
  | 'category'
20
21
  | 'city'
21
22
  | 'country'
@@ -33,6 +34,7 @@ export type RestTableNames = 'actor'
33
34
 
34
35
  export type RestShortTableNames = 'actor'
35
36
  | 'address'
37
+ | 'binary_test'
36
38
  | 'category'
37
39
  | 'city'
38
40
  | 'country'
@@ -295,6 +297,72 @@ const address:
295
297
  }
296
298
  }
297
299
 
300
+ /**
301
+ CREATE TABLE `binary_test` (
302
+ `id` int NOT NULL AUTO_INCREMENT,
303
+ `bin_col` binary(16) DEFAULT NULL,
304
+ PRIMARY KEY (`id`)
305
+ ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
306
+ **/
307
+
308
+ export interface iBinary_Test {
309
+ 'id'?: number;
310
+ 'bin_col'?: Buffer | string | null;
311
+ }
312
+
313
+ export type Binary_TestPrimaryKeys =
314
+ 'id'
315
+ ;
316
+
317
+ const binary_test:
318
+ C6RestfulModel<
319
+ 'binary_test',
320
+ iBinary_Test,
321
+ Binary_TestPrimaryKeys
322
+ > = {
323
+ TABLE_NAME: 'binary_test',
324
+ ID: 'binary_test.id',
325
+ BIN_COL: 'binary_test.bin_col',
326
+ PRIMARY: [
327
+ 'binary_test.id',
328
+ ],
329
+ PRIMARY_SHORT: [
330
+ 'id',
331
+ ],
332
+ COLUMNS: {
333
+ 'binary_test.id': 'id',
334
+ 'binary_test.bin_col': 'bin_col',
335
+ },
336
+ TYPE_VALIDATION: {
337
+ 'binary_test.id': {
338
+ MYSQL_TYPE: 'int',
339
+ MAX_LENGTH: '',
340
+ AUTO_INCREMENT: true,
341
+ SKIP_COLUMN_IN_POST: false
342
+ },
343
+ 'binary_test.bin_col': {
344
+ MYSQL_TYPE: 'binary',
345
+ MAX_LENGTH: '16',
346
+ AUTO_INCREMENT: false,
347
+ SKIP_COLUMN_IN_POST: false
348
+ },
349
+ },
350
+ REGEX_VALIDATION: {
351
+ },
352
+ LIFECYCLE_HOOKS: {
353
+ GET: {beforeProcessing:{}, beforeExecution:{}, afterExecution:{}, afterCommit:{}},
354
+ PUT: {beforeProcessing:{}, beforeExecution:{}, afterExecution:{}, afterCommit:{}},
355
+ POST: {beforeProcessing:{}, beforeExecution:{}, afterExecution:{}, afterCommit:{}},
356
+ DELETE: {beforeProcessing:{}, beforeExecution:{}, afterExecution:{}, afterCommit:{}},
357
+ },
358
+ TABLE_REFERENCES: {
359
+
360
+ },
361
+ TABLE_REFERENCED_BY: {
362
+
363
+ }
364
+ }
365
+
298
366
  /**
299
367
  CREATE TABLE `category` (
300
368
  `category_id` tinyint unsigned NOT NULL AUTO_INCREMENT,
@@ -1916,13 +1984,14 @@ const store:
1916
1984
  }
1917
1985
 
1918
1986
  export const TABLES = {
1919
- actor,address,category,city,country,customer,film,film_actor,film_category,film_text,inventory,language,payment,rental,staff,store,
1987
+ actor,address,binary_test,category,city,country,customer,film,film_actor,film_category,film_text,inventory,language,payment,rental,staff,store,
1920
1988
  } satisfies {
1921
1989
  [K in keyof RestTableInterfaces]: C6RestfulModel<K, RestTableInterfaces[K], keyof RestTableInterfaces[K] & string>;
1922
1990
  };
1923
1991
 
1924
1992
  export type RestTableInterfaces = iActor
1925
1993
  | iAddress
1994
+ | iBinary_Test
1926
1995
  | iCategory
1927
1996
  | iCity
1928
1997
  | iCountry
@@ -1940,7 +2009,7 @@ export type RestTableInterfaces = iActor
1940
2009
 
1941
2010
  export const C6 : iC6Object<RestTableInterfaces> = {
1942
2011
  ...C6Constants,
1943
- C6VERSION: '3.7.18',
2012
+ C6VERSION: '3.7.19',
1944
2013
  IMPORT: async (tableName: string) : Promise<iDynamicApiImport> => {
1945
2014
 
1946
2015
  tableName = tableName.toLowerCase();
@@ -1976,6 +2045,7 @@ export type tStatefulApiData<T> = T[] | undefined | null;
1976
2045
  export interface iRestfulObjectArrayTypes {
1977
2046
  actor: tStatefulApiData<iActor>,
1978
2047
  address: tStatefulApiData<iAddress>,
2048
+ binary_test: tStatefulApiData<iBinary_Test>,
1979
2049
  category: tStatefulApiData<iCategory>,
1980
2050
  city: tStatefulApiData<iCity>,
1981
2051
  country: tStatefulApiData<iCountry>,
@@ -1997,6 +2067,7 @@ export type tRestfulObjectArrayValues = iRestfulObjectArrayTypes[keyof iRestfulO
1997
2067
  export const initialRestfulObjectsState: iRestfulObjectArrayTypes = {
1998
2068
  actor: undefined,
1999
2069
  address: undefined,
2070
+ binary_test: undefined,
2000
2071
  category: undefined,
2001
2072
  city: undefined,
2002
2073
  country: undefined,
@@ -2016,6 +2087,7 @@ export const initialRestfulObjectsState: iRestfulObjectArrayTypes = {
2016
2087
  export const COLUMNS = {
2017
2088
  'actor.actor_id': 'actor_id','actor.first_name': 'first_name','actor.last_name': 'last_name','actor.last_update': 'last_update',
2018
2089
  'address.address_id': 'address_id','address.address': 'address','address.address2': 'address2','address.district': 'district','address.city_id': 'city_id','address.postal_code': 'postal_code','address.phone': 'phone','address.location': 'location','address.last_update': 'last_update',
2090
+ 'binary_test.id': 'id','binary_test.bin_col': 'bin_col',
2019
2091
  'category.category_id': 'category_id','category.name': 'name','category.last_update': 'last_update',
2020
2092
  'city.city_id': 'city_id','city.city': 'city','city.country_id': 'country_id','city.last_update': 'last_update',
2021
2093
  'country.country_id': 'country_id','country.country': 'country','country.last_update': 'last_update',
@@ -2059,6 +2131,16 @@ export const Address = {
2059
2131
  }))
2060
2132
  }
2061
2133
 
2134
+ export const Binary_Test = {
2135
+ ...binary_test,
2136
+ ...restOrm<
2137
+ OrmGenerics<any, 'binary_test', iBinary_Test, Binary_TestPrimaryKeys>
2138
+ >(() => ({
2139
+ ...GLOBAL_REST_PARAMETERS,
2140
+ restModel: binary_test
2141
+ }))
2142
+ }
2143
+
2062
2144
  export const Category = {
2063
2145
  ...category,
2064
2146
  ...restOrm<
@@ -2200,7 +2282,7 @@ export const Store = {
2200
2282
  }
2201
2283
 
2202
2284
  C6.ORM = {
2203
- Actor, Address, Category, City, Country, Customer, Film, Film_Actor, Film_Category, Film_Text, Inventory, Language, Payment, Rental, Staff, Store,
2285
+ Actor, Address, Binary_Test, Category, City, Country, Customer, Film, Film_Actor, Film_Category, Film_Text, Inventory, Language, Payment, Rental, Staff, Store,
2204
2286
  };
2205
2287
 
2206
2288