@wix/auto_sdk_feedback_comments 1.0.1 → 1.0.2

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,3 +1,10 @@
1
+ // src/partners-feedback-v1-comment-comments.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
6
+ import { EventDefinition } from "@wix/sdk-types";
7
+
1
8
  // src/partners-feedback-v1-comment-comments.universal.ts
2
9
  import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
10
  import {
@@ -579,9 +586,95 @@ function deleteCommentReply3(httpClient) {
579
586
  { httpClient }
580
587
  );
581
588
  }
589
+ var onCommentCreated = /* @__PURE__ */ EventDefinition(
590
+ "wix.partners.feedback.v1.comment_created",
591
+ true,
592
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
593
+ transformPaths2(event, [
594
+ {
595
+ transformFn: transformRESTTimestampToSDKTimestamp2,
596
+ paths: [
597
+ { path: "entity.createdDate" },
598
+ { path: "entity.updatedDate" },
599
+ { path: "entity.replies.createdDate" },
600
+ { path: "metadata.eventTime" }
601
+ ]
602
+ },
603
+ {
604
+ transformFn: transformRESTFloatToSDKFloat2,
605
+ paths: [
606
+ { path: "entity.commentLocation.x" },
607
+ { path: "entity.commentLocation.y" },
608
+ { path: "entity.commentLocation.position.offsetXPct" },
609
+ { path: "entity.commentLocation.position.offsetYPct" }
610
+ ]
611
+ }
612
+ ])
613
+ )
614
+ )();
615
+ var onCommentDeleted = /* @__PURE__ */ EventDefinition(
616
+ "wix.partners.feedback.v1.comment_deleted",
617
+ true,
618
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
619
+ transformPaths2(event, [
620
+ {
621
+ transformFn: transformRESTTimestampToSDKTimestamp2,
622
+ paths: [
623
+ { path: "entity.createdDate" },
624
+ { path: "entity.updatedDate" },
625
+ { path: "entity.replies.createdDate" },
626
+ { path: "metadata.eventTime" }
627
+ ]
628
+ },
629
+ {
630
+ transformFn: transformRESTFloatToSDKFloat2,
631
+ paths: [
632
+ { path: "entity.commentLocation.x" },
633
+ { path: "entity.commentLocation.y" },
634
+ { path: "entity.commentLocation.position.offsetXPct" },
635
+ { path: "entity.commentLocation.position.offsetYPct" }
636
+ ]
637
+ }
638
+ ])
639
+ )
640
+ )();
641
+ var onCommentUpdated = /* @__PURE__ */ EventDefinition(
642
+ "wix.partners.feedback.v1.comment_updated",
643
+ true,
644
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
645
+ transformPaths2(event, [
646
+ {
647
+ transformFn: transformRESTTimestampToSDKTimestamp2,
648
+ paths: [
649
+ { path: "entity.createdDate" },
650
+ { path: "entity.updatedDate" },
651
+ { path: "entity.replies.createdDate" },
652
+ { path: "metadata.eventTime" },
653
+ { path: "modifiedFields.createdDate" },
654
+ { path: "modifiedFields.updatedDate" },
655
+ { path: "modifiedFields.replies.createdDate" }
656
+ ]
657
+ },
658
+ {
659
+ transformFn: transformRESTFloatToSDKFloat2,
660
+ paths: [
661
+ { path: "entity.commentLocation.x" },
662
+ { path: "entity.commentLocation.y" },
663
+ { path: "entity.commentLocation.position.offsetXPct" },
664
+ { path: "entity.commentLocation.position.offsetYPct" },
665
+ { path: "modifiedFields.commentLocation.x" },
666
+ { path: "modifiedFields.commentLocation.y" },
667
+ { path: "modifiedFields.commentLocation.position.offsetXPct" },
668
+ { path: "modifiedFields.commentLocation.position.offsetYPct" }
669
+ ]
670
+ }
671
+ ])
672
+ )
673
+ )();
582
674
 
583
675
  // src/partners-feedback-v1-comment-comments.context.ts
584
676
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
677
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
585
678
  var getComment4 = /* @__PURE__ */ createRESTModule(getComment3);
586
679
  var queryComments4 = /* @__PURE__ */ createRESTModule(queryComments3);
587
680
  var updateCommentStatus4 = /* @__PURE__ */ createRESTModule(updateCommentStatus3);
@@ -589,6 +682,15 @@ var deleteComment4 = /* @__PURE__ */ createRESTModule(deleteComment3);
589
682
  var createCommentReply4 = /* @__PURE__ */ createRESTModule(createCommentReply3);
590
683
  var updateCommentReply4 = /* @__PURE__ */ createRESTModule(updateCommentReply3);
591
684
  var deleteCommentReply4 = /* @__PURE__ */ createRESTModule(deleteCommentReply3);
685
+ var onCommentCreated2 = /* @__PURE__ */ createEventModule(
686
+ onCommentCreated
687
+ );
688
+ var onCommentDeleted2 = /* @__PURE__ */ createEventModule(
689
+ onCommentDeleted
690
+ );
691
+ var onCommentUpdated2 = /* @__PURE__ */ createEventModule(
692
+ onCommentUpdated
693
+ );
592
694
  export {
593
695
  SortOrder,
594
696
  Status,
@@ -597,6 +699,9 @@ export {
597
699
  deleteComment4 as deleteComment,
598
700
  deleteCommentReply4 as deleteCommentReply,
599
701
  getComment4 as getComment,
702
+ onCommentCreated2 as onCommentCreated,
703
+ onCommentDeleted2 as onCommentDeleted,
704
+ onCommentUpdated2 as onCommentUpdated,
600
705
  queryComments4 as queryComments,
601
706
  updateCommentReply4 as updateCommentReply,
602
707
  updateCommentStatus4 as updateCommentStatus
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/partners-feedback-v1-comment-comments.universal.ts","../../src/partners-feedback-v1-comment-comments.http.ts","../../src/partners-feedback-v1-comment-comments.public.ts","../../src/partners-feedback-v1-comment-comments.context.ts"],"sourcesContent":["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","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n Comment,\n CommentReply,\n CreateCommentReplyOptions,\n CreateCommentReplyResponse,\n CursorQuery,\n DeleteCommentReplyIdentifiers,\n DeleteCommentReplyResponse,\n QueryCommentsResponse,\n StatusWithLiterals,\n UpdateCommentReplyIdentifiers,\n UpdateCommentReplyOptions,\n UpdateCommentReplyResponse,\n UpdateCommentStatusOptions,\n UpdateCommentStatusResponse,\n createCommentReply as universalCreateCommentReply,\n deleteComment as universalDeleteComment,\n deleteCommentReply as universalDeleteCommentReply,\n getComment as universalGetComment,\n queryComments as universalQueryComments,\n updateCommentReply as universalUpdateCommentReply,\n updateCommentStatus as universalUpdateCommentStatus,\n} from './partners-feedback-v1-comment-comments.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/feedback' };\n\n/** @internal */\nexport function getComment(httpClient: HttpClient): GetCommentSignature {\n return (commentId: string) =>\n universalGetComment(\n commentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCommentSignature {\n /**\n * Retrieves a Comment.\n * @param - ID of the Comment to retrieve.\n * @returns The requested Comment.\n */\n (commentId: string): 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}\n\n/** @internal */\nexport function queryComments(httpClient: HttpClient): QueryCommentsSignature {\n return (query: CursorQuery) =>\n universalQueryComments(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryCommentsSignature {\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 options.\n */\n (query: CursorQuery): 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}\n\n/** @internal */\nexport function updateCommentStatus(\n httpClient: HttpClient\n): UpdateCommentStatusSignature {\n return (\n commentId: string,\n status: StatusWithLiterals,\n options: NonNullablePaths<UpdateCommentStatusOptions, `revision`, 0>\n ) =>\n universalUpdateCommentStatus(\n commentId,\n status,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCommentStatusSignature {\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 - ID of the Comment to triage.\n * @param - Status to set on the Comment.\n */\n (\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}\n\n/** @internal */\nexport function deleteComment(httpClient: HttpClient): DeleteCommentSignature {\n return (commentId: string) =>\n universalDeleteComment(\n commentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteCommentSignature {\n /**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n * @param - ID of the Comment to delete.\n */\n (commentId: string): Promise<void>;\n}\n\n/** @internal */\nexport function createCommentReply(\n httpClient: HttpClient\n): CreateCommentReplySignature {\n return (\n commentId: string,\n reply: NonNullablePaths<CommentReply, `message`, 0>,\n options: NonNullablePaths<CreateCommentReplyOptions, `revision`, 0>\n ) =>\n universalCreateCommentReply(\n commentId,\n reply,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateCommentReplySignature {\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 - ID of the Comment to reply to.\n * @param - The reply to add. Only `message` is honored.\n */\n (\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}\n\n/** @internal */\nexport function updateCommentReply(\n httpClient: HttpClient\n): UpdateCommentReplySignature {\n return (\n identifiers: NonNullablePaths<\n UpdateCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n message: string,\n options: NonNullablePaths<UpdateCommentReplyOptions, `revision`, 0>\n ) =>\n universalUpdateCommentReply(\n identifiers,\n message,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCommentReplySignature {\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 - New text for the reply.\n */\n (\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}\n\n/** @internal */\nexport function deleteCommentReply(\n httpClient: HttpClient\n): DeleteCommentReplySignature {\n return (\n identifiers: NonNullablePaths<\n DeleteCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n revision: string\n ) =>\n universalDeleteCommentReply(\n identifiers,\n revision,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteCommentReplySignature {\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 - Current revision of the Comment.\n */\n (\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}\n\nexport {\n AccountInfo,\n ActionEvent,\n Breakpoint,\n Comment,\n CommentLocation,\n CommentReply,\n CreateCommentReplyOptions,\n CreateCommentReplyRequest,\n CreateCommentReplyResponse,\n CreateCommentRequest,\n CreateCommentResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteCommentReplyIdentifiers,\n DeleteCommentReplyRequest,\n DeleteCommentReplyResponse,\n DeleteCommentRequest,\n DeleteCommentResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GetCommentRequest,\n GetCommentResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\n Position,\n QueryCommentsRequest,\n QueryCommentsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n Status,\n UpdateCommentReplyIdentifiers,\n UpdateCommentReplyOptions,\n UpdateCommentReplyRequest,\n UpdateCommentReplyResponse,\n UpdateCommentRequest,\n UpdateCommentResponse,\n UpdateCommentStatusOptions,\n UpdateCommentStatusRequest,\n UpdateCommentStatusResponse,\n WebhookIdentityType,\n} from './partners-feedback-v1-comment-comments.universal.js';\n","import {\n getComment as publicGetComment,\n queryComments as publicQueryComments,\n updateCommentStatus as publicUpdateCommentStatus,\n deleteComment as publicDeleteComment,\n createCommentReply as publicCreateCommentReply,\n updateCommentReply as publicUpdateCommentReply,\n deleteCommentReply as publicDeleteCommentReply,\n} from './partners-feedback-v1-comment-comments.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const getComment: MaybeContext<\n BuildRESTFunction<typeof publicGetComment> & typeof publicGetComment\n> = /*#__PURE__*/ createRESTModule(publicGetComment);\n/** @internal */\nexport const queryComments: MaybeContext<\n BuildRESTFunction<typeof publicQueryComments> & typeof publicQueryComments\n> = /*#__PURE__*/ createRESTModule(publicQueryComments);\n/** @internal */\nexport const updateCommentStatus: MaybeContext<\n BuildRESTFunction<typeof publicUpdateCommentStatus> &\n typeof publicUpdateCommentStatus\n> = /*#__PURE__*/ createRESTModule(publicUpdateCommentStatus);\n/** @internal */\nexport const deleteComment: MaybeContext<\n BuildRESTFunction<typeof publicDeleteComment> & typeof publicDeleteComment\n> = /*#__PURE__*/ createRESTModule(publicDeleteComment);\n/** @internal */\nexport const createCommentReply: MaybeContext<\n BuildRESTFunction<typeof publicCreateCommentReply> &\n typeof publicCreateCommentReply\n> = /*#__PURE__*/ createRESTModule(publicCreateCommentReply);\n/** @internal */\nexport const updateCommentReply: MaybeContext<\n BuildRESTFunction<typeof publicUpdateCommentReply> &\n typeof publicUpdateCommentReply\n> = /*#__PURE__*/ createRESTModule(publicUpdateCommentReply);\n/** @internal */\nexport const deleteCommentReply: MaybeContext<\n BuildRESTFunction<typeof publicDeleteCommentReply> &\n typeof publicDeleteCommentReply\n> = /*#__PURE__*/ createRESTModule(publicDeleteCommentReply);\n\nexport {\n Status,\n SortOrder,\n WebhookIdentityType,\n} from './partners-feedback-v1-comment-comments.universal.js';\nexport {\n Comment,\n CommentLocation,\n Breakpoint,\n Position,\n CommentReply,\n GetCommentRequest,\n GetCommentResponse,\n QueryCommentsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryCommentsResponse,\n CursorPagingMetadata,\n Cursors,\n UpdateCommentStatusRequest,\n UpdateCommentStatusResponse,\n DeleteCommentRequest,\n DeleteCommentResponse,\n CreateCommentReplyRequest,\n CreateCommentReplyResponse,\n UpdateCommentReplyRequest,\n UpdateCommentReplyResponse,\n DeleteCommentReplyRequest,\n DeleteCommentReplyResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n CreateCommentRequest,\n CreateCommentResponse,\n UpdateCommentRequest,\n UpdateCommentResponse,\n UpdateCommentStatusOptions,\n CreateCommentReplyOptions,\n UpdateCommentReplyIdentifiers,\n UpdateCommentReplyOptions,\n DeleteCommentReplyIdentifiers,\n} from './partners-feedback-v1-comment-comments.universal.js';\nexport {\n StatusWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './partners-feedback-v1-comment-comments.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAA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AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACjVA,SAAS,wBAAwB;AAI1B,IAAMC,cAEK,iCAAiBA,WAAgB;AAE5C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,uBAGK,iCAAiBA,oBAAyB;AAErD,IAAMC,iBAEK,iCAAiBA,cAAmB;AAE/C,IAAMC,sBAGK,iCAAiBA,mBAAwB;AAEpD,IAAMC,sBAGK,iCAAiBA,mBAAwB;AAEpD,IAAMC,sBAGK,iCAAiBA,mBAAwB;","names":["payload","Status","SortOrder","WebhookIdentityType","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply"]}
1
+ {"version":3,"sources":["../../src/partners-feedback-v1-comment-comments.public.ts","../../src/partners-feedback-v1-comment-comments.universal.ts","../../src/partners-feedback-v1-comment-comments.http.ts","../../src/partners-feedback-v1-comment-comments.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n Comment,\n CommentCreatedEnvelope,\n CommentDeletedEnvelope,\n CommentReply,\n CommentUpdatedEnvelope,\n CreateCommentReplyOptions,\n CreateCommentReplyResponse,\n CursorQuery,\n DeleteCommentReplyIdentifiers,\n DeleteCommentReplyResponse,\n QueryCommentsResponse,\n StatusWithLiterals,\n UpdateCommentReplyIdentifiers,\n UpdateCommentReplyOptions,\n UpdateCommentReplyResponse,\n UpdateCommentStatusOptions,\n UpdateCommentStatusResponse,\n createCommentReply as universalCreateCommentReply,\n deleteComment as universalDeleteComment,\n deleteCommentReply as universalDeleteCommentReply,\n getComment as universalGetComment,\n queryComments as universalQueryComments,\n updateCommentReply as universalUpdateCommentReply,\n updateCommentStatus as universalUpdateCommentStatus,\n} from './partners-feedback-v1-comment-comments.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/feedback' };\n\nexport function getComment(httpClient: HttpClient): GetCommentSignature {\n return (commentId: string) =>\n universalGetComment(\n commentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCommentSignature {\n /**\n * Retrieves a Comment.\n * @param - ID of the Comment to retrieve.\n * @returns The requested Comment.\n */\n (commentId: string): 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}\n\nexport function queryComments(httpClient: HttpClient): QueryCommentsSignature {\n return (query: CursorQuery) =>\n universalQueryComments(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryCommentsSignature {\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 options.\n */\n (query: CursorQuery): 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}\n\nexport function updateCommentStatus(\n httpClient: HttpClient\n): UpdateCommentStatusSignature {\n return (\n commentId: string,\n status: StatusWithLiterals,\n options: NonNullablePaths<UpdateCommentStatusOptions, `revision`, 0>\n ) =>\n universalUpdateCommentStatus(\n commentId,\n status,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCommentStatusSignature {\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 - ID of the Comment to triage.\n * @param - Status to set on the Comment.\n */\n (\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}\n\nexport function deleteComment(httpClient: HttpClient): DeleteCommentSignature {\n return (commentId: string) =>\n universalDeleteComment(\n commentId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteCommentSignature {\n /**\n * Deletes a Comment.\n *\n * Deleting a Comment also deletes its replies.\n * @param - ID of the Comment to delete.\n */\n (commentId: string): Promise<void>;\n}\n\nexport function createCommentReply(\n httpClient: HttpClient\n): CreateCommentReplySignature {\n return (\n commentId: string,\n reply: NonNullablePaths<CommentReply, `message`, 0>,\n options: NonNullablePaths<CreateCommentReplyOptions, `revision`, 0>\n ) =>\n universalCreateCommentReply(\n commentId,\n reply,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateCommentReplySignature {\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 - ID of the Comment to reply to.\n * @param - The reply to add. Only `message` is honored.\n */\n (\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}\n\nexport function updateCommentReply(\n httpClient: HttpClient\n): UpdateCommentReplySignature {\n return (\n identifiers: NonNullablePaths<\n UpdateCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n message: string,\n options: NonNullablePaths<UpdateCommentReplyOptions, `revision`, 0>\n ) =>\n universalUpdateCommentReply(\n identifiers,\n message,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCommentReplySignature {\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 - New text for the reply.\n */\n (\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}\n\nexport function deleteCommentReply(\n httpClient: HttpClient\n): DeleteCommentReplySignature {\n return (\n identifiers: NonNullablePaths<\n DeleteCommentReplyIdentifiers,\n `commentId` | `replyIndex`,\n 0\n >,\n revision: string\n ) =>\n universalDeleteCommentReply(\n identifiers,\n revision,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteCommentReplySignature {\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 - Current revision of the Comment.\n */\n (\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}\n\nexport const onCommentCreated = /*#__PURE__*/ EventDefinition(\n 'wix.partners.feedback.v1.comment_created',\n true,\n (event: CommentCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'entity.replies.createdDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.commentLocation.x' },\n { path: 'entity.commentLocation.y' },\n { path: 'entity.commentLocation.position.offsetXPct' },\n { path: 'entity.commentLocation.position.offsetYPct' },\n ],\n },\n ])\n )\n)<CommentCreatedEnvelope>();\nexport const onCommentDeleted = /*#__PURE__*/ EventDefinition(\n 'wix.partners.feedback.v1.comment_deleted',\n true,\n (event: CommentDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'entity.replies.createdDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.commentLocation.x' },\n { path: 'entity.commentLocation.y' },\n { path: 'entity.commentLocation.position.offsetXPct' },\n { path: 'entity.commentLocation.position.offsetYPct' },\n ],\n },\n ])\n )\n)<CommentDeletedEnvelope>();\nexport const onCommentUpdated = /*#__PURE__*/ EventDefinition(\n 'wix.partners.feedback.v1.comment_updated',\n true,\n (event: CommentUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'entity.replies.createdDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.createdDate' },\n { path: 'modifiedFields.updatedDate' },\n { path: 'modifiedFields.replies.createdDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.commentLocation.x' },\n { path: 'entity.commentLocation.y' },\n { path: 'entity.commentLocation.position.offsetXPct' },\n { path: 'entity.commentLocation.position.offsetYPct' },\n { path: 'modifiedFields.commentLocation.x' },\n { path: 'modifiedFields.commentLocation.y' },\n { path: 'modifiedFields.commentLocation.position.offsetXPct' },\n { path: 'modifiedFields.commentLocation.position.offsetYPct' },\n ],\n },\n ])\n )\n)<CommentUpdatedEnvelope>();\n\nexport {\n AccountInfo,\n AccountInfoMetadata,\n ActionEvent,\n BaseEventMetadata,\n Breakpoint,\n Comment,\n CommentCreatedEnvelope,\n CommentDeletedEnvelope,\n CommentLocation,\n CommentReply,\n CommentUpdatedEnvelope,\n CreateCommentReplyOptions,\n CreateCommentReplyRequest,\n CreateCommentReplyResponse,\n CreateCommentRequest,\n CreateCommentResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteCommentReplyIdentifiers,\n DeleteCommentReplyRequest,\n DeleteCommentReplyResponse,\n DeleteCommentRequest,\n DeleteCommentResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n GetCommentRequest,\n GetCommentResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n MessageEnvelope,\n Position,\n QueryCommentsRequest,\n QueryCommentsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n Status,\n UpdateCommentReplyIdentifiers,\n UpdateCommentReplyOptions,\n UpdateCommentReplyRequest,\n UpdateCommentReplyResponse,\n UpdateCommentRequest,\n UpdateCommentResponse,\n UpdateCommentStatusOptions,\n UpdateCommentStatusRequest,\n UpdateCommentStatusResponse,\n WebhookIdentityType,\n} from './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\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface CommentCreatedEnvelope {\n entity: Comment;\n metadata: EventMetadata;\n}\n\n/** @permissionId partners:feedback:v1:comment:read_events\n * @webhook\n * @eventType wix.partners.feedback.v1.comment_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onCommentCreated(\n handler: (event: CommentCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CommentDeletedEnvelope {\n entity: Comment;\n metadata: EventMetadata;\n}\n\n/** @permissionId partners:feedback:v1:comment:read_events\n * @webhook\n * @eventType wix.partners.feedback.v1.comment_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onCommentDeleted(\n handler: (event: CommentDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CommentUpdatedEnvelope {\n entity: Comment;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/** @permissionId partners:feedback:v1:comment:read_events\n * @webhook\n * @eventType wix.partners.feedback.v1.comment_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onCommentUpdated(\n handler: (event: CommentUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a Comment.\n * @param commentId - ID of the Comment to retrieve.\n * @public\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 * @public\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 * @public\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 * @public\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 * @public\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 * @public\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 * @public\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","import {\n getComment as publicGetComment,\n queryComments as publicQueryComments,\n updateCommentStatus as publicUpdateCommentStatus,\n deleteComment as publicDeleteComment,\n createCommentReply as publicCreateCommentReply,\n updateCommentReply as publicUpdateCommentReply,\n deleteCommentReply as publicDeleteCommentReply,\n} from './partners-feedback-v1-comment-comments.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onCommentCreated as publicOnCommentCreated } from './partners-feedback-v1-comment-comments.public.js';\nimport { onCommentDeleted as publicOnCommentDeleted } from './partners-feedback-v1-comment-comments.public.js';\nimport { onCommentUpdated as publicOnCommentUpdated } from './partners-feedback-v1-comment-comments.public.js';\n\nexport const getComment: MaybeContext<\n BuildRESTFunction<typeof publicGetComment> & typeof publicGetComment\n> = /*#__PURE__*/ createRESTModule(publicGetComment);\nexport const queryComments: MaybeContext<\n BuildRESTFunction<typeof publicQueryComments> & typeof publicQueryComments\n> = /*#__PURE__*/ createRESTModule(publicQueryComments);\nexport const updateCommentStatus: MaybeContext<\n BuildRESTFunction<typeof publicUpdateCommentStatus> &\n typeof publicUpdateCommentStatus\n> = /*#__PURE__*/ createRESTModule(publicUpdateCommentStatus);\nexport const deleteComment: MaybeContext<\n BuildRESTFunction<typeof publicDeleteComment> & typeof publicDeleteComment\n> = /*#__PURE__*/ createRESTModule(publicDeleteComment);\nexport const createCommentReply: MaybeContext<\n BuildRESTFunction<typeof publicCreateCommentReply> &\n typeof publicCreateCommentReply\n> = /*#__PURE__*/ createRESTModule(publicCreateCommentReply);\nexport const updateCommentReply: MaybeContext<\n BuildRESTFunction<typeof publicUpdateCommentReply> &\n typeof publicUpdateCommentReply\n> = /*#__PURE__*/ createRESTModule(publicUpdateCommentReply);\nexport const deleteCommentReply: MaybeContext<\n BuildRESTFunction<typeof publicDeleteCommentReply> &\n typeof publicDeleteCommentReply\n> = /*#__PURE__*/ createRESTModule(publicDeleteCommentReply);\n/** */\nexport const onCommentCreated: BuildEventDefinition<\n typeof publicOnCommentCreated\n> &\n typeof publicOnCommentCreated = /*#__PURE__*/ createEventModule(\n publicOnCommentCreated\n);\n/** */\nexport const onCommentDeleted: BuildEventDefinition<\n typeof publicOnCommentDeleted\n> &\n typeof publicOnCommentDeleted = /*#__PURE__*/ createEventModule(\n publicOnCommentDeleted\n);\n/** */\nexport const onCommentUpdated: BuildEventDefinition<\n typeof publicOnCommentUpdated\n> &\n typeof publicOnCommentUpdated = /*#__PURE__*/ createEventModule(\n publicOnCommentUpdated\n);\n\nexport {\n Status,\n SortOrder,\n WebhookIdentityType,\n} from './partners-feedback-v1-comment-comments.universal.js';\nexport {\n Comment,\n CommentLocation,\n Breakpoint,\n Position,\n CommentReply,\n GetCommentRequest,\n GetCommentResponse,\n QueryCommentsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryCommentsResponse,\n CursorPagingMetadata,\n Cursors,\n UpdateCommentStatusRequest,\n UpdateCommentStatusResponse,\n DeleteCommentRequest,\n DeleteCommentResponse,\n CreateCommentReplyRequest,\n CreateCommentReplyResponse,\n UpdateCommentReplyRequest,\n UpdateCommentReplyResponse,\n DeleteCommentReplyRequest,\n DeleteCommentReplyResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n CreateCommentRequest,\n CreateCommentResponse,\n UpdateCommentRequest,\n UpdateCommentResponse,\n BaseEventMetadata,\n EventMetadata,\n AccountInfoMetadata,\n CommentCreatedEnvelope,\n CommentDeletedEnvelope,\n CommentUpdatedEnvelope,\n UpdateCommentStatusOptions,\n CreateCommentReplyOptions,\n UpdateCommentReplyIdentifiers,\n UpdateCommentReplyOptions,\n DeleteCommentReplyIdentifiers,\n} from './partners-feedback-v1-comment-comments.universal.js';\nexport {\n StatusWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './partners-feedback-v1-comment-comments.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACJ9D,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP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AAwB;AACpD,IAAMC,sBAGK,iCAAiBA,mBAAwB;AAEpD,IAAMC,oBAGmC;AAAA,EAC9C;AACF;AAEO,IAAMC,oBAGmC;AAAA,EAC9C;AACF;AAEO,IAAMC,oBAGmC;AAAA,EAC9C;AACF;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTFloatToSDKFloat","transformRESTTimestampToSDKTimestamp","transformPaths","payload","Status","SortOrder","WebhookIdentityType","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","transformRESTFloatToSDKFloat","getComment","queryComments","updateCommentStatus","deleteComment","createCommentReply","updateCommentReply","deleteCommentReply","onCommentCreated","onCommentDeleted","onCommentUpdated"]}