@spaceandtimelabs/makeinfinite-ui 0.35.5 → 0.37.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 +79 -0
- package/dist/makeinfinite-ui.es.js +1374 -1356
- package/dist/makeinfinite-ui.umd.js +47 -47
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,55 @@ declare interface APIContextType {
|
|
|
7
7
|
wrapXHRCall: <T>(xhrCreator: () => XMLHttpRequest, processResponse: (xhr: XMLHttpRequest) => T) => Promise<T>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export declare const APIHandler: (baseUrl: string) => {
|
|
11
|
+
createProject: (description: string, componentNamespace: string) => Promise<Response>;
|
|
12
|
+
getProjects: () => Promise<Response>;
|
|
13
|
+
getSubdomains: (projectName: string) => Promise<Response>;
|
|
14
|
+
allocateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
|
|
15
|
+
updateSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
|
|
16
|
+
releaseSubdomain: (projectName: string, subdomain: string) => Promise<Response>;
|
|
17
|
+
publishProject: (projectName: string, gitRef: string) => Promise<Response>;
|
|
18
|
+
unpublishProject: (projectName: string) => Promise<Response>;
|
|
19
|
+
tagCommit: (projectName: string, commitHash: string, tagName: string) => Promise<Response>;
|
|
20
|
+
getComponentLibrary: () => Promise<Response>;
|
|
21
|
+
addProjectComponent: (projectName: string, componentNamespace: string, componentName: string, layoutMetadata: any) => Promise<Response>;
|
|
22
|
+
addProjectChart: (projectName: string, visualId: string, layoutMetadata: object) => Promise<Response>;
|
|
23
|
+
updateProjectComponentLayoutMetadata: (projectName: string, componentId: string, layoutMetadata: any) => Promise<Response>;
|
|
24
|
+
updateProjectComponentSourceCode: (projectName: string, componentId: string, sourceCode: string) => Promise<Response>;
|
|
25
|
+
updateApplicationMetadata: (projectName: string, applicationName: string, applicationDescription: string, applicationCategory: string) => Promise<Response>;
|
|
26
|
+
updateApplicationSettings: (projectName: string, applicationLoginEnabled: boolean) => Promise<Response>;
|
|
27
|
+
deleteProjectFile: (projectName: string, filePath: string) => Promise<Response>;
|
|
28
|
+
resetProjectFile: (projectName: string, filePath: string, gitRef: string, prune?: boolean, extraMetadata?: string) => Promise<Response>;
|
|
29
|
+
deleteProject: (projectName: string) => Promise<Response>;
|
|
30
|
+
requestErrorCorrection: (projectName: string, componentId: string, errorMessage: string) => Promise<Response>;
|
|
31
|
+
addImage: (formData: FormData) => Promise<Response>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare const APIProxyHandler: (baseUrl: string) => {
|
|
35
|
+
getSecrets: () => Promise<Response>;
|
|
36
|
+
putSecret: (secretReference: string, secret: Omit<Secret, "creator_user_id" | "secret_reference">) => Promise<Response>;
|
|
37
|
+
getSecret: (secretReference: string) => Promise<Response>;
|
|
38
|
+
deleteSecret: (secretReference: string) => Promise<Response>;
|
|
39
|
+
getTierKeyMap: (miniappName: string) => Promise<Response>;
|
|
40
|
+
putTierKeyMap: (miniappName: string, tier: string, secretReference: string) => Promise<Response>;
|
|
41
|
+
getTierKeyMapForTier: (miniappName: string, tier: string) => Promise<Response>;
|
|
42
|
+
deleteTierKeyMap: (miniappName: string, tier: string) => Promise<Response>;
|
|
43
|
+
getTierAssignments: (miniappName: string) => Promise<Response>;
|
|
44
|
+
putTierAssignment: (miniappName: string, userId: string, tier: string) => Promise<Response>;
|
|
45
|
+
getTierAssignment: (miniappName: string, userId: string) => Promise<Response>;
|
|
46
|
+
deleteTierAssignment: (miniappName: string, userId: string) => Promise<Response>;
|
|
47
|
+
getRateLimits: (miniappName: string) => Promise<Response>;
|
|
48
|
+
putRateLimit: (miniappName: string, tier: string, secretReference: string, rateLimit: Pick<RateLimit, "window_ms" | "limit">) => Promise<Response>;
|
|
49
|
+
getRateLimit: (miniappName: string, tier: string, secretReference: string) => Promise<Response>;
|
|
50
|
+
deleteRateLimit: (miniappName: string, tier: string, secretReference: string) => Promise<Response>;
|
|
51
|
+
createProxyFetch: (config: ProxyFetchConfig) => (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
52
|
+
createProxyGetView: (config: ProxyGetViewConfig) => (schema: string, viewName: string, parameters?: {
|
|
53
|
+
[key: string]: string | number | boolean;
|
|
54
|
+
}) => Promise<{
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}[]>;
|
|
57
|
+
};
|
|
58
|
+
|
|
10
59
|
export declare const getHeadCommit: (projectName: string) => Promise<string>;
|
|
11
60
|
|
|
12
61
|
export declare const getRedoTargetCommitForFile: (projectName: string, filePath: string) => Promise<[string, string]>;
|
|
@@ -39,6 +88,26 @@ export declare const ProjectProvider: (props: {
|
|
|
39
88
|
children?: React.ReactNode;
|
|
40
89
|
}) => JSX_2.Element;
|
|
41
90
|
|
|
91
|
+
/** Configuration for the proxy fetch client */
|
|
92
|
+
declare type ProxyFetchConfig = {
|
|
93
|
+
miniappName: string;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** Configuration for the proxy getView client */
|
|
97
|
+
declare type ProxyGetViewConfig = {
|
|
98
|
+
miniappName: string;
|
|
99
|
+
gwProxyUrl: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** Represents rate limit configuration for a tier */
|
|
103
|
+
declare type RateLimit = {
|
|
104
|
+
miniapp_name: string;
|
|
105
|
+
secret_reference: string;
|
|
106
|
+
tier: string;
|
|
107
|
+
window_ms: number;
|
|
108
|
+
limit: number;
|
|
109
|
+
};
|
|
110
|
+
|
|
42
111
|
export declare const RGComponent: default_2.ForwardRefExoticComponent<Omit<RGContainerProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
43
112
|
|
|
44
113
|
export declare class RGComponentErrorBoundary<T> extends default_2.Component<RGComponentErrorBoundaryProps<T>, RGComponentErrorBoundaryState> {
|
|
@@ -99,6 +168,16 @@ export declare const RGPreviewLayout: (props: {
|
|
|
99
168
|
layout: any;
|
|
100
169
|
}) => JSX_2.Element;
|
|
101
170
|
|
|
171
|
+
/** Represents a secret configuration for API access */
|
|
172
|
+
declare type Secret = {
|
|
173
|
+
creator_user_id: string;
|
|
174
|
+
api_domain: string;
|
|
175
|
+
api_path_prefix: string;
|
|
176
|
+
auth_header_key: string;
|
|
177
|
+
auth_header_value: string;
|
|
178
|
+
secret_reference: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
102
181
|
export declare const setTailwindTheme: (theme: object) => void;
|
|
103
182
|
|
|
104
183
|
export declare const syncAndRetry: (projectName: string, projectRepository: string) => Promise<void>;
|