{"version":3,"file":"deployment.js","names":[],"sources":["../../../../src/rest/commands/delete/deployment.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\nimport { throwIfEmpty } from '../../utils/index.js';\n\n/**\n * Delete a deployment provider.\n *\n * @param provider The provider type (e.g. 'vercel')\n *\n * @returns Nothing\n * @throws Will throw if provider is empty\n */\nexport const deleteDeployment =\n\t(provider: string): RestCommand =>\n\t() => {\n\t\tthrowIfEmpty(provider, 'Provider cannot be empty');\n\n\t\treturn {\n\t\t\tpath: `/deployments/${provider}`,\n\t\t\tmethod: 'DELETE',\n\t\t};\n\t};\n"],"mappings":"6DAWA,MAAa,EACH,QAER,EAAa,EAAU,2BAA2B,CAE3C,CACN,KAAM,gBAAgB,IACtB,OAAQ,SACR"}