@carbonorm/carbonreact 2.0.0 → 2.0.1

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.
@@ -16,8 +16,8 @@ export interface iTypeValidation {
16
16
  AUTO_INCREMENT: boolean;
17
17
  SKIP_COLUMN_IN_POST: boolean;
18
18
  }
19
- export type RestTableNames = 'carbon_carbons' | 'carbon_comments' | 'carbon_documentation' | 'carbon_feature_group_references' | 'carbon_features' | 'carbon_group_references' | 'carbon_groups' | 'carbon_history_logs' | 'carbon_location_references' | 'carbon_locations' | 'carbon_photos' | 'carbon_reports' | 'carbon_sessions' | 'carbon_user_followers' | 'carbon_user_groups' | 'carbon_user_messages' | 'carbon_user_sessions' | 'carbon_user_tasks' | 'carbon_users' | 'carbon_wp_commentmeta' | 'carbon_wp_comments' | 'carbon_wp_links' | 'carbon_wp_options' | 'carbon_wp_postmeta' | 'carbon_wp_posts' | 'carbon_wp_term_relationships' | 'carbon_wp_term_taxonomy' | 'carbon_wp_termmeta' | 'carbon_wp_terms' | 'carbon_wp_usermeta' | 'carbon_wp_users';
20
- export type RestShortTableNames = 'carbons' | 'comments' | 'documentation' | 'feature_group_references' | 'features' | 'group_references' | 'groups' | 'history_logs' | 'location_references' | 'locations' | 'photos' | 'reports' | 'sessions' | 'user_followers' | 'user_groups' | 'user_messages' | 'user_sessions' | 'user_tasks' | 'users' | 'wp_commentmeta' | 'wp_comments' | 'wp_links' | 'wp_options' | 'wp_postmeta' | 'wp_posts' | 'wp_term_relationships' | 'wp_term_taxonomy' | 'wp_termmeta' | 'wp_terms' | 'wp_usermeta' | 'wp_users';
19
+ export type RestTableNames = 'carbon_carbons' | 'carbon_comments' | 'carbon_documentation' | 'carbon_feature_group_references' | 'carbon_features' | 'carbon_group_references' | 'carbon_groups' | 'carbon_history_logs' | 'carbon_location_references' | 'carbon_locations' | 'carbon_photos' | 'carbon_reports' | 'carbon_user_followers' | 'carbon_user_groups' | 'carbon_user_messages' | 'carbon_user_sessions' | 'carbon_user_tasks' | 'carbon_users';
20
+ export type RestShortTableNames = 'carbons' | 'comments' | 'documentation' | 'feature_group_references' | 'features' | 'group_references' | 'groups' | 'history_logs' | 'location_references' | 'locations' | 'photos' | 'reports' | 'user_followers' | 'user_groups' | 'user_messages' | 'user_sessions' | 'user_tasks' | 'users';
21
21
  export interface C6RestfulModel {
22
22
  TABLE_NAME: RestShortTableNames;
23
23
  PRIMARY: string[];
@@ -183,23 +183,6 @@ interface iDefineReports {
183
183
  'CALL_TRACE': string;
184
184
  }
185
185
  export declare const reports: C6RestfulModel & iDefineReports;
186
- export interface iSessions {
187
- 'user_id'?: string;
188
- 'user_ip'?: string;
189
- 'session_id'?: string;
190
- 'session_expires'?: string;
191
- 'session_data'?: string;
192
- 'user_online_status'?: number;
193
- }
194
- interface iDefineSessions {
195
- 'USER_ID': string;
196
- 'USER_IP': string;
197
- 'SESSION_ID': string;
198
- 'SESSION_EXPIRES': string;
199
- 'SESSION_DATA': string;
200
- 'USER_ONLINE_STATUS': string;
201
- }
202
- export declare const sessions: C6RestfulModel & iDefineSessions;
203
186
  export interface iUser_Followers {
204
187
  'follower_table_id'?: string;
205
188
  'follows_user_id'?: string;
@@ -334,254 +317,6 @@ interface iDefineUsers {
334
317
  'USER_CREATION_DATE': string;
335
318
  }
336
319
  export declare const users: C6RestfulModel & iDefineUsers;
337
- export interface iWp_Commentmeta {
338
- 'meta_id'?: number;
339
- 'comment_id'?: number;
340
- 'meta_key'?: string;
341
- 'meta_value'?: string;
342
- }
343
- interface iDefineWp_Commentmeta {
344
- 'META_ID': string;
345
- 'COMMENT_ID': string;
346
- 'META_KEY': string;
347
- 'META_VALUE': string;
348
- }
349
- export declare const wp_commentmeta: C6RestfulModel & iDefineWp_Commentmeta;
350
- export interface iWp_Comments {
351
- 'comment_ID'?: number;
352
- 'comment_post_ID'?: number;
353
- 'comment_author'?: string;
354
- 'comment_author_email'?: string;
355
- 'comment_author_url'?: string;
356
- 'comment_author_IP'?: string;
357
- 'comment_date'?: string;
358
- 'comment_date_gmt'?: string;
359
- 'comment_content'?: string;
360
- 'comment_karma'?: number;
361
- 'comment_approved'?: string;
362
- 'comment_agent'?: string;
363
- 'comment_type'?: string;
364
- 'comment_parent'?: number;
365
- 'user_id'?: number;
366
- }
367
- interface iDefineWp_Comments {
368
- 'COMMENT_ID': string;
369
- 'COMMENT_POST_ID': string;
370
- 'COMMENT_AUTHOR': string;
371
- 'COMMENT_AUTHOR_EMAIL': string;
372
- 'COMMENT_AUTHOR_URL': string;
373
- 'COMMENT_AUTHOR_IP': string;
374
- 'COMMENT_DATE': string;
375
- 'COMMENT_DATE_GMT': string;
376
- 'COMMENT_CONTENT': string;
377
- 'COMMENT_KARMA': string;
378
- 'COMMENT_APPROVED': string;
379
- 'COMMENT_AGENT': string;
380
- 'COMMENT_TYPE': string;
381
- 'COMMENT_PARENT': string;
382
- 'USER_ID': string;
383
- }
384
- export declare const wp_comments: C6RestfulModel & iDefineWp_Comments;
385
- export interface iWp_Links {
386
- 'link_id'?: number;
387
- 'link_url'?: string;
388
- 'link_name'?: string;
389
- 'link_image'?: string;
390
- 'link_target'?: string;
391
- 'link_description'?: string;
392
- 'link_visible'?: string;
393
- 'link_owner'?: number;
394
- 'link_rating'?: number;
395
- 'link_updated'?: string;
396
- 'link_rel'?: string;
397
- 'link_notes'?: string;
398
- 'link_rss'?: string;
399
- }
400
- interface iDefineWp_Links {
401
- 'LINK_ID': string;
402
- 'LINK_URL': string;
403
- 'LINK_NAME': string;
404
- 'LINK_IMAGE': string;
405
- 'LINK_TARGET': string;
406
- 'LINK_DESCRIPTION': string;
407
- 'LINK_VISIBLE': string;
408
- 'LINK_OWNER': string;
409
- 'LINK_RATING': string;
410
- 'LINK_UPDATED': string;
411
- 'LINK_REL': string;
412
- 'LINK_NOTES': string;
413
- 'LINK_RSS': string;
414
- }
415
- export declare const wp_links: C6RestfulModel & iDefineWp_Links;
416
- export interface iWp_Options {
417
- 'option_id'?: number;
418
- 'option_name'?: string;
419
- 'option_value'?: string;
420
- 'autoload'?: string;
421
- }
422
- interface iDefineWp_Options {
423
- 'OPTION_ID': string;
424
- 'OPTION_NAME': string;
425
- 'OPTION_VALUE': string;
426
- 'AUTOLOAD': string;
427
- }
428
- export declare const wp_options: C6RestfulModel & iDefineWp_Options;
429
- export interface iWp_Postmeta {
430
- 'meta_id'?: number;
431
- 'post_id'?: number;
432
- 'meta_key'?: string;
433
- 'meta_value'?: string;
434
- }
435
- interface iDefineWp_Postmeta {
436
- 'META_ID': string;
437
- 'POST_ID': string;
438
- 'META_KEY': string;
439
- 'META_VALUE': string;
440
- }
441
- export declare const wp_postmeta: C6RestfulModel & iDefineWp_Postmeta;
442
- export interface iWp_Posts {
443
- 'ID'?: number;
444
- 'post_author'?: number;
445
- 'post_date'?: string;
446
- 'post_date_gmt'?: string;
447
- 'post_content'?: string;
448
- 'post_title'?: string;
449
- 'post_excerpt'?: string;
450
- 'post_status'?: string;
451
- 'comment_status'?: string;
452
- 'ping_status'?: string;
453
- 'post_password'?: string;
454
- 'post_name'?: string;
455
- 'to_ping'?: string;
456
- 'pinged'?: string;
457
- 'post_modified'?: string;
458
- 'post_modified_gmt'?: string;
459
- 'post_content_filtered'?: string;
460
- 'post_parent'?: number;
461
- 'guid'?: string;
462
- 'menu_order'?: number;
463
- 'post_type'?: string;
464
- 'post_mime_type'?: string;
465
- 'comment_count'?: number;
466
- }
467
- interface iDefineWp_Posts {
468
- 'ID': string;
469
- 'POST_AUTHOR': string;
470
- 'POST_DATE': string;
471
- 'POST_DATE_GMT': string;
472
- 'POST_CONTENT': string;
473
- 'POST_TITLE': string;
474
- 'POST_EXCERPT': string;
475
- 'POST_STATUS': string;
476
- 'COMMENT_STATUS': string;
477
- 'PING_STATUS': string;
478
- 'POST_PASSWORD': string;
479
- 'POST_NAME': string;
480
- 'TO_PING': string;
481
- 'PINGED': string;
482
- 'POST_MODIFIED': string;
483
- 'POST_MODIFIED_GMT': string;
484
- 'POST_CONTENT_FILTERED': string;
485
- 'POST_PARENT': string;
486
- 'GUID': string;
487
- 'MENU_ORDER': string;
488
- 'POST_TYPE': string;
489
- 'POST_MIME_TYPE': string;
490
- 'COMMENT_COUNT': string;
491
- }
492
- export declare const wp_posts: C6RestfulModel & iDefineWp_Posts;
493
- export interface iWp_Term_Relationships {
494
- 'object_id'?: number;
495
- 'term_taxonomy_id'?: number;
496
- 'term_order'?: number;
497
- }
498
- interface iDefineWp_Term_Relationships {
499
- 'OBJECT_ID': string;
500
- 'TERM_TAXONOMY_ID': string;
501
- 'TERM_ORDER': string;
502
- }
503
- export declare const wp_term_relationships: C6RestfulModel & iDefineWp_Term_Relationships;
504
- export interface iWp_Term_Taxonomy {
505
- 'term_taxonomy_id'?: number;
506
- 'term_id'?: number;
507
- 'taxonomy'?: string;
508
- 'description'?: string;
509
- 'parent'?: number;
510
- 'count'?: number;
511
- }
512
- interface iDefineWp_Term_Taxonomy {
513
- 'TERM_TAXONOMY_ID': string;
514
- 'TERM_ID': string;
515
- 'TAXONOMY': string;
516
- 'DESCRIPTION': string;
517
- 'PARENT': string;
518
- 'COUNT': string;
519
- }
520
- export declare const wp_term_taxonomy: C6RestfulModel & iDefineWp_Term_Taxonomy;
521
- export interface iWp_Termmeta {
522
- 'meta_id'?: number;
523
- 'term_id'?: number;
524
- 'meta_key'?: string;
525
- 'meta_value'?: string;
526
- }
527
- interface iDefineWp_Termmeta {
528
- 'META_ID': string;
529
- 'TERM_ID': string;
530
- 'META_KEY': string;
531
- 'META_VALUE': string;
532
- }
533
- export declare const wp_termmeta: C6RestfulModel & iDefineWp_Termmeta;
534
- export interface iWp_Terms {
535
- 'term_id'?: number;
536
- 'name'?: string;
537
- 'slug'?: string;
538
- 'term_group'?: number;
539
- }
540
- interface iDefineWp_Terms {
541
- 'TERM_ID': string;
542
- 'NAME': string;
543
- 'SLUG': string;
544
- 'TERM_GROUP': string;
545
- }
546
- export declare const wp_terms: C6RestfulModel & iDefineWp_Terms;
547
- export interface iWp_Usermeta {
548
- 'umeta_id'?: number;
549
- 'user_id'?: number;
550
- 'meta_key'?: string;
551
- 'meta_value'?: string;
552
- }
553
- interface iDefineWp_Usermeta {
554
- 'UMETA_ID': string;
555
- 'USER_ID': string;
556
- 'META_KEY': string;
557
- 'META_VALUE': string;
558
- }
559
- export declare const wp_usermeta: C6RestfulModel & iDefineWp_Usermeta;
560
- export interface iWp_Users {
561
- 'ID'?: number;
562
- 'user_login'?: string;
563
- 'user_pass'?: string;
564
- 'user_nicename'?: string;
565
- 'user_email'?: string;
566
- 'user_url'?: string;
567
- 'user_registered'?: string;
568
- 'user_activation_key'?: string;
569
- 'user_status'?: number;
570
- 'display_name'?: string;
571
- }
572
- interface iDefineWp_Users {
573
- 'ID': string;
574
- 'USER_LOGIN': string;
575
- 'USER_PASS': string;
576
- 'USER_NICENAME': string;
577
- 'USER_EMAIL': string;
578
- 'USER_URL': string;
579
- 'USER_REGISTERED': string;
580
- 'USER_ACTIVATION_KEY': string;
581
- 'USER_STATUS': string;
582
- 'DISPLAY_NAME': string;
583
- }
584
- export declare const wp_users: C6RestfulModel & iDefineWp_Users;
585
320
  export declare const TABLES: {
586
321
  carbons: C6RestfulModel & iDefineCarbons;
587
322
  comments: C6RestfulModel & iDefineComments;
@@ -595,211 +330,21 @@ export declare const TABLES: {
595
330
  locations: C6RestfulModel & iDefineLocations;
596
331
  photos: C6RestfulModel & iDefinePhotos;
597
332
  reports: C6RestfulModel & iDefineReports;
598
- sessions: C6RestfulModel & iDefineSessions;
599
333
  user_followers: C6RestfulModel & iDefineUser_Followers;
600
334
  user_groups: C6RestfulModel & iDefineUser_Groups;
601
335
  user_messages: C6RestfulModel & iDefineUser_Messages;
602
336
  user_sessions: C6RestfulModel & iDefineUser_Sessions;
603
337
  user_tasks: C6RestfulModel & iDefineUser_Tasks;
604
338
  users: C6RestfulModel & iDefineUsers;
605
- wp_commentmeta: C6RestfulModel & iDefineWp_Commentmeta;
606
- wp_comments: C6RestfulModel & iDefineWp_Comments;
607
- wp_links: C6RestfulModel & iDefineWp_Links;
608
- wp_options: C6RestfulModel & iDefineWp_Options;
609
- wp_postmeta: C6RestfulModel & iDefineWp_Postmeta;
610
- wp_posts: C6RestfulModel & iDefineWp_Posts;
611
- wp_term_relationships: C6RestfulModel & iDefineWp_Term_Relationships;
612
- wp_term_taxonomy: C6RestfulModel & iDefineWp_Term_Taxonomy;
613
- wp_termmeta: C6RestfulModel & iDefineWp_Termmeta;
614
- wp_terms: C6RestfulModel & iDefineWp_Terms;
615
- wp_usermeta: C6RestfulModel & iDefineWp_Usermeta;
616
- wp_users: C6RestfulModel & iDefineWp_Users;
617
339
  };
618
340
  export declare const C6: {
619
- carbons: C6RestfulModel & iDefineCarbons;
620
- comments: C6RestfulModel & iDefineComments;
621
- documentation: C6RestfulModel & iDefineDocumentation;
622
- feature_group_references: C6RestfulModel & iDefineFeature_Group_References;
623
- features: C6RestfulModel & iDefineFeatures;
624
- group_references: C6RestfulModel & iDefineGroup_References;
625
- groups: C6RestfulModel & iDefineGroups;
626
- history_logs: C6RestfulModel & iDefineHistory_Logs;
627
- location_references: C6RestfulModel & iDefineLocation_References;
628
- locations: C6RestfulModel & iDefineLocations;
629
- photos: C6RestfulModel & iDefinePhotos;
630
- reports: C6RestfulModel & iDefineReports;
631
- sessions: C6RestfulModel & iDefineSessions;
632
- user_followers: C6RestfulModel & iDefineUser_Followers;
633
- user_groups: C6RestfulModel & iDefineUser_Groups;
634
- user_messages: C6RestfulModel & iDefineUser_Messages;
635
- user_sessions: C6RestfulModel & iDefineUser_Sessions;
636
- user_tasks: C6RestfulModel & iDefineUser_Tasks;
637
- users: C6RestfulModel & iDefineUsers;
638
- wp_commentmeta: C6RestfulModel & iDefineWp_Commentmeta;
639
- wp_comments: C6RestfulModel & iDefineWp_Comments;
640
- wp_links: C6RestfulModel & iDefineWp_Links;
641
- wp_options: C6RestfulModel & iDefineWp_Options;
642
- wp_postmeta: C6RestfulModel & iDefineWp_Postmeta;
643
- wp_posts: C6RestfulModel & iDefineWp_Posts;
644
- wp_term_relationships: C6RestfulModel & iDefineWp_Term_Relationships;
645
- wp_term_taxonomy: C6RestfulModel & iDefineWp_Term_Taxonomy;
646
- wp_termmeta: C6RestfulModel & iDefineWp_Termmeta;
647
- wp_terms: C6RestfulModel & iDefineWp_Terms;
648
- wp_usermeta: C6RestfulModel & iDefineWp_Usermeta;
649
- wp_users: C6RestfulModel & iDefineWp_Users;
650
- ADDDATE: string;
651
- ADDTIME: string;
652
- AS: string;
653
- ASC: string;
654
- BETWEEN: string;
655
- CONCAT: string;
656
- CONVERT_TZ: string;
657
- COUNT: string;
658
- COUNT_ALL: string;
659
- CURRENT_DATE: string;
660
- CURRENT_TIMESTAMP: string;
661
- DAY: string;
662
- DAY_HOUR: string;
663
- DAY_MICROSECOND: string;
664
- DAY_MINUTE: string;
665
- DAY_SECOND: string;
666
- DAYNAME: string;
667
- DAYOFMONTH: string;
668
- DAYOFWEEK: string;
669
- DAYOFYEAR: string;
670
- DATE: string;
671
- DATE_ADD: string;
672
- DATEDIFF: string;
673
- DATE_SUB: string;
674
- DATE_FORMAT: string;
675
- DESC: string;
676
- DISTINCT: string;
677
- EXTRACT: string;
678
- EQUAL: string;
679
- EQUAL_NULL_SAFE: string;
680
- FALSE: string;
681
- FULL_OUTER: string;
682
- FROM_DAYS: string;
683
- FROM_UNIXTIME: string;
684
- GET_FORMAT: string;
685
- GREATER_THAN: string;
686
- GROUP_BY: string;
687
- GROUP_CONCAT: string;
688
- GREATER_THAN_OR_EQUAL_TO: string;
689
- HAVING: string;
690
- HEX: string;
691
- HOUR: string;
692
- HOUR_MICROSECOND: string;
693
- HOUR_SECOND: string;
694
- HOUR_MINUTE: string;
695
- IN: string;
696
- IS: string;
697
- IS_NOT: string;
698
- INNER: string;
699
- INTERVAL: string;
700
- JOIN: string;
701
- LEFT: string;
702
- LEFT_OUTER: string;
703
- LESS_THAN: string;
704
- LESS_THAN_OR_EQUAL_TO: string;
705
- LIKE: string;
706
- LIMIT: string;
707
- LOCALTIME: string;
708
- LOCALTIMESTAMP: string;
709
- MAKEDATE: string;
710
- MAKETIME: string;
711
- MONTHNAME: string;
712
- MICROSECOND: string;
713
- MINUTE: string;
714
- MINUTE_MICROSECOND: string;
715
- MINUTE_SECOND: string;
716
- MIN: string;
717
- MAX: string;
718
- MONTH: string;
719
- NOT_LIKE: string;
720
- NOT_EQUAL: string;
721
- NOT_IN: string;
722
- NOW: string;
723
- NULL: string;
724
- ORDER: string;
725
- PAGE: string;
726
- PAGINATION: string;
727
- RIGHT_OUTER: string;
728
- SECOND: string;
729
- SECOND_MICROSECOND: string;
730
- SELECT: string;
731
- STR_TO_DATE: string;
732
- SUBDATE: string;
733
- SUBTIME: string;
734
- SUM: string;
735
- SYSDATE: string;
736
- TIME: string;
737
- TIME_FORMAT: string;
738
- TIME_TO_SEC: string;
739
- TIMEDIFF: string;
740
- TIMESTAMP: string;
741
- TIMESTAMPADD: string;
742
- TIMESTAMPDIFF: string;
743
- TO_DAYS: string;
744
- TO_SECONDS: string;
745
- TRANSACTION_TIMESTAMP: string;
746
- TRUE: string;
747
- UNIX_TIMESTAMP: string;
748
- UNKNOWN: string;
749
- UPDATE: string;
750
- UNHEX: string;
751
- UTC_DATE: string;
752
- UTC_TIME: string;
753
- UTC_TIMESTAMP: string;
754
- WHERE: string;
755
- WEEKDAY: string;
756
- WEEKOFYEAR: string;
757
- YEARWEEK: string;
758
- DEPENDANT_ON_ENTITY: string;
759
- OPTIONS: string;
760
- GET: string;
761
- POST: string;
762
- PUT: string;
763
- REPLACE: string;
764
- DELETE: string;
765
- REST_REQUEST_PREPROCESS_CALLBACKS: string;
766
- PREPROCESS: string;
767
- REST_REQUEST_FINNISH_CALLBACKS: string;
768
- FINISH: string;
769
- VALIDATE_C6_ENTITY_ID_REGEX: string;
770
341
  TABLES: {
771
- carbons: C6RestfulModel & iDefineCarbons;
772
- comments: C6RestfulModel & iDefineComments;
773
- documentation: C6RestfulModel & iDefineDocumentation;
774
- feature_group_references: C6RestfulModel & iDefineFeature_Group_References;
775
- features: C6RestfulModel & iDefineFeatures;
776
- group_references: C6RestfulModel & iDefineGroup_References;
777
- groups: C6RestfulModel & iDefineGroups;
778
- history_logs: C6RestfulModel & iDefineHistory_Logs;
779
- location_references: C6RestfulModel & iDefineLocation_References;
780
- locations: C6RestfulModel & iDefineLocations;
781
- photos: C6RestfulModel & iDefinePhotos;
782
- reports: C6RestfulModel & iDefineReports;
783
- sessions: C6RestfulModel & iDefineSessions;
784
- user_followers: C6RestfulModel & iDefineUser_Followers;
785
- user_groups: C6RestfulModel & iDefineUser_Groups;
786
- user_messages: C6RestfulModel & iDefineUser_Messages;
787
- user_sessions: C6RestfulModel & iDefineUser_Sessions;
788
- user_tasks: C6RestfulModel & iDefineUser_Tasks;
789
- users: C6RestfulModel & iDefineUsers;
790
- wp_commentmeta: C6RestfulModel & iDefineWp_Commentmeta;
791
- wp_comments: C6RestfulModel & iDefineWp_Comments;
792
- wp_links: C6RestfulModel & iDefineWp_Links;
793
- wp_options: C6RestfulModel & iDefineWp_Options;
794
- wp_postmeta: C6RestfulModel & iDefineWp_Postmeta;
795
- wp_posts: C6RestfulModel & iDefineWp_Posts;
796
- wp_term_relationships: C6RestfulModel & iDefineWp_Term_Relationships;
797
- wp_term_taxonomy: C6RestfulModel & iDefineWp_Term_Taxonomy;
798
- wp_termmeta: C6RestfulModel & iDefineWp_Termmeta;
799
- wp_terms: C6RestfulModel & iDefineWp_Terms;
800
- wp_usermeta: C6RestfulModel & iDefineWp_Usermeta;
801
- wp_users: C6RestfulModel & iDefineWp_Users;
342
+ [key: string]: (C6RestfulModel & {
343
+ [key: string]: any;
344
+ });
802
345
  };
346
+ } & {
347
+ [key: string]: any;
803
348
  };
804
349
  export declare const COLUMNS: {
805
350
  'carbon_carbons.entity_pk': string;
@@ -850,12 +395,6 @@ export declare const COLUMNS: {
850
395
  'carbon_reports.report': string;
851
396
  'carbon_reports.date': string;
852
397
  'carbon_reports.call_trace': string;
853
- 'carbon_sessions.user_id': string;
854
- 'carbon_sessions.user_ip': string;
855
- 'carbon_sessions.session_id': string;
856
- 'carbon_sessions.session_expires': string;
857
- 'carbon_sessions.session_data': string;
858
- 'carbon_sessions.user_online_status': string;
859
398
  'carbon_user_followers.follower_table_id': string;
860
399
  'carbon_user_followers.follows_user_id': string;
861
400
  'carbon_user_followers.user_id': string;
@@ -908,101 +447,31 @@ export declare const COLUMNS: {
908
447
  'carbon_users.user_education_history': string;
909
448
  'carbon_users.user_location': string;
910
449
  'carbon_users.user_creation_date': string;
911
- 'carbon_wp_commentmeta.meta_id': string;
912
- 'carbon_wp_commentmeta.comment_id': string;
913
- 'carbon_wp_commentmeta.meta_key': string;
914
- 'carbon_wp_commentmeta.meta_value': string;
915
- 'carbon_wp_comments.comment_ID': string;
916
- 'carbon_wp_comments.comment_post_ID': string;
917
- 'carbon_wp_comments.comment_author': string;
918
- 'carbon_wp_comments.comment_author_email': string;
919
- 'carbon_wp_comments.comment_author_url': string;
920
- 'carbon_wp_comments.comment_author_IP': string;
921
- 'carbon_wp_comments.comment_date': string;
922
- 'carbon_wp_comments.comment_date_gmt': string;
923
- 'carbon_wp_comments.comment_content': string;
924
- 'carbon_wp_comments.comment_karma': string;
925
- 'carbon_wp_comments.comment_approved': string;
926
- 'carbon_wp_comments.comment_agent': string;
927
- 'carbon_wp_comments.comment_type': string;
928
- 'carbon_wp_comments.comment_parent': string;
929
- 'carbon_wp_comments.user_id': string;
930
- 'carbon_wp_links.link_id': string;
931
- 'carbon_wp_links.link_url': string;
932
- 'carbon_wp_links.link_name': string;
933
- 'carbon_wp_links.link_image': string;
934
- 'carbon_wp_links.link_target': string;
935
- 'carbon_wp_links.link_description': string;
936
- 'carbon_wp_links.link_visible': string;
937
- 'carbon_wp_links.link_owner': string;
938
- 'carbon_wp_links.link_rating': string;
939
- 'carbon_wp_links.link_updated': string;
940
- 'carbon_wp_links.link_rel': string;
941
- 'carbon_wp_links.link_notes': string;
942
- 'carbon_wp_links.link_rss': string;
943
- 'carbon_wp_options.option_id': string;
944
- 'carbon_wp_options.option_name': string;
945
- 'carbon_wp_options.option_value': string;
946
- 'carbon_wp_options.autoload': string;
947
- 'carbon_wp_postmeta.meta_id': string;
948
- 'carbon_wp_postmeta.post_id': string;
949
- 'carbon_wp_postmeta.meta_key': string;
950
- 'carbon_wp_postmeta.meta_value': string;
951
- 'carbon_wp_posts.ID': string;
952
- 'carbon_wp_posts.post_author': string;
953
- 'carbon_wp_posts.post_date': string;
954
- 'carbon_wp_posts.post_date_gmt': string;
955
- 'carbon_wp_posts.post_content': string;
956
- 'carbon_wp_posts.post_title': string;
957
- 'carbon_wp_posts.post_excerpt': string;
958
- 'carbon_wp_posts.post_status': string;
959
- 'carbon_wp_posts.comment_status': string;
960
- 'carbon_wp_posts.ping_status': string;
961
- 'carbon_wp_posts.post_password': string;
962
- 'carbon_wp_posts.post_name': string;
963
- 'carbon_wp_posts.to_ping': string;
964
- 'carbon_wp_posts.pinged': string;
965
- 'carbon_wp_posts.post_modified': string;
966
- 'carbon_wp_posts.post_modified_gmt': string;
967
- 'carbon_wp_posts.post_content_filtered': string;
968
- 'carbon_wp_posts.post_parent': string;
969
- 'carbon_wp_posts.guid': string;
970
- 'carbon_wp_posts.menu_order': string;
971
- 'carbon_wp_posts.post_type': string;
972
- 'carbon_wp_posts.post_mime_type': string;
973
- 'carbon_wp_posts.comment_count': string;
974
- 'carbon_wp_term_relationships.object_id': string;
975
- 'carbon_wp_term_relationships.term_taxonomy_id': string;
976
- 'carbon_wp_term_relationships.term_order': string;
977
- 'carbon_wp_term_taxonomy.term_taxonomy_id': string;
978
- 'carbon_wp_term_taxonomy.term_id': string;
979
- 'carbon_wp_term_taxonomy.taxonomy': string;
980
- 'carbon_wp_term_taxonomy.description': string;
981
- 'carbon_wp_term_taxonomy.parent': string;
982
- 'carbon_wp_term_taxonomy.count': string;
983
- 'carbon_wp_termmeta.meta_id': string;
984
- 'carbon_wp_termmeta.term_id': string;
985
- 'carbon_wp_termmeta.meta_key': string;
986
- 'carbon_wp_termmeta.meta_value': string;
987
- 'carbon_wp_terms.term_id': string;
988
- 'carbon_wp_terms.name': string;
989
- 'carbon_wp_terms.slug': string;
990
- 'carbon_wp_terms.term_group': string;
991
- 'carbon_wp_usermeta.umeta_id': string;
992
- 'carbon_wp_usermeta.user_id': string;
993
- 'carbon_wp_usermeta.meta_key': string;
994
- 'carbon_wp_usermeta.meta_value': string;
995
- 'carbon_wp_users.ID': string;
996
- 'carbon_wp_users.user_login': string;
997
- 'carbon_wp_users.user_pass': string;
998
- 'carbon_wp_users.user_nicename': string;
999
- 'carbon_wp_users.user_email': string;
1000
- 'carbon_wp_users.user_url': string;
1001
- 'carbon_wp_users.user_registered': string;
1002
- 'carbon_wp_users.user_activation_key': string;
1003
- 'carbon_wp_users.user_status': string;
1004
- 'carbon_wp_users.display_name': string;
1005
450
  };
1006
- export type RestTableInterfaces = iCarbons | iComments | iDocumentation | iFeature_Group_References | iFeatures | iGroup_References | iGroups | iHistory_Logs | iLocation_References | iLocations | iPhotos | iReports | iSessions | iUser_Followers | iUser_Groups | iUser_Messages | iUser_Sessions | iUser_Tasks | iUsers | iWp_Commentmeta | iWp_Comments | iWp_Links | iWp_Options | iWp_Postmeta | iWp_Posts | iWp_Term_Relationships | iWp_Term_Taxonomy | iWp_Termmeta | iWp_Terms | iWp_Usermeta | iWp_Users;
1007
- export declare const convertForRequestBody: (restfulObject: RestTableInterfaces, tableName: string | string[], regexErrorHandler?: (message: string) => void) => {};
451
+ export type RestTableInterfaces = iCarbons | iComments | iDocumentation | iFeature_Group_References | iFeatures | iGroup_References | iGroups | iHistory_Logs | iLocation_References | iLocations | iPhotos | iReports | iUser_Followers | iUser_Groups | iUser_Messages | iUser_Sessions | iUser_Tasks | iUsers;
452
+ export type tStatefulApiData<T> = T[] | undefined | null;
453
+ export interface iRestfulObjectArrayTypes {
454
+ carbons: tStatefulApiData<iCarbons>;
455
+ comments: tStatefulApiData<iComments>;
456
+ documentation: tStatefulApiData<iDocumentation>;
457
+ feature_group_references: tStatefulApiData<iFeature_Group_References>;
458
+ features: tStatefulApiData<iFeatures>;
459
+ group_references: tStatefulApiData<iGroup_References>;
460
+ groups: tStatefulApiData<iGroups>;
461
+ history_logs: tStatefulApiData<iHistory_Logs>;
462
+ location_references: tStatefulApiData<iLocation_References>;
463
+ locations: tStatefulApiData<iLocations>;
464
+ photos: tStatefulApiData<iPhotos>;
465
+ reports: tStatefulApiData<iReports>;
466
+ user_followers: tStatefulApiData<iUser_Followers>;
467
+ user_groups: tStatefulApiData<iUser_Groups>;
468
+ user_messages: tStatefulApiData<iUser_Messages>;
469
+ user_sessions: tStatefulApiData<iUser_Sessions>;
470
+ user_tasks: tStatefulApiData<iUser_Tasks>;
471
+ users: tStatefulApiData<iUsers>;
472
+ }
473
+ export declare const initialRestfulObjectsState: iRestfulObjectArrayTypes;
474
+ export type tRestfulObjectArrayKeys = keyof iRestfulObjectArrayTypes;
475
+ export type tRestfulObjectArrayValues = iRestfulObjectArrayTypes[tRestfulObjectArrayKeys];
476
+ export type tRestfulObjectValues = tRestfulObjectArrayValues[number];
1008
477
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,7 @@ import {ToastContainer} from 'react-toastify';
8
8
  import 'react-toastify/dist/ReactToastify.min.css';
9
9
  import BackendThrowable from 'components/Errors/BackendThrowable';
10
10
  import Nest from 'components/Nest/Nest';
11
- import {initialRestfulObjectArrayTypes, iRestfulObjectArrayTypes} from "variables/C6";
11
+ import {initialRestfulObjectsState, iRestfulObjectArrayTypes} from "variables/C6";
12
12
 
13
13
 
14
14
 
@@ -21,7 +21,7 @@ export interface iCarbonORMState {
21
21
  backendThrowable: any[],
22
22
  }
23
23
 
24
- export const initialRequiredState: iCarbonORMState = {
24
+ export const initialRequiredCarbonORMState: iCarbonORMState = {
25
25
  alertsWaiting: [],
26
26
  backendThrowable: [],
27
27
  websocketData: [],
@@ -29,9 +29,8 @@ export const initialRequiredState: iCarbonORMState = {
29
29
  }
30
30
 
31
31
  export const initialCarbonORMState: iCarbonORMState = {
32
- ...initialRestfulObjectArrayTypes,
33
- ...initialRequiredState,
34
-
32
+ ...initialRequiredCarbonORMState,
33
+ ...initialRestfulObjectsState,
35
34
  }
36
35
 
37
36
  export default class CarbonReact<P = {}, S = {}> extends React.Component<{