zinkee 0.1.12 → 0.1.17
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/AGENTS.md +42 -0
- package/README.md +7 -0
- package/dist/index.js +967 -1425
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/records.ts +7 -0
- package/src/cli-examples.ts +3 -58
- package/src/cli-runner.ts +1 -5
- package/src/command-registry.ts +7 -0
- package/src/commands/automations.test.ts +5 -5
- package/src/commands/displays.test.ts +2 -2
- package/src/commands/records.test.ts +58 -0
- package/src/commands/records.ts +19 -0
- package/src/index.test.ts +1 -8
- package/src/utils/examples.test.ts +22 -1
- package/src/utils/examples.ts +34 -566
- package/src/utils/schema-fields.ts +12 -10
- package/.claude/settings.local.json +0 -44
|
@@ -421,7 +421,7 @@ const fieldTypeDefinitions = [
|
|
|
421
421
|
targetSchema: "5223cbc8-8c6c-4694-93bc-dd176364df9b",
|
|
422
422
|
targetDisplayField: "c60b8526-5835-4c9f-aecd-9a16c7704a34",
|
|
423
423
|
deleteBehavior: "RESTRICT",
|
|
424
|
-
defaultValue: "
|
|
424
|
+
defaultValue: "CUST-12",
|
|
425
425
|
filterFields: [
|
|
426
426
|
{
|
|
427
427
|
fatherField: "c60b8526-5835-4c9f-aecd-9a16c7704a34",
|
|
@@ -450,17 +450,18 @@ const fieldTypeDefinitions = [
|
|
|
450
450
|
aliases: ["formula", "FormulaField"],
|
|
451
451
|
description: "Calculated field from a formula.",
|
|
452
452
|
rawShape:
|
|
453
|
-
'{"type":"FormulaField","slug":"formula-
|
|
453
|
+
'{"type":"FormulaField","slug":"formula-code","label":"Formula Code","config":{"formulaText":"concat(\\"CUST-\\", f1e1d000-0000-0000-0000-000000000005)","uiFormatKind":"none"}}',
|
|
454
454
|
examplePayloads: [
|
|
455
455
|
{
|
|
456
456
|
name: "Formula field (none)",
|
|
457
457
|
payload: {
|
|
458
458
|
type: "FormulaField",
|
|
459
|
-
slug: "formula-
|
|
460
|
-
label: "Formula
|
|
459
|
+
slug: "formula-code",
|
|
460
|
+
label: "Formula Code",
|
|
461
461
|
required: false,
|
|
462
462
|
config: {
|
|
463
|
-
formulaText:
|
|
463
|
+
formulaText:
|
|
464
|
+
'concat("CUST-", f1e1d000-0000-0000-0000-000000000005)',
|
|
464
465
|
uiFormatKind: "none",
|
|
465
466
|
status: "ACTIVE",
|
|
466
467
|
conditionalFormatting: [],
|
|
@@ -475,7 +476,7 @@ const fieldTypeDefinitions = [
|
|
|
475
476
|
label: "Formula Total",
|
|
476
477
|
required: false,
|
|
477
478
|
config: {
|
|
478
|
-
formulaText: "
|
|
479
|
+
formulaText: "c52efe3f-2825-4c60-a7e3-34dd4c1ce043 * 1.21",
|
|
479
480
|
uiFormatKind: "number",
|
|
480
481
|
status: "ACTIVE",
|
|
481
482
|
numberFormatOptions: {
|
|
@@ -491,11 +492,12 @@ const fieldTypeDefinitions = [
|
|
|
491
492
|
name: "Formula field (date)",
|
|
492
493
|
payload: {
|
|
493
494
|
type: "FormulaField",
|
|
494
|
-
slug: "formula-
|
|
495
|
-
label: "
|
|
495
|
+
slug: "formula-period",
|
|
496
|
+
label: "Formula Period",
|
|
496
497
|
required: false,
|
|
497
498
|
config: {
|
|
498
|
-
formulaText:
|
|
499
|
+
formulaText:
|
|
500
|
+
'date_format(d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90, "AAAA-MM")',
|
|
499
501
|
uiFormatKind: "date",
|
|
500
502
|
status: "ACTIVE",
|
|
501
503
|
dateFormatOptions: {
|
|
@@ -515,7 +517,7 @@ const fieldTypeDefinitions = [
|
|
|
515
517
|
label: "Computed Assignee",
|
|
516
518
|
required: false,
|
|
517
519
|
config: {
|
|
518
|
-
formulaText: "
|
|
520
|
+
formulaText: "a7b8c9d0-e1f2-3a4b-5c6d-7e8f90123456",
|
|
519
521
|
uiFormatKind: "member",
|
|
520
522
|
status: "ACTIVE",
|
|
521
523
|
conditionalFormatting: [],
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(npm test *)",
|
|
5
|
-
"Bash(npm run *)",
|
|
6
|
-
"Bash(pnpm typecheck *)",
|
|
7
|
-
"Bash(pnpm test *)",
|
|
8
|
-
"Bash(npx tsc *)",
|
|
9
|
-
"Read(//home/guillermo/dev/z2-backend/api/src/main/java/com/zinkee/api/domain/model/v2/log/**)",
|
|
10
|
-
"Read(//home/guillermo/dev/z2-backend/**)",
|
|
11
|
-
"Bash(grep *)",
|
|
12
|
-
"Bash(npx vitest *)",
|
|
13
|
-
"Bash(npx tsx *)",
|
|
14
|
-
"Bash(node dist/index.js --help)",
|
|
15
|
-
"Bash(gh repo *)",
|
|
16
|
-
"WebFetch(domain:github.com)",
|
|
17
|
-
"Bash(git config *)",
|
|
18
|
-
"Read(//home/guillermo/.config/**)",
|
|
19
|
-
"Read(//home/guillermo/**)",
|
|
20
|
-
"Bash(curl *)",
|
|
21
|
-
"Bash(node dist/index.js --show-completion zsh)",
|
|
22
|
-
"Bash(node *)",
|
|
23
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee\" COMP_CWORD=1 node *)",
|
|
24
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas\" COMP_CWORD=2 node *)",
|
|
25
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas fields\" COMP_CWORD=3 node dist/index.js)",
|
|
26
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas fields cr\" COMP_CWORD=3 node dist/index.js)",
|
|
27
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas list --j\" COMP_CWORD=3 node dist/index.js)",
|
|
28
|
-
"Bash(rm -rf /tmp/zinkee-install)",
|
|
29
|
-
"Bash(mkdir -p /tmp/zinkee-install)",
|
|
30
|
-
"Bash(HOME=/tmp/zinkee-install SHELL=/bin/zsh node dist/index.js --install-completion)",
|
|
31
|
-
"Read(//tmp/**)",
|
|
32
|
-
"Read(//tmp/zinkee-install/**)",
|
|
33
|
-
"Bash(rm -rf /tmp/zinkee-install-bash)",
|
|
34
|
-
"Bash(mkdir -p /tmp/zinkee-install-bash)",
|
|
35
|
-
"Bash(HOME=/tmp/zinkee-install-bash SHELL=/bin/bash node dist/index.js --install-completion)",
|
|
36
|
-
"Bash(rm -rf /tmp/zinkee-install-fish)",
|
|
37
|
-
"Bash(mkdir -p /tmp/zinkee-install-fish)",
|
|
38
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete node dist/index.js)",
|
|
39
|
-
"Bash(echo \"exit: $?\")",
|
|
40
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas\" COMP_CWORD=abc node dist/index.js)",
|
|
41
|
-
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee config show --foo --bar baz quux ?\" COMP_CWORD=10 node dist/index.js)"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
}
|