@wix/auto_sdk_portfolio_project-items 1.0.41 → 1.0.43
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 +11 -11
- package/build/cjs/index.js +124 -124
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +194 -183
- package/build/cjs/index.typings.js +116 -116
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +187 -176
- package/build/cjs/meta.js +111 -111
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +9 -9
- package/build/cjs/schemas.js +11 -11
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -11
- package/build/es/index.mjs +124 -124
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +194 -183
- package/build/es/index.typings.mjs +116 -116
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +187 -176
- package/build/es/meta.mjs +111 -111
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +9 -9
- package/build/es/schemas.mjs +11 -11
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -11
- package/build/internal/cjs/index.js +124 -124
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +194 -183
- package/build/internal/cjs/index.typings.js +116 -116
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +187 -176
- package/build/internal/cjs/meta.js +111 -111
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +9 -9
- package/build/internal/cjs/schemas.js +11 -11
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -11
- package/build/internal/es/index.mjs +124 -124
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +194 -183
- package/build/internal/es/index.typings.mjs +116 -116
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +187 -176
- package/build/internal/es/meta.mjs +111 -111
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +9 -9
- package/build/internal/es/schemas.mjs +11 -11
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -14,71 +14,6 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
14
14
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
15
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
-
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
18
|
-
const domainToMappings = {
|
|
19
|
-
"manage._base_domain_": [
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/_api/portfolio-app-service",
|
|
22
|
-
destPath: "/api"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"editor._base_domain_": [
|
|
26
|
-
{
|
|
27
|
-
srcPath: "/_api/portfolio-app-service",
|
|
28
|
-
destPath: "/api"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"blocks._base_domain_": [
|
|
32
|
-
{
|
|
33
|
-
srcPath: "/_api/portfolio-app-service",
|
|
34
|
-
destPath: "/api"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"create.editorx": [
|
|
38
|
-
{
|
|
39
|
-
srcPath: "/_api/portfolio-app-service",
|
|
40
|
-
destPath: "/api"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
_: [
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/_api/portfolio-app-service",
|
|
46
|
-
destPath: "/api"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"api._api_base_domain_": [
|
|
50
|
-
{
|
|
51
|
-
srcPath: "/_api/portfolio-app-service",
|
|
52
|
-
destPath: "/api"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"www.wixapis.com": [
|
|
56
|
-
{
|
|
57
|
-
srcPath: "/portfolio/v1/settings",
|
|
58
|
-
destPath: "/api/v1/portfolio/settings"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
62
|
-
destPath: "/api/v1/portfolio/settings"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
66
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"*.dev.wix-code.com": [
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
72
|
-
destPath: "/api/v1/portfolio/settings"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
76
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
};
|
|
80
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
81
|
-
}
|
|
82
17
|
function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
83
18
|
const domainToMappings = {
|
|
84
19
|
"manage._base_domain_": [
|
|
@@ -198,7 +133,93 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
|
198
133
|
};
|
|
199
134
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
200
135
|
}
|
|
136
|
+
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
137
|
+
const domainToMappings = {
|
|
138
|
+
"manage._base_domain_": [
|
|
139
|
+
{
|
|
140
|
+
srcPath: "/_api/portfolio-app-service",
|
|
141
|
+
destPath: "/api"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"editor._base_domain_": [
|
|
145
|
+
{
|
|
146
|
+
srcPath: "/_api/portfolio-app-service",
|
|
147
|
+
destPath: "/api"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"blocks._base_domain_": [
|
|
151
|
+
{
|
|
152
|
+
srcPath: "/_api/portfolio-app-service",
|
|
153
|
+
destPath: "/api"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"create.editorx": [
|
|
157
|
+
{
|
|
158
|
+
srcPath: "/_api/portfolio-app-service",
|
|
159
|
+
destPath: "/api"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
_: [
|
|
163
|
+
{
|
|
164
|
+
srcPath: "/_api/portfolio-app-service",
|
|
165
|
+
destPath: "/api"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"api._api_base_domain_": [
|
|
169
|
+
{
|
|
170
|
+
srcPath: "/_api/portfolio-app-service",
|
|
171
|
+
destPath: "/api"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"www.wixapis.com": [
|
|
175
|
+
{
|
|
176
|
+
srcPath: "/portfolio/v1/settings",
|
|
177
|
+
destPath: "/api/v1/portfolio/settings"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
181
|
+
destPath: "/api/v1/portfolio/settings"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
185
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"*.dev.wix-code.com": [
|
|
189
|
+
{
|
|
190
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
191
|
+
destPath: "/api/v1/portfolio/settings"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
195
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
};
|
|
199
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
200
|
+
}
|
|
201
201
|
var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
|
|
202
|
+
function generateTokenForProjectItems(payload) {
|
|
203
|
+
function __generateTokenForProjectItems({ host }) {
|
|
204
|
+
const metadata = {
|
|
205
|
+
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
206
|
+
method: "POST",
|
|
207
|
+
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
208
|
+
packageName: PACKAGE_NAME,
|
|
209
|
+
migrationOptions: {
|
|
210
|
+
optInTransformResponse: true
|
|
211
|
+
},
|
|
212
|
+
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
213
|
+
protoPath: "/api/v1/portfolio/project/items/media",
|
|
214
|
+
data: payload,
|
|
215
|
+
host
|
|
216
|
+
}),
|
|
217
|
+
data: payload
|
|
218
|
+
};
|
|
219
|
+
return metadata;
|
|
220
|
+
}
|
|
221
|
+
return __generateTokenForProjectItems;
|
|
222
|
+
}
|
|
202
223
|
function createProjectItem(payload) {
|
|
203
224
|
function __createProjectItem({ host }) {
|
|
204
225
|
const serializedData = transformPaths(payload, [
|
|
@@ -667,27 +688,6 @@ function duplicateProjectItems(payload) {
|
|
|
667
688
|
}
|
|
668
689
|
return __duplicateProjectItems;
|
|
669
690
|
}
|
|
670
|
-
function generateTokenForProjectItems(payload) {
|
|
671
|
-
function __generateTokenForProjectItems({ host }) {
|
|
672
|
-
const metadata = {
|
|
673
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
674
|
-
method: "POST",
|
|
675
|
-
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
676
|
-
packageName: PACKAGE_NAME,
|
|
677
|
-
migrationOptions: {
|
|
678
|
-
optInTransformResponse: true
|
|
679
|
-
},
|
|
680
|
-
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
681
|
-
protoPath: "/api/v1/portfolio/project/items/media",
|
|
682
|
-
data: payload,
|
|
683
|
-
host
|
|
684
|
-
}),
|
|
685
|
-
data: payload
|
|
686
|
-
};
|
|
687
|
-
return metadata;
|
|
688
|
-
}
|
|
689
|
-
return __generateTokenForProjectItems;
|
|
690
|
-
}
|
|
691
691
|
|
|
692
692
|
// src/portfolio-project-items-v1-project-item-project-items.universal.ts
|
|
693
693
|
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
|
|
@@ -707,11 +707,6 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
|
707
707
|
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
708
708
|
return ImageType2;
|
|
709
709
|
})(ImageType || {});
|
|
710
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
711
|
-
SortOrder2["ASC"] = "ASC";
|
|
712
|
-
SortOrder2["DESC"] = "DESC";
|
|
713
|
-
return SortOrder2;
|
|
714
|
-
})(SortOrder || {});
|
|
715
710
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
716
711
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
717
712
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -720,6 +715,36 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
720
715
|
WebhookIdentityType2["APP"] = "APP";
|
|
721
716
|
return WebhookIdentityType2;
|
|
722
717
|
})(WebhookIdentityType || {});
|
|
718
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
719
|
+
SortOrder2["ASC"] = "ASC";
|
|
720
|
+
SortOrder2["DESC"] = "DESC";
|
|
721
|
+
return SortOrder2;
|
|
722
|
+
})(SortOrder || {});
|
|
723
|
+
async function generateTokenForProjectItems2(mediaIds) {
|
|
724
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
725
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ mediaIds });
|
|
726
|
+
const reqOpts = generateTokenForProjectItems(
|
|
727
|
+
payload
|
|
728
|
+
);
|
|
729
|
+
sideEffects?.onSiteCall?.();
|
|
730
|
+
try {
|
|
731
|
+
const result = await httpClient.request(reqOpts);
|
|
732
|
+
sideEffects?.onSuccess?.(result);
|
|
733
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
734
|
+
} catch (err) {
|
|
735
|
+
const transformedError = sdkTransformError(
|
|
736
|
+
err,
|
|
737
|
+
{
|
|
738
|
+
spreadPathsToArguments: {},
|
|
739
|
+
explicitPathsToArguments: { mediaIds: "$[0]" },
|
|
740
|
+
singleArgumentUnchanged: false
|
|
741
|
+
},
|
|
742
|
+
["mediaIds"]
|
|
743
|
+
);
|
|
744
|
+
sideEffects?.onError?.(err);
|
|
745
|
+
throw transformedError;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
723
748
|
async function createProjectItem2(item) {
|
|
724
749
|
const { httpClient, sideEffects } = arguments[1];
|
|
725
750
|
const payload = transformPaths2(
|
|
@@ -1072,31 +1097,6 @@ async function duplicateProjectItems2(originProjectId, options) {
|
|
|
1072
1097
|
throw transformedError;
|
|
1073
1098
|
}
|
|
1074
1099
|
}
|
|
1075
|
-
async function generateTokenForProjectItems2(mediaIds) {
|
|
1076
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1077
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ mediaIds });
|
|
1078
|
-
const reqOpts = generateTokenForProjectItems(
|
|
1079
|
-
payload
|
|
1080
|
-
);
|
|
1081
|
-
sideEffects?.onSiteCall?.();
|
|
1082
|
-
try {
|
|
1083
|
-
const result = await httpClient.request(reqOpts);
|
|
1084
|
-
sideEffects?.onSuccess?.(result);
|
|
1085
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1086
|
-
} catch (err) {
|
|
1087
|
-
const transformedError = sdkTransformError(
|
|
1088
|
-
err,
|
|
1089
|
-
{
|
|
1090
|
-
spreadPathsToArguments: {},
|
|
1091
|
-
explicitPathsToArguments: { mediaIds: "$[0]" },
|
|
1092
|
-
singleArgumentUnchanged: false
|
|
1093
|
-
},
|
|
1094
|
-
["mediaIds"]
|
|
1095
|
-
);
|
|
1096
|
-
sideEffects?.onError?.(err);
|
|
1097
|
-
throw transformedError;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
1100
|
export {
|
|
1101
1101
|
ImageType,
|
|
1102
1102
|
SortOrder,
|