@elek-io/core 0.4.1 → 0.4.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.
package/dist/index.d.cts CHANGED
@@ -13246,23 +13246,6 @@ declare class ProjectService extends AbstractCrudService implements ExtendedCrud
13246
13246
  private createGitignore;
13247
13247
  }
13248
13248
 
13249
- /**
13250
- * Returns a new UUID
13251
- */
13252
- declare function uuid(): Uuid;
13253
- /**
13254
- * Returns the current UNIX timestamp
13255
- *
13256
- * Since the UNIX timestamp is the number of seconds
13257
- * that have elapsed from January 1, 1970, UTC and
13258
- * `Date.now()` returns the time in milliseconds,
13259
- * we need to convert this into seconds.
13260
- */
13261
- declare function currentTimestamp(): number;
13262
- /**
13263
- * Returns the slug of given string
13264
- */
13265
- declare function slug(string: string): string;
13266
13249
  /**
13267
13250
  * The directory in which everything is stored and will be worked in
13268
13251
  *
@@ -13347,7 +13330,6 @@ declare function getRelativePath(path: string): string;
13347
13330
  declare function getDuplicates<T>(arr: T[], key: keyof T): T[];
13348
13331
 
13349
13332
  declare const Util_assignDefaultIfMissing: typeof assignDefaultIfMissing;
13350
- declare const Util_currentTimestamp: typeof currentTimestamp;
13351
13333
  declare const Util_files: typeof files;
13352
13334
  declare const Util_folders: typeof folders;
13353
13335
  declare const Util_fromPath: typeof fromPath;
@@ -13357,14 +13339,30 @@ declare const Util_isNoError: typeof isNoError;
13357
13339
  declare const Util_notEmpty: typeof notEmpty;
13358
13340
  declare const Util_pathTo: typeof pathTo;
13359
13341
  declare const Util_returnResolved: typeof returnResolved;
13360
- declare const Util_slug: typeof slug;
13361
13342
  declare const Util_spawnChildProcess: typeof spawnChildProcess;
13362
- declare const Util_uuid: typeof uuid;
13363
13343
  declare const Util_workingDirectory: typeof workingDirectory;
13364
13344
  declare namespace Util {
13365
- export { Util_assignDefaultIfMissing as assignDefaultIfMissing, Util_currentTimestamp as currentTimestamp, Util_files as files, Util_folders as folders, Util_fromPath as fromPath, Util_getDuplicates as getDuplicates, Util_getRelativePath as getRelativePath, Util_isNoError as isNoError, Util_notEmpty as notEmpty, Util_pathTo as pathTo, Util_returnResolved as returnResolved, Util_slug as slug, Util_spawnChildProcess as spawnChildProcess, Util_uuid as uuid, Util_workingDirectory as workingDirectory };
13345
+ export { Util_assignDefaultIfMissing as assignDefaultIfMissing, Util_files as files, Util_folders as folders, Util_fromPath as fromPath, Util_getDuplicates as getDuplicates, Util_getRelativePath as getRelativePath, Util_isNoError as isNoError, Util_notEmpty as notEmpty, Util_pathTo as pathTo, Util_returnResolved as returnResolved, Util_spawnChildProcess as spawnChildProcess, Util_workingDirectory as workingDirectory };
13366
13346
  }
13367
13347
 
13348
+ /**
13349
+ * Returns a new UUID
13350
+ */
13351
+ declare function uuid(): Uuid;
13352
+ /**
13353
+ * Returns the current UNIX timestamp
13354
+ *
13355
+ * Since the UNIX timestamp is the number of seconds
13356
+ * that have elapsed from January 1, 1970, UTC and
13357
+ * `Date.now()` returns the time in milliseconds,
13358
+ * we need to convert this into seconds.
13359
+ */
13360
+ declare function currentTimestamp(): number;
13361
+ /**
13362
+ * Returns the slug of given string
13363
+ */
13364
+ declare function slug(string: string): string;
13365
+
13368
13366
  /**
13369
13367
  * elek.io Core
13370
13368
  *
@@ -13410,4 +13408,4 @@ declare class ElekIoCore {
13410
13408
  get entries(): EntryService;
13411
13409
  }
13412
13410
 
13413
- export { type Asset, type AssetExport, type AssetFile, type AssetValueDefinition, type BaseFile, type BaseFileWithLanguage, type BaseUser, BooleanValueDefinitionBaseSchema, type CloneProjectProps, type CloudUser, type Collection, type CollectionExport, type CollectionFile, type ConstructorElekIoCoreProps, type CountAssetsProps, type CountCollectionsProps, type CountEntriesProps, type CountGitTagsProps, type CreateAssetProps, type CreateCollectionProps, type CreateEntryProps, type CreateGitTagProps, type CreateProjectProps, type CrudService, type CurrentBranchProjectProps, type DateValueDefinition, type DatetimeValueDefinition, type DeleteAssetProps, type DeleteCollectionProps, type DeleteEntryProps, type DeleteGitTagProps, type DeleteProjectProps, type DirectBooleanValue, type DirectNumberValue, type DirectStringValue, type DirectValue, type ElekIoCoreOptions, type EmailValueDefinition, type Entry, type EntryExport, type EntryFile, type EntryValueDefinition, type Environment, type ExtendedCrudService, type FileReference, type GetChangesProjectProps, type GetRemoteOriginUrlProjectProps, type GitCloneOptions, type GitCommit, type GitCommitIcon, type GitInitOptions, type GitLogOptions, type GitSignature, type GitSwitchOptions, type GitTag, type IpValueDefinition, type ListAssetsProps, type ListBranchesProjectProps, type ListCollectionsProps, type ListEntriesProps, type ListGitTagsProps, type ListProjectsProps, type LocalUser, type NumberValueDefinition, NumberValueDefinitionBaseSchema, type ObjectType, type PaginatedList, type PaginationOptions, type Project, type ProjectExport, type ProjectFile, type ProjectFolder, type ProjectSettings, type ProjectStatus, type ProjectUpgrade, type RangeValueDefinition, type ReadAssetProps, type ReadCollectionProps, type ReadEntryProps, type ReadGitTagProps, type ReadProjectProps, ReferenceValueDefinitionBaseSchema, type ReferencedValue, type ResolvedReferencedValue, type ResolvedValue, type ResolvedValueContentReference, type SearchProjectProps, type ServiceType, type SetRemoteOriginUrlProjectProps, type SetUserProps, type StringValueDefinition, StringValueDefinitionBaseSchema, type SupportedAssetExtension, type SupportedAssetMimeType, type SupportedAssetType, type SupportedIcon, type SupportedLanguage, type SwitchBranchProjectProps, type SynchronizeProjectProps, type TelephoneValueDefinition, type TextValueDefinition, type TextareaValueDefinition, type TimeValueDefinition, type ToggleValueDefinition, type TranslatableBoolean, type TranslatableNumber, type TranslatableString, type UpdateAssetProps, type UpdateCollectionProps, type UpdateEntryProps, type UpdateProjectProps, type UpgradeProjectProps, type UrlValueDefinition, type User, type UserFile, UserTypeSchema, type Uuid, type Value, type ValueContentReference, type ValueContentReferenceToAsset, type ValueContentReferenceToCollection, type ValueContentReferenceToEntry, type ValueDefinition, type ValueDefinitionBase, ValueDefinitionBaseSchema, type ValueInputType, ValueInputTypeSchema, ValueInputWidthSchema, type ValueType, ValueTypeSchema, type Version, assetExportSchema, assetFileSchema, assetSchema, assetValueDefinitionSchema, baseFileSchema, baseFileWithLanguageSchema, baseUserSchema, cloneProjectSchema, cloudUserSchema, collectionExportSchema, collectionFileSchema, collectionSchema, constructorElekIoCoreSchema, countAssetsSchema, countCollectionsSchema, countEntriesSchema, countGitTagsSchema, createAssetSchema, createCollectionSchema, createEntrySchema, createGitTagSchema, createProjectSchema, currentBranchProjectSchema, dateValueDefinitionSchema, datetimeValueDefinitionSchema, ElekIoCore as default, deleteAssetSchema, deleteCollectionSchema, deleteEntrySchema, deleteGitTagSchema, deleteProjectSchema, directBooleanValueSchema, directNumberValueSchema, directStringValueSchema, directValueBaseSchema, directValueSchema, elekIoCoreOptionsSchema, emailValueDefinitionSchema, entryExportSchema, entryFileSchema, entrySchema, entryValueDefinitionSchema, environmentSchema, fileReferenceSchema, getChangesProjectSchema, getRemoteOriginUrlProjectSchema, getValueContentSchemaFromDefinition, gitCloneOptionsSchema, gitCommitIconSchema, gitCommitSchema, gitInitOptionsSchema, gitLogOptionsSchema, gitRepositoryPathSchema, gitSignatureSchema, gitSwitchOptionsSchema, gitTagSchema, ipValueDefinitionSchema, listAssetsSchema, listBranchesProjectSchema, listCollectionsSchema, listEntriesSchema, listGitTagsSchema, listProjectsSchema, localUserSchema, numberValueDefinitionSchema, objectTypeSchema, projectExportSchema, projectFileSchema, projectFolderSchema, projectSchema, projectSettingsSchema, projectStatusSchema, projectUpgradeSchema, rangeValueDefinitionSchema, readAssetSchema, readCollectionSchema, readEntrySchema, readGitTagSchema, readProjectSchema, referencedValueSchema, resolvedReferencedValueSchema, resolvedValueContentReferenceSchema, resolvedValueSchema, searchProjectSchema, serviceTypeSchema, setRemoteOriginUrlProjectSchema, setUserSchema, stringValueDefinitionSchema, supportedAssetExtensionSchema, supportedAssetMimeTypeSchema, supportedAssetTypeSchema, supportedIconSchema, supportedLanguageSchema, switchBranchProjectSchema, synchronizeProjectSchema, telephoneValueDefinitionSchema, textValueDefinitionSchema, textareaValueDefinitionSchema, timeValueDefinitionSchema, toggleValueDefinitionSchema, translatableArrayOf, translatableBooleanSchema, translatableNumberSchema, translatableStringSchema, updateAssetSchema, updateCollectionSchema, updateEntrySchema, updateProjectSchema, upgradeProjectSchema, urlValueDefinitionSchema, userFileSchema, userSchema, uuidSchema, valueContentReferenceBase, valueContentReferenceSchema, valueContentReferenceToAssetSchema, valueContentReferenceToCollectionSchema, valueContentReferenceToEntrySchema, valueContentReferenceWithLanguageBase, valueDefinitionSchema, valueSchema, versionSchema };
13411
+ export { type Asset, type AssetExport, type AssetFile, type AssetValueDefinition, type BaseFile, type BaseFileWithLanguage, type BaseUser, BooleanValueDefinitionBaseSchema, type CloneProjectProps, type CloudUser, type Collection, type CollectionExport, type CollectionFile, type ConstructorElekIoCoreProps, type CountAssetsProps, type CountCollectionsProps, type CountEntriesProps, type CountGitTagsProps, type CreateAssetProps, type CreateCollectionProps, type CreateEntryProps, type CreateGitTagProps, type CreateProjectProps, type CrudService, type CurrentBranchProjectProps, type DateValueDefinition, type DatetimeValueDefinition, type DeleteAssetProps, type DeleteCollectionProps, type DeleteEntryProps, type DeleteGitTagProps, type DeleteProjectProps, type DirectBooleanValue, type DirectNumberValue, type DirectStringValue, type DirectValue, type ElekIoCoreOptions, type EmailValueDefinition, type Entry, type EntryExport, type EntryFile, type EntryValueDefinition, type Environment, type ExtendedCrudService, type FileReference, type GetChangesProjectProps, type GetRemoteOriginUrlProjectProps, type GitCloneOptions, type GitCommit, type GitCommitIcon, type GitInitOptions, type GitLogOptions, type GitSignature, type GitSwitchOptions, type GitTag, type IpValueDefinition, type ListAssetsProps, type ListBranchesProjectProps, type ListCollectionsProps, type ListEntriesProps, type ListGitTagsProps, type ListProjectsProps, type LocalUser, type NumberValueDefinition, NumberValueDefinitionBaseSchema, type ObjectType, type PaginatedList, type PaginationOptions, type Project, type ProjectExport, type ProjectFile, type ProjectFolder, type ProjectSettings, type ProjectStatus, type ProjectUpgrade, type RangeValueDefinition, type ReadAssetProps, type ReadCollectionProps, type ReadEntryProps, type ReadGitTagProps, type ReadProjectProps, ReferenceValueDefinitionBaseSchema, type ReferencedValue, type ResolvedReferencedValue, type ResolvedValue, type ResolvedValueContentReference, type SearchProjectProps, type ServiceType, type SetRemoteOriginUrlProjectProps, type SetUserProps, type StringValueDefinition, StringValueDefinitionBaseSchema, type SupportedAssetExtension, type SupportedAssetMimeType, type SupportedAssetType, type SupportedIcon, type SupportedLanguage, type SwitchBranchProjectProps, type SynchronizeProjectProps, type TelephoneValueDefinition, type TextValueDefinition, type TextareaValueDefinition, type TimeValueDefinition, type ToggleValueDefinition, type TranslatableBoolean, type TranslatableNumber, type TranslatableString, type UpdateAssetProps, type UpdateCollectionProps, type UpdateEntryProps, type UpdateProjectProps, type UpgradeProjectProps, type UrlValueDefinition, type User, type UserFile, UserTypeSchema, type Uuid, type Value, type ValueContentReference, type ValueContentReferenceToAsset, type ValueContentReferenceToCollection, type ValueContentReferenceToEntry, type ValueDefinition, type ValueDefinitionBase, ValueDefinitionBaseSchema, type ValueInputType, ValueInputTypeSchema, ValueInputWidthSchema, type ValueType, ValueTypeSchema, type Version, assetExportSchema, assetFileSchema, assetSchema, assetValueDefinitionSchema, baseFileSchema, baseFileWithLanguageSchema, baseUserSchema, cloneProjectSchema, cloudUserSchema, collectionExportSchema, collectionFileSchema, collectionSchema, constructorElekIoCoreSchema, countAssetsSchema, countCollectionsSchema, countEntriesSchema, countGitTagsSchema, createAssetSchema, createCollectionSchema, createEntrySchema, createGitTagSchema, createProjectSchema, currentBranchProjectSchema, currentTimestamp, dateValueDefinitionSchema, datetimeValueDefinitionSchema, ElekIoCore as default, deleteAssetSchema, deleteCollectionSchema, deleteEntrySchema, deleteGitTagSchema, deleteProjectSchema, directBooleanValueSchema, directNumberValueSchema, directStringValueSchema, directValueBaseSchema, directValueSchema, elekIoCoreOptionsSchema, emailValueDefinitionSchema, entryExportSchema, entryFileSchema, entrySchema, entryValueDefinitionSchema, environmentSchema, fileReferenceSchema, getChangesProjectSchema, getRemoteOriginUrlProjectSchema, getValueContentSchemaFromDefinition, gitCloneOptionsSchema, gitCommitIconSchema, gitCommitSchema, gitInitOptionsSchema, gitLogOptionsSchema, gitRepositoryPathSchema, gitSignatureSchema, gitSwitchOptionsSchema, gitTagSchema, ipValueDefinitionSchema, listAssetsSchema, listBranchesProjectSchema, listCollectionsSchema, listEntriesSchema, listGitTagsSchema, listProjectsSchema, localUserSchema, numberValueDefinitionSchema, objectTypeSchema, projectExportSchema, projectFileSchema, projectFolderSchema, projectSchema, projectSettingsSchema, projectStatusSchema, projectUpgradeSchema, rangeValueDefinitionSchema, readAssetSchema, readCollectionSchema, readEntrySchema, readGitTagSchema, readProjectSchema, referencedValueSchema, resolvedReferencedValueSchema, resolvedValueContentReferenceSchema, resolvedValueSchema, searchProjectSchema, serviceTypeSchema, setRemoteOriginUrlProjectSchema, setUserSchema, slug, stringValueDefinitionSchema, supportedAssetExtensionSchema, supportedAssetMimeTypeSchema, supportedAssetTypeSchema, supportedIconSchema, supportedLanguageSchema, switchBranchProjectSchema, synchronizeProjectSchema, telephoneValueDefinitionSchema, textValueDefinitionSchema, textareaValueDefinitionSchema, timeValueDefinitionSchema, toggleValueDefinitionSchema, translatableArrayOf, translatableBooleanSchema, translatableNumberSchema, translatableStringSchema, updateAssetSchema, updateCollectionSchema, updateEntrySchema, updateProjectSchema, upgradeProjectSchema, urlValueDefinitionSchema, userFileSchema, userSchema, uuid, uuidSchema, valueContentReferenceBase, valueContentReferenceSchema, valueContentReferenceToAssetSchema, valueContentReferenceToCollectionSchema, valueContentReferenceToEntrySchema, valueContentReferenceWithLanguageBase, valueDefinitionSchema, valueSchema, versionSchema };
package/dist/index.d.ts CHANGED
@@ -13246,23 +13246,6 @@ declare class ProjectService extends AbstractCrudService implements ExtendedCrud
13246
13246
  private createGitignore;
13247
13247
  }
13248
13248
 
13249
- /**
13250
- * Returns a new UUID
13251
- */
13252
- declare function uuid(): Uuid;
13253
- /**
13254
- * Returns the current UNIX timestamp
13255
- *
13256
- * Since the UNIX timestamp is the number of seconds
13257
- * that have elapsed from January 1, 1970, UTC and
13258
- * `Date.now()` returns the time in milliseconds,
13259
- * we need to convert this into seconds.
13260
- */
13261
- declare function currentTimestamp(): number;
13262
- /**
13263
- * Returns the slug of given string
13264
- */
13265
- declare function slug(string: string): string;
13266
13249
  /**
13267
13250
  * The directory in which everything is stored and will be worked in
13268
13251
  *
@@ -13347,7 +13330,6 @@ declare function getRelativePath(path: string): string;
13347
13330
  declare function getDuplicates<T>(arr: T[], key: keyof T): T[];
13348
13331
 
13349
13332
  declare const Util_assignDefaultIfMissing: typeof assignDefaultIfMissing;
13350
- declare const Util_currentTimestamp: typeof currentTimestamp;
13351
13333
  declare const Util_files: typeof files;
13352
13334
  declare const Util_folders: typeof folders;
13353
13335
  declare const Util_fromPath: typeof fromPath;
@@ -13357,14 +13339,30 @@ declare const Util_isNoError: typeof isNoError;
13357
13339
  declare const Util_notEmpty: typeof notEmpty;
13358
13340
  declare const Util_pathTo: typeof pathTo;
13359
13341
  declare const Util_returnResolved: typeof returnResolved;
13360
- declare const Util_slug: typeof slug;
13361
13342
  declare const Util_spawnChildProcess: typeof spawnChildProcess;
13362
- declare const Util_uuid: typeof uuid;
13363
13343
  declare const Util_workingDirectory: typeof workingDirectory;
13364
13344
  declare namespace Util {
13365
- export { Util_assignDefaultIfMissing as assignDefaultIfMissing, Util_currentTimestamp as currentTimestamp, Util_files as files, Util_folders as folders, Util_fromPath as fromPath, Util_getDuplicates as getDuplicates, Util_getRelativePath as getRelativePath, Util_isNoError as isNoError, Util_notEmpty as notEmpty, Util_pathTo as pathTo, Util_returnResolved as returnResolved, Util_slug as slug, Util_spawnChildProcess as spawnChildProcess, Util_uuid as uuid, Util_workingDirectory as workingDirectory };
13345
+ export { Util_assignDefaultIfMissing as assignDefaultIfMissing, Util_files as files, Util_folders as folders, Util_fromPath as fromPath, Util_getDuplicates as getDuplicates, Util_getRelativePath as getRelativePath, Util_isNoError as isNoError, Util_notEmpty as notEmpty, Util_pathTo as pathTo, Util_returnResolved as returnResolved, Util_spawnChildProcess as spawnChildProcess, Util_workingDirectory as workingDirectory };
13366
13346
  }
13367
13347
 
13348
+ /**
13349
+ * Returns a new UUID
13350
+ */
13351
+ declare function uuid(): Uuid;
13352
+ /**
13353
+ * Returns the current UNIX timestamp
13354
+ *
13355
+ * Since the UNIX timestamp is the number of seconds
13356
+ * that have elapsed from January 1, 1970, UTC and
13357
+ * `Date.now()` returns the time in milliseconds,
13358
+ * we need to convert this into seconds.
13359
+ */
13360
+ declare function currentTimestamp(): number;
13361
+ /**
13362
+ * Returns the slug of given string
13363
+ */
13364
+ declare function slug(string: string): string;
13365
+
13368
13366
  /**
13369
13367
  * elek.io Core
13370
13368
  *
@@ -13410,4 +13408,4 @@ declare class ElekIoCore {
13410
13408
  get entries(): EntryService;
13411
13409
  }
13412
13410
 
13413
- export { type Asset, type AssetExport, type AssetFile, type AssetValueDefinition, type BaseFile, type BaseFileWithLanguage, type BaseUser, BooleanValueDefinitionBaseSchema, type CloneProjectProps, type CloudUser, type Collection, type CollectionExport, type CollectionFile, type ConstructorElekIoCoreProps, type CountAssetsProps, type CountCollectionsProps, type CountEntriesProps, type CountGitTagsProps, type CreateAssetProps, type CreateCollectionProps, type CreateEntryProps, type CreateGitTagProps, type CreateProjectProps, type CrudService, type CurrentBranchProjectProps, type DateValueDefinition, type DatetimeValueDefinition, type DeleteAssetProps, type DeleteCollectionProps, type DeleteEntryProps, type DeleteGitTagProps, type DeleteProjectProps, type DirectBooleanValue, type DirectNumberValue, type DirectStringValue, type DirectValue, type ElekIoCoreOptions, type EmailValueDefinition, type Entry, type EntryExport, type EntryFile, type EntryValueDefinition, type Environment, type ExtendedCrudService, type FileReference, type GetChangesProjectProps, type GetRemoteOriginUrlProjectProps, type GitCloneOptions, type GitCommit, type GitCommitIcon, type GitInitOptions, type GitLogOptions, type GitSignature, type GitSwitchOptions, type GitTag, type IpValueDefinition, type ListAssetsProps, type ListBranchesProjectProps, type ListCollectionsProps, type ListEntriesProps, type ListGitTagsProps, type ListProjectsProps, type LocalUser, type NumberValueDefinition, NumberValueDefinitionBaseSchema, type ObjectType, type PaginatedList, type PaginationOptions, type Project, type ProjectExport, type ProjectFile, type ProjectFolder, type ProjectSettings, type ProjectStatus, type ProjectUpgrade, type RangeValueDefinition, type ReadAssetProps, type ReadCollectionProps, type ReadEntryProps, type ReadGitTagProps, type ReadProjectProps, ReferenceValueDefinitionBaseSchema, type ReferencedValue, type ResolvedReferencedValue, type ResolvedValue, type ResolvedValueContentReference, type SearchProjectProps, type ServiceType, type SetRemoteOriginUrlProjectProps, type SetUserProps, type StringValueDefinition, StringValueDefinitionBaseSchema, type SupportedAssetExtension, type SupportedAssetMimeType, type SupportedAssetType, type SupportedIcon, type SupportedLanguage, type SwitchBranchProjectProps, type SynchronizeProjectProps, type TelephoneValueDefinition, type TextValueDefinition, type TextareaValueDefinition, type TimeValueDefinition, type ToggleValueDefinition, type TranslatableBoolean, type TranslatableNumber, type TranslatableString, type UpdateAssetProps, type UpdateCollectionProps, type UpdateEntryProps, type UpdateProjectProps, type UpgradeProjectProps, type UrlValueDefinition, type User, type UserFile, UserTypeSchema, type Uuid, type Value, type ValueContentReference, type ValueContentReferenceToAsset, type ValueContentReferenceToCollection, type ValueContentReferenceToEntry, type ValueDefinition, type ValueDefinitionBase, ValueDefinitionBaseSchema, type ValueInputType, ValueInputTypeSchema, ValueInputWidthSchema, type ValueType, ValueTypeSchema, type Version, assetExportSchema, assetFileSchema, assetSchema, assetValueDefinitionSchema, baseFileSchema, baseFileWithLanguageSchema, baseUserSchema, cloneProjectSchema, cloudUserSchema, collectionExportSchema, collectionFileSchema, collectionSchema, constructorElekIoCoreSchema, countAssetsSchema, countCollectionsSchema, countEntriesSchema, countGitTagsSchema, createAssetSchema, createCollectionSchema, createEntrySchema, createGitTagSchema, createProjectSchema, currentBranchProjectSchema, dateValueDefinitionSchema, datetimeValueDefinitionSchema, ElekIoCore as default, deleteAssetSchema, deleteCollectionSchema, deleteEntrySchema, deleteGitTagSchema, deleteProjectSchema, directBooleanValueSchema, directNumberValueSchema, directStringValueSchema, directValueBaseSchema, directValueSchema, elekIoCoreOptionsSchema, emailValueDefinitionSchema, entryExportSchema, entryFileSchema, entrySchema, entryValueDefinitionSchema, environmentSchema, fileReferenceSchema, getChangesProjectSchema, getRemoteOriginUrlProjectSchema, getValueContentSchemaFromDefinition, gitCloneOptionsSchema, gitCommitIconSchema, gitCommitSchema, gitInitOptionsSchema, gitLogOptionsSchema, gitRepositoryPathSchema, gitSignatureSchema, gitSwitchOptionsSchema, gitTagSchema, ipValueDefinitionSchema, listAssetsSchema, listBranchesProjectSchema, listCollectionsSchema, listEntriesSchema, listGitTagsSchema, listProjectsSchema, localUserSchema, numberValueDefinitionSchema, objectTypeSchema, projectExportSchema, projectFileSchema, projectFolderSchema, projectSchema, projectSettingsSchema, projectStatusSchema, projectUpgradeSchema, rangeValueDefinitionSchema, readAssetSchema, readCollectionSchema, readEntrySchema, readGitTagSchema, readProjectSchema, referencedValueSchema, resolvedReferencedValueSchema, resolvedValueContentReferenceSchema, resolvedValueSchema, searchProjectSchema, serviceTypeSchema, setRemoteOriginUrlProjectSchema, setUserSchema, stringValueDefinitionSchema, supportedAssetExtensionSchema, supportedAssetMimeTypeSchema, supportedAssetTypeSchema, supportedIconSchema, supportedLanguageSchema, switchBranchProjectSchema, synchronizeProjectSchema, telephoneValueDefinitionSchema, textValueDefinitionSchema, textareaValueDefinitionSchema, timeValueDefinitionSchema, toggleValueDefinitionSchema, translatableArrayOf, translatableBooleanSchema, translatableNumberSchema, translatableStringSchema, updateAssetSchema, updateCollectionSchema, updateEntrySchema, updateProjectSchema, upgradeProjectSchema, urlValueDefinitionSchema, userFileSchema, userSchema, uuidSchema, valueContentReferenceBase, valueContentReferenceSchema, valueContentReferenceToAssetSchema, valueContentReferenceToCollectionSchema, valueContentReferenceToEntrySchema, valueContentReferenceWithLanguageBase, valueDefinitionSchema, valueSchema, versionSchema };
13411
+ export { type Asset, type AssetExport, type AssetFile, type AssetValueDefinition, type BaseFile, type BaseFileWithLanguage, type BaseUser, BooleanValueDefinitionBaseSchema, type CloneProjectProps, type CloudUser, type Collection, type CollectionExport, type CollectionFile, type ConstructorElekIoCoreProps, type CountAssetsProps, type CountCollectionsProps, type CountEntriesProps, type CountGitTagsProps, type CreateAssetProps, type CreateCollectionProps, type CreateEntryProps, type CreateGitTagProps, type CreateProjectProps, type CrudService, type CurrentBranchProjectProps, type DateValueDefinition, type DatetimeValueDefinition, type DeleteAssetProps, type DeleteCollectionProps, type DeleteEntryProps, type DeleteGitTagProps, type DeleteProjectProps, type DirectBooleanValue, type DirectNumberValue, type DirectStringValue, type DirectValue, type ElekIoCoreOptions, type EmailValueDefinition, type Entry, type EntryExport, type EntryFile, type EntryValueDefinition, type Environment, type ExtendedCrudService, type FileReference, type GetChangesProjectProps, type GetRemoteOriginUrlProjectProps, type GitCloneOptions, type GitCommit, type GitCommitIcon, type GitInitOptions, type GitLogOptions, type GitSignature, type GitSwitchOptions, type GitTag, type IpValueDefinition, type ListAssetsProps, type ListBranchesProjectProps, type ListCollectionsProps, type ListEntriesProps, type ListGitTagsProps, type ListProjectsProps, type LocalUser, type NumberValueDefinition, NumberValueDefinitionBaseSchema, type ObjectType, type PaginatedList, type PaginationOptions, type Project, type ProjectExport, type ProjectFile, type ProjectFolder, type ProjectSettings, type ProjectStatus, type ProjectUpgrade, type RangeValueDefinition, type ReadAssetProps, type ReadCollectionProps, type ReadEntryProps, type ReadGitTagProps, type ReadProjectProps, ReferenceValueDefinitionBaseSchema, type ReferencedValue, type ResolvedReferencedValue, type ResolvedValue, type ResolvedValueContentReference, type SearchProjectProps, type ServiceType, type SetRemoteOriginUrlProjectProps, type SetUserProps, type StringValueDefinition, StringValueDefinitionBaseSchema, type SupportedAssetExtension, type SupportedAssetMimeType, type SupportedAssetType, type SupportedIcon, type SupportedLanguage, type SwitchBranchProjectProps, type SynchronizeProjectProps, type TelephoneValueDefinition, type TextValueDefinition, type TextareaValueDefinition, type TimeValueDefinition, type ToggleValueDefinition, type TranslatableBoolean, type TranslatableNumber, type TranslatableString, type UpdateAssetProps, type UpdateCollectionProps, type UpdateEntryProps, type UpdateProjectProps, type UpgradeProjectProps, type UrlValueDefinition, type User, type UserFile, UserTypeSchema, type Uuid, type Value, type ValueContentReference, type ValueContentReferenceToAsset, type ValueContentReferenceToCollection, type ValueContentReferenceToEntry, type ValueDefinition, type ValueDefinitionBase, ValueDefinitionBaseSchema, type ValueInputType, ValueInputTypeSchema, ValueInputWidthSchema, type ValueType, ValueTypeSchema, type Version, assetExportSchema, assetFileSchema, assetSchema, assetValueDefinitionSchema, baseFileSchema, baseFileWithLanguageSchema, baseUserSchema, cloneProjectSchema, cloudUserSchema, collectionExportSchema, collectionFileSchema, collectionSchema, constructorElekIoCoreSchema, countAssetsSchema, countCollectionsSchema, countEntriesSchema, countGitTagsSchema, createAssetSchema, createCollectionSchema, createEntrySchema, createGitTagSchema, createProjectSchema, currentBranchProjectSchema, currentTimestamp, dateValueDefinitionSchema, datetimeValueDefinitionSchema, ElekIoCore as default, deleteAssetSchema, deleteCollectionSchema, deleteEntrySchema, deleteGitTagSchema, deleteProjectSchema, directBooleanValueSchema, directNumberValueSchema, directStringValueSchema, directValueBaseSchema, directValueSchema, elekIoCoreOptionsSchema, emailValueDefinitionSchema, entryExportSchema, entryFileSchema, entrySchema, entryValueDefinitionSchema, environmentSchema, fileReferenceSchema, getChangesProjectSchema, getRemoteOriginUrlProjectSchema, getValueContentSchemaFromDefinition, gitCloneOptionsSchema, gitCommitIconSchema, gitCommitSchema, gitInitOptionsSchema, gitLogOptionsSchema, gitRepositoryPathSchema, gitSignatureSchema, gitSwitchOptionsSchema, gitTagSchema, ipValueDefinitionSchema, listAssetsSchema, listBranchesProjectSchema, listCollectionsSchema, listEntriesSchema, listGitTagsSchema, listProjectsSchema, localUserSchema, numberValueDefinitionSchema, objectTypeSchema, projectExportSchema, projectFileSchema, projectFolderSchema, projectSchema, projectSettingsSchema, projectStatusSchema, projectUpgradeSchema, rangeValueDefinitionSchema, readAssetSchema, readCollectionSchema, readEntrySchema, readGitTagSchema, readProjectSchema, referencedValueSchema, resolvedReferencedValueSchema, resolvedValueContentReferenceSchema, resolvedValueSchema, searchProjectSchema, serviceTypeSchema, setRemoteOriginUrlProjectSchema, setUserSchema, slug, stringValueDefinitionSchema, supportedAssetExtensionSchema, supportedAssetMimeTypeSchema, supportedAssetTypeSchema, supportedIconSchema, supportedLanguageSchema, switchBranchProjectSchema, synchronizeProjectSchema, telephoneValueDefinitionSchema, textValueDefinitionSchema, textareaValueDefinitionSchema, timeValueDefinitionSchema, toggleValueDefinitionSchema, translatableArrayOf, translatableBooleanSchema, translatableNumberSchema, translatableStringSchema, updateAssetSchema, updateCollectionSchema, updateEntrySchema, updateProjectSchema, upgradeProjectSchema, urlValueDefinitionSchema, userFileSchema, userSchema, uuid, uuidSchema, valueContentReferenceBase, valueContentReferenceSchema, valueContentReferenceToAssetSchema, valueContentReferenceToCollectionSchema, valueContentReferenceToEntrySchema, valueContentReferenceWithLanguageBase, valueDefinitionSchema, valueSchema, versionSchema };
package/dist/index.js CHANGED
@@ -340,11 +340,10 @@ var listGitTagsSchema = z5.object({
340
340
  path: gitRepositoryPathSchema
341
341
  });
342
342
 
343
- // src/util/index.ts
344
- var util_exports = {};
345
- __export(util_exports, {
343
+ // src/util/node.ts
344
+ var node_exports = {};
345
+ __export(node_exports, {
346
346
  assignDefaultIfMissing: () => assignDefaultIfMissing,
347
- currentTimestamp: () => currentTimestamp,
348
347
  files: () => files,
349
348
  folders: () => folders,
350
349
  fromPath: () => fromPath,
@@ -354,9 +353,7 @@ __export(util_exports, {
354
353
  notEmpty: () => notEmpty,
355
354
  pathTo: () => pathTo,
356
355
  returnResolved: () => returnResolved,
357
- slug: () => slug,
358
356
  spawnChildProcess: () => spawnChildProcess,
359
- uuid: () => uuid,
360
357
  workingDirectory: () => workingDirectory
361
358
  });
362
359
  import { spawn } from "child_process";
@@ -364,8 +361,6 @@ import Fs from "fs-extra";
364
361
  import { filter, flatten, groupBy, uniq } from "lodash-es";
365
362
  import Os from "os";
366
363
  import Path from "path";
367
- import slugify from "slugify";
368
- import { v4 as generateUuid } from "uuid";
369
364
 
370
365
  // src/schema/projectSchema.ts
371
366
  import { z as z9 } from "zod";
@@ -871,26 +866,7 @@ var searchProjectSchema = z9.object({
871
866
  type: z9.array(objectTypeSchema).optional()
872
867
  });
873
868
 
874
- // src/util/index.ts
875
- var Slugify = slugify.default || slugify;
876
- function uuid() {
877
- return generateUuid();
878
- }
879
- function currentTimestamp() {
880
- return Math.floor(Date.now() / 1e3);
881
- }
882
- function slug(string) {
883
- return Slugify(string, {
884
- replacement: "-",
885
- // replace spaces with replacement character, defaults to `-`
886
- remove: void 0,
887
- // remove characters that match regex, defaults to `undefined`
888
- lower: true,
889
- // convert to lower case, defaults to `false`
890
- strict: true
891
- // strip special characters except replacement, defaults to `false`
892
- });
893
- }
869
+ // src/util/node.ts
894
870
  var workingDirectory = Path.join(Os.homedir(), "elek.io");
895
871
  var pathTo = {
896
872
  tmp: Path.join(workingDirectory, "tmp"),
@@ -1059,6 +1035,29 @@ function getDuplicates(arr, key) {
1059
1035
  );
1060
1036
  }
1061
1037
 
1038
+ // src/util/shared.ts
1039
+ import slugify from "slugify";
1040
+ import { v4 as generateUuid } from "uuid";
1041
+ var Slugify = slugify.default || slugify;
1042
+ function uuid() {
1043
+ return generateUuid();
1044
+ }
1045
+ function currentTimestamp() {
1046
+ return Math.floor(Date.now() / 1e3);
1047
+ }
1048
+ function slug(string) {
1049
+ return Slugify(string, {
1050
+ replacement: "-",
1051
+ // replace spaces with replacement character, defaults to `-`
1052
+ remove: void 0,
1053
+ // remove characters that match regex, defaults to `undefined`
1054
+ lower: true,
1055
+ // convert to lower case, defaults to `false`
1056
+ strict: true
1057
+ // strip special characters except replacement, defaults to `false`
1058
+ });
1059
+ }
1060
+
1062
1061
  // src/service/AbstractCrudService.ts
1063
1062
  var AbstractCrudService = class {
1064
1063
  /**
@@ -1431,10 +1430,7 @@ var UserService = class {
1431
1430
  */
1432
1431
  async get() {
1433
1432
  try {
1434
- return await this.jsonFileService.read(
1435
- pathTo.userFile,
1436
- userFileSchema
1437
- );
1433
+ return await this.jsonFileService.read(pathTo.userFile, userFileSchema);
1438
1434
  } catch (error) {
1439
1435
  return void 0;
1440
1436
  }
@@ -1994,11 +1990,7 @@ var AssetService = class extends AbstractCrudService {
1994
1990
  props.language,
1995
1991
  fileType.extension
1996
1992
  );
1997
- const assetFilePath = pathTo.assetFile(
1998
- props.projectId,
1999
- id,
2000
- props.language
2001
- );
1993
+ const assetFilePath = pathTo.assetFile(props.projectId, id, props.language);
2002
1994
  const assetFile = {
2003
1995
  ...props,
2004
1996
  objectType: "asset",
@@ -2263,10 +2255,7 @@ var CollectionService = class extends AbstractCrudService {
2263
2255
  async update(props) {
2264
2256
  updateCollectionSchema.parse(props);
2265
2257
  const projectPath = pathTo.project(props.projectId);
2266
- const collectionFilePath = pathTo.collectionFile(
2267
- props.projectId,
2268
- props.id
2269
- );
2258
+ const collectionFilePath = pathTo.collectionFile(props.projectId, props.id);
2270
2259
  const prevCollectionFile = await this.read(props);
2271
2260
  const collectionFile = {
2272
2261
  ...prevCollectionFile,
@@ -3122,7 +3111,7 @@ var ElekIoCore = class {
3122
3111
  * Utility / helper functions
3123
3112
  */
3124
3113
  get util() {
3125
- return util_exports;
3114
+ return node_exports;
3126
3115
  }
3127
3116
  /**
3128
3117
  * Exposes git functions
@@ -3200,6 +3189,7 @@ export {
3200
3189
  createGitTagSchema,
3201
3190
  createProjectSchema,
3202
3191
  currentBranchProjectSchema,
3192
+ currentTimestamp,
3203
3193
  dateValueDefinitionSchema,
3204
3194
  datetimeValueDefinitionSchema,
3205
3195
  ElekIoCore as default,
@@ -3264,6 +3254,7 @@ export {
3264
3254
  serviceTypeSchema,
3265
3255
  setRemoteOriginUrlProjectSchema,
3266
3256
  setUserSchema,
3257
+ slug,
3267
3258
  stringValueDefinitionSchema,
3268
3259
  supportedAssetExtensionSchema,
3269
3260
  supportedAssetMimeTypeSchema,
@@ -3289,6 +3280,7 @@ export {
3289
3280
  urlValueDefinitionSchema,
3290
3281
  userFileSchema,
3291
3282
  userSchema,
3283
+ uuid,
3292
3284
  uuidSchema,
3293
3285
  valueContentReferenceBase,
3294
3286
  valueContentReferenceSchema,