@eide/foir-cli 0.47.0 → 0.48.1
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 +526 -531
- package/dist/lib/config-helpers.d.ts +10 -16
- package/package.json +17 -18
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { Precondition } from '@foir/rpc-node/rpc/operations';
|
|
2
|
+
export { ExpressionPrecondition, Precondition, SegmentPrecondition } from '@foir/rpc-node/rpc/operations';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Config definition helpers.
|
|
3
6
|
*
|
|
@@ -55,6 +58,11 @@ interface BaseFieldDefinitionInput {
|
|
|
55
58
|
key: string;
|
|
56
59
|
label?: string;
|
|
57
60
|
required?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Declares the field for the typed-filter side table so it can be used in
|
|
63
|
+
* where/orderBy on records. Without it the platform rejects sort by it.
|
|
64
|
+
*/
|
|
65
|
+
queryable?: boolean;
|
|
58
66
|
helpText?: string;
|
|
59
67
|
placeholder?: string;
|
|
60
68
|
defaultValue?: unknown;
|
|
@@ -127,21 +135,7 @@ interface QuotaRule {
|
|
|
127
135
|
/** Custom message returned when this rule's quota is exhausted (e.g., upgrade CTA). */
|
|
128
136
|
message?: string;
|
|
129
137
|
}
|
|
130
|
-
|
|
131
|
-
interface SegmentPrecondition {
|
|
132
|
-
/** Key of the segment the customer must belong to. */
|
|
133
|
-
segmentKey: string;
|
|
134
|
-
/** Error message returned when the precondition fails (e.g., upgrade CTA). */
|
|
135
|
-
message?: string;
|
|
136
|
-
}
|
|
137
|
-
/** Rule-expression precondition: blocks execution unless the expression evaluates to true. */
|
|
138
|
-
interface ExpressionPrecondition {
|
|
139
|
-
/** Expression type — "condition" for a single rule, "group" for AND/OR groups. */
|
|
140
|
-
type: 'condition' | 'group';
|
|
141
|
-
[key: string]: unknown;
|
|
142
|
-
}
|
|
143
|
-
/** A precondition that must be met before an operation can execute. */
|
|
144
|
-
type Precondition = SegmentPrecondition | ExpressionPrecondition;
|
|
138
|
+
|
|
145
139
|
interface ApplyConfigOperationInput {
|
|
146
140
|
key: string;
|
|
147
141
|
name: string;
|
|
@@ -566,4 +560,4 @@ interface FoirSecretsConfig {
|
|
|
566
560
|
*/
|
|
567
561
|
declare function defineSecrets(config: FoirSecretsConfig): FoirSecretsConfig;
|
|
568
562
|
|
|
569
|
-
export { type AppInput, type AppPlacementFieldChoiceInput, type AppSinkMappingInput, type AppSourceMappingInput, type ApplyConfigApiKeyInput, type ApplyConfigAuthProviderInput, type ApplyConfigDesignTokensInput, type ApplyConfigHookInput, type ApplyConfigInput, type ApplyConfigModelInput, type ApplyConfigOperationInput, type ApplyConfigPlacementInput, type ApplyConfigProjectInput, type ApplyConfigProjectSettingsInput, type ApplyConfigScheduleInput, type ApplyConfigSegmentInput, type EnumFieldConfig, type EnumFieldDefinitionInput, type EnumFieldOption, type
|
|
563
|
+
export { type AppInput, type AppPlacementFieldChoiceInput, type AppSinkMappingInput, type AppSourceMappingInput, type ApplyConfigApiKeyInput, type ApplyConfigAuthProviderInput, type ApplyConfigDesignTokensInput, type ApplyConfigHookInput, type ApplyConfigInput, type ApplyConfigModelInput, type ApplyConfigOperationInput, type ApplyConfigPlacementInput, type ApplyConfigProjectInput, type ApplyConfigProjectSettingsInput, type ApplyConfigScheduleInput, type ApplyConfigSegmentInput, type EnumFieldConfig, type EnumFieldDefinitionInput, type EnumFieldOption, type FieldAccessInput, type FieldDefinitionInput, type FoirSecretsConfig, type LookupDefinitionInput, type QuotaRule, type SecretDeclaration, type SecretOwnerKind, type SelectFieldConfig, type SelectFieldDefinitionInput, defineAuthProvider, defineConfig, defineDesignTokens, defineEnumField, defineField, defineHook, defineModel, defineOperation, definePlacement, defineSchedule, defineSecrets, defineSegment, defineSelectField };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eide/foir-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.1",
|
|
4
4
|
"description": "Universal platform CLI for Foir platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,19 +23,6 @@
|
|
|
23
23
|
"dist",
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "tsup",
|
|
28
|
-
"dev:cli": "tsx src/cli.ts",
|
|
29
|
-
"check-types": "tsc --noEmit",
|
|
30
|
-
"lint": "eslint src/",
|
|
31
|
-
"lint:fix": "eslint src/ --fix",
|
|
32
|
-
"test": "vitest run",
|
|
33
|
-
"test:watch": "vitest watch",
|
|
34
|
-
"prepublishOnly": "pnpm run build",
|
|
35
|
-
"release:patch": "pnpm version patch",
|
|
36
|
-
"release:minor": "pnpm version minor",
|
|
37
|
-
"release:major": "pnpm version major"
|
|
38
|
-
},
|
|
39
26
|
"keywords": [
|
|
40
27
|
"foir",
|
|
41
28
|
"eide",
|
|
@@ -50,7 +37,6 @@
|
|
|
50
37
|
"@bufbuild/protovalidate": "^1.1.1",
|
|
51
38
|
"@connectrpc/connect": "^2.0.0",
|
|
52
39
|
"@connectrpc/connect-node": "^2.0.0",
|
|
53
|
-
"@eide/foir-proto-ts": "^0.102.0",
|
|
54
40
|
"chalk": "^5.3.0",
|
|
55
41
|
"commander": "^12.1.0",
|
|
56
42
|
"dotenv": "^16.4.5",
|
|
@@ -68,7 +54,9 @@
|
|
|
68
54
|
"tsup": "^8.5.1",
|
|
69
55
|
"tsx": "^4.20.0",
|
|
70
56
|
"typescript": "5.9.2",
|
|
71
|
-
"vitest": "^3.2.4"
|
|
57
|
+
"vitest": "^3.2.4",
|
|
58
|
+
"@eide/foir-proto-ts": "0.103.0",
|
|
59
|
+
"@foir/rpc-node": "0.0.0"
|
|
72
60
|
},
|
|
73
61
|
"engines": {
|
|
74
62
|
"node": ">=18.0.0"
|
|
@@ -77,5 +65,16 @@
|
|
|
77
65
|
"type": "git",
|
|
78
66
|
"url": "https://github.com/eidestudio/foir-cli.git"
|
|
79
67
|
},
|
|
80
|
-
"
|
|
81
|
-
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "tsup",
|
|
70
|
+
"dev:cli": "tsx src/cli.ts",
|
|
71
|
+
"check-types": "tsc --noEmit",
|
|
72
|
+
"lint": "eslint src/",
|
|
73
|
+
"lint:fix": "eslint src/ --fix",
|
|
74
|
+
"test": "vitest run",
|
|
75
|
+
"test:watch": "vitest watch",
|
|
76
|
+
"release:patch": "pnpm version patch",
|
|
77
|
+
"release:minor": "pnpm version minor",
|
|
78
|
+
"release:major": "pnpm version major"
|
|
79
|
+
}
|
|
80
|
+
}
|