From 1d5da4022d235f79c11db5de565faadb0a746335 Mon Sep 17 00:00:00 2001 From: Richard Rodger Date: Fri, 5 Jul 2024 19:02:37 +0100 Subject: [PATCH] happy --- coverage/lcov.info | 2490 ++++++++++++++++++----------------- dist/entity.d.ts | 1 + dist/entity.js | 7 + dist/entity.js.map | 2 +- dist/lib/make_entity.js | 28 +- dist/lib/make_entity.js.map | 2 +- dist/lib/store.js | 4 +- dist/lib/store.js.map | 2 +- dist/valid.d.ts | 3 + dist/valid.js | 40 + dist/valid.js.map | 1 + package.json | 9 +- src/entity.ts | 12 + src/lib/make_entity.ts | 88 +- src/valid.ts | 57 + test/quick.js | 47 +- test/valid.test.js | 72 + 17 files changed, 1629 insertions(+), 1236 deletions(-) create mode 100644 dist/valid.d.ts create mode 100644 dist/valid.js create mode 100644 dist/valid.js.map create mode 100644 src/valid.ts create mode 100644 test/valid.test.js diff --git a/coverage/lcov.info b/coverage/lcov.info index e674ea1..6c05588 100644 --- a/coverage/lcov.info +++ b/coverage/lcov.info @@ -1,11 +1,11 @@ TN: SF:src/entity.ts -FN:16,entity -FN:55,preload -FN:73,build_api_make -FN:75,entityAPI -FN:116,seneca.root.private$.exports.Entity.log$ -FN:144,generate_id +FN:20,entity +FN:64,preload +FN:82,build_api_make +FN:84,entityAPI +FN:125,seneca.root.private$.exports.Entity.log$ +FN:156,generate_id FNF:6 FNH:6 FNDA:51,entity @@ -29,18 +29,18 @@ DA:12,1 DA:13,1 DA:14,1 DA:15,1 -DA:16,51 -DA:17,51 -DA:18,51 -DA:19,51 +DA:16,1 +DA:17,1 +DA:18,1 +DA:19,1 DA:20,51 DA:21,51 DA:22,51 DA:23,51 -DA:24,1 -DA:25,1 -DA:26,1 -DA:27,1 +DA:24,51 +DA:25,51 +DA:26,51 +DA:27,51 DA:28,1 DA:29,1 DA:30,1 @@ -68,15 +68,15 @@ DA:51,1 DA:52,1 DA:53,1 DA:54,1 -DA:55,51 -DA:56,51 -DA:57,51 -DA:58,51 -DA:59,51 -DA:60,51 -DA:61,51 -DA:62,51 -DA:63,51 +DA:55,1 +DA:56,1 +DA:57,1 +DA:58,1 +DA:59,1 +DA:60,1 +DA:61,1 +DA:62,1 +DA:63,1 DA:64,51 DA:65,51 DA:66,51 @@ -87,40 +87,40 @@ DA:70,51 DA:71,51 DA:72,51 DA:73,51 -DA:74,102 -DA:75,102 -DA:76,265 -DA:77,265 -DA:78,265 -DA:79,102 -DA:80,102 -DA:81,102 +DA:74,51 +DA:75,51 +DA:76,51 +DA:77,51 +DA:78,51 +DA:79,51 +DA:80,51 +DA:81,51 DA:82,51 -DA:83,51 -DA:84,51 -DA:85,51 -DA:86,51 -DA:87,51 -DA:88,51 -DA:89,48 -DA:90,48 +DA:83,102 +DA:84,102 +DA:85,265 +DA:86,265 +DA:87,265 +DA:88,102 +DA:89,102 +DA:90,102 DA:91,51 DA:92,51 -DA:93,48 -DA:94,48 +DA:93,51 +DA:94,51 DA:95,51 DA:96,51 -DA:97,48 +DA:97,51 DA:98,48 -DA:99,51 +DA:99,48 DA:100,51 DA:101,51 -DA:102,51 -DA:103,51 +DA:102,48 +DA:103,48 DA:104,51 DA:105,51 -DA:106,51 -DA:107,51 +DA:106,48 +DA:107,48 DA:108,51 DA:109,51 DA:110,51 @@ -129,95 +129,107 @@ DA:112,51 DA:113,51 DA:114,51 DA:115,51 -DA:116,1 -DA:117,65 -DA:118,65 -DA:119,65 -DA:120,65 -DA:121,1 +DA:116,51 +DA:117,51 +DA:118,51 +DA:119,51 +DA:120,51 +DA:121,51 DA:122,51 DA:123,51 DA:124,51 -DA:125,51 -DA:126,51 -DA:127,51 -DA:128,51 -DA:129,51 -DA:130,51 +DA:125,1 +DA:126,65 +DA:127,65 +DA:128,65 +DA:129,65 +DA:130,1 DA:131,51 DA:132,51 DA:133,51 DA:134,51 -DA:135,1 -DA:136,1 -DA:137,1 -DA:138,1 -DA:139,1 -DA:140,1 -DA:141,1 -DA:142,1 -DA:143,1 -DA:144,50 -DA:145,50 -DA:146,50 -DA:147,50 -DA:148,50 -DA:149,50 -DA:150,50 -DA:151,48 -DA:152,48 -DA:153,48 -DA:154,48 -DA:155,48 -DA:156,48 -DA:157,47 -DA:158,48 -DA:159,1 -DA:160,1 -DA:161,48 +DA:135,51 +DA:136,51 +DA:137,51 +DA:138,51 +DA:139,51 +DA:140,51 +DA:141,51 +DA:142,51 +DA:143,51 +DA:144,51 +DA:145,51 +DA:146,51 +DA:147,1 +DA:148,1 +DA:149,1 +DA:150,1 +DA:151,1 +DA:152,1 +DA:153,1 +DA:154,1 +DA:155,1 +DA:156,50 +DA:157,50 +DA:158,50 +DA:159,50 +DA:160,50 +DA:161,50 DA:162,50 -DA:163,50 -DA:164,50 -DA:165,1 -DA:166,1 -DA:167,1 -DA:168,1 -DA:169,1 -DA:170,1 +DA:163,48 +DA:164,48 +DA:165,48 +DA:166,48 +DA:167,48 +DA:168,48 +DA:169,47 +DA:170,48 DA:171,1 DA:172,1 -DA:173,1 -DA:174,1 -DA:175,1 -DA:176,1 +DA:173,48 +DA:174,50 +DA:175,50 +DA:176,50 DA:177,1 -LF:177 -LH:177 -BRDA:16,0,0,51 -BRDA:55,1,0,51 -BRDA:60,2,0,2 -BRDA:67,3,0,48 -BRDA:71,4,0,48 -BRDA:88,5,0,48 -BRDA:92,6,0,48 -BRDA:96,7,0,48 -BRDA:115,8,0,0 -BRDA:115,9,0,1 -BRDA:73,10,0,102 -BRDA:75,11,0,265 -BRDA:116,12,0,65 -BRDA:144,13,0,50 -BRDA:148,14,0,2 -BRDA:148,15,0,48 -BRDA:150,16,0,48 -BRDA:153,17,0,44 -BRDA:153,18,0,43 -BRDA:154,19,0,4 -BRDA:156,20,0,47 -BRDA:157,21,0,5 -BRDA:158,22,0,1 -BRDA:163,23,0,1 -BRDA:163,24,0,49 +DA:178,1 +DA:179,1 +DA:180,1 +DA:181,1 +DA:182,1 +DA:183,1 +DA:184,1 +DA:185,1 +DA:186,1 +DA:187,1 +DA:188,1 +DA:189,1 +LF:189 +LH:189 +BRDA:20,0,0,51 +BRDA:64,1,0,51 +BRDA:69,2,0,2 +BRDA:76,3,0,48 +BRDA:80,4,0,48 +BRDA:97,5,0,48 +BRDA:101,6,0,48 +BRDA:105,7,0,48 +BRDA:124,8,0,0 +BRDA:124,9,0,1 +BRDA:82,10,0,102 +BRDA:84,11,0,265 +BRDA:125,12,0,65 +BRDA:156,13,0,50 +BRDA:160,14,0,2 +BRDA:160,15,0,48 +BRDA:162,16,0,48 +BRDA:165,17,0,44 +BRDA:165,18,0,43 +BRDA:166,19,0,4 +BRDA:168,20,0,47 +BRDA:169,21,0,5 +BRDA:170,22,0,1 +BRDA:175,23,0,1 +BRDA:175,24,0,49 BRF:25 BRH:24 end_of_record @@ -252,40 +264,99 @@ BRF:1 BRH:0 end_of_record TN: +SF:src/valid.ts +FN:8,buildValidation +FNF:1 +FNH:1 +FNDA:51,buildValidation +DA:1,1 +DA:2,1 +DA:3,1 +DA:4,1 +DA:5,1 +DA:6,1 +DA:7,1 +DA:8,51 +DA:9,51 +DA:10,51 +DA:11,51 +DA:12,51 +DA:13,51 +DA:14,51 +DA:15,51 +DA:16,51 +DA:17,51 +DA:18,51 +DA:19,0 +DA:20,0 +DA:21,0 +DA:22,0 +DA:23,0 +DA:24,0 +DA:25,0 +DA:26,0 +DA:27,0 +DA:28,0 +DA:29,0 +DA:30,0 +DA:31,0 +DA:32,0 +DA:33,0 +DA:34,0 +DA:35,0 +DA:36,51 +DA:37,51 +DA:38,51 +DA:39,51 +DA:40,51 +DA:41,1 +DA:42,1 +DA:43,1 +DA:44,1 +DA:45,1 +LF:45 +LH:28 +BRDA:8,0,0,51 +BRDA:14,1,0,0 +BRDA:18,2,0,0 +BRF:3 +BRH:1 +end_of_record +TN: SF:src/lib/make_entity.ts FN:24,entargs FN:66,Entity FN:61,get_instance FN:69,Entity.private$.get_instance FN:97,make$ -FN:196,save$ -FN:219,native$ -FN:243,load$ -FN:298,list$ -FN:345,remove$ -FN:380,delete$ -FN:389,fields$ -FN:406,close$ -FN:423,is$ -FN:448,canon$ -FN:501,data$ -FN:575,clone$ -FN:591,custom$ -FN:595,directive$ -FN:602,entityPromise -FN:621,prepareCmd -FN:635,emptyQuery -FN:640,normalize_query -FN:671,parsecanon -FN:703,canonstr -FN:712,handle_options -FN:739,Entity.done$ -FN:751,make_toString -FN:788,MakeEntity -FN:807,custom$ -FN:825,MakeEntity.hidden.directive$ -FN:844,jsonic_strify -FN:917,jsonic_stringify +FN:197,save$ +FN:243,native$ +FN:267,load$ +FN:322,list$ +FN:369,remove$ +FN:404,delete$ +FN:413,fields$ +FN:430,close$ +FN:447,is$ +FN:472,canon$ +FN:525,data$ +FN:599,clone$ +FN:615,custom$ +FN:619,directive$ +FN:626,entityPromise +FN:645,prepareCmd +FN:659,emptyQuery +FN:664,normalize_query +FN:695,parsecanon +FN:728,canonstr +FN:737,handle_options +FN:764,Entity.done$ +FN:776,make_toString +FN:813,MakeEntity +FN:832,custom$ +FN:850,MakeEntity.hidden.directive$ +FN:869,jsonic_strify +FN:942,jsonic_stringify FNF:33 FNH:27 FNDA:106,entargs @@ -302,7 +373,7 @@ FNDA:0,delete$ FNDA:83,fields$ FNDA:0,close$ FNDA:30,is$ -FNDA:1371,canon$ +FNDA:1369,canon$ FNDA:122,data$ FNDA:3,clone$ FNDA:0,custom$ @@ -312,15 +383,15 @@ FNDA:106,prepareCmd FNDA:24,emptyQuery FNDA:50,normalize_query FNDA:260,parsecanon -FNDA:1186,canonstr +FNDA:1184,canonstr FNDA:327,handle_options FNDA:1,Entity.done$ FNDA:2,make_toString FNDA:327,MakeEntity FNDA:4,custom$ FNDA:1,MakeEntity.hidden.directive$ -FNDA:7140,jsonic_strify -FNDA:298,jsonic_stringify +FNDA:7569,jsonic_strify +FNDA:296,jsonic_stringify DA:1,1 DA:2,1 DA:3,1 @@ -517,7 +588,7 @@ DA:193,1 DA:194,1 DA:195,1 DA:196,1 -DA:197,56 +DA:197,1 DA:198,56 DA:199,56 DA:200,56 @@ -531,29 +602,29 @@ DA:207,56 DA:208,56 DA:209,56 DA:210,56 -DA:211,1 -DA:212,1 -DA:213,1 -DA:214,1 -DA:215,1 -DA:216,1 -DA:217,1 -DA:218,1 -DA:219,1 +DA:211,0 +DA:212,0 +DA:213,0 +DA:214,0 +DA:215,0 +DA:216,0 +DA:217,0 +DA:218,0 +DA:219,0 DA:220,0 DA:221,0 DA:222,0 DA:223,0 -DA:224,0 -DA:225,0 -DA:226,0 -DA:227,0 -DA:228,0 -DA:229,0 -DA:230,0 -DA:231,0 -DA:232,0 -DA:233,0 +DA:224,56 +DA:225,56 +DA:226,56 +DA:227,56 +DA:228,56 +DA:229,56 +DA:230,56 +DA:231,56 +DA:232,56 +DA:233,56 DA:234,1 DA:235,1 DA:236,1 @@ -564,578 +635,578 @@ DA:240,1 DA:241,1 DA:242,1 DA:243,1 -DA:244,15 -DA:245,15 -DA:246,15 -DA:247,3 -DA:248,3 -DA:249,3 -DA:250,15 -DA:251,15 -DA:252,15 -DA:253,15 -DA:254,15 -DA:255,15 -DA:256,15 -DA:257,15 -DA:258,15 -DA:259,15 -DA:260,15 -DA:261,15 -DA:262,15 -DA:263,15 -DA:264,15 -DA:265,15 -DA:266,15 -DA:267,15 -DA:268,5 -DA:269,5 -DA:270,5 -DA:271,5 -DA:272,10 -DA:273,10 +DA:244,0 +DA:245,0 +DA:246,0 +DA:247,0 +DA:248,0 +DA:249,0 +DA:250,0 +DA:251,0 +DA:252,0 +DA:253,0 +DA:254,0 +DA:255,0 +DA:256,0 +DA:257,0 +DA:258,1 +DA:259,1 +DA:260,1 +DA:261,1 +DA:262,1 +DA:263,1 +DA:264,1 +DA:265,1 +DA:266,1 +DA:267,1 +DA:268,15 +DA:269,15 +DA:270,15 +DA:271,3 +DA:272,3 +DA:273,3 DA:274,15 DA:275,15 DA:276,15 DA:277,15 DA:278,15 DA:279,15 -DA:280,1 -DA:281,1 -DA:282,1 -DA:283,1 -DA:284,1 -DA:285,1 -DA:286,1 -DA:287,1 -DA:288,1 -DA:289,1 -DA:290,1 -DA:291,1 -DA:292,1 -DA:293,1 -DA:294,1 -DA:295,1 -DA:296,1 -DA:297,1 -DA:298,1 -DA:299,26 -DA:300,26 -DA:301,26 -DA:302,7 -DA:303,7 -DA:304,7 -DA:305,26 -DA:306,26 -DA:307,26 -DA:308,26 -DA:309,26 -DA:310,26 -DA:311,26 -DA:312,26 -DA:313,26 -DA:314,26 -DA:315,26 -DA:316,26 -DA:317,26 -DA:318,26 -DA:319,26 -DA:320,26 -DA:321,26 -DA:322,26 +DA:280,15 +DA:281,15 +DA:282,15 +DA:283,15 +DA:284,15 +DA:285,15 +DA:286,15 +DA:287,15 +DA:288,15 +DA:289,15 +DA:290,15 +DA:291,15 +DA:292,5 +DA:293,5 +DA:294,5 +DA:295,5 +DA:296,10 +DA:297,10 +DA:298,15 +DA:299,15 +DA:300,15 +DA:301,15 +DA:302,15 +DA:303,15 +DA:304,1 +DA:305,1 +DA:306,1 +DA:307,1 +DA:308,1 +DA:309,1 +DA:310,1 +DA:311,1 +DA:312,1 +DA:313,1 +DA:314,1 +DA:315,1 +DA:316,1 +DA:317,1 +DA:318,1 +DA:319,1 +DA:320,1 +DA:321,1 +DA:322,1 DA:323,26 -DA:324,13 -DA:325,13 -DA:326,13 -DA:327,26 -DA:328,26 +DA:324,26 +DA:325,26 +DA:326,7 +DA:327,7 +DA:328,7 DA:329,26 DA:330,26 -DA:331,1 -DA:332,1 -DA:333,1 -DA:334,1 -DA:335,1 -DA:336,1 -DA:337,1 -DA:338,1 -DA:339,1 -DA:340,1 -DA:341,1 -DA:342,1 -DA:343,1 -DA:344,1 -DA:345,1 -DA:346,9 -DA:347,9 -DA:348,9 -DA:349,4 -DA:350,4 -DA:351,4 -DA:352,9 -DA:353,9 -DA:354,9 -DA:355,9 -DA:356,9 -DA:357,9 -DA:358,9 -DA:359,9 -DA:360,9 -DA:361,9 -DA:362,9 -DA:363,9 -DA:364,9 -DA:365,9 -DA:366,9 -DA:367,9 -DA:368,5 -DA:369,5 -DA:370,5 -DA:371,5 -DA:372,4 +DA:331,26 +DA:332,26 +DA:333,26 +DA:334,26 +DA:335,26 +DA:336,26 +DA:337,26 +DA:338,26 +DA:339,26 +DA:340,26 +DA:341,26 +DA:342,26 +DA:343,26 +DA:344,26 +DA:345,26 +DA:346,26 +DA:347,26 +DA:348,13 +DA:349,13 +DA:350,13 +DA:351,26 +DA:352,26 +DA:353,26 +DA:354,26 +DA:355,1 +DA:356,1 +DA:357,1 +DA:358,1 +DA:359,1 +DA:360,1 +DA:361,1 +DA:362,1 +DA:363,1 +DA:364,1 +DA:365,1 +DA:366,1 +DA:367,1 +DA:368,1 +DA:369,1 +DA:370,9 +DA:371,9 +DA:372,9 DA:373,4 -DA:374,9 -DA:375,9 +DA:374,4 +DA:375,4 DA:376,9 DA:377,9 -DA:378,1 -DA:379,1 -DA:380,1 -DA:381,0 -DA:382,0 -DA:383,1 -DA:384,1 -DA:385,1 -DA:386,1 -DA:387,1 -DA:388,1 -DA:389,1 -DA:390,83 -DA:391,83 -DA:392,83 -DA:393,83 -DA:394,598 -DA:395,598 -DA:396,598 -DA:397,226 -DA:398,598 -DA:399,141 -DA:400,141 -DA:401,598 -DA:402,83 -DA:403,83 +DA:378,9 +DA:379,9 +DA:380,9 +DA:381,9 +DA:382,9 +DA:383,9 +DA:384,9 +DA:385,9 +DA:386,9 +DA:387,9 +DA:388,9 +DA:389,9 +DA:390,9 +DA:391,9 +DA:392,5 +DA:393,5 +DA:394,5 +DA:395,5 +DA:396,4 +DA:397,4 +DA:398,9 +DA:399,9 +DA:400,9 +DA:401,9 +DA:402,1 +DA:403,1 DA:404,1 -DA:405,1 -DA:406,1 -DA:407,0 -DA:408,0 -DA:409,0 -DA:410,0 -DA:411,0 -DA:412,0 -DA:413,0 -DA:414,0 -DA:415,0 -DA:416,0 -DA:417,0 -DA:418,0 -DA:419,0 -DA:420,0 -DA:421,0 -DA:422,1 -DA:423,1 -DA:424,30 -DA:425,30 -DA:426,30 -DA:427,30 -DA:428,30 -DA:429,30 -DA:430,30 -DA:431,30 -DA:432,30 -DA:433,30 -DA:434,30 -DA:435,30 -DA:436,30 -DA:437,30 -DA:438,30 -DA:439,30 -DA:440,30 -DA:441,90 -DA:442,90 -DA:443,30 -DA:444,30 -DA:445,30 -DA:446,30 +DA:405,0 +DA:406,0 +DA:407,1 +DA:408,1 +DA:409,1 +DA:410,1 +DA:411,1 +DA:412,1 +DA:413,1 +DA:414,83 +DA:415,83 +DA:416,83 +DA:417,83 +DA:418,598 +DA:419,598 +DA:420,598 +DA:421,226 +DA:422,598 +DA:423,141 +DA:424,141 +DA:425,598 +DA:426,83 +DA:427,83 +DA:428,1 +DA:429,1 +DA:430,1 +DA:431,0 +DA:432,0 +DA:433,0 +DA:434,0 +DA:435,0 +DA:436,0 +DA:437,0 +DA:438,0 +DA:439,0 +DA:440,0 +DA:441,0 +DA:442,0 +DA:443,0 +DA:444,0 +DA:445,0 +DA:446,1 DA:447,1 -DA:448,1 -DA:449,1371 -DA:450,1371 -DA:451,1371 -DA:452,1371 -DA:453,1371 -DA:454,1037 -DA:455,18 -DA:456,18 -DA:457,18 -DA:458,18 -DA:459,18 -DA:460,18 -DA:461,12 -DA:462,18 -DA:463,1037 -DA:464,1 -DA:465,1019 -DA:466,0 -DA:467,0 -DA:468,0 -DA:469,0 -DA:470,0 -DA:471,0 -DA:472,0 -DA:473,0 -DA:474,0 -DA:475,0 -DA:476,0 -DA:477,0 -DA:478,0 -DA:479,1037 -DA:480,1352 -DA:481,1371 -DA:482,1371 -DA:483,1186 -DA:484,1186 -DA:485,1186 -DA:486,1186 -DA:487,1186 -DA:488,1186 -DA:489,1371 -DA:490,166 -DA:491,166 -DA:492,165 -DA:493,165 -DA:494,164 -DA:495,164 -DA:496,2 -DA:497,2 -DA:498,1371 -DA:499,1 -DA:500,1 -DA:501,1 -DA:502,122 -DA:503,122 -DA:504,122 -DA:505,122 -DA:506,122 -DA:507,122 -DA:508,122 -DA:509,41 -DA:510,41 -DA:511,52 -DA:512,45 -DA:513,45 -DA:514,0 -DA:515,45 -DA:516,45 -DA:517,45 -DA:518,45 -DA:519,52 -DA:520,41 -DA:521,41 -DA:522,3 -DA:523,3 -DA:524,41 -DA:525,41 -DA:526,0 -DA:527,0 -DA:528,41 -DA:529,41 -DA:530,2 -DA:531,2 -DA:532,41 +DA:448,30 +DA:449,30 +DA:450,30 +DA:451,30 +DA:452,30 +DA:453,30 +DA:454,30 +DA:455,30 +DA:456,30 +DA:457,30 +DA:458,30 +DA:459,30 +DA:460,30 +DA:461,30 +DA:462,30 +DA:463,30 +DA:464,30 +DA:465,90 +DA:466,90 +DA:467,30 +DA:468,30 +DA:469,30 +DA:470,30 +DA:471,1 +DA:472,1 +DA:473,1369 +DA:474,1369 +DA:475,1369 +DA:476,1369 +DA:477,1369 +DA:478,1035 +DA:479,18 +DA:480,18 +DA:481,18 +DA:482,18 +DA:483,18 +DA:484,18 +DA:485,12 +DA:486,18 +DA:487,1035 +DA:488,1 +DA:489,1017 +DA:490,0 +DA:491,0 +DA:492,0 +DA:493,0 +DA:494,0 +DA:495,0 +DA:496,0 +DA:497,0 +DA:498,0 +DA:499,0 +DA:500,0 +DA:501,0 +DA:502,0 +DA:503,1035 +DA:504,1350 +DA:505,1369 +DA:506,1369 +DA:507,1184 +DA:508,1184 +DA:509,1184 +DA:510,1184 +DA:511,1184 +DA:512,1184 +DA:513,1369 +DA:514,166 +DA:515,166 +DA:516,165 +DA:517,165 +DA:518,164 +DA:519,164 +DA:520,2 +DA:521,2 +DA:522,1369 +DA:523,1 +DA:524,1 +DA:525,1 +DA:526,122 +DA:527,122 +DA:528,122 +DA:529,122 +DA:530,122 +DA:531,122 +DA:532,122 DA:533,41 -DA:534,1 -DA:535,1 -DA:536,41 -DA:537,41 -DA:538,41 -DA:539,81 -DA:540,81 -DA:541,81 -DA:542,81 -DA:543,81 -DA:544,81 -DA:545,81 -DA:546,73 -DA:547,73 -DA:548,73 -DA:549,73 -DA:550,73 -DA:551,73 -DA:552,6 -DA:553,6 -DA:554,73 -DA:555,81 -DA:556,81 -DA:557,81 -DA:558,135 -DA:559,135 -DA:560,135 -DA:561,0 -DA:562,0 -DA:563,135 -DA:564,135 -DA:565,135 -DA:566,134 -DA:567,134 -DA:568,135 -DA:569,135 -DA:570,81 -DA:571,81 -DA:572,81 -DA:573,122 -DA:574,1 -DA:575,1 -DA:576,3 -DA:577,3 -DA:578,3 -DA:579,3 -DA:580,3 -DA:581,1 -DA:582,1 -DA:583,3 -DA:584,3 +DA:534,41 +DA:535,52 +DA:536,45 +DA:537,45 +DA:538,0 +DA:539,45 +DA:540,45 +DA:541,45 +DA:542,45 +DA:543,52 +DA:544,41 +DA:545,41 +DA:546,3 +DA:547,3 +DA:548,41 +DA:549,41 +DA:550,0 +DA:551,0 +DA:552,41 +DA:553,41 +DA:554,2 +DA:555,2 +DA:556,41 +DA:557,41 +DA:558,1 +DA:559,1 +DA:560,41 +DA:561,41 +DA:562,41 +DA:563,81 +DA:564,81 +DA:565,81 +DA:566,81 +DA:567,81 +DA:568,81 +DA:569,81 +DA:570,73 +DA:571,73 +DA:572,73 +DA:573,73 +DA:574,73 +DA:575,73 +DA:576,6 +DA:577,6 +DA:578,73 +DA:579,81 +DA:580,81 +DA:581,81 +DA:582,135 +DA:583,135 +DA:584,135 DA:585,0 DA:586,0 -DA:587,3 -DA:588,3 -DA:589,3 -DA:590,1 -DA:591,1 -DA:592,0 -DA:593,0 -DA:594,1 -DA:595,1 -DA:596,0 -DA:597,0 +DA:587,135 +DA:588,135 +DA:589,135 +DA:590,134 +DA:591,134 +DA:592,135 +DA:593,135 +DA:594,81 +DA:595,81 +DA:596,81 +DA:597,122 DA:598,1 DA:599,1 -DA:600,1 -DA:601,1 -DA:602,49 -DA:603,49 -DA:604,49 -DA:605,49 -DA:606,49 -DA:607,49 -DA:608,49 -DA:609,48 -DA:610,48 -DA:611,4 -DA:612,4 -DA:613,4 -DA:614,48 -DA:615,48 -DA:616,49 -DA:617,49 -DA:618,49 -DA:619,49 -DA:620,1 -DA:621,106 -DA:622,106 -DA:623,28 -DA:624,106 -DA:625,8 -DA:626,8 -DA:627,8 -DA:628,8 -DA:629,8 -DA:630,8 -DA:631,106 -DA:632,106 -DA:633,106 -DA:634,1 -DA:635,24 -DA:636,24 -DA:637,24 -DA:638,1 -DA:639,1 -DA:640,50 -DA:641,50 -DA:642,50 -DA:643,50 -DA:644,50 -DA:645,50 -DA:646,24 -DA:647,3 -DA:648,24 -DA:649,5 -DA:650,21 -DA:651,0 -DA:652,0 -DA:653,24 -DA:654,50 -DA:655,50 -DA:656,50 -DA:657,50 -DA:658,29 -DA:659,36 -DA:660,0 -DA:661,0 -DA:662,36 -DA:663,29 +DA:600,3 +DA:601,3 +DA:602,3 +DA:603,3 +DA:604,3 +DA:605,1 +DA:606,1 +DA:607,3 +DA:608,3 +DA:609,0 +DA:610,0 +DA:611,3 +DA:612,3 +DA:613,3 +DA:614,1 +DA:615,1 +DA:616,0 +DA:617,0 +DA:618,1 +DA:619,1 +DA:620,0 +DA:621,0 +DA:622,1 +DA:623,1 +DA:624,1 +DA:625,1 +DA:626,49 +DA:627,49 +DA:628,49 +DA:629,49 +DA:630,49 +DA:631,49 +DA:632,49 +DA:633,48 +DA:634,48 +DA:635,4 +DA:636,4 +DA:637,4 +DA:638,48 +DA:639,48 +DA:640,49 +DA:641,49 +DA:642,49 +DA:643,49 +DA:644,1 +DA:645,106 +DA:646,106 +DA:647,28 +DA:648,106 +DA:649,8 +DA:650,8 +DA:651,8 +DA:652,8 +DA:653,8 +DA:654,8 +DA:655,106 +DA:656,106 +DA:657,106 +DA:658,1 +DA:659,24 +DA:660,24 +DA:661,24 +DA:662,1 +DA:663,1 DA:664,50 DA:665,50 DA:666,50 -DA:667,1 -DA:668,1 -DA:669,1 -DA:670,1 -DA:671,260 -DA:672,260 -DA:673,260 -DA:674,260 -DA:675,6 -DA:676,6 -DA:677,6 -DA:678,6 -DA:679,6 -DA:680,6 -DA:681,254 -DA:682,260 -DA:683,248 -DA:684,260 -DA:685,239 -DA:686,239 -DA:687,258 -DA:688,237 -DA:689,237 -DA:690,237 -DA:691,237 -DA:692,237 -DA:693,237 -DA:694,260 -DA:695,2 -DA:696,2 -DA:697,2 -DA:698,2 -DA:699,237 -DA:700,237 -DA:701,237 -DA:702,1 -DA:703,1186 -DA:704,1186 -DA:705,1186 -DA:706,1186 -DA:707,1186 -DA:708,1186 -DA:709,1186 -DA:710,1186 -DA:711,1 -DA:712,327 -DA:713,327 -DA:714,327 -DA:715,327 -DA:716,327 -DA:717,0 -DA:718,0 -DA:719,0 -DA:720,0 -DA:721,0 -DA:722,0 -DA:723,0 -DA:724,0 -DA:725,0 -DA:726,0 -DA:727,0 -DA:728,0 -DA:729,0 -DA:730,0 -DA:731,0 -DA:732,0 -DA:733,0 -DA:734,0 -DA:735,0 -DA:736,327 +DA:667,50 +DA:668,50 +DA:669,50 +DA:670,24 +DA:671,3 +DA:672,24 +DA:673,5 +DA:674,21 +DA:675,0 +DA:676,0 +DA:677,24 +DA:678,50 +DA:679,50 +DA:680,50 +DA:681,50 +DA:682,29 +DA:683,36 +DA:684,0 +DA:685,0 +DA:686,36 +DA:687,29 +DA:688,50 +DA:689,50 +DA:690,50 +DA:691,1 +DA:692,1 +DA:693,1 +DA:694,1 +DA:695,260 +DA:696,260 +DA:697,260 +DA:698,260 +DA:699,6 +DA:700,6 +DA:701,6 +DA:702,6 +DA:703,6 +DA:704,6 +DA:705,254 +DA:706,260 +DA:707,248 +DA:708,260 +DA:709,239 +DA:710,239 +DA:711,258 +DA:712,237 +DA:713,237 +DA:714,237 +DA:715,237 +DA:716,237 +DA:717,237 +DA:718,237 +DA:719,2 +DA:720,2 +DA:721,2 +DA:722,2 +DA:723,2 +DA:724,237 +DA:725,237 +DA:726,237 +DA:727,1 +DA:728,1184 +DA:729,1184 +DA:730,1184 +DA:731,1184 +DA:732,1184 +DA:733,1184 +DA:734,1184 +DA:735,1184 +DA:736,1 DA:737,327 -DA:738,6 -DA:739,6 -DA:740,1 -DA:741,1 -DA:742,1 -DA:743,1 -DA:744,1 -DA:745,1 -DA:746,6 -DA:747,327 -DA:748,327 -DA:749,327 -DA:750,1 -DA:751,2 -DA:752,2 -DA:753,2 -DA:754,2 -DA:755,2 -DA:756,2 -DA:757,2 -DA:758,2 -DA:759,2 -DA:760,2 -DA:761,2 -DA:762,0 -DA:763,2 -DA:764,0 -DA:765,0 -DA:766,0 -DA:767,0 -DA:768,2 -DA:769,2 -DA:770,2 -DA:771,2 -DA:772,298 -DA:773,298 -DA:774,298 -DA:775,298 -DA:776,298 -DA:777,298 -DA:778,298 -DA:779,298 -DA:780,298 -DA:781,298 -DA:782,298 -DA:783,298 -DA:784,298 -DA:785,298 +DA:738,327 +DA:739,327 +DA:740,327 +DA:741,327 +DA:742,0 +DA:743,0 +DA:744,0 +DA:745,0 +DA:746,0 +DA:747,0 +DA:748,0 +DA:749,0 +DA:750,0 +DA:751,0 +DA:752,0 +DA:753,0 +DA:754,0 +DA:755,0 +DA:756,0 +DA:757,0 +DA:758,0 +DA:759,0 +DA:760,0 +DA:761,327 +DA:762,327 +DA:763,6 +DA:764,6 +DA:765,1 +DA:766,1 +DA:767,1 +DA:768,1 +DA:769,1 +DA:770,1 +DA:771,6 +DA:772,327 +DA:773,327 +DA:774,327 +DA:775,1 +DA:776,2 +DA:777,2 +DA:778,2 +DA:779,2 +DA:780,2 +DA:781,2 +DA:782,2 +DA:783,2 +DA:784,2 +DA:785,2 DA:786,2 -DA:787,1 -DA:788,327 -DA:789,327 -DA:790,327 -DA:791,327 -DA:792,327 -DA:793,327 -DA:794,327 -DA:795,327 -DA:796,327 -DA:797,327 -DA:798,327 -DA:799,2 -DA:800,2 -DA:801,2 -DA:802,2 -DA:803,2 -DA:804,2 -DA:805,327 -DA:806,327 -DA:807,327 -DA:808,4 -DA:809,4 -DA:810,4 -DA:811,4 -DA:812,4 -DA:813,4 -DA:814,4 -DA:815,4 +DA:787,0 +DA:788,2 +DA:789,0 +DA:790,0 +DA:791,0 +DA:792,0 +DA:793,2 +DA:794,2 +DA:795,2 +DA:796,2 +DA:797,296 +DA:798,296 +DA:799,296 +DA:800,296 +DA:801,296 +DA:802,296 +DA:803,296 +DA:804,296 +DA:805,296 +DA:806,296 +DA:807,296 +DA:808,296 +DA:809,296 +DA:810,296 +DA:811,2 +DA:812,1 +DA:813,327 +DA:814,327 +DA:815,327 DA:816,327 DA:817,327 DA:818,327 @@ -1144,130 +1215,155 @@ DA:820,327 DA:821,327 DA:822,327 DA:823,327 -DA:824,327 -DA:825,327 -DA:826,1 -DA:827,1 -DA:828,1 -DA:829,1 -DA:830,1 +DA:824,2 +DA:825,2 +DA:826,2 +DA:827,2 +DA:828,2 +DA:829,2 +DA:830,327 DA:831,327 DA:832,327 -DA:833,327 -DA:834,327 -DA:835,327 -DA:836,327 -DA:837,327 -DA:838,327 -DA:839,327 -DA:840,1 -DA:841,1 -DA:842,1 -DA:843,1 -DA:844,7140 -DA:845,7140 -DA:846,7140 -DA:847,6496 -DA:848,6496 -DA:849,7140 -DA:850,4558 -DA:851,4558 -DA:852,7140 -DA:853,0 -DA:854,0 -DA:855,0 -DA:856,0 -DA:857,0 -DA:858,0 -DA:859,4558 -DA:860,4558 -DA:861,4558 -DA:862,4558 -DA:863,4558 -DA:864,4558 -DA:865,7140 -DA:866,270 -DA:867,7140 -DA:868,2682 -DA:869,2682 -DA:870,1192 -DA:871,1192 -DA:872,6842 -DA:873,6842 -DA:874,6842 -DA:875,6842 -DA:876,6842 -DA:877,6842 -DA:878,6842 -DA:879,6842 -DA:880,6842 -DA:881,6842 -DA:882,6842 -DA:883,4152 -DA:884,4152 -DA:885,4152 -DA:886,4152 -DA:887,6842 -DA:888,1192 -DA:889,2682 -DA:890,4288 -DA:891,0 -DA:892,0 -DA:893,0 -DA:894,0 -DA:895,0 -DA:896,0 -DA:897,0 -DA:898,0 -DA:899,0 -DA:900,0 -DA:901,1606 -DA:902,1606 -DA:903,1606 -DA:904,1606 -DA:905,1606 -DA:906,1606 -DA:907,1606 -DA:908,1606 -DA:909,0 -DA:910,0 -DA:911,1606 -DA:912,1606 -DA:913,1606 -DA:914,7140 -DA:915,1 -DA:916,1 -DA:917,298 -DA:918,298 -DA:919,298 -DA:920,298 -DA:921,298 -DA:922,298 -DA:923,298 -DA:924,298 -DA:925,298 -DA:926,298 -DA:927,298 -DA:928,298 -DA:929,298 -DA:930,298 -DA:931,298 -DA:932,298 -DA:933,298 -DA:934,298 -DA:935,298 -DA:936,298 -DA:937,298 -DA:938,298 -DA:939,0 -DA:940,0 -DA:941,0 -DA:942,0 -DA:943,298 -DA:944,1 -DA:945,1 -LF:945 -LH:840 +DA:833,4 +DA:834,4 +DA:835,4 +DA:836,4 +DA:837,4 +DA:838,4 +DA:839,4 +DA:840,4 +DA:841,327 +DA:842,327 +DA:843,327 +DA:844,327 +DA:845,327 +DA:846,327 +DA:847,327 +DA:848,327 +DA:849,327 +DA:850,327 +DA:851,1 +DA:852,1 +DA:853,1 +DA:854,1 +DA:855,1 +DA:856,327 +DA:857,327 +DA:858,327 +DA:859,327 +DA:860,327 +DA:861,327 +DA:862,327 +DA:863,327 +DA:864,327 +DA:865,1 +DA:866,1 +DA:867,1 +DA:868,1 +DA:869,7569 +DA:870,7569 +DA:871,7569 +DA:872,6931 +DA:873,6931 +DA:874,7569 +DA:875,5005 +DA:876,5005 +DA:877,7569 +DA:878,0 +DA:879,0 +DA:880,0 +DA:881,0 +DA:882,0 +DA:883,0 +DA:884,5005 +DA:885,5005 +DA:886,5005 +DA:887,5005 +DA:888,5005 +DA:889,5005 +DA:890,7569 +DA:891,270 +DA:892,7569 +DA:893,2960 +DA:894,2960 +DA:895,1184 +DA:896,1184 +DA:897,7273 +DA:898,7273 +DA:899,7273 +DA:900,7273 +DA:901,7273 +DA:902,7273 +DA:903,7273 +DA:904,7273 +DA:905,7273 +DA:906,7273 +DA:907,7273 +DA:908,4422 +DA:909,4422 +DA:910,4422 +DA:911,4422 +DA:912,7273 +DA:913,1184 +DA:914,2960 +DA:915,4735 +DA:916,0 +DA:917,0 +DA:918,0 +DA:919,0 +DA:920,0 +DA:921,0 +DA:922,0 +DA:923,0 +DA:924,0 +DA:925,0 +DA:926,1775 +DA:927,1775 +DA:928,1775 +DA:929,1775 +DA:930,1775 +DA:931,1775 +DA:932,1775 +DA:933,1775 +DA:934,0 +DA:935,0 +DA:936,1775 +DA:937,1775 +DA:938,1775 +DA:939,7569 +DA:940,1 +DA:941,1 +DA:942,296 +DA:943,296 +DA:944,296 +DA:945,296 +DA:946,296 +DA:947,296 +DA:948,296 +DA:949,296 +DA:950,296 +DA:951,296 +DA:952,296 +DA:953,296 +DA:954,296 +DA:955,296 +DA:956,296 +DA:957,296 +DA:958,296 +DA:959,296 +DA:960,296 +DA:961,296 +DA:962,296 +DA:963,296 +DA:964,0 +DA:965,0 +DA:966,0 +DA:967,0 +DA:968,296 +DA:969,1 +DA:970,1 +LF:970 +LH:852 BRDA:24,0,0,106 BRDA:43,1,0,1 BRDA:40,2,0,1 @@ -1318,225 +1414,227 @@ BRDA:181,46,0,279 BRDA:182,47,0,2 BRDA:185,48,0,279 BRDA:186,49,0,64 -BRDA:196,50,0,56 -BRDA:204,51,0,30 -BRDA:207,52,0,25 -BRDA:208,53,0,31 -BRDA:208,54,0,0 -BRDA:243,55,0,15 -BRDA:246,56,0,3 -BRDA:264,57,0,10 -BRDA:267,58,0,5 -BRDA:269,59,0,1 -BRDA:270,60,0,4 -BRDA:272,61,0,10 -BRDA:274,62,0,8 -BRDA:275,63,0,2 -BRDA:275,64,0,0 -BRDA:298,65,0,26 -BRDA:301,66,0,7 -BRDA:319,67,0,14 -BRDA:322,68,0,13 -BRDA:323,69,0,13 -BRDA:325,70,0,0 -BRDA:345,71,0,9 -BRDA:348,72,0,4 -BRDA:364,73,0,5 -BRDA:367,74,0,5 -BRDA:369,75,0,1 -BRDA:370,76,0,4 -BRDA:372,77,0,4 -BRDA:374,78,0,3 -BRDA:375,79,0,1 -BRDA:375,80,0,0 -BRDA:389,81,0,83 -BRDA:393,82,0,598 -BRDA:395,83,0,226 -BRDA:396,84,0,226 -BRDA:398,85,0,141 -BRDA:423,86,0,30 -BRDA:428,87,0,6 -BRDA:429,88,0,24 -BRDA:430,89,0,0 -BRDA:432,90,0,0 -BRDA:440,91,0,90 -BRDA:448,92,0,1371 -BRDA:453,93,0,1037 -BRDA:454,94,0,18 -BRDA:459,95,0,15 -BRDA:460,96,0,12 -BRDA:463,97,0,1019 -BRDA:463,98,0,1 -BRDA:465,99,0,1018 -BRDA:465,100,0,0 -BRDA:480,101,0,1352 -BRDA:481,102,0,1018 -BRDA:481,103,0,167 -BRDA:482,104,0,1186 -BRDA:488,105,0,852 -BRDA:488,106,0,1 -BRDA:488,107,0,1185 -BRDA:489,108,0,166 -BRDA:490,109,0,1 -BRDA:491,110,0,165 -BRDA:492,111,0,1 -BRDA:493,112,0,164 -BRDA:494,113,0,162 -BRDA:495,114,0,2 -BRDA:496,115,0,1 -BRDA:497,116,0,1 -BRDA:501,117,0,122 -BRDA:508,118,0,95 -BRDA:508,119,0,41 -BRDA:510,120,0,52 -BRDA:511,121,0,45 -BRDA:513,122,0,41 -BRDA:513,123,0,0 -BRDA:513,124,0,0 -BRDA:521,125,0,3 -BRDA:525,126,0,0 -BRDA:529,127,0,2 -BRDA:533,128,0,1 -BRDA:539,129,0,81 -BRDA:542,130,0,19 -BRDA:542,131,0,62 -BRDA:545,132,0,73 -BRDA:546,133,0,19 -BRDA:551,134,0,6 -BRDA:557,135,0,135 -BRDA:560,136,0,126 -BRDA:560,137,0,1 -BRDA:560,138,0,0 -BRDA:565,139,0,134 -BRDA:575,140,0,3 -BRDA:580,141,0,1 -BRDA:584,142,0,0 -BRDA:602,143,0,49 -BRDA:603,144,0,4 -BRDA:603,145,0,45 -BRDA:604,146,0,49 -BRDA:605,147,0,49 -BRDA:607,148,0,1 -BRDA:607,149,0,0 -BRDA:608,150,0,48 -BRDA:610,151,0,4 -BRDA:610,152,0,2 -BRDA:610,153,0,2 -BRDA:610,154,0,2 -BRDA:611,155,0,1 -BRDA:612,156,0,3 -BRDA:612,157,0,2 -BRDA:614,158,0,44 -BRDA:621,159,0,106 -BRDA:622,160,0,28 -BRDA:624,161,0,78 -BRDA:624,162,0,8 -BRDA:624,163,0,8 -BRDA:632,164,0,54 -BRDA:632,165,0,52 -BRDA:632,166,0,1 -BRDA:632,167,0,51 -BRDA:635,168,0,24 -BRDA:636,169,0,14 -BRDA:640,170,0,50 -BRDA:643,171,0,26 -BRDA:643,172,0,0 -BRDA:643,173,0,24 -BRDA:645,174,0,24 -BRDA:646,175,0,13 -BRDA:646,176,0,11 -BRDA:646,177,0,3 -BRDA:648,178,0,21 -BRDA:648,179,0,16 -BRDA:648,180,0,5 -BRDA:649,181,0,2 -BRDA:649,182,0,3 -BRDA:650,183,0,16 -BRDA:650,184,0,0 -BRDA:657,185,0,29 -BRDA:658,186,0,36 -BRDA:659,187,0,0 -BRDA:671,188,0,260 -BRDA:674,189,0,6 -BRDA:681,190,0,254 -BRDA:682,191,0,244 -BRDA:682,192,0,6 -BRDA:682,193,0,6 -BRDA:683,194,0,248 -BRDA:684,195,0,9 -BRDA:685,196,0,258 -BRDA:685,197,0,239 -BRDA:687,198,0,237 -BRDA:688,199,0,112 -BRDA:688,200,0,125 -BRDA:689,201,0,112 -BRDA:689,202,0,125 -BRDA:691,203,0,103 -BRDA:691,204,0,134 -BRDA:692,205,0,80 -BRDA:692,206,0,157 -BRDA:693,207,0,3 -BRDA:693,208,0,234 -BRDA:694,209,0,2 -BRDA:699,210,0,237 -BRDA:703,211,0,1186 -BRDA:704,212,0,0 -BRDA:706,213,0,44 -BRDA:706,214,0,1142 -BRDA:706,215,0,44 -BRDA:707,216,0,186 -BRDA:707,217,0,1000 -BRDA:707,218,0,186 -BRDA:708,219,0,888 -BRDA:708,220,0,298 -BRDA:708,221,0,888 -BRDA:712,222,0,327 -BRDA:713,223,0,0 -BRDA:716,224,0,0 -BRDA:737,225,0,0 -BRDA:737,226,0,6 -BRDA:739,227,0,1 -BRDA:741,228,0,0 -BRDA:742,229,0,1 -BRDA:751,230,0,2 -BRDA:761,231,0,0 -BRDA:763,232,0,0 -BRDA:763,233,0,0 -BRDA:771,234,0,298 -BRDA:788,235,0,327 -BRDA:798,236,0,2 -BRDA:807,237,0,4 -BRDA:810,238,0,1 -BRDA:825,239,0,1 -BRDA:844,240,0,7140 -BRDA:846,241,0,644 -BRDA:847,242,0,6496 -BRDA:849,243,0,1938 -BRDA:849,244,0,1938 -BRDA:850,245,0,4558 -BRDA:852,246,0,0 -BRDA:859,247,0,4558 -BRDA:865,248,0,270 -BRDA:866,249,0,0 -BRDA:867,250,0,4288 -BRDA:867,251,0,2682 -BRDA:869,252,0,1192 -BRDA:871,253,0,6842 -BRDA:872,254,0,0 -BRDA:878,255,0,5377 -BRDA:882,256,0,4904 -BRDA:882,257,0,4152 -BRDA:883,258,0,0 -BRDA:890,259,0,1606 -BRDA:890,260,0,0 -BRDA:908,261,0,0 -BRDA:917,262,0,298 -BRDA:919,263,0,0 -BRDA:928,264,0,0 -BRDA:928,265,0,0 -BRDA:936,266,0,0 -BRDA:938,267,0,0 -BRF:268 +BRDA:197,50,0,56 +BRDA:210,51,0,0 +BRDA:210,52,0,0 +BRDA:227,53,0,30 +BRDA:230,54,0,25 +BRDA:231,55,0,31 +BRDA:231,56,0,0 +BRDA:267,57,0,15 +BRDA:270,58,0,3 +BRDA:288,59,0,10 +BRDA:291,60,0,5 +BRDA:293,61,0,1 +BRDA:294,62,0,4 +BRDA:296,63,0,10 +BRDA:298,64,0,8 +BRDA:299,65,0,2 +BRDA:299,66,0,0 +BRDA:322,67,0,26 +BRDA:325,68,0,7 +BRDA:343,69,0,14 +BRDA:346,70,0,13 +BRDA:347,71,0,13 +BRDA:349,72,0,0 +BRDA:369,73,0,9 +BRDA:372,74,0,4 +BRDA:388,75,0,5 +BRDA:391,76,0,5 +BRDA:393,77,0,1 +BRDA:394,78,0,4 +BRDA:396,79,0,4 +BRDA:398,80,0,3 +BRDA:399,81,0,1 +BRDA:399,82,0,0 +BRDA:413,83,0,83 +BRDA:417,84,0,598 +BRDA:419,85,0,226 +BRDA:420,86,0,226 +BRDA:422,87,0,141 +BRDA:447,88,0,30 +BRDA:452,89,0,6 +BRDA:453,90,0,24 +BRDA:454,91,0,0 +BRDA:456,92,0,0 +BRDA:464,93,0,90 +BRDA:472,94,0,1369 +BRDA:477,95,0,1035 +BRDA:478,96,0,18 +BRDA:483,97,0,15 +BRDA:484,98,0,12 +BRDA:487,99,0,1017 +BRDA:487,100,0,1 +BRDA:489,101,0,1016 +BRDA:489,102,0,0 +BRDA:504,103,0,1350 +BRDA:505,104,0,1016 +BRDA:505,105,0,167 +BRDA:506,106,0,1184 +BRDA:512,107,0,850 +BRDA:512,108,0,1 +BRDA:512,109,0,1183 +BRDA:513,110,0,166 +BRDA:514,111,0,1 +BRDA:515,112,0,165 +BRDA:516,113,0,1 +BRDA:517,114,0,164 +BRDA:518,115,0,162 +BRDA:519,116,0,2 +BRDA:520,117,0,1 +BRDA:521,118,0,1 +BRDA:525,119,0,122 +BRDA:532,120,0,95 +BRDA:532,121,0,41 +BRDA:534,122,0,52 +BRDA:535,123,0,45 +BRDA:537,124,0,41 +BRDA:537,125,0,0 +BRDA:537,126,0,0 +BRDA:545,127,0,3 +BRDA:549,128,0,0 +BRDA:553,129,0,2 +BRDA:557,130,0,1 +BRDA:563,131,0,81 +BRDA:566,132,0,19 +BRDA:566,133,0,62 +BRDA:569,134,0,73 +BRDA:570,135,0,19 +BRDA:575,136,0,6 +BRDA:581,137,0,135 +BRDA:584,138,0,126 +BRDA:584,139,0,1 +BRDA:584,140,0,0 +BRDA:589,141,0,134 +BRDA:599,142,0,3 +BRDA:604,143,0,1 +BRDA:608,144,0,0 +BRDA:626,145,0,49 +BRDA:627,146,0,4 +BRDA:627,147,0,45 +BRDA:628,148,0,49 +BRDA:629,149,0,49 +BRDA:631,150,0,1 +BRDA:631,151,0,0 +BRDA:632,152,0,48 +BRDA:634,153,0,4 +BRDA:634,154,0,2 +BRDA:634,155,0,2 +BRDA:634,156,0,2 +BRDA:635,157,0,1 +BRDA:636,158,0,3 +BRDA:636,159,0,2 +BRDA:638,160,0,44 +BRDA:645,161,0,106 +BRDA:646,162,0,28 +BRDA:648,163,0,78 +BRDA:648,164,0,8 +BRDA:648,165,0,8 +BRDA:656,166,0,54 +BRDA:656,167,0,52 +BRDA:656,168,0,1 +BRDA:656,169,0,51 +BRDA:659,170,0,24 +BRDA:660,171,0,14 +BRDA:664,172,0,50 +BRDA:667,173,0,26 +BRDA:667,174,0,0 +BRDA:667,175,0,24 +BRDA:669,176,0,24 +BRDA:670,177,0,13 +BRDA:670,178,0,11 +BRDA:670,179,0,3 +BRDA:672,180,0,21 +BRDA:672,181,0,16 +BRDA:672,182,0,5 +BRDA:673,183,0,2 +BRDA:673,184,0,3 +BRDA:674,185,0,16 +BRDA:674,186,0,0 +BRDA:681,187,0,29 +BRDA:682,188,0,36 +BRDA:683,189,0,0 +BRDA:695,190,0,260 +BRDA:698,191,0,6 +BRDA:705,192,0,254 +BRDA:706,193,0,244 +BRDA:706,194,0,6 +BRDA:706,195,0,6 +BRDA:707,196,0,248 +BRDA:708,197,0,9 +BRDA:709,198,0,258 +BRDA:709,199,0,239 +BRDA:711,200,0,237 +BRDA:712,201,0,112 +BRDA:712,202,0,125 +BRDA:713,203,0,112 +BRDA:713,204,0,125 +BRDA:715,205,0,103 +BRDA:715,206,0,134 +BRDA:716,207,0,80 +BRDA:716,208,0,157 +BRDA:717,209,0,3 +BRDA:717,210,0,234 +BRDA:719,211,0,2 +BRDA:724,212,0,237 +BRDA:728,213,0,1184 +BRDA:729,214,0,0 +BRDA:731,215,0,44 +BRDA:731,216,0,1140 +BRDA:731,217,0,44 +BRDA:732,218,0,186 +BRDA:732,219,0,998 +BRDA:732,220,0,186 +BRDA:733,221,0,888 +BRDA:733,222,0,296 +BRDA:733,223,0,888 +BRDA:737,224,0,327 +BRDA:738,225,0,0 +BRDA:741,226,0,0 +BRDA:762,227,0,0 +BRDA:762,228,0,6 +BRDA:764,229,0,1 +BRDA:766,230,0,0 +BRDA:767,231,0,1 +BRDA:776,232,0,2 +BRDA:786,233,0,0 +BRDA:788,234,0,0 +BRDA:788,235,0,0 +BRDA:796,236,0,296 +BRDA:813,237,0,327 +BRDA:823,238,0,2 +BRDA:832,239,0,4 +BRDA:835,240,0,1 +BRDA:850,241,0,1 +BRDA:869,242,0,7569 +BRDA:871,243,0,638 +BRDA:872,244,0,6931 +BRDA:874,245,0,1926 +BRDA:874,246,0,1926 +BRDA:875,247,0,5005 +BRDA:877,248,0,0 +BRDA:884,249,0,5005 +BRDA:890,250,0,270 +BRDA:891,251,0,0 +BRDA:892,252,0,4735 +BRDA:892,253,0,2960 +BRDA:894,254,0,1184 +BRDA:896,255,0,7273 +BRDA:897,256,0,0 +BRDA:903,257,0,5639 +BRDA:907,258,0,5347 +BRDA:907,259,0,4422 +BRDA:908,260,0,0 +BRDA:915,261,0,1775 +BRDA:915,262,0,0 +BRDA:933,263,0,0 +BRDA:942,264,0,296 +BRDA:944,265,0,0 +BRDA:953,266,0,0 +BRDA:953,267,0,0 +BRDA:961,268,0,0 +BRDA:963,269,0,0 +BRF:270 BRH:233 end_of_record TN: @@ -1551,7 +1649,7 @@ FNH:5 FNDA:51,Store FNDA:56,make_tag FNDA:56,init -FNDA:344,reify_entity_wrap +FNDA:338,reify_entity_wrap FNDA:158,outfunc DA:1,1 DA:2,1 @@ -1577,16 +1675,16 @@ DA:21,56 DA:22,56 DA:23,56 DA:24,56 -DA:25,4 -DA:26,5 -DA:27,5 -DA:28,5 -DA:29,5 -DA:30,5 -DA:31,5 +DA:25,3 +DA:26,3 +DA:27,3 +DA:28,3 +DA:29,3 +DA:30,3 +DA:31,3 DA:32,56 -DA:33,52 -DA:34,52 +DA:33,53 +DA:34,53 DA:35,56 DA:36,56 DA:37,56 @@ -1602,83 +1700,83 @@ DA:46,56 DA:47,56 DA:48,56 DA:49,56 -DA:50,57 -DA:51,57 -DA:52,57 -DA:53,57 -DA:54,57 -DA:55,57 -DA:56,57 -DA:57,57 -DA:58,57 -DA:59,57 -DA:60,57 -DA:61,56 -DA:62,56 -DA:63,56 -DA:64,57 +DA:50,56 +DA:51,56 +DA:52,56 +DA:53,56 +DA:54,56 +DA:55,56 +DA:56,56 +DA:57,56 +DA:58,56 +DA:59,56 +DA:60,56 +DA:61,55 +DA:62,55 +DA:63,55 +DA:64,56 DA:65,0 DA:66,0 DA:67,1 DA:68,1 DA:69,1 -DA:70,57 -DA:71,57 -DA:72,57 -DA:73,57 -DA:74,57 -DA:75,57 -DA:76,57 -DA:77,57 -DA:78,57 -DA:79,57 -DA:80,57 -DA:81,342 -DA:82,342 -DA:83,342 -DA:84,342 -DA:85,342 +DA:70,56 +DA:71,56 +DA:72,56 +DA:73,56 +DA:74,56 +DA:75,56 +DA:76,56 +DA:77,56 +DA:78,56 +DA:79,56 +DA:80,56 +DA:81,336 +DA:82,336 +DA:83,336 +DA:84,336 +DA:85,336 DA:86,0 DA:87,0 DA:88,0 DA:89,0 DA:90,0 -DA:91,342 -DA:92,342 -DA:93,342 -DA:94,342 -DA:95,342 -DA:96,342 -DA:97,342 -DA:98,342 +DA:91,336 +DA:92,336 +DA:93,336 +DA:94,336 +DA:95,336 +DA:96,336 +DA:97,336 +DA:98,336 DA:99,0 DA:100,0 -DA:101,342 -DA:102,342 -DA:103,285 -DA:104,342 -DA:105,57 -DA:106,57 -DA:107,57 -DA:108,94 -DA:109,94 -DA:110,94 +DA:101,336 +DA:102,336 +DA:103,280 +DA:104,336 +DA:105,56 +DA:106,56 +DA:107,56 +DA:108,92 +DA:109,92 +DA:110,92 DA:111,54 DA:112,54 DA:113,54 DA:114,54 DA:115,54 DA:116,54 -DA:117,94 -DA:118,40 -DA:119,40 -DA:120,57 -DA:121,57 -DA:122,57 -DA:123,57 -DA:124,57 -DA:125,57 -DA:126,57 +DA:117,92 +DA:118,38 +DA:119,38 +DA:120,56 +DA:121,56 +DA:122,56 +DA:123,56 +DA:124,56 +DA:125,56 +DA:126,56 DA:127,56 DA:128,0 DA:129,56 @@ -1696,13 +1794,13 @@ DA:140,1 DA:141,1 DA:142,1 DA:143,1 -DA:144,344 -DA:145,344 -DA:146,344 -DA:147,344 -DA:148,344 -DA:149,344 -DA:150,344 +DA:144,338 +DA:145,338 +DA:146,338 +DA:147,338 +DA:148,338 +DA:149,338 +DA:150,338 DA:151,158 DA:152,103 DA:153,71 @@ -1736,17 +1834,17 @@ DA:180,3 DA:181,158 DA:182,158 DA:183,158 -DA:184,344 -DA:185,344 -DA:186,344 -DA:187,344 -DA:188,344 -DA:189,344 -DA:190,344 -DA:191,344 -DA:192,344 -DA:193,344 -DA:194,344 +DA:184,338 +DA:185,338 +DA:186,338 +DA:187,338 +DA:188,338 +DA:189,338 +DA:190,338 +DA:191,338 +DA:192,338 +DA:193,338 +DA:194,338 DA:195,1 DA:196,1 DA:197,1 @@ -1757,48 +1855,46 @@ BRDA:5,0,0,51 BRDA:8,1,0,56 BRDA:9,2,0,52 BRDA:19,3,0,56 -BRDA:22,4,0,4 -BRDA:24,5,0,4 -BRDA:25,6,0,5 -BRDA:32,7,0,52 -BRDA:43,8,0,0 -BRDA:45,9,0,0 -BRDA:49,10,0,57 -BRDA:60,11,0,56 -BRDA:64,12,0,1 -BRDA:64,13,0,0 -BRDA:71,14,0,56 -BRDA:71,15,0,1 -BRDA:72,16,0,56 -BRDA:72,17,0,1 -BRDA:73,18,0,52 -BRDA:73,19,0,5 -BRDA:76,20,0,5 -BRDA:77,21,0,0 -BRDA:78,22,0,0 -BRDA:127,23,0,0 -BRDA:80,24,0,342 -BRDA:85,25,0,0 -BRDA:98,26,0,0 -BRDA:102,27,0,285 -BRDA:104,28,0,57 -BRDA:107,29,0,94 -BRDA:110,30,0,54 -BRDA:117,31,0,40 -BRDA:111,32,0,54 -BRDA:112,33,0,0 -BRDA:143,34,0,344 -BRDA:189,35,0,0 -BRDA:190,36,0,0 -BRDA:191,37,0,314 -BRDA:191,38,0,30 -BRDA:150,39,0,158 -BRDA:151,40,0,103 -BRDA:152,41,0,71 -BRDA:155,42,0,4 -BRDA:161,43,0,63 -BRDA:172,44,0,95 -BRDA:172,45,0,3 -BRF:46 -BRH:35 +BRDA:22,4,0,54 +BRDA:24,5,0,3 +BRDA:32,6,0,53 +BRDA:43,7,0,0 +BRDA:45,8,0,0 +BRDA:60,9,0,55 +BRDA:64,10,0,1 +BRDA:64,11,0,0 +BRDA:71,12,0,55 +BRDA:71,13,0,1 +BRDA:72,14,0,55 +BRDA:72,15,0,1 +BRDA:73,16,0,53 +BRDA:73,17,0,3 +BRDA:76,18,0,3 +BRDA:77,19,0,0 +BRDA:78,20,0,0 +BRDA:127,21,0,0 +BRDA:80,22,0,336 +BRDA:85,23,0,0 +BRDA:98,24,0,0 +BRDA:102,25,0,280 +BRDA:104,26,0,56 +BRDA:107,27,0,92 +BRDA:110,28,0,54 +BRDA:117,29,0,38 +BRDA:111,30,0,54 +BRDA:112,31,0,0 +BRDA:143,32,0,338 +BRDA:189,33,0,0 +BRDA:190,34,0,0 +BRDA:191,35,0,320 +BRDA:191,36,0,18 +BRDA:150,37,0,158 +BRDA:151,38,0,103 +BRDA:152,39,0,71 +BRDA:155,40,0,4 +BRDA:161,41,0,63 +BRDA:172,42,0,95 +BRDA:172,43,0,3 +BRF:44 +BRH:33 end_of_record diff --git a/dist/entity.d.ts b/dist/entity.d.ts index 5a57694..51b4c67 100644 --- a/dist/entity.d.ts +++ b/dist/entity.d.ts @@ -21,6 +21,7 @@ declare namespace entity { meta: { provide: boolean; }; + ent: import("gubu").Node; }; var preload: (this: any, context: any) => { name: string; diff --git a/dist/entity.js b/dist/entity.js index 50fada3..80bb5a1 100644 --- a/dist/entity.js +++ b/dist/entity.js @@ -1,6 +1,8 @@ "use strict"; /* Copyright (c) 2010-2023 Richard Rodger and other contributors, MIT License */ Object.defineProperty(exports, "__esModule", { value: true }); +const gubu_1 = require("gubu"); +const valid_1 = require("./valid"); const make_entity_1 = require("./lib/make_entity"); const store_1 = require("./lib/store"); // Define the entity plugin. @@ -30,6 +32,10 @@ entity.defaults = { // Provide action meta object as third argument to callbacks. provide: true, }, + ent: (0, gubu_1.Child)({ + valid: (0, gubu_1.Skip)((0, gubu_1.Any)()), // Gubu + valid_json: (0, gubu_1.Skip)({}), // Gubu JSON + }) }; // All functionality should be loaded when defining plugin function preload(context) { @@ -80,6 +86,7 @@ function preload(context) { seneca.log.apply(seneca, arguments); }; } + (0, valid_1.buildValidation)(seneca, seneca.private$.entity, options); return { // Define name, as tools like rollup will rename this function, breaking stuff. name: 'entity', diff --git a/dist/entity.js.map b/dist/entity.js.map index 08d51eb..e6dd05d 100644 --- a/dist/entity.js.map +++ b/dist/entity.js.map @@ -1 +1 @@ -{"version":3,"file":"entity.js","sourceRoot":"","sources":["../src/entity.ts"],"names":[],"mappings":";AAAA,gFAAgF;;AAShF,mDAAsD;AACtD,uCAAmC;AAInC,4BAA4B;AAC5B,SAAS,MAAM,CAAY,QAAa;IACtC,sBAAsB;IAEtB,OAAO;QACL,+EAA+E;QAC/E,IAAI,EAAE,QAAQ;KACf,CAAA;AACH,CAAC;AAGD,MAAM,CAAC,QAAQ,GAAG;IAChB,GAAG,EAAE,EAAE;IAEP,SAAS,EAAE,IAAI;IACf,WAAW;IAEX,WAAW,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE;IAE9B,sCAAsC;IACtC,MAAM,EAAE;QACN,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,GAAG;KACd;IAED,GAAG,EAAE;QACH,MAAM,EAAE,KAAK;KACd;IAED,kBAAkB;IAElB,IAAI,EAAE;QACJ,6DAA6D;QAC7D,OAAO,EAAE,IAAI;KACd;CACF,CAAA;AAGD,0DAA0D;AAC1D,SAAS,OAAO,CAAY,OAAY;;IACtC,MAAM,MAAM,GAAG,IAAI,CAAA;IAEnB,MAAM,OAAO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EAAE,EAAE,CAAC;YAChB,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;QAC3E,CAAC;aAAM,CAAC;YACN,MAAM,GAAG,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;QAClC,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;AAC3C,CAAC;AAGD,wBAAwB;AACxB,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAA;AAK1D,kBAAe,MAAM,CAAA;AAErB,IAAI,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IACpC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/dist/lib/make_entity.js b/dist/lib/make_entity.js index 01123e0..ed06959 100644 --- a/dist/lib/make_entity.js +++ b/dist/lib/make_entity.js @@ -1,7 +1,8 @@ "use strict"; /* Copyright (c) 2012-2023 Richard Rodger and other contributors, MIT License */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.Entity = exports.MakeEntity = void 0; +exports.Entity = void 0; +exports.MakeEntity = MakeEntity; const proto = Object.getPrototypeOf; const toString_map = { // '': make_toString(), @@ -165,6 +166,30 @@ class Entity { let entmsg = { cmd: 'save', q: {}, ...self.private$.options.pattern_fix }; let done$ = prepareCmd(self, data, entmsg, done); entmsg = self.private$.entargs(self, entmsg); + const entityTemplate = si.private$.entity; + // console.log('entityTemplate', entityTemplate) + const canonRouter = entityTemplate.canonRouter$; + // console.log('canonRouter:\n' + canonRouter) + if (canonRouter) { + const canonOps = canonRouter.find(entmsg); + // console.log('canonOps', entmsg, canonOps) + if (canonOps && canonOps.shape) { + let odata = entmsg.ent.data$(false); + // console.log('odata', odata) + let sctx = {}; + if (null == odata.id) { + sctx.skip = { keys: ['id'] }; + } + else { + // TODO: handle merge off case + sctx.skip = { depth: 1 }; + } + let vdata = canonOps.shape(odata, sctx); + // console.log('VDATA', vdata, sctx, canonOps.shape.stringify()) + entmsg.ent.data$(vdata); + } + // console.log('SAVE', entmsg, canonOps) + } const promise = self.private$.promise && !done$; let res = promise ? entityPromise(si, entmsg) @@ -670,7 +695,6 @@ function MakeEntity(canon, seneca, opts) { delete ent.private$; return ent; } -exports.MakeEntity = MakeEntity; MakeEntity.parsecanon = parsecanon; MakeEntity.canonstr = canonstr; function jsonic_strify(val, opts, depth) { diff --git a/dist/lib/make_entity.js.map b/dist/lib/make_entity.js.map index 09ab029..841e321 100644 --- a/dist/lib/make_entity.js.map +++ b/dist/lib/make_entity.js.map @@ -1 +1 @@ -{"version":3,"file":"make_entity.js","sourceRoot":"","sources":["../../src/lib/make_entity.ts"],"names":[],"mappings":";AAAA,gFAAgF;;;AAIhF,MAAM,KAAK,GAAG,MAAM,CAAC,cAAc,CAAA;AAEnC,MAAM,YAAY,GAAQ;AACxB,uBAAuB;CACxB,CAAA;AAED,qCAAqC;AACrC,MAAM,SAAS,GAAG,IAAI,CAAA;AAEtB,8BAA8B;AAC9B,MAAM,QAAQ,GAAG,IAAI,CAAA;AAErB,MAAM,mBAAmB,GAAwB;IAC/C,GAAG,EAAE,IAAI;IACT,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;CACb,CAAA;AAED,SAAS,OAAO,CAAY,GAAW,EAAE,IAAS;IAChD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;IAEd,kCAAkC;IAElC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA;I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Richard Rodger and other contributors, MIT License */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.Store = exports.Intern = void 0; +exports.Intern = void 0; +exports.Store = Store; const allcmds = ['save', 'load', 'list', 'remove', 'close', 'native']; function Store(plugin_opts) { const tag_count_map = {}; @@ -120,7 +121,6 @@ function Store(plugin_opts) { }; return store; } -exports.Store = Store; const Intern = { // Ensure entity objects are instantiated reify_entity_wrap: function (cmdfunc, cmd, zone, base, name) { diff --git a/dist/lib/store.js.map b/dist/lib/store.js.map index 1011db8..6f56c86 100644 --- a/dist/lib/store.js.map +++ b/dist/lib/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/lib/store.ts"],"names":[],"mappings":";AAAA,gFAAgF;;;AAEhF,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;AAErE,SAAS,KAAK,CAAC,WAAgB;IAC7B,MAAM,aAAa,GAAQ,EAAE,CAAA;IAE7B,SAAS,QAAQ,CAAC,UAAe;QAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;QAChE,OAAO,aAAa,CAAC,UAAU,CAAC,CAAA;IAClC,CAAC;IAED,6DAA6D;IAC7D,MAAM,KAAK,GAAG;QACZ,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAEtB,+BAA+B;QAC/B,iFAAiF;QACjF,IAAI,EAAE,UAAU,QAAa,EAAE,UAAe,EAAE,KAAU,EAAE,EAAO;YACjE,MAAM,QAAQ,GAAG,EAAE,CAAA;YACnB,MAAM,eAAe,GACnB,UAAU,CAAC,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,CAAA;YAE1D,IAAI,eAAe,EAAE,CAAC;gBACpB,K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YAED,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;QAC7C,CAAC,CAAA;QAED,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;YACrC,KAAK,EACH,SAAS;gBACT,GAAG;gBACH,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC;gBAChC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC;gBAChC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;SAC7B,CAAC,CAAA;QAEF,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAA;AAEQ,wBAAM"} \ No newline at end of file diff --git a/dist/valid.d.ts b/dist/valid.d.ts new file mode 100644 index 0000000..cf5b446 --- /dev/null +++ b/dist/valid.d.ts @@ -0,0 +1,3 @@ +import { Entity } from './lib/make_entity'; +declare function buildValidation(seneca: any, entity: Entity, options: any): void; +export { buildValidation }; diff --git a/dist/valid.js b/dist/valid.js new file mode 100644 index 0000000..2769ad2 --- /dev/null +++ b/dist/valid.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.buildValidation = buildValidation; +const patrun_1 = require("patrun"); +const gubu_1 = require("gubu"); +const make_entity_1 = require("./lib/make_entity"); +function buildValidation(seneca, entity, options) { + // console.log('VALID OPTS') + // console.dir(options, { depth: null }) + const canonRouter = (0, patrun_1.Patrun)(); + const canonMap = options.ent || {}; + const canons = Object.keys(canonMap); + // console.log('canons', canons) + for (let cI = 0; cI < canons.length; cI++) { + const cstr = canons[cI]; + const canon = make_entity_1.MakeEntity.parsecanon(cstr); + const spec = canonMap[cstr]; + let shape; + let vopts = { prefix: cstr }; + if (spec.valid_json) { + shape = gubu_1.Gubu.build(spec.valid_json); // , vopts) // , { prefix: cstr }) + } + else if (spec.valid) { + // let valid = ('function' === typeof spec.valid && !Gubu.isShape(spec.valid)) ? + let valid = ('function' === typeof spec.valid && !spec.valid.gubu) ? + spec.valid() : spec.valid; + // console.log('VALID', valid) + shape = (0, gubu_1.Gubu)(valid, vopts); + // console.log('SHAPE', shape.spec()) + } + // console.log('add', canon, shape) + canonRouter.add(canon, { + shape + }); + } + //console.log('canonRouter:\n' + canonRouter) + ; + entity.canonRouter$ = canonRouter; +} +//# sourceMappingURL=valid.js.map \ No newline at end of file diff --git a/dist/valid.js.map b/dist/valid.js.map new file mode 100644 index 0000000..e976722 --- /dev/null +++ b/dist/valid.js.map @@ -0,0 +1 @@ +{"version":3,"file":"valid.js","sourceRoot":"","sources":["../src/valid.ts"],"names":[],"mappings":";;AAuDE,0CAAe;AAtDjB,mCAA+B;AAC/B,+BAA2B;AAE3B,mDAAsD;AAGtD,SAAS,eAAe,CAAC,MAAW,EAAE,MAAc,EAAE,OAAY;IAChE,4BAA4B;IAC5B,wCAAwC;IAExC,MAAM,WAAW,GAAG,IAAA,eAAM,GAAE,CAAA;IAE5B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAA;IAElC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAEpC,gCAAgC;IAEhC,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;QAC1C,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;QACvB,MAAM,KAAK,GAAG,wBAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;QACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;QAE3B,IAAI,KAAK,CAAA;QACT,IAAI,KAAK,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;QAC5B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,KAAK,GAAG,WAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA,CAAC,kCAAkC;QACxE,CAAC;aACI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACpB,gFAAgF;YAChF,IAAI,KAAK,GAAG,CAAC,UAAU,KAAK,OAAO,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;gBAClE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA;YAE3B,8BAA8B;YAE9B,KAAK,GAAG,IAAA,WAAI,EAAC,KAAK,EAAE,KAAK,CAAC,CAAA;YAC1B,qCAAqC;QACvC,CAAC;QAED,mCAAmC;QAEnC,WAAW,CAAC,GAAG,CAAC,KAAK,EAAE;YACrB,KAAK;SACN,CAAC,CAAA;IAEJ,CAAC;IAED,6CAA6C;IAE7C,CAAC;IAAE,MAAc,CAAC,YAAY,GAAG,WAAW,CAAA;AAC9C,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 850809b..72eb17e 100644 --- a/package.json +++ b/package.json @@ -59,11 +59,14 @@ "devDependencies": { "@seneca/maintain": "^0.1.0", "@types/jest": "^29.5.12", - "esbuild": "^0.21.5", + "esbuild": "^0.23.0", "esbuild-jest": "^0.5.0", "jest": "^29.7.0", - "prettier": "^3.3.1", + "prettier": "^3.3.2", "seneca-msg-test": "^4.1.0", - "typescript": "^5.4.5" + "typescript": "^5.5.3" + }, + "overrides": { + "gubu":"8.0.2" } } diff --git a/src/entity.ts b/src/entity.ts index 09b572c..9791548 100644 --- a/src/entity.ts +++ b/src/entity.ts @@ -7,6 +7,10 @@ import { } from './types' +import { Child, Skip, Any } from 'gubu' + +import { buildValidation } from './valid' + import { MakeEntity, Entity } from './lib/make_entity' import { Store } from './lib/store' @@ -48,6 +52,11 @@ entity.defaults = { // Provide action meta object as third argument to callbacks. provide: true, }, + + ent: Child({ + valid: Skip(Any()), // Gubu + valid_json: Skip({}), // Gubu JSON + }) } @@ -120,6 +129,9 @@ function preload(this: any, context: any) { } } + buildValidation(seneca, seneca.private$.entity, options) + + return { // Define name, as tools like rollup will rename this function, breaking stuff. diff --git a/src/lib/make_entity.ts b/src/lib/make_entity.ts index 61a8075..c2ffe39 100644 --- a/src/lib/make_entity.ts +++ b/src/lib/make_entity.ts @@ -66,7 +66,7 @@ class Entity implements Record { constructor(canon: any, seneca: any, options: any) { const private$: any = this.private$ - private$.get_instance = function () { + private$.get_instance = function() { return seneca } private$.canon = canon @@ -172,23 +172,24 @@ class Entity implements Record { for (const p in props) { if (Object.prototype.hasOwnProperty.call(props, p)) { if (!~p.indexOf('$')) { - ;(entity as any)[p] = props[p] + ; (entity as any)[p] = props[p] } else if (p.length > 2 && p.slice(-2) === '_$') { - ;(entity as any)[p.slice(0, -2)] = props[p] + ; (entity as any)[p.slice(0, -2)] = props[p] } } } if (Object.prototype.hasOwnProperty.call(props, 'id$')) { - ;(entity as any).id$ = props.id$ + ; (entity as any).id$ = props.id$ } - ;(self as any).log$ && + ; (self as any).log$ && (self as any).log$('make', entity.canon$({ string: true }), entity) return entity } + /** Save the entity. * param {object} [data] - Subset of entity field values. * param {callback~save$} done - Callback function providing saved entity. @@ -201,6 +202,37 @@ class Entity implements Record { let done$ = prepareCmd(self, data, entmsg, done) entmsg = self.private$.entargs(self, entmsg) + const entityTemplate = (si.private$ as any).entity + + // console.log('entityTemplate', entityTemplate) + + const canonRouter = entityTemplate.canonRouter$ + + // console.log('canonRouter:\n' + canonRouter) + + if (canonRouter) { + const canonOps = canonRouter.find(entmsg) + // console.log('canonOps', entmsg, canonOps) + + if (canonOps && canonOps.shape) { + let odata = entmsg.ent.data$(false) + // console.log('odata', odata) + + let sctx: any = {} + if (null == odata.id) { + sctx.skip = { keys: ['id'] } + } + else { + // TODO: handle merge off case + sctx.skip = { depth: 1 } + } + let vdata = canonOps.shape(odata, sctx) + // console.log('VDATA', vdata, sctx, canonOps.shape.stringify()) + entmsg.ent.data$(vdata) + } + // console.log('SAVE', entmsg, canonOps) + } + const promise = self.private$.promise && !done$ let res = promise @@ -209,6 +241,7 @@ class Entity implements Record { return res // Sync: Enity self, Async: Entity Promise, Async+Callback: null } + /** Callback for Entity.save$. * @callback callback~save$ * @param {error} error - Error object, if any. @@ -415,7 +448,7 @@ class Entity implements Record { const promise = self.private$.promise && !done$ - ;(self as any).log$ && (self as any).log$('close') + ; (self as any).log$ && (self as any).log$('close') return promise ? si.post(entmsg) : (si.act(entmsg, done$), self) } @@ -480,12 +513,12 @@ class Entity implements Record { return null == opt || opt.string || opt.string$ ? // ? [ - // (opt && opt.string$ ? '$' : '') + - // (null == canon.zone ? '-' : canon.zone), - // null == canon.base ? '-' : canon.base, - // null == canon.name ? '-' : canon.name, - // ].join('/') // TODO: make joiner an option - (opt && opt.string$ ? '$' : '') + canonstr(canon) + // (opt && opt.string$ ? '$' : '') + + // (null == canon.zone ? '-' : canon.zone), + // null == canon.base ? '-' : canon.base, + // null == canon.name ? '-' : canon.name, + // ].join('/') // TODO: make joiner an option + (opt && opt.string$ ? '$' : '') + canonstr(canon) : opt.array ? [canon.zone, canon.base, canon.name] : opt.array$ @@ -606,14 +639,14 @@ function entityPromise(si: any, entmsg: any) { err ? rej((attachMeta ? (err.meta$ = meta) : null, err)) : res( - (attachMeta - ? ((out?.entity$ - ? proto(out) - : out || (out = { entity$: null }) - ).meta$ = meta) - : null, + (attachMeta + ? ((out?.entity$ + ? proto(out) + : out || (out = { entity$: null }) + ).meta$ = meta) + : null, out), - ) + ) }) }) } @@ -691,7 +724,8 @@ function parsecanon(str: CanonSpec) { out.zone = m[zi] === '-' ? void 0 : m[zi] out.base = m[bi] === '-' ? void 0 : m[bi] out.name = m[5] === '-' ? void 0 : m[5] - } else { + } + else { throw new Error( `Invalid entity canon: ${str}; expected format: zone/base/name.`, ) @@ -736,12 +770,12 @@ function handle_options(entopts: any, seneca: any): any { if (false === entopts.meta?.provide) { // Drop meta argument from callback - ;(Entity.prototype as any).done$ = (done: any) => { + ; (Entity.prototype as any).done$ = (done: any) => { return null == done ? undefined - : function (this: any, err: any, out: any) { - done.call(this, err, out) - } + : function(this: any, err: any, out: any) { + done.call(this, err, out) + } } } @@ -768,7 +802,7 @@ function make_toString( hidden_fields.push('id') - return function (this: any) { + return function(this: any) { return [ '$', canon_str || this.canon$({ string: true }), @@ -804,7 +838,7 @@ function MakeEntity(canon: any, seneca: any, opts: any): Entity { )) ).bind(ent) - let custom$ = function (this: any, props: any) { + let custom$ = function(this: any, props: any) { if ( null != props && ('object' === typeof props || 'function' === typeof props) @@ -822,7 +856,7 @@ function MakeEntity(canon: any, seneca: any, opts: any): Entity { hidden.toString = toString hidden.custom$ = custom$ - hidden.directive$ = function (this: any, directiveMap: Record) { + hidden.directive$ = function(this: any, directiveMap: Record) { if (null != directiveMap && 'object' === typeof directiveMap) { Object.assign(this.directive$, deep(directiveMap)) } diff --git a/src/valid.ts b/src/valid.ts new file mode 100644 index 0000000..aab6b48 --- /dev/null +++ b/src/valid.ts @@ -0,0 +1,57 @@ + +import { Patrun } from 'patrun' +import { Gubu } from 'gubu' + +import { Entity, MakeEntity } from './lib/make_entity' + + +function buildValidation(seneca: any, entity: Entity, options: any) { + // console.log('VALID OPTS') + // console.dir(options, { depth: null }) + + const canonRouter = Patrun() + + const canonMap = options.ent || {} + + const canons = Object.keys(canonMap) + + // console.log('canons', canons) + + for (let cI = 0; cI < canons.length; cI++) { + const cstr = canons[cI] + const canon = MakeEntity.parsecanon(cstr) + const spec = canonMap[cstr] + + let shape + let vopts = { prefix: cstr } + if (spec.valid_json) { + shape = Gubu.build(spec.valid_json) // , vopts) // , { prefix: cstr }) + } + else if (spec.valid) { + // let valid = ('function' === typeof spec.valid && !Gubu.isShape(spec.valid)) ? + let valid = ('function' === typeof spec.valid && !spec.valid.gubu) ? + spec.valid() : spec.valid + + // console.log('VALID', valid) + + shape = Gubu(valid, vopts) + // console.log('SHAPE', shape.spec()) + } + + // console.log('add', canon, shape) + + canonRouter.add(canon, { + shape + }) + + } + + //console.log('canonRouter:\n' + canonRouter) + + ; (entity as any).canonRouter$ = canonRouter +} + + +export { + buildValidation +} diff --git a/test/quick.js b/test/quick.js index 9f37c23..a519293 100644 --- a/test/quick.js +++ b/test/quick.js @@ -1,11 +1,54 @@ + const Seneca = require('seneca') const Entity = require('..') + +const Gubu = Seneca.util.Gubu + + async function run() { - let s0 = Seneca().test().use(Entity) + let valid_foo = { + id: String, + a: Number, + b: { + x: String + }, + c: 'C', + } + + let valid_foo_gubu = Gubu(valid_foo) + console.log('valid_foo_gubu', valid_foo_gubu.stringify()) + + let valid_foo_json = valid_foo_gubu.jsonify() + console.log('valid_foo_json', valid_foo_json) - let x0 = await s0.entity('foo').save$({ x: 0 }) + console.log('JSONIFY',Gubu.build(valid_foo_json).stringify()) + + + let s0 = Seneca().test().use(Entity, { + ent: { + '-/-/foo': { + valid_json: valid_foo_json + // valid: valid_foo + // valid: valid_foo_gubu + } + } + }) + + let x0 = await s0.entity('foo').save$({a:1,b:{x:'X'}}) console.log('x0', x0) + + let x0r = await s0.entity('foo').load$({id:x0.id,fields$:['a']}) + console.log('x0r', x0r) + + x0r.a = 2 + let x0r1 = await x0r.save$() + console.log('x0r1', x0r1) + + x0r1.a = 'A' + let x0r2 = await x0r1.save$() + console.log('x0r2', x0r2) + } run() diff --git a/test/valid.test.js b/test/valid.test.js new file mode 100644 index 0000000..d1b7621 --- /dev/null +++ b/test/valid.test.js @@ -0,0 +1,72 @@ +/* Copyright (c) 2022 Richard Rodger and other contributors, MIT License */ + +const Seneca = require('seneca') +const Entity = require('../') + +const Gubu = Seneca.util.Gubu + +describe('valid', function () { + test('happy', async function () { + const seneca = Seneca().test().use(Entity,{ + ent: { + '-/-/foo': { + valid: ()=>({ + a: Number + }), + }, + '-/bar/foo': { + valid: Gubu({ + a: Number, + b: { x: String } + }), + }, + '-/zed/-': { + valid_json: JSON.parse(`{ + "c": "Boolean", + "b": { "$$":"Open()", "x": "\\"X\\"" } + }`), + }, + } + }) + + const foo0 = await seneca.entity('foo').save$({a:1}) + expect(foo0.entity$).toEqual('-/-/foo') + expect(foo0.data$(false)).toMatchObject({a:1}) + + try { + await seneca.entity('foo').save$({a:'A'}) + expect(false).toEqual(true) + } + catch(e) { + expect(e.props).toEqual([ { path: 'a', what: 'type', type: 'number', value: 'A' } ]) + } + + try { + await seneca.entity('foo').save$({a:1,c:true}) + expect(false).toEqual(true) + } + catch(e) { + // TODO: much better props entry needed for this error + // expect(e.props).toEqual() + } + + // TODO: need to validate id$ too! + const foo3 = await seneca.entity('foo').save$({id$:'a3',a:3}) + expect(foo3.entity$).toEqual('-/-/foo') + expect(foo3.data$(false)).toMatchObject({id:'a3',a:3}) + + + const barfoo0 = await seneca.entity('bar/foo').save$({a:1,b:{x:'X'}}) + expect(barfoo0.entity$).toEqual('-/bar/foo') + expect(barfoo0.data$(false)).toMatchObject({a:1,b:{x:'X'}}) + + try { + await seneca.entity('bar/foo').save$({a:'A',b:{x:'X'}}) + expect(false).toEqual(true) + } + catch(e) { + expect(e.props).toEqual([ { path: 'a', what: 'type', type: 'number', value: 'A' } ]) + } + + }) +})