@drttix/drt-sdk 0.2.2 → 0.2.3

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 (145) hide show
  1. package/demo/README.md +28 -0
  2. package/demo/default.html +34 -0
  3. package/demo/with-base.html +37 -0
  4. package/dist/cjs/index.d.ts +2 -0
  5. package/dist/cjs/src/definitions/portal.d.ts +4 -0
  6. package/dist/cjs/src/definitions/portal.js +22 -18
  7. package/dist/cjs/src/functions/setBaseURL.js +12 -6
  8. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  9. package/dist/cjs/src/generated/portal/index.d.ts +18 -0
  10. package/dist/cjs/src/generated/portal/index.js +5 -1
  11. package/dist/cjs/src/generated/portal/models/AdminUserLevelResponseDto.d.ts +4 -0
  12. package/dist/cjs/src/generated/portal/models/AdminUserLevelResponseDto.js +2 -0
  13. package/dist/cjs/src/generated/portal/models/AdminUserResponseDto.d.ts +8 -0
  14. package/dist/cjs/src/generated/portal/models/AdminUserResponseDto.js +2 -0
  15. package/dist/cjs/src/generated/portal/models/AlbumImageResponseDto.d.ts +4 -0
  16. package/dist/cjs/src/generated/portal/models/AlbumImageResponseDto.js +2 -0
  17. package/dist/cjs/src/generated/portal/models/CreateUpdateAdminUserRequestDto.d.ts +7 -0
  18. package/dist/cjs/src/generated/portal/models/CreateUpdateAdminUserRequestDto.js +2 -0
  19. package/dist/cjs/src/generated/portal/models/CreateUpdateAlbumRequestDto.d.ts +3 -0
  20. package/dist/cjs/src/generated/portal/models/CreateUpdateAlbumRequestDto.js +2 -0
  21. package/dist/cjs/src/generated/portal/models/CreateUpdateWaitlistRequestDto.d.ts +1 -0
  22. package/dist/cjs/src/generated/portal/models/DeleteAlbumImageRequestDto.d.ts +3 -0
  23. package/dist/cjs/src/generated/portal/models/DeleteAlbumImageRequestDto.js +2 -0
  24. package/dist/cjs/src/generated/portal/models/LandingPageAlbumResponseDto.d.ts +7 -0
  25. package/dist/cjs/src/generated/portal/models/LandingPageAlbumResponseDto.js +2 -0
  26. package/dist/cjs/src/generated/portal/models/LandingPageResponseDto.d.ts +23 -0
  27. package/dist/cjs/src/generated/portal/models/LandingPageResponseDto.js +2 -0
  28. package/dist/cjs/src/generated/portal/models/PolicyDto.d.ts +1 -1
  29. package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +29 -0
  30. package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.js +2 -0
  31. package/dist/cjs/src/generated/portal/models/ReorderImageRequestDto.d.ts +3 -0
  32. package/dist/cjs/src/generated/portal/models/ReorderImageRequestDto.js +2 -0
  33. package/dist/cjs/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +1 -0
  34. package/dist/cjs/src/generated/portal/models/TemplateResponseDto.d.ts +4 -0
  35. package/dist/cjs/src/generated/portal/models/TemplateResponseDto.js +2 -0
  36. package/dist/cjs/src/generated/portal/models/ThemeBannerImageResponseDto.d.ts +6 -0
  37. package/dist/cjs/src/generated/portal/models/ThemeBannerImageResponseDto.js +2 -0
  38. package/dist/cjs/src/generated/portal/models/ThemeDesignResponseDto.d.ts +32 -0
  39. package/dist/cjs/src/generated/portal/models/ThemeDesignResponseDto.js +2 -0
  40. package/dist/cjs/src/generated/portal/models/UpdateImageUploadRequestDto.d.ts +2 -0
  41. package/dist/cjs/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.d.ts +18 -0
  42. package/dist/cjs/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.js +2 -0
  43. package/dist/cjs/src/generated/portal/models/UpdateLandingPageRequestDto.d.ts +8 -0
  44. package/dist/cjs/src/generated/portal/models/UpdateLandingPageRequestDto.js +2 -0
  45. package/dist/cjs/src/generated/portal/models/UpdateThemeDesignRequestDto.d.ts +27 -0
  46. package/dist/cjs/src/generated/portal/models/UpdateThemeDesignRequestDto.js +2 -0
  47. package/dist/cjs/src/generated/portal/services/ClientToolsThemeBuilderService.d.ts +62 -0
  48. package/dist/cjs/src/generated/portal/services/ClientToolsThemeBuilderService.js +119 -0
  49. package/dist/cjs/src/generated/portal/services/FeaturesLandingPageService.d.ts +125 -0
  50. package/dist/cjs/src/generated/portal/services/FeaturesLandingPageService.js +248 -0
  51. package/dist/cjs/src/generated/portal/services/FeaturesProductsService.d.ts +29 -19
  52. package/dist/cjs/src/generated/portal/services/FeaturesProductsService.js +63 -43
  53. package/dist/cjs/src/generated/portal/services/SettingsService.d.ts +60 -4
  54. package/dist/cjs/src/generated/portal/services/SettingsService.js +118 -4
  55. package/dist/cjs/src/generated/portal/types.d.ts +16 -0
  56. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  57. package/dist/cjs/src/scripts/build-all.js +18 -3
  58. package/dist/esm/index.d.ts +2 -0
  59. package/dist/esm/src/definitions/portal.d.ts +4 -0
  60. package/dist/esm/src/definitions/portal.js +4 -0
  61. package/dist/esm/src/functions/setBaseURL.js +15 -9
  62. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  63. package/dist/esm/src/generated/portal/index.d.ts +18 -0
  64. package/dist/esm/src/generated/portal/index.js +2 -0
  65. package/dist/esm/src/generated/portal/models/AdminUserLevelResponseDto.d.ts +4 -0
  66. package/dist/esm/src/generated/portal/models/AdminUserLevelResponseDto.js +1 -0
  67. package/dist/esm/src/generated/portal/models/AdminUserResponseDto.d.ts +8 -0
  68. package/dist/esm/src/generated/portal/models/AdminUserResponseDto.js +1 -0
  69. package/dist/esm/src/generated/portal/models/AlbumImageResponseDto.d.ts +4 -0
  70. package/dist/esm/src/generated/portal/models/AlbumImageResponseDto.js +1 -0
  71. package/dist/esm/src/generated/portal/models/CreateUpdateAdminUserRequestDto.d.ts +7 -0
  72. package/dist/esm/src/generated/portal/models/CreateUpdateAdminUserRequestDto.js +1 -0
  73. package/dist/esm/src/generated/portal/models/CreateUpdateAlbumRequestDto.d.ts +3 -0
  74. package/dist/esm/src/generated/portal/models/CreateUpdateAlbumRequestDto.js +1 -0
  75. package/dist/esm/src/generated/portal/models/CreateUpdateWaitlistRequestDto.d.ts +1 -0
  76. package/dist/esm/src/generated/portal/models/DeleteAlbumImageRequestDto.d.ts +3 -0
  77. package/dist/esm/src/generated/portal/models/DeleteAlbumImageRequestDto.js +1 -0
  78. package/dist/esm/src/generated/portal/models/LandingPageAlbumResponseDto.d.ts +7 -0
  79. package/dist/esm/src/generated/portal/models/LandingPageAlbumResponseDto.js +1 -0
  80. package/dist/esm/src/generated/portal/models/LandingPageResponseDto.d.ts +23 -0
  81. package/dist/esm/src/generated/portal/models/LandingPageResponseDto.js +1 -0
  82. package/dist/esm/src/generated/portal/models/PolicyDto.d.ts +1 -1
  83. package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +29 -0
  84. package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.js +1 -0
  85. package/dist/esm/src/generated/portal/models/ReorderImageRequestDto.d.ts +3 -0
  86. package/dist/esm/src/generated/portal/models/ReorderImageRequestDto.js +1 -0
  87. package/dist/esm/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +1 -0
  88. package/dist/esm/src/generated/portal/models/TemplateResponseDto.d.ts +4 -0
  89. package/dist/esm/src/generated/portal/models/TemplateResponseDto.js +1 -0
  90. package/dist/esm/src/generated/portal/models/ThemeBannerImageResponseDto.d.ts +6 -0
  91. package/dist/esm/src/generated/portal/models/ThemeBannerImageResponseDto.js +1 -0
  92. package/dist/esm/src/generated/portal/models/ThemeDesignResponseDto.d.ts +32 -0
  93. package/dist/esm/src/generated/portal/models/ThemeDesignResponseDto.js +1 -0
  94. package/dist/esm/src/generated/portal/models/UpdateImageUploadRequestDto.d.ts +2 -0
  95. package/dist/esm/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.d.ts +18 -0
  96. package/dist/esm/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.js +1 -0
  97. package/dist/esm/src/generated/portal/models/UpdateLandingPageRequestDto.d.ts +8 -0
  98. package/dist/esm/src/generated/portal/models/UpdateLandingPageRequestDto.js +1 -0
  99. package/dist/esm/src/generated/portal/models/UpdateThemeDesignRequestDto.d.ts +27 -0
  100. package/dist/esm/src/generated/portal/models/UpdateThemeDesignRequestDto.js +1 -0
  101. package/dist/esm/src/generated/portal/services/ClientToolsThemeBuilderService.d.ts +62 -0
  102. package/dist/esm/src/generated/portal/services/ClientToolsThemeBuilderService.js +115 -0
  103. package/dist/esm/src/generated/portal/services/FeaturesLandingPageService.d.ts +125 -0
  104. package/dist/esm/src/generated/portal/services/FeaturesLandingPageService.js +244 -0
  105. package/dist/esm/src/generated/portal/services/FeaturesProductsService.d.ts +29 -19
  106. package/dist/esm/src/generated/portal/services/FeaturesProductsService.js +63 -43
  107. package/dist/esm/src/generated/portal/services/SettingsService.d.ts +60 -4
  108. package/dist/esm/src/generated/portal/services/SettingsService.js +118 -4
  109. package/dist/esm/src/generated/portal/types.d.ts +16 -0
  110. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  111. package/dist/esm/src/scripts/build-all.js +19 -4
  112. package/package.json +1 -1
  113. package/scripts/fix-import-extensions.mjs +50 -0
  114. package/src/definitions/portal.ts +4 -0
  115. package/src/functions/setBaseURL.ts +21 -14
  116. package/src/generated/portal/core/OpenAPI.ts +1 -1
  117. package/src/generated/portal/index.ts +18 -0
  118. package/src/generated/portal/models/AdminUserLevelResponseDto.ts +9 -0
  119. package/src/generated/portal/models/AdminUserResponseDto.ts +13 -0
  120. package/src/generated/portal/models/AlbumImageResponseDto.ts +9 -0
  121. package/src/generated/portal/models/CreateUpdateAdminUserRequestDto.ts +12 -0
  122. package/src/generated/portal/models/CreateUpdateAlbumRequestDto.ts +8 -0
  123. package/src/generated/portal/models/CreateUpdateWaitlistRequestDto.ts +1 -0
  124. package/src/generated/portal/models/DeleteAlbumImageRequestDto.ts +8 -0
  125. package/src/generated/portal/models/LandingPageAlbumResponseDto.ts +12 -0
  126. package/src/generated/portal/models/LandingPageResponseDto.ts +28 -0
  127. package/src/generated/portal/models/PolicyDto.ts +1 -1
  128. package/src/generated/portal/models/ProductDetailResponseDto.ts +34 -0
  129. package/src/generated/portal/models/ReorderImageRequestDto.ts +8 -0
  130. package/src/generated/portal/models/SettingsDetailsResponseDto.ts +1 -0
  131. package/src/generated/portal/models/TemplateResponseDto.ts +9 -0
  132. package/src/generated/portal/models/ThemeBannerImageResponseDto.ts +11 -0
  133. package/src/generated/portal/models/ThemeDesignResponseDto.ts +37 -0
  134. package/src/generated/portal/models/UpdateImageUploadRequestDto.ts +2 -0
  135. package/src/generated/portal/models/UpdateLandingPageConfigSettingRequestDto.ts +23 -0
  136. package/src/generated/portal/models/UpdateLandingPageRequestDto.ts +13 -0
  137. package/src/generated/portal/models/UpdateThemeDesignRequestDto.ts +32 -0
  138. package/src/generated/portal/services/ClientToolsThemeBuilderService.ts +149 -0
  139. package/src/generated/portal/services/FeaturesLandingPageService.ts +299 -0
  140. package/src/generated/portal/services/FeaturesProductsService.ts +74 -50
  141. package/src/generated/portal/services/SettingsService.ts +140 -6
  142. package/src/generated/portal/types.ts +16 -0
  143. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  144. package/src/scripts/build-all.ts +26 -10
  145. package/test.ts +1 -1
@@ -0,0 +1,18 @@
1
+ export type UpdateLandingPageConfigSettingRequestDto = {
2
+ listShows: number;
3
+ showPriorityDates: number;
4
+ showOpenDates: number;
5
+ showEndDates: number;
6
+ showLogo: number;
7
+ showVenueName: number;
8
+ showVenueAddress: number;
9
+ showVenueMap: number;
10
+ showSeatCounts: number;
11
+ showEndedSalesShows: number;
12
+ showEmail: number;
13
+ dateShowShowsAfter: string;
14
+ showProducts: number;
15
+ productsIncludeFee: number;
16
+ isActive: number;
17
+ showDateOnLanding: string;
18
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export type UpdateLandingPageRequestDto = {
2
+ title: string;
3
+ body: string;
4
+ facebookAlbumId: number;
5
+ albumId: number;
6
+ isActive: number;
7
+ facebookId: number;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ export type UpdateThemeDesignRequestDto = {
2
+ bodyBackgroundType: string;
3
+ bodyBackgroundFadeTop: string;
4
+ bodyBackgroundFadeBottom: string;
5
+ bodyBackgroundColor: string;
6
+ bodyBackgroundSrc: string;
7
+ headerHeight: string;
8
+ headerBackgroundType: string;
9
+ headerBackgroundColor: string;
10
+ headerBackgroundSrc: string;
11
+ headerTextDisplay: string;
12
+ headerTextSize: string;
13
+ headerTextMaxWidth: string;
14
+ headerTextTop: string;
15
+ headerTextRight: string;
16
+ headerTextColor: string;
17
+ headerSubtextSize: string;
18
+ logoDisplay: string;
19
+ logoTop: string;
20
+ logoLeft: string;
21
+ logoMaxWidth: string;
22
+ logoMaxHeight: string;
23
+ color1: string;
24
+ color1text: string;
25
+ color2: string;
26
+ color2text: string;
27
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,62 @@
1
+ import type { StartImageUploadRequestDto } from '../models/StartImageUploadRequestDto';
2
+ import type { StartImageUploadResponseDto } from '../models/StartImageUploadResponseDto';
3
+ import type { SuccessResponse } from '../models/SuccessResponse';
4
+ import type { ThemeBannerImageResponseDto } from '../models/ThemeBannerImageResponseDto';
5
+ import type { ThemeDesignResponseDto } from '../models/ThemeDesignResponseDto';
6
+ import type { UpdateImageUploadRequestDto } from '../models/UpdateImageUploadRequestDto';
7
+ import type { UpdateThemeDesignRequestDto } from '../models/UpdateThemeDesignRequestDto';
8
+ import type { CancelablePromise } from '../core/CancelablePromise';
9
+ export declare class ClientToolsThemeBuilderService {
10
+ /**
11
+ * Fetch the studio design
12
+ * Fetch the studio design
13
+ * @param xStudioId The ID of the studio
14
+ * @returns ThemeDesignResponseDto Studio design fetched successfully
15
+ * @throws ApiError
16
+ */
17
+ static getStudioDesign(xStudioId: string): CancelablePromise<ThemeDesignResponseDto>;
18
+ /**
19
+ * Update the studio design
20
+ * Update the studio design
21
+ * @param xStudioId The ID of the studio
22
+ * @param requestBody Payload to update the studio design
23
+ * @returns SuccessResponse Studio design updated successfully
24
+ * @throws ApiError
25
+ */
26
+ static updateStudioDesign(xStudioId: string, requestBody: UpdateThemeDesignRequestDto): CancelablePromise<SuccessResponse>;
27
+ /**
28
+ * Fetch the studio assigned images
29
+ * Fetch the studio assigned images
30
+ * @param xStudioId The ID of the studio
31
+ * @param format
32
+ * @param library
33
+ * @param minWidth
34
+ * @param maxWidth
35
+ * @param minHeight
36
+ * @param maxHeight
37
+ * @returns ThemeBannerImageResponseDto Images fetched successfully
38
+ * @throws ApiError
39
+ */
40
+ static getStudioImages(xStudioId: string, format: string, library: string, minWidth: number, maxWidth: number, minHeight: number, maxHeight: number): CancelablePromise<Array<ThemeBannerImageResponseDto>>;
41
+ /**
42
+ * Start image upload
43
+ * Start a new image upload for the given studio ID
44
+ * @param xStudioId The ID of the studio
45
+ * @param requestBody Payload to start image upload
46
+ * @returns StartImageUploadResponseDto Image upload started successfully
47
+ * @throws ApiError
48
+ */
49
+ static startImageUpload(xStudioId: string, requestBody: StartImageUploadRequestDto): CancelablePromise<StartImageUploadResponseDto>;
50
+ /**
51
+ * Update image url for the album
52
+ * Update image url for the given album ID
53
+ * @param xStudioId The ID of the studio
54
+ * @param format
55
+ * @param width
56
+ * @param height
57
+ * @param requestBody Payload to update image url for album
58
+ * @returns SuccessResponse Image url updated successfully
59
+ * @throws ApiError
60
+ */
61
+ static updateImageUrl(xStudioId: string, format: string, width: number, height: number, requestBody: UpdateImageUploadRequestDto): CancelablePromise<SuccessResponse>;
62
+ }
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientToolsThemeBuilderService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ClientToolsThemeBuilderService {
7
+ /**
8
+ * Fetch the studio design
9
+ * Fetch the studio design
10
+ * @param xStudioId The ID of the studio
11
+ * @returns ThemeDesignResponseDto Studio design fetched successfully
12
+ * @throws ApiError
13
+ */
14
+ static getStudioDesign(xStudioId) {
15
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
+ method: 'GET',
17
+ url: '/client-tools/theme-builder/studio-design',
18
+ headers: {
19
+ 'x-studio-id': xStudioId,
20
+ },
21
+ });
22
+ }
23
+ /**
24
+ * Update the studio design
25
+ * Update the studio design
26
+ * @param xStudioId The ID of the studio
27
+ * @param requestBody Payload to update the studio design
28
+ * @returns SuccessResponse Studio design updated successfully
29
+ * @throws ApiError
30
+ */
31
+ static updateStudioDesign(xStudioId, requestBody) {
32
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
33
+ method: 'PUT',
34
+ url: '/client-tools/theme-builder/studio-design',
35
+ headers: {
36
+ 'x-studio-id': xStudioId,
37
+ },
38
+ body: requestBody,
39
+ mediaType: 'application/json',
40
+ });
41
+ }
42
+ /**
43
+ * Fetch the studio assigned images
44
+ * Fetch the studio assigned images
45
+ * @param xStudioId The ID of the studio
46
+ * @param format
47
+ * @param library
48
+ * @param minWidth
49
+ * @param maxWidth
50
+ * @param minHeight
51
+ * @param maxHeight
52
+ * @returns ThemeBannerImageResponseDto Images fetched successfully
53
+ * @throws ApiError
54
+ */
55
+ static getStudioImages(xStudioId, format, library, minWidth, maxWidth, minHeight, maxHeight) {
56
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
57
+ method: 'GET',
58
+ url: '/client-tools/theme-builder/images',
59
+ headers: {
60
+ 'x-studio-id': xStudioId,
61
+ },
62
+ query: {
63
+ 'format': format,
64
+ 'library': library,
65
+ 'minWidth': minWidth,
66
+ 'maxWidth': maxWidth,
67
+ 'minHeight': minHeight,
68
+ 'maxHeight': maxHeight,
69
+ },
70
+ });
71
+ }
72
+ /**
73
+ * Start image upload
74
+ * Start a new image upload for the given studio ID
75
+ * @param xStudioId The ID of the studio
76
+ * @param requestBody Payload to start image upload
77
+ * @returns StartImageUploadResponseDto Image upload started successfully
78
+ * @throws ApiError
79
+ */
80
+ static startImageUpload(xStudioId, requestBody) {
81
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
82
+ method: 'POST',
83
+ url: '/client-tools/theme-builder/start-image-upload',
84
+ headers: {
85
+ 'x-studio-id': xStudioId,
86
+ },
87
+ body: requestBody,
88
+ mediaType: 'application/json',
89
+ });
90
+ }
91
+ /**
92
+ * Update image url for the album
93
+ * Update image url for the given album ID
94
+ * @param xStudioId The ID of the studio
95
+ * @param format
96
+ * @param width
97
+ * @param height
98
+ * @param requestBody Payload to update image url for album
99
+ * @returns SuccessResponse Image url updated successfully
100
+ * @throws ApiError
101
+ */
102
+ static updateImageUrl(xStudioId, format, width, height, requestBody) {
103
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
104
+ method: 'POST',
105
+ url: '/client-tools/theme-builder/update-image-url',
106
+ headers: {
107
+ 'x-studio-id': xStudioId,
108
+ },
109
+ query: {
110
+ 'format': format,
111
+ 'width': width,
112
+ 'height': height,
113
+ },
114
+ body: requestBody,
115
+ mediaType: 'application/json',
116
+ });
117
+ }
118
+ }
119
+ exports.ClientToolsThemeBuilderService = ClientToolsThemeBuilderService;
@@ -0,0 +1,125 @@
1
+ import type { AlbumImageResponseDto } from '../models/AlbumImageResponseDto';
2
+ import type { CreateUpdateAlbumRequestDto } from '../models/CreateUpdateAlbumRequestDto';
3
+ import type { DeleteAlbumImageRequestDto } from '../models/DeleteAlbumImageRequestDto';
4
+ import type { LandingPageAlbumResponseDto } from '../models/LandingPageAlbumResponseDto';
5
+ import type { LandingPageResponseDto } from '../models/LandingPageResponseDto';
6
+ import type { ReorderImageRequestDto } from '../models/ReorderImageRequestDto';
7
+ import type { StartImageUploadRequestDto } from '../models/StartImageUploadRequestDto';
8
+ import type { StartImageUploadResponseDto } from '../models/StartImageUploadResponseDto';
9
+ import type { SuccessResponse } from '../models/SuccessResponse';
10
+ import type { UpdateImageUploadRequestDto } from '../models/UpdateImageUploadRequestDto';
11
+ import type { UpdateLandingPageConfigSettingRequestDto } from '../models/UpdateLandingPageConfigSettingRequestDto';
12
+ import type { UpdateLandingPageRequestDto } from '../models/UpdateLandingPageRequestDto';
13
+ import type { CancelablePromise } from '../core/CancelablePromise';
14
+ export declare class FeaturesLandingPageService {
15
+ /**
16
+ * Fetch the Landing Page details
17
+ * Fetch the Landing Page details
18
+ * @param xStudioId The ID of the studio
19
+ * @returns LandingPageResponseDto Landing Page details fetched successfully
20
+ * @throws ApiError
21
+ */
22
+ static getLandingPage(xStudioId: string): CancelablePromise<LandingPageResponseDto>;
23
+ /**
24
+ * Update the Landing Page details
25
+ * Update the Landing Page details
26
+ * @param xStudioId The ID of the studio
27
+ * @param requestBody Payload to update Landing Page details
28
+ * @returns SuccessResponse Landing Page details updated successfully
29
+ * @throws ApiError
30
+ */
31
+ static updateLandingPageSettings(xStudioId: string, requestBody: UpdateLandingPageRequestDto): CancelablePromise<SuccessResponse>;
32
+ /**
33
+ * Fetch the album details
34
+ * Fetch the album details
35
+ * @param xStudioId The ID of the studio
36
+ * @returns LandingPageAlbumResponseDto Albums fetched successfully
37
+ * @throws ApiError
38
+ */
39
+ static getAlbums(xStudioId: string): CancelablePromise<Array<LandingPageAlbumResponseDto>>;
40
+ /**
41
+ * Fetch the album images
42
+ * Fetch the album images
43
+ * @param xStudioId The ID of the studio
44
+ * @param albumId The ID of the album
45
+ * @returns AlbumImageResponseDto Albums images fetched successfully
46
+ * @throws ApiError
47
+ */
48
+ static getAlbumImages(xStudioId: string, albumId: string): CancelablePromise<Array<AlbumImageResponseDto>>;
49
+ /**
50
+ * Delete the album images
51
+ * Delete the album images
52
+ * @param xStudioId The ID of the studio
53
+ * @param albumId
54
+ * @param requestBody
55
+ * @returns SuccessResponse Album images deleted successfully
56
+ * @throws ApiError
57
+ */
58
+ static deleteAlbumImages(xStudioId: string, albumId: string, requestBody: DeleteAlbumImageRequestDto): CancelablePromise<SuccessResponse>;
59
+ /**
60
+ * Create a new album
61
+ * Create a new album
62
+ * @param xStudioId The ID of the studio
63
+ * @param requestBody Payload to create a new album
64
+ * @returns number Album created successfully
65
+ * @throws ApiError
66
+ */
67
+ static createAlbum(xStudioId: string, requestBody: CreateUpdateAlbumRequestDto): CancelablePromise<number>;
68
+ /**
69
+ * Update the image order
70
+ * Update the image order
71
+ * @param xStudioId The ID of the studio
72
+ * @param requestBody Payload to update image order
73
+ * @returns SuccessResponse Image order updated successfully
74
+ * @throws ApiError
75
+ */
76
+ static updateImageOrder(xStudioId: string, requestBody: ReorderImageRequestDto): CancelablePromise<SuccessResponse>;
77
+ /**
78
+ * Start image upload
79
+ * Start a new image upload for the given studio ID
80
+ * @param albumId The ID of the album
81
+ * @param xStudioId The ID of the studio
82
+ * @param requestBody Payload to start image upload
83
+ * @returns StartImageUploadResponseDto Image upload started successfully
84
+ * @throws ApiError
85
+ */
86
+ static startImageUpload(albumId: string, xStudioId: string, requestBody: StartImageUploadRequestDto): CancelablePromise<StartImageUploadResponseDto>;
87
+ /**
88
+ * Update image url for the album
89
+ * Update image url for the given album ID
90
+ * @param xStudioId The ID of the studio
91
+ * @param albumId The ID of the album
92
+ * @param requestBody Payload to update image url for album
93
+ * @returns SuccessResponse Image url updated successfully
94
+ * @throws ApiError
95
+ */
96
+ static updateImageUrl(xStudioId: string, albumId: string, requestBody: UpdateImageUploadRequestDto): CancelablePromise<SuccessResponse>;
97
+ /**
98
+ * Update the Landing Page settings
99
+ * Update the Landing Page settings
100
+ * @param xStudioId The ID of the studio
101
+ * @param requestBody Payload to update Landing Page settings
102
+ * @returns SuccessResponse Landing Page settings updated successfully
103
+ * @throws ApiError
104
+ */
105
+ static updateLandingPageSettings1(xStudioId: string, requestBody: UpdateLandingPageConfigSettingRequestDto): CancelablePromise<SuccessResponse>;
106
+ /**
107
+ * Update the album
108
+ * Update the album
109
+ * @param albumId
110
+ * @param xStudioId The ID of the studio
111
+ * @param requestBody Payload to update Landing Page settings
112
+ * @returns SuccessResponse Album updated successfully
113
+ * @throws ApiError
114
+ */
115
+ static updateAlbum(albumId: string, xStudioId: string, requestBody: CreateUpdateAlbumRequestDto): CancelablePromise<SuccessResponse>;
116
+ /**
117
+ * Delete the album
118
+ * Delete the album
119
+ * @param albumId
120
+ * @param xStudioId The ID of the studio
121
+ * @returns SuccessResponse Album deleted successfully
122
+ * @throws ApiError
123
+ */
124
+ static deleteAlbum(albumId: string, xStudioId: string): CancelablePromise<SuccessResponse>;
125
+ }
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeaturesLandingPageService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class FeaturesLandingPageService {
7
+ /**
8
+ * Fetch the Landing Page details
9
+ * Fetch the Landing Page details
10
+ * @param xStudioId The ID of the studio
11
+ * @returns LandingPageResponseDto Landing Page details fetched successfully
12
+ * @throws ApiError
13
+ */
14
+ static getLandingPage(xStudioId) {
15
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
+ method: 'GET',
17
+ url: '/features/landing-page',
18
+ headers: {
19
+ 'x-studio-id': xStudioId,
20
+ },
21
+ });
22
+ }
23
+ /**
24
+ * Update the Landing Page details
25
+ * Update the Landing Page details
26
+ * @param xStudioId The ID of the studio
27
+ * @param requestBody Payload to update Landing Page details
28
+ * @returns SuccessResponse Landing Page details updated successfully
29
+ * @throws ApiError
30
+ */
31
+ static updateLandingPageSettings(xStudioId, requestBody) {
32
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
33
+ method: 'PUT',
34
+ url: '/features/landing-page',
35
+ headers: {
36
+ 'x-studio-id': xStudioId,
37
+ },
38
+ body: requestBody,
39
+ mediaType: 'application/json',
40
+ });
41
+ }
42
+ /**
43
+ * Fetch the album details
44
+ * Fetch the album details
45
+ * @param xStudioId The ID of the studio
46
+ * @returns LandingPageAlbumResponseDto Albums fetched successfully
47
+ * @throws ApiError
48
+ */
49
+ static getAlbums(xStudioId) {
50
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
51
+ method: 'GET',
52
+ url: '/features/landing-page/albums',
53
+ headers: {
54
+ 'x-studio-id': xStudioId,
55
+ },
56
+ });
57
+ }
58
+ /**
59
+ * Fetch the album images
60
+ * Fetch the album images
61
+ * @param xStudioId The ID of the studio
62
+ * @param albumId The ID of the album
63
+ * @returns AlbumImageResponseDto Albums images fetched successfully
64
+ * @throws ApiError
65
+ */
66
+ static getAlbumImages(xStudioId, albumId) {
67
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
68
+ method: 'GET',
69
+ url: '/features/landing-page/{albumId}/images',
70
+ path: {
71
+ 'albumId': albumId,
72
+ },
73
+ headers: {
74
+ 'x-studio-id': xStudioId,
75
+ },
76
+ });
77
+ }
78
+ /**
79
+ * Delete the album images
80
+ * Delete the album images
81
+ * @param xStudioId The ID of the studio
82
+ * @param albumId
83
+ * @param requestBody
84
+ * @returns SuccessResponse Album images deleted successfully
85
+ * @throws ApiError
86
+ */
87
+ static deleteAlbumImages(xStudioId, albumId, requestBody) {
88
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
89
+ method: 'DELETE',
90
+ url: '/features/landing-page/{albumId}/images',
91
+ path: {
92
+ 'albumId': albumId,
93
+ },
94
+ headers: {
95
+ 'x-studio-id': xStudioId,
96
+ },
97
+ body: requestBody,
98
+ mediaType: 'application/json',
99
+ });
100
+ }
101
+ /**
102
+ * Create a new album
103
+ * Create a new album
104
+ * @param xStudioId The ID of the studio
105
+ * @param requestBody Payload to create a new album
106
+ * @returns number Album created successfully
107
+ * @throws ApiError
108
+ */
109
+ static createAlbum(xStudioId, requestBody) {
110
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
111
+ method: 'POST',
112
+ url: '/features/landing-page/album',
113
+ headers: {
114
+ 'x-studio-id': xStudioId,
115
+ },
116
+ body: requestBody,
117
+ mediaType: 'application/json',
118
+ });
119
+ }
120
+ /**
121
+ * Update the image order
122
+ * Update the image order
123
+ * @param xStudioId The ID of the studio
124
+ * @param requestBody Payload to update image order
125
+ * @returns SuccessResponse Image order updated successfully
126
+ * @throws ApiError
127
+ */
128
+ static updateImageOrder(xStudioId, requestBody) {
129
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
130
+ method: 'POST',
131
+ url: '/features/landing-page/reorder-images',
132
+ headers: {
133
+ 'x-studio-id': xStudioId,
134
+ },
135
+ body: requestBody,
136
+ mediaType: 'application/json',
137
+ });
138
+ }
139
+ /**
140
+ * Start image upload
141
+ * Start a new image upload for the given studio ID
142
+ * @param albumId The ID of the album
143
+ * @param xStudioId The ID of the studio
144
+ * @param requestBody Payload to start image upload
145
+ * @returns StartImageUploadResponseDto Image upload started successfully
146
+ * @throws ApiError
147
+ */
148
+ static startImageUpload(albumId, xStudioId, requestBody) {
149
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
150
+ method: 'POST',
151
+ url: '/features/landing-page/{albumId}/start-image-upload',
152
+ path: {
153
+ 'albumId': albumId,
154
+ },
155
+ headers: {
156
+ 'x-studio-id': xStudioId,
157
+ },
158
+ body: requestBody,
159
+ mediaType: 'application/json',
160
+ });
161
+ }
162
+ /**
163
+ * Update image url for the album
164
+ * Update image url for the given album ID
165
+ * @param xStudioId The ID of the studio
166
+ * @param albumId The ID of the album
167
+ * @param requestBody Payload to update image url for album
168
+ * @returns SuccessResponse Image url updated successfully
169
+ * @throws ApiError
170
+ */
171
+ static updateImageUrl(xStudioId, albumId, requestBody) {
172
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
173
+ method: 'POST',
174
+ url: '/features/landing-page/{albumId}/update-image-url',
175
+ path: {
176
+ 'albumId': albumId,
177
+ },
178
+ headers: {
179
+ 'x-studio-id': xStudioId,
180
+ },
181
+ body: requestBody,
182
+ mediaType: 'application/json',
183
+ });
184
+ }
185
+ /**
186
+ * Update the Landing Page settings
187
+ * Update the Landing Page settings
188
+ * @param xStudioId The ID of the studio
189
+ * @param requestBody Payload to update Landing Page settings
190
+ * @returns SuccessResponse Landing Page settings updated successfully
191
+ * @throws ApiError
192
+ */
193
+ static updateLandingPageSettings1(xStudioId, requestBody) {
194
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
195
+ method: 'PUT',
196
+ url: '/features/landing-page/settings',
197
+ headers: {
198
+ 'x-studio-id': xStudioId,
199
+ },
200
+ body: requestBody,
201
+ mediaType: 'application/json',
202
+ });
203
+ }
204
+ /**
205
+ * Update the album
206
+ * Update the album
207
+ * @param albumId
208
+ * @param xStudioId The ID of the studio
209
+ * @param requestBody Payload to update Landing Page settings
210
+ * @returns SuccessResponse Album updated successfully
211
+ * @throws ApiError
212
+ */
213
+ static updateAlbum(albumId, xStudioId, requestBody) {
214
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
215
+ method: 'PUT',
216
+ url: '/features/landing-page/{albumId}',
217
+ path: {
218
+ 'albumId': albumId,
219
+ },
220
+ headers: {
221
+ 'x-studio-id': xStudioId,
222
+ },
223
+ body: requestBody,
224
+ mediaType: 'application/json',
225
+ });
226
+ }
227
+ /**
228
+ * Delete the album
229
+ * Delete the album
230
+ * @param albumId
231
+ * @param xStudioId The ID of the studio
232
+ * @returns SuccessResponse Album deleted successfully
233
+ * @throws ApiError
234
+ */
235
+ static deleteAlbum(albumId, xStudioId) {
236
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
237
+ method: 'DELETE',
238
+ url: '/features/landing-page/{albumId}',
239
+ path: {
240
+ 'albumId': albumId,
241
+ },
242
+ headers: {
243
+ 'x-studio-id': xStudioId,
244
+ },
245
+ });
246
+ }
247
+ }
248
+ exports.FeaturesLandingPageService = FeaturesLandingPageService;