Skip to content

Migrate client code calling IWF endpoints in plugin-hrm-form to call the versions in account-scoped lambda #3937

@stephenhand

Description

@stephenhand

Description

  • Create a feature flag to toggle whether to point to the legacy serverless endpoint or the new account-scoped lambda endpoint
  • Update the code to use this flag to change the URL used in the http call to the /reportToIWF and /selfReportToIWF endpoints
  • Migrate the clients from ServerlessService.ts to a new iwfService.ts file in the same directory

Additional context

The new endpoints are implemented in /lambda/account-scoped/integrations/iwf and routed to in /lambda/account-scoped/router.ts

Follow the same naming convention for the feature flags as other functionality being migrated to the account-scoped lambda, i.e. use_twilio_lambda_*

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions