@wix/media 1.0.59 → 1.0.61
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/context.d.ts +4 -0
- package/build/cjs/context.js +31 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +2 -0
- package/build/cjs/index.js +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -0
- package/build/cjs/index.typings.js +3 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -0
- package/build/cjs/meta.js +3 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.d.ts +8 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.js +77 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +16 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.js +245 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.d.ts +24 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.js +142 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.d.ts +26 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.js +49 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.d.ts +221 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.js +22 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.d.ts +315 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.js +407 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.d.ts +13 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js +137 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +29 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.js +446 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.d.ts +33 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.js +237 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.d.ts +59 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.js +81 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.d.ts +949 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.js +27 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.d.ts +907 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.js +748 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.d.ts +18 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.js +197 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.d.ts +16 -17
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.js +6 -4
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.d.ts +2 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +6 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +31 -24
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +6 -30
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.context.d.ts +11 -0
- package/build/cjs/src/media-site-media-v1-folder.context.js +113 -0
- package/build/cjs/src/media-site-media-v1-folder.context.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-folder.http.d.ts +9 -10
- package/build/cjs/src/media-site-media-v1-folder.http.js +6 -4
- package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.public.d.ts +2 -1
- package/build/cjs/src/media-site-media-v1-folder.public.js +5 -1
- package/build/cjs/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +30 -24
- package/build/cjs/src/media-site-media-v1-folder.universal.js +5 -23
- package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/build/es/context.d.ts +4 -0
- package/build/es/context.js +5 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +2 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +2 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +2 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -1
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.d.ts +8 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js +68 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +16 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.js +236 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.d.ts +24 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.js +110 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.d.ts +26 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.js +35 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.d.ts +221 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.js +19 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.d.ts +315 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.js +375 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.d.ts +13 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js +123 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +29 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.js +432 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.d.ts +33 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.js +200 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.d.ts +59 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.js +60 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.d.ts +949 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.js +24 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.d.ts +907 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.js +711 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.js.map +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.context.d.ts +18 -0
- package/build/es/src/media-site-media-v1-file-descriptor.context.js +178 -0
- package/build/es/src/media-site-media-v1-file-descriptor.context.js.map +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.http.d.ts +16 -17
- package/build/es/src/media-site-media-v1-file-descriptor.http.js +6 -4
- package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +2 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.js +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +31 -24
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +5 -29
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.context.d.ts +11 -0
- package/build/es/src/media-site-media-v1-folder.context.js +101 -0
- package/build/es/src/media-site-media-v1-folder.context.js.map +1 -0
- package/build/es/src/media-site-media-v1-folder.http.d.ts +9 -10
- package/build/es/src/media-site-media-v1-folder.http.js +6 -4
- package/build/es/src/media-site-media-v1-folder.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.public.d.ts +2 -1
- package/build/es/src/media-site-media-v1-folder.public.js +1 -0
- package/build/es/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.universal.d.ts +30 -24
- package/build/es/src/media-site-media-v1-folder.universal.js +4 -22
- package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +7 -5
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { serializer } from '@wix/metro-runtime/velo';
|
|
11
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
12
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
13
|
+
import * as ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory from './media-enterprise-public-media-v1-enterprise-category.http';
|
|
14
|
+
const _toVeloEntity = '$';
|
|
15
|
+
const _fromVeloEntity = '$';
|
|
16
|
+
export var PublishStatus;
|
|
17
|
+
(function (PublishStatus) {
|
|
18
|
+
PublishStatus["UNDEFINED"] = "UNDEFINED";
|
|
19
|
+
PublishStatus["UNPUBLISHED"] = "UNPUBLISHED";
|
|
20
|
+
PublishStatus["PUBLISHED"] = "PUBLISHED";
|
|
21
|
+
PublishStatus["WIX_ONLY"] = "WIX_ONLY";
|
|
22
|
+
})(PublishStatus || (PublishStatus = {}));
|
|
23
|
+
export var MediaType;
|
|
24
|
+
(function (MediaType) {
|
|
25
|
+
MediaType["MIXED"] = "MIXED";
|
|
26
|
+
MediaType["IMAGE"] = "IMAGE";
|
|
27
|
+
MediaType["VIDEO"] = "VIDEO";
|
|
28
|
+
MediaType["AUDIO"] = "AUDIO";
|
|
29
|
+
MediaType["DOCUMENT"] = "DOCUMENT";
|
|
30
|
+
MediaType["VECTOR"] = "VECTOR";
|
|
31
|
+
MediaType["ARCHIVE"] = "ARCHIVE";
|
|
32
|
+
MediaType["MODEL3D"] = "MODEL3D";
|
|
33
|
+
})(MediaType || (MediaType = {}));
|
|
34
|
+
const _createCategoryRequest = {};
|
|
35
|
+
const _createCategoryResponse = {};
|
|
36
|
+
const _deleteCategoryRequest = {};
|
|
37
|
+
const _deleteCategoryResponse = {};
|
|
38
|
+
const _enterpriseCategoryTree = { subCategories: '_enterpriseCategoryTree' };
|
|
39
|
+
const _enterpriseOnboardingRequest = {};
|
|
40
|
+
const _enterpriseOnboardingResponse = {};
|
|
41
|
+
const _getCategoryRequest = {};
|
|
42
|
+
const _getCategoryResponse = { category: '_enterpriseCategoryTree' };
|
|
43
|
+
const _getMediaManagerCategoriesRequest = {};
|
|
44
|
+
const _getMediaManagerCategoriesResponse = {
|
|
45
|
+
category: '_enterpriseCategoryTree',
|
|
46
|
+
};
|
|
47
|
+
const _updateCategoryRequest = {};
|
|
48
|
+
const _updateCategoryResponse = {};
|
|
49
|
+
export const onEnterpriseCategoryCreated = EventDefinition('wix.media.enterprise_public_media.v1.enterprise_category_created')();
|
|
50
|
+
export const onEnterpriseCategoryDeleted = EventDefinition('wix.media.enterprise_public_media.v1.enterprise_category_deleted')();
|
|
51
|
+
export const onEnterpriseCategoryUpdated = EventDefinition('wix.media.enterprise_public_media.v1.enterprise_category_updated')();
|
|
52
|
+
/**
|
|
53
|
+
* Fetch a list of random media from different providers, using site information to customize results when available
|
|
54
|
+
* @param category - The category object that will be created
|
|
55
|
+
* @public
|
|
56
|
+
* @documentationMaturity preview
|
|
57
|
+
* @requiredField category
|
|
58
|
+
* @requiredField category.displayName
|
|
59
|
+
* @returns A list of items matching the request
|
|
60
|
+
*/
|
|
61
|
+
export function createCategory(category) {
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
64
|
+
const requestTransformation = { category: '$[0]' };
|
|
65
|
+
const responseTransformation = '$.category';
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
68
|
+
const { toAmbassadorRequest } = serializer({
|
|
69
|
+
rootSchema: _createCategoryRequest,
|
|
70
|
+
depSchemas: {},
|
|
71
|
+
fqdnTransformation: {
|
|
72
|
+
paths: [...['category']],
|
|
73
|
+
transformation: _fromVeloEntity,
|
|
74
|
+
},
|
|
75
|
+
customTransformation: requestTransformation,
|
|
76
|
+
});
|
|
77
|
+
const { fromJSON } = serializer({
|
|
78
|
+
rootSchema: _createCategoryResponse,
|
|
79
|
+
depSchemas: {},
|
|
80
|
+
fqdnTransformation: {
|
|
81
|
+
paths: [...['category']],
|
|
82
|
+
transformation: _toVeloEntity,
|
|
83
|
+
},
|
|
84
|
+
customTransformation: responseTransformation,
|
|
85
|
+
});
|
|
86
|
+
const payload = toAmbassadorRequest([category]);
|
|
87
|
+
const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.createCategory(payload);
|
|
88
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
89
|
+
try {
|
|
90
|
+
const result = yield httpClient.request(reqOpts);
|
|
91
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
92
|
+
return fromJSON(result.data);
|
|
93
|
+
}
|
|
94
|
+
catch (err) {
|
|
95
|
+
const transformedError = sdkTransformError(err, {
|
|
96
|
+
spreadPathsToArguments: {},
|
|
97
|
+
explicitPathsToArguments: { category: '$[0]' },
|
|
98
|
+
singleArgumentUnchanged: false,
|
|
99
|
+
}, ['category']);
|
|
100
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
101
|
+
throw transformedError;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Delete a category including all its subcategories - but not the items
|
|
107
|
+
* @param categoryId - Category id
|
|
108
|
+
* @public
|
|
109
|
+
* @documentationMaturity preview
|
|
110
|
+
* @requiredField categoryId
|
|
111
|
+
*/
|
|
112
|
+
export function deleteCategory(categoryId) {
|
|
113
|
+
var _a, _b, _c;
|
|
114
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
115
|
+
const requestTransformation = { categoryId: '$[0]' };
|
|
116
|
+
const responseTransformation = '$';
|
|
117
|
+
// @ts-ignore
|
|
118
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
119
|
+
const { toAmbassadorRequest } = serializer({
|
|
120
|
+
rootSchema: _deleteCategoryRequest,
|
|
121
|
+
depSchemas: {},
|
|
122
|
+
fqdnTransformation: {
|
|
123
|
+
paths: [],
|
|
124
|
+
transformation: _fromVeloEntity,
|
|
125
|
+
},
|
|
126
|
+
customTransformation: requestTransformation,
|
|
127
|
+
});
|
|
128
|
+
const { fromJSON } = serializer({
|
|
129
|
+
rootSchema: _deleteCategoryResponse,
|
|
130
|
+
depSchemas: {},
|
|
131
|
+
fqdnTransformation: {
|
|
132
|
+
paths: [],
|
|
133
|
+
transformation: _toVeloEntity,
|
|
134
|
+
},
|
|
135
|
+
customTransformation: responseTransformation,
|
|
136
|
+
});
|
|
137
|
+
const payload = toAmbassadorRequest([categoryId]);
|
|
138
|
+
const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.deleteCategory(payload);
|
|
139
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
140
|
+
try {
|
|
141
|
+
const result = yield httpClient.request(reqOpts);
|
|
142
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
143
|
+
}
|
|
144
|
+
catch (err) {
|
|
145
|
+
const transformedError = sdkTransformError(err, {
|
|
146
|
+
spreadPathsToArguments: {},
|
|
147
|
+
explicitPathsToArguments: { categoryId: '$[0]' },
|
|
148
|
+
singleArgumentUnchanged: false,
|
|
149
|
+
}, ['categoryId']);
|
|
150
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
151
|
+
throw transformedError;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Update category details
|
|
157
|
+
* @param _id - Id of the category
|
|
158
|
+
* @public
|
|
159
|
+
* @documentationMaturity preview
|
|
160
|
+
* @requiredField _id
|
|
161
|
+
* @requiredField category
|
|
162
|
+
* @returns The updated category
|
|
163
|
+
*/
|
|
164
|
+
export function updateCategory(_id, category) {
|
|
165
|
+
var _a, _b, _c;
|
|
166
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
167
|
+
const requestTransformation = { category: { '*': '$[1]', id: '$[0]' } };
|
|
168
|
+
const responseTransformation = '$.category';
|
|
169
|
+
// @ts-ignore
|
|
170
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
171
|
+
const { toAmbassadorRequest } = serializer({
|
|
172
|
+
rootSchema: _updateCategoryRequest,
|
|
173
|
+
depSchemas: {},
|
|
174
|
+
fqdnTransformation: {
|
|
175
|
+
paths: [...['category']],
|
|
176
|
+
transformation: _fromVeloEntity,
|
|
177
|
+
},
|
|
178
|
+
customTransformation: requestTransformation,
|
|
179
|
+
});
|
|
180
|
+
const { fromJSON } = serializer({
|
|
181
|
+
rootSchema: _updateCategoryResponse,
|
|
182
|
+
depSchemas: {},
|
|
183
|
+
fqdnTransformation: {
|
|
184
|
+
paths: [...['category']],
|
|
185
|
+
transformation: _toVeloEntity,
|
|
186
|
+
},
|
|
187
|
+
customTransformation: responseTransformation,
|
|
188
|
+
});
|
|
189
|
+
const payload = toAmbassadorRequest([_id, category]);
|
|
190
|
+
const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.updateCategory(payload);
|
|
191
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
192
|
+
try {
|
|
193
|
+
const result = yield httpClient.request(reqOpts);
|
|
194
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
195
|
+
return fromJSON(result.data);
|
|
196
|
+
}
|
|
197
|
+
catch (err) {
|
|
198
|
+
const transformedError = sdkTransformError(err, {
|
|
199
|
+
spreadPathsToArguments: { category: '$[1]' },
|
|
200
|
+
explicitPathsToArguments: { 'category.id': '$[0]' },
|
|
201
|
+
singleArgumentUnchanged: false,
|
|
202
|
+
}, ['_id', 'category']);
|
|
203
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
204
|
+
throw transformedError;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Get information about a specific category
|
|
210
|
+
* @param categoryId - Category id
|
|
211
|
+
* @public
|
|
212
|
+
* @documentationMaturity preview
|
|
213
|
+
* @requiredField categoryId
|
|
214
|
+
* @returns The category details
|
|
215
|
+
*/
|
|
216
|
+
export function getCategory(categoryId, options) {
|
|
217
|
+
var _a, _b, _c;
|
|
218
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
219
|
+
const requestTransformation = {
|
|
220
|
+
categoryId: '$[0]',
|
|
221
|
+
levels: '$[1].levels',
|
|
222
|
+
publishStatus: '$[1].publishStatus',
|
|
223
|
+
};
|
|
224
|
+
const responseTransformation = '$.category';
|
|
225
|
+
// @ts-ignore
|
|
226
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
227
|
+
const { toAmbassadorRequest } = serializer({
|
|
228
|
+
rootSchema: _getCategoryRequest,
|
|
229
|
+
depSchemas: {},
|
|
230
|
+
fqdnTransformation: {
|
|
231
|
+
paths: [],
|
|
232
|
+
transformation: _fromVeloEntity,
|
|
233
|
+
},
|
|
234
|
+
customTransformation: requestTransformation,
|
|
235
|
+
});
|
|
236
|
+
const { fromJSON } = serializer({
|
|
237
|
+
rootSchema: _getCategoryResponse,
|
|
238
|
+
depSchemas: { _enterpriseCategoryTree },
|
|
239
|
+
fqdnTransformation: {
|
|
240
|
+
paths: [...['category.category']],
|
|
241
|
+
transformation: _toVeloEntity,
|
|
242
|
+
},
|
|
243
|
+
customTransformation: responseTransformation,
|
|
244
|
+
});
|
|
245
|
+
const payload = toAmbassadorRequest([categoryId, options]);
|
|
246
|
+
const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getCategory(payload);
|
|
247
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
248
|
+
try {
|
|
249
|
+
const result = yield httpClient.request(reqOpts);
|
|
250
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
251
|
+
return fromJSON(result.data);
|
|
252
|
+
}
|
|
253
|
+
catch (err) {
|
|
254
|
+
const transformedError = sdkTransformError(err, {
|
|
255
|
+
spreadPathsToArguments: {},
|
|
256
|
+
explicitPathsToArguments: {
|
|
257
|
+
categoryId: '$[0]',
|
|
258
|
+
levels: '$[1].levels',
|
|
259
|
+
publishStatus: '$[1].publishStatus',
|
|
260
|
+
},
|
|
261
|
+
singleArgumentUnchanged: false,
|
|
262
|
+
}, ['categoryId', 'options']);
|
|
263
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
264
|
+
throw transformedError;
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Create the enterprise category under "enterprise-media" main category
|
|
270
|
+
* the caller identity must be have the same accountId of the request
|
|
271
|
+
* @param accountId - The account id of the organization - will be used as the organization category id
|
|
272
|
+
* @public
|
|
273
|
+
* @documentationMaturity preview
|
|
274
|
+
* @requiredField accountId
|
|
275
|
+
*/
|
|
276
|
+
export function enterpriseOnboarding(accountId, options) {
|
|
277
|
+
var _a, _b, _c;
|
|
278
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
279
|
+
const requestTransformation = {
|
|
280
|
+
accountId: '$[0]',
|
|
281
|
+
accountName: '$[1].accountName',
|
|
282
|
+
};
|
|
283
|
+
const responseTransformation = '$';
|
|
284
|
+
// @ts-ignore
|
|
285
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
286
|
+
const { toAmbassadorRequest } = serializer({
|
|
287
|
+
rootSchema: _enterpriseOnboardingRequest,
|
|
288
|
+
depSchemas: {},
|
|
289
|
+
fqdnTransformation: {
|
|
290
|
+
paths: [],
|
|
291
|
+
transformation: _fromVeloEntity,
|
|
292
|
+
},
|
|
293
|
+
customTransformation: requestTransformation,
|
|
294
|
+
});
|
|
295
|
+
const { fromJSON } = serializer({
|
|
296
|
+
rootSchema: _enterpriseOnboardingResponse,
|
|
297
|
+
depSchemas: {},
|
|
298
|
+
fqdnTransformation: {
|
|
299
|
+
paths: [...['category']],
|
|
300
|
+
transformation: _toVeloEntity,
|
|
301
|
+
},
|
|
302
|
+
customTransformation: responseTransformation,
|
|
303
|
+
});
|
|
304
|
+
const payload = toAmbassadorRequest([accountId, options]);
|
|
305
|
+
const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.enterpriseOnboarding(payload);
|
|
306
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
307
|
+
try {
|
|
308
|
+
const result = yield httpClient.request(reqOpts);
|
|
309
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
310
|
+
return fromJSON(result.data);
|
|
311
|
+
}
|
|
312
|
+
catch (err) {
|
|
313
|
+
const transformedError = sdkTransformError(err, {
|
|
314
|
+
spreadPathsToArguments: {},
|
|
315
|
+
explicitPathsToArguments: {
|
|
316
|
+
accountId: '$[0]',
|
|
317
|
+
accountName: '$[1].accountName',
|
|
318
|
+
},
|
|
319
|
+
singleArgumentUnchanged: false,
|
|
320
|
+
}, ['accountId', 'options']);
|
|
321
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
322
|
+
throw transformedError;
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Get the account category tree details
|
|
328
|
+
* @public
|
|
329
|
+
* @documentationMaturity preview
|
|
330
|
+
*/
|
|
331
|
+
export function getMediaManagerCategories() {
|
|
332
|
+
var _a, _b, _c;
|
|
333
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
334
|
+
const requestTransformation = {};
|
|
335
|
+
const responseTransformation = '$';
|
|
336
|
+
// @ts-ignore
|
|
337
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
338
|
+
const { toAmbassadorRequest } = serializer({
|
|
339
|
+
rootSchema: _getMediaManagerCategoriesRequest,
|
|
340
|
+
depSchemas: {},
|
|
341
|
+
fqdnTransformation: {
|
|
342
|
+
paths: [],
|
|
343
|
+
transformation: _fromVeloEntity,
|
|
344
|
+
},
|
|
345
|
+
customTransformation: requestTransformation,
|
|
346
|
+
});
|
|
347
|
+
const { fromJSON } = serializer({
|
|
348
|
+
rootSchema: _getMediaManagerCategoriesResponse,
|
|
349
|
+
depSchemas: { _enterpriseCategoryTree },
|
|
350
|
+
fqdnTransformation: {
|
|
351
|
+
paths: [...['category.category']],
|
|
352
|
+
transformation: _toVeloEntity,
|
|
353
|
+
},
|
|
354
|
+
customTransformation: responseTransformation,
|
|
355
|
+
});
|
|
356
|
+
const payload = toAmbassadorRequest([]);
|
|
357
|
+
const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getMediaManagerCategories(payload);
|
|
358
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
359
|
+
try {
|
|
360
|
+
const result = yield httpClient.request(reqOpts);
|
|
361
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
362
|
+
return fromJSON(result.data);
|
|
363
|
+
}
|
|
364
|
+
catch (err) {
|
|
365
|
+
const transformedError = sdkTransformError(err, {
|
|
366
|
+
spreadPathsToArguments: {},
|
|
367
|
+
explicitPathsToArguments: {},
|
|
368
|
+
singleArgumentUnchanged: false,
|
|
369
|
+
}, []);
|
|
370
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
371
|
+
throw transformedError;
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
//# sourceMappingURL=media-enterprise-public-media-v1-enterprise-category.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-category.universal.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-category.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,E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adUrl, importFile as publicImportFile, searchItems as publicSearchItems, queryItems as publicQueryItems, updateItem as publicUpdateItem, bulkUpdateItem as publicBulkUpdateItem, getItem as publicGetItem, linkItemToCategories as publicLinkItemToCategories, unlinkItemFromCategories as publicUnlinkItemFromCategories, overwriteItemCategories as publicOverwriteItemCategories } from './media-enterprise-public-media-v1-enterprise-item.public';
|
|
2
|
+
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
+
export declare const itemUploadCallback: BuildRESTFunction<typeof publicItemUploadCallback>;
|
|
4
|
+
export declare const generateFileUploadUrl: BuildRESTFunction<typeof publicGenerateFileUploadUrl>;
|
|
5
|
+
export declare const importFile: BuildRESTFunction<typeof publicImportFile>;
|
|
6
|
+
export declare const searchItems: BuildRESTFunction<typeof publicSearchItems>;
|
|
7
|
+
export declare const queryItems: BuildRESTFunction<typeof publicQueryItems>;
|
|
8
|
+
export declare const updateItem: BuildRESTFunction<typeof publicUpdateItem>;
|
|
9
|
+
export declare const bulkUpdateItem: BuildRESTFunction<typeof publicBulkUpdateItem>;
|
|
10
|
+
export declare const getItem: BuildRESTFunction<typeof publicGetItem>;
|
|
11
|
+
export declare const linkItemToCategories: BuildRESTFunction<typeof publicLinkItemToCategories>;
|
|
12
|
+
export declare const unlinkItemFromCategories: BuildRESTFunction<typeof publicUnlinkItemFromCategories>;
|
|
13
|
+
export declare const overwriteItemCategories: BuildRESTFunction<typeof publicOverwriteItemCategories>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { itemUploadCallback as publicItemUploadCallback, generateFileUploadUrl as publicGenerateFileUploadUrl, importFile as publicImportFile, searchItems as publicSearchItems, queryItems as publicQueryItems, updateItem as publicUpdateItem, bulkUpdateItem as publicBulkUpdateItem, getItem as publicGetItem, linkItemToCategories as publicLinkItemToCategories, unlinkItemFromCategories as publicUnlinkItemFromCategories, overwriteItemCategories as publicOverwriteItemCategories, } from './media-enterprise-public-media-v1-enterprise-item.public';
|
|
2
|
+
export const itemUploadCallback = (...args) => {
|
|
3
|
+
var _a;
|
|
4
|
+
// @ts-expect-error
|
|
5
|
+
if (!globalThis.__wix_context__) {
|
|
6
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
7
|
+
}
|
|
8
|
+
// @ts-expect-error
|
|
9
|
+
return globalThis.__wix_context__
|
|
10
|
+
.initWixModules(publicItemUploadCallback, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
11
|
+
.apply(undefined, args);
|
|
12
|
+
};
|
|
13
|
+
export const generateFileUploadUrl = (...args) => {
|
|
14
|
+
var _a;
|
|
15
|
+
// @ts-expect-error
|
|
16
|
+
if (!globalThis.__wix_context__) {
|
|
17
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
18
|
+
}
|
|
19
|
+
// @ts-expect-error
|
|
20
|
+
return globalThis.__wix_context__
|
|
21
|
+
.initWixModules(publicGenerateFileUploadUrl, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
22
|
+
.apply(undefined, args);
|
|
23
|
+
};
|
|
24
|
+
export const importFile = (...args) => {
|
|
25
|
+
var _a;
|
|
26
|
+
// @ts-expect-error
|
|
27
|
+
if (!globalThis.__wix_context__) {
|
|
28
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
|
+
}
|
|
30
|
+
// @ts-expect-error
|
|
31
|
+
return globalThis.__wix_context__
|
|
32
|
+
.initWixModules(publicImportFile, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
33
|
+
.apply(undefined, args);
|
|
34
|
+
};
|
|
35
|
+
export const searchItems = (...args) => {
|
|
36
|
+
var _a;
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
if (!globalThis.__wix_context__) {
|
|
39
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
40
|
+
}
|
|
41
|
+
// @ts-expect-error
|
|
42
|
+
return globalThis.__wix_context__
|
|
43
|
+
.initWixModules(publicSearchItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
44
|
+
.apply(undefined, args);
|
|
45
|
+
};
|
|
46
|
+
export const queryItems = (...args) => {
|
|
47
|
+
var _a;
|
|
48
|
+
// @ts-expect-error
|
|
49
|
+
if (!globalThis.__wix_context__) {
|
|
50
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
51
|
+
}
|
|
52
|
+
// @ts-expect-error
|
|
53
|
+
return globalThis.__wix_context__
|
|
54
|
+
.initWixModules(publicQueryItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
55
|
+
.apply(undefined, args);
|
|
56
|
+
};
|
|
57
|
+
export const updateItem = (...args) => {
|
|
58
|
+
var _a;
|
|
59
|
+
// @ts-expect-error
|
|
60
|
+
if (!globalThis.__wix_context__) {
|
|
61
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
62
|
+
}
|
|
63
|
+
// @ts-expect-error
|
|
64
|
+
return globalThis.__wix_context__
|
|
65
|
+
.initWixModules(publicUpdateItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
66
|
+
.apply(undefined, args);
|
|
67
|
+
};
|
|
68
|
+
export const bulkUpdateItem = (...args) => {
|
|
69
|
+
var _a;
|
|
70
|
+
// @ts-expect-error
|
|
71
|
+
if (!globalThis.__wix_context__) {
|
|
72
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
73
|
+
}
|
|
74
|
+
// @ts-expect-error
|
|
75
|
+
return globalThis.__wix_context__
|
|
76
|
+
.initWixModules(publicBulkUpdateItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
77
|
+
.apply(undefined, args);
|
|
78
|
+
};
|
|
79
|
+
export const getItem = (...args) => {
|
|
80
|
+
var _a;
|
|
81
|
+
// @ts-expect-error
|
|
82
|
+
if (!globalThis.__wix_context__) {
|
|
83
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
84
|
+
}
|
|
85
|
+
// @ts-expect-error
|
|
86
|
+
return globalThis.__wix_context__
|
|
87
|
+
.initWixModules(publicGetItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
88
|
+
.apply(undefined, args);
|
|
89
|
+
};
|
|
90
|
+
export const linkItemToCategories = (...args) => {
|
|
91
|
+
var _a;
|
|
92
|
+
// @ts-expect-error
|
|
93
|
+
if (!globalThis.__wix_context__) {
|
|
94
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
95
|
+
}
|
|
96
|
+
// @ts-expect-error
|
|
97
|
+
return globalThis.__wix_context__
|
|
98
|
+
.initWixModules(publicLinkItemToCategories, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
99
|
+
.apply(undefined, args);
|
|
100
|
+
};
|
|
101
|
+
export const unlinkItemFromCategories = (...args) => {
|
|
102
|
+
var _a;
|
|
103
|
+
// @ts-expect-error
|
|
104
|
+
if (!globalThis.__wix_context__) {
|
|
105
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
106
|
+
}
|
|
107
|
+
// @ts-expect-error
|
|
108
|
+
return globalThis.__wix_context__
|
|
109
|
+
.initWixModules(publicUnlinkItemFromCategories, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
110
|
+
.apply(undefined, args);
|
|
111
|
+
};
|
|
112
|
+
export const overwriteItemCategories = (...args) => {
|
|
113
|
+
var _a;
|
|
114
|
+
// @ts-expect-error
|
|
115
|
+
if (!globalThis.__wix_context__) {
|
|
116
|
+
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
117
|
+
}
|
|
118
|
+
// @ts-expect-error
|
|
119
|
+
return globalThis.__wix_context__
|
|
120
|
+
.initWixModules(publicOverwriteItemCategories, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
121
|
+
.apply(undefined, args);
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=media-enterprise-public-media-v1-enterprise-item.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-item.context.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-item.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,wBAAwB,EAC9C,qBAAqB,IAAI,2BAA2B,EACpD,UAAU,IAAI,gBAAgB,EAC9B,WAAW,IAAI,iBAAiB,EAChC,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,cAAc,IAAI,oBAAoB,EACtC,OAAO,IAAI,aAAa,EACxB,oBAAoB,IAAI,0BAA0B,EAClD,wBAAwB,IAAI,8BAA8B,EAC1D,uBAAuB,IAAI,6BAA6B,GACzD,MAAM,2DAA2D,CAAC;AAGnE,MAAM,CAAC,MAAM,kBAAkB,GAE3B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CACb,wBAAwB,EACxB,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAE9B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB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CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAEhC,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CACb,6BAA6B,EAC7B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/** Internal API called by the public media backend, notify about a file that was created enterprise public media server */
|
|
3
|
+
export declare function itemUploadCallback(payload: object): RequestOptionsFactory<any>;
|
|
4
|
+
/** Generate an upload url that will make public media to call the enterprise callback endpoint */
|
|
5
|
+
export declare function generateFileUploadUrl(payload: object): RequestOptionsFactory<any>;
|
|
6
|
+
/** Import a file using a url */
|
|
7
|
+
export declare function importFile(payload: object): RequestOptionsFactory<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Search items, all filters only support equality
|
|
10
|
+
* Each query must contain a categoryId filter
|
|
11
|
+
*/
|
|
12
|
+
export declare function searchItems(payload: object): RequestOptionsFactory<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Query items allowing to sort by specified fields, all filters only support equality
|
|
15
|
+
* Each query must contain a categoryId filter
|
|
16
|
+
*/
|
|
17
|
+
export declare function queryItems(payload: object): RequestOptionsFactory<any>;
|
|
18
|
+
/** Update an item */
|
|
19
|
+
export declare function updateItem(payload: object): RequestOptionsFactory<any>;
|
|
20
|
+
/** Bulk update an item */
|
|
21
|
+
export declare function bulkUpdateItem(payload: object): RequestOptionsFactory<any>;
|
|
22
|
+
/** Get item details */
|
|
23
|
+
export declare function getItem(payload: object): RequestOptionsFactory<any>;
|
|
24
|
+
/** Link the item to multiple categories */
|
|
25
|
+
export declare function linkItemToCategories(payload: object): RequestOptionsFactory<any>;
|
|
26
|
+
/** Unlink the item from multiple categories */
|
|
27
|
+
export declare function unlinkItemFromCategories(payload: object): RequestOptionsFactory<any>;
|
|
28
|
+
/** Overwrite item categories */
|
|
29
|
+
export declare function overwriteItemCategories(payload: object): RequestOptionsFactory<any>;
|