@webiny/api-scheduler 6.4.6-beta.0 → 6.4.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,8 @@ export declare class EventBridgeSchedulerService implements SchedulerService.Int
20
20
  update(params: SchedulerService.UpdateParams): Promise<void>;
21
21
  delete(params: SchedulerService.DeleteParams): Promise<void>;
22
22
  exists(params: SchedulerService.ExistsParams): Promise<boolean>;
23
+ private createInternal;
24
+ private updateInternal;
23
25
  private createScheduleExpression;
24
26
  private createScheduledActionEventInput;
25
27
  private createScheduledActionEventPayload;
@@ -1,5 +1,5 @@
1
1
  import { WebinyError } from "@webiny/error";
2
- import { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, UpdateScheduleCommand } from "@webiny/aws-sdk/client-scheduler/index.js";
2
+ import { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, ResourceNotFoundException, UpdateScheduleCommand } from "@webiny/aws-sdk/client-scheduler/index.js";
3
3
  import { SCHEDULED_ACTION_EVENT_IDENTIFIER } from "../../constants.js";
4
4
  class EventBridgeSchedulerService {
5
5
  constructor(getClient, config){
@@ -7,6 +7,45 @@ class EventBridgeSchedulerService {
7
7
  this.config = config;
8
8
  }
9
9
  async create(params) {
10
+ const exists = await this.exists(params);
11
+ if (exists) return this.updateInternal(params);
12
+ return await this.createInternal(params);
13
+ }
14
+ async update(params) {
15
+ const exists = await this.exists(params);
16
+ if (exists) return await this.updateInternal(params);
17
+ return await this.create(params);
18
+ }
19
+ async delete(params) {
20
+ const client = this.getClient();
21
+ const exists = await this.exists(params);
22
+ if (!exists) throw new WebinyError(`Cannot delete schedule "${params.id}", tenant "${params.tenant}", because it does not exist.`);
23
+ const name = this.createScheduleName(params);
24
+ try {
25
+ await client.send(new DeleteScheduleCommand({
26
+ Name: name
27
+ }));
28
+ } catch (ex) {
29
+ if (ex instanceof ResourceNotFoundException) return;
30
+ if ("ResourceNotFoundException" === ex.name) return;
31
+ throw WebinyError.from(ex);
32
+ }
33
+ }
34
+ async exists(params) {
35
+ const client = this.getClient();
36
+ const name = this.createScheduleName(params);
37
+ try {
38
+ await client.send(new GetScheduleCommand({
39
+ Name: name
40
+ }));
41
+ return true;
42
+ } catch (ex) {
43
+ if (ex instanceof ResourceNotFoundException) return false;
44
+ if ("ResourceNotFoundException" === ex.name) return false;
45
+ throw ex;
46
+ }
47
+ }
48
+ async createInternal(params) {
10
49
  const { id, scheduleFor, tenant } = params;
11
50
  if (scheduleFor <= new Date()) throw new WebinyError(`Cannot create a schedule for "${id}" with date in the past`, "INVALID_SCHEDULE_DATE", {
12
51
  scheduleFor,
@@ -14,8 +53,6 @@ class EventBridgeSchedulerService {
14
53
  id
15
54
  });
16
55
  const client = this.getClient();
17
- const exists = await this.exists(params);
18
- if (exists) return this.update(params);
19
56
  await client.send(new CreateScheduleCommand({
20
57
  Name: this.createScheduleName(params),
21
58
  ScheduleExpression: this.createScheduleExpression(scheduleFor),
@@ -30,7 +67,7 @@ class EventBridgeSchedulerService {
30
67
  ActionAfterCompletion: "DELETE"
31
68
  }));
32
69
  }
33
- async update(params) {
70
+ async updateInternal(params) {
34
71
  const { id, scheduleFor } = params;
35
72
  if (scheduleFor <= new Date()) throw new WebinyError(`Cannot update an existing schedule for "${id}" with date in the past`, "INVALID_SCHEDULE_DATE", {
36
73
  scheduleFor,
@@ -51,33 +88,6 @@ class EventBridgeSchedulerService {
51
88
  ActionAfterCompletion: "DELETE"
52
89
  }));
53
90
  }
54
- async delete(params) {
55
- const client = this.getClient();
56
- const exists = await this.exists(params);
57
- if (!exists) throw new WebinyError(`Cannot delete schedule "${params.id}", tenant "${params.tenant}", because it does not exist.`);
58
- const name = this.createScheduleName(params);
59
- try {
60
- await client.send(new DeleteScheduleCommand({
61
- Name: name
62
- }));
63
- } catch (ex) {
64
- if ("ResourceNotFoundException" === ex.name) return;
65
- throw WebinyError.from(ex);
66
- }
67
- }
68
- async exists(params) {
69
- const client = this.getClient();
70
- const name = this.createScheduleName(params);
71
- try {
72
- await client.send(new GetScheduleCommand({
73
- Name: name
74
- }));
75
- return true;
76
- } catch (ex) {
77
- if ("ResourceNotFoundException" === ex.name) return false;
78
- throw ex;
79
- }
80
- }
81
91
  createScheduleExpression(scheduleFor) {
82
92
  return `at(${scheduleFor.toISOString().replace(/\.\d{3}Z$/, "")})`;
83
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"features/SchedulerService/EventBridgeSchedulerService.js","sources":["../../../src/features/SchedulerService/EventBridgeSchedulerService.ts"],"sourcesContent":["import { WebinyError } from \"@webiny/error\";\nimport {\n type ISchedulerServiceCreateParams,\n type ISchedulerServiceUpdateParams,\n SchedulerService\n} from \"~/shared/abstractions.js\";\nimport {\n CreateScheduleCommand,\n DeleteScheduleCommand,\n GetScheduleCommand,\n type SchedulerClient,\n UpdateScheduleCommand\n} from \"@webiny/aws-sdk/client-scheduler/index.js\";\nimport { SCHEDULED_ACTION_EVENT_IDENTIFIER } from \"~/constants.js\";\nimport type { IScheduledActionEventPayload } from \"~/createEventHandler.js\";\n\nexport interface ISchedulerConfig {\n lambdaArn: string;\n roleArn: string;\n}\n\n/**\n * AWS EventBridge Scheduler implementation\n *\n * This is the AWS-specific implementation of the cloud-agnostic SchedulerService abstraction.\n *\n * Manages schedules in AWS EventBridge Scheduler for triggering Lambda functions\n * at specified future times.\n */\nexport class EventBridgeSchedulerService implements SchedulerService.Interface {\n public constructor(\n private getClient: (config?: any) => Pick<SchedulerClient, \"send\">,\n private config: ISchedulerConfig\n ) {}\n\n public async create(params: SchedulerService.CreateParams): Promise<void> {\n const { id, scheduleFor, tenant } = params;\n\n // Validate date is in future\n if (scheduleFor <= new Date()) {\n throw new WebinyError(\n `Cannot create a schedule for \"${id}\" with date in the past`,\n \"INVALID_SCHEDULE_DATE\",\n {\n scheduleFor,\n tenant,\n id\n }\n );\n }\n\n const client = this.getClient();\n\n // Check if schedule already exists (for auto-update logic)\n const exists = await this.exists(params);\n if (exists) {\n return this.update(params);\n }\n\n await client.send(\n new CreateScheduleCommand({\n Name: this.createScheduleName(params),\n ScheduleExpression: this.createScheduleExpression(scheduleFor),\n FlexibleTimeWindow: {\n Mode: \"OFF\"\n },\n Target: {\n Arn: this.config.lambdaArn,\n RoleArn: this.config.roleArn,\n Input: this.createScheduledActionEventInput(params)\n },\n ActionAfterCompletion: \"DELETE\" // Auto-cleanup after execution\n })\n );\n }\n\n public async update(params: SchedulerService.UpdateParams): Promise<void> {\n const { id, scheduleFor } = params;\n\n // Validate date is in future\n if (scheduleFor <= new Date()) {\n throw new WebinyError(\n `Cannot update an existing schedule for \"${id}\" with date in the past`,\n \"INVALID_SCHEDULE_DATE\",\n {\n scheduleFor,\n id\n }\n );\n }\n\n const client = this.getClient();\n\n await client.send(\n new UpdateScheduleCommand({\n Name: this.createScheduleName(params),\n ScheduleExpression: this.createScheduleExpression(scheduleFor),\n FlexibleTimeWindow: {\n Mode: \"OFF\"\n },\n Target: {\n Arn: this.config.lambdaArn,\n RoleArn: this.config.roleArn,\n Input: this.createScheduledActionEventInput(params)\n },\n ActionAfterCompletion: \"DELETE\"\n })\n );\n }\n\n public async delete(params: SchedulerService.DeleteParams): Promise<void> {\n const client = this.getClient();\n\n const exists = await this.exists(params);\n if (!exists) {\n throw new WebinyError(\n `Cannot delete schedule \"${params.id}\", tenant \"${params.tenant}\", because it does not exist.`\n );\n }\n\n const name = this.createScheduleName(params);\n\n try {\n await client.send(new DeleteScheduleCommand({ Name: name }));\n } catch (ex) {\n if (ex.name === \"ResourceNotFoundException\") {\n return;\n }\n throw WebinyError.from(ex);\n }\n }\n\n public async exists(params: SchedulerService.ExistsParams): Promise<boolean> {\n const client = this.getClient();\n\n const name = this.createScheduleName(params);\n\n try {\n await client.send(new GetScheduleCommand({ Name: name }));\n return true;\n } catch (ex) {\n if (ex.name === \"ResourceNotFoundException\") {\n return false;\n }\n throw ex;\n }\n }\n\n private createScheduleExpression(scheduleFor: Date): string {\n // Format: at(YYYY-MM-DDTHH:mm:ss) - EventBridge expects this format\n return `at(${scheduleFor.toISOString().replace(/\\.\\d{3}Z$/, \"\")})`;\n }\n\n private createScheduledActionEventInput(\n params: ISchedulerServiceCreateParams | ISchedulerServiceUpdateParams\n ): string {\n return JSON.stringify({\n [SCHEDULED_ACTION_EVENT_IDENTIFIER]: this.createScheduledActionEventPayload(params)\n });\n }\n\n private createScheduledActionEventPayload(\n params: SchedulerService.CreateParams | SchedulerService.UpdateParams\n ): IScheduledActionEventPayload {\n const { id, scheduleFor, tenant, namespace } = params;\n\n return {\n id,\n tenant,\n namespace,\n scheduleFor: scheduleFor.toISOString()\n };\n }\n\n private createScheduleName(params: SchedulerService.ExistsParams): string {\n // AWS EventBridge Scheduler names must match [0-9a-zA-Z-_.]+ and be <= 64 chars. `id`\n // (ScheduledActionId: \"wby-schedule-<hash>\") already satisfies both and is unique per\n // namespace + action type + target, so use it verbatim. Do NOT interpolate `namespace`\n // (contains \"/\", e.g. \"Cms/Entry/<modelId>\") or `tenant` — that produced names with illegal\n // characters that exceeded the length limit (ValidationException).\n return params.id;\n }\n}\n"],"names":["EventBridgeSchedulerService","getClient","config","params","id","scheduleFor","tenant","Date","WebinyError","client","exists","CreateScheduleCommand","UpdateScheduleCommand","name","DeleteScheduleCommand","ex","GetScheduleCommand","JSON","SCHEDULED_ACTION_EVENT_IDENTIFIER","namespace"],"mappings":";;;AA6BO,MAAMA;IACT,YACYC,SAA0D,EAC1DC,MAAwB,CAClC;aAFUD,SAAS,GAATA;aACAC,MAAM,GAANA;IACT;IAEH,MAAa,OAAOC,MAAqC,EAAiB;QACtE,MAAM,EAAEC,EAAE,EAAEC,WAAW,EAAEC,MAAM,EAAE,GAAGH;QAGpC,IAAIE,eAAe,IAAIE,QACnB,MAAM,IAAIC,YACN,CAAC,8BAA8B,EAAEJ,GAAG,uBAAuB,CAAC,EAC5D,yBACA;YACIC;YACAC;YACAF;QACJ;QAIR,MAAMK,SAAS,IAAI,CAAC,SAAS;QAG7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,CAAC,6BAA6B,CAAC;QAItG,MAAMU,OAAO,IAAI,CAAC,kBAAkB,CAACV;QAErC,IAAI;YACA,MAAMM,OAAO,IAAI,CAAC,IAAIK,sBAAsB;gBAAE,MAAMD;YAAK;QAC7D,EAAE,OAAOE,IAAI;YACT,IAAIA,AAAY,gCAAZA,GAAG,IAAI,EACP;YAEJ,MAAMP,YAAY,IAAI,CAACO;QAC3B;IACJ;IAEA,MAAa,OAAOZ,MAAqC,EAAoB;QACzE,MAAMM,SAAS,IAAI,CAAC,SAAS;QAE7B,MAAMI,OAAO,IAAI,CAAC,kBAAkB,CAACV;QAErC,IAAI;YACA,MAAMM,OAAO,IAAI,CAAC,IAAIO,mBAAmB;gBAAE,MAAMH;YAAK;YACtD,OAAO;QACX,EAAE,OAAOE,IAAI;YACT,IAAIA,AAAY,gCAAZA,GAAG,IAAI,EACP,OAAO;YAEX,MAAMA;QACV;IACJ;IAEQ,yBAAyBV,WAAiB,EAAU;QAExD,OAAO,CAAC,GAAG,EAAEA,YAAY,WAAW,GAAG,OAAO,CAAC,aAAa,IAAI,CAAC,CAAC;IACtE;IAEQ,gCACJF,MAAqE,EAC/D;QACN,OAAOc,KAAK,SAAS,CAAC;YAClB,CAACC,kCAAkC,EAAE,IAAI,CAAC,iCAAiC,CAACf;QAChF;IACJ;IAEQ,kCACJA,MAAqE,EACzC;QAC5B,MAAM,EAAEC,EAAE,EAAEC,WAAW,EAAEC,MAAM,EAAEa,SAAS,EAAE,GAAGhB;QAE/C,OAAO;YACHC;YACAE;YACAa;YACA,aAAad,YAAY,WAAW;QACxC;IACJ;IAEQ,mBAAmBF,MAAqC,EAAU;QAMtE,OAAOA,OAAO,EAAE;IACpB;AACJ"}
1
+ {"version":3,"file":"features/SchedulerService/EventBridgeSchedulerService.js","sources":["../../../src/features/SchedulerService/EventBridgeSchedulerService.ts"],"sourcesContent":["import { WebinyError } from \"@webiny/error\";\nimport {\n type ISchedulerServiceCreateParams,\n type ISchedulerServiceUpdateParams,\n SchedulerService\n} from \"~/shared/abstractions.js\";\nimport {\n CreateScheduleCommand,\n DeleteScheduleCommand,\n GetScheduleCommand,\n type SchedulerClient,\n UpdateScheduleCommand,\n ResourceNotFoundException\n} from \"@webiny/aws-sdk/client-scheduler/index.js\";\nimport { SCHEDULED_ACTION_EVENT_IDENTIFIER } from \"~/constants.js\";\nimport type { IScheduledActionEventPayload } from \"~/createEventHandler.js\";\n\nexport interface ISchedulerConfig {\n lambdaArn: string;\n roleArn: string;\n}\n\n/**\n * AWS EventBridge Scheduler implementation\n *\n * This is the AWS-specific implementation of the cloud-agnostic SchedulerService abstraction.\n *\n * Manages schedules in AWS EventBridge Scheduler for triggering Lambda functions\n * at specified future times.\n */\nexport class EventBridgeSchedulerService implements SchedulerService.Interface {\n public constructor(\n private getClient: (config?: any) => Pick<SchedulerClient, \"send\">,\n private config: ISchedulerConfig\n ) {}\n\n public async create(params: SchedulerService.CreateParams): Promise<void> {\n // Check if schedule already exists (for auto-update logic)\n const exists = await this.exists(params);\n if (exists) {\n return this.updateInternal(params);\n }\n\n return await this.createInternal(params);\n }\n\n public async update(params: SchedulerService.UpdateParams): Promise<void> {\n const exists = await this.exists(params);\n if (exists) {\n return await this.updateInternal(params);\n }\n return await this.create(params);\n }\n\n public async delete(params: SchedulerService.DeleteParams): Promise<void> {\n const client = this.getClient();\n\n const exists = await this.exists(params);\n if (!exists) {\n throw new WebinyError(\n `Cannot delete schedule \"${params.id}\", tenant \"${params.tenant}\", because it does not exist.`\n );\n }\n\n const name = this.createScheduleName(params);\n\n try {\n await client.send(new DeleteScheduleCommand({ Name: name }));\n } catch (ex) {\n if (ex instanceof ResourceNotFoundException) {\n return;\n } else if (ex.name === \"ResourceNotFoundException\") {\n return;\n }\n throw WebinyError.from(ex);\n }\n }\n\n public async exists(params: SchedulerService.ExistsParams): Promise<boolean> {\n const client = this.getClient();\n\n const name = this.createScheduleName(params);\n\n try {\n await client.send(new GetScheduleCommand({ Name: name }));\n return true;\n } catch (ex) {\n if (ex instanceof ResourceNotFoundException) {\n return false;\n } else if (ex.name === \"ResourceNotFoundException\") {\n return false;\n }\n throw ex;\n }\n }\n\n private async createInternal(params: SchedulerService.CreateParams): Promise<void> {\n const { id, scheduleFor, tenant } = params;\n\n // Validate date is in future\n if (scheduleFor <= new Date()) {\n throw new WebinyError(\n `Cannot create a schedule for \"${id}\" with date in the past`,\n \"INVALID_SCHEDULE_DATE\",\n {\n scheduleFor,\n tenant,\n id\n }\n );\n }\n\n const client = this.getClient();\n\n await client.send(\n new CreateScheduleCommand({\n Name: this.createScheduleName(params),\n ScheduleExpression: this.createScheduleExpression(scheduleFor),\n FlexibleTimeWindow: {\n Mode: \"OFF\"\n },\n Target: {\n Arn: this.config.lambdaArn,\n RoleArn: this.config.roleArn,\n Input: this.createScheduledActionEventInput(params)\n },\n ActionAfterCompletion: \"DELETE\" // Auto-cleanup after execution\n })\n );\n }\n\n private async updateInternal(params: SchedulerService.UpdateParams): Promise<void> {\n const { id, scheduleFor } = params;\n\n // Validate date is in future\n if (scheduleFor <= new Date()) {\n throw new WebinyError(\n `Cannot update an existing schedule for \"${id}\" with date in the past`,\n \"INVALID_SCHEDULE_DATE\",\n {\n scheduleFor,\n id\n }\n );\n }\n\n const client = this.getClient();\n\n await client.send(\n new UpdateScheduleCommand({\n Name: this.createScheduleName(params),\n ScheduleExpression: this.createScheduleExpression(scheduleFor),\n FlexibleTimeWindow: {\n Mode: \"OFF\"\n },\n Target: {\n Arn: this.config.lambdaArn,\n RoleArn: this.config.roleArn,\n Input: this.createScheduledActionEventInput(params)\n },\n ActionAfterCompletion: \"DELETE\"\n })\n );\n }\n\n private createScheduleExpression(scheduleFor: Date): string {\n // Format: at(YYYY-MM-DDTHH:mm:ss) - EventBridge expects this format\n return `at(${scheduleFor.toISOString().replace(/\\.\\d{3}Z$/, \"\")})`;\n }\n\n private createScheduledActionEventInput(\n params: ISchedulerServiceCreateParams | ISchedulerServiceUpdateParams\n ): string {\n return JSON.stringify({\n [SCHEDULED_ACTION_EVENT_IDENTIFIER]: this.createScheduledActionEventPayload(params)\n });\n }\n\n private createScheduledActionEventPayload(\n params: SchedulerService.CreateParams | SchedulerService.UpdateParams\n ): IScheduledActionEventPayload {\n const { id, scheduleFor, tenant, namespace } = params;\n\n return {\n id,\n tenant,\n namespace,\n scheduleFor: scheduleFor.toISOString()\n };\n }\n\n private createScheduleName(params: SchedulerService.ExistsParams): string {\n // AWS EventBridge Scheduler names must match [0-9a-zA-Z-_.]+ and be <= 64 chars. `id`\n // (ScheduledActionId: \"wby-schedule-<hash>\") already satisfies both and is unique per\n // namespace + action type + target, so use it verbatim. Do NOT interpolate `namespace`\n // (contains \"/\", e.g. \"Cms/Entry/<modelId>\") or `tenant` — that produced names with illegal\n // characters that exceeded the length limit (ValidationException).\n return params.id;\n }\n}\n"],"names":["EventBridgeSchedulerService","getClient","config","params","exists","client","WebinyError","name","DeleteScheduleCommand","ex","ResourceNotFoundException","GetScheduleCommand","id","scheduleFor","tenant","Date","CreateScheduleCommand","UpdateScheduleCommand","JSON","SCHEDULED_ACTION_EVENT_IDENTIFIER","namespace"],"mappings":";;;AA8BO,MAAMA;IACT,YACYC,SAA0D,EAC1DC,MAAwB,CAClC;aAFUD,SAAS,GAATA;aACAC,MAAM,GAANA;IACT;IAEH,MAAa,OAAOC,MAAqC,EAAiB;QAEtE,MAAMC,SAAS,MAAM,IAAI,CAAC,MAAM,CAACD;QACjC,IAAIC,QACA,OAAO,IAAI,CAAC,cAAc,CAACD;QAG/B,OAAO,MAAM,IAAI,CAAC,cAAc,CAACA;IACrC;IAEA,MAAa,OAAOA,MAAqC,EAAiB;QACtE,MAAMC,SAAS,MAAM,IAAI,CAAC,MAAM,CAACD;QACjC,IAAIC,QACA,OAAO,MAAM,IAAI,CAAC,cAAc,CAACD;QAErC,OAAO,MAAM,IAAI,CAAC,MAAM,CAACA;IAC7B;IAEA,MAAa,OAAOA,MAAqC,EAAiB;QACtE,MAAME,SAAS,IAAI,CAAC,SAAS;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,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-scheduler",
3
- "version": "6.4.6-beta.0",
3
+ "version": "6.4.7-beta.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -18,25 +18,25 @@
18
18
  "description": "A generic action scheduler.",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@webiny/api": "6.4.6-beta.0",
22
- "@webiny/api-core": "6.4.6-beta.0",
23
- "@webiny/api-headless-cms": "6.4.6-beta.0",
24
- "@webiny/aws-sdk": "6.4.6-beta.0",
25
- "@webiny/error": "6.4.6-beta.0",
26
- "@webiny/feature": "6.4.6-beta.0",
27
- "@webiny/handler-graphql": "6.4.6-beta.0",
28
- "@webiny/plugins": "6.4.6-beta.0",
29
- "@webiny/utils": "6.4.6-beta.0",
21
+ "@webiny/api": "6.4.7-beta.0",
22
+ "@webiny/api-core": "6.4.7-beta.0",
23
+ "@webiny/api-headless-cms": "6.4.7-beta.0",
24
+ "@webiny/aws-sdk": "6.4.7-beta.0",
25
+ "@webiny/error": "6.4.7-beta.0",
26
+ "@webiny/feature": "6.4.7-beta.0",
27
+ "@webiny/handler-graphql": "6.4.7-beta.0",
28
+ "@webiny/plugins": "6.4.7-beta.0",
29
+ "@webiny/utils": "6.4.7-beta.0",
30
30
  "zod": "4.4.3"
31
31
  },
32
32
  "devDependencies": {
33
- "@webiny/build-tools": "6.4.6-beta.0",
34
- "@webiny/db-dynamodb": "6.4.6-beta.0",
35
- "@webiny/handler": "6.4.6-beta.0",
36
- "@webiny/handler-aws": "6.4.6-beta.0",
37
- "@webiny/project-utils": "6.4.6-beta.0",
38
- "@webiny/testing": "6.4.6-beta.0",
39
- "@webiny/wcp": "6.4.6-beta.0",
33
+ "@webiny/build-tools": "6.4.7-beta.0",
34
+ "@webiny/db-dynamodb": "6.4.7-beta.0",
35
+ "@webiny/handler": "6.4.7-beta.0",
36
+ "@webiny/handler-aws": "6.4.7-beta.0",
37
+ "@webiny/project-utils": "6.4.7-beta.0",
38
+ "@webiny/testing": "6.4.7-beta.0",
39
+ "@webiny/wcp": "6.4.7-beta.0",
40
40
  "aws-sdk-client-mock": "4.1.0",
41
41
  "jest-dynalite": "3.6.1",
42
42
  "rimraf": "6.1.3",