import type { Square } from "square" import { defineSquareOperation } from "../lib" /** BulkRetrieveChannels. */ export const bulkRetrieveSquareChannels = defineSquareOperation< Square.BulkRetrieveChannelsRequest, Square.BulkRetrieveChannelsResponse >({ allowedKeys: ["channelIds"], description: "BulkRetrieveChannels.", execute: (api, input) => api.channels.bulkRetrieve(input), name: "Bulk Square Retrieve Channels", replaySafety: "safe", requiredKeys: ["channelIds"], scopes: ["CHANNELS_READ"], }) /** ListChannels. */ export const listSquareChannels = defineSquareOperation< Square.ListChannelsRequest, Square.ListChannelsResponse >({ allowedKeys: ["referenceType", "referenceId", "status", "cursor", "limit"], description: "ListChannels.", execute: (api, input) => api.channels.list(input), name: "List Square Channels", replaySafety: "safe", requiredKeys: [], scopes: ["CHANNELS_READ"], }) /** RetrieveChannel. */ export const retrieveSquareChannel = defineSquareOperation< Square.GetChannelsRequest, Square.RetrieveChannelResponse >({ allowedKeys: ["channelId"], description: "RetrieveChannel.", execute: (api, input) => api.channels.get(input), name: "Retrieve Square Channel", replaySafety: "safe", requiredKeys: ["channelId"], scopes: ["CHANNELS_READ"], })