@carthooks/arcubase-cli 0.1.19 → 0.1.21
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/bundle/arcubase-admin.mjs +727 -45
- package/bundle/arcubase.mjs +727 -45
- package/dist/generated/command_registry.generated.d.ts +15 -0
- package/dist/generated/command_registry.generated.d.ts.map +1 -1
- package/dist/generated/command_registry.generated.js +21 -0
- package/dist/generated/help_examples.generated.d.ts +319 -0
- package/dist/generated/help_examples.generated.d.ts.map +1 -0
- package/dist/generated/help_examples.generated.js +437 -0
- package/dist/generated/type_index.generated.d.ts +4 -0
- package/dist/generated/type_index.generated.d.ts.map +1 -1
- package/dist/generated/type_index.generated.js +4 -0
- package/dist/generated/zod_registry.generated.d.ts +4 -1
- package/dist/generated/zod_registry.generated.d.ts.map +1 -1
- package/dist/generated/zod_registry.generated.js +4 -0
- package/dist/runtime/execute.d.ts.map +1 -1
- package/dist/runtime/execute.js +155 -17
- package/dist/runtime/help_examples.d.ts +10 -0
- package/dist/runtime/help_examples.d.ts.map +1 -0
- package/dist/runtime/help_examples.js +48 -0
- package/dist/runtime/zod_registry.d.ts.map +1 -1
- package/dist/runtime/zod_registry.js +8 -0
- package/package.json +4 -3
- package/sdk-dist/api/admin/ingress.ts +11 -0
- package/sdk-dist/docs/runtime-reference/access-rule.md +19 -0
- package/sdk-dist/docs/runtime-reference/help-examples/admin/access-rule/assign-users.json +23 -0
- package/sdk-dist/docs/runtime-reference/help-examples/admin/access-rule/bulk-apply.json +105 -0
- package/sdk-dist/docs/runtime-reference/help-examples/admin/access-rule/create.json +95 -0
- package/sdk-dist/docs/runtime-reference/help-examples/user/row/bulk-update.json +23 -0
- package/sdk-dist/docs/runtime-reference/help-examples/user/row/selection-action.json +25 -0
- package/sdk-dist/generated/command_registry.generated.ts +21 -0
- package/sdk-dist/generated/help_examples.generated.ts +444 -0
- package/sdk-dist/generated/type_index.generated.ts +4 -0
- package/sdk-dist/generated/zod_registry.generated.ts +6 -0
- package/sdk-dist/types/ingress.ts +31 -0
- package/src/generated/command_registry.generated.ts +21 -0
- package/src/generated/help_examples.generated.ts +444 -0
- package/src/generated/type_index.generated.ts +4 -0
- package/src/generated/zod_registry.generated.ts +6 -0
- package/src/runtime/execute.ts +223 -37
- package/src/runtime/help_examples.ts +61 -0
- package/src/runtime/zod_registry.ts +8 -0
- package/src/tests/command_registry.test.ts +1 -0
- package/src/tests/execute_validation.test.ts +113 -0
- package/src/tests/help.test.ts +45 -0
|
@@ -354,6 +354,21 @@ export declare const adminCommands: readonly [{
|
|
|
354
354
|
readonly requestType: "AppIngressUpdateReqVO";
|
|
355
355
|
readonly queryParams: readonly [];
|
|
356
356
|
readonly responseType: "AppIngressUpdateRespVO";
|
|
357
|
+
}, {
|
|
358
|
+
readonly scope: "admin";
|
|
359
|
+
readonly module: "access-rule";
|
|
360
|
+
readonly functionName: "bulkApplyEntityIngress";
|
|
361
|
+
readonly commandPath: readonly ["access-rule", "bulk-apply"];
|
|
362
|
+
readonly method: "POST";
|
|
363
|
+
readonly endpoint: "/api/apps/:app_id/access-rules/bulk-apply";
|
|
364
|
+
readonly pathParams: readonly [{
|
|
365
|
+
readonly param: "app_id";
|
|
366
|
+
readonly flag: "app-id";
|
|
367
|
+
}];
|
|
368
|
+
readonly controller: "App.IngressBulkApply";
|
|
369
|
+
readonly requestType: "AppIngressBulkApplyReqVO";
|
|
370
|
+
readonly queryParams: readonly [];
|
|
371
|
+
readonly responseType: "AppIngressBulkApplyRespVO";
|
|
357
372
|
}, {
|
|
358
373
|
readonly scope: "admin";
|
|
359
374
|
readonly module: "workflow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command_registry.generated.d.ts","sourceRoot":"","sources":["../../src/generated/command_registry.generated.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+uBf,CAAA"}
|
|
@@ -460,6 +460,27 @@ export const adminCommands = [
|
|
|
460
460
|
"queryParams": [],
|
|
461
461
|
"responseType": "AppIngressUpdateRespVO"
|
|
462
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"scope": "admin",
|
|
465
|
+
"module": "access-rule",
|
|
466
|
+
"functionName": "bulkApplyEntityIngress",
|
|
467
|
+
"commandPath": [
|
|
468
|
+
"access-rule",
|
|
469
|
+
"bulk-apply"
|
|
470
|
+
],
|
|
471
|
+
"method": "POST",
|
|
472
|
+
"endpoint": "/api/apps/:app_id/access-rules/bulk-apply",
|
|
473
|
+
"pathParams": [
|
|
474
|
+
{
|
|
475
|
+
"param": "app_id",
|
|
476
|
+
"flag": "app-id"
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
"controller": "App.IngressBulkApply",
|
|
480
|
+
"requestType": "AppIngressBulkApplyReqVO",
|
|
481
|
+
"queryParams": [],
|
|
482
|
+
"responseType": "AppIngressBulkApplyRespVO"
|
|
483
|
+
},
|
|
463
484
|
{
|
|
464
485
|
"scope": "admin",
|
|
465
486
|
"module": "workflow",
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
export type GeneratedHelpExample = {
|
|
2
|
+
title: string;
|
|
3
|
+
body?: unknown;
|
|
4
|
+
notes?: readonly string[];
|
|
5
|
+
};
|
|
6
|
+
export declare const helpExamplesIndex: {
|
|
7
|
+
readonly "admin.access-rule.assign-users": {
|
|
8
|
+
readonly command: readonly ["access-rule", "assign-users"];
|
|
9
|
+
readonly examples: readonly [{
|
|
10
|
+
readonly title: "replace user_scope with user, department, and actor scopes";
|
|
11
|
+
readonly body: {
|
|
12
|
+
readonly update: readonly ["user_scope"];
|
|
13
|
+
readonly options: {
|
|
14
|
+
readonly user_scope: readonly [{
|
|
15
|
+
readonly type: "user";
|
|
16
|
+
readonly id: 2188889901;
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "department";
|
|
19
|
+
readonly id: 2188881201;
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "actor";
|
|
22
|
+
readonly id: 2188883301;
|
|
23
|
+
}];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly notes: readonly ["id must be numeric arcubaseUserId, department ID, or actor ID", "assign-users updates user_scope only and preserves the existing policy"];
|
|
27
|
+
}];
|
|
28
|
+
};
|
|
29
|
+
readonly "admin.access-rule.bulk-apply": {
|
|
30
|
+
readonly command: readonly ["access-rule", "bulk-apply"];
|
|
31
|
+
readonly examples: readonly [{
|
|
32
|
+
readonly title: "upsert permission matrix by rule name in one transaction";
|
|
33
|
+
readonly body: {
|
|
34
|
+
readonly mode: "upsert_by_name";
|
|
35
|
+
readonly items: readonly [{
|
|
36
|
+
readonly table_id: 2188893443;
|
|
37
|
+
readonly name: "Customer archive - sales owns rows";
|
|
38
|
+
readonly enabled: true;
|
|
39
|
+
readonly type: "form";
|
|
40
|
+
readonly options: {
|
|
41
|
+
readonly user_scope: readonly [{
|
|
42
|
+
readonly type: "department";
|
|
43
|
+
readonly id: 2188881201;
|
|
44
|
+
}];
|
|
45
|
+
readonly policy: {
|
|
46
|
+
readonly key: "custom";
|
|
47
|
+
readonly actions: readonly ["view", "add", "edit"];
|
|
48
|
+
readonly all_fields_read: true;
|
|
49
|
+
readonly all_fields_write: true;
|
|
50
|
+
readonly condition: {
|
|
51
|
+
readonly mode: "and";
|
|
52
|
+
readonly conditions: readonly [{
|
|
53
|
+
readonly column: "creator";
|
|
54
|
+
readonly operator: "$eq";
|
|
55
|
+
readonly value: "[[current_user]]";
|
|
56
|
+
readonly value_from: 0;
|
|
57
|
+
readonly value_relation: "";
|
|
58
|
+
}];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly list_options: {};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
readonly table_id: 2188893444;
|
|
65
|
+
readonly name: "Lead review - manager queue";
|
|
66
|
+
readonly enabled: true;
|
|
67
|
+
readonly type: "form";
|
|
68
|
+
readonly options: {
|
|
69
|
+
readonly user_scope: readonly [{
|
|
70
|
+
readonly type: "actor";
|
|
71
|
+
readonly id: 2188883301;
|
|
72
|
+
}];
|
|
73
|
+
readonly policy: {
|
|
74
|
+
readonly key: "custom";
|
|
75
|
+
readonly actions: readonly ["view", "edit"];
|
|
76
|
+
readonly all_fields_read: true;
|
|
77
|
+
readonly all_fields_write: true;
|
|
78
|
+
readonly condition: {
|
|
79
|
+
readonly mode: "and";
|
|
80
|
+
readonly conditions: readonly [{
|
|
81
|
+
readonly column: ":1004";
|
|
82
|
+
readonly operator: "$eq";
|
|
83
|
+
readonly value: "pending";
|
|
84
|
+
readonly value_from: 0;
|
|
85
|
+
readonly value_relation: "";
|
|
86
|
+
}, {
|
|
87
|
+
readonly column: "";
|
|
88
|
+
readonly operator: "";
|
|
89
|
+
readonly value: null;
|
|
90
|
+
readonly value_from: 0;
|
|
91
|
+
readonly value_relation: "";
|
|
92
|
+
readonly subset: {
|
|
93
|
+
readonly mode: "or";
|
|
94
|
+
readonly conditions: readonly [{
|
|
95
|
+
readonly column: "creator";
|
|
96
|
+
readonly operator: "$eq";
|
|
97
|
+
readonly value: "[[current_user]]";
|
|
98
|
+
readonly value_from: 0;
|
|
99
|
+
readonly value_relation: "";
|
|
100
|
+
}, {
|
|
101
|
+
readonly column: ":1005";
|
|
102
|
+
readonly operator: "$eq";
|
|
103
|
+
readonly value: "high";
|
|
104
|
+
readonly value_from: 0;
|
|
105
|
+
readonly value_relation: "";
|
|
106
|
+
}];
|
|
107
|
+
};
|
|
108
|
+
}];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
readonly list_options: {};
|
|
112
|
+
};
|
|
113
|
+
}];
|
|
114
|
+
};
|
|
115
|
+
readonly notes: readonly ["mode upsert_by_name is for idempotent setup; rule names must be unique within each table", "department, actor, and specific user scopes all use options.user_scope", "row-owner isolation uses [[current_user]] in policy.condition"];
|
|
116
|
+
}, {
|
|
117
|
+
readonly title: "preview updates for existing rule ids";
|
|
118
|
+
readonly body: {
|
|
119
|
+
readonly mode: "update_existing";
|
|
120
|
+
readonly dry_run: true;
|
|
121
|
+
readonly items: readonly [{
|
|
122
|
+
readonly table_id: 2188893443;
|
|
123
|
+
readonly rule_id: 2188893557;
|
|
124
|
+
readonly enabled: true;
|
|
125
|
+
readonly options: {
|
|
126
|
+
readonly user_scope: readonly [{
|
|
127
|
+
readonly type: "user";
|
|
128
|
+
readonly id: 2188889901;
|
|
129
|
+
}];
|
|
130
|
+
readonly policy: {
|
|
131
|
+
readonly key: "custom";
|
|
132
|
+
readonly actions: readonly ["view"];
|
|
133
|
+
readonly all_fields_read: true;
|
|
134
|
+
readonly all_fields_write: false;
|
|
135
|
+
};
|
|
136
|
+
readonly list_options: {};
|
|
137
|
+
};
|
|
138
|
+
}];
|
|
139
|
+
};
|
|
140
|
+
readonly notes: readonly ["dry_run true returns the planned operations without writing", "update_existing requires rule_id on every item"];
|
|
141
|
+
}];
|
|
142
|
+
};
|
|
143
|
+
readonly "admin.access-rule.create": {
|
|
144
|
+
readonly command: readonly ["access-rule", "create"];
|
|
145
|
+
readonly examples: readonly [{
|
|
146
|
+
readonly title: "full access for a specific arcubaseUserId";
|
|
147
|
+
readonly body: {
|
|
148
|
+
readonly name: "Admin full access";
|
|
149
|
+
readonly enabled: true;
|
|
150
|
+
readonly type: "form";
|
|
151
|
+
readonly options: {
|
|
152
|
+
readonly user_scope: readonly [{
|
|
153
|
+
readonly type: "user";
|
|
154
|
+
readonly id: 2188889977;
|
|
155
|
+
}];
|
|
156
|
+
readonly policy: {
|
|
157
|
+
readonly key: "custom";
|
|
158
|
+
readonly actions: readonly ["view", "add", "edit", "delete"];
|
|
159
|
+
readonly all_fields_read: true;
|
|
160
|
+
readonly all_fields_write: true;
|
|
161
|
+
};
|
|
162
|
+
readonly list_options: {};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
readonly title: "department can view/add/edit only rows created by themselves";
|
|
167
|
+
readonly body: {
|
|
168
|
+
readonly name: "Sales own rows";
|
|
169
|
+
readonly enabled: true;
|
|
170
|
+
readonly type: "form";
|
|
171
|
+
readonly options: {
|
|
172
|
+
readonly user_scope: readonly [{
|
|
173
|
+
readonly type: "department";
|
|
174
|
+
readonly id: 2188881201;
|
|
175
|
+
}];
|
|
176
|
+
readonly policy: {
|
|
177
|
+
readonly key: "custom";
|
|
178
|
+
readonly actions: readonly ["view", "add", "edit"];
|
|
179
|
+
readonly all_fields_read: true;
|
|
180
|
+
readonly all_fields_write: true;
|
|
181
|
+
readonly condition: {
|
|
182
|
+
readonly mode: "and";
|
|
183
|
+
readonly conditions: readonly [{
|
|
184
|
+
readonly column: "creator";
|
|
185
|
+
readonly operator: "$eq";
|
|
186
|
+
readonly value: "[[current_user]]";
|
|
187
|
+
readonly value_from: 0;
|
|
188
|
+
readonly value_relation: "";
|
|
189
|
+
}];
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly list_options: {};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly notes: readonly ["department scope includes child departments", "row-owner isolation uses [[current_user]] on creator"];
|
|
196
|
+
}, {
|
|
197
|
+
readonly title: "role actor can view rows matching a complex AND/OR condition";
|
|
198
|
+
readonly body: {
|
|
199
|
+
readonly name: "Sales manager review queue";
|
|
200
|
+
readonly enabled: true;
|
|
201
|
+
readonly type: "form";
|
|
202
|
+
readonly options: {
|
|
203
|
+
readonly user_scope: readonly [{
|
|
204
|
+
readonly type: "actor";
|
|
205
|
+
readonly id: 2188883301;
|
|
206
|
+
}];
|
|
207
|
+
readonly policy: {
|
|
208
|
+
readonly key: "custom";
|
|
209
|
+
readonly actions: readonly ["view", "edit"];
|
|
210
|
+
readonly all_fields_read: true;
|
|
211
|
+
readonly all_fields_write: true;
|
|
212
|
+
readonly condition: {
|
|
213
|
+
readonly mode: "and";
|
|
214
|
+
readonly conditions: readonly [{
|
|
215
|
+
readonly column: ":1004";
|
|
216
|
+
readonly operator: "$eq";
|
|
217
|
+
readonly value: "pending";
|
|
218
|
+
readonly value_from: 0;
|
|
219
|
+
readonly value_relation: "";
|
|
220
|
+
}, {
|
|
221
|
+
readonly column: "";
|
|
222
|
+
readonly operator: "";
|
|
223
|
+
readonly value: null;
|
|
224
|
+
readonly value_from: 0;
|
|
225
|
+
readonly value_relation: "";
|
|
226
|
+
readonly subset: {
|
|
227
|
+
readonly mode: "or";
|
|
228
|
+
readonly conditions: readonly [{
|
|
229
|
+
readonly column: "creator";
|
|
230
|
+
readonly operator: "$eq";
|
|
231
|
+
readonly value: "[[current_user]]";
|
|
232
|
+
readonly value_from: 0;
|
|
233
|
+
readonly value_relation: "";
|
|
234
|
+
}, {
|
|
235
|
+
readonly column: ":1005";
|
|
236
|
+
readonly operator: "$eq";
|
|
237
|
+
readonly value: "high";
|
|
238
|
+
readonly value_from: 0;
|
|
239
|
+
readonly value_relation: "";
|
|
240
|
+
}];
|
|
241
|
+
};
|
|
242
|
+
}];
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
readonly list_options: {};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
readonly notes: readonly ["actor means Arcubase role id", "condition mode \"and\" and \"or\" are canonical; legacy \"all\" also reads as AND", "nested OR uses subset and leaves the wrapper column/operator empty"];
|
|
249
|
+
}];
|
|
250
|
+
};
|
|
251
|
+
readonly "user.row.bulk-update": {
|
|
252
|
+
readonly command: readonly ["row", "bulk-update"];
|
|
253
|
+
readonly examples: readonly [{
|
|
254
|
+
readonly title: "bulk update explicit row ids";
|
|
255
|
+
readonly body: {
|
|
256
|
+
readonly selection: {
|
|
257
|
+
readonly type: "ids";
|
|
258
|
+
readonly ids: readonly [2188890411, 2188890412];
|
|
259
|
+
readonly length: 2;
|
|
260
|
+
};
|
|
261
|
+
readonly fields: readonly [{
|
|
262
|
+
readonly id: 1003;
|
|
263
|
+
readonly action: {
|
|
264
|
+
readonly type: "set";
|
|
265
|
+
readonly value: 2;
|
|
266
|
+
};
|
|
267
|
+
}];
|
|
268
|
+
};
|
|
269
|
+
}, {
|
|
270
|
+
readonly title: "bulk update rows selected by a search condition";
|
|
271
|
+
readonly body: {
|
|
272
|
+
readonly selection: {
|
|
273
|
+
readonly type: "condition";
|
|
274
|
+
readonly condition: {
|
|
275
|
+
readonly selectAll: true;
|
|
276
|
+
readonly q: "SO-1001";
|
|
277
|
+
};
|
|
278
|
+
readonly length: 0;
|
|
279
|
+
};
|
|
280
|
+
readonly fields: readonly [{
|
|
281
|
+
readonly id: 1003;
|
|
282
|
+
readonly action: {
|
|
283
|
+
readonly type: "set";
|
|
284
|
+
readonly value: 2;
|
|
285
|
+
};
|
|
286
|
+
}];
|
|
287
|
+
};
|
|
288
|
+
readonly notes: readonly ["condition selection uses row-query style keys such as q, tab, and filter_:1002"];
|
|
289
|
+
}];
|
|
290
|
+
};
|
|
291
|
+
readonly "user.row.selection-action": {
|
|
292
|
+
readonly command: readonly ["row", "selection-action"];
|
|
293
|
+
readonly examples: readonly [{
|
|
294
|
+
readonly title: "run a custom action against explicit row ids";
|
|
295
|
+
readonly body: {
|
|
296
|
+
readonly selection: {
|
|
297
|
+
readonly type: "ids";
|
|
298
|
+
readonly ids: readonly [2188890411];
|
|
299
|
+
readonly length: 1;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
readonly notes: readonly ["pass the backend action code with --action", "for query action, use ids or all selection instead of condition selection"];
|
|
303
|
+
}, {
|
|
304
|
+
readonly title: "run a custom action against a filtered selection";
|
|
305
|
+
readonly body: {
|
|
306
|
+
readonly selection: {
|
|
307
|
+
readonly type: "condition";
|
|
308
|
+
readonly condition: {
|
|
309
|
+
readonly selectAll: true;
|
|
310
|
+
readonly q: "SO-1001";
|
|
311
|
+
};
|
|
312
|
+
readonly length: 0;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
readonly notes: readonly ["condition selection uses row-query style keys such as q, tab, and filter_:1002"];
|
|
316
|
+
}];
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
//# sourceMappingURL=help_examples.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help_examples.generated.d.ts","sourceRoot":"","sources":["../../src/generated/help_examples.generated.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmbgF,CAAA"}
|