@powerhousedao/vetra-builder-package 5.0.2 → 5.2.0-staging.10
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/document-models/builder-team/actions.d.ts +28 -0
- package/dist/document-models/builder-team/actions.d.ts.map +1 -0
- package/dist/document-models/builder-team/actions.js +10 -0
- package/dist/document-models/builder-team/builder-team.json +234 -0
- package/dist/document-models/builder-team/gen/actions.d.ts +8 -8
- package/dist/document-models/builder-team/gen/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/actions.js +4 -4
- package/dist/document-models/builder-team/gen/creators.d.ts +8 -4
- package/dist/document-models/builder-team/gen/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/creators.js +8 -4
- package/dist/document-models/builder-team/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/document-model.js +220 -220
- package/dist/document-models/builder-team/gen/document-schema.d.ts +50 -0
- package/dist/document-models/builder-team/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/builder-team/gen/document-schema.js +33 -0
- package/dist/document-models/builder-team/gen/document-type.d.ts +2 -0
- package/dist/document-models/builder-team/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/builder-team/gen/document-type.js +1 -0
- package/dist/document-models/builder-team/gen/index.d.ts +14 -5
- package/dist/document-models/builder-team/gen/index.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/index.js +14 -5
- package/dist/document-models/builder-team/gen/member/actions.d.ts +5 -5
- package/dist/document-models/builder-team/gen/member/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/actions.js +1 -1
- package/dist/document-models/builder-team/gen/member/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/member/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/creators.js +5 -6
- package/dist/document-models/builder-team/gen/member/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/member/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/member/operations.js +1 -3
- package/dist/document-models/builder-team/gen/packages/actions.d.ts +6 -6
- package/dist/document-models/builder-team/gen/packages/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/actions.js +1 -1
- package/dist/document-models/builder-team/gen/packages/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/packages/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/creators.js +6 -7
- package/dist/document-models/builder-team/gen/packages/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/packages/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/packages/operations.js +1 -3
- package/dist/document-models/builder-team/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/ph-factories.js +16 -14
- package/dist/document-models/builder-team/gen/profile/actions.d.ts +7 -7
- package/dist/document-models/builder-team/gen/profile/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/actions.js +1 -1
- package/dist/document-models/builder-team/gen/profile/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/profile/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/creators.js +7 -8
- package/dist/document-models/builder-team/gen/profile/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/profile/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/profile/operations.js +1 -3
- package/dist/document-models/builder-team/gen/reducer.d.ts +1 -3
- package/dist/document-models/builder-team/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/reducer.js +86 -70
- package/dist/document-models/builder-team/gen/schema/index.d.ts +1 -1
- package/dist/document-models/builder-team/gen/schema/index.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/schema/index.js +1 -1
- package/dist/document-models/builder-team/gen/schema/types.d.ts +13 -1
- package/dist/document-models/builder-team/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/schema/zod.d.ts +3 -3
- package/dist/document-models/builder-team/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/schema/zod.js +22 -22
- package/dist/document-models/builder-team/gen/spaces/actions.d.ts +6 -6
- package/dist/document-models/builder-team/gen/spaces/actions.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/actions.js +1 -1
- package/dist/document-models/builder-team/gen/spaces/creators.d.ts +2 -2
- package/dist/document-models/builder-team/gen/spaces/creators.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/creators.js +6 -7
- package/dist/document-models/builder-team/gen/spaces/error.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/operations.d.ts +3 -3
- package/dist/document-models/builder-team/gen/spaces/operations.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/spaces/operations.js +1 -3
- package/dist/document-models/builder-team/gen/types.d.ts +4 -5
- package/dist/document-models/builder-team/gen/types.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/types.js +1 -2
- package/dist/document-models/builder-team/gen/utils.d.ts +7 -4
- package/dist/document-models/builder-team/gen/utils.d.ts.map +1 -1
- package/dist/document-models/builder-team/gen/utils.js +41 -20
- package/dist/document-models/builder-team/hooks.d.ts +11 -0
- package/dist/document-models/builder-team/hooks.d.ts.map +1 -0
- package/dist/document-models/builder-team/hooks.js +26 -0
- package/dist/document-models/builder-team/index.d.ts +5 -45
- package/dist/document-models/builder-team/index.d.ts.map +1 -1
- package/dist/document-models/builder-team/index.js +5 -22
- package/dist/document-models/builder-team/module.d.ts +5 -0
- package/dist/document-models/builder-team/module.d.ts.map +1 -0
- package/dist/document-models/builder-team/module.js +10 -0
- package/dist/document-models/builder-team/src/index.d.ts +2 -0
- package/dist/document-models/builder-team/src/index.d.ts.map +1 -0
- package/dist/document-models/builder-team/src/index.js +1 -0
- package/dist/document-models/builder-team/src/reducers/member.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/member.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/member.js +8 -5
- package/dist/document-models/builder-team/src/reducers/packages.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/packages.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/packages.js +8 -8
- package/dist/document-models/builder-team/src/reducers/profile.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/profile.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/profile.js +6 -6
- package/dist/document-models/builder-team/src/reducers/spaces.d.ts +2 -2
- package/dist/document-models/builder-team/src/reducers/spaces.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/reducers/spaces.js +7 -7
- package/dist/document-models/builder-team/src/tests/document-model.test.d.ts +4 -0
- package/dist/document-models/builder-team/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/document-model.test.js +92 -6
- package/dist/document-models/builder-team/src/tests/member.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/member.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/member.test.js +15 -20
- package/dist/document-models/builder-team/src/tests/packages.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/packages.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/packages.test.js +25 -20
- package/dist/document-models/builder-team/src/tests/profile.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/profile.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/profile.test.js +23 -24
- package/dist/document-models/builder-team/src/tests/spaces.test.d.ts +0 -4
- package/dist/document-models/builder-team/src/tests/spaces.test.d.ts.map +1 -1
- package/dist/document-models/builder-team/src/tests/spaces.test.js +25 -20
- package/dist/document-models/builder-team/utils.d.ts +14 -0
- package/dist/document-models/builder-team/utils.d.ts.map +1 -0
- package/dist/document-models/builder-team/utils.js +7 -0
- package/dist/document-models/document-models.d.ts +3 -0
- package/dist/document-models/document-models.d.ts.map +1 -0
- package/dist/document-models/document-models.js +4 -0
- package/dist/document-models/index.d.ts +1 -2
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +1 -2
- package/dist/editors/builder-team-editor/components/EditName.d.ts +3 -0
- package/dist/editors/builder-team-editor/components/EditName.d.ts.map +1 -0
- package/dist/editors/builder-team-editor/components/EditName.js +31 -0
- package/dist/editors/builder-team-editor/components/PackagesTable.d.ts.map +1 -1
- package/dist/editors/builder-team-editor/components/PackagesTable.js +0 -1
- package/dist/editors/builder-team-editor/editor.d.ts +1 -1
- package/dist/editors/builder-team-editor/editor.d.ts.map +1 -1
- package/dist/editors/builder-team-editor/editor.js +2 -4
- package/dist/editors/builder-team-editor/hooks/usePackageHandlers.d.ts +1 -2
- package/dist/editors/builder-team-editor/hooks/usePackageHandlers.d.ts.map +1 -1
- package/dist/editors/builder-team-editor/hooks/usePackageHandlers.js +1 -1
- package/dist/editors/builder-team-editor/module.d.ts +4 -0
- package/dist/editors/builder-team-editor/module.d.ts.map +1 -0
- package/dist/editors/builder-team-editor/module.js +10 -0
- package/dist/editors/editors.d.ts +3 -0
- package/dist/editors/editors.d.ts.map +1 -0
- package/dist/editors/editors.js +4 -0
- package/dist/editors/index.d.ts +1 -2
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/processors/vetra-builder-relational-db-processor/builder-team-handlers.d.ts +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/builder-team-handlers.d.ts.map +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/builder-team-handlers.js +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/migrations.d.ts.map +1 -1
- package/dist/processors/vetra-builder-relational-db-processor/migrations.js +0 -3
- package/dist/scripts/add-builder-team-model.d.ts +2 -0
- package/dist/scripts/add-builder-team-model.d.ts.map +1 -0
- package/dist/scripts/add-builder-team-model.js +122 -0
- package/dist/scripts/create-remote-drives.d.ts +17 -0
- package/dist/scripts/create-remote-drives.d.ts.map +1 -0
- package/dist/scripts/create-remote-drives.js +946 -0
- package/dist/scripts/introspect-schema.d.ts +8 -0
- package/dist/scripts/introspect-schema.d.ts.map +1 -0
- package/dist/scripts/introspect-schema.js +216 -0
- package/dist/scripts/upload-to-drive.js +0 -2
- package/dist/style.css +8 -1
- package/dist/subgraphs/vetra-builders/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/vetra-builders/resolvers.js +0 -1
- package/package.json +71 -54
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspect-schema.d.ts","sourceRoot":"","sources":["../../scripts/introspect-schema.ts"],"names":[],"mappings":";AACA;;;;GAIG"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
/**
|
|
3
|
+
* Introspect GraphQL Schema
|
|
4
|
+
*
|
|
5
|
+
* Queries the GraphQL endpoint to discover available types, mutations, and queries
|
|
6
|
+
*/
|
|
7
|
+
const GRAPHQL_ENDPOINT = process.argv[2] || 'http://localhost:4001/graphql';
|
|
8
|
+
const introspectionQuery = `
|
|
9
|
+
query IntrospectionQuery {
|
|
10
|
+
__schema {
|
|
11
|
+
queryType {
|
|
12
|
+
name
|
|
13
|
+
}
|
|
14
|
+
mutationType {
|
|
15
|
+
name
|
|
16
|
+
}
|
|
17
|
+
types {
|
|
18
|
+
kind
|
|
19
|
+
name
|
|
20
|
+
description
|
|
21
|
+
fields {
|
|
22
|
+
name
|
|
23
|
+
description
|
|
24
|
+
args {
|
|
25
|
+
name
|
|
26
|
+
type {
|
|
27
|
+
name
|
|
28
|
+
kind
|
|
29
|
+
ofType {
|
|
30
|
+
name
|
|
31
|
+
kind
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
type {
|
|
36
|
+
name
|
|
37
|
+
kind
|
|
38
|
+
ofType {
|
|
39
|
+
name
|
|
40
|
+
kind
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
async function introspect() {
|
|
49
|
+
console.log(`🔍 Introspecting GraphQL schema at: ${GRAPHQL_ENDPOINT}\n`);
|
|
50
|
+
try {
|
|
51
|
+
const response = await fetch(GRAPHQL_ENDPOINT, {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
headers: {
|
|
54
|
+
'Content-Type': 'application/json',
|
|
55
|
+
},
|
|
56
|
+
body: JSON.stringify({
|
|
57
|
+
query: introspectionQuery,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
if (!response.ok) {
|
|
61
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
62
|
+
}
|
|
63
|
+
const result = await response.json();
|
|
64
|
+
if (result.errors) {
|
|
65
|
+
console.error('❌ GraphQL Errors:', JSON.stringify(result.errors, null, 2));
|
|
66
|
+
process.exit(1);
|
|
67
|
+
}
|
|
68
|
+
const schema = result.data.__schema;
|
|
69
|
+
// Find Mutation type
|
|
70
|
+
const mutationType = schema.types.find((t) => t.name === schema.mutationType?.name);
|
|
71
|
+
const queryType = schema.types.find((t) => t.name === schema.queryType?.name);
|
|
72
|
+
// Display Queries
|
|
73
|
+
console.log('📋 Available Queries:');
|
|
74
|
+
console.log('='.repeat(80));
|
|
75
|
+
if (queryType?.fields) {
|
|
76
|
+
const queries = queryType.fields
|
|
77
|
+
.filter((f) => !f.name.startsWith('__'))
|
|
78
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
79
|
+
queries.forEach((field) => {
|
|
80
|
+
const args = field.args.map((arg) => {
|
|
81
|
+
const typeName = arg.type.name || arg.type.ofType?.name || 'Unknown';
|
|
82
|
+
return `${arg.name}: ${typeName}`;
|
|
83
|
+
}).join(', ');
|
|
84
|
+
console.log(` ${field.name}(${args})`);
|
|
85
|
+
});
|
|
86
|
+
console.log(`\nTotal queries: ${queries.length}\n`);
|
|
87
|
+
}
|
|
88
|
+
// Display Mutations
|
|
89
|
+
console.log('🔧 Available Mutations:');
|
|
90
|
+
console.log('='.repeat(80));
|
|
91
|
+
if (mutationType?.fields) {
|
|
92
|
+
const mutations = mutationType.fields
|
|
93
|
+
.filter((f) => !f.name.startsWith('__'))
|
|
94
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
95
|
+
// Group by prefix
|
|
96
|
+
const grouped = mutations.reduce((acc, field) => {
|
|
97
|
+
const prefix = field.name.split('_')[0];
|
|
98
|
+
if (!acc[prefix])
|
|
99
|
+
acc[prefix] = [];
|
|
100
|
+
acc[prefix].push(field);
|
|
101
|
+
return acc;
|
|
102
|
+
}, {});
|
|
103
|
+
Object.keys(grouped).sort().forEach((prefix) => {
|
|
104
|
+
console.log(`\n ${prefix}:`);
|
|
105
|
+
grouped[prefix].forEach((field) => {
|
|
106
|
+
const args = field.args.map((arg) => {
|
|
107
|
+
const typeName = arg.type.name || arg.type.ofType?.name || 'Unknown';
|
|
108
|
+
return `${arg.name}: ${typeName}`;
|
|
109
|
+
}).join(', ');
|
|
110
|
+
console.log(` ${field.name}(${args})`);
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
console.log(`\nTotal mutations: ${mutations.length}\n`);
|
|
114
|
+
}
|
|
115
|
+
// Find Drive-related types
|
|
116
|
+
console.log('📁 Drive-Related Types:');
|
|
117
|
+
console.log('='.repeat(80));
|
|
118
|
+
const driveTypes = schema.types.filter((t) => t.name && (t.name.toLowerCase().includes('drive') ||
|
|
119
|
+
t.name.toLowerCase().includes('package') ||
|
|
120
|
+
t.name === 'Mutation') &&
|
|
121
|
+
t.kind === 'OBJECT' &&
|
|
122
|
+
!t.name.startsWith('__'));
|
|
123
|
+
driveTypes.forEach((type) => {
|
|
124
|
+
if (type.name === 'Mutation')
|
|
125
|
+
return;
|
|
126
|
+
console.log(`\n ${type.name}:`);
|
|
127
|
+
if (type.fields) {
|
|
128
|
+
type.fields.slice(0, 10).forEach((field) => {
|
|
129
|
+
const typeName = field.type.name || field.type.ofType?.name || 'Unknown';
|
|
130
|
+
console.log(` ${field.name}: ${typeName}`);
|
|
131
|
+
});
|
|
132
|
+
if (type.fields.length > 10) {
|
|
133
|
+
console.log(` ... (${type.fields.length - 10} more fields)`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
// Find VetraPackage-related mutations
|
|
138
|
+
console.log('\n\n📦 VetraPackage Mutations:');
|
|
139
|
+
console.log('='.repeat(80));
|
|
140
|
+
if (mutationType?.fields) {
|
|
141
|
+
const packageMutations = mutationType.fields
|
|
142
|
+
.filter((f) => f.name.includes('Package') || f.name.includes('package'))
|
|
143
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
144
|
+
if (packageMutations.length > 0) {
|
|
145
|
+
packageMutations.forEach((field) => {
|
|
146
|
+
console.log(`\n ${field.name}`);
|
|
147
|
+
if (field.args && field.args.length > 0) {
|
|
148
|
+
console.log(' Arguments:');
|
|
149
|
+
field.args.forEach((arg) => {
|
|
150
|
+
const typeName = arg.type.name || arg.type.ofType?.name || 'Unknown';
|
|
151
|
+
console.log(` ${arg.name}: ${typeName}`);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
const returnType = field.type.name || field.type.ofType?.name || 'Unknown';
|
|
155
|
+
console.log(` Returns: ${returnType}`);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
console.log(' ⚠️ No VetraPackage mutations found');
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// Find addDrive mutation
|
|
163
|
+
console.log('\n\n🚗 Drive Management Mutations:');
|
|
164
|
+
console.log('='.repeat(80));
|
|
165
|
+
if (mutationType?.fields) {
|
|
166
|
+
const driveMutations = mutationType.fields
|
|
167
|
+
.filter((f) => f.name.toLowerCase().includes('drive') &&
|
|
168
|
+
(f.name.toLowerCase().includes('add') ||
|
|
169
|
+
f.name.toLowerCase().includes('create') ||
|
|
170
|
+
f.name.toLowerCase().includes('update') ||
|
|
171
|
+
f.name.toLowerCase().includes('delete')))
|
|
172
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
173
|
+
if (driveMutations.length > 0) {
|
|
174
|
+
driveMutations.forEach((field) => {
|
|
175
|
+
console.log(`\n ${field.name}`);
|
|
176
|
+
if (field.args && field.args.length > 0) {
|
|
177
|
+
console.log(' Arguments:');
|
|
178
|
+
field.args.forEach((arg) => {
|
|
179
|
+
const typeName = arg.type.name || arg.type.ofType?.name || 'Unknown';
|
|
180
|
+
const required = arg.type.kind === 'NON_NULL' ? '!' : '';
|
|
181
|
+
console.log(` ${arg.name}: ${typeName}${required}`);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
const returnType = field.type.name || field.type.ofType?.name || 'Unknown';
|
|
185
|
+
console.log(` Returns: ${returnType}`);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
console.log(' ⚠️ No drive management mutations found');
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
// List all document types
|
|
193
|
+
console.log('\n\n📄 Document Types (createDocument mutations):');
|
|
194
|
+
console.log('='.repeat(80));
|
|
195
|
+
if (mutationType?.fields) {
|
|
196
|
+
const createDocMutations = mutationType.fields
|
|
197
|
+
.filter((f) => f.name.includes('createDocument'))
|
|
198
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
199
|
+
if (createDocMutations.length > 0) {
|
|
200
|
+
createDocMutations.forEach((field) => {
|
|
201
|
+
console.log(` ${field.name}`);
|
|
202
|
+
});
|
|
203
|
+
console.log(`\nTotal document types: ${createDocMutations.length}`);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
console.log(' ⚠️ No createDocument mutations found');
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
catch (error) {
|
|
211
|
+
console.error('❌ Error:', error);
|
|
212
|
+
process.exit(1);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
introspect().catch(console.error);
|
|
216
|
+
export {};
|
|
@@ -11,11 +11,9 @@
|
|
|
11
11
|
* bun run scripts/upload-to-drive.ts /home/froid/Dokumente/SkyFintech.phvba.phd https://switchboard.vetra.io/d/sky-fintech
|
|
12
12
|
*/
|
|
13
13
|
import fs from 'fs';
|
|
14
|
-
import path from 'path';
|
|
15
14
|
import { fileURLToPath } from 'url';
|
|
16
15
|
import AdmZip from 'adm-zip';
|
|
17
16
|
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
-
const __dirname = path.dirname(__filename);
|
|
19
17
|
/**
|
|
20
18
|
* Extract JSON files from .phd (ZIP) file
|
|
21
19
|
*/
|
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--font-sans: "Inter", sans-serif;
|
|
7
7
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
8
8
|
"Courier New", monospace;
|
|
9
|
+
--color-red-800: hsl(5 81% 61%);
|
|
9
10
|
--color-blue-100: hsl(209 100% 90%);
|
|
10
11
|
--color-blue-500: hsl(209 100% 70%);
|
|
11
12
|
--color-blue-600: hsl(209 100% 65%);
|
|
@@ -516,6 +517,9 @@
|
|
|
516
517
|
.object-cover {
|
|
517
518
|
object-fit: cover;
|
|
518
519
|
}
|
|
520
|
+
.p-1 {
|
|
521
|
+
padding: calc(var(--spacing) * 1);
|
|
522
|
+
}
|
|
519
523
|
.p-3 {
|
|
520
524
|
padding: calc(var(--spacing) * 3);
|
|
521
525
|
}
|
|
@@ -648,6 +652,9 @@
|
|
|
648
652
|
.text-gray-900 {
|
|
649
653
|
color: var(--color-gray-900);
|
|
650
654
|
}
|
|
655
|
+
.text-red-800 {
|
|
656
|
+
color: var(--color-red-800);
|
|
657
|
+
}
|
|
651
658
|
.uppercase {
|
|
652
659
|
text-transform: uppercase;
|
|
653
660
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-builders/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAI5D,eAAO,MAAM,YAAY,GAAI,UAAU,SAAS,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-builders/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAI5D,eAAO,MAAM,YAAY,GAAI,UAAU,SAAS,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CA0QxE,CAAC"}
|
|
@@ -2,7 +2,6 @@ import {} from "@powerhousedao/reactor-api";
|
|
|
2
2
|
import {} from "../../processors/vetra-builder-relational-db-processor/schema.js";
|
|
3
3
|
import { VetraBuilderRelationalDbProcessor } from "../../processors/vetra-builder-relational-db-processor/index.js";
|
|
4
4
|
export const getResolvers = (subgraph) => {
|
|
5
|
-
const reactor = subgraph.reactor;
|
|
6
5
|
const db = subgraph.relationalDb;
|
|
7
6
|
const DEFAULT_DRIVE_ID = process.env.VETRA_BUILDER_DRIVE_ID || "powerhouse";
|
|
8
7
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/vetra-builder-package",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.2.0-staging.10",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -36,44 +36,71 @@
|
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
38
38
|
".": {
|
|
39
|
-
"development": "./index.ts",
|
|
40
39
|
"types": "./dist/index.d.ts",
|
|
41
40
|
"default": "./dist/index.js"
|
|
42
41
|
},
|
|
43
42
|
"./document-models": {
|
|
44
|
-
"development": "./document-models/index.ts",
|
|
45
43
|
"types": "./dist/document-models/index.d.ts",
|
|
46
44
|
"default": "./dist/document-models/index.js"
|
|
47
45
|
},
|
|
48
46
|
"./editors": {
|
|
49
|
-
"development": "./editors/index.ts",
|
|
50
47
|
"types": "./dist/editors/index.d.ts",
|
|
51
48
|
"default": "./dist/editors/index.js"
|
|
52
49
|
},
|
|
53
50
|
"./subgraphs": {
|
|
54
|
-
"development": "./subgraphs/index.ts",
|
|
55
51
|
"types": "./dist/subgraphs/index.d.ts",
|
|
56
52
|
"default": "./dist/subgraphs/index.js"
|
|
57
53
|
},
|
|
58
54
|
"./processors": {
|
|
59
|
-
"development": "./processors/index.ts",
|
|
60
55
|
"types": "./dist/processors/index.d.ts",
|
|
61
56
|
"default": "./dist/processors/index.js"
|
|
62
57
|
},
|
|
63
58
|
"./manifest": {
|
|
64
|
-
"development": "./powerhouse.manifest.json",
|
|
65
59
|
"default": "./dist/powerhouse.manifest.json"
|
|
66
60
|
},
|
|
67
|
-
"./style.css": "./dist/style.css"
|
|
61
|
+
"./style.css": "./dist/style.css",
|
|
62
|
+
"./document-models/*": {
|
|
63
|
+
"types": "./dist/document-models/*/index.d.ts",
|
|
64
|
+
"default": "./dist/document-models/*/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./editors/*": {
|
|
67
|
+
"types": "./dist/editors/*/index.d.ts",
|
|
68
|
+
"default": "./dist/editors/*/index.js"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"lint": "eslint --config eslint.config.js --cache --cache-strategy content",
|
|
73
|
+
"lint:fix": "npm run lint -- --fix",
|
|
74
|
+
"build:tsc": "tsc",
|
|
75
|
+
"build:tsc:watch": "tsc --watch",
|
|
76
|
+
"build:css": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css",
|
|
77
|
+
"build:css:watch": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css --watch",
|
|
78
|
+
"build": "npm run tsc && npm run tailwind",
|
|
79
|
+
"test": "vitest run",
|
|
80
|
+
"test:watch": "vitest",
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
82
|
+
"prepublishOnly": "npm run build",
|
|
83
|
+
"generate": "ph-cli generate",
|
|
84
|
+
"connect": "ph-cli connect",
|
|
85
|
+
"reactor": "ph-cli reactor",
|
|
86
|
+
"service": "ph-cli service",
|
|
87
|
+
"service-startup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh",
|
|
88
|
+
"service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh",
|
|
89
|
+
"tsc": "tsc",
|
|
90
|
+
"tsc:watch": "tsc --watch",
|
|
91
|
+
"tailwind": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css",
|
|
92
|
+
"check-circular-imports": "npx dpdm -T ./index.ts",
|
|
93
|
+
"vetra": "ph-cli vetra",
|
|
94
|
+
"migrate": "ph-cli migrate"
|
|
68
95
|
},
|
|
69
96
|
"dependencies": {
|
|
70
|
-
"@powerhousedao/builder-tools": "
|
|
71
|
-
"@powerhousedao/common": "
|
|
72
|
-
"@powerhousedao/connect": "
|
|
73
|
-
"@powerhousedao/design-system": "
|
|
97
|
+
"@powerhousedao/builder-tools": "staging",
|
|
98
|
+
"@powerhousedao/common": "staging",
|
|
99
|
+
"@powerhousedao/connect": "staging",
|
|
100
|
+
"@powerhousedao/design-system": "staging",
|
|
74
101
|
"@powerhousedao/document-engineering": "^1.38.0",
|
|
75
|
-
"@renown/sdk": "
|
|
76
|
-
"document-model": "
|
|
102
|
+
"@renown/sdk": "staging",
|
|
103
|
+
"document-model": "staging",
|
|
77
104
|
"graphql": "^16.10.0",
|
|
78
105
|
"graphql-request": "^7.2.0",
|
|
79
106
|
"graphql-tag": "^2.12.6",
|
|
@@ -81,42 +108,48 @@
|
|
|
81
108
|
"luxon": "^3.7.2",
|
|
82
109
|
"nanoid": "^5.1.6",
|
|
83
110
|
"uuid": "^11.1.0",
|
|
84
|
-
"zod": "
|
|
111
|
+
"zod": "4.1.13"
|
|
85
112
|
},
|
|
86
113
|
"devDependencies": {
|
|
87
114
|
"@electric-sql/pglite": "^0.2.17",
|
|
88
|
-
"@eslint/js": "^9.
|
|
115
|
+
"@eslint/js": "^9.38.0",
|
|
89
116
|
"@openfeature/core": "^1.9.1",
|
|
90
117
|
"@powerhousedao/analytics-engine-core": "^0.5.0",
|
|
91
|
-
"@powerhousedao/codegen": "
|
|
92
|
-
"@powerhousedao/
|
|
93
|
-
"@powerhousedao/
|
|
94
|
-
"@powerhousedao/reactor-
|
|
95
|
-
"@powerhousedao/reactor-
|
|
96
|
-
"@powerhousedao/
|
|
97
|
-
"@powerhousedao/
|
|
98
|
-
"@powerhousedao/
|
|
118
|
+
"@powerhousedao/codegen": "staging",
|
|
119
|
+
"@powerhousedao/config": "staging",
|
|
120
|
+
"@powerhousedao/ph-cli": "staging",
|
|
121
|
+
"@powerhousedao/reactor-api": "staging",
|
|
122
|
+
"@powerhousedao/reactor-browser": "staging",
|
|
123
|
+
"@powerhousedao/reactor-local": "staging",
|
|
124
|
+
"@powerhousedao/scalars": "staging",
|
|
125
|
+
"@powerhousedao/switchboard": "staging",
|
|
126
|
+
"@powerhousedao/vetra": "staging",
|
|
99
127
|
"@semantic-release/changelog": "^6.0.3",
|
|
100
128
|
"@semantic-release/git": "^10.0.1",
|
|
101
|
-
"@tailwindcss/cli": "^4.1.
|
|
102
|
-
"@
|
|
129
|
+
"@tailwindcss/cli": "^4.1.4",
|
|
130
|
+
"@testing-library/react": "^16.3.0",
|
|
131
|
+
"@types/adm-zip": "^0.5.7",
|
|
132
|
+
"@types/node": "^24.9.2",
|
|
103
133
|
"@types/react": "^19.2.2",
|
|
104
134
|
"@types/react-dom": "^19.2.2",
|
|
105
|
-
"@vitejs/plugin-react": "^5.0
|
|
135
|
+
"@vitejs/plugin-react": "^5.1.0",
|
|
106
136
|
"adm-zip": "^0.5.16",
|
|
107
|
-
"document-drive": "
|
|
108
|
-
"eslint": "^9.
|
|
109
|
-
"eslint-
|
|
110
|
-
"eslint-plugin-
|
|
111
|
-
"
|
|
137
|
+
"document-drive": "staging",
|
|
138
|
+
"eslint": "^9.38.0",
|
|
139
|
+
"eslint-config-prettier": "^10.1.8",
|
|
140
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
141
|
+
"eslint-plugin-react": "^7.37.5",
|
|
142
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
143
|
+
"globals": "^16.4.0",
|
|
144
|
+
"package-manager-detector": "^0.2.8",
|
|
112
145
|
"pm2": "^5.4.3",
|
|
113
146
|
"react": "^19.2.0",
|
|
114
147
|
"react-dom": "^19.2.0",
|
|
115
148
|
"storybook": "^8.6.14",
|
|
116
|
-
"tailwindcss": "^4.1.
|
|
149
|
+
"tailwindcss": "^4.1.16",
|
|
117
150
|
"typescript": "^5.9.3",
|
|
118
|
-
"typescript-eslint": "^8.46.
|
|
119
|
-
"vite": "^
|
|
151
|
+
"typescript-eslint": "^8.46.2",
|
|
152
|
+
"vite": "^6.2.3",
|
|
120
153
|
"vite-plugin-node-polyfills": "^0.24.0",
|
|
121
154
|
"vitest": "^3.0.9"
|
|
122
155
|
},
|
|
@@ -128,22 +161,6 @@
|
|
|
128
161
|
"react": "^19.2.0",
|
|
129
162
|
"react-dom": "^19.2.0"
|
|
130
163
|
},
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"build:tsc": "tsc",
|
|
135
|
-
"build:tsc:watch": "tsc --watch",
|
|
136
|
-
"build:css": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css",
|
|
137
|
-
"build:css:watch": "npx @tailwindcss/cli -i ./style.css -o ./dist/style.css --watch",
|
|
138
|
-
"build": "npm run build:tsc && npm run build:css",
|
|
139
|
-
"test": "vitest run",
|
|
140
|
-
"test:watch": "vitest",
|
|
141
|
-
"typecheck": "tsc --noEmit",
|
|
142
|
-
"generate": "ph-cli generate",
|
|
143
|
-
"connect": "ph-cli connect",
|
|
144
|
-
"reactor": "ph-cli reactor",
|
|
145
|
-
"service": "ph-cli service",
|
|
146
|
-
"service-startup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh",
|
|
147
|
-
"service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
164
|
+
"readme": "ERROR: No README data found!",
|
|
165
|
+
"_id": "@powerhousedao/vetra-builder-package@5.0.1-staging"
|
|
166
|
+
}
|