@app-studio/web 0.9.21 → 0.9.22
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/README.md +17 -1
- package/dist/components/ChatInput/ChatInput/ChatInput.props.d.ts +9 -0
- package/dist/components/ChatInput/EditableInput.d.ts +1 -1
- package/dist/services/api/index.d.ts +6 -17
- package/dist/services/api/models/ActionListParam.d.ts +18 -0
- package/dist/services/api/models/CheckRatingParams.d.ts +1 -1
- package/dist/services/api/models/CreateActionParams.d.ts +1 -13
- package/dist/services/api/models/CreateAnalyticParams.d.ts +1 -1
- package/dist/services/api/models/CreateCommentAnswerParams.d.ts +1 -1
- package/dist/services/api/models/CreateCommentParams.d.ts +1 -1
- package/dist/services/api/models/CreateRatingParams.d.ts +1 -1
- package/dist/services/api/models/CreateReportParams.d.ts +1 -1
- package/dist/services/api/models/EditLogoParams.d.ts +22 -0
- package/dist/services/api/models/EditPageStreamParams.d.ts +6 -0
- package/dist/services/api/models/FindCommentParams.d.ts +1 -1
- package/dist/services/api/models/FindReportParams.d.ts +1 -1
- package/dist/services/api/models/FindUserParams.d.ts +1 -1
- package/dist/services/api/models/GenerateProjectParams.d.ts +0 -4
- package/dist/services/api/models/GetAnalyticViewParams.d.ts +1 -1
- package/dist/services/api/models/ListCommentParams.d.ts +1 -1
- package/dist/services/api/models/SetAnalyticViewParams.d.ts +1 -1
- package/dist/services/api/models/UpdateActionParams.d.ts +2 -2
- package/dist/services/api/models/UpdateObjectDto.d.ts +1 -0
- package/dist/services/api/models/UpdateUserParams.d.ts +14 -6
- package/dist/services/api/services/ActionService.d.ts +90 -30
- package/dist/services/api/services/AssistantService.d.ts +12 -0
- package/dist/services/api/services/ComponentService.d.ts +22 -38
- package/dist/services/api/services/FieldService.d.ts +2 -2
- package/dist/services/api/services/ItemService.d.ts +13 -0
- package/dist/services/api/services/NewsletterService.d.ts +2 -2
- package/dist/services/api/services/ObjectService.d.ts +74 -0
- package/dist/services/api/services/PageService.d.ts +0 -60
- package/dist/services/api/services/SeedService.d.ts +4 -4
- package/dist/services/api/services/UploadService.d.ts +55 -0
- package/dist/services/api/services/WorkflowService.d.ts +24 -25
- package/dist/utils/apiConfig.d.ts +24 -0
- package/dist/web.cjs.development.js +4 -7
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +4 -7
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +4 -7
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/docs/README.md +21 -14
- package/docs/documentation-system.md +90 -0
- package/package.json +2 -1
- package/dist/services/api/models/CreateApplicationParams.d.ts +0 -10
- package/dist/services/api/models/CreateGrantParams.d.ts +0 -10
- package/dist/services/api/models/CreateProjectParams.d.ts +0 -10
- package/dist/services/api/models/FindApplicationParams.d.ts +0 -19
- package/dist/services/api/models/FindPageParams.d.ts +0 -22
- package/dist/services/api/models/FixPageParams.d.ts +0 -10
- package/dist/services/api/models/UpdateApplicationParams.d.ts +0 -6
- package/dist/services/api/models/UpdateComponentPropsParams.d.ts +0 -10
- package/dist/services/api/models/UpdateGrantParams.d.ts +0 -6
- package/dist/services/api/models/UpdatePageParams.d.ts +0 -14
- package/dist/services/api/models/UpdateProjectParams.d.ts +0 -10
- package/dist/services/api/services/ApplicationService.d.ts +0 -83
- package/dist/services/api/services/ComponentRevisionService.d.ts +0 -25
- package/dist/services/api/services/FileService.d.ts +0 -30
- package/dist/services/api/services/GrantService.d.ts +0 -100
- package/dist/services/api/services/ProjectService.d.ts +0 -59
- package/dist/services/api/services/PromptService.d.ts +0 -18
- package/docs/guide.md +0 -550
- package/docs/integration-guide.md +0 -449
package/docs/README.md
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
# App Studio Web Component Library Documentation
|
|
2
2
|
|
|
3
|
-
Welcome to the documentation for the App Studio Web Component Library. This documentation provides
|
|
3
|
+
Welcome to the comprehensive documentation for the App Studio Web Component Library. This documentation provides guides, API references, and examples to help you build high-quality components and applications.
|
|
4
4
|
|
|
5
|
-
## Documentation Structure
|
|
5
|
+
## 📖 Documentation Structure
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
10
|
-
- **API
|
|
11
|
-
- **
|
|
12
|
-
- **Contributing**: Guidelines for contributing to the library
|
|
7
|
+
### Core Documentation
|
|
8
|
+
- **[Getting Started](./getting-started/introduction.md)** - Quick introduction and setup
|
|
9
|
+
- **[Component Development](./component-development/guide.md)** - Building and contributing components
|
|
10
|
+
- **[API Integration](./api-integration.md)** - Backend integration patterns
|
|
11
|
+
- **[Design System](./design-system/theming.md)** - Theming and styling guidelines
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
### Specialized Documentation
|
|
14
|
+
- **[ADK Components](../README-ADK.md)** - Agent Development Kit integration
|
|
15
|
+
- **[API Reference](./api-reference/README.md)** - Detailed component APIs
|
|
16
|
+
- **[Tutorials](./tutorials/README.md)** - Step-by-step guides
|
|
17
|
+
- **[Contributing](./contributing/documentation.md)** - Contribution guidelines
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
## 🚀 Quick Navigation
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
### For New Users
|
|
22
|
+
Start with the [Getting Started Guide](./getting-started/introduction.md) to understand the library basics and setup process.
|
|
23
|
+
|
|
24
|
+
### For Developers
|
|
25
|
+
Refer to the [Component Development Guide](./component-development/guide.md) for building and customizing components.
|
|
26
|
+
|
|
27
|
+
### For ADK Integration
|
|
28
|
+
Check the [ADK Components documentation](../README-ADK.md) for agent-specific functionality.
|
|
22
29
|
|
|
23
30
|
## Documentation Tools
|
|
24
31
|
|
|
@@ -104,8 +104,50 @@ To update component documentation:
|
|
|
104
104
|
2. Review the generated documentation
|
|
105
105
|
3. Make any necessary manual adjustments
|
|
106
106
|
|
|
107
|
+
## Documentation Maintenance Rules
|
|
108
|
+
|
|
109
|
+
### Rule 1: Single Source of Truth
|
|
110
|
+
- Each topic should have ONE authoritative documentation file
|
|
111
|
+
- Avoid duplicating content across multiple files
|
|
112
|
+
- Use cross-references instead of copying content
|
|
113
|
+
- **Prohibited**: Creating multiple files covering the same topic
|
|
114
|
+
|
|
115
|
+
### Rule 2: Clear File Responsibilities
|
|
116
|
+
- **README.md**: Project overview, quick start, navigation to specialized docs
|
|
117
|
+
- **README-ADK.md**: ADK-specific functionality ONLY
|
|
118
|
+
- **docs/README.md**: Documentation hub and navigation
|
|
119
|
+
- **docs/api-integration.md**: Backend integration patterns
|
|
120
|
+
- **Component docs**: Individual component usage and APIs
|
|
121
|
+
|
|
122
|
+
### Rule 3: Content Validation Checklist
|
|
123
|
+
Before adding/updating documentation:
|
|
124
|
+
- ✅ Check for existing content on the same topic
|
|
125
|
+
- ✅ Verify all code examples work
|
|
126
|
+
- ✅ Ensure links are valid and up-to-date
|
|
127
|
+
- ✅ Follow consistent markdown formatting
|
|
128
|
+
- ✅ Update related files if needed
|
|
129
|
+
- ✅ Remove outdated information
|
|
130
|
+
|
|
131
|
+
### Rule 4: Mandatory Updates
|
|
132
|
+
Documentation MUST be updated when:
|
|
133
|
+
- Adding new components or features
|
|
134
|
+
- Changing component APIs or props
|
|
135
|
+
- Modifying integration patterns
|
|
136
|
+
- Updating dependencies or requirements
|
|
137
|
+
- Changing project structure
|
|
138
|
+
|
|
139
|
+
### Rule 5: Quality Standards
|
|
140
|
+
- Use clear, concise language
|
|
141
|
+
- Include practical, working examples
|
|
142
|
+
- Follow consistent formatting and terminology
|
|
143
|
+
- Link related documentation appropriately
|
|
144
|
+
- Test all code examples before publishing
|
|
145
|
+
- Include accessibility information where relevant
|
|
146
|
+
- Document best practices and common pitfalls
|
|
147
|
+
|
|
107
148
|
## Documentation Best Practices
|
|
108
149
|
|
|
150
|
+
### Content Organization
|
|
109
151
|
- Keep documentation up-to-date with code changes
|
|
110
152
|
- Include examples for all components and features
|
|
111
153
|
- Use consistent formatting and terminology
|
|
@@ -114,6 +156,45 @@ To update component documentation:
|
|
|
114
156
|
- Include accessibility information
|
|
115
157
|
- Document best practices and common pitfalls
|
|
116
158
|
|
|
159
|
+
### File Naming Conventions
|
|
160
|
+
- Use kebab-case for file names: `component-development.md`
|
|
161
|
+
- Use descriptive names that clearly indicate content
|
|
162
|
+
- Avoid generic names like `guide.md` or `docs.md`
|
|
163
|
+
|
|
164
|
+
## Documentation Maintenance Workflow
|
|
165
|
+
|
|
166
|
+
### Before Making Changes
|
|
167
|
+
1. **Audit existing documentation**:
|
|
168
|
+
```bash
|
|
169
|
+
# Check for duplicate content
|
|
170
|
+
grep -r "your-search-term" docs/
|
|
171
|
+
|
|
172
|
+
# Find broken links
|
|
173
|
+
find docs/ -name "*.md" -exec grep -l "broken-link" {} \;
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
2. **Validate current structure**:
|
|
177
|
+
- Ensure no topic is covered in multiple files
|
|
178
|
+
- Check that all links work
|
|
179
|
+
- Verify code examples are current
|
|
180
|
+
|
|
181
|
+
### After Making Changes
|
|
182
|
+
1. **Update related documentation**:
|
|
183
|
+
- Update cross-references
|
|
184
|
+
- Check for outdated information
|
|
185
|
+
- Ensure consistency across files
|
|
186
|
+
|
|
187
|
+
2. **Run documentation tools**:
|
|
188
|
+
```bash
|
|
189
|
+
npm run create-docs
|
|
190
|
+
npm run bot-doc -- ComponentName src/components/ComponentName
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Regular Maintenance Tasks
|
|
194
|
+
- **Weekly**: Check for broken links and outdated examples
|
|
195
|
+
- **Monthly**: Review documentation structure for redundancies
|
|
196
|
+
- **Per Release**: Update all version-specific information
|
|
197
|
+
|
|
117
198
|
## Troubleshooting
|
|
118
199
|
|
|
119
200
|
If you encounter issues with the documentation system:
|
|
@@ -141,3 +222,12 @@ If MDX files are not rendering correctly:
|
|
|
141
222
|
1. Check the MDX syntax
|
|
142
223
|
2. Ensure the MDX file is in the correct location
|
|
143
224
|
3. Check for errors in the console
|
|
225
|
+
|
|
226
|
+
### Duplicate Content Issues
|
|
227
|
+
|
|
228
|
+
If you find duplicate content:
|
|
229
|
+
|
|
230
|
+
1. Identify the authoritative source
|
|
231
|
+
2. Remove duplicate content
|
|
232
|
+
3. Add cross-references to the authoritative source
|
|
233
|
+
4. Update any links pointing to removed content
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-studio/web",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.22",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/components/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"create-example": "ts-node scripts/create-example.ts",
|
|
47
47
|
"page-imports": "ts-node scripts/generate-page-imports.ts",
|
|
48
48
|
"create-pages": "npm run create-indices && ts-node scripts/create-pages.ts && npm run page-imports",
|
|
49
|
+
"validate-docs": "node scripts/validate-docs.js",
|
|
49
50
|
"api:local": "react-api --useUnionTypes --input http://localhost:3000/docs/swagger.json --output ./src/services/api && prettier --write ./src/services/api"
|
|
50
51
|
},
|
|
51
52
|
"eslintConfig": {
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare type FindApplicationParams = {
|
|
2
|
-
name?: string;
|
|
3
|
-
/**
|
|
4
|
-
* Order by field
|
|
5
|
-
*/
|
|
6
|
-
sortField?: 'id' | 'userId' | 'name' | 'imageUrl' | 'image' | 'createdAt' | 'updatedAt';
|
|
7
|
-
/**
|
|
8
|
-
* Order sort
|
|
9
|
-
*/
|
|
10
|
-
sortOrder?: 'asc' | 'desc';
|
|
11
|
-
/**
|
|
12
|
-
* Number or result to return
|
|
13
|
-
*/
|
|
14
|
-
take?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Number or result to skip
|
|
17
|
-
*/
|
|
18
|
-
skip?: number;
|
|
19
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare type FindPageParams = {
|
|
2
|
-
/**
|
|
3
|
-
* Page Id
|
|
4
|
-
*/
|
|
5
|
-
projectId: string;
|
|
6
|
-
/**
|
|
7
|
-
* Order by field
|
|
8
|
-
*/
|
|
9
|
-
sortField?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Order sort
|
|
12
|
-
*/
|
|
13
|
-
sortOrder?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Number or result to return
|
|
16
|
-
*/
|
|
17
|
-
take?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Number or result to skip
|
|
20
|
-
*/
|
|
21
|
-
skip?: number;
|
|
22
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare type UpdatePageParams = {
|
|
2
|
-
/**
|
|
3
|
-
* The code to be associated with the page
|
|
4
|
-
*/
|
|
5
|
-
code?: string;
|
|
6
|
-
/**
|
|
7
|
-
* The configs to be associated with the page
|
|
8
|
-
*/
|
|
9
|
-
configs?: Array<string>;
|
|
10
|
-
/**
|
|
11
|
-
* The url to be associated with the page
|
|
12
|
-
*/
|
|
13
|
-
urlPath?: string;
|
|
14
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { CreateApplicationParams } from '../models/CreateApplicationParams';
|
|
2
|
-
import type { FindApplicationParams } from '../models/FindApplicationParams';
|
|
3
|
-
import type { UpdateApplicationParams } from '../models/UpdateApplicationParams';
|
|
4
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
-
import { UseRequestOption, UseRequestProperties } from '@app-studio/react-request';
|
|
6
|
-
/**
|
|
7
|
-
* As a admin, i want to create a application
|
|
8
|
-
* @param requestBody
|
|
9
|
-
* @returns any Application created
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
export declare const applicationControllerCreate: (requestBody: CreateApplicationParams) => CancelablePromise<any>;
|
|
13
|
-
/**
|
|
14
|
-
* I want to read all the application
|
|
15
|
-
* @returns any Application data
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
export declare const applicationControllerGetAll: () => CancelablePromise<any>;
|
|
19
|
-
/**
|
|
20
|
-
* I want to read an application
|
|
21
|
-
* @param id
|
|
22
|
-
* @returns any Application data
|
|
23
|
-
* @throws ApiError
|
|
24
|
-
*/
|
|
25
|
-
export declare const applicationControllerGet: (id: string) => CancelablePromise<any>;
|
|
26
|
-
/**
|
|
27
|
-
* As a admin, i want to delete a application
|
|
28
|
-
* @param id
|
|
29
|
-
* @returns any application delete
|
|
30
|
-
* @throws ApiError
|
|
31
|
-
*/
|
|
32
|
-
export declare const applicationControllerDelete: (id: string) => CancelablePromise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* As a admin, i want to update a application
|
|
35
|
-
* @param id
|
|
36
|
-
* @param requestBody
|
|
37
|
-
* @returns any Application Updated
|
|
38
|
-
* @throws ApiError
|
|
39
|
-
*/
|
|
40
|
-
export declare const applicationControllerUpdate: (id: string, requestBody: UpdateApplicationParams) => CancelablePromise<any>;
|
|
41
|
-
/**
|
|
42
|
-
* I want to find application by name
|
|
43
|
-
* @param requestBody
|
|
44
|
-
* @returns any Application found
|
|
45
|
-
* @throws ApiError
|
|
46
|
-
*/
|
|
47
|
-
export declare const applicationControllerFind: (requestBody: FindApplicationParams) => CancelablePromise<any>;
|
|
48
|
-
/**
|
|
49
|
-
* Validate application
|
|
50
|
-
* @param stepId
|
|
51
|
-
* @param requestBody
|
|
52
|
-
* @returns any Workflow created
|
|
53
|
-
* @throws ApiError
|
|
54
|
-
*/
|
|
55
|
-
export declare const applicationWorkflowControllerFillApplication: (stepId: string, requestBody: CreateApplicationParams) => CancelablePromise<any>;
|
|
56
|
-
export declare const useApplicationControllerCreateService: ({ method, ...options }?: UseRequestOption) => {
|
|
57
|
-
run: (requestBody: CreateApplicationParams) => void;
|
|
58
|
-
data: any;
|
|
59
|
-
} & UseRequestProperties;
|
|
60
|
-
export declare const useApplicationControllerGetAllService: ({ method, ...options }?: UseRequestOption) => {
|
|
61
|
-
run: () => void;
|
|
62
|
-
data: any;
|
|
63
|
-
} & UseRequestProperties;
|
|
64
|
-
export declare const useApplicationControllerGetService: ({ method, ...options }?: UseRequestOption) => {
|
|
65
|
-
run: (id: string) => void;
|
|
66
|
-
data: any;
|
|
67
|
-
} & UseRequestProperties;
|
|
68
|
-
export declare const useApplicationControllerDeleteService: ({ method, ...options }?: UseRequestOption) => {
|
|
69
|
-
run: (id: string) => void;
|
|
70
|
-
data: any;
|
|
71
|
-
} & UseRequestProperties;
|
|
72
|
-
export declare const useApplicationControllerUpdateService: ({ method, ...options }?: UseRequestOption) => {
|
|
73
|
-
run: (id: string, requestBody: UpdateApplicationParams) => void;
|
|
74
|
-
data: any;
|
|
75
|
-
} & UseRequestProperties;
|
|
76
|
-
export declare const useApplicationControllerFindService: ({ method, ...options }?: UseRequestOption) => {
|
|
77
|
-
run: (requestBody: FindApplicationParams) => void;
|
|
78
|
-
data: any;
|
|
79
|
-
} & UseRequestProperties;
|
|
80
|
-
export declare const useApplicationWorkflowControllerFillApplicationService: ({ method, ...options }?: UseRequestOption) => {
|
|
81
|
-
run: (stepId: string, requestBody: CreateApplicationParams) => void;
|
|
82
|
-
data: any;
|
|
83
|
-
} & UseRequestProperties;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { CreateComponentRevisionParams } from '../models/CreateComponentRevisionParams';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
import { UseRequestOption, UseRequestProperties } from '@app-studio/react-request';
|
|
4
|
-
/**
|
|
5
|
-
* As a user, i want to create a componentRevision
|
|
6
|
-
* @param requestBody
|
|
7
|
-
* @returns any ComponentRevision created
|
|
8
|
-
* @throws ApiError
|
|
9
|
-
*/
|
|
10
|
-
export declare const componentRevisionControllerCreate: (requestBody: CreateComponentRevisionParams) => CancelablePromise<any>;
|
|
11
|
-
/**
|
|
12
|
-
* As a user, i want to find by componentRevision based on a componentRevision identifier
|
|
13
|
-
* @param id
|
|
14
|
-
* @returns any ComponentRevision fetched successfully
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
export declare const componentRevisionControllerRead: (id: string) => CancelablePromise<any>;
|
|
18
|
-
export declare const useComponentRevisionControllerCreateService: ({ method, ...options }?: UseRequestOption) => {
|
|
19
|
-
run: (requestBody: CreateComponentRevisionParams) => void;
|
|
20
|
-
data: any;
|
|
21
|
-
} & UseRequestProperties;
|
|
22
|
-
export declare const useComponentRevisionControllerReadService: ({ method, ...options }?: UseRequestOption) => {
|
|
23
|
-
run: (id: string) => void;
|
|
24
|
-
data: any;
|
|
25
|
-
} & UseRequestProperties;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
-
import { UseRequestOption, UseRequestProperties } from '@app-studio/react-request';
|
|
3
|
-
/**
|
|
4
|
-
* Upload a file.
|
|
5
|
-
* @param id
|
|
6
|
-
* @param stepId
|
|
7
|
-
* @param formData
|
|
8
|
-
* @returns any File Upload Succeed
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
export declare const grantFileControllerCreate: (id: string, stepId: string, formData: {
|
|
12
|
-
file?: Blob;
|
|
13
|
-
}) => CancelablePromise<any>;
|
|
14
|
-
/**
|
|
15
|
-
* As a admin, i want to delete a grantFile
|
|
16
|
-
* @param id
|
|
17
|
-
* @returns any grantFile delete
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
export declare const grantFileControllerDelete: (id: string) => CancelablePromise<any>;
|
|
21
|
-
export declare const useGrantFileControllerCreateService: ({ method, ...options }?: UseRequestOption) => {
|
|
22
|
-
run: (id: string, stepId: string, formData: {
|
|
23
|
-
file?: Blob;
|
|
24
|
-
}) => void;
|
|
25
|
-
data: any;
|
|
26
|
-
} & UseRequestProperties;
|
|
27
|
-
export declare const useGrantFileControllerDeleteService: ({ method, ...options }?: UseRequestOption) => {
|
|
28
|
-
run: (id: string) => void;
|
|
29
|
-
data: any;
|
|
30
|
-
} & UseRequestProperties;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import type { CreateGrantParams } from '../models/CreateGrantParams';
|
|
2
|
-
import type { UpdateGrantParams } from '../models/UpdateGrantParams';
|
|
3
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
-
import { UseRequestOption, UseRequestProperties } from '@app-studio/react-request';
|
|
5
|
-
/**
|
|
6
|
-
* Validate grant
|
|
7
|
-
* @param grantId
|
|
8
|
-
* @param stepId
|
|
9
|
-
* @returns any Workflow created
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
export declare const grantWorkflowControllerValidateUploadGrantFiles: (grantId: string, stepId: string, onProgress: any) => CancelablePromise<any>;
|
|
13
|
-
/**
|
|
14
|
-
* Upload a file.
|
|
15
|
-
* @param id
|
|
16
|
-
* @param stepId
|
|
17
|
-
* @param formData
|
|
18
|
-
* @returns any File Upload Succeed
|
|
19
|
-
* @throws ApiError
|
|
20
|
-
*/
|
|
21
|
-
export declare const grantFileControllerCreate: (id: string, stepId: string, formData: {
|
|
22
|
-
file?: Blob;
|
|
23
|
-
}) => CancelablePromise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* As a admin, i want to delete a grantFile
|
|
26
|
-
* @param id
|
|
27
|
-
* @returns any grantFile delete
|
|
28
|
-
* @throws ApiError
|
|
29
|
-
*/
|
|
30
|
-
export declare const grantFileControllerDelete: (id: string) => CancelablePromise<any>;
|
|
31
|
-
/**
|
|
32
|
-
* As a admin, i want to create a grant
|
|
33
|
-
* @param requestBody
|
|
34
|
-
* @returns any Grant created
|
|
35
|
-
* @throws ApiError
|
|
36
|
-
*/
|
|
37
|
-
export declare const grantControllerCreate: (requestBody: CreateGrantParams) => CancelablePromise<any>;
|
|
38
|
-
/**
|
|
39
|
-
* I want to read an grant
|
|
40
|
-
* @param id
|
|
41
|
-
* @returns any Grant data
|
|
42
|
-
* @throws ApiError
|
|
43
|
-
*/
|
|
44
|
-
export declare const grantControllerGet: (id: string) => CancelablePromise<any>;
|
|
45
|
-
/**
|
|
46
|
-
* As a admin, i want to delete a grant
|
|
47
|
-
* @param id
|
|
48
|
-
* @returns any grant delete
|
|
49
|
-
* @throws ApiError
|
|
50
|
-
*/
|
|
51
|
-
export declare const grantControllerDelete: (id: string) => CancelablePromise<any>;
|
|
52
|
-
/**
|
|
53
|
-
* As a admin, i want to update a grant
|
|
54
|
-
* @param id
|
|
55
|
-
* @param requestBody
|
|
56
|
-
* @returns any Grant Updated
|
|
57
|
-
* @throws ApiError
|
|
58
|
-
*/
|
|
59
|
-
export declare const grantControllerUpdate: (id: string, requestBody: UpdateGrantParams) => CancelablePromise<any>;
|
|
60
|
-
/**
|
|
61
|
-
* I want to read all the grant
|
|
62
|
-
* @param projectId
|
|
63
|
-
* @returns any Grant data
|
|
64
|
-
* @throws ApiError
|
|
65
|
-
*/
|
|
66
|
-
export declare const grantControllerGetAll: (projectId: string) => CancelablePromise<any>;
|
|
67
|
-
export declare const useGrantWorkflowControllerValidateUploadGrantFilesService: ({ method, ...options }?: UseRequestOption) => {
|
|
68
|
-
run: (grantId: string, stepId: string) => void;
|
|
69
|
-
data: any;
|
|
70
|
-
} & UseRequestProperties;
|
|
71
|
-
export declare const useGrantFileControllerCreateService: ({ method, ...options }?: UseRequestOption) => {
|
|
72
|
-
run: (id: string, stepId: string, formData: {
|
|
73
|
-
file?: Blob;
|
|
74
|
-
}) => void;
|
|
75
|
-
data: any;
|
|
76
|
-
} & UseRequestProperties;
|
|
77
|
-
export declare const useGrantFileControllerDeleteService: ({ method, ...options }?: UseRequestOption) => {
|
|
78
|
-
run: (id: string) => void;
|
|
79
|
-
data: any;
|
|
80
|
-
} & UseRequestProperties;
|
|
81
|
-
export declare const useGrantControllerCreateService: ({ method, ...options }?: UseRequestOption) => {
|
|
82
|
-
run: (requestBody: CreateGrantParams) => void;
|
|
83
|
-
data: any;
|
|
84
|
-
} & UseRequestProperties;
|
|
85
|
-
export declare const useGrantControllerGetService: ({ method, ...options }?: UseRequestOption) => {
|
|
86
|
-
run: (id: string) => void;
|
|
87
|
-
data: any;
|
|
88
|
-
} & UseRequestProperties;
|
|
89
|
-
export declare const useGrantControllerDeleteService: ({ method, ...options }?: UseRequestOption) => {
|
|
90
|
-
run: (id: string) => void;
|
|
91
|
-
data: any;
|
|
92
|
-
} & UseRequestProperties;
|
|
93
|
-
export declare const useGrantControllerUpdateService: ({ method, ...options }?: UseRequestOption) => {
|
|
94
|
-
run: (id: string, requestBody: UpdateGrantParams) => void;
|
|
95
|
-
data: any;
|
|
96
|
-
} & UseRequestProperties;
|
|
97
|
-
export declare const useGrantControllerGetAllService: ({ method, ...options }?: UseRequestOption) => {
|
|
98
|
-
run: (projectId: string) => void;
|
|
99
|
-
data: any;
|
|
100
|
-
} & UseRequestProperties;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { CreateProjectParams } from '../models/CreateProjectParams';
|
|
2
|
-
import type { UpdateProjectParams } from '../models/UpdateProjectParams';
|
|
3
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
-
import { UseRequestOption, UseRequestProperties } from '@app-studio/react-request';
|
|
5
|
-
/**
|
|
6
|
-
* As a admin, i want to create a project
|
|
7
|
-
* @param requestBody
|
|
8
|
-
* @returns any Project created
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
export declare const projectControllerCreate: (requestBody: CreateProjectParams) => CancelablePromise<any>;
|
|
12
|
-
/**
|
|
13
|
-
* I want to read all the project
|
|
14
|
-
* @returns any Project data
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
export declare const projectControllerList: () => CancelablePromise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* I want to read an project
|
|
20
|
-
* @param id
|
|
21
|
-
* @returns any Project data
|
|
22
|
-
* @throws ApiError
|
|
23
|
-
*/
|
|
24
|
-
export declare const projectControllerGet: (id: string) => CancelablePromise<any>;
|
|
25
|
-
/**
|
|
26
|
-
* As a admin, i want to delete a project
|
|
27
|
-
* @param id
|
|
28
|
-
* @returns any project delete
|
|
29
|
-
* @throws ApiError
|
|
30
|
-
*/
|
|
31
|
-
export declare const projectControllerRemove: (id: string) => CancelablePromise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* As a admin, i want to update a project
|
|
34
|
-
* @param id
|
|
35
|
-
* @param requestBody
|
|
36
|
-
* @returns any Project Updated
|
|
37
|
-
* @throws ApiError
|
|
38
|
-
*/
|
|
39
|
-
export declare const projectControllerUpdate: (id: string, requestBody: UpdateProjectParams) => CancelablePromise<any>;
|
|
40
|
-
export declare const useProjectControllerCreateService: ({ method, ...options }?: UseRequestOption) => {
|
|
41
|
-
run: (requestBody: CreateProjectParams) => void;
|
|
42
|
-
data: any;
|
|
43
|
-
} & UseRequestProperties;
|
|
44
|
-
export declare const useProjectControllerListService: ({ method, ...options }?: UseRequestOption) => {
|
|
45
|
-
run: () => void;
|
|
46
|
-
data: any;
|
|
47
|
-
} & UseRequestProperties;
|
|
48
|
-
export declare const useProjectControllerGetService: ({ method, ...options }?: UseRequestOption) => {
|
|
49
|
-
run: (id: string) => void;
|
|
50
|
-
data: any;
|
|
51
|
-
} & UseRequestProperties;
|
|
52
|
-
export declare const useProjectControllerRemoveService: ({ method, ...options }?: UseRequestOption) => {
|
|
53
|
-
run: (id: string) => void;
|
|
54
|
-
data: any;
|
|
55
|
-
} & UseRequestProperties;
|
|
56
|
-
export declare const useProjectControllerUpdateService: ({ method, ...options }?: UseRequestOption) => {
|
|
57
|
-
run: (id: string, requestBody: UpdateProjectParams) => void;
|
|
58
|
-
data: any;
|
|
59
|
-
} & UseRequestProperties;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
-
import { UseRequestOption, UseRequestProperties } from '@app-studio/react-request';
|
|
3
|
-
/**
|
|
4
|
-
* Upload a file for prompt attachment
|
|
5
|
-
* Upload any file type to be attached to a prompt. Supports documents, images, and other file types up to 10MB.
|
|
6
|
-
* @param formData
|
|
7
|
-
* @returns any File uploaded successfully
|
|
8
|
-
* @throws ApiError
|
|
9
|
-
*/
|
|
10
|
-
export declare const promptUploadControllerUploadPromptFile: (formData: {
|
|
11
|
-
file?: Blob;
|
|
12
|
-
}, onProgress: any) => CancelablePromise<any>;
|
|
13
|
-
export declare const usePromptUploadControllerUploadPromptFileService: ({ method, ...options }?: UseRequestOption) => {
|
|
14
|
-
run: (formData: {
|
|
15
|
-
file?: Blob;
|
|
16
|
-
}) => void;
|
|
17
|
-
data: any;
|
|
18
|
-
} & UseRequestProperties;
|