@axinom/mosaic-cli 0.54.0-rc.4 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +6 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/apply-templates/apply-templates.js +12 -11
- package/dist/commands/apply-templates/apply-templates.js.map +1 -1
- package/dist/commands/apply-templates/bitwarden-vault.js.map +1 -1
- package/dist/commands/create/command.js +26 -11
- package/dist/commands/create/command.js.map +1 -1
- package/dist/commands/create/createSolution.js +31 -31
- package/dist/commands/create/createSolution.js.map +1 -1
- package/dist/commands/create/helpers/git.d.ts +1 -1
- package/dist/commands/create/helpers/git.js +8 -9
- package/dist/commands/create/helpers/git.js.map +1 -1
- package/dist/commands/create/helpers/logger.js +8 -7
- package/dist/commands/create/helpers/logger.js.map +1 -1
- package/dist/commands/create/runQuestionaire.js +18 -18
- package/dist/commands/create/runQuestionaire.js.map +1 -1
- package/dist/commands/create-extension-config/create-extension-config.js +14 -14
- package/dist/commands/create-extension-config/create-extension-config.js.map +1 -1
- package/dist/commands/create-extension-config/index.js +2 -1
- package/dist/commands/create-extension-config/index.js.map +1 -1
- package/dist/commands/get-access-token/get-dev-access-token.js +3 -4
- package/dist/commands/get-access-token/get-dev-access-token.js.map +1 -1
- package/dist/commands/get-access-token/index.js +6 -6
- package/dist/commands/get-access-token/index.js.map +1 -1
- package/dist/commands/graphql-diff.js +44 -46
- package/dist/commands/graphql-diff.js.map +1 -1
- package/dist/commands/hosting/manifest/manifest-commands.js +3 -4
- package/dist/commands/hosting/manifest/manifest-commands.js.map +1 -1
- package/dist/commands/hosting/manifest/upload-manifest.js +7 -7
- package/dist/commands/hosting/manifest/upload-manifest.js.map +1 -1
- package/dist/commands/hosting/pilet/pilet-commands.js +3 -4
- package/dist/commands/hosting/pilet/pilet-commands.js.map +1 -1
- package/dist/commands/hosting/pilet/register-pilet.js +13 -10
- package/dist/commands/hosting/pilet/register-pilet.js.map +1 -1
- package/dist/commands/hosting/service/deploy/service-deploy-command.js +3 -4
- package/dist/commands/hosting/service/deploy/service-deploy-command.js.map +1 -1
- package/dist/commands/hosting/service/deploy/service-deploy.js +14 -14
- package/dist/commands/hosting/service/deploy/service-deploy.js.map +1 -1
- package/dist/commands/hosting/service/undeploy/service-undeploy-command.js +3 -4
- package/dist/commands/hosting/service/undeploy/service-undeploy-command.js.map +1 -1
- package/dist/commands/hosting/service/undeploy/service-undeploy.js +11 -11
- package/dist/commands/hosting/service/undeploy/service-undeploy.js.map +1 -1
- package/dist/commands/msg-codegen/codegen.js +326 -322
- package/dist/commands/msg-codegen/codegen.js.map +1 -1
- package/dist/commands/msg-codegen/index.js +4 -5
- package/dist/commands/msg-codegen/index.js.map +1 -1
- package/dist/commands/msg-codegen/lint.js +55 -60
- package/dist/commands/msg-codegen/lint.js.map +1 -1
- package/dist/commands/msg-codegen/presets.js +10 -1
- package/dist/commands/msg-codegen/presets.js.map +1 -1
- package/dist/commands/msg-codegen/utils.d.ts +1 -0
- package/dist/commands/msg-codegen/utils.js +38 -26
- package/dist/commands/msg-codegen/utils.js.map +1 -1
- package/dist/commands/msg-diff/git-checkout-tmp.js +7 -6
- package/dist/commands/msg-diff/git-checkout-tmp.js.map +1 -1
- package/dist/commands/msg-diff/index.js +4 -4
- package/dist/commands/msg-diff/index.js.map +1 -1
- package/dist/commands/msg-diff/msg-diff.js +188 -198
- package/dist/commands/msg-diff/msg-diff.js.map +1 -1
- package/dist/commands/pg-dump/generate.js +5 -4
- package/dist/commands/pg-dump/generate.js.map +1 -1
- package/dist/commands/publish-schema-to-db/content-entity-model.js.map +1 -1
- package/dist/commands/publish-schema-to-db/generate.js +45 -45
- package/dist/commands/publish-schema-to-db/generate.js.map +1 -1
- package/dist/commands/publish-schema-to-db/index.js +3 -4
- package/dist/commands/publish-schema-to-db/index.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/columns/pk-column.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/columns/primitive-column.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/json-schema-parse-utils.js +18 -22
- package/dist/commands/publish-schema-to-db/pg-models/json-schema-parse-utils.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/pg-sql-gen-utils.js +26 -29
- package/dist/commands/publish-schema-to-db/pg-models/pg-sql-gen-utils.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/pgl-utils.js +11 -11
- package/dist/commands/publish-schema-to-db/pg-models/pgl-utils.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/tables/content-entity-table.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/tables/object-property-table.js.map +1 -1
- package/dist/commands/publish-schema-to-db/pg-models/tables/relations-table.js.map +1 -1
- package/dist/commands/publish-schema-to-db/postprocessors/postprocessing-utils.js +2 -3
- package/dist/commands/publish-schema-to-db/postprocessors/postprocessing-utils.js.map +1 -1
- package/dist/commands/service/purge-permissions/purge-permissions-command.js +3 -4
- package/dist/commands/service/purge-permissions/purge-permissions-command.js.map +1 -1
- package/dist/commands/service/purge-permissions/purge-permissions.js +4 -5
- package/dist/commands/service/purge-permissions/purge-permissions.js.map +1 -1
- package/dist/commands/service/sync-permissions/sync-permission-command.js +3 -4
- package/dist/commands/service/sync-permissions/sync-permission-command.js.map +1 -1
- package/dist/commands/service/sync-permissions/sync-permissions.js +5 -5
- package/dist/commands/service/sync-permissions/sync-permissions.js.map +1 -1
- package/dist/commands/unpublish-pilet/index.js +7 -7
- package/dist/commands/unpublish-pilet/index.js.map +1 -1
- package/dist/commands/unpublish-pilet/unpublish-pilet.js +4 -4
- package/dist/commands/unpublish-pilet/unpublish-pilet.js.map +1 -1
- package/package.json +18 -13
- package/src/commands/apply-templates/apply-templates.spec.ts +20 -11
- package/src/commands/apply-templates/apply-templates.ts +1 -1
- package/src/commands/create/helpers/logger.ts +1 -1
- package/src/commands/create-extension-config/create-extension-config.ts +1 -1
- package/src/commands/get-access-token/index.ts +1 -1
- package/src/commands/hosting/pilet/register-pilet.ts +1 -1
- package/src/commands/msg-codegen/codegen.ts +34 -6
- package/src/commands/msg-codegen/presets.ts +12 -0
- package/src/commands/msg-codegen/utils.ts +14 -1
- package/src/commands/msg-diff/msg-diff.spec.ts +6 -9
- package/src/commands/pg-dump/generate.ts +1 -1
- package/src/commands/publish-schema-to-db/pg-models/columns/fk-column.spec.ts +18 -14
- package/src/commands/publish-schema-to-db/pg-models/columns/pk-column.spec.ts +11 -7
- package/src/commands/publish-schema-to-db/pg-models/columns/primitive-column.spec.ts +1 -0
- package/src/commands/publish-schema-to-db/pg-models/columns/virtual-fk-column.spec.ts +1 -0
- package/src/commands/publish-schema-to-db/pg-models/json-schema-parse-utils.spec.ts +2 -1
- package/src/commands/publish-schema-to-db/pg-models/pg-sql-gen-utils.spec.ts +1 -0
- package/src/commands/publish-schema-to-db/pg-models/pgl-utils.spec.ts +1 -0
- package/src/commands/unpublish-pilet/index.ts +1 -1
- package/src/types/find-nearest-file.d.ts +11 -0
- package/src/commands/publish-schema-to-db/jest.config.js +0 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSONSchema4 } from 'json-schema';
|
|
2
|
+
import { describe, expect, test } from 'vitest';
|
|
2
3
|
import { PgType } from '../abstractions';
|
|
3
4
|
import { getPropertySchema, mapToPgType } from './json-schema-parse-utils';
|
|
4
5
|
|
|
@@ -115,7 +116,7 @@ describe('mapToPgType', () => {
|
|
|
115
116
|
],
|
|
116
117
|
];
|
|
117
118
|
|
|
118
|
-
test.each(testData)('%s', (
|
|
119
|
+
test.each(testData)('%s', (_description: string, input: TestInput) => {
|
|
119
120
|
// Arrange
|
|
120
121
|
const schema = JSON.parse(input.schemaJson) as JSONSchema4;
|
|
121
122
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare module 'find-nearest-file' {
|
|
2
|
+
/**
|
|
3
|
+
* Finds the nearest file with the given name, starting from the current directory
|
|
4
|
+
* and traversing up the directory tree.
|
|
5
|
+
* @param filename - The name of the file to find
|
|
6
|
+
* @param directory - Optional starting directory (defaults to current working directory)
|
|
7
|
+
* @returns The full path to the file, or null if not found
|
|
8
|
+
*/
|
|
9
|
+
function findNearestFile(filename: string, directory?: string): string | null;
|
|
10
|
+
export = findNearestFile;
|
|
11
|
+
}
|