@inlang/sdk 2.2.1 → 2.2.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/json-schema/pattern.d.ts +1 -1
- package/dist/json-schema/pattern.d.ts.map +1 -1
- package/dist/json-schema/pattern.js.map +1 -1
- package/dist/query-utilities/selectBundleNested.d.ts +17 -17
- package/dist/services/env-variables/index.js +1 -1
- package/dist/services/env-variables/index.js.map +1 -1
- package/package.json +1 -1
- package/src/json-schema/pattern.ts +1 -1
|
@@ -65,7 +65,7 @@ export declare const Text: import("@sinclair/typebox").TObject<{
|
|
|
65
65
|
type: import("@sinclair/typebox").TLiteral<"text">;
|
|
66
66
|
value: import("@sinclair/typebox").TString;
|
|
67
67
|
}>;
|
|
68
|
-
export type LocalVariable = Static<typeof
|
|
68
|
+
export type LocalVariable = Static<typeof LocalVariable>;
|
|
69
69
|
export declare const LocalVariable: import("@sinclair/typebox").TObject<{
|
|
70
70
|
type: import("@sinclair/typebox").TLiteral<"local-variable">;
|
|
71
71
|
name: import("@sinclair/typebox").TString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pattern.d.ts","sourceRoot":"/","sources":["json-schema/pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,eAAO,MAAM,iBAAiB;;;EAG5B,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC;AAC7C,eAAO,MAAM,OAAO;;;EAGlB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC;AAC3C,eAAO,MAAM,MAAM;;;;;;;;;EAGjB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,iBAAi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OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC","sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport type VariableReference = Static<typeof VariableReference>;\nexport const VariableReference = Type.Object({\n\ttype: Type.Literal(\"variable-reference\"),\n\tname: Type.String(),\n});\n\nexport type Literal = Static<typeof Literal>;\nexport const Literal = Type.Object({\n\ttype: Type.Literal(\"literal\"),\n\tvalue: Type.String(),\n});\n\nexport type Option = Static<typeof Option>;\nexport const Option = Type.Object({\n\tname: Type.String(),\n\tvalue: Type.Union([Literal, VariableReference]),\n});\n\nexport type FunctionReference = Static<typeof FunctionReference>;\nexport const FunctionReference = Type.Object({\n\ttype: Type.Literal(\"function-reference\"),\n\tname: Type.String(),\n\toptions: Type.Array(Option),\n});\n\nexport type Expression = Static<typeof Expression>;\nexport const Expression = Type.Object({\n\ttype: Type.Literal(\"expression\"),\n\targ: Type.Union([VariableReference, Literal]),\n\tannotation: Type.Optional(FunctionReference),\n});\n\nexport type Text = Static<typeof Text>;\nexport const Text = Type.Object({\n\ttype: Type.Literal(\"text\"),\n\tvalue: Type.String(),\n});\n\nexport type LocalVariable = Static<typeof
|
|
1
|
+
{"version":3,"file":"pattern.js","sourceRoot":"/","sources":["json-schema/pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AAGtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACxC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;IAC7B,KAAK,EAAE,IAAI,C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B,CAAC;IACpC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;CAC5C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC;AAGtE,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC","sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport type VariableReference = Static<typeof VariableReference>;\nexport const VariableReference = Type.Object({\n\ttype: Type.Literal(\"variable-reference\"),\n\tname: Type.String(),\n});\n\nexport type Literal = Static<typeof Literal>;\nexport const Literal = Type.Object({\n\ttype: Type.Literal(\"literal\"),\n\tvalue: Type.String(),\n});\n\nexport type Option = Static<typeof Option>;\nexport const Option = Type.Object({\n\tname: Type.String(),\n\tvalue: Type.Union([Literal, VariableReference]),\n});\n\nexport type FunctionReference = Static<typeof FunctionReference>;\nexport const FunctionReference = Type.Object({\n\ttype: Type.Literal(\"function-reference\"),\n\tname: Type.String(),\n\toptions: Type.Array(Option),\n});\n\nexport type Expression = Static<typeof Expression>;\nexport const Expression = Type.Object({\n\ttype: Type.Literal(\"expression\"),\n\targ: Type.Union([VariableReference, Literal]),\n\tannotation: Type.Optional(FunctionReference),\n});\n\nexport type Text = Static<typeof Text>;\nexport const Text = Type.Object({\n\ttype: Type.Literal(\"text\"),\n\tvalue: Type.String(),\n});\n\nexport type LocalVariable = Static<typeof LocalVariable>;\nexport const LocalVariable = Type.Object({\n\ttype: Type.Literal(\"local-variable\"),\n\tname: Type.String(),\n\tvalue: Expression,\n});\n\nexport type InputVariable = Static<typeof InputVariable>;\nexport const InputVariable = Type.Object({\n\ttype: Type.Literal(\"input-variable\"),\n\tname: Type.String(),\n\tannotation: Type.Optional(FunctionReference),\n});\n\nexport type Declaration = Static<typeof Declaration>;\nexport const Declaration = Type.Union([InputVariable, LocalVariable]);\n\nexport type Pattern = Static<typeof Pattern>;\nexport const Pattern = Type.Array(Type.Union([Text, Expression]));\n"]}
|
|
@@ -18,23 +18,6 @@ import type { InlangDatabaseSchema } from "../database/schema.js";
|
|
|
18
18
|
export declare const selectBundleNested: (db: Kysely<InlangDatabaseSchema>) => import("kysely").SelectQueryBuilder<InlangDatabaseSchema, "bundle", {
|
|
19
19
|
id: string;
|
|
20
20
|
declarations: ({
|
|
21
|
-
annotation?: {
|
|
22
|
-
type: "function-reference";
|
|
23
|
-
name: string;
|
|
24
|
-
options: {
|
|
25
|
-
value: {
|
|
26
|
-
type: "variable-reference";
|
|
27
|
-
name: string;
|
|
28
|
-
} | {
|
|
29
|
-
type: "literal";
|
|
30
|
-
value: string;
|
|
31
|
-
};
|
|
32
|
-
name: string;
|
|
33
|
-
}[];
|
|
34
|
-
} | undefined;
|
|
35
|
-
type: "input-variable";
|
|
36
|
-
name: string;
|
|
37
|
-
} | {
|
|
38
21
|
type: "local-variable";
|
|
39
22
|
value: {
|
|
40
23
|
annotation?: {
|
|
@@ -61,6 +44,23 @@ export declare const selectBundleNested: (db: Kysely<InlangDatabaseSchema>) => i
|
|
|
61
44
|
};
|
|
62
45
|
};
|
|
63
46
|
name: string;
|
|
47
|
+
} | {
|
|
48
|
+
annotation?: {
|
|
49
|
+
type: "function-reference";
|
|
50
|
+
name: string;
|
|
51
|
+
options: {
|
|
52
|
+
value: {
|
|
53
|
+
type: "variable-reference";
|
|
54
|
+
name: string;
|
|
55
|
+
} | {
|
|
56
|
+
type: "literal";
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
name: string;
|
|
60
|
+
}[];
|
|
61
|
+
} | undefined;
|
|
62
|
+
type: "input-variable";
|
|
63
|
+
name: string;
|
|
64
64
|
})[];
|
|
65
65
|
messages: {
|
|
66
66
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ENV_VARIABLES = {
|
|
2
2
|
PUBLIC_POSTHOG_TOKEN: "phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz",
|
|
3
3
|
PUBLIC_INLANG_SDK_SENTRY_DSN: "https://c3d92d5d011122e525e9f9b368e0905d@o4504345873285120.ingest.us.sentry.io/4507903389335553",
|
|
4
|
-
SDK_VERSION: "2.2.
|
|
4
|
+
SDK_VERSION: "2.2.2",
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["services/env-variables/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,oBAAoB,EAAE,iDAAiD;IACxE,4BAA4B,EAAE,iGAAiG;IAC/H,WAAW,EAAE,OAAO;CACpB,CAAA","sourcesContent":["\nexport const ENV_VARIABLES = {\n PUBLIC_POSTHOG_TOKEN: \"phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz\",\n\tPUBLIC_INLANG_SDK_SENTRY_DSN: \"https://c3d92d5d011122e525e9f9b368e0905d@o4504345873285120.ingest.us.sentry.io/4507903389335553\",\n\tSDK_VERSION: \"2.2.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["services/env-variables/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,oBAAoB,EAAE,iDAAiD;IACxE,4BAA4B,EAAE,iGAAiG;IAC/H,WAAW,EAAE,OAAO;CACpB,CAAA","sourcesContent":["\nexport const ENV_VARIABLES = {\n PUBLIC_POSTHOG_TOKEN: \"phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz\",\n\tPUBLIC_INLANG_SDK_SENTRY_DSN: \"https://c3d92d5d011122e525e9f9b368e0905d@o4504345873285120.ingest.us.sentry.io/4507903389335553\",\n\tSDK_VERSION: \"2.2.2\",\n}\n"]}
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@ export const Text = Type.Object({
|
|
|
38
38
|
value: Type.String(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export type LocalVariable = Static<typeof
|
|
41
|
+
export type LocalVariable = Static<typeof LocalVariable>;
|
|
42
42
|
export const LocalVariable = Type.Object({
|
|
43
43
|
type: Type.Literal("local-variable"),
|
|
44
44
|
name: Type.String(),
|