@daocloud-proto/ghippo 0.17.0-dev7 → 0.17.0-rc1
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/v1alpha1/webhook.pb.ts +9 -8
package/package.json
CHANGED
package/v1alpha1/webhook.pb.ts
CHANGED
|
@@ -79,13 +79,14 @@ export type GetWebhookResponse = {
|
|
|
79
79
|
webhookInfo?: WebhookInfo
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
export type
|
|
82
|
+
export type ListWebhooksByClientIdRequest = {
|
|
83
83
|
search?: string
|
|
84
84
|
pageSize?: number
|
|
85
85
|
page?: number
|
|
86
|
+
clientId?: string
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
export type
|
|
89
|
+
export type ListWebhooksByClientIdResponse = {
|
|
89
90
|
items?: WebhookInfo[]
|
|
90
91
|
pagination?: Pagination
|
|
91
92
|
}
|
|
@@ -140,7 +141,7 @@ export type GetWebhookRecordResponse = {
|
|
|
140
141
|
webhookRecordInfo?: WebhookRecordInfo
|
|
141
142
|
}
|
|
142
143
|
|
|
143
|
-
export type
|
|
144
|
+
export type ListWebhookRecordsByClientIdRequest = {
|
|
144
145
|
clientId?: string
|
|
145
146
|
search?: string
|
|
146
147
|
status?: Status
|
|
@@ -148,7 +149,7 @@ export type ListWebhookRecordsRequest = {
|
|
|
148
149
|
page?: number
|
|
149
150
|
}
|
|
150
151
|
|
|
151
|
-
export type
|
|
152
|
+
export type ListWebhookRecordsByClientIdResponse = {
|
|
152
153
|
items?: WebhookRecordInfo[]
|
|
153
154
|
pagination?: Pagination
|
|
154
155
|
}
|
|
@@ -160,8 +161,8 @@ export class Webhook {
|
|
|
160
161
|
static GetWebhook(req: GetWebhookRequest, initReq?: fm.InitReq): Promise<GetWebhookResponse> {
|
|
161
162
|
return fm.fetchReq<GetWebhookRequest, GetWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
162
163
|
}
|
|
163
|
-
static
|
|
164
|
-
return fm.fetchReq<
|
|
164
|
+
static ListWebhooksByClientId(req: ListWebhooksByClientIdRequest, initReq?: fm.InitReq): Promise<ListWebhooksByClientIdResponse> {
|
|
165
|
+
return fm.fetchReq<ListWebhooksByClientIdRequest, ListWebhooksByClientIdResponse>(`/apis/ghippo.io/v1alpha1/webhook?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
165
166
|
}
|
|
166
167
|
static UpdateWebhook(req: UpdateWebhookRequest, initReq?: fm.InitReq): Promise<UpdateWebhookResponse> {
|
|
167
168
|
return fm.fetchReq<UpdateWebhookRequest, UpdateWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -172,7 +173,7 @@ export class Webhook {
|
|
|
172
173
|
static GetWebhookRecord(req: GetWebhookRecordRequest, initReq?: fm.InitReq): Promise<GetWebhookRecordResponse> {
|
|
173
174
|
return fm.fetchReq<GetWebhookRecordRequest, GetWebhookRecordResponse>(`/apis/ghippo.io/v1alpha1/webhook-record/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
174
175
|
}
|
|
175
|
-
static
|
|
176
|
-
return fm.fetchReq<
|
|
176
|
+
static ListWebhookRecordsByClientId(req: ListWebhookRecordsByClientIdRequest, initReq?: fm.InitReq): Promise<ListWebhookRecordsByClientIdResponse> {
|
|
177
|
+
return fm.fetchReq<ListWebhookRecordsByClientIdRequest, ListWebhookRecordsByClientIdResponse>(`/apis/ghippo.io/v1alpha1/webhook-record?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
177
178
|
}
|
|
178
179
|
}
|