@webiny/api-aco-ddb 6.6.0-alpha.1 → 6.6.0-alpha.10

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/AcoDdbFeature.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createFeature } from "@webiny/feature/api";
2
2
  import { DynamoDBClient } from "@webiny/db-dynamodb";
3
3
  import { FlpStorageOperations } from "@webiny/api-aco/features/folder/shared/abstractions.js";
4
+ import { TaskCatalogFlpFeature } from "@webiny/api-aco/flpTaskCatalog/index.js";
4
5
  import { FolderLevelPermissionsStorageOperations } from "./FolderLevelPermissionsStorageOperations.js";
5
6
  const AcoDdbFeature = createFeature({
6
7
  name: "AcoDdb",
@@ -11,6 +12,7 @@ const AcoDdbFeature = createFeature({
11
12
  documentClient: db.client
12
13
  });
13
14
  });
15
+ TaskCatalogFlpFeature.register(container);
14
16
  }
15
17
  });
16
18
  export { AcoDdbFeature };
@@ -1 +1 @@
1
- {"version":3,"file":"AcoDdbFeature.js","sources":["../src/AcoDdbFeature.ts"],"sourcesContent":["import { type Container, createFeature } from \"@webiny/feature/api\";\nimport { DynamoDBClient } from \"@webiny/db-dynamodb\";\nimport { FlpStorageOperations } from \"@webiny/api-aco/features/folder/shared/abstractions.js\";\nimport { FolderLevelPermissionsStorageOperations } from \"./FolderLevelPermissionsStorageOperations.js\";\n\nexport const AcoDdbFeature = createFeature({\n name: \"AcoDdb\",\n register(container: Container) {\n // Lazy factory: DynamoDBClient is resolved at first use\n container.registerFactory(FlpStorageOperations, () => {\n const db = container.resolve(DynamoDBClient);\n return new FolderLevelPermissionsStorageOperations({\n documentClient: db.client\n });\n });\n }\n});\n"],"names":["AcoDdbFeature","createFeature","container","FlpStorageOperations","db","DynamoDBClient","FolderLevelPermissionsStorageOperations"],"mappings":";;;;AAKO,MAAMA,gBAAgBC,cAAc;IACvC,MAAM;IACN,UAASC,SAAoB;QAEzBA,UAAU,eAAe,CAACC,sBAAsB;YAC5C,MAAMC,KAAKF,UAAU,OAAO,CAACG;YAC7B,OAAO,IAAIC,wCAAwC;gBAC/C,gBAAgBF,GAAG,MAAM;YAC7B;QACJ;IACJ;AACJ"}
1
+ {"version":3,"file":"AcoDdbFeature.js","sources":["../src/AcoDdbFeature.ts"],"sourcesContent":["import { type Container, createFeature } from \"@webiny/feature/api\";\nimport { DynamoDBClient } from \"@webiny/db-dynamodb\";\nimport { FlpStorageOperations } from \"@webiny/api-aco/features/folder/shared/abstractions.js\";\nimport { TaskCatalogFlpFeature } from \"@webiny/api-aco/flpTaskCatalog/index.js\";\nimport { FolderLevelPermissionsStorageOperations } from \"./FolderLevelPermissionsStorageOperations.js\";\n\nexport const AcoDdbFeature = createFeature({\n name: \"AcoDdb\",\n register(container: Container) {\n // Lazy factory: DynamoDBClient is resolved at first use\n container.registerFactory(FlpStorageOperations, () => {\n const db = container.resolve(DynamoDBClient);\n return new FolderLevelPermissionsStorageOperations({\n documentClient: db.client\n });\n });\n\n // Folder-level permissions on this storage use the task-maintained FLP catalog.\n TaskCatalogFlpFeature.register(container);\n }\n});\n"],"names":["AcoDdbFeature","createFeature","container","FlpStorageOperations","db","DynamoDBClient","FolderLevelPermissionsStorageOperations","TaskCatalogFlpFeature"],"mappings":";;;;;AAMO,MAAMA,gBAAgBC,cAAc;IACvC,MAAM;IACN,UAASC,SAAoB;QAEzBA,UAAU,eAAe,CAACC,sBAAsB;YAC5C,MAAMC,KAAKF,UAAU,OAAO,CAACG;YAC7B,OAAO,IAAIC,wCAAwC;gBAC/C,gBAAgBF,GAAG,MAAM;YAC7B;QACJ;QAGAG,sBAAsB,QAAQ,CAACL;IACnC;AACJ"}
package/index.js CHANGED
@@ -1,11 +1,13 @@
1
1
  import { createRegisterExtensionPlugin } from "@webiny/handler";
2
2
  import { FolderLevelPermissionsStorageOperations } from "./FolderLevelPermissionsStorageOperations.js";
3
3
  import { FlpStorageOperations } from "@webiny/api-aco/features/folder/shared/abstractions.js";
4
+ import { TaskCatalogFlpFeature } from "@webiny/api-aco/flpTaskCatalog/index.js";
4
5
  const registerAcoDdbStorageOperations = (params)=>createRegisterExtensionPlugin((context)=>{
5
6
  const flpStorageOperations = new FolderLevelPermissionsStorageOperations({
6
7
  documentClient: params.documentClient
7
8
  });
8
9
  context.container.registerInstance(FlpStorageOperations, flpStorageOperations);
10
+ TaskCatalogFlpFeature.register(context.container);
9
11
  });
10
12
  export { AcoDdbFeature } from "./AcoDdbFeature.js";
11
13
  export { registerAcoDdbStorageOperations };
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { DynamoDBDocument } from \"@webiny/aws-sdk/client-dynamodb/index.js\";\nimport { createRegisterExtensionPlugin } from \"@webiny/handler\";\nimport { FolderLevelPermissionsStorageOperations } from \"./FolderLevelPermissionsStorageOperations.js\";\nimport { FlpStorageOperations } from \"@webiny/api-aco/features/folder/shared/abstractions.js\";\n\ninterface RegisterAcoDdbStorageOperationsParams {\n documentClient: DynamoDBDocument;\n}\n\nexport const registerAcoDdbStorageOperations = (params: RegisterAcoDdbStorageOperationsParams) => {\n return createRegisterExtensionPlugin(context => {\n const flpStorageOperations = new FolderLevelPermissionsStorageOperations({\n documentClient: params.documentClient\n });\n\n context.container.registerInstance(FlpStorageOperations, flpStorageOperations);\n });\n};\nexport { AcoDdbFeature } from \"./AcoDdbFeature.js\";\n"],"names":["registerAcoDdbStorageOperations","params","createRegisterExtensionPlugin","context","flpStorageOperations","FolderLevelPermissionsStorageOperations","FlpStorageOperations"],"mappings":";;;AASO,MAAMA,kCAAkC,CAACC,SACrCC,8BAA8BC,CAAAA;QACjC,MAAMC,uBAAuB,IAAIC,wCAAwC;YACrE,gBAAgBJ,OAAO,cAAc;QACzC;QAEAE,QAAQ,SAAS,CAAC,gBAAgB,CAACG,sBAAsBF;IAC7D"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { DynamoDBDocument } from \"@webiny/aws-sdk/client-dynamodb/index.js\";\nimport { createRegisterExtensionPlugin } from \"@webiny/handler\";\nimport { FolderLevelPermissionsStorageOperations } from \"./FolderLevelPermissionsStorageOperations.js\";\nimport { FlpStorageOperations } from \"@webiny/api-aco/features/folder/shared/abstractions.js\";\nimport { TaskCatalogFlpFeature } from \"@webiny/api-aco/flpTaskCatalog/index.js\";\n\ninterface RegisterAcoDdbStorageOperationsParams {\n documentClient: DynamoDBDocument;\n}\n\nexport const registerAcoDdbStorageOperations = (params: RegisterAcoDdbStorageOperationsParams) => {\n return createRegisterExtensionPlugin(context => {\n const flpStorageOperations = new FolderLevelPermissionsStorageOperations({\n documentClient: params.documentClient\n });\n\n context.container.registerInstance(FlpStorageOperations, flpStorageOperations);\n // Folder-level permissions on this storage use the task-maintained FLP catalog.\n TaskCatalogFlpFeature.register(context.container);\n });\n};\nexport { AcoDdbFeature } from \"./AcoDdbFeature.js\";\n"],"names":["registerAcoDdbStorageOperations","params","createRegisterExtensionPlugin","context","flpStorageOperations","FolderLevelPermissionsStorageOperations","FlpStorageOperations","TaskCatalogFlpFeature"],"mappings":";;;;AAUO,MAAMA,kCAAkC,CAACC,SACrCC,8BAA8BC,CAAAA;QACjC,MAAMC,uBAAuB,IAAIC,wCAAwC;YACrE,gBAAgBJ,OAAO,cAAc;QACzC;QAEAE,QAAQ,SAAS,CAAC,gBAAgB,CAACG,sBAAsBF;QAEzDG,sBAAsB,QAAQ,CAACJ,QAAQ,SAAS;IACpD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-aco-ddb",
3
- "version": "6.6.0-alpha.1",
3
+ "version": "6.6.0-alpha.10",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "@webiny/api-aco",
@@ -21,17 +21,17 @@
21
21
  "./*": "./*"
22
22
  },
23
23
  "dependencies": {
24
- "@webiny/api-aco": "6.6.0-alpha.1",
25
- "@webiny/aws-sdk": "6.6.0-alpha.1",
26
- "@webiny/db-dynamodb": "6.6.0-alpha.1",
27
- "@webiny/error": "6.6.0-alpha.1",
28
- "@webiny/feature": "6.6.0-alpha.1",
29
- "@webiny/handler": "6.6.0-alpha.1",
30
- "@webiny/utils": "6.6.0-alpha.1"
24
+ "@webiny/api-aco": "6.6.0-alpha.10",
25
+ "@webiny/aws-sdk": "6.6.0-alpha.10",
26
+ "@webiny/db-dynamodb": "6.6.0-alpha.10",
27
+ "@webiny/error": "6.6.0-alpha.10",
28
+ "@webiny/feature": "6.6.0-alpha.10",
29
+ "@webiny/handler": "6.6.0-alpha.10",
30
+ "@webiny/utils": "6.6.0-alpha.10"
31
31
  },
32
32
  "devDependencies": {
33
- "@webiny/api-core": "6.6.0-alpha.1",
34
- "@webiny/build-tools": "6.6.0-alpha.1",
33
+ "@webiny/api-core": "6.6.0-alpha.10",
34
+ "@webiny/build-tools": "6.6.0-alpha.10",
35
35
  "rimraf": "6.1.3",
36
36
  "typescript": "7.0.2"
37
37
  },