@carthooks/arcubase-cli 0.1.15 → 0.1.16
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.
|
@@ -17525,7 +17525,7 @@ function renderCommandHelp(scope, moduleName, commandName, env = process.env) {
|
|
|
17525
17525
|
...scope === "admin" && command.commandPath[0] === "app" && command.commandPath[1] === "create-from-bundle-url" ? [
|
|
17526
17526
|
"flags:",
|
|
17527
17527
|
" - --url must be a public http/https app bundle zip URL",
|
|
17528
|
-
" - --name
|
|
17528
|
+
" - --name is accepted for compatibility; imported app name comes from the bundle source app",
|
|
17529
17529
|
"success:",
|
|
17530
17530
|
" - returns task_id; use app watch-import-task to wait for completion"
|
|
17531
17531
|
] : [],
|
|
@@ -17534,7 +17534,7 @@ function renderCommandHelp(scope, moduleName, commandName, env = process.env) {
|
|
|
17534
17534
|
" - --task-id is returned by app create-from-bundle-url",
|
|
17535
17535
|
" - --ttl-seconds is a local wait limit and does not cancel the backend task",
|
|
17536
17536
|
"success:",
|
|
17537
|
-
" - returns finished task status with app_id and warnings"
|
|
17537
|
+
" - returns finished task status with app_id, name, and warnings"
|
|
17538
17538
|
] : [],
|
|
17539
17539
|
...scope === "user" && command.commandPath[0] === "row" && command.commandPath[1] === "import-excel" ? [
|
|
17540
17540
|
"mapping-file example:",
|
package/bundle/arcubase.mjs
CHANGED
|
@@ -17525,7 +17525,7 @@ function renderCommandHelp(scope, moduleName, commandName, env = process.env) {
|
|
|
17525
17525
|
...scope === "admin" && command.commandPath[0] === "app" && command.commandPath[1] === "create-from-bundle-url" ? [
|
|
17526
17526
|
"flags:",
|
|
17527
17527
|
" - --url must be a public http/https app bundle zip URL",
|
|
17528
|
-
" - --name
|
|
17528
|
+
" - --name is accepted for compatibility; imported app name comes from the bundle source app",
|
|
17529
17529
|
"success:",
|
|
17530
17530
|
" - returns task_id; use app watch-import-task to wait for completion"
|
|
17531
17531
|
] : [],
|
|
@@ -17534,7 +17534,7 @@ function renderCommandHelp(scope, moduleName, commandName, env = process.env) {
|
|
|
17534
17534
|
" - --task-id is returned by app create-from-bundle-url",
|
|
17535
17535
|
" - --ttl-seconds is a local wait limit and does not cancel the backend task",
|
|
17536
17536
|
"success:",
|
|
17537
|
-
" - returns finished task status with app_id and warnings"
|
|
17537
|
+
" - returns finished task status with app_id, name, and warnings"
|
|
17538
17538
|
] : [],
|
|
17539
17539
|
...scope === "user" && command.commandPath[0] === "row" && command.commandPath[1] === "import-excel" ? [
|
|
17540
17540
|
"mapping-file example:",
|
package/dist/runtime/execute.js
CHANGED
|
@@ -133,7 +133,7 @@ export function renderCommandHelp(scope, moduleName, commandName, env = process.
|
|
|
133
133
|
? [
|
|
134
134
|
'flags:',
|
|
135
135
|
' - --url must be a public http/https app bundle zip URL',
|
|
136
|
-
' - --name
|
|
136
|
+
' - --name is accepted for compatibility; imported app name comes from the bundle source app',
|
|
137
137
|
'success:',
|
|
138
138
|
' - returns task_id; use app watch-import-task to wait for completion',
|
|
139
139
|
]
|
|
@@ -144,7 +144,7 @@ export function renderCommandHelp(scope, moduleName, commandName, env = process.
|
|
|
144
144
|
' - --task-id is returned by app create-from-bundle-url',
|
|
145
145
|
' - --ttl-seconds is a local wait limit and does not cancel the backend task',
|
|
146
146
|
'success:',
|
|
147
|
-
' - returns finished task status with app_id and warnings',
|
|
147
|
+
' - returns finished task status with app_id, name, and warnings',
|
|
148
148
|
]
|
|
149
149
|
: []),
|
|
150
150
|
...(scope === 'user' && command.commandPath[0] === 'row' && command.commandPath[1] === 'import-excel'
|
package/package.json
CHANGED
|
@@ -43,6 +43,8 @@ arcubase-admin table update-schema --app-id <app_id> --table-id <table_id> --bod
|
|
|
43
43
|
arcubase-admin access-rule assign-users --app-id <app_id> --table-id <table_id> --rule-id <rule_id> --body-json <json-string> | --body-file assign-users.json
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
`app create-from-bundle-url --name` is accepted for compatibility; imported app name comes from the bundle source app.
|
|
47
|
+
|
|
46
48
|
`--ttl-seconds` is a local wait limit. It does not cancel the backend import task.
|
|
47
49
|
|
|
48
50
|
Use `arcubase` for:
|
package/src/runtime/execute.ts
CHANGED
|
@@ -150,7 +150,7 @@ export function renderCommandHelp(scope: CommandScope, moduleName: string, comma
|
|
|
150
150
|
? [
|
|
151
151
|
'flags:',
|
|
152
152
|
' - --url must be a public http/https app bundle zip URL',
|
|
153
|
-
' - --name
|
|
153
|
+
' - --name is accepted for compatibility; imported app name comes from the bundle source app',
|
|
154
154
|
'success:',
|
|
155
155
|
' - returns task_id; use app watch-import-task to wait for completion',
|
|
156
156
|
]
|
|
@@ -161,7 +161,7 @@ export function renderCommandHelp(scope: CommandScope, moduleName: string, comma
|
|
|
161
161
|
' - --task-id is returned by app create-from-bundle-url',
|
|
162
162
|
' - --ttl-seconds is a local wait limit and does not cancel the backend task',
|
|
163
163
|
'success:',
|
|
164
|
-
' - returns finished task status with app_id and warnings',
|
|
164
|
+
' - returns finished task status with app_id, name, and warnings',
|
|
165
165
|
]
|
|
166
166
|
: []),
|
|
167
167
|
...(scope === 'user' && command.commandPath[0] === 'row' && command.commandPath[1] === 'import-excel'
|
|
@@ -229,7 +229,7 @@ test('app create-from-bundle-url rejects unsupported url scheme before request',
|
|
|
229
229
|
test('app watch-import-task polls until finished', async () => {
|
|
230
230
|
const statuses = [
|
|
231
231
|
{ data: { task_id: 'task-1', status: 'processing' } },
|
|
232
|
-
{ data: { task_id: 'task-1', status: 'finished', app_id: 2188889999 } },
|
|
232
|
+
{ data: { task_id: 'task-1', status: 'finished', app_id: 2188889999, name: '企业基础业务数据应用' } },
|
|
233
233
|
]
|
|
234
234
|
const calls: string[] = []
|
|
235
235
|
const out = await executeCLI(
|
|
@@ -243,6 +243,7 @@ test('app watch-import-task polls until finished', async () => {
|
|
|
243
243
|
)
|
|
244
244
|
assert.equal(calls.length, 2)
|
|
245
245
|
assert.equal((out as any).data.data.status, 'finished')
|
|
246
|
+
assert.equal((out as any).data.data.name, '企业基础业务数据应用')
|
|
246
247
|
})
|
|
247
248
|
|
|
248
249
|
test('app watch-import-task rejects finished status without app id', async () => {
|