@wix/auto_sdk_suppliers-hub_suppliers 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.public.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.http.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.context.ts"],"sourcesContent":["export * from './src/suppliershub-marketplace-supplier-v1-supplier-suppliers.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkCreateSuppliersOptions,\n BulkCreateSuppliersResponse,\n BulkDeleteSuppliersResponse,\n BulkUpdateSupplierTagsApplicationErrors,\n BulkUpdateSupplierTagsByFilterApplicationErrors,\n BulkUpdateSupplierTagsByFilterOptions,\n BulkUpdateSupplierTagsByFilterResponse,\n BulkUpdateSupplierTagsOptions,\n BulkUpdateSupplierTagsResponse,\n BulkUpdateSuppliersOptions,\n BulkUpdateSuppliersResponse,\n MaskedSupplier,\n QuerySuppliersResponse,\n Supplier,\n SupplierCreatedEnvelope,\n SupplierDeletedEnvelope,\n SupplierQuery,\n SupplierTagsModifiedEnvelope,\n SupplierUpdatedEnvelope,\n SuppliersQueryBuilder,\n UpdateSupplier,\n bulkCreateSuppliers as universalBulkCreateSuppliers,\n bulkDeleteSuppliers as universalBulkDeleteSuppliers,\n bulkUpdateSupplierTags as universalBulkUpdateSupplierTags,\n bulkUpdateSupplierTagsByFilter as universalBulkUpdateSupplierTagsByFilter,\n bulkUpdateSuppliers as universalBulkUpdateSuppliers,\n createSupplier as universalCreateSupplier,\n deleteSupplier as universalDeleteSupplier,\n getSupplier as universalGetSupplier,\n querySuppliers as universalQuerySuppliers,\n typedQuerySuppliers as universalTypedQuerySuppliers,\n updateSupplier as universalUpdateSupplier,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/suppliers-hub' };\n\nexport function createSupplier(\n httpClient: HttpClient\n): CreateSupplierSignature {\n return (\n supplier: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>\n ) =>\n universalCreateSupplier(\n supplier,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSupplierSignature {\n /**\n * Creates a supplier profile.\n *\n * The supplier's `appId` is automatically set to the ID of the calling application. Use this endpoint when onboarding new suppliers to your marketplace provider's network.\n * @param - Supplier to be created.\n * @returns The created Supplier.\n */\n (\n supplier: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>\n ): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function getSupplier(httpClient: HttpClient): GetSupplierSignature {\n return (supplierId: string) =>\n universalGetSupplier(\n supplierId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSupplierSignature {\n /**\n * Retrieves a supplier by ID, returning complete supplier information including current revision number for update operations.\n * @param - ID of the Supplier to retrieve.\n * @returns The requested Supplier.\n */\n (supplierId: string): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function updateSupplier(\n httpClient: HttpClient\n): UpdateSupplierSignature {\n return (\n _id: string,\n supplier: NonNullablePaths<UpdateSupplier, `revision`, 2>\n ) =>\n universalUpdateSupplier(\n _id,\n supplier,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateSupplierSignature {\n /**\n * Updates a supplier.\n *\n * Each time the supplier is updated, `revision` increments by 1. The current `revision` must be passed when updating the supplier. This ensures you're working with the latest supplier information and prevents conflicting changes. If the revision is outdated, the request fails and you must fetch the current supplier state before retrying.\n *\n * When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param - Supplier ID.\n * @returns Updated supplier with incremented revision number.\n */\n (\n _id: string,\n supplier: NonNullablePaths<UpdateSupplier, `revision`, 2>\n ): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function deleteSupplier(\n httpClient: HttpClient\n): DeleteSupplierSignature {\n return (supplierId: string) =>\n universalDeleteSupplier(\n supplierId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteSupplierSignature {\n /**\n * Permanently deletes a supplier from the marketplace. This action cannot be undone. Use this endpoint when removing suppliers that are no longer active in your network.\n * @param - Id of the Supplier to delete.\n */\n (supplierId: string): Promise<void>;\n}\n\nexport function querySuppliers(\n httpClient: HttpClient\n): QuerySuppliersSignature {\n return () =>\n universalQuerySuppliers(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySuppliersSignature {\n /**\n * Retrieves a list of suppliers with filtering, sorting, and cursor-based pagination.\n *\n * Up to 100 suppliers can be returned per request. For larger datasets, use cursor paging to iterate through results by following the `next` cursor in `pagingMetadata` until all suppliers are retrieved.\n *\n * To learn how to query suppliers, see [API Query Language][https://dev.wix.com/docs/rest/articles/getting-started/api-query-language].\n */\n (): SuppliersQueryBuilder;\n}\n\nexport function typedQuerySuppliers(\n httpClient: HttpClient\n): TypedQuerySuppliersSignature {\n return (query: SupplierQuery) =>\n universalTypedQuerySuppliers(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQuerySuppliersSignature {\n /** */\n (query: SupplierQuery): Promise<\n NonNullablePaths<\n QuerySuppliersResponse,\n `suppliers` | `suppliers.${number}.verified`,\n 4\n >\n >;\n}\n\nexport function bulkCreateSuppliers(\n httpClient: HttpClient\n): BulkCreateSuppliersSignature {\n return (\n suppliers: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>[],\n options?: BulkCreateSuppliersOptions\n ) =>\n universalBulkCreateSuppliers(\n suppliers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateSuppliersSignature {\n /**\n * Creates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Set `returnEntity` to `true` to receive the created suppliers with their assigned IDs and revision numbers. Use this endpoint when importing suppliers from external sources or onboarding multiple suppliers simultaneously.\n *\n * Each supplier in the request is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param - List of suppliers to create.\n */\n (\n suppliers: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>[],\n options?: BulkCreateSuppliersOptions\n ): Promise<\n NonNullablePaths<\n BulkCreateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkUpdateSuppliers(\n httpClient: HttpClient\n): BulkUpdateSuppliersSignature {\n return (\n suppliers: NonNullablePaths<\n MaskedSupplier,\n `supplier._id` | `supplier.revision`,\n 3\n >[],\n options?: BulkUpdateSuppliersOptions\n ) =>\n universalBulkUpdateSuppliers(\n suppliers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSuppliersSignature {\n /**\n * Updates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Each supplier must include its current revision number to prevent conflicting changes. Set `returnEntity` to `true` to receive the updated suppliers in the response.\n *\n * To update more than 100 suppliers, split them into multiple batches and make separate requests. When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param - List of suppliers to update. Each must include current revision number.\n */\n (\n suppliers: NonNullablePaths<\n MaskedSupplier,\n `supplier._id` | `supplier.revision`,\n 3\n >[],\n options?: BulkUpdateSuppliersOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkDeleteSuppliers(\n httpClient: HttpClient\n): BulkDeleteSuppliersSignature {\n return (supplierIds: string[]) =>\n universalBulkDeleteSuppliers(\n supplierIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteSuppliersSignature {\n /**\n * Permanently deletes multiple suppliers in a single synchronous request. This action cannot be undone.\n *\n * Supports up to 100 suppliers per request. To delete more than 100 suppliers, split the supplier IDs into multiple batches and make separate requests.\n *\n * Each supplier deletion is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param - Supplier ids to be deleted\n */\n (supplierIds: string[]): Promise<\n NonNullablePaths<\n BulkDeleteSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkUpdateSupplierTags(\n httpClient: HttpClient\n): BulkUpdateSupplierTagsSignature {\n return (supplierIds: string[], options?: BulkUpdateSupplierTagsOptions) =>\n universalBulkUpdateSupplierTags(\n supplierIds,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSupplierTagsSignature {\n /**\n * Updates tags on multiple suppliers specified by supplier IDs in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. You can assign new tags, unassign existing tags, or both in a single operation. If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence.\n *\n * Use this endpoint to organize suppliers with public tags for categorization visible to site members, or private tags for internal management requiring additional permissions.\n * @param - List of supplier IDs to update tags for.\n */\n (supplierIds: string[], options?: BulkUpdateSupplierTagsOptions): Promise<\n NonNullablePaths<\n BulkUpdateSupplierTagsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n > & {\n __applicationErrorsType?: BulkUpdateSupplierTagsApplicationErrors;\n }\n >;\n}\n\nexport function bulkUpdateSupplierTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateSupplierTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateSupplierTagsByFilterOptions\n ) =>\n universalBulkUpdateSupplierTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSupplierTagsByFilterSignature {\n /**\n * Updates tags on multiple suppliers matching filter criteria in a single asynchronous request.\n *\n * Use this endpoint for large-scale tag operations across many suppliers based on conditions such as location, verification status, or rating. An empty filter updates all suppliers. The operation returns a job ID for tracking completion status.\n *\n * If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence. This endpoint has no supplier limit, unlike the synchronous tag update endpoint which is limited to 100 suppliers.\n * @param - Filter criteria to select which suppliers to update. An empty filter matches all suppliers. See supported filters in the API documentation.\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateSupplierTagsByFilterOptions\n ): Promise<\n NonNullablePaths<BulkUpdateSupplierTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateSupplierTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport const onSupplierCreated = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_created',\n true,\n (event: SupplierCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<SupplierCreatedEnvelope>();\nexport const onSupplierDeleted = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_deleted',\n true,\n (event: SupplierDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<SupplierDeletedEnvelope>();\nexport const onSupplierTagsModified = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_tags_modified',\n true,\n (event: SupplierTagsModifiedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.supplier.createdDate' },\n { path: 'data.supplier.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<SupplierTagsModifiedEnvelope>();\nexport const onSupplierUpdated = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_updated',\n true,\n (event: SupplierUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.createdDate' },\n { path: 'modifiedFields.updatedDate' },\n ],\n },\n ])\n )\n)<SupplierUpdatedEnvelope>();\n\nexport {\n AccountInfo,\n AccountInfoMetadata,\n ActionEvent,\n ApplicationError,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkCreateSuppliersOptions,\n BulkCreateSuppliersRequest,\n BulkCreateSuppliersResponse,\n BulkDeleteSuppliersRequest,\n BulkDeleteSuppliersResponse,\n BulkDeleteSuppliersResponseBulkSupplierResult,\n BulkSupplierResult,\n BulkUpdateSupplierTagsByFilterOptions,\n BulkUpdateSupplierTagsByFilterRequest,\n BulkUpdateSupplierTagsByFilterResponse,\n BulkUpdateSupplierTagsOptions,\n BulkUpdateSupplierTagsRequest,\n BulkUpdateSupplierTagsResponse,\n BulkUpdateSupplierTagsResult,\n BulkUpdateSuppliersOptions,\n BulkUpdateSuppliersRequest,\n BulkUpdateSuppliersResponse,\n BulkUpdateSuppliersResponseBulkSupplierResult,\n CreateSupplierRequest,\n CreateSupplierResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteSupplierRequest,\n DeleteSupplierResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n GetSupplierRequest,\n GetSupplierResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n Location,\n MaskedSupplier,\n MessageEnvelope,\n QuerySuppliersRequest,\n QuerySuppliersResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n Supplier,\n SupplierCreatedEnvelope,\n SupplierDeletedEnvelope,\n SupplierQuerySpec,\n SupplierTagsModifiedEnvelope,\n SupplierType,\n SupplierUpdatedEnvelope,\n SuppliersQueryBuilder,\n SuppliersQueryResult,\n TagList,\n Tags,\n TagsModified,\n UpdateSupplier,\n UpdateSupplierRequest,\n UpdateSupplierResponse,\n WebhookIdentityType,\n utils,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixSuppliershubMarketplaceSupplierV1Supplier from './suppliershub-marketplace-supplier-v1-supplier-suppliers.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * A supplier is an individual or company that provides products to marketplace providers, enabling them to sell those products to end users. Suppliers represent the source layer in the marketplace ecosystem, where providers purchase inventory for their catalogs.\n *\n * Suppliers can operate through different business models, either dropshipping or wholesale, maintain ratings and review counts, and be tagged for organization. Each supplier is managed by a specific provider application, tracked via the app ID.\n */\nexport interface Supplier {\n /**\n * Supplier ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Supplier is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Supplier.\n *\n * Ignored when creating a Supplier.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Supplier was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Supplier was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Supplier name. Displayed to providers when browsing and selecting suppliers for their product catalogs.\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * App ID of the provider application responsible for managing the supplier and its products. Automatically set to the ID of the application making the create request.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /** Supplier location. */\n location?: Location;\n /**\n * Supplier rating from 1.00 to 5.00. For example, `4.25`. Provider applications manage ratings and should update both `rating` and `reviewCount` together to maintain consistency.\n * @decimalValue options { gte:1, lte:5, maxScale:2 }\n */\n rating?: string | null;\n /**\n * Whether the supplier has passed verification processes.\n *\n * Default: `false`\n */\n verified?: boolean;\n /**\n * Supplier business model types. `DROPSHIPPING` suppliers ship directly to end customers, while `WHOLESALE` suppliers ship in bulk to the provider who fulfills orders. A supplier can support multiple fulfillment models.\n * @minSize 1\n * @maxSize 2\n */\n types?: SupplierTypeWithLiterals[];\n /**\n * Number of reviews for the supplier. Provider applications should update both `rating` and `reviewCount` together to maintain consistency.\n * @min 1\n */\n reviewCount?: number | null;\n /** Supplier tags for organization and categorization. */\n tags?: Tags;\n}\n\nexport interface Location {\n /**\n * 2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1) format. For example, `US` for United States or `GB` for United Kingdom.\n * @format COUNTRY\n */\n country?: string | null;\n}\n\n/** Supplier business model type. */\nexport enum SupplierType {\n /** Supplier ships products directly to end customers. The provider does not handle physical inventory or fulfillment. */\n DROPSHIPPING = 'DROPSHIPPING',\n /** Supplier ships products in bulk to the provider, who then fulfills orders to end customers. */\n WHOLESALE = 'WHOLESALE',\n}\n\n/** @enumType */\nexport type SupplierTypeWithLiterals =\n | SupplierType\n | 'DROPSHIPPING'\n | 'WHOLESALE';\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface TagsModified {\n /** Supplier with updated tags. */\n supplier?: Supplier;\n /** Tags that were assigned to the supplier in this operation. */\n assignedTags?: Tags;\n /** Tags that were removed from the supplier in this operation. */\n unassignedTags?: Tags;\n}\n\nexport interface CreateSupplierRequest {\n /** Supplier to be created. */\n supplier: Supplier;\n}\n\nexport interface CreateSupplierResponse {\n /** The created Supplier. */\n supplier?: Supplier;\n}\n\nexport interface GetSupplierRequest {\n /**\n * ID of the Supplier to retrieve.\n * @format GUID\n */\n supplierId: string;\n}\n\nexport interface GetSupplierResponse {\n /** The requested Supplier. */\n supplier?: Supplier;\n}\n\nexport interface UpdateSupplierRequest {\n /** Supplier to update. */\n supplier: Supplier;\n}\n\nexport interface UpdateSupplierResponse {\n /** Updated supplier with incremented revision number. */\n supplier?: Supplier;\n}\n\nexport interface DeleteSupplierRequest {\n /**\n * Id of the Supplier to delete.\n * @format GUID\n */\n supplierId: string;\n}\n\nexport interface DeleteSupplierResponse {}\n\nexport interface QuerySuppliersRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QuerySuppliersResponse {\n /** List of Suppliers. */\n suppliers?: Supplier[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface BulkCreateSuppliersRequest {\n /**\n * List of suppliers to create.\n * @minSize 1\n * @maxSize 100\n */\n suppliers: Supplier[];\n /** Whether to return created supplier entities in the response. Set to `true` to receive the created suppliers with their assigned IDs and revision numbers. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateSuppliersResponse {\n /**\n * List of the bulk create operation results including the Suppliers and metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkSupplierResult[];\n /** Metadata regarding the bulk create operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkSupplierResult {\n /** Metadata regarding the specific single create operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Supplier;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateSuppliersRequest {\n /**\n * List of suppliers to update. Each must include current revision number.\n * @minSize 1\n * @maxSize 100\n */\n suppliers: MaskedSupplier[];\n /**\n * Whether to return updated supplier entities in the response. Set to `true` to receive the updated suppliers with their new revision numbers.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface MaskedSupplier {\n /** Supplier to update. */\n supplier?: Supplier;\n}\n\nexport interface BulkUpdateSuppliersResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateSuppliersResponseBulkSupplierResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateSuppliersResponseBulkSupplierResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Supplier;\n}\n\nexport interface BulkDeleteSuppliersRequest {\n /**\n * Supplier ids to be deleted\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n supplierIds: string[];\n}\n\nexport interface BulkDeleteSuppliersResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteSuppliersResponseBulkSupplierResult[];\n /** Metadata regarding the bulk delete operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteSuppliersResponseBulkSupplierResult {\n /** Metadata regarding the specific single delete operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateSupplierTagsRequest {\n /**\n * List of supplier IDs to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n supplierIds: string[];\n /** Tags to assign to the specified suppliers. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from the specified suppliers. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateSupplierTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateSupplierTagsResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateSupplierTagsResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateSupplierTagsByFilterRequest {\n /** Filter criteria to select which suppliers to update. An empty filter matches all suppliers. See supported filters in the API documentation. */\n filter: Record<string, any> | null;\n /** Tags to assign to suppliers matching the filter. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from suppliers matching the filter. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateSupplierTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous operation status.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type BulkUpdateSupplierTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateSupplierTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface SupplierCreatedEnvelope {\n entity: Supplier;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a supplier is created.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onSupplierCreated(\n handler: (event: SupplierCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SupplierDeletedEnvelope {\n entity: Supplier;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a supplier is deleted.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onSupplierDeleted(\n handler: (event: SupplierDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SupplierTagsModifiedEnvelope {\n data: TagsModified;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when tags are modified for a supplier.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_tags_modified\n * @slug tags_modified\n * @documentationMaturity preview\n */\nexport declare function onSupplierTagsModified(\n handler: (event: SupplierTagsModifiedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SupplierUpdatedEnvelope {\n entity: Supplier;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a supplier is updated.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onSupplierUpdated(\n handler: (event: SupplierUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a supplier profile.\n *\n * The supplier's `appId` is automatically set to the ID of the calling application. Use this endpoint when onboarding new suppliers to your marketplace provider's network.\n * @param supplier - Supplier to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField supplier\n * @requiredField supplier.location\n * @requiredField supplier.name\n * @requiredField supplier.types\n * @permissionId SUPPLIERS_HUB.SUPPLIER_CREATE\n * @applicableIdentity APP\n * @returns The created Supplier.\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.CreateSupplier\n */\nexport async function createSupplier(\n supplier: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>\n): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ supplier: supplier });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.createSupplier(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.supplier!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplier: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplier']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a supplier by ID, returning complete supplier information including current revision number for update operations.\n * @param supplierId - ID of the Supplier to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField supplierId\n * @permissionId SUPPLIERS_HUB.SUPPLIER_READ\n * @applicableIdentity APP\n * @returns The requested Supplier.\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.GetSupplier\n */\nexport async function getSupplier(\n supplierId: string\n): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierId: supplierId,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.getSupplier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.supplier!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplierId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplierId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a supplier.\n *\n * Each time the supplier is updated, `revision` increments by 1. The current `revision` must be passed when updating the supplier. This ensures you're working with the latest supplier information and prevents conflicting changes. If the revision is outdated, the request fails and you must fetch the current supplier state before retrying.\n *\n * When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param _id - Supplier ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField supplier\n * @requiredField supplier.revision\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE\n * @applicableIdentity APP\n * @returns Updated supplier with incremented revision number.\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.UpdateSupplier\n */\nexport async function updateSupplier(\n _id: string,\n supplier: NonNullablePaths<UpdateSupplier, `revision`, 2>\n): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplier: { ...supplier, id: _id },\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.updateSupplier(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.supplier!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { supplier: '$[1]' },\n explicitPathsToArguments: { 'supplier.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'supplier']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSupplier {\n /**\n * Supplier ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Supplier is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Supplier.\n *\n * Ignored when creating a Supplier.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Supplier was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Supplier was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Supplier name. Displayed to providers when browsing and selecting suppliers for their product catalogs.\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * App ID of the provider application responsible for managing the supplier and its products. Automatically set to the ID of the application making the create request.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /** Supplier location. */\n location?: Location;\n /**\n * Supplier rating from 1.00 to 5.00. For example, `4.25`. Provider applications manage ratings and should update both `rating` and `reviewCount` together to maintain consistency.\n * @decimalValue options { gte:1, lte:5, maxScale:2 }\n */\n rating?: string | null;\n /**\n * Whether the supplier has passed verification processes.\n *\n * Default: `false`\n */\n verified?: boolean;\n /**\n * Supplier business model types. `DROPSHIPPING` suppliers ship directly to end customers, while `WHOLESALE` suppliers ship in bulk to the provider who fulfills orders. A supplier can support multiple fulfillment models.\n * @minSize 1\n * @maxSize 2\n */\n types?: SupplierTypeWithLiterals[];\n /**\n * Number of reviews for the supplier. Provider applications should update both `rating` and `reviewCount` together to maintain consistency.\n * @min 1\n */\n reviewCount?: number | null;\n /** Supplier tags for organization and categorization. */\n tags?: Tags;\n}\n\n/**\n * Permanently deletes a supplier from the marketplace. This action cannot be undone. Use this endpoint when removing suppliers that are no longer active in your network.\n * @param supplierId - Id of the Supplier to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField supplierId\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DELETE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.DeleteSupplier\n */\nexport async function deleteSupplier(supplierId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierId: supplierId,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.deleteSupplier(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplierId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplierId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of suppliers with filtering, sorting, and cursor-based pagination.\n *\n * Up to 100 suppliers can be returned per request. For larger datasets, use cursor paging to iterate through results by following the `next` cursor in `pagingMetadata` until all suppliers are retrieved.\n *\n * To learn how to query suppliers, see [API Query Language][https://dev.wix.com/docs/rest/articles/getting-started/api-query-language].\n * @public\n * @documentationMaturity preview\n * @permissionId SUPPLIERS_HUB.SUPPLIER_READ\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.QuerySuppliers\n */\nexport function querySuppliers(): SuppliersQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Supplier,\n 'CURSOR',\n QuerySuppliersRequest,\n QuerySuppliersResponse\n >({\n func: async (payload: QuerySuppliersRequest) => {\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.querySuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySuppliersRequest['query']) => {\n const args = [query, {}] as [QuerySuppliersRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QuerySuppliersResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.suppliers,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SuppliersQueryResult extends QueryCursorResult {\n items: Supplier[];\n query: SuppliersQueryBuilder;\n next: () => Promise<SuppliersQueryResult>;\n prev: () => Promise<SuppliersQueryResult>;\n}\n\nexport interface SuppliersQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: string\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any[]\n ) => SuppliersQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any\n ) => SuppliersQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: boolean\n ) => SuppliersQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<'_id' | 'name' | 'rating' | 'tags'>\n ) => SuppliersQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<'_id' | 'name' | 'rating' | 'tags'>\n ) => SuppliersQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => SuppliersQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => SuppliersQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<SuppliersQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.QuerySuppliers\n * @requiredField query\n */\nexport async function typedQuerySuppliers(\n query: SupplierQuery\n): Promise<\n NonNullablePaths<\n QuerySuppliersResponse,\n `suppliers` | `suppliers.${number}.verified`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.querySuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SupplierQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['types'];\n operators: ['$hasAll', '$hasSome'];\n sort: 'NONE';\n },\n {\n fields: ['location.country', 'verified'];\n operators: '*';\n sort: 'NONE';\n },\n {\n fields: ['_id', 'name', 'rating', 'tags'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Supplier,\n SupplierQuerySpec\n>;\nexport type SupplierQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<Supplier, SupplierQuerySpec, SupplierQuery>(),\n },\n};\n\n/**\n * Creates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Set `returnEntity` to `true` to receive the created suppliers with their assigned IDs and revision numbers. Use this endpoint when importing suppliers from external sources or onboarding multiple suppliers simultaneously.\n *\n * Each supplier in the request is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param suppliers - List of suppliers to create.\n * @public\n * @documentationMaturity preview\n * @requiredField suppliers\n * @requiredField suppliers.location\n * @requiredField suppliers.name\n * @requiredField suppliers.types\n * @permissionId SUPPLIERS_HUB.SUPPLIER_CREATE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkCreateSuppliers\n */\nexport async function bulkCreateSuppliers(\n suppliers: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>[],\n options?: BulkCreateSuppliersOptions\n): Promise<\n NonNullablePaths<\n BulkCreateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n suppliers: suppliers,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkCreateSuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n suppliers: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['suppliers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateSuppliersOptions {\n /** Whether to return created supplier entities in the response. Set to `true` to receive the created suppliers with their assigned IDs and revision numbers. */\n returnEntity?: boolean;\n}\n\n/**\n * Updates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Each supplier must include its current revision number to prevent conflicting changes. Set `returnEntity` to `true` to receive the updated suppliers in the response.\n *\n * To update more than 100 suppliers, split them into multiple batches and make separate requests. When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param suppliers - List of suppliers to update. Each must include current revision number.\n * @public\n * @documentationMaturity preview\n * @requiredField suppliers\n * @requiredField suppliers.supplier._id\n * @requiredField suppliers.supplier.revision\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSuppliers\n */\nexport async function bulkUpdateSuppliers(\n suppliers: NonNullablePaths<\n MaskedSupplier,\n `supplier._id` | `supplier.revision`,\n 3\n >[],\n options?: BulkUpdateSuppliersOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n suppliers: suppliers,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkUpdateSuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n suppliers: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['suppliers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSuppliersOptions {\n /**\n * Whether to return updated supplier entities in the response. Set to `true` to receive the updated suppliers with their new revision numbers.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\n/**\n * Permanently deletes multiple suppliers in a single synchronous request. This action cannot be undone.\n *\n * Supports up to 100 suppliers per request. To delete more than 100 suppliers, split the supplier IDs into multiple batches and make separate requests.\n *\n * Each supplier deletion is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param supplierIds - Supplier ids to be deleted\n * @public\n * @documentationMaturity preview\n * @requiredField supplierIds\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DELETE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkDeleteSuppliers\n */\nexport async function bulkDeleteSuppliers(\n supplierIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierIds: supplierIds,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkDeleteSuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplierIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplierIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates tags on multiple suppliers specified by supplier IDs in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. You can assign new tags, unassign existing tags, or both in a single operation. If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence.\n *\n * Use this endpoint to organize suppliers with public tags for categorization visible to site members, or private tags for internal management requiring additional permissions.\n * @param supplierIds - List of supplier IDs to update tags for.\n * @public\n * @documentationMaturity preview\n * @requiredField supplierIds\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTags\n */\nexport async function bulkUpdateSupplierTags(\n supplierIds: string[],\n options?: BulkUpdateSupplierTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateSupplierTagsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n > & {\n __applicationErrorsType?: BulkUpdateSupplierTagsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierIds: supplierIds,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkUpdateSupplierTags(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n supplierIds: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['supplierIds', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSupplierTagsOptions {\n /** Tags to assign to the specified suppliers. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from the specified suppliers. */\n unassignTags?: Tags;\n}\n\n/**\n * Updates tags on multiple suppliers matching filter criteria in a single asynchronous request.\n *\n * Use this endpoint for large-scale tag operations across many suppliers based on conditions such as location, verification status, or rating. An empty filter updates all suppliers. The operation returns a job ID for tracking completion status.\n *\n * If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence. This endpoint has no supplier limit, unlike the synchronous tag update endpoint which is limited to 100 suppliers.\n * @param filter - Filter criteria to select which suppliers to update. An empty filter matches all suppliers. See supported filters in the API documentation.\n * @public\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTagsByFilter\n */\nexport async function bulkUpdateSupplierTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateSupplierTagsByFilterOptions\n): Promise<\n NonNullablePaths<BulkUpdateSupplierTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateSupplierTagsByFilterApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n filter: filter,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkUpdateSupplierTagsByFilter(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n filter: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['filter', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSupplierTagsByFilterOptions {\n /** Tags to assign to suppliers matching the filter. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from suppliers matching the filter. */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/marketplace-supplier',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/suppliers-hub/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n {\n srcPath: '/suppliers-hub/v1/bulk/suppliers',\n destPath: '/v1/bulk/suppliers',\n },\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/bulk/suppliers',\n destPath: '/v1/bulk/suppliers',\n },\n ],\n _: [\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/bulk/suppliers',\n destPath: '/v1/bulk/suppliers',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_suppliers-hub_suppliers';\n\n/**\n * Creates a supplier profile.\n *\n * The supplier's `appId` is automatically set to the ID of the calling application. Use this endpoint when onboarding new suppliers to your marketplace provider's network.\n */\nexport function createSupplier(payload: object): RequestOptionsFactory<any> {\n function __createSupplier({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.CreateSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSupplier;\n}\n\n/** Retrieves a supplier by ID, returning complete supplier information including current revision number for update operations. */\nexport function getSupplier(payload: object): RequestOptionsFactory<any> {\n function __getSupplier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'GET' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.GetSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/{supplierId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSupplier;\n}\n\n/**\n * Updates a supplier.\n *\n * Each time the supplier is updated, `revision` increments by 1. The current `revision` must be passed when updating the supplier. This ensures you're working with the latest supplier information and prevents conflicting changes. If the revision is outdated, the request fails and you must fetch the current supplier state before retrying.\n *\n * When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n */\nexport function updateSupplier(payload: object): RequestOptionsFactory<any> {\n function __updateSupplier({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.UpdateSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/{supplier.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSupplier;\n}\n\n/** Permanently deletes a supplier from the marketplace. This action cannot be undone. Use this endpoint when removing suppliers that are no longer active in your network. */\nexport function deleteSupplier(payload: object): RequestOptionsFactory<any> {\n function __deleteSupplier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.DeleteSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/{supplierId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSupplier;\n}\n\n/**\n * Retrieves a list of suppliers with filtering, sorting, and cursor-based pagination.\n *\n * Up to 100 suppliers can be returned per request. For larger datasets, use cursor paging to iterate through results by following the `next` cursor in `pagingMetadata` until all suppliers are retrieved.\n *\n * To learn how to query suppliers, see [API Query Language][https://dev.wix.com/docs/rest/articles/getting-started/api-query-language].\n */\nexport function querySuppliers(payload: object): RequestOptionsFactory<any> {\n function __querySuppliers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'GET' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.QuerySuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'suppliers.createdDate' },\n { path: 'suppliers.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl(\n { protoPath: '/v1/suppliers/query', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __querySuppliers;\n}\n\n/**\n * Creates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Set `returnEntity` to `true` to receive the created suppliers with their assigned IDs and revision numbers. Use this endpoint when importing suppliers from external sources or onboarding multiple suppliers simultaneously.\n *\n * Each supplier in the request is processed independently. The response includes metadata indicating success or failure for each supplier.\n */\nexport function bulkCreateSuppliers(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateSuppliers({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'suppliers.createdDate' },\n { path: 'suppliers.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkCreateSuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSuppliers;\n}\n\n/**\n * Updates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Each supplier must include its current revision number to prevent conflicting changes. Set `returnEntity` to `true` to receive the updated suppliers in the response.\n *\n * To update more than 100 suppliers, split them into multiple batches and make separate requests. When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n */\nexport function bulkUpdateSuppliers(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateSuppliers({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'suppliers.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'suppliers.supplier.createdDate' },\n { path: 'suppliers.supplier.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateSuppliers;\n}\n\n/**\n * Permanently deletes multiple suppliers in a single synchronous request. This action cannot be undone.\n *\n * Supports up to 100 suppliers per request. To delete more than 100 suppliers, split the supplier IDs into multiple batches and make separate requests.\n *\n * Each supplier deletion is processed independently. The response includes metadata indicating success or failure for each supplier.\n */\nexport function bulkDeleteSuppliers(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteSuppliers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkDeleteSuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteSuppliers;\n}\n\n/**\n * Updates tags on multiple suppliers specified by supplier IDs in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. You can assign new tags, unassign existing tags, or both in a single operation. If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence.\n *\n * Use this endpoint to organize suppliers with public tags for categorization visible to site members, or private tags for internal management requiring additional permissions.\n */\nexport function bulkUpdateSupplierTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateSupplierTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateSupplierTags;\n}\n\n/**\n * Updates tags on multiple suppliers matching filter criteria in a single asynchronous request.\n *\n * Use this endpoint for large-scale tag operations across many suppliers based on conditions such as location, verification status, or rating. An empty filter updates all suppliers. The operation returns a job ID for tracking completion status.\n *\n * If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence. This endpoint has no supplier limit, unlike the synchronous tag update endpoint which is limited to 100 suppliers.\n */\nexport function bulkUpdateSupplierTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateSupplierTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateSupplierTagsByFilter;\n}\n","import {\n createSupplier as publicCreateSupplier,\n getSupplier as publicGetSupplier,\n updateSupplier as publicUpdateSupplier,\n deleteSupplier as publicDeleteSupplier,\n querySuppliers as publicQuerySuppliers,\n typedQuerySuppliers as publicTypedQuerySuppliers,\n bulkCreateSuppliers as publicBulkCreateSuppliers,\n bulkUpdateSuppliers as publicBulkUpdateSuppliers,\n bulkDeleteSuppliers as publicBulkDeleteSuppliers,\n bulkUpdateSupplierTags as publicBulkUpdateSupplierTags,\n bulkUpdateSupplierTagsByFilter as publicBulkUpdateSupplierTagsByFilter,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n SupplierQuery,\n SuppliersQueryBuilder,\n typedQuerySuppliers as universalTypedQuerySuppliers,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nimport { onSupplierCreated as publicOnSupplierCreated } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { onSupplierDeleted as publicOnSupplierDeleted } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { onSupplierTagsModified as publicOnSupplierTagsModified } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { onSupplierUpdated as publicOnSupplierUpdated } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\n\nfunction customQuerySuppliers(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQuerySuppliers(httpClient)(),\n typedQueryFunction: (query: SupplierQuery) =>\n publicTypedQuerySuppliers(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): SuppliersQueryBuilder;\n function overloadedQuery(\n query: SupplierQuery\n ): ReturnType<typeof universalTypedQuerySuppliers>;\n function overloadedQuery(query?: SupplierQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const createSupplier: MaybeContext<\n BuildRESTFunction<typeof publicCreateSupplier> & typeof publicCreateSupplier\n> = /*#__PURE__*/ createRESTModule(publicCreateSupplier);\nexport const getSupplier: MaybeContext<\n BuildRESTFunction<typeof publicGetSupplier> & typeof publicGetSupplier\n> = /*#__PURE__*/ createRESTModule(publicGetSupplier);\nexport const updateSupplier: MaybeContext<\n BuildRESTFunction<typeof publicUpdateSupplier> & typeof publicUpdateSupplier\n> = /*#__PURE__*/ createRESTModule(publicUpdateSupplier);\nexport const deleteSupplier: MaybeContext<\n BuildRESTFunction<typeof publicDeleteSupplier> & typeof publicDeleteSupplier\n> = /*#__PURE__*/ createRESTModule(publicDeleteSupplier);\nexport const bulkCreateSuppliers: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateSuppliers> &\n typeof publicBulkCreateSuppliers\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateSuppliers);\nexport const bulkUpdateSuppliers: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSuppliers> &\n typeof publicBulkUpdateSuppliers\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSuppliers);\nexport const bulkDeleteSuppliers: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteSuppliers> &\n typeof publicBulkDeleteSuppliers\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteSuppliers);\nexport const bulkUpdateSupplierTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSupplierTags> &\n typeof publicBulkUpdateSupplierTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSupplierTags);\nexport const bulkUpdateSupplierTagsByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSupplierTagsByFilter> &\n typeof publicBulkUpdateSupplierTagsByFilter\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSupplierTagsByFilter);\nexport const querySuppliers: MaybeContext<\n BuildRESTFunction<typeof customQuerySuppliers> & typeof customQuerySuppliers\n> = /*#__PURE__*/ createRESTModule(customQuerySuppliers);\n/**\n * Triggered when a supplier is created.\n */\nexport const onSupplierCreated: BuildEventDefinition<\n typeof publicOnSupplierCreated\n> &\n typeof publicOnSupplierCreated = createEventModule(publicOnSupplierCreated);\n/**\n * Triggered when a supplier is deleted.\n */\nexport const onSupplierDeleted: BuildEventDefinition<\n typeof publicOnSupplierDeleted\n> &\n typeof publicOnSupplierDeleted = createEventModule(publicOnSupplierDeleted);\n/**\n * Triggered when tags are modified for a supplier.\n */\nexport const onSupplierTagsModified: BuildEventDefinition<\n typeof publicOnSupplierTagsModified\n> &\n typeof publicOnSupplierTagsModified = createEventModule(\n publicOnSupplierTagsModified\n);\n/**\n * Triggered when a supplier is updated.\n */\nexport const onSupplierUpdated: BuildEventDefinition<\n typeof publicOnSupplierUpdated\n> &\n typeof publicOnSupplierUpdated = createEventModule(publicOnSupplierUpdated);\n\nexport {\n SupplierType,\n SortOrder,\n WebhookIdentityType,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nexport {\n Supplier,\n Location,\n Tags,\n TagList,\n TagsModified,\n CreateSupplierRequest,\n CreateSupplierResponse,\n GetSupplierRequest,\n GetSupplierResponse,\n UpdateSupplierRequest,\n UpdateSupplierResponse,\n DeleteSupplierRequest,\n DeleteSupplierResponse,\n QuerySuppliersRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QuerySuppliersResponse,\n CursorPagingMetadata,\n Cursors,\n BulkCreateSuppliersRequest,\n BulkCreateSuppliersResponse,\n ItemMetadata,\n ApplicationError,\n BulkSupplierResult,\n BulkActionMetadata,\n BulkUpdateSuppliersRequest,\n MaskedSupplier,\n BulkUpdateSuppliersResponse,\n BulkUpdateSuppliersResponseBulkSupplierResult,\n BulkDeleteSuppliersRequest,\n BulkDeleteSuppliersResponse,\n BulkDeleteSuppliersResponseBulkSupplierResult,\n BulkUpdateSupplierTagsRequest,\n BulkUpdateSupplierTagsResponse,\n BulkUpdateSupplierTagsResult,\n BulkUpdateSupplierTagsByFilterRequest,\n BulkUpdateSupplierTagsByFilterResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n AccountInfoMetadata,\n SupplierCreatedEnvelope,\n SupplierDeletedEnvelope,\n SupplierTagsModifiedEnvelope,\n SupplierUpdatedEnvelope,\n UpdateSupplier,\n SuppliersQueryResult,\n SuppliersQueryBuilder,\n SupplierQuerySpec,\n BulkCreateSuppliersOptions,\n BulkUpdateSuppliersOptions,\n BulkUpdateSupplierTagsOptions,\n BulkUpdateSupplierTagsByFilterOptions,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nexport { utils } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nexport {\n SupplierTypeWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n BulkUpdateSupplierTagsApplicationErrors,\n BulkUpdateSupplierTagsByFilterApplicationErrors,\n CommonQueryWithEntityContext,\n SupplierQuery,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,sCAA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jC,sCAAkC;AAOlC,iCAA0C;AAW1C,SAAS,qBAAqB,YAAwB;AACpD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,MAAMC,gBAAqB,UAAU,EAAE;AAAA,IAC7D,oBAAoB,CAAC,UACnBC,qBAA0B,UAAU,EAAE,KAAK;AAAA,IAC7C,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAA4B;AACnD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,kCAGK,2DAAiBA,+BAAoC;AAChE,IAAMV,kBAEK,2DAAiB,oBAAoB;AAIhD,IAAMW,yBAGsB,mDAAkB,iBAAuB;AAIrE,IAAMC,yBAGsB,mDAAkB,iBAAuB;AAIrE,IAAMC,8BAG2B;AAAA,EACtC;AACF;AAIO,IAAMC,yBAGsB,mDAAkB,iBAAuB;","names":["bulkCreateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","bulkUpdateSuppliers","createSupplier","deleteSupplier","getSupplier","onSupplierCreated","onSupplierDeleted","onSupplierTagsModified","onSupplierUpdated","querySuppliers","updateSupplier","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","SupplierType","SortOrder","WebhookIdentityType","createSupplier","sdkTransformError","getSupplier","updateSupplier","deleteSupplier","querySuppliers","bulkCreateSuppliers","bulkUpdateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","createSupplier","getSupplier","updateSupplier","deleteSupplier","querySuppliers","typedQuerySuppliers","bulkCreateSuppliers","bulkUpdateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","import_rest_modules","querySuppliers","typedQuerySuppliers","createSupplier","getSupplier","updateSupplier","deleteSupplier","bulkCreateSuppliers","bulkUpdateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","onSupplierCreated","onSupplierDeleted","onSupplierTagsModified","onSupplierUpdated"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.public.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.http.ts","../../src/suppliershub-marketplace-supplier-v1-supplier-suppliers.context.ts"],"sourcesContent":["export * from './src/suppliershub-marketplace-supplier-v1-supplier-suppliers.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkCreateSuppliersOptions,\n BulkCreateSuppliersResponse,\n BulkDeleteSuppliersResponse,\n BulkUpdateSupplierTagsApplicationErrors,\n BulkUpdateSupplierTagsByFilterApplicationErrors,\n BulkUpdateSupplierTagsByFilterOptions,\n BulkUpdateSupplierTagsByFilterResponse,\n BulkUpdateSupplierTagsOptions,\n BulkUpdateSupplierTagsResponse,\n BulkUpdateSuppliersOptions,\n BulkUpdateSuppliersResponse,\n MaskedSupplier,\n QuerySuppliersResponse,\n Supplier,\n SupplierCreatedEnvelope,\n SupplierDeletedEnvelope,\n SupplierQuery,\n SupplierTagsModifiedEnvelope,\n SupplierUpdatedEnvelope,\n SuppliersQueryBuilder,\n UpdateSupplier,\n bulkCreateSuppliers as universalBulkCreateSuppliers,\n bulkDeleteSuppliers as universalBulkDeleteSuppliers,\n bulkUpdateSupplierTags as universalBulkUpdateSupplierTags,\n bulkUpdateSupplierTagsByFilter as universalBulkUpdateSupplierTagsByFilter,\n bulkUpdateSuppliers as universalBulkUpdateSuppliers,\n createSupplier as universalCreateSupplier,\n deleteSupplier as universalDeleteSupplier,\n getSupplier as universalGetSupplier,\n querySuppliers as universalQuerySuppliers,\n typedQuerySuppliers as universalTypedQuerySuppliers,\n updateSupplier as universalUpdateSupplier,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/suppliers-hub' };\n\nexport function createSupplier(\n httpClient: HttpClient\n): CreateSupplierSignature {\n return (\n supplier: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>\n ) =>\n universalCreateSupplier(\n supplier,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSupplierSignature {\n /**\n * Creates a supplier profile.\n *\n * The supplier's `appId` is automatically set to the ID of the calling application. Use this endpoint when onboarding new suppliers to your marketplace provider's network.\n * @param - Supplier to be created.\n * @returns The created Supplier.\n */\n (\n supplier: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>\n ): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function getSupplier(httpClient: HttpClient): GetSupplierSignature {\n return (supplierId: string) =>\n universalGetSupplier(\n supplierId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSupplierSignature {\n /**\n * Retrieves a supplier by ID, returning complete supplier information including current revision number for update operations.\n * @param - ID of the Supplier to retrieve.\n * @returns The requested Supplier.\n */\n (supplierId: string): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function updateSupplier(\n httpClient: HttpClient\n): UpdateSupplierSignature {\n return (\n _id: string,\n supplier: NonNullablePaths<UpdateSupplier, `revision`, 2>\n ) =>\n universalUpdateSupplier(\n _id,\n supplier,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateSupplierSignature {\n /**\n * Updates a supplier.\n *\n * Each time the supplier is updated, `revision` increments by 1. The current `revision` must be passed when updating the supplier. This ensures you're working with the latest supplier information and prevents conflicting changes. If the revision is outdated, the request fails and you must fetch the current supplier state before retrying.\n *\n * When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param - Supplier ID.\n * @returns Updated supplier with incremented revision number.\n */\n (\n _id: string,\n supplier: NonNullablePaths<UpdateSupplier, `revision`, 2>\n ): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n >;\n}\n\nexport function deleteSupplier(\n httpClient: HttpClient\n): DeleteSupplierSignature {\n return (supplierId: string) =>\n universalDeleteSupplier(\n supplierId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteSupplierSignature {\n /**\n * Permanently deletes a supplier from the marketplace. This action cannot be undone. Use this endpoint when removing suppliers that are no longer active in your network.\n * @param - Id of the Supplier to delete.\n */\n (supplierId: string): Promise<void>;\n}\n\nexport function querySuppliers(\n httpClient: HttpClient\n): QuerySuppliersSignature {\n return () =>\n universalQuerySuppliers(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySuppliersSignature {\n /**\n * Retrieves a list of suppliers with filtering, sorting, and cursor-based pagination.\n *\n * Up to 100 suppliers can be returned per request. For larger datasets, use cursor paging to iterate through results by following the `next` cursor in `pagingMetadata` until all suppliers are retrieved.\n *\n * To learn how to query suppliers, see [API Query Language][https://dev.wix.com/docs/rest/articles/getting-started/api-query-language].\n */\n (): SuppliersQueryBuilder;\n}\n\nexport function typedQuerySuppliers(\n httpClient: HttpClient\n): TypedQuerySuppliersSignature {\n return (query: SupplierQuery) =>\n universalTypedQuerySuppliers(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQuerySuppliersSignature {\n /** */\n (query: SupplierQuery): Promise<\n NonNullablePaths<\n QuerySuppliersResponse,\n `suppliers` | `suppliers.${number}.verified`,\n 4\n >\n >;\n}\n\nexport function bulkCreateSuppliers(\n httpClient: HttpClient\n): BulkCreateSuppliersSignature {\n return (\n suppliers: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>[],\n options?: BulkCreateSuppliersOptions\n ) =>\n universalBulkCreateSuppliers(\n suppliers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateSuppliersSignature {\n /**\n * Creates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Set `returnEntity` to `true` to receive the created suppliers with their assigned IDs and revision numbers. Use this endpoint when importing suppliers from external sources or onboarding multiple suppliers simultaneously.\n *\n * Each supplier in the request is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param - List of suppliers to create.\n */\n (\n suppliers: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>[],\n options?: BulkCreateSuppliersOptions\n ): Promise<\n NonNullablePaths<\n BulkCreateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkUpdateSuppliers(\n httpClient: HttpClient\n): BulkUpdateSuppliersSignature {\n return (\n suppliers: NonNullablePaths<\n MaskedSupplier,\n `supplier._id` | `supplier.revision`,\n 3\n >[],\n options?: BulkUpdateSuppliersOptions\n ) =>\n universalBulkUpdateSuppliers(\n suppliers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSuppliersSignature {\n /**\n * Updates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Each supplier must include its current revision number to prevent conflicting changes. Set `returnEntity` to `true` to receive the updated suppliers in the response.\n *\n * To update more than 100 suppliers, split them into multiple batches and make separate requests. When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param - List of suppliers to update. Each must include current revision number.\n */\n (\n suppliers: NonNullablePaths<\n MaskedSupplier,\n `supplier._id` | `supplier.revision`,\n 3\n >[],\n options?: BulkUpdateSuppliersOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkDeleteSuppliers(\n httpClient: HttpClient\n): BulkDeleteSuppliersSignature {\n return (supplierIds: string[]) =>\n universalBulkDeleteSuppliers(\n supplierIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteSuppliersSignature {\n /**\n * Permanently deletes multiple suppliers in a single synchronous request. This action cannot be undone.\n *\n * Supports up to 100 suppliers per request. To delete more than 100 suppliers, split the supplier IDs into multiple batches and make separate requests.\n *\n * Each supplier deletion is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param - Supplier ids to be deleted\n */\n (supplierIds: string[]): Promise<\n NonNullablePaths<\n BulkDeleteSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkUpdateSupplierTags(\n httpClient: HttpClient\n): BulkUpdateSupplierTagsSignature {\n return (supplierIds: string[], options?: BulkUpdateSupplierTagsOptions) =>\n universalBulkUpdateSupplierTags(\n supplierIds,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSupplierTagsSignature {\n /**\n * Updates tags on multiple suppliers specified by supplier IDs in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. You can assign new tags, unassign existing tags, or both in a single operation. If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence.\n *\n * Use this endpoint to organize suppliers with public tags for categorization visible to site members, or private tags for internal management requiring additional permissions.\n * @param - List of supplier IDs to update tags for.\n */\n (supplierIds: string[], options?: BulkUpdateSupplierTagsOptions): Promise<\n NonNullablePaths<\n BulkUpdateSupplierTagsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n > & {\n __applicationErrorsType?: BulkUpdateSupplierTagsApplicationErrors;\n }\n >;\n}\n\nexport function bulkUpdateSupplierTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateSupplierTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateSupplierTagsByFilterOptions\n ) =>\n universalBulkUpdateSupplierTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSupplierTagsByFilterSignature {\n /**\n * Updates tags on multiple suppliers matching filter criteria in a single asynchronous request.\n *\n * Use this endpoint for large-scale tag operations across many suppliers based on conditions such as location, verification status, or rating. An empty filter updates all suppliers. The operation returns a job ID for tracking completion status.\n *\n * If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence. This endpoint has no supplier limit, unlike the synchronous tag update endpoint which is limited to 100 suppliers.\n * @param - Filter criteria to select which suppliers to update. An empty filter matches all suppliers. See supported filters in the API documentation.\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateSupplierTagsByFilterOptions\n ): Promise<\n NonNullablePaths<BulkUpdateSupplierTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateSupplierTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport const onSupplierCreated = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_created',\n true,\n (event: SupplierCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<SupplierCreatedEnvelope>();\nexport const onSupplierDeleted = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_deleted',\n true,\n (event: SupplierDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<SupplierDeletedEnvelope>();\nexport const onSupplierTagsModified = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_tags_modified',\n true,\n (event: SupplierTagsModifiedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.supplier.createdDate' },\n { path: 'data.supplier.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<SupplierTagsModifiedEnvelope>();\nexport const onSupplierUpdated = EventDefinition(\n 'wix.suppliershub.marketplace_supplier.v1.supplier_updated',\n true,\n (event: SupplierUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.createdDate' },\n { path: 'modifiedFields.updatedDate' },\n ],\n },\n ])\n )\n)<SupplierUpdatedEnvelope>();\n\nexport {\n AccountInfo,\n AccountInfoMetadata,\n ActionEvent,\n ApplicationError,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkCreateSuppliersOptions,\n BulkCreateSuppliersRequest,\n BulkCreateSuppliersResponse,\n BulkDeleteSuppliersRequest,\n BulkDeleteSuppliersResponse,\n BulkDeleteSuppliersResponseBulkSupplierResult,\n BulkSupplierResult,\n BulkUpdateSupplierTagsByFilterOptions,\n BulkUpdateSupplierTagsByFilterRequest,\n BulkUpdateSupplierTagsByFilterResponse,\n BulkUpdateSupplierTagsOptions,\n BulkUpdateSupplierTagsRequest,\n BulkUpdateSupplierTagsResponse,\n BulkUpdateSupplierTagsResult,\n BulkUpdateSuppliersOptions,\n BulkUpdateSuppliersRequest,\n BulkUpdateSuppliersResponse,\n BulkUpdateSuppliersResponseBulkSupplierResult,\n CreateSupplierRequest,\n CreateSupplierResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteSupplierRequest,\n DeleteSupplierResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n GetSupplierRequest,\n GetSupplierResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n Location,\n MaskedSupplier,\n MessageEnvelope,\n QuerySuppliersRequest,\n QuerySuppliersResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n Supplier,\n SupplierCreatedEnvelope,\n SupplierDeletedEnvelope,\n SupplierQuerySpec,\n SupplierTagsModifiedEnvelope,\n SupplierType,\n SupplierUpdatedEnvelope,\n SuppliersQueryBuilder,\n SuppliersQueryResult,\n TagList,\n Tags,\n TagsModified,\n UpdateSupplier,\n UpdateSupplierRequest,\n UpdateSupplierResponse,\n WebhookIdentityType,\n utils,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixSuppliershubMarketplaceSupplierV1Supplier from './suppliershub-marketplace-supplier-v1-supplier-suppliers.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * A supplier is an individual or company that provides products to marketplace providers, enabling them to sell those products to end users. Suppliers represent the source layer in the marketplace ecosystem, where providers purchase inventory for their catalogs.\n *\n * Suppliers can operate through different business models, either dropshipping or wholesale, maintain ratings and review counts, and be tagged for organization. Each supplier is managed by a specific provider application, tracked via the app ID.\n */\nexport interface Supplier {\n /**\n * Supplier ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Supplier is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Supplier.\n *\n * Ignored when creating a Supplier.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Supplier was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Supplier was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Supplier name. Displayed to providers when browsing and selecting suppliers for their product catalogs.\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * App ID of the provider application responsible for managing the supplier and its products. Automatically set to the ID of the application making the create request.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /** Supplier location. */\n location?: Location;\n /**\n * Supplier rating from 1.00 to 5.00. For example, `4.25`. Provider applications manage ratings and should update both `rating` and `reviewCount` together to maintain consistency.\n * @decimalValue options { gte:1, lte:5, maxScale:2 }\n */\n rating?: string | null;\n /**\n * Whether the supplier has passed verification processes.\n *\n * Default: `false`\n */\n verified?: boolean;\n /**\n * Supplier business model types. `DROPSHIPPING` suppliers ship directly to end customers, while `WHOLESALE` suppliers ship in bulk to the provider who fulfills orders. A supplier can support multiple fulfillment models.\n * @minSize 1\n * @maxSize 2\n */\n types?: SupplierTypeWithLiterals[];\n /**\n * Number of reviews for the supplier. Provider applications should update both `rating` and `reviewCount` together to maintain consistency.\n * @min 1\n */\n reviewCount?: number | null;\n /** Supplier tags for organization and categorization. */\n tags?: Tags;\n}\n\nexport interface Location {\n /**\n * 2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1) format. For example, `US` for United States or `GB` for United Kingdom.\n * @format COUNTRY\n */\n country?: string | null;\n}\n\n/** Supplier business model type. */\nexport enum SupplierType {\n /** Supplier ships products directly to end customers. The provider does not handle physical inventory or fulfillment. */\n DROPSHIPPING = 'DROPSHIPPING',\n /** Supplier ships products in bulk to the provider, who then fulfills orders to end customers. */\n WHOLESALE = 'WHOLESALE',\n}\n\n/** @enumType */\nexport type SupplierTypeWithLiterals =\n | SupplierType\n | 'DROPSHIPPING'\n | 'WHOLESALE';\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface TagsModified {\n /** Supplier with updated tags. */\n supplier?: Supplier;\n /** Tags that were assigned to the supplier in this operation. */\n assignedTags?: Tags;\n /** Tags that were removed from the supplier in this operation. */\n unassignedTags?: Tags;\n}\n\nexport interface CreateSupplierRequest {\n /** Supplier to be created. */\n supplier: Supplier;\n}\n\nexport interface CreateSupplierResponse {\n /** The created Supplier. */\n supplier?: Supplier;\n}\n\nexport interface GetSupplierRequest {\n /**\n * ID of the Supplier to retrieve.\n * @format GUID\n */\n supplierId: string;\n}\n\nexport interface GetSupplierResponse {\n /** The requested Supplier. */\n supplier?: Supplier;\n}\n\nexport interface UpdateSupplierRequest {\n /** Supplier to update. */\n supplier: Supplier;\n}\n\nexport interface UpdateSupplierResponse {\n /** Updated supplier with incremented revision number. */\n supplier?: Supplier;\n}\n\nexport interface DeleteSupplierRequest {\n /**\n * Id of the Supplier to delete.\n * @format GUID\n */\n supplierId: string;\n}\n\nexport interface DeleteSupplierResponse {}\n\nexport interface QuerySuppliersRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QuerySuppliersResponse {\n /** List of Suppliers. */\n suppliers?: Supplier[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface BulkCreateSuppliersRequest {\n /**\n * List of suppliers to create.\n * @minSize 1\n * @maxSize 100\n */\n suppliers: Supplier[];\n /** Whether to return created supplier entities in the response. Set to `true` to receive the created suppliers with their assigned IDs and revision numbers. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateSuppliersResponse {\n /**\n * List of the bulk create operation results including the Suppliers and metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkSupplierResult[];\n /** Metadata regarding the bulk create operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkSupplierResult {\n /** Metadata regarding the specific single create operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Supplier;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateSuppliersRequest {\n /**\n * List of suppliers to update. Each must include current revision number.\n * @minSize 1\n * @maxSize 100\n */\n suppliers: MaskedSupplier[];\n /**\n * Whether to return updated supplier entities in the response. Set to `true` to receive the updated suppliers with their new revision numbers.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface MaskedSupplier {\n /** Supplier to update. */\n supplier?: Supplier;\n}\n\nexport interface BulkUpdateSuppliersResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateSuppliersResponseBulkSupplierResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateSuppliersResponseBulkSupplierResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Supplier;\n}\n\nexport interface BulkDeleteSuppliersRequest {\n /**\n * Supplier ids to be deleted\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n supplierIds: string[];\n}\n\nexport interface BulkDeleteSuppliersResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteSuppliersResponseBulkSupplierResult[];\n /** Metadata regarding the bulk delete operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteSuppliersResponseBulkSupplierResult {\n /** Metadata regarding the specific single delete operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateSupplierTagsRequest {\n /**\n * List of supplier IDs to update tags for.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n supplierIds: string[];\n /** Tags to assign to the specified suppliers. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from the specified suppliers. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateSupplierTagsResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateSupplierTagsResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateSupplierTagsResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateSupplierTagsByFilterRequest {\n /** Filter criteria to select which suppliers to update. An empty filter matches all suppliers. See supported filters in the API documentation. */\n filter: Record<string, any> | null;\n /** Tags to assign to suppliers matching the filter. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from suppliers matching the filter. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateSupplierTagsByFilterResponse {\n /**\n * Job ID for tracking the asynchronous operation status.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type BulkUpdateSupplierTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateSupplierTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface SupplierCreatedEnvelope {\n entity: Supplier;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a supplier is created.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onSupplierCreated(\n handler: (event: SupplierCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SupplierDeletedEnvelope {\n entity: Supplier;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a supplier is deleted.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onSupplierDeleted(\n handler: (event: SupplierDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SupplierTagsModifiedEnvelope {\n data: TagsModified;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when tags are modified for a supplier.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_tags_modified\n * @slug tags_modified\n * @documentationMaturity preview\n */\nexport declare function onSupplierTagsModified(\n handler: (event: SupplierTagsModifiedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SupplierUpdatedEnvelope {\n entity: Supplier;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a supplier is updated.\n * @permissionScope Write Marketplace\n * @permissionScopeId SCOPE.SUPPLIERS_HUB.WRITE_MARKETPLACE\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DOMAIN_EVENTS_READ\n * @webhook\n * @eventType wix.suppliershub.marketplace_supplier.v1.supplier_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onSupplierUpdated(\n handler: (event: SupplierUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a supplier profile.\n *\n * The supplier's `appId` is automatically set to the ID of the calling application. Use this endpoint when onboarding new suppliers to your marketplace provider's network.\n * @param supplier - Supplier to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField supplier\n * @requiredField supplier.location\n * @requiredField supplier.name\n * @requiredField supplier.types\n * @permissionId SUPPLIERS_HUB.SUPPLIER_CREATE\n * @applicableIdentity APP\n * @returns The created Supplier.\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.CreateSupplier\n */\nexport async function createSupplier(\n supplier: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>\n): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ supplier: supplier });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.createSupplier(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.supplier!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplier: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplier']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a supplier by ID, returning complete supplier information including current revision number for update operations.\n * @param supplierId - ID of the Supplier to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField supplierId\n * @permissionId SUPPLIERS_HUB.SUPPLIER_READ\n * @applicableIdentity APP\n * @returns The requested Supplier.\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.GetSupplier\n */\nexport async function getSupplier(\n supplierId: string\n): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierId: supplierId,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.getSupplier(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.supplier!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplierId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplierId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a supplier.\n *\n * Each time the supplier is updated, `revision` increments by 1. The current `revision` must be passed when updating the supplier. This ensures you're working with the latest supplier information and prevents conflicting changes. If the revision is outdated, the request fails and you must fetch the current supplier state before retrying.\n *\n * When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param _id - Supplier ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField supplier\n * @requiredField supplier.revision\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE\n * @applicableIdentity APP\n * @returns Updated supplier with incremented revision number.\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.UpdateSupplier\n */\nexport async function updateSupplier(\n _id: string,\n supplier: NonNullablePaths<UpdateSupplier, `revision`, 2>\n): Promise<\n NonNullablePaths<\n Supplier,\n `verified` | `types` | `tags.privateTags.tagIds`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplier: { ...supplier, id: _id },\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.updateSupplier(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.supplier!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { supplier: '$[1]' },\n explicitPathsToArguments: { 'supplier.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'supplier']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSupplier {\n /**\n * Supplier ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Supplier is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Supplier.\n *\n * Ignored when creating a Supplier.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Supplier was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Supplier was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Supplier name. Displayed to providers when browsing and selecting suppliers for their product catalogs.\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * App ID of the provider application responsible for managing the supplier and its products. Automatically set to the ID of the application making the create request.\n * @format GUID\n * @readonly\n */\n appId?: string | null;\n /** Supplier location. */\n location?: Location;\n /**\n * Supplier rating from 1.00 to 5.00. For example, `4.25`. Provider applications manage ratings and should update both `rating` and `reviewCount` together to maintain consistency.\n * @decimalValue options { gte:1, lte:5, maxScale:2 }\n */\n rating?: string | null;\n /**\n * Whether the supplier has passed verification processes.\n *\n * Default: `false`\n */\n verified?: boolean;\n /**\n * Supplier business model types. `DROPSHIPPING` suppliers ship directly to end customers, while `WHOLESALE` suppliers ship in bulk to the provider who fulfills orders. A supplier can support multiple fulfillment models.\n * @minSize 1\n * @maxSize 2\n */\n types?: SupplierTypeWithLiterals[];\n /**\n * Number of reviews for the supplier. Provider applications should update both `rating` and `reviewCount` together to maintain consistency.\n * @min 1\n */\n reviewCount?: number | null;\n /** Supplier tags for organization and categorization. */\n tags?: Tags;\n}\n\n/**\n * Permanently deletes a supplier from the marketplace. This action cannot be undone. Use this endpoint when removing suppliers that are no longer active in your network.\n * @param supplierId - Id of the Supplier to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField supplierId\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DELETE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.DeleteSupplier\n */\nexport async function deleteSupplier(supplierId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierId: supplierId,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.deleteSupplier(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplierId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplierId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of suppliers with filtering, sorting, and cursor-based pagination.\n *\n * Up to 100 suppliers can be returned per request. For larger datasets, use cursor paging to iterate through results by following the `next` cursor in `pagingMetadata` until all suppliers are retrieved.\n *\n * To learn how to query suppliers, see [API Query Language][https://dev.wix.com/docs/rest/articles/getting-started/api-query-language].\n * @public\n * @documentationMaturity preview\n * @permissionId SUPPLIERS_HUB.SUPPLIER_READ\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.QuerySuppliers\n */\nexport function querySuppliers(): SuppliersQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Supplier,\n 'CURSOR',\n QuerySuppliersRequest,\n QuerySuppliersResponse\n >({\n func: async (payload: QuerySuppliersRequest) => {\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.querySuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySuppliersRequest['query']) => {\n const args = [query, {}] as [QuerySuppliersRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QuerySuppliersResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.suppliers,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SuppliersQueryResult extends QueryCursorResult {\n items: Supplier[];\n query: SuppliersQueryBuilder;\n next: () => Promise<SuppliersQueryResult>;\n prev: () => Promise<SuppliersQueryResult>;\n}\n\nexport interface SuppliersQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: any\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id' | 'name' | 'location.country' | 'rating',\n value: string\n ) => SuppliersQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any[]\n ) => SuppliersQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: any\n ) => SuppliersQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName:\n | '_id'\n | 'name'\n | 'location.country'\n | 'rating'\n | 'verified'\n | 'tags',\n value: boolean\n ) => SuppliersQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<'_id' | 'name' | 'rating' | 'tags'>\n ) => SuppliersQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<'_id' | 'name' | 'rating' | 'tags'>\n ) => SuppliersQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => SuppliersQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => SuppliersQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<SuppliersQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.QuerySuppliers\n * @requiredField query\n */\nexport async function typedQuerySuppliers(\n query: SupplierQuery\n): Promise<\n NonNullablePaths<\n QuerySuppliersResponse,\n `suppliers` | `suppliers.${number}.verified`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.querySuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SupplierQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['types'];\n operators: ['$hasAll', '$hasSome'];\n sort: 'NONE';\n },\n {\n fields: ['location.country', 'verified'];\n operators: '*';\n sort: 'NONE';\n },\n {\n fields: ['_id', 'name', 'rating', 'tags'];\n operators: '*';\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Supplier,\n SupplierQuerySpec\n>;\nexport type SupplierQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<Supplier, SupplierQuerySpec, SupplierQuery>(),\n },\n};\n\n/**\n * Creates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Set `returnEntity` to `true` to receive the created suppliers with their assigned IDs and revision numbers. Use this endpoint when importing suppliers from external sources or onboarding multiple suppliers simultaneously.\n *\n * Each supplier in the request is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param suppliers - List of suppliers to create.\n * @public\n * @documentationMaturity preview\n * @requiredField suppliers\n * @requiredField suppliers.location\n * @requiredField suppliers.name\n * @requiredField suppliers.types\n * @permissionId SUPPLIERS_HUB.SUPPLIER_CREATE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkCreateSuppliers\n */\nexport async function bulkCreateSuppliers(\n suppliers: NonNullablePaths<Supplier, `location` | `name` | `types`, 2>[],\n options?: BulkCreateSuppliersOptions\n): Promise<\n NonNullablePaths<\n BulkCreateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n suppliers: suppliers,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkCreateSuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n suppliers: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['suppliers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateSuppliersOptions {\n /** Whether to return created supplier entities in the response. Set to `true` to receive the created suppliers with their assigned IDs and revision numbers. */\n returnEntity?: boolean;\n}\n\n/**\n * Updates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Each supplier must include its current revision number to prevent conflicting changes. Set `returnEntity` to `true` to receive the updated suppliers in the response.\n *\n * To update more than 100 suppliers, split them into multiple batches and make separate requests. When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n * @param suppliers - List of suppliers to update. Each must include current revision number.\n * @public\n * @documentationMaturity preview\n * @requiredField suppliers\n * @requiredField suppliers.supplier._id\n * @requiredField suppliers.supplier.revision\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSuppliers\n */\nexport async function bulkUpdateSuppliers(\n suppliers: NonNullablePaths<\n MaskedSupplier,\n `supplier._id` | `supplier.revision`,\n 3\n >[],\n options?: BulkUpdateSuppliersOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.verified`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n suppliers: suppliers,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkUpdateSuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n suppliers: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['suppliers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSuppliersOptions {\n /**\n * Whether to return updated supplier entities in the response. Set to `true` to receive the updated suppliers with their new revision numbers.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\n/**\n * Permanently deletes multiple suppliers in a single synchronous request. This action cannot be undone.\n *\n * Supports up to 100 suppliers per request. To delete more than 100 suppliers, split the supplier IDs into multiple batches and make separate requests.\n *\n * Each supplier deletion is processed independently. The response includes metadata indicating success or failure for each supplier.\n * @param supplierIds - Supplier ids to be deleted\n * @public\n * @documentationMaturity preview\n * @requiredField supplierIds\n * @permissionId SUPPLIERS_HUB.SUPPLIER_DELETE\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkDeleteSuppliers\n */\nexport async function bulkDeleteSuppliers(\n supplierIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteSuppliersResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierIds: supplierIds,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkDeleteSuppliers(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { supplierIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['supplierIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates tags on multiple suppliers specified by supplier IDs in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. You can assign new tags, unassign existing tags, or both in a single operation. If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence.\n *\n * Use this endpoint to organize suppliers with public tags for categorization visible to site members, or private tags for internal management requiring additional permissions.\n * @param supplierIds - List of supplier IDs to update tags for.\n * @public\n * @documentationMaturity preview\n * @requiredField supplierIds\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTags\n */\nexport async function bulkUpdateSupplierTags(\n supplierIds: string[],\n options?: BulkUpdateSupplierTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateSupplierTagsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n > & {\n __applicationErrorsType?: BulkUpdateSupplierTagsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n supplierIds: supplierIds,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkUpdateSupplierTags(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n supplierIds: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['supplierIds', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSupplierTagsOptions {\n /** Tags to assign to the specified suppliers. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from the specified suppliers. */\n unassignTags?: Tags;\n}\n\n/**\n * Updates tags on multiple suppliers matching filter criteria in a single asynchronous request.\n *\n * Use this endpoint for large-scale tag operations across many suppliers based on conditions such as location, verification status, or rating. An empty filter updates all suppliers. The operation returns a job ID for tracking completion status.\n *\n * If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence. This endpoint has no supplier limit, unlike the synchronous tag update endpoint which is limited to 100 suppliers.\n * @param filter - Filter criteria to select which suppliers to update. An empty filter matches all suppliers. See supported filters in the API documentation.\n * @public\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId SUPPLIERS_HUB.SUPPLIER_UPDATE_TAGS\n * @applicableIdentity APP\n * @fqn wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTagsByFilter\n */\nexport async function bulkUpdateSupplierTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateSupplierTagsByFilterOptions\n): Promise<\n NonNullablePaths<BulkUpdateSupplierTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateSupplierTagsByFilterApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n filter: filter,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixSuppliershubMarketplaceSupplierV1Supplier.bulkUpdateSupplierTagsByFilter(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n filter: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['filter', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSupplierTagsByFilterOptions {\n /** Tags to assign to suppliers matching the filter. If a tag appears in both `assignTags` and `unassignTags`, it will be assigned. */\n assignTags?: Tags;\n /** Tags to remove from suppliers matching the filter. */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/marketplace-supplier',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/suppliers-hub/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n {\n srcPath: '/suppliers-hub/v1/bulk/suppliers',\n destPath: '/v1/bulk/suppliers',\n },\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/bulk/suppliers',\n destPath: '/v1/bulk/suppliers',\n },\n ],\n _: [\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/suppliers',\n destPath: '/v1/suppliers',\n },\n {\n srcPath: '/suppliershub/marketplace-supplier/v1/bulk/suppliers',\n destPath: '/v1/bulk/suppliers',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_suppliers-hub_suppliers';\n\n/**\n * Creates a supplier profile.\n *\n * The supplier's `appId` is automatically set to the ID of the calling application. Use this endpoint when onboarding new suppliers to your marketplace provider's network.\n */\nexport function createSupplier(payload: object): RequestOptionsFactory<any> {\n function __createSupplier({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.CreateSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSupplier;\n}\n\n/** Retrieves a supplier by ID, returning complete supplier information including current revision number for update operations. */\nexport function getSupplier(payload: object): RequestOptionsFactory<any> {\n function __getSupplier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'GET' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.GetSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/{supplierId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSupplier;\n}\n\n/**\n * Updates a supplier.\n *\n * Each time the supplier is updated, `revision` increments by 1. The current `revision` must be passed when updating the supplier. This ensures you're working with the latest supplier information and prevents conflicting changes. If the revision is outdated, the request fails and you must fetch the current supplier state before retrying.\n *\n * When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n */\nexport function updateSupplier(payload: object): RequestOptionsFactory<any> {\n function __updateSupplier({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.UpdateSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/{supplier.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'supplier.createdDate' },\n { path: 'supplier.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSupplier;\n}\n\n/** Permanently deletes a supplier from the marketplace. This action cannot be undone. Use this endpoint when removing suppliers that are no longer active in your network. */\nexport function deleteSupplier(payload: object): RequestOptionsFactory<any> {\n function __deleteSupplier({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.DeleteSupplier',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/{supplierId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSupplier;\n}\n\n/**\n * Retrieves a list of suppliers with filtering, sorting, and cursor-based pagination.\n *\n * Up to 100 suppliers can be returned per request. For larger datasets, use cursor paging to iterate through results by following the `next` cursor in `pagingMetadata` until all suppliers are retrieved.\n *\n * To learn how to query suppliers, see [API Query Language][https://dev.wix.com/docs/rest/articles/getting-started/api-query-language].\n */\nexport function querySuppliers(payload: object): RequestOptionsFactory<any> {\n function __querySuppliers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'GET' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.QuerySuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/suppliers/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'suppliers.createdDate' },\n { path: 'suppliers.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl(\n { protoPath: '/v1/suppliers/query', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __querySuppliers;\n}\n\n/**\n * Creates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Set `returnEntity` to `true` to receive the created suppliers with their assigned IDs and revision numbers. Use this endpoint when importing suppliers from external sources or onboarding multiple suppliers simultaneously.\n *\n * Each supplier in the request is processed independently. The response includes metadata indicating success or failure for each supplier.\n */\nexport function bulkCreateSuppliers(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateSuppliers({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'suppliers.createdDate' },\n { path: 'suppliers.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkCreateSuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSuppliers;\n}\n\n/**\n * Updates multiple suppliers in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. Each supplier must include its current revision number to prevent conflicting changes. Set `returnEntity` to `true` to receive the updated suppliers in the response.\n *\n * To update more than 100 suppliers, split them into multiple batches and make separate requests. When updating rating information, update both `rating` and `reviewCount` together to maintain consistency.\n */\nexport function bulkUpdateSuppliers(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateSuppliers({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'suppliers.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'suppliers.supplier.createdDate' },\n { path: 'suppliers.supplier.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateSuppliers;\n}\n\n/**\n * Permanently deletes multiple suppliers in a single synchronous request. This action cannot be undone.\n *\n * Supports up to 100 suppliers per request. To delete more than 100 suppliers, split the supplier IDs into multiple batches and make separate requests.\n *\n * Each supplier deletion is processed independently. The response includes metadata indicating success or failure for each supplier.\n */\nexport function bulkDeleteSuppliers(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteSuppliers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkDeleteSuppliers',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteSuppliers;\n}\n\n/**\n * Updates tags on multiple suppliers specified by supplier IDs in a single synchronous request.\n *\n * Supports up to 100 suppliers per request. You can assign new tags, unassign existing tags, or both in a single operation. If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence.\n *\n * Use this endpoint to organize suppliers with public tags for categorization visible to site members, or private tags for internal management requiring additional permissions.\n */\nexport function bulkUpdateSupplierTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateSupplierTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateSupplierTags;\n}\n\n/**\n * Updates tags on multiple suppliers matching filter criteria in a single asynchronous request.\n *\n * Use this endpoint for large-scale tag operations across many suppliers based on conditions such as location, verification status, or rating. An empty filter updates all suppliers. The operation returns a job ID for tracking completion status.\n *\n * If a tag appears in both `assignTags` and `unassignTags` lists, it will be assigned. Assignment takes precedence. This endpoint has no supplier limit, unlike the synchronous tag update endpoint which is limited to 100 suppliers.\n */\nexport function bulkUpdateSupplierTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateSupplierTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.suppliershub.marketplace_supplier.v1.supplier',\n method: 'POST' as any,\n methodFqn:\n 'wix.suppliershub.marketplace.supplier.v1.MarketplaceSupplier.BulkUpdateSupplierTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixSuppliershubMarketplaceSupplierV1MarketplaceSupplierUrl({\n protoPath: '/v1/bulk/suppliers/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateSupplierTagsByFilter;\n}\n","import {\n createSupplier as publicCreateSupplier,\n getSupplier as publicGetSupplier,\n updateSupplier as publicUpdateSupplier,\n deleteSupplier as publicDeleteSupplier,\n querySuppliers as publicQuerySuppliers,\n typedQuerySuppliers as publicTypedQuerySuppliers,\n bulkCreateSuppliers as publicBulkCreateSuppliers,\n bulkUpdateSuppliers as publicBulkUpdateSuppliers,\n bulkDeleteSuppliers as publicBulkDeleteSuppliers,\n bulkUpdateSupplierTags as publicBulkUpdateSupplierTags,\n bulkUpdateSupplierTagsByFilter as publicBulkUpdateSupplierTagsByFilter,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n SupplierQuery,\n SuppliersQueryBuilder,\n typedQuerySuppliers as universalTypedQuerySuppliers,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nimport { onSupplierCreated as publicOnSupplierCreated } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { onSupplierDeleted as publicOnSupplierDeleted } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { onSupplierTagsModified as publicOnSupplierTagsModified } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\nimport { onSupplierUpdated as publicOnSupplierUpdated } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.public.js';\n\nfunction customQuerySuppliers(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQuerySuppliers(httpClient)(),\n typedQueryFunction: (query: SupplierQuery) =>\n publicTypedQuerySuppliers(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): SuppliersQueryBuilder;\n function overloadedQuery(\n query: SupplierQuery\n ): ReturnType<typeof universalTypedQuerySuppliers>;\n function overloadedQuery(query?: SupplierQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const createSupplier: MaybeContext<\n BuildRESTFunction<typeof publicCreateSupplier> & typeof publicCreateSupplier\n> = /*#__PURE__*/ createRESTModule(publicCreateSupplier);\nexport const getSupplier: MaybeContext<\n BuildRESTFunction<typeof publicGetSupplier> & typeof publicGetSupplier\n> = /*#__PURE__*/ createRESTModule(publicGetSupplier);\nexport const updateSupplier: MaybeContext<\n BuildRESTFunction<typeof publicUpdateSupplier> & typeof publicUpdateSupplier\n> = /*#__PURE__*/ createRESTModule(publicUpdateSupplier);\nexport const deleteSupplier: MaybeContext<\n BuildRESTFunction<typeof publicDeleteSupplier> & typeof publicDeleteSupplier\n> = /*#__PURE__*/ createRESTModule(publicDeleteSupplier);\nexport const bulkCreateSuppliers: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateSuppliers> &\n typeof publicBulkCreateSuppliers\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateSuppliers);\nexport const bulkUpdateSuppliers: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSuppliers> &\n typeof publicBulkUpdateSuppliers\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSuppliers);\nexport const bulkDeleteSuppliers: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteSuppliers> &\n typeof publicBulkDeleteSuppliers\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteSuppliers);\nexport const bulkUpdateSupplierTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSupplierTags> &\n typeof publicBulkUpdateSupplierTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSupplierTags);\nexport const bulkUpdateSupplierTagsByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSupplierTagsByFilter> &\n typeof publicBulkUpdateSupplierTagsByFilter\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSupplierTagsByFilter);\nexport const querySuppliers: MaybeContext<\n BuildRESTFunction<typeof customQuerySuppliers> & typeof customQuerySuppliers\n> = /*#__PURE__*/ createRESTModule(customQuerySuppliers);\n/**\n * Triggered when a supplier is created.\n */\nexport const onSupplierCreated: BuildEventDefinition<\n typeof publicOnSupplierCreated\n> &\n typeof publicOnSupplierCreated = createEventModule(publicOnSupplierCreated);\n/**\n * Triggered when a supplier is deleted.\n */\nexport const onSupplierDeleted: BuildEventDefinition<\n typeof publicOnSupplierDeleted\n> &\n typeof publicOnSupplierDeleted = createEventModule(publicOnSupplierDeleted);\n/**\n * Triggered when tags are modified for a supplier.\n */\nexport const onSupplierTagsModified: BuildEventDefinition<\n typeof publicOnSupplierTagsModified\n> &\n typeof publicOnSupplierTagsModified = createEventModule(\n publicOnSupplierTagsModified\n);\n/**\n * Triggered when a supplier is updated.\n */\nexport const onSupplierUpdated: BuildEventDefinition<\n typeof publicOnSupplierUpdated\n> &\n typeof publicOnSupplierUpdated = createEventModule(publicOnSupplierUpdated);\n\nexport {\n SupplierType,\n SortOrder,\n WebhookIdentityType,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nexport {\n Supplier,\n Location,\n Tags,\n TagList,\n TagsModified,\n CreateSupplierRequest,\n CreateSupplierResponse,\n GetSupplierRequest,\n GetSupplierResponse,\n UpdateSupplierRequest,\n UpdateSupplierResponse,\n DeleteSupplierRequest,\n DeleteSupplierResponse,\n QuerySuppliersRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QuerySuppliersResponse,\n CursorPagingMetadata,\n Cursors,\n BulkCreateSuppliersRequest,\n BulkCreateSuppliersResponse,\n ItemMetadata,\n ApplicationError,\n BulkSupplierResult,\n BulkActionMetadata,\n BulkUpdateSuppliersRequest,\n MaskedSupplier,\n BulkUpdateSuppliersResponse,\n BulkUpdateSuppliersResponseBulkSupplierResult,\n BulkDeleteSuppliersRequest,\n BulkDeleteSuppliersResponse,\n BulkDeleteSuppliersResponseBulkSupplierResult,\n BulkUpdateSupplierTagsRequest,\n BulkUpdateSupplierTagsResponse,\n BulkUpdateSupplierTagsResult,\n BulkUpdateSupplierTagsByFilterRequest,\n BulkUpdateSupplierTagsByFilterResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n AccountInfoMetadata,\n SupplierCreatedEnvelope,\n SupplierDeletedEnvelope,\n SupplierTagsModifiedEnvelope,\n SupplierUpdatedEnvelope,\n UpdateSupplier,\n SuppliersQueryResult,\n SuppliersQueryBuilder,\n SupplierQuerySpec,\n BulkCreateSuppliersOptions,\n BulkUpdateSuppliersOptions,\n BulkUpdateSupplierTagsOptions,\n BulkUpdateSupplierTagsByFilterOptions,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nexport { utils } from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\nexport {\n SupplierTypeWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n BulkUpdateSupplierTagsApplicationErrors,\n BulkUpdateSupplierTagsByFilterApplicationErrors,\n CommonQueryWithEntityContext,\n SupplierQuery,\n} from './suppliershub-marketplace-supplier-v1-supplier-suppliers.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,kEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,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AAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,6BAA6B;AAAA,UACrC,EAAE,MAAM,6BAA6B;AAAA,QACvC;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA2B;;;AGzc3B,IAAAC,uBAAiC;AACjC,sCAAkC;AAOlC,iCAA0C;AAW1C,SAAS,qBAAqB,YAAwB;AACpD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,MAAMC,gBAAqB,UAAU,EAAE;AAAA,IAC7D,oBAAoB,CAAC,UACnBC,qBAA0B,UAAU,EAAE,KAAK;AAAA,IAC7C,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAA4B;AACnD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,kCAGK,2DAAiBA,+BAAoC;AAChE,IAAMV,kBAEK,2DAAiB,oBAAoB;AAIhD,IAAMW,yBAGsB,mDAAkB,iBAAuB;AAIrE,IAAMC,yBAGsB,mDAAkB,iBAAuB;AAIrE,IAAMC,8BAG2B;AAAA,EACtC;AACF;AAIO,IAAMC,yBAGsB,mDAAkB,iBAAuB;","names":["bulkCreateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","bulkUpdateSuppliers","createSupplier","deleteSupplier","getSupplier","onSupplierCreated","onSupplierDeleted","onSupplierTagsModified","onSupplierUpdated","querySuppliers","updateSupplier","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","SupplierType","SortOrder","WebhookIdentityType","createSupplier","sdkTransformError","getSupplier","updateSupplier","deleteSupplier","querySuppliers","bulkCreateSuppliers","bulkUpdateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","createSupplier","getSupplier","updateSupplier","deleteSupplier","querySuppliers","typedQuerySuppliers","bulkCreateSuppliers","bulkUpdateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","import_rest_modules","querySuppliers","typedQuerySuppliers","createSupplier","getSupplier","updateSupplier","deleteSupplier","bulkCreateSuppliers","bulkUpdateSuppliers","bulkDeleteSuppliers","bulkUpdateSupplierTags","bulkUpdateSupplierTagsByFilter","onSupplierCreated","onSupplierDeleted","onSupplierTagsModified","onSupplierUpdated"]}