@webiny/migrations 5.40.5 → 5.41.0-dbt.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/migrations/5.35.0/001/ddb/FileDataMigration.d.ts +1 -1
- package/migrations/5.35.0/001/ddb-es/FileDataMigration.d.ts +1 -1
- package/migrations/5.35.0/006/ddb/PageDataMigration.d.ts +1 -1
- package/migrations/5.35.0/006/ddb-es/PageDataMigration.d.ts +1 -1
- package/migrations/5.35.0/006/types.d.ts +2 -2
- package/migrations/5.36.0/001/ddb/FileDataMigration.d.ts +1 -1
- package/migrations/5.36.0/001/ddb-es/FileDataMigration.d.ts +1 -1
- package/migrations/5.36.0/001/types.d.ts +1 -1
- package/migrations/5.37.0/001/TenantLinkDataMigration.d.ts +1 -1
- package/migrations/5.37.0/001/types.d.ts +1 -1
- package/migrations/5.37.0/002/types.d.ts +1 -1
- package/migrations/5.37.0/003/ddb/AcoFolderMigration.d.ts +1 -1
- package/migrations/5.37.0/003/ddb-es/AcoFolderMigration.d.ts +1 -1
- package/migrations/5.37.0/003/types.d.ts +2 -2
- package/migrations/5.37.0/004/ddb/PageDataMigration.d.ts +1 -1
- package/migrations/5.37.0/004/ddb-es/PageDataMigration.d.ts +1 -1
- package/migrations/5.37.0/004/types.d.ts +2 -2
- package/migrations/5.37.0/005/ddb/index.d.ts +1 -1
- package/migrations/5.37.0/005/ddb-es/index.d.ts +1 -1
- package/migrations/5.37.0/005/types.d.ts +1 -1
- package/migrations/5.38.0/001/types.d.ts +1 -1
- package/migrations/5.38.0/002/types.d.ts +1 -1
- package/migrations/5.39.0/001/types.d.ts +1 -1
- package/migrations/5.39.6/001/ddb-es/utils.d.ts +1 -1
- package/package.json +18 -18
- package/utils/forEachTenantLocale.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
3
|
-
export
|
|
3
|
+
export type FileMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
4
4
|
export declare class FileManager_5_35_0_001_FileData implements DataMigration<FileMigrationCheckpoint> {
|
|
5
5
|
private readonly newFileEntity;
|
|
6
6
|
private readonly legacyFileEntity;
|
|
@@ -2,7 +2,7 @@ import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
|
2
2
|
import { Client } from "@elastic/elasticsearch";
|
|
3
3
|
import { PrimitiveValue } from "@webiny/api-elasticsearch/types";
|
|
4
4
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
5
|
-
|
|
5
|
+
type FileMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
|
|
6
6
|
export declare class FileManager_5_35_0_001_FileData implements DataMigration<FileMigrationCheckpoint> {
|
|
7
7
|
private readonly elasticsearchClient;
|
|
8
8
|
private readonly newFileEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
3
|
-
export
|
|
3
|
+
export type PageDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
4
4
|
export declare class AcoRecords_5_35_0_006_PageData implements DataMigration<PageDataMigrationCheckpoint> {
|
|
5
5
|
private readonly entryEntity;
|
|
6
6
|
private readonly localeEntity;
|
|
@@ -2,7 +2,7 @@ import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
|
2
2
|
import { Client } from "@elastic/elasticsearch";
|
|
3
3
|
import { PrimitiveValue } from "@webiny/api-elasticsearch/types";
|
|
4
4
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
5
|
-
export
|
|
5
|
+
export type PageDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
|
|
6
6
|
export declare class AcoRecords_5_35_0_006_PageData implements DataMigration<PageDataMigrationCheckpoint> {
|
|
7
7
|
private readonly elasticsearchClient;
|
|
8
8
|
private readonly ddbEntryEntity;
|
|
@@ -15,7 +15,7 @@ export interface Identity {
|
|
|
15
15
|
export interface CmsEntryValues {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
19
19
|
export interface CmsEntry<T = CmsEntryValues> {
|
|
20
20
|
webinyVersion: string;
|
|
21
21
|
tenant: string;
|
|
@@ -63,7 +63,7 @@ export interface PageSettings {
|
|
|
63
63
|
};
|
|
64
64
|
[key: string]: any;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type PageStatus = "published" | "unpublished" | "draft";
|
|
67
67
|
export interface Page {
|
|
68
68
|
id: string;
|
|
69
69
|
pid: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
3
|
-
export
|
|
3
|
+
export type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
4
4
|
export declare class AcoRecords_5_36_0_001_FileData implements DataMigration<FileDataMigrationCheckpoint> {
|
|
5
5
|
private readonly entryEntity;
|
|
6
6
|
private readonly localeEntity;
|
|
@@ -2,7 +2,7 @@ import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
|
2
2
|
import { Client } from "@elastic/elasticsearch";
|
|
3
3
|
import { PrimitiveValue } from "@webiny/api-elasticsearch/types";
|
|
4
4
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
5
|
-
export
|
|
5
|
+
export type FileDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
|
|
6
6
|
export declare class AcoRecords_5_36_0_001_FileData implements DataMigration<FileDataMigrationCheckpoint> {
|
|
7
7
|
private readonly elasticsearchClient;
|
|
8
8
|
private readonly ddbEntryEntity;
|
|
@@ -15,7 +15,7 @@ export interface Identity {
|
|
|
15
15
|
export interface CmsEntryValues {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
19
19
|
export interface CmsEntry<T = CmsEntryValues> {
|
|
20
20
|
webinyVersion: string;
|
|
21
21
|
tenant: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
3
|
-
export
|
|
3
|
+
export type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
4
4
|
export declare class TenantLinkRecords_5_37_0_001_FileData implements DataMigration<FileDataMigrationCheckpoint> {
|
|
5
5
|
private readonly tenantEntity;
|
|
6
6
|
private readonly tenantLinkEntity;
|
|
@@ -15,7 +15,7 @@ export interface Identity {
|
|
|
15
15
|
export interface CmsEntryValues {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
19
19
|
export interface CmsEntry<T = CmsEntryValues> {
|
|
20
20
|
webinyVersion: string;
|
|
21
21
|
tenant: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
3
|
-
export
|
|
3
|
+
export type AcoFolderMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
4
4
|
export declare class AcoRecords_5_37_0_003_AcoFolders implements DataMigration<AcoFolderMigrationCheckpoint> {
|
|
5
5
|
private readonly entryEntity;
|
|
6
6
|
private readonly localeEntity;
|
|
@@ -2,7 +2,7 @@ import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
|
2
2
|
import { Client } from "@elastic/elasticsearch";
|
|
3
3
|
import { PrimitiveValue } from "@webiny/api-elasticsearch/types";
|
|
4
4
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
5
|
-
export
|
|
5
|
+
export type AcoFolderDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
|
|
6
6
|
export declare class AcoRecords_5_37_0_003_AcoFolder implements DataMigration<AcoFolderDataMigrationCheckpoint> {
|
|
7
7
|
private readonly elasticsearchClient;
|
|
8
8
|
private readonly ddbEntryEntity;
|
|
@@ -15,7 +15,7 @@ export interface Identity {
|
|
|
15
15
|
export interface CmsEntryValues {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
19
19
|
export interface CmsEntry<T = CmsEntryValues> {
|
|
20
20
|
webinyVersion: string;
|
|
21
21
|
tenant: string;
|
|
@@ -40,7 +40,7 @@ export interface CmsEntry<T = CmsEntryValues> {
|
|
|
40
40
|
export interface CmsEntryAcoFolderValues {
|
|
41
41
|
parentId?: string | null;
|
|
42
42
|
}
|
|
43
|
-
export
|
|
43
|
+
export type CmsEntryAcoFolder = CmsEntry<CmsEntryAcoFolderValues>;
|
|
44
44
|
export interface ListLocalesParams {
|
|
45
45
|
tenant: Tenant;
|
|
46
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
3
|
-
export
|
|
3
|
+
export type PageDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
4
4
|
export declare class AcoRecords_5_37_0_004_PageData implements DataMigration<PageDataMigrationCheckpoint> {
|
|
5
5
|
private readonly entryEntity;
|
|
6
6
|
private readonly localeEntity;
|
|
@@ -2,7 +2,7 @@ import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
|
2
2
|
import { Client } from "@elastic/elasticsearch";
|
|
3
3
|
import { PrimitiveValue } from "@webiny/api-elasticsearch/types";
|
|
4
4
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
5
|
-
export
|
|
5
|
+
export type PageDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
|
|
6
6
|
export declare class AcoRecords_5_37_0_004_PageData implements DataMigration<PageDataMigrationCheckpoint> {
|
|
7
7
|
private readonly elasticsearchClient;
|
|
8
8
|
private readonly ddbEntryEntity;
|
|
@@ -15,7 +15,7 @@ export interface Identity {
|
|
|
15
15
|
export interface CmsEntryValues {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
19
19
|
export interface CmsEntry<T = CmsEntryValues> {
|
|
20
20
|
webinyVersion: string;
|
|
21
21
|
tenant: string;
|
|
@@ -63,7 +63,7 @@ export interface PageSettings {
|
|
|
63
63
|
};
|
|
64
64
|
[key: string]: any;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type PageStatus = "published" | "unpublished" | "draft";
|
|
67
67
|
export interface Page {
|
|
68
68
|
id: string;
|
|
69
69
|
pid: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
3
|
-
|
|
3
|
+
type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
4
4
|
export declare class FileManager_5_37_0_005 implements DataMigration<FileDataMigrationCheckpoint> {
|
|
5
5
|
private readonly entryEntity;
|
|
6
6
|
private readonly localeEntity;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { Client } from "@elastic/elasticsearch";
|
|
3
3
|
import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
|
|
4
|
-
|
|
4
|
+
type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
|
|
5
5
|
export declare class FileManager_5_37_0_005 implements DataMigration<FileDataMigrationCheckpoint> {
|
|
6
6
|
private readonly elasticsearchClient;
|
|
7
7
|
private readonly ddbEntryEntity;
|
|
@@ -15,7 +15,7 @@ export interface Identity {
|
|
|
15
15
|
export interface CmsEntryValues {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
19
19
|
export interface CmsEntry<T = CmsEntryValues> {
|
|
20
20
|
webinyVersion: string;
|
|
21
21
|
tenant: string;
|
|
@@ -16,7 +16,7 @@ export interface Identity {
|
|
|
16
16
|
export interface CmsEntryValues {
|
|
17
17
|
[key: string]: any;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
20
20
|
export interface CmsEntry<T = CmsEntryValues> {
|
|
21
21
|
webinyVersion: string;
|
|
22
22
|
tenant: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamoDBDocument } from "@webiny/aws-sdk/client-dynamodb";
|
|
2
2
|
import { IWaitUntilHealthyParams } from "@webiny/api-elasticsearch";
|
|
3
|
-
export
|
|
3
|
+
export type EsHealthChecksParams = Required<IWaitUntilHealthyParams>;
|
|
4
4
|
export declare const DEFAULT_ES_HEALTH_CHECKS_PARAMS: EsHealthChecksParams;
|
|
5
5
|
export declare const migrationSkippedDdbRecord: {
|
|
6
6
|
PK: string;
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/migrations",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-dbt.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn webiny run build",
|
|
6
6
|
"watch": "yarn webiny run watch"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@elastic/elasticsearch": "7.12.0",
|
|
10
|
-
"@webiny/api-elasticsearch": "5.
|
|
11
|
-
"@webiny/aws-sdk": "5.
|
|
12
|
-
"@webiny/cli-plugin-deploy-pulumi": "5.
|
|
13
|
-
"@webiny/data-migration": "5.
|
|
14
|
-
"@webiny/db-dynamodb": "5.
|
|
15
|
-
"@webiny/error": "5.
|
|
16
|
-
"@webiny/ioc": "5.
|
|
17
|
-
"@webiny/logger": "5.
|
|
18
|
-
"@webiny/utils": "5.
|
|
10
|
+
"@webiny/api-elasticsearch": "5.41.0-dbt.0",
|
|
11
|
+
"@webiny/aws-sdk": "5.41.0-dbt.0",
|
|
12
|
+
"@webiny/cli-plugin-deploy-pulumi": "5.41.0-dbt.0",
|
|
13
|
+
"@webiny/data-migration": "5.41.0-dbt.0",
|
|
14
|
+
"@webiny/db-dynamodb": "5.41.0-dbt.0",
|
|
15
|
+
"@webiny/error": "5.41.0-dbt.0",
|
|
16
|
+
"@webiny/ioc": "5.41.0-dbt.0",
|
|
17
|
+
"@webiny/logger": "5.41.0-dbt.0",
|
|
18
|
+
"@webiny/utils": "5.41.0-dbt.0",
|
|
19
19
|
"execa": "5.1.1",
|
|
20
20
|
"fast-glob": "3.2.12",
|
|
21
21
|
"jsonpack": "1.1.5",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/execa": "2.0.0",
|
|
33
|
-
"@webiny/api-headless-cms": "5.
|
|
34
|
-
"@webiny/api-headless-cms-ddb-es": "5.
|
|
35
|
-
"@webiny/cli": "5.
|
|
36
|
-
"@webiny/handler-aws": "5.
|
|
37
|
-
"@webiny/plugins": "5.
|
|
38
|
-
"@webiny/project-utils": "5.
|
|
33
|
+
"@webiny/api-headless-cms": "5.41.0-dbt.0",
|
|
34
|
+
"@webiny/api-headless-cms-ddb-es": "5.41.0-dbt.0",
|
|
35
|
+
"@webiny/cli": "5.41.0-dbt.0",
|
|
36
|
+
"@webiny/handler-aws": "5.41.0-dbt.0",
|
|
37
|
+
"@webiny/plugins": "5.41.0-dbt.0",
|
|
38
|
+
"@webiny/project-utils": "5.41.0-dbt.0",
|
|
39
39
|
"elastic-ts": "0.8.0",
|
|
40
40
|
"jest-dynalite": "3.6.1",
|
|
41
41
|
"ttypescript": "1.5.15",
|
|
42
|
-
"typescript": "4.
|
|
42
|
+
"typescript": "4.9.5"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
2
|
import { Logger } from "@webiny/logger";
|
|
3
|
-
|
|
3
|
+
type ForEachTenantLocaleCallback = (params: {
|
|
4
4
|
tenantId: string;
|
|
5
5
|
localeCode: string;
|
|
6
6
|
}) => boolean | Promise<boolean>;
|