@elek-io/core 0.16.1 → 0.16.2

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.
@@ -3737,6 +3737,10 @@ declare const createCollectionSchema: z.ZodObject<{
3737
3737
  zh: "zh";
3738
3738
  }> & z.core.$partial, z.ZodString>;
3739
3739
  }, z.core.$strip>;
3740
+ slug: z.ZodObject<{
3741
+ singular: z.ZodString;
3742
+ plural: z.ZodString;
3743
+ }, z.core.$strip>;
3740
3744
  description: z.ZodRecord<z.ZodEnum<{
3741
3745
  bg: "bg";
3742
3746
  cs: "cs";
@@ -3763,10 +3767,6 @@ declare const createCollectionSchema: z.ZodObject<{
3763
3767
  sv: "sv";
3764
3768
  zh: "zh";
3765
3769
  }> & z.core.$partial, z.ZodString>;
3766
- slug: z.ZodObject<{
3767
- singular: z.ZodString;
3768
- plural: z.ZodString;
3769
- }, z.core.$strip>;
3770
3770
  icon: z.ZodEnum<{
3771
3771
  home: "home";
3772
3772
  plus: "plus";
@@ -4773,6 +4773,10 @@ declare const updateCollectionSchema: z.ZodObject<{
4773
4773
  zh: "zh";
4774
4774
  }> & z.core.$partial, z.ZodString>;
4775
4775
  }, z.core.$strip>;
4776
+ slug: z.ZodObject<{
4777
+ singular: z.ZodString;
4778
+ plural: z.ZodString;
4779
+ }, z.core.$strip>;
4776
4780
  description: z.ZodRecord<z.ZodEnum<{
4777
4781
  bg: "bg";
4778
4782
  cs: "cs";
@@ -4799,10 +4803,6 @@ declare const updateCollectionSchema: z.ZodObject<{
4799
4803
  sv: "sv";
4800
4804
  zh: "zh";
4801
4805
  }> & z.core.$partial, z.ZodString>;
4802
- slug: z.ZodObject<{
4803
- singular: z.ZodString;
4804
- plural: z.ZodString;
4805
- }, z.core.$strip>;
4806
4806
  icon: z.ZodEnum<{
4807
4807
  home: "home";
4808
4808
  plus: "plus";
@@ -6573,11 +6573,11 @@ declare const FieldTypeSchema: z.ZodEnum<{
6573
6573
  number: "number";
6574
6574
  asset: "asset";
6575
6575
  entry: "entry";
6576
- date: "date";
6577
6576
  datetime: "datetime";
6578
- email: "email";
6577
+ date: "date";
6579
6578
  text: "text";
6580
6579
  textarea: "textarea";
6580
+ email: "email";
6581
6581
  url: "url";
6582
6582
  ipv4: "ipv4";
6583
6583
  time: "time";
@@ -12678,9 +12678,9 @@ declare function getUpdateEntrySchemaFromFieldDefinitions(fieldDefinitions: Fiel
12678
12678
  //#endregion
12679
12679
  //#region src/schema/serviceSchema.d.ts
12680
12680
  declare const serviceTypeSchema: z.ZodEnum<{
12681
- Asset: "Asset";
12682
12681
  Collection: "Collection";
12683
12682
  Entry: "Entry";
12683
+ Asset: "Asset";
12684
12684
  Project: "Project";
12685
12685
  Git: "Git";
12686
12686
  GitTag: "GitTag";
@@ -45,7 +45,7 @@ var __exportAll = (all, no_symbols) => {
45
45
  //#region package.json
46
46
  var package_default = {
47
47
  name: "@elek-io/core",
48
- version: "0.16.1",
48
+ version: "0.16.2",
49
49
  description: "Handles core functionality of elek.io Projects like file IO and version control.",
50
50
  homepage: "https://elek.io",
51
51
  repository: "https://github.com/elek-io/core",
@@ -115,7 +115,7 @@ var package_default = {
115
115
  "@types/node": "24.12.0",
116
116
  "@types/semver": "7.7.1",
117
117
  "@vitest/coverage-v8": "4.0.18",
118
- "astro": "5.18.0",
118
+ "astro": "6.0.0-beta.20",
119
119
  "eslint": "10.0.3",
120
120
  "eslint-config-prettier": "10.1.8",
121
121
  "globals": "17.4.0",
@@ -126,7 +126,7 @@ var package_default = {
126
126
  "vitest": "4.0.18"
127
127
  },
128
128
  peerDependencies: {
129
- "astro": ">=5.0.0",
129
+ "astro": ">=6.0.0-beta.0",
130
130
  "dugite": "3.2.0"
131
131
  },
132
132
  peerDependenciesMeta: { "astro": { "optional": true } }
@@ -117,8 +117,8 @@ declare const assetExportSchema: z.ZodObject<{
117
117
  }, z.core.$strip>;
118
118
  type AssetExport = z.infer<typeof assetExportSchema>;
119
119
  declare const createAssetSchema: z.ZodObject<{
120
- description: z.ZodString;
121
120
  name: z.ZodString;
121
+ description: z.ZodString;
122
122
  projectId: z.ZodReadonly<z.ZodUUID>;
123
123
  filePath: z.ZodReadonly<z.ZodString>;
124
124
  }, z.core.$strip>;
@@ -137,9 +137,9 @@ declare const saveAssetSchema: z.ZodObject<{
137
137
  }, z.core.$strip>;
138
138
  type SaveAssetProps = z.infer<typeof saveAssetSchema>;
139
139
  declare const updateAssetSchema: z.ZodObject<{
140
+ name: z.ZodString;
140
141
  id: z.ZodReadonly<z.ZodUUID>;
141
142
  description: z.ZodString;
142
- name: z.ZodString;
143
143
  projectId: z.ZodReadonly<z.ZodUUID>;
144
144
  newFilePath: z.ZodOptional<z.ZodReadonly<z.ZodString>>;
145
145
  }, z.core.$strip>;
@@ -3681,32 +3681,6 @@ declare const collectionExportSchema: z.ZodObject<{
3681
3681
  }, z.core.$strip>;
3682
3682
  type CollectionExport = z.infer<typeof collectionExportSchema>;
3683
3683
  declare const createCollectionSchema: z.ZodObject<{
3684
- description: z.ZodRecord<z.ZodEnum<{
3685
- bg: "bg";
3686
- cs: "cs";
3687
- da: "da";
3688
- de: "de";
3689
- el: "el";
3690
- en: "en";
3691
- es: "es";
3692
- et: "et";
3693
- fi: "fi";
3694
- fr: "fr";
3695
- hu: "hu";
3696
- it: "it";
3697
- ja: "ja";
3698
- lt: "lt";
3699
- lv: "lv";
3700
- nl: "nl";
3701
- pl: "pl";
3702
- pt: "pt";
3703
- ro: "ro";
3704
- ru: "ru";
3705
- sk: "sk";
3706
- sl: "sl";
3707
- sv: "sv";
3708
- zh: "zh";
3709
- }> & z.core.$partial, z.ZodString>;
3710
3684
  name: z.ZodObject<{
3711
3685
  singular: z.ZodRecord<z.ZodEnum<{
3712
3686
  bg: "bg";
@@ -3761,6 +3735,32 @@ declare const createCollectionSchema: z.ZodObject<{
3761
3735
  zh: "zh";
3762
3736
  }> & z.core.$partial, z.ZodString>;
3763
3737
  }, z.core.$strip>;
3738
+ description: z.ZodRecord<z.ZodEnum<{
3739
+ bg: "bg";
3740
+ cs: "cs";
3741
+ da: "da";
3742
+ de: "de";
3743
+ el: "el";
3744
+ en: "en";
3745
+ es: "es";
3746
+ et: "et";
3747
+ fi: "fi";
3748
+ fr: "fr";
3749
+ hu: "hu";
3750
+ it: "it";
3751
+ ja: "ja";
3752
+ lt: "lt";
3753
+ lv: "lv";
3754
+ nl: "nl";
3755
+ pl: "pl";
3756
+ pt: "pt";
3757
+ ro: "ro";
3758
+ ru: "ru";
3759
+ sk: "sk";
3760
+ sl: "sl";
3761
+ sv: "sv";
3762
+ zh: "zh";
3763
+ }> & z.core.$partial, z.ZodString>;
3764
3764
  slug: z.ZodObject<{
3765
3765
  singular: z.ZodString;
3766
3766
  plural: z.ZodString;
@@ -4716,33 +4716,6 @@ declare const readCollectionSchema: z.ZodObject<{
4716
4716
  }, z.core.$strip>;
4717
4717
  type ReadCollectionProps = z.infer<typeof readCollectionSchema>;
4718
4718
  declare const updateCollectionSchema: z.ZodObject<{
4719
- id: z.ZodReadonly<z.ZodUUID>;
4720
- description: z.ZodRecord<z.ZodEnum<{
4721
- bg: "bg";
4722
- cs: "cs";
4723
- da: "da";
4724
- de: "de";
4725
- el: "el";
4726
- en: "en";
4727
- es: "es";
4728
- et: "et";
4729
- fi: "fi";
4730
- fr: "fr";
4731
- hu: "hu";
4732
- it: "it";
4733
- ja: "ja";
4734
- lt: "lt";
4735
- lv: "lv";
4736
- nl: "nl";
4737
- pl: "pl";
4738
- pt: "pt";
4739
- ro: "ro";
4740
- ru: "ru";
4741
- sk: "sk";
4742
- sl: "sl";
4743
- sv: "sv";
4744
- zh: "zh";
4745
- }> & z.core.$partial, z.ZodString>;
4746
4719
  name: z.ZodObject<{
4747
4720
  singular: z.ZodRecord<z.ZodEnum<{
4748
4721
  bg: "bg";
@@ -4797,6 +4770,33 @@ declare const updateCollectionSchema: z.ZodObject<{
4797
4770
  zh: "zh";
4798
4771
  }> & z.core.$partial, z.ZodString>;
4799
4772
  }, z.core.$strip>;
4773
+ id: z.ZodReadonly<z.ZodUUID>;
4774
+ description: z.ZodRecord<z.ZodEnum<{
4775
+ bg: "bg";
4776
+ cs: "cs";
4777
+ da: "da";
4778
+ de: "de";
4779
+ el: "el";
4780
+ en: "en";
4781
+ es: "es";
4782
+ et: "et";
4783
+ fi: "fi";
4784
+ fr: "fr";
4785
+ hu: "hu";
4786
+ it: "it";
4787
+ ja: "ja";
4788
+ lt: "lt";
4789
+ lv: "lv";
4790
+ nl: "nl";
4791
+ pl: "pl";
4792
+ pt: "pt";
4793
+ ro: "ro";
4794
+ ru: "ru";
4795
+ sk: "sk";
4796
+ sl: "sl";
4797
+ sv: "sv";
4798
+ zh: "zh";
4799
+ }> & z.core.$partial, z.ZodString>;
4800
4800
  slug: z.ZodObject<{
4801
4801
  singular: z.ZodString;
4802
4802
  plural: z.ZodString;
@@ -6572,8 +6572,8 @@ declare const FieldTypeSchema: z.ZodEnum<{
6572
6572
  asset: "asset";
6573
6573
  entry: "entry";
6574
6574
  date: "date";
6575
- datetime: "datetime";
6576
6575
  email: "email";
6576
+ datetime: "datetime";
6577
6577
  text: "text";
6578
6578
  textarea: "textarea";
6579
6579
  url: "url";
@@ -11322,8 +11322,8 @@ declare const projectExportSchema: z.ZodObject<{
11322
11322
  }, z.core.$strip>;
11323
11323
  type ProjectExport = z.infer<typeof projectExportSchema>;
11324
11324
  declare const createProjectSchema: z.ZodObject<{
11325
- description: z.ZodString;
11326
11325
  name: z.ZodString;
11326
+ description: z.ZodString;
11327
11327
  settings: z.ZodObject<{
11328
11328
  language: z.ZodObject<{
11329
11329
  default: z.ZodEnum<{
@@ -11388,9 +11388,9 @@ declare const readProjectSchema: z.ZodObject<{
11388
11388
  }, z.core.$strip>;
11389
11389
  type ReadProjectProps = z.infer<typeof readProjectSchema>;
11390
11390
  declare const updateProjectSchema: z.ZodObject<{
11391
+ name: z.ZodString;
11391
11392
  id: z.ZodReadonly<z.ZodUUID>;
11392
11393
  description: z.ZodString;
11393
- name: z.ZodString;
11394
11394
  settings: z.ZodObject<{
11395
11395
  language: z.ZodObject<{
11396
11396
  default: z.ZodEnum<{
@@ -12676,13 +12676,13 @@ declare function getUpdateEntrySchemaFromFieldDefinitions(fieldDefinitions: Fiel
12676
12676
  //#endregion
12677
12677
  //#region src/schema/serviceSchema.d.ts
12678
12678
  declare const serviceTypeSchema: z.ZodEnum<{
12679
- Entry: "Entry";
12680
- Collection: "Collection";
12679
+ Project: "Project";
12681
12680
  Asset: "Asset";
12681
+ Collection: "Collection";
12682
+ Entry: "Entry";
12682
12683
  Git: "Git";
12683
12684
  GitTag: "GitTag";
12684
12685
  User: "User";
12685
- Project: "Project";
12686
12686
  JsonFile: "JsonFile";
12687
12687
  Search: "Search";
12688
12688
  Value: "Value";
@@ -12750,8 +12750,8 @@ declare const listAssetsSchema: z.ZodObject<{
12750
12750
  }, z.core.$strip>;
12751
12751
  type ListAssetsProps = z.infer<typeof listAssetsSchema>;
12752
12752
  declare const listProjectsSchema: z.ZodObject<{
12753
- limit: z.ZodOptional<z.ZodNumber>;
12754
12753
  offset: z.ZodOptional<z.ZodNumber>;
12754
+ limit: z.ZodOptional<z.ZodNumber>;
12755
12755
  }, z.core.$strip>;
12756
12756
  type ListProjectsProps = z.infer<typeof listProjectsSchema>;
12757
12757
  declare const listGitTagsSchema: z.ZodObject<{
@@ -14292,17 +14292,6 @@ declare class CollectionService extends AbstractCrudService implements CrudServi
14292
14292
  min: number;
14293
14293
  max: number;
14294
14294
  defaultValue: number;
14295
- } | {
14296
- id: string;
14297
- label: Partial<Record<"bg" | "cs" | "da" | "de" | "el" | "en" | "es" | "et" | "fi" | "fr" | "hu" | "it" | "ja" | "lt" | "lv" | "nl" | "pl" | "pt" | "ro" | "ru" | "sk" | "sl" | "sv" | "zh", string>>;
14298
- description: Partial<Record<"bg" | "cs" | "da" | "de" | "el" | "en" | "es" | "et" | "fi" | "fr" | "hu" | "it" | "ja" | "lt" | "lv" | "nl" | "pl" | "pt" | "ro" | "ru" | "sk" | "sl" | "sv" | "zh", string>> | null;
14299
- isDisabled: boolean;
14300
- inputWidth: "3" | "4" | "6" | "12";
14301
- valueType: "boolean";
14302
- isRequired: true;
14303
- defaultValue: boolean;
14304
- isUnique: false;
14305
- fieldType: "toggle";
14306
14295
  } | {
14307
14296
  id: string;
14308
14297
  label: Partial<Record<"bg" | "cs" | "da" | "de" | "el" | "en" | "es" | "et" | "fi" | "fr" | "hu" | "it" | "ja" | "lt" | "lv" | "nl" | "pl" | "pt" | "ro" | "ru" | "sk" | "sl" | "sv" | "zh", string>>;
@@ -14328,6 +14317,17 @@ declare class CollectionService extends AbstractCrudService implements CrudServi
14328
14317
  ofCollections: string[];
14329
14318
  min: number | null;
14330
14319
  max: number | null;
14320
+ } | {
14321
+ id: string;
14322
+ label: Partial<Record<"bg" | "cs" | "da" | "de" | "el" | "en" | "es" | "et" | "fi" | "fr" | "hu" | "it" | "ja" | "lt" | "lv" | "nl" | "pl" | "pt" | "ro" | "ru" | "sk" | "sl" | "sv" | "zh", string>>;
14323
+ description: Partial<Record<"bg" | "cs" | "da" | "de" | "el" | "en" | "es" | "et" | "fi" | "fr" | "hu" | "it" | "ja" | "lt" | "lv" | "nl" | "pl" | "pt" | "ro" | "ru" | "sk" | "sl" | "sv" | "zh", string>> | null;
14324
+ isDisabled: boolean;
14325
+ inputWidth: "3" | "4" | "6" | "12";
14326
+ valueType: "boolean";
14327
+ isRequired: true;
14328
+ defaultValue: boolean;
14329
+ isUnique: false;
14330
+ fieldType: "toggle";
14331
14331
  })[];
14332
14332
  };
14333
14333
  /**
@@ -23,7 +23,7 @@ import Semver from "semver";
23
23
  //#region package.json
24
24
  var package_default = {
25
25
  name: "@elek-io/core",
26
- version: "0.16.1",
26
+ version: "0.16.2",
27
27
  description: "Handles core functionality of elek.io Projects like file IO and version control.",
28
28
  homepage: "https://elek.io",
29
29
  repository: "https://github.com/elek-io/core",
@@ -93,7 +93,7 @@ var package_default = {
93
93
  "@types/node": "24.12.0",
94
94
  "@types/semver": "7.7.1",
95
95
  "@vitest/coverage-v8": "4.0.18",
96
- "astro": "5.18.0",
96
+ "astro": "6.0.0-beta.20",
97
97
  "eslint": "10.0.3",
98
98
  "eslint-config-prettier": "10.1.8",
99
99
  "globals": "17.4.0",
@@ -104,7 +104,7 @@ var package_default = {
104
104
  "vitest": "4.0.18"
105
105
  },
106
106
  peerDependencies: {
107
- "astro": ">=5.0.0",
107
+ "astro": ">=6.0.0-beta.0",
108
108
  "dugite": "3.2.0"
109
109
  },
110
110
  peerDependenciesMeta: { "astro": { "optional": true } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elek-io/core",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "Handles core functionality of elek.io Projects like file IO and version control.",
5
5
  "homepage": "https://elek.io",
6
6
  "repository": "https://github.com/elek-io/core",
@@ -66,7 +66,7 @@
66
66
  "@types/node": "24.12.0",
67
67
  "@types/semver": "7.7.1",
68
68
  "@vitest/coverage-v8": "4.0.18",
69
- "astro": "5.18.0",
69
+ "astro": "6.0.0-beta.20",
70
70
  "eslint": "10.0.3",
71
71
  "eslint-config-prettier": "10.1.8",
72
72
  "globals": "17.4.0",
@@ -77,7 +77,7 @@
77
77
  "vitest": "4.0.18"
78
78
  },
79
79
  "peerDependencies": {
80
- "astro": ">=5.0.0",
80
+ "astro": ">=6.0.0-beta.0",
81
81
  "dugite": "3.2.0"
82
82
  },
83
83
  "peerDependenciesMeta": {