@wix/media 1.0.58 → 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 +69 -24
  58. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +44 -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 +52 -24
  69. package/build/cjs/src/media-site-media-v1-folder.universal.js +27 -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 +69 -24
  128. package/build/es/src/media-site-media-v1-file-descriptor.universal.js +43 -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 +52 -24
  139. package/build/es/src/media-site-media-v1-folder.universal.js +26 -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,4 @@
1
+ export * as enterpriseMediaCategories from './src/media-enterprise-public-media-v1-enterprise-category.context';
2
+ export * as enterpriseMediaItems from './src/media-enterprise-public-media-v1-enterprise-item.context';
3
+ export * as files from './src/media-site-media-v1-file-descriptor.context';
4
+ export * as folders from './src/media-site-media-v1-folder.context';
@@ -0,0 +1,31 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.folders = exports.files = exports.enterpriseMediaItems = exports.enterpriseMediaCategories = void 0;
27
+ exports.enterpriseMediaCategories = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-category.context"));
28
+ exports.enterpriseMediaItems = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-item.context"));
29
+ exports.files = __importStar(require("./src/media-site-media-v1-file-descriptor.context"));
30
+ exports.folders = __importStar(require("./src/media-site-media-v1-folder.context"));
31
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gIAAgH;AAChH,uHAAuG;AACvG,2FAA2E;AAC3E,oFAAoE"}
@@ -1,2 +1,4 @@
1
+ export * as enterpriseMediaCategories from './src/media-enterprise-public-media-v1-enterprise-category.public';
2
+ export * as enterpriseMediaItems from './src/media-enterprise-public-media-v1-enterprise-item.public';
1
3
  export * as files from './src/media-site-media-v1-file-descriptor.public';
2
4
  export * as folders from './src/media-site-media-v1-folder.public';
@@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.folders = exports.files = void 0;
26
+ exports.folders = exports.files = exports.enterpriseMediaItems = exports.enterpriseMediaCategories = void 0;
27
+ exports.enterpriseMediaCategories = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-category.public"));
28
+ exports.enterpriseMediaItems = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-item.public"));
27
29
  exports.files = __importStar(require("./src/media-site-media-v1-file-descriptor.public"));
28
30
  exports.folders = __importStar(require("./src/media-site-media-v1-folder.public"));
29
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0FAA0E;AAC1E,mFAAmE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+HAA+G;AAC/G,sHAAsG;AACtG,0FAA0E;AAC1E,mFAAmE"}
@@ -1,2 +1,4 @@
1
+ export * as enterpriseMediaCategories from './src/media-enterprise-public-media-v1-enterprise-category.universal';
2
+ export * as enterpriseMediaItems from './src/media-enterprise-public-media-v1-enterprise-item.universal';
1
3
  export * as files from './src/media-site-media-v1-file-descriptor.universal';
2
4
  export * as folders from './src/media-site-media-v1-folder.universal';
@@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.folders = exports.files = void 0;
26
+ exports.folders = exports.files = exports.enterpriseMediaItems = exports.enterpriseMediaCategories = void 0;
27
+ exports.enterpriseMediaCategories = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-category.universal"));
28
+ exports.enterpriseMediaItems = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-item.universal"));
27
29
  exports.files = __importStar(require("./src/media-site-media-v1-file-descriptor.universal"));
28
30
  exports.folders = __importStar(require("./src/media-site-media-v1-folder.universal"));
29
31
  //# sourceMappingURL=index.typings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6FAA6E;AAC7E,sFAAsE"}
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kIAAkH;AAClH,yHAAyG;AACzG,6FAA6E;AAC7E,sFAAsE"}
@@ -1,2 +1,4 @@
1
+ export * as enterpriseMediaCategories from './src/media-enterprise-public-media-v1-enterprise-category.meta';
2
+ export * as enterpriseMediaItems from './src/media-enterprise-public-media-v1-enterprise-item.meta';
1
3
  export * as files from './src/media-site-media-v1-file-descriptor.meta';
2
4
  export * as folders from './src/media-site-media-v1-folder.meta';
package/build/cjs/meta.js CHANGED
@@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.folders = exports.files = void 0;
26
+ exports.folders = exports.files = exports.enterpriseMediaItems = exports.enterpriseMediaCategories = void 0;
27
+ exports.enterpriseMediaCategories = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-category.meta"));
28
+ exports.enterpriseMediaItems = __importStar(require("./src/media-enterprise-public-media-v1-enterprise-item.meta"));
27
29
  exports.files = __importStar(require("./src/media-site-media-v1-file-descriptor.meta"));
28
30
  exports.folders = __importStar(require("./src/media-site-media-v1-folder.meta"));
29
31
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wFAAwE;AACxE,iFAAiE"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6HAA6G;AAC7G,oHAAoG;AACpG,wFAAwE;AACxE,iFAAiE"}
@@ -0,0 +1,8 @@
1
+ import { createCategory as publicCreateCategory, deleteCategory as publicDeleteCategory, updateCategory as publicUpdateCategory, getCategory as publicGetCategory, enterpriseOnboarding as publicEnterpriseOnboarding, getMediaManagerCategories as publicGetMediaManagerCategories } from './media-enterprise-public-media-v1-enterprise-category.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const createCategory: BuildRESTFunction<typeof publicCreateCategory>;
4
+ export declare const deleteCategory: BuildRESTFunction<typeof publicDeleteCategory>;
5
+ export declare const updateCategory: BuildRESTFunction<typeof publicUpdateCategory>;
6
+ export declare const getCategory: BuildRESTFunction<typeof publicGetCategory>;
7
+ export declare const enterpriseOnboarding: BuildRESTFunction<typeof publicEnterpriseOnboarding>;
8
+ export declare const getMediaManagerCategories: BuildRESTFunction<typeof publicGetMediaManagerCategories>;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMediaManagerCategories = exports.enterpriseOnboarding = exports.getCategory = exports.updateCategory = exports.deleteCategory = exports.createCategory = void 0;
4
+ const media_enterprise_public_media_v1_enterprise_category_public_1 = require("./media-enterprise-public-media-v1-enterprise-category.public");
5
+ const createCategory = (...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_category_public_1.createCategory)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.createCategory = createCategory;
16
+ const deleteCategory = (...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_category_public_1.deleteCategory)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.deleteCategory = deleteCategory;
27
+ const updateCategory = (...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_category_public_1.updateCategory)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.updateCategory = updateCategory;
38
+ const getCategory = (...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_category_public_1.getCategory)
46
+ .apply(undefined, args);
47
+ };
48
+ exports.getCategory = getCategory;
49
+ const enterpriseOnboarding = (...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_category_public_1.enterpriseOnboarding)
57
+ .apply(undefined, args);
58
+ };
59
+ exports.enterpriseOnboarding = enterpriseOnboarding;
60
+ const getMediaManagerCategories = (...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_category_public_1.getMediaManagerCategories)
68
+ .apply(undefined, args);
69
+ };
70
+ exports.getMediaManagerCategories = getMediaManagerCategories;
71
+ //# sourceMappingURL=media-enterprise-public-media-v1-enterprise-category.context.js.map
@@ -0,0 +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;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,CAAC;SACpC,KAAK,CAAC,S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;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,kFAA0B,CAAC;SAC1C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,oBAAoB,wBAa/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,CAAC,uFAA+B,CAAC;SAC/C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,yBAAyB,6BAapC"}
@@ -0,0 +1,17 @@
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
+ /** Fetch a list of random media from different providers, using site information to customize results when available */
4
+ export declare function createCategory(payload: CreateCategoryRequest): RequestOptionsFactory<CreateCategoryResponse & CreateCategoryResponseNonNullableFields>;
5
+ /** Delete a category including all its subcategories - but not the items */
6
+ export declare function deleteCategory(payload: DeleteCategoryRequest): RequestOptionsFactory<DeleteCategoryResponse>;
7
+ /** Update category details */
8
+ export declare function updateCategory(payload: UpdateCategoryRequest): RequestOptionsFactory<UpdateCategoryResponse & UpdateCategoryResponseNonNullableFields>;
9
+ /** Get information about a specific category */
10
+ export declare function getCategory(payload: GetCategoryRequest): RequestOptionsFactory<GetCategoryResponse & GetCategoryResponseNonNullableFields>;
11
+ /**
12
+ * Create the enterprise category under "enterprise-media" main category
13
+ * the caller identity must be have the same accountId of the request
14
+ */
15
+ export declare function enterpriseOnboarding(payload: EnterpriseOnboardingRequest): RequestOptionsFactory<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
16
+ /** Get the account category tree details */
17
+ export declare function getMediaManagerCategories(payload: GetMediaManagerCategoriesRequest): RequestOptionsFactory<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
@@ -0,0 +1,245 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMediaManagerCategories = exports.enterpriseOnboarding = exports.getCategory = exports.updateCategory = exports.deleteCategory = exports.createCategory = void 0;
4
+ const metro_runtime_1 = require("@wix/metro-runtime");
5
+ const float_1 = require("@wix/sdk-runtime/transformations/float");
6
+ const float_2 = require("@wix/sdk-runtime/transformations/float");
7
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
8
+ const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
9
+ const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
10
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
11
+ const metro_runtime_2 = require("@wix/metro-runtime");
12
+ function resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(opts) {
13
+ const domainToMappings = {
14
+ 'manage._base_domain_': [
15
+ {
16
+ srcPath: '/_api/enterprise-public-media-server',
17
+ destPath: '',
18
+ },
19
+ ],
20
+ 'bo._base_domain_': [
21
+ {
22
+ srcPath: '/_api/enterprise-public-media-server',
23
+ destPath: '',
24
+ },
25
+ ],
26
+ 'wixbo.ai': [
27
+ {
28
+ srcPath: '/_api/enterprise-public-media-server',
29
+ destPath: '',
30
+ },
31
+ ],
32
+ 'apps._base_domain_': [
33
+ {
34
+ srcPath: '/_api/enterprise-public-media-server',
35
+ destPath: '',
36
+ },
37
+ ],
38
+ };
39
+ return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
40
+ }
41
+ /** Fetch a list of random media from different providers, using site information to customize results when available */
42
+ function createCategory(payload) {
43
+ function __createCategory({ host }) {
44
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
45
+ {
46
+ transformFn: float_1.transformSDKFloatToRESTFloat,
47
+ paths: [{ path: 'category.sortOrder' }],
48
+ },
49
+ {
50
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
51
+ paths: [
52
+ { path: 'category.createdDate' },
53
+ { path: 'category.updatedDate' },
54
+ ],
55
+ },
56
+ ]);
57
+ const metadata = {
58
+ entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',
59
+ method: 'POST',
60
+ methodFqn: 'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.CreateCategory',
61
+ url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl({ protoPath: '/v1/enterprise/categories', data: serializedData, host }),
62
+ data: serializedData,
63
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
64
+ {
65
+ transformFn: float_2.transformRESTFloatToSDKFloat,
66
+ paths: [{ path: 'category.sortOrder' }],
67
+ },
68
+ {
69
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
70
+ paths: [
71
+ { path: 'category.createdDate' },
72
+ { path: 'category.updatedDate' },
73
+ ],
74
+ },
75
+ ]),
76
+ };
77
+ return metadata;
78
+ }
79
+ return __createCategory;
80
+ }
81
+ exports.createCategory = createCategory;
82
+ /** Delete a category including all its subcategories - but not the items */
83
+ function deleteCategory(payload) {
84
+ function __deleteCategory({ host }) {
85
+ const metadata = {
86
+ entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',
87
+ method: 'DELETE',
88
+ methodFqn: 'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.DeleteCategory',
89
+ url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl({
90
+ protoPath: '/v1/enterprise/categories/{categoryId}',
91
+ data: payload,
92
+ host,
93
+ }),
94
+ params: (0, metro_runtime_1.toURLSearchParams)(payload),
95
+ };
96
+ return metadata;
97
+ }
98
+ return __deleteCategory;
99
+ }
100
+ exports.deleteCategory = deleteCategory;
101
+ /** Update category details */
102
+ function updateCategory(payload) {
103
+ function __updateCategory({ host }) {
104
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
105
+ {
106
+ transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
107
+ paths: [{ path: 'fieldMask' }],
108
+ },
109
+ {
110
+ transformFn: float_1.transformSDKFloatToRESTFloat,
111
+ paths: [{ path: 'category.sortOrder' }],
112
+ },
113
+ {
114
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
115
+ paths: [
116
+ { path: 'category.createdDate' },
117
+ { path: 'category.updatedDate' },
118
+ ],
119
+ },
120
+ ]);
121
+ const metadata = {
122
+ entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',
123
+ method: 'PATCH',
124
+ methodFqn: 'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.UpdateCategory',
125
+ url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl({
126
+ protoPath: '/v1/enterprise/categories/{category.id}',
127
+ data: serializedData,
128
+ host,
129
+ }),
130
+ data: serializedData,
131
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
132
+ {
133
+ transformFn: float_2.transformRESTFloatToSDKFloat,
134
+ paths: [{ path: 'category.sortOrder' }],
135
+ },
136
+ {
137
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
138
+ paths: [
139
+ { path: 'category.createdDate' },
140
+ { path: 'category.updatedDate' },
141
+ ],
142
+ },
143
+ ]),
144
+ };
145
+ return metadata;
146
+ }
147
+ return __updateCategory;
148
+ }
149
+ exports.updateCategory = updateCategory;
150
+ /** Get information about a specific category */
151
+ function getCategory(payload) {
152
+ function __getCategory({ host }) {
153
+ const metadata = {
154
+ entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',
155
+ method: 'GET',
156
+ methodFqn: 'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.GetCategory',
157
+ url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl({
158
+ protoPath: '/v1/enterprise/categories/{categoryId}',
159
+ data: payload,
160
+ host,
161
+ }),
162
+ params: (0, metro_runtime_1.toURLSearchParams)(payload),
163
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
164
+ {
165
+ transformFn: float_2.transformRESTFloatToSDKFloat,
166
+ paths: [{ path: 'category.category.sortOrder' }],
167
+ },
168
+ {
169
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
170
+ paths: [
171
+ { path: 'category.category.createdDate' },
172
+ { path: 'category.category.updatedDate' },
173
+ ],
174
+ },
175
+ ]),
176
+ };
177
+ return metadata;
178
+ }
179
+ return __getCategory;
180
+ }
181
+ exports.getCategory = getCategory;
182
+ /**
183
+ * Create the enterprise category under "enterprise-media" main category
184
+ * the caller identity must be have the same accountId of the request
185
+ */
186
+ function enterpriseOnboarding(payload) {
187
+ function __enterpriseOnboarding({ host }) {
188
+ const metadata = {
189
+ entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',
190
+ method: 'POST',
191
+ methodFqn: 'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.EnterpriseOnboarding',
192
+ url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl({ protoPath: '/v1/enterprise/onboarding', data: payload, host }),
193
+ data: payload,
194
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
195
+ {
196
+ transformFn: float_2.transformRESTFloatToSDKFloat,
197
+ paths: [{ path: 'category.sortOrder' }],
198
+ },
199
+ {
200
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
201
+ paths: [
202
+ { path: 'category.createdDate' },
203
+ { path: 'category.updatedDate' },
204
+ ],
205
+ },
206
+ ]),
207
+ };
208
+ return metadata;
209
+ }
210
+ return __enterpriseOnboarding;
211
+ }
212
+ exports.enterpriseOnboarding = enterpriseOnboarding;
213
+ /** Get the account category tree details */
214
+ function getMediaManagerCategories(payload) {
215
+ function __getMediaManagerCategories({ host }) {
216
+ const metadata = {
217
+ entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',
218
+ method: 'GET',
219
+ methodFqn: 'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.GetMediaManagerCategories',
220
+ url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl({
221
+ protoPath: '/v1/enterprise/media-manager/categories',
222
+ data: payload,
223
+ host,
224
+ }),
225
+ params: (0, metro_runtime_1.toURLSearchParams)(payload),
226
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
227
+ {
228
+ transformFn: float_2.transformRESTFloatToSDKFloat,
229
+ paths: [{ path: 'category.category.sortOrder' }],
230
+ },
231
+ {
232
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
233
+ paths: [
234
+ { path: 'category.category.createdDate' },
235
+ { path: 'category.category.updatedDate' },
236
+ ],
237
+ },
238
+ ]),
239
+ };
240
+ return metadata;
241
+ }
242
+ return __getMediaManagerCategories;
243
+ }
244
+ exports.getMediaManagerCategories = getMediaManagerCategories;
245
+ //# sourceMappingURL=media-enterprise-public-media-v1-enterprise-category.http.js.map
@@ -0,0 +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,kE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AyB,CACvC,OAAyC;IAKzC,SAAS,2BAA2B,CAAC,EAAE,IAAI,EAAO;QAChD,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,0DAA0D;YACtE,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,gGAAgG;YAClG,GAAG,EAAE,uEAAuE,CAC1E;gBACE,SAAS,EAAE,yCAAyC;gBACpD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CACF;YACD,MAAM,EAAE,IAAA,iCAAiB,EAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,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;AAxCD,8DAwCC"}
@@ -0,0 +1,24 @@
1
+ import * as ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes from './media-enterprise-public-media-v1-enterprise-category.types';
2
+ import * as ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes from './media-enterprise-public-media-v1-enterprise-category.universal';
3
+ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function createCategory(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.CreateCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.CreateCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.CreateCategoryResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.CreateCategoryResponseNonNullableFields, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.CreateCategoryResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.CreateCategoryResponseNonNullableFields>;
14
+ export declare function deleteCategory(): __PublicMethodMetaInfo<'DELETE', {
15
+ categoryId: string;
16
+ }, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.DeleteCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.DeleteCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.DeleteCategoryResponse, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.DeleteCategoryResponse>;
17
+ export declare function updateCategory(): __PublicMethodMetaInfo<'PATCH', {
18
+ categoryId: string;
19
+ }, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.UpdateCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.UpdateCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.UpdateCategoryResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.UpdateCategoryResponseNonNullableFields, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.UpdateCategoryResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.UpdateCategoryResponseNonNullableFields>;
20
+ export declare function getCategory(): __PublicMethodMetaInfo<'GET', {
21
+ categoryId: string;
22
+ }, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.GetCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.GetCategoryRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.GetCategoryResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.GetCategoryResponseNonNullableFields, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.GetCategoryResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.GetCategoryResponseNonNullableFields>;
23
+ export declare function enterpriseOnboarding(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.EnterpriseOnboardingRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.EnterpriseOnboardingRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.EnterpriseOnboardingResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.EnterpriseOnboardingResponseNonNullableFields, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.EnterpriseOnboardingResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.EnterpriseOnboardingResponseNonNullableFields>;
24
+ export declare function getMediaManagerCategories(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.GetMediaManagerCategoriesRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.GetMediaManagerCategoriesRequest, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.GetMediaManagerCategoriesResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryUniversalTypes.GetMediaManagerCategoriesResponseNonNullableFields, ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.GetMediaManagerCategoriesResponse & ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategoryTypes.GetMediaManagerCategoriesResponseNonNullableFields>;
@@ -0,0 +1,142 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.getMediaManagerCategories = exports.enterpriseOnboarding = exports.getCategory = exports.updateCategory = exports.deleteCategory = exports.createCategory = void 0;
27
+ const ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory = __importStar(require("./media-enterprise-public-media-v1-enterprise-category.http"));
28
+ function createCategory() {
29
+ const payload = {};
30
+ const getRequestOptions = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.createCategory(payload);
31
+ const getUrl = (context) => {
32
+ const { url } = getRequestOptions(context);
33
+ return url;
34
+ };
35
+ return {
36
+ getUrl,
37
+ httpMethod: 'POST',
38
+ path: '/v1/enterprise/categories',
39
+ pathParams: {},
40
+ __requestType: null,
41
+ __originalRequestType: null,
42
+ __responseType: null,
43
+ __originalResponseType: null,
44
+ };
45
+ }
46
+ exports.createCategory = createCategory;
47
+ function deleteCategory() {
48
+ const payload = { categoryId: ':categoryId' };
49
+ const getRequestOptions = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.deleteCategory(payload);
50
+ const getUrl = (context) => {
51
+ const { url } = getRequestOptions(context);
52
+ return url;
53
+ };
54
+ return {
55
+ getUrl,
56
+ httpMethod: 'DELETE',
57
+ path: '/v1/enterprise/categories/{categoryId}',
58
+ pathParams: { categoryId: 'categoryId' },
59
+ __requestType: null,
60
+ __originalRequestType: null,
61
+ __responseType: null,
62
+ __originalResponseType: null,
63
+ };
64
+ }
65
+ exports.deleteCategory = deleteCategory;
66
+ function updateCategory() {
67
+ const payload = { category: { id: ':categoryId' } };
68
+ const getRequestOptions = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.updateCategory(payload);
69
+ const getUrl = (context) => {
70
+ const { url } = getRequestOptions(context);
71
+ return url;
72
+ };
73
+ return {
74
+ getUrl,
75
+ httpMethod: 'PATCH',
76
+ path: '/v1/enterprise/categories/{category.id}',
77
+ pathParams: { categoryId: 'categoryId' },
78
+ __requestType: null,
79
+ __originalRequestType: null,
80
+ __responseType: null,
81
+ __originalResponseType: null,
82
+ };
83
+ }
84
+ exports.updateCategory = updateCategory;
85
+ function getCategory() {
86
+ const payload = { categoryId: ':categoryId' };
87
+ const getRequestOptions = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getCategory(payload);
88
+ const getUrl = (context) => {
89
+ const { url } = getRequestOptions(context);
90
+ return url;
91
+ };
92
+ return {
93
+ getUrl,
94
+ httpMethod: 'GET',
95
+ path: '/v1/enterprise/categories/{categoryId}',
96
+ pathParams: { categoryId: 'categoryId' },
97
+ __requestType: null,
98
+ __originalRequestType: null,
99
+ __responseType: null,
100
+ __originalResponseType: null,
101
+ };
102
+ }
103
+ exports.getCategory = getCategory;
104
+ function enterpriseOnboarding() {
105
+ const payload = {};
106
+ const getRequestOptions = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.enterpriseOnboarding(payload);
107
+ const getUrl = (context) => {
108
+ const { url } = getRequestOptions(context);
109
+ return url;
110
+ };
111
+ return {
112
+ getUrl,
113
+ httpMethod: 'POST',
114
+ path: '/v1/enterprise/onboarding',
115
+ pathParams: {},
116
+ __requestType: null,
117
+ __originalRequestType: null,
118
+ __responseType: null,
119
+ __originalResponseType: null,
120
+ };
121
+ }
122
+ exports.enterpriseOnboarding = enterpriseOnboarding;
123
+ function getMediaManagerCategories() {
124
+ const payload = {};
125
+ const getRequestOptions = ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getMediaManagerCategories(payload);
126
+ const getUrl = (context) => {
127
+ const { url } = getRequestOptions(context);
128
+ return url;
129
+ };
130
+ return {
131
+ getUrl,
132
+ httpMethod: 'GET',
133
+ path: '/v1/enterprise/media-manager/categories',
134
+ pathParams: {},
135
+ __requestType: null,
136
+ __originalRequestType: null,
137
+ __responseType: null,
138
+ __originalResponseType: null,
139
+ };
140
+ }
141
+ exports.getMediaManagerCategories = getMediaManagerCategories;
142
+ //# sourceMappingURL=media-enterprise-public-media-v1-enterprise-category.meta.js.map