@wix/auto_sdk_marketplace-projects_marketplace-projects 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 +38 -0
- package/build/cjs/index.js +454 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1183 -0
- package/build/cjs/index.typings.js +424 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1117 -0
- package/build/cjs/meta.js +403 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +335 -0
- package/build/cjs/schemas.js +506 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +38 -0
- package/build/es/index.mjs +416 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1183 -0
- package/build/es/index.typings.mjs +386 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1117 -0
- package/build/es/meta.mjs +362 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +335 -0
- package/build/es/schemas.mjs +464 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +38 -0
- package/build/internal/cjs/index.js +454 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1183 -0
- package/build/internal/cjs/index.typings.js +424 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1117 -0
- package/build/internal/cjs/meta.js +403 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +335 -0
- package/build/internal/cjs/schemas.js +506 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +38 -0
- package/build/internal/es/index.mjs +416 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1183 -0
- package/build/internal/es/index.typings.mjs +386 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1117 -0
- package/build/internal/es/meta.mjs +362 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +335 -0
- package/build/internal/es/schemas.mjs +464 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { GetProjectResponse, QueryV2, QueryProjectResponse, UpdateProject, UpdateProjectResponse } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, AddressLocation, Aggregation, AggregationFacet, AggregationWithLiterals, AvgAggregationResponse, Bucket, CalendarInterval, CalendarIntervalWithLiterals, CancellationInfo, CancellationReason, CancellationReasonWithLiterals, CommonAddressLocation, CountDistinctAggregationResponse, CountProjectReviewsRequest, CountProjectReviewsResponse, CreateProjectFromBriefRequest, CreateProjectRequest, CreateProjectResponse, Cursor, CursorPaging, Cursors, DateHistogramFacet, DateHistogramFacetIntervalOneOf, DateHistogramResponse, DeleteByFilterOperation, DeleteByIdsOperation, DeleteProjectRequest, DeleteProjectResponse, Direction, DirectionWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FacetClause, FacetClauseClauseOneOf, FacetClauses, FacetCountResponse, FacetsResponse, FacetsResponseResponseOneOf, GeotileGridFacet, GeotileGridResponse, GetPartnerRatingRequest, GetPartnerRatingResponse, GetProjectRequest, Group, HierarchicalAggregationResponse, HierarchicalFacet, HierarchicalFacetClauseOneOf, IdentificationData, IdentificationDataIdOneOf, InProgressProjectCanceledEvent, IncludeMissing, IndexProjectRequest, IndexProjectResponse, IndexProviderProjectsRequest, IndexProviderProjectsResponse, InternalDocument, InternalDocumentUpdateByFilterOperation, InternalDocumentUpdateOperation, InternalUpdateExistingOperation, MarketplacePartnerContactedUser, MaxAggregationResponse, MaxDateAggregationResponse, MessageEnvelope, MinAggregationResponse, MinDateAggregationResponse, MinMaxAggregationResponse, NestedFieldFacet, NestedFieldFacetFacetOneOf, NextPageResponse, OrderingClause, OrderingClauseDirection, OrderingClauseDirectionWithLiterals, OrderingClauses, Paging, PagingMetadataV2, PartnerRating, Project, ProjectReview, ProjectView, Projects, QueryProjectRequest, QueryProjectReviewsRequest, QueryProjectReviewsResponse, QueryV2PagingMethodOneOf, Range, RangeFacetCountResponse, RangeHistogramFacet, RangeHistogramResponse, Reply, RestoreInfo, Review, ReviewStatus, ReviewStatusWithLiterals, Reviews, Score, SearchPaging, SearchProjectsRequest, SearchProjectsResponse, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Status, StatusTimelineItem, StatusWithLiterals, SumAggregationResponse, SyncAllPartnersRatingRequest, SyncAllPartnersRatingResponse, SyncPartnerRatingRequest, SyncPartnerRatingResponse, TermAggregationResponse, TermFacet, TermOrdering, TopHitsAggregationResponse, TopHitsFacet, TriggerCreateProjectFromBriefRequest, TriggerCreateProjectFromBriefResponse, Type, TypeWithLiterals, UpdateInternalDocumentsEvent, UpdateInternalDocumentsEventOperationOneOf, UpdateProjectRequest, Value, VersionedDeleteByIdsOperation, VersionedDocumentId, VersionedDocumentUpdateOperation, VersioningMode, VersioningModeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
|
|
6
|
+
interface GetProjectSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a Project by id.
|
|
9
|
+
* @param - Id of the Project to retrieve
|
|
10
|
+
*/
|
|
11
|
+
(projectId: string): Promise<NonNullablePaths<GetProjectResponse, `project.status` | `project.review.reply.text` | `project.statusTimeline` | `project.statusTimeline.${number}.status` | `project.cancellationInfo.reason` | `project.source`, 5>>;
|
|
12
|
+
}
|
|
13
|
+
declare function queryProject$1(httpClient: HttpClient): QueryProjectSignature;
|
|
14
|
+
interface QueryProjectSignature {
|
|
15
|
+
/**
|
|
16
|
+
* Queries Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
17
|
+
* @param - WQL expression
|
|
18
|
+
*/
|
|
19
|
+
(query: QueryV2): Promise<NonNullablePaths<QueryProjectResponse, `projects` | `projects.${number}.status` | `projects.${number}.review.reply.text` | `projects.${number}.cancellationInfo.reason` | `projects.${number}.source`, 6>>;
|
|
20
|
+
}
|
|
21
|
+
declare function updateProject$1(httpClient: HttpClient): UpdateProjectSignature;
|
|
22
|
+
interface UpdateProjectSignature {
|
|
23
|
+
/**
|
|
24
|
+
* partner can update
|
|
25
|
+
* 1. status
|
|
26
|
+
* 2. cancellation reason
|
|
27
|
+
* 3. budget, msid, snapshot
|
|
28
|
+
* 4. reply to review
|
|
29
|
+
* @param - Project ID
|
|
30
|
+
*/
|
|
31
|
+
(_id: string, project: NonNullablePaths<UpdateProject, `revision`, 2>): Promise<NonNullablePaths<UpdateProjectResponse, `project.status` | `project.review.reply.text` | `project.statusTimeline` | `project.statusTimeline.${number}.status` | `project.cancellationInfo.reason` | `project.source`, 5>>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const getProject: MaybeContext<BuildRESTFunction<typeof getProject$1> & typeof getProject$1>;
|
|
35
|
+
declare const queryProject: MaybeContext<BuildRESTFunction<typeof queryProject$1> & typeof queryProject$1>;
|
|
36
|
+
declare const updateProject: MaybeContext<BuildRESTFunction<typeof updateProject$1> & typeof updateProject$1>;
|
|
37
|
+
|
|
38
|
+
export { GetProjectResponse, QueryProjectResponse, QueryV2, UpdateProject, UpdateProjectResponse, getProject, queryProject, updateProject };
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
Aggregation: () => Aggregation,
|
|
24
|
+
CalendarInterval: () => CalendarInterval,
|
|
25
|
+
CancellationReason: () => CancellationReason,
|
|
26
|
+
Direction: () => Direction,
|
|
27
|
+
OrderingClauseDirection: () => OrderingClauseDirection,
|
|
28
|
+
ReviewStatus: () => ReviewStatus,
|
|
29
|
+
SortOrder: () => SortOrder,
|
|
30
|
+
Source: () => Source,
|
|
31
|
+
Status: () => Status,
|
|
32
|
+
Type: () => Type,
|
|
33
|
+
VersioningMode: () => VersioningMode,
|
|
34
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
35
|
+
getProject: () => getProject4,
|
|
36
|
+
queryProject: () => queryProject4,
|
|
37
|
+
updateProject: () => updateProject4
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(index_exports);
|
|
40
|
+
|
|
41
|
+
// src/partners-marketplace-v1-project-marketplace-projects.universal.ts
|
|
42
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
43
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
44
|
+
|
|
45
|
+
// src/partners-marketplace-v1-project-marketplace-projects.http.ts
|
|
46
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
47
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
48
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
49
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
50
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
51
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
52
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
53
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
54
|
+
function resolveWixPartnersMarketplaceProjectsV1ProjectsUrl(opts) {
|
|
55
|
+
const domainToMappings = {
|
|
56
|
+
"api._api_base_domain_": [
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/marketplace-projects",
|
|
59
|
+
destPath: ""
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"manage._base_domain_": [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/_api/marketplace-projects",
|
|
65
|
+
destPath: ""
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"www.wixapis.com": [
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/partners/marketplace/v1/projects",
|
|
71
|
+
destPath: "/v1/projects"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"*.dev.wix-code.com": [
|
|
75
|
+
{
|
|
76
|
+
srcPath: "/partners/marketplace/v1/projects",
|
|
77
|
+
destPath: "/v1/projects"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
_: [
|
|
81
|
+
{
|
|
82
|
+
srcPath: "/partners/marketplace/v1/projects",
|
|
83
|
+
destPath: "/v1/projects"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
};
|
|
87
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
88
|
+
}
|
|
89
|
+
var PACKAGE_NAME = "@wix/auto_sdk_marketplace-projects_marketplace-projects";
|
|
90
|
+
function getProject(payload) {
|
|
91
|
+
function __getProject({ host }) {
|
|
92
|
+
const metadata = {
|
|
93
|
+
entityFqdn: "wix.partners.marketplace.v1.project",
|
|
94
|
+
method: "GET",
|
|
95
|
+
methodFqn: "wix.partners.marketplace.projects.v1.Projects.GetProject",
|
|
96
|
+
packageName: PACKAGE_NAME,
|
|
97
|
+
migrationOptions: {
|
|
98
|
+
optInTransformResponse: true
|
|
99
|
+
},
|
|
100
|
+
url: resolveWixPartnersMarketplaceProjectsV1ProjectsUrl({
|
|
101
|
+
protoPath: "/v1/projects/{projectId}",
|
|
102
|
+
data: payload,
|
|
103
|
+
host
|
|
104
|
+
}),
|
|
105
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
106
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
107
|
+
{
|
|
108
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
109
|
+
paths: [
|
|
110
|
+
{ path: "project.createdDate" },
|
|
111
|
+
{ path: "project.updatedDate" },
|
|
112
|
+
{ path: "project.expirationDate" },
|
|
113
|
+
{ path: "project.review.date" },
|
|
114
|
+
{ path: "project.review.reply.date" },
|
|
115
|
+
{ path: "project.statusTimeline.date" }
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
120
|
+
paths: [
|
|
121
|
+
{ path: "project.budget" },
|
|
122
|
+
{ path: "project.review.score.average" }
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
])
|
|
126
|
+
};
|
|
127
|
+
return metadata;
|
|
128
|
+
}
|
|
129
|
+
return __getProject;
|
|
130
|
+
}
|
|
131
|
+
function queryProject(payload) {
|
|
132
|
+
function __queryProject({ host }) {
|
|
133
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
134
|
+
{
|
|
135
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
136
|
+
paths: [
|
|
137
|
+
{ path: "query.sort.origin.latitude" },
|
|
138
|
+
{ path: "query.sort.origin.longitude" }
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
]);
|
|
142
|
+
const metadata = {
|
|
143
|
+
entityFqdn: "wix.partners.marketplace.v1.project",
|
|
144
|
+
method: "POST",
|
|
145
|
+
methodFqn: "wix.partners.marketplace.projects.v1.Projects.QueryProject",
|
|
146
|
+
packageName: PACKAGE_NAME,
|
|
147
|
+
migrationOptions: {
|
|
148
|
+
optInTransformResponse: true
|
|
149
|
+
},
|
|
150
|
+
url: resolveWixPartnersMarketplaceProjectsV1ProjectsUrl({
|
|
151
|
+
protoPath: "/v1/projects/query",
|
|
152
|
+
data: serializedData,
|
|
153
|
+
host
|
|
154
|
+
}),
|
|
155
|
+
data: serializedData,
|
|
156
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
157
|
+
{
|
|
158
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
159
|
+
paths: [
|
|
160
|
+
{ path: "projects.createdDate" },
|
|
161
|
+
{ path: "projects.updatedDate" },
|
|
162
|
+
{ path: "projects.expirationDate" },
|
|
163
|
+
{ path: "projects.review.date" },
|
|
164
|
+
{ path: "projects.review.reply.date" },
|
|
165
|
+
{ path: "projects.statusTimeline.date" }
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
170
|
+
paths: [
|
|
171
|
+
{ path: "projects.budget" },
|
|
172
|
+
{ path: "projects.review.score.average" }
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
])
|
|
176
|
+
};
|
|
177
|
+
return metadata;
|
|
178
|
+
}
|
|
179
|
+
return __queryProject;
|
|
180
|
+
}
|
|
181
|
+
function updateProject(payload) {
|
|
182
|
+
function __updateProject({ host }) {
|
|
183
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
184
|
+
{
|
|
185
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
186
|
+
paths: [{ path: "mask" }]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
190
|
+
paths: [
|
|
191
|
+
{ path: "project.createdDate" },
|
|
192
|
+
{ path: "project.updatedDate" },
|
|
193
|
+
{ path: "project.expirationDate" },
|
|
194
|
+
{ path: "project.review.date" },
|
|
195
|
+
{ path: "project.review.reply.date" },
|
|
196
|
+
{ path: "project.statusTimeline.date" }
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
201
|
+
paths: [
|
|
202
|
+
{ path: "project.budget" },
|
|
203
|
+
{ path: "project.review.score.average" }
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
]);
|
|
207
|
+
const metadata = {
|
|
208
|
+
entityFqdn: "wix.partners.marketplace.v1.project",
|
|
209
|
+
method: "PATCH",
|
|
210
|
+
methodFqn: "wix.partners.marketplace.projects.v1.Projects.UpdateProject",
|
|
211
|
+
packageName: PACKAGE_NAME,
|
|
212
|
+
migrationOptions: {
|
|
213
|
+
optInTransformResponse: true
|
|
214
|
+
},
|
|
215
|
+
url: resolveWixPartnersMarketplaceProjectsV1ProjectsUrl({
|
|
216
|
+
protoPath: "/v1/projects/{project.id}",
|
|
217
|
+
data: serializedData,
|
|
218
|
+
host
|
|
219
|
+
}),
|
|
220
|
+
data: serializedData,
|
|
221
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
222
|
+
{
|
|
223
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
224
|
+
paths: [
|
|
225
|
+
{ path: "project.createdDate" },
|
|
226
|
+
{ path: "project.updatedDate" },
|
|
227
|
+
{ path: "project.expirationDate" },
|
|
228
|
+
{ path: "project.review.date" },
|
|
229
|
+
{ path: "project.review.reply.date" },
|
|
230
|
+
{ path: "project.statusTimeline.date" }
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
235
|
+
paths: [
|
|
236
|
+
{ path: "project.budget" },
|
|
237
|
+
{ path: "project.review.score.average" }
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
])
|
|
241
|
+
};
|
|
242
|
+
return metadata;
|
|
243
|
+
}
|
|
244
|
+
return __updateProject;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// src/partners-marketplace-v1-project-marketplace-projects.universal.ts
|
|
248
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
249
|
+
Status2["NEW"] = "NEW";
|
|
250
|
+
Status2["IN_DISCUSSION"] = "IN_DISCUSSION";
|
|
251
|
+
Status2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
252
|
+
Status2["COMPLETED"] = "COMPLETED";
|
|
253
|
+
Status2["CANCELED_BY_CLIENT"] = "CANCELED_BY_CLIENT";
|
|
254
|
+
Status2["CANCELED_BY_PROVIDER"] = "CANCELED_BY_PROVIDER";
|
|
255
|
+
Status2["EXPIRED"] = "EXPIRED";
|
|
256
|
+
Status2["CONTACTED"] = "CONTACTED";
|
|
257
|
+
return Status2;
|
|
258
|
+
})(Status || {});
|
|
259
|
+
var CancellationReason = /* @__PURE__ */ ((CancellationReason2) => {
|
|
260
|
+
CancellationReason2["OTHER"] = "OTHER";
|
|
261
|
+
CancellationReason2["CLIENT_NOT_RESPONDING"] = "CLIENT_NOT_RESPONDING";
|
|
262
|
+
CancellationReason2["BUDGET_IS_TOO_LOW"] = "BUDGET_IS_TOO_LOW";
|
|
263
|
+
CancellationReason2["DUPLICATE_REQUEST"] = "DUPLICATE_REQUEST";
|
|
264
|
+
CancellationReason2["REPORT_AS_SPAM"] = "REPORT_AS_SPAM";
|
|
265
|
+
CancellationReason2["DOESNT_MATCH_MY_SKILLS"] = "DOESNT_MATCH_MY_SKILLS";
|
|
266
|
+
return CancellationReason2;
|
|
267
|
+
})(CancellationReason || {});
|
|
268
|
+
var Source = /* @__PURE__ */ ((Source2) => {
|
|
269
|
+
Source2["MATCHING"] = "MATCHING";
|
|
270
|
+
Source2["EXPLORE"] = "EXPLORE";
|
|
271
|
+
Source2["AI_ASSISTANT"] = "AI_ASSISTANT";
|
|
272
|
+
return Source2;
|
|
273
|
+
})(Source || {});
|
|
274
|
+
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
275
|
+
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
276
|
+
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
277
|
+
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
278
|
+
return VersioningMode2;
|
|
279
|
+
})(VersioningMode || {});
|
|
280
|
+
var OrderingClauseDirection = /* @__PURE__ */ ((OrderingClauseDirection2) => {
|
|
281
|
+
OrderingClauseDirection2["UninitializedDirection"] = "UninitializedDirection";
|
|
282
|
+
OrderingClauseDirection2["ASC"] = "ASC";
|
|
283
|
+
OrderingClauseDirection2["DESC"] = "DESC";
|
|
284
|
+
return OrderingClauseDirection2;
|
|
285
|
+
})(OrderingClauseDirection || {});
|
|
286
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
287
|
+
Type2["COUNT"] = "COUNT";
|
|
288
|
+
Type2["VALUE"] = "VALUE";
|
|
289
|
+
return Type2;
|
|
290
|
+
})(Type || {});
|
|
291
|
+
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
292
|
+
Direction2["DESC"] = "DESC";
|
|
293
|
+
Direction2["ASC"] = "ASC";
|
|
294
|
+
return Direction2;
|
|
295
|
+
})(Direction || {});
|
|
296
|
+
var Aggregation = /* @__PURE__ */ ((Aggregation2) => {
|
|
297
|
+
Aggregation2["MIN"] = "MIN";
|
|
298
|
+
Aggregation2["MAX"] = "MAX";
|
|
299
|
+
Aggregation2["SUM"] = "SUM";
|
|
300
|
+
Aggregation2["AVG"] = "AVG";
|
|
301
|
+
Aggregation2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
302
|
+
return Aggregation2;
|
|
303
|
+
})(Aggregation || {});
|
|
304
|
+
var CalendarInterval = /* @__PURE__ */ ((CalendarInterval2) => {
|
|
305
|
+
CalendarInterval2["MINUTE"] = "MINUTE";
|
|
306
|
+
CalendarInterval2["HOUR"] = "HOUR";
|
|
307
|
+
CalendarInterval2["DAY"] = "DAY";
|
|
308
|
+
CalendarInterval2["WEEK"] = "WEEK";
|
|
309
|
+
CalendarInterval2["MONTH"] = "MONTH";
|
|
310
|
+
CalendarInterval2["QUARTER"] = "QUARTER";
|
|
311
|
+
CalendarInterval2["YEAR"] = "YEAR";
|
|
312
|
+
return CalendarInterval2;
|
|
313
|
+
})(CalendarInterval || {});
|
|
314
|
+
var ReviewStatus = /* @__PURE__ */ ((ReviewStatus2) => {
|
|
315
|
+
ReviewStatus2["NONE"] = "NONE";
|
|
316
|
+
ReviewStatus2["REVIEW"] = "REVIEW";
|
|
317
|
+
ReviewStatus2["REPLY"] = "REPLY";
|
|
318
|
+
return ReviewStatus2;
|
|
319
|
+
})(ReviewStatus || {});
|
|
320
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
321
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
322
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
323
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
324
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
325
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
326
|
+
return WebhookIdentityType2;
|
|
327
|
+
})(WebhookIdentityType || {});
|
|
328
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
329
|
+
SortOrder2["ASC"] = "ASC";
|
|
330
|
+
SortOrder2["DESC"] = "DESC";
|
|
331
|
+
return SortOrder2;
|
|
332
|
+
})(SortOrder || {});
|
|
333
|
+
async function getProject2(projectId) {
|
|
334
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
335
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
336
|
+
projectId
|
|
337
|
+
});
|
|
338
|
+
const reqOpts = getProject(payload);
|
|
339
|
+
sideEffects?.onSiteCall?.();
|
|
340
|
+
try {
|
|
341
|
+
const result = await httpClient.request(reqOpts);
|
|
342
|
+
sideEffects?.onSuccess?.(result);
|
|
343
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
344
|
+
} catch (err) {
|
|
345
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
346
|
+
err,
|
|
347
|
+
{
|
|
348
|
+
spreadPathsToArguments: {},
|
|
349
|
+
explicitPathsToArguments: { projectId: "$[0]" },
|
|
350
|
+
singleArgumentUnchanged: false
|
|
351
|
+
},
|
|
352
|
+
["projectId"]
|
|
353
|
+
);
|
|
354
|
+
sideEffects?.onError?.(err);
|
|
355
|
+
throw transformedError;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
async function queryProject2(query) {
|
|
359
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
360
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
361
|
+
const reqOpts = queryProject(payload);
|
|
362
|
+
sideEffects?.onSiteCall?.();
|
|
363
|
+
try {
|
|
364
|
+
const result = await httpClient.request(reqOpts);
|
|
365
|
+
sideEffects?.onSuccess?.(result);
|
|
366
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
367
|
+
} catch (err) {
|
|
368
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
369
|
+
err,
|
|
370
|
+
{
|
|
371
|
+
spreadPathsToArguments: {},
|
|
372
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
373
|
+
singleArgumentUnchanged: false
|
|
374
|
+
},
|
|
375
|
+
["query"]
|
|
376
|
+
);
|
|
377
|
+
sideEffects?.onError?.(err);
|
|
378
|
+
throw transformedError;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
async function updateProject2(_id, project) {
|
|
382
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
383
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
384
|
+
project: { ...project, id: _id }
|
|
385
|
+
});
|
|
386
|
+
const reqOpts = updateProject(payload);
|
|
387
|
+
sideEffects?.onSiteCall?.();
|
|
388
|
+
try {
|
|
389
|
+
const result = await httpClient.request(reqOpts);
|
|
390
|
+
sideEffects?.onSuccess?.(result);
|
|
391
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
392
|
+
} catch (err) {
|
|
393
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
394
|
+
err,
|
|
395
|
+
{
|
|
396
|
+
spreadPathsToArguments: { project: "$[1]" },
|
|
397
|
+
explicitPathsToArguments: { "project.id": "$[0]" },
|
|
398
|
+
singleArgumentUnchanged: false
|
|
399
|
+
},
|
|
400
|
+
["_id", "project"]
|
|
401
|
+
);
|
|
402
|
+
sideEffects?.onError?.(err);
|
|
403
|
+
throw transformedError;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// src/partners-marketplace-v1-project-marketplace-projects.public.ts
|
|
408
|
+
function getProject3(httpClient) {
|
|
409
|
+
return (projectId) => getProject2(
|
|
410
|
+
projectId,
|
|
411
|
+
// @ts-ignore
|
|
412
|
+
{ httpClient }
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
function queryProject3(httpClient) {
|
|
416
|
+
return (query) => queryProject2(
|
|
417
|
+
query,
|
|
418
|
+
// @ts-ignore
|
|
419
|
+
{ httpClient }
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
function updateProject3(httpClient) {
|
|
423
|
+
return (_id, project) => updateProject2(
|
|
424
|
+
_id,
|
|
425
|
+
project,
|
|
426
|
+
// @ts-ignore
|
|
427
|
+
{ httpClient }
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// src/partners-marketplace-v1-project-marketplace-projects.context.ts
|
|
432
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
433
|
+
var getProject4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getProject3);
|
|
434
|
+
var queryProject4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryProject3);
|
|
435
|
+
var updateProject4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateProject3);
|
|
436
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
437
|
+
0 && (module.exports = {
|
|
438
|
+
Aggregation,
|
|
439
|
+
CalendarInterval,
|
|
440
|
+
CancellationReason,
|
|
441
|
+
Direction,
|
|
442
|
+
OrderingClauseDirection,
|
|
443
|
+
ReviewStatus,
|
|
444
|
+
SortOrder,
|
|
445
|
+
Source,
|
|
446
|
+
Status,
|
|
447
|
+
Type,
|
|
448
|
+
VersioningMode,
|
|
449
|
+
WebhookIdentityType,
|
|
450
|
+
getProject,
|
|
451
|
+
queryProject,
|
|
452
|
+
updateProject
|
|
453
|
+
});
|
|
454
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/partners-marketplace-v1-project-marketplace-projects.universal.ts","../../src/partners-marketplace-v1-project-marketplace-projects.http.ts","../../src/partners-marketplace-v1-project-marketplace-projects.public.ts","../../src/partners-marketplace-v1-project-marketplace-projects.context.ts"],"sourcesContent":["export * from './src/partners-marketplace-v1-project-marketplace-projects.context.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 ambassadorWixPartnersMarketplaceV1Project from './partners-marketplace-v1-project-marketplace-projects.http.js';\n// @ts-ignore\n\nexport interface Project {\n /**\n * Project ID\n * @format GUID\n */\n _id?: string | null;\n /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */\n revision?: string | null;\n /**\n * Represents the time this Project was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Project was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** @format GUID */\n briefId?: string | null;\n /** @format GUID */\n providerId?: string | null;\n /** @format GUID */\n serviceId?: string | null;\n /** @format GUID */\n contactId?: string | null;\n status?: StatusWithLiterals;\n review?: Review;\n /** @format GUID */\n metasiteId?: string | null;\n /**\n * URL of a visual snapshot of the completed project — an uploaded thumbnail image or the delivered site's URL.\n * @format WEB_URL\n */\n completedProjectSnapshot?: string | null;\n statusTimeline?: StatusTimelineItem[];\n budget?: number | null;\n cancellationInfo?: CancellationInfo;\n /** @readonly */\n expirationDate?: Date | null;\n source?: SourceWithLiterals;\n /**\n * The client's request text, copied from the referenced brief. Read-only; maintained by Wix.\n * @readonly\n * @maxLength 5000\n */\n briefDescription?: string | null;\n}\n\nexport enum Status {\n NEW = 'NEW',\n IN_DISCUSSION = 'IN_DISCUSSION',\n IN_PROGRESS = 'IN_PROGRESS',\n COMPLETED = 'COMPLETED',\n CANCELED_BY_CLIENT = 'CANCELED_BY_CLIENT',\n CANCELED_BY_PROVIDER = 'CANCELED_BY_PROVIDER',\n EXPIRED = 'EXPIRED',\n CONTACTED = 'CONTACTED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'NEW'\n | 'IN_DISCUSSION'\n | 'IN_PROGRESS'\n | 'COMPLETED'\n | 'CANCELED_BY_CLIENT'\n | 'CANCELED_BY_PROVIDER'\n | 'EXPIRED'\n | 'CONTACTED';\n\nexport interface Review {\n /**\n * @deprecated\n * @replacedBy overall_score\n * @targetRemovalDate 2023-03-30\n */\n score?: Score;\n /**\n * @min 1\n * @max 5\n */\n overallScore?: number | null;\n text?: string | null;\n date?: Date | null;\n reply?: Reply;\n}\n\nexport interface Score {\n satisfaction?: string | null;\n communication?: string | null;\n recommended?: string | null;\n average?: number | null;\n}\n\nexport interface Reply {\n /** @minLength 1 */\n text?: string;\n date?: Date | null;\n}\n\nexport interface StatusTimelineItem {\n status?: StatusWithLiterals;\n date?: Date | null;\n}\n\nexport interface CancellationInfo {\n additionalInfo?: string | null;\n reason?: CancellationReasonWithLiterals;\n}\n\nexport enum CancellationReason {\n OTHER = 'OTHER',\n CLIENT_NOT_RESPONDING = 'CLIENT_NOT_RESPONDING',\n BUDGET_IS_TOO_LOW = 'BUDGET_IS_TOO_LOW',\n DUPLICATE_REQUEST = 'DUPLICATE_REQUEST',\n REPORT_AS_SPAM = 'REPORT_AS_SPAM',\n DOESNT_MATCH_MY_SKILLS = 'DOESNT_MATCH_MY_SKILLS',\n}\n\n/** @enumType */\nexport type CancellationReasonWithLiterals =\n | CancellationReason\n | 'OTHER'\n | 'CLIENT_NOT_RESPONDING'\n | 'BUDGET_IS_TOO_LOW'\n | 'DUPLICATE_REQUEST'\n | 'REPORT_AS_SPAM'\n | 'DOESNT_MATCH_MY_SKILLS';\n\nexport enum Source {\n MATCHING = 'MATCHING',\n EXPLORE = 'EXPLORE',\n AI_ASSISTANT = 'AI_ASSISTANT',\n}\n\n/** @enumType */\nexport type SourceWithLiterals =\n | Source\n | 'MATCHING'\n | 'EXPLORE'\n | 'AI_ASSISTANT';\n\nexport interface UpdateInternalDocumentsEvent\n extends UpdateInternalDocumentsEventOperationOneOf {\n /** insert/update documents */\n update?: InternalDocumentUpdateOperation;\n /** delete by document ids */\n deleteByIds?: DeleteByIdsOperation;\n /** delete documents matching filter */\n deleteByFilter?: DeleteByFilterOperation;\n /** update internal documents matching filter */\n updateByFilter?: InternalDocumentUpdateByFilterOperation;\n /** update only existing documents */\n updateExisting?: InternalUpdateExistingOperation;\n /** insert/update documents with versioning */\n versionedUpdate?: VersionedDocumentUpdateOperation;\n /** delete by document ids with versioning */\n versionedDeleteByIds?: VersionedDeleteByIdsOperation;\n /**\n * type of the documents\n * @minLength 2\n */\n documentType?: string;\n /**\n * language of the documents (mandatory)\n * @minLength 2\n */\n language?: string | null;\n /**\n * one or more search documents\n * @deprecated\n */\n addDocuments?: InternalDocument[];\n /**\n * one or more ids of indexed documents to be removed. Removal will happen before addition (if both provided)\n * @deprecated\n */\n removeDocumentIds?: string[];\n /** id to pass to processing notification */\n correlationId?: string | null;\n /** when event was created / issued */\n issuedAt?: Date | null;\n}\n\n/** @oneof */\nexport interface UpdateInternalDocumentsEventOperationOneOf {\n /** insert/update documents */\n update?: InternalDocumentUpdateOperation;\n /** delete by document ids */\n deleteByIds?: DeleteByIdsOperation;\n /** delete documents matching filter */\n deleteByFilter?: DeleteByFilterOperation;\n /** update internal documents matching filter */\n updateByFilter?: InternalDocumentUpdateByFilterOperation;\n /** update only existing documents */\n updateExisting?: InternalUpdateExistingOperation;\n /** insert/update documents with versioning */\n versionedUpdate?: VersionedDocumentUpdateOperation;\n /** delete by document ids with versioning */\n versionedDeleteByIds?: VersionedDeleteByIdsOperation;\n}\n\nexport interface InternalDocument {\n /** document with mandatory fields (id) and with fields specific to the type of the document */\n document?: Record<string, any> | null;\n}\n\nexport interface InternalDocumentUpdateOperation {\n /** documents to index or update */\n documents?: InternalDocument[];\n}\n\nexport interface DeleteByIdsOperation {\n /** ids of the documents to delete */\n documentIds?: string[];\n /**\n * tenant id for custom tenancy strategy\n * @minLength 2\n * @maxLength 300\n */\n tenantId?: string | null;\n}\n\nexport interface DeleteByFilterOperation {\n /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */\n filter?: Record<string, any> | null;\n /**\n * tenant id for custom tenancy strategy\n * @minLength 2\n * @maxLength 300\n */\n tenantId?: string | null;\n}\n\nexport interface InternalDocumentUpdateByFilterOperation {\n /** documents matching this filter will be updated */\n filter?: Record<string, any> | null;\n /** partial document to apply */\n document?: InternalDocument;\n /**\n * tenant id for custom tenancy strategy\n * @minLength 2\n * @maxLength 300\n */\n tenantId?: string | null;\n}\n\nexport interface InternalUpdateExistingOperation {\n /** documents to update */\n documents?: InternalDocument[];\n}\n\nexport interface VersionedDocumentUpdateOperation {\n /** documents to create or overwrite */\n documents?: InternalDocument[];\n /** versioning mode to use instead of default */\n versioningMode?: VersioningModeWithLiterals;\n}\n\nexport enum VersioningMode {\n /** use default versioning mode agreed with search team */\n DEFAULT = 'DEFAULT',\n /** execute only if version is greater than existing */\n GREATER_THAN = 'GREATER_THAN',\n /** execute only if version is greater or equal to existing */\n GREATER_OR_EQUAL = 'GREATER_OR_EQUAL',\n}\n\n/** @enumType */\nexport type VersioningModeWithLiterals =\n | VersioningMode\n | 'DEFAULT'\n | 'GREATER_THAN'\n | 'GREATER_OR_EQUAL';\n\nexport interface VersionedDeleteByIdsOperation {\n /** ids with version of the documents to delete */\n documentIds?: VersionedDocumentId[];\n /**\n * tenant id for custom tenancy strategy\n * @minLength 2\n * @maxLength 300\n */\n tenantId?: string | null;\n}\n\nexport interface VersionedDocumentId {\n /** document id */\n documentId?: string;\n /** document version */\n version?: string;\n /** versioning mode to use instead of default */\n versioningMode?: VersioningModeWithLiterals;\n}\n\nexport interface InProgressProjectCanceledEvent {\n project?: Project;\n}\n\nexport interface SearchProjectsRequest {\n query?: string | null;\n filter?: Record<string, any> | null;\n /** Fields to order by. */\n ordering?: OrderingClauses;\n cursor?: Cursor;\n /** Paging parameters. Will be deprecated soon in favor of the new cursor field. */\n paging?: SearchPaging;\n /** The facets to retrieve. */\n facets?: FacetClauses;\n}\n\nexport interface OrderingClauses {\n ordering?: OrderingClause[];\n}\n\nexport interface OrderingClause {\n /** @minLength 2 */\n fieldName?: string | null;\n direction?: OrderingClauseDirectionWithLiterals;\n nestedFilter?: Record<string, any> | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum OrderingClauseDirection {\n UninitializedDirection = 'UninitializedDirection',\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type OrderingClauseDirectionWithLiterals =\n | OrderingClauseDirection\n | 'UninitializedDirection'\n | 'ASC'\n | 'DESC';\n\nexport interface AddressLocation {\n /**\n * Latitude.\n * @min -90\n * @max 90\n */\n latitude?: number | null;\n /**\n * Longitude.\n * @min -180\n * @max 180\n */\n longitude?: number | null;\n}\n\nexport interface Cursor {\n token?: string;\n limit?: number;\n}\n\nexport interface SearchPaging {\n /**\n * Number of items to skip in the result set.\n * @deprecated\n */\n skip?: number;\n /**\n * Number of items to fetch (effectively page size).\n * @max 1000\n */\n limit?: number;\n /** Number of items to skip in the result set. */\n offset?: number;\n}\n\nexport interface FacetClauses {\n /** Each entry represents a single facet with parameters. */\n clauses?: FacetClause[];\n}\n\nexport interface FacetClause extends FacetClauseClauseOneOf {\n term?: TermFacet;\n aggregation?: AggregationFacet;\n hierarchical?: HierarchicalFacet;\n dateHistogram?: DateHistogramFacet;\n rangeHistogram?: RangeHistogramFacet;\n nestedFacet?: NestedFieldFacet;\n geotileGrid?: GeotileGridFacet;\n topHits?: TopHitsFacet;\n}\n\n/** @oneof */\nexport interface FacetClauseClauseOneOf {\n term?: TermFacet;\n aggregation?: AggregationFacet;\n hierarchical?: HierarchicalFacet;\n dateHistogram?: DateHistogramFacet;\n rangeHistogram?: RangeHistogramFacet;\n nestedFacet?: NestedFieldFacet;\n geotileGrid?: GeotileGridFacet;\n topHits?: TopHitsFacet;\n}\n\nexport enum Type {\n COUNT = 'COUNT',\n VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'COUNT' | 'VALUE';\n\nexport enum Direction {\n DESC = 'DESC',\n ASC = 'ASC',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals = Direction | 'DESC' | 'ASC';\n\nexport interface TermOrdering {\n /** Ordering type. */\n type?: TypeWithLiterals;\n /**\n * Ordering direction.\n *\n * When using COUNT ordering type, ASC direction is discouraged. See:\n * https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_ordering_by_count_ascending\n */\n direction?: DirectionWithLiterals;\n}\n\n/**\n * Optionally include missing values\n * if add_to is None, puts missing instances in implicit buckets: [string -> \"N/A\"], [int -> \"0\"], [bool -> \"false\"] ...\n */\nexport interface IncludeMissing {\n addTo?: string | null;\n}\n\nexport enum Aggregation {\n MIN = 'MIN',\n MAX = 'MAX',\n SUM = 'SUM',\n AVG = 'AVG',\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n}\n\n/** @enumType */\nexport type AggregationWithLiterals =\n | Aggregation\n | 'MIN'\n | 'MAX'\n | 'SUM'\n | 'AVG'\n | 'COUNT_DISTINCT';\n\nexport interface HierarchicalFacet extends HierarchicalFacetClauseOneOf {\n term?: TermFacet;\n aggregation?: AggregationFacet;\n dateHistogram?: DateHistogramFacet;\n rangeHistogram?: RangeHistogramFacet;\n nestedAggregation?: HierarchicalFacet;\n}\n\n/** @oneof */\nexport interface HierarchicalFacetClauseOneOf {\n term?: TermFacet;\n aggregation?: AggregationFacet;\n dateHistogram?: DateHistogramFacet;\n rangeHistogram?: RangeHistogramFacet;\n}\n\nexport interface TermFacet {\n /** The name of the faceted attribute. */\n name?: string;\n /** Limit the number of facet values returned. Default is 10. */\n limit?: number | null;\n /**\n * The type and direction of the sort order in which to return facet values.\n *\n * Ordering is ignored in case of a HierarchicalFacet. In other words, ordering\n * can only be used when TermFacet is used as the top-most aggregation and not\n * as part of a HierarchicalFacet.\n */\n ordering?: TermOrdering;\n includeMissingValues?: IncludeMissing;\n}\n\nexport interface AggregationFacet {\n /** The name of the faceted attribute. */\n name?: string;\n /** Aggregation type. */\n aggregation?: AggregationWithLiterals;\n}\n\nexport interface DateHistogramFacet extends DateHistogramFacetIntervalOneOf {\n calendarInterval?: CalendarIntervalWithLiterals;\n /** The name of the faceted attribute. */\n name?: string;\n}\n\n/** @oneof */\nexport interface DateHistogramFacetIntervalOneOf {\n calendarInterval?: CalendarIntervalWithLiterals;\n}\n\nexport enum CalendarInterval {\n MINUTE = 'MINUTE',\n HOUR = 'HOUR',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n QUARTER = 'QUARTER',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type CalendarIntervalWithLiterals =\n | CalendarInterval\n | 'MINUTE'\n | 'HOUR'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'QUARTER'\n | 'YEAR';\n\nexport interface RangeHistogramFacet {\n /** The name of the faceted attribute. */\n name?: string;\n ranges?: Range[];\n}\n\nexport interface Range {\n from?: number | null;\n to?: number | null;\n}\n\nexport interface NestedFieldFacet extends NestedFieldFacetFacetOneOf {\n term?: TermFacet;\n aggregation?: AggregationFacet;\n dateHistogram?: DateHistogramFacet;\n rangeHistogram?: RangeHistogramFacet;\n nestedFilter?: Record<string, any> | null;\n}\n\n/** @oneof */\nexport interface NestedFieldFacetFacetOneOf {\n term?: TermFacet;\n aggregation?: AggregationFacet;\n dateHistogram?: DateHistogramFacet;\n rangeHistogram?: RangeHistogramFacet;\n}\n\nexport interface GeotileGridFacet {\n /** The name of the faceted attribute (geo point field). */\n name?: string;\n /**\n * Precision (zoom) level of the geotile grid. Higher values produce smaller, more numerous tiles.\n * @max 29\n */\n precision?: number;\n}\n\nexport interface TopHitsFacet {\n /**\n * Field used to create one group per unique value.\n * @maxLength 200\n */\n groupByField?: string;\n /**\n * Sort order used to select top documents inside each group.\n * @maxSize 10\n */\n ordering?: OrderingClause[];\n /**\n * Maximum number of documents to return per group. Defaults to 1.\n * @min 1\n * @max 100\n */\n groupDocumentsLimit?: number | null;\n /**\n * Optional source fields to include in each returned document.\n * @maxSize 100\n * @maxLength 200\n */\n fields?: string[];\n /**\n * Maximum number of groups to return. Defaults to 10.\n * @min 1\n * @max 1000\n */\n groupsLimit?: number | null;\n}\n\nexport interface SearchProjectsResponse {\n projects?: ProjectView[];\n nextPage?: NextPageResponse;\n facets?: FacetsResponse[];\n}\n\nexport interface ProjectView {\n /**\n * Project ID\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Represents the time this Project was created\n * @readonly\n */\n _createdDate?: Date | null;\n /** @format GUID */\n serviceId?: string;\n status?: StatusWithLiterals;\n reviewStatus?: ReviewStatusWithLiterals;\n /** @readonly */\n expirationDate?: Date | null;\n /** @format GUID */\n contactId?: string | null;\n clientName?: string | null;\n clientCountry?: string | null;\n clientState?: string | null;\n source?: SourceWithLiterals;\n}\n\nexport enum ReviewStatus {\n NONE = 'NONE',\n REVIEW = 'REVIEW',\n REPLY = 'REPLY',\n}\n\n/** @enumType */\nexport type ReviewStatusWithLiterals =\n | ReviewStatus\n | 'NONE'\n | 'REVIEW'\n | 'REPLY';\n\nexport interface NextPageResponse {\n /** Total number of items across all pages */\n total?: number;\n /** The number of items to skip */\n skip?: number;\n /** The number of items to retrieve in one page */\n limit?: number;\n cursor?: Cursor;\n}\n\nexport interface FacetsResponse extends FacetsResponseResponseOneOf {\n terms?: TermAggregationResponse;\n minAggregation?: MinAggregationResponse;\n maxAggregation?: MaxAggregationResponse;\n minMaxAggregation?: MinMaxAggregationResponse;\n hierarchicalAggregation?: HierarchicalAggregationResponse;\n sumAggregation?: SumAggregationResponse;\n dateHistogram?: DateHistogramResponse;\n minDateAggregation?: MinDateAggregationResponse;\n maxDateAggregation?: MaxDateAggregationResponse;\n rangeHistogram?: RangeHistogramResponse;\n avgAggregation?: AvgAggregationResponse;\n countDistinctAggregation?: CountDistinctAggregationResponse;\n geotileGrid?: GeotileGridResponse;\n topHitsAggregation?: TopHitsAggregationResponse;\n}\n\n/** @oneof */\nexport interface FacetsResponseResponseOneOf {\n terms?: TermAggregationResponse;\n minAggregation?: MinAggregationResponse;\n maxAggregation?: MaxAggregationResponse;\n minMaxAggregation?: MinMaxAggregationResponse;\n hierarchicalAggregation?: HierarchicalAggregationResponse;\n sumAggregation?: SumAggregationResponse;\n dateHistogram?: DateHistogramResponse;\n minDateAggregation?: MinDateAggregationResponse;\n maxDateAggregation?: MaxDateAggregationResponse;\n rangeHistogram?: RangeHistogramResponse;\n avgAggregation?: AvgAggregationResponse;\n countDistinctAggregation?: CountDistinctAggregationResponse;\n geotileGrid?: GeotileGridResponse;\n topHitsAggregation?: TopHitsAggregationResponse;\n}\n\nexport interface FacetCountResponse {\n /** Facet field value (for example \"Shoes\", \"Socks\") */\n facetValue?: string;\n /** Document count within the group */\n count?: number;\n}\n\nexport interface Value {\n value?: string;\n facets?: FacetsResponse;\n count?: number;\n}\n\nexport interface RangeFacetCountResponse {\n from?: number | null;\n to?: number | null;\n count?: number;\n}\n\nexport interface Bucket {\n /** Tile key in `zoom/x/y` format. */\n tileKey?: string;\n /** Number of entities whose geo point falls inside the tile. */\n count?: number;\n /** Centroid of the geo points in the tile. */\n centroid?: AddressLocation;\n}\n\nexport interface Group {\n /** @maxLength 200 */\n value?: string;\n count?: number;\n /** @maxSize 100 */\n documents?: Record<string, any>[] | null;\n}\n\nexport interface TermAggregationResponse {\n /** Facet field (for example productCategory) */\n facet?: string;\n /** Facet values and document counts */\n facets?: FacetCountResponse[];\n}\n\nexport interface MinAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The minimum value across all documents */\n minValue?: number | null;\n}\n\nexport interface MaxAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The maximum value across all documents */\n maxValue?: number | null;\n}\n\nexport interface MinMaxAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The minimum value across all documents */\n minValue?: number | null;\n /** The maximum value across all documents */\n maxValue?: number | null;\n}\n\nexport interface HierarchicalAggregationResponse {\n facet?: string;\n values?: Value[];\n}\n\nexport interface SumAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The sum value across all documents */\n value?: number | null;\n}\n\nexport interface DateHistogramResponse {\n /** Facet field (for example date) */\n facet?: string;\n /** Facet values and document counts */\n facets?: FacetCountResponse[];\n}\n\nexport interface MinDateAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The minimum value across all documents */\n minValue?: string | null;\n}\n\nexport interface MaxDateAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The maximum value across all documents */\n maxValue?: string | null;\n}\n\nexport interface RangeHistogramResponse {\n /** Facet field (for example balance) */\n facet?: string;\n /** Facet values and document counts */\n facets?: RangeFacetCountResponse[];\n}\n\nexport interface AvgAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The avg value across all documents */\n value?: number | null;\n}\n\nexport interface CountDistinctAggregationResponse {\n /** Facet field (for example productPrice) */\n facet?: string;\n /** The distinct count across all documents */\n value?: number | null;\n}\n\nexport interface GeotileGridResponse {\n /** Facet field (for example storeLocation) */\n facet?: string;\n /** List of tile buckets. */\n buckets?: Bucket[];\n}\n\nexport interface TopHitsAggregationResponse {\n /** @maxLength 200 */\n groupByField?: string;\n /** @maxSize 1000 */\n groups?: Group[];\n}\n\nexport interface IndexProjectRequest {\n projectId?: string;\n}\n\nexport interface IndexProjectResponse {}\n\nexport interface IndexProviderProjectsRequest {}\n\nexport interface IndexProviderProjectsResponse {}\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 QueryProjectRequest {\n /** WQL expression */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\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 * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: CommonAddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CommonAddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\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 QueryProjectResponse {\n /** The retrieved Projects */\n projects?: Project[];\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\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 DeleteProjectRequest {\n /**\n * Id of the Project\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface DeleteProjectResponse {}\n\nexport interface UpdateProjectRequest {\n project: Project;\n}\n\nexport interface UpdateProjectResponse {\n /** the updated project */\n project?: Project;\n}\n\nexport interface QueryProjectReviewsRequest {\n /** WQL expression */\n query?: QueryV2;\n}\n\nexport interface QueryProjectReviewsResponse {\n /** The retrieved Projects */\n reviews?: ProjectReview[];\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface ProjectReview {\n /**\n * Project ID\n * @format GUID\n */\n _id?: string | null;\n /** @format GUID */\n providerId?: string;\n /** @format GUID */\n clientId?: string;\n /** @format GUID */\n serviceId?: string;\n /** @format GUID */\n contactId?: string | null;\n review?: Review;\n /** @format GUID */\n metasiteId?: string | null;\n completedProjectSnapshot?: string | null;\n /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */\n revision?: string | null;\n}\n\nexport interface CountProjectReviewsRequest {\n /** WQL expression */\n query?: QueryV2;\n}\n\nexport interface CountProjectReviewsResponse {\n count?: string;\n}\n\nexport interface GetPartnerRatingRequest {\n /**\n * @format GUID\n * @maxSize 100\n */\n providerIds?: string[];\n}\n\nexport interface GetPartnerRatingResponse {\n partnerRatings?: PartnerRating[];\n}\n\nexport interface PartnerRating {\n providerId?: string;\n reviews?: Reviews;\n projects?: Projects;\n}\n\nexport interface Reviews {\n count?: string;\n /** @max 5 */\n averageRating?: number;\n}\n\nexport interface Projects {\n completedProjectsCount?: string;\n}\n\nexport interface SyncPartnerRatingRequest {\n /** @format GUID */\n providerId?: string;\n}\n\nexport interface SyncPartnerRatingResponse {\n partnerRatings?: PartnerRating;\n}\n\nexport interface SyncAllPartnersRatingRequest {}\n\nexport interface SyncAllPartnersRatingResponse {}\n\nexport interface CreateProjectFromBriefRequest {\n /** @format GUID */\n briefId?: string;\n /** @format GUID */\n providerId?: string;\n source?: SourceWithLiterals;\n}\n\nexport interface TriggerCreateProjectFromBriefRequest {\n /** @format GUID */\n briefId?: string;\n /** @format GUID */\n providerId?: string;\n source?: SourceWithLiterals;\n}\n\nexport interface TriggerCreateProjectFromBriefResponse {}\n\nexport interface GetProjectRequest {\n /**\n * Id of the Project to retrieve\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface GetProjectResponse {\n /** The retrieved Project */\n project?: Project;\n}\n\nexport interface CreateProjectRequest {\n /** Project to be created */\n project?: Project;\n}\n\nexport interface CreateProjectResponse {\n /** The created Project */\n project?: Project;\n}\n\nexport interface MarketplacePartnerContactedUser {\n contactId?: string;\n}\n\n/**\n * Retrieves a Project by id.\n * @param projectId - Id of the Project to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField projectId\n * @permissionId PARTNERS.MARKETPLACE_PROJECT_READ\n * @applicableIdentity APP\n * @fqn wix.partners.marketplace.projects.v1.Projects.GetProject\n */\nexport async function getProject(\n projectId: string\n): Promise<\n NonNullablePaths<\n GetProjectResponse,\n | `project.status`\n | `project.review.reply.text`\n | `project.statusTimeline`\n | `project.statusTimeline.${number}.status`\n | `project.cancellationInfo.reason`\n | `project.source`,\n 5\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 projectId: projectId,\n });\n\n const reqOpts = ambassadorWixPartnersMarketplaceV1Project.getProject(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: { projectId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['projectId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Queries Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @param query - WQL expression\n * @public\n * @documentationMaturity preview\n * @requiredField query\n * @permissionId PARTNERS.MARKETPLACE_PROJECT_READ\n * @applicableIdentity APP\n * @fqn wix.partners.marketplace.projects.v1.Projects.QueryProject\n */\nexport async function queryProject(\n query: QueryV2\n): Promise<\n NonNullablePaths<\n QueryProjectResponse,\n | `projects`\n | `projects.${number}.status`\n | `projects.${number}.review.reply.text`\n | `projects.${number}.cancellationInfo.reason`\n | `projects.${number}.source`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts =\n ambassadorWixPartnersMarketplaceV1Project.queryProject(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 * partner can update\n * 1. status\n * 2. cancellation reason\n * 3. budget, msid, snapshot\n * 4. reply to review\n * @param _id - Project ID\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField project\n * @requiredField project.revision\n * @permissionId PARTNERS.MARKETPLACE_PROJECT_UPDATE\n * @applicableIdentity APP\n * @fqn wix.partners.marketplace.projects.v1.Projects.UpdateProject\n */\nexport async function updateProject(\n _id: string,\n project: NonNullablePaths<UpdateProject, `revision`, 2>\n): Promise<\n NonNullablePaths<\n UpdateProjectResponse,\n | `project.status`\n | `project.review.reply.text`\n | `project.statusTimeline`\n | `project.statusTimeline.${number}.status`\n | `project.cancellationInfo.reason`\n | `project.source`,\n 5\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 project: { ...project, id: _id },\n });\n\n const reqOpts =\n ambassadorWixPartnersMarketplaceV1Project.updateProject(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: { project: '$[1]' },\n explicitPathsToArguments: { 'project.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'project']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateProject {\n /**\n * Project ID\n * @format GUID\n */\n _id?: string | null;\n /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */\n revision?: string | null;\n /**\n * Represents the time this Project was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Project was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** @format GUID */\n briefId?: string | null;\n /** @format GUID */\n providerId?: string | null;\n /** @format GUID */\n serviceId?: string | null;\n /** @format GUID */\n contactId?: string | null;\n status?: StatusWithLiterals;\n review?: Review;\n /** @format GUID */\n metasiteId?: string | null;\n /**\n * URL of a visual snapshot of the completed project — an uploaded thumbnail image or the delivered site's URL.\n * @format WEB_URL\n */\n completedProjectSnapshot?: string | null;\n statusTimeline?: StatusTimelineItem[];\n budget?: number | null;\n cancellationInfo?: CancellationInfo;\n /** @readonly */\n expirationDate?: Date | null;\n source?: SourceWithLiterals;\n /**\n * The client's request text, copied from the referenced brief. Read-only; maintained by Wix.\n * @readonly\n * @maxLength 5000\n */\n briefDescription?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\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 { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPartnersMarketplaceProjectsV1ProjectsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/marketplace-projects',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/marketplace-projects',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/partners/marketplace/v1/projects',\n destPath: '/v1/projects',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/partners/marketplace/v1/projects',\n destPath: '/v1/projects',\n },\n ],\n _: [\n {\n srcPath: '/partners/marketplace/v1/projects',\n destPath: '/v1/projects',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_marketplace-projects_marketplace-projects';\n\n/** Retrieves a Project by id. */\nexport function getProject(payload: object): RequestOptionsFactory<any> {\n function __getProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.partners.marketplace.v1.project',\n method: 'GET' as any,\n methodFqn: 'wix.partners.marketplace.projects.v1.Projects.GetProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersMarketplaceProjectsV1ProjectsUrl({\n protoPath: '/v1/projects/{projectId}',\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: 'project.createdDate' },\n { path: 'project.updatedDate' },\n { path: 'project.expirationDate' },\n { path: 'project.review.date' },\n { path: 'project.review.reply.date' },\n { path: 'project.statusTimeline.date' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'project.budget' },\n { path: 'project.review.score.average' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProject;\n}\n\n/** Queries Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */\nexport function queryProject(payload: object): RequestOptionsFactory<any> {\n function __queryProject({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'query.sort.origin.latitude' },\n { path: 'query.sort.origin.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.partners.marketplace.v1.project',\n method: 'POST' as any,\n methodFqn: 'wix.partners.marketplace.projects.v1.Projects.QueryProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersMarketplaceProjectsV1ProjectsUrl({\n protoPath: '/v1/projects/query',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'projects.createdDate' },\n { path: 'projects.updatedDate' },\n { path: 'projects.expirationDate' },\n { path: 'projects.review.date' },\n { path: 'projects.review.reply.date' },\n { path: 'projects.statusTimeline.date' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'projects.budget' },\n { path: 'projects.review.score.average' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryProject;\n}\n\n/**\n * partner can update\n * 1. status\n * 2. cancellation reason\n * 3. budget, msid, snapshot\n * 4. reply to review\n */\nexport function updateProject(payload: object): RequestOptionsFactory<any> {\n function __updateProject({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n { path: 'project.expirationDate' },\n { path: 'project.review.date' },\n { path: 'project.review.reply.date' },\n { path: 'project.statusTimeline.date' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'project.budget' },\n { path: 'project.review.score.average' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.partners.marketplace.v1.project',\n method: 'PATCH' as any,\n methodFqn: 'wix.partners.marketplace.projects.v1.Projects.UpdateProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPartnersMarketplaceProjectsV1ProjectsUrl({\n protoPath: '/v1/projects/{project.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n { path: 'project.expirationDate' },\n { path: 'project.review.date' },\n { path: 'project.review.reply.date' },\n { path: 'project.statusTimeline.date' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'project.budget' },\n { path: 'project.review.score.average' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProject;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n GetProjectResponse,\n QueryProjectResponse,\n QueryV2,\n UpdateProject,\n UpdateProjectResponse,\n getProject as universalGetProject,\n queryProject as universalQueryProject,\n updateProject as universalUpdateProject,\n} from './partners-marketplace-v1-project-marketplace-projects.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/marketplace-projects' };\n\nexport function getProject(httpClient: HttpClient): GetProjectSignature {\n return (projectId: string) =>\n universalGetProject(\n projectId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetProjectSignature {\n /**\n * Retrieves a Project by id.\n * @param - Id of the Project to retrieve\n */\n (projectId: string): Promise<\n NonNullablePaths<\n GetProjectResponse,\n | `project.status`\n | `project.review.reply.text`\n | `project.statusTimeline`\n | `project.statusTimeline.${number}.status`\n | `project.cancellationInfo.reason`\n | `project.source`,\n 5\n >\n >;\n}\n\nexport function queryProject(httpClient: HttpClient): QueryProjectSignature {\n return (query: QueryV2) =>\n universalQueryProject(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryProjectSignature {\n /**\n * Queries Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @param - WQL expression\n */\n (query: QueryV2): Promise<\n NonNullablePaths<\n QueryProjectResponse,\n | `projects`\n | `projects.${number}.status`\n | `projects.${number}.review.reply.text`\n | `projects.${number}.cancellationInfo.reason`\n | `projects.${number}.source`,\n 6\n >\n >;\n}\n\nexport function updateProject(httpClient: HttpClient): UpdateProjectSignature {\n return (\n _id: string,\n project: NonNullablePaths<UpdateProject, `revision`, 2>\n ) =>\n universalUpdateProject(\n _id,\n project,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateProjectSignature {\n /**\n * partner can update\n * 1. status\n * 2. cancellation reason\n * 3. budget, msid, snapshot\n * 4. reply to review\n * @param - Project ID\n */\n (\n _id: string,\n project: NonNullablePaths<UpdateProject, `revision`, 2>\n ): Promise<\n NonNullablePaths<\n UpdateProjectResponse,\n | `project.status`\n | `project.review.reply.text`\n | `project.statusTimeline`\n | `project.statusTimeline.${number}.status`\n | `project.cancellationInfo.reason`\n | `project.source`,\n 5\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n AddressLocation,\n Aggregation,\n AggregationFacet,\n AvgAggregationResponse,\n Bucket,\n CalendarInterval,\n CancellationInfo,\n CancellationReason,\n CommonAddressLocation,\n CountDistinctAggregationResponse,\n CountProjectReviewsRequest,\n CountProjectReviewsResponse,\n CreateProjectFromBriefRequest,\n CreateProjectRequest,\n CreateProjectResponse,\n Cursor,\n CursorPaging,\n Cursors,\n DateHistogramFacet,\n DateHistogramFacetIntervalOneOf,\n DateHistogramResponse,\n DeleteByFilterOperation,\n DeleteByIdsOperation,\n DeleteProjectRequest,\n DeleteProjectResponse,\n Direction,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n FacetClause,\n FacetClauseClauseOneOf,\n FacetClauses,\n FacetCountResponse,\n FacetsResponse,\n FacetsResponseResponseOneOf,\n GeotileGridFacet,\n GeotileGridResponse,\n GetPartnerRatingRequest,\n GetPartnerRatingResponse,\n GetProjectRequest,\n GetProjectResponse,\n Group,\n HierarchicalAggregationResponse,\n HierarchicalFacet,\n HierarchicalFacetClauseOneOf,\n IdentificationData,\n IdentificationDataIdOneOf,\n InProgressProjectCanceledEvent,\n IncludeMissing,\n IndexProjectRequest,\n IndexProjectResponse,\n IndexProviderProjectsRequest,\n IndexProviderProjectsResponse,\n InternalDocument,\n InternalDocumentUpdateByFilterOperation,\n InternalDocumentUpdateOperation,\n InternalUpdateExistingOperation,\n MarketplacePartnerContactedUser,\n MaxAggregationResponse,\n MaxDateAggregationResponse,\n MessageEnvelope,\n MinAggregationResponse,\n MinDateAggregationResponse,\n MinMaxAggregationResponse,\n NestedFieldFacet,\n NestedFieldFacetFacetOneOf,\n NextPageResponse,\n OrderingClause,\n OrderingClauseDirection,\n OrderingClauses,\n Paging,\n PagingMetadataV2,\n PartnerRating,\n Project,\n ProjectReview,\n ProjectView,\n Projects,\n QueryProjectRequest,\n QueryProjectResponse,\n QueryProjectReviewsRequest,\n QueryProjectReviewsResponse,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Range,\n RangeFacetCountResponse,\n RangeHistogramFacet,\n RangeHistogramResponse,\n Reply,\n RestoreInfo,\n Review,\n ReviewStatus,\n Reviews,\n Score,\n SearchPaging,\n SearchProjectsRequest,\n SearchProjectsResponse,\n SortOrder,\n Sorting,\n Source,\n Status,\n StatusTimelineItem,\n SumAggregationResponse,\n SyncAllPartnersRatingRequest,\n SyncAllPartnersRatingResponse,\n SyncPartnerRatingRequest,\n SyncPartnerRatingResponse,\n TermAggregationResponse,\n TermFacet,\n TermOrdering,\n TopHitsAggregationResponse,\n TopHitsFacet,\n TriggerCreateProjectFromBriefRequest,\n TriggerCreateProjectFromBriefResponse,\n Type,\n UpdateInternalDocumentsEvent,\n UpdateInternalDocumentsEventOperationOneOf,\n UpdateProject,\n UpdateProjectRequest,\n UpdateProjectResponse,\n Value,\n VersionedDeleteByIdsOperation,\n VersionedDocumentId,\n VersionedDocumentUpdateOperation,\n VersioningMode,\n WebhookIdentityType,\n} from './partners-marketplace-v1-project-marketplace-projects.universal.js';\n","import {\n getProject as publicGetProject,\n queryProject as publicQueryProject,\n updateProject as publicUpdateProject,\n} from './partners-marketplace-v1-project-marketplace-projects.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getProject: MaybeContext<\n BuildRESTFunction<typeof publicGetProject> & typeof publicGetProject\n> = /*#__PURE__*/ createRESTModule(publicGetProject);\nexport const queryProject: MaybeContext<\n BuildRESTFunction<typeof publicQueryProject> & typeof publicQueryProject\n> = /*#__PURE__*/ createRESTModule(publicQueryProject);\nexport const updateProject: MaybeContext<\n BuildRESTFunction<typeof publicUpdateProject> & typeof publicUpdateProject\n> = /*#__PURE__*/ createRESTModule(publicUpdateProject);\n\nexport {\n Status,\n CancellationReason,\n Source,\n VersioningMode,\n OrderingClauseDirection,\n Type,\n Direction,\n Aggregation,\n CalendarInterval,\n ReviewStatus,\n WebhookIdentityType,\n SortOrder,\n} from './partners-marketplace-v1-project-marketplace-projects.universal.js';\nexport {\n Project,\n Review,\n Score,\n Reply,\n StatusTimelineItem,\n CancellationInfo,\n UpdateInternalDocumentsEvent,\n UpdateInternalDocumentsEventOperationOneOf,\n InternalDocument,\n InternalDocumentUpdateOperation,\n DeleteByIdsOperation,\n DeleteByFilterOperation,\n InternalDocumentUpdateByFilterOperation,\n InternalUpdateExistingOperation,\n VersionedDocumentUpdateOperation,\n VersionedDeleteByIdsOperation,\n VersionedDocumentId,\n InProgressProjectCanceledEvent,\n SearchProjectsRequest,\n OrderingClauses,\n OrderingClause,\n AddressLocation,\n Cursor,\n SearchPaging,\n FacetClauses,\n FacetClause,\n FacetClauseClauseOneOf,\n TermOrdering,\n IncludeMissing,\n HierarchicalFacet,\n HierarchicalFacetClauseOneOf,\n TermFacet,\n AggregationFacet,\n DateHistogramFacet,\n DateHistogramFacetIntervalOneOf,\n RangeHistogramFacet,\n Range,\n NestedFieldFacet,\n NestedFieldFacetFacetOneOf,\n GeotileGridFacet,\n TopHitsFacet,\n SearchProjectsResponse,\n ProjectView,\n NextPageResponse,\n FacetsResponse,\n FacetsResponseResponseOneOf,\n FacetCountResponse,\n Value,\n RangeFacetCountResponse,\n Bucket,\n Group,\n TermAggregationResponse,\n MinAggregationResponse,\n MaxAggregationResponse,\n MinMaxAggregationResponse,\n HierarchicalAggregationResponse,\n SumAggregationResponse,\n DateHistogramResponse,\n MinDateAggregationResponse,\n MaxDateAggregationResponse,\n RangeHistogramResponse,\n AvgAggregationResponse,\n CountDistinctAggregationResponse,\n GeotileGridResponse,\n TopHitsAggregationResponse,\n IndexProjectRequest,\n IndexProjectResponse,\n IndexProviderProjectsRequest,\n IndexProviderProjectsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n QueryProjectRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n CommonAddressLocation,\n Paging,\n CursorPaging,\n QueryProjectResponse,\n PagingMetadataV2,\n Cursors,\n DeleteProjectRequest,\n DeleteProjectResponse,\n UpdateProjectRequest,\n UpdateProjectResponse,\n QueryProjectReviewsRequest,\n QueryProjectReviewsResponse,\n ProjectReview,\n CountProjectReviewsRequest,\n CountProjectReviewsResponse,\n GetPartnerRatingRequest,\n GetPartnerRatingResponse,\n PartnerRating,\n Reviews,\n Projects,\n SyncPartnerRatingRequest,\n SyncPartnerRatingResponse,\n SyncAllPartnersRatingRequest,\n SyncAllPartnersRatingResponse,\n CreateProjectFromBriefRequest,\n TriggerCreateProjectFromBriefRequest,\n TriggerCreateProjectFromBriefResponse,\n GetProjectRequest,\n GetProjectResponse,\n CreateProjectRequest,\n CreateProjectResponse,\n MarketplacePartnerContactedUser,\n UpdateProject,\n} from './partners-marketplace-v1-project-marketplace-projects.universal.js';\nexport {\n StatusWithLiterals,\n CancellationReasonWithLiterals,\n SourceWithLiterals,\n VersioningModeWithLiterals,\n OrderingClauseDirectionWithLiterals,\n TypeWithLiterals,\n DirectionWithLiterals,\n AggregationWithLiterals,\n CalendarIntervalWithLiterals,\n ReviewStatusWithLiterals,\n WebhookIdentityTypeWithLiterals,\n SortOrderWithLiterals,\n} from './partners-marketplace-v1-project-marketplace-projects.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAAA;AAAA,EAAA,oBAAAC;AAAA,EAAA,qBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,WAAW,SAA6C;AACtE,WAAS,aAAa,EAAE,KAAK,GAAQ;AACnC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAA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A,EACR;AACF;AAkBA,eAAsBE,eACpB,KACA,SAYA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD,SAAS,EAAE,GAAG,SAAS,IAAI,IAAI;AAAA,EACjC,CAAC;AAED,QAAM,UACsC,cAAc,OAAO;AAEjE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAF;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,EAAE,SAAS,OAAO;AAAA,QAC1C,0BAA0B,EAAE,cAAc,OAAO;AAAA,QACjD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO,SAAS;AAAA,IACnB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE36CO,SAASG,YAAW,YAA6C;AACtE,SAAO,CAAC,cACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAqBO,SAASC,cAAa,YAA+C;AAC1E,SAAO,CAAC,UACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAoBO,SAASC,eAAc,YAAgD;AAC5E,SAAO,CACL,KACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC3EA,IAAAC,uBAAiC;AAG1B,IAAMC,cAEK,2DAAiBA,WAAgB;AAC5C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,iBAEK,2DAAiBA,cAAmB;","names":["getProject","queryProject","updateProject","import_float","import_timestamp","import_rest_modules","payload","Status","CancellationReason","Source","VersioningMode","OrderingClauseDirection","Type","Direction","Aggregation","CalendarInterval","ReviewStatus","WebhookIdentityType","SortOrder","getProject","sdkTransformError","queryProject","updateProject","getProject","queryProject","updateProject","import_rest_modules","getProject","queryProject","updateProject"]}
|