@open-mercato/core 0.6.6-develop.6536.1.799f7f795b → 0.6.6-develop.6540.1.ae856df1ec
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/api_keys/cli.js +2 -1
- package/dist/modules/api_keys/cli.js.map +2 -2
- package/dist/modules/auth/api/users/route.js +6 -2
- package/dist/modules/auth/api/users/route.js.map +2 -2
- package/dist/modules/auth/cli.js +3 -2
- package/dist/modules/auth/cli.js.map +2 -2
- package/dist/modules/dashboards/cli.js +4 -3
- package/dist/modules/dashboards/cli.js.map +2 -2
- package/dist/modules/directory/utils/organizationScope.js +10 -3
- package/dist/modules/directory/utils/organizationScope.js.map +2 -2
- package/dist/modules/entities/api/records.js +5 -4
- package/dist/modules/entities/api/records.js.map +2 -2
- package/dist/modules/entities/cli.js +2 -1
- package/dist/modules/entities/cli.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/api_keys/cli.ts +2 -3
- package/src/modules/auth/api/users/route.ts +11 -2
- package/src/modules/auth/cli.ts +3 -2
- package/src/modules/dashboards/cli.ts +4 -9
- package/src/modules/directory/utils/organizationScope.ts +36 -2
- package/src/modules/entities/api/records.ts +5 -7
- package/src/modules/entities/cli.ts +2 -1
|
@@ -10,6 +10,7 @@ import readline from 'node:readline/promises'
|
|
|
10
10
|
import { stdin as input, stdout as output } from 'node:process'
|
|
11
11
|
import { isTenantDataEncryptionEnabled } from '@open-mercato/shared/lib/encryption/toggles'
|
|
12
12
|
import { parseBooleanToken } from '@open-mercato/shared/lib/boolean'
|
|
13
|
+
import { parseCommaSeparatedList } from '@open-mercato/shared/lib/string'
|
|
13
14
|
import { createKmsService, type KmsService, type TenantDek } from '@open-mercato/shared/lib/encryption/kms'
|
|
14
15
|
import {
|
|
15
16
|
decryptWithAesGcm,
|
|
@@ -193,7 +194,7 @@ const addField: ModuleCli = {
|
|
|
193
194
|
let options: string[] | undefined
|
|
194
195
|
if (kind === 'select') {
|
|
195
196
|
const raw = (args.options as string) || await ask('Options (comma-separated)', 'low,medium,high')
|
|
196
|
-
options = raw
|
|
197
|
+
options = parseCommaSeparatedList(raw)
|
|
197
198
|
}
|
|
198
199
|
let defaultValue: any = undefined
|
|
199
200
|
const defRaw = (args.default as string) ?? (args.defaultValue as string)
|