@revenexx/cli 0.0.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.
Files changed (130) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +293 -0
  3. package/dist/cli.cjs +104461 -0
  4. package/dist/cli.d.ts +4 -0
  5. package/dist/cli.d.ts.map +1 -0
  6. package/dist/index.cjs +36040 -0
  7. package/dist/index.d.ts +9 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +36021 -0
  10. package/dist/lib/client.d.ts +108 -0
  11. package/dist/lib/client.d.ts.map +1 -0
  12. package/dist/lib/commands/about.d.ts +8 -0
  13. package/dist/lib/commands/about.d.ts.map +1 -0
  14. package/dist/lib/commands/apps-aliases.d.ts +67 -0
  15. package/dist/lib/commands/apps-aliases.d.ts.map +1 -0
  16. package/dist/lib/commands/config-validations.d.ts +55 -0
  17. package/dist/lib/commands/config-validations.d.ts.map +1 -0
  18. package/dist/lib/commands/config.d.ts +591 -0
  19. package/dist/lib/commands/config.d.ts.map +1 -0
  20. package/dist/lib/commands/errors.d.ts +68 -0
  21. package/dist/lib/commands/errors.d.ts.map +1 -0
  22. package/dist/lib/commands/generate.d.ts +12 -0
  23. package/dist/lib/commands/generate.d.ts.map +1 -0
  24. package/dist/lib/commands/generators/base.d.ts +92 -0
  25. package/dist/lib/commands/generators/base.d.ts.map +1 -0
  26. package/dist/lib/commands/generators/index.d.ts +26 -0
  27. package/dist/lib/commands/generators/index.d.ts.map +1 -0
  28. package/dist/lib/commands/generators/language-detector.d.ts +42 -0
  29. package/dist/lib/commands/generators/language-detector.d.ts.map +1 -0
  30. package/dist/lib/commands/generators/typescript/databases.d.ts +35 -0
  31. package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -0
  32. package/dist/lib/commands/generic.d.ts +42 -0
  33. package/dist/lib/commands/generic.d.ts.map +1 -0
  34. package/dist/lib/commands/services/apps.d.ts +3 -0
  35. package/dist/lib/commands/services/apps.d.ts.map +1 -0
  36. package/dist/lib/commands/services/avatars.d.ts +3 -0
  37. package/dist/lib/commands/services/avatars.d.ts.map +1 -0
  38. package/dist/lib/commands/services/carts.d.ts +3 -0
  39. package/dist/lib/commands/services/carts.d.ts.map +1 -0
  40. package/dist/lib/commands/services/channels.d.ts +3 -0
  41. package/dist/lib/commands/services/channels.d.ts.map +1 -0
  42. package/dist/lib/commands/services/customers.d.ts +3 -0
  43. package/dist/lib/commands/services/customers.d.ts.map +1 -0
  44. package/dist/lib/commands/services/greetings.d.ts +3 -0
  45. package/dist/lib/commands/services/greetings.d.ts.map +1 -0
  46. package/dist/lib/commands/services/locale.d.ts +3 -0
  47. package/dist/lib/commands/services/locale.d.ts.map +1 -0
  48. package/dist/lib/commands/services/markets.d.ts +3 -0
  49. package/dist/lib/commands/services/markets.d.ts.map +1 -0
  50. package/dist/lib/commands/services/messaging.d.ts +3 -0
  51. package/dist/lib/commands/services/messaging.d.ts.map +1 -0
  52. package/dist/lib/commands/services/products.d.ts +3 -0
  53. package/dist/lib/commands/services/products.d.ts.map +1 -0
  54. package/dist/lib/commands/services/search.d.ts +3 -0
  55. package/dist/lib/commands/services/search.d.ts.map +1 -0
  56. package/dist/lib/commands/services/sites.d.ts +3 -0
  57. package/dist/lib/commands/services/sites.d.ts.map +1 -0
  58. package/dist/lib/commands/services/storage.d.ts +3 -0
  59. package/dist/lib/commands/services/storage.d.ts.map +1 -0
  60. package/dist/lib/commands/services/tokens.d.ts +3 -0
  61. package/dist/lib/commands/services/tokens.d.ts.map +1 -0
  62. package/dist/lib/commands/tenants.d.ts +25 -0
  63. package/dist/lib/commands/tenants.d.ts.map +1 -0
  64. package/dist/lib/commands/types.d.ts +3 -0
  65. package/dist/lib/commands/types.d.ts.map +1 -0
  66. package/dist/lib/commands/update.d.ts +3 -0
  67. package/dist/lib/commands/update.d.ts.map +1 -0
  68. package/dist/lib/commands/utils/deployment.d.ts +6 -0
  69. package/dist/lib/commands/utils/deployment.d.ts.map +1 -0
  70. package/dist/lib/config.d.ts +119 -0
  71. package/dist/lib/config.d.ts.map +1 -0
  72. package/dist/lib/constants.d.ts +15 -0
  73. package/dist/lib/constants.d.ts.map +1 -0
  74. package/dist/lib/id.d.ts +7 -0
  75. package/dist/lib/id.d.ts.map +1 -0
  76. package/dist/lib/json.d.ts +8 -0
  77. package/dist/lib/json.d.ts.map +1 -0
  78. package/dist/lib/parser.d.ts +32 -0
  79. package/dist/lib/parser.d.ts.map +1 -0
  80. package/dist/lib/project-config.d.ts +26 -0
  81. package/dist/lib/project-config.d.ts.map +1 -0
  82. package/dist/lib/questions.d.ts +19 -0
  83. package/dist/lib/questions.d.ts.map +1 -0
  84. package/dist/lib/sdks.d.ts +3 -0
  85. package/dist/lib/sdks.d.ts.map +1 -0
  86. package/dist/lib/shared/typescript-type-utils.d.ts +39 -0
  87. package/dist/lib/shared/typescript-type-utils.d.ts.map +1 -0
  88. package/dist/lib/spinner.d.ts +28 -0
  89. package/dist/lib/spinner.d.ts.map +1 -0
  90. package/dist/lib/type-generation/attribute.d.ts +21 -0
  91. package/dist/lib/type-generation/attribute.d.ts.map +1 -0
  92. package/dist/lib/type-generation/languages/csharp.d.ts +7 -0
  93. package/dist/lib/type-generation/languages/csharp.d.ts.map +1 -0
  94. package/dist/lib/type-generation/languages/dart.d.ts +9 -0
  95. package/dist/lib/type-generation/languages/dart.d.ts.map +1 -0
  96. package/dist/lib/type-generation/languages/java.d.ts +7 -0
  97. package/dist/lib/type-generation/languages/java.d.ts.map +1 -0
  98. package/dist/lib/type-generation/languages/javascript.d.ts +9 -0
  99. package/dist/lib/type-generation/languages/javascript.d.ts.map +1 -0
  100. package/dist/lib/type-generation/languages/kotlin.d.ts +7 -0
  101. package/dist/lib/type-generation/languages/kotlin.d.ts.map +1 -0
  102. package/dist/lib/type-generation/languages/language.d.ts +43 -0
  103. package/dist/lib/type-generation/languages/language.d.ts.map +1 -0
  104. package/dist/lib/type-generation/languages/php.d.ts +7 -0
  105. package/dist/lib/type-generation/languages/php.d.ts.map +1 -0
  106. package/dist/lib/type-generation/languages/swift.d.ts +7 -0
  107. package/dist/lib/type-generation/languages/swift.d.ts.map +1 -0
  108. package/dist/lib/type-generation/languages/typescript.d.ts +9 -0
  109. package/dist/lib/type-generation/languages/typescript.d.ts.map +1 -0
  110. package/dist/lib/types.d.ts +66 -0
  111. package/dist/lib/types.d.ts.map +1 -0
  112. package/dist/lib/utils.d.ts +25 -0
  113. package/dist/lib/utils.d.ts.map +1 -0
  114. package/dist/lib/validations.d.ts +2 -0
  115. package/dist/lib/validations.d.ts.map +1 -0
  116. package/dist/tests/api-key-probe.test.d.ts +2 -0
  117. package/dist/tests/api-key-probe.test.d.ts.map +1 -0
  118. package/dist/tests/apps-manifest.test.d.ts +2 -0
  119. package/dist/tests/apps-manifest.test.d.ts.map +1 -0
  120. package/dist/tests/auth-hint.test.d.ts +2 -0
  121. package/dist/tests/auth-hint.test.d.ts.map +1 -0
  122. package/dist/tests/project-config.test.d.ts +2 -0
  123. package/dist/tests/project-config.test.d.ts.map +1 -0
  124. package/dist/tests/redact.test.d.ts +2 -0
  125. package/dist/tests/redact.test.d.ts.map +1 -0
  126. package/dist/tests/tenants.test.d.ts +2 -0
  127. package/dist/tests/tenants.test.d.ts.map +1 -0
  128. package/dist/vitest.config.d.ts +3 -0
  129. package/dist/vitest.config.d.ts.map +1 -0
  130. package/package.json +104 -0
@@ -0,0 +1,8 @@
1
+ export declare const JSONBig: {
2
+ parse: <T = unknown>(text: string) => T;
3
+ stringify: {
4
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
5
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
6
+ };
7
+ };
8
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../lib/json.ts"],"names":[],"mappings":"AA8CA,eAAO,MAAM,OAAO;YACV,CAAC,kBAAkB,MAAM,KAAG,CAAC;;;;;CAGtC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { CliConfig } from "./types.js";
2
+ declare const cliConfig: CliConfig;
3
+ type JsonObject = Record<string, unknown>;
4
+ /**
5
+ * Strip token-like and credential-like substrings from text before it ever
6
+ * reaches stdout/stderr or a bug-report URL. Conservative: prefers to over-
7
+ * redact rather than leak. Patterns kept simple and ordered.
8
+ */
9
+ export declare const redactSecrets: (input: unknown) => string;
10
+ export declare const parse: (data: unknown) => void;
11
+ export declare const drawTable: (data: Array<JsonObject | null | undefined>) => void;
12
+ export declare const drawJSON: (data: unknown) => void;
13
+ /**
14
+ * Detect "token missing / invalid / expired" failure modes and return a
15
+ * one-line user-facing hint. Returns null when the error doesn't look auth-
16
+ * related so other failure modes (network, validation, etc.) aren't muddied
17
+ * with login advice.
18
+ */
19
+ export declare const authHint: (err: unknown) => string | null;
20
+ export declare const parseError: (err: Error) => void;
21
+ export declare const actionRunner: <T extends (...args: unknown[]) => Promise<unknown>>(fn: T) => ((...args: Parameters<T>) => Promise<void>);
22
+ export declare const parseInteger: (value: string) => number;
23
+ export declare const parseBool: (value: string) => boolean;
24
+ export declare const log: (message?: string) => void;
25
+ export declare const warn: (message?: string) => void;
26
+ export declare const hint: (message?: string) => void;
27
+ export declare const success: (message?: string) => void;
28
+ export declare const error: (message?: string) => void;
29
+ export declare const logo = "\n /$$$$$$$\n| $$__ $$\n| $$ \\ $$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$\n| $$$$$$$/ /$$__ $$| $$ /$$//$$__ $$| $$__ $$ /$$__ $$| $$ /$$/| $$ /$$/\n| $$__ $$| $$$$$$$$ \\ $$$$$$/ | $$$$$$$$| $$ \\ $$| $$$$$$$$ \\ $$$$/ \\ $$$$/\n| $$ \\ $$| $$_____/ \\ $$$/ | $$_____/| $$ | $$| $$_____/ >$$ $$ >$$ $$\n| $$ | $$| $$$$$$$ \\ $/ | $$$$$$$| $$ | $$| $$$$$$$ /$$$\\\\ $$ /$$$\\\\ $$\n|__/ |__/ \\_______/ \\_/ \\_______/|__/ |__/ \\_______/|__/ \\__/|__/ \\__/\n CLI\n\n";
30
+ export declare const commandDescriptions: Record<string, string>;
31
+ export { cliConfig };
32
+ //# sourceMappingURL=parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../lib/parser.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,QAAA,MAAM,SAAS,EAAE,SAQhB,CAAC;AAEF,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAgB1C;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MA0B9C,CAAC;AA2CF,eAAO,MAAM,KAAK,GAAI,MAAM,OAAO,KAAG,IA6BrC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,KAAK,CAAC,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC,KAAG,IA+DtE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,OAAO,KAAG,IAExC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,OAAO,KAAG,MAAM,GAAG,IA+ChD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,KAAK,KAAG,IA2EvC,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,EAElD,IAAI,CAAC,KACJ,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAc5C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAM5C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,KAAG,OAIzC,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,UAAU,MAAM,KAAG,IAEtC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,UAAU,MAAM,KAAG,IAIvC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,UAAU,MAAM,KAAG,IAEvC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,UAAU,MAAM,KAAG,IAI1C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,UAAU,MAAM,KAAG,IAGxC,CAAC;AAEF,eAAO,MAAM,IAAI,+mBAAW,CAAC;AAE7B,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2BtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Minimal loader for a project-local `.revenexx.yaml`.
3
+ *
4
+ * Supported syntax: flat `key: value` pairs, `#` comments, blank lines.
5
+ * Walks up from the current working directory to find the nearest file —
6
+ * mirroring the `auth.json` discovery pattern from Composer.
7
+ */
8
+ export interface ProjectConfig {
9
+ token?: string;
10
+ apiUrl?: string;
11
+ projectId?: string;
12
+ tenant?: string;
13
+ raw: Record<string, string>;
14
+ source: string | null;
15
+ }
16
+ export declare const loadProjectConfig: (start?: string) => ProjectConfig;
17
+ /**
18
+ * Resolve the tenant slug for API requests. The gateway requires an
19
+ * `X-Revenexx-Tenant` header on every request.
20
+ *
21
+ * Resolution order: ~/.revenexx/tenant (explicit `tenants use` switch) →
22
+ * REVENEXX_TENANT env → `tenant:` in .revenexx.yaml → fallback (usually
23
+ * the project ID).
24
+ */
25
+ export declare const resolveTenant: (fallback?: string) => string;
26
+ //# sourceMappingURL=project-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-config.d.ts","sourceRoot":"","sources":["../../lib/project-config.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AA0CD,eAAO,MAAM,iBAAiB,GAC5B,QAAO,MAAsB,KAC5B,aAmBF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,WAAU,MAAW,KAAG,MAarD,CAAC"}
@@ -0,0 +1,19 @@
1
+ interface Choice {
2
+ name: string;
3
+ value: any;
4
+ disabled?: boolean | string;
5
+ current?: boolean;
6
+ short?: string;
7
+ }
8
+ interface Question {
9
+ type: string;
10
+ name: string;
11
+ message: string;
12
+ default?: any;
13
+ choices?: (() => Promise<Choice[]> | Choice[]) | Choice[] | string[];
14
+ validate?: (value: any) => boolean | string | Promise<boolean | string>;
15
+ mask?: string;
16
+ }
17
+ export declare const questionsLogout: Question[];
18
+ export {};
19
+ //# sourceMappingURL=questions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../lib/questions.ts"],"names":[],"mappings":"AAIA,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EACJ,CAAC,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,GACpC,MAAM,EAAE,GACR,MAAM,EAAE,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,EAAE,QAAQ,EA+BrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import Client from "./client.js";
2
+ export declare const sdkForProject: () => Promise<Client>;
3
+ //# sourceMappingURL=sdks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdks.d.ts","sourceRoot":"","sources":["../../lib/sdks.ts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,aAAa,CAAC;AASjC,eAAO,MAAM,aAAa,QAAa,OAAO,CAAC,MAAM,CAmEpD,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { AttributeType, ColumnType, CollectionType, TableType } from "../commands/config.js";
2
+ /**
3
+ * Union type for attributes from both collections and tables.
4
+ */
5
+ export type TypeAttribute = AttributeType | ColumnType;
6
+ /**
7
+ * Common entity interface (collection or table).
8
+ */
9
+ export type TypeEntity = Pick<CollectionType | TableType, "$id" | "name">;
10
+ /**
11
+ * Converts an attribute to its TypeScript type representation.
12
+ *
13
+ * @param attribute - The attribute to convert
14
+ * @param entities - List of all entities for resolving relationships
15
+ * @param entityName - Name of the entity containing this attribute (for enum naming)
16
+ * @param forCreate - If true, use Create suffix for relationship types (for input types)
17
+ * @returns The TypeScript type string
18
+ */
19
+ export declare function getTypeScriptType(attribute: TypeAttribute, entities: TypeEntity[], entityName: string, forCreate?: boolean): string;
20
+ /**
21
+ * Detects the Revenexx SDK dependency to use based on the project's package.json or deno.json.
22
+ *
23
+ * @returns The appropriate Revenexx SDK import path
24
+ */
25
+ export declare function getSdkDependency(): string;
26
+ /**
27
+ * Detects whether the user's project uses native ESM.
28
+ * Returns ".js" for ESM projects (package.json "type": "module" or Deno), "" for non-ESM projects.
29
+ */
30
+ export declare function detectImportExtension(cwd?: string): string;
31
+ /**
32
+ * Checks if the Revenexx SDK dependency supports server-side methods.
33
+ *
34
+ * @param sdkDep - The Revenexx SDK dependency string
35
+ * @param override - Optional override (auto|true|false)
36
+ * @returns True if server-side methods are supported
37
+ */
38
+ export declare function supportsServerSideMethods(sdkDep: string, override?: "auto" | "true" | "false"): boolean;
39
+ //# sourceMappingURL=typescript-type-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-type-utils.d.ts","sourceRoot":"","sources":["../../../lib/shared/typescript-type-utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,cAAc,EACd,SAAS,EACV,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,UAAU,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,GAAG,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC,CAAC;AAE1E;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,UAAU,EAAE,EACtB,UAAU,EAAE,MAAM,EAClB,SAAS,GAAE,OAAe,GACzB,MAAM,CA0ER;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CA+BzC;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,GAAE,MAAsB,GAAG,MAAM,CAoBzE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,MAAM,GAAG,MAAM,GAAG,OAAgB,GAC3C,OAAO,CAIT"}
@@ -0,0 +1,28 @@
1
+ import progress from "cli-progress";
2
+ declare const SPINNER_ARC = "arc";
3
+ declare const SPINNER_DOTS = "dots";
4
+ interface SpinnerPayload {
5
+ status: string;
6
+ resource: string;
7
+ id: string;
8
+ prefix?: string;
9
+ end?: string;
10
+ errorMessage?: string;
11
+ }
12
+ declare class Spinner {
13
+ static updatesBar: progress.MultiBar;
14
+ private bar;
15
+ private spinnerInterval?;
16
+ static start(clearOnComplete?: boolean, hideCursor?: boolean): void;
17
+ static stop(): void;
18
+ static formatter(_options: unknown, _params: unknown, payload: SpinnerPayload): string;
19
+ static line(prefix: string, start: string, middle: string, end: string, separator?: string): string;
20
+ constructor(payload: SpinnerPayload, total?: number, startValue?: number);
21
+ update(payload: Partial<SpinnerPayload>): this;
22
+ fail(payload: Partial<SpinnerPayload>): void;
23
+ startSpinner(name: string): void;
24
+ stopSpinner(): void;
25
+ replaceSpinner(name: string): void;
26
+ }
27
+ export { Spinner, SPINNER_ARC, SPINNER_DOTS };
28
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../lib/spinner.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,cAAc,CAAC;AAGpC,QAAA,MAAM,WAAW,QAAQ,CAAC;AAC1B,QAAA,MAAM,YAAY,SAAS,CAAC;AAO5B,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAaD,cAAM,OAAO;IACX,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACrC,OAAO,CAAC,GAAG,CAAqB;IAChC,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEzC,MAAM,CAAC,KAAK,CACV,eAAe,GAAE,OAAc,EAC/B,UAAU,GAAE,OAAc,GACzB,IAAI;IAWP,MAAM,CAAC,IAAI,IAAI,IAAI;IAInB,MAAM,CAAC,SAAS,CACd,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,cAAc,GACtB,MAAM;IA0BT,MAAM,CAAC,IAAI,CACT,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,SAAS,GAAE,MAAY,GACtB,MAAM;gBAKP,OAAO,EAAE,cAAc,EACvB,KAAK,GAAE,MAAY,EACnB,UAAU,GAAE,MAAU;IAKxB,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI;IAK9C,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI;IAK5C,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAUhC,WAAW,IAAI,IAAI;IAMnB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAInC;AAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ export declare const AttributeType: {
2
+ readonly STRING: "string";
3
+ readonly TEXT: "text";
4
+ readonly VARCHAR: "varchar";
5
+ readonly MEDIUMTEXT: "mediumtext";
6
+ readonly LONGTEXT: "longtext";
7
+ readonly INTEGER: "integer";
8
+ readonly FLOAT: "double";
9
+ readonly BOOLEAN: "boolean";
10
+ readonly DATETIME: "datetime";
11
+ readonly EMAIL: "email";
12
+ readonly IP: "ip";
13
+ readonly URL: "url";
14
+ readonly ENUM: "enum";
15
+ readonly RELATIONSHIP: "relationship";
16
+ readonly POINT: "point";
17
+ readonly LINESTRING: "linestring";
18
+ readonly POLYGON: "polygon";
19
+ };
20
+ export type AttributeTypeValue = (typeof AttributeType)[keyof typeof AttributeType];
21
+ //# sourceMappingURL=attribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../lib/type-generation/attribute.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CAkBhB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { LanguageMeta, Attribute, Collection } from "./language.js";
2
+ export declare class CSharp extends LanguageMeta {
3
+ getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
4
+ getTemplate(): string;
5
+ getFileName(collection: Collection): string;
6
+ }
7
+ //# sourceMappingURL=csharp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csharp.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/csharp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpE,qBAAa,MAAO,SAAQ,YAAY;IACtC,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IA8DT,WAAW,IAAI,MAAM;IAqHrB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM;CAG5C"}
@@ -0,0 +1,9 @@
1
+ import { LanguageMeta, Attribute, Collection, EnumDefinition } from "./language.js";
2
+ export declare class Dart extends LanguageMeta {
3
+ getPackageName(): string;
4
+ getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
5
+ generateEnum(entityName: string, attributeKey: string, elements: string[]): EnumDefinition;
6
+ getTemplate(): string;
7
+ getFileName(collection: Collection): string;
8
+ }
9
+ //# sourceMappingURL=dart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dart.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/dart.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EAEf,MAAM,eAAe,CAAC;AAmBvB,qBAAa,IAAK,SAAQ,YAAY;IACpC,cAAc,IAAI,MAAM;IAqCxB,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IA8DT,YAAY,CACV,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAAE,GACjB,cAAc;IAWjB,WAAW,IAAI,MAAM;IA+GrB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM;CAG5C"}
@@ -0,0 +1,7 @@
1
+ import { LanguageMeta, Attribute, Collection } from "./language.js";
2
+ export declare class Java extends LanguageMeta {
3
+ getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
4
+ getTemplate(): string;
5
+ getFileName(collection: Collection): string;
6
+ }
7
+ //# sourceMappingURL=java.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"java.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/java.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpE,qBAAa,IAAK,SAAQ,YAAY;IACpC,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IA2DT,WAAW,IAAI,MAAM;IAiFrB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM;CAG5C"}
@@ -0,0 +1,9 @@
1
+ import { LanguageMeta, Attribute, Collection } from "./language.js";
2
+ export declare class JavaScript extends LanguageMeta {
3
+ getType(attribute: Attribute, collections?: Collection[]): string;
4
+ isSingleFile(): boolean;
5
+ private _getSdkDependency;
6
+ getTemplate(): string;
7
+ getFileName(_: Collection | undefined): string;
8
+ }
9
+ //# sourceMappingURL=javascript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/javascript.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpE,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,MAAM;IA4DjE,YAAY,IAAI,OAAO;IAIvB,OAAO,CAAC,iBAAiB;IAezB,WAAW,IAAI,MAAM;IA8BrB,WAAW,CAAC,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM;CAG/C"}
@@ -0,0 +1,7 @@
1
+ import { LanguageMeta, Attribute, Collection } from "./language.js";
2
+ export declare class Kotlin extends LanguageMeta {
3
+ getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
4
+ getTemplate(): string;
5
+ getFileName(collection: Collection): string;
6
+ }
7
+ //# sourceMappingURL=kotlin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kotlin.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/kotlin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpE,qBAAa,MAAO,SAAQ,YAAY;IACtC,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IA8DT,WAAW,IAAI,MAAM;IAiCrB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM;CAG5C"}
@@ -0,0 +1,43 @@
1
+ import type { AttributeType, ColumnType, CollectionType, TableType } from "../../commands/config.js";
2
+ export type Attribute = AttributeType | ColumnType;
3
+ export type Collection = (CollectionType | TableType) & {
4
+ attributes: Attribute[];
5
+ };
6
+ export type EnumMember = {
7
+ key: string;
8
+ value: string;
9
+ };
10
+ export type EnumDefinition = {
11
+ name: string;
12
+ members: EnumMember[];
13
+ };
14
+ export declare abstract class LanguageMeta {
15
+ constructor();
16
+ static toKebabCase(string: string): string;
17
+ static toSnakeCase(string: string): string;
18
+ static toUpperSnakeCase(string: string): string;
19
+ static sanitizeEnumKey(value: string): string;
20
+ static toCamelCase(string: string): string;
21
+ static toPascalCase(string: string): string;
22
+ static getRelatedCollectionId(attribute: Attribute): string | undefined;
23
+ static getRelatedCollection(attribute: Attribute, collections?: Collection[]): Collection;
24
+ /**
25
+ * Get the type literal of the given attribute.
26
+ */
27
+ abstract getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
28
+ generateEnum(_entityName: string, _attributeKey: string, _elements: string[]): EnumDefinition;
29
+ /**
30
+ * Returns true if the language uses a single file for all types.
31
+ */
32
+ isSingleFile(): boolean;
33
+ /**
34
+ * Get the EJS template used to generate the types for this language.
35
+ */
36
+ abstract getTemplate(): string;
37
+ /**
38
+ * Get the file extension used by files of this language.
39
+ */
40
+ abstract getFileName(collection?: Collection): string;
41
+ }
42
+ export declare function detectLanguage(): string;
43
+ //# sourceMappingURL=language.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/language.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,cAAc,EACd,SAAS,EACV,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG,CAAC,cAAc,GAAG,SAAS,CAAC,GAAG;IACtD,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB,CAAC;AAEF,8BAAsB,YAAY;;IAOhC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAW1C,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI1C,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI/C,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAU7C,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAM1C,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI3C,MAAM,CAAC,sBAAsB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS;IAUvE,MAAM,CAAC,oBAAoB,CACzB,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,GACzB,UAAU;IASb;;OAEG;IACH,QAAQ,CAAC,OAAO,CACd,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IAET,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EAAE,GAClB,cAAc;IAIjB;;OAEG;IACH,YAAY,IAAI,OAAO;IAIvB;;OAEG;IACH,QAAQ,CAAC,WAAW,IAAI,MAAM;IAE9B;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,MAAM;CACtD;AAKD,wBAAgB,cAAc,IAAI,MAAM,CAsCvC"}
@@ -0,0 +1,7 @@
1
+ import { LanguageMeta, Attribute, Collection } from "./language.js";
2
+ export declare class PHP extends LanguageMeta {
3
+ getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
4
+ getTemplate(): string;
5
+ getFileName(collection: Collection): string;
6
+ }
7
+ //# sourceMappingURL=php.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"php.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/php.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpE,qBAAa,GAAI,SAAQ,YAAY;IACnC,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IA0DT,WAAW,IAAI,MAAM;IA0DrB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM;CAG5C"}
@@ -0,0 +1,7 @@
1
+ import { LanguageMeta, Attribute, Collection } from "./language.js";
2
+ export declare class Swift extends LanguageMeta {
3
+ getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
4
+ getTemplate(): string;
5
+ getFileName(collection: Collection): string;
6
+ }
7
+ //# sourceMappingURL=swift.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swift.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/swift.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpE,qBAAa,KAAM,SAAQ,YAAY;IACrC,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IA8DT,WAAW,IAAI,MAAM;IAiHrB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM;CAG5C"}
@@ -0,0 +1,9 @@
1
+ import { LanguageMeta, Attribute, Collection, EnumDefinition } from "./language.js";
2
+ export declare class TypeScript extends LanguageMeta {
3
+ getType(attribute: Attribute, collections?: Collection[], collectionName?: string): string;
4
+ isSingleFile(): boolean;
5
+ generateEnum(entityName: string, attributeKey: string, elements: string[]): EnumDefinition;
6
+ getTemplate(): string;
7
+ getFileName(_: Collection | undefined): string;
8
+ }
9
+ //# sourceMappingURL=typescript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../../lib/type-generation/languages/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EAEf,MAAM,eAAe,CAAC;AAyBvB,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,WAAW,CAAC,EAAE,UAAU,EAAE,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM;IAuBT,YAAY,IAAI,OAAO;IAIvB,YAAY,CACV,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAAE,GACjB,cAAc;IAWjB,WAAW,IAAI,MAAM;IAiCrB,WAAW,CAAC,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM;CAG/C"}
@@ -0,0 +1,66 @@
1
+ import type { File } from "undici";
2
+ import type { ReadableStream } from "node:stream/web";
3
+ export type ResponseType = "json" | "arraybuffer";
4
+ export interface Headers {
5
+ [key: string]: string;
6
+ }
7
+ export interface RequestParams {
8
+ [key: string]: unknown;
9
+ }
10
+ export interface FileUpload {
11
+ type: "file";
12
+ file: File;
13
+ filename: string;
14
+ }
15
+ export interface FileInput {
16
+ type: "file";
17
+ stream: ReadableStream;
18
+ filename: string;
19
+ size: number;
20
+ }
21
+ export interface UploadProgress {
22
+ $id: string;
23
+ progress: number;
24
+ sizeUploaded: number;
25
+ chunksTotal: number;
26
+ chunksUploaded: number;
27
+ }
28
+ export interface ConfigData {
29
+ [key: string]: unknown;
30
+ }
31
+ export interface Entity {
32
+ $id: string;
33
+ [key: string]: unknown;
34
+ }
35
+ export interface ParsedData {
36
+ [key: string]: unknown;
37
+ }
38
+ export interface CommandDescription {
39
+ [key: string]: string;
40
+ }
41
+ export interface CliConfig {
42
+ verbose: boolean;
43
+ json: boolean;
44
+ force: boolean;
45
+ all: boolean;
46
+ ids: string[];
47
+ report: boolean;
48
+ reportData: Record<string, unknown>;
49
+ endpoint?: string;
50
+ token?: string;
51
+ tenant?: string;
52
+ }
53
+ export interface SessionData {
54
+ endpoint: string;
55
+ email?: string;
56
+ phone?: string;
57
+ cookie?: string;
58
+ }
59
+ export interface GlobalConfigData extends ConfigData {
60
+ sessions: {
61
+ [key: string]: SessionData;
62
+ };
63
+ current: string;
64
+ cookie?: string;
65
+ }
66
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,QAAQ,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;KAC5B,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ export declare const getErrorMessage: (error: unknown) => string;
3
+ /**
4
+ * Get the latest version from npm registry
5
+ */
6
+ export declare function getLatestVersion(): Promise<string>;
7
+ /**
8
+ * Compare versions using semantic versioning
9
+ */
10
+ export declare function compareVersions(current: string, latest: string): number;
11
+ export declare function getAllFiles(folder: string): string[];
12
+ export declare function isPortTaken(port: number): Promise<boolean>;
13
+ export declare function systemHasCommand(command: string): boolean;
14
+ export declare function isCloud(): boolean;
15
+ export declare function arrayEqualsUnordered(left: unknown, right: unknown): boolean;
16
+ /**
17
+ * Filters an object to only include fields defined in a Zod object schema.
18
+ * Uses the schema's shape to determine allowed keys.
19
+ *
20
+ * @param data - The data to filter
21
+ * @param schema - A Zod object schema with a shape property
22
+ * @returns The filtered data with only schema-defined fields
23
+ */
24
+ export declare function filterBySchema<T extends z.ZodObject<z.ZodRawShape>>(data: Record<string, unknown>, schema: T): z.infer<T>;
25
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe,GAAI,OAAO,OAAO,KAAG,MAMhD,CAAC;AAEF;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAWxD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAavE;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBpD;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAmBhE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAqBzD;AAED,wBAAgB,OAAO,IAAI,OAAO,CAIjC;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAa3E;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,EACjE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,MAAM,EAAE,CAAC,GACR,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAWZ"}
@@ -0,0 +1,2 @@
1
+ export declare const validateRequired: (resource: string, value: unknown) => string | true;
2
+ //# sourceMappingURL=validations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validations.d.ts","sourceRoot":"","sources":["../../lib/validations.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAC3B,UAAU,MAAM,EAChB,OAAO,OAAO,KACb,MAAM,GAAG,IAgBX,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=api-key-probe.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-key-probe.test.d.ts","sourceRoot":"","sources":["../../tests/api-key-probe.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=apps-manifest.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps-manifest.test.d.ts","sourceRoot":"","sources":["../../tests/apps-manifest.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=auth-hint.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-hint.test.d.ts","sourceRoot":"","sources":["../../tests/auth-hint.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=project-config.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-config.test.d.ts","sourceRoot":"","sources":["../../tests/project-config.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=redact.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redact.test.d.ts","sourceRoot":"","sources":["../../tests/redact.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tenants.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenants.test.d.ts","sourceRoot":"","sources":["../../tests/tenants.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
3
+ //# sourceMappingURL=vitest.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAaG"}