@daocloud-proto/mcamel-postgresql 0.0.2-480 → 0.0.2-481
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/package.json +1 -1
- package/template.pb.ts +7 -2
package/package.json
CHANGED
package/template.pb.ts
CHANGED
|
@@ -89,6 +89,11 @@ export type GetTemplateConfigReq = {
|
|
|
89
89
|
templateInstanceType?: TemplateInstanceType
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
export type GetTemplateConfigStringReq = {
|
|
93
|
+
workspaceId?: number
|
|
94
|
+
name?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
92
97
|
export type CreateTemplateConfigResp = {
|
|
93
98
|
message?: string
|
|
94
99
|
}
|
|
@@ -178,8 +183,8 @@ export class Template {
|
|
|
178
183
|
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
179
184
|
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
180
185
|
}
|
|
181
|
-
static GetTemplateConfigString(req:
|
|
182
|
-
return fm.fetchReq<
|
|
186
|
+
static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
187
|
+
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
183
188
|
}
|
|
184
189
|
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
185
190
|
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|