@eide/foir-cli 0.1.46 → 0.1.47

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/dist/cli.js CHANGED
@@ -1477,162 +1477,7 @@ function registerCreateConfigCommand(program2, globalOpts) {
1477
1477
  }
1478
1478
 
1479
1479
  // src/graphql/generated.ts
1480
- var GlobalSearchDocument = {
1481
- kind: "Document",
1482
- definitions: [
1483
- {
1484
- kind: "OperationDefinition",
1485
- operation: "query",
1486
- name: { kind: "Name", value: "GlobalSearch" },
1487
- variableDefinitions: [
1488
- {
1489
- kind: "VariableDefinition",
1490
- variable: {
1491
- kind: "Variable",
1492
- name: { kind: "Name", value: "query" }
1493
- },
1494
- type: {
1495
- kind: "NonNullType",
1496
- type: {
1497
- kind: "NamedType",
1498
- name: { kind: "Name", value: "String" }
1499
- }
1500
- }
1501
- },
1502
- {
1503
- kind: "VariableDefinition",
1504
- variable: {
1505
- kind: "Variable",
1506
- name: { kind: "Name", value: "limit" }
1507
- },
1508
- type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }
1509
- },
1510
- {
1511
- kind: "VariableDefinition",
1512
- variable: {
1513
- kind: "Variable",
1514
- name: { kind: "Name", value: "modelKeys" }
1515
- },
1516
- type: {
1517
- kind: "ListType",
1518
- type: {
1519
- kind: "NonNullType",
1520
- type: {
1521
- kind: "NamedType",
1522
- name: { kind: "Name", value: "String" }
1523
- }
1524
- }
1525
- }
1526
- },
1527
- {
1528
- kind: "VariableDefinition",
1529
- variable: {
1530
- kind: "Variable",
1531
- name: { kind: "Name", value: "includeMedia" }
1532
- },
1533
- type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } }
1534
- }
1535
- ],
1536
- selectionSet: {
1537
- kind: "SelectionSet",
1538
- selections: [
1539
- {
1540
- kind: "Field",
1541
- name: { kind: "Name", value: "globalSearch" },
1542
- arguments: [
1543
- {
1544
- kind: "Argument",
1545
- name: { kind: "Name", value: "query" },
1546
- value: {
1547
- kind: "Variable",
1548
- name: { kind: "Name", value: "query" }
1549
- }
1550
- },
1551
- {
1552
- kind: "Argument",
1553
- name: { kind: "Name", value: "limit" },
1554
- value: {
1555
- kind: "Variable",
1556
- name: { kind: "Name", value: "limit" }
1557
- }
1558
- },
1559
- {
1560
- kind: "Argument",
1561
- name: { kind: "Name", value: "modelKeys" },
1562
- value: {
1563
- kind: "Variable",
1564
- name: { kind: "Name", value: "modelKeys" }
1565
- }
1566
- },
1567
- {
1568
- kind: "Argument",
1569
- name: { kind: "Name", value: "includeMedia" },
1570
- value: {
1571
- kind: "Variable",
1572
- name: { kind: "Name", value: "includeMedia" }
1573
- }
1574
- }
1575
- ],
1576
- selectionSet: {
1577
- kind: "SelectionSet",
1578
- selections: [
1579
- {
1580
- kind: "Field",
1581
- name: { kind: "Name", value: "records" },
1582
- selectionSet: {
1583
- kind: "SelectionSet",
1584
- selections: [
1585
- { kind: "Field", name: { kind: "Name", value: "id" } },
1586
- {
1587
- kind: "Field",
1588
- name: { kind: "Name", value: "modelKey" }
1589
- },
1590
- { kind: "Field", name: { kind: "Name", value: "title" } },
1591
- {
1592
- kind: "Field",
1593
- name: { kind: "Name", value: "naturalKey" }
1594
- },
1595
- {
1596
- kind: "Field",
1597
- name: { kind: "Name", value: "subtitle" }
1598
- },
1599
- {
1600
- kind: "Field",
1601
- name: { kind: "Name", value: "updatedAt" }
1602
- }
1603
- ]
1604
- }
1605
- },
1606
- {
1607
- kind: "Field",
1608
- name: { kind: "Name", value: "media" },
1609
- selectionSet: {
1610
- kind: "SelectionSet",
1611
- selections: [
1612
- { kind: "Field", name: { kind: "Name", value: "id" } },
1613
- {
1614
- kind: "Field",
1615
- name: { kind: "Name", value: "fileName" }
1616
- },
1617
- {
1618
- kind: "Field",
1619
- name: { kind: "Name", value: "altText" }
1620
- },
1621
- {
1622
- kind: "Field",
1623
- name: { kind: "Name", value: "fileUrl" }
1624
- }
1625
- ]
1626
- }
1627
- }
1628
- ]
1629
- }
1630
- }
1631
- ]
1632
- }
1633
- }
1634
- ]
1635
- };
1480
+ var GlobalSearchDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GlobalSearch" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "query" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "modelKeys" } }, "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "includeMedia" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "globalSearch" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "query" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "query" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "modelKeys" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "modelKeys" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "includeMedia" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "includeMedia" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "records" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "modelKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "naturalKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "subtitle" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "media" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "altText" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileUrl" } }] } }] } }] } }] };
1636
1481
 
1637
1482
  // src/commands/search.ts
1638
1483
  function registerSearchCommands(program2, globalOpts) {
@@ -90,6 +90,8 @@ type ApplyConfigModelInput = {
90
90
  category?: InputMaybe<Scalars['String']['input']>;
91
91
  config?: InputMaybe<ModelConfigInput>;
92
92
  description?: InputMaybe<Scalars['String']['input']>;
93
+ /** Which data field to display as the record name in list views */
94
+ displayField?: InputMaybe<Scalars['String']['input']>;
93
95
  /** Array of field definitions (must be an array, not an object!) */
94
96
  fields: Array<FieldDefinitionInput>;
95
97
  hooks?: InputMaybe<Scalars['JSON']['input']>;
@@ -4444,6 +4444,9 @@ input ApplyConfigModelInput {
4444
4444
  category: String
4445
4445
  icon: String
4446
4446
 
4447
+ """Which data field to display as the record name in list views"""
4448
+ displayField: String
4449
+
4447
4450
  """Array of field definitions (must be an array, not an object!)"""
4448
4451
  fields: [FieldDefinitionInput!]!
4449
4452
  config: ModelConfigInput
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-cli",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "Universal platform CLI for Foir platform",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "repository": {
81
81
  "type": "git",
82
- "url": "https://github.com/eidebuild/eide.git",
82
+ "url": "https://github.com/eidestudio/foir.git",
83
83
  "directory": "packages/cli"
84
84
  }
85
85
  }