@wix/media 1.0.59 → 1.0.60

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.
Files changed (142) hide show
  1. package/build/cjs/context.d.ts +4 -0
  2. package/build/cjs/context.js +31 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +2 -0
  5. package/build/cjs/index.js +3 -1
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/index.typings.d.ts +2 -0
  8. package/build/cjs/index.typings.js +3 -1
  9. package/build/cjs/index.typings.js.map +1 -1
  10. package/build/cjs/meta.d.ts +2 -0
  11. package/build/cjs/meta.js +3 -1
  12. package/build/cjs/meta.js.map +1 -1
  13. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.d.ts +8 -0
  14. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.js +71 -0
  15. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -0
  16. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +17 -0
  17. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.js +245 -0
  18. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -0
  19. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.d.ts +24 -0
  20. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.js +142 -0
  21. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.js.map +1 -0
  22. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.d.ts +26 -0
  23. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.js +49 -0
  24. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.js.map +1 -0
  25. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.d.ts +221 -0
  26. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.js +22 -0
  27. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.js.map +1 -0
  28. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.d.ts +315 -0
  29. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.js +407 -0
  30. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.js.map +1 -0
  31. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.d.ts +13 -0
  32. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js +126 -0
  33. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -0
  34. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +30 -0
  35. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.js +446 -0
  36. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -0
  37. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.d.ts +33 -0
  38. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.js +237 -0
  39. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.js.map +1 -0
  40. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.d.ts +59 -0
  41. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.js +81 -0
  42. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.js.map +1 -0
  43. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.d.ts +949 -0
  44. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.js +27 -0
  45. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.js.map +1 -0
  46. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.d.ts +907 -0
  47. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.js +748 -0
  48. package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.js.map +1 -0
  49. package/build/cjs/src/media-site-media-v1-file-descriptor.context.d.ts +18 -0
  50. package/build/cjs/src/media-site-media-v1-file-descriptor.context.js +181 -0
  51. package/build/cjs/src/media-site-media-v1-file-descriptor.context.js.map +1 -0
  52. package/build/cjs/src/media-site-media-v1-file-descriptor.http.js +6 -4
  53. package/build/cjs/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
  54. package/build/cjs/src/media-site-media-v1-file-descriptor.public.d.ts +2 -1
  55. package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +6 -1
  56. package/build/cjs/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
  57. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +31 -24
  58. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +6 -30
  59. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
  60. package/build/cjs/src/media-site-media-v1-folder.context.d.ts +11 -0
  61. package/build/cjs/src/media-site-media-v1-folder.context.js +104 -0
  62. package/build/cjs/src/media-site-media-v1-folder.context.js.map +1 -0
  63. package/build/cjs/src/media-site-media-v1-folder.http.js +6 -4
  64. package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -1
  65. package/build/cjs/src/media-site-media-v1-folder.public.d.ts +2 -1
  66. package/build/cjs/src/media-site-media-v1-folder.public.js +5 -1
  67. package/build/cjs/src/media-site-media-v1-folder.public.js.map +1 -1
  68. package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +30 -24
  69. package/build/cjs/src/media-site-media-v1-folder.universal.js +5 -23
  70. package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
  71. package/build/es/context.d.ts +4 -0
  72. package/build/es/context.js +5 -0
  73. package/build/es/context.js.map +1 -0
  74. package/build/es/index.d.ts +2 -0
  75. package/build/es/index.js +2 -0
  76. package/build/es/index.js.map +1 -1
  77. package/build/es/index.typings.d.ts +2 -0
  78. package/build/es/index.typings.js +2 -0
  79. package/build/es/index.typings.js.map +1 -1
  80. package/build/es/meta.d.ts +2 -0
  81. package/build/es/meta.js +2 -0
  82. package/build/es/meta.js.map +1 -1
  83. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.d.ts +8 -0
  84. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js +62 -0
  85. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -0
  86. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +17 -0
  87. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.js +236 -0
  88. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -0
  89. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.d.ts +24 -0
  90. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.js +110 -0
  91. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.js.map +1 -0
  92. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.d.ts +26 -0
  93. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.js +35 -0
  94. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.js.map +1 -0
  95. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.d.ts +221 -0
  96. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.js +19 -0
  97. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.js.map +1 -0
  98. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.d.ts +315 -0
  99. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.js +375 -0
  100. package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.js.map +1 -0
  101. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.d.ts +13 -0
  102. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js +112 -0
  103. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -0
  104. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +30 -0
  105. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.js +432 -0
  106. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -0
  107. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.d.ts +33 -0
  108. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.js +200 -0
  109. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.js.map +1 -0
  110. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.d.ts +59 -0
  111. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.js +60 -0
  112. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.js.map +1 -0
  113. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.d.ts +949 -0
  114. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.js +24 -0
  115. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.js.map +1 -0
  116. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.d.ts +907 -0
  117. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.js +711 -0
  118. package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.js.map +1 -0
  119. package/build/es/src/media-site-media-v1-file-descriptor.context.d.ts +18 -0
  120. package/build/es/src/media-site-media-v1-file-descriptor.context.js +162 -0
  121. package/build/es/src/media-site-media-v1-file-descriptor.context.js.map +1 -0
  122. package/build/es/src/media-site-media-v1-file-descriptor.http.js +6 -4
  123. package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
  124. package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +2 -1
  125. package/build/es/src/media-site-media-v1-file-descriptor.public.js +1 -0
  126. package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
  127. package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +31 -24
  128. package/build/es/src/media-site-media-v1-file-descriptor.universal.js +5 -29
  129. package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
  130. package/build/es/src/media-site-media-v1-folder.context.d.ts +11 -0
  131. package/build/es/src/media-site-media-v1-folder.context.js +92 -0
  132. package/build/es/src/media-site-media-v1-folder.context.js.map +1 -0
  133. package/build/es/src/media-site-media-v1-folder.http.js +6 -4
  134. package/build/es/src/media-site-media-v1-folder.http.js.map +1 -1
  135. package/build/es/src/media-site-media-v1-folder.public.d.ts +2 -1
  136. package/build/es/src/media-site-media-v1-folder.public.js +1 -0
  137. package/build/es/src/media-site-media-v1-folder.public.js.map +1 -1
  138. package/build/es/src/media-site-media-v1-folder.universal.d.ts +30 -24
  139. package/build/es/src/media-site-media-v1-folder.universal.js +4 -22
  140. package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
  141. package/context/package.json +6 -0
  142. package/package.json +7 -5
@@ -0,0 +1,407 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.getMediaManagerCategories = exports.enterpriseOnboarding = exports.getCategory = exports.updateCategory = exports.deleteCategory = exports.createCategory = exports.onEnterpriseCategoryUpdated = exports.onEnterpriseCategoryDeleted = exports.onEnterpriseCategoryCreated = exports.MediaType = exports.PublishStatus = void 0;
36
+ const velo_1 = require("@wix/metro-runtime/velo");
37
+ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
38
+ const sdk_types_1 = require("@wix/sdk-types");
39
+ const ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory = __importStar(require("./media-enterprise-public-media-v1-enterprise-category.http"));
40
+ const _toVeloEntity = '$';
41
+ const _fromVeloEntity = '$';
42
+ var PublishStatus;
43
+ (function (PublishStatus) {
44
+ PublishStatus["UNDEFINED"] = "UNDEFINED";
45
+ PublishStatus["UNPUBLISHED"] = "UNPUBLISHED";
46
+ PublishStatus["PUBLISHED"] = "PUBLISHED";
47
+ PublishStatus["WIX_ONLY"] = "WIX_ONLY";
48
+ })(PublishStatus || (exports.PublishStatus = PublishStatus = {}));
49
+ var MediaType;
50
+ (function (MediaType) {
51
+ MediaType["MIXED"] = "MIXED";
52
+ MediaType["IMAGE"] = "IMAGE";
53
+ MediaType["VIDEO"] = "VIDEO";
54
+ MediaType["AUDIO"] = "AUDIO";
55
+ MediaType["DOCUMENT"] = "DOCUMENT";
56
+ MediaType["VECTOR"] = "VECTOR";
57
+ MediaType["ARCHIVE"] = "ARCHIVE";
58
+ MediaType["MODEL3D"] = "MODEL3D";
59
+ })(MediaType || (exports.MediaType = MediaType = {}));
60
+ const _createCategoryRequest = {};
61
+ const _createCategoryResponse = {};
62
+ const _deleteCategoryRequest = {};
63
+ const _deleteCategoryResponse = {};
64
+ const _enterpriseCategoryTree = { subCategories: '_enterpriseCategoryTree' };
65
+ const _enterpriseOnboardingRequest = {};
66
+ const _enterpriseOnboardingResponse = {};
67
+ const _getCategoryRequest = {};
68
+ const _getCategoryResponse = { category: '_enterpriseCategoryTree' };
69
+ const _getMediaManagerCategoriesRequest = {};
70
+ const _getMediaManagerCategoriesResponse = {
71
+ category: '_enterpriseCategoryTree',
72
+ };
73
+ const _updateCategoryRequest = {};
74
+ const _updateCategoryResponse = {};
75
+ exports.onEnterpriseCategoryCreated = (0, sdk_types_1.EventDefinition)('wix.media.enterprise_public_media.v1.enterprise_category_created')();
76
+ exports.onEnterpriseCategoryDeleted = (0, sdk_types_1.EventDefinition)('wix.media.enterprise_public_media.v1.enterprise_category_deleted')();
77
+ exports.onEnterpriseCategoryUpdated = (0, sdk_types_1.EventDefinition)('wix.media.enterprise_public_media.v1.enterprise_category_updated')();
78
+ /**
79
+ * Fetch a list of random media from different providers, using site information to customize results when available
80
+ * @param category - The category object that will be created
81
+ * @public
82
+ * @documentationMaturity preview
83
+ * @requiredField category
84
+ * @requiredField category.displayName
85
+ * @returns A list of items matching the request
86
+ */
87
+ function createCategory(category) {
88
+ var _a, _b, _c;
89
+ return __awaiter(this, arguments, void 0, function* () {
90
+ const requestTransformation = { category: '$[0]' };
91
+ const responseTransformation = '$.category';
92
+ // @ts-ignore
93
+ const { httpClient, sideEffects } = arguments[1];
94
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
95
+ rootSchema: _createCategoryRequest,
96
+ depSchemas: {},
97
+ fqdnTransformation: {
98
+ paths: [...['category']],
99
+ transformation: _fromVeloEntity,
100
+ },
101
+ customTransformation: requestTransformation,
102
+ });
103
+ const { fromJSON } = (0, velo_1.serializer)({
104
+ rootSchema: _createCategoryResponse,
105
+ depSchemas: {},
106
+ fqdnTransformation: {
107
+ paths: [...['category']],
108
+ transformation: _toVeloEntity,
109
+ },
110
+ customTransformation: responseTransformation,
111
+ });
112
+ const payload = toAmbassadorRequest([category]);
113
+ const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.createCategory(payload);
114
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
115
+ try {
116
+ const result = yield httpClient.request(reqOpts);
117
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
118
+ return fromJSON(result.data);
119
+ }
120
+ catch (err) {
121
+ const transformedError = (0, transform_error_1.transformError)(err, {
122
+ spreadPathsToArguments: {},
123
+ explicitPathsToArguments: { category: '$[0]' },
124
+ singleArgumentUnchanged: false,
125
+ }, ['category']);
126
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
127
+ throw transformedError;
128
+ }
129
+ });
130
+ }
131
+ exports.createCategory = createCategory;
132
+ /**
133
+ * Delete a category including all its subcategories - but not the items
134
+ * @param categoryId - Category id
135
+ * @public
136
+ * @documentationMaturity preview
137
+ * @requiredField categoryId
138
+ */
139
+ function deleteCategory(categoryId) {
140
+ var _a, _b, _c;
141
+ return __awaiter(this, arguments, void 0, function* () {
142
+ const requestTransformation = { categoryId: '$[0]' };
143
+ const responseTransformation = '$';
144
+ // @ts-ignore
145
+ const { httpClient, sideEffects } = arguments[1];
146
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
147
+ rootSchema: _deleteCategoryRequest,
148
+ depSchemas: {},
149
+ fqdnTransformation: {
150
+ paths: [],
151
+ transformation: _fromVeloEntity,
152
+ },
153
+ customTransformation: requestTransformation,
154
+ });
155
+ const { fromJSON } = (0, velo_1.serializer)({
156
+ rootSchema: _deleteCategoryResponse,
157
+ depSchemas: {},
158
+ fqdnTransformation: {
159
+ paths: [],
160
+ transformation: _toVeloEntity,
161
+ },
162
+ customTransformation: responseTransformation,
163
+ });
164
+ const payload = toAmbassadorRequest([categoryId]);
165
+ const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.deleteCategory(payload);
166
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
167
+ try {
168
+ const result = yield httpClient.request(reqOpts);
169
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
170
+ }
171
+ catch (err) {
172
+ const transformedError = (0, transform_error_1.transformError)(err, {
173
+ spreadPathsToArguments: {},
174
+ explicitPathsToArguments: { categoryId: '$[0]' },
175
+ singleArgumentUnchanged: false,
176
+ }, ['categoryId']);
177
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
178
+ throw transformedError;
179
+ }
180
+ });
181
+ }
182
+ exports.deleteCategory = deleteCategory;
183
+ /**
184
+ * Update category details
185
+ * @param _id - Id of the category
186
+ * @public
187
+ * @documentationMaturity preview
188
+ * @requiredField _id
189
+ * @requiredField category
190
+ * @returns The updated category
191
+ */
192
+ function updateCategory(_id, category) {
193
+ var _a, _b, _c;
194
+ return __awaiter(this, arguments, void 0, function* () {
195
+ const requestTransformation = { category: { '*': '$[1]', id: '$[0]' } };
196
+ const responseTransformation = '$.category';
197
+ // @ts-ignore
198
+ const { httpClient, sideEffects } = arguments[2];
199
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
200
+ rootSchema: _updateCategoryRequest,
201
+ depSchemas: {},
202
+ fqdnTransformation: {
203
+ paths: [...['category']],
204
+ transformation: _fromVeloEntity,
205
+ },
206
+ customTransformation: requestTransformation,
207
+ });
208
+ const { fromJSON } = (0, velo_1.serializer)({
209
+ rootSchema: _updateCategoryResponse,
210
+ depSchemas: {},
211
+ fqdnTransformation: {
212
+ paths: [...['category']],
213
+ transformation: _toVeloEntity,
214
+ },
215
+ customTransformation: responseTransformation,
216
+ });
217
+ const payload = toAmbassadorRequest([_id, category]);
218
+ const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.updateCategory(payload);
219
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
220
+ try {
221
+ const result = yield httpClient.request(reqOpts);
222
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
223
+ return fromJSON(result.data);
224
+ }
225
+ catch (err) {
226
+ const transformedError = (0, transform_error_1.transformError)(err, {
227
+ spreadPathsToArguments: { category: '$[1]' },
228
+ explicitPathsToArguments: { 'category.id': '$[0]' },
229
+ singleArgumentUnchanged: false,
230
+ }, ['_id', 'category']);
231
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
232
+ throw transformedError;
233
+ }
234
+ });
235
+ }
236
+ exports.updateCategory = updateCategory;
237
+ /**
238
+ * Get information about a specific category
239
+ * @param categoryId - Category id
240
+ * @public
241
+ * @documentationMaturity preview
242
+ * @requiredField categoryId
243
+ * @returns The category details
244
+ */
245
+ function getCategory(categoryId, options) {
246
+ var _a, _b, _c;
247
+ return __awaiter(this, arguments, void 0, function* () {
248
+ const requestTransformation = {
249
+ categoryId: '$[0]',
250
+ levels: '$[1].levels',
251
+ publishStatus: '$[1].publishStatus',
252
+ };
253
+ const responseTransformation = '$.category';
254
+ // @ts-ignore
255
+ const { httpClient, sideEffects } = arguments[2];
256
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
257
+ rootSchema: _getCategoryRequest,
258
+ depSchemas: {},
259
+ fqdnTransformation: {
260
+ paths: [],
261
+ transformation: _fromVeloEntity,
262
+ },
263
+ customTransformation: requestTransformation,
264
+ });
265
+ const { fromJSON } = (0, velo_1.serializer)({
266
+ rootSchema: _getCategoryResponse,
267
+ depSchemas: { _enterpriseCategoryTree },
268
+ fqdnTransformation: {
269
+ paths: [...['category.category']],
270
+ transformation: _toVeloEntity,
271
+ },
272
+ customTransformation: responseTransformation,
273
+ });
274
+ const payload = toAmbassadorRequest([categoryId, options]);
275
+ const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getCategory(payload);
276
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
277
+ try {
278
+ const result = yield httpClient.request(reqOpts);
279
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
280
+ return fromJSON(result.data);
281
+ }
282
+ catch (err) {
283
+ const transformedError = (0, transform_error_1.transformError)(err, {
284
+ spreadPathsToArguments: {},
285
+ explicitPathsToArguments: {
286
+ categoryId: '$[0]',
287
+ levels: '$[1].levels',
288
+ publishStatus: '$[1].publishStatus',
289
+ },
290
+ singleArgumentUnchanged: false,
291
+ }, ['categoryId', 'options']);
292
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
293
+ throw transformedError;
294
+ }
295
+ });
296
+ }
297
+ exports.getCategory = getCategory;
298
+ /**
299
+ * Create the enterprise category under "enterprise-media" main category
300
+ * the caller identity must be have the same accountId of the request
301
+ * @param accountId - The account id of the organization - will be used as the organization category id
302
+ * @public
303
+ * @documentationMaturity preview
304
+ * @requiredField accountId
305
+ */
306
+ function enterpriseOnboarding(accountId, options) {
307
+ var _a, _b, _c;
308
+ return __awaiter(this, arguments, void 0, function* () {
309
+ const requestTransformation = {
310
+ accountId: '$[0]',
311
+ accountName: '$[1].accountName',
312
+ };
313
+ const responseTransformation = '$';
314
+ // @ts-ignore
315
+ const { httpClient, sideEffects } = arguments[2];
316
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
317
+ rootSchema: _enterpriseOnboardingRequest,
318
+ depSchemas: {},
319
+ fqdnTransformation: {
320
+ paths: [],
321
+ transformation: _fromVeloEntity,
322
+ },
323
+ customTransformation: requestTransformation,
324
+ });
325
+ const { fromJSON } = (0, velo_1.serializer)({
326
+ rootSchema: _enterpriseOnboardingResponse,
327
+ depSchemas: {},
328
+ fqdnTransformation: {
329
+ paths: [...['category']],
330
+ transformation: _toVeloEntity,
331
+ },
332
+ customTransformation: responseTransformation,
333
+ });
334
+ const payload = toAmbassadorRequest([accountId, options]);
335
+ const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.enterpriseOnboarding(payload);
336
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
337
+ try {
338
+ const result = yield httpClient.request(reqOpts);
339
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
340
+ return fromJSON(result.data);
341
+ }
342
+ catch (err) {
343
+ const transformedError = (0, transform_error_1.transformError)(err, {
344
+ spreadPathsToArguments: {},
345
+ explicitPathsToArguments: {
346
+ accountId: '$[0]',
347
+ accountName: '$[1].accountName',
348
+ },
349
+ singleArgumentUnchanged: false,
350
+ }, ['accountId', 'options']);
351
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
352
+ throw transformedError;
353
+ }
354
+ });
355
+ }
356
+ exports.enterpriseOnboarding = enterpriseOnboarding;
357
+ /**
358
+ * Get the account category tree details
359
+ * @public
360
+ * @documentationMaturity preview
361
+ */
362
+ function getMediaManagerCategories() {
363
+ var _a, _b, _c;
364
+ return __awaiter(this, arguments, void 0, function* () {
365
+ const requestTransformation = {};
366
+ const responseTransformation = '$';
367
+ // @ts-ignore
368
+ const { httpClient, sideEffects } = arguments[0];
369
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
370
+ rootSchema: _getMediaManagerCategoriesRequest,
371
+ depSchemas: {},
372
+ fqdnTransformation: {
373
+ paths: [],
374
+ transformation: _fromVeloEntity,
375
+ },
376
+ customTransformation: requestTransformation,
377
+ });
378
+ const { fromJSON } = (0, velo_1.serializer)({
379
+ rootSchema: _getMediaManagerCategoriesResponse,
380
+ depSchemas: { _enterpriseCategoryTree },
381
+ fqdnTransformation: {
382
+ paths: [...['category.category']],
383
+ transformation: _toVeloEntity,
384
+ },
385
+ customTransformation: responseTransformation,
386
+ });
387
+ const payload = toAmbassadorRequest([]);
388
+ const reqOpts = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getMediaManagerCategories(payload);
389
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
390
+ try {
391
+ const result = yield httpClient.request(reqOpts);
392
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
393
+ return fromJSON(result.data);
394
+ }
395
+ catch (err) {
396
+ const transformedError = (0, transform_error_1.transformError)(err, {
397
+ spreadPathsToArguments: {},
398
+ explicitPathsToArguments: {},
399
+ singleArgumentUnchanged: false,
400
+ }, []);
401
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
402
+ throw transformedError;
403
+ }
404
+ });
405
+ }
406
+ exports.getMediaManagerCategories = getMediaManagerCategories;
407
+ //# 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,kDAAqD;AACrD,sEAAuF;AACvF,8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oBAAoB,EAAE,qBAAqB;SAC5C,CAAC,CAAC;QAEH,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,iBAAU,EAAC;YAC9B,UAAU,EAAE,kCAAkC;YAC9C,UAAU,EAAE,EAAE,uBAAuB,EAAE;YACvC,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;gBACjC,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAExC,MAAM,OAAO,GACX,2DAA2D,CAAC,yBAAyB,CACnF,OAAO,CACR,CAAC;QAEJ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;gBACE,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE;gBAC5B,uBAAuB,EAAE,KAAK;aAC/B,EACD,EAAE,CACH,CAAC;YACF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AA5DD,8DA4DC"}
@@ -0,0 +1,13 @@
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
+ 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,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.overwriteItemCategories = exports.unlinkItemFromCategories = exports.linkItemToCategories = exports.getItem = exports.bulkUpdateItem = exports.updateItem = exports.queryItems = exports.searchItems = exports.importFile = exports.generateFileUploadUrl = exports.itemUploadCallback = void 0;
4
+ const media_enterprise_public_media_v1_enterprise_item_public_1 = require("./media-enterprise-public-media-v1-enterprise-item.public");
5
+ const itemUploadCallback = (...args) => {
6
+ // @ts-expect-error
7
+ if (!globalThis.__wix_context__) {
8
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
+ }
10
+ // @ts-expect-error
11
+ return globalThis.__wix_context__
12
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.itemUploadCallback)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.itemUploadCallback = itemUploadCallback;
16
+ const generateFileUploadUrl = (...args) => {
17
+ // @ts-expect-error
18
+ if (!globalThis.__wix_context__) {
19
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
+ }
21
+ // @ts-expect-error
22
+ return globalThis.__wix_context__
23
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.generateFileUploadUrl)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.generateFileUploadUrl = generateFileUploadUrl;
27
+ const importFile = (...args) => {
28
+ // @ts-expect-error
29
+ if (!globalThis.__wix_context__) {
30
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
+ }
32
+ // @ts-expect-error
33
+ return globalThis.__wix_context__
34
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.importFile)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.importFile = importFile;
38
+ const searchItems = (...args) => {
39
+ // @ts-expect-error
40
+ if (!globalThis.__wix_context__) {
41
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
42
+ }
43
+ // @ts-expect-error
44
+ return globalThis.__wix_context__
45
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.searchItems)
46
+ .apply(undefined, args);
47
+ };
48
+ exports.searchItems = searchItems;
49
+ const queryItems = (...args) => {
50
+ // @ts-expect-error
51
+ if (!globalThis.__wix_context__) {
52
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
53
+ }
54
+ // @ts-expect-error
55
+ return globalThis.__wix_context__
56
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.queryItems)
57
+ .apply(undefined, args);
58
+ };
59
+ exports.queryItems = queryItems;
60
+ const updateItem = (...args) => {
61
+ // @ts-expect-error
62
+ if (!globalThis.__wix_context__) {
63
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
64
+ }
65
+ // @ts-expect-error
66
+ return globalThis.__wix_context__
67
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.updateItem)
68
+ .apply(undefined, args);
69
+ };
70
+ exports.updateItem = updateItem;
71
+ const bulkUpdateItem = (...args) => {
72
+ // @ts-expect-error
73
+ if (!globalThis.__wix_context__) {
74
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
75
+ }
76
+ // @ts-expect-error
77
+ return globalThis.__wix_context__
78
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.bulkUpdateItem)
79
+ .apply(undefined, args);
80
+ };
81
+ exports.bulkUpdateItem = bulkUpdateItem;
82
+ const getItem = (...args) => {
83
+ // @ts-expect-error
84
+ if (!globalThis.__wix_context__) {
85
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
86
+ }
87
+ // @ts-expect-error
88
+ return globalThis.__wix_context__
89
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.getItem)
90
+ .apply(undefined, args);
91
+ };
92
+ exports.getItem = getItem;
93
+ const linkItemToCategories = (...args) => {
94
+ // @ts-expect-error
95
+ if (!globalThis.__wix_context__) {
96
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
97
+ }
98
+ // @ts-expect-error
99
+ return globalThis.__wix_context__
100
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.linkItemToCategories)
101
+ .apply(undefined, args);
102
+ };
103
+ exports.linkItemToCategories = linkItemToCategories;
104
+ const unlinkItemFromCategories = (...args) => {
105
+ // @ts-expect-error
106
+ if (!globalThis.__wix_context__) {
107
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
108
+ }
109
+ // @ts-expect-error
110
+ return globalThis.__wix_context__
111
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.unlinkItemFromCategories)
112
+ .apply(undefined, args);
113
+ };
114
+ exports.unlinkItemFromCategories = unlinkItemFromCategories;
115
+ const overwriteItemCategories = (...args) => {
116
+ // @ts-expect-error
117
+ if (!globalThis.__wix_context__) {
118
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
119
+ }
120
+ // @ts-expect-error
121
+ return globalThis.__wix_context__
122
+ .initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.overwriteItemCategories)
123
+ .apply(undefined, args);
124
+ };
125
+ exports.overwriteItemCategories = overwriteItemCategories;
126
+ //# 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,uIAYmE;AAG5D,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,CAAC,4EAAwB,CAAC;SACxC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B;AACK,MAAM,qBAAqB,GAE9B,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,CAAC,+EAA2B,CAAC;SAC3C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC;AACK,MAAM,UAAU,GAA+C,CACpE,GAAG,IAAS,EACZ,EAAE;IACF,mB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CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,kFAA8B,CAAC;SAC9C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,wBAAwB,4BAanC;AACK,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,CAAC,iFAA6B,CAAC;SAC7C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,uBAAuB,2BAalC"}
@@ -0,0 +1,30 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { BulkUpdateItemRequest, BulkUpdateItemResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GetItemRequest, GetItemResponse, ImportFileRequest, ImportFileResponse, ItemUploadCallbackRequest, ItemUploadCallbackResponse, LinkItemToCategoriesRequest, LinkItemToCategoriesResponse, OverwriteItemCategoriesRequest, OverwriteItemCategoriesResponse, QueryItemsRequest, QueryItemsResponse, SearchItemsRequest, SearchItemsResponse, UnlinkItemFromCategoriesRequest, UnlinkItemFromCategoriesResponse, UpdateItemRequest, UpdateItemResponse, GenerateFileUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, SearchItemsResponseNonNullableFields, QueryItemsResponseNonNullableFields, UpdateItemResponseNonNullableFields, BulkUpdateItemResponseNonNullableFields, GetItemResponseNonNullableFields } from './media-enterprise-public-media-v1-enterprise-item.types';
3
+ /** Internal API called by the public media backend, notify about a file that was created enterprise public media server */
4
+ export declare function itemUploadCallback(payload: ItemUploadCallbackRequest): RequestOptionsFactory<ItemUploadCallbackResponse>;
5
+ /** Generate an upload url that will make public media to call the enterprise callback endpoint */
6
+ export declare function generateFileUploadUrl(payload: GenerateFileUploadUrlRequest): RequestOptionsFactory<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
7
+ /** Import a file using a url */
8
+ export declare function importFile(payload: ImportFileRequest): RequestOptionsFactory<ImportFileResponse & ImportFileResponseNonNullableFields>;
9
+ /**
10
+ * Search items, all filters only support equality
11
+ * Each query must contain a categoryId filter
12
+ */
13
+ export declare function searchItems(payload: SearchItemsRequest): RequestOptionsFactory<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
14
+ /**
15
+ * Query items allowing to sort by specified fields, all filters only support equality
16
+ * Each query must contain a categoryId filter
17
+ */
18
+ export declare function queryItems(payload: QueryItemsRequest): RequestOptionsFactory<QueryItemsResponse & QueryItemsResponseNonNullableFields>;
19
+ /** Update an item */
20
+ export declare function updateItem(payload: UpdateItemRequest): RequestOptionsFactory<UpdateItemResponse & UpdateItemResponseNonNullableFields>;
21
+ /** Bulk update an item */
22
+ export declare function bulkUpdateItem(payload: BulkUpdateItemRequest): RequestOptionsFactory<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
23
+ /** Get item details */
24
+ export declare function getItem(payload: GetItemRequest): RequestOptionsFactory<GetItemResponse & GetItemResponseNonNullableFields>;
25
+ /** Link the item to multiple categories */
26
+ export declare function linkItemToCategories(payload: LinkItemToCategoriesRequest): RequestOptionsFactory<LinkItemToCategoriesResponse>;
27
+ /** Unlink the item from multiple categories */
28
+ export declare function unlinkItemFromCategories(payload: UnlinkItemFromCategoriesRequest): RequestOptionsFactory<UnlinkItemFromCategoriesResponse>;
29
+ /** Overwrite item categories */
30
+ export declare function overwriteItemCategories(payload: OverwriteItemCategoriesRequest): RequestOptionsFactory<OverwriteItemCategoriesResponse>;