@webiny/migrations 6.0.0-beta.0 → 6.0.0-rc.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/LICENSE +2 -7
- package/README.md +11 -1
- package/ddb-es.d.ts +1 -19
- package/ddb-es.js +5 -66
- package/ddb-es.js.map +1 -1
- package/ddb.d.ts +1 -19
- package/ddb.js +5 -50
- package/ddb.js.map +1 -1
- package/package.json +20 -32
- package/utils/createEntity.d.ts +3 -89
- package/utils/createEntity.js +3 -37
- package/utils/createEntity.js.map +1 -1
- package/utils/createTenantEntity.d.ts +2 -48
- package/utils/createTenantEntity.js +3 -10
- package/utils/createTenantEntity.js.map +1 -1
- package/utils/dynamoDb.d.ts +2 -1
- package/utils/dynamoDb.js +2 -60
- package/utils/dynamoDb.js.map +1 -1
- package/utils/elasticsearch/disableEsIndexing.d.ts +2 -2
- package/utils/elasticsearch/disableEsIndexing.js +3 -11
- package/utils/elasticsearch/disableEsIndexing.js.map +1 -1
- package/utils/elasticsearch/esCreateIndex.d.ts +1 -2
- package/utils/elasticsearch/esCreateIndex.js +8 -24
- package/utils/elasticsearch/esCreateIndex.js.map +1 -1
- package/utils/elasticsearch/esFindOne.d.ts +2 -2
- package/utils/elasticsearch/esFindOne.js +1 -8
- package/utils/elasticsearch/esFindOne.js.map +1 -1
- package/utils/elasticsearch/esGetIndexExist.d.ts +1 -2
- package/utils/elasticsearch/esGetIndexExist.js +4 -13
- package/utils/elasticsearch/esGetIndexExist.js.map +1 -1
- package/utils/elasticsearch/esGetIndexName.d.ts +0 -1
- package/utils/elasticsearch/esGetIndexName.js +8 -23
- package/utils/elasticsearch/esGetIndexName.js.map +1 -1
- package/utils/elasticsearch/esGetIndexSettings.d.ts +1 -1
- package/utils/elasticsearch/esGetIndexSettings.js +5 -13
- package/utils/elasticsearch/esGetIndexSettings.js.map +1 -1
- package/utils/elasticsearch/esListIndexes.d.ts +1 -1
- package/utils/elasticsearch/esListIndexes.js +1 -8
- package/utils/elasticsearch/esListIndexes.js.map +1 -1
- package/utils/elasticsearch/esPutIndexSettings.d.ts +1 -1
- package/utils/elasticsearch/esPutIndexSettings.js +3 -11
- package/utils/elasticsearch/esPutIndexSettings.js.map +1 -1
- package/utils/elasticsearch/esQueryAll.d.ts +2 -2
- package/utils/elasticsearch/esQueryAll.js +3 -10
- package/utils/elasticsearch/esQueryAll.js.map +1 -1
- package/utils/elasticsearch/esQueryAllWithCallback.d.ts +2 -2
- package/utils/elasticsearch/esQueryAllWithCallback.js +3 -10
- package/utils/elasticsearch/esQueryAllWithCallback.js.map +1 -1
- package/utils/elasticsearch/fetchOriginalEsSettings.d.ts +2 -3
- package/utils/elasticsearch/fetchOriginalEsSettings.js +4 -12
- package/utils/elasticsearch/fetchOriginalEsSettings.js.map +1 -1
- package/utils/elasticsearch/index.d.ts +12 -12
- package/utils/elasticsearch/index.js +12 -137
- package/utils/elasticsearch/index.js.map +1 -1
- package/utils/elasticsearch/plugins/base.js +3 -9
- package/utils/elasticsearch/plugins/base.js.map +1 -1
- package/utils/elasticsearch/plugins/index.d.ts +1 -1
- package/utils/elasticsearch/plugins/index.js +3 -11
- package/utils/elasticsearch/plugins/index.js.map +1 -1
- package/utils/elasticsearch/restoreOriginalEsSettings.d.ts +3 -4
- package/utils/elasticsearch/restoreOriginalEsSettings.js +13 -12
- package/utils/elasticsearch/restoreOriginalEsSettings.js.map +1 -1
- package/utils/getCompressedData.js +12 -0
- package/utils/getCompressedData.js.map +1 -0
- package/utils/index.d.ts +5 -6
- package/utils/index.js +5 -71
- package/utils/index.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 -172
- 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 -92
- 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 -144
- 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.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 -32
- 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 -30
- 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 -8
- package/migrations/5.39.0/001/utils/getFallbackIdentity.js +0 -44
- package/migrations/5.39.0/001/utils/getFallbackIdentity.js.map +0 -1
- package/migrations/5.39.0/001/utils/getFirstLastPublishedOn.d.ts +0 -11
- package/migrations/5.39.0/001/utils/getFirstLastPublishedOn.js +0 -40
- 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 -11
- package/migrations/5.39.0/001/utils/getOldestRevisionCreatedOn.js +0 -33
- 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 -30
- 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 -167
- 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 -30
- 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 -352
- 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 -155
- 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
- package/utils/createLocaleEntity.d.ts +0 -42
- package/utils/createLocaleEntity.js +0 -32
- package/utils/createLocaleEntity.js.map +0 -1
- package/utils/elasticsearch/plugins/japanese.d.ts +0 -4
- package/utils/elasticsearch/plugins/japanese.js +0 -13
- package/utils/elasticsearch/plugins/japanese.js.map +0 -1
- package/utils/forEachTenantLocale.d.ts +0 -13
- package/utils/forEachTenantLocale.js +0 -55
- package/utils/forEachTenantLocale.js.map +0 -1
- /package/{migrations/5.35.0/006/utils → utils}/getCompressedData.d.ts +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.legacyAttributes = exports.getFileData = exports.createLegacyFileEntity = exports.createFileEntity = void 0;
|
|
8
|
-
var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
9
|
-
var _utils = require("../../../../utils");
|
|
10
|
-
const legacyAttributes = exports.legacyAttributes = {
|
|
11
|
-
id: {
|
|
12
|
-
type: "string"
|
|
13
|
-
},
|
|
14
|
-
key: {
|
|
15
|
-
type: "string"
|
|
16
|
-
},
|
|
17
|
-
size: {
|
|
18
|
-
type: "number"
|
|
19
|
-
},
|
|
20
|
-
type: {
|
|
21
|
-
type: "string"
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: "string"
|
|
25
|
-
},
|
|
26
|
-
meta: {
|
|
27
|
-
type: "map"
|
|
28
|
-
},
|
|
29
|
-
tags: {
|
|
30
|
-
type: "list"
|
|
31
|
-
},
|
|
32
|
-
createdOn: {
|
|
33
|
-
type: "string"
|
|
34
|
-
},
|
|
35
|
-
createdBy: {
|
|
36
|
-
type: "map"
|
|
37
|
-
},
|
|
38
|
-
tenant: {
|
|
39
|
-
type: "string"
|
|
40
|
-
},
|
|
41
|
-
locale: {
|
|
42
|
-
type: "string"
|
|
43
|
-
},
|
|
44
|
-
webinyVersion: {
|
|
45
|
-
type: "string"
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
const getFileData = file => {
|
|
49
|
-
return (0, _pick.default)(file, Object.keys(legacyAttributes));
|
|
50
|
-
};
|
|
51
|
-
exports.getFileData = getFileData;
|
|
52
|
-
const createLegacyFileEntity = table => {
|
|
53
|
-
return (0, _utils.createLegacyEntity)(table, "Files", legacyAttributes);
|
|
54
|
-
};
|
|
55
|
-
exports.createLegacyFileEntity = createLegacyFileEntity;
|
|
56
|
-
const createFileEntity = table => {
|
|
57
|
-
return (0, _utils.createStandardEntity)(table, "FM.File");
|
|
58
|
-
};
|
|
59
|
-
exports.createFileEntity = createFileEntity;
|
|
60
|
-
|
|
61
|
-
//# sourceMappingURL=createFileEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_pick","_interopRequireDefault","require","_utils","legacyAttributes","exports","id","type","key","size","name","meta","tags","createdOn","createdBy","tenant","locale","webinyVersion","getFileData","file","pick","Object","keys","createLegacyFileEntity","table","createLegacyEntity","createFileEntity","createStandardEntity"],"sources":["createFileEntity.ts"],"sourcesContent":["import { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport pick from \"lodash/pick\";\nimport { createLegacyEntity, createStandardEntity } from \"~/utils\";\n\nexport const legacyAttributes: Parameters<typeof createLegacyEntity>[2] = {\n id: {\n type: \"string\"\n },\n key: {\n type: \"string\"\n },\n size: {\n type: \"number\"\n },\n type: {\n type: \"string\"\n },\n name: {\n type: \"string\"\n },\n meta: {\n type: \"map\"\n },\n tags: {\n type: \"list\"\n },\n createdOn: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n tenant: {\n type: \"string\"\n },\n locale: {\n type: \"string\"\n },\n webinyVersion: {\n type: \"string\"\n }\n};\n\nexport const getFileData = (file: any) => {\n return pick(file, Object.keys(legacyAttributes));\n};\n\nexport const createLegacyFileEntity = (table: Table<string, string, string>) => {\n return createLegacyEntity(table, \"Files\", legacyAttributes);\n};\n\nexport const createFileEntity = (table: Table<string, string, string>) => {\n return createStandardEntity(table, \"FM.File\");\n};\n"],"mappings":";;;;;;;AACA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,gBAA0D,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EACtEE,EAAE,EAAE;IACAC,IAAI,EAAE;EACV,CAAC;EACDC,GAAG,EAAE;IACDD,IAAI,EAAE;EACV,CAAC;EACDE,IAAI,EAAE;IACFF,IAAI,EAAE;EACV,CAAC;EACDA,IAAI,EAAE;IACFA,IAAI,EAAE;EACV,CAAC;EACDG,IAAI,EAAE;IACFH,IAAI,EAAE;EACV,CAAC;EACDI,IAAI,EAAE;IACFJ,IAAI,EAAE;EACV,CAAC;EACDK,IAAI,EAAE;IACFL,IAAI,EAAE;EACV,CAAC;EACDM,SAAS,EAAE;IACPN,IAAI,EAAE;EACV,CAAC;EACDO,SAAS,EAAE;IACPP,IAAI,EAAE;EACV,CAAC;EACDQ,MAAM,EAAE;IACJR,IAAI,EAAE;EACV,CAAC;EACDS,MAAM,EAAE;IACJT,IAAI,EAAE;EACV,CAAC;EACDU,aAAa,EAAE;IACXV,IAAI,EAAE;EACV;AACJ,CAAC;AAEM,MAAMW,WAAW,GAAIC,IAAS,IAAK;EACtC,OAAO,IAAAC,aAAI,EAACD,IAAI,EAAEE,MAAM,CAACC,IAAI,CAAClB,gBAAgB,CAAC,CAAC;AACpD,CAAC;AAACC,OAAA,CAAAa,WAAA,GAAAA,WAAA;AAEK,MAAMK,sBAAsB,GAAIC,KAAoC,IAAK;EAC5E,OAAO,IAAAC,yBAAkB,EAACD,KAAK,EAAE,OAAO,EAAEpB,gBAAgB,CAAC;AAC/D,CAAC;AAACC,OAAA,CAAAkB,sBAAA,GAAAA,sBAAA;AAEK,MAAMG,gBAAgB,GAAIF,KAAoC,IAAK;EACtE,OAAO,IAAAG,2BAAoB,EAACH,KAAK,EAAE,SAAS,CAAC;AACjD,CAAC;AAACnB,OAAA,CAAAqB,gBAAA,GAAAA,gBAAA","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,52 +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
|
-
|
|
31
|
-
// [
|
|
32
|
-
// {
|
|
33
|
-
// PK: "T#root#I18N#L",
|
|
34
|
-
// SK: "en-US",
|
|
35
|
-
// code: "en-US",
|
|
36
|
-
// createdBy: {
|
|
37
|
-
// displayName: "Pavel Denisjuk",
|
|
38
|
-
// id: "e6ea2871-ba36-4494-87ac-afb73d4e7eb2",
|
|
39
|
-
// type: "admin"
|
|
40
|
-
// },
|
|
41
|
-
// createdOn: "2023-01-25T09:38:22.029Z",
|
|
42
|
-
// default: true,
|
|
43
|
-
// tenant: "root",
|
|
44
|
-
// webinyVersion: "0.0.0",
|
|
45
|
-
// _ct: "2023-01-25T09:38:22.041Z",
|
|
46
|
-
// _et: "I18NLocale",
|
|
47
|
-
// _md: "2023-01-25T09:38:22.041Z"
|
|
48
|
-
// }
|
|
49
|
-
// ];
|
|
50
|
-
exports.createLocaleEntity = createLocaleEntity;
|
|
51
|
-
|
|
52
|
-
//# 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\n// [\n// {\n// PK: \"T#root#I18N#L\",\n// SK: \"en-US\",\n// code: \"en-US\",\n// createdBy: {\n// displayName: \"Pavel Denisjuk\",\n// id: \"e6ea2871-ba36-4494-87ac-afb73d4e7eb2\",\n// type: \"admin\"\n// },\n// createdOn: \"2023-01-25T09:38:22.029Z\",\n// default: true,\n// tenant: \"root\",\n// webinyVersion: \"0.0.0\",\n// _ct: \"2023-01-25T09:38:22.041Z\",\n// _et: \"I18NLocale\",\n// _md: \"2023-01-25T09:38:22.041Z\"\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;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAAM,OAAA,CAAAV,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
-
export declare const getSettingsData: (settings: any) => Pick<any, string>;
|
|
3
|
-
export declare const createLegacySettingsEntity: (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, {
|
|
4
|
-
PK: {
|
|
5
|
-
partitionKey: true;
|
|
6
|
-
};
|
|
7
|
-
SK: {
|
|
8
|
-
sortKey: true;
|
|
9
|
-
};
|
|
10
|
-
GSI1_PK: {
|
|
11
|
-
type: "string";
|
|
12
|
-
};
|
|
13
|
-
GSI1_SK: {
|
|
14
|
-
type: "string";
|
|
15
|
-
};
|
|
16
|
-
TYPE: {
|
|
17
|
-
type: "string";
|
|
18
|
-
};
|
|
19
|
-
}, {
|
|
20
|
-
PK: {
|
|
21
|
-
partitionKey: true;
|
|
22
|
-
};
|
|
23
|
-
SK: {
|
|
24
|
-
sortKey: true;
|
|
25
|
-
};
|
|
26
|
-
GSI1_PK: {
|
|
27
|
-
type: "string";
|
|
28
|
-
};
|
|
29
|
-
GSI1_SK: {
|
|
30
|
-
type: "string";
|
|
31
|
-
};
|
|
32
|
-
TYPE: {
|
|
33
|
-
type: "string";
|
|
34
|
-
};
|
|
35
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
36
|
-
[x: string]: any;
|
|
37
|
-
[x: number]: any;
|
|
38
|
-
[x: symbol]: any;
|
|
39
|
-
}, {
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
[x: number]: any;
|
|
42
|
-
[x: symbol]: any;
|
|
43
|
-
}>;
|
|
44
|
-
export declare const createSettingsEntity: (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, {
|
|
45
|
-
PK: {
|
|
46
|
-
partitionKey: true;
|
|
47
|
-
};
|
|
48
|
-
SK: {
|
|
49
|
-
sortKey: true;
|
|
50
|
-
};
|
|
51
|
-
GSI1_PK: {
|
|
52
|
-
type: "string";
|
|
53
|
-
};
|
|
54
|
-
GSI1_SK: {
|
|
55
|
-
type: "string";
|
|
56
|
-
};
|
|
57
|
-
TYPE: {
|
|
58
|
-
type: "string";
|
|
59
|
-
};
|
|
60
|
-
data: {
|
|
61
|
-
type: "map";
|
|
62
|
-
};
|
|
63
|
-
}, {
|
|
64
|
-
PK: {
|
|
65
|
-
partitionKey: true;
|
|
66
|
-
};
|
|
67
|
-
SK: {
|
|
68
|
-
sortKey: true;
|
|
69
|
-
};
|
|
70
|
-
GSI1_PK: {
|
|
71
|
-
type: "string";
|
|
72
|
-
};
|
|
73
|
-
GSI1_SK: {
|
|
74
|
-
type: "string";
|
|
75
|
-
};
|
|
76
|
-
TYPE: {
|
|
77
|
-
type: "string";
|
|
78
|
-
};
|
|
79
|
-
data: {
|
|
80
|
-
type: "map";
|
|
81
|
-
};
|
|
82
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
[x: number]: any;
|
|
85
|
-
[x: symbol]: any;
|
|
86
|
-
}, {
|
|
87
|
-
[x: string]: any;
|
|
88
|
-
[x: number]: any;
|
|
89
|
-
[x: symbol]: any;
|
|
90
|
-
}>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.getSettingsData = exports.createSettingsEntity = exports.createLegacySettingsEntity = void 0;
|
|
8
|
-
var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
9
|
-
var _utils = require("../../../../utils");
|
|
10
|
-
const attributes = {
|
|
11
|
-
tenant: {
|
|
12
|
-
type: "string"
|
|
13
|
-
},
|
|
14
|
-
srcPrefix: {
|
|
15
|
-
type: "string"
|
|
16
|
-
},
|
|
17
|
-
uploadMaxFileSize: {
|
|
18
|
-
type: "number"
|
|
19
|
-
},
|
|
20
|
-
uploadMinFileSize: {
|
|
21
|
-
type: "number"
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
const getSettingsData = settings => {
|
|
25
|
-
return (0, _pick.default)(settings, Object.keys(attributes));
|
|
26
|
-
};
|
|
27
|
-
exports.getSettingsData = getSettingsData;
|
|
28
|
-
const createLegacySettingsEntity = table => {
|
|
29
|
-
return (0, _utils.createLegacyEntity)(table, "Settings", attributes);
|
|
30
|
-
};
|
|
31
|
-
exports.createLegacySettingsEntity = createLegacySettingsEntity;
|
|
32
|
-
const createSettingsEntity = table => {
|
|
33
|
-
return (0, _utils.createStandardEntity)(table, "FM.Settings");
|
|
34
|
-
};
|
|
35
|
-
exports.createSettingsEntity = createSettingsEntity;
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=createSettingsEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_pick","_interopRequireDefault","require","_utils","attributes","tenant","type","srcPrefix","uploadMaxFileSize","uploadMinFileSize","getSettingsData","settings","pick","Object","keys","exports","createLegacySettingsEntity","table","createLegacyEntity","createSettingsEntity","createStandardEntity"],"sources":["createSettingsEntity.ts"],"sourcesContent":["import { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport pick from \"lodash/pick\";\nimport { createLegacyEntity, createStandardEntity } from \"~/utils\";\n\nconst attributes: Parameters<typeof createLegacyEntity>[2] = {\n tenant: {\n type: \"string\"\n },\n srcPrefix: {\n type: \"string\"\n },\n uploadMaxFileSize: {\n type: \"number\"\n },\n uploadMinFileSize: {\n type: \"number\"\n }\n};\n\nexport const getSettingsData = (settings: any) => {\n return pick(settings, Object.keys(attributes));\n};\n\nexport const createLegacySettingsEntity = (table: Table<string, string, string>) => {\n return createLegacyEntity(table, \"Settings\", attributes);\n};\n\nexport const createSettingsEntity = (table: Table<string, string, string>) => {\n return createStandardEntity(table, \"FM.Settings\");\n};\n"],"mappings":";;;;;;;AACA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,UAAoD,GAAG;EACzDC,MAAM,EAAE;IACJC,IAAI,EAAE;EACV,CAAC;EACDC,SAAS,EAAE;IACPD,IAAI,EAAE;EACV,CAAC;EACDE,iBAAiB,EAAE;IACfF,IAAI,EAAE;EACV,CAAC;EACDG,iBAAiB,EAAE;IACfH,IAAI,EAAE;EACV;AACJ,CAAC;AAEM,MAAMI,eAAe,GAAIC,QAAa,IAAK;EAC9C,OAAO,IAAAC,aAAI,EAACD,QAAQ,EAAEE,MAAM,CAACC,IAAI,CAACV,UAAU,CAAC,CAAC;AAClD,CAAC;AAACW,OAAA,CAAAL,eAAA,GAAAA,eAAA;AAEK,MAAMM,0BAA0B,GAAIC,KAAoC,IAAK;EAChF,OAAO,IAAAC,yBAAkB,EAACD,KAAK,EAAE,UAAU,EAAEb,UAAU,CAAC;AAC5D,CAAC;AAACW,OAAA,CAAAC,0BAAA,GAAAA,0BAAA;AAEK,MAAMG,oBAAoB,GAAIF,KAAoC,IAAK;EAC1E,OAAO,IAAAG,2BAAoB,EAACH,KAAK,EAAE,aAAa,CAAC;AACrD,CAAC;AAACF,OAAA,CAAAI,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1,42 +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
|
-
}, {
|
|
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,69 +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.createLegacyEntity)(table, "TenancyTenant", {
|
|
10
|
-
id: {
|
|
11
|
-
type: "string"
|
|
12
|
-
},
|
|
13
|
-
name: {
|
|
14
|
-
type: "string"
|
|
15
|
-
},
|
|
16
|
-
description: {
|
|
17
|
-
type: "string"
|
|
18
|
-
},
|
|
19
|
-
status: {
|
|
20
|
-
type: "string",
|
|
21
|
-
default: "active"
|
|
22
|
-
},
|
|
23
|
-
createdOn: {
|
|
24
|
-
type: "string"
|
|
25
|
-
},
|
|
26
|
-
savedOn: {
|
|
27
|
-
type: "string"
|
|
28
|
-
},
|
|
29
|
-
createdBy: {
|
|
30
|
-
type: "map"
|
|
31
|
-
},
|
|
32
|
-
parent: {
|
|
33
|
-
type: "string"
|
|
34
|
-
},
|
|
35
|
-
webinyVersion: {
|
|
36
|
-
type: "string"
|
|
37
|
-
},
|
|
38
|
-
settings: {
|
|
39
|
-
type: "map",
|
|
40
|
-
default: {}
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
// [
|
|
46
|
-
// {
|
|
47
|
-
// PK: "T#root",
|
|
48
|
-
// SK: "A",
|
|
49
|
-
// createdOn: "2023-01-25T09:37:58.183Z",
|
|
50
|
-
// description: "The top-level Webiny tenant.",
|
|
51
|
-
// GSI1_PK: "TENANTS",
|
|
52
|
-
// GSI1_SK: "T#null#2023-01-25T09:37:58.183Z",
|
|
53
|
-
// id: "root",
|
|
54
|
-
// name: "Root",
|
|
55
|
-
// savedOn: "2023-01-25T09:37:58.183Z",
|
|
56
|
-
// settings: {
|
|
57
|
-
// domains: []
|
|
58
|
-
// },
|
|
59
|
-
// status: "active",
|
|
60
|
-
// TYPE: "tenancy.tenant",
|
|
61
|
-
// webinyVersion: "0.0.0",
|
|
62
|
-
// _ct: "2023-01-25T09:37:58.220Z",
|
|
63
|
-
// _et: "TenancyTenant",
|
|
64
|
-
// _md: "2023-01-25T09:37:58.220Z"
|
|
65
|
-
// }
|
|
66
|
-
// ];
|
|
67
|
-
exports.createTenantEntity = createTenantEntity;
|
|
68
|
-
|
|
69
|
-
//# sourceMappingURL=createTenantEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","createTenantEntity","table","createLegacyEntity","id","type","name","description","status","default","createdOn","savedOn","createdBy","parent","webinyVersion","settings","exports"],"sources":["createTenantEntity.ts"],"sourcesContent":["import { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { createLegacyEntity } from \"~/utils\";\n\nexport const createTenantEntity = (table: Table<string, string, string>) => {\n return createLegacyEntity(table, \"TenancyTenant\", {\n id: {\n type: \"string\"\n },\n name: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n status: {\n type: \"string\",\n default: \"active\"\n },\n createdOn: {\n type: \"string\"\n },\n savedOn: {\n type: \"string\"\n },\n createdBy: {\n type: \"map\"\n },\n parent: {\n type: \"string\"\n },\n webinyVersion: {\n type: \"string\"\n },\n settings: {\n type: \"map\",\n default: {}\n }\n });\n};\n\n// [\n// {\n// PK: \"T#root\",\n// SK: \"A\",\n// createdOn: \"2023-01-25T09:37:58.183Z\",\n// description: \"The top-level Webiny tenant.\",\n// GSI1_PK: \"TENANTS\",\n// GSI1_SK: \"T#null#2023-01-25T09:37:58.183Z\",\n// id: \"root\",\n// name: \"Root\",\n// savedOn: \"2023-01-25T09:37:58.183Z\",\n// settings: {\n// domains: []\n// },\n// status: \"active\",\n// TYPE: \"tenancy.tenant\",\n// webinyVersion: \"0.0.0\",\n// _ct: \"2023-01-25T09:37:58.220Z\",\n// _et: \"TenancyTenant\",\n// _md: \"2023-01-25T09:37:58.220Z\"\n// }\n// ];\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,kBAAkB,GAAIC,KAAoC,IAAK;EACxE,OAAO,IAAAC,yBAAkB,EAACD,KAAK,EAAE,eAAe,EAAE;IAC9CE,EAAE,EAAE;MACAC,IAAI,EAAE;IACV,CAAC;IACDC,IAAI,EAAE;MACFD,IAAI,EAAE;IACV,CAAC;IACDE,WAAW,EAAE;MACTF,IAAI,EAAE;IACV,CAAC;IACDG,MAAM,EAAE;MACJH,IAAI,EAAE,QAAQ;MACdI,OAAO,EAAE;IACb,CAAC;IACDC,SAAS,EAAE;MACPL,IAAI,EAAE;IACV,CAAC;IACDM,OAAO,EAAE;MACLN,IAAI,EAAE;IACV,CAAC;IACDO,SAAS,EAAE;MACPP,IAAI,EAAE;IACV,CAAC;IACDQ,MAAM,EAAE;MACJR,IAAI,EAAE;IACV,CAAC;IACDS,aAAa,EAAE;MACXT,IAAI,EAAE;IACV,CAAC;IACDU,QAAQ,EAAE;MACNV,IAAI,EAAE,KAAK;MACXI,OAAO,EAAE,CAAC;IACd;EACJ,CAAC,CAAC;AACN,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAAO,OAAA,CAAAf,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface File {
|
|
2
|
-
id: string;
|
|
3
|
-
key: string;
|
|
4
|
-
size: number;
|
|
5
|
-
type: string;
|
|
6
|
-
name: string;
|
|
7
|
-
meta: Record<string, any>;
|
|
8
|
-
tags: string[];
|
|
9
|
-
createdOn: string;
|
|
10
|
-
createdBy: CreatedBy;
|
|
11
|
-
tenant: string;
|
|
12
|
-
locale: string;
|
|
13
|
-
webinyVersion: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CreatedBy {
|
|
16
|
-
id: string;
|
|
17
|
-
displayName: string | null;
|
|
18
|
-
type: string;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface File {\n id: string;\n key: string;\n size: number;\n type: string;\n name: string;\n meta: Record<string, any>;\n tags: string[];\n createdOn: string;\n createdBy: CreatedBy;\n tenant: string;\n locale: string;\n webinyVersion: string;\n}\n\nexport interface CreatedBy {\n id: string;\n displayName: string | null;\n type: string;\n}\n"],"mappings":"","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,90 +0,0 @@
|
|
|
1
|
-
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
-
export declare const getSettingsData: (settings: any) => Pick<any, string>;
|
|
3
|
-
export declare const createLegacySettingsEntity: (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, {
|
|
4
|
-
PK: {
|
|
5
|
-
partitionKey: true;
|
|
6
|
-
};
|
|
7
|
-
SK: {
|
|
8
|
-
sortKey: true;
|
|
9
|
-
};
|
|
10
|
-
GSI1_PK: {
|
|
11
|
-
type: "string";
|
|
12
|
-
};
|
|
13
|
-
GSI1_SK: {
|
|
14
|
-
type: "string";
|
|
15
|
-
};
|
|
16
|
-
TYPE: {
|
|
17
|
-
type: "string";
|
|
18
|
-
};
|
|
19
|
-
}, {
|
|
20
|
-
PK: {
|
|
21
|
-
partitionKey: true;
|
|
22
|
-
};
|
|
23
|
-
SK: {
|
|
24
|
-
sortKey: true;
|
|
25
|
-
};
|
|
26
|
-
GSI1_PK: {
|
|
27
|
-
type: "string";
|
|
28
|
-
};
|
|
29
|
-
GSI1_SK: {
|
|
30
|
-
type: "string";
|
|
31
|
-
};
|
|
32
|
-
TYPE: {
|
|
33
|
-
type: "string";
|
|
34
|
-
};
|
|
35
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
36
|
-
[x: string]: any;
|
|
37
|
-
[x: number]: any;
|
|
38
|
-
[x: symbol]: any;
|
|
39
|
-
}, {
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
[x: number]: any;
|
|
42
|
-
[x: symbol]: any;
|
|
43
|
-
}>;
|
|
44
|
-
export declare const createSettingsEntity: (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, {
|
|
45
|
-
PK: {
|
|
46
|
-
partitionKey: true;
|
|
47
|
-
};
|
|
48
|
-
SK: {
|
|
49
|
-
sortKey: true;
|
|
50
|
-
};
|
|
51
|
-
GSI1_PK: {
|
|
52
|
-
type: "string";
|
|
53
|
-
};
|
|
54
|
-
GSI1_SK: {
|
|
55
|
-
type: "string";
|
|
56
|
-
};
|
|
57
|
-
TYPE: {
|
|
58
|
-
type: "string";
|
|
59
|
-
};
|
|
60
|
-
data: {
|
|
61
|
-
type: "map";
|
|
62
|
-
};
|
|
63
|
-
}, {
|
|
64
|
-
PK: {
|
|
65
|
-
partitionKey: true;
|
|
66
|
-
};
|
|
67
|
-
SK: {
|
|
68
|
-
sortKey: true;
|
|
69
|
-
};
|
|
70
|
-
GSI1_PK: {
|
|
71
|
-
type: "string";
|
|
72
|
-
};
|
|
73
|
-
GSI1_SK: {
|
|
74
|
-
type: "string";
|
|
75
|
-
};
|
|
76
|
-
TYPE: {
|
|
77
|
-
type: "string";
|
|
78
|
-
};
|
|
79
|
-
data: {
|
|
80
|
-
type: "map";
|
|
81
|
-
};
|
|
82
|
-
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
[x: number]: any;
|
|
85
|
-
[x: symbol]: any;
|
|
86
|
-
}, {
|
|
87
|
-
[x: string]: any;
|
|
88
|
-
[x: number]: any;
|
|
89
|
-
[x: symbol]: any;
|
|
90
|
-
}>;
|