@happyvertical/smrt-products 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-products",
6
- "packageVersion": "0.44.0",
6
+ "packageVersion": "0.45.0",
7
7
  "sourceManifestPath": "dist/lib/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "111d6a827ec589b1a182a21de4bd551c9aac5243e59a61454aa4c04af637ee9e",
11
- "packageJson": "9ba90bea5ac6c29a65ceca0592ce2021c0ad2f0507db3cf1d071fe1f18f448fe",
10
+ "manifest": "cfd10645368ef10174c6eb90d1a9e3598183b9d2ce5ff1e114d9adaf27b483fb",
11
+ "packageJson": "b811d228155cadfad2a8419e455e9a46302e38bfe4bf68868fae364f363c5e49",
12
12
  "agents": "4ddde01c48baf13de773cdb57353a148f3fe3b93d21e99d8ac57677cda809e26"
13
13
  },
14
14
  "exports": [
@@ -91,7 +91,28 @@
91
91
  "returns": "Promise<Category[]>"
92
92
  }
93
93
  ],
94
- "surfaces": [],
94
+ "surfaces": [
95
+ {
96
+ "kind": "api",
97
+ "name": "categories.getRootCategories",
98
+ "operation": "getRootCategories",
99
+ "objectName": "@happyvertical/smrt-products:CategoryCollection",
100
+ "path": "/categories/getRootCategories",
101
+ "method": "POST"
102
+ },
103
+ {
104
+ "kind": "cli",
105
+ "name": "categorycollection_getRootCategories",
106
+ "operation": "getRootCategories",
107
+ "objectName": "@happyvertical/smrt-products:CategoryCollection"
108
+ },
109
+ {
110
+ "kind": "mcp",
111
+ "name": "categorycollection_getrootcategories",
112
+ "operation": "getRootCategories",
113
+ "objectName": "@happyvertical/smrt-products:CategoryCollection"
114
+ }
115
+ ],
95
116
  "relationshipFeatures": [
96
117
  "uuidColumns"
97
118
  ],
@@ -108,9 +129,25 @@
108
129
  "fields": [],
109
130
  "relationships": [],
110
131
  "methods": [
111
- "findByKind"
132
+ "addAsset",
133
+ "findByKind",
134
+ "findByManufacturer",
135
+ "findInStock",
136
+ "getAssets",
137
+ "removeAsset"
112
138
  ],
113
139
  "methodSignatures": [
140
+ {
141
+ "name": "addAsset",
142
+ "async": true,
143
+ "params": [
144
+ "productId: string",
145
+ "asset: Asset",
146
+ "relationship?: any",
147
+ "sortOrder?: any"
148
+ ],
149
+ "returns": "Promise<void>"
150
+ },
114
151
  {
115
152
  "name": "findByKind",
116
153
  "async": true,
@@ -118,9 +155,162 @@
118
155
  "materialKind: MaterialKind"
119
156
  ],
120
157
  "returns": "Promise<Material[]>"
158
+ },
159
+ {
160
+ "name": "findByManufacturer",
161
+ "async": true,
162
+ "params": [
163
+ "manufacturer: string"
164
+ ],
165
+ "returns": "Promise<Product[]>"
166
+ },
167
+ {
168
+ "name": "findInStock",
169
+ "async": true,
170
+ "returns": "Promise<Product[]>"
171
+ },
172
+ {
173
+ "name": "getAssets",
174
+ "async": true,
175
+ "params": [
176
+ "productId: string",
177
+ "relationship?: string"
178
+ ],
179
+ "returns": "Promise<Asset[]>"
180
+ },
181
+ {
182
+ "name": "removeAsset",
183
+ "async": true,
184
+ "params": [
185
+ "productId: string",
186
+ "assetId: string",
187
+ "relationship?: string"
188
+ ],
189
+ "returns": "Promise<void>"
190
+ }
191
+ ],
192
+ "surfaces": [
193
+ {
194
+ "kind": "api",
195
+ "name": "products.findByManufacturer",
196
+ "operation": "findByManufacturer",
197
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
198
+ "path": "/products/findByManufacturer",
199
+ "method": "POST"
200
+ },
201
+ {
202
+ "kind": "api",
203
+ "name": "products.findInStock",
204
+ "operation": "findInStock",
205
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
206
+ "path": "/products/findInStock",
207
+ "method": "POST"
208
+ },
209
+ {
210
+ "kind": "api",
211
+ "name": "products.getAssets",
212
+ "operation": "getAssets",
213
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
214
+ "path": "/products/getAssets",
215
+ "method": "POST"
216
+ },
217
+ {
218
+ "kind": "api",
219
+ "name": "products.addAsset",
220
+ "operation": "addAsset",
221
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
222
+ "path": "/products/addAsset",
223
+ "method": "POST"
224
+ },
225
+ {
226
+ "kind": "api",
227
+ "name": "products.removeAsset",
228
+ "operation": "removeAsset",
229
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
230
+ "path": "/products/removeAsset",
231
+ "method": "POST"
232
+ },
233
+ {
234
+ "kind": "api",
235
+ "name": "products.findByKind",
236
+ "operation": "findByKind",
237
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
238
+ "path": "/products/findByKind",
239
+ "method": "POST"
240
+ },
241
+ {
242
+ "kind": "cli",
243
+ "name": "materialcollection_findByManufacturer",
244
+ "operation": "findByManufacturer",
245
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
246
+ },
247
+ {
248
+ "kind": "cli",
249
+ "name": "materialcollection_findInStock",
250
+ "operation": "findInStock",
251
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
252
+ },
253
+ {
254
+ "kind": "cli",
255
+ "name": "materialcollection_getAssets",
256
+ "operation": "getAssets",
257
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
258
+ },
259
+ {
260
+ "kind": "cli",
261
+ "name": "materialcollection_addAsset",
262
+ "operation": "addAsset",
263
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
264
+ },
265
+ {
266
+ "kind": "cli",
267
+ "name": "materialcollection_removeAsset",
268
+ "operation": "removeAsset",
269
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
270
+ },
271
+ {
272
+ "kind": "cli",
273
+ "name": "materialcollection_findByKind",
274
+ "operation": "findByKind",
275
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
276
+ },
277
+ {
278
+ "kind": "mcp",
279
+ "name": "materialcollection_findbymanufacturer",
280
+ "operation": "findByManufacturer",
281
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
282
+ },
283
+ {
284
+ "kind": "mcp",
285
+ "name": "materialcollection_findinstock",
286
+ "operation": "findInStock",
287
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
288
+ },
289
+ {
290
+ "kind": "mcp",
291
+ "name": "materialcollection_getassets",
292
+ "operation": "getAssets",
293
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
294
+ },
295
+ {
296
+ "kind": "mcp",
297
+ "name": "materialcollection_addasset",
298
+ "operation": "addAsset",
299
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
300
+ },
301
+ {
302
+ "kind": "mcp",
303
+ "name": "materialcollection_removeasset",
304
+ "operation": "removeAsset",
305
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
306
+ },
307
+ {
308
+ "kind": "mcp",
309
+ "name": "materialcollection_findbykind",
310
+ "operation": "findByKind",
311
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
121
312
  }
122
313
  ],
123
- "surfaces": [],
124
314
  "relationshipFeatures": [
125
315
  "uuidColumns"
126
316
  ],
@@ -295,7 +485,108 @@
295
485
  "returns": "Promise<void>"
296
486
  }
297
487
  ],
298
- "surfaces": [],
488
+ "surfaces": [
489
+ {
490
+ "kind": "api",
491
+ "name": "products.findByManufacturer",
492
+ "operation": "findByManufacturer",
493
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
494
+ "path": "/products/findByManufacturer",
495
+ "method": "POST"
496
+ },
497
+ {
498
+ "kind": "api",
499
+ "name": "products.findInStock",
500
+ "operation": "findInStock",
501
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
502
+ "path": "/products/findInStock",
503
+ "method": "POST"
504
+ },
505
+ {
506
+ "kind": "api",
507
+ "name": "products.getAssets",
508
+ "operation": "getAssets",
509
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
510
+ "path": "/products/getAssets",
511
+ "method": "POST"
512
+ },
513
+ {
514
+ "kind": "api",
515
+ "name": "products.addAsset",
516
+ "operation": "addAsset",
517
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
518
+ "path": "/products/addAsset",
519
+ "method": "POST"
520
+ },
521
+ {
522
+ "kind": "api",
523
+ "name": "products.removeAsset",
524
+ "operation": "removeAsset",
525
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
526
+ "path": "/products/removeAsset",
527
+ "method": "POST"
528
+ },
529
+ {
530
+ "kind": "cli",
531
+ "name": "productcollection_findByManufacturer",
532
+ "operation": "findByManufacturer",
533
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
534
+ },
535
+ {
536
+ "kind": "cli",
537
+ "name": "productcollection_findInStock",
538
+ "operation": "findInStock",
539
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
540
+ },
541
+ {
542
+ "kind": "cli",
543
+ "name": "productcollection_getAssets",
544
+ "operation": "getAssets",
545
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
546
+ },
547
+ {
548
+ "kind": "cli",
549
+ "name": "productcollection_addAsset",
550
+ "operation": "addAsset",
551
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
552
+ },
553
+ {
554
+ "kind": "cli",
555
+ "name": "productcollection_removeAsset",
556
+ "operation": "removeAsset",
557
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
558
+ },
559
+ {
560
+ "kind": "mcp",
561
+ "name": "productcollection_findbymanufacturer",
562
+ "operation": "findByManufacturer",
563
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
564
+ },
565
+ {
566
+ "kind": "mcp",
567
+ "name": "productcollection_findinstock",
568
+ "operation": "findInStock",
569
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
570
+ },
571
+ {
572
+ "kind": "mcp",
573
+ "name": "productcollection_getassets",
574
+ "operation": "getAssets",
575
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
576
+ },
577
+ {
578
+ "kind": "mcp",
579
+ "name": "productcollection_addasset",
580
+ "operation": "addAsset",
581
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
582
+ },
583
+ {
584
+ "kind": "mcp",
585
+ "name": "productcollection_removeasset",
586
+ "operation": "removeAsset",
587
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
588
+ }
589
+ ],
299
590
  "relationshipFeatures": [
300
591
  "uuidColumns"
301
592
  ],
@@ -334,7 +625,48 @@
334
625
  "returns": "Promise<ProductVariant[]>"
335
626
  }
336
627
  ],
337
- "surfaces": [],
628
+ "surfaces": [
629
+ {
630
+ "kind": "api",
631
+ "name": "productvariants.findForProduct",
632
+ "operation": "findForProduct",
633
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection",
634
+ "path": "/productvariants/findForProduct",
635
+ "method": "POST"
636
+ },
637
+ {
638
+ "kind": "api",
639
+ "name": "productvariants.findAxis",
640
+ "operation": "findAxis",
641
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection",
642
+ "path": "/productvariants/findAxis",
643
+ "method": "POST"
644
+ },
645
+ {
646
+ "kind": "cli",
647
+ "name": "productvariantcollection_findForProduct",
648
+ "operation": "findForProduct",
649
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
650
+ },
651
+ {
652
+ "kind": "cli",
653
+ "name": "productvariantcollection_findAxis",
654
+ "operation": "findAxis",
655
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
656
+ },
657
+ {
658
+ "kind": "mcp",
659
+ "name": "productvariantcollection_findforproduct",
660
+ "operation": "findForProduct",
661
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
662
+ },
663
+ {
664
+ "kind": "mcp",
665
+ "name": "productvariantcollection_findaxis",
666
+ "operation": "findAxis",
667
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
668
+ }
669
+ ],
338
670
  "relationshipFeatures": [
339
671
  "uuidColumns"
340
672
  ],
@@ -399,7 +731,108 @@
399
731
  "returns": "Promise<Sku[]>"
400
732
  }
401
733
  ],
402
- "surfaces": [],
734
+ "surfaces": [
735
+ {
736
+ "kind": "api",
737
+ "name": "skus.findByCode",
738
+ "operation": "findByCode",
739
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
740
+ "path": "/skus/findByCode",
741
+ "method": "POST"
742
+ },
743
+ {
744
+ "kind": "api",
745
+ "name": "skus.findByBarcode",
746
+ "operation": "findByBarcode",
747
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
748
+ "path": "/skus/findByBarcode",
749
+ "method": "POST"
750
+ },
751
+ {
752
+ "kind": "api",
753
+ "name": "skus.findByProduct",
754
+ "operation": "findByProduct",
755
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
756
+ "path": "/skus/findByProduct",
757
+ "method": "POST"
758
+ },
759
+ {
760
+ "kind": "api",
761
+ "name": "skus.findByParent",
762
+ "operation": "findByParent",
763
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
764
+ "path": "/skus/findByParent",
765
+ "method": "POST"
766
+ },
767
+ {
768
+ "kind": "api",
769
+ "name": "skus.findActive",
770
+ "operation": "findActive",
771
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
772
+ "path": "/skus/findActive",
773
+ "method": "POST"
774
+ },
775
+ {
776
+ "kind": "cli",
777
+ "name": "skucollection_findByCode",
778
+ "operation": "findByCode",
779
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
780
+ },
781
+ {
782
+ "kind": "cli",
783
+ "name": "skucollection_findByBarcode",
784
+ "operation": "findByBarcode",
785
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
786
+ },
787
+ {
788
+ "kind": "cli",
789
+ "name": "skucollection_findByProduct",
790
+ "operation": "findByProduct",
791
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
792
+ },
793
+ {
794
+ "kind": "cli",
795
+ "name": "skucollection_findByParent",
796
+ "operation": "findByParent",
797
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
798
+ },
799
+ {
800
+ "kind": "cli",
801
+ "name": "skucollection_findActive",
802
+ "operation": "findActive",
803
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
804
+ },
805
+ {
806
+ "kind": "mcp",
807
+ "name": "skucollection_findbycode",
808
+ "operation": "findByCode",
809
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
810
+ },
811
+ {
812
+ "kind": "mcp",
813
+ "name": "skucollection_findbybarcode",
814
+ "operation": "findByBarcode",
815
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
816
+ },
817
+ {
818
+ "kind": "mcp",
819
+ "name": "skucollection_findbyproduct",
820
+ "operation": "findByProduct",
821
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
822
+ },
823
+ {
824
+ "kind": "mcp",
825
+ "name": "skucollection_findbyparent",
826
+ "operation": "findByParent",
827
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
828
+ },
829
+ {
830
+ "kind": "mcp",
831
+ "name": "skucollection_findactive",
832
+ "operation": "findActive",
833
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
834
+ }
835
+ ],
403
836
  "relationshipFeatures": [
404
837
  "uuidColumns"
405
838
  ],
@@ -482,346 +915,7 @@
482
915
  "columnType": "UUID"
483
916
  }
484
917
  ],
485
- "methods": [
486
- "_setLoadedRelationship",
487
- "claimRevision",
488
- "classifyConstraintError",
489
- "clearEmbeddings",
490
- "delete",
491
- "describe",
492
- "destroy",
493
- "do",
494
- "executeToolCall",
495
- "forget",
496
- "forgetScope",
497
- "generateEmbeddings",
498
- "getAiUsageSnapshot",
499
- "getAvailableTools",
500
- "getEmbedding",
501
- "getFields",
502
- "getId",
503
- "getRelated",
504
- "getSavedId",
505
- "getSlug",
506
- "hasStaleEmbeddings",
507
- "initialize",
508
- "is",
509
- "isRelatedLoaded",
510
- "isSaved",
511
- "listAiUsage",
512
- "loadDataFromDb",
513
- "loadFromId",
514
- "loadFromSlug",
515
- "loadRelated",
516
- "loadRelatedMany",
517
- "markAsPersisted",
518
- "recall",
519
- "recallAll",
520
- "remember",
521
- "requireInsertOnSave",
522
- "resetAiUsage",
523
- "save",
524
- "summarizeAiUsage",
525
- "toJSON",
526
- "toPlainObject",
527
- "toPublicJSON",
528
- "withDatabase",
529
- "withTransaction"
530
- ],
531
- "methodSignatures": [
532
- {
533
- "name": "_setLoadedRelationship",
534
- "params": [
535
- "fieldName: string",
536
- "value: any"
537
- ],
538
- "returns": "void"
539
- },
540
- {
541
- "name": "claimRevision",
542
- "async": true,
543
- "params": [
544
- "expectedUpdatedAt: Date | string"
545
- ],
546
- "returns": "Promise"
547
- },
548
- {
549
- "name": "classifyConstraintError",
550
- "static": true,
551
- "params": [
552
- "message: string"
553
- ],
554
- "returns": "'unique' | 'not_null' | null"
555
- },
556
- {
557
- "name": "clearEmbeddings",
558
- "async": true,
559
- "returns": "Promise<void>"
560
- },
561
- {
562
- "name": "delete",
563
- "async": true,
564
- "returns": "Promise<void>"
565
- },
566
- {
567
- "name": "describe",
568
- "async": true,
569
- "params": [
570
- "options?: AiOperationOptions"
571
- ],
572
- "returns": "any"
573
- },
574
- {
575
- "name": "destroy",
576
- "returns": "void"
577
- },
578
- {
579
- "name": "do",
580
- "async": true,
581
- "params": [
582
- "instructions: string",
583
- "options?: AiOperationOptions"
584
- ],
585
- "returns": "any"
586
- },
587
- {
588
- "name": "executeToolCall",
589
- "async": true,
590
- "params": [
591
- "toolCall: ToolCall"
592
- ],
593
- "returns": "Promise<ToolCallResult>"
594
- },
595
- {
596
- "name": "forget",
597
- "async": true,
598
- "params": [
599
- "options: object"
600
- ],
601
- "returns": "Promise<void>"
602
- },
603
- {
604
- "name": "forgetScope",
605
- "async": true,
606
- "params": [
607
- "options: object"
608
- ],
609
- "returns": "Promise<number>"
610
- },
611
- {
612
- "name": "generateEmbeddings",
613
- "async": true,
614
- "params": [
615
- "options?: GenerateEmbeddingsOptions"
616
- ],
617
- "returns": "Promise<void>"
618
- },
619
- {
620
- "name": "getAiUsageSnapshot",
621
- "returns": "AiUsageSnapshot | undefined"
622
- },
623
- {
624
- "name": "getAvailableTools",
625
- "returns": "AITool[]"
626
- },
627
- {
628
- "name": "getEmbedding",
629
- "async": true,
630
- "params": [
631
- "fieldName: string",
632
- "model?: string"
633
- ],
634
- "returns": "Promise<number[] | null>"
635
- },
636
- {
637
- "name": "getFields",
638
- "async": true,
639
- "returns": "Promise<any>"
640
- },
641
- {
642
- "name": "getId",
643
- "async": true,
644
- "returns": "any"
645
- },
646
- {
647
- "name": "getRelated",
648
- "async": true,
649
- "params": [
650
- "fieldName: string",
651
- "opts?: LoadRelatedOptions"
652
- ],
653
- "returns": "Promise<any>"
654
- },
655
- {
656
- "name": "getSavedId",
657
- "async": true,
658
- "returns": "any"
659
- },
660
- {
661
- "name": "getSlug",
662
- "async": true,
663
- "returns": "any"
664
- },
665
- {
666
- "name": "hasStaleEmbeddings",
667
- "async": true,
668
- "returns": "Promise<boolean>"
669
- },
670
- {
671
- "name": "initialize",
672
- "async": true,
673
- "returns": "Promise"
674
- },
675
- {
676
- "name": "is",
677
- "async": true,
678
- "params": [
679
- "criteria: string",
680
- "options?: AiOperationOptions"
681
- ],
682
- "returns": "any"
683
- },
684
- {
685
- "name": "isRelatedLoaded",
686
- "params": [
687
- "fieldName: string"
688
- ],
689
- "returns": "boolean"
690
- },
691
- {
692
- "name": "isSaved",
693
- "async": true,
694
- "returns": "any"
695
- },
696
- {
697
- "name": "listAiUsage",
698
- "async": true,
699
- "params": [
700
- "options?: AiUsageListOptions"
701
- ],
702
- "returns": "Promise<SmrtAiUsageRecord[]>"
703
- },
704
- {
705
- "name": "loadDataFromDb",
706
- "async": true,
707
- "params": [
708
- "data: Record<string>"
709
- ],
710
- "returns": "any"
711
- },
712
- {
713
- "name": "loadFromId",
714
- "async": true,
715
- "returns": "any"
716
- },
717
- {
718
- "name": "loadFromSlug",
719
- "async": true,
720
- "returns": "any"
721
- },
722
- {
723
- "name": "loadRelated",
724
- "async": true,
725
- "params": [
726
- "fieldName: string",
727
- "opts?: LoadRelatedOptions"
728
- ],
729
- "returns": "Promise<any>"
730
- },
731
- {
732
- "name": "loadRelatedMany",
733
- "async": true,
734
- "params": [
735
- "fieldName: string",
736
- "opts?: LoadRelatedOptions"
737
- ],
738
- "returns": "Promise<any[]>"
739
- },
740
- {
741
- "name": "markAsPersisted",
742
- "returns": "void"
743
- },
744
- {
745
- "name": "recall",
746
- "async": true,
747
- "params": [
748
- "options: object"
749
- ],
750
- "returns": "Promise"
751
- },
752
- {
753
- "name": "recallAll",
754
- "async": true,
755
- "params": [
756
- "options?: object"
757
- ],
758
- "returns": "Promise<Map<string>>"
759
- },
760
- {
761
- "name": "remember",
762
- "async": true,
763
- "params": [
764
- "options: object"
765
- ],
766
- "returns": "Promise<void>"
767
- },
768
- {
769
- "name": "requireInsertOnSave",
770
- "returns": "void"
771
- },
772
- {
773
- "name": "resetAiUsage",
774
- "returns": "void"
775
- },
776
- {
777
- "name": "save",
778
- "async": true,
779
- "params": [
780
- "options?: SmrtSaveOptions"
781
- ],
782
- "returns": "any"
783
- },
784
- {
785
- "name": "summarizeAiUsage",
786
- "async": true,
787
- "params": [
788
- "options?: AiUsageSummaryOptions"
789
- ],
790
- "returns": "Promise<Record<string, AiUsageStats>>"
791
- },
792
- {
793
- "name": "toJSON",
794
- "returns": "any"
795
- },
796
- {
797
- "name": "toPlainObject",
798
- "returns": "Record<string>"
799
- },
800
- {
801
- "name": "toPublicJSON",
802
- "params": [
803
- "options?: PublicJsonOptions"
804
- ],
805
- "returns": "Record<string>"
806
- },
807
- {
808
- "name": "withDatabase",
809
- "async": true,
810
- "params": [
811
- "db: DatabaseInterface",
812
- "operation: Function"
813
- ],
814
- "returns": "Promise<T>"
815
- },
816
- {
817
- "name": "withTransaction",
818
- "async": true,
819
- "params": [
820
- "operation: Function"
821
- ],
822
- "returns": "Promise<T>"
823
- }
824
- ],
918
+ "methods": [],
825
919
  "tenant": {
826
920
  "scoped": true,
827
921
  "mode": "optional",
@@ -1028,65 +1122,13 @@
1028
1122
  ],
1029
1123
  "relationships": [],
1030
1124
  "methods": [
1031
- "_setLoadedRelationship",
1032
1125
  "addAsset",
1033
- "claimRevision",
1034
- "classifyConstraintError",
1035
- "clearEmbeddings",
1036
- "delete",
1037
- "describe",
1038
- "destroy",
1039
- "do",
1040
- "executeToolCall",
1041
- "forget",
1042
- "forgetScope",
1043
- "generateEmbeddings",
1044
- "getAiUsageSnapshot",
1045
1126
  "getAssets",
1046
- "getAvailableTools",
1047
- "getEmbedding",
1048
- "getFields",
1049
- "getId",
1050
- "getRelated",
1051
- "getSavedId",
1052
- "getSlug",
1053
1127
  "getSpecification",
1054
- "hasStaleEmbeddings",
1055
- "initialize",
1056
- "is",
1057
- "isRelatedLoaded",
1058
- "isSaved",
1059
- "listAiUsage",
1060
- "loadDataFromDb",
1061
- "loadFromId",
1062
- "loadFromSlug",
1063
- "loadRelated",
1064
- "loadRelatedMany",
1065
- "markAsPersisted",
1066
- "recall",
1067
- "recallAll",
1068
- "remember",
1069
1128
  "removeAsset",
1070
- "requireInsertOnSave",
1071
- "resetAiUsage",
1072
- "save",
1073
- "summarizeAiUsage",
1074
- "toJSON",
1075
- "toPlainObject",
1076
- "toPublicJSON",
1077
- "updateSpecification",
1078
- "withDatabase",
1079
- "withTransaction"
1129
+ "updateSpecification"
1080
1130
  ],
1081
1131
  "methodSignatures": [
1082
- {
1083
- "name": "_setLoadedRelationship",
1084
- "params": [
1085
- "fieldName: string",
1086
- "value: any"
1087
- ],
1088
- "returns": "void"
1089
- },
1090
1132
  {
1091
1133
  "name": "addAsset",
1092
1134
  "async": true,
@@ -1098,322 +1140,38 @@
1098
1140
  "returns": "Promise<void>"
1099
1141
  },
1100
1142
  {
1101
- "name": "claimRevision",
1102
- "async": true,
1103
- "params": [
1104
- "expectedUpdatedAt: Date | string"
1105
- ],
1106
- "returns": "Promise"
1107
- },
1108
- {
1109
- "name": "classifyConstraintError",
1110
- "static": true,
1111
- "params": [
1112
- "message: string"
1113
- ],
1114
- "returns": "'unique' | 'not_null' | null"
1115
- },
1116
- {
1117
- "name": "clearEmbeddings",
1118
- "async": true,
1119
- "returns": "Promise<void>"
1120
- },
1121
- {
1122
- "name": "delete",
1123
- "async": true,
1124
- "returns": "Promise<void>"
1125
- },
1126
- {
1127
- "name": "describe",
1128
- "async": true,
1129
- "params": [
1130
- "options?: AiOperationOptions"
1131
- ],
1132
- "returns": "any"
1133
- },
1134
- {
1135
- "name": "destroy",
1136
- "returns": "void"
1137
- },
1138
- {
1139
- "name": "do",
1140
- "async": true,
1141
- "params": [
1142
- "instructions: string",
1143
- "options?: AiOperationOptions"
1144
- ],
1145
- "returns": "any"
1146
- },
1147
- {
1148
- "name": "executeToolCall",
1149
- "async": true,
1150
- "params": [
1151
- "toolCall: ToolCall"
1152
- ],
1153
- "returns": "Promise<ToolCallResult>"
1154
- },
1155
- {
1156
- "name": "forget",
1157
- "async": true,
1158
- "params": [
1159
- "options: object"
1160
- ],
1161
- "returns": "Promise<void>"
1162
- },
1163
- {
1164
- "name": "forgetScope",
1165
- "async": true,
1166
- "params": [
1167
- "options: object"
1168
- ],
1169
- "returns": "Promise<number>"
1170
- },
1171
- {
1172
- "name": "generateEmbeddings",
1173
- "async": true,
1174
- "params": [
1175
- "options?: GenerateEmbeddingsOptions"
1176
- ],
1177
- "returns": "Promise<void>"
1178
- },
1179
- {
1180
- "name": "getAiUsageSnapshot",
1181
- "returns": "AiUsageSnapshot | undefined"
1182
- },
1183
- {
1184
- "name": "getAssets",
1185
- "async": true,
1186
- "params": [
1187
- "relationship?: string"
1188
- ],
1189
- "returns": "Promise<Asset[]>"
1190
- },
1191
- {
1192
- "name": "getAvailableTools",
1193
- "returns": "AITool[]"
1194
- },
1195
- {
1196
- "name": "getEmbedding",
1197
- "async": true,
1198
- "params": [
1199
- "fieldName: string",
1200
- "model?: string"
1201
- ],
1202
- "returns": "Promise<number[] | null>"
1203
- },
1204
- {
1205
- "name": "getFields",
1206
- "async": true,
1207
- "returns": "Promise<any>"
1208
- },
1209
- {
1210
- "name": "getId",
1211
- "async": true,
1212
- "returns": "any"
1213
- },
1214
- {
1215
- "name": "getRelated",
1216
- "async": true,
1217
- "params": [
1218
- "fieldName: string",
1219
- "opts?: LoadRelatedOptions"
1220
- ],
1221
- "returns": "Promise<any>"
1222
- },
1223
- {
1224
- "name": "getSavedId",
1225
- "async": true,
1226
- "returns": "any"
1227
- },
1228
- {
1229
- "name": "getSlug",
1230
- "async": true,
1231
- "returns": "any"
1232
- },
1233
- {
1234
- "name": "getSpecification",
1235
- "async": true,
1236
- "params": [
1237
- "key: string"
1238
- ],
1239
- "returns": "Promise"
1240
- },
1241
- {
1242
- "name": "hasStaleEmbeddings",
1243
- "async": true,
1244
- "returns": "Promise<boolean>"
1245
- },
1246
- {
1247
- "name": "initialize",
1248
- "async": true,
1249
- "returns": "Promise"
1250
- },
1251
- {
1252
- "name": "is",
1253
- "async": true,
1254
- "params": [
1255
- "criteria: string",
1256
- "options?: AiOperationOptions"
1257
- ],
1258
- "returns": "any"
1259
- },
1260
- {
1261
- "name": "isRelatedLoaded",
1262
- "params": [
1263
- "fieldName: string"
1264
- ],
1265
- "returns": "boolean"
1266
- },
1267
- {
1268
- "name": "isSaved",
1269
- "async": true,
1270
- "returns": "any"
1271
- },
1272
- {
1273
- "name": "listAiUsage",
1274
- "async": true,
1275
- "params": [
1276
- "options?: AiUsageListOptions"
1277
- ],
1278
- "returns": "Promise<SmrtAiUsageRecord[]>"
1279
- },
1280
- {
1281
- "name": "loadDataFromDb",
1282
- "async": true,
1283
- "params": [
1284
- "data: Record<string>"
1285
- ],
1286
- "returns": "any"
1287
- },
1288
- {
1289
- "name": "loadFromId",
1290
- "async": true,
1291
- "returns": "any"
1292
- },
1293
- {
1294
- "name": "loadFromSlug",
1295
- "async": true,
1296
- "returns": "any"
1297
- },
1298
- {
1299
- "name": "loadRelated",
1300
- "async": true,
1301
- "params": [
1302
- "fieldName: string",
1303
- "opts?: LoadRelatedOptions"
1304
- ],
1305
- "returns": "Promise<any>"
1306
- },
1307
- {
1308
- "name": "loadRelatedMany",
1309
- "async": true,
1310
- "params": [
1311
- "fieldName: string",
1312
- "opts?: LoadRelatedOptions"
1313
- ],
1314
- "returns": "Promise<any[]>"
1315
- },
1316
- {
1317
- "name": "markAsPersisted",
1318
- "returns": "void"
1319
- },
1320
- {
1321
- "name": "recall",
1322
- "async": true,
1323
- "params": [
1324
- "options: object"
1325
- ],
1326
- "returns": "Promise"
1327
- },
1328
- {
1329
- "name": "recallAll",
1330
- "async": true,
1331
- "params": [
1332
- "options?: object"
1333
- ],
1334
- "returns": "Promise<Map<string>>"
1335
- },
1336
- {
1337
- "name": "remember",
1338
- "async": true,
1339
- "params": [
1340
- "options: object"
1341
- ],
1342
- "returns": "Promise<void>"
1343
- },
1344
- {
1345
- "name": "removeAsset",
1346
- "async": true,
1347
- "params": [
1348
- "assetId: string",
1349
- "relationship?: string"
1350
- ],
1351
- "returns": "Promise<void>"
1352
- },
1353
- {
1354
- "name": "requireInsertOnSave",
1355
- "returns": "void"
1356
- },
1357
- {
1358
- "name": "resetAiUsage",
1359
- "returns": "void"
1360
- },
1361
- {
1362
- "name": "save",
1363
- "async": true,
1364
- "params": [
1365
- "options?: SmrtSaveOptions"
1366
- ],
1367
- "returns": "any"
1368
- },
1369
- {
1370
- "name": "summarizeAiUsage",
1371
- "async": true,
1372
- "params": [
1373
- "options?: AiUsageSummaryOptions"
1374
- ],
1375
- "returns": "Promise<Record<string, AiUsageStats>>"
1376
- },
1377
- {
1378
- "name": "toJSON",
1379
- "returns": "any"
1380
- },
1381
- {
1382
- "name": "toPlainObject",
1383
- "returns": "Record<string>"
1384
- },
1385
- {
1386
- "name": "toPublicJSON",
1143
+ "name": "getAssets",
1144
+ "async": true,
1387
1145
  "params": [
1388
- "options?: PublicJsonOptions"
1146
+ "relationship?: string"
1389
1147
  ],
1390
- "returns": "Record<string>"
1148
+ "returns": "Promise<Asset[]>"
1391
1149
  },
1392
1150
  {
1393
- "name": "updateSpecification",
1151
+ "name": "getSpecification",
1394
1152
  "async": true,
1395
1153
  "params": [
1396
- "key: string",
1397
- "value: any"
1154
+ "key: string"
1398
1155
  ],
1399
- "returns": "Promise<void>"
1156
+ "returns": "Promise"
1400
1157
  },
1401
1158
  {
1402
- "name": "withDatabase",
1159
+ "name": "removeAsset",
1403
1160
  "async": true,
1404
1161
  "params": [
1405
- "db: DatabaseInterface",
1406
- "operation: Function"
1162
+ "assetId: string",
1163
+ "relationship?: string"
1407
1164
  ],
1408
- "returns": "Promise<T>"
1165
+ "returns": "Promise<void>"
1409
1166
  },
1410
1167
  {
1411
- "name": "withTransaction",
1168
+ "name": "updateSpecification",
1412
1169
  "async": true,
1413
1170
  "params": [
1414
- "operation: Function"
1171
+ "key: string",
1172
+ "value: any"
1415
1173
  ],
1416
- "returns": "Promise<T>"
1174
+ "returns": "Promise<void>"
1417
1175
  }
1418
1176
  ],
1419
1177
  "tenant": {
@@ -1485,6 +1243,36 @@
1485
1243
  "operation": "delete",
1486
1244
  "objectName": "@happyvertical/smrt-products:Material"
1487
1245
  },
1246
+ {
1247
+ "kind": "cli",
1248
+ "name": "material_getSpecification",
1249
+ "operation": "getSpecification",
1250
+ "objectName": "@happyvertical/smrt-products:Material"
1251
+ },
1252
+ {
1253
+ "kind": "cli",
1254
+ "name": "material_updateSpecification",
1255
+ "operation": "updateSpecification",
1256
+ "objectName": "@happyvertical/smrt-products:Material"
1257
+ },
1258
+ {
1259
+ "kind": "cli",
1260
+ "name": "material_getAssets",
1261
+ "operation": "getAssets",
1262
+ "objectName": "@happyvertical/smrt-products:Material"
1263
+ },
1264
+ {
1265
+ "kind": "cli",
1266
+ "name": "material_addAsset",
1267
+ "operation": "addAsset",
1268
+ "objectName": "@happyvertical/smrt-products:Material"
1269
+ },
1270
+ {
1271
+ "kind": "cli",
1272
+ "name": "material_removeAsset",
1273
+ "operation": "removeAsset",
1274
+ "objectName": "@happyvertical/smrt-products:Material"
1275
+ },
1488
1276
  {
1489
1277
  "kind": "mcp",
1490
1278
  "name": "material_list",
@@ -1597,65 +1385,13 @@
1597
1385
  ],
1598
1386
  "relationships": [],
1599
1387
  "methods": [
1600
- "_setLoadedRelationship",
1601
1388
  "addAsset",
1602
- "claimRevision",
1603
- "classifyConstraintError",
1604
- "clearEmbeddings",
1605
- "delete",
1606
- "describe",
1607
- "destroy",
1608
- "do",
1609
- "executeToolCall",
1610
- "forget",
1611
- "forgetScope",
1612
- "generateEmbeddings",
1613
- "getAiUsageSnapshot",
1614
1389
  "getAssets",
1615
- "getAvailableTools",
1616
- "getEmbedding",
1617
- "getFields",
1618
- "getId",
1619
- "getRelated",
1620
- "getSavedId",
1621
- "getSlug",
1622
1390
  "getSpecification",
1623
- "hasStaleEmbeddings",
1624
- "initialize",
1625
- "is",
1626
- "isRelatedLoaded",
1627
- "isSaved",
1628
- "listAiUsage",
1629
- "loadDataFromDb",
1630
- "loadFromId",
1631
- "loadFromSlug",
1632
- "loadRelated",
1633
- "loadRelatedMany",
1634
- "markAsPersisted",
1635
- "recall",
1636
- "recallAll",
1637
- "remember",
1638
1391
  "removeAsset",
1639
- "requireInsertOnSave",
1640
- "resetAiUsage",
1641
- "save",
1642
- "summarizeAiUsage",
1643
- "toJSON",
1644
- "toPlainObject",
1645
- "toPublicJSON",
1646
- "updateSpecification",
1647
- "withDatabase",
1648
- "withTransaction"
1392
+ "updateSpecification"
1649
1393
  ],
1650
1394
  "methodSignatures": [
1651
- {
1652
- "name": "_setLoadedRelationship",
1653
- "params": [
1654
- "fieldName: string",
1655
- "value: any"
1656
- ],
1657
- "returns": "void"
1658
- },
1659
1395
  {
1660
1396
  "name": "addAsset",
1661
1397
  "async": true,
@@ -1666,89 +1402,6 @@
1666
1402
  ],
1667
1403
  "returns": "Promise<void>"
1668
1404
  },
1669
- {
1670
- "name": "claimRevision",
1671
- "async": true,
1672
- "params": [
1673
- "expectedUpdatedAt: Date | string"
1674
- ],
1675
- "returns": "Promise"
1676
- },
1677
- {
1678
- "name": "classifyConstraintError",
1679
- "static": true,
1680
- "params": [
1681
- "message: string"
1682
- ],
1683
- "returns": "'unique' | 'not_null' | null"
1684
- },
1685
- {
1686
- "name": "clearEmbeddings",
1687
- "async": true,
1688
- "returns": "Promise<void>"
1689
- },
1690
- {
1691
- "name": "delete",
1692
- "async": true,
1693
- "returns": "Promise<void>"
1694
- },
1695
- {
1696
- "name": "describe",
1697
- "async": true,
1698
- "params": [
1699
- "options?: AiOperationOptions"
1700
- ],
1701
- "returns": "any"
1702
- },
1703
- {
1704
- "name": "destroy",
1705
- "returns": "void"
1706
- },
1707
- {
1708
- "name": "do",
1709
- "async": true,
1710
- "params": [
1711
- "instructions: string",
1712
- "options?: AiOperationOptions"
1713
- ],
1714
- "returns": "any"
1715
- },
1716
- {
1717
- "name": "executeToolCall",
1718
- "async": true,
1719
- "params": [
1720
- "toolCall: ToolCall"
1721
- ],
1722
- "returns": "Promise<ToolCallResult>"
1723
- },
1724
- {
1725
- "name": "forget",
1726
- "async": true,
1727
- "params": [
1728
- "options: object"
1729
- ],
1730
- "returns": "Promise<void>"
1731
- },
1732
- {
1733
- "name": "forgetScope",
1734
- "async": true,
1735
- "params": [
1736
- "options: object"
1737
- ],
1738
- "returns": "Promise<number>"
1739
- },
1740
- {
1741
- "name": "generateEmbeddings",
1742
- "async": true,
1743
- "params": [
1744
- "options?: GenerateEmbeddingsOptions"
1745
- ],
1746
- "returns": "Promise<void>"
1747
- },
1748
- {
1749
- "name": "getAiUsageSnapshot",
1750
- "returns": "AiUsageSnapshot | undefined"
1751
- },
1752
1405
  {
1753
1406
  "name": "getAssets",
1754
1407
  "async": true,
@@ -1757,48 +1410,6 @@
1757
1410
  ],
1758
1411
  "returns": "Promise<Asset[]>"
1759
1412
  },
1760
- {
1761
- "name": "getAvailableTools",
1762
- "returns": "AITool[]"
1763
- },
1764
- {
1765
- "name": "getEmbedding",
1766
- "async": true,
1767
- "params": [
1768
- "fieldName: string",
1769
- "model?: string"
1770
- ],
1771
- "returns": "Promise<number[] | null>"
1772
- },
1773
- {
1774
- "name": "getFields",
1775
- "async": true,
1776
- "returns": "Promise<any>"
1777
- },
1778
- {
1779
- "name": "getId",
1780
- "async": true,
1781
- "returns": "any"
1782
- },
1783
- {
1784
- "name": "getRelated",
1785
- "async": true,
1786
- "params": [
1787
- "fieldName: string",
1788
- "opts?: LoadRelatedOptions"
1789
- ],
1790
- "returns": "Promise<any>"
1791
- },
1792
- {
1793
- "name": "getSavedId",
1794
- "async": true,
1795
- "returns": "any"
1796
- },
1797
- {
1798
- "name": "getSlug",
1799
- "async": true,
1800
- "returns": "any"
1801
- },
1802
1413
  {
1803
1414
  "name": "getSpecification",
1804
1415
  "async": true,
@@ -1807,109 +1418,6 @@
1807
1418
  ],
1808
1419
  "returns": "Promise"
1809
1420
  },
1810
- {
1811
- "name": "hasStaleEmbeddings",
1812
- "async": true,
1813
- "returns": "Promise<boolean>"
1814
- },
1815
- {
1816
- "name": "initialize",
1817
- "async": true,
1818
- "returns": "Promise"
1819
- },
1820
- {
1821
- "name": "is",
1822
- "async": true,
1823
- "params": [
1824
- "criteria: string",
1825
- "options?: AiOperationOptions"
1826
- ],
1827
- "returns": "any"
1828
- },
1829
- {
1830
- "name": "isRelatedLoaded",
1831
- "params": [
1832
- "fieldName: string"
1833
- ],
1834
- "returns": "boolean"
1835
- },
1836
- {
1837
- "name": "isSaved",
1838
- "async": true,
1839
- "returns": "any"
1840
- },
1841
- {
1842
- "name": "listAiUsage",
1843
- "async": true,
1844
- "params": [
1845
- "options?: AiUsageListOptions"
1846
- ],
1847
- "returns": "Promise<SmrtAiUsageRecord[]>"
1848
- },
1849
- {
1850
- "name": "loadDataFromDb",
1851
- "async": true,
1852
- "params": [
1853
- "data: Record<string>"
1854
- ],
1855
- "returns": "any"
1856
- },
1857
- {
1858
- "name": "loadFromId",
1859
- "async": true,
1860
- "returns": "any"
1861
- },
1862
- {
1863
- "name": "loadFromSlug",
1864
- "async": true,
1865
- "returns": "any"
1866
- },
1867
- {
1868
- "name": "loadRelated",
1869
- "async": true,
1870
- "params": [
1871
- "fieldName: string",
1872
- "opts?: LoadRelatedOptions"
1873
- ],
1874
- "returns": "Promise<any>"
1875
- },
1876
- {
1877
- "name": "loadRelatedMany",
1878
- "async": true,
1879
- "params": [
1880
- "fieldName: string",
1881
- "opts?: LoadRelatedOptions"
1882
- ],
1883
- "returns": "Promise<any[]>"
1884
- },
1885
- {
1886
- "name": "markAsPersisted",
1887
- "returns": "void"
1888
- },
1889
- {
1890
- "name": "recall",
1891
- "async": true,
1892
- "params": [
1893
- "options: object"
1894
- ],
1895
- "returns": "Promise"
1896
- },
1897
- {
1898
- "name": "recallAll",
1899
- "async": true,
1900
- "params": [
1901
- "options?: object"
1902
- ],
1903
- "returns": "Promise<Map<string>>"
1904
- },
1905
- {
1906
- "name": "remember",
1907
- "async": true,
1908
- "params": [
1909
- "options: object"
1910
- ],
1911
- "returns": "Promise<void>"
1912
- },
1913
1421
  {
1914
1422
  "name": "removeAsset",
1915
1423
  "async": true,
@@ -1919,45 +1427,6 @@
1919
1427
  ],
1920
1428
  "returns": "Promise<void>"
1921
1429
  },
1922
- {
1923
- "name": "requireInsertOnSave",
1924
- "returns": "void"
1925
- },
1926
- {
1927
- "name": "resetAiUsage",
1928
- "returns": "void"
1929
- },
1930
- {
1931
- "name": "save",
1932
- "async": true,
1933
- "params": [
1934
- "options?: SmrtSaveOptions"
1935
- ],
1936
- "returns": "any"
1937
- },
1938
- {
1939
- "name": "summarizeAiUsage",
1940
- "async": true,
1941
- "params": [
1942
- "options?: AiUsageSummaryOptions"
1943
- ],
1944
- "returns": "Promise<Record<string, AiUsageStats>>"
1945
- },
1946
- {
1947
- "name": "toJSON",
1948
- "returns": "any"
1949
- },
1950
- {
1951
- "name": "toPlainObject",
1952
- "returns": "Record<string>"
1953
- },
1954
- {
1955
- "name": "toPublicJSON",
1956
- "params": [
1957
- "options?: PublicJsonOptions"
1958
- ],
1959
- "returns": "Record<string>"
1960
- },
1961
1430
  {
1962
1431
  "name": "updateSpecification",
1963
1432
  "async": true,
@@ -1966,23 +1435,6 @@
1966
1435
  "value: any"
1967
1436
  ],
1968
1437
  "returns": "Promise<void>"
1969
- },
1970
- {
1971
- "name": "withDatabase",
1972
- "async": true,
1973
- "params": [
1974
- "db: DatabaseInterface",
1975
- "operation: Function"
1976
- ],
1977
- "returns": "Promise<T>"
1978
- },
1979
- {
1980
- "name": "withTransaction",
1981
- "async": true,
1982
- "params": [
1983
- "operation: Function"
1984
- ],
1985
- "returns": "Promise<T>"
1986
1438
  }
1987
1439
  ],
1988
1440
  "tenant": {
@@ -2060,6 +1512,36 @@
2060
1512
  "operation": "delete",
2061
1513
  "objectName": "@happyvertical/smrt-products:Product"
2062
1514
  },
1515
+ {
1516
+ "kind": "cli",
1517
+ "name": "product_getSpecification",
1518
+ "operation": "getSpecification",
1519
+ "objectName": "@happyvertical/smrt-products:Product"
1520
+ },
1521
+ {
1522
+ "kind": "cli",
1523
+ "name": "product_updateSpecification",
1524
+ "operation": "updateSpecification",
1525
+ "objectName": "@happyvertical/smrt-products:Product"
1526
+ },
1527
+ {
1528
+ "kind": "cli",
1529
+ "name": "product_getAssets",
1530
+ "operation": "getAssets",
1531
+ "objectName": "@happyvertical/smrt-products:Product"
1532
+ },
1533
+ {
1534
+ "kind": "cli",
1535
+ "name": "product_addAsset",
1536
+ "operation": "addAsset",
1537
+ "objectName": "@happyvertical/smrt-products:Product"
1538
+ },
1539
+ {
1540
+ "kind": "cli",
1541
+ "name": "product_removeAsset",
1542
+ "operation": "removeAsset",
1543
+ "objectName": "@happyvertical/smrt-products:Product"
1544
+ },
2063
1545
  {
2064
1546
  "kind": "mcp",
2065
1547
  "name": "product_list",
@@ -2295,8 +1777,20 @@
2295
1777
  },
2296
1778
  {
2297
1779
  "kind": "cli",
2298
- "name": "productvariant_delete",
2299
- "operation": "delete",
1780
+ "name": "productvariant_delete",
1781
+ "operation": "delete",
1782
+ "objectName": "@happyvertical/smrt-products:ProductVariant"
1783
+ },
1784
+ {
1785
+ "kind": "cli",
1786
+ "name": "productvariant_getValues",
1787
+ "operation": "getValues",
1788
+ "objectName": "@happyvertical/smrt-products:ProductVariant"
1789
+ },
1790
+ {
1791
+ "kind": "cli",
1792
+ "name": "productvariant_setValues",
1793
+ "operation": "setValues",
2300
1794
  "objectName": "@happyvertical/smrt-products:ProductVariant"
2301
1795
  },
2302
1796
  {
@@ -2478,6 +1972,18 @@
2478
1972
  "operation": "delete",
2479
1973
  "objectName": "@happyvertical/smrt-products:Sku"
2480
1974
  },
1975
+ {
1976
+ "kind": "cli",
1977
+ "name": "sku_getAttributes",
1978
+ "operation": "getAttributes",
1979
+ "objectName": "@happyvertical/smrt-products:Sku"
1980
+ },
1981
+ {
1982
+ "kind": "cli",
1983
+ "name": "sku_setAttributes",
1984
+ "operation": "setAttributes",
1985
+ "objectName": "@happyvertical/smrt-products:Sku"
1986
+ },
2481
1987
  {
2482
1988
  "kind": "mcp",
2483
1989
  "name": "sku_list",
@@ -2499,6 +2005,386 @@
2499
2005
  }
2500
2006
  ],
2501
2007
  "surfaces": [
2008
+ {
2009
+ "kind": "api",
2010
+ "name": "categories.getRootCategories",
2011
+ "operation": "getRootCategories",
2012
+ "objectName": "@happyvertical/smrt-products:CategoryCollection",
2013
+ "path": "/categories/getRootCategories",
2014
+ "method": "POST"
2015
+ },
2016
+ {
2017
+ "kind": "cli",
2018
+ "name": "categorycollection_getRootCategories",
2019
+ "operation": "getRootCategories",
2020
+ "objectName": "@happyvertical/smrt-products:CategoryCollection"
2021
+ },
2022
+ {
2023
+ "kind": "mcp",
2024
+ "name": "categorycollection_getrootcategories",
2025
+ "operation": "getRootCategories",
2026
+ "objectName": "@happyvertical/smrt-products:CategoryCollection"
2027
+ },
2028
+ {
2029
+ "kind": "api",
2030
+ "name": "products.findByManufacturer",
2031
+ "operation": "findByManufacturer",
2032
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
2033
+ "path": "/products/findByManufacturer",
2034
+ "method": "POST"
2035
+ },
2036
+ {
2037
+ "kind": "api",
2038
+ "name": "products.findInStock",
2039
+ "operation": "findInStock",
2040
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
2041
+ "path": "/products/findInStock",
2042
+ "method": "POST"
2043
+ },
2044
+ {
2045
+ "kind": "api",
2046
+ "name": "products.getAssets",
2047
+ "operation": "getAssets",
2048
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
2049
+ "path": "/products/getAssets",
2050
+ "method": "POST"
2051
+ },
2052
+ {
2053
+ "kind": "api",
2054
+ "name": "products.addAsset",
2055
+ "operation": "addAsset",
2056
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
2057
+ "path": "/products/addAsset",
2058
+ "method": "POST"
2059
+ },
2060
+ {
2061
+ "kind": "api",
2062
+ "name": "products.removeAsset",
2063
+ "operation": "removeAsset",
2064
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
2065
+ "path": "/products/removeAsset",
2066
+ "method": "POST"
2067
+ },
2068
+ {
2069
+ "kind": "api",
2070
+ "name": "products.findByKind",
2071
+ "operation": "findByKind",
2072
+ "objectName": "@happyvertical/smrt-products:MaterialCollection",
2073
+ "path": "/products/findByKind",
2074
+ "method": "POST"
2075
+ },
2076
+ {
2077
+ "kind": "cli",
2078
+ "name": "materialcollection_findByManufacturer",
2079
+ "operation": "findByManufacturer",
2080
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2081
+ },
2082
+ {
2083
+ "kind": "cli",
2084
+ "name": "materialcollection_findInStock",
2085
+ "operation": "findInStock",
2086
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2087
+ },
2088
+ {
2089
+ "kind": "cli",
2090
+ "name": "materialcollection_getAssets",
2091
+ "operation": "getAssets",
2092
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2093
+ },
2094
+ {
2095
+ "kind": "cli",
2096
+ "name": "materialcollection_addAsset",
2097
+ "operation": "addAsset",
2098
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2099
+ },
2100
+ {
2101
+ "kind": "cli",
2102
+ "name": "materialcollection_removeAsset",
2103
+ "operation": "removeAsset",
2104
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2105
+ },
2106
+ {
2107
+ "kind": "cli",
2108
+ "name": "materialcollection_findByKind",
2109
+ "operation": "findByKind",
2110
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2111
+ },
2112
+ {
2113
+ "kind": "mcp",
2114
+ "name": "materialcollection_findbymanufacturer",
2115
+ "operation": "findByManufacturer",
2116
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2117
+ },
2118
+ {
2119
+ "kind": "mcp",
2120
+ "name": "materialcollection_findinstock",
2121
+ "operation": "findInStock",
2122
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2123
+ },
2124
+ {
2125
+ "kind": "mcp",
2126
+ "name": "materialcollection_getassets",
2127
+ "operation": "getAssets",
2128
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2129
+ },
2130
+ {
2131
+ "kind": "mcp",
2132
+ "name": "materialcollection_addasset",
2133
+ "operation": "addAsset",
2134
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2135
+ },
2136
+ {
2137
+ "kind": "mcp",
2138
+ "name": "materialcollection_removeasset",
2139
+ "operation": "removeAsset",
2140
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2141
+ },
2142
+ {
2143
+ "kind": "mcp",
2144
+ "name": "materialcollection_findbykind",
2145
+ "operation": "findByKind",
2146
+ "objectName": "@happyvertical/smrt-products:MaterialCollection"
2147
+ },
2148
+ {
2149
+ "kind": "api",
2150
+ "name": "products.findByManufacturer",
2151
+ "operation": "findByManufacturer",
2152
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
2153
+ "path": "/products/findByManufacturer",
2154
+ "method": "POST"
2155
+ },
2156
+ {
2157
+ "kind": "api",
2158
+ "name": "products.findInStock",
2159
+ "operation": "findInStock",
2160
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
2161
+ "path": "/products/findInStock",
2162
+ "method": "POST"
2163
+ },
2164
+ {
2165
+ "kind": "api",
2166
+ "name": "products.getAssets",
2167
+ "operation": "getAssets",
2168
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
2169
+ "path": "/products/getAssets",
2170
+ "method": "POST"
2171
+ },
2172
+ {
2173
+ "kind": "api",
2174
+ "name": "products.addAsset",
2175
+ "operation": "addAsset",
2176
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
2177
+ "path": "/products/addAsset",
2178
+ "method": "POST"
2179
+ },
2180
+ {
2181
+ "kind": "api",
2182
+ "name": "products.removeAsset",
2183
+ "operation": "removeAsset",
2184
+ "objectName": "@happyvertical/smrt-products:ProductCollection",
2185
+ "path": "/products/removeAsset",
2186
+ "method": "POST"
2187
+ },
2188
+ {
2189
+ "kind": "cli",
2190
+ "name": "productcollection_findByManufacturer",
2191
+ "operation": "findByManufacturer",
2192
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2193
+ },
2194
+ {
2195
+ "kind": "cli",
2196
+ "name": "productcollection_findInStock",
2197
+ "operation": "findInStock",
2198
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2199
+ },
2200
+ {
2201
+ "kind": "cli",
2202
+ "name": "productcollection_getAssets",
2203
+ "operation": "getAssets",
2204
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2205
+ },
2206
+ {
2207
+ "kind": "cli",
2208
+ "name": "productcollection_addAsset",
2209
+ "operation": "addAsset",
2210
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2211
+ },
2212
+ {
2213
+ "kind": "cli",
2214
+ "name": "productcollection_removeAsset",
2215
+ "operation": "removeAsset",
2216
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2217
+ },
2218
+ {
2219
+ "kind": "mcp",
2220
+ "name": "productcollection_findbymanufacturer",
2221
+ "operation": "findByManufacturer",
2222
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2223
+ },
2224
+ {
2225
+ "kind": "mcp",
2226
+ "name": "productcollection_findinstock",
2227
+ "operation": "findInStock",
2228
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2229
+ },
2230
+ {
2231
+ "kind": "mcp",
2232
+ "name": "productcollection_getassets",
2233
+ "operation": "getAssets",
2234
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2235
+ },
2236
+ {
2237
+ "kind": "mcp",
2238
+ "name": "productcollection_addasset",
2239
+ "operation": "addAsset",
2240
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2241
+ },
2242
+ {
2243
+ "kind": "mcp",
2244
+ "name": "productcollection_removeasset",
2245
+ "operation": "removeAsset",
2246
+ "objectName": "@happyvertical/smrt-products:ProductCollection"
2247
+ },
2248
+ {
2249
+ "kind": "api",
2250
+ "name": "productvariants.findForProduct",
2251
+ "operation": "findForProduct",
2252
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection",
2253
+ "path": "/productvariants/findForProduct",
2254
+ "method": "POST"
2255
+ },
2256
+ {
2257
+ "kind": "api",
2258
+ "name": "productvariants.findAxis",
2259
+ "operation": "findAxis",
2260
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection",
2261
+ "path": "/productvariants/findAxis",
2262
+ "method": "POST"
2263
+ },
2264
+ {
2265
+ "kind": "cli",
2266
+ "name": "productvariantcollection_findForProduct",
2267
+ "operation": "findForProduct",
2268
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
2269
+ },
2270
+ {
2271
+ "kind": "cli",
2272
+ "name": "productvariantcollection_findAxis",
2273
+ "operation": "findAxis",
2274
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
2275
+ },
2276
+ {
2277
+ "kind": "mcp",
2278
+ "name": "productvariantcollection_findforproduct",
2279
+ "operation": "findForProduct",
2280
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
2281
+ },
2282
+ {
2283
+ "kind": "mcp",
2284
+ "name": "productvariantcollection_findaxis",
2285
+ "operation": "findAxis",
2286
+ "objectName": "@happyvertical/smrt-products:ProductVariantCollection"
2287
+ },
2288
+ {
2289
+ "kind": "api",
2290
+ "name": "skus.findByCode",
2291
+ "operation": "findByCode",
2292
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
2293
+ "path": "/skus/findByCode",
2294
+ "method": "POST"
2295
+ },
2296
+ {
2297
+ "kind": "api",
2298
+ "name": "skus.findByBarcode",
2299
+ "operation": "findByBarcode",
2300
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
2301
+ "path": "/skus/findByBarcode",
2302
+ "method": "POST"
2303
+ },
2304
+ {
2305
+ "kind": "api",
2306
+ "name": "skus.findByProduct",
2307
+ "operation": "findByProduct",
2308
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
2309
+ "path": "/skus/findByProduct",
2310
+ "method": "POST"
2311
+ },
2312
+ {
2313
+ "kind": "api",
2314
+ "name": "skus.findByParent",
2315
+ "operation": "findByParent",
2316
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
2317
+ "path": "/skus/findByParent",
2318
+ "method": "POST"
2319
+ },
2320
+ {
2321
+ "kind": "api",
2322
+ "name": "skus.findActive",
2323
+ "operation": "findActive",
2324
+ "objectName": "@happyvertical/smrt-products:SkuCollection",
2325
+ "path": "/skus/findActive",
2326
+ "method": "POST"
2327
+ },
2328
+ {
2329
+ "kind": "cli",
2330
+ "name": "skucollection_findByCode",
2331
+ "operation": "findByCode",
2332
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2333
+ },
2334
+ {
2335
+ "kind": "cli",
2336
+ "name": "skucollection_findByBarcode",
2337
+ "operation": "findByBarcode",
2338
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2339
+ },
2340
+ {
2341
+ "kind": "cli",
2342
+ "name": "skucollection_findByProduct",
2343
+ "operation": "findByProduct",
2344
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2345
+ },
2346
+ {
2347
+ "kind": "cli",
2348
+ "name": "skucollection_findByParent",
2349
+ "operation": "findByParent",
2350
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2351
+ },
2352
+ {
2353
+ "kind": "cli",
2354
+ "name": "skucollection_findActive",
2355
+ "operation": "findActive",
2356
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2357
+ },
2358
+ {
2359
+ "kind": "mcp",
2360
+ "name": "skucollection_findbycode",
2361
+ "operation": "findByCode",
2362
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2363
+ },
2364
+ {
2365
+ "kind": "mcp",
2366
+ "name": "skucollection_findbybarcode",
2367
+ "operation": "findByBarcode",
2368
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2369
+ },
2370
+ {
2371
+ "kind": "mcp",
2372
+ "name": "skucollection_findbyproduct",
2373
+ "operation": "findByProduct",
2374
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2375
+ },
2376
+ {
2377
+ "kind": "mcp",
2378
+ "name": "skucollection_findbyparent",
2379
+ "operation": "findByParent",
2380
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2381
+ },
2382
+ {
2383
+ "kind": "mcp",
2384
+ "name": "skucollection_findactive",
2385
+ "operation": "findActive",
2386
+ "objectName": "@happyvertical/smrt-products:SkuCollection"
2387
+ },
2502
2388
  {
2503
2389
  "kind": "api",
2504
2390
  "name": "categories.list",
@@ -2635,6 +2521,36 @@
2635
2521
  "operation": "delete",
2636
2522
  "objectName": "@happyvertical/smrt-products:Material"
2637
2523
  },
2524
+ {
2525
+ "kind": "cli",
2526
+ "name": "material_getSpecification",
2527
+ "operation": "getSpecification",
2528
+ "objectName": "@happyvertical/smrt-products:Material"
2529
+ },
2530
+ {
2531
+ "kind": "cli",
2532
+ "name": "material_updateSpecification",
2533
+ "operation": "updateSpecification",
2534
+ "objectName": "@happyvertical/smrt-products:Material"
2535
+ },
2536
+ {
2537
+ "kind": "cli",
2538
+ "name": "material_getAssets",
2539
+ "operation": "getAssets",
2540
+ "objectName": "@happyvertical/smrt-products:Material"
2541
+ },
2542
+ {
2543
+ "kind": "cli",
2544
+ "name": "material_addAsset",
2545
+ "operation": "addAsset",
2546
+ "objectName": "@happyvertical/smrt-products:Material"
2547
+ },
2548
+ {
2549
+ "kind": "cli",
2550
+ "name": "material_removeAsset",
2551
+ "operation": "removeAsset",
2552
+ "objectName": "@happyvertical/smrt-products:Material"
2553
+ },
2638
2554
  {
2639
2555
  "kind": "mcp",
2640
2556
  "name": "material_list",
@@ -2709,6 +2625,36 @@
2709
2625
  "operation": "delete",
2710
2626
  "objectName": "@happyvertical/smrt-products:Product"
2711
2627
  },
2628
+ {
2629
+ "kind": "cli",
2630
+ "name": "product_getSpecification",
2631
+ "operation": "getSpecification",
2632
+ "objectName": "@happyvertical/smrt-products:Product"
2633
+ },
2634
+ {
2635
+ "kind": "cli",
2636
+ "name": "product_updateSpecification",
2637
+ "operation": "updateSpecification",
2638
+ "objectName": "@happyvertical/smrt-products:Product"
2639
+ },
2640
+ {
2641
+ "kind": "cli",
2642
+ "name": "product_getAssets",
2643
+ "operation": "getAssets",
2644
+ "objectName": "@happyvertical/smrt-products:Product"
2645
+ },
2646
+ {
2647
+ "kind": "cli",
2648
+ "name": "product_addAsset",
2649
+ "operation": "addAsset",
2650
+ "objectName": "@happyvertical/smrt-products:Product"
2651
+ },
2652
+ {
2653
+ "kind": "cli",
2654
+ "name": "product_removeAsset",
2655
+ "operation": "removeAsset",
2656
+ "objectName": "@happyvertical/smrt-products:Product"
2657
+ },
2712
2658
  {
2713
2659
  "kind": "mcp",
2714
2660
  "name": "product_list",
@@ -2783,6 +2729,18 @@
2783
2729
  "operation": "delete",
2784
2730
  "objectName": "@happyvertical/smrt-products:ProductVariant"
2785
2731
  },
2732
+ {
2733
+ "kind": "cli",
2734
+ "name": "productvariant_getValues",
2735
+ "operation": "getValues",
2736
+ "objectName": "@happyvertical/smrt-products:ProductVariant"
2737
+ },
2738
+ {
2739
+ "kind": "cli",
2740
+ "name": "productvariant_setValues",
2741
+ "operation": "setValues",
2742
+ "objectName": "@happyvertical/smrt-products:ProductVariant"
2743
+ },
2786
2744
  {
2787
2745
  "kind": "mcp",
2788
2746
  "name": "productvariant_list",
@@ -2857,6 +2815,18 @@
2857
2815
  "operation": "delete",
2858
2816
  "objectName": "@happyvertical/smrt-products:Sku"
2859
2817
  },
2818
+ {
2819
+ "kind": "cli",
2820
+ "name": "sku_getAttributes",
2821
+ "operation": "getAttributes",
2822
+ "objectName": "@happyvertical/smrt-products:Sku"
2823
+ },
2824
+ {
2825
+ "kind": "cli",
2826
+ "name": "sku_setAttributes",
2827
+ "operation": "setAttributes",
2828
+ "objectName": "@happyvertical/smrt-products:Sku"
2829
+ },
2860
2830
  {
2861
2831
  "kind": "mcp",
2862
2832
  "name": "sku_list",