@wix/auto_sdk_feedback_comments 1.0.0 → 1.0.1

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.typings.ts","../../src/partners-feedback-v1-comment-comments.universal.ts","../../src/partners-feedback-v1-comment-comments.http.ts"],"sourcesContent":["export * from './src/partners-feedback-v1-comment-comments.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPartnersFeedbackV1Comment from './partners-feedback-v1-comment-comments.http.js';\n// @ts-ignore\n\n/**\n * A Comment is a note left on a specific location of a site page as part of a feedback session.\n *\n * Site visitors leave comments while reviewing a site; the site owner reads them, triages them by\n * `status`, replies to them, and deletes them.\n */\nexport interface Comment {\n /**\n * Comment ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Revision number, which increments by 1 each time the Comment is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Comment.\n *\n * Ignored when creating a Comment.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Comment was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Comment was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * ID of the feedback session the Comment belongs to.\n * @format GUID\n * @readonly\n */\n feedbackId?: string;\n /**\n * ID of the site the Comment was left on.\n * @format GUID\n * @readonly\n */\n metaSiteId?: string;\n /**\n * ID of the Wix user or site visitor who left the Comment.\n * @format GUID\n * @readonly\n */\n commenterId?: string;\n /**\n * Text of the Comment.\n * @minLength 2\n * @maxLength 2000\n */\n message?: string;\n /**\n * Triage status of the Comment.\n *\n * Read-only: the site owner changes it with Update Comment Status, and no other flow may set it.\n * @readonly\n */\n status?: StatusWithLiterals;\n /** Where on the page the Comment is anchored. */\n commentLocation?: CommentLocation;\n /**\n * Replies to the Comment, ordered oldest first.\n *\n * A reply is addressed by its index in this list, so indexes shift when a reply is deleted.\n * Pass the Comment's current `revision` when updating or deleting a reply to be sure the index\n * you're addressing is still the one you read.\n * @readonly\n * @maxSize 1000\n */\n replies?: CommentReply[];\n /**\n * Whether the Comment was migrated from the legacy feedback server.\n * @internal\n * @readonly\n */\n migrated?: boolean;\n}\n\n/** Triage status of a comment. */\nexport enum Status {\n /** The comment hasn't been read yet. */\n NEW = 'NEW',\n /** The comment has been read but isn't resolved. */\n OPEN = 'OPEN',\n /** The comment has been dealt with. */\n RESOLVED = 'RESOLVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'NEW' | 'OPEN' | 'RESOLVED';\n\n/** Where on a site page a Comment is anchored. */\nexport interface CommentLocation {\n /**\n * ID of the editor page the Comment was left on.\n * @maxLength 100\n */\n pageId?: string;\n /** Horizontal position of the Comment on the page. */\n x?: number;\n /** Vertical position of the Comment on the page. */\n y?: number;\n /** Responsive-design breakpoint the Comment was left at. */\n breakpoint?: Breakpoint;\n /**\n * Inner path of the Wix dynamic page the Comment was left on.\n * @maxLength 2048\n */\n innerPath?: string;\n /** Position of the Comment relative to the element it's attached to. */\n position?: Position;\n}\n\n/** Responsive-design breakpoint a Comment was left at. */\nexport interface Breakpoint {\n /**\n * Breakpoint ID.\n * @maxLength 100\n */\n _id?: string;\n /** Lowest viewport width the breakpoint applies to, in pixels. */\n minWidth?: number;\n /** Highest viewport width the breakpoint applies to, in pixels. */\n maxWidth?: number;\n}\n\n/** Position of a Comment relative to the page element it's attached to. */\nexport interface Position {\n /**\n * DOM selector of the target element.\n * @maxLength 1024\n */\n selector?: string;\n /** Horizontal offset within the element, as a percentage of its width. */\n offsetXPct?: number;\n /** Vertical offset within the element, as a percentage of its height. */\n offsetYPct?: number;\n /**\n * Inner path of the Wix dynamic page the element is on.\n * @maxLength 2048\n */\n innerPath?: string;\n}\n\n/** A reply to a Comment. */\nexport interface CommentReply {\n /**\n * ID of the Wix user or site visitor who wrote the reply.\n * @format GUID\n * @readonly\n */\n replierId?: string;\n /**\n * Text of the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message?: string;\n /**\n * Date and time the reply was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface GetCommentRequest {\n /**\n * ID of the Comment to retrieve.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface GetCommentResponse {\n /** The requested Comment. */\n comment?: Comment;\n}\n\nexport interface QueryCommentsRequest {\n /** Query options. */\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 QueryCommentsResponse {\n /** The retrieved Comments. */\n comments?: Comment[];\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 UpdateCommentStatusRequest {\n /**\n * ID of the Comment to triage.\n * @format GUID\n */\n commentId: string;\n /** Status to set on the Comment. */\n status: StatusWithLiterals;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentStatusResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentRequest {\n /**\n * ID of the Comment to delete.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface DeleteCommentResponse {}\n\nexport interface CreateCommentReplyRequest {\n /**\n * ID of the Comment to reply to.\n * @format GUID\n */\n commentId: string;\n /** The reply to add. Only `message` is honored. */\n reply: CommentReply;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface CreateCommentReplyResponse {\n /** The Comment, including the new reply. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /**\n * New text for the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message: string;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentReplyResponse {\n /** The Comment, including the updated reply. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface DeleteCommentReplyResponse {\n /** The Comment, without the deleted reply. */\n comment?: Comment;\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\nexport interface CreateCommentRequest {\n /**\n * ID of the feedback session to leave the Comment on.\n * @format GUID\n */\n feedbackId?: string;\n /** The Comment to leave. */\n comment?: Comment;\n}\n\nexport interface CreateCommentResponse {\n /** The created Comment. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentRequest {\n /**\n * The Comment to update, carrying its `id`, its current `revision`, and the new values for the\n * fields named in `field_mask`.\n */\n comment?: Comment;\n /**\n * Fields to update: `message`, `comment_location`, or both.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateCommentResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n\n/**\n * Retrieves a Comment.\n * @param commentId - ID of the Comment to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @permissionId partners:feedback:v1:comment:get_comment\n * @returns The requested Comment.\n * @fqn wix.partners.feedback.v1.Comments.GetComment\n */\nexport async function getComment(\n commentId: string\n): Promise<\n NonNullablePaths<\n Comment,\n | `_id`\n | `feedbackId`\n | `metaSiteId`\n | `commenterId`\n | `message`\n | `status`\n | `commentLocation.pageId`\n | `commentLocation.x`\n | `commentLocation.y`\n | `commentLocation.breakpoint._id`\n | `commentLocation.breakpoint.minWidth`\n | `commentLocation.breakpoint.maxWidth`\n | `commentLocation.innerPath`\n | `commentLocation.position.selector`\n | `commentLocation.position.offsetXPct`\n | `commentLocation.position.offsetYPct`\n | `commentLocation.position.innerPath`\n | `replies`\n | `replies.${number}.replierId`\n | `replies.${number}.message`,\n 2\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 commentId: commentId,\n });\n\n const reqOpts = ambassadorWixPartnersFeedbackV1Comment.getComment(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.comment!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { commentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['commentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of Comments, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Comments can be returned per request.\n *\n * To learn how to query Comments, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/docs/rest/articles/getting-started/api-query-language\n * @param query - Query options.\n * @internal\n * @documentationMaturity preview\n * @requiredField query\n * @permissionId partners:feedback:v1:comment:query_comments\n * @fqn wix.partners.feedback.v1.Comments.QueryComments\n */\nexport async function queryComments(\n query: CursorQuery\n): Promise<\n NonNullablePaths<\n QueryCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.feedbackId`\n | `comments.${number}.metaSiteId`\n | `comments.${number}.commenterId`\n | `comments.${number}.message`\n | `comments.${number}.status`\n | `comments.${number}.commentLocation.pageId`\n | `comments.${number}.commentLocation.x`\n | `comments.${number}.commentLocation.y`\n | `comments.${number}.commentLocation.breakpoint._id`\n | `comments.${number}.commentLocation.breakpoint.minWidth`\n | `comments.${number}.commentLocation.breakpoint.maxWidth`\n | `comments.${number}.commentLocation.innerPath`\n | `comments.${number}.commentLocation.position.selector`\n | `comments.${number}.commentLocation.position.offsetXPct`\n | `comments.${number}.commentLocation.position.offsetYPct`\n | `comments.${number}.commentLocation.position.innerPath`,\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 = ambassadorWixPartnersFeedbackV1Comment.queryComments(payload);\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\n/**\n * Updates the triage status of a Comment.\n *\n * This is the only part of a Comment the site owner may change — the text belongs to whoever\n * wrote it.\n *\n * Each time the Comment is updated, `revision` increments by 1. The current `revision` must be\n * passed, which ensures you're working with the latest Comment and prevents unintended\n * overwrites.\n * @param commentId - ID of the Comment to triage.\n * @param status - Status to set on the Comment.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @requiredField options\n * @requiredField options.revision\n * @requiredField status\n * @permissionId partners:feedback:v1:comment:update_comment_status\n * @fqn wix.partners.feedback.v1.Comments.UpdateCommentStatus\n */\nexport async function updateCommentStatus(\n commentId: string,\n status: StatusWithLiterals,\n options: NonNullablePaths<UpdateCommentStatusOptions, `revision`, 0>\n): Promise<\n NonNullablePaths<\n UpdateCommentStatusResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n commentId: commentId,\n status: status,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentStatus(payload);\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 commentId: '$[0]',\n status: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['commentId', 'status', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCommentStatusOptions {\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\n/**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n * @param commentId - ID of the Comment to delete.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @permissionId partners:feedback:v1:comment:delete_comment\n * @fqn wix.partners.feedback.v1.Comments.DeleteComment\n */\nexport async function deleteComment(commentId: 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 commentId: commentId,\n });\n\n const reqOpts = ambassadorWixPartnersFeedbackV1Comment.deleteComment(payload);\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: { commentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['commentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Adds a reply to a Comment.\n *\n * The reply is attributed to the calling user, or to the calling app when the call carries no\n * user identity.\n * @param commentId - ID of the Comment to reply to.\n * @param reply - The reply to add. Only `message` is honored.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @requiredField options\n * @requiredField options.revision\n * @requiredField reply\n * @requiredField reply.message\n * @permissionId partners:feedback:v1:comment:create_comment_reply\n * @fqn wix.partners.feedback.v1.Comments.CreateCommentReply\n */\nexport async function createCommentReply(\n commentId: string,\n reply: NonNullablePaths<CommentReply, `message`, 0>,\n options: NonNullablePaths<CreateCommentReplyOptions, `revision`, 0>\n): Promise<\n NonNullablePaths<\n CreateCommentReplyResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n commentId: commentId,\n reply: reply,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.createCommentReply(payload);\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 commentId: '$[0]',\n reply: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['commentId', 'reply', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateCommentReplyOptions {\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\n/**\n * Updates the text of one of the caller's own replies to a Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n * @param message - New text for the reply.\n * @internal\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.replyIndex\n * @requiredField message\n * @requiredField options\n * @requiredField options.revision\n * @permissionId partners:feedback:v1:comment:update_comment_reply\n * @fqn wix.partners.feedback.v1.Comments.UpdateCommentReply\n */\nexport async function updateCommentReply(\n identifiers: NonNullablePaths<\n UpdateCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n message: string,\n options: NonNullablePaths<UpdateCommentReplyOptions, `revision`, 0>\n): Promise<\n NonNullablePaths<\n UpdateCommentReplyResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n commentId: identifiers?.commentId,\n replyIndex: identifiers?.replyIndex,\n message: message,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentReply(payload);\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 commentId: '$[0].commentId',\n replyIndex: '$[0].replyIndex',\n message: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'message', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCommentReplyIdentifiers {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n}\n\nexport interface UpdateCommentReplyOptions {\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\n/**\n * Deletes a reply to a Comment.\n *\n * The site owner may delete any reply, not only their own, as part of moderating the Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n * @param revision - Current revision of the Comment.\n * @internal\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.replyIndex\n * @requiredField revision\n * @permissionId partners:feedback:v1:comment:delete_comment_reply\n * @fqn wix.partners.feedback.v1.Comments.DeleteCommentReply\n */\nexport async function deleteCommentReply(\n identifiers: NonNullablePaths<\n DeleteCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n revision: string\n): Promise<\n NonNullablePaths<\n DeleteCommentReplyResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\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 commentId: identifiers?.commentId,\n replyIndex: identifiers?.replyIndex,\n revision: revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.deleteCommentReply(payload);\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 commentId: '$[0].commentId',\n replyIndex: '$[0].replyIndex',\n revision: '$[1]',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'revision']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteCommentReplyIdentifiers {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixPartnersFeedbackV1CommentsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/feedback-comments',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_feedback_comments';\n\n/** Retrieves a Comment. */\nexport function getComment(payload: object): RequestOptionsFactory<any> {\n function __getComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.GetComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getComment;\n}\n\n/**\n * Retrieves a list of Comments, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Comments can be returned per request.\n *\n * To learn how to query Comments, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/docs/rest/articles/getting-started/api-query-language\n */\nexport function queryComments(payload: object): RequestOptionsFactory<any> {\n function __queryComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.QueryComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/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: 'comments.createdDate' },\n { path: 'comments.updatedDate' },\n { path: 'comments.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comments.commentLocation.x' },\n { path: 'comments.commentLocation.y' },\n { path: 'comments.commentLocation.position.offsetXPct' },\n { path: 'comments.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryComments;\n}\n\n/**\n * Updates the triage status of a Comment.\n *\n * This is the only part of a Comment the site owner may change — the text belongs to whoever\n * wrote it.\n *\n * Each time the Comment is updated, `revision` increments by 1. The current `revision` must be\n * passed, which ensures you're working with the latest Comment and prevents unintended\n * overwrites.\n */\nexport function updateCommentStatus(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/update-status',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentStatus;\n}\n\n/**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n */\nexport function deleteComment(payload: object): RequestOptionsFactory<any> {\n function __deleteComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteComment;\n}\n\n/**\n * Adds a reply to a Comment.\n *\n * The reply is attributed to the calling user, or to the calling app when the call carries no\n * user identity.\n */\nexport function createCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCommentReply({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reply.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.CreateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCommentReply;\n}\n\n/**\n * Updates the text of one of the caller's own replies to a Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function updateCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'PATCH' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentReply;\n}\n\n/**\n * Deletes a reply to a Comment.\n *\n * The site owner may delete any reply, not only their own, as part of moderating the Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function deleteCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteCommentReply;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6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AAW,SAAS;AAAA,IACtC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAmCA,eAAsBM,oBACpB,aAKA,UA0BA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD,WAAW,aAAa;AAAA,IACxB,YAAY,aAAa;AAAA,IACzB;AAAA,EACF,CAAC;AAED,QAAM,UACmC,mBAAmB,OAAO;AAEnE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAN;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,UAAU;AAAA,QACZ;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,eAAe,UAAU;AAAA,IAC5B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["createCommentReply","deleteComment","deleteCommentReply","getComment","queryComments","updateCommentReply","updateCommentStatus","import_timestamp","import_rest_modules","payload","Status","SortOrder","WebhookIdentityType","getComment","sdkTransformError","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/partners-feedback-v1-comment-comments.universal.ts","../../src/partners-feedback-v1-comment-comments.http.ts"],"sourcesContent":["export * from './src/partners-feedback-v1-comment-comments.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPartnersFeedbackV1Comment from './partners-feedback-v1-comment-comments.http.js';\n// @ts-ignore\n\n/**\n * A Comment is a note left on a specific location of a site page as part of a feedback session.\n *\n * Site visitors leave comments while reviewing a site; the site owner reads them, triages them by\n * `status`, replies to them, and deletes them.\n */\nexport interface Comment {\n /**\n * Comment ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Revision number, which increments by 1 each time the Comment is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Comment.\n *\n * Ignored when creating a Comment.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Comment was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Comment was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * ID of the feedback session the Comment belongs to.\n * @format GUID\n * @readonly\n */\n feedbackId?: string;\n /**\n * ID of the site the Comment was left on.\n * @format GUID\n * @readonly\n */\n metaSiteId?: string;\n /**\n * ID of the site visitor who left the Comment.\n * @format GUID\n * @readonly\n */\n commenterId?: string;\n /**\n * Text of the Comment.\n * @minLength 2\n * @maxLength 2000\n */\n message?: string;\n /**\n * Triage status of the Comment.\n *\n * Read-only: the site owner changes it with Update Comment Status, and no other flow may set it.\n * @readonly\n */\n status?: StatusWithLiterals;\n /** Where on the page the Comment is anchored. */\n commentLocation?: CommentLocation;\n /**\n * Replies to the Comment, ordered oldest first.\n *\n * A reply is addressed by its index in this list, so indexes shift when a reply is deleted.\n * Pass the Comment's current `revision` when updating or deleting a reply to be sure the index\n * you're addressing is still the one you read.\n * @readonly\n * @maxSize 1000\n */\n replies?: CommentReply[];\n /**\n * Whether the Comment was migrated from the legacy feedback server.\n * @internal\n * @readonly\n */\n migrated?: boolean;\n}\n\n/** Triage status of a comment. */\nexport enum Status {\n /** The comment hasn't been read yet. */\n NEW = 'NEW',\n /** The comment has been read but isn't resolved. */\n OPEN = 'OPEN',\n /** The comment has been dealt with. */\n RESOLVED = 'RESOLVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'NEW' | 'OPEN' | 'RESOLVED';\n\n/** Where on a site page a Comment is anchored. */\nexport interface CommentLocation {\n /**\n * ID of the editor page the Comment was left on.\n * @maxLength 100\n */\n pageId?: string;\n /** Horizontal position of the Comment on the page. */\n x?: number;\n /** Vertical position of the Comment on the page. */\n y?: number;\n /** Responsive-design breakpoint the Comment was left at. */\n breakpoint?: Breakpoint;\n /**\n * Inner path of the Wix dynamic page the Comment was left on.\n * @maxLength 2048\n */\n innerPath?: string;\n /** Position of the Comment relative to the element it's attached to. */\n position?: Position;\n}\n\n/** Responsive-design breakpoint a Comment was left at. */\nexport interface Breakpoint {\n /**\n * Breakpoint ID.\n * @maxLength 100\n */\n _id?: string;\n /** Lowest viewport width the breakpoint applies to, in pixels. */\n minWidth?: number;\n /** Highest viewport width the breakpoint applies to, in pixels. */\n maxWidth?: number;\n}\n\n/** Position of a Comment relative to the page element it's attached to. */\nexport interface Position {\n /**\n * DOM selector of the target element.\n * @maxLength 1024\n */\n selector?: string;\n /** Horizontal offset within the element, as a percentage of its width. */\n offsetXPct?: number;\n /** Vertical offset within the element, as a percentage of its height. */\n offsetYPct?: number;\n /**\n * Inner path of the Wix dynamic page the element is on.\n * @maxLength 2048\n */\n innerPath?: string;\n}\n\n/** A reply to a Comment. */\nexport interface CommentReply {\n /**\n * ID of whoever wrote the reply: the site visitor who left the Comment, a user managing the site, or\n * the app that replied on the site's behalf.\n * @format GUID\n * @readonly\n */\n replierId?: string;\n /**\n * Text of the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message?: string;\n /**\n * Date and time the reply was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface GetCommentRequest {\n /**\n * ID of the Comment to retrieve.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface GetCommentResponse {\n /** The requested Comment. */\n comment?: Comment;\n}\n\nexport interface QueryCommentsRequest {\n /** Query options. */\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 QueryCommentsResponse {\n /** The retrieved Comments. */\n comments?: Comment[];\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 UpdateCommentStatusRequest {\n /**\n * ID of the Comment to triage.\n * @format GUID\n */\n commentId: string;\n /** Status to set on the Comment. */\n status: StatusWithLiterals;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentStatusResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentRequest {\n /**\n * ID of the Comment to delete.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface DeleteCommentResponse {}\n\nexport interface CreateCommentReplyRequest {\n /**\n * ID of the Comment to reply to.\n * @format GUID\n */\n commentId: string;\n /** The reply to add. Only `message` is honored. */\n reply: CommentReply;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface CreateCommentReplyResponse {\n /** The Comment, including the new reply. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /**\n * New text for the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message: string;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentReplyResponse {\n /** The Comment, including the updated reply. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface DeleteCommentReplyResponse {\n /** The Comment, without the deleted reply. */\n comment?: Comment;\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\nexport interface CreateCommentRequest {\n /**\n * ID of the feedback session to leave the Comment on.\n * @format GUID\n */\n feedbackId?: string;\n /** The Comment to leave. */\n comment?: Comment;\n}\n\nexport interface CreateCommentResponse {\n /** The created Comment. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentRequest {\n /**\n * The Comment to update, carrying its `id`, its current `revision`, and the new values for the\n * fields named in `field_mask`.\n */\n comment?: Comment;\n /**\n * Fields to update: `message`, `comment_location`, or both.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateCommentResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n\n/**\n * Retrieves a Comment.\n * @param commentId - ID of the Comment to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @permissionId partners:feedback:v1:comment:get_comment\n * @applicableIdentity APP\n * @returns The requested Comment.\n * @fqn wix.partners.feedback.v1.Comments.GetComment\n */\nexport async function getComment(\n commentId: string\n): Promise<\n NonNullablePaths<\n Comment,\n | `_id`\n | `feedbackId`\n | `metaSiteId`\n | `commenterId`\n | `message`\n | `status`\n | `commentLocation.pageId`\n | `commentLocation.x`\n | `commentLocation.y`\n | `commentLocation.breakpoint._id`\n | `commentLocation.breakpoint.minWidth`\n | `commentLocation.breakpoint.maxWidth`\n | `commentLocation.innerPath`\n | `commentLocation.position.selector`\n | `commentLocation.position.offsetXPct`\n | `commentLocation.position.offsetYPct`\n | `commentLocation.position.innerPath`\n | `replies`\n | `replies.${number}.replierId`\n | `replies.${number}.message`,\n 2\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 commentId: commentId,\n });\n\n const reqOpts = ambassadorWixPartnersFeedbackV1Comment.getComment(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.comment!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { commentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['commentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of Comments, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Comments can be returned per request.\n *\n * To learn how to query Comments, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/docs/rest/articles/getting-started/api-query-language\n * @param query - Query options.\n * @internal\n * @documentationMaturity preview\n * @requiredField query\n * @permissionId partners:feedback:v1:comment:query_comments\n * @applicableIdentity APP\n * @fqn wix.partners.feedback.v1.Comments.QueryComments\n */\nexport async function queryComments(\n query: CursorQuery\n): Promise<\n NonNullablePaths<\n QueryCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.feedbackId`\n | `comments.${number}.metaSiteId`\n | `comments.${number}.commenterId`\n | `comments.${number}.message`\n | `comments.${number}.status`\n | `comments.${number}.commentLocation.pageId`\n | `comments.${number}.commentLocation.x`\n | `comments.${number}.commentLocation.y`\n | `comments.${number}.commentLocation.breakpoint._id`\n | `comments.${number}.commentLocation.breakpoint.minWidth`\n | `comments.${number}.commentLocation.breakpoint.maxWidth`\n | `comments.${number}.commentLocation.innerPath`\n | `comments.${number}.commentLocation.position.selector`\n | `comments.${number}.commentLocation.position.offsetXPct`\n | `comments.${number}.commentLocation.position.offsetYPct`\n | `comments.${number}.commentLocation.position.innerPath`,\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 = ambassadorWixPartnersFeedbackV1Comment.queryComments(payload);\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\n/**\n * Updates the triage status of a Comment.\n *\n * This is the only part of a Comment the site owner may change — the text belongs to whoever\n * wrote it.\n *\n * Each time the Comment is updated, `revision` increments by 1. The current `revision` must be\n * passed, which ensures you're working with the latest Comment and prevents unintended\n * overwrites.\n * @param commentId - ID of the Comment to triage.\n * @param status - Status to set on the Comment.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @requiredField options\n * @requiredField options.revision\n * @requiredField status\n * @permissionId partners:feedback:v1:comment:update_comment_status\n * @applicableIdentity APP\n * @fqn wix.partners.feedback.v1.Comments.UpdateCommentStatus\n */\nexport async function updateCommentStatus(\n commentId: string,\n status: StatusWithLiterals,\n options: NonNullablePaths<UpdateCommentStatusOptions, `revision`, 0>\n): Promise<\n NonNullablePaths<\n UpdateCommentStatusResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n commentId: commentId,\n status: status,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentStatus(payload);\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 commentId: '$[0]',\n status: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['commentId', 'status', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCommentStatusOptions {\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\n/**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n * @param commentId - ID of the Comment to delete.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @permissionId partners:feedback:v1:comment:delete_comment\n * @applicableIdentity APP\n * @fqn wix.partners.feedback.v1.Comments.DeleteComment\n */\nexport async function deleteComment(commentId: 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 commentId: commentId,\n });\n\n const reqOpts = ambassadorWixPartnersFeedbackV1Comment.deleteComment(payload);\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: { commentId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['commentId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Adds a reply to a Comment.\n *\n * The reply is attributed to the calling user, or to the calling app when the call carries no\n * user identity.\n * @param commentId - ID of the Comment to reply to.\n * @param reply - The reply to add. Only `message` is honored.\n * @internal\n * @documentationMaturity preview\n * @requiredField commentId\n * @requiredField options\n * @requiredField options.revision\n * @requiredField reply\n * @requiredField reply.message\n * @permissionId partners:feedback:v1:comment:create_comment_reply\n * @applicableIdentity APP\n * @fqn wix.partners.feedback.v1.Comments.CreateCommentReply\n */\nexport async function createCommentReply(\n commentId: string,\n reply: NonNullablePaths<CommentReply, `message`, 0>,\n options: NonNullablePaths<CreateCommentReplyOptions, `revision`, 0>\n): Promise<\n NonNullablePaths<\n CreateCommentReplyResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n commentId: commentId,\n reply: reply,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.createCommentReply(payload);\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 commentId: '$[0]',\n reply: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['commentId', 'reply', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateCommentReplyOptions {\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\n/**\n * Updates the text of one of the caller's own replies to a Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n * @param message - New text for the reply.\n * @internal\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.replyIndex\n * @requiredField message\n * @requiredField options\n * @requiredField options.revision\n * @permissionId partners:feedback:v1:comment:update_comment_reply\n * @applicableIdentity APP\n * @fqn wix.partners.feedback.v1.Comments.UpdateCommentReply\n */\nexport async function updateCommentReply(\n identifiers: NonNullablePaths<\n UpdateCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n message: string,\n options: NonNullablePaths<UpdateCommentReplyOptions, `revision`, 0>\n): Promise<\n NonNullablePaths<\n UpdateCommentReplyResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n commentId: identifiers?.commentId,\n replyIndex: identifiers?.replyIndex,\n message: message,\n revision: options?.revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentReply(payload);\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 commentId: '$[0].commentId',\n replyIndex: '$[0].replyIndex',\n message: '$[1]',\n revision: '$[2].revision',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'message', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCommentReplyIdentifiers {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n}\n\nexport interface UpdateCommentReplyOptions {\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\n/**\n * Deletes a reply to a Comment.\n *\n * The site owner may delete any reply, not only their own, as part of moderating the Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n * @param revision - Current revision of the Comment.\n * @internal\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.replyIndex\n * @requiredField revision\n * @permissionId partners:feedback:v1:comment:delete_comment_reply\n * @applicableIdentity APP\n * @fqn wix.partners.feedback.v1.Comments.DeleteCommentReply\n */\nexport async function deleteCommentReply(\n identifiers: NonNullablePaths<\n DeleteCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n revision: string\n): Promise<\n NonNullablePaths<\n DeleteCommentReplyResponse,\n | `comment._id`\n | `comment.feedbackId`\n | `comment.metaSiteId`\n | `comment.commenterId`\n | `comment.message`\n | `comment.status`\n | `comment.commentLocation.pageId`\n | `comment.commentLocation.x`\n | `comment.commentLocation.y`\n | `comment.commentLocation.breakpoint._id`\n | `comment.commentLocation.breakpoint.minWidth`\n | `comment.commentLocation.breakpoint.maxWidth`\n | `comment.commentLocation.innerPath`\n | `comment.commentLocation.position.selector`\n | `comment.commentLocation.position.offsetXPct`\n | `comment.commentLocation.position.offsetYPct`\n | `comment.commentLocation.position.innerPath`\n | `comment.replies`\n | `comment.replies.${number}.replierId`\n | `comment.replies.${number}.message`,\n 3\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 commentId: identifiers?.commentId,\n replyIndex: identifiers?.replyIndex,\n revision: revision,\n });\n\n const reqOpts =\n ambassadorWixPartnersFeedbackV1Comment.deleteCommentReply(payload);\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 commentId: '$[0].commentId',\n replyIndex: '$[0].replyIndex',\n revision: '$[1]',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'revision']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteCommentReplyIdentifiers {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixPartnersFeedbackV1CommentsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/feedback-comments',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_feedback_comments';\n\n/** Retrieves a Comment. */\nexport function getComment(payload: object): RequestOptionsFactory<any> {\n function __getComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.GetComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getComment;\n}\n\n/**\n * Retrieves a list of Comments, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Comments can be returned per request.\n *\n * To learn how to query Comments, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/docs/rest/articles/getting-started/api-query-language\n */\nexport function queryComments(payload: object): RequestOptionsFactory<any> {\n function __queryComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.QueryComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/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: 'comments.createdDate' },\n { path: 'comments.updatedDate' },\n { path: 'comments.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comments.commentLocation.x' },\n { path: 'comments.commentLocation.y' },\n { path: 'comments.commentLocation.position.offsetXPct' },\n { path: 'comments.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryComments;\n}\n\n/**\n * Updates the triage status of a Comment.\n *\n * This is the only part of a Comment the site owner may change — the text belongs to whoever\n * wrote it.\n *\n * Each time the Comment is updated, `revision` increments by 1. The current `revision` must be\n * passed, which ensures you're working with the latest Comment and prevents unintended\n * overwrites.\n */\nexport function updateCommentStatus(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/update-status',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentStatus;\n}\n\n/**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n */\nexport function deleteComment(payload: object): RequestOptionsFactory<any> {\n function __deleteComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteComment;\n}\n\n/**\n * Adds a reply to a Comment.\n *\n * The reply is attributed to the calling user, or to the calling app when the call carries no\n * user identity.\n */\nexport function createCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCommentReply({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reply.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.CreateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCommentReply;\n}\n\n/**\n * Updates the text of one of the caller's own replies to a Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function updateCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'PATCH' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentReply;\n}\n\n/**\n * Deletes a reply to a Comment.\n *\n * The site owner may delete any reply, not only their own, as part of moderating the Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function deleteCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteCommentReply;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eA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Aa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAN;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,UAAU;AAAA,QACZ;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,eAAe,UAAU;AAAA,IAC5B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["createCommentReply","deleteComment","deleteCommentReply","getComment","queryComments","updateCommentReply","updateCommentStatus","import_timestamp","import_rest_modules","payload","Status","SortOrder","WebhookIdentityType","getComment","sdkTransformError","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply"]}
@@ -45,7 +45,7 @@ interface Comment {
45
45
  */
46
46
  metaSiteId?: string;
47
47
  /**
48
- * ID of the Wix user or site visitor who left the Comment.
48
+ * ID of the site visitor who left the Comment.
49
49
  * @format GUID
50
50
  * @readonly
51
51
  */
@@ -140,7 +140,8 @@ interface Position {
140
140
  /** A reply to a Comment. */
141
141
  interface CommentReply {
142
142
  /**
143
- * ID of the Wix user or site visitor who wrote the reply.
143
+ * ID of whoever wrote the reply: the site visitor who left the Comment, a user managing the site, or
144
+ * the app that replied on the site's behalf.
144
145
  * @format GUID
145
146
  * @readonly
146
147
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/partners-feedback-v1-comment-comments.http.ts","../../src/partners-feedback-v1-comment-comments.types.ts","../../src/partners-feedback-v1-comment-comments.meta.ts"],"sourcesContent":["export * from './src/partners-feedback-v1-comment-comments.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixPartnersFeedbackV1CommentsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/feedback-comments',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_feedback_comments';\n\n/** Retrieves a Comment. */\nexport function getComment(payload: object): RequestOptionsFactory<any> {\n function __getComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.GetComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getComment;\n}\n\n/**\n * Retrieves a list of Comments, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Comments can be returned per request.\n *\n * To learn how to query Comments, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/docs/rest/articles/getting-started/api-query-language\n */\nexport function queryComments(payload: object): RequestOptionsFactory<any> {\n function __queryComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.QueryComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/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: 'comments.createdDate' },\n { path: 'comments.updatedDate' },\n { path: 'comments.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comments.commentLocation.x' },\n { path: 'comments.commentLocation.y' },\n { path: 'comments.commentLocation.position.offsetXPct' },\n { path: 'comments.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryComments;\n}\n\n/**\n * Updates the triage status of a Comment.\n *\n * This is the only part of a Comment the site owner may change — the text belongs to whoever\n * wrote it.\n *\n * Each time the Comment is updated, `revision` increments by 1. The current `revision` must be\n * passed, which ensures you're working with the latest Comment and prevents unintended\n * overwrites.\n */\nexport function updateCommentStatus(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/update-status',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentStatus;\n}\n\n/**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n */\nexport function deleteComment(payload: object): RequestOptionsFactory<any> {\n function __deleteComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteComment;\n}\n\n/**\n * Adds a reply to a Comment.\n *\n * The reply is attributed to the calling user, or to the calling app when the call carries no\n * user identity.\n */\nexport function createCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCommentReply({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reply.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.CreateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCommentReply;\n}\n\n/**\n * Updates the text of one of the caller's own replies to a Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function updateCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'PATCH' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentReply;\n}\n\n/**\n * Deletes a reply to a Comment.\n *\n * The site owner may delete any reply, not only their own, as part of moderating the Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function deleteCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteCommentReply;\n}\n","/**\n * A Comment is a note left on a specific location of a site page as part of a feedback session.\n *\n * Site visitors leave comments while reviewing a site; the site owner reads them, triages them by\n * `status`, replies to them, and deletes them.\n */\nexport interface Comment {\n /**\n * Comment ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Revision number, which increments by 1 each time the Comment is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Comment.\n *\n * Ignored when creating a Comment.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Comment was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Comment was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * ID of the feedback session the Comment belongs to.\n * @format GUID\n * @readonly\n */\n feedbackId?: string;\n /**\n * ID of the site the Comment was left on.\n * @format GUID\n * @readonly\n */\n metaSiteId?: string;\n /**\n * ID of the Wix user or site visitor who left the Comment.\n * @format GUID\n * @readonly\n */\n commenterId?: string;\n /**\n * Text of the Comment.\n * @minLength 2\n * @maxLength 2000\n */\n message?: string;\n /**\n * Triage status of the Comment.\n *\n * Read-only: the site owner changes it with Update Comment Status, and no other flow may set it.\n * @readonly\n */\n status?: StatusWithLiterals;\n /** Where on the page the Comment is anchored. */\n commentLocation?: CommentLocation;\n /**\n * Replies to the Comment, ordered oldest first.\n *\n * A reply is addressed by its index in this list, so indexes shift when a reply is deleted.\n * Pass the Comment's current `revision` when updating or deleting a reply to be sure the index\n * you're addressing is still the one you read.\n * @readonly\n * @maxSize 1000\n */\n replies?: CommentReply[];\n /**\n * Whether the Comment was migrated from the legacy feedback server.\n * @internal\n * @readonly\n */\n migrated?: boolean;\n}\n\n/** Triage status of a comment. */\nexport enum Status {\n /** The comment hasn't been read yet. */\n NEW = 'NEW',\n /** The comment has been read but isn't resolved. */\n OPEN = 'OPEN',\n /** The comment has been dealt with. */\n RESOLVED = 'RESOLVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'NEW' | 'OPEN' | 'RESOLVED';\n\n/** Where on a site page a Comment is anchored. */\nexport interface CommentLocation {\n /**\n * ID of the editor page the Comment was left on.\n * @maxLength 100\n */\n pageId?: string;\n /** Horizontal position of the Comment on the page. */\n x?: number;\n /** Vertical position of the Comment on the page. */\n y?: number;\n /** Responsive-design breakpoint the Comment was left at. */\n breakpoint?: Breakpoint;\n /**\n * Inner path of the Wix dynamic page the Comment was left on.\n * @maxLength 2048\n */\n innerPath?: string;\n /** Position of the Comment relative to the element it's attached to. */\n position?: Position;\n}\n\n/** Responsive-design breakpoint a Comment was left at. */\nexport interface Breakpoint {\n /**\n * Breakpoint ID.\n * @maxLength 100\n */\n id?: string;\n /** Lowest viewport width the breakpoint applies to, in pixels. */\n minWidth?: number;\n /** Highest viewport width the breakpoint applies to, in pixels. */\n maxWidth?: number;\n}\n\n/** Position of a Comment relative to the page element it's attached to. */\nexport interface Position {\n /**\n * DOM selector of the target element.\n * @maxLength 1024\n */\n selector?: string;\n /** Horizontal offset within the element, as a percentage of its width. */\n offsetXPct?: number;\n /** Vertical offset within the element, as a percentage of its height. */\n offsetYPct?: number;\n /**\n * Inner path of the Wix dynamic page the element is on.\n * @maxLength 2048\n */\n innerPath?: string;\n}\n\n/** A reply to a Comment. */\nexport interface CommentReply {\n /**\n * ID of the Wix user or site visitor who wrote the reply.\n * @format GUID\n * @readonly\n */\n replierId?: string;\n /**\n * Text of the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message?: string;\n /**\n * Date and time the reply was created.\n * @readonly\n */\n createdDate?: Date | null;\n}\n\nexport interface GetCommentRequest {\n /**\n * ID of the Comment to retrieve.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface GetCommentResponse {\n /** The requested Comment. */\n comment?: Comment;\n}\n\nexport interface QueryCommentsRequest {\n /** Query options. */\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 QueryCommentsResponse {\n /** The retrieved Comments. */\n comments?: Comment[];\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 UpdateCommentStatusRequest {\n /**\n * ID of the Comment to triage.\n * @format GUID\n */\n commentId: string;\n /** Status to set on the Comment. */\n status: StatusWithLiterals;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentStatusResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentRequest {\n /**\n * ID of the Comment to delete.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface DeleteCommentResponse {}\n\nexport interface CreateCommentReplyRequest {\n /**\n * ID of the Comment to reply to.\n * @format GUID\n */\n commentId: string;\n /** The reply to add. Only `message` is honored. */\n reply: CommentReply;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface CreateCommentReplyResponse {\n /** The Comment, including the new reply. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /**\n * New text for the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message: string;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentReplyResponse {\n /** The Comment, including the updated reply. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface DeleteCommentReplyResponse {\n /** The Comment, without the deleted reply. */\n comment?: Comment;\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 entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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\nexport interface CreateCommentRequest {\n /**\n * ID of the feedback session to leave the Comment on.\n * @format GUID\n */\n feedbackId?: string;\n /** The Comment to leave. */\n comment?: Comment;\n}\n\nexport interface CreateCommentResponse {\n /** The created Comment. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentRequest {\n /**\n * The Comment to update, carrying its `id`, its current `revision`, and the new values for the\n * fields named in `field_mask`.\n */\n comment?: Comment;\n /**\n * Fields to update: `message`, `comment_location`, or both.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateCommentResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n","import * as ambassadorWixPartnersFeedbackV1Comment from './partners-feedback-v1-comment-comments.http.js';\nimport * as ambassadorWixPartnersFeedbackV1CommentTypes from './partners-feedback-v1-comment-comments.types.js';\nimport * as ambassadorWixPartnersFeedbackV1CommentUniversalTypes from './partners-feedback-v1-comment-comments.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getComment(): __PublicMethodMetaInfo<\n 'GET',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.GetCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.GetCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.GetCommentResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.GetCommentResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.getComment(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/comments/{commentId}',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryComments(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.QueryCommentsRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.QueryCommentsRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.QueryCommentsResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.QueryCommentsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.queryComments(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/comments/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCommentStatus(): __PublicMethodMetaInfo<\n 'POST',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentStatusRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentStatusRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentStatusResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentStatusResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentStatus(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/comments/{commentId}/update-status',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteComment(): __PublicMethodMetaInfo<\n 'DELETE',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.deleteComment(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/comments/{commentId}',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCommentReply(): __PublicMethodMetaInfo<\n 'POST',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.CreateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.CreateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.CreateCommentReplyResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.CreateCommentReplyResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.createCommentReply(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/comments/{commentId}/replies',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCommentReply(): __PublicMethodMetaInfo<\n 'PATCH',\n { commentId: string; replyIndex: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentReplyResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentReplyResponse\n> {\n const payload = { commentId: ':commentId', replyIndex: ':replyIndex' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentReply(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/comments/{commentId}/replies/{replyIndex}',\n pathParams: { commentId: 'commentId', replyIndex: 'replyIndex' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCommentReply(): __PublicMethodMetaInfo<\n 'DELETE',\n { commentId: string; replyIndex: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentReplyResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentReplyResponse\n> {\n const payload = { commentId: ':commentId', replyIndex: ':replyIndex' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.deleteCommentReply(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/comments/{commentId}/replies/{replyIndex}',\n pathParams: { commentId: 'commentId', replyIndex: 'replyIndex' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Comment as CommentOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n CommentLocation as CommentLocationOriginal,\n Breakpoint as BreakpointOriginal,\n Position as PositionOriginal,\n CommentReply as CommentReplyOriginal,\n GetCommentRequest as GetCommentRequestOriginal,\n GetCommentResponse as GetCommentResponseOriginal,\n QueryCommentsRequest as QueryCommentsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryCommentsResponse as QueryCommentsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateCommentStatusRequest as UpdateCommentStatusRequestOriginal,\n UpdateCommentStatusResponse as UpdateCommentStatusResponseOriginal,\n DeleteCommentRequest as DeleteCommentRequestOriginal,\n DeleteCommentResponse as DeleteCommentResponseOriginal,\n CreateCommentReplyRequest as CreateCommentReplyRequestOriginal,\n CreateCommentReplyResponse as CreateCommentReplyResponseOriginal,\n UpdateCommentReplyRequest as UpdateCommentReplyRequestOriginal,\n UpdateCommentReplyResponse as UpdateCommentReplyResponseOriginal,\n DeleteCommentReplyRequest as DeleteCommentReplyRequestOriginal,\n DeleteCommentReplyResponse as DeleteCommentReplyResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateCommentRequest as CreateCommentRequestOriginal,\n CreateCommentResponse as CreateCommentResponseOriginal,\n UpdateCommentRequest as UpdateCommentRequestOriginal,\n UpdateCommentResponse as UpdateCommentResponseOriginal,\n} from './partners-feedback-v1-comment-comments.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,wCAAwC;AAAA,QAC3C,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,YAAQ,uCAAkB,OAAO;A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BAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,EAAE,WAAW,cAAc,YAAY,cAAc;AAErE,QAAM,oBACmC,mBAAmB,OAAO;AAEnE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,aAAa,YAAY,aAAa;AAAA,IAC/D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,EAAE,WAAW,cAAc,YAAY,cAAc;AAErE,QAAM,oBACmC,mBAAmB,OAAO;AAEnE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,aAAa,YAAY,aAAa;AAAA,IAC/D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createCommentReply","deleteComment","deleteCommentReply","getComment","queryComments","updateCommentReply","updateCommentStatus","import_timestamp","import_rest_modules","payload","Status","SortOrder","WebhookIdentityType","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/partners-feedback-v1-comment-comments.http.ts","../../src/partners-feedback-v1-comment-comments.types.ts","../../src/partners-feedback-v1-comment-comments.meta.ts"],"sourcesContent":["export * from './src/partners-feedback-v1-comment-comments.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixPartnersFeedbackV1CommentsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/feedback-comments',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_feedback_comments';\n\n/** Retrieves a Comment. */\nexport function getComment(payload: object): RequestOptionsFactory<any> {\n function __getComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.GetComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getComment;\n}\n\n/**\n * Retrieves a list of Comments, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Comments can be returned per request.\n *\n * To learn how to query Comments, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/docs/rest/articles/getting-started/api-query-language\n */\nexport function queryComments(payload: object): RequestOptionsFactory<any> {\n function __queryComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'GET' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.QueryComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/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: 'comments.createdDate' },\n { path: 'comments.updatedDate' },\n { path: 'comments.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comments.commentLocation.x' },\n { path: 'comments.commentLocation.y' },\n { path: 'comments.commentLocation.position.offsetXPct' },\n { path: 'comments.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryComments;\n}\n\n/**\n * Updates the triage status of a Comment.\n *\n * This is the only part of a Comment the site owner may change — the text belongs to whoever\n * wrote it.\n *\n * Each time the Comment is updated, `revision` increments by 1. The current `revision` must be\n * passed, which ensures you're working with the latest Comment and prevents unintended\n * overwrites.\n */\nexport function updateCommentStatus(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentStatus({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentStatus',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/update-status',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentStatus;\n}\n\n/**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n */\nexport function deleteComment(payload: object): RequestOptionsFactory<any> {\n function __deleteComment({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteComment',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteComment;\n}\n\n/**\n * Adds a reply to a Comment.\n *\n * The reply is attributed to the calling user, or to the calling app when the call carries no\n * user identity.\n */\nexport function createCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCommentReply({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reply.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'POST' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.CreateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCommentReply;\n}\n\n/**\n * Updates the text of one of the caller's own replies to a Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function updateCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'PATCH' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.UpdateCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCommentReply;\n}\n\n/**\n * Deletes a reply to a Comment.\n *\n * The site owner may delete any reply, not only their own, as part of moderating the Comment.\n *\n * The reply is addressed by `reply_index`, its position in the Comment's `replies` list. Because\n * indexes shift when a reply is deleted, the Comment's current `revision` must be passed; a stale\n * `revision` is rejected rather than applied to whichever reply now sits at that index.\n */\nexport function deleteCommentReply(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteCommentReply({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.feedback.v1.comment',\n method: 'DELETE' as any,\n methodFqn: 'wix.partners.feedback.v1.Comments.DeleteCommentReply',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersFeedbackV1CommentsUrl({\n protoPath: '/v1/comments/{commentId}/replies/{replyIndex}',\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: 'comment.createdDate' },\n { path: 'comment.updatedDate' },\n { path: 'comment.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'comment.commentLocation.x' },\n { path: 'comment.commentLocation.y' },\n { path: 'comment.commentLocation.position.offsetXPct' },\n { path: 'comment.commentLocation.position.offsetYPct' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteCommentReply;\n}\n","/**\n * A Comment is a note left on a specific location of a site page as part of a feedback session.\n *\n * Site visitors leave comments while reviewing a site; the site owner reads them, triages them by\n * `status`, replies to them, and deletes them.\n */\nexport interface Comment {\n /**\n * Comment ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Revision number, which increments by 1 each time the Comment is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Comment.\n *\n * Ignored when creating a Comment.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Comment was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Comment was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * ID of the feedback session the Comment belongs to.\n * @format GUID\n * @readonly\n */\n feedbackId?: string;\n /**\n * ID of the site the Comment was left on.\n * @format GUID\n * @readonly\n */\n metaSiteId?: string;\n /**\n * ID of the site visitor who left the Comment.\n * @format GUID\n * @readonly\n */\n commenterId?: string;\n /**\n * Text of the Comment.\n * @minLength 2\n * @maxLength 2000\n */\n message?: string;\n /**\n * Triage status of the Comment.\n *\n * Read-only: the site owner changes it with Update Comment Status, and no other flow may set it.\n * @readonly\n */\n status?: StatusWithLiterals;\n /** Where on the page the Comment is anchored. */\n commentLocation?: CommentLocation;\n /**\n * Replies to the Comment, ordered oldest first.\n *\n * A reply is addressed by its index in this list, so indexes shift when a reply is deleted.\n * Pass the Comment's current `revision` when updating or deleting a reply to be sure the index\n * you're addressing is still the one you read.\n * @readonly\n * @maxSize 1000\n */\n replies?: CommentReply[];\n /**\n * Whether the Comment was migrated from the legacy feedback server.\n * @internal\n * @readonly\n */\n migrated?: boolean;\n}\n\n/** Triage status of a comment. */\nexport enum Status {\n /** The comment hasn't been read yet. */\n NEW = 'NEW',\n /** The comment has been read but isn't resolved. */\n OPEN = 'OPEN',\n /** The comment has been dealt with. */\n RESOLVED = 'RESOLVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'NEW' | 'OPEN' | 'RESOLVED';\n\n/** Where on a site page a Comment is anchored. */\nexport interface CommentLocation {\n /**\n * ID of the editor page the Comment was left on.\n * @maxLength 100\n */\n pageId?: string;\n /** Horizontal position of the Comment on the page. */\n x?: number;\n /** Vertical position of the Comment on the page. */\n y?: number;\n /** Responsive-design breakpoint the Comment was left at. */\n breakpoint?: Breakpoint;\n /**\n * Inner path of the Wix dynamic page the Comment was left on.\n * @maxLength 2048\n */\n innerPath?: string;\n /** Position of the Comment relative to the element it's attached to. */\n position?: Position;\n}\n\n/** Responsive-design breakpoint a Comment was left at. */\nexport interface Breakpoint {\n /**\n * Breakpoint ID.\n * @maxLength 100\n */\n id?: string;\n /** Lowest viewport width the breakpoint applies to, in pixels. */\n minWidth?: number;\n /** Highest viewport width the breakpoint applies to, in pixels. */\n maxWidth?: number;\n}\n\n/** Position of a Comment relative to the page element it's attached to. */\nexport interface Position {\n /**\n * DOM selector of the target element.\n * @maxLength 1024\n */\n selector?: string;\n /** Horizontal offset within the element, as a percentage of its width. */\n offsetXPct?: number;\n /** Vertical offset within the element, as a percentage of its height. */\n offsetYPct?: number;\n /**\n * Inner path of the Wix dynamic page the element is on.\n * @maxLength 2048\n */\n innerPath?: string;\n}\n\n/** A reply to a Comment. */\nexport interface CommentReply {\n /**\n * ID of whoever wrote the reply: the site visitor who left the Comment, a user managing the site, or\n * the app that replied on the site's behalf.\n * @format GUID\n * @readonly\n */\n replierId?: string;\n /**\n * Text of the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message?: string;\n /**\n * Date and time the reply was created.\n * @readonly\n */\n createdDate?: Date | null;\n}\n\nexport interface GetCommentRequest {\n /**\n * ID of the Comment to retrieve.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface GetCommentResponse {\n /** The requested Comment. */\n comment?: Comment;\n}\n\nexport interface QueryCommentsRequest {\n /** Query options. */\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 QueryCommentsResponse {\n /** The retrieved Comments. */\n comments?: Comment[];\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 UpdateCommentStatusRequest {\n /**\n * ID of the Comment to triage.\n * @format GUID\n */\n commentId: string;\n /** Status to set on the Comment. */\n status: StatusWithLiterals;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentStatusResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentRequest {\n /**\n * ID of the Comment to delete.\n * @format GUID\n */\n commentId: string;\n}\n\nexport interface DeleteCommentResponse {}\n\nexport interface CreateCommentReplyRequest {\n /**\n * ID of the Comment to reply to.\n * @format GUID\n */\n commentId: string;\n /** The reply to add. Only `message` is honored. */\n reply: CommentReply;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface CreateCommentReplyResponse {\n /** The Comment, including the new reply. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /**\n * New text for the reply.\n * @minLength 1\n * @maxLength 2000\n */\n message: string;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface UpdateCommentReplyResponse {\n /** The Comment, including the updated reply. */\n comment?: Comment;\n}\n\nexport interface DeleteCommentReplyRequest {\n /**\n * ID of the Comment the reply belongs to.\n * @format GUID\n */\n commentId: string;\n /** Position of the reply in the Comment's `replies` list. */\n replyIndex: number;\n /** Current revision of the Comment. */\n revision: string | null;\n}\n\nexport interface DeleteCommentReplyResponse {\n /** The Comment, without the deleted reply. */\n comment?: Comment;\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 entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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\nexport interface CreateCommentRequest {\n /**\n * ID of the feedback session to leave the Comment on.\n * @format GUID\n */\n feedbackId?: string;\n /** The Comment to leave. */\n comment?: Comment;\n}\n\nexport interface CreateCommentResponse {\n /** The created Comment. */\n comment?: Comment;\n}\n\nexport interface UpdateCommentRequest {\n /**\n * The Comment to update, carrying its `id`, its current `revision`, and the new values for the\n * fields named in `field_mask`.\n */\n comment?: Comment;\n /**\n * Fields to update: `message`, `comment_location`, or both.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateCommentResponse {\n /** The updated Comment. */\n comment?: Comment;\n}\n","import * as ambassadorWixPartnersFeedbackV1Comment from './partners-feedback-v1-comment-comments.http.js';\nimport * as ambassadorWixPartnersFeedbackV1CommentTypes from './partners-feedback-v1-comment-comments.types.js';\nimport * as ambassadorWixPartnersFeedbackV1CommentUniversalTypes from './partners-feedback-v1-comment-comments.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getComment(): __PublicMethodMetaInfo<\n 'GET',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.GetCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.GetCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.GetCommentResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.GetCommentResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.getComment(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/comments/{commentId}',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryComments(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.QueryCommentsRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.QueryCommentsRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.QueryCommentsResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.QueryCommentsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.queryComments(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/comments/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCommentStatus(): __PublicMethodMetaInfo<\n 'POST',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentStatusRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentStatusRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentStatusResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentStatusResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentStatus(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/comments/{commentId}/update-status',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteComment(): __PublicMethodMetaInfo<\n 'DELETE',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.deleteComment(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/comments/{commentId}',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCommentReply(): __PublicMethodMetaInfo<\n 'POST',\n { commentId: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.CreateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.CreateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.CreateCommentReplyResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.CreateCommentReplyResponse\n> {\n const payload = { commentId: ':commentId' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.createCommentReply(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/comments/{commentId}/replies',\n pathParams: { commentId: 'commentId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCommentReply(): __PublicMethodMetaInfo<\n 'PATCH',\n { commentId: string; replyIndex: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.UpdateCommentReplyResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.UpdateCommentReplyResponse\n> {\n const payload = { commentId: ':commentId', replyIndex: ':replyIndex' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.updateCommentReply(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/comments/{commentId}/replies/{replyIndex}',\n pathParams: { commentId: 'commentId', replyIndex: 'replyIndex' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCommentReply(): __PublicMethodMetaInfo<\n 'DELETE',\n { commentId: string; replyIndex: string },\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentReplyRequest,\n ambassadorWixPartnersFeedbackV1CommentUniversalTypes.DeleteCommentReplyResponse,\n ambassadorWixPartnersFeedbackV1CommentTypes.DeleteCommentReplyResponse\n> {\n const payload = { commentId: ':commentId', replyIndex: ':replyIndex' } as any;\n\n const getRequestOptions =\n ambassadorWixPartnersFeedbackV1Comment.deleteCommentReply(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/comments/{commentId}/replies/{replyIndex}',\n pathParams: { commentId: 'commentId', replyIndex: 'replyIndex' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Comment as CommentOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n CommentLocation as CommentLocationOriginal,\n Breakpoint as BreakpointOriginal,\n Position as PositionOriginal,\n CommentReply as CommentReplyOriginal,\n GetCommentRequest as GetCommentRequestOriginal,\n GetCommentResponse as GetCommentResponseOriginal,\n QueryCommentsRequest as QueryCommentsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryCommentsResponse as QueryCommentsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateCommentStatusRequest as UpdateCommentStatusRequestOriginal,\n UpdateCommentStatusResponse as UpdateCommentStatusResponseOriginal,\n DeleteCommentRequest as DeleteCommentRequestOriginal,\n DeleteCommentResponse as DeleteCommentResponseOriginal,\n CreateCommentReplyRequest as CreateCommentReplyRequestOriginal,\n CreateCommentReplyResponse as CreateCommentReplyResponseOriginal,\n UpdateCommentReplyRequest as UpdateCommentReplyRequestOriginal,\n UpdateCommentReplyResponse as UpdateCommentReplyResponseOriginal,\n DeleteCommentReplyRequest as DeleteCommentReplyRequestOriginal,\n DeleteCommentReplyResponse as DeleteCommentReplyResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateCommentRequest as CreateCommentRequestOriginal,\n CreateCommentResponse as CreateCommentResponseOriginal,\n UpdateCommentRequest as UpdateCommentRequestOriginal,\n UpdateCommentResponse as UpdateCommentResponseOriginal,\n} from './partners-feedback-v1-comment-comments.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,wCAAwC;AAAA,QAC3C,WAAW;AAAA,QACX,M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AAAA,IACN,YAAY,EAAE,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,EAAE,WAAW,cAAc,YAAY,cAAc;AAErE,QAAM,oBACmC,mBAAmB,OAAO;AAEnE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,aAAa,YAAY,aAAa;AAAA,IAC/D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,EAAE,WAAW,cAAc,YAAY,cAAc;AAErE,QAAM,oBACmC,mBAAmB,OAAO;AAEnE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,aAAa,YAAY,aAAa;AAAA,IAC/D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createCommentReply","deleteComment","deleteCommentReply","getComment","queryComments","updateCommentReply","updateCommentStatus","import_timestamp","import_rest_modules","payload","Status","SortOrder","WebhookIdentityType","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply"]}
@@ -43,7 +43,7 @@ interface Comment {
43
43
  */
44
44
  metaSiteId?: string;
45
45
  /**
46
- * ID of the Wix user or site visitor who left the Comment.
46
+ * ID of the site visitor who left the Comment.
47
47
  * @format GUID
48
48
  * @readonly
49
49
  */
@@ -138,7 +138,8 @@ interface Position {
138
138
  /** A reply to a Comment. */
139
139
  interface CommentReply {
140
140
  /**
141
- * ID of the Wix user or site visitor who wrote the reply.
141
+ * ID of whoever wrote the reply: the site visitor who left the Comment, a user managing the site, or
142
+ * the app that replied on the site's behalf.
142
143
  * @format GUID
143
144
  * @readonly
144
145
  */