@webiny/migrations 5.41.4 → 5.42.0-beta.1
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.41.0/001/index.js.map +1 -1
- package/package.json +18 -26
- package/utils/elasticsearch/disableEsIndexing.js.map +1 -1
- package/utils/elasticsearch/esGetIndexExist.js.map +1 -1
- package/utils/elasticsearch/esGetIndexName.js.map +1 -1
- package/utils/elasticsearch/fetchOriginalEsSettings.js.map +1 -1
- package/utils/elasticsearch/restoreOriginalEsSettings.js.map +1 -1
- package/utils/forEachTenantLocale.js.map +1 -1
- package/migrations/5.35.0/001/FileSettingsMigration.d.ts +0 -12
- package/migrations/5.35.0/001/FileSettingsMigration.js +0 -93
- package/migrations/5.35.0/001/FileSettingsMigration.js.map +0 -1
- package/migrations/5.35.0/001/ddb/FileDataMigration.d.ts +0 -14
- package/migrations/5.35.0/001/ddb/FileDataMigration.js +0 -156
- package/migrations/5.35.0/001/ddb/FileDataMigration.js.map +0 -1
- package/migrations/5.35.0/001/ddb/index.d.ts +0 -10
- package/migrations/5.35.0/001/ddb/index.js +0 -50
- package/migrations/5.35.0/001/ddb/index.js.map +0 -1
- package/migrations/5.35.0/001/ddb-es/FileDataMigration.d.ts +0 -17
- package/migrations/5.35.0/001/ddb-es/FileDataMigration.js +0 -175
- package/migrations/5.35.0/001/ddb-es/FileDataMigration.js.map +0 -1
- package/migrations/5.35.0/001/ddb-es/index.d.ts +0 -12
- package/migrations/5.35.0/001/ddb-es/index.js +0 -65
- package/migrations/5.35.0/001/ddb-es/index.js.map +0 -1
- package/migrations/5.35.0/001/entities/createFileEntity.d.ts +0 -92
- package/migrations/5.35.0/001/entities/createFileEntity.js +0 -61
- package/migrations/5.35.0/001/entities/createFileEntity.js.map +0 -1
- package/migrations/5.35.0/001/entities/createLocaleEntity.d.ts +0 -42
- package/migrations/5.35.0/001/entities/createLocaleEntity.js +0 -52
- package/migrations/5.35.0/001/entities/createLocaleEntity.js.map +0 -1
- package/migrations/5.35.0/001/entities/createSettingsEntity.d.ts +0 -90
- package/migrations/5.35.0/001/entities/createSettingsEntity.js +0 -37
- package/migrations/5.35.0/001/entities/createSettingsEntity.js.map +0 -1
- package/migrations/5.35.0/001/entities/createTenantEntity.d.ts +0 -42
- package/migrations/5.35.0/001/entities/createTenantEntity.js +0 -69
- package/migrations/5.35.0/001/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.35.0/001/types.d.ts +0 -19
- package/migrations/5.35.0/001/types.js +0 -7
- package/migrations/5.35.0/001/types.js.map +0 -1
- package/migrations/5.35.0/002/createLocaleEntity.d.ts +0 -42
- package/migrations/5.35.0/002/createLocaleEntity.js +0 -32
- package/migrations/5.35.0/002/createLocaleEntity.js.map +0 -1
- package/migrations/5.35.0/002/createSettingsEntity.d.ts +0 -90
- package/migrations/5.35.0/002/createSettingsEntity.js +0 -61
- package/migrations/5.35.0/002/createSettingsEntity.js.map +0 -1
- package/migrations/5.35.0/002/createTenantEntity.d.ts +0 -42
- package/migrations/5.35.0/002/createTenantEntity.js +0 -46
- package/migrations/5.35.0/002/createTenantEntity.js.map +0 -1
- package/migrations/5.35.0/002/index.d.ts +0 -13
- package/migrations/5.35.0/002/index.js +0 -117
- package/migrations/5.35.0/002/index.js.map +0 -1
- package/migrations/5.35.0/003/createTenantEntity.d.ts +0 -42
- package/migrations/5.35.0/003/createTenantEntity.js +0 -46
- package/migrations/5.35.0/003/createTenantEntity.js.map +0 -1
- package/migrations/5.35.0/003/createUserEntity.d.ts +0 -90
- package/migrations/5.35.0/003/createUserEntity.js +0 -55
- package/migrations/5.35.0/003/createUserEntity.js.map +0 -1
- package/migrations/5.35.0/003/index.d.ts +0 -12
- package/migrations/5.35.0/003/index.js +0 -95
- package/migrations/5.35.0/003/index.js.map +0 -1
- package/migrations/5.35.0/004/createTenantEntity.d.ts +0 -90
- package/migrations/5.35.0/004/createTenantEntity.js +0 -57
- package/migrations/5.35.0/004/createTenantEntity.js.map +0 -1
- package/migrations/5.35.0/004/index.d.ts +0 -11
- package/migrations/5.35.0/004/index.js +0 -80
- package/migrations/5.35.0/004/index.js.map +0 -1
- package/migrations/5.35.0/005/createLocaleEntity.d.ts +0 -42
- package/migrations/5.35.0/005/createLocaleEntity.js +0 -32
- package/migrations/5.35.0/005/createLocaleEntity.js.map +0 -1
- package/migrations/5.35.0/005/createModelEntity.d.ts +0 -42
- package/migrations/5.35.0/005/createModelEntity.js +0 -101
- package/migrations/5.35.0/005/createModelEntity.js.map +0 -1
- package/migrations/5.35.0/005/createTenantEntity.d.ts +0 -48
- package/migrations/5.35.0/005/createTenantEntity.js +0 -13
- package/migrations/5.35.0/005/createTenantEntity.js.map +0 -1
- package/migrations/5.35.0/005/index.d.ts +0 -15
- package/migrations/5.35.0/005/index.js +0 -145
- package/migrations/5.35.0/005/index.js.map +0 -1
- package/migrations/5.35.0/005/types.d.ts +0 -42
- package/migrations/5.35.0/005/types.js +0 -7
- package/migrations/5.35.0/005/types.js.map +0 -1
- package/migrations/5.35.0/006/constants.d.ts +0 -3
- package/migrations/5.35.0/006/constants.js +0 -11
- package/migrations/5.35.0/006/constants.js.map +0 -1
- package/migrations/5.35.0/006/ddb/PageDataMigration.d.ts +0 -17
- package/migrations/5.35.0/006/ddb/PageDataMigration.js +0 -249
- package/migrations/5.35.0/006/ddb/PageDataMigration.js.map +0 -1
- package/migrations/5.35.0/006/ddb/index.d.ts +0 -10
- package/migrations/5.35.0/006/ddb/index.js +0 -49
- package/migrations/5.35.0/006/ddb/index.js.map +0 -1
- package/migrations/5.35.0/006/ddb-es/PageDataMigration.d.ts +0 -22
- package/migrations/5.35.0/006/ddb-es/PageDataMigration.js +0 -413
- package/migrations/5.35.0/006/ddb-es/PageDataMigration.js.map +0 -1
- package/migrations/5.35.0/006/ddb-es/index.d.ts +0 -12
- package/migrations/5.35.0/006/ddb-es/index.js +0 -64
- package/migrations/5.35.0/006/ddb-es/index.js.map +0 -1
- package/migrations/5.35.0/006/entities/createEntryEntity.d.ts +0 -89
- package/migrations/5.35.0/006/entities/createEntryEntity.js +0 -106
- package/migrations/5.35.0/006/entities/createEntryEntity.js.map +0 -1
- package/migrations/5.35.0/006/entities/createLocaleEntity.d.ts +0 -42
- package/migrations/5.35.0/006/entities/createLocaleEntity.js +0 -32
- package/migrations/5.35.0/006/entities/createLocaleEntity.js.map +0 -1
- package/migrations/5.35.0/006/entities/createPageEntity.d.ts +0 -89
- package/migrations/5.35.0/006/entities/createPageEntity.js +0 -113
- package/migrations/5.35.0/006/entities/createPageEntity.js.map +0 -1
- package/migrations/5.35.0/006/entities/createTenantEntity.d.ts +0 -48
- package/migrations/5.35.0/006/entities/createTenantEntity.js +0 -13
- package/migrations/5.35.0/006/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.35.0/006/types.d.ts +0 -91
- package/migrations/5.35.0/006/types.js +0 -7
- package/migrations/5.35.0/006/types.js.map +0 -1
- package/migrations/5.35.0/006/utils/getCompressedData.d.ts +0 -4
- package/migrations/5.35.0/006/utils/getCompressedData.js +0 -19
- package/migrations/5.35.0/006/utils/getCompressedData.js.map +0 -1
- package/migrations/5.35.0/006/utils/getLexicalContentText.d.ts +0 -1
- package/migrations/5.35.0/006/utils/getLexicalContentText.js +0 -29
- package/migrations/5.35.0/006/utils/getLexicalContentText.js.map +0 -1
- package/migrations/5.35.0/006/utils/getSearchableContent.d.ts +0 -6
- package/migrations/5.35.0/006/utils/getSearchableContent.js +0 -45
- package/migrations/5.35.0/006/utils/getSearchableContent.js.map +0 -1
- package/migrations/5.35.0/006/utils/processors/button.d.ts +0 -1
- package/migrations/5.35.0/006/utils/processors/button.js +0 -17
- package/migrations/5.35.0/006/utils/processors/button.js.map +0 -1
- package/migrations/5.35.0/006/utils/processors/image.d.ts +0 -1
- package/migrations/5.35.0/006/utils/processors/image.js +0 -17
- package/migrations/5.35.0/006/utils/processors/image.js.map +0 -1
- package/migrations/5.35.0/006/utils/processors/images.d.ts +0 -1
- package/migrations/5.35.0/006/utils/processors/images.js +0 -18
- package/migrations/5.35.0/006/utils/processors/images.js.map +0 -1
- package/migrations/5.35.0/006/utils/processors/index.d.ts +0 -1
- package/migrations/5.35.0/006/utils/processors/index.js +0 -13
- package/migrations/5.35.0/006/utils/processors/index.js.map +0 -1
- package/migrations/5.35.0/006/utils/processors/paragraph.d.ts +0 -1
- package/migrations/5.35.0/006/utils/processors/paragraph.js +0 -25
- package/migrations/5.35.0/006/utils/processors/paragraph.js.map +0 -1
- package/migrations/5.36.0/001/constants.d.ts +0 -3
- package/migrations/5.36.0/001/constants.js +0 -11
- package/migrations/5.36.0/001/constants.js.map +0 -1
- package/migrations/5.36.0/001/ddb/FileDataMigration.d.ts +0 -17
- package/migrations/5.36.0/001/ddb/FileDataMigration.js +0 -241
- package/migrations/5.36.0/001/ddb/FileDataMigration.js.map +0 -1
- package/migrations/5.36.0/001/ddb/index.d.ts +0 -10
- package/migrations/5.36.0/001/ddb/index.js +0 -49
- package/migrations/5.36.0/001/ddb/index.js.map +0 -1
- package/migrations/5.36.0/001/ddb-es/FileDataMigration.d.ts +0 -20
- package/migrations/5.36.0/001/ddb-es/FileDataMigration.js +0 -405
- package/migrations/5.36.0/001/ddb-es/FileDataMigration.js.map +0 -1
- package/migrations/5.36.0/001/ddb-es/index.d.ts +0 -12
- package/migrations/5.36.0/001/ddb-es/index.js +0 -64
- package/migrations/5.36.0/001/ddb-es/index.js.map +0 -1
- package/migrations/5.36.0/001/entities/createEntryEntity.d.ts +0 -89
- package/migrations/5.36.0/001/entities/createEntryEntity.js +0 -106
- package/migrations/5.36.0/001/entities/createEntryEntity.js.map +0 -1
- package/migrations/5.36.0/001/entities/createFileEntity.d.ts +0 -95
- package/migrations/5.36.0/001/entities/createFileEntity.js +0 -33
- package/migrations/5.36.0/001/entities/createFileEntity.js.map +0 -1
- package/migrations/5.36.0/001/entities/createLocaleEntity.d.ts +0 -42
- package/migrations/5.36.0/001/entities/createLocaleEntity.js +0 -32
- package/migrations/5.36.0/001/entities/createLocaleEntity.js.map +0 -1
- package/migrations/5.36.0/001/entities/createTenantEntity.d.ts +0 -48
- package/migrations/5.36.0/001/entities/createTenantEntity.js +0 -13
- package/migrations/5.36.0/001/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.36.0/001/types.d.ts +0 -67
- package/migrations/5.36.0/001/types.js +0 -7
- package/migrations/5.36.0/001/types.js.map +0 -1
- package/migrations/5.36.0/001/utils/createMimeTag.d.ts +0 -1
- package/migrations/5.36.0/001/utils/createMimeTag.js +0 -10
- package/migrations/5.36.0/001/utils/createMimeTag.js.map +0 -1
- package/migrations/5.36.0/001/utils/getCompressedData.d.ts +0 -4
- package/migrations/5.36.0/001/utils/getCompressedData.js +0 -19
- package/migrations/5.36.0/001/utils/getCompressedData.js.map +0 -1
- package/migrations/5.37.0/001/TenantLinkDataMigration.d.ts +0 -14
- package/migrations/5.37.0/001/TenantLinkDataMigration.js +0 -106
- package/migrations/5.37.0/001/TenantLinkDataMigration.js.map +0 -1
- package/migrations/5.37.0/001/entities/createTenantEntity.d.ts +0 -48
- package/migrations/5.37.0/001/entities/createTenantEntity.js +0 -13
- package/migrations/5.37.0/001/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.37.0/001/entities/createTenantLinkEntity.d.ts +0 -48
- package/migrations/5.37.0/001/entities/createTenantLinkEntity.js +0 -17
- package/migrations/5.37.0/001/entities/createTenantLinkEntity.js.map +0 -1
- package/migrations/5.37.0/001/index.d.ts +0 -10
- package/migrations/5.37.0/001/index.js +0 -49
- package/migrations/5.37.0/001/index.js.map +0 -1
- package/migrations/5.37.0/001/types.d.ts +0 -25
- package/migrations/5.37.0/001/types.js +0 -7
- package/migrations/5.37.0/001/types.js.map +0 -1
- package/migrations/5.37.0/001/utils/isMigratedTenantLink.d.ts +0 -2
- package/migrations/5.37.0/001/utils/isMigratedTenantLink.js +0 -12
- package/migrations/5.37.0/001/utils/isMigratedTenantLink.js.map +0 -1
- package/migrations/5.37.0/002/constants.d.ts +0 -1
- package/migrations/5.37.0/002/constants.js +0 -9
- package/migrations/5.37.0/002/constants.js.map +0 -1
- package/migrations/5.37.0/002/ddb/index.d.ts +0 -22
- package/migrations/5.37.0/002/ddb/index.js +0 -133
- package/migrations/5.37.0/002/ddb/index.js.map +0 -1
- package/migrations/5.37.0/002/ddb-es/index.d.ts +0 -35
- package/migrations/5.37.0/002/ddb-es/index.js +0 -321
- package/migrations/5.37.0/002/ddb-es/index.js.map +0 -1
- package/migrations/5.37.0/002/entities/createEntryEntity.d.ts +0 -89
- package/migrations/5.37.0/002/entities/createEntryEntity.js +0 -109
- package/migrations/5.37.0/002/entities/createEntryEntity.js.map +0 -1
- package/migrations/5.37.0/002/entities/createLocaleEntity.d.ts +0 -42
- package/migrations/5.37.0/002/entities/createLocaleEntity.js +0 -32
- package/migrations/5.37.0/002/entities/createLocaleEntity.js.map +0 -1
- package/migrations/5.37.0/002/entities/createTenantEntity.d.ts +0 -48
- package/migrations/5.37.0/002/entities/createTenantEntity.js +0 -13
- package/migrations/5.37.0/002/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.37.0/002/types.d.ts +0 -53
- package/migrations/5.37.0/002/types.js +0 -7
- package/migrations/5.37.0/002/types.js.map +0 -1
- package/migrations/5.37.0/002/utils/getCompressedData.d.ts +0 -4
- package/migrations/5.37.0/002/utils/getCompressedData.js +0 -19
- package/migrations/5.37.0/002/utils/getCompressedData.js.map +0 -1
- package/migrations/5.37.0/002/utils/getDecompressedData.d.ts +0 -1
- package/migrations/5.37.0/002/utils/getDecompressedData.js +0 -31
- package/migrations/5.37.0/002/utils/getDecompressedData.js.map +0 -1
- package/migrations/5.37.0/003/constants.d.ts +0 -3
- package/migrations/5.37.0/003/constants.js +0 -11
- package/migrations/5.37.0/003/constants.js.map +0 -1
- package/migrations/5.37.0/003/ddb/AcoFolderMigration.d.ts +0 -15
- package/migrations/5.37.0/003/ddb/AcoFolderMigration.js +0 -179
- package/migrations/5.37.0/003/ddb/AcoFolderMigration.js.map +0 -1
- package/migrations/5.37.0/003/ddb/index.d.ts +0 -10
- package/migrations/5.37.0/003/ddb/index.js +0 -49
- package/migrations/5.37.0/003/ddb/index.js.map +0 -1
- package/migrations/5.37.0/003/ddb-es/AcoFolderMigration.d.ts +0 -20
- package/migrations/5.37.0/003/ddb-es/AcoFolderMigration.js +0 -313
- package/migrations/5.37.0/003/ddb-es/AcoFolderMigration.js.map +0 -1
- package/migrations/5.37.0/003/ddb-es/index.d.ts +0 -12
- package/migrations/5.37.0/003/ddb-es/index.js +0 -64
- package/migrations/5.37.0/003/ddb-es/index.js.map +0 -1
- package/migrations/5.37.0/003/ddb-es/latestElasticsearchData.d.ts +0 -4
- package/migrations/5.37.0/003/ddb-es/latestElasticsearchData.js +0 -30
- package/migrations/5.37.0/003/ddb-es/latestElasticsearchData.js.map +0 -1
- package/migrations/5.37.0/003/entities/createEntryEntity.d.ts +0 -89
- package/migrations/5.37.0/003/entities/createEntryEntity.js +0 -109
- package/migrations/5.37.0/003/entities/createEntryEntity.js.map +0 -1
- package/migrations/5.37.0/003/entities/createLocaleEntity.d.ts +0 -42
- package/migrations/5.37.0/003/entities/createLocaleEntity.js +0 -32
- package/migrations/5.37.0/003/entities/createLocaleEntity.js.map +0 -1
- package/migrations/5.37.0/003/entities/createTenantEntity.d.ts +0 -48
- package/migrations/5.37.0/003/entities/createTenantEntity.js +0 -13
- package/migrations/5.37.0/003/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.37.0/003/types.d.ts +0 -46
- package/migrations/5.37.0/003/types.js +0 -7
- package/migrations/5.37.0/003/types.js.map +0 -1
- package/migrations/5.37.0/003/utils/getCompressedData.d.ts +0 -4
- package/migrations/5.37.0/003/utils/getCompressedData.js +0 -19
- package/migrations/5.37.0/003/utils/getCompressedData.js.map +0 -1
- package/migrations/5.37.0/003/utils/getDecompressedData.d.ts +0 -1
- package/migrations/5.37.0/003/utils/getDecompressedData.js +0 -31
- package/migrations/5.37.0/003/utils/getDecompressedData.js.map +0 -1
- package/migrations/5.37.0/004/constants.d.ts +0 -7
- package/migrations/5.37.0/004/constants.js +0 -15
- package/migrations/5.37.0/004/constants.js.map +0 -1
- package/migrations/5.37.0/004/ddb/PageDataMigration.d.ts +0 -17
- package/migrations/5.37.0/004/ddb/PageDataMigration.js +0 -269
- package/migrations/5.37.0/004/ddb/PageDataMigration.js.map +0 -1
- package/migrations/5.37.0/004/ddb/index.d.ts +0 -10
- package/migrations/5.37.0/004/ddb/index.js +0 -49
- package/migrations/5.37.0/004/ddb/index.js.map +0 -1
- package/migrations/5.37.0/004/ddb-es/PageDataMigration.d.ts +0 -22
- package/migrations/5.37.0/004/ddb-es/PageDataMigration.js +0 -364
- package/migrations/5.37.0/004/ddb-es/PageDataMigration.js.map +0 -1
- package/migrations/5.37.0/004/ddb-es/index.d.ts +0 -12
- package/migrations/5.37.0/004/ddb-es/index.js +0 -64
- package/migrations/5.37.0/004/ddb-es/index.js.map +0 -1
- package/migrations/5.37.0/004/entities/createEntryEntity.d.ts +0 -89
- package/migrations/5.37.0/004/entities/createEntryEntity.js +0 -109
- package/migrations/5.37.0/004/entities/createEntryEntity.js.map +0 -1
- package/migrations/5.37.0/004/entities/createLocaleEntity.d.ts +0 -42
- package/migrations/5.37.0/004/entities/createLocaleEntity.js +0 -32
- package/migrations/5.37.0/004/entities/createLocaleEntity.js.map +0 -1
- package/migrations/5.37.0/004/entities/createPageEntity.d.ts +0 -89
- package/migrations/5.37.0/004/entities/createPageEntity.js +0 -113
- package/migrations/5.37.0/004/entities/createPageEntity.js.map +0 -1
- package/migrations/5.37.0/004/entities/createTenantEntity.d.ts +0 -48
- package/migrations/5.37.0/004/entities/createTenantEntity.js +0 -13
- package/migrations/5.37.0/004/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.37.0/004/types.d.ts +0 -149
- package/migrations/5.37.0/004/types.js +0 -7
- package/migrations/5.37.0/004/types.js.map +0 -1
- package/migrations/5.37.0/004/utils/getCompressedData.d.ts +0 -4
- package/migrations/5.37.0/004/utils/getCompressedData.js +0 -19
- package/migrations/5.37.0/004/utils/getCompressedData.js.map +0 -1
- package/migrations/5.37.0/005/constants.d.ts +0 -3
- package/migrations/5.37.0/005/constants.js +0 -11
- package/migrations/5.37.0/005/constants.js.map +0 -1
- package/migrations/5.37.0/005/ddb/index.d.ts +0 -20
- package/migrations/5.37.0/005/ddb/index.js +0 -245
- package/migrations/5.37.0/005/ddb/index.js.map +0 -1
- package/migrations/5.37.0/005/ddb-es/index.d.ts +0 -22
- package/migrations/5.37.0/005/ddb-es/index.js +0 -382
- package/migrations/5.37.0/005/ddb-es/index.js.map +0 -1
- package/migrations/5.37.0/005/entities/createEntryEntity.d.ts +0 -89
- package/migrations/5.37.0/005/entities/createEntryEntity.js +0 -109
- package/migrations/5.37.0/005/entities/createEntryEntity.js.map +0 -1
- package/migrations/5.37.0/005/entities/createFileEntity.d.ts +0 -95
- package/migrations/5.37.0/005/entities/createFileEntity.js +0 -33
- package/migrations/5.37.0/005/entities/createFileEntity.js.map +0 -1
- package/migrations/5.37.0/005/entities/createLocaleEntity.d.ts +0 -42
- package/migrations/5.37.0/005/entities/createLocaleEntity.js +0 -32
- package/migrations/5.37.0/005/entities/createLocaleEntity.js.map +0 -1
- package/migrations/5.37.0/005/entities/createTenantEntity.d.ts +0 -48
- package/migrations/5.37.0/005/entities/createTenantEntity.js +0 -13
- package/migrations/5.37.0/005/entities/createTenantEntity.js.map +0 -1
- package/migrations/5.37.0/005/entities/createTenantLinkEntity.d.ts +0 -48
- package/migrations/5.37.0/005/entities/createTenantLinkEntity.js +0 -17
- package/migrations/5.37.0/005/entities/createTenantLinkEntity.js.map +0 -1
- package/migrations/5.37.0/005/types.d.ts +0 -109
- package/migrations/5.37.0/005/types.js +0 -7
- package/migrations/5.37.0/005/types.js.map +0 -1
- package/migrations/5.38.0/001/ddb/index.d.ts +0 -11
- package/migrations/5.38.0/001/ddb/index.js +0 -116
- package/migrations/5.38.0/001/ddb/index.js.map +0 -1
- package/migrations/5.38.0/001/ddb-es/index.d.ts +0 -13
- package/migrations/5.38.0/001/ddb-es/index.js +0 -211
- package/migrations/5.38.0/001/ddb-es/index.js.map +0 -1
- package/migrations/5.38.0/001/entities/createFormEntity.d.ts +0 -42
- package/migrations/5.38.0/001/entities/createFormEntity.js +0 -92
- package/migrations/5.38.0/001/entities/createFormEntity.js.map +0 -1
- package/migrations/5.38.0/001/types.d.ts +0 -11
- package/migrations/5.38.0/001/types.js +0 -7
- package/migrations/5.38.0/001/types.js.map +0 -1
- package/migrations/5.38.0/002/ddb/index.d.ts +0 -22
- package/migrations/5.38.0/002/ddb/index.js +0 -140
- package/migrations/5.38.0/002/ddb/index.js.map +0 -1
- package/migrations/5.38.0/002/ddb-es/index.d.ts +0 -31
- package/migrations/5.38.0/002/ddb-es/index.js +0 -250
- package/migrations/5.38.0/002/ddb-es/index.js.map +0 -1
- package/migrations/5.38.0/002/entities/createFormEntity.d.ts +0 -42
- package/migrations/5.38.0/002/entities/createFormEntity.js +0 -92
- package/migrations/5.38.0/002/entities/createFormEntity.js.map +0 -1
- package/migrations/5.38.0/002/entities/createFormSubmissionDdbEsEntity.d.ts +0 -48
- package/migrations/5.38.0/002/entities/createFormSubmissionDdbEsEntity.js +0 -29
- package/migrations/5.38.0/002/entities/createFormSubmissionDdbEsEntity.js.map +0 -1
- package/migrations/5.38.0/002/entities/createFormSubmissionEntity.d.ts +0 -42
- package/migrations/5.38.0/002/entities/createFormSubmissionEntity.js +0 -56
- package/migrations/5.38.0/002/entities/createFormSubmissionEntity.js.map +0 -1
- package/migrations/5.38.0/002/types.d.ts +0 -23
- package/migrations/5.38.0/002/types.js +0 -7
- package/migrations/5.38.0/002/types.js.map +0 -1
- package/migrations/5.38.0/003/ddb/compressContent.d.ts +0 -4
- package/migrations/5.38.0/003/ddb/compressContent.js +0 -17
- package/migrations/5.38.0/003/ddb/compressContent.js.map +0 -1
- package/migrations/5.38.0/003/ddb/index.d.ts +0 -12
- package/migrations/5.38.0/003/ddb/index.js +0 -143
- package/migrations/5.38.0/003/ddb/index.js.map +0 -1
- package/migrations/5.38.0/003/entities/createPageBlockEntity.d.ts +0 -83
- package/migrations/5.38.0/003/entities/createPageBlockEntity.js +0 -68
- package/migrations/5.38.0/003/entities/createPageBlockEntity.js.map +0 -1
- package/migrations/5.38.0/003/types.d.ts +0 -8
- package/migrations/5.38.0/003/types.js +0 -7
- package/migrations/5.38.0/003/types.js.map +0 -1
- package/migrations/5.39.0/001/ddb/index.d.ts +0 -20
- package/migrations/5.39.0/001/ddb/index.js +0 -136
- package/migrations/5.39.0/001/ddb/index.js.map +0 -1
- package/migrations/5.39.0/001/ddb-es/index.d.ts +0 -29
- package/migrations/5.39.0/001/ddb-es/index.js +0 -266
- package/migrations/5.39.0/001/ddb-es/index.js.map +0 -1
- package/migrations/5.39.0/001/entities/createEntryEntity.d.ts +0 -89
- package/migrations/5.39.0/001/entities/createEntryEntity.js +0 -188
- package/migrations/5.39.0/001/entities/createEntryEntity.js.map +0 -1
- package/migrations/5.39.0/001/types.d.ts +0 -136
- package/migrations/5.39.0/001/types.js +0 -7
- package/migrations/5.39.0/001/types.js.map +0 -1
- package/migrations/5.39.0/001/utils/assignNewMetaFields.d.ts +0 -11
- package/migrations/5.39.0/001/utils/assignNewMetaFields.js +0 -44
- package/migrations/5.39.0/001/utils/assignNewMetaFields.js.map +0 -1
- package/migrations/5.39.0/001/utils/ensureAllNonNullableValues.d.ts +0 -8
- package/migrations/5.39.0/001/utils/ensureAllNonNullableValues.js +0 -38
- package/migrations/5.39.0/001/utils/ensureAllNonNullableValues.js.map +0 -1
- package/migrations/5.39.0/001/utils/fixTypeFieldValue.d.ts +0 -3
- package/migrations/5.39.0/001/utils/fixTypeFieldValue.js +0 -33
- package/migrations/5.39.0/001/utils/fixTypeFieldValue.js.map +0 -1
- package/migrations/5.39.0/001/utils/getCompressedData.d.ts +0 -4
- package/migrations/5.39.0/001/utils/getCompressedData.js +0 -19
- package/migrations/5.39.0/001/utils/getCompressedData.js.map +0 -1
- package/migrations/5.39.0/001/utils/getDecompressedData.d.ts +0 -1
- package/migrations/5.39.0/001/utils/getDecompressedData.js +0 -31
- package/migrations/5.39.0/001/utils/getDecompressedData.js.map +0 -1
- package/migrations/5.39.0/001/utils/getFallbackIdentity.d.ts +0 -10
- package/migrations/5.39.0/001/utils/getFallbackIdentity.js +0 -49
- package/migrations/5.39.0/001/utils/getFallbackIdentity.js.map +0 -1
- package/migrations/5.39.0/001/utils/getFirstLastPublishedOn.d.ts +0 -13
- package/migrations/5.39.0/001/utils/getFirstLastPublishedOn.js +0 -44
- package/migrations/5.39.0/001/utils/getFirstLastPublishedOn.js.map +0 -1
- package/migrations/5.39.0/001/utils/getNonNullableFieldsWithMissingValues.d.ts +0 -2
- package/migrations/5.39.0/001/utils/getNonNullableFieldsWithMissingValues.js +0 -22
- package/migrations/5.39.0/001/utils/getNonNullableFieldsWithMissingValues.js.map +0 -1
- package/migrations/5.39.0/001/utils/getOldestRevisionCreatedOn.d.ts +0 -13
- package/migrations/5.39.0/001/utils/getOldestRevisionCreatedOn.js +0 -37
- package/migrations/5.39.0/001/utils/getOldestRevisionCreatedOn.js.map +0 -1
- package/migrations/5.39.0/001/utils/hasAllNonNullableValues.d.ts +0 -2
- package/migrations/5.39.0/001/utils/hasAllNonNullableValues.js +0 -21
- package/migrations/5.39.0/001/utils/hasAllNonNullableValues.js.map +0 -1
- package/migrations/5.39.0/001/utils/hasValidTypeFieldValue.d.ts +0 -4
- package/migrations/5.39.0/001/utils/hasValidTypeFieldValue.js +0 -21
- package/migrations/5.39.0/001/utils/hasValidTypeFieldValue.js.map +0 -1
- package/migrations/5.39.0/001/utils/isMigratedEntry.d.ts +0 -2
- package/migrations/5.39.0/001/utils/isMigratedEntry.js +0 -12
- package/migrations/5.39.0/001/utils/isMigratedEntry.js.map +0 -1
- package/migrations/5.39.0/002/ddb/FileManager_5_39_0_002.d.ts +0 -14
- package/migrations/5.39.0/002/ddb/FileManager_5_39_0_002.js +0 -133
- package/migrations/5.39.0/002/ddb/FileManager_5_39_0_002.js.map +0 -1
- package/migrations/5.39.0/002/ddb/index.d.ts +0 -1
- package/migrations/5.39.0/002/ddb/index.js +0 -18
- package/migrations/5.39.0/002/ddb/index.js.map +0 -1
- package/migrations/5.39.0/002/ddb-es/FileManager_5_39_0_002.d.ts +0 -15
- package/migrations/5.39.0/002/ddb-es/FileManager_5_39_0_002.js +0 -190
- package/migrations/5.39.0/002/ddb-es/FileManager_5_39_0_002.js.map +0 -1
- package/migrations/5.39.0/002/ddb-es/index.d.ts +0 -1
- package/migrations/5.39.0/002/ddb-es/index.js +0 -18
- package/migrations/5.39.0/002/ddb-es/index.js.map +0 -1
- package/migrations/5.39.0/002/utils/FileMetadata.d.ts +0 -12
- package/migrations/5.39.0/002/utils/FileMetadata.js +0 -55
- package/migrations/5.39.0/002/utils/FileMetadata.js.map +0 -1
- package/migrations/5.39.0/002/utils/createFileEntity.d.ts +0 -53
- package/migrations/5.39.0/002/utils/createFileEntity.js +0 -50
- package/migrations/5.39.0/002/utils/createFileEntity.js.map +0 -1
- package/migrations/5.39.0/002/utils/createLocaleEntity.d.ts +0 -42
- package/migrations/5.39.0/002/utils/createLocaleEntity.js +0 -32
- package/migrations/5.39.0/002/utils/createLocaleEntity.js.map +0 -1
- package/migrations/5.39.0/002/utils/createTenantEntity.d.ts +0 -48
- package/migrations/5.39.0/002/utils/createTenantEntity.js +0 -13
- package/migrations/5.39.0/002/utils/createTenantEntity.js.map +0 -1
- package/migrations/5.39.2/001/ddb-es/index.d.ts +0 -29
- package/migrations/5.39.2/001/ddb-es/index.js +0 -276
- package/migrations/5.39.2/001/ddb-es/index.js.map +0 -1
- package/migrations/5.39.6/001/ddb-es/MetaFieldsMigration.d.ts +0 -21
- package/migrations/5.39.6/001/ddb-es/MetaFieldsMigration.js +0 -172
- package/migrations/5.39.6/001/ddb-es/MetaFieldsMigration.js.map +0 -1
- package/migrations/5.39.6/001/ddb-es/SegmentProcessor.d.ts +0 -23
- package/migrations/5.39.6/001/ddb-es/SegmentProcessor.js +0 -31
- package/migrations/5.39.6/001/ddb-es/SegmentProcessor.js.map +0 -1
- package/migrations/5.39.6/001/ddb-es/bin.d.ts +0 -2
- package/migrations/5.39.6/001/ddb-es/bin.js +0 -83
- package/migrations/5.39.6/001/ddb-es/bin.js.map +0 -1
- package/migrations/5.39.6/001/ddb-es/createMetaFieldsDataMigrationDeploymentHook.d.ts +0 -11
- package/migrations/5.39.6/001/ddb-es/createMetaFieldsDataMigrationDeploymentHook.js +0 -83
- package/migrations/5.39.6/001/ddb-es/createMetaFieldsDataMigrationDeploymentHook.js.map +0 -1
- package/migrations/5.39.6/001/ddb-es/index.d.ts +0 -29
- package/migrations/5.39.6/001/ddb-es/index.js +0 -329
- package/migrations/5.39.6/001/ddb-es/index.js.map +0 -1
- package/migrations/5.39.6/001/ddb-es/utils.d.ts +0 -28
- package/migrations/5.39.6/001/ddb-es/utils.js +0 -60
- package/migrations/5.39.6/001/ddb-es/utils.js.map +0 -1
- package/migrations/5.39.6/001/ddb-es/worker.d.ts +0 -1
- package/migrations/5.39.6/001/ddb-es/worker.js +0 -465
- package/migrations/5.39.6/001/ddb-es/worker.js.map +0 -1
- package/migrations/5.40.0/001/ddb/compression.d.ts +0 -15
- package/migrations/5.40.0/001/ddb/compression.js +0 -42
- package/migrations/5.40.0/001/ddb/compression.js.map +0 -1
- package/migrations/5.40.0/001/ddb/createBlockEntity.d.ts +0 -42
- package/migrations/5.40.0/001/ddb/createBlockEntity.js +0 -54
- package/migrations/5.40.0/001/ddb/createBlockEntity.js.map +0 -1
- package/migrations/5.40.0/001/ddb/index.d.ts +0 -13
- package/migrations/5.40.0/001/ddb/index.js +0 -158
- package/migrations/5.40.0/001/ddb/index.js.map +0 -1
- package/migrations/5.40.0/001/ddb/types.d.ts +0 -20
- package/migrations/5.40.0/001/ddb/types.js +0 -7
- package/migrations/5.40.0/001/ddb/types.js.map +0 -1
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createDdbEsEntryEntity = exports.createDdbEntryEntity = void 0;
|
|
7
|
-
var _utils = require("../../../../utils");
|
|
8
|
-
const ddbAttributes = {
|
|
9
|
-
PK: {
|
|
10
|
-
type: "string",
|
|
11
|
-
partitionKey: true
|
|
12
|
-
},
|
|
13
|
-
SK: {
|
|
14
|
-
type: "string",
|
|
15
|
-
sortKey: true
|
|
16
|
-
},
|
|
17
|
-
GSI1_PK: {
|
|
18
|
-
type: "string"
|
|
19
|
-
},
|
|
20
|
-
GSI1_SK: {
|
|
21
|
-
type: "string"
|
|
22
|
-
},
|
|
23
|
-
TYPE: {
|
|
24
|
-
type: "string"
|
|
25
|
-
},
|
|
26
|
-
__type: {
|
|
27
|
-
type: "string"
|
|
28
|
-
},
|
|
29
|
-
webinyVersion: {
|
|
30
|
-
type: "string"
|
|
31
|
-
},
|
|
32
|
-
tenant: {
|
|
33
|
-
type: "string"
|
|
34
|
-
},
|
|
35
|
-
entryId: {
|
|
36
|
-
type: "string"
|
|
37
|
-
},
|
|
38
|
-
id: {
|
|
39
|
-
type: "string"
|
|
40
|
-
},
|
|
41
|
-
createdBy: {
|
|
42
|
-
type: "map"
|
|
43
|
-
},
|
|
44
|
-
ownedBy: {
|
|
45
|
-
type: "map"
|
|
46
|
-
},
|
|
47
|
-
modifiedBy: {
|
|
48
|
-
type: "map"
|
|
49
|
-
},
|
|
50
|
-
createdOn: {
|
|
51
|
-
type: "string"
|
|
52
|
-
},
|
|
53
|
-
savedOn: {
|
|
54
|
-
type: "string"
|
|
55
|
-
},
|
|
56
|
-
modelId: {
|
|
57
|
-
type: "string"
|
|
58
|
-
},
|
|
59
|
-
locale: {
|
|
60
|
-
type: "string"
|
|
61
|
-
},
|
|
62
|
-
publishedOn: {
|
|
63
|
-
type: "string"
|
|
64
|
-
},
|
|
65
|
-
version: {
|
|
66
|
-
type: "number"
|
|
67
|
-
},
|
|
68
|
-
locked: {
|
|
69
|
-
type: "boolean"
|
|
70
|
-
},
|
|
71
|
-
status: {
|
|
72
|
-
type: "string"
|
|
73
|
-
},
|
|
74
|
-
values: {
|
|
75
|
-
type: "map"
|
|
76
|
-
},
|
|
77
|
-
meta: {
|
|
78
|
-
type: "map"
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
const ddbEsAttributes = {
|
|
82
|
-
PK: {
|
|
83
|
-
type: "string",
|
|
84
|
-
partitionKey: true
|
|
85
|
-
},
|
|
86
|
-
SK: {
|
|
87
|
-
type: "string",
|
|
88
|
-
sortKey: true
|
|
89
|
-
},
|
|
90
|
-
index: {
|
|
91
|
-
type: "string"
|
|
92
|
-
},
|
|
93
|
-
data: {
|
|
94
|
-
type: "map"
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
const createDdbEntryEntity = table => {
|
|
98
|
-
return (0, _utils.createLegacyEntity)(table, "CmsEntries", ddbAttributes);
|
|
99
|
-
};
|
|
100
|
-
exports.createDdbEntryEntity = createDdbEntryEntity;
|
|
101
|
-
const createDdbEsEntryEntity = table => {
|
|
102
|
-
return (0, _utils.createStandardEntity)(table, "CmsEntriesElasticsearch", ddbEsAttributes);
|
|
103
|
-
};
|
|
104
|
-
exports.createDdbEsEntryEntity = createDdbEsEntryEntity;
|
|
105
|
-
|
|
106
|
-
//# sourceMappingURL=createEntryEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","ddbAttributes","PK","type","partitionKey","SK","sortKey","GSI1_PK","GSI1_SK","TYPE","__type","webinyVersion","tenant","entryId","id","createdBy","ownedBy","modifiedBy","createdOn","savedOn","modelId","locale","publishedOn","version","locked","status","values","meta","ddbEsAttributes","index","data","createDdbEntryEntity","table","createLegacyEntity","exports","createDdbEsEntryEntity","createStandardEntity"],"sources":["createEntryEntity.ts"],"sourcesContent":["import { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { createLegacyEntity, createStandardEntity } from \"~/utils\";\n\nconst ddbAttributes: Parameters<typeof createLegacyEntity>[2] = {\n PK: {\n type: \"string\",\n partitionKey: true\n },\n SK: {\n type: \"string\",\n sortKey: true\n },\n GSI1_PK: {\n type: \"string\"\n },\n GSI1_SK: {\n type: \"string\"\n },\n TYPE: {\n type: \"string\"\n },\n __type: {\n type: \"string\"\n },\n webinyVersion: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n entryId: {\n type: \"string\"\n },\n id: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n ownedBy: {\n type: \"map\"\n },\n modifiedBy: {\n type: \"map\"\n },\n createdOn: {\n type: \"string\"\n },\n savedOn: {\n type: \"string\"\n },\n modelId: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n publishedOn: {\n type: \"string\"\n },\n version: {\n type: \"number\"\n },\n locked: {\n type: \"boolean\"\n },\n status: {\n type: \"string\"\n },\n values: {\n type: \"map\"\n },\n meta: {\n type: \"map\"\n }\n};\n\nconst ddbEsAttributes: Parameters<typeof createStandardEntity>[2] = {\n PK: {\n type: \"string\",\n partitionKey: true\n },\n SK: {\n type: \"string\",\n sortKey: true\n },\n index: {\n type: \"string\"\n },\n data: {\n type: \"map\"\n }\n};\n\nexport const createDdbEntryEntity = (table: Table<string, string, string>) => {\n return createLegacyEntity(table, \"CmsEntries\", ddbAttributes);\n};\n\nexport const createDdbEsEntryEntity = (table: Table<string, string, string>) => {\n return createStandardEntity(table, \"CmsEntriesElasticsearch\", ddbEsAttributes);\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,MAAMC,aAAuD,GAAG;EAC5DC,EAAE,EAAE;IACAC,IAAI,EAAE,QAAQ;IACdC,YAAY,EAAE;EAClB,CAAC;EACDC,EAAE,EAAE;IACAF,IAAI,EAAE,QAAQ;IACdG,OAAO,EAAE;EACb,CAAC;EACDC,OAAO,EAAE;IACLJ,IAAI,EAAE;EACV,CAAC;EACDK,OAAO,EAAE;IACLL,IAAI,EAAE;EACV,CAAC;EACDM,IAAI,EAAE;IACFN,IAAI,EAAE;EACV,CAAC;EACDO,MAAM,EAAE;IACJP,IAAI,EAAE;EACV,CAAC;EACDQ,aAAa,EAAE;IACXR,IAAI,EAAE;EACV,CAAC;EACDS,MAAM,EAAE;IACJT,IAAI,EAAE;EACV,CAAC;EACDU,OAAO,EAAE;IACLV,IAAI,EAAE;EACV,CAAC;EACDW,EAAE,EAAE;IACAX,IAAI,EAAE;EACV,CAAC;EACDY,SAAS,EAAE;IACPZ,IAAI,EAAE;EACV,CAAC;EACDa,OAAO,EAAE;IACLb,IAAI,EAAE;EACV,CAAC;EACDc,UAAU,EAAE;IACRd,IAAI,EAAE;EACV,CAAC;EACDe,SAAS,EAAE;IACPf,IAAI,EAAE;EACV,CAAC;EACDgB,OAAO,EAAE;IACLhB,IAAI,EAAE;EACV,CAAC;EACDiB,OAAO,EAAE;IACLjB,IAAI,EAAE;EACV,CAAC;EACDkB,MAAM,EAAE;IACJlB,IAAI,EAAE;EACV,CAAC;EACDmB,WAAW,EAAE;IACTnB,IAAI,EAAE;EACV,CAAC;EACDoB,OAAO,EAAE;IACLpB,IAAI,EAAE;EACV,CAAC;EACDqB,MAAM,EAAE;IACJrB,IAAI,EAAE;EACV,CAAC;EACDsB,MAAM,EAAE;IACJtB,IAAI,EAAE;EACV,CAAC;EACDuB,MAAM,EAAE;IACJvB,IAAI,EAAE;EACV,CAAC;EACDwB,IAAI,EAAE;IACFxB,IAAI,EAAE;EACV;AACJ,CAAC;AAED,MAAMyB,eAA2D,GAAG;EAChE1B,EAAE,EAAE;IACAC,IAAI,EAAE,QAAQ;IACdC,YAAY,EAAE;EAClB,CAAC;EACDC,EAAE,EAAE;IACAF,IAAI,EAAE,QAAQ;IACdG,OAAO,EAAE;EACb,CAAC;EACDuB,KAAK,EAAE;IACH1B,IAAI,EAAE;EACV,CAAC;EACD2B,IAAI,EAAE;IACF3B,IAAI,EAAE;EACV;AACJ,CAAC;AAEM,MAAM4B,oBAAoB,GAAIC,KAAoC,IAAK;EAC1E,OAAO,IAAAC,yBAAkB,EAACD,KAAK,EAAE,YAAY,EAAE/B,aAAa,CAAC;AACjE,CAAC;AAACiC,OAAA,CAAAH,oBAAA,GAAAA,oBAAA;AAEK,MAAMI,sBAAsB,GAAIH,KAAoC,IAAK;EAC5E,OAAO,IAAAI,2BAAoB,EAACJ,KAAK,EAAE,yBAAyB,EAAEJ,eAAe,CAAC;AAClF,CAAC;AAACM,OAAA,CAAAC,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
-
export declare const createLocaleEntity: (table: Table<string, string, string>) => import("dynamodb-toolbox/dist/cjs/classes/Entity/Entity").default<string, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, Table<string, string, string>, true, true, boolean, string, string, string, boolean, {
|
|
3
|
-
PK: {
|
|
4
|
-
partitionKey: true;
|
|
5
|
-
};
|
|
6
|
-
SK: {
|
|
7
|
-
sortKey: true;
|
|
8
|
-
};
|
|
9
|
-
GSI1_PK: {
|
|
10
|
-
type: "string";
|
|
11
|
-
};
|
|
12
|
-
GSI1_SK: {
|
|
13
|
-
type: "string";
|
|
14
|
-
};
|
|
15
|
-
TYPE: {
|
|
16
|
-
type: "string";
|
|
17
|
-
};
|
|
18
|
-
}, {
|
|
19
|
-
PK: {
|
|
20
|
-
partitionKey: true;
|
|
21
|
-
};
|
|
22
|
-
SK: {
|
|
23
|
-
sortKey: true;
|
|
24
|
-
};
|
|
25
|
-
GSI1_PK: {
|
|
26
|
-
type: "string";
|
|
27
|
-
};
|
|
28
|
-
GSI1_SK: {
|
|
29
|
-
type: "string";
|
|
30
|
-
};
|
|
31
|
-
TYPE: {
|
|
32
|
-
type: "string";
|
|
33
|
-
};
|
|
34
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
[x: number]: any;
|
|
37
|
-
[x: symbol]: any;
|
|
38
|
-
}, {
|
|
39
|
-
[x: string]: any;
|
|
40
|
-
[x: number]: any;
|
|
41
|
-
[x: symbol]: any;
|
|
42
|
-
}>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createLocaleEntity = void 0;
|
|
7
|
-
var _utils = require("../../../../utils");
|
|
8
|
-
const createLocaleEntity = table => {
|
|
9
|
-
return (0, _utils.createLegacyEntity)(table, "I18NLocale", {
|
|
10
|
-
createdOn: {
|
|
11
|
-
type: "string"
|
|
12
|
-
},
|
|
13
|
-
createdBy: {
|
|
14
|
-
type: "map"
|
|
15
|
-
},
|
|
16
|
-
code: {
|
|
17
|
-
type: "string"
|
|
18
|
-
},
|
|
19
|
-
default: {
|
|
20
|
-
type: "boolean"
|
|
21
|
-
},
|
|
22
|
-
webinyVersion: {
|
|
23
|
-
type: "string"
|
|
24
|
-
},
|
|
25
|
-
tenant: {
|
|
26
|
-
type: "string"
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
exports.createLocaleEntity = createLocaleEntity;
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=createLocaleEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","createLocaleEntity","table","createLegacyEntity","createdOn","type","createdBy","code","default","webinyVersion","tenant","exports"],"sources":["createLocaleEntity.ts"],"sourcesContent":["import { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { createLegacyEntity } from \"~/utils\";\n\nexport const createLocaleEntity = (table: Table<string, string, string>) => {\n return createLegacyEntity(table, \"I18NLocale\", {\n createdOn: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n code: {\n type: \"string\"\n },\n default: {\n type: \"boolean\"\n },\n webinyVersion: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,kBAAkB,GAAIC,KAAoC,IAAK;EACxE,OAAO,IAAAC,yBAAkB,EAACD,KAAK,EAAE,YAAY,EAAE;IAC3CE,SAAS,EAAE;MACPC,IAAI,EAAE;IACV,CAAC;IACDC,SAAS,EAAE;MACPD,IAAI,EAAE;IACV,CAAC;IACDE,IAAI,EAAE;MACFF,IAAI,EAAE;IACV,CAAC;IACDG,OAAO,EAAE;MACLH,IAAI,EAAE;IACV,CAAC;IACDI,aAAa,EAAE;MACXJ,IAAI,EAAE;IACV,CAAC;IACDK,MAAM,EAAE;MACJL,IAAI,EAAE;IACV;EACJ,CAAC,CAAC;AACN,CAAC;AAACM,OAAA,CAAAV,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
-
export declare const createDdbPageEntity: (table: Table<string, string, string>) => import("dynamodb-toolbox/dist/cjs/classes/Entity/Entity").default<string, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, Table<string, string, string>, true, true, boolean, string, string, string, boolean, {
|
|
3
|
-
PK: {
|
|
4
|
-
partitionKey: true;
|
|
5
|
-
};
|
|
6
|
-
SK: {
|
|
7
|
-
sortKey: true;
|
|
8
|
-
};
|
|
9
|
-
GSI1_PK: {
|
|
10
|
-
type: "string";
|
|
11
|
-
};
|
|
12
|
-
GSI1_SK: {
|
|
13
|
-
type: "string";
|
|
14
|
-
};
|
|
15
|
-
TYPE: {
|
|
16
|
-
type: "string";
|
|
17
|
-
};
|
|
18
|
-
}, {
|
|
19
|
-
PK: {
|
|
20
|
-
partitionKey: true;
|
|
21
|
-
};
|
|
22
|
-
SK: {
|
|
23
|
-
sortKey: true;
|
|
24
|
-
};
|
|
25
|
-
GSI1_PK: {
|
|
26
|
-
type: "string";
|
|
27
|
-
};
|
|
28
|
-
GSI1_SK: {
|
|
29
|
-
type: "string";
|
|
30
|
-
};
|
|
31
|
-
TYPE: {
|
|
32
|
-
type: "string";
|
|
33
|
-
};
|
|
34
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
[x: number]: any;
|
|
37
|
-
[x: symbol]: any;
|
|
38
|
-
}, {
|
|
39
|
-
[x: string]: any;
|
|
40
|
-
[x: number]: any;
|
|
41
|
-
[x: symbol]: any;
|
|
42
|
-
}>;
|
|
43
|
-
export declare const createDdbEsPageEntity: (table: Table<string, string, string>) => import("dynamodb-toolbox/dist/cjs/classes/Entity/Entity").default<string, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, Table<string, string, string>, true, true, boolean, string, string, string, boolean, {
|
|
44
|
-
PK: {
|
|
45
|
-
partitionKey: true;
|
|
46
|
-
};
|
|
47
|
-
SK: {
|
|
48
|
-
sortKey: true;
|
|
49
|
-
};
|
|
50
|
-
GSI1_PK: {
|
|
51
|
-
type: "string";
|
|
52
|
-
};
|
|
53
|
-
GSI1_SK: {
|
|
54
|
-
type: "string";
|
|
55
|
-
};
|
|
56
|
-
TYPE: {
|
|
57
|
-
type: "string";
|
|
58
|
-
};
|
|
59
|
-
data: {
|
|
60
|
-
type: "map";
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
PK: {
|
|
64
|
-
partitionKey: true;
|
|
65
|
-
};
|
|
66
|
-
SK: {
|
|
67
|
-
sortKey: true;
|
|
68
|
-
};
|
|
69
|
-
GSI1_PK: {
|
|
70
|
-
type: "string";
|
|
71
|
-
};
|
|
72
|
-
GSI1_SK: {
|
|
73
|
-
type: "string";
|
|
74
|
-
};
|
|
75
|
-
TYPE: {
|
|
76
|
-
type: "string";
|
|
77
|
-
};
|
|
78
|
-
data: {
|
|
79
|
-
type: "map";
|
|
80
|
-
};
|
|
81
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
82
|
-
[x: string]: any;
|
|
83
|
-
[x: number]: any;
|
|
84
|
-
[x: symbol]: any;
|
|
85
|
-
}, {
|
|
86
|
-
[x: string]: any;
|
|
87
|
-
[x: number]: any;
|
|
88
|
-
[x: symbol]: any;
|
|
89
|
-
}>;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createDdbPageEntity = exports.createDdbEsPageEntity = void 0;
|
|
7
|
-
var _utils = require("../../../../utils");
|
|
8
|
-
const ddbAttributes = {
|
|
9
|
-
PK: {
|
|
10
|
-
partitionKey: true
|
|
11
|
-
},
|
|
12
|
-
SK: {
|
|
13
|
-
sortKey: true
|
|
14
|
-
},
|
|
15
|
-
GSI1_PK: {
|
|
16
|
-
type: "string"
|
|
17
|
-
},
|
|
18
|
-
GSI1_SK: {
|
|
19
|
-
type: "string"
|
|
20
|
-
},
|
|
21
|
-
TYPE: {
|
|
22
|
-
type: "string"
|
|
23
|
-
},
|
|
24
|
-
id: {
|
|
25
|
-
type: "string"
|
|
26
|
-
},
|
|
27
|
-
pid: {
|
|
28
|
-
type: "string"
|
|
29
|
-
},
|
|
30
|
-
tenant: {
|
|
31
|
-
type: "string"
|
|
32
|
-
},
|
|
33
|
-
locale: {
|
|
34
|
-
type: "string"
|
|
35
|
-
},
|
|
36
|
-
title: {
|
|
37
|
-
type: "string"
|
|
38
|
-
},
|
|
39
|
-
titleLC: {
|
|
40
|
-
type: "string"
|
|
41
|
-
},
|
|
42
|
-
editor: {
|
|
43
|
-
type: "string"
|
|
44
|
-
},
|
|
45
|
-
createdFrom: {
|
|
46
|
-
type: "string"
|
|
47
|
-
},
|
|
48
|
-
path: {
|
|
49
|
-
type: "string"
|
|
50
|
-
},
|
|
51
|
-
category: {
|
|
52
|
-
type: "string"
|
|
53
|
-
},
|
|
54
|
-
content: {
|
|
55
|
-
type: "map"
|
|
56
|
-
},
|
|
57
|
-
publishedOn: {
|
|
58
|
-
type: "string"
|
|
59
|
-
},
|
|
60
|
-
version: {
|
|
61
|
-
type: "number"
|
|
62
|
-
},
|
|
63
|
-
settings: {
|
|
64
|
-
type: "map"
|
|
65
|
-
},
|
|
66
|
-
locked: {
|
|
67
|
-
type: "boolean"
|
|
68
|
-
},
|
|
69
|
-
status: {
|
|
70
|
-
type: "string"
|
|
71
|
-
},
|
|
72
|
-
createdOn: {
|
|
73
|
-
type: "string"
|
|
74
|
-
},
|
|
75
|
-
savedOn: {
|
|
76
|
-
type: "string"
|
|
77
|
-
},
|
|
78
|
-
createdBy: {
|
|
79
|
-
type: "map"
|
|
80
|
-
},
|
|
81
|
-
ownedBy: {
|
|
82
|
-
type: "map"
|
|
83
|
-
},
|
|
84
|
-
webinyVersion: {
|
|
85
|
-
type: "string"
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const ddbEsAttributes = {
|
|
89
|
-
PK: {
|
|
90
|
-
type: "string",
|
|
91
|
-
partitionKey: true
|
|
92
|
-
},
|
|
93
|
-
SK: {
|
|
94
|
-
type: "string",
|
|
95
|
-
sortKey: true
|
|
96
|
-
},
|
|
97
|
-
index: {
|
|
98
|
-
type: "string"
|
|
99
|
-
},
|
|
100
|
-
data: {
|
|
101
|
-
type: "map"
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const createDdbPageEntity = table => {
|
|
105
|
-
return (0, _utils.createLegacyEntity)(table, "PbPages", ddbAttributes);
|
|
106
|
-
};
|
|
107
|
-
exports.createDdbPageEntity = createDdbPageEntity;
|
|
108
|
-
const createDdbEsPageEntity = table => {
|
|
109
|
-
return (0, _utils.createStandardEntity)(table, "PbPagesEs", ddbEsAttributes);
|
|
110
|
-
};
|
|
111
|
-
exports.createDdbEsPageEntity = createDdbEsPageEntity;
|
|
112
|
-
|
|
113
|
-
//# sourceMappingURL=createPageEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","ddbAttributes","PK","partitionKey","SK","sortKey","GSI1_PK","type","GSI1_SK","TYPE","id","pid","tenant","locale","title","titleLC","editor","createdFrom","path","category","content","publishedOn","version","settings","locked","status","createdOn","savedOn","createdBy","ownedBy","webinyVersion","ddbEsAttributes","index","data","createDdbPageEntity","table","createLegacyEntity","exports","createDdbEsPageEntity","createStandardEntity"],"sources":["createPageEntity.ts"],"sourcesContent":["import { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { createLegacyEntity, createStandardEntity } from \"~/utils\";\n\nconst ddbAttributes: Parameters<typeof createLegacyEntity>[2] = {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n GSI1_PK: {\n type: \"string\"\n },\n GSI1_SK: {\n type: \"string\"\n },\n TYPE: {\n type: \"string\"\n },\n id: {\n type: \"string\"\n },\n pid: {\n type: \"string\"\n },\n tenant: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n titleLC: {\n type: \"string\"\n },\n editor: {\n type: \"string\"\n },\n createdFrom: {\n type: \"string\"\n },\n path: {\n type: \"string\"\n },\n category: {\n type: \"string\"\n },\n content: {\n type: \"map\"\n },\n publishedOn: {\n type: \"string\"\n },\n version: {\n type: \"number\"\n },\n settings: {\n type: \"map\"\n },\n locked: {\n type: \"boolean\"\n },\n status: {\n type: \"string\"\n },\n createdOn: {\n type: \"string\"\n },\n savedOn: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n ownedBy: {\n type: \"map\"\n },\n webinyVersion: {\n type: \"string\"\n }\n};\n\nconst ddbEsAttributes: Parameters<typeof createStandardEntity>[2] = {\n PK: {\n type: \"string\",\n partitionKey: true\n },\n SK: {\n type: \"string\",\n sortKey: true\n },\n index: {\n type: \"string\"\n },\n data: {\n type: \"map\"\n }\n};\n\nexport const createDdbPageEntity = (table: Table<string, string, string>) => {\n return createLegacyEntity(table, \"PbPages\", ddbAttributes);\n};\n\nexport const createDdbEsPageEntity = (table: Table<string, string, string>) => {\n return createStandardEntity(table, \"PbPagesEs\", ddbEsAttributes);\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,MAAMC,aAAuD,GAAG;EAC5DC,EAAE,EAAE;IACAC,YAAY,EAAE;EAClB,CAAC;EACDC,EAAE,EAAE;IACAC,OAAO,EAAE;EACb,CAAC;EACDC,OAAO,EAAE;IACLC,IAAI,EAAE;EACV,CAAC;EACDC,OAAO,EAAE;IACLD,IAAI,EAAE;EACV,CAAC;EACDE,IAAI,EAAE;IACFF,IAAI,EAAE;EACV,CAAC;EACDG,EAAE,EAAE;IACAH,IAAI,EAAE;EACV,CAAC;EACDI,GAAG,EAAE;IACDJ,IAAI,EAAE;EACV,CAAC;EACDK,MAAM,EAAE;IACJL,IAAI,EAAE;EACV,CAAC;EACDM,MAAM,EAAE;IACJN,IAAI,EAAE;EACV,CAAC;EACDO,KAAK,EAAE;IACHP,IAAI,EAAE;EACV,CAAC;EACDQ,OAAO,EAAE;IACLR,IAAI,EAAE;EACV,CAAC;EACDS,MAAM,EAAE;IACJT,IAAI,EAAE;EACV,CAAC;EACDU,WAAW,EAAE;IACTV,IAAI,EAAE;EACV,CAAC;EACDW,IAAI,EAAE;IACFX,IAAI,EAAE;EACV,CAAC;EACDY,QAAQ,EAAE;IACNZ,IAAI,EAAE;EACV,CAAC;EACDa,OAAO,EAAE;IACLb,IAAI,EAAE;EACV,CAAC;EACDc,WAAW,EAAE;IACTd,IAAI,EAAE;EACV,CAAC;EACDe,OAAO,EAAE;IACLf,IAAI,EAAE;EACV,CAAC;EACDgB,QAAQ,EAAE;IACNhB,IAAI,EAAE;EACV,CAAC;EACDiB,MAAM,EAAE;IACJjB,IAAI,EAAE;EACV,CAAC;EACDkB,MAAM,EAAE;IACJlB,IAAI,EAAE;EACV,CAAC;EACDmB,SAAS,EAAE;IACPnB,IAAI,EAAE;EACV,CAAC;EACDoB,OAAO,EAAE;IACLpB,IAAI,EAAE;EACV,CAAC;EACDqB,SAAS,EAAE;IACPrB,IAAI,EAAE;EACV,CAAC;EACDsB,OAAO,EAAE;IACLtB,IAAI,EAAE;EACV,CAAC;EACDuB,aAAa,EAAE;IACXvB,IAAI,EAAE;EACV;AACJ,CAAC;AAED,MAAMwB,eAA2D,GAAG;EAChE7B,EAAE,EAAE;IACAK,IAAI,EAAE,QAAQ;IACdJ,YAAY,EAAE;EAClB,CAAC;EACDC,EAAE,EAAE;IACAG,IAAI,EAAE,QAAQ;IACdF,OAAO,EAAE;EACb,CAAC;EACD2B,KAAK,EAAE;IACHzB,IAAI,EAAE;EACV,CAAC;EACD0B,IAAI,EAAE;IACF1B,IAAI,EAAE;EACV;AACJ,CAAC;AAEM,MAAM2B,mBAAmB,GAAIC,KAAoC,IAAK;EACzE,OAAO,IAAAC,yBAAkB,EAACD,KAAK,EAAE,SAAS,EAAElC,aAAa,CAAC;AAC9D,CAAC;AAACoC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAEK,MAAMI,qBAAqB,GAAIH,KAAoC,IAAK;EAC3E,OAAO,IAAAI,2BAAoB,EAACJ,KAAK,EAAE,WAAW,EAAEJ,eAAe,CAAC;AACpE,CAAC;AAACM,OAAA,CAAAC,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
-
export declare const createTenantEntity: (table: Table<string, string, string>) => import("dynamodb-toolbox/dist/cjs/classes/Entity/Entity").default<string, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, Table<string, string, string>, true, true, boolean, string, string, string, boolean, {
|
|
3
|
-
PK: {
|
|
4
|
-
partitionKey: true;
|
|
5
|
-
};
|
|
6
|
-
SK: {
|
|
7
|
-
sortKey: true;
|
|
8
|
-
};
|
|
9
|
-
GSI1_PK: {
|
|
10
|
-
type: "string";
|
|
11
|
-
};
|
|
12
|
-
GSI1_SK: {
|
|
13
|
-
type: "string";
|
|
14
|
-
};
|
|
15
|
-
TYPE: {
|
|
16
|
-
type: "string";
|
|
17
|
-
};
|
|
18
|
-
data: {
|
|
19
|
-
type: "map";
|
|
20
|
-
};
|
|
21
|
-
}, {
|
|
22
|
-
PK: {
|
|
23
|
-
partitionKey: true;
|
|
24
|
-
};
|
|
25
|
-
SK: {
|
|
26
|
-
sortKey: true;
|
|
27
|
-
};
|
|
28
|
-
GSI1_PK: {
|
|
29
|
-
type: "string";
|
|
30
|
-
};
|
|
31
|
-
GSI1_SK: {
|
|
32
|
-
type: "string";
|
|
33
|
-
};
|
|
34
|
-
TYPE: {
|
|
35
|
-
type: "string";
|
|
36
|
-
};
|
|
37
|
-
data: {
|
|
38
|
-
type: "map";
|
|
39
|
-
};
|
|
40
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
41
|
-
[x: string]: any;
|
|
42
|
-
[x: number]: any;
|
|
43
|
-
[x: symbol]: any;
|
|
44
|
-
}, {
|
|
45
|
-
[x: string]: any;
|
|
46
|
-
[x: number]: any;
|
|
47
|
-
[x: symbol]: any;
|
|
48
|
-
}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createTenantEntity = void 0;
|
|
7
|
-
var _utils = require("../../../../utils");
|
|
8
|
-
const createTenantEntity = table => {
|
|
9
|
-
return (0, _utils.createStandardEntity)(table, "TenancyTenant");
|
|
10
|
-
};
|
|
11
|
-
exports.createTenantEntity = createTenantEntity;
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=createTenantEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","createTenantEntity","table","createStandardEntity","exports"],"sources":["createTenantEntity.ts"],"sourcesContent":["import { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { createStandardEntity } from \"~/utils\";\n\nexport const createTenantEntity = (table: Table<string, string, string>) => {\n return createStandardEntity(table, \"TenancyTenant\");\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,kBAAkB,GAAIC,KAAoC,IAAK;EACxE,OAAO,IAAAC,2BAAoB,EAACD,KAAK,EAAE,eAAe,CAAC;AACvD,CAAC;AAACE,OAAA,CAAAH,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export interface Tenant {
|
|
2
|
-
data: {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface I18NLocale {
|
|
8
|
-
code: string;
|
|
9
|
-
}
|
|
10
|
-
export interface Identity {
|
|
11
|
-
id: string;
|
|
12
|
-
displayName: string | null;
|
|
13
|
-
type: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CmsEntryValues {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
export type CmsEntryStatus = "published" | "unpublished" | "draft";
|
|
19
|
-
export interface CmsEntry<T = CmsEntryValues> {
|
|
20
|
-
webinyVersion: string;
|
|
21
|
-
tenant: string;
|
|
22
|
-
entryId: string;
|
|
23
|
-
id: string;
|
|
24
|
-
createdBy: Identity;
|
|
25
|
-
ownedBy: Identity;
|
|
26
|
-
modifiedBy?: Identity | null;
|
|
27
|
-
createdOn: string;
|
|
28
|
-
savedOn: string;
|
|
29
|
-
modelId: string;
|
|
30
|
-
locale: string;
|
|
31
|
-
publishedOn?: string;
|
|
32
|
-
version: number;
|
|
33
|
-
locked: boolean;
|
|
34
|
-
status: CmsEntryStatus;
|
|
35
|
-
values: T;
|
|
36
|
-
meta?: {
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export interface PageSettings {
|
|
41
|
-
social?: {
|
|
42
|
-
title: string;
|
|
43
|
-
description: string;
|
|
44
|
-
image: File;
|
|
45
|
-
meta: Array<{
|
|
46
|
-
property: string;
|
|
47
|
-
content: string;
|
|
48
|
-
}>;
|
|
49
|
-
};
|
|
50
|
-
seo?: {
|
|
51
|
-
title: string;
|
|
52
|
-
description: string;
|
|
53
|
-
meta: Array<{
|
|
54
|
-
name: string;
|
|
55
|
-
content: string;
|
|
56
|
-
}>;
|
|
57
|
-
};
|
|
58
|
-
general?: {
|
|
59
|
-
tags?: string[];
|
|
60
|
-
snippet?: string;
|
|
61
|
-
layout?: string;
|
|
62
|
-
image?: File;
|
|
63
|
-
};
|
|
64
|
-
[key: string]: any;
|
|
65
|
-
}
|
|
66
|
-
export type PageStatus = "published" | "unpublished" | "draft";
|
|
67
|
-
export interface Page {
|
|
68
|
-
id: string;
|
|
69
|
-
pid: string;
|
|
70
|
-
locale: string;
|
|
71
|
-
tenant: string;
|
|
72
|
-
title: string;
|
|
73
|
-
editor: string;
|
|
74
|
-
createdFrom: string | null;
|
|
75
|
-
path: string;
|
|
76
|
-
category: string;
|
|
77
|
-
content: Record<string, any> | null;
|
|
78
|
-
publishedOn: string | null;
|
|
79
|
-
version: number;
|
|
80
|
-
settings: PageSettings;
|
|
81
|
-
locked: boolean;
|
|
82
|
-
status: string;
|
|
83
|
-
createdOn: string;
|
|
84
|
-
savedOn: string;
|
|
85
|
-
createdBy: Identity;
|
|
86
|
-
ownedBy: Identity;
|
|
87
|
-
webinyVersion: string;
|
|
88
|
-
}
|
|
89
|
-
export interface ListLocalesParams {
|
|
90
|
-
tenant: Tenant;
|
|
91
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface Tenant {\n data: {\n id: string;\n name: string;\n };\n}\n\nexport interface I18NLocale {\n code: string;\n}\n\nexport interface Identity {\n id: string;\n displayName: string | null;\n type: string;\n}\n\nexport interface CmsEntryValues {\n [key: string]: any;\n}\n\nexport type CmsEntryStatus = \"published\" | \"unpublished\" | \"draft\";\n\nexport interface CmsEntry<T = CmsEntryValues> {\n webinyVersion: string;\n tenant: string;\n entryId: string;\n id: string;\n createdBy: Identity;\n ownedBy: Identity;\n modifiedBy?: Identity | null;\n createdOn: string;\n savedOn: string;\n modelId: string;\n locale: string;\n publishedOn?: string;\n version: number;\n locked: boolean;\n status: CmsEntryStatus;\n values: T;\n meta?: {\n [key: string]: any;\n };\n}\n\nexport interface PageSettings {\n social?: {\n title: string;\n description: string;\n image: File;\n meta: Array<{ property: string; content: string }>;\n };\n seo?: {\n title: string;\n description: string;\n meta: Array<{ name: string; content: string }>;\n };\n general?: {\n tags?: string[];\n snippet?: string;\n layout?: string;\n image?: File;\n };\n [key: string]: any;\n}\n\nexport type PageStatus = \"published\" | \"unpublished\" | \"draft\";\n\nexport interface Page {\n id: string;\n pid: string;\n locale: string;\n tenant: string;\n title: string;\n editor: string;\n createdFrom: string | null;\n path: string;\n category: string;\n content: Record<string, any> | null;\n publishedOn: string | null;\n version: number;\n settings: PageSettings;\n locked: boolean;\n status: string;\n createdOn: string;\n savedOn: string;\n createdBy: Identity;\n ownedBy: Identity;\n webinyVersion: string;\n}\n\nexport interface ListLocalesParams {\n tenant: Tenant;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getCompressedData = void 0;
|
|
7
|
-
var _gzip = require("@webiny/utils/compression/gzip");
|
|
8
|
-
const GZIP = "gzip";
|
|
9
|
-
const TO_STORAGE_ENCODING = "base64";
|
|
10
|
-
const getCompressedData = async data => {
|
|
11
|
-
const value = await (0, _gzip.compress)(JSON.stringify(data));
|
|
12
|
-
return {
|
|
13
|
-
compression: GZIP,
|
|
14
|
-
value: value.toString(TO_STORAGE_ENCODING)
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
exports.getCompressedData = getCompressedData;
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=getCompressedData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_gzip","require","GZIP","TO_STORAGE_ENCODING","getCompressedData","data","value","gzip","JSON","stringify","compression","toString","exports"],"sources":["getCompressedData.ts"],"sourcesContent":["import { compress as gzip } from \"@webiny/utils/compression/gzip\";\n\nconst GZIP = \"gzip\";\nconst TO_STORAGE_ENCODING = \"base64\";\n\nexport const getCompressedData = async (data: any) => {\n const value = await gzip(JSON.stringify(data));\n\n return {\n compression: GZIP,\n value: value.toString(TO_STORAGE_ENCODING)\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,MAAMC,IAAI,GAAG,MAAM;AACnB,MAAMC,mBAAmB,GAAG,QAAQ;AAE7B,MAAMC,iBAAiB,GAAG,MAAOC,IAAS,IAAK;EAClD,MAAMC,KAAK,GAAG,MAAM,IAAAC,cAAI,EAACC,IAAI,CAACC,SAAS,CAACJ,IAAI,CAAC,CAAC;EAE9C,OAAO;IACHK,WAAW,EAAER,IAAI;IACjBI,KAAK,EAAEA,KAAK,CAACK,QAAQ,CAACR,mBAAmB;EAC7C,CAAC;AACL,CAAC;AAACS,OAAA,CAAAR,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getLexicalContentText: (value: string) => string;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getLexicalContentText = void 0;
|
|
7
|
-
const getLexicalContentText = value => {
|
|
8
|
-
try {
|
|
9
|
-
const content = JSON.parse(value);
|
|
10
|
-
return traverse(content, "text");
|
|
11
|
-
} catch {
|
|
12
|
-
return value;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
exports.getLexicalContentText = getLexicalContentText;
|
|
16
|
-
const traverse = (content, key) => {
|
|
17
|
-
if (content.hasOwnProperty(key)) {
|
|
18
|
-
return content[key];
|
|
19
|
-
}
|
|
20
|
-
if (Array.isArray(content)) {
|
|
21
|
-
return content.map(c => traverse(c, key)).join(" ");
|
|
22
|
-
}
|
|
23
|
-
for (const property in content) {
|
|
24
|
-
return traverse(content[property], key);
|
|
25
|
-
}
|
|
26
|
-
return "";
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=getLexicalContentText.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getLexicalContentText","value","content","JSON","parse","traverse","exports","key","hasOwnProperty","Array","isArray","map","c","join","property"],"sources":["getLexicalContentText.ts"],"sourcesContent":["export const getLexicalContentText = (value: string): string => {\n try {\n const content = JSON.parse(value);\n return traverse(content, \"text\");\n } catch {\n return value;\n }\n};\n\nconst traverse = (content: Record<string, any>, key: string): string => {\n if (content.hasOwnProperty(key)) {\n return content[key];\n }\n\n if (Array.isArray(content)) {\n return content.map(c => traverse(c, key)).join(\" \");\n }\n\n for (const property in content) {\n return traverse(content[property], key);\n }\n\n return \"\";\n};\n"],"mappings":";;;;;;AAAO,MAAMA,qBAAqB,GAAIC,KAAa,IAAa;EAC5D,IAAI;IACA,MAAMC,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAAC;IACjC,OAAOI,QAAQ,CAACH,OAAO,EAAE,MAAM,CAAC;EACpC,CAAC,CAAC,MAAM;IACJ,OAAOD,KAAK;EAChB;AACJ,CAAC;AAACK,OAAA,CAAAN,qBAAA,GAAAA,qBAAA;AAEF,MAAMK,QAAQ,GAAGA,CAACH,OAA4B,EAAEK,GAAW,KAAa;EACpE,IAAIL,OAAO,CAACM,cAAc,CAACD,GAAG,CAAC,EAAE;IAC7B,OAAOL,OAAO,CAACK,GAAG,CAAC;EACvB;EAEA,IAAIE,KAAK,CAACC,OAAO,CAACR,OAAO,CAAC,EAAE;IACxB,OAAOA,OAAO,CAACS,GAAG,CAACC,CAAC,IAAIP,QAAQ,CAACO,CAAC,EAAEL,GAAG,CAAC,CAAC,CAACM,IAAI,CAAC,GAAG,CAAC;EACvD;EAEA,KAAK,MAAMC,QAAQ,IAAIZ,OAAO,EAAE;IAC5B,OAAOG,QAAQ,CAACH,OAAO,CAACY,QAAQ,CAAC,EAAEP,GAAG,CAAC;EAC3C;EAEA,OAAO,EAAE;AACb,CAAC","ignoreList":[]}
|