@factorialco/fcode-cli 1.4.0 → 1.5.0

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/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @factorialco/fcode-cli
20
20
  $ fcode COMMAND
21
21
  running command...
22
22
  $ fcode (--version)
23
- @factorialco/fcode-cli/1.4.0 linux-x64 node-v22.22.3
23
+ @factorialco/fcode-cli/1.5.0 linux-x64 node-v22.22.3
24
24
  $ fcode --help [COMMAND]
25
25
  USAGE
26
26
  $ fcode COMMAND
@@ -103,21 +103,17 @@ export interface ProcessWebhook {
103
103
  username?: string;
104
104
  password?: string;
105
105
  }
106
- export type AppRole = 'INSTALL' | 'SETTINGS' | 'USER_FACING_FORM' | 'NONE';
106
+ export type AppRole = 'INSTALL' | 'SETTINGS' | 'USER_FACING_FORM' | 'UNINSTALL' | 'NONE';
107
107
  export interface ProcessForm {
108
108
  enabled: boolean;
109
109
  appRole?: AppRole;
110
110
  }
111
- export interface ProcessVisibility {
112
- isPublic: boolean;
113
- }
114
111
  export interface ProcessMetadataFields {
115
112
  name: string;
116
113
  description?: string;
117
114
  tags: string[];
118
115
  webhook?: ProcessWebhook;
119
116
  form?: ProcessForm;
120
- visibility?: ProcessVisibility;
121
117
  }
122
118
  export declare class Process extends Resource {
123
119
  id: string;
@@ -128,7 +124,6 @@ export declare class Process extends Resource {
128
124
  tags: string[];
129
125
  webhook?: ProcessWebhook;
130
126
  form?: ProcessForm;
131
- visibility?: ProcessVisibility;
132
127
  script: {
133
128
  parametersSchema: any;
134
129
  programmingLanguage: ProgrammingLanguage;
@@ -47,7 +47,6 @@ class Process extends Resource {
47
47
  this.tags = metadata.tags;
48
48
  this.webhook = metadata.webhook;
49
49
  this.form = metadata.form;
50
- this.visibility = metadata.visibility;
51
50
  this.script = script;
52
51
  this.readme = readme;
53
52
  this.manifest = settings.dependencies.scopedToProcess && manifest !== null ? manifest : { dependencies: [] };
@@ -64,7 +63,6 @@ class Process extends Resource {
64
63
  tags: this.tags || [],
65
64
  webhook: this.webhook || null,
66
65
  form: this.form || null,
67
- visibility: this.visibility || null,
68
66
  manifestDependencies: this.manifest.dependencies,
69
67
  dependenciesScopedToProcess: this.settings.dependencies.scopedToProcess,
70
68
  });
@@ -136,7 +136,6 @@ class ProcessRepository extends resource_1.default {
136
136
  tags: Array.isArray(raw.tags) ? raw.tags : [],
137
137
  webhook: raw.webhook,
138
138
  form: raw.form,
139
- visibility: raw.visibility,
140
139
  };
141
140
  }
142
141
  catch (error) {
@@ -157,9 +156,6 @@ class ProcessRepository extends resource_1.default {
157
156
  if (process.form !== undefined) {
158
157
  metadata.form = process.form;
159
158
  }
160
- if (process.visibility !== undefined) {
161
- metadata.visibility = process.visibility;
162
- }
163
159
  return metadata;
164
160
  }
165
161
  async findParameters(processSlug) {
@@ -45,9 +45,6 @@ const PROCESS_FIELDS = `
45
45
  enabled
46
46
  appRole
47
47
  }
48
- publicationConfig {
49
- isPublic
50
- }
51
48
  dependencies {
52
49
  scopedToProcess
53
50
  }
@@ -281,9 +278,6 @@ class FcodeGraphQLClient {
281
278
  settings.formSettings.appRole = process.form.appRole;
282
279
  }
283
280
  }
284
- if (process.visibility) {
285
- settings.publicationConfig = { isPublic: process.visibility.isPublic };
286
- }
287
281
  const input = {
288
282
  name: process.name,
289
283
  parametersSchema: process.script.parametersSchema,
@@ -577,9 +571,6 @@ class FcodeGraphQLClient {
577
571
  metadata.form.appRole = settings.formSettings.appRole;
578
572
  }
579
573
  }
580
- if (settings?.publicationConfig) {
581
- metadata.visibility = { isPublic: Boolean(settings.publicationConfig.isPublic) };
582
- }
583
574
  return new types_1.Process(id, slug, script, readme, { dependencies }, settings, metadata, this.inheritedTeam(resolvingTeamSlug));
584
575
  }
585
576
  team() {
@@ -1479,83 +1479,6 @@
1479
1479
  "set.js"
1480
1480
  ]
1481
1481
  },
1482
- "team:pull": {
1483
- "aliases": [],
1484
- "args": {},
1485
- "description": "Fetch team settings (timezone, error handler, inheritance) from cloud into team.json",
1486
- "examples": [
1487
- "$ fcode team:pull"
1488
- ],
1489
- "flags": {},
1490
- "hasDynamicHelp": false,
1491
- "hiddenAliases": [],
1492
- "id": "team:pull",
1493
- "pluginAlias": "@factorialco/fcode-cli",
1494
- "pluginName": "@factorialco/fcode-cli",
1495
- "pluginType": "core",
1496
- "strict": true,
1497
- "isESM": false,
1498
- "relativePath": [
1499
- "dist",
1500
- "commands",
1501
- "team",
1502
- "pull.js"
1503
- ]
1504
- },
1505
- "team:push": {
1506
- "aliases": [],
1507
- "args": {},
1508
- "description": "Update cloud team settings (timezone, error handler, inheritance) from team.json",
1509
- "examples": [
1510
- "$ fcode team:push"
1511
- ],
1512
- "flags": {
1513
- "force": {
1514
- "char": "f",
1515
- "description": "Force command",
1516
- "name": "force",
1517
- "allowNo": false,
1518
- "type": "boolean"
1519
- }
1520
- },
1521
- "hasDynamicHelp": false,
1522
- "hiddenAliases": [],
1523
- "id": "team:push",
1524
- "pluginAlias": "@factorialco/fcode-cli",
1525
- "pluginName": "@factorialco/fcode-cli",
1526
- "pluginType": "core",
1527
- "strict": true,
1528
- "isESM": false,
1529
- "relativePath": [
1530
- "dist",
1531
- "commands",
1532
- "team",
1533
- "push.js"
1534
- ]
1535
- },
1536
- "team:status": {
1537
- "aliases": [],
1538
- "args": {},
1539
- "description": "Show whether team settings (timezone, error handler, inheritance) differ from the cloud",
1540
- "examples": [
1541
- "$ fcode team:status"
1542
- ],
1543
- "flags": {},
1544
- "hasDynamicHelp": false,
1545
- "hiddenAliases": [],
1546
- "id": "team:status",
1547
- "pluginAlias": "@factorialco/fcode-cli",
1548
- "pluginName": "@factorialco/fcode-cli",
1549
- "pluginType": "core",
1550
- "strict": true,
1551
- "isESM": false,
1552
- "relativePath": [
1553
- "dist",
1554
- "commands",
1555
- "team",
1556
- "status.js"
1557
- ]
1558
- },
1559
1482
  "test:scaffold": {
1560
1483
  "aliases": [],
1561
1484
  "args": {
@@ -1777,7 +1700,84 @@
1777
1700
  "variables",
1778
1701
  "status.js"
1779
1702
  ]
1703
+ },
1704
+ "team:pull": {
1705
+ "aliases": [],
1706
+ "args": {},
1707
+ "description": "Fetch team settings (timezone, error handler, inheritance) from cloud into team.json",
1708
+ "examples": [
1709
+ "$ fcode team:pull"
1710
+ ],
1711
+ "flags": {},
1712
+ "hasDynamicHelp": false,
1713
+ "hiddenAliases": [],
1714
+ "id": "team:pull",
1715
+ "pluginAlias": "@factorialco/fcode-cli",
1716
+ "pluginName": "@factorialco/fcode-cli",
1717
+ "pluginType": "core",
1718
+ "strict": true,
1719
+ "isESM": false,
1720
+ "relativePath": [
1721
+ "dist",
1722
+ "commands",
1723
+ "team",
1724
+ "pull.js"
1725
+ ]
1726
+ },
1727
+ "team:push": {
1728
+ "aliases": [],
1729
+ "args": {},
1730
+ "description": "Update cloud team settings (timezone, error handler, inheritance) from team.json",
1731
+ "examples": [
1732
+ "$ fcode team:push"
1733
+ ],
1734
+ "flags": {
1735
+ "force": {
1736
+ "char": "f",
1737
+ "description": "Force command",
1738
+ "name": "force",
1739
+ "allowNo": false,
1740
+ "type": "boolean"
1741
+ }
1742
+ },
1743
+ "hasDynamicHelp": false,
1744
+ "hiddenAliases": [],
1745
+ "id": "team:push",
1746
+ "pluginAlias": "@factorialco/fcode-cli",
1747
+ "pluginName": "@factorialco/fcode-cli",
1748
+ "pluginType": "core",
1749
+ "strict": true,
1750
+ "isESM": false,
1751
+ "relativePath": [
1752
+ "dist",
1753
+ "commands",
1754
+ "team",
1755
+ "push.js"
1756
+ ]
1757
+ },
1758
+ "team:status": {
1759
+ "aliases": [],
1760
+ "args": {},
1761
+ "description": "Show whether team settings (timezone, error handler, inheritance) differ from the cloud",
1762
+ "examples": [
1763
+ "$ fcode team:status"
1764
+ ],
1765
+ "flags": {},
1766
+ "hasDynamicHelp": false,
1767
+ "hiddenAliases": [],
1768
+ "id": "team:status",
1769
+ "pluginAlias": "@factorialco/fcode-cli",
1770
+ "pluginName": "@factorialco/fcode-cli",
1771
+ "pluginType": "core",
1772
+ "strict": true,
1773
+ "isESM": false,
1774
+ "relativePath": [
1775
+ "dist",
1776
+ "commands",
1777
+ "team",
1778
+ "status.js"
1779
+ ]
1780
1780
  }
1781
1781
  },
1782
- "version": "1.4.0"
1782
+ "version": "1.5.0"
1783
1783
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/fcode-cli",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "packageManager": "pnpm@11.7.0",
5
5
  "description": "Factorial Code Command Line Interface",
6
6
  "homepage": "https://code.factorialhr.com/docs/cli/",