@jay-framework/wix-data 0.21.0 → 0.22.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.
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/package.json +13 -13
- package/plugin.yaml +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { BuildDescriptors } from '@wix/sdk-types';
|
|
|
7
7
|
import * as _jay_framework_runtime from '@jay-framework/runtime';
|
|
8
8
|
import * as _jay_framework_component from '@jay-framework/component';
|
|
9
9
|
import { WixDataItem } from '@wix/wix-data-items-sdk';
|
|
10
|
-
import { PluginSetupContext, PluginSetupResult,
|
|
10
|
+
import { PluginSetupContext, PluginSetupResult, PluginAgentKitContext, PluginAgentKitResult } from '@jay-framework/stack-server-runtime';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Wix Data Plugin Configuration Types
|
|
@@ -584,7 +584,7 @@ declare const init: _jay_framework_fullstack_component.JayInit<WixDataInitData>;
|
|
|
584
584
|
*/
|
|
585
585
|
|
|
586
586
|
declare function setupWixData(ctx: PluginSetupContext): Promise<PluginSetupResult>;
|
|
587
|
-
declare function
|
|
587
|
+
declare function generateWixDataAgentKit(ctx: PluginAgentKitContext): Promise<PluginAgentKitResult>;
|
|
588
588
|
|
|
589
589
|
/**
|
|
590
590
|
* Item Contract Generator
|
|
@@ -630,4 +630,4 @@ declare const generator$1: _jay_framework_fullstack_component.DynamicContractGen
|
|
|
630
630
|
*/
|
|
631
631
|
declare const generator: _jay_framework_fullstack_component.DynamicContractGenerator<[WixDataService]>;
|
|
632
632
|
|
|
633
|
-
export { type CategoryConfig, type CategoryItem, type CollectionConfig, type CollectionFetcher, type CollectionSchema, type ComponentsConfig, type FieldSchema, type GetCategoriesInput, type GetCategoriesOutput, type GetItemBySlugInput, type GetItemBySlugOutput, type ProcessedField, type ProcessedSchema, type QueryItemsInput, type QueryItemsOutput, type ReferenceConfig, type ResolvedWixDataConfig, WIX_DATA_CONTEXT, WIX_DATA_SERVICE_MARKER, type WixDataConfig, type WixDataContext, type WixDataFieldType, type WixDataInitData, type WixDataService, generator as cardContractGenerator, collectionCard, collectionItem, collectionList, collectionTable,
|
|
633
|
+
export { type CategoryConfig, type CategoryItem, type CollectionConfig, type CollectionFetcher, type CollectionSchema, type ComponentsConfig, type FieldSchema, type GetCategoriesInput, type GetCategoriesOutput, type GetItemBySlugInput, type GetItemBySlugOutput, type ProcessedField, type ProcessedSchema, type QueryItemsInput, type QueryItemsOutput, type ReferenceConfig, type ResolvedWixDataConfig, WIX_DATA_CONTEXT, WIX_DATA_SERVICE_MARKER, type WixDataConfig, type WixDataContext, type WixDataFieldType, type WixDataInitData, type WixDataService, generator as cardContractGenerator, collectionCard, collectionItem, collectionList, collectionTable, generateWixDataAgentKit, getCategories, getItemBySlug, getVisibleCollections, init, isCardField, isContentField, isTableField, generator$3 as itemContractGenerator, generator$2 as listContractGenerator, loadConfig, processSchema, provideWixDataService, queryItems, setupWixData, generator$1 as tableContractGenerator, toPascalCase, validateCollectionConfig, validateConfig };
|
package/dist/index.js
CHANGED
|
@@ -1275,7 +1275,7 @@ async function setupWixData(ctx) {
|
|
|
1275
1275
|
message: `${totalCount} collections found (${visibleCount} visible)`
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
|
-
async function
|
|
1278
|
+
async function generateWixDataAgentKit(ctx) {
|
|
1279
1279
|
if (ctx.initError) {
|
|
1280
1280
|
throw new Error(`init failed: ${ctx.initError.message}`);
|
|
1281
1281
|
}
|
|
@@ -1341,7 +1341,7 @@ async function generateWixDataReferences(ctx) {
|
|
|
1341
1341
|
"utf-8"
|
|
1342
1342
|
);
|
|
1343
1343
|
return {
|
|
1344
|
-
|
|
1344
|
+
agentKitCreated: [`agent-kit/references/${ctx.pluginName}/collections.yaml`],
|
|
1345
1345
|
message: `${collectionSummaries.length} collections (${collectionSummaries.filter((c) => c.visible).length} visible)`
|
|
1346
1346
|
};
|
|
1347
1347
|
}
|
|
@@ -1542,7 +1542,7 @@ export {
|
|
|
1542
1542
|
collectionItem,
|
|
1543
1543
|
collectionList,
|
|
1544
1544
|
collectionTable,
|
|
1545
|
-
|
|
1545
|
+
generateWixDataAgentKit,
|
|
1546
1546
|
getCategories,
|
|
1547
1547
|
getItemBySlug,
|
|
1548
1548
|
getVisibleCollections,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/wix-data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wix Data plugin for Jay Framework with dynamic contract generation",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"test": ":"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jay-framework/component": "^0.
|
|
35
|
-
"@jay-framework/fullstack-component": "^0.
|
|
36
|
-
"@jay-framework/reactive": "^0.
|
|
37
|
-
"@jay-framework/runtime": "^0.
|
|
38
|
-
"@jay-framework/secure": "^0.
|
|
39
|
-
"@jay-framework/stack-client-runtime": "^0.
|
|
40
|
-
"@jay-framework/stack-server-runtime": "^0.
|
|
41
|
-
"@jay-framework/wix-server-client": "^0.
|
|
42
|
-
"@jay-framework/wix-utils": "^0.
|
|
34
|
+
"@jay-framework/component": "^0.22.0",
|
|
35
|
+
"@jay-framework/fullstack-component": "^0.22.0",
|
|
36
|
+
"@jay-framework/reactive": "^0.22.0",
|
|
37
|
+
"@jay-framework/runtime": "^0.22.0",
|
|
38
|
+
"@jay-framework/secure": "^0.22.0",
|
|
39
|
+
"@jay-framework/stack-client-runtime": "^0.22.0",
|
|
40
|
+
"@jay-framework/stack-server-runtime": "^0.22.0",
|
|
41
|
+
"@jay-framework/wix-server-client": "^0.22.0",
|
|
42
|
+
"@jay-framework/wix-utils": "^0.22.0",
|
|
43
43
|
"@wix/data": "^1.0.433",
|
|
44
44
|
"@wix/sdk": "^1.21.5",
|
|
45
45
|
"js-yaml": "^4.1.0"
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@babel/core": "^7.23.7",
|
|
49
49
|
"@babel/preset-env": "^7.23.8",
|
|
50
50
|
"@babel/preset-typescript": "^7.23.3",
|
|
51
|
-
"@jay-framework/compiler-jay-stack": "^0.
|
|
52
|
-
"@jay-framework/jay-cli": "^0.
|
|
53
|
-
"@jay-framework/vite-plugin": "^0.
|
|
51
|
+
"@jay-framework/compiler-jay-stack": "^0.22.0",
|
|
52
|
+
"@jay-framework/jay-cli": "^0.22.0",
|
|
53
|
+
"@jay-framework/vite-plugin": "^0.22.0",
|
|
54
54
|
"@types/js-yaml": "^4.0.9",
|
|
55
55
|
"@types/node": "^20.11.0",
|
|
56
56
|
"nodemon": "^3.0.3",
|
package/plugin.yaml
CHANGED
|
@@ -34,10 +34,9 @@ contexts:
|
|
|
34
34
|
marker: WIX_DATA_CONTEXT
|
|
35
35
|
description: Client-side access to Wix Data items API
|
|
36
36
|
|
|
37
|
-
setup:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
description: Validate CMS service; generate collection schema references
|
|
37
|
+
setup: setupWixData
|
|
38
|
+
agentkit: generateWixDataAgentKit
|
|
39
|
+
description: Validate CMS service; generate collection schema references
|
|
41
40
|
|
|
42
41
|
# Server actions for querying data
|
|
43
42
|
actions:
|