@tailor-platform/sdk 1.76.2 → 1.78.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/CHANGELOG.md +26 -0
- package/dist/{application-CqjCcZ2n.mjs → application-CUxVA7Fs.mjs} +8 -8
- package/dist/application-CUxVA7Fs.mjs.map +1 -0
- package/dist/application-Dp_-ioiP.mjs +3 -0
- package/dist/cli/commands/deploy/deploy.d.mts +8 -3
- package/dist/cli/commands/show.d.mts +9 -3
- package/dist/cli/commands/workspace/create.d.mts +3 -0
- package/dist/cli/commands/workspace/list.d.mts +1 -0
- package/dist/cli/commands/workspace/transform.d.mts +2 -0
- package/dist/cli/index.mjs +69 -22
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +2 -2
- package/dist/cli/lib.mjs +2 -2
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/shared/workspace-name.d.mts +1 -0
- package/dist/cli/skills.mjs +1 -1
- package/dist/completion/zsh-worker.zsh +18 -1
- package/dist/configure/index.mjs +198 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/idp/index.d.mts +1 -4
- package/dist/{crashreport-DZDr-TvH.mjs → crashreport-BNWUM6Kf.mjs} +2 -2
- package/dist/{crashreport-DZDr-TvH.mjs.map → crashreport-BNWUM6Kf.mjs.map} +1 -1
- package/dist/{crashreport-np4-_DX2.mjs → crashreport-BafWvjjX.mjs} +1 -1
- package/dist/errors-DVFS0AZk.mjs +100 -0
- package/dist/errors-DVFS0AZk.mjs.map +1 -0
- package/dist/{globals-z6zYMjlr.mjs → globals-CvizbGLY.mjs} +2 -2
- package/dist/{globals-z6zYMjlr.mjs.map → globals-CvizbGLY.mjs.map} +1 -1
- package/dist/{logger-BEiZZ3qT.mjs → logger-BwS4ppwO.mjs} +3 -3
- package/dist/logger-BwS4ppwO.mjs.map +1 -0
- package/dist/{registry-CTgoVWc_.mjs → registry-CYBRvfaU.mjs} +2 -2
- package/dist/{registry-CTgoVWc_.mjs.map → registry-CYBRvfaU.mjs.map} +1 -1
- package/dist/{runtime-DlklyuHN.mjs → runtime-BD2vYJFT.mjs} +1169 -539
- package/dist/runtime-BD2vYJFT.mjs.map +1 -0
- package/dist/{schema-DbTR1c6M.mjs → schema-U6DxoZ8D.mjs} +203 -3
- package/dist/schema-U6DxoZ8D.mjs.map +1 -0
- package/dist/{secretmanager-Bd45j7an.mjs → secretmanager-IY4UvinW.mjs} +42 -9
- package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
- package/dist/service-CghpdV-9.mjs +3 -0
- package/dist/{service-DBFZQloR.mjs → service-Cp0I7ZFe.mjs} +3 -3
- package/dist/{service-DBFZQloR.mjs.map → service-Cp0I7ZFe.mjs.map} +1 -1
- package/dist/{service-BCRJ-3NV.mjs → service-D12iQGcS.mjs} +2 -2
- package/dist/{service-BCRJ-3NV.mjs.map → service-D12iQGcS.mjs.map} +1 -1
- package/dist/{test-env-key-IPapa1KJ.mjs → test-env-key-DuZycyWM.mjs} +2 -2
- package/dist/{test-env-key-IPapa1KJ.mjs.map → test-env-key-DuZycyWM.mjs.map} +1 -1
- package/dist/types/auth.generated.d.mts +9 -36
- package/dist/types/executor.generated.d.mts +19 -59
- package/dist/types/idp.generated.d.mts +518 -517
- package/dist/types/resolver.generated.d.mts +6 -2
- package/dist/types/tailordb.generated.d.mts +8 -7
- package/dist/utils/test/index.mjs +1 -1
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.d.mts +8 -8
- package/dist/vitest/index.mjs +600 -186
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock.d.mts +8 -8
- package/dist/vitest/mocks/aigateway.d.mts +14 -4
- package/dist/vitest/mocks/authconnection.d.mts +14 -4
- package/dist/vitest/mocks/file.d.mts +24 -6
- package/dist/vitest/mocks/iconv.d.mts +28 -4
- package/dist/vitest/mocks/idp.d.mts +25 -9
- package/dist/vitest/mocks/secretmanager.d.mts +13 -4
- package/dist/vitest/mocks/tailordb.d.mts +48 -7
- package/dist/vitest/mocks/workflow.d.mts +41 -9
- package/dist/vitest/setup.mjs +2 -2
- package/docs/cli/application.md +58 -11
- package/docs/cli/setup.md +1 -1
- package/docs/cli/workspace.md +6 -4
- package/docs/cli-reference.md +12 -8
- package/docs/runtime.md +3 -4
- package/docs/services/aigateway.md +2 -0
- package/docs/services/tailordb.md +42 -0
- package/docs/services/workflow.md +1 -1
- package/docs/testing.md +103 -89
- package/package.json +7 -7
- package/dist/application-6zsDLGKv.mjs +0 -3
- package/dist/application-CqjCcZ2n.mjs.map +0 -1
- package/dist/errors-Dtf2WPaW.mjs +0 -42
- package/dist/errors-Dtf2WPaW.mjs.map +0 -1
- package/dist/field-runtime-D4QWRiB1.mjs +0 -203
- package/dist/field-runtime-D4QWRiB1.mjs.map +0 -1
- package/dist/logger-BEiZZ3qT.mjs.map +0 -1
- package/dist/runtime-DlklyuHN.mjs.map +0 -1
- package/dist/schema-DbTR1c6M.mjs.map +0 -1
- package/dist/secretmanager-Bd45j7an.mjs.map +0 -1
- package/dist/service-CPMlIg3X.mjs +0 -3
- package/dist/types-BzJ7A_fn.mjs +0 -199
- package/dist/types-BzJ7A_fn.mjs.map +0 -1
- package/dist/types-CG9H7HuE.mjs +0 -4
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
//#region src/types/resolver.generated.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* GraphQL operation type
|
|
4
|
+
*/
|
|
5
|
+
type QueryType = "query" | "mutation";
|
|
2
6
|
type Resolver = {
|
|
3
7
|
/** GraphQL operation type (query or mutation) */
|
|
4
|
-
operation:
|
|
8
|
+
operation: QueryType;
|
|
5
9
|
/** Resolver name */
|
|
6
10
|
name: string;
|
|
7
11
|
/** Resolver implementation function */
|
|
@@ -45,4 +49,4 @@ type Resolver = {
|
|
|
45
49
|
};
|
|
46
50
|
type ResolverInput = Resolver;
|
|
47
51
|
//#endregion
|
|
48
|
-
export { Resolver, ResolverInput };
|
|
52
|
+
export { QueryType, Resolver, ResolverInput };
|
|
@@ -9,6 +9,12 @@ type GqlOperationsInput = "query" | {
|
|
|
9
9
|
delete?: boolean | undefined;
|
|
10
10
|
read?: boolean | undefined;
|
|
11
11
|
};
|
|
12
|
+
type GqlOperations = {
|
|
13
|
+
create?: boolean | undefined;
|
|
14
|
+
update?: boolean | undefined;
|
|
15
|
+
delete?: boolean | undefined;
|
|
16
|
+
read?: boolean | undefined;
|
|
17
|
+
};
|
|
12
18
|
type DBFieldMetadata = {
|
|
13
19
|
/** Whether the field is required */
|
|
14
20
|
required?: boolean | undefined;
|
|
@@ -60,12 +66,7 @@ type TailorDBTypeParsedSettings = {
|
|
|
60
66
|
/** Enable bulk upsert mutation for this type */
|
|
61
67
|
bulkUpsert?: boolean | undefined;
|
|
62
68
|
/** Configure GraphQL operations for this type. Use "query" for read-only mode, or an object for granular control. */
|
|
63
|
-
gqlOperations?:
|
|
64
|
-
create?: boolean | undefined;
|
|
65
|
-
update?: boolean | undefined;
|
|
66
|
-
delete?: boolean | undefined;
|
|
67
|
-
read?: boolean | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
+
gqlOperations?: GqlOperations;
|
|
69
70
|
/**
|
|
70
71
|
* Enable publishing events for this type.
|
|
71
72
|
* When enabled, record creation/update/deletion events are published.
|
|
@@ -450,4 +451,4 @@ type TailorDBServiceConfigInput = {
|
|
|
450
451
|
} | undefined;
|
|
451
452
|
};
|
|
452
453
|
//#endregion
|
|
453
|
-
export { DBFieldMetadata, GqlOperationsInput, RawPermissions, TailorDBServiceConfigInput, TailorDBTypeParsedSettings };
|
|
454
|
+
export { DBFieldMetadata, GqlOperations, GqlOperationsInput, RawPermissions, TailorDBServiceConfigInput, TailorDBTypeParsedSettings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as cleanupPlatformGlobals, r as installPlatformGlobals, t as RUNTIME_FLAG_KEY } from "../globals-
|
|
1
|
+
import { n as cleanupPlatformGlobals, r as installPlatformGlobals, t as RUNTIME_FLAG_KEY } from "../globals-CvizbGLY.mjs";
|
|
2
2
|
import * as globals from "globals";
|
|
3
3
|
|
|
4
4
|
//#region src/vitest/environment.ts
|
package/dist/vitest/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { mockAigateway } from "./mocks/aigateway.mjs";
|
|
2
|
-
import { mockAuthconnection } from "./mocks/authconnection.mjs";
|
|
3
|
-
import { mockFile } from "./mocks/file.mjs";
|
|
4
|
-
import { mockIconv } from "./mocks/iconv.mjs";
|
|
5
|
-
import { mockIdp } from "./mocks/idp.mjs";
|
|
6
|
-
import { mockSecretmanager } from "./mocks/secretmanager.mjs";
|
|
7
|
-
import { mockTailordb } from "./mocks/tailordb.mjs";
|
|
1
|
+
import { MockAigatewayOptions, mockAigateway } from "./mocks/aigateway.mjs";
|
|
2
|
+
import { MockAuthconnectionOptions, mockAuthconnection } from "./mocks/authconnection.mjs";
|
|
3
|
+
import { MockFileOptions, mockFile } from "./mocks/file.mjs";
|
|
4
|
+
import { MockIconvOptions, mockIconv } from "./mocks/iconv.mjs";
|
|
5
|
+
import { MockIdpOptions, mockIdp } from "./mocks/idp.mjs";
|
|
6
|
+
import { MockSecretmanagerOptions, mockSecretmanager } from "./mocks/secretmanager.mjs";
|
|
7
|
+
import { MockTailordbOptions, QueryBehavior, QueryMatch, QueryMatcher, mockTailordb } from "./mocks/tailordb.mjs";
|
|
8
8
|
import { mockWorkflow } from "./mocks/workflow.mjs";
|
|
9
9
|
import "./mock.mjs";
|
|
10
10
|
import { ExecutedQuery, KyselyMock, createKyselyMock } from "./mock-kysely.mjs";
|
|
@@ -68,4 +68,4 @@ declare function tailorRuntime(options?: {
|
|
|
68
68
|
config?: string;
|
|
69
69
|
}): Plugin[];
|
|
70
70
|
//#endregion
|
|
71
|
-
export { type ExecutedQuery, type KyselyMock, createKyselyMock, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockSecretmanager, mockTailordb, mockWorkflow, tailorRuntime };
|
|
71
|
+
export { type ExecutedQuery, type KyselyMock, type MockAigatewayOptions, type MockAuthconnectionOptions, type MockFileOptions, type MockIconvOptions, type MockIdpOptions, type MockSecretmanagerOptions, type MockTailordbOptions, type QueryBehavior, type QueryMatch, type QueryMatcher, createKyselyMock, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockSecretmanager, mockTailordb, mockWorkflow, tailorRuntime };
|