@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.
@@ -1,6 +1,6 @@
1
1
  import { Table } from "@webiny/db-dynamodb/toolbox";
2
2
  import { DataMigration, DataMigrationContext } from "@webiny/data-migration";
3
- export declare type FileMigrationCheckpoint = Record<string, string | boolean | undefined>;
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
- declare type FileMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
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 declare type PageDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
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 declare type PageDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
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 declare type CmsEntryStatus = "published" | "unpublished" | "draft";
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 declare type PageStatus = "published" | "unpublished" | "draft";
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 declare type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
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 declare type FileDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
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 declare type CmsEntryStatus = "published" | "unpublished" | "draft";
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 declare type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
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;
@@ -4,7 +4,7 @@ export interface Tenant {
4
4
  name: string;
5
5
  };
6
6
  }
7
- export declare type Permissions = Array<Record<string, any>>;
7
+ export type Permissions = Array<Record<string, any>>;
8
8
  export interface TenantLink {
9
9
  PK: string;
10
10
  SK: string;
@@ -15,7 +15,7 @@ export interface Identity {
15
15
  export interface CmsEntryValues {
16
16
  [key: string]: any;
17
17
  }
18
- export declare type CmsEntryStatus = "published" | "unpublished" | "draft";
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 declare type AcoFolderMigrationCheckpoint = Record<string, string | boolean | undefined>;
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 declare type AcoFolderDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
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 declare type CmsEntryStatus = "published" | "unpublished" | "draft";
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 declare type CmsEntryAcoFolder = CmsEntry<CmsEntryAcoFolderValues>;
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 declare type PageDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
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 declare type PageDataMigrationCheckpoint = Record<string, PrimitiveValue[] | boolean | undefined>;
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 declare type CmsEntryStatus = "published" | "unpublished" | "draft";
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 declare type PageStatus = "published" | "unpublished" | "draft";
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
- declare type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
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
- declare type FileDataMigrationCheckpoint = Record<string, string | boolean | undefined>;
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 declare type CmsEntryStatus = "published" | "unpublished" | "draft";
18
+ export type CmsEntryStatus = "published" | "unpublished" | "draft";
19
19
  export interface CmsEntry<T = CmsEntryValues> {
20
20
  webinyVersion: string;
21
21
  tenant: string;
@@ -1,4 +1,4 @@
1
- export declare type FbFormLayout = Array<Array<string>>;
1
+ export type FbFormLayout = Array<Array<string>>;
2
2
  export interface FbForm {
3
3
  id: string;
4
4
  formId: string;
@@ -1,4 +1,4 @@
1
- export declare type FbFormLayout = Array<Array<string>>;
1
+ export type FbFormLayout = Array<Array<string>>;
2
2
  export interface FbForm {
3
3
  id: string;
4
4
  formId: string;
@@ -16,7 +16,7 @@ export interface Identity {
16
16
  export interface CmsEntryValues {
17
17
  [key: string]: any;
18
18
  }
19
- export declare type CmsEntryStatus = "published" | "unpublished" | "draft";
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 declare type EsHealthChecksParams = Required<IWaitUntilHealthyParams>;
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.40.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.40.5",
11
- "@webiny/aws-sdk": "5.40.5",
12
- "@webiny/cli-plugin-deploy-pulumi": "5.40.5",
13
- "@webiny/data-migration": "5.40.5",
14
- "@webiny/db-dynamodb": "5.40.5",
15
- "@webiny/error": "5.40.5",
16
- "@webiny/ioc": "5.40.5",
17
- "@webiny/logger": "5.40.5",
18
- "@webiny/utils": "5.40.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.40.5",
34
- "@webiny/api-headless-cms-ddb-es": "5.40.5",
35
- "@webiny/cli": "5.40.5",
36
- "@webiny/handler-aws": "5.40.5",
37
- "@webiny/plugins": "5.40.5",
38
- "@webiny/project-utils": "5.40.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.7.4"
42
+ "typescript": "4.9.5"
43
43
  },
44
- "gitHead": "f67778732392ed88f28da869ddacbf08a98cdec6"
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
- declare type ForEachTenantLocaleCallback = (params: {
3
+ type ForEachTenantLocaleCallback = (params: {
4
4
  tenantId: string;
5
5
  localeCode: string;
6
6
  }) => boolean | Promise<boolean>;