@wix/auto_sdk_comments_ratings 1.0.0
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.
- package/build/cjs/index.d.ts +50 -0
- package/build/cjs/index.js +366 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +521 -0
- package/build/cjs/index.typings.js +284 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +382 -0
- package/build/cjs/meta.js +244 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +50 -0
- package/build/es/index.mjs +336 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +521 -0
- package/build/es/index.typings.mjs +256 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +382 -0
- package/build/es/meta.mjs +213 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +50 -0
- package/build/internal/cjs/index.js +366 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +521 -0
- package/build/internal/cjs/index.typings.js +284 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +382 -0
- package/build/internal/cjs/meta.js +244 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +50 -0
- package/build/internal/es/index.mjs +336 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +521 -0
- package/build/internal/es/index.typings.mjs +256 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +382 -0
- package/build/internal/es/meta.mjs +213 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
// src/comments-resource-v1-rating-ratings.universal.ts
|
|
2
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
+
import {
|
|
4
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
5
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
6
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
7
|
+
|
|
8
|
+
// src/comments-resource-v1-rating-ratings.http.ts
|
|
9
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
11
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
12
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
13
|
+
function resolveWixCommentsRatingsV1CommentsRatingsUrl(opts) {
|
|
14
|
+
const domainToMappings = {
|
|
15
|
+
_: [
|
|
16
|
+
{
|
|
17
|
+
srcPath: "/_api/comments-ratings",
|
|
18
|
+
destPath: ""
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"*.dev.wix-code.com": [
|
|
22
|
+
{
|
|
23
|
+
srcPath: "/_api/comments-ratings",
|
|
24
|
+
destPath: ""
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"dev._base_domain_": [
|
|
28
|
+
{
|
|
29
|
+
srcPath: "/_api/comments-ratings",
|
|
30
|
+
destPath: ""
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
35
|
+
}
|
|
36
|
+
var PACKAGE_NAME = "@wix/auto_sdk_comments_ratings";
|
|
37
|
+
function createRating(payload) {
|
|
38
|
+
function __createRating({ host }) {
|
|
39
|
+
const metadata = {
|
|
40
|
+
entityFqdn: "wix.comments.resource.v1.rating",
|
|
41
|
+
method: "POST",
|
|
42
|
+
methodFqn: "wix.comments.ratings.v1.CommentsRatings.CreateRating",
|
|
43
|
+
packageName: PACKAGE_NAME,
|
|
44
|
+
migrationOptions: {
|
|
45
|
+
optInTransformResponse: true
|
|
46
|
+
},
|
|
47
|
+
url: resolveWixCommentsRatingsV1CommentsRatingsUrl({
|
|
48
|
+
protoPath: "/v1/comment/resource/{resourceRating.resourceId}/rating",
|
|
49
|
+
data: payload,
|
|
50
|
+
host
|
|
51
|
+
}),
|
|
52
|
+
data: payload
|
|
53
|
+
};
|
|
54
|
+
return metadata;
|
|
55
|
+
}
|
|
56
|
+
return __createRating;
|
|
57
|
+
}
|
|
58
|
+
function removeMyRating(payload) {
|
|
59
|
+
function __removeMyRating({ host }) {
|
|
60
|
+
const metadata = {
|
|
61
|
+
entityFqdn: "wix.comments.resource.v1.rating",
|
|
62
|
+
method: "DELETE",
|
|
63
|
+
methodFqn: "wix.comments.ratings.v1.CommentsRatings.RemoveMyRating",
|
|
64
|
+
packageName: PACKAGE_NAME,
|
|
65
|
+
migrationOptions: {
|
|
66
|
+
optInTransformResponse: true
|
|
67
|
+
},
|
|
68
|
+
url: resolveWixCommentsRatingsV1CommentsRatingsUrl({
|
|
69
|
+
protoPath: "/v1/comment/resource/{resourceId}/rating/my",
|
|
70
|
+
data: payload,
|
|
71
|
+
host
|
|
72
|
+
}),
|
|
73
|
+
params: toURLSearchParams(payload)
|
|
74
|
+
};
|
|
75
|
+
return metadata;
|
|
76
|
+
}
|
|
77
|
+
return __removeMyRating;
|
|
78
|
+
}
|
|
79
|
+
function getMyRating(payload) {
|
|
80
|
+
function __getMyRating({ host }) {
|
|
81
|
+
const metadata = {
|
|
82
|
+
entityFqdn: "wix.comments.resource.v1.rating",
|
|
83
|
+
method: "GET",
|
|
84
|
+
methodFqn: "wix.comments.ratings.v1.CommentsRatings.GetMyRating",
|
|
85
|
+
packageName: PACKAGE_NAME,
|
|
86
|
+
migrationOptions: {
|
|
87
|
+
optInTransformResponse: true
|
|
88
|
+
},
|
|
89
|
+
url: resolveWixCommentsRatingsV1CommentsRatingsUrl({
|
|
90
|
+
protoPath: "/v1/comment/resource/{resourceId}/rating/my",
|
|
91
|
+
data: payload,
|
|
92
|
+
host
|
|
93
|
+
}),
|
|
94
|
+
params: toURLSearchParams(payload)
|
|
95
|
+
};
|
|
96
|
+
return metadata;
|
|
97
|
+
}
|
|
98
|
+
return __getMyRating;
|
|
99
|
+
}
|
|
100
|
+
function getResourceSummary(payload) {
|
|
101
|
+
function __getResourceSummary({ host }) {
|
|
102
|
+
const metadata = {
|
|
103
|
+
entityFqdn: "wix.comments.resource.v1.rating",
|
|
104
|
+
method: "GET",
|
|
105
|
+
methodFqn: "wix.comments.ratings.v1.CommentsRatings.GetResourceSummary",
|
|
106
|
+
packageName: PACKAGE_NAME,
|
|
107
|
+
migrationOptions: {
|
|
108
|
+
optInTransformResponse: true
|
|
109
|
+
},
|
|
110
|
+
url: resolveWixCommentsRatingsV1CommentsRatingsUrl({
|
|
111
|
+
protoPath: "/v1/comment/resource/{resourceId}/summary",
|
|
112
|
+
data: payload,
|
|
113
|
+
host
|
|
114
|
+
}),
|
|
115
|
+
params: toURLSearchParams(payload),
|
|
116
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
117
|
+
{
|
|
118
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
119
|
+
paths: [{ path: "average" }]
|
|
120
|
+
}
|
|
121
|
+
])
|
|
122
|
+
};
|
|
123
|
+
return metadata;
|
|
124
|
+
}
|
|
125
|
+
return __getResourceSummary;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// src/comments-resource-v1-rating-ratings.universal.ts
|
|
129
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
130
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
131
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
132
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
133
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
134
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
135
|
+
return WebhookIdentityType2;
|
|
136
|
+
})(WebhookIdentityType || {});
|
|
137
|
+
async function createRating2(resourceId, options) {
|
|
138
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
139
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
140
|
+
resourceRating: { ...options?.resourceRating, resourceId }
|
|
141
|
+
});
|
|
142
|
+
const reqOpts = createRating(payload);
|
|
143
|
+
sideEffects?.onSiteCall?.();
|
|
144
|
+
try {
|
|
145
|
+
const result = await httpClient.request(reqOpts);
|
|
146
|
+
sideEffects?.onSuccess?.(result);
|
|
147
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
148
|
+
} catch (err) {
|
|
149
|
+
const transformedError = sdkTransformError(
|
|
150
|
+
err,
|
|
151
|
+
{
|
|
152
|
+
spreadPathsToArguments: { resourceRating: "$[1].resourceRating" },
|
|
153
|
+
explicitPathsToArguments: { "resourceRating.resourceId": "$[0]" },
|
|
154
|
+
singleArgumentUnchanged: false
|
|
155
|
+
},
|
|
156
|
+
["resourceId", "options"]
|
|
157
|
+
);
|
|
158
|
+
sideEffects?.onError?.(err);
|
|
159
|
+
throw transformedError;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async function removeMyRating2(resourceId, options) {
|
|
163
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
164
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
165
|
+
resourceId,
|
|
166
|
+
ratingContext: options?.ratingContext
|
|
167
|
+
});
|
|
168
|
+
const reqOpts = removeMyRating(payload);
|
|
169
|
+
sideEffects?.onSiteCall?.();
|
|
170
|
+
try {
|
|
171
|
+
const result = await httpClient.request(reqOpts);
|
|
172
|
+
sideEffects?.onSuccess?.(result);
|
|
173
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
174
|
+
} catch (err) {
|
|
175
|
+
const transformedError = sdkTransformError(
|
|
176
|
+
err,
|
|
177
|
+
{
|
|
178
|
+
spreadPathsToArguments: {},
|
|
179
|
+
explicitPathsToArguments: {
|
|
180
|
+
resourceId: "$[0]",
|
|
181
|
+
ratingContext: "$[1].ratingContext"
|
|
182
|
+
},
|
|
183
|
+
singleArgumentUnchanged: false
|
|
184
|
+
},
|
|
185
|
+
["resourceId", "options"]
|
|
186
|
+
);
|
|
187
|
+
sideEffects?.onError?.(err);
|
|
188
|
+
throw transformedError;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
async function getMyRating2(resourceId, options) {
|
|
192
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
193
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
194
|
+
resourceId,
|
|
195
|
+
ratingContext: options?.ratingContext
|
|
196
|
+
});
|
|
197
|
+
const reqOpts = getMyRating(payload);
|
|
198
|
+
sideEffects?.onSiteCall?.();
|
|
199
|
+
try {
|
|
200
|
+
const result = await httpClient.request(reqOpts);
|
|
201
|
+
sideEffects?.onSuccess?.(result);
|
|
202
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
203
|
+
} catch (err) {
|
|
204
|
+
const transformedError = sdkTransformError(
|
|
205
|
+
err,
|
|
206
|
+
{
|
|
207
|
+
spreadPathsToArguments: {},
|
|
208
|
+
explicitPathsToArguments: {
|
|
209
|
+
resourceId: "$[0]",
|
|
210
|
+
ratingContext: "$[1].ratingContext"
|
|
211
|
+
},
|
|
212
|
+
singleArgumentUnchanged: false
|
|
213
|
+
},
|
|
214
|
+
["resourceId", "options"]
|
|
215
|
+
);
|
|
216
|
+
sideEffects?.onError?.(err);
|
|
217
|
+
throw transformedError;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
async function getResourceSummary2(resourceId, options) {
|
|
221
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
222
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
223
|
+
resourceId,
|
|
224
|
+
ratingContext: options?.ratingContext
|
|
225
|
+
});
|
|
226
|
+
const reqOpts = getResourceSummary(payload);
|
|
227
|
+
sideEffects?.onSiteCall?.();
|
|
228
|
+
try {
|
|
229
|
+
const result = await httpClient.request(reqOpts);
|
|
230
|
+
sideEffects?.onSuccess?.(result);
|
|
231
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
232
|
+
} catch (err) {
|
|
233
|
+
const transformedError = sdkTransformError(
|
|
234
|
+
err,
|
|
235
|
+
{
|
|
236
|
+
spreadPathsToArguments: {},
|
|
237
|
+
explicitPathsToArguments: {
|
|
238
|
+
resourceId: "$[0]",
|
|
239
|
+
ratingContext: "$[1].ratingContext"
|
|
240
|
+
},
|
|
241
|
+
singleArgumentUnchanged: false
|
|
242
|
+
},
|
|
243
|
+
["resourceId", "options"]
|
|
244
|
+
);
|
|
245
|
+
sideEffects?.onError?.(err);
|
|
246
|
+
throw transformedError;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
export {
|
|
250
|
+
WebhookIdentityType,
|
|
251
|
+
createRating2 as createRating,
|
|
252
|
+
getMyRating2 as getMyRating,
|
|
253
|
+
getResourceSummary2 as getResourceSummary,
|
|
254
|
+
removeMyRating2 as removeMyRating
|
|
255
|
+
};
|
|
256
|
+
//# sourceMappingURL=index.typings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/comments-resource-v1-rating-ratings.universal.ts","../../src/comments-resource-v1-rating-ratings.http.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 ambassadorWixCommentsResourceV1Rating from './comments-resource-v1-rating-ratings.http.js';\n\nexport interface V1CommentResourceRating\n extends V1CommentResourceRatingOwnerOneOf {\n /**\n * Visitor Id\n * @readonly\n */\n visitorId?: string | null;\n /**\n * Member Id\n * @readonly\n */\n memberId?: string | null;\n /**\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** Rating Context */\n ratingContext?: RatingContext;\n /** Resource Id */\n resourceId?: string | null;\n /**\n * Rating Value\n * @min 1\n * @max 5\n */\n rating?: number | null;\n /** Published comments count */\n publishedCommentCount?: number;\n}\n\n/** @oneof */\nexport interface V1CommentResourceRatingOwnerOneOf {\n /**\n * Visitor Id\n * @readonly\n */\n visitorId?: string | null;\n /**\n * Member Id\n * @readonly\n */\n memberId?: string | null;\n}\n\nexport interface RatingContext {\n /**\n * Context Application Definition Id\n * @format GUID\n */\n appDefId?: string | null;\n /** Context Id */\n contextId?: string | null;\n /** Context Type */\n contextType?: string | null;\n}\n\nexport interface CommentResourceRatingChanged {\n /** Resource rating */\n resourceRating?: V1CommentResourceRating;\n}\n\nexport interface CommentResourceRatingDeleted {\n /** resource rating */\n resourceRating?: V1CommentResourceRating;\n}\n\nexport interface V1CreateRatingRequest {\n /** Resource rating to be created or updated */\n resourceRating?: V1CommentResourceRating;\n}\n\nexport interface V1CreateRatingResponse {\n /** Created/Updated resource rating */\n resourceRating?: V1CommentResourceRating;\n}\n\nexport interface RemoveMyRatingRequest {\n /** Rating context */\n ratingContext?: RatingContext;\n /** Resource Id */\n resourceId: string | null;\n}\n\nexport interface RemoveMyRatingResponse {}\n\nexport interface V1GetMyRatingRequest {\n /** Rating context */\n ratingContext?: RatingContext;\n /** Resource Id */\n resourceId: string | null;\n}\n\nexport interface V1GetMyRatingResponse {\n /** Current member/visitor resource rating */\n resourceRating?: V1CommentResourceRating;\n}\n\nexport interface GetResourceSummaryRequest {\n /** Rating context */\n ratingContext?: RatingContext;\n /** Resource Id */\n resourceId: string | null;\n}\n\nexport interface GetResourceSummaryResponse {\n /** Average rating score */\n average?: number;\n /** Total amount of ratings */\n total?: number;\n /** Breakdown of how many of each rating is there */\n breakdown?: Record<number, number>;\n}\n\nexport interface MoveRatingRequest {\n /** Context for the comment that is being moved */\n moveContext?: MoveContext;\n /** New resourceId to which the comment is being moved to */\n newResourceId?: string;\n /** New contextId to which the comment is being moved to */\n newContextId?: string;\n}\n\nexport interface MoveContext {\n /**\n * Comment ID\n * @format GUID\n */\n commentId?: string;\n /**\n * MetaSite ID\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * App ID\n * @format GUID\n */\n appDefId?: string;\n /**\n * Context ID\n * @maxLength 300\n */\n contextId?: string;\n /**\n * Context type\n * @maxLength 300\n */\n contextType?: string;\n /**\n * Resource ID\n * @maxLength 128\n */\n resourceId?: string;\n /** Member ID */\n memberId?: string | null;\n /** Visitor ID */\n visitorId?: string | null;\n}\n\nexport interface MoveRatingResponse {\n /** Moved resource rating */\n resourceRating?: V1CommentResourceRating;\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 Empty {}\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 CommentResourceRating extends CommentResourceRatingOwnerOneOf {\n visitorId?: string | null;\n memberId?: string | null;\n /**\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** @format GUID */\n appDefId?: string | null;\n resourceId?: string | null;\n /**\n * @min 1\n * @max 5\n */\n rating?: number | null;\n}\n\n/** @oneof */\nexport interface CommentResourceRatingOwnerOneOf {\n visitorId?: string | null;\n memberId?: string | null;\n}\n\nexport interface CreateRatingRequest {\n resourceRating?: CommentResourceRating;\n}\n\nexport interface CreateRatingResponse {\n resourceRating?: CommentResourceRating;\n}\n\nexport interface GetMyRatingRequest {\n /** @format GUID */\n appDefId?: string | null;\n resourceId?: string | null;\n}\n\nexport interface GetMyRatingResponse {\n resourceRating?: CommentResourceRating;\n}\n\n/** @docsIgnore */\nexport type RemoveMyRatingApplicationErrors = {\n code?: 'RATING_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetMyRatingApplicationErrors = {\n code?: 'RATING_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface RatingCommentResourceRatingChangedEnvelope {\n data: CommentResourceRatingChanged;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.comments.resource.v1.rating_comment_resource_rating_changed\n * @serviceIdentifier wix.comments.ratings.v1.CommentsRatings\n * @slug comment_resource_rating_changed\n * @documentationMaturity preview\n */\nexport declare function onRatingCommentResourceRatingChanged(\n handler: (\n event: RatingCommentResourceRatingChangedEnvelope\n ) => void | Promise<void>\n): void;\n\nexport interface RatingCommentResourceRatingDeletedEnvelope {\n data: CommentResourceRatingDeleted;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.comments.resource.v1.rating_comment_resource_rating_deleted\n * @serviceIdentifier wix.comments.ratings.v1.CommentsRatings\n * @slug comment_resource_rating_deleted\n * @documentationMaturity preview\n */\nexport declare function onRatingCommentResourceRatingDeleted(\n handler: (\n event: RatingCommentResourceRatingDeletedEnvelope\n ) => void | Promise<void>\n): void;\n\n/**\n * Creates resource rating, if member/visitor has already created an rating it will be updated with provided value\n * @param resourceId - Resource Id\n * @public\n * @documentationMaturity preview\n * @requiredField options.resourceRating.rating\n * @requiredField options.resourceRating.ratingContext.appDefId\n * @requiredField options.resourceRating.ratingContext.contextId\n * @requiredField resourceId\n * @fqn wix.comments.ratings.v1.CommentsRatings.CreateRating\n */\nexport async function createRating(\n resourceId: string,\n options?: NonNullablePaths<\n CreateRatingOptions,\n | `resourceRating.rating`\n | `resourceRating.ratingContext.appDefId`\n | `resourceRating.ratingContext.contextId`,\n 4\n >\n): Promise<\n NonNullablePaths<\n V1CreateRatingResponse,\n `resourceRating.publishedCommentCount`,\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 resourceRating: { ...options?.resourceRating, resourceId: resourceId },\n });\n\n const reqOpts = ambassadorWixCommentsResourceV1Rating.createRating(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: { resourceRating: '$[1].resourceRating' },\n explicitPathsToArguments: { 'resourceRating.resourceId': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['resourceId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateRatingOptions {\n resourceRating?: {\n /**\n * Visitor Id\n * @readonly\n */\n visitorId?: string | null;\n /**\n * Member Id\n * @readonly\n */\n memberId?: string | null;\n /**\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** Rating Context */\n ratingContext?: RatingContext;\n /**\n * Rating Value\n * @min 1\n * @max 5\n */\n rating?: number | null;\n /** Published comments count */\n publishedCommentCount?: number;\n };\n}\n\n/**\n * Removes rating for current caller\n * @param resourceId - Resource Id\n * @public\n * @documentationMaturity preview\n * @requiredField options.ratingContext.appDefId\n * @requiredField options.ratingContext.contextId\n * @requiredField resourceId\n * @fqn wix.comments.ratings.v1.CommentsRatings.RemoveMyRating\n */\nexport async function removeMyRating(\n resourceId: string,\n options?: NonNullablePaths<\n RemoveMyRatingOptions,\n `ratingContext.appDefId` | `ratingContext.contextId`,\n 3\n >\n): Promise<\n void & {\n __applicationErrorsType?: RemoveMyRatingApplicationErrors;\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 resourceId: resourceId,\n ratingContext: options?.ratingContext,\n });\n\n const reqOpts = ambassadorWixCommentsResourceV1Rating.removeMyRating(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 resourceId: '$[0]',\n ratingContext: '$[1].ratingContext',\n },\n singleArgumentUnchanged: false,\n },\n ['resourceId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RemoveMyRatingOptions {\n /** Rating context */\n ratingContext?: RatingContext;\n}\n\n/**\n * Returns rating for current caller\n * @param resourceId - Resource Id\n * @public\n * @documentationMaturity preview\n * @requiredField options.ratingContext.appDefId\n * @requiredField options.ratingContext.contextId\n * @requiredField resourceId\n * @fqn wix.comments.ratings.v1.CommentsRatings.GetMyRating\n */\nexport async function getMyRating(\n resourceId: string,\n options?: NonNullablePaths<\n GetMyRatingOptions,\n `ratingContext.appDefId` | `ratingContext.contextId`,\n 3\n >\n): Promise<\n NonNullablePaths<\n V1GetMyRatingResponse,\n `resourceRating.publishedCommentCount`,\n 3\n > & {\n __applicationErrorsType?: GetMyRatingApplicationErrors;\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 resourceId: resourceId,\n ratingContext: options?.ratingContext,\n });\n\n const reqOpts = ambassadorWixCommentsResourceV1Rating.getMyRating(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 resourceId: '$[0]',\n ratingContext: '$[1].ratingContext',\n },\n singleArgumentUnchanged: false,\n },\n ['resourceId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetMyRatingOptions {\n /** Rating context */\n ratingContext?: RatingContext;\n}\n\n/** @param resourceId - Resource Id\n * @public\n * @documentationMaturity preview\n * @requiredField options.ratingContext.appDefId\n * @requiredField options.ratingContext.contextId\n * @requiredField resourceId\n * @fqn wix.comments.ratings.v1.CommentsRatings.GetResourceSummary\n */\nexport async function getResourceSummary(\n resourceId: string,\n options?: NonNullablePaths<\n GetResourceSummaryOptions,\n `ratingContext.appDefId` | `ratingContext.contextId`,\n 3\n >\n): Promise<\n NonNullablePaths<GetResourceSummaryResponse, `average` | `total`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n resourceId: resourceId,\n ratingContext: options?.ratingContext,\n });\n\n const reqOpts =\n ambassadorWixCommentsResourceV1Rating.getResourceSummary(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 resourceId: '$[0]',\n ratingContext: '$[1].ratingContext',\n },\n singleArgumentUnchanged: false,\n },\n ['resourceId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetResourceSummaryOptions {\n /** Rating context */\n ratingContext?: RatingContext;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixCommentsRatingsV1CommentsRatingsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/comments-ratings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/comments-ratings',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/comments-ratings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_comments_ratings';\n\n/** Creates resource rating, if member/visitor has already created an rating it will be updated with provided value */\nexport function createRating(payload: object): RequestOptionsFactory<any> {\n function __createRating({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.comments.resource.v1.rating',\n method: 'POST' as any,\n methodFqn: 'wix.comments.ratings.v1.CommentsRatings.CreateRating',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCommentsRatingsV1CommentsRatingsUrl({\n protoPath: '/v1/comment/resource/{resourceRating.resourceId}/rating',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createRating;\n}\n\n/** Removes rating for current caller */\nexport function removeMyRating(payload: object): RequestOptionsFactory<any> {\n function __removeMyRating({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.comments.resource.v1.rating',\n method: 'DELETE' as any,\n methodFqn: 'wix.comments.ratings.v1.CommentsRatings.RemoveMyRating',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCommentsRatingsV1CommentsRatingsUrl({\n protoPath: '/v1/comment/resource/{resourceId}/rating/my',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __removeMyRating;\n}\n\n/** Returns rating for current caller */\nexport function getMyRating(payload: object): RequestOptionsFactory<any> {\n function __getMyRating({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.comments.resource.v1.rating',\n method: 'GET' as any,\n methodFqn: 'wix.comments.ratings.v1.CommentsRatings.GetMyRating',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCommentsRatingsV1CommentsRatingsUrl({\n protoPath: '/v1/comment/resource/{resourceId}/rating/my',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getMyRating;\n}\n\nexport function getResourceSummary(\n payload: object\n): RequestOptionsFactory<any> {\n function __getResourceSummary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.comments.resource.v1.rating',\n method: 'GET' as any,\n methodFqn: 'wix.comments.ratings.v1.CommentsRatings.GetResourceSummary',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCommentsRatingsV1CommentsRatingsUrl({\n protoPath: '/v1/comment/resource/{resourceId}/summary',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'average' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getResourceSummary;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,aAAa,SAA6C;AACxE,WAAS,eAAe,EAAE,KAAK,GAAQ;AACrC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,8CAA8C;AAAA,QACjD,WAAW;AAAA,QACX,MAAM;AAA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