@happyvertical/smrt-sites 0.45.0 → 0.45.2

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.
@@ -2,8 +2,251 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-sites",
5
- "packageVersion": "0.45.0",
5
+ "packageVersion": "0.45.2",
6
6
  "objects": {
7
+ "@happyvertical/smrt-sites:SiteAgentBindingCollection": {
8
+ "name": "siteagentbindingcollection",
9
+ "className": "SiteAgentBindingCollection",
10
+ "qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
11
+ "collection": "siteagentbindings",
12
+ "filePath": "/home/runner/work/smrt/smrt/packages/sites/src/collections/SiteAgentBindingCollection.ts",
13
+ "packageName": "@happyvertical/smrt-sites",
14
+ "fields": {},
15
+ "methods": {
16
+ "findBySite": {
17
+ "name": "findBySite",
18
+ "async": true,
19
+ "parameters": [
20
+ {
21
+ "name": "siteId",
22
+ "type": "string",
23
+ "optional": false
24
+ }
25
+ ],
26
+ "returnType": "Promise<SiteAgentBinding[]>",
27
+ "isStatic": false,
28
+ "isPublic": true
29
+ },
30
+ "findByAgent": {
31
+ "name": "findByAgent",
32
+ "async": true,
33
+ "parameters": [
34
+ {
35
+ "name": "agentClass",
36
+ "type": "string",
37
+ "optional": false
38
+ }
39
+ ],
40
+ "returnType": "Promise<SiteAgentBinding[]>",
41
+ "isStatic": false,
42
+ "isPublic": true
43
+ },
44
+ "findEnabled": {
45
+ "name": "findEnabled",
46
+ "async": true,
47
+ "parameters": [
48
+ {
49
+ "name": "siteId",
50
+ "type": "string",
51
+ "optional": false
52
+ }
53
+ ],
54
+ "returnType": "Promise<SiteAgentBinding[]>",
55
+ "isStatic": false,
56
+ "isPublic": true
57
+ },
58
+ "findBySiteAndAgent": {
59
+ "name": "findBySiteAndAgent",
60
+ "async": true,
61
+ "parameters": [
62
+ {
63
+ "name": "siteId",
64
+ "type": "string",
65
+ "optional": false
66
+ },
67
+ {
68
+ "name": "agentClass",
69
+ "type": "string",
70
+ "optional": false
71
+ }
72
+ ],
73
+ "returnType": "Promise<SiteAgentBinding | null>",
74
+ "isStatic": false,
75
+ "isPublic": true
76
+ }
77
+ },
78
+ "decoratorConfig": {
79
+ "tableName": "site_agent_bindings"
80
+ },
81
+ "extends": "SmrtCollection",
82
+ "extendsTypeArg": "SiteAgentBinding",
83
+ "exportName": "SiteAgentBindingCollection",
84
+ "collectionExportName": "SiteAgentBindingCollectionCollection",
85
+ "schema": {
86
+ "tableName": "site_agent_bindings",
87
+ "ddl": "CREATE TABLE IF NOT EXISTS \"site_agent_bindings\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
88
+ "columns": {
89
+ "id": {
90
+ "type": "UUID",
91
+ "primaryKey": true,
92
+ "referenceKind": "id",
93
+ "notNull": true
94
+ },
95
+ "slug": {
96
+ "type": "TEXT",
97
+ "notNull": true
98
+ },
99
+ "context": {
100
+ "type": "TEXT",
101
+ "notNull": true,
102
+ "default": ""
103
+ },
104
+ "created_at": {
105
+ "type": "TIMESTAMP",
106
+ "notNull": true,
107
+ "default": "current_timestamp"
108
+ },
109
+ "updated_at": {
110
+ "type": "TIMESTAMP",
111
+ "notNull": true,
112
+ "default": "current_timestamp"
113
+ }
114
+ },
115
+ "indexes": [
116
+ {
117
+ "name": "site_agent_bindings_slug_context_idx",
118
+ "columns": [
119
+ "slug",
120
+ "context"
121
+ ],
122
+ "unique": true
123
+ },
124
+ {
125
+ "name": "site_agent_bindings_created_at_idx",
126
+ "columns": [
127
+ "created_at"
128
+ ]
129
+ }
130
+ ],
131
+ "version": "b7f2e6f8"
132
+ }
133
+ },
134
+ "@happyvertical/smrt-sites:SiteCollection": {
135
+ "name": "sitecollection",
136
+ "className": "SiteCollection",
137
+ "qualifiedName": "@happyvertical/smrt-sites:SiteCollection",
138
+ "collection": "sites",
139
+ "filePath": "/home/runner/work/smrt/smrt/packages/sites/src/collections/SiteCollection.ts",
140
+ "packageName": "@happyvertical/smrt-sites",
141
+ "fields": {},
142
+ "methods": {
143
+ "findByDomain": {
144
+ "name": "findByDomain",
145
+ "async": true,
146
+ "parameters": [
147
+ {
148
+ "name": "domain",
149
+ "type": "string",
150
+ "optional": false
151
+ }
152
+ ],
153
+ "returnType": "Promise<Site | null>",
154
+ "isStatic": false,
155
+ "isPublic": true
156
+ },
157
+ "findByTenant": {
158
+ "name": "findByTenant",
159
+ "async": true,
160
+ "parameters": [
161
+ {
162
+ "name": "tenantId",
163
+ "type": "string",
164
+ "optional": false
165
+ }
166
+ ],
167
+ "returnType": "Promise<Site[]>",
168
+ "isStatic": false,
169
+ "isPublic": true
170
+ },
171
+ "findByStatus": {
172
+ "name": "findByStatus",
173
+ "async": true,
174
+ "parameters": [
175
+ {
176
+ "name": "status",
177
+ "type": "SiteStatus",
178
+ "optional": false
179
+ }
180
+ ],
181
+ "returnType": "Promise<Site[]>",
182
+ "isStatic": false,
183
+ "isPublic": true
184
+ },
185
+ "findActive": {
186
+ "name": "findActive",
187
+ "async": true,
188
+ "parameters": [],
189
+ "returnType": "Promise<Site[]>",
190
+ "isStatic": false,
191
+ "isPublic": true
192
+ }
193
+ },
194
+ "decoratorConfig": {
195
+ "tableName": "sites"
196
+ },
197
+ "extends": "SmrtCollection",
198
+ "extendsTypeArg": "Site",
199
+ "exportName": "SiteCollection",
200
+ "collectionExportName": "SiteCollectionCollection",
201
+ "schema": {
202
+ "tableName": "sites",
203
+ "ddl": "CREATE TABLE IF NOT EXISTS \"sites\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
204
+ "columns": {
205
+ "id": {
206
+ "type": "UUID",
207
+ "primaryKey": true,
208
+ "referenceKind": "id",
209
+ "notNull": true
210
+ },
211
+ "slug": {
212
+ "type": "TEXT",
213
+ "notNull": true
214
+ },
215
+ "context": {
216
+ "type": "TEXT",
217
+ "notNull": true,
218
+ "default": ""
219
+ },
220
+ "created_at": {
221
+ "type": "TIMESTAMP",
222
+ "notNull": true,
223
+ "default": "current_timestamp"
224
+ },
225
+ "updated_at": {
226
+ "type": "TIMESTAMP",
227
+ "notNull": true,
228
+ "default": "current_timestamp"
229
+ }
230
+ },
231
+ "indexes": [
232
+ {
233
+ "name": "sites_slug_context_idx",
234
+ "columns": [
235
+ "slug",
236
+ "context"
237
+ ],
238
+ "unique": true
239
+ },
240
+ {
241
+ "name": "sites_created_at_idx",
242
+ "columns": [
243
+ "created_at"
244
+ ]
245
+ }
246
+ ],
247
+ "version": "2f0752a0"
248
+ }
249
+ },
7
250
  "@happyvertical/smrt-sites:Site": {
8
251
  "name": "site",
9
252
  "className": "Site",
@@ -197,7 +440,9 @@
197
440
  "update"
198
441
  ]
199
442
  },
200
- "cli": true,
443
+ "cli": {
444
+ "skipApiCheck": true
445
+ },
201
446
  "conflictColumns": [
202
447
  "tenant_id",
203
448
  "domain"
@@ -535,249 +780,6 @@
535
780
  ],
536
781
  "version": "dec43c9c"
537
782
  }
538
- },
539
- "@happyvertical/smrt-sites:SiteAgentBindingCollection": {
540
- "name": "siteagentbindingcollection",
541
- "className": "SiteAgentBindingCollection",
542
- "qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
543
- "collection": "siteagentbindings",
544
- "filePath": "/home/runner/work/smrt/smrt/packages/sites/src/collections/SiteAgentBindingCollection.ts",
545
- "packageName": "@happyvertical/smrt-sites",
546
- "fields": {},
547
- "methods": {
548
- "findBySite": {
549
- "name": "findBySite",
550
- "async": true,
551
- "parameters": [
552
- {
553
- "name": "siteId",
554
- "type": "string",
555
- "optional": false
556
- }
557
- ],
558
- "returnType": "Promise<SiteAgentBinding[]>",
559
- "isStatic": false,
560
- "isPublic": true
561
- },
562
- "findByAgent": {
563
- "name": "findByAgent",
564
- "async": true,
565
- "parameters": [
566
- {
567
- "name": "agentClass",
568
- "type": "string",
569
- "optional": false
570
- }
571
- ],
572
- "returnType": "Promise<SiteAgentBinding[]>",
573
- "isStatic": false,
574
- "isPublic": true
575
- },
576
- "findEnabled": {
577
- "name": "findEnabled",
578
- "async": true,
579
- "parameters": [
580
- {
581
- "name": "siteId",
582
- "type": "string",
583
- "optional": false
584
- }
585
- ],
586
- "returnType": "Promise<SiteAgentBinding[]>",
587
- "isStatic": false,
588
- "isPublic": true
589
- },
590
- "findBySiteAndAgent": {
591
- "name": "findBySiteAndAgent",
592
- "async": true,
593
- "parameters": [
594
- {
595
- "name": "siteId",
596
- "type": "string",
597
- "optional": false
598
- },
599
- {
600
- "name": "agentClass",
601
- "type": "string",
602
- "optional": false
603
- }
604
- ],
605
- "returnType": "Promise<SiteAgentBinding | null>",
606
- "isStatic": false,
607
- "isPublic": true
608
- }
609
- },
610
- "decoratorConfig": {
611
- "tableName": "site_agent_bindings"
612
- },
613
- "extends": "SmrtCollection",
614
- "extendsTypeArg": "SiteAgentBinding",
615
- "exportName": "SiteAgentBindingCollection",
616
- "collectionExportName": "SiteAgentBindingCollectionCollection",
617
- "schema": {
618
- "tableName": "site_agent_bindings",
619
- "ddl": "CREATE TABLE IF NOT EXISTS \"site_agent_bindings\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
620
- "columns": {
621
- "id": {
622
- "type": "UUID",
623
- "primaryKey": true,
624
- "referenceKind": "id",
625
- "notNull": true
626
- },
627
- "slug": {
628
- "type": "TEXT",
629
- "notNull": true
630
- },
631
- "context": {
632
- "type": "TEXT",
633
- "notNull": true,
634
- "default": ""
635
- },
636
- "created_at": {
637
- "type": "TIMESTAMP",
638
- "notNull": true,
639
- "default": "current_timestamp"
640
- },
641
- "updated_at": {
642
- "type": "TIMESTAMP",
643
- "notNull": true,
644
- "default": "current_timestamp"
645
- }
646
- },
647
- "indexes": [
648
- {
649
- "name": "site_agent_bindings_slug_context_idx",
650
- "columns": [
651
- "slug",
652
- "context"
653
- ],
654
- "unique": true
655
- },
656
- {
657
- "name": "site_agent_bindings_created_at_idx",
658
- "columns": [
659
- "created_at"
660
- ]
661
- }
662
- ],
663
- "version": "b7f2e6f8"
664
- }
665
- },
666
- "@happyvertical/smrt-sites:SiteCollection": {
667
- "name": "sitecollection",
668
- "className": "SiteCollection",
669
- "qualifiedName": "@happyvertical/smrt-sites:SiteCollection",
670
- "collection": "sites",
671
- "filePath": "/home/runner/work/smrt/smrt/packages/sites/src/collections/SiteCollection.ts",
672
- "packageName": "@happyvertical/smrt-sites",
673
- "fields": {},
674
- "methods": {
675
- "findByDomain": {
676
- "name": "findByDomain",
677
- "async": true,
678
- "parameters": [
679
- {
680
- "name": "domain",
681
- "type": "string",
682
- "optional": false
683
- }
684
- ],
685
- "returnType": "Promise<Site | null>",
686
- "isStatic": false,
687
- "isPublic": true
688
- },
689
- "findByTenant": {
690
- "name": "findByTenant",
691
- "async": true,
692
- "parameters": [
693
- {
694
- "name": "tenantId",
695
- "type": "string",
696
- "optional": false
697
- }
698
- ],
699
- "returnType": "Promise<Site[]>",
700
- "isStatic": false,
701
- "isPublic": true
702
- },
703
- "findByStatus": {
704
- "name": "findByStatus",
705
- "async": true,
706
- "parameters": [
707
- {
708
- "name": "status",
709
- "type": "SiteStatus",
710
- "optional": false
711
- }
712
- ],
713
- "returnType": "Promise<Site[]>",
714
- "isStatic": false,
715
- "isPublic": true
716
- },
717
- "findActive": {
718
- "name": "findActive",
719
- "async": true,
720
- "parameters": [],
721
- "returnType": "Promise<Site[]>",
722
- "isStatic": false,
723
- "isPublic": true
724
- }
725
- },
726
- "decoratorConfig": {
727
- "tableName": "sites"
728
- },
729
- "extends": "SmrtCollection",
730
- "extendsTypeArg": "Site",
731
- "exportName": "SiteCollection",
732
- "collectionExportName": "SiteCollectionCollection",
733
- "schema": {
734
- "tableName": "sites",
735
- "ddl": "CREATE TABLE IF NOT EXISTS \"sites\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
736
- "columns": {
737
- "id": {
738
- "type": "UUID",
739
- "primaryKey": true,
740
- "referenceKind": "id",
741
- "notNull": true
742
- },
743
- "slug": {
744
- "type": "TEXT",
745
- "notNull": true
746
- },
747
- "context": {
748
- "type": "TEXT",
749
- "notNull": true,
750
- "default": ""
751
- },
752
- "created_at": {
753
- "type": "TIMESTAMP",
754
- "notNull": true,
755
- "default": "current_timestamp"
756
- },
757
- "updated_at": {
758
- "type": "TIMESTAMP",
759
- "notNull": true,
760
- "default": "current_timestamp"
761
- }
762
- },
763
- "indexes": [
764
- {
765
- "name": "sites_slug_context_idx",
766
- "columns": [
767
- "slug",
768
- "context"
769
- ],
770
- "unique": true
771
- },
772
- {
773
- "name": "sites_created_at_idx",
774
- "columns": [
775
- "created_at"
776
- ]
777
- }
778
- ],
779
- "version": "2f0752a0"
780
- }
781
783
  }
782
784
  },
783
785
  "moduleType": "smrt",