To use the Attachments API, install the @wix/crm package using npm or Yarn:
@wix/crm
npm install @wix/crm
or
yarn add @wix/crm
Then import { attachments } from @wix/crm:
{ attachments }
import { attachments } from "@wix/crm";