@webiny/api-core-ddb 0.0.0-unstable.61c048f412 → 0.0.0-unstable.676006d08e
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/ApiCoreDdbFeature.d.ts +12 -0
- package/ApiCoreDdbFeature.js +23 -0
- package/ApiCoreDdbFeature.js.map +1 -0
- package/adminUsers/definitions/entities.js +5 -6
- package/adminUsers/definitions/entities.js.map +1 -1
- package/adminUsers/definitions/types.js +0 -3
- package/adminUsers/index.js +196 -156
- package/adminUsers/index.js.map +1 -1
- package/adminUsers/types.d.ts +3 -0
- package/adminUsers/types.js +5 -4
- package/adminUsers/types.js.map +1 -1
- package/createApiCoreDdb.d.ts +7 -1
- package/createApiCoreDdb.js +25 -21
- package/createApiCoreDdb.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +2 -2
- package/keyValueStore/KeyValueStoreDynamoTable.d.ts +24 -0
- package/keyValueStore/KeyValueStoreDynamoTable.js +39 -25
- package/keyValueStore/KeyValueStoreDynamoTable.js.map +1 -1
- package/keyValueStore/KeyValueStoreStorageOperations.d.ts +14 -2
- package/keyValueStore/KeyValueStoreStorageOperations.js +222 -71
- package/keyValueStore/KeyValueStoreStorageOperations.js.map +1 -1
- package/keyValueStore/index.js +2 -3
- package/keyValueStore/index.js.map +1 -1
- package/package.json +20 -15
- package/security/definitions/entities.js +19 -24
- package/security/definitions/entities.js.map +1 -1
- package/security/definitions/types.d.ts +3 -3
- package/security/definitions/types.js +0 -3
- package/security/index.js +415 -463
- package/security/index.js.map +1 -1
- package/security/types.d.ts +3 -0
- package/security/types.js +6 -5
- package/security/types.js.map +1 -1
- package/serviceDiscovery/DdbServiceManifestLoader.d.ts +7 -0
- package/serviceDiscovery/DdbServiceManifestLoader.js +27 -0
- package/serviceDiscovery/DdbServiceManifestLoader.js.map +1 -0
- package/serviceDiscovery/index.d.ts +1 -0
- package/serviceDiscovery/index.js +1 -0
- package/tenancy/definitions/tenantEntity.js +5 -9
- package/tenancy/definitions/tenantEntity.js.map +1 -1
- package/tenancy/definitions/types.js +0 -3
- package/tenancy/index.js +138 -127
- package/tenancy/index.js.map +1 -1
- package/tenancy/types.js +4 -3
- package/tenancy/types.js.map +1 -1
- package/adminUsers/definitions/types.js.map +0 -1
- package/index.js.map +0 -1
- package/security/definitions/types.js.map +0 -1
- package/tenancy/definitions/types.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"security/definitions/entities.js","sources":["../../../src/security/definitions/entities.ts"],"sourcesContent":["import { createStandardEntity, standardEntityAttributes } from \"@webiny/db-dynamodb\";\nimport type { StorageApiKey, StorageRole, StorageTeam } from \"@webiny/api-core/types/security.js\";\nimport type { Table } from \"@webiny/db-dynamodb/toolbox.js\";\nimport { ENTITIES } from \"../types.js\";\nimport type { IApiKeyEntity, IRoleEntity, ITeamEntity } from \"~/security/definitions/types.js\";\n\nexport const createRoleEntity = (table: Table<string, string, string>): IRoleEntity => {\n return createStandardEntity<StorageRole>({\n name: ENTITIES.ROLE,\n table\n });\n};\n\nexport const createTeamEntity = (table: Table<string, string, string>): ITeamEntity => {\n return createStandardEntity<StorageTeam>({\n name: ENTITIES.TEAM,\n table,\n attributes: {\n ...standardEntityAttributes\n }\n });\n};\n\nexport const createApiKeyEntity = (table: Table<string, string, string>): IApiKeyEntity => {\n return createStandardEntity<StorageApiKey>({\n name: ENTITIES.API_KEY,\n table,\n attributes: {\n ...standardEntityAttributes\n }\n });\n};\n"],"names":["createRoleEntity","table","createStandardEntity","ENTITIES","createTeamEntity","standardEntityAttributes","createApiKeyEntity"],"mappings":";;AAMO,MAAMA,mBAAmB,CAACC,QACtBC,qBAAkC;QACrC,MAAMC,SAAS,IAAI;QACnBF;IACJ;AAGG,MAAMG,mBAAmB,CAACH,QACtBC,qBAAkC;QACrC,MAAMC,SAAS,IAAI;QACnBF;QACA,YAAY;YACR,GAAGI,wBAAwB;QAC/B;IACJ;AAGG,MAAMC,qBAAqB,CAACL,QACxBC,qBAAoC;QACvC,MAAMC,SAAS,OAAO;QACtBF;QACA,YAAY;YACR,GAAGI,wBAAwB;QAC/B;IACJ"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { IEntity, IStandardEntityAttributes } from "@webiny/db-dynamodb";
|
|
2
|
-
import type {
|
|
3
|
-
export interface IRoleEntityAttributes extends IStandardEntityAttributes<
|
|
2
|
+
import type { StorageApiKey, StorageRole, StorageTeam } from "@webiny/api-core/types/security.js";
|
|
3
|
+
export interface IRoleEntityAttributes extends IStandardEntityAttributes<StorageRole> {
|
|
4
4
|
TYPE: string;
|
|
5
5
|
}
|
|
6
6
|
export type IRoleEntity = IEntity<IRoleEntityAttributes>;
|
|
7
|
-
export interface ITeamEntityAttributes extends IStandardEntityAttributes<
|
|
7
|
+
export interface ITeamEntityAttributes extends IStandardEntityAttributes<StorageTeam> {
|
|
8
8
|
TYPE: string;
|
|
9
9
|
}
|
|
10
10
|
export type ITeamEntity = IEntity<ITeamEntityAttributes>;
|