@wix/media 1.0.60 → 1.0.62
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/src/media-enterprise-public-media-v1-enterprise-category.context.js +12 -6
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -1
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +6 -7
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -1
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js +22 -11
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -1
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +11 -12
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.js +32 -16
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.js.map +1 -1
- 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 +18 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.context.js +18 -9
- package/build/cjs/src/media-site-media-v1-folder.context.js.map +1 -1
- 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 +18 -0
- package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -1
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js +12 -6
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -1
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +6 -7
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -1
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js +22 -11
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -1
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +11 -12
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.context.js +32 -16
- package/build/es/src/media-site-media-v1-file-descriptor.context.js.map +1 -1
- 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 +18 -0
- package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.context.js +18 -9
- package/build/es/src/media-site-media-v1-folder.context.js.map +1 -1
- 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 +18 -0
- package/build/es/src/media-site-media-v1-folder.http.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,68 +3,74 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getMediaManagerCategories = exports.enterpriseOnboarding = exports.getCategory = exports.updateCategory = exports.deleteCategory = exports.createCategory = void 0;
|
|
4
4
|
const media_enterprise_public_media_v1_enterprise_category_public_1 = require("./media-enterprise-public-media-v1-enterprise-category.public");
|
|
5
5
|
const createCategory = (...args) => {
|
|
6
|
+
var _a;
|
|
6
7
|
// @ts-expect-error
|
|
7
8
|
if (!globalThis.__wix_context__) {
|
|
8
9
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
10
|
}
|
|
10
11
|
// @ts-expect-error
|
|
11
12
|
return globalThis.__wix_context__
|
|
12
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.createCategory)
|
|
13
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.createCategory, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
13
14
|
.apply(undefined, args);
|
|
14
15
|
};
|
|
15
16
|
exports.createCategory = createCategory;
|
|
16
17
|
const deleteCategory = (...args) => {
|
|
18
|
+
var _a;
|
|
17
19
|
// @ts-expect-error
|
|
18
20
|
if (!globalThis.__wix_context__) {
|
|
19
21
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
22
|
}
|
|
21
23
|
// @ts-expect-error
|
|
22
24
|
return globalThis.__wix_context__
|
|
23
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.deleteCategory)
|
|
25
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.deleteCategory, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
24
26
|
.apply(undefined, args);
|
|
25
27
|
};
|
|
26
28
|
exports.deleteCategory = deleteCategory;
|
|
27
29
|
const updateCategory = (...args) => {
|
|
30
|
+
var _a;
|
|
28
31
|
// @ts-expect-error
|
|
29
32
|
if (!globalThis.__wix_context__) {
|
|
30
33
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
31
34
|
}
|
|
32
35
|
// @ts-expect-error
|
|
33
36
|
return globalThis.__wix_context__
|
|
34
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.updateCategory)
|
|
37
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.updateCategory, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
35
38
|
.apply(undefined, args);
|
|
36
39
|
};
|
|
37
40
|
exports.updateCategory = updateCategory;
|
|
38
41
|
const getCategory = (...args) => {
|
|
42
|
+
var _a;
|
|
39
43
|
// @ts-expect-error
|
|
40
44
|
if (!globalThis.__wix_context__) {
|
|
41
45
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
42
46
|
}
|
|
43
47
|
// @ts-expect-error
|
|
44
48
|
return globalThis.__wix_context__
|
|
45
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.getCategory)
|
|
49
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.getCategory, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
46
50
|
.apply(undefined, args);
|
|
47
51
|
};
|
|
48
52
|
exports.getCategory = getCategory;
|
|
49
53
|
const enterpriseOnboarding = (...args) => {
|
|
54
|
+
var _a;
|
|
50
55
|
// @ts-expect-error
|
|
51
56
|
if (!globalThis.__wix_context__) {
|
|
52
57
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
53
58
|
}
|
|
54
59
|
// @ts-expect-error
|
|
55
60
|
return globalThis.__wix_context__
|
|
56
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.enterpriseOnboarding)
|
|
61
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.enterpriseOnboarding, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
57
62
|
.apply(undefined, args);
|
|
58
63
|
};
|
|
59
64
|
exports.enterpriseOnboarding = enterpriseOnboarding;
|
|
60
65
|
const getMediaManagerCategories = (...args) => {
|
|
66
|
+
var _a;
|
|
61
67
|
// @ts-expect-error
|
|
62
68
|
if (!globalThis.__wix_context__) {
|
|
63
69
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
64
70
|
}
|
|
65
71
|
// @ts-expect-error
|
|
66
72
|
return globalThis.__wix_context__
|
|
67
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.getMediaManagerCategories)
|
|
73
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_category_public_1.getMediaManagerCategories, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
68
74
|
.apply(undefined, args);
|
|
69
75
|
};
|
|
70
76
|
exports.getMediaManagerCategories = getMediaManagerCategories;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-category.context.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-category.context.ts"],"names":[],"mappings":";;;AAAA,+IAOuE;AAGhE,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE
|
|
1
|
+
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-category.context.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-category.context.ts"],"names":[],"mappings":";;;AAAA,+IAOuE;AAGhE,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;;IACF,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,4EAAoB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACzE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,cAAc,kBAazB;AACK,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;;IACF,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,4EAAoB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACzE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,cAAc,kBAazB;AACK,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;;IACF,mBAAmB;IACnB,IAA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AAC5B,CAAC,CAAC;AAhBW,QAAA,oBAAoB,wBAgB/B;AACK,MAAM,yBAAyB,GAElC,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,uFAA+B,EAC/B,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;AAhBW,QAAA,yBAAyB,6BAgBpC"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, EnterpriseOnboardingRequest, EnterpriseOnboardingResponse, GetCategoryRequest, GetCategoryResponse, GetMediaManagerCategoriesRequest, GetMediaManagerCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, CreateCategoryResponseNonNullableFields, UpdateCategoryResponseNonNullableFields, GetCategoryResponseNonNullableFields, EnterpriseOnboardingResponseNonNullableFields, GetMediaManagerCategoriesResponseNonNullableFields } from './media-enterprise-public-media-v1-enterprise-category.types';
|
|
3
2
|
/** Fetch a list of random media from different providers, using site information to customize results when available */
|
|
4
|
-
export declare function createCategory(payload:
|
|
3
|
+
export declare function createCategory(payload: object): RequestOptionsFactory<any>;
|
|
5
4
|
/** Delete a category including all its subcategories - but not the items */
|
|
6
|
-
export declare function deleteCategory(payload:
|
|
5
|
+
export declare function deleteCategory(payload: object): RequestOptionsFactory<any>;
|
|
7
6
|
/** Update category details */
|
|
8
|
-
export declare function updateCategory(payload:
|
|
7
|
+
export declare function updateCategory(payload: object): RequestOptionsFactory<any>;
|
|
9
8
|
/** Get information about a specific category */
|
|
10
|
-
export declare function getCategory(payload:
|
|
9
|
+
export declare function getCategory(payload: object): RequestOptionsFactory<any>;
|
|
11
10
|
/**
|
|
12
11
|
* Create the enterprise category under "enterprise-media" main category
|
|
13
12
|
* the caller identity must be have the same accountId of the request
|
|
14
13
|
*/
|
|
15
|
-
export declare function enterpriseOnboarding(payload:
|
|
14
|
+
export declare function enterpriseOnboarding(payload: object): RequestOptionsFactory<any>;
|
|
16
15
|
/** Get the account category tree details */
|
|
17
|
-
export declare function getMediaManagerCategories(payload:
|
|
16
|
+
export declare function getMediaManagerCategories(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-category.http.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-category.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,sDAAgD;
|
|
1
|
+
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-category.http.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-category.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,sDAAgD;AAIhD,SAAS,uEAAuE,CAC9E,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,sCAAsC;gBAC/C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,kBAAkB,EAAE;YAClB;gBACE,OAAO,EAAE,sCAAsC;gBAC/C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,UAAU,EAAE;YACV;gBACE,OAAO,EAAE,sCAA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EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAA4B;oBACzC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;iBACjD;gBACD;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,+BAA+B,EAAE;wBACzC,EAAE,IAAI,EAAE,+BAA+B,EAAE;qBAC1C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,2BAA2B,CAAC;AACrC,CAAC;AArCD,8DAqCC"}
|
|
@@ -3,123 +3,134 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
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
4
|
const media_enterprise_public_media_v1_enterprise_item_public_1 = require("./media-enterprise-public-media-v1-enterprise-item.public");
|
|
5
5
|
const itemUploadCallback = (...args) => {
|
|
6
|
+
var _a;
|
|
6
7
|
// @ts-expect-error
|
|
7
8
|
if (!globalThis.__wix_context__) {
|
|
8
9
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
10
|
}
|
|
10
11
|
// @ts-expect-error
|
|
11
12
|
return globalThis.__wix_context__
|
|
12
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.itemUploadCallback)
|
|
13
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.itemUploadCallback, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
13
14
|
.apply(undefined, args);
|
|
14
15
|
};
|
|
15
16
|
exports.itemUploadCallback = itemUploadCallback;
|
|
16
17
|
const generateFileUploadUrl = (...args) => {
|
|
18
|
+
var _a;
|
|
17
19
|
// @ts-expect-error
|
|
18
20
|
if (!globalThis.__wix_context__) {
|
|
19
21
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
22
|
}
|
|
21
23
|
// @ts-expect-error
|
|
22
24
|
return globalThis.__wix_context__
|
|
23
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.generateFileUploadUrl)
|
|
25
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.generateFileUploadUrl, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
24
26
|
.apply(undefined, args);
|
|
25
27
|
};
|
|
26
28
|
exports.generateFileUploadUrl = generateFileUploadUrl;
|
|
27
29
|
const importFile = (...args) => {
|
|
30
|
+
var _a;
|
|
28
31
|
// @ts-expect-error
|
|
29
32
|
if (!globalThis.__wix_context__) {
|
|
30
33
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
31
34
|
}
|
|
32
35
|
// @ts-expect-error
|
|
33
36
|
return globalThis.__wix_context__
|
|
34
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.importFile)
|
|
37
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.importFile, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
35
38
|
.apply(undefined, args);
|
|
36
39
|
};
|
|
37
40
|
exports.importFile = importFile;
|
|
38
41
|
const searchItems = (...args) => {
|
|
42
|
+
var _a;
|
|
39
43
|
// @ts-expect-error
|
|
40
44
|
if (!globalThis.__wix_context__) {
|
|
41
45
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
42
46
|
}
|
|
43
47
|
// @ts-expect-error
|
|
44
48
|
return globalThis.__wix_context__
|
|
45
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.searchItems)
|
|
49
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.searchItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
46
50
|
.apply(undefined, args);
|
|
47
51
|
};
|
|
48
52
|
exports.searchItems = searchItems;
|
|
49
53
|
const queryItems = (...args) => {
|
|
54
|
+
var _a;
|
|
50
55
|
// @ts-expect-error
|
|
51
56
|
if (!globalThis.__wix_context__) {
|
|
52
57
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
53
58
|
}
|
|
54
59
|
// @ts-expect-error
|
|
55
60
|
return globalThis.__wix_context__
|
|
56
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.queryItems)
|
|
61
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.queryItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
57
62
|
.apply(undefined, args);
|
|
58
63
|
};
|
|
59
64
|
exports.queryItems = queryItems;
|
|
60
65
|
const updateItem = (...args) => {
|
|
66
|
+
var _a;
|
|
61
67
|
// @ts-expect-error
|
|
62
68
|
if (!globalThis.__wix_context__) {
|
|
63
69
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
64
70
|
}
|
|
65
71
|
// @ts-expect-error
|
|
66
72
|
return globalThis.__wix_context__
|
|
67
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.updateItem)
|
|
73
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.updateItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
68
74
|
.apply(undefined, args);
|
|
69
75
|
};
|
|
70
76
|
exports.updateItem = updateItem;
|
|
71
77
|
const bulkUpdateItem = (...args) => {
|
|
78
|
+
var _a;
|
|
72
79
|
// @ts-expect-error
|
|
73
80
|
if (!globalThis.__wix_context__) {
|
|
74
81
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
75
82
|
}
|
|
76
83
|
// @ts-expect-error
|
|
77
84
|
return globalThis.__wix_context__
|
|
78
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.bulkUpdateItem)
|
|
85
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.bulkUpdateItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
79
86
|
.apply(undefined, args);
|
|
80
87
|
};
|
|
81
88
|
exports.bulkUpdateItem = bulkUpdateItem;
|
|
82
89
|
const getItem = (...args) => {
|
|
90
|
+
var _a;
|
|
83
91
|
// @ts-expect-error
|
|
84
92
|
if (!globalThis.__wix_context__) {
|
|
85
93
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
86
94
|
}
|
|
87
95
|
// @ts-expect-error
|
|
88
96
|
return globalThis.__wix_context__
|
|
89
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.getItem)
|
|
97
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.getItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
90
98
|
.apply(undefined, args);
|
|
91
99
|
};
|
|
92
100
|
exports.getItem = getItem;
|
|
93
101
|
const linkItemToCategories = (...args) => {
|
|
102
|
+
var _a;
|
|
94
103
|
// @ts-expect-error
|
|
95
104
|
if (!globalThis.__wix_context__) {
|
|
96
105
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
97
106
|
}
|
|
98
107
|
// @ts-expect-error
|
|
99
108
|
return globalThis.__wix_context__
|
|
100
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.linkItemToCategories)
|
|
109
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.linkItemToCategories, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
101
110
|
.apply(undefined, args);
|
|
102
111
|
};
|
|
103
112
|
exports.linkItemToCategories = linkItemToCategories;
|
|
104
113
|
const unlinkItemFromCategories = (...args) => {
|
|
114
|
+
var _a;
|
|
105
115
|
// @ts-expect-error
|
|
106
116
|
if (!globalThis.__wix_context__) {
|
|
107
117
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
108
118
|
}
|
|
109
119
|
// @ts-expect-error
|
|
110
120
|
return globalThis.__wix_context__
|
|
111
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.unlinkItemFromCategories)
|
|
121
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.unlinkItemFromCategories, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
112
122
|
.apply(undefined, args);
|
|
113
123
|
};
|
|
114
124
|
exports.unlinkItemFromCategories = unlinkItemFromCategories;
|
|
115
125
|
const overwriteItemCategories = (...args) => {
|
|
126
|
+
var _a;
|
|
116
127
|
// @ts-expect-error
|
|
117
128
|
if (!globalThis.__wix_context__) {
|
|
118
129
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
119
130
|
}
|
|
120
131
|
// @ts-expect-error
|
|
121
132
|
return globalThis.__wix_context__
|
|
122
|
-
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.overwriteItemCategories)
|
|
133
|
+
.initWixModules(media_enterprise_public_media_v1_enterprise_item_public_1.overwriteItemCategories, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
123
134
|
.apply(undefined, args);
|
|
124
135
|
};
|
|
125
136
|
exports.overwriteItemCategories = overwriteItemCategories;
|
|
@@ -1 +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
|
|
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,CACb,4EAAwB,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;AAhBW,QAAA,kBAAkB,sBAgB7B;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,CACb,+EAA2B,EAC3B,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;AAhBW,QAAA,qBAAqB,yBAgBhC;AACK,MAAM,UAAU,GAA+C,CACpE,GAAG,IAAS,EACZ,EAAE;;IACF,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;SAC9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,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAhBW,QAAA,uBAAuB,2BAgBlC"}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
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
2
|
/** 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:
|
|
3
|
+
export declare function itemUploadCallback(payload: object): RequestOptionsFactory<any>;
|
|
5
4
|
/** Generate an upload url that will make public media to call the enterprise callback endpoint */
|
|
6
|
-
export declare function generateFileUploadUrl(payload:
|
|
5
|
+
export declare function generateFileUploadUrl(payload: object): RequestOptionsFactory<any>;
|
|
7
6
|
/** Import a file using a url */
|
|
8
|
-
export declare function importFile(payload:
|
|
7
|
+
export declare function importFile(payload: object): RequestOptionsFactory<any>;
|
|
9
8
|
/**
|
|
10
9
|
* Search items, all filters only support equality
|
|
11
10
|
* Each query must contain a categoryId filter
|
|
12
11
|
*/
|
|
13
|
-
export declare function searchItems(payload:
|
|
12
|
+
export declare function searchItems(payload: object): RequestOptionsFactory<any>;
|
|
14
13
|
/**
|
|
15
14
|
* Query items allowing to sort by specified fields, all filters only support equality
|
|
16
15
|
* Each query must contain a categoryId filter
|
|
17
16
|
*/
|
|
18
|
-
export declare function queryItems(payload:
|
|
17
|
+
export declare function queryItems(payload: object): RequestOptionsFactory<any>;
|
|
19
18
|
/** Update an item */
|
|
20
|
-
export declare function updateItem(payload:
|
|
19
|
+
export declare function updateItem(payload: object): RequestOptionsFactory<any>;
|
|
21
20
|
/** Bulk update an item */
|
|
22
|
-
export declare function bulkUpdateItem(payload:
|
|
21
|
+
export declare function bulkUpdateItem(payload: object): RequestOptionsFactory<any>;
|
|
23
22
|
/** Get item details */
|
|
24
|
-
export declare function getItem(payload:
|
|
23
|
+
export declare function getItem(payload: object): RequestOptionsFactory<any>;
|
|
25
24
|
/** Link the item to multiple categories */
|
|
26
|
-
export declare function linkItemToCategories(payload:
|
|
25
|
+
export declare function linkItemToCategories(payload: object): RequestOptionsFactory<any>;
|
|
27
26
|
/** Unlink the item from multiple categories */
|
|
28
|
-
export declare function unlinkItemFromCategories(payload:
|
|
27
|
+
export declare function unlinkItemFromCategories(payload: object): RequestOptionsFactory<any>;
|
|
29
28
|
/** Overwrite item categories */
|
|
30
|
-
export declare function overwriteItemCategories(payload:
|
|
29
|
+
export declare function overwriteItemCategories(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-item.http.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-item.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,sDAAgD;
|
|
1
|
+
{"version":3,"file":"media-enterprise-public-media-v1-enterprise-item.http.js","sourceRoot":"","sources":["../../../src/media-enterprise-public-media-v1-enterprise-item.http.ts"],"names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AC;gBACtE,SAAS,EAAE,+CAA+C;gBAC1D,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC;AArBD,oDAqBC;AAED,+CAA+C;AAC/C,SAAgB,wBAAwB,CACtC,OAAe;IAEf,SAAS,0BAA0B,CAAC,EAAE,IAAI,EAAO;QAC/C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,sDAAsD;YAClE,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,0FAA0F;YAC5F,GAAG,EAAE,kEAAkE,CAAC;gBACtE,SAAS,EAAE,iDAAiD;gBAC5D,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,0BAA0B,CAAC;AACpC,CAAC;AArBD,4DAqBC;AAED,gCAAgC;AAChC,SAAgB,uBAAuB,CACrC,OAAe;IAEf,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAO;QAC9C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,sDAAsD;YAClE,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,yFAAyF;YAC3F,GAAG,EAAE,kEAAkE,CAAC;gBACtE,SAAS,EAAE,oDAAoD;gBAC/D,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC;AArBD,0DAqBC"}
|
|
@@ -3,178 +3,194 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.listDeletedFiles = exports.bulkRestoreFilesFromTrashBin = exports.bulkDeleteFiles = exports.generateVideoStreamingUrl = exports.searchFiles = exports.listFiles = exports.bulkImportFile = exports.bulkImportFiles = exports.importFile = exports.generateFileResumableUploadUrl = exports.generateFileUploadUrl = exports.updateFileDescriptor = exports.getFileDescriptors = exports.getFileDescriptor = exports.generateFileDownloadUrl = exports.generateFilesDownloadUrl = void 0;
|
|
4
4
|
const media_site_media_v1_file_descriptor_public_1 = require("./media-site-media-v1-file-descriptor.public");
|
|
5
5
|
const generateFilesDownloadUrl = (...args) => {
|
|
6
|
+
var _a;
|
|
6
7
|
// @ts-expect-error
|
|
7
8
|
if (!globalThis.__wix_context__) {
|
|
8
9
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
10
|
}
|
|
10
11
|
// @ts-expect-error
|
|
11
12
|
return globalThis.__wix_context__
|
|
12
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFilesDownloadUrl)
|
|
13
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFilesDownloadUrl, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
13
14
|
.apply(undefined, args);
|
|
14
15
|
};
|
|
15
16
|
exports.generateFilesDownloadUrl = generateFilesDownloadUrl;
|
|
16
17
|
const generateFileDownloadUrl = (...args) => {
|
|
18
|
+
var _a;
|
|
17
19
|
// @ts-expect-error
|
|
18
20
|
if (!globalThis.__wix_context__) {
|
|
19
21
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
22
|
}
|
|
21
23
|
// @ts-expect-error
|
|
22
24
|
return globalThis.__wix_context__
|
|
23
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFileDownloadUrl)
|
|
25
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFileDownloadUrl, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
24
26
|
.apply(undefined, args);
|
|
25
27
|
};
|
|
26
28
|
exports.generateFileDownloadUrl = generateFileDownloadUrl;
|
|
27
29
|
const getFileDescriptor = (...args) => {
|
|
30
|
+
var _a;
|
|
28
31
|
// @ts-expect-error
|
|
29
32
|
if (!globalThis.__wix_context__) {
|
|
30
33
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
31
34
|
}
|
|
32
35
|
// @ts-expect-error
|
|
33
36
|
return globalThis.__wix_context__
|
|
34
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.getFileDescriptor)
|
|
37
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.getFileDescriptor, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
35
38
|
.apply(undefined, args);
|
|
36
39
|
};
|
|
37
40
|
exports.getFileDescriptor = getFileDescriptor;
|
|
38
41
|
const getFileDescriptors = (...args) => {
|
|
42
|
+
var _a;
|
|
39
43
|
// @ts-expect-error
|
|
40
44
|
if (!globalThis.__wix_context__) {
|
|
41
45
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
42
46
|
}
|
|
43
47
|
// @ts-expect-error
|
|
44
48
|
return globalThis.__wix_context__
|
|
45
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.getFileDescriptors)
|
|
49
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.getFileDescriptors, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
46
50
|
.apply(undefined, args);
|
|
47
51
|
};
|
|
48
52
|
exports.getFileDescriptors = getFileDescriptors;
|
|
49
53
|
const updateFileDescriptor = (...args) => {
|
|
54
|
+
var _a;
|
|
50
55
|
// @ts-expect-error
|
|
51
56
|
if (!globalThis.__wix_context__) {
|
|
52
57
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
53
58
|
}
|
|
54
59
|
// @ts-expect-error
|
|
55
60
|
return globalThis.__wix_context__
|
|
56
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.updateFileDescriptor)
|
|
61
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.updateFileDescriptor, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
57
62
|
.apply(undefined, args);
|
|
58
63
|
};
|
|
59
64
|
exports.updateFileDescriptor = updateFileDescriptor;
|
|
60
65
|
const generateFileUploadUrl = (...args) => {
|
|
66
|
+
var _a;
|
|
61
67
|
// @ts-expect-error
|
|
62
68
|
if (!globalThis.__wix_context__) {
|
|
63
69
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
64
70
|
}
|
|
65
71
|
// @ts-expect-error
|
|
66
72
|
return globalThis.__wix_context__
|
|
67
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFileUploadUrl)
|
|
73
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFileUploadUrl, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
68
74
|
.apply(undefined, args);
|
|
69
75
|
};
|
|
70
76
|
exports.generateFileUploadUrl = generateFileUploadUrl;
|
|
71
77
|
const generateFileResumableUploadUrl = (...args) => {
|
|
78
|
+
var _a;
|
|
72
79
|
// @ts-expect-error
|
|
73
80
|
if (!globalThis.__wix_context__) {
|
|
74
81
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
75
82
|
}
|
|
76
83
|
// @ts-expect-error
|
|
77
84
|
return globalThis.__wix_context__
|
|
78
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFileResumableUploadUrl)
|
|
85
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateFileResumableUploadUrl, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
79
86
|
.apply(undefined, args);
|
|
80
87
|
};
|
|
81
88
|
exports.generateFileResumableUploadUrl = generateFileResumableUploadUrl;
|
|
82
89
|
const importFile = (...args) => {
|
|
90
|
+
var _a;
|
|
83
91
|
// @ts-expect-error
|
|
84
92
|
if (!globalThis.__wix_context__) {
|
|
85
93
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
86
94
|
}
|
|
87
95
|
// @ts-expect-error
|
|
88
96
|
return globalThis.__wix_context__
|
|
89
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.importFile)
|
|
97
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.importFile, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
90
98
|
.apply(undefined, args);
|
|
91
99
|
};
|
|
92
100
|
exports.importFile = importFile;
|
|
93
101
|
const bulkImportFiles = (...args) => {
|
|
102
|
+
var _a;
|
|
94
103
|
// @ts-expect-error
|
|
95
104
|
if (!globalThis.__wix_context__) {
|
|
96
105
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
97
106
|
}
|
|
98
107
|
// @ts-expect-error
|
|
99
108
|
return globalThis.__wix_context__
|
|
100
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkImportFiles)
|
|
109
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkImportFiles, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
101
110
|
.apply(undefined, args);
|
|
102
111
|
};
|
|
103
112
|
exports.bulkImportFiles = bulkImportFiles;
|
|
104
113
|
const bulkImportFile = (...args) => {
|
|
114
|
+
var _a;
|
|
105
115
|
// @ts-expect-error
|
|
106
116
|
if (!globalThis.__wix_context__) {
|
|
107
117
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
108
118
|
}
|
|
109
119
|
// @ts-expect-error
|
|
110
120
|
return globalThis.__wix_context__
|
|
111
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkImportFile)
|
|
121
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkImportFile, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
112
122
|
.apply(undefined, args);
|
|
113
123
|
};
|
|
114
124
|
exports.bulkImportFile = bulkImportFile;
|
|
115
125
|
const listFiles = (...args) => {
|
|
126
|
+
var _a;
|
|
116
127
|
// @ts-expect-error
|
|
117
128
|
if (!globalThis.__wix_context__) {
|
|
118
129
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
119
130
|
}
|
|
120
131
|
// @ts-expect-error
|
|
121
132
|
return globalThis.__wix_context__
|
|
122
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.listFiles)
|
|
133
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.listFiles, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
123
134
|
.apply(undefined, args);
|
|
124
135
|
};
|
|
125
136
|
exports.listFiles = listFiles;
|
|
126
137
|
const searchFiles = (...args) => {
|
|
138
|
+
var _a;
|
|
127
139
|
// @ts-expect-error
|
|
128
140
|
if (!globalThis.__wix_context__) {
|
|
129
141
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
130
142
|
}
|
|
131
143
|
// @ts-expect-error
|
|
132
144
|
return globalThis.__wix_context__
|
|
133
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.searchFiles)
|
|
145
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.searchFiles, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
134
146
|
.apply(undefined, args);
|
|
135
147
|
};
|
|
136
148
|
exports.searchFiles = searchFiles;
|
|
137
149
|
const generateVideoStreamingUrl = (...args) => {
|
|
150
|
+
var _a;
|
|
138
151
|
// @ts-expect-error
|
|
139
152
|
if (!globalThis.__wix_context__) {
|
|
140
153
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
141
154
|
}
|
|
142
155
|
// @ts-expect-error
|
|
143
156
|
return globalThis.__wix_context__
|
|
144
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateVideoStreamingUrl)
|
|
157
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.generateVideoStreamingUrl, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
145
158
|
.apply(undefined, args);
|
|
146
159
|
};
|
|
147
160
|
exports.generateVideoStreamingUrl = generateVideoStreamingUrl;
|
|
148
161
|
const bulkDeleteFiles = (...args) => {
|
|
162
|
+
var _a;
|
|
149
163
|
// @ts-expect-error
|
|
150
164
|
if (!globalThis.__wix_context__) {
|
|
151
165
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
152
166
|
}
|
|
153
167
|
// @ts-expect-error
|
|
154
168
|
return globalThis.__wix_context__
|
|
155
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkDeleteFiles)
|
|
169
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkDeleteFiles, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
156
170
|
.apply(undefined, args);
|
|
157
171
|
};
|
|
158
172
|
exports.bulkDeleteFiles = bulkDeleteFiles;
|
|
159
173
|
const bulkRestoreFilesFromTrashBin = (...args) => {
|
|
174
|
+
var _a;
|
|
160
175
|
// @ts-expect-error
|
|
161
176
|
if (!globalThis.__wix_context__) {
|
|
162
177
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
163
178
|
}
|
|
164
179
|
// @ts-expect-error
|
|
165
180
|
return globalThis.__wix_context__
|
|
166
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkRestoreFilesFromTrashBin)
|
|
181
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.bulkRestoreFilesFromTrashBin, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
167
182
|
.apply(undefined, args);
|
|
168
183
|
};
|
|
169
184
|
exports.bulkRestoreFilesFromTrashBin = bulkRestoreFilesFromTrashBin;
|
|
170
185
|
const listDeletedFiles = (...args) => {
|
|
186
|
+
var _a;
|
|
171
187
|
// @ts-expect-error
|
|
172
188
|
if (!globalThis.__wix_context__) {
|
|
173
189
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
174
190
|
}
|
|
175
191
|
// @ts-expect-error
|
|
176
192
|
return globalThis.__wix_context__
|
|
177
|
-
.initWixModules(media_site_media_v1_file_descriptor_public_1.listDeletedFiles)
|
|
193
|
+
.initWixModules(media_site_media_v1_file_descriptor_public_1.listDeletedFiles, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
178
194
|
.apply(undefined, args);
|
|
179
195
|
};
|
|
180
196
|
exports.listDeletedFiles = listDeletedFiles;
|