@mawaru/sdk 0.16.0 → 0.17.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/_schemas/graph.ts +12 -0
- package/dist/_schemas/graph.d.ts +23 -0
- package/dist/_schemas/graph.js +12 -0
- package/package.json +1 -1
package/_schemas/graph.ts
CHANGED
|
@@ -249,7 +249,14 @@ export const NODE_ICON_PRESETS = [
|
|
|
249
249
|
{ key: "gmail", name: "Gmail" },
|
|
250
250
|
{ key: "google-sheets", name: "Google スプレッドシート" },
|
|
251
251
|
{ key: "google-drive", name: "Google Drive" },
|
|
252
|
+
{ key: "google-analytics", name: "Google Analytics" },
|
|
252
253
|
{ key: "notion", name: "Notion" },
|
|
254
|
+
{ key: "salesforce", name: "Salesforce" },
|
|
255
|
+
{ key: "freee", name: "freee" },
|
|
256
|
+
{ key: "airtable", name: "Airtable" },
|
|
257
|
+
{ key: "stripe", name: "Stripe" },
|
|
258
|
+
{ key: "hubspot", name: "HubSpot" },
|
|
259
|
+
{ key: "sentry", name: "Sentry" },
|
|
253
260
|
] as const
|
|
254
261
|
export type NodeIconPresetKey = (typeof NODE_ICON_PRESETS)[number]["key"]
|
|
255
262
|
|
|
@@ -263,6 +270,11 @@ export const graphNodeSchema = z.object({
|
|
|
263
270
|
position_y: z.number(),
|
|
264
271
|
// 表示アイコン(全 kind 共通の任意設定。human はフロントが担当から導出するので通常設定しない)
|
|
265
272
|
icon: nodeIconSchema.optional(),
|
|
273
|
+
// Slack ビュー(全 kind 共通の任意設定。承認待ち・完了メッセージの見せ方)。
|
|
274
|
+
// human の view と同じ「不透明なキー」で、実在・可視性の検証は保存時に mawaru 側が行う
|
|
275
|
+
// (カタログは非公開。@mawaru/common の slack-view.ts)。省略時は従来表示。
|
|
276
|
+
// ポートの型には一切影響しない
|
|
277
|
+
slack_view: z.string().min(1).optional(),
|
|
266
278
|
// kind 別設定(自 kind のときだけ意味を持つ。省略時は保存側がデフォルトを補う)
|
|
267
279
|
wait: waitConfigSchema.optional(),
|
|
268
280
|
program: programConfigSchema.optional(),
|
package/dist/_schemas/graph.d.ts
CHANGED
|
@@ -101,9 +101,30 @@ export declare const NODE_ICON_PRESETS: readonly [{
|
|
|
101
101
|
}, {
|
|
102
102
|
readonly key: "google-drive";
|
|
103
103
|
readonly name: "Google Drive";
|
|
104
|
+
}, {
|
|
105
|
+
readonly key: "google-analytics";
|
|
106
|
+
readonly name: "Google Analytics";
|
|
104
107
|
}, {
|
|
105
108
|
readonly key: "notion";
|
|
106
109
|
readonly name: "Notion";
|
|
110
|
+
}, {
|
|
111
|
+
readonly key: "salesforce";
|
|
112
|
+
readonly name: "Salesforce";
|
|
113
|
+
}, {
|
|
114
|
+
readonly key: "freee";
|
|
115
|
+
readonly name: "freee";
|
|
116
|
+
}, {
|
|
117
|
+
readonly key: "airtable";
|
|
118
|
+
readonly name: "Airtable";
|
|
119
|
+
}, {
|
|
120
|
+
readonly key: "stripe";
|
|
121
|
+
readonly name: "Stripe";
|
|
122
|
+
}, {
|
|
123
|
+
readonly key: "hubspot";
|
|
124
|
+
readonly name: "HubSpot";
|
|
125
|
+
}, {
|
|
126
|
+
readonly key: "sentry";
|
|
127
|
+
readonly name: "Sentry";
|
|
107
128
|
}];
|
|
108
129
|
export type NodeIconPresetKey = (typeof NODE_ICON_PRESETS)[number]["key"];
|
|
109
130
|
export declare const graphNodeSchema: z.ZodObject<{
|
|
@@ -152,6 +173,7 @@ export declare const graphNodeSchema: z.ZodObject<{
|
|
|
152
173
|
}, z.core.$strict>, z.ZodObject<{
|
|
153
174
|
image_url: z.ZodURL;
|
|
154
175
|
}, z.core.$strict>]>>;
|
|
176
|
+
slack_view: z.ZodOptional<z.ZodString>;
|
|
155
177
|
wait: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
156
178
|
wait_type: z.ZodLiteral<"duration">;
|
|
157
179
|
duration_seconds: z.ZodNumber;
|
|
@@ -251,6 +273,7 @@ export declare const saveGraphBodySchema: z.ZodObject<{
|
|
|
251
273
|
}, z.core.$strict>, z.ZodObject<{
|
|
252
274
|
image_url: z.ZodURL;
|
|
253
275
|
}, z.core.$strict>]>>;
|
|
276
|
+
slack_view: z.ZodOptional<z.ZodString>;
|
|
254
277
|
wait: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
255
278
|
wait_type: z.ZodLiteral<"duration">;
|
|
256
279
|
duration_seconds: z.ZodNumber;
|
package/dist/_schemas/graph.js
CHANGED
|
@@ -195,7 +195,14 @@ export const NODE_ICON_PRESETS = [
|
|
|
195
195
|
{ key: "gmail", name: "Gmail" },
|
|
196
196
|
{ key: "google-sheets", name: "Google スプレッドシート" },
|
|
197
197
|
{ key: "google-drive", name: "Google Drive" },
|
|
198
|
+
{ key: "google-analytics", name: "Google Analytics" },
|
|
198
199
|
{ key: "notion", name: "Notion" },
|
|
200
|
+
{ key: "salesforce", name: "Salesforce" },
|
|
201
|
+
{ key: "freee", name: "freee" },
|
|
202
|
+
{ key: "airtable", name: "Airtable" },
|
|
203
|
+
{ key: "stripe", name: "Stripe" },
|
|
204
|
+
{ key: "hubspot", name: "HubSpot" },
|
|
205
|
+
{ key: "sentry", name: "Sentry" },
|
|
199
206
|
];
|
|
200
207
|
export const graphNodeSchema = z.object({
|
|
201
208
|
id: z.uuid(),
|
|
@@ -207,6 +214,11 @@ export const graphNodeSchema = z.object({
|
|
|
207
214
|
position_y: z.number(),
|
|
208
215
|
// 表示アイコン(全 kind 共通の任意設定。human はフロントが担当から導出するので通常設定しない)
|
|
209
216
|
icon: nodeIconSchema.optional(),
|
|
217
|
+
// Slack ビュー(全 kind 共通の任意設定。承認待ち・完了メッセージの見せ方)。
|
|
218
|
+
// human の view と同じ「不透明なキー」で、実在・可視性の検証は保存時に mawaru 側が行う
|
|
219
|
+
// (カタログは非公開。@mawaru/common の slack-view.ts)。省略時は従来表示。
|
|
220
|
+
// ポートの型には一切影響しない
|
|
221
|
+
slack_view: z.string().min(1).optional(),
|
|
210
222
|
// kind 別設定(自 kind のときだけ意味を持つ。省略時は保存側がデフォルトを補う)
|
|
211
223
|
wait: waitConfigSchema.optional(),
|
|
212
224
|
program: programConfigSchema.optional(),
|