storyblok 4.27.2 → 4.28.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/config/index.d.cts +22 -0
- package/dist/config/index.d.mts +22 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +14008 -11829
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/config/index.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "commander";
|
|
2
2
|
import "@storyblok/management-api-client";
|
|
3
|
+
import "@storyblok/schema/internal/codegen";
|
|
4
|
+
import "@storyblok/schema";
|
|
3
5
|
//#region src/constants.d.ts
|
|
4
6
|
declare const regionCodes: readonly ["eu", "us", "cn", "ca", "ap"];
|
|
5
7
|
type RegionCode = (typeof regionCodes)[number];
|
|
@@ -147,9 +149,24 @@ interface DeleteDatasourceOptions {
|
|
|
147
149
|
force?: boolean;
|
|
148
150
|
}
|
|
149
151
|
//#endregion
|
|
152
|
+
//#region src/commands/migrations/content-migrations.d.ts
|
|
153
|
+
/**
|
|
154
|
+
* `js` writes a migration function for `migrations run`, `typed` a `defineMigration` file.
|
|
155
|
+
* @todo(next-major): Remove the `js` format and the options that choose between the two.
|
|
156
|
+
*/
|
|
157
|
+
declare const MIGRATION_FORMATS: readonly ["js", "typed"];
|
|
158
|
+
type MigrationFormat = (typeof MIGRATION_FORMATS)[number];
|
|
159
|
+
//#endregion
|
|
150
160
|
//#region src/commands/migrations/generate/constants.d.ts
|
|
161
|
+
/** The block state a `.before.ts` snapshot holds. */
|
|
162
|
+
declare const SNAPSHOT_SOURCES: readonly ["current", "before-push"];
|
|
163
|
+
type SnapshotSource = (typeof SNAPSHOT_SOURCES)[number];
|
|
151
164
|
interface MigrationsGenerateOptions extends CommandOptions {
|
|
152
165
|
suffix?: string;
|
|
166
|
+
format: MigrationFormat;
|
|
167
|
+
schema?: string;
|
|
168
|
+
/** `false` is `--no-snapshot`. */
|
|
169
|
+
snapshot: SnapshotSource | false;
|
|
153
170
|
}
|
|
154
171
|
//#endregion
|
|
155
172
|
//#region src/commands/migrations/run/constants.d.ts
|
|
@@ -163,6 +180,11 @@ interface MigrationsRunOptions extends CommandOptions {
|
|
|
163
180
|
query?: string;
|
|
164
181
|
startsWith?: string;
|
|
165
182
|
publish?: "all" | "published" | "published-with-changes";
|
|
183
|
+
/** A schema entry file to check the selected content migration against. */
|
|
184
|
+
schema?: string;
|
|
185
|
+
/** `false` when `--no-validate` skips checking content migrations against their snapshots. */
|
|
186
|
+
validate: boolean;
|
|
187
|
+
allowPendingReleases?: boolean;
|
|
166
188
|
}
|
|
167
189
|
//#endregion
|
|
168
190
|
//#region src/commands/migrations/rollback/types.d.ts
|
package/dist/config/index.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "commander";
|
|
2
2
|
import "@storyblok/management-api-client";
|
|
3
|
+
import "@storyblok/schema/internal/codegen";
|
|
4
|
+
import "@storyblok/schema";
|
|
3
5
|
//#region src/constants.d.ts
|
|
4
6
|
declare const regionCodes: readonly ["eu", "us", "cn", "ca", "ap"];
|
|
5
7
|
type RegionCode = (typeof regionCodes)[number];
|
|
@@ -147,9 +149,24 @@ interface DeleteDatasourceOptions {
|
|
|
147
149
|
force?: boolean;
|
|
148
150
|
}
|
|
149
151
|
//#endregion
|
|
152
|
+
//#region src/commands/migrations/content-migrations.d.ts
|
|
153
|
+
/**
|
|
154
|
+
* `js` writes a migration function for `migrations run`, `typed` a `defineMigration` file.
|
|
155
|
+
* @todo(next-major): Remove the `js` format and the options that choose between the two.
|
|
156
|
+
*/
|
|
157
|
+
declare const MIGRATION_FORMATS: readonly ["js", "typed"];
|
|
158
|
+
type MigrationFormat = (typeof MIGRATION_FORMATS)[number];
|
|
159
|
+
//#endregion
|
|
150
160
|
//#region src/commands/migrations/generate/constants.d.ts
|
|
161
|
+
/** The block state a `.before.ts` snapshot holds. */
|
|
162
|
+
declare const SNAPSHOT_SOURCES: readonly ["current", "before-push"];
|
|
163
|
+
type SnapshotSource = (typeof SNAPSHOT_SOURCES)[number];
|
|
151
164
|
interface MigrationsGenerateOptions extends CommandOptions {
|
|
152
165
|
suffix?: string;
|
|
166
|
+
format: MigrationFormat;
|
|
167
|
+
schema?: string;
|
|
168
|
+
/** `false` is `--no-snapshot`. */
|
|
169
|
+
snapshot: SnapshotSource | false;
|
|
153
170
|
}
|
|
154
171
|
//#endregion
|
|
155
172
|
//#region src/commands/migrations/run/constants.d.ts
|
|
@@ -163,6 +180,11 @@ interface MigrationsRunOptions extends CommandOptions {
|
|
|
163
180
|
query?: string;
|
|
164
181
|
startsWith?: string;
|
|
165
182
|
publish?: "all" | "published" | "published-with-changes";
|
|
183
|
+
/** A schema entry file to check the selected content migration against. */
|
|
184
|
+
schema?: string;
|
|
185
|
+
/** `false` when `--no-validate` skips checking content migrations against their snapshots. */
|
|
186
|
+
validate: boolean;
|
|
187
|
+
allowPendingReleases?: boolean;
|
|
166
188
|
}
|
|
167
189
|
//#endregion
|
|
168
190
|
//#region src/commands/migrations/rollback/types.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "dotenv/config";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import "@storyblok/management-api-client";
|
|
4
|
+
import "@storyblok/schema";
|
|
5
|
+
import "@storyblok/schema/internal/codegen";
|
|
4
6
|
//#region src/generated/overlay/types.gen.d.ts
|
|
5
7
|
type RichTextDoc = RichTextFieldValue2;
|
|
6
8
|
/**
|