import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { DonationCampaign, CreateDonationCampaignApplicationErrors, CreateDonationCampaignValidationErrors, GetDonationCampaignApplicationErrors, UpdateDonationCampaign, UpdateDonationCampaignApplicationErrors, UpdateDonationCampaignValidationErrors, BulkCreateDonationCampaignsOptions, BulkCreateDonationCampaignsResponse, BulkCreateDonationCampaignsApplicationErrors, BulkCreateDonationCampaignsValidationErrors, MaskedDonationCampaign, BulkUpdateDonationCampaignsOptions, BulkUpdateDonationCampaignsResponse, BulkUpdateDonationCampaignsApplicationErrors, BulkUpdateDonationCampaignsValidationErrors, GetDonationCampaignMetricsResponse, GetDonationCampaignMetricsApplicationErrors, BulkUpdateDonationCampaignTagsOptions, BulkUpdateDonationCampaignTagsResponse, BulkUpdateDonationCampaignTagsApplicationErrors, BulkUpdateDonationCampaignTagsByFilterOptions, BulkUpdateDonationCampaignTagsByFilterResponse, BulkUpdateDonationCampaignTagsByFilterApplicationErrors, DonationCampaignCreatedEnvelope, DonationCampaignDeletedEnvelope, DonationCampaignStatusChangedEnvelope, DonationCampaignTagsModifiedEnvelope, DonationCampaignUpdatedEnvelope, DonationCampaignsQueryBuilder, DonationCampaignQuery, typedQueryDonationCampaigns } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateDonationCampaignsRequest, BulkDonationCampaignResult, BulkUpdateDonationCampaignTagsByFilterRequest, BulkUpdateDonationCampaignTagsRequest, BulkUpdateDonationCampaignTagsResult, BulkUpdateDonationCampaignsRequest, BulkUpdateDonationCampaignsResponseBulkDonationCampaignResult, CampaignGoal, CommonQueryWithEntityContext, CreateDonationCampaignRequest, CreateDonationCampaignResponse, CurrencyMetrics, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomAmountOptions, DomainEvent, DomainEventBodyOneOf, DonationCampaignQuerySpec, DonationCampaignsQueryResult, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, FocalPoint, Frequency, FrequencyWithLiterals, GetDonationCampaignMetricsRequest, GetDonationCampaignRequest, GetDonationCampaignResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, MultiCurrencyPrice, PredefinedAmount, QueryDonationCampaignsApplicationErrors, QueryDonationCampaignsRequest, QueryDonationCampaignsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusChanged, StatusWithLiterals, TagList, Tags, TagsModified, UpdateDonationCampaignRequest, UpdateDonationCampaignResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createDonationCampaign$1(httpClient: HttpClient): CreateDonationCampaignSignature; interface CreateDonationCampaignSignature { /** * Creates a new donation campaign. * * The campaign is created in an active state and can immediately accept donations. * * > **Note:** Other than the fields marked as required, **one or both** of the following fields must be passed on create: * > + `customAmountEnabled` * > + `predefinedDonationAmounts` * * To create multiple donation campaigns in a single call, use [Bulk Create Donation Campaigns](https://dev.wix.com/docs/api-reference/business-solutions/donations/donation-campaigns/bulk-create-donation-campaigns). * @param - Donation campaign to create. * @returns Created donation campaign. */ (donationCampaign: NonNullablePaths): Promise & { __applicationErrorsType?: CreateDonationCampaignApplicationErrors; __validationErrorsType?: CreateDonationCampaignValidationErrors; }>; } declare function getDonationCampaign$1(httpClient: HttpClient): GetDonationCampaignSignature; interface GetDonationCampaignSignature { /** * Retrieves a donation campaign by ID. * @param - ID of the donation campaign to retrieve. * @returns Retrieved donation campaign. */ (donationCampaignId: string): Promise & { __applicationErrorsType?: GetDonationCampaignApplicationErrors; }>; } declare function updateDonationCampaign$1(httpClient: HttpClient): UpdateDonationCampaignSignature; interface UpdateDonationCampaignSignature { /** * Updates a donation campaign. Supports partial updates. * * Each update increments the campaign's `revision` by 1. To prevent conflicts, you must provide the current `revision` in the request. * * You can update campaign settings like payment options, goals, and frequencies while maintaining the existing donation history. * * To update multiple donation campaigns in a single call, use [Bulk Update Donation Campaigns](https://dev.wix.com/docs/rest/business-solutions/donations/donation-campaigns/bulk-update-donation-campaigns). * @param - Donation campaign ID. * @returns Updated donation campaign. */ (_id: string, donationCampaign: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateDonationCampaignApplicationErrors; __validationErrorsType?: UpdateDonationCampaignValidationErrors; }>; } declare function bulkCreateDonationCampaigns$1(httpClient: HttpClient): BulkCreateDonationCampaignsSignature; interface BulkCreateDonationCampaignsSignature { /** * Creates multiple donation campaigns in a single request. * * The campaigns are created in an active state and can immediately accept donations. * * > **Note:** Other than the fields marked as required, **one or both** of the following fields must be passed on create: * > + `customAmountEnabled` * > + `predefinedDonationAmounts` * * To create a single donation campaign, use [Create Donation Campaign](https://dev.wix.com/docs/rest/business-solutions/donations/donation-campaigns/create-donation-campaign). * @param - Donation campaigns to create. */ (donationCampaigns: NonNullablePaths[], options?: BulkCreateDonationCampaignsOptions): Promise & { __applicationErrorsType?: BulkCreateDonationCampaignsApplicationErrors; __validationErrorsType?: BulkCreateDonationCampaignsValidationErrors; }>; } declare function bulkUpdateDonationCampaigns$1(httpClient: HttpClient): BulkUpdateDonationCampaignsSignature; interface BulkUpdateDonationCampaignsSignature { /** * Updates multiple donation campaigns in a single request. * * Each update increments the campaign's `revision` by 1. To prevent conflicts, you must provide the current `revision` for each campaign in the request. * * You can update campaign settings like payment options, goals, and frequencies while maintaining existing donation history. * * To update a single donation campaign, use [Update Donation Campaign](https://dev.wix.com/docs/rest/business-solutions/donations/donation-campaigns/update-donation-campaign). * @param - Donation campaigns to update. */ (donationCampaigns: NonNullablePaths[], options?: BulkUpdateDonationCampaignsOptions): Promise & { __applicationErrorsType?: BulkUpdateDonationCampaignsApplicationErrors; __validationErrorsType?: BulkUpdateDonationCampaignsValidationErrors; }>; } declare function getDonationCampaignMetrics$1(httpClient: HttpClient): GetDonationCampaignMetricsSignature; interface GetDonationCampaignMetricsSignature { /** * Retrieves metrics for a donation campaign. * * Returns the total number of successful donations and amount collected for the campaign. * The `campaignGoal` must be configured before using this method. * * Currently supports metrics in the site's default currency only. * * > **Note:** This method provides aggregated metrics only. To retrieve individual donation details, use [Search Orders](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/orders/search-orders) and filter by `lineItems.catalogReference.catalogItemId` equal to the donation campaign ID. * @param - ID of the donation campaign to retrieve metrics for. */ (donationCampaignId: string): Promise & { __applicationErrorsType?: GetDonationCampaignMetricsApplicationErrors; }>; } declare function bulkUpdateDonationCampaignTags$1(httpClient: HttpClient): BulkUpdateDonationCampaignTagsSignature; interface BulkUpdateDonationCampaignTagsSignature { /** * Updates tags on multiple donation campaigns by ID. * * Use this method to assign or remove tags from specific campaigns. * A tag that appears in both assign and unassign lists will be assigned. * @param - Donation campaign IDs. */ (ids: string[], options?: BulkUpdateDonationCampaignTagsOptions): Promise & { __applicationErrorsType?: BulkUpdateDonationCampaignTagsApplicationErrors; }>; } declare function bulkUpdateDonationCampaignTagsByFilter$1(httpClient: HttpClient): BulkUpdateDonationCampaignTagsByFilterSignature; interface BulkUpdateDonationCampaignTagsByFilterSignature { /** * Updates tags on multiple donation campaigns using filter criteria. * * An empty filter updates all campaigns. The operation is asynchronous and returns a job ID for monitoring progress. * * Learn more about working with [async jobs](https://dev.wix.com/docs/rest/business-management/async-job/introduction). * @param - Filter object. An empty filter updates all campaigns. * * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). */ (filter: Record, options?: BulkUpdateDonationCampaignTagsByFilterOptions): Promise & { __applicationErrorsType?: BulkUpdateDonationCampaignTagsByFilterApplicationErrors; }>; } declare const onDonationCampaignCreated$1: EventDefinition; declare const onDonationCampaignDeleted$1: EventDefinition; declare const onDonationCampaignStatusChanged$1: EventDefinition; declare const onDonationCampaignTagsModified$1: EventDefinition; declare const onDonationCampaignUpdated$1: EventDefinition; declare function customQueryDonationCampaigns(httpClient: HttpClient): { (): DonationCampaignsQueryBuilder; (query: DonationCampaignQuery): ReturnType; }; declare const createDonationCampaign: MaybeContext & typeof createDonationCampaign$1>; declare const getDonationCampaign: MaybeContext & typeof getDonationCampaign$1>; declare const updateDonationCampaign: MaybeContext & typeof updateDonationCampaign$1>; declare const bulkCreateDonationCampaigns: MaybeContext & typeof bulkCreateDonationCampaigns$1>; declare const bulkUpdateDonationCampaigns: MaybeContext & typeof bulkUpdateDonationCampaigns$1>; declare const getDonationCampaignMetrics: MaybeContext & typeof getDonationCampaignMetrics$1>; declare const bulkUpdateDonationCampaignTags: MaybeContext & typeof bulkUpdateDonationCampaignTags$1>; declare const bulkUpdateDonationCampaignTagsByFilter: MaybeContext & typeof bulkUpdateDonationCampaignTagsByFilter$1>; declare const queryDonationCampaigns: MaybeContext & typeof customQueryDonationCampaigns>; /** * Triggered when a donation campaign is created. */ declare const onDonationCampaignCreated: BuildEventDefinition & typeof onDonationCampaignCreated$1; /** * Triggered when a donation campaign is deleted. */ declare const onDonationCampaignDeleted: BuildEventDefinition & typeof onDonationCampaignDeleted$1; /** * Triggered when a donation campaign's status changes. */ declare const onDonationCampaignStatusChanged: BuildEventDefinition & typeof onDonationCampaignStatusChanged$1; /** * Triggered when donation campaign tags are modified. */ declare const onDonationCampaignTagsModified: BuildEventDefinition & typeof onDonationCampaignTagsModified$1; /** * Triggered when a donation campaign is updated. */ declare const onDonationCampaignUpdated: BuildEventDefinition & typeof onDonationCampaignUpdated$1; export { BulkCreateDonationCampaignsApplicationErrors, BulkCreateDonationCampaignsOptions, BulkCreateDonationCampaignsResponse, BulkCreateDonationCampaignsValidationErrors, BulkUpdateDonationCampaignTagsApplicationErrors, BulkUpdateDonationCampaignTagsByFilterApplicationErrors, BulkUpdateDonationCampaignTagsByFilterOptions, BulkUpdateDonationCampaignTagsByFilterResponse, BulkUpdateDonationCampaignTagsOptions, BulkUpdateDonationCampaignTagsResponse, BulkUpdateDonationCampaignsApplicationErrors, BulkUpdateDonationCampaignsOptions, BulkUpdateDonationCampaignsResponse, BulkUpdateDonationCampaignsValidationErrors, CreateDonationCampaignApplicationErrors, CreateDonationCampaignValidationErrors, DonationCampaign, DonationCampaignCreatedEnvelope, DonationCampaignDeletedEnvelope, DonationCampaignQuery, DonationCampaignStatusChangedEnvelope, DonationCampaignTagsModifiedEnvelope, DonationCampaignUpdatedEnvelope, DonationCampaignsQueryBuilder, GetDonationCampaignApplicationErrors, GetDonationCampaignMetricsApplicationErrors, GetDonationCampaignMetricsResponse, MaskedDonationCampaign, UpdateDonationCampaign, UpdateDonationCampaignApplicationErrors, UpdateDonationCampaignValidationErrors, bulkCreateDonationCampaigns, bulkUpdateDonationCampaignTags, bulkUpdateDonationCampaignTagsByFilter, bulkUpdateDonationCampaigns, createDonationCampaign, getDonationCampaign, getDonationCampaignMetrics, onDonationCampaignCreated, onDonationCampaignDeleted, onDonationCampaignStatusChanged, onDonationCampaignTagsModified, onDonationCampaignUpdated, queryDonationCampaigns, updateDonationCampaign };