Skip to content

Commit 2988fd7

Browse files
committed
feat: add os field to cli_install_stats schema and update snapshots
Introduced a required `os` field to the `cli_install_stats` schema for tracking operating system data. Updated related snapshots, interfaces, and schema definitions to accommodate the changes.
1 parent 0742391 commit 2988fd7

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

extensions/tsed-rest/src/schema/CliStatPayload.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ export const CliStatPayload = s.object({
99
features: s.array(s.string()),
1010
channel: s.string().enum("cli", "mcp").required(),
1111
cli_version: s.string().required(),
12+
os: s.string().required(),
1213
is_success: s.boolean().required()
1314
});

packages/infra/directus/interfaces/DirectusSchema.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export interface CliInstallStat {
1515
channel: "cli" | "mcp";
1616
cli_version?: string | null;
1717
is_success?: boolean | null;
18+
os?: string | null;
1819
}
1920

2021
export interface Maintainer {

snapshots/snapshot-latest.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,46 @@ fields:
820820
has_auto_increment: false
821821
foreign_key_table: null
822822
foreign_key_column: null
823+
- collection: cli_install_stats
824+
field: os
825+
type: string
826+
meta:
827+
collection: cli_install_stats
828+
conditions: null
829+
display: null
830+
display_options: null
831+
field: os
832+
group: null
833+
hidden: false
834+
interface: input
835+
note: null
836+
options: null
837+
readonly: false
838+
required: false
839+
searchable: true
840+
sort: 15
841+
special: null
842+
translations: null
843+
validation: null
844+
validation_message: null
845+
width: full
846+
schema:
847+
name: os
848+
table: cli_install_stats
849+
data_type: character varying
850+
default_value: null
851+
max_length: 255
852+
numeric_precision: null
853+
numeric_scale: null
854+
is_nullable: true
855+
is_unique: false
856+
is_indexed: false
857+
is_primary_key: false
858+
is_generated: false
859+
generation_expression: null
860+
has_auto_increment: false
861+
foreign_key_table: null
862+
foreign_key_column: null
823863
- collection: directus_presets
824864
field: uuid
825865
type: uuid

0 commit comments

Comments
 (0)